function fcDirectiveFn(n){return{restrict:"A",scope:{eventSource:"=ngModel",options:"=fcOptions"},link:function(t,i){function u(){r||(r=$(i).html(""));r.fullCalendar(o(t.options))}function f(){r&&r.fullCalendar&&r.fullCalendar("destroy")}function o(i){return angular.extend(n,{events:t.eventSource},i)}function e(n,t){n!==t?(f(),u()):n&&angular.isUndefined(r)&&u()}var r;u();t.$watch("eventSource",e,!0);t.$watch("options",e,!0);t.$on("$destroy",function(){f()})}}}function _classCallCheck(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function _classCallCheck(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function homeServiceGMapInitialize(){angular.element(document.getElementById("HomeService_GMap")).scope().gMapInitialize()}function homeServiceMapSelect(n,t,i){return $(".HomeServiceSelected").text(t+", "+i),$(".HomeServiceSelected").attr("homeService",n),angular.element(document.getElementById("HomeService_GMap")).scope().homeServiceCancelSetVisible(),!1}function _classCallCheck(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function storeGMapInitialize(){angular.element(document.getElementById("Store_GMap")).scope().gMapInitialize()}function storeDetailGMapInitialize(){angular.element(document.getElementById("map-canvas")).scope().gMapInitialize()}function ebikeGMapInitialize(){angular.element(document.getElementById("EBikeService_GMap")).scope().gMapInitialize()}function ebikeDetailGMapInitialize(){angular.element(document.getElementById("map-canvas")).scope().gMapInitialize()}function motoGMapInitialize(){angular.element(document.getElementById("MotoService_GMap")).scope().gMapInitialize()}function motoDetailGMapInitialize(){angular.element(document.getElementById("map-canvas")).scope().gMapInitialize()}function akasGMapInitialize(){angular.element(document.getElementById("AkasService_GMap")).scope().gMapInitialize()}function akasDetailGMapInitialize(){angular.element(document.getElementById("map-canvas")).scope().gMapInitialize()}function _classCallCheck(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function serviceProfileGMapInitialize(){angular.element(document.getElementById("ServiceProfile_GMap")).scope().gMapInitialize()}function _classCallCheck(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function _classCallCheck(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function _classCallCheck(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function _defineProperties(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}function _createClass(n,t,i){return t&&_defineProperties(n.prototype,t),i&&_defineProperties(n,i),n}function footerAccordeon(){$(".footer-link").click(function(){$header=$(this);$content=$header.next();$content.slideToggle(500,function(){})})}var timerModule,app,AK,BllCartTypes,FooterItemType,PriceCartTypes,TakeOffDeliveryTypes,OrderSourceTypes,GarageCalendarSheetEdit,MAPSOURCETYPE,GPSSOURCETYPE,OrderPromiseDayRange,CartItemPromiseTypes,_typeof,REGEX_EMPTY,akAngularModule,akAngularServices,Sticky,QuickSidebar,randNum,equalHeight,genSparklines,beautify,mt_rand,cbpAnimatedHeader;!function(n,t){"object"==typeof module&&"object"==typeof module.exports?module.exports=n.document?t(n,!0):function(n){if(!n.document)throw new Error("jQuery requires a window with a document");return t(n)}:t(n)}("undefined"!=typeof window?window:this,function(n,t){function ii(n){var t=!!n&&"length"in n&&n.length,r=i.type(n);return"function"===r||i.isWindow(n)?!1:"array"===r||0===t||"number"==typeof t&&t>0&&t-1 in n}function ri(n,t,r){if(i.isFunction(t))return i.grep(n,function(n,i){return!!t.call(n,i,n)!==r});if(t.nodeType)return i.grep(n,function(n){return n===t!==r});if("string"==typeof t){if(pe.test(t))return i.filter(t,n,r);t=i.filter(t,n)}return i.grep(n,function(n){return i.inArray(n,t)>-1!==r})}function kr(n,t){do n=n[t];while(n&&1!==n.nodeType);return n}function we(n){var t={};return i.each(n.match(s)||[],function(n,i){t[i]=!0}),t}function dr(){u.addEventListener?(u.removeEventListener("DOMContentLoaded",v),n.removeEventListener("load",v)):(u.detachEvent("onreadystatechange",v),n.detachEvent("onload",v))}function v(){(u.addEventListener||"load"===n.event.type||"complete"===u.readyState)&&(dr(),i.ready())}function nu(n,t,r){if(void 0===r&&1===n.nodeType){var u="data-"+t.replace(ke,"-$1").toLowerCase();if(r=n.getAttribute(u),"string"==typeof r){try{r="true"===r?!0:"false"===r?!1:"null"===r?null:+r+""===r?+r:be.test(r)?i.parseJSON(r):r}catch(f){}i.data(n,t,r)}else r=void 0}return r}function fi(n){for(var t in n)if(("data"!==t||!i.isEmptyObject(n[t]))&&"toJSON"!==t)return!1;return!0}function tu(n,t,r,u){if(ot(n)){var s,e,h=i.expando,l=n.nodeType,o=l?i.cache:n,f=l?n[h]:n[h]&&h;if(f&&o[f]&&(u||o[f].data)||void 0!==r||"string"!=typeof t)return f||(f=l?n[h]=c.pop()||i.guid++:h),o[f]||(o[f]=l?{}:{toJSON:i.noop}),"object"!=typeof t&&"function"!=typeof t||(u?o[f]=i.extend(o[f],t):o[f].data=i.extend(o[f].data,t)),e=o[f],u||(e.data||(e.data={}),e=e.data),void 0!==r&&(e[i.camelCase(t)]=r),"string"==typeof t?(s=e[t],null==s&&(s=e[i.camelCase(t)])):s=e,s}}function iu(n,t,u){if(ot(n)){var o,s,h=n.nodeType,f=h?i.cache:n,e=h?n[i.expando]:i.expando;if(f[e]){if(t&&(o=u?f[e]:f[e].data)){for(i.isArray(t)?t=t.concat(i.map(t,i.camelCase)):(t in o)?t=[t]:(t=i.camelCase(t),t=(t in o)?[t]:t.split(" ")),s=t.length;s--;)delete o[t[s]];if(u?!fi(o):!i.isEmptyObject(o))return}(u||(delete f[e].data,fi(f[e])))&&(h?i.cleanData([n],!0):r.deleteExpando||f!=f.window?delete f[e]:f[e]=void 0)}}}function ru(n,t,r,u){var h,e=1,l=20,c=u?function(){return u.cur()}:function(){return i.css(n,t,"")},s=c(),o=r&&r[3]||(i.cssNumber[t]?"":"px"),f=(i.cssNumber[t]||"px"!==o&&+s)&&oi.exec(i.css(n,t));if(f&&f[3]!==o){o=o||f[3];r=r||[];f=+s||1;do e=e||".5",f/=e,i.style(n,t,f+o);while(e!==(e=c()/s)&&1!==e&&--l)}return r&&(f=+f||+s||0,h=r[1]?f+(r[1]+1)*r[2]:+r[2],u&&(u.unit=o,u.start=f,u.end=h)),h}function ou(n){var i=eu.split("|"),t=n.createDocumentFragment();if(t.createElement)while(i.length)t.createElement(i.pop());return t}function f(n,t){var e,u,o=0,r="undefined"!=typeof n.getElementsByTagName?n.getElementsByTagName(t||"*"):"undefined"!=typeof n.querySelectorAll?n.querySelectorAll(t||"*"):void 0;if(!r)for(r=[],e=n.childNodes||n;null!=(u=e[o]);o++)!t||i.nodeName(u,t)?r.push(u):i.merge(r,f(u,t));return void 0===t||t&&i.nodeName(n,t)?i.merge([n],r):r}function ci(n,t){for(var u,r=0;null!=(u=n[r]);r++)i._data(u,"globalEval",!t||i._data(t[r],"globalEval"))}function de(n){si.test(n.type)&&(n.defaultChecked=n.checked)}function hu(n,t,u,e,s){for(var l,h,k,c,w,b,v,d=n.length,y=ou(t),a=[],p=0;d>p;p++)if(h=n[p],h||0===h)if("object"===i.type(h))i.merge(a,h.nodeType?[h]:h);else if(su.test(h)){for(c=c||y.appendChild(t.createElement("div")),w=(uu.exec(h)||["",""])[1].toLowerCase(),v=o[w]||o._default,c.innerHTML=v[1]+i.htmlPrefilter(h)+v[2],l=v[0];l--;)c=c.lastChild;if(!r.leadingWhitespace&&hi.test(h)&&a.push(t.createTextNode(hi.exec(h)[0])),!r.tbody)for(h="table"!==w||li.test(h)?"<table>"!==v[1]||li.test(h)?0:c:c.firstChild,l=h&&h.childNodes.length;l--;)i.nodeName(b=h.childNodes[l],"tbody")&&!b.childNodes.length&&h.removeChild(b);for(i.merge(a,c.childNodes),c.textContent="";c.firstChild;)c.removeChild(c.firstChild);c=y.lastChild}else a.push(t.createTextNode(h));for(c&&y.removeChild(c),r.appendChecked||i.grep(f(a,"input"),de),p=0;h=a[p++];)if(e&&i.inArray(h,e)>-1)s&&s.push(h);else if(k=i.contains(h.ownerDocument,h),c=f(y.appendChild(h),"script"),k&&ci(c),u)for(l=0;h=c[l++];)fu.test(h.type||"")&&u.push(h);return c=null,y}function vt(){return!0}function rt(){return!1}function au(){try{return u.activeElement}catch(n){}}function vi(n,t,r,u,f,e){var o,s;if("object"==typeof t){"string"!=typeof r&&(u=u||r,r=void 0);for(s in t)vi(n,s,r,u,t[s],e);return n}if(null==u&&null==f?(f=r,u=r=void 0):null==f&&("string"==typeof r?(f=u,u=void 0):(f=u,u=r,r=void 0)),f===!1)f=rt;else if(!f)return n;return 1===e&&(o=f,f=function(n){return i().off(n),o.apply(this,arguments)},f.guid=o.guid||(o.guid=i.guid++)),n.each(function(){i.event.add(this,t,f,u,r)})}function yu(n,t){return i.nodeName(n,"table")&&i.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?n.getElementsByTagName("tbody")[0]||n.appendChild(n.ownerDocument.createElement("tbody")):n}function pu(n){return n.type=(null!==i.find.attr(n,"type"))+"/"+n.type,n}function wu(n){var t=fo.exec(n.type);return t?n.type=t[1]:n.removeAttribute("type"),n}function bu(n,t){if(1===t.nodeType&&i.hasData(n)){var u,f,o,s=i._data(n),r=i._data(t,s),e=s.events;if(e){delete r.handle;r.events={};for(u in e)for(f=0,o=e[u].length;o>f;f++)i.event.add(t,u,e[u][f])}r.data&&(r.data=i.extend({},r.data))}}function so(n,t){var u,e,f;if(1===t.nodeType){if(u=t.nodeName.toLowerCase(),!r.noCloneEvent&&t[i.expando]){f=i._data(t);for(e in f.events)i.removeEvent(t,e,f.handle);t.removeAttribute(i.expando)}"script"===u&&t.text!==n.text?(pu(t).text=n.text,wu(t)):"object"===u?(t.parentNode&&(t.outerHTML=n.outerHTML),r.html5Clone&&n.innerHTML&&!i.trim(t.innerHTML)&&(t.innerHTML=n.innerHTML)):"input"===u&&si.test(n.type)?(t.defaultChecked=t.checked=n.checked,t.value!==n.value&&(t.value=n.value)):"option"===u?t.defaultSelected=t.selected=n.defaultSelected:"input"!==u&&"textarea"!==u||(t.defaultValue=n.defaultValue)}}function k(n,t,u,e){t=sr.apply([],t);var l,o,a,h,p,c,s=0,v=n.length,b=v-1,y=t[0],w=i.isFunction(y);if(w||v>1&&"string"==typeof y&&!r.checkClone&&uo.test(y))return n.each(function(i){var r=n.eq(i);w&&(t[0]=y.call(this,i,r.html()));k(r,t,u,e)});if(v&&(c=hu(t,n[0].ownerDocument,!1,n,e),l=c.firstChild,1===c.childNodes.length&&(c=l),l||e)){for(h=i.map(f(c,"script"),pu),a=h.length;v>s;s++)o=c,s!==b&&(o=i.clone(o,!0,!0),a&&i.merge(h,f(o,"script"))),u.call(n[s],o,s);if(a)for(p=h[h.length-1].ownerDocument,i.map(h,wu),s=0;a>s;s++)o=h[s],fu.test(o.type||"")&&!i._data(o,"globalEval")&&i.contains(p,o)&&(o.src?i._evalUrl&&i._evalUrl(o.src):i.globalEval((o.text||o.textContent||o.innerHTML||"").replace(eo,"")));c=l=null}return n}function ku(n,t,r){for(var u,o=t?i.filter(t,n):n,e=0;null!=(u=o[e]);e++)r||1!==u.nodeType||i.cleanData(f(u)),u.parentNode&&(r&&i.contains(u.ownerDocument,u)&&ci(f(u,"script")),u.parentNode.removeChild(u));return n}function du(n,t){var r=i(t.createElement(n)).appendTo(t.body),u=i.css(r[0],"display");return r.detach(),u}function yt(n){var r=u,t=pi[n];return t||(t=du(n,r),"none"!==t&&t||(ht=(ht||i("<iframe frameborder='0' width='0' height='0'/>")).appendTo(r.documentElement),r=(ht[0].contentWindow||ht[0].contentDocument).document,r.write(),r.close(),t=du(n,r),ht.detach()),pi[n]=t),t}function bi(n,t){return{get:function(){return n()?void delete this.get:(this.get=t).apply(this,arguments)}}}function ef(n){if(n in ff)return n;for(var i=n.charAt(0).toUpperCase()+n.slice(1),t=uf.length;t--;)if(n=uf[t]+i,n in ff)return n}function of(n,t){for(var f,r,o,e=[],u=0,s=n.length;s>u;u++)r=n[u],r.style&&(e[u]=i._data(r,"olddisplay"),f=r.style.display,t?(e[u]||"none"!==f||(r.style.display=""),""===r.style.display&&st(r)&&(e[u]=i._data(r,"olddisplay",yt(r.nodeName)))):(o=st(r),(f&&"none"!==f||!o)&&i._data(r,"olddisplay",o?f:i.css(r,"display"))));for(u=0;s>u;u++)r=n[u],r.style&&(t&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=t?e[u]||"":"none"));return n}function sf(n,t,i){var r=lo.exec(t);return r?Math.max(0,r[1]-(i||0))+(r[2]||"px"):t}function hf(n,t,r,u,f){for(var e=r===(u?"border":"content")?4:"width"===t?1:0,o=0;4>e;e+=2)"margin"===r&&(o+=i.css(n,r+b[e],!0,f)),u?("content"===r&&(o-=i.css(n,"padding"+b[e],!0,f)),"margin"!==r&&(o-=i.css(n,"border"+b[e]+"Width",!0,f))):(o+=i.css(n,"padding"+b[e],!0,f),"padding"!==r&&(o+=i.css(n,"border"+b[e]+"Width",!0,f)));return o}function cf(n,t,u){var o=!0,f="width"===t?n.offsetWidth:n.offsetHeight,e=d(n),s=r.boxSizing&&"border-box"===i.css(n,"boxSizing",!1,e);if(0>=f||null==f){if(f=p(n,t,e),(0>f||null==f)&&(f=n.style[t]),pt.test(f))return f;o=s&&(r.boxSizingReliable()||f===n.style[t]);f=parseFloat(f)||0}return f+hf(n,t,u||(s?"border":"content"),o,e)+"px"}function e(n,t,i,r,u){return new e.prototype.init(n,t,i,r,u)}function vf(){return n.setTimeout(function(){ut=void 0}),ut=i.now()}function bt(n,t){var r,i={height:n},u=0;for(t=t?1:0;4>u;u+=2-t)r=b[u],i["margin"+r]=i["padding"+r]=n;return t&&(i.opacity=i.width=n),i}function yf(n,t,i){for(var u,f=(h.tweeners[t]||[]).concat(h.tweeners["*"]),r=0,e=f.length;e>r;r++)if(u=f[r].call(i,t,n))return u}function vo(n,t,u){var f,a,p,v,s,w,h,b,l=this,y={},o=n.style,c=n.nodeType&&st(n),e=i._data(n,"fxshow");u.queue||(s=i._queueHooks(n,"fx"),null==s.unqueued&&(s.unqueued=0,w=s.empty.fire,s.empty.fire=function(){s.unqueued||w()}),s.unqueued++,l.always(function(){l.always(function(){s.unqueued--;i.queue(n,"fx").length||s.empty.fire()})}));1===n.nodeType&&("height"in t||"width"in t)&&(u.overflow=[o.overflow,o.overflowX,o.overflowY],h=i.css(n,"display"),b="none"===h?i._data(n,"olddisplay")||yt(n.nodeName):h,"inline"===b&&"none"===i.css(n,"float")&&(r.inlineBlockNeedsLayout&&"inline"!==yt(n.nodeName)?o.zoom=1:o.display="inline-block"));u.overflow&&(o.overflow="hidden",r.shrinkWrapBlocks()||l.always(function(){o.overflow=u.overflow[0];o.overflowX=u.overflow[1];o.overflowY=u.overflow[2]}));for(f in t)if(a=t[f],lf.exec(a)){if(delete t[f],p=p||"toggle"===a,a===(c?"hide":"show")){if("show"!==a||!e||void 0===e[f])continue;c=!0}y[f]=e&&e[f]||i.style(n,f)}else h=void 0;if(i.isEmptyObject(y))"inline"===("none"===h?yt(n.nodeName):h)&&(o.display=h);else{e?"hidden"in e&&(c=e.hidden):e=i._data(n,"fxshow",{});p&&(e.hidden=!c);c?i(n).show():l.done(function(){i(n).hide()});l.done(function(){var t;i._removeData(n,"fxshow");for(t in y)i.style(n,t,y[t])});for(f in y)v=yf(c?e[f]:0,f,l),f in e||(e[f]=v.start,c&&(v.end=v.start,v.start="width"===f||"height"===f?1:0))}}function yo(n,t){var r,f,e,u,o;for(r in n)if(f=i.camelCase(r),e=t[f],u=n[r],i.isArray(u)&&(e=u[1],u=n[r]=u[0]),r!==f&&(n[f]=u,delete n[r]),o=i.cssHooks[f],o&&"expand"in o){u=o.expand(u);delete n[f];for(r in u)r in n||(n[r]=u[r],t[r]=e)}else t[f]=e}function h(n,t,r){var e,o,s=0,a=h.prefilters.length,f=i.Deferred().always(function(){delete l.elem}),l=function(){if(o)return!1;for(var s=ut||vf(),t=Math.max(0,u.startTime+u.duration-s),h=t/u.duration||0,i=1-h,r=0,e=u.tweens.length;e>r;r++)u.tweens[r].run(i);return f.notifyWith(n,[u,i,t]),1>i&&e?t:(f.resolveWith(n,[u]),!1)},u=f.promise({elem:n,props:i.extend({},t),opts:i.extend(!0,{specialEasing:{},easing:i.easing._default},r),originalProperties:t,originalOptions:r,startTime:ut||vf(),duration:r.duration,tweens:[],createTween:function(t,r){var f=i.Tween(n,u.opts,t,r,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(f),f},stop:function(t){var i=0,r=t?u.tweens.length:0;if(o)return this;for(o=!0;r>i;i++)u.tweens[i].run(1);return t?(f.notifyWith(n,[u,1,0]),f.resolveWith(n,[u,t])):f.rejectWith(n,[u,t]),this}}),c=u.props;for(yo(c,u.opts.specialEasing);a>s;s++)if(e=h.prefilters[s].call(u,n,c,u.opts))return i.isFunction(e.stop)&&(i._queueHooks(u.elem,u.opts.queue).stop=i.proxy(e.stop,e)),e;return i.map(c,yf,u),i.isFunction(u.opts.start)&&u.opts.start.call(n,u),i.fx.timer(i.extend(l,{elem:n,anim:u,queue:u.opts.queue})),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always)}function nt(n){return i.attr(n,"class")||""}function re(n){return function(t,r){"string"!=typeof t&&(r=t,t="*");var u,f=0,e=t.toLowerCase().match(s)||[];if(i.isFunction(r))while(u=e[f++])"+"===u.charAt(0)?(u=u.slice(1)||"*",(n[u]=n[u]||[]).unshift(r)):(n[u]=n[u]||[]).push(r)}}function ue(n,t,r,u){function e(s){var h;return f[s]=!0,i.each(n[s]||[],function(n,i){var s=i(t,r,u);return"string"!=typeof s||o||f[s]?o?!(h=s):void 0:(t.dataTypes.unshift(s),e(s),!1)}),h}var f={},o=n===tr;return e(t.dataTypes[0])||!f["*"]&&e("*")}function rr(n,t){var u,r,f=i.ajaxSettings.flatOptions||{};for(r in t)void 0!==t[r]&&((f[r]?n:u||(u={}))[r]=t[r]);return u&&i.extend(!0,n,u),n}function ts(n,t,i){for(var o,e,u,f,s=n.contents,r=n.dataTypes;"*"===r[0];)r.shift(),void 0===e&&(e=n.mimeType||t.getResponseHeader("Content-Type"));if(e)for(f in s)if(s[f]&&s[f].test(e)){r.unshift(f);break}if(r[0]in i)u=r[0];else{for(f in i){if(!r[0]||n.converters[f+" "+r[0]]){u=f;break}o||(o=f)}u=u||o}if(u)return(u!==r[0]&&r.unshift(u),i[u])}function is(n,t,i,r){var h,u,f,s,e,o={},c=n.dataTypes.slice();if(c[1])for(f in n.converters)o[f.toLowerCase()]=n.converters[f];for(u=c.shift();u;)if(n.responseFields[u]&&(i[n.responseFields[u]]=t),!e&&r&&n.dataFilter&&(t=n.dataFilter(t,n.dataType)),e=u,u=c.shift())if("*"===u)u=e;else if("*"!==e&&e!==u){if(f=o[e+" "+u]||o["* "+u],!f)for(h in o)if(s=h.split(" "),s[1]===u&&(f=o[e+" "+s[0]]||o["* "+s[0]])){f===!0?f=o[h]:o[h]!==!0&&(u=s[0],c.unshift(s[1]));break}if(f!==!0)if(f&&n.throws)t=f(t);else try{t=f(t)}catch(l){return{state:"parsererror",error:f?l:"No conversion from "+e+" to "+u}}}return{state:"success",data:t}}function rs(n){return n.style&&n.style.display||i.css(n,"display")}function us(n){if(!i.contains(n.ownerDocument||u,n))return!0;while(n&&1===n.nodeType){if("none"===rs(n)||"hidden"===n.type)return!0;n=n.parentNode}return!1}function ur(n,t,r,u){var f;if(i.isArray(t))i.each(t,function(t,i){r||es.test(n)?u(n,i):ur(n+"["+("object"==typeof i&&null!=i?t:"")+"]",i,r,u)});else if(r||"object"!==i.type(t))u(n,t);else for(f in t)ur(n+"["+f+"]",t[f],r,u)}function fr(){try{return new n.XMLHttpRequest}catch(t){}}function ee(){try{return new n.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}function oe(n){return i.isWindow(n)?n:9===n.nodeType?n.defaultView||n.parentWindow:!1}var c=[],u=n.document,a=c.slice,sr=c.concat,ti=c.push,hr=c.indexOf,lt={},ce=lt.toString,tt=lt.hasOwnProperty,r={},cr="3.5.1",i=function(n,t){return new i.fn.init(n,t)},le=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,ae=/^-ms-/,ve=/-([\da-z])/gi,ye=function(n,t){return t.toUpperCase()},w,ui,yr,pr,wr,br,s,at,gr,o,su,li,ht,pi,d,p,tf,ut,wt,lf,af,pf,wf,kf,df,dt,er,ni,or,se,he;i.fn=i.prototype={jquery:cr,constructor:i,selector:"",length:0,toArray:function(){return a.call(this)},get:function(n){return null!=n?0>n?this[n+this.length]:this[n]:a.call(this)},pushStack:function(n){var t=i.merge(this.constructor(),n);return t.prevObject=this,t.context=this.context,t},each:function(n){return i.each(this,n)},map:function(n){return this.pushStack(i.map(this,function(t,i){return n.call(t,i,t)}))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(n){var i=this.length,t=+n+(0>n?i:0);return this.pushStack(t>=0&&i>t?[this[t]]:[])},end:function(){return this.prevObject||this.constructor()},push:ti,sort:c.sort,splice:c.splice};i.extend=i.fn.extend=function(){var r,e,t,f,o,s,n=arguments[0]||{},u=1,c=arguments.length,h=!1;for("boolean"==typeof n&&(h=n,n=arguments[u]||{},u++),"object"==typeof n||i.isFunction(n)||(n={}),u===c&&(n=this,u--);c>u;u++)if(null!=(o=arguments[u]))for(f in o)r=n[f],t=o[f],n!==t&&(h&&t&&(i.isPlainObject(t)||(e=i.isArray(t)))?(e?(e=!1,s=r&&i.isArray(r)?r:[]):s=r&&i.isPlainObject(r)?r:{},n[f]=i.extend(h,s,t)):void 0!==t&&(n[f]=t));return n};i.extend({expando:"jQuery"+(cr+Math.random()).replace(/\D/g,""),isReady:!0,error:function(n){throw new Error(n);},noop:function(){},isFunction:function(n){return"function"===i.type(n)},isArray:Array.isArray||function(n){return"array"===i.type(n)},isWindow:function(n){return null!=n&&n==n.window},isNumeric:function(n){var t=n&&n.toString();return!i.isArray(n)&&t-parseFloat(t)+1>=0},isEmptyObject:function(n){for(var t in n)return!1;return!0},isPlainObject:function(n){var t;if(!n||"object"!==i.type(n)||n.nodeType||i.isWindow(n))return!1;try{if(n.constructor&&!tt.call(n,"constructor")&&!tt.call(n.constructor.prototype,"isPrototypeOf"))return!1}catch(u){return!1}if(!r.ownFirst)for(t in n)return tt.call(n,t);for(t in n);return void 0===t||tt.call(n,t)},type:function(n){return null==n?n+"":"object"==typeof n||"function"==typeof n?lt[ce.call(n)]||"object":typeof n},globalEval:function(t){t&&i.trim(t)&&(n.execScript||function(t){n.eval.call(n,t)})(t)},camelCase:function(n){return n.replace(ae,"ms-").replace(ve,ye)},nodeName:function(n,t){return n.nodeName&&n.nodeName.toLowerCase()===t.toLowerCase()},each:function(n,t){var r,i=0;if(ii(n)){for(r=n.length;r>i;i++)if(t.call(n[i],i,n[i])===!1)break}else for(i in n)if(t.call(n[i],i,n[i])===!1)break;return n},trim:function(n){return null==n?"":(n+"").replace(le,"")},makeArray:function(n,t){var r=t||[];return null!=n&&(ii(Object(n))?i.merge(r,"string"==typeof n?[n]:n):ti.call(r,n)),r},inArray:function(n,t,i){var r;if(t){if(hr)return hr.call(t,n,i);for(r=t.length,i=i?0>i?Math.max(0,r+i):i:0;r>i;i++)if(i in t&&t[i]===n)return i}return-1},merge:function(n,t){for(var r=+t.length,i=0,u=n.length;r>i;)n[u++]=t[i++];if(r!==r)while(void 0!==t[i])n[u++]=t[i++];return n.length=u,n},grep:function(n,t,i){for(var u,f=[],r=0,e=n.length,o=!i;e>r;r++)u=!t(n[r],r),u!==o&&f.push(n[r]);return f},map:function(n,t,i){var e,u,r=0,f=[];if(ii(n))for(e=n.length;e>r;r++)u=t(n[r],r,i),null!=u&&f.push(u);else for(r in n)u=t(n[r],r,i),null!=u&&f.push(u);return sr.apply([],f)},guid:1,proxy:function(n,t){var u,r,f;return"string"==typeof t&&(f=n[t],t=n,n=f),i.isFunction(n)?(u=a.call(arguments,2),r=function(){return n.apply(t||this,u.concat(a.call(arguments)))},r.guid=n.guid=n.guid||i.guid++,r):void 0},now:function(){return+new Date},support:r});"function"==typeof Symbol&&(i.fn[Symbol.iterator]=c[Symbol.iterator]);i.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(n,t){lt["[object "+t+"]"]=t.toLowerCase()});w=function(n){function u(n,t,r,u){var l,w,a,s,nt,d,y,g,p=t&&t.ownerDocument,v=t?t.nodeType:9;if(r=r||[],"string"!=typeof n||!n||1!==v&&9!==v&&11!==v)return r;if(!u&&((t?t.ownerDocument||t:c)!==i&&b(t),t=t||i,h)){if(11!==v&&(d=sr.exec(n)))if(l=d[1]){if(9===v){if(!(a=t.getElementById(l)))return r;if(a.id===l)return r.push(a),r}else if(p&&(a=p.getElementById(l))&&et(t,a)&&a.id===l)return r.push(a),r}else{if(d[2])return k.apply(r,t.getElementsByTagName(n)),r;if((l=d[3])&&f.getElementsByClassName&&t.getElementsByClassName)return k.apply(r,t.getElementsByClassName(l)),r}if(f.qsa&&!lt[n+" "]&&(!o||!o.test(n))){if(1!==v)p=t,g=n;else if("object"!==t.nodeName.toLowerCase()){for((s=t.getAttribute("id"))?s=s.replace(hr,"\\$&"):t.setAttribute("id",s=e),y=ft(n),w=y.length,nt=yi.test(s)?"#"+s:"[id='"+s+"']";w--;)y[w]=nt+" "+yt(y[w]);g=y.join(",");p=gt.test(n)&&ii(t.parentNode)||t}if(g)try{return k.apply(r,p.querySelectorAll(g)),r}catch(tt){}finally{s===e&&t.removeAttribute("id")}}}return si(n.replace(at,"$1"),t,r,u)}function ni(){function n(r,u){return i.push(r+" ")>t.cacheLength&&delete n[i.shift()],n[r+" "]=u}var i=[];return n}function l(n){return n[e]=!0,n}function a(n){var t=i.createElement("div");try{return!!n(t)}catch(r){return!1}finally{t.parentNode&&t.parentNode.removeChild(t);t=null}}function ti(n,i){for(var r=n.split("|"),u=r.length;u--;)t.attrHandle[r[u]]=i}function wi(n,t){var i=t&&n,r=i&&1===n.nodeType&&1===t.nodeType&&(~t.sourceIndex||li)-(~n.sourceIndex||li);if(r)return r;if(i)while(i=i.nextSibling)if(i===t)return-1;return n?1:-1}function cr(n){return function(t){var i=t.nodeName.toLowerCase();return"input"===i&&t.type===n}}function lr(n){return function(t){var i=t.nodeName.toLowerCase();return("input"===i||"button"===i)&&t.type===n}}function it(n){return l(function(t){return t=+t,l(function(i,r){for(var u,f=n([],i.length,t),e=f.length;e--;)i[u=f[e]]&&(i[u]=!(r[u]=i[u]))})})}function ii(n){return n&&"undefined"!=typeof n.getElementsByTagName&&n}function bi(){}function yt(n){for(var t=0,r=n.length,i="";r>t;t++)i+=n[t].value;return i}function ri(n,t,i){var r=t.dir,u=i&&"parentNode"===r,f=ki++;return t.first?function(t,i,f){while(t=t[r])if(1===t.nodeType||u)return n(t,i,f)}:function(t,i,o){var s,h,c,l=[v,f];if(o){while(t=t[r])if((1===t.nodeType||u)&&n(t,i,o))return!0}else while(t=t[r])if(1===t.nodeType||u){if(c=t[e]||(t[e]={}),h=c[t.uniqueID]||(c[t.uniqueID]={}),(s=h[r])&&s[0]===v&&s[1]===f)return l[2]=s[2];if(h[r]=l,l[2]=n(t,i,o))return!0}}}function ui(n){return n.length>1?function(t,i,r){for(var u=n.length;u--;)if(!n[u](t,i,r))return!1;return!0}:n[0]}function ar(n,t,i){for(var r=0,f=t.length;f>r;r++)u(n,t[r],i);return i}function pt(n,t,i,r,u){for(var e,o=[],f=0,s=n.length,h=null!=t;s>f;f++)(e=n[f])&&(i&&!i(e,r,u)||(o.push(e),h&&t.push(f)));return o}function fi(n,t,i,r,u,f){return r&&!r[e]&&(r=fi(r)),u&&!u[e]&&(u=fi(u,f)),l(function(f,e,o,s){var l,c,a,p=[],y=[],w=e.length,b=f||ar(t||"*",o.nodeType?[o]:o,[]),v=!n||!f&&t?b:pt(b,p,n,o,s),h=i?u||(f?n:w||r)?[]:e:v;if(i&&i(v,h,o,s),r)for(l=pt(h,y),r(l,[],o,s),c=l.length;c--;)(a=l[c])&&(h[y[c]]=!(v[y[c]]=a));if(f){if(u||n){if(u){for(l=[],c=h.length;c--;)(a=h[c])&&l.push(v[c]=a);u(null,h=[],l,s)}for(c=h.length;c--;)(a=h[c])&&(l=u?nt(f,a):p[c])>-1&&(f[l]=!(e[l]=a))}}else h=pt(h===e?h.splice(w,h.length):h),u?u(null,e,h,s):k.apply(e,h)})}function ei(n){for(var o,u,r,s=n.length,h=t.relative[n[0].type],c=h||t.relative[" "],i=h?1:0,l=ri(function(n){return n===o},c,!0),a=ri(function(n){return nt(o,n)>-1},c,!0),f=[function(n,t,i){var r=!h&&(i||t!==ht)||((o=t).nodeType?l(n,t,i):a(n,t,i));return o=null,r}];s>i;i++)if(u=t.relative[n[i].type])f=[ri(ui(f),u)];else{if(u=t.filter[n[i].type].apply(null,n[i].matches),u[e]){for(r=++i;s>r;r++)if(t.relative[n[r].type])break;return fi(i>1&&ui(f),i>1&&yt(n.slice(0,i-1).concat({value:" "===n[i-2].type?"*":""})).replace(at,"$1"),u,r>i&&ei(n.slice(i,r)),s>r&&ei(n=n.slice(r)),s>r&&yt(n))}f.push(u)}return ui(f)}function vr(n,r){var f=r.length>0,e=n.length>0,o=function(o,s,c,l,a){var y,nt,d,g=0,p="0",tt=o&&[],w=[],it=ht,rt=o||e&&t.find.TAG("*",a),ut=v+=null==it?1:Math.random()||.1,ft=rt.length;for(a&&(ht=s===i||s||a);p!==ft&&null!=(y=rt[p]);p++){if(e&&y){for(nt=0,s||y.ownerDocument===i||(b(y),c=!h);d=n[nt++];)if(d(y,s||i,c)){l.push(y);break}a&&(v=ut)}f&&((y=!d&&y)&&g--,o&&tt.push(y))}if(g+=p,f&&p!==g){for(nt=0;d=r[nt++];)d(tt,w,s,c);if(o){if(g>0)while(p--)tt[p]||w[p]||(w[p]=gi.call(l));w=pt(w)}k.apply(l,w);a&&!o&&w.length>0&&g+r.length>1&&u.uniqueSort(l)}return a&&(v=ut,ht=it),tt};return f?l(o):o}var rt,f,t,st,oi,ft,wt,si,ht,w,ut,b,i,s,h,o,d,ct,et,e="sizzle"+1*new Date,c=n.document,v=0,ki=0,hi=ni(),ci=ni(),lt=ni(),bt=function(n,t){return n===t&&(ut=!0),0},li=-2147483648,di={}.hasOwnProperty,g=[],gi=g.pop,nr=g.push,k=g.push,ai=g.slice,nt=function(n,t){for(var i=0,r=n.length;r>i;i++)if(n[i]===t)return i;return-1},kt="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",r="[\\x20\\t\\r\\n\\f]",tt="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",vi="\\["+r+"*("+tt+")(?:"+r+"*([*^$|!~]?=)"+r+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+tt+"))|)"+r+"*\\]",dt=":("+tt+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+vi+")*)|.*)\\)|)",tr=new RegExp(r+"+","g"),at=new RegExp("^"+r+"+|((?:^|[^\\\\])(?:\\\\.)*)"+r+"+$","g"),ir=new RegExp("^"+r+"*,"+r+"*"),rr=new RegExp("^"+r+"*([>+~]|"+r+")"+r+"*"),ur=new RegExp("="+r+"*([^\\]'\"]*?)"+r+"*\\]","g"),fr=new RegExp(dt),yi=new RegExp("^"+tt+"$"),vt={ID:new RegExp("^#("+tt+")"),CLASS:new RegExp("^\\.("+tt+")"),TAG:new RegExp("^("+tt+"|[*])"),ATTR:new RegExp("^"+vi),PSEUDO:new RegExp("^"+dt),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+r+"*(even|odd|(([+-]|)(\\d*)n|)"+r+"*(?:([+-]|)"+r+"*(\\d+)|))"+r+"*\\)|)","i"),bool:new RegExp("^(?:"+kt+")$","i"),needsContext:new RegExp("^"+r+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+r+"*((?:-\\d)?\\d*)"+r+"*\\)|)(?=[^-]|$)","i")},er=/^(?:input|select|textarea|button)$/i,or=/^h\d$/i,ot=/^[^{]+\{\s*\[native \w/,sr=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,gt=/[+~]/,hr=/'|\\/g,y=new RegExp("\\\\([\\da-f]{1,6}"+r+"?|("+r+")|.)","ig"),p=function(n,t,i){var r="0x"+t-65536;return r!==r||i?t:0>r?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},pi=function(){b()};try{k.apply(g=ai.call(c.childNodes),c.childNodes);g[c.childNodes.length].nodeType}catch(yr){k={apply:g.length?function(n,t){nr.apply(n,ai.call(t))}:function(n,t){for(var i=n.length,r=0;n[i++]=t[r++];);n.length=i-1}}}f=u.support={};oi=u.isXML=function(n){var t=n&&(n.ownerDocument||n).documentElement;return t?"HTML"!==t.nodeName:!1};b=u.setDocument=function(n){var v,u,l=n?n.ownerDocument||n:c;return l!==i&&9===l.nodeType&&l.documentElement?(i=l,s=i.documentElement,h=!oi(i),(u=i.defaultView)&&u.top!==u&&(u.addEventListener?u.addEventListener("unload",pi,!1):u.attachEvent&&u.attachEvent("onunload",pi)),f.attributes=a(function(n){return n.className="i",!n.getAttribute("className")}),f.getElementsByTagName=a(function(n){return n.appendChild(i.createComment("")),!n.getElementsByTagName("*").length}),f.getElementsByClassName=ot.test(i.getElementsByClassName),f.getById=a(function(n){return s.appendChild(n).id=e,!i.getElementsByName||!i.getElementsByName(e).length}),f.getById?(t.find.ID=function(n,t){if("undefined"!=typeof t.getElementById&&h){var i=t.getElementById(n);return i?[i]:[]}},t.filter.ID=function(n){var t=n.replace(y,p);return function(n){return n.getAttribute("id")===t}}):(delete t.find.ID,t.filter.ID=function(n){var t=n.replace(y,p);return function(n){var i="undefined"!=typeof n.getAttributeNode&&n.getAttributeNode("id");return i&&i.value===t}}),t.find.TAG=f.getElementsByTagName?function(n,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(n):f.qsa?t.querySelectorAll(n):void 0}:function(n,t){var i,r=[],f=0,u=t.getElementsByTagName(n);if("*"===n){while(i=u[f++])1===i.nodeType&&r.push(i);return r}return u},t.find.CLASS=f.getElementsByClassName&&function(n,t){if("undefined"!=typeof t.getElementsByClassName&&h)return t.getElementsByClassName(n)},d=[],o=[],(f.qsa=ot.test(i.querySelectorAll))&&(a(function(n){s.appendChild(n).innerHTML="<a id='"+e+"'><\/a><select id='"+e+"-\r\\' msallowcapture=''><option selected=''><\/option><\/select>";n.querySelectorAll("[msallowcapture^='']").length&&o.push("[*^$]="+r+"*(?:''|\"\")");n.querySelectorAll("[selected]").length||o.push("\\["+r+"*(?:value|"+kt+")");n.querySelectorAll("[id~="+e+"-]").length||o.push("~=");n.querySelectorAll(":checked").length||o.push(":checked");n.querySelectorAll("a#"+e+"+*").length||o.push(".#.+[+~]")}),a(function(n){var t=i.createElement("input");t.setAttribute("type","hidden");n.appendChild(t).setAttribute("name","D");n.querySelectorAll("[name=d]").length&&o.push("name"+r+"*[*^$|!~]?=");n.querySelectorAll(":enabled").length||o.push(":enabled",":disabled");n.querySelectorAll("*,:x");o.push(",.*:")})),(f.matchesSelector=ot.test(ct=s.matches||s.webkitMatchesSelector||s.mozMatchesSelector||s.oMatchesSelector||s.msMatchesSelector))&&a(function(n){f.disconnectedMatch=ct.call(n,"div");ct.call(n,"[s!='']:x");d.push("!=",dt)}),o=o.length&&new RegExp(o.join("|")),d=d.length&&new RegExp(d.join("|")),v=ot.test(s.compareDocumentPosition),et=v||ot.test(s.contains)?function(n,t){var r=9===n.nodeType?n.documentElement:n,i=t&&t.parentNode;return n===i||!(!i||1!==i.nodeType||!(r.contains?r.contains(i):n.compareDocumentPosition&&16&n.compareDocumentPosition(i)))}:function(n,t){if(t)while(t=t.parentNode)if(t===n)return!0;return!1},bt=v?function(n,t){if(n===t)return ut=!0,0;var r=!n.compareDocumentPosition-!t.compareDocumentPosition;return r?r:(r=(n.ownerDocument||n)===(t.ownerDocument||t)?n.compareDocumentPosition(t):1,1&r||!f.sortDetached&&t.compareDocumentPosition(n)===r?n===i||n.ownerDocument===c&&et(c,n)?-1:t===i||t.ownerDocument===c&&et(c,t)?1:w?nt(w,n)-nt(w,t):0:4&r?-1:1)}:function(n,t){if(n===t)return ut=!0,0;var r,u=0,o=n.parentNode,s=t.parentNode,f=[n],e=[t];if(!o||!s)return n===i?-1:t===i?1:o?-1:s?1:w?nt(w,n)-nt(w,t):0;if(o===s)return wi(n,t);for(r=n;r=r.parentNode;)f.unshift(r);for(r=t;r=r.parentNode;)e.unshift(r);while(f[u]===e[u])u++;return u?wi(f[u],e[u]):f[u]===c?-1:e[u]===c?1:0},i):i};u.matches=function(n,t){return u(n,null,null,t)};u.matchesSelector=function(n,t){if((n.ownerDocument||n)!==i&&b(n),t=t.replace(ur,"='$1']"),f.matchesSelector&&h&&!lt[t+" "]&&(!d||!d.test(t))&&(!o||!o.test(t)))try{var r=ct.call(n,t);if(r||f.disconnectedMatch||n.document&&11!==n.document.nodeType)return r}catch(e){}return u(t,i,null,[n]).length>0};u.contains=function(n,t){return(n.ownerDocument||n)!==i&&b(n),et(n,t)};u.attr=function(n,r){(n.ownerDocument||n)!==i&&b(n);var e=t.attrHandle[r.toLowerCase()],u=e&&di.call(t.attrHandle,r.toLowerCase())?e(n,r,!h):void 0;return void 0!==u?u:f.attributes||!h?n.getAttribute(r):(u=n.getAttributeNode(r))&&u.specified?u.value:null};u.error=function(n){throw new Error("Syntax error, unrecognized expression: "+n);};u.uniqueSort=function(n){var r,u=[],t=0,i=0;if(ut=!f.detectDuplicates,w=!f.sortStable&&n.slice(0),n.sort(bt),ut){while(r=n[i++])r===n[i]&&(t=u.push(i));while(t--)n.splice(u[t],1)}return w=null,n};st=u.getText=function(n){var r,i="",u=0,t=n.nodeType;if(t){if(1===t||9===t||11===t){if("string"==typeof n.textContent)return n.textContent;for(n=n.firstChild;n;n=n.nextSibling)i+=st(n)}else if(3===t||4===t)return n.nodeValue}else while(r=n[u++])i+=st(r);return i};t=u.selectors={cacheLength:50,createPseudo:l,match:vt,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(n){return n[1]=n[1].replace(y,p),n[3]=(n[3]||n[4]||n[5]||"").replace(y,p),"~="===n[2]&&(n[3]=" "+n[3]+" "),n.slice(0,4)},CHILD:function(n){return n[1]=n[1].toLowerCase(),"nth"===n[1].slice(0,3)?(n[3]||u.error(n[0]),n[4]=+(n[4]?n[5]+(n[6]||1):2*("even"===n[3]||"odd"===n[3])),n[5]=+(n[7]+n[8]||"odd"===n[3])):n[3]&&u.error(n[0]),n},PSEUDO:function(n){var i,t=!n[6]&&n[2];return vt.CHILD.test(n[0])?null:(n[3]?n[2]=n[4]||n[5]||"":t&&fr.test(t)&&(i=ft(t,!0))&&(i=t.indexOf(")",t.length-i)-t.length)&&(n[0]=n[0].slice(0,i),n[2]=t.slice(0,i)),n.slice(0,3))}},filter:{TAG:function(n){var t=n.replace(y,p).toLowerCase();return"*"===n?function(){return!0}:function(n){return n.nodeName&&n.nodeName.toLowerCase()===t}},CLASS:function(n){var t=hi[n+" "];return t||(t=new RegExp("(^|"+r+")"+n+"("+r+"|$)"))&&hi(n,function(n){return t.test("string"==typeof n.className&&n.className||"undefined"!=typeof n.getAttribute&&n.getAttribute("class")||"")})},ATTR:function(n,t,i){return function(r){var f=u.attr(r,n);return null==f?"!="===t:t?(f+="","="===t?f===i:"!="===t?f!==i:"^="===t?i&&0===f.indexOf(i):"*="===t?i&&f.indexOf(i)>-1:"$="===t?i&&f.slice(-i.length)===i:"~="===t?(" "+f.replace(tr," ")+" ").indexOf(i)>-1:"|="===t?f===i||f.slice(0,i.length+1)===i+"-":!1):!0}},CHILD:function(n,t,i,r,u){var s="nth"!==n.slice(0,3),o="last"!==n.slice(-4),f="of-type"===t;return 1===r&&0===u?function(n){return!!n.parentNode}:function(t,i,h){var p,w,y,c,a,b,k=s!==o?"nextSibling":"previousSibling",d=t.parentNode,nt=f&&t.nodeName.toLowerCase(),g=!h&&!f,l=!1;if(d){if(s){while(k){for(c=t;c=c[k];)if(f?c.nodeName.toLowerCase()===nt:1===c.nodeType)return!1;b=k="only"===n&&!b&&"nextSibling"}return!0}if(b=[o?d.firstChild:d.lastChild],o&&g){for(c=d,y=c[e]||(c[e]={}),w=y[c.uniqueID]||(y[c.uniqueID]={}),p=w[n]||[],a=p[0]===v&&p[1],l=a&&p[2],c=a&&d.childNodes[a];c=++a&&c&&c[k]||(l=a=0)||b.pop();)if(1===c.nodeType&&++l&&c===t){w[n]=[v,a,l];break}}else if(g&&(c=t,y=c[e]||(c[e]={}),w=y[c.uniqueID]||(y[c.uniqueID]={}),p=w[n]||[],a=p[0]===v&&p[1],l=a),l===!1)while(c=++a&&c&&c[k]||(l=a=0)||b.pop())if((f?c.nodeName.toLowerCase()===nt:1===c.nodeType)&&++l&&(g&&(y=c[e]||(c[e]={}),w=y[c.uniqueID]||(y[c.uniqueID]={}),w[n]=[v,l]),c===t))break;return l-=u,l===r||l%r==0&&l/r>=0}}},PSEUDO:function(n,i){var f,r=t.pseudos[n]||t.setFilters[n.toLowerCase()]||u.error("unsupported pseudo: "+n);return r[e]?r(i):r.length>1?(f=[n,n,"",i],t.setFilters.hasOwnProperty(n.toLowerCase())?l(function(n,t){for(var u,f=r(n,i),e=f.length;e--;)u=nt(n,f[e]),n[u]=!(t[u]=f[e])}):function(n){return r(n,0,f)}):r}},pseudos:{not:l(function(n){var t=[],r=[],i=wt(n.replace(at,"$1"));return i[e]?l(function(n,t,r,u){for(var e,o=i(n,null,u,[]),f=n.length;f--;)(e=o[f])&&(n[f]=!(t[f]=e))}):function(n,u,f){return t[0]=n,i(t,null,f,r),t[0]=null,!r.pop()}}),has:l(function(n){return function(t){return u(n,t).length>0}}),contains:l(function(n){return n=n.replace(y,p),function(t){return(t.textContent||t.innerText||st(t)).indexOf(n)>-1}}),lang:l(function(n){return yi.test(n||"")||u.error("unsupported lang: "+n),n=n.replace(y,p).toLowerCase(),function(t){var i;do if(i=h?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return i=i.toLowerCase(),i===n||0===i.indexOf(n+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var i=n.location&&n.location.hash;return i&&i.slice(1)===t.id},root:function(n){return n===s},focus:function(n){return n===i.activeElement&&(!i.hasFocus||i.hasFocus())&&!!(n.type||n.href||~n.tabIndex)},enabled:function(n){return n.disabled===!1},disabled:function(n){return n.disabled===!0},checked:function(n){var t=n.nodeName.toLowerCase();return"input"===t&&!!n.checked||"option"===t&&!!n.selected},selected:function(n){return n.parentNode&&n.parentNode.selectedIndex,n.selected===!0},empty:function(n){for(n=n.firstChild;n;n=n.nextSibling)if(n.nodeType<6)return!1;return!0},parent:function(n){return!t.pseudos.empty(n)},header:function(n){return or.test(n.nodeName)},input:function(n){return er.test(n.nodeName)},button:function(n){var t=n.nodeName.toLowerCase();return"input"===t&&"button"===n.type||"button"===t},text:function(n){var t;return"input"===n.nodeName.toLowerCase()&&"text"===n.type&&(null==(t=n.getAttribute("type"))||"text"===t.toLowerCase())},first:it(function(){return[0]}),last:it(function(n,t){return[t-1]}),eq:it(function(n,t,i){return[0>i?i+t:i]}),even:it(function(n,t){for(var i=0;t>i;i+=2)n.push(i);return n}),odd:it(function(n,t){for(var i=1;t>i;i+=2)n.push(i);return n}),lt:it(function(n,t,i){for(var r=0>i?i+t:i;--r>=0;)n.push(r);return n}),gt:it(function(n,t,i){for(var r=0>i?i+t:i;++r<t;)n.push(r);return n})}};t.pseudos.nth=t.pseudos.eq;for(rt in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})t.pseudos[rt]=cr(rt);for(rt in{submit:!0,reset:!0})t.pseudos[rt]=lr(rt);return bi.prototype=t.filters=t.pseudos,t.setFilters=new bi,ft=u.tokenize=function(n,i){var e,f,s,o,r,h,c,l=ci[n+" "];if(l)return i?0:l.slice(0);for(r=n,h=[],c=t.preFilter;r;){(!e||(f=ir.exec(r)))&&(f&&(r=r.slice(f[0].length)||r),h.push(s=[]));e=!1;(f=rr.exec(r))&&(e=f.shift(),s.push({value:e,type:f[0].replace(at," ")}),r=r.slice(e.length));for(o in t.filter)(f=vt[o].exec(r))&&(!c[o]||(f=c[o](f)))&&(e=f.shift(),s.push({value:e,type:o,matches:f}),r=r.slice(e.length));if(!e)break}return i?r.length:r?u.error(n):ci(n,h).slice(0)},wt=u.compile=function(n,t){var r,u=[],f=[],i=lt[n+" "];if(!i){for(t||(t=ft(n)),r=t.length;r--;)i=ei(t[r]),i[e]?u.push(i):f.push(i);i=lt(n,vr(f,u));i.selector=n}return i},si=u.select=function(n,i,r,u){var s,e,o,a,v,l="function"==typeof n&&n,c=!u&&ft(n=l.selector||n);if(r=r||[],1===c.length){if(e=c[0]=c[0].slice(0),e.length>2&&"ID"===(o=e[0]).type&&f.getById&&9===i.nodeType&&h&&t.relative[e[1].type]){if(i=(t.find.ID(o.matches[0].replace(y,p),i)||[])[0],!i)return r;l&&(i=i.parentNode);n=n.slice(e.shift().value.length)}for(s=vt.needsContext.test(n)?0:e.length;s--;){if(o=e[s],t.relative[a=o.type])break;if((v=t.find[a])&&(u=v(o.matches[0].replace(y,p),gt.test(e[0].type)&&ii(i.parentNode)||i))){if(e.splice(s,1),n=u.length&&yt(e),!n)return k.apply(r,u),r;break}}}return(l||wt(n,c))(u,i,!h,r,!i||gt.test(n)&&ii(i.parentNode)||i),r},f.sortStable=e.split("").sort(bt).join("")===e,f.detectDuplicates=!!ut,b(),f.sortDetached=a(function(n){return 1&n.compareDocumentPosition(i.createElement("div"))}),a(function(n){return n.innerHTML="<a href='#'><\/a>","#"===n.firstChild.getAttribute("href")})||ti("type|href|height|width",function(n,t,i){if(!i)return n.getAttribute(t,"type"===t.toLowerCase()?1:2)}),f.attributes&&a(function(n){return n.innerHTML="<input/>",n.firstChild.setAttribute("value",""),""===n.firstChild.getAttribute("value")})||ti("value",function(n,t,i){if(!i&&"input"===n.nodeName.toLowerCase())return n.defaultValue}),a(function(n){return null==n.getAttribute("disabled")})||ti(kt,function(n,t,i){var r;if(!i)return n[t]===!0?t.toLowerCase():(r=n.getAttributeNode(t))&&r.specified?r.value:null}),u}(n);i.find=w;i.expr=w.selectors;i.expr[":"]=i.expr.pseudos;i.uniqueSort=i.unique=w.uniqueSort;i.text=w.getText;i.isXMLDoc=w.isXML;i.contains=w.contains;var it=function(n,t,r){for(var u=[],f=void 0!==r;(n=n[t])&&9!==n.nodeType;)if(1===n.nodeType){if(f&&i(n).is(r))break;u.push(n)}return u},lr=function(n,t){for(var i=[];n;n=n.nextSibling)1===n.nodeType&&n!==t&&i.push(n);return i},ar=i.expr.match.needsContext,vr=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,pe=/^.[^:#\[\.,]*$/;i.filter=function(n,t,r){var u=t[0];return r&&(n=":not("+n+")"),1===t.length&&1===u.nodeType?i.find.matchesSelector(u,n)?[u]:[]:i.find.matches(n,i.grep(t,function(n){return 1===n.nodeType}))};i.fn.extend({find:function(n){var t,r=[],u=this,f=u.length;if("string"!=typeof n)return this.pushStack(i(n).filter(function(){for(t=0;f>t;t++)if(i.contains(u[t],this))return!0}));for(t=0;f>t;t++)i.find(n,u[t],r);return r=this.pushStack(f>1?i.unique(r):r),r.selector=this.selector?this.selector+" "+n:n,r},filter:function(n){return this.pushStack(ri(this,n||[],!1))},not:function(n){return this.pushStack(ri(this,n||[],!0))},is:function(n){return!!ri(this,"string"==typeof n&&ar.test(n)?i(n):n||[],!1).length}});yr=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;pr=i.fn.init=function(n,t,r){var f,e;if(!n)return this;if(r=r||ui,"string"==typeof n){if(f="<"===n.charAt(0)&&">"===n.charAt(n.length-1)&&n.length>=3?[null,n,null]:yr.exec(n),!f||!f[1]&&t)return!t||t.jquery?(t||r).find(n):this.constructor(t).find(n);if(f[1]){if(t=t instanceof i?t[0]:t,i.merge(this,i.parseHTML(f[1],t&&t.nodeType?t.ownerDocument||t:u,!0)),vr.test(f[1])&&i.isPlainObject(t))for(f in t)i.isFunction(this[f])?this[f](t[f]):this.attr(f,t[f]);return this}if(e=u.getElementById(f[2]),e&&e.parentNode){if(e.id!==f[2])return ui.find(n);this.length=1;this[0]=e}return this.context=u,this.selector=n,this}return n.nodeType?(this.context=this[0]=n,this.length=1,this):i.isFunction(n)?"undefined"!=typeof r.ready?r.ready(n):n(i):(void 0!==n.selector&&(this.selector=n.selector,this.context=n.context),i.makeArray(n,this))};pr.prototype=i.fn;ui=i(u);wr=/^(?:parents|prev(?:Until|All))/;br={children:!0,contents:!0,next:!0,prev:!0};i.fn.extend({has:function(n){var t,r=i(n,this),u=r.length;return this.filter(function(){for(t=0;u>t;t++)if(i.contains(this,r[t]))return!0})},closest:function(n,t){for(var r,f=0,o=this.length,u=[],e=ar.test(n)||"string"!=typeof n?i(n,t||this.context):0;o>f;f++)for(r=this[f];r&&r!==t;r=r.parentNode)if(r.nodeType<11&&(e?e.index(r)>-1:1===r.nodeType&&i.find.matchesSelector(r,n))){u.push(r);break}return this.pushStack(u.length>1?i.uniqueSort(u):u)},index:function(n){return n?"string"==typeof n?i.inArray(this[0],i(n)):i.inArray(n.jquery?n[0]:n,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(n,t){return this.pushStack(i.uniqueSort(i.merge(this.get(),i(n,t))))},addBack:function(n){return this.add(null==n?this.prevObject:this.prevObject.filter(n))}});i.each({parent:function(n){var t=n.parentNode;return t&&11!==t.nodeType?t:null},parents:function(n){return it(n,"parentNode")},parentsUntil:function(n,t,i){return it(n,"parentNode",i)},next:function(n){return kr(n,"nextSibling")},prev:function(n){return kr(n,"previousSibling")},nextAll:function(n){return it(n,"nextSibling")},prevAll:function(n){return it(n,"previousSibling")},nextUntil:function(n,t,i){return it(n,"nextSibling",i)},prevUntil:function(n,t,i){return it(n,"previousSibling",i)},siblings:function(n){return lr((n.parentNode||{}).firstChild,n)},children:function(n){return lr(n.firstChild)},contents:function(n){return i.nodeName(n,"iframe")?n.contentDocument||n.contentWindow.document:i.merge([],n.childNodes)}},function(n,t){i.fn[n]=function(r,u){var f=i.map(this,t,r);return"Until"!==n.slice(-5)&&(u=r),u&&"string"==typeof u&&(f=i.filter(u,f)),this.length>1&&(br[n]||(f=i.uniqueSort(f)),wr.test(n)&&(f=f.reverse())),this.pushStack(f)}});s=/\S+/g;i.Callbacks=function(n){n="string"==typeof n?we(n):i.extend({},n);var e,r,h,f,t=[],o=[],u=-1,c=function(){for(f=n.once,h=e=!0;o.length;u=-1)for(r=o.shift();++u<t.length;)t[u].apply(r[0],r[1])===!1&&n.stopOnFalse&&(u=t.length,r=!1);n.memory||(r=!1);e=!1;f&&(t=r?[]:"")},s={add:function(){return t&&(r&&!e&&(u=t.length-1,o.push(r)),function f(r){i.each(r,function(r,u){i.isFunction(u)?n.unique&&s.has(u)||t.push(u):u&&u.length&&"string"!==i.type(u)&&f(u)})}(arguments),r&&!e&&c()),this},remove:function(){return i.each(arguments,function(n,r){for(var f;(f=i.inArray(r,t,f))>-1;)t.splice(f,1),u>=f&&u--}),this},has:function(n){return n?i.inArray(n,t)>-1:t.length>0},empty:function(){return t&&(t=[]),this},disable:function(){return f=o=[],t=r="",this},disabled:function(){return!t},lock:function(){return f=!0,r||s.disable(),this},locked:function(){return!!f},fireWith:function(n,t){return f||(t=t||[],t=[n,t.slice?t.slice():t],o.push(t),e||c()),this},fire:function(){return s.fireWith(this,arguments),this},fired:function(){return!!h}};return s};i.extend({Deferred:function(n){var u=[["resolve","done",i.Callbacks("once memory"),"resolved"],["reject","fail",i.Callbacks("once memory"),"rejected"],["notify","progress",i.Callbacks("memory")]],f="pending",r={state:function(){return f},always:function(){return t.done(arguments).fail(arguments),this},then:function(){var n=arguments;return i.Deferred(function(f){i.each(u,function(u,e){var o=i.isFunction(n[u])&&n[u];t[e[1]](function(){var n=o&&o.apply(this,arguments);n&&i.isFunction(n.promise)?n.promise().progress(f.notify).done(f.resolve).fail(f.reject):f[e[0]+"With"](this===r?f.promise():this,o?[n]:arguments)})});n=null}).promise()},promise:function(n){return null!=n?i.extend(n,r):r}},t={};return r.pipe=r.then,i.each(u,function(n,i){var e=i[2],o=i[3];r[i[1]]=e.add;o&&e.add(function(){f=o},u[1^n][2].disable,u[2][2].lock);t[i[0]]=function(){return t[i[0]+"With"](this===t?r:this,arguments),this};t[i[0]+"With"]=e.fireWith}),r.promise(t),n&&n.call(t,t),t},when:function(n){var t=0,u=a.call(arguments),r=u.length,e=1!==r||n&&i.isFunction(n.promise)?r:0,f=1===e?n:i.Deferred(),h=function(n,t,i){return function(r){t[n]=this;i[n]=arguments.length>1?a.call(arguments):r;i===o?f.notifyWith(t,i):--e||f.resolveWith(t,i)}},o,c,s;if(r>1)for(o=new Array(r),c=new Array(r),s=new Array(r);r>t;t++)u[t]&&i.isFunction(u[t].promise)?u[t].promise().progress(h(t,c,o)).done(h(t,s,u)).fail(f.reject):--e;return e||f.resolveWith(s,u),f.promise()}});i.fn.ready=function(n){return i.ready.promise().done(n),this};i.extend({isReady:!1,readyWait:1,holdReady:function(n){n?i.readyWait++:i.ready(!0)},ready:function(n){(n===!0?--i.readyWait:i.isReady)||(i.isReady=!0,n!==!0&&--i.readyWait>0||(at.resolveWith(u,[i]),i.fn.triggerHandler&&(i(u).triggerHandler("ready"),i(u).off("ready"))))}});i.ready.promise=function(t){if(!at)if(at=i.Deferred(),"complete"!==u.readyState&&("loading"===u.readyState||u.documentElement.doScroll))if(u.addEventListener)u.addEventListener("DOMContentLoaded",v),n.addEventListener("load",v);else{u.attachEvent("onreadystatechange",v);n.attachEvent("onload",v);var r=!1;try{r=null==n.frameElement&&u.documentElement}catch(e){}r&&r.doScroll&&!function f(){if(!i.isReady){try{r.doScroll("left")}catch(t){return n.setTimeout(f,50)}dr();i.ready()}}()}else n.setTimeout(i.ready);return at.promise(t)};i.ready.promise();for(gr in i(r))break;r.ownFirst="0"===gr;r.inlineBlockNeedsLayout=!1;i(function(){var f,t,n,i;n=u.getElementsByTagName("body")[0];n&&n.style&&(t=u.createElement("div"),i=u.createElement("div"),i.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(i).appendChild(t),"undefined"!=typeof t.style.zoom&&(t.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",r.inlineBlockNeedsLayout=f=3===t.offsetWidth,f&&(n.style.zoom=1)),n.removeChild(i))}),function(){var n=u.createElement("div");r.deleteExpando=!0;try{delete n.test}catch(t){r.deleteExpando=!1}n=null}();var ot=function(n){var t=i.noData[(n.nodeName+" ").toLowerCase()],r=+n.nodeType||1;return 1!==r&&9!==r?!1:!t||t!==!0&&n.getAttribute("classid")===t},be=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ke=/([A-Z])/g;i.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(n){return n=n.nodeType?i.cache[n[i.expando]]:n[i.expando],!!n&&!fi(n)},data:function(n,t,i){return tu(n,t,i)},removeData:function(n,t){return iu(n,t)},_data:function(n,t,i){return tu(n,t,i,!0)},_removeData:function(n,t){return iu(n,t,!0)}});i.fn.extend({data:function(n,t){var f,u,e,r=this[0],o=r&&r.attributes;if(void 0===n){if(this.length&&(e=i.data(r),1===r.nodeType&&!i._data(r,"parsedAttrs"))){for(f=o.length;f--;)o[f]&&(u=o[f].name,0===u.indexOf("data-")&&(u=i.camelCase(u.slice(5)),nu(r,u,e[u])));i._data(r,"parsedAttrs",!0)}return e}return"object"==typeof n?this.each(function(){i.data(this,n)}):arguments.length>1?this.each(function(){i.data(this,n,t)}):r?nu(r,n,i.data(r,n)):void 0},removeData:function(n){return this.each(function(){i.removeData(this,n)})}});i.extend({queue:function(n,t,r){var u;if(n)return(t=(t||"fx")+"queue",u=i._data(n,t),r&&(!u||i.isArray(r)?u=i._data(n,t,i.makeArray(r)):u.push(r)),u||[])},dequeue:function(n,t){t=t||"fx";var r=i.queue(n,t),e=r.length,u=r.shift(),f=i._queueHooks(n,t),o=function(){i.dequeue(n,t)};"inprogress"===u&&(u=r.shift(),e--);u&&("fx"===t&&r.unshift("inprogress"),delete f.stop,u.call(n,o,f));!e&&f&&f.empty.fire()},_queueHooks:function(n,t){var r=t+"queueHooks";return i._data(n,r)||i._data(n,r,{empty:i.Callbacks("once memory").add(function(){i._removeData(n,t+"queue");i._removeData(n,r)})})}});i.fn.extend({queue:function(n,t){var r=2;return"string"!=typeof n&&(t=n,n="fx",r--),arguments.length<r?i.queue(this[0],n):void 0===t?this:this.each(function(){var r=i.queue(this,n,t);i._queueHooks(this,n);"fx"===n&&"inprogress"!==r[0]&&i.dequeue(this,n)})},dequeue:function(n){return this.each(function(){i.dequeue(this,n)})},clearQueue:function(n){return this.queue(n||"fx",[])},promise:function(n,t){var r,f=1,e=i.Deferred(),u=this,o=this.length,s=function(){--f||e.resolveWith(u,[u])};for("string"!=typeof n&&(t=n,n=void 0),n=n||"fx";o--;)r=i._data(u[o],n+"queueHooks"),r&&r.empty&&(f++,r.empty.add(s));return s(),e.promise(t)}}),function(){var n;r.shrinkWrapBlocks=function(){if(null!=n)return n;n=!1;var t,i,r;return i=u.getElementsByTagName("body")[0],i&&i.style?(t=u.createElement("div"),r=u.createElement("div"),r.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",i.appendChild(r).appendChild(t),"undefined"!=typeof t.style.zoom&&(t.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1",t.appendChild(u.createElement("div")).style.width="5px",n=3!==t.offsetWidth),i.removeChild(r),n):void 0}}();var ei=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,oi=new RegExp("^(?:([+-])=|)("+ei+")([a-z%]*)$","i"),b=["Top","Right","Bottom","Left"],st=function(n,t){return n=t||n,"none"===i.css(n,"display")||!i.contains(n.ownerDocument,n)};var y=function(n,t,r,u,f,e,o){var s=0,c=n.length,h=null==r;if("object"===i.type(r)){f=!0;for(s in r)y(n,t,s,r[s],!0,e,o)}else if(void 0!==u&&(f=!0,i.isFunction(u)||(o=!0),h&&(o?(t.call(n,u),t=null):(h=t,t=function(n,t,r){return h.call(i(n),r)})),t))for(;c>s;s++)t(n[s],r,o?u:u.call(n[s],s,t(n[s],r)));return f?n:h?t.call(n):c?t(n[0],r):e},si=/^(?:checkbox|radio)$/i,uu=/<([\w:-]+)/,fu=/^$|\/(?:java|ecma)script/i,hi=/^\s+/,eu="abbr|article|aside|audio|bdi|canvas|data|datalist|details|dialog|figcaption|figure|footer|header|hgroup|main|mark|meter|nav|output|picture|progress|section|summary|template|time|video";!function(){var n=u.createElement("div"),f=u.createDocumentFragment(),t=u.createElement("input");n.innerHTML="  <link/><table><\/table><a href='/a'>a<\/a><input type='checkbox'/>";r.leadingWhitespace=3===n.firstChild.nodeType;r.tbody=!n.getElementsByTagName("tbody").length;r.htmlSerialize=!!n.getElementsByTagName("link").length;r.html5Clone="<:nav><\/:nav>"!==u.createElement("nav").cloneNode(!0).outerHTML;t.type="checkbox";t.checked=!0;f.appendChild(t);r.appendChecked=t.checked;n.innerHTML="<textarea>x<\/textarea>";r.noCloneChecked=!!n.cloneNode(!0).lastChild.defaultValue;f.appendChild(n);t=u.createElement("input");t.setAttribute("type","radio");t.setAttribute("checked","checked");t.setAttribute("name","t");n.appendChild(t);r.checkClone=n.cloneNode(!0).cloneNode(!0).lastChild.checked;r.noCloneEvent=!!n.addEventListener;n[i.expando]=1;r.attributes=!n.getAttribute(i.expando)}();o={option:[1,"<select multiple='multiple'>","<\/select>"],legend:[1,"<fieldset>","<\/fieldset>"],area:[1,"<map>","<\/map>"],param:[1,"<object>","<\/object>"],thead:[1,"<table>","<\/table>"],tr:[2,"<table><tbody>","<\/tbody><\/table>"],col:[2,"<table><tbody><\/tbody><colgroup>","<\/colgroup><\/table>"],td:[3,"<table><tbody><tr>","<\/tr><\/tbody><\/table>"],_default:r.htmlSerialize?[0,"",""]:[1,"X<div>","<\/div>"]};o.optgroup=o.option;o.tbody=o.tfoot=o.colgroup=o.caption=o.thead;o.th=o.td;su=/<|&#?\w+;/;li=/<tbody/i;!function(){var t,i,f=u.createElement("div");for(t in{submit:!0,change:!0,focusin:!0})i="on"+t,(r[t]=i in n)||(f.setAttribute(i,"t"),r[t]=f.attributes[i].expando===!1);f=null}();var ai=/^(?:input|select|textarea)$/i,ge=/^key/,no=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,cu=/^(?:focusinfocus|focusoutblur)$/,lu=/^([^.]*)(?:\.(.+)|)/;i.event={global:{},add:function(n,t,r,u,f){var p,v,w,y,o,h,c,l,e,b,k,a=i._data(n);if(a){for(r.handler&&(y=r,r=y.handler,f=y.selector),r.guid||(r.guid=i.guid++),(v=a.events)||(v=a.events={}),(h=a.handle)||(h=a.handle=function(n){if("undefined"!=typeof i&&(!n||i.event.triggered!==n.type))return i.event.dispatch.apply(h.elem,arguments)},h.elem=n),t=(t||"").match(s)||[""],w=t.length;w--;)p=lu.exec(t[w])||[],e=k=p[1],b=(p[2]||"").split(".").sort(),e&&(o=i.event.special[e]||{},e=(f?o.delegateType:o.bindType)||e,o=i.event.special[e]||{},c=i.extend({type:e,origType:k,data:u,handler:r,guid:r.guid,selector:f,needsContext:f&&i.expr.match.needsContext.test(f),namespace:b.join(".")},y),(l=v[e])||(l=v[e]=[],l.delegateCount=0,o.setup&&o.setup.call(n,u,b,h)!==!1||(n.addEventListener?n.addEventListener(e,h,!1):n.attachEvent&&n.attachEvent("on"+e,h))),o.add&&(o.add.call(n,c),c.handler.guid||(c.handler.guid=r.guid)),f?l.splice(l.delegateCount++,0,c):l.push(c),i.event.global[e]=!0);n=null}},remove:function(n,t,r,u,f){var y,o,h,b,p,a,c,l,e,w,k,v=i.hasData(n)&&i._data(n);if(v&&(a=v.events)){for(t=(t||"").match(s)||[""],p=t.length;p--;)if(h=lu.exec(t[p])||[],e=k=h[1],w=(h[2]||"").split(".").sort(),e){for(c=i.event.special[e]||{},e=(u?c.delegateType:c.bindType)||e,l=a[e]||[],h=h[2]&&new RegExp("(^|\\.)"+w.join("\\.(?:.*\\.|)")+"(\\.|$)"),b=y=l.length;y--;)o=l[y],!f&&k!==o.origType||r&&r.guid!==o.guid||h&&!h.test(o.namespace)||u&&u!==o.selector&&("**"!==u||!o.selector)||(l.splice(y,1),o.selector&&l.delegateCount--,c.remove&&c.remove.call(n,o));b&&!l.length&&(c.teardown&&c.teardown.call(n,w,v.handle)!==!1||i.removeEvent(n,e,v.handle),delete a[e])}else for(e in a)i.event.remove(n,e+t[p],r,u,!0);i.isEmptyObject(a)&&(delete v.handle,i._removeData(n,"events"))}},trigger:function(t,r,f,e){var l,a,o,p,c,h,w,y=[f||u],s=tt.call(t,"type")?t.type:t,v=tt.call(t,"namespace")?t.namespace.split("."):[];if(o=h=f=f||u,3!==f.nodeType&&8!==f.nodeType&&!cu.test(s+i.event.triggered)&&(s.indexOf(".")>-1&&(v=s.split("."),s=v.shift(),v.sort()),a=s.indexOf(":")<0&&"on"+s,t=t[i.expando]?t:new i.Event(s,"object"==typeof t&&t),t.isTrigger=e?2:3,t.namespace=v.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=f),r=null==r?[t]:i.makeArray(r,[t]),c=i.event.special[s]||{},e||!c.trigger||c.trigger.apply(f,r)!==!1)){if(!e&&!c.noBubble&&!i.isWindow(f)){for(p=c.delegateType||s,cu.test(p+s)||(o=o.parentNode);o;o=o.parentNode)y.push(o),h=o;h===(f.ownerDocument||u)&&y.push(h.defaultView||h.parentWindow||n)}for(w=0;(o=y[w++])&&!t.isPropagationStopped();)t.type=w>1?p:c.bindType||s,l=(i._data(o,"events")||{})[t.type]&&i._data(o,"handle"),l&&l.apply(o,r),l=a&&o[a],l&&l.apply&&ot(o)&&(t.result=l.apply(o,r),t.result===!1&&t.preventDefault());if(t.type=s,!e&&!t.isDefaultPrevented()&&(!c._default||c._default.apply(y.pop(),r)===!1)&&ot(f)&&a&&f[s]&&!i.isWindow(f)){h=f[a];h&&(f[a]=null);i.event.triggered=s;try{f[s]()}catch(b){}i.event.triggered=void 0;h&&(f[a]=h)}return t.result}},dispatch:function(n){n=i.event.fix(n);var e,o,f,r,t,s=[],h=a.call(arguments),c=(i._data(this,"events")||{})[n.type]||[],u=i.event.special[n.type]||{};if(h[0]=n,n.delegateTarget=this,!u.preDispatch||u.preDispatch.call(this,n)!==!1){for(s=i.event.handlers.call(this,n,c),e=0;(r=s[e++])&&!n.isPropagationStopped();)for(n.currentTarget=r.elem,o=0;(t=r.handlers[o++])&&!n.isImmediatePropagationStopped();)n.rnamespace&&!n.rnamespace.test(t.namespace)||(n.handleObj=t,n.data=t.data,f=((i.event.special[t.origType]||{}).handle||t.handler).apply(r.elem,h),void 0!==f&&(n.result=f)===!1&&(n.preventDefault(),n.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,n),n.result}},handlers:function(n,t){var e,u,f,o,h=[],s=t.delegateCount,r=n.target;if(s&&r.nodeType&&("click"!==n.type||isNaN(n.button)||n.button<1))for(;r!=this;r=r.parentNode||this)if(1===r.nodeType&&(r.disabled!==!0||"click"!==n.type)){for(u=[],e=0;s>e;e++)o=t[e],f=o.selector+" ",void 0===u[f]&&(u[f]=o.needsContext?i(f,this).index(r)>-1:i.find(f,this,null,[r]).length),u[f]&&u.push(o);u.length&&h.push({elem:r,handlers:u})}return s<t.length&&h.push({elem:this,handlers:t.slice(s)}),h},fix:function(n){if(n[i.expando])return n;var e,o,s,r=n.type,f=n,t=this.fixHooks[r];for(t||(this.fixHooks[r]=t=no.test(r)?this.mouseHooks:ge.test(r)?this.keyHooks:{}),s=t.props?this.props.concat(t.props):this.props,n=new i.Event(f),e=s.length;e--;)o=s[e],n[o]=f[o];return n.target||(n.target=f.srcElement||u),3===n.target.nodeType&&(n.target=n.target.parentNode),n.metaKey=!!n.metaKey,t.filter?t.filter(n,f):n},props:"altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(n,t){return null==n.which&&(n.which=null!=t.charCode?t.charCode:t.keyCode),n}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(n,t){var i,e,r,f=t.button,o=t.fromElement;return null==n.pageX&&null!=t.clientX&&(e=n.target.ownerDocument||u,r=e.documentElement,i=e.body,n.pageX=t.clientX+(r&&r.scrollLeft||i&&i.scrollLeft||0)-(r&&r.clientLeft||i&&i.clientLeft||0),n.pageY=t.clientY+(r&&r.scrollTop||i&&i.scrollTop||0)-(r&&r.clientTop||i&&i.clientTop||0)),!n.relatedTarget&&o&&(n.relatedTarget=o===n.target?t.toElement:o),n.which||void 0===f||(n.which=1&f?1:2&f?3:4&f?2:0),n}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==au()&&this.focus)try{return this.focus(),!1}catch(n){}},delegateType:"focusin"},blur:{trigger:function(){if(this===au()&&this.blur)return(this.blur(),!1)},delegateType:"focusout"},click:{trigger:function(){if(i.nodeName(this,"input")&&"checkbox"===this.type&&this.click)return(this.click(),!1)},_default:function(n){return i.nodeName(n.target,"a")}},beforeunload:{postDispatch:function(n){void 0!==n.result&&n.originalEvent&&(n.originalEvent.returnValue=n.result)}}},simulate:function(n,t,r){var u=i.extend(new i.Event,r,{type:n,isSimulated:!0});i.event.trigger(u,null,t);u.isDefaultPrevented()&&r.preventDefault()}};i.removeEvent=u.removeEventListener?function(n,t,i){n.removeEventListener&&n.removeEventListener(t,i)}:function(n,t,i){var r="on"+t;n.detachEvent&&("undefined"==typeof n[r]&&(n[r]=null),n.detachEvent(r,i))};i.Event=function(n,t){return this instanceof i.Event?(n&&n.type?(this.originalEvent=n,this.type=n.type,this.isDefaultPrevented=n.defaultPrevented||void 0===n.defaultPrevented&&n.returnValue===!1?vt:rt):this.type=n,t&&i.extend(this,t),this.timeStamp=n&&n.timeStamp||i.now(),void(this[i.expando]=!0)):new i.Event(n,t)};i.Event.prototype={constructor:i.Event,isDefaultPrevented:rt,isPropagationStopped:rt,isImmediatePropagationStopped:rt,preventDefault:function(){var n=this.originalEvent;this.isDefaultPrevented=vt;n&&(n.preventDefault?n.preventDefault():n.returnValue=!1)},stopPropagation:function(){var n=this.originalEvent;this.isPropagationStopped=vt;n&&!this.isSimulated&&(n.stopPropagation&&n.stopPropagation(),n.cancelBubble=!0)},stopImmediatePropagation:function(){var n=this.originalEvent;this.isImmediatePropagationStopped=vt;n&&n.stopImmediatePropagation&&n.stopImmediatePropagation();this.stopPropagation()}};i.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(n,t){i.event.special[n]={delegateType:t,bindType:t,handle:function(n){var u,f=this,r=n.relatedTarget,e=n.handleObj;return r&&(r===f||i.contains(f,r))||(n.type=e.origType,u=e.handler.apply(this,arguments),n.type=t),u}}});r.submit||(i.event.special.submit={setup:function(){return i.nodeName(this,"form")?!1:void i.event.add(this,"click._submit keypress._submit",function(n){var r=n.target,t=i.nodeName(r,"input")||i.nodeName(r,"button")?i.prop(r,"form"):void 0;t&&!i._data(t,"submit")&&(i.event.add(t,"submit._submit",function(n){n._submitBubble=!0}),i._data(t,"submit",!0))})},postDispatch:function(n){n._submitBubble&&(delete n._submitBubble,this.parentNode&&!n.isTrigger&&i.event.simulate("submit",this.parentNode,n))},teardown:function(){return i.nodeName(this,"form")?!1:void i.event.remove(this,"._submit")}});r.change||(i.event.special.change={setup:function(){return ai.test(this.nodeName)?("checkbox"!==this.type&&"radio"!==this.type||(i.event.add(this,"propertychange._change",function(n){"checked"===n.originalEvent.propertyName&&(this._justChanged=!0)}),i.event.add(this,"click._change",function(n){this._justChanged&&!n.isTrigger&&(this._justChanged=!1);i.event.simulate("change",this,n)})),!1):void i.event.add(this,"beforeactivate._change",function(n){var t=n.target;ai.test(t.nodeName)&&!i._data(t,"change")&&(i.event.add(t,"change._change",function(n){!this.parentNode||n.isSimulated||n.isTrigger||i.event.simulate("change",this.parentNode,n)}),i._data(t,"change",!0))})},handle:function(n){var t=n.target;if(this!==t||n.isSimulated||n.isTrigger||"radio"!==t.type&&"checkbox"!==t.type)return n.handleObj.handler.apply(this,arguments)},teardown:function(){return i.event.remove(this,"._change"),!ai.test(this.nodeName)}});r.focusin||i.each({focus:"focusin",blur:"focusout"},function(n,t){var r=function(n){i.event.simulate(t,n.target,i.event.fix(n))};i.event.special[t]={setup:function(){var u=this.ownerDocument||this,f=i._data(u,t);f||u.addEventListener(n,r,!0);i._data(u,t,(f||0)+1)},teardown:function(){var u=this.ownerDocument||this,f=i._data(u,t)-1;f?i._data(u,t,f):(u.removeEventListener(n,r,!0),i._removeData(u,t))}}});i.fn.extend({on:function(n,t,i,r){return vi(this,n,t,i,r)},one:function(n,t,i,r){return vi(this,n,t,i,r,1)},off:function(n,t,r){var u,f;if(n&&n.preventDefault&&n.handleObj)return u=n.handleObj,i(n.delegateTarget).off(u.namespace?u.origType+"."+u.namespace:u.origType,u.selector,u.handler),this;if("object"==typeof n){for(f in n)this.off(f,t,n[f]);return this}return t!==!1&&"function"!=typeof t||(r=t,t=void 0),r===!1&&(r=rt),this.each(function(){i.event.remove(this,n,r,t)})},trigger:function(n,t){return this.each(function(){i.event.trigger(n,t,this)})},triggerHandler:function(n,t){var r=this[0];if(r)return i.event.trigger(n,t,r,!0)}});var to=/ jQuery\d+="(?:null|\d+)"/g,vu=new RegExp("<(?:"+eu+")[\\s/>]","i"),io=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,ro=/<script|<style|<link/i,uo=/checked\s*(?:[^=]|=\s*.checked.)/i,fo=/^true\/(.*)/,eo=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,oo=ou(u),yi=oo.appendChild(u.createElement("div"));i.extend({htmlPrefilter:function(n){return n.replace(io,"<$1><\/$2>")},clone:function(n,t,u){var e,c,s,o,h,l=i.contains(n.ownerDocument,n);if(r.html5Clone||i.isXMLDoc(n)||!vu.test("<"+n.nodeName+">")?s=n.cloneNode(!0):(yi.innerHTML=n.outerHTML,yi.removeChild(s=yi.firstChild)),!(r.noCloneEvent&&r.noCloneChecked||1!==n.nodeType&&11!==n.nodeType||i.isXMLDoc(n)))for(e=f(s),h=f(n),o=0;null!=(c=h[o]);++o)e[o]&&so(c,e[o]);if(t)if(u)for(h=h||f(n),e=e||f(s),o=0;null!=(c=h[o]);o++)bu(c,e[o]);else bu(n,s);return e=f(s,"script"),e.length>0&&ci(e,!l&&f(n,"script")),e=h=c=null,s},cleanData:function(n,t){for(var u,e,f,o,l=0,s=i.expando,h=i.cache,a=r.attributes,v=i.event.special;null!=(u=n[l]);l++)if((t||ot(u))&&(f=u[s],o=f&&h[f])){if(o.events)for(e in o.events)v[e]?i.event.remove(u,e):i.removeEvent(u,e,o.handle);h[f]&&(delete h[f],a||"undefined"==typeof u.removeAttribute?u[s]=void 0:u.removeAttribute(s),c.push(f))}}});i.fn.extend({domManip:k,detach:function(n){return ku(this,n,!0)},remove:function(n){return ku(this,n)},text:function(n){return y(this,function(n){return void 0===n?i.text(this):this.empty().append((this[0]&&this[0].ownerDocument||u).createTextNode(n))},null,n,arguments.length)},append:function(){return k(this,arguments,function(n){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=yu(this,n);t.appendChild(n)}})},prepend:function(){return k(this,arguments,function(n){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=yu(this,n);t.insertBefore(n,t.firstChild)}})},before:function(){return k(this,arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this)})},after:function(){return k(this,arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling)})},empty:function(){for(var n,t=0;null!=(n=this[t]);t++){for(1===n.nodeType&&i.cleanData(f(n,!1));n.firstChild;)n.removeChild(n.firstChild);n.options&&i.nodeName(n,"select")&&(n.options.length=0)}return this},clone:function(n,t){return n=null==n?!1:n,t=null==t?n:t,this.map(function(){return i.clone(this,n,t)})},html:function(n){return y(this,function(n){var t=this[0]||{},u=0,e=this.length;if(void 0===n)return 1===t.nodeType?t.innerHTML.replace(to,""):void 0;if("string"==typeof n&&!ro.test(n)&&(r.htmlSerialize||!vu.test(n))&&(r.leadingWhitespace||!hi.test(n))&&!o[(uu.exec(n)||["",""])[1].toLowerCase()]){n=i.htmlPrefilter(n);try{for(;e>u;u++)t=this[u]||{},1===t.nodeType&&(i.cleanData(f(t,!1)),t.innerHTML=n);t=0}catch(s){}}t&&this.empty().append(n)},null,n,arguments.length)},replaceWith:function(){var n=[];return k(this,arguments,function(t){var r=this.parentNode;i.inArray(this,n)<0&&(i.cleanData(f(this)),r&&r.replaceChild(t,this))},n)}});i.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(n,t){i.fn[n]=function(n){for(var u,r=0,f=[],e=i(n),o=e.length-1;o>=r;r++)u=r===o?this:this.clone(!0),i(e[r])[t](u),ti.apply(f,u.get());return this.pushStack(f)}});pi={HTML:"block",BODY:"block"};var gu=/^margin/,pt=new RegExp("^("+ei+")(?!px)[a-z%]+$","i"),wi=function(n,t,i,r){var f,u,e={};for(u in t)e[u]=n.style[u],n.style[u]=t[u];f=i.apply(n,r||[]);for(u in t)n.style[u]=e[u];return f},nf=u.documentElement;!function(){var f,h,c,e,l,a,s=u.createElement("div"),t=u.createElement("div");if(t.style){t.style.cssText="float:left;opacity:.5";r.opacity="0.5"===t.style.opacity;r.cssFloat=!!t.style.cssFloat;t.style.backgroundClip="content-box";t.cloneNode(!0).style.backgroundClip="";r.clearCloneStyle="content-box"===t.style.backgroundClip;s=u.createElement("div");s.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute";t.innerHTML="";s.appendChild(t);r.boxSizing=""===t.style.boxSizing||""===t.style.MozBoxSizing||""===t.style.WebkitBoxSizing;i.extend(r,{reliableHiddenOffsets:function(){return null==f&&o(),e},boxSizingReliable:function(){return null==f&&o(),c},pixelMarginRight:function(){return null==f&&o(),h},pixelPosition:function(){return null==f&&o(),f},reliableMarginRight:function(){return null==f&&o(),l},reliableMarginLeft:function(){return null==f&&o(),a}});function o(){var i,r,o=u.documentElement;o.appendChild(s);t.style.cssText="-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%";f=c=a=!1;h=l=!0;n.getComputedStyle&&(r=n.getComputedStyle(t),f="1%"!==(r||{}).top,a="2px"===(r||{}).marginLeft,c="4px"===(r||{width:"4px"}).width,t.style.marginRight="50%",h="4px"===(r||{marginRight:"4px"}).marginRight,i=t.appendChild(u.createElement("div")),i.style.cssText=t.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",i.style.marginRight=i.style.width="0",t.style.width="1px",l=!parseFloat((n.getComputedStyle(i)||{}).marginRight),t.removeChild(i));t.style.display="none";e=0===t.getClientRects().length;e&&(t.style.display="",t.innerHTML="<table><tr><td><\/td><td>t<\/td><\/tr><\/table>",t.childNodes[0].style.borderCollapse="separate",i=t.getElementsByTagName("td"),i[0].style.cssText="margin:0;border:0;padding:0;display:none",e=0===i[0].offsetHeight,e&&(i[0].style.display="",i[1].style.display="none",e=0===i[0].offsetHeight));o.removeChild(s)}}}();tf=/^(top|right|bottom|left)$/;n.getComputedStyle?(d=function(t){var i=t.ownerDocument.defaultView;return i&&i.opener||(i=n),i.getComputedStyle(t)},p=function(n,t,u){var o,s,h,f,e=n.style;return u=u||d(n),f=u?u.getPropertyValue(t)||u[t]:void 0,""!==f&&void 0!==f||i.contains(n.ownerDocument,n)||(f=i.style(n,t)),u&&!r.pixelMarginRight()&&pt.test(f)&&gu.test(t)&&(o=e.width,s=e.minWidth,h=e.maxWidth,e.minWidth=e.maxWidth=e.width=f,f=u.width,e.width=o,e.minWidth=s,e.maxWidth=h),void 0===f?f:f+""}):nf.currentStyle&&(d=function(n){return n.currentStyle},p=function(n,t,i){var o,f,e,r,u=n.style;return i=i||d(n),r=i?i[t]:void 0,null==r&&u&&u[t]&&(r=u[t]),pt.test(r)&&!tf.test(t)&&(o=u.left,f=n.runtimeStyle,e=f&&f.left,e&&(f.left=n.currentStyle.left),u.left="fontSize"===t?"1em":r,r=u.pixelLeft+"px",u.left=o,e&&(f.left=e)),void 0===r?r:r+""||"auto"});var ki=/alpha\([^)]*\)/i,ho=/opacity\s*=\s*([^)]*)/i,co=/^(none|table(?!-c[ea]).+)/,lo=new RegExp("^("+ei+")(.*)$","i"),ao={position:"absolute",visibility:"hidden",display:"block"},rf={letterSpacing:"0",fontWeight:"400"},uf=["Webkit","O","Moz","ms"],ff=u.createElement("div").style;i.extend({cssHooks:{opacity:{get:function(n,t){if(t){var i=p(n,"opacity");return""===i?"1":i}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:r.cssFloat?"cssFloat":"styleFloat"},style:function(n,t,u,f){if(n&&3!==n.nodeType&&8!==n.nodeType&&n.style){var e,h,o,s=i.camelCase(t),c=n.style;if(t=i.cssProps[s]||(i.cssProps[s]=ef(s)||s),o=i.cssHooks[t]||i.cssHooks[s],void 0===u)return o&&"get"in o&&void 0!==(e=o.get(n,!1,f))?e:c[t];if(h=typeof u,"string"===h&&(e=oi.exec(u))&&e[1]&&(u=ru(n,t,e),h="number"),null!=u&&u===u&&("number"===h&&(u+=e&&e[3]||(i.cssNumber[s]?"":"px")),r.clearCloneStyle||""!==u||0!==t.indexOf("background")||(c[t]="inherit"),!(o&&"set"in o&&void 0===(u=o.set(n,u,f)))))try{c[t]=u}catch(l){}}},css:function(n,t,r,u){var s,f,o,e=i.camelCase(t);return t=i.cssProps[e]||(i.cssProps[e]=ef(e)||e),o=i.cssHooks[t]||i.cssHooks[e],o&&"get"in o&&(f=o.get(n,!0,r)),void 0===f&&(f=p(n,t,u)),"normal"===f&&t in rf&&(f=rf[t]),""===r||r?(s=parseFloat(f),r===!0||isFinite(s)?s||0:f):f}});i.each(["height","width"],function(n,t){i.cssHooks[t]={get:function(n,r,u){if(r)return co.test(i.css(n,"display"))&&0===n.offsetWidth?wi(n,ao,function(){return cf(n,t,u)}):cf(n,t,u)},set:function(n,u,f){var e=f&&d(n);return sf(n,u,f?hf(n,t,f,r.boxSizing&&"border-box"===i.css(n,"boxSizing",!1,e),e):0)}}});r.opacity||(i.cssHooks.opacity={get:function(n,t){return ho.test((t&&n.currentStyle?n.currentStyle.filter:n.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(n,t){var r=n.style,u=n.currentStyle,e=i.isNumeric(t)?"alpha(opacity="+100*t+")":"",f=u&&u.filter||r.filter||"";r.zoom=1;(t>=1||""===t)&&""===i.trim(f.replace(ki,""))&&r.removeAttribute&&(r.removeAttribute("filter"),""===t||u&&!u.filter)||(r.filter=ki.test(f)?f.replace(ki,e):f+" "+e)}});i.cssHooks.marginRight=bi(r.reliableMarginRight,function(n,t){if(t)return wi(n,{display:"inline-block"},p,[n,"marginRight"])});i.cssHooks.marginLeft=bi(r.reliableMarginLeft,function(n,t){if(t)return(parseFloat(p(n,"marginLeft"))||(i.contains(n.ownerDocument,n)?n.getBoundingClientRect().left-wi(n,{marginLeft:0},function(){return n.getBoundingClientRect().left}):0))+"px"});i.each({margin:"",padding:"",border:"Width"},function(n,t){i.cssHooks[n+t]={expand:function(i){for(var r=0,f={},u="string"==typeof i?i.split(" "):[i];4>r;r++)f[n+b[r]+t]=u[r]||u[r-2]||u[0];return f}};gu.test(n)||(i.cssHooks[n+t].set=sf)});i.fn.extend({css:function(n,t){return y(this,function(n,t,r){var f,e,o={},u=0;if(i.isArray(t)){for(f=d(n),e=t.length;e>u;u++)o[t[u]]=i.css(n,t[u],!1,f);return o}return void 0!==r?i.style(n,t,r):i.css(n,t)},n,t,arguments.length>1)},show:function(){return of(this,!0)},hide:function(){return of(this)},toggle:function(n){return"boolean"==typeof n?n?this.show():this.hide():this.each(function(){st(this)?i(this).show():i(this).hide()})}});i.Tween=e;e.prototype={constructor:e,init:function(n,t,r,u,f,e){this.elem=n;this.prop=r;this.easing=f||i.easing._default;this.options=t;this.start=this.now=this.cur();this.end=u;this.unit=e||(i.cssNumber[r]?"":"px")},cur:function(){var n=e.propHooks[this.prop];return n&&n.get?n.get(this):e.propHooks._default.get(this)},run:function(n){var t,r=e.propHooks[this.prop];return this.pos=this.options.duration?t=i.easing[this.easing](n,this.options.duration*n,0,1,this.options.duration):t=n,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),r&&r.set?r.set(this):e.propHooks._default.set(this),this}};e.prototype.init.prototype=e.prototype;e.propHooks={_default:{get:function(n){var t;return 1!==n.elem.nodeType||null!=n.elem[n.prop]&&null==n.elem.style[n.prop]?n.elem[n.prop]:(t=i.css(n.elem,n.prop,""),t&&"auto"!==t?t:0)},set:function(n){i.fx.step[n.prop]?i.fx.step[n.prop](n):1!==n.elem.nodeType||null==n.elem.style[i.cssProps[n.prop]]&&!i.cssHooks[n.prop]?n.elem[n.prop]=n.now:i.style(n.elem,n.prop,n.now+n.unit)}}};e.propHooks.scrollTop=e.propHooks.scrollLeft={set:function(n){n.elem.nodeType&&n.elem.parentNode&&(n.elem[n.prop]=n.now)}};i.easing={linear:function(n){return n},swing:function(n){return.5-Math.cos(n*Math.PI)/2},_default:"swing"};i.fx=e.prototype.init;i.fx.step={};lf=/^(?:toggle|show|hide)$/;af=/queueHooks$/;i.Animation=i.extend(h,{tweeners:{"*":[function(n,t){var i=this.createTween(n,t);return ru(i.elem,n,oi.exec(t),i),i}]},tweener:function(n,t){i.isFunction(n)?(t=n,n=["*"]):n=n.match(s);for(var r,u=0,f=n.length;f>u;u++)r=n[u],h.tweeners[r]=h.tweeners[r]||[],h.tweeners[r].unshift(t)},prefilters:[vo],prefilter:function(n,t){t?h.prefilters.unshift(n):h.prefilters.push(n)}});i.speed=function(n,t,r){var u=n&&"object"==typeof n?i.extend({},n):{complete:r||!r&&t||i.isFunction(n)&&n,duration:n,easing:r&&t||t&&!i.isFunction(t)&&t};return u.duration=i.fx.off?0:"number"==typeof u.duration?u.duration:u.duration in i.fx.speeds?i.fx.speeds[u.duration]:i.fx.speeds._default,null!=u.queue&&u.queue!==!0||(u.queue="fx"),u.old=u.complete,u.complete=function(){i.isFunction(u.old)&&u.old.call(this);u.queue&&i.dequeue(this,u.queue)},u};i.fn.extend({fadeTo:function(n,t,i,r){return this.filter(st).css("opacity",0).show().end().animate({opacity:t},n,i,r)},animate:function(n,t,r,u){var o=i.isEmptyObject(n),e=i.speed(t,r,u),f=function(){var t=h(this,i.extend({},n),e);(o||i._data(this,"finish"))&&t.stop(!0)};return f.finish=f,o||e.queue===!1?this.each(f):this.queue(e.queue,f)},stop:function(n,t,r){var u=function(n){var t=n.stop;delete n.stop;t(r)};return"string"!=typeof n&&(r=t,t=n,n=void 0),t&&n!==!1&&this.queue(n||"fx",[]),this.each(function(){var o=!0,t=null!=n&&n+"queueHooks",e=i.timers,f=i._data(this);if(t)f[t]&&f[t].stop&&u(f[t]);else for(t in f)f[t]&&f[t].stop&&af.test(t)&&u(f[t]);for(t=e.length;t--;)e[t].elem!==this||null!=n&&e[t].queue!==n||(e[t].anim.stop(r),o=!1,e.splice(t,1));!o&&r||i.dequeue(this,n)})},finish:function(n){return n!==!1&&(n=n||"fx"),this.each(function(){var t,f=i._data(this),r=f[n+"queue"],e=f[n+"queueHooks"],u=i.timers,o=r?r.length:0;for(f.finish=!0,i.queue(this,n,[]),e&&e.stop&&e.stop.call(this,!0),t=u.length;t--;)u[t].elem===this&&u[t].queue===n&&(u[t].anim.stop(!0),u.splice(t,1));for(t=0;o>t;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete f.finish})}});i.each(["toggle","show","hide"],function(n,t){var r=i.fn[t];i.fn[t]=function(n,i,u){return null==n||"boolean"==typeof n?r.apply(this,arguments):this.animate(bt(t,!0),n,i,u)}});i.each({slideDown:bt("show"),slideUp:bt("hide"),slideToggle:bt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(n,t){i.fn[n]=function(n,i,r){return this.animate(t,n,i,r)}});i.timers=[];i.fx.tick=function(){var r,n=i.timers,t=0;for(ut=i.now();t<n.length;t++)r=n[t],r()||n[t]!==r||n.splice(t--,1);n.length||i.fx.stop();ut=void 0};i.fx.timer=function(n){i.timers.push(n);n()?i.fx.start():i.timers.pop()};i.fx.interval=13;i.fx.start=function(){wt||(wt=n.setInterval(i.fx.tick,i.fx.interval))};i.fx.stop=function(){n.clearInterval(wt);wt=null};i.fx.speeds={slow:600,fast:200,_default:400};i.fn.delay=function(t,r){return t=i.fx?i.fx.speeds[t]||t:t,r=r||"fx",this.queue(r,function(i,r){var u=n.setTimeout(i,t);r.stop=function(){n.clearTimeout(u)}})},function(){var i,n=u.createElement("input"),t=u.createElement("div"),f=u.createElement("select"),e=f.appendChild(u.createElement("option"));t=u.createElement("div");t.setAttribute("className","t");t.innerHTML="  <link/><table><\/table><a href='/a'>a<\/a><input type='checkbox'/>";i=t.getElementsByTagName("a")[0];n.setAttribute("type","checkbox");t.appendChild(n);i=t.getElementsByTagName("a")[0];i.style.cssText="top:1px";r.getSetAttribute="t"!==t.className;r.style=/top/.test(i.getAttribute("style"));r.hrefNormalized="/a"===i.getAttribute("href");r.checkOn=!!n.value;r.optSelected=e.selected;r.enctype=!!u.createElement("form").enctype;f.disabled=!0;r.optDisabled=!e.disabled;n=u.createElement("input");n.setAttribute("value","");r.input=""===n.getAttribute("value");n.value="t";n.setAttribute("type","radio");r.radioValue="t"===n.value}();pf=/\r/g;wf=/[\x20\t\r\n\f]+/g;i.fn.extend({val:function(n){var t,r,f,u=this[0];return arguments.length?(f=i.isFunction(n),this.each(function(r){var u;1===this.nodeType&&(u=f?n.call(this,r,i(this).val()):n,null==u?u="":"number"==typeof u?u+="":i.isArray(u)&&(u=i.map(u,function(n){return null==n?"":n+""})),t=i.valHooks[this.type]||i.valHooks[this.nodeName.toLowerCase()],t&&"set"in t&&void 0!==t.set(this,u,"value")||(this.value=u))})):u?(t=i.valHooks[u.type]||i.valHooks[u.nodeName.toLowerCase()],t&&"get"in t&&void 0!==(r=t.get(u,"value"))?r:(r=u.value,"string"==typeof r?r.replace(pf,""):null==r?"":r)):void 0}});i.extend({valHooks:{option:{get:function(n){var t=i.find.attr(n,"value");return null!=t?t:i.trim(i.text(n)).replace(wf," ")}},select:{get:function(n){for(var o,t,s=n.options,u=n.selectedIndex,f="select-one"===n.type||0>u,h=f?null:[],c=f?u+1:s.length,e=0>u?c:f?u:0;c>e;e++)if(t=s[e],(t.selected||e===u)&&(r.optDisabled?!t.disabled:null===t.getAttribute("disabled"))&&(!t.parentNode.disabled||!i.nodeName(t.parentNode,"optgroup"))){if(o=i(t).val(),f)return o;h.push(o)}return h},set:function(n,t){for(var f,r,u=n.options,o=i.makeArray(t),e=u.length;e--;)if(r=u[e],i.inArray(i.valHooks.option.get(r),o)>-1)try{r.selected=f=!0}catch(s){r.scrollHeight}else r.selected=!1;return f||(n.selectedIndex=-1),u}}}});i.each(["radio","checkbox"],function(){i.valHooks[this]={set:function(n,t){if(i.isArray(t))return n.checked=i.inArray(i(n).val(),t)>-1}};r.checkOn||(i.valHooks[this].get=function(n){return null===n.getAttribute("value")?"on":n.value})});var ft,bf,l=i.expr.attrHandle,di=/^(?:checked|selected)$/i,g=r.getSetAttribute,kt=r.input;i.fn.extend({attr:function(n,t){return y(this,i.attr,n,t,arguments.length>1)},removeAttr:function(n){return this.each(function(){i.removeAttr(this,n)})}});i.extend({attr:function(n,t,r){var u,f,e=n.nodeType;if(3!==e&&8!==e&&2!==e)return"undefined"==typeof n.getAttribute?i.prop(n,t,r):(1===e&&i.isXMLDoc(n)||(t=t.toLowerCase(),f=i.attrHooks[t]||(i.expr.match.bool.test(t)?bf:ft)),void 0!==r?null===r?void i.removeAttr(n,t):f&&"set"in f&&void 0!==(u=f.set(n,r,t))?u:(n.setAttribute(t,r+""),r):f&&"get"in f&&null!==(u=f.get(n,t))?u:(u=i.find.attr(n,t),null==u?void 0:u))},attrHooks:{type:{set:function(n,t){if(!r.radioValue&&"radio"===t&&i.nodeName(n,"input")){var u=n.value;return n.setAttribute("type",t),u&&(n.value=u),t}}}},removeAttr:function(n,t){var r,u,e=0,f=t&&t.match(s);if(f&&1===n.nodeType)while(r=f[e++])u=i.propFix[r]||r,i.expr.match.bool.test(r)?kt&&g||!di.test(r)?n[u]=!1:n[i.camelCase("default-"+r)]=n[u]=!1:i.attr(n,r,""),n.removeAttribute(g?r:u)}});bf={set:function(n,t,r){return t===!1?i.removeAttr(n,r):kt&&g||!di.test(r)?n.setAttribute(!g&&i.propFix[r]||r,r):n[i.camelCase("default-"+r)]=n[r]=!0,r}};i.each(i.expr.match.bool.source.match(/\w+/g),function(n,t){var r=l[t]||i.find.attr;l[t]=kt&&g||!di.test(t)?function(n,t,i){var u,f;return i||(f=l[t],l[t]=u,u=null!=r(n,t,i)?t.toLowerCase():null,l[t]=f),u}:function(n,t,r){if(!r)return n[i.camelCase("default-"+t)]?t.toLowerCase():null}});kt&&g||(i.attrHooks.value={set:function(n,t,r){return i.nodeName(n,"input")?void(n.defaultValue=t):ft&&ft.set(n,t,r)}});g||(ft={set:function(n,t,i){var r=n.getAttributeNode(i);return r||n.setAttributeNode(r=n.ownerDocument.createAttribute(i)),r.value=t+="","value"===i||t===n.getAttribute(i)?t:void 0}},l.id=l.name=l.coords=function(n,t,i){var r;if(!i)return(r=n.getAttributeNode(t))&&""!==r.value?r.value:null},i.valHooks.button={get:function(n,t){var i=n.getAttributeNode(t);if(i&&i.specified)return i.value},set:ft.set},i.attrHooks.contenteditable={set:function(n,t,i){ft.set(n,""===t?!1:t,i)}},i.each(["width","height"],function(n,t){i.attrHooks[t]={set:function(n,i){if(""===i)return(n.setAttribute(t,"auto"),i)}}}));r.style||(i.attrHooks.style={get:function(n){return n.style.cssText||void 0},set:function(n,t){return n.style.cssText=t+""}});kf=/^(?:input|select|textarea|button|object)$/i;df=/^(?:a|area)$/i;i.fn.extend({prop:function(n,t){return y(this,i.prop,n,t,arguments.length>1)},removeProp:function(n){return n=i.propFix[n]||n,this.each(function(){try{this[n]=void 0;delete this[n]}catch(t){}})}});i.extend({prop:function(n,t,r){var f,u,e=n.nodeType;if(3!==e&&8!==e&&2!==e)return 1===e&&i.isXMLDoc(n)||(t=i.propFix[t]||t,u=i.propHooks[t]),void 0!==r?u&&"set"in u&&void 0!==(f=u.set(n,r,t))?f:n[t]=r:u&&"get"in u&&null!==(f=u.get(n,t))?f:n[t]},propHooks:{tabIndex:{get:function(n){var t=i.find.attr(n,"tabindex");return t?parseInt(t,10):kf.test(n.nodeName)||df.test(n.nodeName)&&n.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}});r.hrefNormalized||i.each(["href","src"],function(n,t){i.propHooks[t]={get:function(n){return n.getAttribute(t,4)}}});r.optSelected||(i.propHooks.selected={get:function(n){var t=n.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null},set:function(n){var t=n.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}});i.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){i.propFix[this.toLowerCase()]=this});r.enctype||(i.propFix.enctype="encoding");dt=/[\t\r\n\f]/g;i.fn.extend({addClass:function(n){var o,t,r,u,f,h,e,c=0;if(i.isFunction(n))return this.each(function(t){i(this).addClass(n.call(this,t,nt(this)))});if("string"==typeof n&&n)for(o=n.match(s)||[];t=this[c++];)if(u=nt(t),r=1===t.nodeType&&(" "+u+" ").replace(dt," ")){for(h=0;f=o[h++];)r.indexOf(" "+f+" ")<0&&(r+=f+" ");e=i.trim(r);u!==e&&i.attr(t,"class",e)}return this},removeClass:function(n){var o,r,t,u,f,h,e,c=0;if(i.isFunction(n))return this.each(function(t){i(this).removeClass(n.call(this,t,nt(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof n&&n)for(o=n.match(s)||[];r=this[c++];)if(u=nt(r),t=1===r.nodeType&&(" "+u+" ").replace(dt," ")){for(h=0;f=o[h++];)while(t.indexOf(" "+f+" ")>-1)t=t.replace(" "+f+" "," ");e=i.trim(t);u!==e&&i.attr(r,"class",e)}return this},toggleClass:function(n,t){var r=typeof n;return"boolean"==typeof t&&"string"===r?t?this.addClass(n):this.removeClass(n):i.isFunction(n)?this.each(function(r){i(this).toggleClass(n.call(this,r,nt(this),t),t)}):this.each(function(){var t,f,u,e;if("string"===r)for(f=0,u=i(this),e=n.match(s)||[];t=e[f++];)u.hasClass(t)?u.removeClass(t):u.addClass(t);else void 0!==n&&"boolean"!==r||(t=nt(this),t&&i._data(this,"__className__",t),i.attr(this,"class",t||n===!1?"":i._data(this,"__className__")||""))})},hasClass:function(n){for(var t,r=0,i=" "+n+" ";t=this[r++];)if(1===t.nodeType&&(" "+nt(t)+" ").replace(dt," ").indexOf(i)>-1)return!0;return!1}});i.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(n,t){i.fn[t]=function(n,i){return arguments.length>0?this.on(t,null,n,i):this.trigger(t)}});i.fn.extend({hover:function(n,t){return this.mouseenter(n).mouseleave(t||n)}});var po=n.location,gi=i.now(),nr=/\?/,wo=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;i.parseJSON=function(t){if(n.JSON&&n.JSON.parse)return n.JSON.parse(t+"");var f,r=null,u=i.trim(t+"");return u&&!i.trim(u.replace(wo,function(n,t,i,u){return f&&t&&(r=0),0===r?n:(f=i||t,r+=!u-!i,"")}))?Function("return "+u)():i.error("Invalid JSON: "+t)};i.parseXML=function(t){var r,u;if(!t||"string"!=typeof t)return null;try{n.DOMParser?(u=new n.DOMParser,r=u.parseFromString(t,"text/xml")):(r=new n.ActiveXObject("Microsoft.XMLDOM"),r.async="false",r.loadXML(t))}catch(f){r=void 0}return r&&r.documentElement&&!r.getElementsByTagName("parsererror").length||i.error("Invalid XML: "+t),r};var bo=/#.*$/,gf=/([?&])_=[^&]*/,ko=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,go=/^(?:GET|HEAD)$/,ns=/^\/\//,ne=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,te={},tr={},ie="*/".concat("*"),ir=po.href,et=ne.exec(ir.toLowerCase())||[];i.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:ir,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(et[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":ie,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":i.parseJSON,"text xml":i.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(n,t){return t?rr(rr(n,i.ajaxSettings),t):rr(i.ajaxSettings,n)},ajaxPrefilter:re(te),ajaxTransport:re(tr),ajax:function(t,r){function w(t,r,s,c){var y,rt,it,w,tt,l=r;2!==o&&(o=2,k&&n.clearTimeout(k),v=void 0,b=c||"",f.readyState=t>0?4:0,y=t>=200&&300>t||304===t,s&&(w=ts(u,f,s)),w=is(u,w,f,y),y?(u.ifModified&&(tt=f.getResponseHeader("Last-Modified"),tt&&(i.lastModified[e]=tt),tt=f.getResponseHeader("etag"),tt&&(i.etag[e]=tt)),204===t||"HEAD"===u.type?l="nocontent":304===t?l="notmodified":(l=w.state,rt=w.data,it=w.error,y=!it)):(it=l,!t&&l||(l="error",0>t&&(t=0))),f.status=t,f.statusText=(r||l)+"",y?g.resolveWith(h,[rt,l,f]):g.rejectWith(h,[f,l,it]),f.statusCode(p),p=void 0,a&&d.trigger(y?"ajaxSuccess":"ajaxError",[f,u,y?rt:it]),nt.fireWith(h,[f,l]),a&&(d.trigger("ajaxComplete",[f,u]),--i.active||i.event.trigger("ajaxStop")))}"object"==typeof t&&(r=t,t=void 0);r=r||{};var c,l,e,b,k,a,v,y,u=i.ajaxSetup({},r),h=u.context||u,d=u.context&&(h.nodeType||h.jquery)?i(h):i.event,g=i.Deferred(),nt=i.Callbacks("once memory"),p=u.statusCode||{},tt={},it={},o=0,rt="canceled",f={readyState:0,getResponseHeader:function(n){var t;if(2===o){if(!y)for(y={};t=ko.exec(b);)y[t[1].toLowerCase()]=t[2];t=y[n.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===o?b:null},setRequestHeader:function(n,t){var i=n.toLowerCase();return o||(n=it[i]=it[i]||n,tt[n]=t),this},overrideMimeType:function(n){return o||(u.mimeType=n),this},statusCode:function(n){var t;if(n)if(2>o)for(t in n)p[t]=[p[t],n[t]];else f.always(n[f.status]);return this},abort:function(n){var t=n||rt;return v&&v.abort(t),w(0,t),this}};if(g.promise(f).complete=nt.add,f.success=f.done,f.error=f.fail,u.url=((t||u.url||ir)+"").replace(bo,"").replace(ns,et[1]+"//"),u.type=r.method||r.type||u.method||u.type,u.dataTypes=i.trim(u.dataType||"*").toLowerCase().match(s)||[""],null==u.crossDomain&&(c=ne.exec(u.url.toLowerCase()),u.crossDomain=!(!c||c[1]===et[1]&&c[2]===et[2]&&(c[3]||("http:"===c[1]?"80":"443"))===(et[3]||("http:"===et[1]?"80":"443")))),u.data&&u.processData&&"string"!=typeof u.data&&(u.data=i.param(u.data,u.traditional)),ue(te,u,r,f),2===o)return f;a=i.event&&u.global;a&&0==i.active++&&i.event.trigger("ajaxStart");u.type=u.type.toUpperCase();u.hasContent=!go.test(u.type);e=u.url;u.hasContent||(u.data&&(e=u.url+=(nr.test(e)?"&":"?")+u.data,delete u.data),u.cache===!1&&(u.url=gf.test(e)?e.replace(gf,"$1_="+gi++):e+(nr.test(e)?"&":"?")+"_="+gi++));u.ifModified&&(i.lastModified[e]&&f.setRequestHeader("If-Modified-Since",i.lastModified[e]),i.etag[e]&&f.setRequestHeader("If-None-Match",i.etag[e]));(u.data&&u.hasContent&&u.contentType!==!1||r.contentType)&&f.setRequestHeader("Content-Type",u.contentType);f.setRequestHeader("Accept",u.dataTypes[0]&&u.accepts[u.dataTypes[0]]?u.accepts[u.dataTypes[0]]+("*"!==u.dataTypes[0]?", "+ie+"; q=0.01":""):u.accepts["*"]);for(l in u.headers)f.setRequestHeader(l,u.headers[l]);if(u.beforeSend&&(u.beforeSend.call(h,f,u)===!1||2===o))return f.abort();rt="abort";for(l in{success:1,error:1,complete:1})f[l](u[l]);if(v=ue(tr,u,r,f)){if(f.readyState=1,a&&d.trigger("ajaxSend",[f,u]),2===o)return f;u.async&&u.timeout>0&&(k=n.setTimeout(function(){f.abort("timeout")},u.timeout));try{o=1;v.send(tt,w)}catch(ut){if(!(2>o))throw ut;w(-1,ut)}}else w(-1,"No Transport");return f},getJSON:function(n,t,r){return i.get(n,t,r,"json")},getScript:function(n,t){return i.get(n,void 0,t,"script")}});i.each(["get","post"],function(n,t){i[t]=function(n,r,u,f){return i.isFunction(r)&&(f=f||u,u=r,r=void 0),i.ajax(i.extend({url:n,type:t,dataType:f,data:r,success:u},i.isPlainObject(n)&&n))}});i._evalUrl=function(n){return i.ajax({url:n,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})};i.fn.extend({wrapAll:function(n){if(i.isFunction(n))return this.each(function(t){i(this).wrapAll(n.call(this,t))});if(this[0]){var t=i(n,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]);t.map(function(){for(var n=this;n.firstChild&&1===n.firstChild.nodeType;)n=n.firstChild;return n}).append(this)}return this},wrapInner:function(n){return i.isFunction(n)?this.each(function(t){i(this).wrapInner(n.call(this,t))}):this.each(function(){var t=i(this),r=t.contents();r.length?r.wrapAll(n):t.append(n)})},wrap:function(n){var t=i.isFunction(n);return this.each(function(r){i(this).wrapAll(t?n.call(this,r):n)})},unwrap:function(){return this.parent().each(function(){i.nodeName(this,"body")||i(this).replaceWith(this.childNodes)}).end()}});i.expr.filters.hidden=function(n){return r.reliableHiddenOffsets()?n.offsetWidth<=0&&n.offsetHeight<=0&&!n.getClientRects().length:us(n)};i.expr.filters.visible=function(n){return!i.expr.filters.hidden(n)};var fs=/%20/g,es=/\[\]$/,fe=/\r?\n/g,os=/^(?:submit|button|image|reset|file)$/i,ss=/^(?:input|select|textarea|keygen)/i;i.param=function(n,t){var r,u=[],f=function(n,t){t=i.isFunction(t)?t():null==t?"":t;u[u.length]=encodeURIComponent(n)+"="+encodeURIComponent(t)};if(void 0===t&&(t=i.ajaxSettings&&i.ajaxSettings.traditional),i.isArray(n)||n.jquery&&!i.isPlainObject(n))i.each(n,function(){f(this.name,this.value)});else for(r in n)ur(r,n[r],t,f);return u.join("&").replace(fs,"+")};i.fn.extend({serialize:function(){return i.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var n=i.prop(this,"elements");return n?i.makeArray(n):this}).filter(function(){var n=this.type;return this.name&&!i(this).is(":disabled")&&ss.test(this.nodeName)&&!os.test(n)&&(this.checked||!si.test(n))}).map(function(n,t){var r=i(this).val();return null==r?null:i.isArray(r)?i.map(r,function(n){return{name:t.name,value:n.replace(fe,"\r\n")}}):{name:t.name,value:r.replace(fe,"\r\n")}}).get()}});i.ajaxSettings.xhr=void 0!==n.ActiveXObject?function(){return this.isLocal?ee():u.documentMode>8?fr():/^(get|post|head|put|delete|options)$/i.test(this.type)&&fr()||ee()}:fr;var hs=0,gt={},ct=i.ajaxSettings.xhr();return n.attachEvent&&n.attachEvent("onunload",function(){for(var n in gt)gt[n](void 0,!0)}),r.cors=!!ct&&"withCredentials"in ct,ct=r.ajax=!!ct,ct&&i.ajaxTransport(function(t){if(!t.crossDomain||r.cors){var u;return{send:function(r,f){var o,e=t.xhr(),s=++hs;if(e.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(o in t.xhrFields)e[o]=t.xhrFields[o];t.mimeType&&e.overrideMimeType&&e.overrideMimeType(t.mimeType);t.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest");for(o in r)void 0!==r[o]&&e.setRequestHeader(o,r[o]+"");e.send(t.hasContent&&t.data||null);u=function(n,r){var o,c,h;if(u&&(r||4===e.readyState))if(delete gt[s],u=void 0,e.onreadystatechange=i.noop,r)4!==e.readyState&&e.abort();else{h={};o=e.status;"string"==typeof e.responseText&&(h.text=e.responseText);try{c=e.statusText}catch(l){c=""}o||!t.isLocal||t.crossDomain?1223===o&&(o=204):o=h.text?200:404}h&&f(o,c,h,e.getAllResponseHeaders())};t.async?4===e.readyState?n.setTimeout(u):e.onreadystatechange=gt[s]=u:u()},abort:function(){u&&u(void 0,!0)}}}}),i.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(n){return i.globalEval(n),n}}}),i.ajaxPrefilter("script",function(n){void 0===n.cache&&(n.cache=!1);n.crossDomain&&(n.type="GET",n.global=!1)}),i.ajaxTransport("script",function(n){if(n.crossDomain){var t,r=u.head||i("head")[0]||u.documentElement;return{send:function(i,f){t=u.createElement("script");t.async=!0;n.scriptCharset&&(t.charset=n.scriptCharset);t.src=n.url;t.onload=t.onreadystatechange=function(n,i){(i||!t.readyState||/loaded|complete/.test(t.readyState))&&(t.onload=t.onreadystatechange=null,t.parentNode&&t.parentNode.removeChild(t),t=null,i||f(200,"success"))};r.insertBefore(t,r.firstChild)},abort:function(){t&&t.onload(void 0,!0)}}}}),er=[],ni=/(=)\?(?=&|$)|\?\?/,i.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var n=er.pop()||i.expando+"_"+gi++;return this[n]=!0,n}}),i.ajaxPrefilter("json jsonp",function(t,r,u){var f,e,o,s=t.jsonp!==!1&&(ni.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&ni.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return(f=t.jsonpCallback=i.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(ni,"$1"+f):t.jsonp!==!1&&(t.url+=(nr.test(t.url)?"&":"?")+t.jsonp+"="+f),t.converters["script json"]=function(){return o||i.error(f+" was not called"),o[0]},t.dataTypes[0]="json",e=n[f],n[f]=function(){o=arguments},u.always(function(){void 0===e?i(n).removeProp(f):n[f]=e;t[f]&&(t.jsonpCallback=r.jsonpCallback,er.push(f));o&&i.isFunction(e)&&e(o[0]);o=e=void 0}),"script")}),i.parseHTML=function(n,t,r){if(!n||"string"!=typeof n)return null;"boolean"==typeof t&&(r=t,t=!1);t=t||u;var f=vr.exec(n),e=!r&&[];return f?[t.createElement(f[1])]:(f=hu([n],t,e),e&&e.length&&i(e).remove(),i.merge([],f.childNodes))},or=i.fn.load,i.fn.load=function(n,t,r){if("string"!=typeof n&&or)return or.apply(this,arguments);var u,o,s,f=this,e=n.indexOf(" ");return e>-1&&(u=i.trim(n.slice(e,n.length)),n=n.slice(0,e)),i.isFunction(t)?(r=t,t=void 0):t&&"object"==typeof t&&(o="POST"),f.length>0&&i.ajax({url:n,type:o||"GET",dataType:"html",data:t}).done(function(n){s=arguments;f.html(u?i("<div>").append(i.parseHTML(n)).find(u):n)}).always(r&&function(n,t){f.each(function(){r.apply(this,s||[n.responseText,t,n])})}),this},i.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(n,t){i.fn[t]=function(n){return this.on(t,n)}}),i.expr.filters.animated=function(n){return i.grep(i.timers,function(t){return n===t.elem}).length},i.offset={setOffset:function(n,t,r){var e,o,s,h,u,c,v,l=i.css(n,"position"),a=i(n),f={};"static"===l&&(n.style.position="relative");u=a.offset();s=i.css(n,"top");c=i.css(n,"left");v=("absolute"===l||"fixed"===l)&&i.inArray("auto",[s,c])>-1;v?(e=a.position(),h=e.top,o=e.left):(h=parseFloat(s)||0,o=parseFloat(c)||0);i.isFunction(t)&&(t=t.call(n,r,i.extend({},u)));null!=t.top&&(f.top=t.top-u.top+h);null!=t.left&&(f.left=t.left-u.left+o);"using"in t?t.using.call(n,f):a.css(f)}},i.fn.extend({offset:function(n){if(arguments.length)return void 0===n?this:this.each(function(t){i.offset.setOffset(this,n,t)});var t,f,u={top:0,left:0},r=this[0],e=r&&r.ownerDocument;if(e)return t=e.documentElement,i.contains(t,r)?("undefined"!=typeof r.getBoundingClientRect&&(u=r.getBoundingClientRect()),f=oe(e),{top:u.top+(f.pageYOffset||t.scrollTop)-(t.clientTop||0),left:u.left+(f.pageXOffset||t.scrollLeft)-(t.clientLeft||0)}):u},position:function(){if(this[0]){var n,r,t={top:0,left:0},u=this[0];return"fixed"===i.css(u,"position")?r=u.getBoundingClientRect():(n=this.offsetParent(),r=this.offset(),i.nodeName(n[0],"html")||(t=n.offset()),t.top+=i.css(n[0],"borderTopWidth",!0),t.left+=i.css(n[0],"borderLeftWidth",!0)),{top:r.top-t.top-i.css(u,"marginTop",!0),left:r.left-t.left-i.css(u,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var n=this.offsetParent;n&&!i.nodeName(n,"html")&&"static"===i.css(n,"position");)n=n.offsetParent;return n||nf})}}),i.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(n,t){var r=/Y/.test(t);i.fn[n]=function(u){return y(this,function(n,u,f){var e=oe(n);return void 0===f?e?t in e?e[t]:e.document.documentElement[u]:n[u]:void(e?e.scrollTo(r?i(e).scrollLeft():f,r?f:i(e).scrollTop()):n[u]=f)},n,u,arguments.length,null)}}),i.each(["top","left"],function(n,t){i.cssHooks[t]=bi(r.pixelPosition,function(n,r){if(r)return(r=p(n,t),pt.test(r)?i(n).position()[t]+"px":r)})}),i.each({Height:"height",Width:"width"},function(n,t){i.each({padding:"inner"+n,content:t,"":"outer"+n},function(r,u){i.fn[u]=function(u,f){var e=arguments.length&&(r||"boolean"!=typeof u),o=r||(u===!0||f===!0?"margin":"border");return y(this,function(t,r,u){var f;return i.isWindow(t)?t.document.documentElement["client"+n]:9===t.nodeType?(f=t.documentElement,Math.max(t.body["scroll"+n],f["scroll"+n],t.body["offset"+n],f["offset"+n],f["client"+n])):void 0===u?i.css(t,r,o):i.style(t,r,u,o)},t,e?u:void 0,e,null)}})}),i.fn.extend({bind:function(n,t,i){return this.on(n,null,t,i)},unbind:function(n,t){return this.off(n,null,t)},delegate:function(n,t,i,r){return this.on(t,n,i,r)},undelegate:function(n,t,i){return 1===arguments.length?this.off(n,"**"):this.off(t,n||"**",i)}}),i.fn.size=function(){return this.length},i.fn.andSelf=i.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return i}),se=n.jQuery,he=n.$,i.noConflict=function(t){return n.$===i&&(n.$=he),t&&n.jQuery===i&&(n.jQuery=se),i},t||(n.jQuery=n.$=i),i});jQuery.migrateMute===void 0&&(jQuery.migrateMute=!0),function(n,t,i){function r(i){var r=t.console;o[i]||(o[i]=!0,n.migrateWarnings.push(i),r&&r.warn&&!n.migrateMute&&(r.warn("JQMIGRATE: "+i),n.migrateTrace&&r.trace&&r.trace()))}function e(t,u,f,e){if(Object.defineProperty)try{return Object.defineProperty(t,u,{configurable:!0,enumerable:!0,get:function(){return r(e),f},set:function(n){r(e);f=n}}),i}catch(o){}n._definePropertyBroken=!0;t[u]=f}var o={},l,a,v;n.migrateWarnings=[];!n.migrateMute&&t.console&&t.console.log&&t.console.log("JQMIGRATE: Logging is active");n.migrateTrace===i&&(n.migrateTrace=!0);n.migrateReset=function(){o={};n.migrateWarnings.length=0};"BackCompat"===document.compatMode&&r("jQuery is not compatible with Quirks Mode");var s=n("<input/>",{size:1}).attr("size")&&n.attrFn,h=n.attr,g=n.attrHooks.value&&n.attrHooks.value.get||function(){return null},nt=n.attrHooks.value&&n.attrHooks.value.set||function(){return i},tt=/^(?:input|button)$/i,it=/^[238]$/,rt=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,ut=/^(?:checked|selected)$/i;e(n,"attrFn",s||{},"jQuery.attrFn is deprecated");n.attr=function(t,u,f,e){var o=u.toLowerCase(),c=t&&t.nodeType;return e&&(4>h.length&&r("jQuery.fn.attr( props, pass ) is deprecated"),t&&!it.test(c)&&(s?u in s:n.isFunction(n.fn[u])))?n(t)[u](f):("type"===u&&f!==i&&tt.test(t.nodeName)&&t.parentNode&&r("Can't change the 'type' of an input or button in IE 6/7/8"),!n.attrHooks[o]&&rt.test(o)&&(n.attrHooks[o]={get:function(t,r){var u,f=n.prop(t,r);return f===!0||"boolean"!=typeof f&&(u=t.getAttributeNode(r))&&u.nodeValue!==!1?r.toLowerCase():i},set:function(t,i,r){var u;return i===!1?n.removeAttr(t,r):(u=n.propFix[r]||r,u in t&&(t[u]=!0),t.setAttribute(r,r.toLowerCase())),r}},ut.test(o)&&r("jQuery.fn.attr('"+o+"') may use property instead of attribute")),h.call(n,t,u,f))};n.attrHooks.value={get:function(n,t){var i=(n.nodeName||"").toLowerCase();return"button"===i?g.apply(this,arguments):("input"!==i&&"option"!==i&&r("jQuery.fn.attr('value') no longer gets properties"),t in n?n.value:null)},set:function(n,t){var u=(n.nodeName||"").toLowerCase();return"button"===u?nt.apply(this,arguments):("input"!==u&&"option"!==u&&r("jQuery.fn.attr('value', val) no longer sets properties"),n.value=t,i)}};var f,u,c=n.fn.init,ft=n.parseJSON,et=/^([^<]*)(<[\w\W]+>)([^>]*)$/;n.fn.init=function(t,i,u){var f;return t&&"string"==typeof t&&!n.isPlainObject(i)&&(f=et.exec(n.trim(t)))&&f[0]&&("<"!==t.charAt(0)&&r("$(html) HTML strings must start with '<' character"),f[3]&&r("$(html) HTML text after last tag is ignored"),"#"===f[0].charAt(0)&&(r("HTML string cannot start with a '#' character"),n.error("JQMIGRATE: Invalid selector string (XSS)")),i&&i.context&&(i=i.context),n.parseHTML)?c.call(this,n.parseHTML(f[2],i,!0),i,u):c.apply(this,arguments)};n.fn.init.prototype=n.fn;n.parseJSON=function(n){return n||null===n?ft.apply(this,arguments):(r("jQuery.parseJSON requires a valid JSON string"),null)};n.uaMatch=function(n){n=n.toLowerCase();var t=/(chrome)[ \/]([\w.]+)/.exec(n)||/(webkit)[ \/]([\w.]+)/.exec(n)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(n)||/(msie) ([\w.]+)/.exec(n)||0>n.indexOf("compatible")&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(n)||[];return{browser:t[1]||"",version:t[2]||"0"}};n.browser||(f=n.uaMatch(navigator.userAgent),u={},f.browser&&(u[f.browser]=!0,u.version=f.version),u.chrome?u.webkit=!0:u.webkit&&(u.safari=!0),n.browser=u);e(n,"browser",n.browser,"jQuery.browser is deprecated");n.sub=function(){function t(n,i){return new t.fn.init(n,i)}n.extend(!0,t,this);t.superclass=this;t.fn=t.prototype=this();t.fn.constructor=t;t.sub=this.sub;t.fn.init=function(r,u){return u&&u instanceof n&&!(u instanceof t)&&(u=t(u)),n.fn.init.call(this,r,u,i)};t.fn.init.prototype=t.fn;var i=t(document);return r("jQuery.sub() is deprecated"),t};n.ajaxSetup({converters:{"text json":n.parseJSON}});l=n.fn.data;n.fn.data=function(t){var f,u,e=this[0];return!e||"events"!==t||1!==arguments.length||(f=n.data(e,t),u=n._data(e,t),f!==i&&f!==u||u===i)?l.apply(this,arguments):(r("Use of jQuery.fn.data('events') is deprecated"),u)};a=/\/(java|ecma)script/i;v=n.fn.andSelf||n.fn.addBack;n.fn.andSelf=function(){return r("jQuery.fn.andSelf() replaced by jQuery.fn.addBack()"),v.apply(this,arguments)};n.clean||(n.clean=function(t,u,f,e){u=u||document;u=!u.nodeType&&u[0]||u;u=u.ownerDocument||u;r("jQuery.clean() is deprecated");var s,o,c,l,h=[];if(n.merge(h,n.buildFragment(t,u).childNodes),f)for(c=function(n){return!n.type||a.test(n.type)?e?e.push(n.parentNode?n.parentNode.removeChild(n):n):f.appendChild(n):i},s=0;null!=(o=h[s]);s++)n.nodeName(o,"script")&&c(o)||(f.appendChild(o),o.getElementsByTagName!==i&&(l=n.grep(n.merge([],o.getElementsByTagName("script")),c),h.splice.apply(h,[s+1,0].concat(l)),s+=l.length));return h});var ot=n.event.add,st=n.event.remove,ht=n.event.trigger,ct=n.fn.toggle,y=n.fn.live,p=n.fn.die,w="ajaxStart|ajaxStop|ajaxSend|ajaxComplete|ajaxError|ajaxSuccess",b=RegExp("\\b(?:"+w+")\\b"),k=/(?:^|\s)hover(\.\S+|)\b/,d=function(t){return"string"!=typeof t||n.event.special.hover?t:(k.test(t)&&r("'hover' pseudo-event is deprecated, use 'mouseenter mouseleave'"),t&&t.replace(k,"mouseenter$1 mouseleave$1"))};n.event.props&&"attrChange"!==n.event.props[0]&&n.event.props.unshift("attrChange","attrName","relatedNode","srcElement");n.event.dispatch&&e(n.event,"handle",n.event.dispatch,"jQuery.event.handle is undocumented and deprecated");n.event.add=function(n,t,i,u,f){n!==document&&b.test(t)&&r("AJAX events should be attached to document: "+t);ot.call(this,n,d(t||""),i,u,f)};n.event.remove=function(n,t,i,r,u){st.call(this,n,d(t)||"",i,r,u)};n.fn.error=function(){var n=Array.prototype.slice.call(arguments,0);return r("jQuery.fn.error() is deprecated"),n.splice(0,0,"error"),arguments.length?this.bind.apply(this,n):(this.triggerHandler.apply(this,n),this)};n.fn.toggle=function(t,i){if(!n.isFunction(t)||!n.isFunction(i))return ct.apply(this,arguments);r("jQuery.fn.toggle(handler, handler...) is deprecated");var u=arguments,e=t.guid||n.guid++,f=0,o=function(i){var r=(n._data(this,"lastToggle"+t.guid)||0)%f;return n._data(this,"lastToggle"+t.guid,r+1),i.preventDefault(),u[r].apply(this,arguments)||!1};for(o.guid=e;u.length>f;)u[f++].guid=e;return this.click(o)};n.fn.live=function(t,i,u){return r("jQuery.fn.live() is deprecated"),y?y.apply(this,arguments):(n(this.context).on(t,this.selector,i,u),this)};n.fn.die=function(t,i){return r("jQuery.fn.die() is deprecated"),p?p.apply(this,arguments):(n(this.context).off(t,this.selector||"**",i),this)};n.event.trigger=function(n,t,i,u){return i||b.test(n)||r("Global events are undocumented and deprecated"),ht.call(this,n,t,i||document,u)};n.each(w.split("|"),function(t,i){n.event.special[i]={setup:function(){var t=this;return t!==document&&(n.event.add(document,i+"."+n.guid,function(){n.event.trigger(i,null,t,!0)}),n._data(this,i,n.guid++)),!1},teardown:function(){return this!==document&&n.event.remove(document,i+"."+n._data(this,i)),!1}}})}(jQuery,window),function(n){n.isScrollToFixed=function(t){return!!n(t).data("ScrollToFixed")};n.ScrollToFixed=function(t,i){function st(){r.trigger("preUnfixed.ScrollToFixed");f();r.trigger("unfixed.ScrollToFixed");l=-1;p=r.offset().top;c=r.offset().left;u.options.offsets&&(c+=r.offset().left-r.position().left);it==-1&&(it=c);e=r.css("position");y=!0;u.options.bottom!=-1&&(r.trigger("preFixed.ScrollToFixed"),k(),r.trigger("fixed.ScrollToFixed"))}function rt(){var n=u.options.limit;return n?typeof n=="function"?n.apply(r):n:0}function a(){return e==="fixed"}function ut(){return e==="absolute"}function s(){return!(a()||ut())}function k(){if(!a()){var n=r[0].getBoundingClientRect();o.css({display:r.css("display"),width:n.width,height:n.height,float:r.css("float")});cssOptions={"z-index":u.options.zIndex,position:"fixed",top:u.options.bottom==-1?w():"",bottom:u.options.bottom==-1?"":u.options.bottom,"margin-left":"0px"};u.options.dontSetWidth||(cssOptions.width=r.css("width"));r.css(cssOptions);r.addClass(u.options.baseClassName);u.options.className&&r.addClass(u.options.className);e="fixed"}}function ft(){var n=rt(),t=c;u.options.removeOffsets&&(t="",n=n-p);cssOptions={position:"absolute",top:n,left:t,"margin-left":"0px",bottom:""};u.options.dontSetWidth||(cssOptions.width=r.css("width"));r.css(cssOptions);e="absolute"}function f(){s()||(l=-1,o.css("display","none"),r.css({"z-index":tt,width:"",position:b,left:"",top:nt,"margin-left":""}),r.removeClass("scroll-to-fixed-fixed"),u.options.className&&r.removeClass(u.options.className),e=null)}function d(n){n!=l&&(r.css("left",c-n),l=n)}function w(){var n=u.options.marginTop;return n?typeof n=="function"?n.apply(r):n:0}function v(){var t,v;if(n.isScrollToFixed(r)&&!r.is(":hidden")){t=y;v=s();y?s()&&(p=r.offset().top,c=r.offset().left):st();var e=n(window).scrollLeft(),o=n(window).scrollTop(),i=rt();u.options.minWidth&&n(window).width()<u.options.minWidth?s()&&t||(h(),r.trigger("preUnfixed.ScrollToFixed"),f(),r.trigger("unfixed.ScrollToFixed")):u.options.maxWidth&&n(window).width()>u.options.maxWidth?s()&&t||(h(),r.trigger("preUnfixed.ScrollToFixed"),f(),r.trigger("unfixed.ScrollToFixed")):u.options.bottom==-1?i>0&&o>=i-w()?v||ut()&&t||(h(),r.trigger("preAbsolute.ScrollToFixed"),ft(),r.trigger("unfixed.ScrollToFixed")):o>=p-w()?(a()&&t||(h(),r.trigger("preFixed.ScrollToFixed"),k(),l=-1,r.trigger("fixed.ScrollToFixed")),d(e)):s()&&t||(h(),r.trigger("preUnfixed.ScrollToFixed"),f(),r.trigger("unfixed.ScrollToFixed")):i>0?o+n(window).height()-r.outerHeight(!0)>=i-(w()||-ht())?a()&&(h(),r.trigger("preUnfixed.ScrollToFixed"),b==="absolute"?ft():f(),r.trigger("unfixed.ScrollToFixed")):(a()||(h(),r.trigger("preFixed.ScrollToFixed"),k()),d(e),r.trigger("fixed.ScrollToFixed")):d(e)}}function ht(){return u.options.bottom?u.options.bottom:0}function h(){var n=r.css("position");n=="absolute"?r.trigger("postAbsolute.ScrollToFixed"):n=="fixed"?r.trigger("postFixed.ScrollToFixed"):r.trigger("postUnfixed.ScrollToFixed")}var u=this;u.$el=n(t);u.el=t;u.$el.data("ScrollToFixed",u);var y=!1,r=u.$el,e,b,ot,nt,tt,p=0,c=0,it=-1,l=-1,o=null;var g=function(){r.is(":visible")?(y=!1,v()):f()},et=function(){!window.requestAnimationFrame?v():requestAnimationFrame(v)},lt=function(){var n=document.body,t,i,r,u,f;return document.createElement&&n&&n.appendChild&&n.removeChild?(t=document.createElement("div"),!t.getBoundingClientRect)?null:(t.innerHTML="x",t.style.cssText="position:fixed;top:100px;",n.appendChild(t),i=n.style.height,r=n.scrollTop,n.style.height="3000px",n.scrollTop=500,u=t.getBoundingClientRect().top,n.style.height=i,f=u===100,n.removeChild(t),n.scrollTop=r,f):null},ct=function(n){n=n||window.event;n.preventDefault&&n.preventDefault();n.returnValue=!1};u.init=function(){u.options=n.extend({},n.ScrollToFixed.defaultOptions,i);tt=r.css("z-index");u.$el.css("z-index",u.options.zIndex);o=n("<div />");e=r.css("position");b=r.css("position");ot=r.css("float");nt=r.css("top");s()&&u.$el.after(o);n(window).bind("resize.ScrollToFixed",g);n(window).bind("scroll.ScrollToFixed",et);"ontouchmove"in window&&n(window).bind("touchmove.ScrollToFixed",v);u.options.preFixed&&r.bind("preFixed.ScrollToFixed",u.options.preFixed);u.options.postFixed&&r.bind("postFixed.ScrollToFixed",u.options.postFixed);u.options.preUnfixed&&r.bind("preUnfixed.ScrollToFixed",u.options.preUnfixed);u.options.postUnfixed&&r.bind("postUnfixed.ScrollToFixed",u.options.postUnfixed);u.options.preAbsolute&&r.bind("preAbsolute.ScrollToFixed",u.options.preAbsolute);u.options.postAbsolute&&r.bind("postAbsolute.ScrollToFixed",u.options.postAbsolute);u.options.fixed&&r.bind("fixed.ScrollToFixed",u.options.fixed);u.options.unfixed&&r.bind("unfixed.ScrollToFixed",u.options.unfixed);u.options.spacerClass&&o.addClass(u.options.spacerClass);r.bind("resize.ScrollToFixed",function(){o.height(r.height())});r.bind("scroll.ScrollToFixed",function(){r.trigger("preUnfixed.ScrollToFixed");f();r.trigger("unfixed.ScrollToFixed");v()});r.bind("detach.ScrollToFixed",function(t){ct(t);r.trigger("preUnfixed.ScrollToFixed");f();r.trigger("unfixed.ScrollToFixed");n(window).unbind("resize.ScrollToFixed",g);n(window).unbind("scroll.ScrollToFixed",et);r.unbind(".ScrollToFixed");o.remove();u.$el.removeData("ScrollToFixed")});g()};u.init()};n.ScrollToFixed.defaultOptions={marginTop:0,limit:0,bottom:-1,zIndex:1e3,baseClassName:"scroll-to-fixed-fixed"};n.fn.scrollToFixed=function(t){return this.each(function(){new n.ScrollToFixed(this,t)})}}(jQuery),function(n){n.extend(n.fn,{validate:function(t){if(!this.length)return t&&t.debug&&window.console&&console.warn("Nothing selected, can't validate, returning nothing."),void 0;var i=n.data(this[0],"validator");return i?i:(this.attr("novalidate","novalidate"),i=new n.validator(t,this[0]),n.data(this[0],"validator",i),i.settings.onsubmit&&(this.validateDelegate(":submit","click",function(t){i.settings.submitHandler&&(i.submitButton=t.target);n(t.target).hasClass("cancel")&&(i.cancelSubmit=!0);void 0!==n(t.target).attr("formnovalidate")&&(i.cancelSubmit=!0)}),this.submit(function(t){function r(){var r;return i.settings.submitHandler?(i.submitButton&&(r=n("<input type='hidden'/>").attr("name",i.submitButton.name).val(n(i.submitButton).val()).appendTo(i.currentForm)),i.settings.submitHandler.call(i,i.currentForm,t),i.submitButton&&r.remove(),!1):!0}return i.settings.debug&&t.preventDefault(),i.cancelSubmit?(i.cancelSubmit=!1,r()):i.form()?i.pendingRequest?(i.formSubmitted=!0,!1):r():(i.focusInvalid(),!1)})),i)},valid:function(){if(n(this[0]).is("form"))return this.validate().form();var t=!0,i=n(this[0].form).validate();return this.each(function(){t=t&&i.element(this)}),t},removeAttrs:function(t){var i={},r=this;return n.each(t.split(/\s/),function(n,t){i[t]=r.attr(t);r.removeAttr(t)}),i},rules:function(t,i){var r=this[0],o,u,h;if(t){var e=n.data(r.form,"validator").settings,s=e.rules,f=n.validator.staticRules(r);switch(t){case"add":n.extend(f,n.validator.normalizeRule(i));delete f.messages;s[r.name]=f;i.messages&&(e.messages[r.name]=n.extend(e.messages[r.name],i.messages));break;case"remove":return i?(o={},n.each(i.split(/\s/),function(n,t){o[t]=f[t];delete f[t]}),o):(delete s[r.name],f)}}return u=n.validator.normalizeRules(n.extend({},n.validator.classRules(r),n.validator.attributeRules(r),n.validator.dataRules(r),n.validator.staticRules(r)),r),u.required&&(h=u.required,delete u.required,u=n.extend({required:h},u)),u}});n.extend(n.expr[":"],{blank:function(t){return!n.trim(""+n(t).val())},filled:function(t){return!!n.trim(""+n(t).val())},unchecked:function(t){return!n(t).prop("checked")}});n.validator=function(t,i){this.settings=n.extend(!0,{},n.validator.defaults,t);this.currentForm=i;this.init()};n.validator.format=function(t,i){return 1===arguments.length?function(){var i=n.makeArray(arguments);return i.unshift(t),n.validator.format.apply(this,i)}:(arguments.length>2&&i.constructor!==Array&&(i=n.makeArray(arguments).slice(1)),i.constructor!==Array&&(i=[i]),n.each(i,function(n,i){t=t.replace(RegExp("\\{"+n+"\\}","g"),function(){return i})}),t)};n.extend(n.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",validClass:"valid",errorElement:"label",focusInvalid:!0,errorContainer:n([]),errorLabelContainer:n([]),onsubmit:!0,ignore:":hidden",ignoreTitle:!1,onfocusin:function(n){this.lastActive=n;this.settings.focusCleanup&&!this.blockFocusCleanup&&(this.settings.unhighlight&&this.settings.unhighlight.call(this,n,this.settings.errorClass,this.settings.validClass),this.addWrapper(this.errorsFor(n)).hide())},onfocusout:function(n){!this.checkable(n)&&(n.name in this.submitted||!this.optional(n))&&this.element(n)},onkeyup:function(n,t){(9!==t.which||""!==this.elementValue(n))&&(n.name in this.submitted||n===this.lastElement)&&this.element(n)},onclick:function(n){n.name in this.submitted?this.element(n):n.parentNode.name in this.submitted&&this.element(n.parentNode)},highlight:function(t,i,r){"radio"===t.type?this.findByName(t.name).addClass(i).removeClass(r):n(t).addClass(i).removeClass(r)},unhighlight:function(t,i,r){"radio"===t.type?this.findByName(t.name).removeClass(i).addClass(r):n(t).removeClass(i).addClass(r)}},setDefaults:function(t){n.extend(n.validator.defaults,t)},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:n.validator.format("Please enter no more than {0} characters."),minlength:n.validator.format("Please enter at least {0} characters."),rangelength:n.validator.format("Please enter a value between {0} and {1} characters long."),range:n.validator.format("Please enter a value between {0} and {1}."),max:n.validator.format("Please enter a value less than or equal to {0}."),min:n.validator.format("Please enter a value greater than or equal to {0}.")},autoCreateRanges:!1,prototype:{init:function(){function i(t){var i=n.data(this[0].form,"validator"),r="on"+t.type.replace(/^validate/,"");i.settings[r]&&i.settings[r].call(i,this[0],t)}var r,t;this.labelContainer=n(this.settings.errorLabelContainer);this.errorContext=this.labelContainer.length&&this.labelContainer||n(this.currentForm);this.containers=n(this.settings.errorContainer).add(this.settings.errorLabelContainer);this.submitted={};this.valueCache={};this.pendingRequest=0;this.pending={};this.invalid={};this.reset();r=this.groups={};n.each(this.settings.groups,function(t,i){"string"==typeof i&&(i=i.split(/\s/));n.each(i,function(n,i){r[i]=t})});t=this.settings.rules;n.each(t,function(i,r){t[i]=n.validator.normalizeRule(r)});n(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",i).validateDelegate("[type='radio'], [type='checkbox'], select, option","click",i);this.settings.invalidHandler&&n(this.currentForm).bind("invalid-form.validate",this.settings.invalidHandler)},form:function(){return this.checkForm(),n.extend(this.submitted,this.errorMap),this.invalid=n.extend({},this.errorMap),this.valid()||n(this.currentForm).triggerHandler("invalid-form",[this]),this.showErrors(),this.valid()},checkForm:function(){this.prepareForm();for(var n=0,t=this.currentElements=this.elements();t[n];n++)this.check(t[n]);return this.valid()},element:function(t){t=this.validationTargetFor(this.clean(t));this.lastElement=t;this.prepareElement(t);this.currentElements=n(t);var i=this.check(t)!==!1;return i?delete this.invalid[t.name]:this.invalid[t.name]=!0,this.numberOfInvalids()||(this.toHide=this.toHide.add(this.containers)),this.showErrors(),i},showErrors:function(t){if(t){n.extend(this.errorMap,t);this.errorList=[];for(var i in t)this.errorList.push({message:t[i],element:this.findByName(i)[0]});this.successList=n.grep(this.successList,function(n){return!(n.name in t)})}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){n.fn.resetForm&&n(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(n){var t=0;for(var i in n)t++;return t},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{n(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus().trigger("focusin")}catch(t){}},findLastActive:function(){var t=this.lastActive;return t&&1===n.grep(this.errorList,function(n){return n.element.name===t.name}).length&&t},elements:function(){var t=this,i={};return n(this.currentForm).find("input, select, textarea").not(":submit, :reset, :image, [disabled]").not(this.settings.ignore).filter(function(){return!this.name&&t.settings.debug&&window.console&&console.error("%o has no name assigned",this),this.name in i||!t.objectLength(n(this).rules())?!1:(i[this.name]=!0,!0)})},clean:function(t){return n(t)[0]},errors:function(){var t=this.settings.errorClass.replace(" ",".");return n(this.settings.errorElement+"."+t,this.errorContext)},reset:function(){this.successList=[];this.errorList=[];this.errorMap={};this.toShow=n([]);this.toHide=n([]);this.currentElements=n([])},prepareForm:function(){this.reset();this.toHide=this.errors().add(this.containers)},prepareElement:function(n){this.reset();this.toHide=this.errorsFor(n)},elementValue:function(t){var r=n(t).attr("type"),i=n(t).val();return"radio"===r||"checkbox"===r?n("input[name='"+n(t).attr("name")+"']:checked").val():"string"==typeof i?i.replace(/\r/g,""):i},check:function(t){var r,u;t=this.validationTargetFor(this.clean(t));var i,f=n(t).rules(),e=!1,s=this.elementValue(t);for(r in f){u={method:r,parameters:f[r]};try{if(i=n.validator.methods[r].call(this,s,t,u.parameters),"dependency-mismatch"===i){e=!0;continue}if(e=!1,"pending"===i)return this.toHide=this.toHide.not(this.errorsFor(t)),void 0;if(!i)return this.formatAndAdd(t,u),!1}catch(o){throw this.settings.debug&&window.console&&console.log("Exception occurred when checking element "+t.id+", check the '"+u.method+"' method.",o),o;}}if(!e)return(this.objectLength(f)&&this.successList.push(t),!0)},customDataMessage:function(t,i){return n(t).data("msg-"+i.toLowerCase())||t.attributes&&n(t).attr("data-msg-"+i.toLowerCase())},customMessage:function(n,t){var i=this.settings.messages[n];return i&&(i.constructor===String?i:i[t])},findDefined:function(){for(var n=0;arguments.length>n;n++)if(void 0!==arguments[n])return arguments[n];return void 0},defaultMessage:function(t,i){return this.findDefined(this.customMessage(t.name,i),this.customDataMessage(t,i),!this.settings.ignoreTitle&&t.title||void 0,n.validator.messages[i],"<strong>Warning: No message defined for "+t.name+"<\/strong>")},formatAndAdd:function(t,i){var r=this.defaultMessage(t,i.method),u=/\$?\{(\d+)\}/g;"function"==typeof r?r=r.call(this,i.parameters,t):u.test(r)&&(r=n.validator.format(r.replace(u,"{$1}"),i.parameters));this.errorList.push({message:r,element:t});this.errorMap[t.name]=r;this.submitted[t.name]=r},addWrapper:function(n){return this.settings.wrapper&&(n=n.add(n.parent(this.settings.wrapper))),n},defaultShowErrors:function(){for(var i,t,n=0;this.errorList[n];n++)t=this.errorList[n],this.settings.highlight&&this.settings.highlight.call(this,t.element,this.settings.errorClass,this.settings.validClass),this.showLabel(t.element,t.message);if(this.errorList.length&&(this.toShow=this.toShow.add(this.containers)),this.settings.success)for(n=0;this.successList[n];n++)this.showLabel(this.successList[n]);if(this.settings.unhighlight)for(n=0,i=this.validElements();i[n];n++)this.settings.unhighlight.call(this,i[n],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 n(this.errorList).map(function(){return this.element})},showLabel:function(t,i){var r=this.errorsFor(t);r.length?(r.removeClass(this.settings.validClass).addClass(this.settings.errorClass),r.html(i)):(r=n("<"+this.settings.errorElement+">").attr("for",this.idOrName(t)).addClass(this.settings.errorClass).html(i||""),this.settings.wrapper&&(r=r.hide().show().wrap("<"+this.settings.wrapper+"/>").parent()),this.labelContainer.append(r).length||(this.settings.errorPlacement?this.settings.errorPlacement(r,n(t)):r.insertAfter(t)));!i&&this.settings.success&&(r.text(""),"string"==typeof this.settings.success?r.addClass(this.settings.success):this.settings.success(r,t));this.toShow=this.toShow.add(r)},errorsFor:function(t){var i=this.idOrName(t);return this.errors().filter(function(){return n(this).attr("for")===i})},idOrName:function(n){return this.groups[n.name]||(this.checkable(n)?n.name:n.id||n.name)},validationTargetFor:function(n){return this.checkable(n)&&(n=this.findByName(n.name).not(this.settings.ignore)[0]),n},checkable:function(n){return/radio|checkbox/i.test(n.type)},findByName:function(t){return n(this.currentForm).find("[name='"+t+"']")},getLength:function(t,i){switch(i.nodeName.toLowerCase()){case"select":return n("option:selected",i).length;case"input":if(this.checkable(i))return this.findByName(i.name).filter(":checked").length}return t.length},depend:function(n,t){return this.dependTypes[typeof n]?this.dependTypes[typeof n](n,t):!0},dependTypes:{boolean:function(n){return n},string:function(t,i){return!!n(t,i.form).length},"function":function(n,t){return n(t)}},optional:function(t){var i=this.elementValue(t);return!n.validator.methods.required.call(this,i,t)&&"dependency-mismatch"},startRequest:function(n){this.pending[n.name]||(this.pendingRequest++,this.pending[n.name]=!0)},stopRequest:function(t,i){this.pendingRequest--;0>this.pendingRequest&&(this.pendingRequest=0);delete this.pending[t.name];i&&0===this.pendingRequest&&this.formSubmitted&&this.form()?(n(this.currentForm).submit(),this.formSubmitted=!1):!i&&0===this.pendingRequest&&this.formSubmitted&&(n(this.currentForm).triggerHandler("invalid-form",[this]),this.formSubmitted=!1)},previousValue:function(t){return n.data(t,"previousValue")||n.data(t,"previousValue",{old:null,valid:!0,message:this.defaultMessage(t,"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(t,i){t.constructor===String?this.classRuleSettings[t]=i:n.extend(this.classRuleSettings,t)},classRules:function(t){var i={},r=n(t).attr("class");return r&&n.each(r.split(" "),function(){this in n.validator.classRuleSettings&&n.extend(i,n.validator.classRuleSettings[this])}),i},attributeRules:function(t){var u={},e=n(t),f=e[0].getAttribute("type"),r,i;for(r in n.validator.methods)"required"===r?(i=e.get(0).getAttribute(r),""===i&&(i=!0),i=!!i):i=e.attr(r),/min|max/.test(r)&&(null===f||/number|range|text/.test(f))&&(i=Number(i)),i?u[r]=i:f===r&&"range"!==f&&(u[r]=!0);return u.maxlength&&/-1|2147483647|524288/.test(u.maxlength)&&delete u.maxlength,u},dataRules:function(t){var i,r,u={},f=n(t);for(i in n.validator.methods)r=f.data("rule-"+i.toLowerCase()),void 0!==r&&(u[i]=r);return u},staticRules:function(t){var i={},r=n.data(t.form,"validator");return r.settings.rules&&(i=n.validator.normalizeRule(r.settings.rules[t.name])||{}),i},normalizeRules:function(t,i){return n.each(t,function(r,u){if(u===!1)return delete t[r],void 0;if(u.param||u.depends){var f=!0;switch(typeof u.depends){case"string":f=!!n(u.depends,i.form).length;break;case"function":f=u.depends.call(i,i)}f?t[r]=void 0!==u.param?u.param:!0:delete t[r]}}),n.each(t,function(r,u){t[r]=n.isFunction(u)?u(i):u}),n.each(["minlength","maxlength"],function(){t[this]&&(t[this]=Number(t[this]))}),n.each(["rangelength","range"],function(){var i;t[this]&&(n.isArray(t[this])?t[this]=[Number(t[this][0]),Number(t[this][1])]:"string"==typeof t[this]&&(i=t[this].split(/[\s,]+/),t[this]=[Number(i[0]),Number(i[1])]))}),n.validator.autoCreateRanges&&(t.min&&t.max&&(t.range=[t.min,t.max],delete t.min,delete t.max),t.minlength&&t.maxlength&&(t.rangelength=[t.minlength,t.maxlength],delete t.minlength,delete t.maxlength)),t},normalizeRule:function(t){if("string"==typeof t){var i={};n.each(t.split(/\s/),function(){i[this]=!0});t=i}return t},addMethod:function(t,i,r){n.validator.methods[t]=i;n.validator.messages[t]=void 0!==r?r:n.validator.messages[t];3>i.length&&n.validator.addClassRules(t,n.validator.normalizeRule(t))},methods:{required:function(t,i,r){if(!this.depend(r,i))return"dependency-mismatch";if("select"===i.nodeName.toLowerCase()){var u=n(i).val();return u&&u.length>0}return this.checkable(i)?this.getLength(t,i)>0:n.trim(t).length>0},email:function(n,t){return this.optional(t)||/^((([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(n)},url:function(n,t){return this.optional(t)||/^(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(n)},date:function(n,t){return this.optional(t)||!/Invalid|NaN/.test(""+new Date(n))},dateISO:function(n,t){return this.optional(t)||/^\d{4}[\/\-]\d{1,2}[\/\-]\d{1,2}$/.test(n)},number:function(n,t){return this.optional(t)||/^-?(?:\d+|\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(n)},digits:function(n,t){return this.optional(t)||/^\d+$/.test(n)},creditcard:function(n,t){var r,e;if(this.optional(t))return"dependency-mismatch";if(/[^0-9 \-]+/.test(n))return!1;var f=0,i=0,u=!1;for(n=n.replace(/\D/g,""),r=n.length-1;r>=0;r--)e=n.charAt(r),i=parseInt(e,10),u&&(i*=2)>9&&(i-=9),f+=i,u=!u;return 0==f%10},minlength:function(t,i,r){var u=n.isArray(t)?t.length:this.getLength(n.trim(t),i);return this.optional(i)||u>=r},maxlength:function(t,i,r){var u=n.isArray(t)?t.length:this.getLength(n.trim(t),i);return this.optional(i)||r>=u},rangelength:function(t,i,r){var u=n.isArray(t)?t.length:this.getLength(n.trim(t),i);return this.optional(i)||u>=r[0]&&r[1]>=u},min:function(n,t,i){return this.optional(t)||n>=i},max:function(n,t,i){return this.optional(t)||i>=n},range:function(n,t,i){return this.optional(t)||n>=i[0]&&i[1]>=n},equalTo:function(t,i,r){var u=n(r);return this.settings.onfocusout&&u.unbind(".validate-equalTo").bind("blur.validate-equalTo",function(){n(i).valid()}),t===u.val()},remote:function(t,i,r){var f,u,e;return this.optional(i)?"dependency-mismatch":(f=this.previousValue(i),this.settings.messages[i.name]||(this.settings.messages[i.name]={}),f.originalMessage=this.settings.messages[i.name].remote,this.settings.messages[i.name].remote=f.message,r="string"==typeof r&&{url:r}||r,f.old===t)?f.valid:(f.old=t,u=this,this.startRequest(i),e={},e[i.name]=t,n.ajax(n.extend(!0,{url:r,mode:"abort",port:"validate"+i.name,dataType:"json",data:e,success:function(r){var e,h,s,o;u.settings.messages[i.name].remote=f.originalMessage;e=r===!0||"true"===r;e?(h=u.formSubmitted,u.prepareElement(i),u.formSubmitted=h,u.successList.push(i),delete u.invalid[i.name],u.showErrors()):(s={},o=r||u.defaultMessage(i,"remote"),s[i.name]=f.message=n.isFunction(o)?o(t):o,u.invalid[i.name]=!0,u.showErrors(s));f.valid=e;u.stopRequest(i,e)}},r)),"pending")}}});n.format=n.validator.format}(jQuery),function(n){var t={},i;n.ajaxPrefilter?n.ajaxPrefilter(function(n,i,r){var u=n.port;"abort"===n.mode&&(t[u]&&t[u].abort(),t[u]=r)}):(i=n.ajax,n.ajax=function(r){var f=("mode"in r?r:n.ajaxSettings).mode,u=("port"in r?r:n.ajaxSettings).port;return"abort"===f?(t[u]&&t[u].abort(),t[u]=i.apply(this,arguments),t[u]):i.apply(this,arguments)})}(jQuery),function(n){n.extend(n.fn,{validateDelegate:function(t,i,r){return this.bind(i,function(i){var u=n(i.target);if(u.is(t))return r.apply(u,arguments)})}})}(jQuery),function(n){function i(n,t,i){n.rules[t]=i;n.message&&(n.messages[t]=n.message)}function h(n){return n.replace(/^\s+|\s+$/g,"").split(/\s*,\s*/g)}function f(n){return n.replace(/([!"#$%&'()*+,./:;<=>?@\[\\\]^`{|}~])/g,"\\$1")}function e(n){return n.substr(0,n.lastIndexOf(".")+1)}function o(n,t){return n.indexOf("*.")===0&&(n=n.replace("*.",t)),n}function c(t,i){var r=n(this).find("[data-valmsg-for='"+f(i[0].name)+"']"),u=r.attr("data-valmsg-replace"),e=u?n.parseJSON(u)!==!1:null;r.removeClass("field-validation-valid").addClass("field-validation-error");t.data("unobtrusiveContainer",r);e?(r.empty(),t.removeClass("input-validation-error").appendTo(r)):t.hide()}function l(t,i){var u=n(this).find("[data-valmsg-summary=true]"),r=u.find("ul");r&&r.length&&i.errorList.length&&(r.empty(),u.addClass("validation-summary-errors").removeClass("validation-summary-valid"),n.each(i.errorList,function(){n("<li />").html(this.message).appendTo(r)}))}function a(t){var i=t.data("unobtrusiveContainer"),r=i.attr("data-valmsg-replace"),u=r?n.parseJSON(r):null;i&&(i.addClass("field-validation-valid").removeClass("field-validation-error"),t.removeData("unobtrusiveContainer"),u&&i.empty())}function v(){var t=n(this);t.data("validator").resetForm();t.find(".validation-summary-errors").addClass("validation-summary-valid").removeClass("validation-summary-errors");t.find(".field-validation-error").addClass("field-validation-valid").removeClass("field-validation-error").removeData("unobtrusiveContainer").find(">*").removeData("unobtrusiveContainer")}function s(t){var i=n(t),f=i.data(u),s=n.proxy(v,t),e=r.unobtrusive.options||{},o=function(i,r){var u=e[i];u&&n.isFunction(u)&&u.apply(t,r)};return f||(f={options:{errorClass:e.errorClass||"input-validation-error",errorElement:e.errorElement||"span",errorPlacement:function(){c.apply(t,arguments);o("errorPlacement",arguments)},invalidHandler:function(){l.apply(t,arguments);o("invalidHandler",arguments)},messages:{},rules:{},success:function(){a.apply(t,arguments);o("success",arguments)}},attachValidation:function(){i.off("reset."+u,s).on("reset."+u,s).validate(this.options)},validate:function(){return i.validate(),i.valid()}},i.data(u,f)),f}var r=n.validator,t,u="unobtrusiveValidation";r.unobtrusive={adapters:[],parseElement:function(t,i){var u=n(t),f=u.parents("form")[0],r,e,o;f&&(r=s(f),r.options.rules[t.name]=e={},r.options.messages[t.name]=o={},n.each(this.adapters,function(){var i="data-val-"+this.name,r=u.attr(i),s={};r!==undefined&&(i+="-",n.each(this.params,function(){s[this]=u.attr(i+this)}),this.adapt({element:t,form:f,message:r,params:s,rules:e,messages:o}))}),n.extend(e,{__dummy__:!0}),i||r.attachValidation())},parse:function(t){var i=n(t),u=i.parents().addBack().filter("form").add(i.find("form")).has("[data-val=true]");i.find("[data-val=true]").each(function(){r.unobtrusive.parseElement(this,!0)});u.each(function(){var n=s(this);n&&n.attachValidation()})}};t=r.unobtrusive.adapters;t.add=function(n,t,i){return i||(i=t,t=[]),this.push({name:n,params:t,adapt:i}),this};t.addBool=function(n,t){return this.add(n,function(r){i(r,t||n,!0)})};t.addMinMax=function(n,t,r,u,f,e){return this.add(n,[f||"min",e||"max"],function(n){var f=n.params.min,e=n.params.max;f&&e?i(n,u,[f,e]):f?i(n,t,f):e&&i(n,r,e)})};t.addSingleVal=function(n,t,r){return this.add(n,[t||"val"],function(u){i(u,r||n,u.params[t])})};r.addMethod("__dummy__",function(){return!0});r.addMethod("regex",function(n,t,i){var r;return this.optional(t)?!0:(r=new RegExp(i).exec(n),r&&r.index===0&&r[0].length===n.length)});r.addMethod("nonalphamin",function(n,t,i){var r;return i&&(r=n.match(/\W/g),r=r&&r.length>=i),r});r.methods.extension?(t.addSingleVal("accept","mimtype"),t.addSingleVal("extension","extension")):t.addSingleVal("extension","extension","accept");t.addSingleVal("regex","pattern");t.addBool("creditcard").addBool("date").addBool("digits").addBool("email").addBool("number").addBool("url");t.addMinMax("length","minlength","maxlength","rangelength").addMinMax("range","min","max","range");t.addMinMax("minlength","minlength").addMinMax("maxlength","minlength","maxlength");t.add("equalto",["other"],function(t){var r=e(t.element.name),u=t.params.other,s=o(u,r),h=n(t.form).find(":input").filter("[name='"+f(s)+"']")[0];i(t,"equalTo",h)});t.add("required",function(n){(n.element.tagName.toUpperCase()!=="INPUT"||n.element.type.toUpperCase()!=="CHECKBOX")&&i(n,"required",!0)});t.add("remote",["url","type","additionalfields"],function(t){var r={url:t.params.url,type:t.params.type||"GET",data:{}},u=e(t.element.name);n.each(h(t.params.additionalfields||t.element.name),function(i,e){var s=o(e,u);r.data[s]=function(){return n(t.form).find(":input").filter("[name='"+f(s)+"']").val()}});i(t,"remote",r)});t.add("password",["min","nonalphamin","regex"],function(n){n.params.min&&i(n,"minlength",n.params.min);n.params.nonalphamin&&i(n,"nonalphamin",n.params.nonalphamin);n.params.regex&&i(n,"regex",n.params.regex)});n(function(){r.unobtrusive.parse(document)})}(jQuery);window.Modernizr=function(n,t,i){function a(n){c.cssText=n}function vt(n,t){return a(y.join(n+";")+(t||""))}function h(n,t){return typeof n===t}function v(n,t){return!!~(""+n).indexOf(t)}function lt(n,t){var u,r;for(u in n)if(r=n[u],!v(r,"-")&&c[r]!==i)return t=="pfx"?r:!0;return!1}function yt(n,t,r){var f,u;for(f in n)if(u=t[n[f]],u!==i)return r===!1?n[f]:h(u,"function")?u.bind(r||t):u;return!1}function f(n,t,i){var r=n.charAt(0).toUpperCase()+n.slice(1),u=(n+" "+ot.join(r+" ")+r).split(" ");return h(t,"string")||h(t,"undefined")?lt(u,t):(u=(n+" "+st.join(r+" ")+r).split(" "),yt(u,t,i))}function pt(){u.input=function(i){for(var r=0,u=i.length;r<u;r++)w[i[r]]=!!(i[r]in o);return w.list&&(w.list=!!(t.createElement("datalist")&&n.HTMLDataListElement)),w}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" "));u.inputtypes=function(n){for(var u=0,r,f,e,h=n.length;u<h;u++)o.setAttribute("type",f=n[u]),r=o.type!=="text",r&&(o.value=g,o.style.cssText="position:absolute;visibility:hidden;",/^range$/.test(f)&&o.style.WebkitAppearance!==i?(s.appendChild(o),e=t.defaultView,r=e.getComputedStyle&&e.getComputedStyle(o,null).WebkitAppearance!=="textfield"&&o.offsetHeight!==0,s.removeChild(o)):/^(search|tel)$/.test(f)||(r=/^(url|email)$/.test(f)?o.checkValidity&&o.checkValidity()===!1:o.value!=g)),ht[n[u]]=!!r;return ht}("search tel url email datetime date month week time datetime-local number range color".split(" "))}var u={},d=!0,s=t.documentElement,e="modernizr",ut=t.createElement(e),c=ut.style,o=t.createElement("input"),g=":)",ft={}.toString,y=" -webkit- -moz- -o- -ms- ".split(" "),et="Webkit Moz O ms",ot=et.split(" "),st=et.toLowerCase().split(" "),p={svg:"http://www.w3.org/2000/svg"},r={},ht={},w={},nt=[],tt=nt.slice,b,l=function(n,i,r,u){var l,a,c,v,f=t.createElement("div"),h=t.body,o=h||t.createElement("body");if(parseInt(r,10))while(r--)c=t.createElement("div"),c.id=u?u[r]:e+(r+1),f.appendChild(c);return l=["&#173;",'<style id="s',e,'">',n,"<\/style>"].join(""),f.id=e,(h?f:o).innerHTML+=l,o.appendChild(f),h||(o.style.background="",o.style.overflow="hidden",v=s.style.overflow,s.style.overflow="hidden",s.appendChild(o)),a=i(f,n),h?f.parentNode.removeChild(f):(o.parentNode.removeChild(o),s.style.overflow=v),!!a},at=function(t){var i=n.matchMedia||n.msMatchMedia,r;return i?i(t).matches:(l("@media "+t+" { #"+e+" { position: absolute; } }",function(t){r=(n.getComputedStyle?getComputedStyle(t,null):t.currentStyle).position=="absolute"}),r)},ct=function(){function r(r,u){u=u||t.createElement(n[r]||"div");r="on"+r;var f=r in u;return f||(u.setAttribute||(u=t.createElement("div")),u.setAttribute&&u.removeAttribute&&(u.setAttribute(r,""),f=h(u[r],"function"),h(u[r],"undefined")||(u[r]=i),u.removeAttribute(r))),u=null,f}var n={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return r}(),it={}.hasOwnProperty,rt,k;rt=h(it,"undefined")||h(it.call,"undefined")?function(n,t){return t in n&&h(n.constructor.prototype[t],"undefined")}:function(n,t){return it.call(n,t)};Function.prototype.bind||(Function.prototype.bind=function(n){var t=this,i,r;if(typeof t!="function")throw new TypeError;return i=tt.call(arguments,1),r=function(){var f,e,u;return this instanceof r?(f=function(){},f.prototype=t.prototype,e=new f,u=t.apply(e,i.concat(tt.call(arguments))),Object(u)===u)?u:e:t.apply(n,i.concat(tt.call(arguments)))},r});r.flexbox=function(){return f("flexWrap")};r.flexboxlegacy=function(){return f("boxDirection")};r.canvas=function(){var n=t.createElement("canvas");return!!(n.getContext&&n.getContext("2d"))};r.canvastext=function(){return!!(u.canvas&&h(t.createElement("canvas").getContext("2d").fillText,"function"))};r.webgl=function(){return!!n.WebGLRenderingContext};r.touch=function(){var i;return"ontouchstart"in n||n.DocumentTouch&&t instanceof DocumentTouch?i=!0:l(["@media (",y.join("touch-enabled),("),e,")","{#modernizr{top:9px;position:absolute}}"].join(""),function(n){i=n.offsetTop===9}),i};r.geolocation=function(){return"geolocation"in navigator};r.postmessage=function(){return!!n.postMessage};r.websqldatabase=function(){return!!n.openDatabase};r.indexedDB=function(){return!!f("indexedDB",n)};r.hashchange=function(){return ct("hashchange",n)&&(t.documentMode===i||t.documentMode>7)};r.history=function(){return!!(n.history&&history.pushState)};r.draganddrop=function(){var n=t.createElement("div");return"draggable"in n||"ondragstart"in n&&"ondrop"in n};r.websockets=function(){return"WebSocket"in n||"MozWebSocket"in n};r.rgba=function(){return a("background-color:rgba(150,255,150,.5)"),v(c.backgroundColor,"rgba")};r.hsla=function(){return a("background-color:hsla(120,40%,100%,.5)"),v(c.backgroundColor,"rgba")||v(c.backgroundColor,"hsla")};r.multiplebgs=function(){return a("background:url(https://),url(https://),red url(https://)"),/(url\s*\(.*?){3}/.test(c.background)};r.backgroundsize=function(){return f("backgroundSize")};r.borderimage=function(){return f("borderImage")};r.borderradius=function(){return f("borderRadius")};r.boxshadow=function(){return f("boxShadow")};r.textshadow=function(){return t.createElement("div").style.textShadow===""};r.opacity=function(){return vt("opacity:.55"),/^0.55$/.test(c.opacity)};r.cssanimations=function(){return f("animationName")};r.csscolumns=function(){return f("columnCount")};r.cssgradients=function(){var n="background-image:";return a((n+"-webkit- ".split(" ").join("gradient(linear,left top,right bottom,from(#9f9),to(white));"+n)+y.join("linear-gradient(left top,#9f9, white);"+n)).slice(0,-n.length)),v(c.backgroundImage,"gradient")};r.cssreflections=function(){return f("boxReflect")};r.csstransforms=function(){return!!f("transform")};r.csstransforms3d=function(){var n=!!f("perspective");return n&&"webkitPerspective"in s.style&&l("@media (transform-3d),(-webkit-transform-3d){#modernizr{left:9px;position:absolute;height:3px;}}",function(t){n=t.offsetLeft===9&&t.offsetHeight===3}),n};r.csstransitions=function(){return f("transition")};r.fontface=function(){var n;return l('@font-face {font-family:"font";src:url("https://")}',function(i,r){var f=t.getElementById("smodernizr"),u=f.sheet||f.styleSheet,e=u?u.cssRules&&u.cssRules[0]?u.cssRules[0].cssText:u.cssText||"":"";n=/src/i.test(e)&&e.indexOf(r.split(" ")[0])===0}),n};r.generatedcontent=function(){var n;return l(["#",e,"{font:0/0 a}#",e,':after{content:"',g,'";visibility:hidden;font:3px/1 a}'].join(""),function(t){n=t.offsetHeight>=3}),n};r.video=function(){var i=t.createElement("video"),n=!1;try{(n=!!i.canPlayType)&&(n=new Boolean(n),n.ogg=i.canPlayType('video/ogg; codecs="theora"').replace(/^no$/,""),n.h264=i.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,""),n.webm=i.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,""))}catch(r){}return n};r.audio=function(){var i=t.createElement("audio"),n=!1;try{(n=!!i.canPlayType)&&(n=new Boolean(n),n.ogg=i.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),n.mp3=i.canPlayType("audio/mpeg;").replace(/^no$/,""),n.wav=i.canPlayType('audio/wav; codecs="1"').replace(/^no$/,""),n.m4a=(i.canPlayType("audio/x-m4a;")||i.canPlayType("audio/aac;")).replace(/^no$/,""))}catch(r){}return n};r.localstorage=function(){try{return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch(n){return!1}};r.sessionstorage=function(){try{return sessionStorage.setItem(e,e),sessionStorage.removeItem(e),!0}catch(n){return!1}};r.webworkers=function(){return!!n.Worker};r.applicationcache=function(){return!!n.applicationCache};r.svg=function(){return!!t.createElementNS&&!!t.createElementNS(p.svg,"svg").createSVGRect};r.inlinesvg=function(){var n=t.createElement("div");return n.innerHTML="<svg/>",(n.firstChild&&n.firstChild.namespaceURI)==p.svg};r.smil=function(){return!!t.createElementNS&&/SVGAnimate/.test(ft.call(t.createElementNS(p.svg,"animate")))};r.svgclippaths=function(){return!!t.createElementNS&&/SVGClipPath/.test(ft.call(t.createElementNS(p.svg,"clipPath")))};for(k in r)rt(r,k)&&(b=k.toLowerCase(),u[b]=r[k](),nt.push((u[b]?"":"no-")+b));return u.input||pt(),u.addTest=function(n,t){if(typeof n=="object")for(var r in n)rt(n,r)&&u.addTest(r,n[r]);else{if(n=n.toLowerCase(),u[n]!==i)return u;t=typeof t=="function"?t():t;typeof d!="undefined"&&d&&(s.className+=" "+(t?"":"no-")+n);u[n]=t}return u},a(""),ut=o=null,function(n,t){function p(n,t){var i=n.createElement("p"),r=n.getElementsByTagName("head")[0]||n.documentElement;return i.innerHTML="x<style>"+t+"<\/style>",r.insertBefore(i.lastChild,r.firstChild)}function c(){var n=r.elements;return typeof n=="string"?n.split(" "):n}function o(n){var t=h[n[s]];return t||(t={},e++,n[s]=e,h[e]=t),t}function l(n,r,u){if(r||(r=t),i)return r.createElement(n);u||(u=o(r));var f;return f=u.cache[n]?u.cache[n].cloneNode():y.test(n)?(u.cache[n]=u.createElem(n)).cloneNode():u.createElem(n),f.canHaveChildren&&!v.test(n)?u.frag.appendChild(f):f}function w(n,r){if(n||(n=t),i)return n.createDocumentFragment();r=r||o(n);for(var f=r.frag.cloneNode(),u=0,e=c(),s=e.length;u<s;u++)f.createElement(e[u]);return f}function b(n,t){t.cache||(t.cache={},t.createElem=n.createElement,t.createFrag=n.createDocumentFragment,t.frag=t.createFrag());n.createElement=function(i){return r.shivMethods?l(i,n,t):t.createElem(i)};n.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+c().join().replace(/\w+/g,function(n){return t.createElem(n),t.frag.createElement(n),'c("'+n+'")'})+");return n}")(r,t.frag)}function a(n){n||(n=t);var u=o(n);return!r.shivCSS||f||u.hasCSS||(u.hasCSS=!!p(n,"article,aside,figcaption,figure,footer,header,hgroup,nav,section{display:block}mark{background:#FF0;color:#000}")),i||b(n,u),n}var u=n.html5||{},v=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,y=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,f,s="_html5shiv",e=0,h={},i,r;(function(){try{var n=t.createElement("a");n.innerHTML="<xyz><\/xyz>";f="hidden"in n;i=n.childNodes.length==1||function(){t.createElement("a");var n=t.createDocumentFragment();return typeof n.cloneNode=="undefined"||typeof n.createDocumentFragment=="undefined"||typeof n.createElement=="undefined"}()}catch(r){f=!0;i=!0}})();r={elements:u.elements||"abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video",shivCSS:u.shivCSS!==!1,supportsUnknownElements:i,shivMethods:u.shivMethods!==!1,type:"default",shivDocument:a,createElement:l,createDocumentFragment:w};n.html5=r;a(t)}(this,t),u._version="2.6.2",u._prefixes=y,u._domPrefixes=st,u._cssomPrefixes=ot,u.mq=at,u.hasEvent=ct,u.testProp=function(n){return lt([n])},u.testAllProps=f,u.testStyles=l,u.prefixed=function(n,t,i){return t?f(n,t,i):f(n,"pfx")},s.className=s.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(d?" js "+nt.join(" "):""),u}(this,this.document),function(n){n.fn.extend({simulate:function(t,i){return this.each(function(){var r=n.extend({},n.simulate.defaults,i||{});new n.simulate(this,t,r)})}});n.simulate=function(n,t,i){this.target=n;this.options=i;/^drag$/.test(t)?this[t].apply(this,[this.target,i]):this.simulateEvent(n,t,i)};n.extend(n.simulate.prototype,{simulateEvent:function(n,t,i){var r=this.createEvent(t,i);return this.dispatchEvent(n,t,r,i),r},createEvent:function(n,t){return/^mouse(over|out|down|up|move)|(dbl)?click$/.test(n)?this.mouseEvent(n,t):/^key(up|down|press)$/.test(n)?this.keyboardEvent(n,t):void 0},mouseEvent:function(t,i){var u,r=n.extend({bubbles:!0,cancelable:t!="mousemove",view:window,detail:0,screenX:0,screenY:0,clientX:0,clientY:0,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,button:0,relatedTarget:undefined},i),f=n(r.relatedTarget)[0];return n.isFunction(document.createEvent)?(u=document.createEvent("MouseEvents"),u.initMouseEvent(t,r.bubbles,r.cancelable,r.view,r.detail,r.screenX,r.screenY,r.clientX,r.clientY,r.ctrlKey,r.altKey,r.shiftKey,r.metaKey,r.button,r.relatedTarget||document.body.parentNode)):document.createEventObject&&(u=document.createEventObject(),n.extend(u,r),u.button={0:1,1:4,2:2}[u.button]||u.button),u},keyboardEvent:function(t,i){var u,r=n.extend({bubbles:!0,cancelable:!0,view:window,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,keyCode:0,charCode:0},i);if(n.isFunction(document.createEvent))try{u=document.createEvent("KeyEvents");u.initKeyEvent(t,r.bubbles,r.cancelable,r.view,r.ctrlKey,r.altKey,r.shiftKey,r.metaKey,r.keyCode,r.charCode)}catch(f){u=document.createEvent("Events");u.initEvent(t,r.bubbles,r.cancelable);n.extend(u,{view:r.view,ctrlKey:r.ctrlKey,altKey:r.altKey,shiftKey:r.shiftKey,metaKey:r.metaKey,keyCode:r.keyCode,charCode:r.charCode})}else document.createEventObject&&(u=document.createEventObject(),n.extend(u,r));return(n.browser.msie||n.browser.opera)&&(u.keyCode=r.charCode>0?r.charCode:r.keyCode,u.charCode=undefined),u},dispatchEvent:function(n,t,i){return n.dispatchEvent?n.dispatchEvent(i):n.fireEvent&&n.fireEvent("on"+t,i),i},drag:function(){var s=this,r=this.findCenter(this.target),u=this.options,t=Math.floor(r.x),i=Math.floor(r.y),e=u.dx||0,o=u.dy||0,f=this.target,n={clientX:t,clientY:i};this.simulateEvent(f,"mousedown",n);n={clientX:t+1,clientY:i+1};this.simulateEvent(document,"mousemove",n);n={clientX:t+e,clientY:i+o};this.simulateEvent(document,"mousemove",n);this.simulateEvent(document,"mousemove",n);this.simulateEvent(f,"mouseup",n)},findCenter:function(t){var t=n(this.target),i=t.offset();return{x:i.left+t.outerWidth()/2,y:i.top+t.outerHeight()/2}}});n.extend(n.simulate,{defaults:{speed:"sync"},VK_TAB:9,VK_ENTER:13,VK_ESC:27,VK_PGUP:33,VK_PGDN:34,VK_END:35,VK_HOME:36,VK_LEFT:37,VK_UP:38,VK_RIGHT:39,VK_DOWN:40})}(jQuery),function(n,t,i){function v(t,i){var u,f;if(n.isArray(t)){for(u=t.length-1;u>=0;u--)f=t[u],n.type(f)==="string"&&r.transports[f]||(i.log("Invalid transport: "+f+", removing it from the transports list."),t.splice(u,1));t.length===0&&(i.log("No transports remain within the specified transport array."),t=null)}else if(r.transports[t]||t==="auto"){if(t==="auto"&&r._.ieVersion<=8)return["longPolling"]}else i.log("Invalid transport: "+t.toString()+"."),t=null;return t}function y(n){return n==="http:"?80:n==="https:"?443:void 0}function h(n,t){return t.match(/:\d+$/)?t:t+":"+y(n)}function p(t,i){var u=this,r=[];u.tryBuffer=function(i){return t.state===n.signalR.connectionState.connecting?(r.push(i),!0):!1};u.drain=function(){if(t.state===n.signalR.connectionState.connected)while(r.length>0)i(r.shift())};u.clear=function(){r=[]}}var f={nojQuery:"jQuery was not found. Please ensure jQuery is referenced before the SignalR client JavaScript file.",noTransportOnInit:"No transport could be initialized successfully. Try specifying a different transport or none at all for auto initialization.",errorOnNegotiate:"Error during negotiation request.",stoppedWhileLoading:"The connection was stopped during page load.",stoppedWhileNegotiating:"The connection was stopped during the negotiate request.",errorParsingNegotiateResponse:"Error parsing negotiate response.",errorDuringStartRequest:"Error during start request. Stopping the connection.",stoppedDuringStartRequest:"The connection was stopped during the start request.",errorParsingStartResponse:"Error parsing start response: '{0}'. Stopping the connection.",invalidStartResponse:"Invalid start response: '{0}'. Stopping the connection.",protocolIncompatible:"You are using a version of the client that isn't compatible with the server. Client version {0}, server version {1}.",sendFailed:"Send failed.",parseFailed:"Failed at parsing response: {0}",longPollFailed:"Long polling request failed.",eventSourceFailedToConnect:"EventSource failed to connect.",eventSourceError:"Error raised by EventSource",webSocketClosed:"WebSocket closed.",pingServerFailedInvalidResponse:"Invalid ping response when pinging server: '{0}'.",pingServerFailed:"Failed to ping server.",pingServerFailedStatusCode:"Failed to ping server.  Server responded with status code {0}, stopping the connection.",pingServerFailedParse:"Failed to parse ping server response, stopping the connection.",noConnectionTransport:"Connection is in an invalid state, there is no transport active.",webSocketsInvalidState:"The Web Socket transport is in an invalid state, transitioning into reconnecting.",reconnectTimeout:"Couldn't reconnect within the configured timeout of {0} ms, disconnecting.",reconnectWindowTimeout:"The client has been inactive since {0} and it has exceeded the inactivity timeout of {1} ms. Stopping the connection."};if(typeof n!="function")throw new Error(f.nojQuery);var r,c,s=t.document.readyState==="complete",e=n(t),l="__Negotiate Aborted__",u={onStart:"onStart",onStarting:"onStarting",onReceived:"onReceived",onError:"onError",onConnectionSlow:"onConnectionSlow",onReconnecting:"onReconnecting",onReconnect:"onReconnect",onStateChanged:"onStateChanged",onDisconnect:"onDisconnect"},w=function(n,i){if(i!==!1){var r;typeof t.console!="undefined"&&(r="["+(new Date).toTimeString()+"] SignalR: "+n,t.console.debug?t.console.debug(r):t.console.log&&t.console.log(r))}},o=function(t,i,r){return i===t.state?(t.state=r,n(t).triggerHandler(u.onStateChanged,[{oldState:i,newState:r}]),!0):!1},b=function(n){return n.state===r.connectionState.disconnected},a=function(n){return n._.keepAliveData.activated&&n.transport.supportsKeepAlive(n)},k=function(i){var f,e;i._.configuredStopReconnectingTimeout||(e=function(t){var i=r._.format(r.resources.reconnectTimeout,t.disconnectTimeout);t.log(i);n(t).triggerHandler(u.onError,[r._.error(i,"TimeoutException")]);t.stop(!1,!1)},i.reconnecting(function(){var n=this;n.state===r.connectionState.reconnecting&&(f=t.setTimeout(function(){e(n)},n.disconnectTimeout))}),i.stateChanged(function(n){n.oldState===r.connectionState.reconnecting&&t.clearTimeout(f)}),i._.configuredStopReconnectingTimeout=!0)};r=function(n,t,i){return new r.fn.init(n,t,i)};r._={defaultContentType:"application/x-www-form-urlencoded; charset=UTF-8",ieVersion:function(){var i,n;return t.navigator.appName==="Microsoft Internet Explorer"&&(n=/MSIE ([0-9]+\.[0-9]+)/.exec(t.navigator.userAgent),n&&(i=t.parseFloat(n[1]))),i}(),error:function(n,t,i){var r=new Error(n);return r.source=t,typeof i!="undefined"&&(r.context=i),r},transportError:function(n,t,r,u){var f=this.error(n,r,u);return f.transport=t?t.name:i,f},format:function(){for(var t=arguments[0],n=0;n<arguments.length-1;n++)t=t.replace("{"+n+"}",arguments[n+1]);return t},firefoxMajorVersion:function(n){var t=n.match(/Firefox\/(\d+)/);return!t||!t.length||t.length<2?0:parseInt(t[1],10)},configurePingInterval:function(i){var f=i._.config,e=function(t){n(i).triggerHandler(u.onError,[t])};f&&!i._.pingIntervalId&&f.pingInterval&&(i._.pingIntervalId=t.setInterval(function(){r.transports._logic.pingServer(i).fail(e)},f.pingInterval))}};r.events=u;r.resources=f;r.ajaxDefaults={processData:!0,timeout:null,async:!0,global:!1,cache:!1};r.changeState=o;r.isDisconnecting=b;r.connectionState={connecting:0,connected:1,reconnecting:2,disconnected:4};r.hub={start:function(){throw new Error("SignalR: Error loading hubs. Ensure your hubs reference is correct, e.g. <script src='/signalr/js'><\/script>.");}};e.load(function(){s=!0});r.fn=r.prototype={init:function(t,i,r){var f=n(this);this.url=t;this.qs=i;this.lastError=null;this._={keepAliveData:{},connectingMessageBuffer:new p(this,function(n){f.triggerHandler(u.onReceived,[n])}),lastMessageAt:(new Date).getTime(),lastActiveAt:(new Date).getTime(),beatInterval:5e3,beatHandle:null,totalTransportConnectTimeout:0};typeof r=="boolean"&&(this.logging=r)},_parseResponse:function(n){var t=this;return n?typeof n=="string"?t.json.parse(n):n:n},_originalJson:t.JSON,json:t.JSON,isCrossDomain:function(i,r){var u;return(i=n.trim(i),r=r||t.location,i.indexOf("http")!==0)?!1:(u=t.document.createElement("a"),u.href=i,u.protocol+h(u.protocol,u.host)!==r.protocol+h(r.protocol,r.host))},ajaxDataType:"text",contentType:"application/json; charset=UTF-8",logging:!1,state:r.connectionState.disconnected,clientProtocol:"1.5",reconnectDelay:2e3,transportConnectTimeout:0,disconnectTimeout:3e4,reconnectWindow:3e4,keepAliveWarnAt:2/3,start:function(i,h){var c=this,y={pingInterval:3e5,waitForPageLoad:!0,transport:"auto",jsonp:!1},d,p=c._deferral||n.Deferred(),w=t.document.createElement("a"),b,g;if(c.lastError=null,c._deferral=p,!c.json)throw new Error("SignalR: No JSON parser found. Please ensure json2.js is referenced before the SignalR.js file if you need to support clients without native JSON parsing support, e.g. IE<8.");if(n.type(i)==="function"?h=i:n.type(i)==="object"&&(n.extend(y,i),n.type(y.callback)==="function"&&(h=y.callback)),y.transport=v(y.transport,c),!y.transport)throw new Error("SignalR: Invalid transport(s) specified, aborting start.");return(c._.config=y,!s&&y.waitForPageLoad===!0)?(c._.deferredStartHandler=function(){c.start(i,h)},e.bind("load",c._.deferredStartHandler),p.promise()):c.state===r.connectionState.connecting?p.promise():o(c,r.connectionState.disconnected,r.connectionState.connecting)===!1?(p.resolve(c),p.promise()):(k(c),w.href=c.url,w.protocol&&w.protocol!==":"?(c.protocol=w.protocol,c.host=w.host):(c.protocol=t.document.location.protocol,c.host=w.host||t.document.location.host),c.baseUrl=c.protocol+"//"+c.host,c.wsProtocol=c.protocol==="https:"?"wss://":"ws://",y.transport==="auto"&&y.jsonp===!0&&(y.transport="longPolling"),c.url.indexOf("//")===0&&(c.url=t.location.protocol+c.url,c.log("Protocol relative URL detected, normalizing it to '"+c.url+"'.")),this.isCrossDomain(c.url)&&(c.log("Auto detected cross domain url."),y.transport==="auto"&&(y.transport=["webSockets","serverSentEvents","longPolling"]),typeof y.withCredentials=="undefined"&&(y.withCredentials=!0),y.jsonp||(y.jsonp=!n.support.cors,y.jsonp&&c.log("Using jsonp because this browser doesn't support CORS.")),c.contentType=r._.defaultContentType),c.withCredentials=y.withCredentials,c.ajaxDataType=y.jsonp?"jsonp":"text",n(c).bind(u.onStart,function(){n.type(h)==="function"&&h.call(c);p.resolve(c)}),c._.initHandler=r.transports._logic.initHandler(c),d=function(i,s){var l=r._.error(f.noTransportOnInit);if(s=s||0,s>=i.length){s===0?c.log("No transports supported by the server were selected."):s===1?c.log("No fallback transports were selected."):c.log("Fallback transports exhausted.");n(c).triggerHandler(u.onError,[l]);p.reject(l);c.stop();return}if(c.state!==r.connectionState.disconnected){var y=i[s],h=r.transports[y],v=function(){d(i,s+1)};c.transport=h;try{c._.initHandler.start(h,function(){var i=r._.firefoxMajorVersion(t.navigator.userAgent)>=11,f=!!c.withCredentials&&i;c.log("The start request succeeded. Transitioning to the connected state.");a(c)&&r.transports._logic.monitorKeepAlive(c);r.transports._logic.startHeartbeat(c);r._.configurePingInterval(c);o(c,r.connectionState.connecting,r.connectionState.connected)||c.log("WARNING! The connection was not in the connecting state.");c._.connectingMessageBuffer.drain();n(c).triggerHandler(u.onStart);e.bind("unload",function(){c.log("Window unloading, stopping the connection.");c.stop(f)});i&&e.bind("beforeunload",function(){t.setTimeout(function(){c.stop(f)},0)})},v)}catch(w){c.log(h.name+" transport threw '"+w.message+"' when attempting to start.");v()}}},b=c.url+"/negotiate",g=function(t,i){var e=r._.error(f.errorOnNegotiate,t,i._.negotiateRequest);n(i).triggerHandler(u.onError,e);p.reject(e);i.stop()},n(c).triggerHandler(u.onStarting),b=r.transports._logic.prepareQueryString(c,b),c.log("Negotiating with '"+b+"'."),c._.negotiateRequest=r.transports._logic.ajax(c,{url:b,error:function(n,t){t!==l?g(n,c):p.reject(r._.error(f.stoppedWhileNegotiating,null,c._.negotiateRequest))},success:function(t){var i,e,h,o=[],s=[];try{i=c._parseResponse(t)}catch(l){g(r._.error(f.errorParsingNegotiateResponse,l),c);return}if(e=c._.keepAliveData,c.appRelativeUrl=i.Url,c.id=i.ConnectionId,c.token=i.ConnectionToken,c.webSocketServerUrl=i.WebSocketServerUrl,c._.pollTimeout=i.ConnectionTimeout*1e3+1e4,c.disconnectTimeout=i.DisconnectTimeout*1e3,c._.totalTransportConnectTimeout=c.transportConnectTimeout+i.TransportConnectTimeout*1e3,i.KeepAliveTimeout?(e.activated=!0,e.timeout=i.KeepAliveTimeout*1e3,e.timeoutWarning=e.timeout*c.keepAliveWarnAt,c._.beatInterval=(e.timeout-e.timeoutWarning)/3):e.activated=!1,c.reconnectWindow=c.disconnectTimeout+(e.timeout||0),!i.ProtocolVersion||i.ProtocolVersion!==c.clientProtocol){h=r._.error(r._.format(f.protocolIncompatible,c.clientProtocol,i.ProtocolVersion));n(c).triggerHandler(u.onError,[h]);p.reject(h);return}n.each(r.transports,function(n){if(n.indexOf("_")===0||n==="webSockets"&&!i.TryWebSockets)return!0;s.push(n)});n.isArray(y.transport)?n.each(y.transport,function(t,i){n.inArray(i,s)>=0&&o.push(i)}):y.transport==="auto"?o=s:n.inArray(y.transport,s)>=0&&o.push(y.transport);d(o)}}),p.promise())},starting:function(t){var i=this;return n(i).bind(u.onStarting,function(){t.call(i)}),i},send:function(n){var t=this;if(t.state===r.connectionState.disconnected)throw new Error("SignalR: Connection must be started before data can be sent. Call .start() before .send()");if(t.state===r.connectionState.connecting)throw new Error("SignalR: Connection has not been fully initialized. Use .start().done() or .start().fail() to run logic after the connection has started.");return t.transport.send(t,n),t},received:function(t){var i=this;return n(i).bind(u.onReceived,function(n,r){t.call(i,r)}),i},stateChanged:function(t){var i=this;return n(i).bind(u.onStateChanged,function(n,r){t.call(i,r)}),i},error:function(t){var i=this;return n(i).bind(u.onError,function(n,r,u){i.lastError=r;t.call(i,r,u)}),i},disconnected:function(t){var i=this;return n(i).bind(u.onDisconnect,function(){t.call(i)}),i},connectionSlow:function(t){var i=this;return n(i).bind(u.onConnectionSlow,function(){t.call(i)}),i},reconnecting:function(t){var i=this;return n(i).bind(u.onReconnecting,function(){t.call(i)}),i},reconnected:function(t){var i=this;return n(i).bind(u.onReconnect,function(){t.call(i)}),i},stop:function(i,h){var c=this,v=c._deferral;if(c._.deferredStartHandler&&e.unbind("load",c._.deferredStartHandler),delete c._.config,delete c._.deferredStartHandler,!s&&(!c._.config||c._.config.waitForPageLoad===!0)){c.log("Stopping connection prior to negotiate.");v&&v.reject(r._.error(f.stoppedWhileLoading));return}if(c.state!==r.connectionState.disconnected)return c.log("Stopping connection."),o(c,c.state,r.connectionState.disconnected),t.clearTimeout(c._.beatHandle),t.clearInterval(c._.pingIntervalId),c.transport&&(c.transport.stop(c),h!==!1&&c.transport.abort(c,i),a(c)&&r.transports._logic.stopMonitoringKeepAlive(c),c.transport=null),c._.negotiateRequest&&(c._.negotiateRequest.abort(l),delete c._.negotiateRequest),c._.initHandler&&c._.initHandler.stop(),n(c).triggerHandler(u.onDisconnect),delete c._deferral,delete c.messageId,delete c.groupsToken,delete c.id,delete c._.pingIntervalId,delete c._.lastMessageAt,delete c._.lastActiveAt,c._.connectingMessageBuffer.clear(),c},log:function(n){w(n,this.logging)}};r.fn.init.prototype=r.fn;r.noConflict=function(){return n.connection===r&&(n.connection=c),r};n.connection&&(c=n.connection);n.connection=n.signalR=r}(window.jQuery,window),function(n,t,i){function o(n){n._.keepAliveData.monitoring&&c(n);u.markActive(n)&&(n._.beatHandle=t.setTimeout(function(){o(n)},n._.beatInterval))}function c(t){var i=t._.keepAliveData,u;t.state===r.connectionState.connected&&(u=(new Date).getTime()-t._.lastMessageAt,u>=i.timeout?(t.log("Keep alive timed out.  Notifying transport that connection has been lost."),t.transport.lostConnection(t)):u>=i.timeoutWarning?i.userNotified||(t.log("Keep alive has been missed, connection may be dead/slow."),n(t).triggerHandler(f.onConnectionSlow),i.userNotified=!0):i.userNotified=!1)}function e(n,t){var i=n.url+t;return n.transport&&(i+="?transport="+n.transport.name),u.prepareQueryString(n,i)}function s(n){this.connection=n;this.startRequested=!1;this.startCompleted=!1;this.connectionStopped=!1}var r=n.signalR,f=n.signalR.events,l=n.signalR.changeState,h="__Start Aborted__",u;r.transports={};s.prototype={start:function(n,r,u){var f=this,e=f.connection,o=!1;if(f.startRequested||f.connectionStopped){e.log("WARNING! "+n.name+" transport cannot be started. Initialization ongoing or completed.");return}e.log(n.name+" transport starting.");f.transportTimeoutHandle=t.setTimeout(function(){o||(o=!0,e.log(n.name+" transport timed out when trying to connect."),f.transportFailed(n,i,u))},e._.totalTransportConnectTimeout);n.start(e,function(){o||f.initReceived(n,r)},function(t){return o||(o=!0,f.transportFailed(n,t,u)),!f.startCompleted||f.connectionStopped})},stop:function(){this.connectionStopped=!0;t.clearTimeout(this.transportTimeoutHandle);r.transports._logic.tryAbortStartRequest(this.connection)},initReceived:function(n,i){var u=this,f=u.connection;if(u.startRequested){f.log("WARNING! The client received multiple init messages.");return}u.connectionStopped||(u.startRequested=!0,t.clearTimeout(u.transportTimeoutHandle),f.log(n.name+" transport connected. Initiating start request."),r.transports._logic.ajaxStart(f,function(){u.startCompleted=!0;i()}))},transportFailed:function(i,u,e){var o=this.connection,h=o._deferral,s;this.connectionStopped||(t.clearTimeout(this.transportTimeoutHandle),this.startRequested?this.startCompleted||(s=r._.error(r.resources.errorDuringStartRequest,u),o.log(i.name+" transport failed during the start request. Stopping the connection."),n(o).triggerHandler(f.onError,[s]),h&&h.reject(s),o.stop()):(i.stop(o),o.log(i.name+" transport failed to connect. Attempting to fall back."),e()))}};u=r.transports._logic={ajax:function(t,i){return n.ajax(n.extend(!0,{},n.signalR.ajaxDefaults,{type:"GET",data:{},xhrFields:{withCredentials:t.withCredentials},contentType:t.contentType,dataType:t.ajaxDataType},i))},pingServer:function(t){var e,f,i=n.Deferred();return t.transport?(e=t.url+"/ping",e=u.addQs(e,t.qs),f=u.ajax(t,{url:e,success:function(n){var u;try{u=t._parseResponse(n)}catch(e){i.reject(r._.transportError(r.resources.pingServerFailedParse,t.transport,e,f));t.stop();return}u.Response==="pong"?i.resolve():i.reject(r._.transportError(r._.format(r.resources.pingServerFailedInvalidResponse,n),t.transport,null,f))},error:function(n){n.status===401||n.status===403?(i.reject(r._.transportError(r._.format(r.resources.pingServerFailedStatusCode,n.status),t.transport,n,f)),t.stop()):i.reject(r._.transportError(r.resources.pingServerFailed,t.transport,n,f))}})):i.reject(r._.transportError(r.resources.noConnectionTransport,t.transport)),i.promise()},prepareQueryString:function(n,i){var r;return r=u.addQs(i,"clientProtocol="+n.clientProtocol),r=u.addQs(r,n.qs),n.token&&(r+="&connectionToken="+t.encodeURIComponent(n.token)),n.data&&(r+="&connectionData="+t.encodeURIComponent(n.data)),r},addQs:function(t,i){var r=t.indexOf("?")!==-1?"&":"?",u;if(!i)return t;if(typeof i=="object")return t+r+n.param(i);if(typeof i=="string")return u=i.charAt(0),(u==="?"||u==="&")&&(r=""),t+r+i;throw new Error("Query string property must be either a string or object.");},getUrl:function(n,i,r,f,e){var h=i==="webSockets"?"":n.baseUrl,o=h+n.appRelativeUrl,s="transport="+i;return!e&&n.groupsToken&&(s+="&groupsToken="+t.encodeURIComponent(n.groupsToken)),r?(o+=f?"/poll":"/reconnect",!e&&n.messageId&&(s+="&messageId="+t.encodeURIComponent(n.messageId))):o+="/connect",o+="?"+s,o=u.prepareQueryString(n,o),e||(o+="&tid="+Math.floor(Math.random()*11)),o},maximizePersistentResponse:function(n){return{MessageId:n.C,Messages:n.M,Initialized:typeof n.S!="undefined"?!0:!1,ShouldReconnect:typeof n.T!="undefined"?!0:!1,LongPollDelay:n.L,GroupsToken:n.G}},updateGroups:function(n,t){t&&(n.groupsToken=t)},stringifySend:function(n,t){return typeof t=="string"||typeof t=="undefined"||t===null?t:n.json.stringify(t)},ajaxSend:function(t,i){var h=u.stringifySend(t,i),c=e(t,"/send"),o,s=function(t,u){n(u).triggerHandler(f.onError,[r._.transportError(r.resources.sendFailed,u.transport,t,o),i])};return o=u.ajax(t,{url:c,type:t.ajaxDataType==="jsonp"?"GET":"POST",contentType:r._.defaultContentType,data:{data:h},success:function(n){var i;if(n){try{i=t._parseResponse(n)}catch(r){s(r,t);t.stop();return}u.triggerReceived(t,i)}},error:function(n,i){i!=="abort"&&i!=="parsererror"&&s(n,t)}})},ajaxAbort:function(n,t){if(typeof n.transport!="undefined"){t=typeof t=="undefined"?!0:t;var i=e(n,"/abort");u.ajax(n,{url:i,async:t,timeout:1e3,type:"POST"});n.log("Fired ajax abort async = "+t+".")}},ajaxStart:function(t,i){var s=function(n){var i=t._deferral;i&&i.reject(n)},o=function(i){t.log("The start request failed. Stopping the connection.");n(t).triggerHandler(f.onError,[i]);s(i);t.stop()};t._.startRequest=u.ajax(t,{url:e(t,"/start"),success:function(n,u,f){var e;try{e=t._parseResponse(n)}catch(s){o(r._.error(r._.format(r.resources.errorParsingStartResponse,n),s,f));return}e.Response==="started"?i():o(r._.error(r._.format(r.resources.invalidStartResponse,n),null,f))},error:function(n,i,u){i!==h?o(r._.error(r.resources.errorDuringStartRequest,u,n)):(t.log("The start request aborted because connection.stop() was called."),s(r._.error(r.resources.stoppedDuringStartRequest,null,n)))}})},tryAbortStartRequest:function(n){n._.startRequest&&(n._.startRequest.abort(h),delete n._.startRequest)},tryInitialize:function(n,t){n.Initialized&&t()},triggerReceived:function(t,i){t._.connectingMessageBuffer.tryBuffer(i)||n(t).triggerHandler(f.onReceived,[i])},processMessages:function(t,i,r){var f;u.markLastMessage(t);i&&(f=u.maximizePersistentResponse(i),u.updateGroups(t,f.GroupsToken),f.MessageId&&(t.messageId=f.MessageId),f.Messages&&(n.each(f.Messages,function(n,i){u.triggerReceived(t,i)}),u.tryInitialize(f,r)))},monitorKeepAlive:function(t){var i=t._.keepAliveData;i.monitoring?t.log("Tried to monitor keep alive but it's already being monitored."):(i.monitoring=!0,u.markLastMessage(t),t._.keepAliveData.reconnectKeepAliveUpdate=function(){u.markLastMessage(t)},n(t).bind(f.onReconnect,t._.keepAliveData.reconnectKeepAliveUpdate),t.log("Now monitoring keep alive with a warning timeout of "+i.timeoutWarning+", keep alive timeout of "+i.timeout+" and disconnecting timeout of "+t.disconnectTimeout))},stopMonitoringKeepAlive:function(t){var i=t._.keepAliveData;i.monitoring&&(i.monitoring=!1,n(t).unbind(f.onReconnect,t._.keepAliveData.reconnectKeepAliveUpdate),t._.keepAliveData={},t.log("Stopping the monitoring of the keep alive."))},startHeartbeat:function(n){n._.lastActiveAt=(new Date).getTime();o(n)},markLastMessage:function(n){n._.lastMessageAt=(new Date).getTime()},markActive:function(n){return u.verifyLastActive(n)?(n._.lastActiveAt=(new Date).getTime(),!0):!1},isConnectedOrReconnecting:function(n){return n.state===r.connectionState.connected||n.state===r.connectionState.reconnecting},ensureReconnectingState:function(t){return l(t,r.connectionState.connected,r.connectionState.reconnecting)===!0&&n(t).triggerHandler(f.onReconnecting),t.state===r.connectionState.reconnecting},clearReconnectTimeout:function(n){n&&n._.reconnectTimeout&&(t.clearTimeout(n._.reconnectTimeout),delete n._.reconnectTimeout)},verifyLastActive:function(t){if((new Date).getTime()-t._.lastActiveAt>=t.reconnectWindow){var i=r._.format(r.resources.reconnectWindowTimeout,new Date(t._.lastActiveAt),t.reconnectWindow);return t.log(i),n(t).triggerHandler(f.onError,[r._.error(i,"TimeoutException")]),t.stop(!1,!1),!1}return!0},reconnect:function(n,i){var f=r.transports[i];if(u.isConnectedOrReconnecting(n)&&!n._.reconnectTimeout){if(!u.verifyLastActive(n))return;n._.reconnectTimeout=t.setTimeout(function(){u.verifyLastActive(n)&&(f.stop(n),u.ensureReconnectingState(n)&&(n.log(i+" reconnecting."),f.start(n)))},n.reconnectDelay)}},handleParseFailure:function(t,i,u,e,o){var s=r._.transportError(r._.format(r.resources.parseFailed,i),t.transport,u,o);e&&e(s)?t.log("Failed to parse server response while attempting to connect."):(n(t).triggerHandler(f.onError,[s]),t.stop())},initHandler:function(n){return new s(n)},foreverFrame:{count:0,connections:{}}}}(window.jQuery,window),function(n,t){var r=n.signalR,u=n.signalR.events,f=n.signalR.changeState,i=r.transports._logic;r.transports.webSockets={name:"webSockets",supportsKeepAlive:function(){return!0},send:function(t,f){var e=i.stringifySend(t,f);try{t.socket.send(e)}catch(o){n(t).triggerHandler(u.onError,[r._.transportError(r.resources.webSocketsInvalidState,t.transport,o,t.socket),f])}},start:function(e,o,s){var h,c=!1,l=this,a=!o,v=n(e);if(!t.WebSocket){s();return}e.socket||(h=e.webSocketServerUrl?e.webSocketServerUrl:e.wsProtocol+e.host,h+=i.getUrl(e,this.name,a),e.log("Connecting to websocket endpoint '"+h+"'."),e.socket=new t.WebSocket(h),e.socket.onopen=function(){c=!0;e.log("Websocket opened.");i.clearReconnectTimeout(e);f(e,r.connectionState.reconnecting,r.connectionState.connected)===!0&&v.triggerHandler(u.onReconnect)},e.socket.onclose=function(t){var i;this===e.socket&&(c&&typeof t.wasClean!="undefined"&&t.wasClean===!1?(i=r._.transportError(r.resources.webSocketClosed,e.transport,t),e.log("Unclean disconnect from websocket: "+(t.reason||"[no reason given]."))):e.log("Websocket closed."),s&&s(i)||(i&&n(e).triggerHandler(u.onError,[i]),l.reconnect(e)))},e.socket.onmessage=function(t){var r;try{r=e._parseResponse(t.data)}catch(u){i.handleParseFailure(e,t.data,u,s,t);return}r&&(n.isEmptyObject(r)||r.M?i.processMessages(e,r,o):i.triggerReceived(e,r))})},reconnect:function(n){i.reconnect(n,this.name)},lostConnection:function(n){this.reconnect(n)},stop:function(n){i.clearReconnectTimeout(n);n.socket&&(n.log("Closing the Websocket."),n.socket.close(),n.socket=null)},abort:function(n,t){i.ajaxAbort(n,t)}}}(window.jQuery,window),function(n,t){var i=n.signalR,u=n.signalR.events,e=n.signalR.changeState,r=i.transports._logic,f=function(n){t.clearTimeout(n._.reconnectAttemptTimeoutHandle);delete n._.reconnectAttemptTimeoutHandle};i.transports.serverSentEvents={name:"serverSentEvents",supportsKeepAlive:function(){return!0},timeOut:3e3,start:function(o,s,h){var c=this,l=!1,a=n(o),v=!s,y;if(o.eventSource&&(o.log("The connection already has an event source. Stopping it."),o.stop()),!t.EventSource){h&&(o.log("This browser doesn't support SSE."),h());return}y=r.getUrl(o,this.name,v);try{o.log("Attempting to connect to SSE endpoint '"+y+"'.");o.eventSource=new t.EventSource(y,{withCredentials:o.withCredentials})}catch(p){o.log("EventSource failed trying to connect with error "+p.Message+".");h?h():(a.triggerHandler(u.onError,[i._.transportError(i.resources.eventSourceFailedToConnect,o.transport,p)]),v&&c.reconnect(o));return}v&&(o._.reconnectAttemptTimeoutHandle=t.setTimeout(function(){l===!1&&o.eventSource.readyState!==t.EventSource.OPEN&&c.reconnect(o)},c.timeOut));o.eventSource.addEventListener("open",function(){o.log("EventSource connected.");f(o);r.clearReconnectTimeout(o);l===!1&&(l=!0,e(o,i.connectionState.reconnecting,i.connectionState.connected)===!0&&a.triggerHandler(u.onReconnect))},!1);o.eventSource.addEventListener("message",function(n){var t;if(n.data!=="initialized"){try{t=o._parseResponse(n.data)}catch(i){r.handleParseFailure(o,n.data,i,h,n);return}r.processMessages(o,t,s)}},!1);o.eventSource.addEventListener("error",function(n){var r=i._.transportError(i.resources.eventSourceError,o.transport,n);this===o.eventSource&&(h&&h(r)||(o.log("EventSource readyState: "+o.eventSource.readyState+"."),n.eventPhase===t.EventSource.CLOSED?(o.log("EventSource reconnecting due to the server connection ending."),c.reconnect(o)):(o.log("EventSource error."),a.triggerHandler(u.onError,[r]))))},!1)},reconnect:function(n){r.reconnect(n,this.name)},lostConnection:function(n){this.reconnect(n)},send:function(n,t){r.ajaxSend(n,t)},stop:function(n){f(n);r.clearReconnectTimeout(n);n&&n.eventSource&&(n.log("EventSource calling close()."),n.eventSource.close(),n.eventSource=null,delete n.eventSource)},abort:function(n,t){r.ajaxAbort(n,t)}}}(window.jQuery,window),function(n,t){var r=n.signalR,e=n.signalR.events,o=n.signalR.changeState,i=r.transports._logic,u=function(){var n=t.document.createElement("iframe");return n.setAttribute("style","position:absolute;top:0;left:0;width:0;height:0;visibility:hidden;"),n},f=function(){var i=null,f=1e3,n=0;return{prevent:function(){r._.ieVersion<=8&&(n===0&&(i=t.setInterval(function(){var n=u();t.document.body.appendChild(n);t.document.body.removeChild(n);n=null},f)),n++)},cancel:function(){n===1&&t.clearInterval(i);n>0&&n--}}}();r.transports.foreverFrame={name:"foreverFrame",supportsKeepAlive:function(){return!0},iframeClearThreshold:50,start:function(n,r,e){var l=this,s=i.foreverFrame.count+=1,h,o=u(),c=function(){n.log("Forever frame iframe finished loading and is no longer receiving messages.");e&&e()||l.reconnect(n)};if(t.EventSource){e&&(n.log("Forever Frame is not supported by SignalR on browsers with SSE support."),e());return}o.setAttribute("data-signalr-connection-id",n.id);f.prevent();h=i.getUrl(n,this.name);h+="&frameId="+s;t.document.documentElement.appendChild(o);n.log("Binding to iframe's load event.");o.addEventListener?o.addEventListener("load",c,!1):o.attachEvent&&o.attachEvent("onload",c);o.src=h;i.foreverFrame.connections[s]=n;n.frame=o;n.frameId=s;r&&(n.onSuccess=function(){n.log("Iframe transport started.");r()})},reconnect:function(n){var r=this;i.isConnectedOrReconnecting(n)&&i.verifyLastActive(n)&&t.setTimeout(function(){if(i.verifyLastActive(n)&&n.frame&&i.ensureReconnectingState(n)){var u=n.frame,t=i.getUrl(n,r.name,!0)+"&frameId="+n.frameId;n.log("Updating iframe src to '"+t+"'.");u.src=t}},n.reconnectDelay)},lostConnection:function(n){this.reconnect(n)},send:function(n,t){i.ajaxSend(n,t)},receive:function(t,u){var f,e,o;if(t.json!==t._originalJson&&(u=t._originalJson.stringify(u)),o=t._parseResponse(u),i.processMessages(t,o,t.onSuccess),t.state===n.signalR.connectionState.connected&&(t.frameMessageCount=(t.frameMessageCount||0)+1,t.frameMessageCount>r.transports.foreverFrame.iframeClearThreshold&&(t.frameMessageCount=0,f=t.frame.contentWindow||t.frame.contentDocument,f&&f.document&&f.document.body)))for(e=f.document.body;e.firstChild;)e.removeChild(e.firstChild)},stop:function(n){var r=null;if(f.cancel(),n.frame){if(n.frame.stop)n.frame.stop();else try{r=n.frame.contentWindow||n.frame.contentDocument;r.document&&r.document.execCommand&&r.document.execCommand("Stop")}catch(u){n.log("Error occured when stopping foreverFrame transport. Message = "+u.message+".")}n.frame.parentNode===t.document.body&&t.document.body.removeChild(n.frame);delete i.foreverFrame.connections[n.frameId];n.frame=null;n.frameId=null;delete n.frame;delete n.frameId;delete n.onSuccess;delete n.frameMessageCount;n.log("Stopping forever frame.")}},abort:function(n,t){i.ajaxAbort(n,t)},getConnection:function(n){return i.foreverFrame.connections[n]},started:function(t){o(t,r.connectionState.reconnecting,r.connectionState.connected)===!0&&n(t).triggerHandler(e.onReconnect)}}}(window.jQuery,window),function(n,t){var r=n.signalR,u=n.signalR.events,e=n.signalR.changeState,f=n.signalR.isDisconnecting,i=r.transports._logic;r.transports.longPolling={name:"longPolling",supportsKeepAlive:function(){return!1},reconnectDelay:3e3,start:function(o,s,h){var a=this,v=function(){v=n.noop;o.log("LongPolling connected.");s()},y=function(n){return h(n)?(o.log("LongPolling failed to connect."),!0):!1},c=o._,l=0,p=function(i){t.clearTimeout(c.reconnectTimeoutId);c.reconnectTimeoutId=null;e(i,r.connectionState.reconnecting,r.connectionState.connected)===!0&&(i.log("Raising the reconnect event"),n(i).triggerHandler(u.onReconnect))},w=36e5;o.pollXhr&&(o.log("Polling xhr requests already exists, aborting."),o.stop());o.messageId=null;c.reconnectTimeoutId=null;c.pollTimeoutId=t.setTimeout(function(){(function e(s,h){var g=s.messageId,nt=g===null,k=!nt,tt=!h,d=i.getUrl(s,a.name,k,tt,!0),b={};(s.messageId&&(b.messageId=s.messageId),s.groupsToken&&(b.groupsToken=s.groupsToken),f(s)!==!0)&&(o.log("Opening long polling request to '"+d+"'."),s.pollXhr=i.ajax(o,{xhrFields:{onprogress:function(){i.markLastMessage(o)}},url:d,type:"POST",contentType:r._.defaultContentType,data:b,timeout:o._.pollTimeout,success:function(r){var h,w=0,u,a;o.log("Long poll complete.");l=0;try{h=o._parseResponse(r)}catch(b){i.handleParseFailure(s,r,b,y,s.pollXhr);return}(c.reconnectTimeoutId!==null&&p(s),h&&(u=i.maximizePersistentResponse(h)),i.processMessages(s,h,v),u&&n.type(u.LongPollDelay)==="number"&&(w=u.LongPollDelay),f(s)!==!0)&&(a=u&&u.ShouldReconnect,!a||i.ensureReconnectingState(s))&&(w>0?c.pollTimeoutId=t.setTimeout(function(){e(s,a)},w):e(s,a))},error:function(f,h){var v=r._.transportError(r.resources.longPollFailed,o.transport,f,s.pollXhr);if(t.clearTimeout(c.reconnectTimeoutId),c.reconnectTimeoutId=null,h==="abort"){o.log("Aborted xhr request.");return}if(!y(v)){if(l++,o.state!==r.connectionState.reconnecting&&(o.log("An error occurred using longPolling. Status = "+h+".  Response = "+f.responseText+"."),n(s).triggerHandler(u.onError,[v])),(o.state===r.connectionState.connected||o.state===r.connectionState.reconnecting)&&!i.verifyLastActive(o))return;if(!i.ensureReconnectingState(s))return;c.pollTimeoutId=t.setTimeout(function(){e(s,!0)},a.reconnectDelay)}}}),k&&h===!0&&(c.reconnectTimeoutId=t.setTimeout(function(){p(s)},Math.min(1e3*(Math.pow(2,l)-1),w))))})(o)},250)},lostConnection:function(n){n.pollXhr&&n.pollXhr.abort("lostConnection")},send:function(n,t){i.ajaxSend(n,t)},stop:function(n){t.clearTimeout(n._.pollTimeoutId);t.clearTimeout(n._.reconnectTimeoutId);delete n._.pollTimeoutId;delete n._.reconnectTimeoutId;n.pollXhr&&(n.pollXhr.abort(),n.pollXhr=null,delete n.pollXhr)},abort:function(n,t){i.ajaxAbort(n,t)}}}(window.jQuery,window),function(n){function r(n){return n+s}function e(n,t,i){for(var f=n.length,u=[],r=0;r<f;r+=1)n.hasOwnProperty(r)&&(u[r]=t.call(i,n[r],r,n));return u}function o(t){return n.isFunction(t)?null:n.type(t)==="undefined"?null:t}function u(n){for(var t in n)if(n.hasOwnProperty(t))return!0;return!1}function f(n,t){var i=n._.invocationCallbacks,r,f;u(i)&&n.log("Clearing hub invocation callbacks with error: "+t+".");n._.invocationCallbackId=0;delete n._.invocationCallbacks;n._.invocationCallbacks={};for(f in i)r=i[f],r.method.call(r.scope,{E:t})}function i(n,t){return new i.fn.init(n,t)}function t(i,r){var u={qs:null,logging:!1,useDefaultPath:!0};return n.extend(u,r),(!i||u.useDefaultPath)&&(i=(i||"")+"/signalr"),new t.fn.init(i,u)}var s=".hubProxy",h=n.signalR;i.fn=i.prototype={init:function(n,t){this.state={};this.connection=n;this.hubName=t;this._={callbackMap:{}}},constructor:i,hasSubscriptions:function(){return u(this._.callbackMap)},on:function(t,i){var u=this,f=u._.callbackMap;return t=t.toLowerCase(),f[t]||(f[t]={}),f[t][i]=function(n,t){i.apply(u,t)},n(u).bind(r(t),f[t][i]),u},off:function(t,i){var e=this,o=e._.callbackMap,f;return t=t.toLowerCase(),f=o[t],f&&(f[i]?(n(e).unbind(r(t),f[i]),delete f[i],u(f)||delete o[t]):i||(n(e).unbind(r(t)),delete o[t])),e},invoke:function(t){var i=this,r=i.connection,s=n.makeArray(arguments).slice(1),c=e(s,o),f={H:i.hubName,M:t,A:c,I:r._.invocationCallbackId},u=n.Deferred(),l=function(f){var e=i._maximizeHubResponse(f),s,o;n.extend(i.state,e.State);e.Progress?u.notifyWith?u.notifyWith(i,[e.Progress.Data]):r._.progressjQueryVersionLogged||(r.log("A hub method invocation progress update was received but the version of jQuery in use ("+n.prototype.jquery+") does not support progress updates. Upgrade to jQuery 1.7+ to receive progress notifications."),r._.progressjQueryVersionLogged=!0):e.Error?(e.StackTrace&&r.log(e.Error+"\n"+e.StackTrace+"."),s=e.IsHubException?"HubException":"Exception",o=h._.error(e.Error,s),o.data=e.ErrorData,r.log(i.hubName+"."+t+" failed to execute. Error: "+o.message),u.rejectWith(i,[o])):(r.log("Invoked "+i.hubName+"."+t),u.resolveWith(i,[e.Result]))};return r._.invocationCallbacks[r._.invocationCallbackId.toString()]={scope:i,method:l},r._.invocationCallbackId+=1,n.isEmptyObject(i.state)||(f.S=i.state),r.log("Invoking "+i.hubName+"."+t),r.send(f),u.promise()},_maximizeHubResponse:function(n){return{State:n.S,Result:n.R,Progress:n.P?{Id:n.P.I,Data:n.P.D}:null,Id:n.I,IsHubException:n.H,Error:n.E,StackTrace:n.T,ErrorData:n.D}}};i.fn.init.prototype=i.fn;t.fn=t.prototype=n.connection();t.fn.init=function(t,i){var e={qs:null,logging:!1,useDefaultPath:!0},u=this;n.extend(e,i);n.signalR.fn.init.call(u,t,e.qs,e.logging);u.proxies={};u._.invocationCallbackId=0;u._.invocationCallbacks={};u.received(function(t){var f,o,e,i,s,h;t&&(typeof t.P!="undefined"?(e=t.P.I.toString(),i=u._.invocationCallbacks[e],i&&i.method.call(i.scope,t)):typeof t.I!="undefined"?(e=t.I.toString(),i=u._.invocationCallbacks[e],i&&(u._.invocationCallbacks[e]=null,delete u._.invocationCallbacks[e],i.method.call(i.scope,t))):(f=this._maximizeClientHubInvocation(t),u.log("Triggering client hub event '"+f.Method+"' on hub '"+f.Hub+"'."),s=f.Hub.toLowerCase(),h=f.Method.toLowerCase(),o=this.proxies[s],n.extend(o.state,f.State),n(o).triggerHandler(r(h),[f.Args])))});u.error(function(n,t){var i,r;t&&(i=t.I,r=u._.invocationCallbacks[i],r&&(u._.invocationCallbacks[i]=null,delete u._.invocationCallbacks[i],r.method.call(r.scope,{E:n})))});u.reconnecting(function(){u.transport&&u.transport.name==="webSockets"&&f(u,"Connection started reconnecting before invocation result was received.")});u.disconnected(function(){f(u,"Connection was disconnected before invocation result was received.")})};t.fn._maximizeClientHubInvocation=function(n){return{Hub:n.H,Method:n.M,Args:n.A,State:n.S}};t.fn._registerSubscribedHubs=function(){var t=this;t._subscribedToHubs||(t._subscribedToHubs=!0,t.starting(function(){var i=[];n.each(t.proxies,function(n){this.hasSubscriptions()&&(i.push({name:n}),t.log("Client subscribed to hub '"+n+"'."))});i.length===0&&t.log("No hubs have been subscribed to.  The client will not receive data from hubs.  To fix, declare at least one client side function prior to connection start for each hub you wish to subscribe to.");t.data=t.json.stringify(i)}))};t.fn.createHubProxy=function(n){n=n.toLowerCase();var t=this.proxies[n];return t||(t=i(this,n),this.proxies[n]=t),this._registerSubscribedHubs(),t};t.fn.init.prototype=t.fn;n.hubConnection=t}(window.jQuery,window),function(n){n.signalR.version="2.2.0"}(window.jQuery);!function(n){"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?module.exports=n():window.noUiSlider=n()}(function(){"use strict";function v(n){return n.filter(function(n){return this[n]?!1:this[n]=!0},{})}function y(n,t){return Math.round(n/t)*t}function e(n){var i=n.getBoundingClientRect(),u=n.ownerDocument,r=u.documentElement,t=l();return/webkit.*Chrome.*Mobile/i.test(navigator.userAgent)&&(t.x=0),{top:i.top+t.y-r.clientTop,left:i.left+t.x-r.clientLeft}}function i(n){return"number"==typeof n&&!isNaN(n)&&isFinite(n)}function c(t,i,r){n(t,i);setTimeout(function(){u(t,i)},r)}function o(n){return Math.max(Math.min(n,100),0)}function r(n){return Array.isArray(n)?n:[n]}function p(n){var t=n.split(".");return t.length>1?t[1].length:0}function n(n,t){n.classList?n.classList.add(t):n.className+=" "+t}function u(n,t){n.classList?n.classList.remove(t):n.className=n.className.replace(new RegExp("(^|\\b)"+t.split(" ").join("|")+"(\\b|$)","gi")," ")}function w(n,t){return n.classList?n.classList.contains(t):new RegExp("\\b"+t+"\\b").test(n.className)}function l(){var n=void 0!==window.pageXOffset,t="CSS1Compat"===(document.compatMode||""),i=n?window.pageXOffset:t?document.documentElement.scrollLeft:document.body.scrollLeft,r=n?window.pageYOffset:t?document.documentElement.scrollTop:document.body.scrollTop;return{x:i,y:r}}function b(){return window.navigator.pointerEnabled?{start:"pointerdown",move:"pointermove",end:"pointerup"}:window.navigator.msPointerEnabled?{start:"MSPointerDown",move:"MSPointerMove",end:"MSPointerUp"}:{start:"mousedown touchstart",move:"mousemove touchmove",end:"mouseup touchend"}}function s(n,t){return 100/(t-n)}function h(n,t){return 100*t/(n[1]-n[0])}function k(n,t){return h(n,n[0]<0?t+Math.abs(n[0]):t-n[0])}function d(n,t){return t*(n[1]-n[0])/100+n[0]}function f(n,t){for(var i=1;n>=t[i];)i+=1;return i}function g(n,t,i){if(i>=n.slice(-1)[0])return 100;var e,o,u,h,r=f(i,n);return e=n[r-1],o=n[r],u=t[r-1],h=t[r],u+k([e,o],i)/s(u,h)}function nt(n,t,i){if(i>=100)return n.slice(-1)[0];var e,o,u,h,r=f(i,t);return e=n[r-1],o=n[r],u=t[r-1],h=t[r],d([e,o],(i-u)*s(u,h))}function tt(n,t,i,r){if(100===r)return r;var e,o,u=f(r,n);return i?(e=n[u-1],o=n[u],r-e>(o-e)/2?o:e):t[u-1]?n[u-1]+y(r-n[u-1],t[u-1]):r}function it(n,t,r){var u;if("number"==typeof t&&(t=[t]),"[object Array]"!==Object.prototype.toString.call(t))throw new Error("noUiSlider: 'range' contains invalid value.");if(u="min"===n?0:"max"===n?100:parseFloat(n),!i(u)||!i(t[0]))throw new Error("noUiSlider: 'range' value isn't numeric.");r.xPct.push(u);r.xVal.push(t[0]);u?r.xSteps.push(isNaN(t[1])?!1:t[1]):isNaN(t[1])||(r.xSteps[0]=t[1])}function rt(n,t,i){return t?void(i.xSteps[n]=h([i.xVal[n],i.xVal[n+1]],t)/s(i.xPct[n],i.xPct[n+1])):!0}function t(n,t,i,r){this.xPct=[];this.xVal=[];this.xSteps=[r||!1];this.xNumSteps=[!1];this.snap=t;this.direction=i;var u,f=[];for(u in n)n.hasOwnProperty(u)&&f.push([n[u],u]);for(f.length&&"object"==typeof f[0][0]?f.sort(function(n,t){return n[0][0]-t[0][0]}):f.sort(function(n,t){return n[0]-t[0]}),u=0;u<f.length;u++)it(f[u][1],f[u][0],this);for(this.xNumSteps=this.xSteps.slice(0),u=0;u<this.xNumSteps.length;u++)rt(u,this.xNumSteps[u],this)}function ut(n,t){if(!i(t))throw new Error("noUiSlider: 'step' is not numeric.");n.singleStep=t}function ft(n,i){if("object"!=typeof i||Array.isArray(i))throw new Error("noUiSlider: 'range' is not an object.");if(void 0===i.min||void 0===i.max)throw new Error("noUiSlider: Missing 'min' or 'max' in 'range'.");if(i.min===i.max)throw new Error("noUiSlider: 'range' 'min' and 'max' cannot be equal.");n.spectrum=new t(i,n.snap,n.dir,n.singleStep)}function et(n,t){if(t=r(t),!Array.isArray(t)||!t.length||t.length>2)throw new Error("noUiSlider: 'start' option is incorrect.");n.handles=t.length;n.start=t}function ot(n,t){if(n.snap=t,"boolean"!=typeof t)throw new Error("noUiSlider: 'snap' option must be a boolean.");}function st(n,t){if(n.animate=t,"boolean"!=typeof t)throw new Error("noUiSlider: 'animate' option must be a boolean.");}function ht(n,t){if(n.animationDuration=t,"number"!=typeof t)throw new Error("noUiSlider: 'animationDuration' option must be a number.");}function ct(n,t){if("lower"===t&&1===n.handles)n.connect=1;else if("upper"===t&&1===n.handles)n.connect=2;else if(t===!0&&2===n.handles)n.connect=3;else{if(t!==!1)throw new Error("noUiSlider: 'connect' option doesn't match handle count.");n.connect=0}}function lt(n,t){switch(t){case"horizontal":n.ort=0;break;case"vertical":n.ort=1;break;default:throw new Error("noUiSlider: 'orientation' option is invalid.");}}function at(n,t){if(!i(t))throw new Error("noUiSlider: 'margin' option must be numeric.");if(0!==t&&(n.margin=n.spectrum.getMargin(t),!n.margin))throw new Error("noUiSlider: 'margin' option is only supported on linear sliders.");}function vt(n,t){if(!i(t))throw new Error("noUiSlider: 'limit' option must be numeric.");if(n.limit=n.spectrum.getMargin(t),!n.limit)throw new Error("noUiSlider: 'limit' option is only supported on linear sliders.");}function yt(n,t){switch(t){case"ltr":n.dir=0;break;case"rtl":n.dir=1;n.connect=[0,2,1,3][n.connect];break;default:throw new Error("noUiSlider: 'direction' option was not recognized.");}}function pt(n,t){if("string"!=typeof t)throw new Error("noUiSlider: 'behaviour' must be a string containing options.");var u=t.indexOf("tap")>=0,i=t.indexOf("drag")>=0,f=t.indexOf("fixed")>=0,r=t.indexOf("snap")>=0,e=t.indexOf("hover")>=0;if(i&&!n.connect)throw new Error("noUiSlider: 'drag' behaviour must be used with 'connect': true.");n.events={tap:u||r,drag:i,fixed:f,snap:r,hover:e}}function wt(n,t){var i;if(t!==!1)if(t===!0)for(n.tooltips=[],i=0;i<n.handles;i++)n.tooltips.push(!0);else{if(n.tooltips=r(t),n.tooltips.length!==n.handles)throw new Error("noUiSlider: must pass a formatter for all handles.");n.tooltips.forEach(function(n){if("boolean"!=typeof n&&("object"!=typeof n||"function"!=typeof n.to))throw new Error("noUiSlider: 'tooltips' must be passed a formatter or 'false'.");})}}function bt(n,t){if(n.format=t,"function"==typeof t.to&&"function"==typeof t.from)return!0;throw new Error("noUiSlider: 'format' requires 'to' and 'from' methods.");}function kt(n,t){if(void 0!==t&&"string"!=typeof t&&t!==!1)throw new Error("noUiSlider: 'cssPrefix' must be a string or `false`.");n.cssPrefix=t}function dt(n,t){if(void 0!==t&&"object"!=typeof t)throw new Error("noUiSlider: 'cssClasses' must be an object.");if("string"==typeof n.cssPrefix){n.cssClasses={};for(var i in t)t.hasOwnProperty(i)&&(n.cssClasses[i]=n.cssPrefix+t[i])}else n.cssClasses=t}function a(n){var i,t={margin:0,limit:0,animate:!0,animationDuration:300,format:ti},r;return i={step:{r:!1,t:ut},start:{r:!0,t:et},connect:{r:!0,t:ct},direction:{r:!0,t:yt},snap:{r:!1,t:ot},animate:{r:!1,t:st},animationDuration:{r:!1,t:ht},range:{r:!0,t:ft},orientation:{r:!1,t:lt},margin:{r:!1,t:at},limit:{r:!1,t:vt},behaviour:{r:!0,t:pt},format:{r:!1,t:bt},tooltips:{r:!1,t:wt},cssPrefix:{r:!1,t:kt},cssClasses:{r:!1,t:dt}},r={connect:!1,direction:"ltr",behaviour:"tap",orientation:"horizontal",cssPrefix:"noUi-",cssClasses:{target:"target",base:"base",origin:"origin",handle:"handle",handleLower:"handle-lower",handleUpper:"handle-upper",horizontal:"horizontal",vertical:"vertical",background:"background",connect:"connect",ltr:"ltr",rtl:"rtl",draggable:"draggable",drag:"state-drag",tap:"state-tap",active:"active",stacking:"stacking",tooltip:"tooltip",pips:"pips",pipsHorizontal:"pips-horizontal",pipsVertical:"pips-vertical",marker:"marker",markerHorizontal:"marker-horizontal",markerVertical:"marker-vertical",markerNormal:"marker-normal",markerLarge:"marker-large",markerSub:"marker-sub",value:"value",valueHorizontal:"value-horizontal",valueVertical:"value-vertical",valueNormal:"value-normal",valueLarge:"value-large",valueSub:"value-sub"}},Object.keys(i).forEach(function(u){if(void 0===n[u]&&void 0===r[u]){if(i[u].r)throw new Error("noUiSlider: '"+u+"' is required.");return!0}i[u].t(t,void 0===n[u]?r[u]:n[u])}),t.pips=n.pips,t.style=t.ort?"top":"left",t}function gt(t,i,f){function yt(n,t,i){var r=n+t[0],u=n+t[1];return i?(0>r&&(u+=Math.abs(r)),u>100&&(r-=u-100),[o(r),o(u)]):[r,u]}function pt(n,t){n.preventDefault();var r,u,o=0===n.type.indexOf("touch"),e=0===n.type.indexOf("mouse"),f=0===n.type.indexOf("pointer"),i=n;return 0===n.type.indexOf("MSPointer")&&(f=!0),o&&(r=n.changedTouches[0].pageX,u=n.changedTouches[0].pageY),t=t||l(),(e||f)&&(r=n.clientX+t.x,u=n.clientY+t.y),i.pageOffset=t,i.points=[r,u],i.cursor=e||f,i}function wt(t,r){var u=document.createElement("div"),f=document.createElement("div"),e=[i.cssClasses.handleLower,i.cssClasses.handleUpper];return t&&e.reverse(),n(f,i.cssClasses.handle),n(f,e[r]),n(u,i.cssClasses.origin),u.appendChild(f),u}function bt(t,r,u){switch(t){case 1:n(r,i.cssClasses.connect);n(u[0],i.cssClasses.background);break;case 3:n(u[1],i.cssClasses.background);case 2:n(u[0],i.cssClasses.connect);case 0:n(r,i.cssClasses.background)}}function kt(n,t,i){for(var u=[],r=0;n>r;r+=1)u.push(i.appendChild(wt(t,r)));return u}function dt(t,r,u){n(u,i.cssClasses.target);0===t?n(u,i.cssClasses.ltr):n(u,i.cssClasses.rtl);0===r?n(u,i.cssClasses.horizontal):n(u,i.cssClasses.vertical);var f=document.createElement("div");return n(f,i.cssClasses.base),u.appendChild(f),f}function gt(n,t){if(!i.tooltips[t])return!1;var r=document.createElement("div");return r.className=i.cssClasses.tooltip,n.firstChild.appendChild(r)}function ni(){i.dir&&i.tooltips.reverse();var n=s.map(gt);i.dir&&(n.reverse(),i.tooltips.reverse());vt("update",function(t,r,u){n[r]&&(n[r].innerHTML=i.tooltips[r]===!0?t[r]:i.tooltips[r].to(u[r]))})}function ti(n,t,i){if("range"===n||"steps"===n)return h.xVal;if("count"===n){var r,u=100/(t-1),f=0;for(t=[];(r=f++*u)<=100;)t.push(r);n="positions"}return"positions"===n?t.map(function(n){return h.fromStepping(i?h.getStep(n):n)}):"values"===n?i?t.map(function(n){return h.fromStepping(h.getStep(h.toStepping(n)))}):t:void 0}function ii(n,t,i){function c(n,t){return(n+t).toFixed(7)/1}var l=h.direction,r={},f=h.xVal[0],e=h.xVal[h.xVal.length-1],o=!1,s=!1,u=0;return h.direction=0,i=v(i.slice().sort(function(n,t){return n-t})),i[0]!==f&&(i.unshift(f),o=!0),i[i.length-1]!==e&&(i.push(e),s=!0),i.forEach(function(f,e){var a,l,v,y,w,g,b,nt,k,tt,d=f,p=i[e+1];if("steps"===t&&(a=h.xNumSteps[e]),a||(a=p-d),d!==!1&&void 0!==p)for(l=d;p>=l;l=c(l,a)){for(y=h.toStepping(l),w=y-u,nt=w/n,k=Math.round(nt),tt=w/k,v=1;k>=v;v+=1)g=u+v*tt,r[g.toFixed(5)]=["x",0];b=i.indexOf(l)>-1?1:"steps"===t?2:0;!e&&o&&(b=0);l===p&&s||(r[y.toFixed(5)]=[l,b]);u=y}}),h.direction=l,r}function ri(t,r,u){function s(n,t){var r=t===i.cssClasses.value,u=r?v:y,f=r?l:a;return t+" "+u[i.ort]+" "+f[n]}function o(n,t,r){return'class="'+s(r[1],t)+'" style="'+i.style+": "+n+'%"'}function c(n,t){h.direction&&(n=100-n);t[1]=t[1]&&r?r(t[0],t[1]):t[1];e+="<div "+o(n,i.cssClasses.marker,t)+"><\/div>";t[1]&&(e+="<div "+o(n,i.cssClasses.value,t)+">"+u.to(t[0])+"<\/div>")}var f=document.createElement("div"),e="",l=[i.cssClasses.valueNormal,i.cssClasses.valueLarge,i.cssClasses.valueSub],a=[i.cssClasses.markerNormal,i.cssClasses.markerLarge,i.cssClasses.markerSub],v=[i.cssClasses.valueHorizontal,i.cssClasses.valueVertical],y=[i.cssClasses.markerHorizontal,i.cssClasses.markerVertical];return n(f,i.cssClasses.pips),n(f,0===i.ort?i.cssClasses.pipsHorizontal:i.cssClasses.pipsVertical),Object.keys(t).forEach(function(n){c(n,t[n])}),f.innerHTML=e,f}function lt(n){var t=n.mode,i=n.density||1,r=n.filter||!1,u=n.values||!1,f=n.stepped||!1,e=ti(t,u,f),o=ii(i,t,e),s=n.format||{to:Math.round};return y.appendChild(ri(o,r,s))}function et(){var n=g.getBoundingClientRect(),t="offset"+["Width","Height"][i.ort];return 0===i.ort?n.width||g[t]:n.height||g[t]}function k(n,t,u){for(var f=0;f<i.handles;f++)if(-1===d[f])return;void 0!==t&&1!==i.handles&&(t=Math.abs(t-i.dir));Object.keys(nt).forEach(function(i){var f=i.split(".")[0];n===f&&nt[i].forEach(function(n){n.call(ut,r(ct()),t,r(ot(Array.prototype.slice.call(ft))),u||!1,d)})})}function ot(n){return 1===n.length?n[0]:i.dir?n.reverse():n}function tt(n,t,r,u){var f=function(t){return y.hasAttribute("disabled")?!1:w(y,i.cssClasses.tap)?!1:(t=pt(t,u.pageOffset),n===it.start&&void 0!==t.buttons&&t.buttons>1?!1:u.hover&&t.buttons?!1:(t.calcPoint=t.points[i.ort],void r(t,u)))},e=[];return n.split(" ").forEach(function(n){t.addEventListener(n,f,!1);e.push([n,f])}),e}function ui(n,t){if(-1===navigator.appVersion.indexOf("MSIE 9")&&0===n.buttons&&0!==t.buttonsProperty)return st(n,t);var f,r,i=t.handles||s,u=!1,o=100*(n.calcPoint-t.start)/t.baseSize,e=i[0]===s[0]?0:1;if(f=yt(o,t.positions,i.length>1),u=rt(i[0],f[e],1===i.length),i.length>1){if(u=rt(i[1],f[e?0:1],!1)||u)for(r=0;r<t.handles.length;r++)k("slide",r)}else u&&k("slide",e)}function st(n,t){var f=g.querySelector("."+i.cssClasses.active),e=t.handles[0]===s[0]?0:1,r;null!==f&&u(f,i.cssClasses.active);n.cursor&&(document.body.style.cursor="",document.body.removeEventListener("selectstart",document.body.noUiListener));r=document.documentElement;r.noUiListeners.forEach(function(n){r.removeEventListener(n[0],n[1])});u(y,i.cssClasses.drag);k("set",e);k("change",e);void 0!==t.handleNumber&&k("end",t.handleNumber)}function fi(n,t){"mouseout"===n.type&&"HTML"===n.target.nodeName&&null===n.relatedTarget&&st(n,t)}function ht(t,r){var u=document.documentElement,f;if(1===r.handles.length){if(r.handles[0].hasAttribute("disabled"))return!1;n(r.handles[0].children[0],i.cssClasses.active)}t.preventDefault();t.stopPropagation();var e=tt(it.move,u,ui,{start:t.calcPoint,baseSize:et(),pageOffset:t.pageOffset,handles:r.handles,handleNumber:r.handleNumber,buttonsProperty:t.buttons,positions:[d[0],d[s.length-1]]}),o=tt(it.end,u,st,{handles:r.handles,handleNumber:r.handleNumber}),h=tt("mouseout",u,fi,{handles:r.handles,handleNumber:r.handleNumber});(u.noUiListeners=e.concat(o,h),t.cursor)&&(document.body.style.cursor=getComputedStyle(t.target).cursor,s.length>1&&n(y,i.cssClasses.drag),f=function(){return!1},document.body.noUiListener=f,document.body.addEventListener("selectstart",f,!1));void 0!==r.handleNumber&&k("start",r.handleNumber)}function ei(n){var t,u,r=n.calcPoint,f=0;return n.stopPropagation(),s.forEach(function(n){f+=e(n)[i.style]}),t=f/2>r||1===s.length?0:1,s[t].hasAttribute("disabled")&&(t=t?0:1),r-=e(g)[i.style],u=100*r/et(),i.events.snap||c(y,i.cssClasses.tap,i.animationDuration),s[t].hasAttribute("disabled")?!1:(rt(s[t],u),k("slide",t,!0),k("set",t,!0),k("change",t,!0),void(i.events.snap&&ht(n,{handles:[s[t]]})))}function oi(n){var t=n.calcPoint-e(g)[i.style],r=h.getStep(100*t/et()),u=h.fromStepping(r);Object.keys(nt).forEach(function(n){"hover"===n.split(".")[0]&&nt[n].forEach(function(n){n.call(ut,u)})})}function si(t){if(t.fixed||s.forEach(function(n,t){tt(it.start,n.children[0],ht,{handles:[n],handleNumber:t})}),t.tap&&tt(it.start,g,ei,{handles:s}),t.hover&&tt(it.move,g,oi,{hover:!0}),t.drag){var r=[g.querySelector("."+i.cssClasses.connect)];n(r[0],i.cssClasses.draggable);t.fixed&&r.push(s[r[0]===s[0]?1:0].children[0]);r.forEach(function(n){tt(it.start,n,ht,{handles:s})})}}function rt(t,r,f){var e=t!==s[0]?1:0,c=d[0]+i.margin,l=d[1]-i.margin,a=d[0]+i.limit,v=d[1]-i.limit;return s.length>1&&(r=e?Math.max(r,c):Math.min(r,l)),f!==!1&&i.limit&&s.length>1&&(r=e?Math.min(r,a):Math.max(r,v)),r=h.getStep(r),r=o(r),r===d[e]?!1:(window.requestAnimationFrame?window.requestAnimationFrame(function(){t.style[i.style]=r+"%"}):t.style[i.style]=r+"%",t.previousSibling||(u(t,i.cssClasses.stacking),r>50&&n(t,i.cssClasses.stacking)),d[e]=r,ft[e]=h.fromStepping(r),k("update",e),!0)}function hi(n,t){var u,f,r;for(i.limit&&(n+=1),u=0;n>u;u+=1)f=u%2,r=t[f],null!==r&&r!==!1&&("number"==typeof r&&(r=String(r)),r=i.format.from(r),(r===!1||isNaN(r)||rt(s[f],h.toStepping(r),u===3-i.dir)===!1)&&k("update",f))}function at(n,t){var e,u,f=r(n);for(t=void 0===t?!0:!!t,i.dir&&i.handles>1&&f.reverse(),i.animate&&-1!==d[0]&&c(y,i.cssClasses.tap,i.animationDuration),e=s.length>1?3:1,1===f.length&&(e=1),hi(e,f),u=0;u<s.length;u++)null!==f[u]&&t&&k("set",u)}function ct(){for(var t=[],n=0;n<i.handles;n+=1)t[n]=i.format.to(ft[n]);return ot(t)}function ci(){for(var n in i.cssClasses)i.cssClasses.hasOwnProperty(n)&&u(y,i.cssClasses[n]);for(;y.firstChild;)y.removeChild(y.firstChild);delete y.noUiSlider}function li(){var n=d.map(function(n,t){var i=h.getApplicableStep(n),r=p(String(i[2])),u=ft[t],f=100===n?null:i[2],e=Number((u-i[2]).toFixed(r)),o=0===n?null:e>=i[1]?i[2]:i[0]||!1;return[o,f]});return ot(n)}function vt(n,t){nt[n]=nt[n]||[];nt[n].push(t);"update"===n.split(".")[0]&&s.forEach(function(n,t){k("update",t)})}function ai(n){var t=n&&n.split(".")[0],i=t&&n.substring(t.length);Object.keys(nt).forEach(function(n){var r=n.split(".")[0],u=n.substring(r.length);t&&t!==r||i&&i!==u||delete nt[n]})}function vi(n,t){var u=ct(),r=a({start:[0,0],margin:n.margin,limit:n.limit,step:void 0===n.step?i.singleStep:n.step,range:n.range,animate:n.animate,snap:void 0===n.snap?i.snap:n.snap});["margin","limit","range","animate"].forEach(function(t){void 0!==n[t]&&(i[t]=n[t])});r.spectrum.direction=h.direction;h=r.spectrum;d=[-1,-1];at(n.start||u,t)}var g,s,ut,it=b(),y=t,d=[-1,-1],h=i.spectrum,ft=[],nt={};if(y.noUiSlider)throw new Error("Slider was already initialized.");return g=dt(i.dir,i.ort,y),s=kt(i.handles,i.dir,g),bt(i.connect,y,s),i.pips&&lt(i.pips),i.tooltips&&ni(),ut={destroy:ci,steps:li,on:vt,off:ai,get:ct,set:at,updateOptions:vi,options:f,target:y,pips:lt},si(i.events),ut}function ni(n,t){if(!n.nodeName)throw new Error("noUiSlider.create requires a single element.");var r=a(t,n),i=gt(n,r,t);return i.set(r.start),n.noUiSlider=i,i}t.prototype.getMargin=function(n){return 2===this.xPct.length?h(this.xVal,n):!1};t.prototype.toStepping=function(n){return n=g(this.xVal,this.xPct,n),this.direction&&(n=100-n),n};t.prototype.fromStepping=function(n){return this.direction&&(n=100-n),nt(this.xVal,this.xPct,n)};t.prototype.getStep=function(n){return this.direction&&(n=100-n),n=tt(this.xPct,this.xSteps,this.snap,n),this.direction&&(n=100-n),n};t.prototype.getApplicableStep=function(n){var t=f(n,this.xPct),i=100===n?2:1;return[this.xNumSteps[t-2],this.xVal[t-i],this.xNumSteps[t-i]]};t.prototype.convert=function(n){return this.getStep(this.toStepping(n))};var ti={to:function(n){return void 0!==n&&n.toFixed(2)},from:Number};return{create:ni}}),function(n,t,i){"use strict";function v(n){return function(){for(var i=arguments[0],u,t,r="["+(n?n+":":"")+i+"] http://errors.angularjs.org/1.8.2/"+(n?n+"/":"")+i,i=1;i<arguments.length;i++)r=r+(1==i?"?":"&")+"p"+(i-1)+"=",u=encodeURIComponent,t=arguments[i],t="function"==typeof t?t.toString().replace(/ \{[\s\S]*$/,""):"undefined"==typeof t?"undefined":"string"!=typeof t?JSON.stringify(t):t,r+=u(t);return Error(r)}}function pi(n){if(null==n||wi(n))return!1;var t=n.length;return n.nodeType===vt&&t?!0:a(n)||h(n)||0===t||"number"==typeof t&&0<t&&t-1 in n}function r(n,t,i){var u,f,e;if(n)if(o(n))for(u in n)"prototype"==u||"length"==u||"name"==u||n.hasOwnProperty&&!n.hasOwnProperty(u)||t.call(i,n[u],u,n);else if(h(n)||pi(n))for(e="object"!=typeof n,u=0,f=n.length;u<f;u++)(e||u in n)&&t.call(i,n[u],u,n);else if(n.forEach&&n.forEach!==r)n.forEach(t,i,n);else for(u in n)n.hasOwnProperty(u)&&t.call(i,n[u],u,n);return n}function lh(n,t,i){for(var r=Object.keys(n).sort(),u=0;u<r.length;u++)t.call(i,n[r[u]],r[u]);return r}function ne(n){return function(t,i){n(i,t)}}function ah(){return++lu}function te(n,t){t?n.$$hashKey=t:delete n.$$hashKey}function c(n){for(var t,u,e=n.$$hashKey,i=1,o=arguments.length;i<o;i++)if(t=arguments[i],t)for(var f=Object.keys(t),r=0,s=f.length;r<s;r++)u=f[r],n[u]=t[u];return te(n,e),n}function g(n){return parseInt(n,10)}function s(){}function ot(n){return n}function nt(n){return function(){return n}}function e(n){return"undefined"==typeof n}function u(n){return"undefined"!=typeof n}function l(n){return null!==n&&"object"==typeof n}function a(n){return"string"==typeof n}function b(n){return"number"==typeof n}function st(n){return"[object Date]"===fi.call(n)}function o(n){return"function"==typeof n}function wr(n){return"[object RegExp]"===fi.call(n)}function wi(n){return n&&n.window===n}function bi(n){return n&&n.$evalAsync&&n.$watch}function ki(n){return"boolean"==typeof n}function ie(n){return!(!n||!(n.nodeName||n.prop&&n.attr&&n.find))}function vh(n){var i={},t;for(n=n.split(","),t=0;t<n.length;t++)i[n[t]]=!0;return i}function pt(n){return y(n.nodeName||n[0]&&n[0].nodeName)}function di(n,t){var i=n.indexOf(t);return 0<=i&&n.splice(i,1),t}function ni(n,t,i,u){var e,f,o;if(wi(n)||bi(n))throw ai("cpws");if(t){if(n===t)throw ai("cpi");if(i=i||[],u=u||[],l(n)){if(e=i.indexOf(n),-1!==e)return u[e];i.push(n);u.push(t)}if(h(n))for(f=t.length=0;f<n.length;f++)e=ni(n[f],null,i,u),l(n[f])&&(i.push(n[f]),u.push(e)),t.push(e);else{o=t.$$hashKey;h(t)?t.length=0:r(t,function(n,i){delete t[i]});for(f in n)n.hasOwnProperty(f)&&(e=ni(n[f],null,i,u),l(n[f])&&(i.push(n[f]),u.push(e)),t[f]=e);te(t,o)}}else(t=n)&&(h(n)?t=ni(n,[],i,u):st(n)?t=new Date(n.getTime()):wr(n)?(t=new RegExp(n.source,n.toString().match(/[^\/]*$/)[0]),t.lastIndex=n.lastIndex):l(n)&&(e=Object.create(Object.getPrototypeOf(n)),t=ni(n,e,i,u)));return t}function ht(n,t){if(h(n)){t=t||[];for(var i=0,r=n.length;i<r;i++)t[i]=n[i]}else if(l(n))for(i in t=t||{},n)("$"!==i.charAt(0)||"$"!==i.charAt(1))&&(t[i]=n[i]);return t||n}function tt(n,t){if(n===t)return!0;if(null===n||null===t)return!1;if(n!==n&&t!==t)return!0;var u=typeof n,r;if(u==typeof t&&"object"==u)if(h(n)){if(!h(t))return!1;if((u=n.length)==t.length){for(r=0;r<u;r++)if(!tt(n[r],t[r]))return!1;return!0}}else{if(st(n))return st(t)?tt(n.getTime(),t.getTime()):!1;if(wr(n)&&wr(t))return n.toString()==t.toString();if(bi(n)||bi(t)||wi(n)||wi(t)||h(t))return!1;u={};for(r in n)if("$"!==r.charAt(0)&&!o(n[r])){if(!tt(n[r],t[r]))return!1;u[r]=!0}for(r in t)if(!u.hasOwnProperty(r)&&"$"!==r.charAt(0)&&t[r]!==i&&!o(t[r]))return!1;return!0}return!1}function gi(n,t,i){return n.concat(er.call(t,i))}function re(n,t){var i=2<arguments.length?er.call(arguments,2):[];return!o(t)||t instanceof RegExp?t:i.length?function(){return arguments.length?t.apply(n,gi(i,arguments,0)):t.apply(n,i)}:function(){return arguments.length?t.apply(n,arguments):t.call(n)}}function yh(n,r){var u=r;return"string"==typeof n&&"$"===n.charAt(0)&&"$"===n.charAt(1)?u=i:wi(r)?u="$WINDOW":r&&t===r?u="$DOCUMENT":bi(r)&&(u="$SCOPE"),u}function nr(n,t){return"undefined"==typeof n?i:(b(t)||(t=t?2:null),JSON.stringify(n,yh,t))}function ue(n){return a(n)?JSON.parse(n):n}function wt(n){n=f(n).clone();try{n.empty()}catch(i){}var t=f("<div>").append(n).html();try{return n[0].nodeType===vu?y(t):t.match(/^(<[^>]+>)/)[1].replace(/^<([\w\-]+)/,function(n,t){return"<"+y(t)})}catch(r){return y(t)}}function fe(n){try{return decodeURIComponent(n)}catch(t){}}function ee(n){var i={},f,t;return r((n||"").split("&"),function(n){n&&(f=n.replace(/\+/g,"%20").split("="),t=fe(f[0]),u(t)&&(n=u(f[1])?fe(f[1]):!0,fs.call(i,t)?h(i[t])?i[t].push(n):i[t]=[i[t],n]:i[t]=n))}),i}function bu(n){var t=[];return r(n,function(n,i){h(n)?r(n,function(n){t.push(ti(i,!0)+(!0===n?"":"="+ti(n,!0)))}):t.push(ti(i,!0)+(!0===n?"":"="+ti(n,!0)))}),t.length?t.join("&"):""}function br(n){return ti(n,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function ti(n,t){return encodeURIComponent(n).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%20/g,t?"%20":"+")}function ph(n,t){var i,r,u=au.length;for(n=f(n),r=0;r<u;++r)if(i=au[r]+t,a(i=n.attr(i)))return i;return null}function wh(n,t){var i,u,f={};r(au,function(t){t+="app";!i&&n.hasAttribute&&n.hasAttribute(t)&&(i=n,u=n.getAttribute(t))});r(au,function(t){t+="app";var r;!i&&(r=n.querySelector("["+t.replace(":","\\:")+"]"))&&(i=r,u=r.getAttribute(t))});i&&(f.strictDi=null!==ph(i,"strict-di"),t(i,u?[u]:[],f))}function oe(i,u,e){l(e)||(e={});e=c({strictDi:!1},e);var o=function(){if(i=f(i),i.injector()){var n=i[0]===t?"document":wt(i);throw ai("btstrpd",n.replace(/</,"&lt;").replace(/>/,"&gt;"));}return u=u||[],u.unshift(["$provide",function(n){n.value("$rootElement",i)}]),e.debugInfoEnabled&&u.push(["$compileProvider",function(n){n.debugInfoEnabled(!0)}]),u.unshift("ng"),n=tf(u,e.strictDi),n.invoke(["$rootScope","$rootElement","$compile","$injector",function(n,t,i,r){n.$apply(function(){t.data("$injector",r);i(t)(n)})}]),n},s=/^NG_ENABLE_DEBUG_INFO!/,h=/^NG_DEFER_BOOTSTRAP!/;if(n&&s.test(n.name)&&(e.debugInfoEnabled=!0,n.name=n.name.replace(s,"")),n&&!h.test(n.name))return o();n.name=n.name.replace(h,"");rt.resumeBootstrap=function(n){r(n,function(n){u.push(n)});o()}}function bh(){n.name="NG_ENABLE_DEBUG_INFO!"+n.name;n.location.reload()}function kh(n){if(n=rt.element(n).injector(),!n)throw ai("test");return n.get("$$testability")}function se(n,t){return t=t||"_",n.replace(fa,function(n,i){return(i?t:"")+n.toLowerCase()})}function dh(){var t;os||((at=n.jQuery)&&at.fn.on?(f=at,c(at.fn,{scope:ei.scope,isolateScope:ei.isolateScope,controller:ei.controller,injector:ei.injector,inheritedData:ei.inheritedData}),t=at.cleanData,at.cleanData=function(n){var u,i,r;if(af)af=!1;else for(i=0;null!=(r=n[i]);i++)(u=at._data(r,"events"))&&u.$destroy&&at(r).triggerHandler("$destroy");t(n)}):f=w,rt.element=f,os=!0)}function ku(n,t,i){if(!n)throw ai("areq",t||"?",i||"required");return n}function kr(n,t,i){return i&&h(n)&&(n=n[n.length-1]),ku(o(n),t,"not a function, got "+(n&&"object"==typeof n?n.constructor.name||"Object":typeof n)),n}function si(n,t){if("hasOwnProperty"===n)throw ai("badname",t);}function he(n,t,i){if(!t)return n;t=t.split(".");for(var u,f=n,e=t.length,r=0;r<e;r++)u=t[r],n&&(n=(f=n)[u]);return!i&&o(n)?re(f,n):n}function dr(n){var t=n[0],i;n=n[n.length-1];i=[t];do{if(t=t.nextSibling,!t)break;i.push(t)}while(t!==n);return f(i)}function it(){return Object.create(null)}function gh(n){function t(n,t,i){return n[t]||(n[t]=i())}var i=v("$injector"),r=v("ng");return n=t(n,"angular",Object),n.$$minErr=n.$$minErr||v,t(n,"module",function(){var n={};return function(u,f,e){if("hasOwnProperty"===u)throw r("badname","module");return f&&n.hasOwnProperty(u)&&(n[u]=null),t(n,u,function(){function n(n,i,r,u){return u||(u=t),function(){return u[r||"push"]([n,i,arguments]),h}}if(!f)throw i("nomod",u);var t=[],r=[],o=[],s=n("$injector","invoke","push",r),h={_invokeQueue:t,_configBlocks:r,_runBlocks:o,requires:f,name:u,provider:n("$provide","provider"),factory:n("$provide","factory"),service:n("$provide","service"),value:n("$provide","value"),constant:n("$provide","constant","unshift"),animation:n("$animateProvider","register"),filter:n("$filterProvider","register"),controller:n("$controllerProvider","register"),directive:n("$compileProvider","directive"),config:s,run:function(n){return o.push(n),this}};return e&&s(e),h})}})}function nc(t){c(t,{bootstrap:oe,copy:ni,extend:c,equals:tt,element:f,forEach:r,injector:tf,noop:s,bind:re,toJson:nr,fromJson:ue,identity:ot,isUndefined:e,isDefined:u,isString:a,isFunction:o,isObject:l,isNumber:b,isElement:ie,isArray:h,version:ea,isDate:st,lowercase:y,uppercase:cu,callbacks:{counter:0},getTestability:kh,$$minErr:v,$$csp:sr,reloadWithDebugInfo:bh});or=gh(n);try{or("ngLocale")}catch(i){or("ngLocale",[]).provider("$locale",nl)}or("ng",["ngLocale"],["$provide",function(n){n.provider({$$sanitizeUri:cl});n.provider("$compile",ke).directive({a:bs,input:rh,textarea:rh,form:vv,script:sp,select:lp,style:vp,option:ap,ngBind:ey,ngBindHtml:sy,ngBindTemplate:oy,ngClass:hy,ngClassEven:ly,ngClassOdd:cy,ngCloak:ay,ngController:vy,ngForm:yv,ngHide:ip,ngIf:py,ngInclude:wy,ngInit:ky,ngNonBindable:dy,ngPluralize:gy,ngRepeat:np,ngShow:tp,ngStyle:rp,ngSwitch:up,ngSwitchWhen:fp,ngSwitchDefault:ep,ngOptions:cp,ngTransclude:op,ngModel:ny,ngList:iy,ngChange:ty,pattern:oh,ngPattern:oh,required:eh,ngRequired:eh,minlength:hh,ngMinlength:hh,maxlength:sh,ngMaxlength:sh,ngValue:uy,ngModelOptions:fy}).directive({ngInclude:by}).directive(vr).directive(ch);n.provider({$anchorScroll:ec,$animate:ba,$browser:hc,$cacheFactory:cc,$controller:ac,$document:vc,$exceptionHandler:yc,$filter:ao,$interpolate:dc,$interval:gc,$http:pc,$httpBackend:bc,$location:tl,$log:il,$parse:fl,$rootScope:hl,$q:el,$$q:ol,$sce:vl,$sceDelegate:al,$sniffer:yl,$templateCache:lc,$templateRequest:pl,$$testability:wl,$timeout:bl,$window:kl,$$rAF:sl,$$asyncCallback:oc,$$jqLite:uc})}])}function tr(n){return n.replace(oa,function(n,t,i,r){return r?i.toUpperCase():i}).replace(sa,"Moz$1")}function ce(n){return n=n.nodeType,n===vt||!n||9===n}function le(n,t){var i,u,f=t.createDocumentFragment(),e=[];if(yf.test(n)){for(i=i||f.appendChild(t.createElement("div")),u=(la.exec(n)||["",""])[1].toLowerCase(),u=ut[u]||ut._default,i.innerHTML=u[1]+n.replace(aa,"<$1><\/$2>")+u[2],u=u[0];u--;)i=i.lastChild;e=gi(e,i.childNodes);i=f.firstChild;i.textContent=""}else e.push(t.createTextNode(n));return f.textContent="",f.innerHTML="",r(e,function(n){f.appendChild(n)}),f}function w(n){var i,r;if(n instanceof w)return n;if(a(n)&&(n=p(n),i=!0),!(this instanceof w)){if(i&&"<"!=n.charAt(0))throw vf("nosel");return new w(n)}i&&(i=t,n=(r=ca.exec(n))?[i.createElement(r[1])]:(r=le(n,i))?r.childNodes:[]);ve(this,n)}function du(n){return n.cloneNode(!0)}function gr(n,t){if(t||nu(n),n.querySelectorAll)for(var r=n.querySelectorAll("*"),i=0,u=r.length;i<u;i++)nu(r[i])}function ae(n,t,i,f){if(u(f))throw vf("offargs");var e=(f=tu(n))&&f.events,o=f&&f.handle;if(o)if(t)r(t.split(" "),function(t){if(u(i)){var r=e[t];if(di(r||[],i),r&&0<r.length)return}n.removeEventListener(t,o,!1);delete e[t]});else for(t in e)"$destroy"!==t&&n.removeEventListener(t,o,!1),delete e[t]}function nu(n,t){var u=n.ng339,r=u&&hr[u];r&&(t?delete r.data[t]:(r.handle&&(r.events.$destroy&&r.handle({},"$destroy"),ae(n)),delete hr[u],n.ng339=i))}function tu(n,t){var r=n.ng339,r=r&&hr[r];return t&&!r&&(n.ng339=r=++ss,r=hr[r]={events:{},data:{},handle:i}),r}function gu(n,t,i){if(ce(n)){var r=u(i),f=!r&&t&&!l(t),e=!t;if(n=(n=tu(n,!f))&&n.data,r)n[t]=i;else{if(e)return n;if(f)return n&&n[t];c(n,t)}}}function iu(n,t){return n.getAttribute?-1<(" "+(n.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+t+" "):!1}function ru(n,t){t&&n.setAttribute&&r(t.split(" "),function(t){n.setAttribute("class",p((" "+(n.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").replace(" "+p(t)+" "," ")))})}function uu(n,t){if(t&&n.setAttribute){var i=(" "+(n.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ");r(t.split(" "),function(n){n=p(n);-1===i.indexOf(" "+n+" ")&&(i+=n+" ")});n.setAttribute("class",p(i))}}function ve(n,t){var i,r;if(t)if(t.nodeType)n[n.length++]=t;else if(i=t.length,"number"==typeof i&&t.window!==t){if(i)for(r=0;r<i;r++)n[n.length++]=t[r]}else n[n.length++]=t}function ye(n,t){return fu(n,"$"+(t||"ngController")+"Controller")}function fu(n,t,r){for(9==n.nodeType&&(n=n.documentElement),t=h(t)?t:[t];n;){for(var u=0,e=t.length;u<e;u++)if((r=f.data(n,t[u]))!==i)return r;n=n.parentNode||11===n.nodeType&&n.host}}function pe(n){for(gr(n,!0);n.firstChild;)n.removeChild(n.firstChild)}function we(n,t){t||gr(n);var i=n.parentNode;i&&i.removeChild(n)}function tc(t,i){if(i=i||n,"complete"===i.document.readyState)i.setTimeout(t);else f(i).on("load",t)}function be(n,t){var i=cr[t.toLowerCase()];return i&&pf[pt(n)]&&i}function ic(n,t){var i=n.nodeName;return("INPUT"===i||"TEXTAREA"===i)&&wf[t]}function rc(n,t){var i=function(i,r){var u,f,s,o;if(i.isDefaultPrevented=function(){return i.defaultPrevented},u=t[r||i.type],f=u?u.length:0,f)for(e(i.immediatePropagationStopped)&&(s=i.stopImmediatePropagation,i.stopImmediatePropagation=function(){i.immediatePropagationStopped=!0;i.stopPropagation&&i.stopPropagation();s&&s.call(i)}),i.isImmediatePropagationStopped=function(){return!0===i.immediatePropagationStopped},1<f&&(u=ht(u)),o=0;o<f;o++)i.isImmediatePropagationStopped()||u[o].call(n,i)};return i.elem=n,i}function uc(){this.$get=function(){return c(w,{hasClass:function(n,t){return n.attr&&(n=n[0]),iu(n,t)},addClass:function(n,t){return n.attr&&(n=n[0]),uu(n,t)},removeClass:function(n,t){return n.attr&&(n=n[0]),ru(n,t)}})}}function hi(n,t){var i=n&&n.$$hashKey;return i?("function"==typeof i&&(i=n.$$hashKey()),i):(i=typeof n,"function"==i||"object"==i&&null!==n?n.$$hashKey=i+":"+(t||ah)():i+":"+n)}function ir(n,t){if(t){var i=0;this.nextUid=function(){return++i}}r(n,this.put,this)}function fc(n){return(n=n.toString().replace(cs,"").match(hs))?"function("+(n[1]||"").replace(/[\s\r\n]+/," ")+")":"fn"}function nf(n,t,i){var u;if("function"==typeof n){if(!(u=n.$inject)){if(u=[],n.length){if(t)throw a(i)&&i||(i=n.name||fc(n)),oi("strictdi",i);t=n.toString().replace(cs,"");t=t.match(hs);r(t[1].split(ya),function(n){n.replace(pa,function(n,t,i){u.push(i)})})}n.$inject=u}}else h(n)?(t=n.length-1,kr(n[t],"fn"),u=n.slice(0,t)):kr(n,"fn",!0);return u}function tf(n,t){function c(n){return function(t,i){if(l(t))r(t,ne(n));else return n(t,i)}}function k(n,t){if(si(n,"service"),(o(t)||h(t))&&(t=u.instantiate(t)),!t.$get)throw oi("pget",n);return y[n+"Provider"]=t}function it(n,t){return function(){var i=f.invoke(t,this);if(e(i))throw oi("undef",n);return i}}function p(n,t,i){return k(n,{$get:!1!==i?it(n,t):t})}function d(n){var t=[],i;return r(n,function(n){function f(n){for(var i,r,t=0,f=n.length;t<f;t++)i=n[t],r=u.get(i[0]),r[i[1]].apply(r,i[2])}if(!tt.get(n)){tt.put(n,!0);try{a(n)?(i=or(n),t=t.concat(d(i.requires)).concat(i._runBlocks),f(i._invokeQueue),f(i._configBlocks)):o(n)?t.push(u.invoke(n)):h(n)?t.push(u.invoke(n)):kr(n,"module")}catch(r){throw h(n)&&(n=n[n.length-1]),r.message&&r.stack&&-1==r.stack.indexOf(r.message)&&(r=r.message+"\n"+r.stack),oi("modulerr",n,r.stack||r.message||r);}}}),t}function g(n,i){function r(t,r){if(n.hasOwnProperty(t)){if(n[t]===w)throw oi("cdep",t+" <- "+v.join(" <- "));return n[t]}try{return v.unshift(t),n[t]=w,n[t]=i(t,r)}catch(u){throw n[t]===w&&delete n[t],u;}finally{v.shift()}}function u(n,i,u,f){"string"==typeof u&&(f=u,u=null);for(var c=[],l=nf(n,t,f),e,o=0,s=l.length;o<s;o++){if(e=l[o],"string"!=typeof e)throw oi("itkn",e);c.push(u&&u.hasOwnProperty(e)?u[e]:r(e,f))}return h(n)&&(n=n[s]),n.apply(i,c)}return{invoke:u,instantiate:function(n,t,i){var r=Object.create((h(n)?n[n.length-1]:n).prototype);return n=u(n,r,t,i),l(n)||o(n)?n:r},get:r,annotate:nf,has:function(t){return y.hasOwnProperty(t+"Provider")||n.hasOwnProperty(t)}}}t=!0===t;var w={},v=[],tt=new ir([],!0),y={$provide:{provider:c(k),factory:c(p),service:c(function(n,t){return p(n,["$injector",function(n){return n.instantiate(t)}])}),value:c(function(n,t){return p(n,nt(t),!1)}),constant:c(function(n,t){si(n,"constant");y[n]=t;b[n]=t}),decorator:function(n,t){var i=u.get(n+"Provider"),r=i.$get;i.$get=function(){var n=f.invoke(r,i);return f.invoke(t,null,{$delegate:n})}}}},u=y.$injector=g(y,function(n,t){rt.isString(t)&&v.push(t);throw oi("unpr",v.join(" <- "));}),b={},f=b.$injector=g(b,function(n,t){var r=u.get(n+"Provider",t);return f.invoke(r.$get,r,i,n)});return r(d(n),function(n){f.invoke(n||s)}),f}function ec(){var n=!0;this.disableAutoScrolling=function(){n=!1};this.$get=["$window","$location","$rootScope",function(t,i,r){function s(n){var t=null;return Array.prototype.some.call(n,function(n){if("a"===pt(n))return t=n,!0}),t}function u(n){if(n){n.scrollIntoView();var i;i=f.yOffset;o(i)?i=i():ie(i)?(i=i[0],i="fixed"!==t.getComputedStyle(i).position?0:i.getBoundingClientRect().bottom):b(i)||(i=0);i&&(n=n.getBoundingClientRect().top,t.scrollBy(0,n-i))}else t.scrollTo(0,0)}function f(){var n=i.hash(),t;n?(t=e.getElementById(n))?u(t):(t=s(e.getElementsByName(n)))?u(t):"top"===n&&u(null):u(null)}var e=t.document;return n&&r.$watch(function(){return i.hash()},function(n,t){n===t&&""===n||tc(function(){r.$evalAsync(f)})}),f}]}function oc(){this.$get=["$$rAF","$timeout",function(n,t){return n.supported?function(t){return n(t)}:function(n){return t(n,0,!1)}}]}function sc(n,t,u,o){function nt(n){try{n.apply(null,er.call(arguments,1))}finally{if(v--,0===v)for(;k.length;)try{k.pop()()}catch(t){u.error(t)}}}function pt(n,t){(function i(){r(d,function(n){n()});ct=t(i,n)})()}function et(){it();ot()}function it(){c=n.history.state;c=e(c)?null:c;tt(c,ut)&&(c=ut);ut=c}function ot(){(p!==h.url()||y!==c)&&(p=h.url(),y=c,r(at,function(n){n(h.url(),c)}))}function st(n){try{return decodeURIComponent(n)}catch(t){return n}}var h=this,w=t[0],l=n.location,rt=n.history,ht=n.setTimeout,wt=n.clearTimeout,b={},v,k,d,ct;h.isMock=!1;v=0;k=[];h.$$completeOutstandingRequest=nt;h.$$incOutstandingRequestCount=function(){v++};h.notifyWhenNoOutstandingRequests=function(n){r(d,function(n){n()});0===v?n():k.push(n)};d=[];h.addPollFn=function(n){return e(ct)&&pt(100,ht),d.push(n),n};var c,y,p=l.href,bt=t.find("base"),lt=null;it();y=c;h.url=function(t,i,r){var f,u;return(e(r)&&(r=null),l!==n.location&&(l=n.location),rt!==n.history&&(rt=n.history),t)?(f=y===r,p===t&&(!o.history||f))?h:(u=p&&ii(p)===ii(t),p=t,y=r,!o.history||u&&f?(u||(lt=t),i?l.replace(t):u?(i=l,r=t.indexOf("#"),t=-1===r?"":t.substr(r+1),i.hash=t):l.href=t):(rt[i?"replaceState":"pushState"](r,"",t),it(),y=c),h):lt||l.href.replace(/%27/g,"'")};h.state=function(){return c};var at=[],vt=!1,ut=null;h.onUrlChange=function(t){if(!vt){if(o.history)f(n).on("popstate",et);f(n).on("hashchange",et);vt=!0}return at.push(t),t};h.$$checkUrlChange=ot;h.baseHref=function(){var n=bt.attr("href");return n?n.replace(/^(https?\:)?\/\/[^\/]*/,""):""};var g={},ft="",yt=h.baseHref();h.cookies=function(n,t){var r,f,e,o;if(n)t===i?w.cookie=encodeURIComponent(n)+"=;path="+yt+";expires=Thu, 01 Jan 1970 00:00:00 GMT":a(t)&&(r=(w.cookie=encodeURIComponent(n)+"="+encodeURIComponent(t)+";path="+yt).length+1,4096<r&&u.warn("Cookie '"+n+"' possibly not set or overflowed because it was too large ("+r+" > 4096 bytes)!"));else{if(w.cookie!==ft)for(ft=w.cookie,r=ft.split("; "),g={},e=0;e<r.length;e++)f=r[e],o=f.indexOf("="),0<o&&(n=st(f.substring(0,o)),g[n]===i&&(g[n]=st(f.substring(o+1))));return g}};h.defer=function(n,t){var i;return v++,i=ht(function(){delete b[i];nt(n)},t||0),b[i]=!0,i};h.defer.cancel=function(n){return b[n]?(delete b[n],wt(n),nt(s),!0):!1}}function hc(){this.$get=["$window","$log","$sniffer","$document",function(n,t,i,r){return new sc(n,r,t,i)}]}function cc(){this.$get=function(){function t(t,i){function a(n){n!=f&&(r?r==n&&(r=n.n):r=n,l(n.n,n.p),l(n,f),f=n,f.n=null)}function l(n,t){n!=t&&(n&&(n.p=t),t&&(t.n=n))}if(t in n)throw v("$cacheFactory")("iid",t);var s=0,y=c({},i,{id:t}),o={},h=i&&i.capacity||Number.MAX_VALUE,u={},f=null,r=null;return n[t]={put:function(n,t){if(h<Number.MAX_VALUE){var i=u[n]||(u[n]={key:n});a(i)}if(!e(t))return n in o||s++,o[n]=t,s>h&&this.remove(r.key),t},get:function(n){if(h<Number.MAX_VALUE){var t=u[n];if(!t)return;a(t)}return o[n]},remove:function(n){if(h<Number.MAX_VALUE){var t=u[n];if(!t)return;t==f&&(f=t.p);t==r&&(r=t.n);l(t.n,t.p);delete u[n]}delete o[n];s--},removeAll:function(){o={};s=0;u={};f=r=null},destroy:function(){u=y=o=null;delete n[t]},info:function(){return c({},y,{size:s})}}}var n={};return t.info=function(){var t={};return r(n,function(n,i){t[i]=n.info()}),t},t.get=function(t){return n[t]},t}}function lc(){this.$get=["$cacheFactory",function(n){return n("templates")}]}function ke(n,e){function b(n,t){var u=/^\s*([@&]|=(\*?))(\??)\s*(\w*)\s*$/,i={};return r(n,function(n,r){var f=n.match(u);if(!f)throw yt("iscp",t,r,n);i[r]={mode:f[1][0],collection:"*"===f[2],optional:"?"===f[3],attrName:f[4]||r}}),i}var w={},k=/^\s*directive\:\s*([\w\-]+)\s+(.*)$/,d=/(([\w\-]+)(?:\:([^;]+))?;?)/,g=vh("ngSrc,ngSrcset,src,srcset"),rt=/^(?:(\^\^?)?(\?)?(\^\^?)?)?/,ut=/^(on[a-z]+|formaction)$/,v;this.directive=function ft(t,i){return si(t,"directive"),a(t)?(ku(i,"directiveFactory"),w.hasOwnProperty(t)||(w[t]=[],n.factory(t+"Directive",["$injector","$exceptionHandler",function(n,i){var u=[];return r(w[t],function(r,f){try{var e=n.invoke(r);o(e)?e={compile:nt(e)}:!e.compile&&e.link&&(e.compile=nt(e.link));e.priority=e.priority||0;e.index=f;e.name=e.name||t;e.require=e.require||e.controller&&e.name;e.restrict=e.restrict||"EA";l(e.scope)&&(e.$$isolateBindings=b(e.scope,e.name));u.push(e)}catch(s){i(s)}}),u}])),w[t].push(i)):r(t,ne(ft)),this};this.aHrefSanitizationWhitelist=function(n){return u(n)?(e.aHrefSanitizationWhitelist(n),this):e.aHrefSanitizationWhitelist()};this.imgSrcSanitizationWhitelist=function(n){return u(n)?(e.imgSrcSanitizationWhitelist(n),this):e.imgSrcSanitizationWhitelist()};v=!0;this.debugInfoEnabled=function(n){return u(n)?(v=n,this):v};this.$get=["$injector","$interpolate","$exceptionHandler","$templateRequest","$parse","$controller","$rootScope","$document","$sce","$animate","$$sanitizeUri",function(n,u,e,b,nt,ft,et,st,ht,ct,lt){function gt(n,t){try{n.addClass(t)}catch(i){}}function kt(n,t,i,u,e){var s,o;return n instanceof f||(n=f(n)),r(n,function(t,i){t.nodeType==vu&&t.nodeValue.match(/\S+/)&&(n[i]=f(t).wrap("<span><\/span>").parent()[0])}),s=ri(n,t,n,i,u,e),kt.$$addScopeClass(n),o=null,function(t,i,r){var u,e,h;if(ku(t,"scope"),r=r||{},u=r.parentBoundTranscludeFn,e=r.transcludeControllers,r=r.futureParentElement,u&&u.$$boundTransclude&&(u=u.$$boundTransclude),o||(o=(r=r&&r[0])?"foreignobject"!==pt(r)&&r.toString().match(/SVG/)?"svg":"html":"html"),r="html"!==o?f(fi(o,f("<div>").append(n).html())):i?ei.clone.call(n):n,e)for(h in e)r.data("$"+h+"Controller",e[h].instance);return kt.$$addScopeInfo(r,t),i&&i(r,t),s&&s(t,r,r,u),r}}function ri(n,t,r,u,e,o){function p(n,r,u,e){var h,c,l,o,y,p,a;if(v)for(a=Array(r.length),o=0;o<s.length;o+=3)h=s[o],a[h]=r[h];else a=r;for(o=0,y=s.length;o<y;)c=a[s[o++]],r=s[o++],h=s[o++],r?(r.scope?(l=n.$new(),kt.$$addScopeInfo(f(c),l)):l=n,p=r.transcludeOnThisElement?ni(n,r.transclude,e,r.elementTranscludeOnThisElement):!r.templateOnThisElement&&e?e:!e&&t?ni(n,t):null,r(h,l,c,u,p)):h&&h(n,c.childNodes,i,e)}for(var s=[],h,l,a,y,v,c=0;c<n.length;c++)h=new oi,l=ui(n[c],[],h,0===c?u:i,e),(o=l.length?ci(l,n[c],h,t,r,null,[],[],o):null)&&o.scope&&kt.$$addScopeClass(h.$$element),h=o&&o.terminal||!(a=n[c].childNodes)||!a.length?null:ri(a,o?(o.transcludeOnThisElement||!o.templateOnThisElement)&&o.transclude:t),(o||h)&&(s.push(c,o,h),y=!0,v=v||o),o=null;return y?p:null}function ni(n,t,i){return function(r,u,f,e,o){return r||(r=n.$new(!1,o),r.$$transcluded=!0),t(r,u,{parentBoundTranscludeFn:i,transcludeControllers:f,futureParentElement:e})}}function ui(n,t,i,r,u){var w=i.$attr,e,l,v,y;switch(n.nodeType){case vt:ti(t,bt(pt(n)),"E",r,u);for(var f,o,s,h=n.attributes,c=0,b=h&&h.length;c<b;c++)l=!1,v=!1,f=h[c],e=f.name,o=p(f.value),f=bt(e),(s=fr.test(f))&&(e=e.replace(ls,"").substr(8).replace(/_(.)/g,function(n,t){return t.toUpperCase()})),y=f.replace(/(Start|End)$/,""),gi(y)&&f===y+"Start"&&(l=e,v=e.substr(0,e.length-5)+"end",e=e.substr(0,e.length-6)),f=bt(e.toLowerCase()),w[f]=e,(s||!i.hasOwnProperty(f))&&(i[f]=o,be(n,f)&&(i[f]=!0)),ur(n,t,o,f,s),ti(t,f,"A",r,u,l,v);if(n=n.className,a(n)&&""!==n)for(;e=d.exec(n);)f=bt(e[2]),ti(t,f,"C",r,u)&&(i[f]=p(e[3])),n=n.substr(e.index+e[0].length);break;case vu:ir(t,n.nodeValue);break;case 8:try{(e=k.exec(n.nodeValue))&&(f=bt(e[1]),ti(t,f,"M",r,u)&&(i[f]=p(e[2])))}catch(g){}}return t.sort(tr),t}function si(n,t,i){var r=[],u=0;if(t&&n.hasAttribute&&n.hasAttribute(t)){do{if(!n)throw yt("uterdir",t,i);n.nodeType==vt&&(n.hasAttribute(t)&&u++,n.hasAttribute(i)&&u--);r.push(n);n=n.nextSibling}while(0<u)}else r.push(n);return f(r)}function hi(n,t,i){return function(r,u,f,e,o){return u=si(u[0],t,i),n(r,u,f,e,o)}}function ci(n,s,c,v,y,w,b,k,d){function tr(n,t,i,r){n&&(i&&(n=hi(n,i,r)),n.require=g.require,n.directiveName=ot,(ut===g||g.$$isolateScope)&&(n=vi(n,{isolateScope:!0})),b.push(n));t&&(i&&(t=hi(t,i,r)),t.require=g.require,t.directiveName=ot,(ut===g||g.$$isolateScope)&&(t=vi(t,{isolateScope:!0})),k.push(t))}function wi(n,t,i,u){var f,o="data",s=!1,c=i,e;if(a(t)){if(e=t.match(rt),t=t.substring(e[0].length),e[3]&&(e[1]?e[3]=null:e[1]=e[3]),"^"===e[1]?o="inheritedData":"^^"===e[1]&&(o="inheritedData",c=i.parent()),"?"===e[2]&&(s=!0),f=null,u&&"data"===o&&(f=u[t])&&(f=f.instance),f=f||c[o]("$"+t+"Controller"),!f&&!s)throw yt("ctreq",t,n);return f||null}return h(t)&&(f=[],r(t,function(t){f.push(wi(n,t,i,u))})),f}function st(n,t,e,o,h){function et(n,t,r){var u;return bi(n)||(r=t,t=n,n=i),pt&&(u=w),r||(r=pt?a.parent():a),h(n,t,u,r,it)}var rt,v,g,p,w,d,a,l,y,it;for(s===e?(l=c,a=c.$$element):(a=f(e),l=new oi(a,c)),ut&&(p=t.$new(!0)),h&&(d=et,d.$$boundTransclude=h),ct&&(lt={},w={},r(ct,function(n){var i={$scope:n===ut||n.$$isolateScope?p:t,$element:a,$attrs:l,$transclude:d};g=n.controller;"@"==g&&(g=l[n.name]);i=ft(g,i,!0,n.controllerAs);w[n.name]=i;pt||a.data("$"+n.name+"Controller",i.instance);lt[n.name]=i})),ut&&(kt.$$addScopeInfo(a,p,!0,!(ht&&(ht===ut||ht===ut.$$originalDirective))),kt.$$addScopeClass(a,!0),o=lt&&lt[ut.name],y=p,o&&o.identifier&&!0===ut.bindToController&&(y=o.instance),r(p.$$isolateBindings=ut.$$isolateBindings,function(n,i){var r=n.attrName,e=n.optional,o,f,h,s;switch(n.mode){case"@":l.$observe(r,function(n){y[i]=n});l.$$observers[r].$$scope=t;l[r]&&(y[i]=u(l[r])(t));break;case"=":if(e&&!l[r])break;f=nt(l[r]);s=f.literal?tt:function(n,t){return n===t||n!==n&&t!==t};h=f.assign||function(){o=y[i]=f(t);throw yt("nonassign",l[r],ut.name);};o=y[i]=f(t);e=function(n){return s(n,y[i])||(s(n,o)?h(t,n=y[i]):y[i]=n),o=n};e.$stateful=!0;e=n.collection?t.$watchCollection(l[r],e):t.$watch(nt(l[r],e),null,f.literal);p.$on("$destroy",e);break;case"&":f=nt(l[r]);y[i]=function(n){return f(t,n)}}})),lt&&(r(lt,function(n){n()}),lt=null),o=0,rt=b.length;o<rt;o++)v=b[o],yi(v,v.isolateScope?p:t,a,l,v.require&&wi(v.directiveName,v.require,a,w),d);for(it=t,ut&&(ut.template||null===ut.templateUrl)&&(it=p),n&&n(it,e.childNodes,i,h),o=k.length-1;0<=o;o--)v=k[o],yi(v,v.isolateScope?p:t,a,l,v.require&&wi(v.directiveName,v.require,a,w),d)}var ei,pi,ir;d=d||{};for(var ni=-Number.MAX_VALUE,ti,ct=d.controllerDirectives,lt,ut=d.newIsolateScopeDirective,ht=d.templateDirective,ci=d.nonTlbTranscludeDirective,di=!1,gi=!1,pt=d.hasElementTranscludeDirective,et=c.$$element=f(s),g,ot,it,ri=v,bt,at=0,gt=n.length;at<gt;at++){if(g=n[at],ei=g.$$start,pi=g.$$end,ei&&(et=si(s,ei,pi)),it=i,ni>g.priority)break;if((it=g.scope)&&(g.templateUrl||(l(it)?(dt("new/isolated scope",ut||ti,g,et),ut=g):dt("new/isolated scope",ut,g,et)),ti=ti||g),ot=g.name,!g.templateUrl&&g.controller&&(it=g.controller,ct=ct||{},dt("'"+ot+"' controller",ct[ot],g,et),ct[ot]=g),(it=g.transclude)&&(di=!0,g.$$tlb||(dt("transclusion",ci,g,et),ci=g),"element"==it?(pt=!0,ni=g.priority,it=et,et=c.$$element=f(t.createComment(" "+ot+": "+c[ot]+" ")),s=et[0],ii(y,er.call(it,0),s),ri=kt(it,v,ni,w&&w.name,{nonTlbTranscludeDirective:ci})):(it=f(du(s)).contents(),et.empty(),ri=kt(it,v))),g.template)if(gi=!0,dt("template",ht,g,et),ht=g,it=o(g.template)?g.template(et,c):g.template,it=ki(it),g.replace){if(w=g,it=yf.test(it)?ge(fi(g.templateNamespace,p(it))):[],s=it[0],1!=it.length||s.nodeType!==vt)throw yt("tplrt",ot,"");ii(y,et,s);gt={$attr:{}};it=ui(s,[],gt);ir=n.splice(at+1,n.length-(at+1));ut&&li(it);n=n.concat(it).concat(ir);ai(c,gt);gt=n.length}else et.html(it);if(g.templateUrl)gi=!0,dt("template",ht,g,et),ht=g,g.replace&&(w=g),st=nr(n.splice(at,n.length-at),et,c,y,di&&ri,b,k,{controllerDirectives:ct,newIsolateScopeDirective:ut,templateDirective:ht,nonTlbTranscludeDirective:ci}),gt=n.length;else if(g.compile)try{bt=g.compile(et,c,ri);o(bt)?tr(null,bt,ei,pi):bt&&tr(bt.pre,bt.post,ei,pi)}catch(rr){e(rr,wt(et))}g.terminal&&(st.terminal=!0,ni=Math.max(ni,g.priority))}return st.scope=ti&&!0===ti.scope,st.transcludeOnThisElement=di,st.elementTranscludeOnThisElement=pt,st.templateOnThisElement=gi,st.transclude=ri,d.hasElementTranscludeDirective=pt,st}function li(n){for(var r,u,t=0,i=n.length;t<i;t++)r=t,u=c(Object.create(n[t]),{$$isolateScope:!0}),n[r]=u}function ti(t,r,u,f,o,s,h){var l,a,v,y;if(r===o)return null;if(o=null,w.hasOwnProperty(r))for(r=n.get(r+"Directive"),a=0,v=r.length;a<v;a++)try{(l=r[a],(f===i||f>l.priority)&&-1!=l.restrict.indexOf(u))&&(s&&(y={$$start:s,$$end:h},l=c(Object.create(l),y)),t.push(l),o=l)}catch(p){e(p)}return o}function gi(t){if(w.hasOwnProperty(t))for(var r=n.get(t+"Directive"),i=0,u=r.length;i<u;i++)if(t=r[i],t.multiElement)return!0;return!1}function ai(n,t){var u=t.$attr,f=n.$attr,i=n.$$element;r(n,function(i,r){"$"!=r.charAt(0)&&(t[r]&&t[r]!==i&&(i+=("style"===r?";":" ")+t[r]),n.$set(r,i,!0,u[r]))});r(t,function(t,r){"class"==r?(gt(i,t),n["class"]=(n["class"]?n["class"]+" ":"")+t):"style"==r?(i.attr("style",i.attr("style")+";"+t),n.style=(n.style?n.style+";":"")+t):"$"==r.charAt(0)||n.hasOwnProperty(r)||(n[r]=t,f[r]=u[r])})}function nr(n,t,i,u,e,s,h,a){var y=[],w,k,d=t[0],v=n.shift(),nt=c({},v,{templateUrl:null,transclude:null,replace:null,$$originalDirective:v}),g=o(v.templateUrl)?v.templateUrl(t,i):v.templateUrl,tt=v.templateNamespace;return t.empty(),b(ht.getTrustedResourceUrl(g)).then(function(o){var c,it,b,ut;if(o=ki(o),v.replace){if(o=yf.test(o)?ge(fi(tt,p(o))):[],c=o[0],1!=o.length||c.nodeType!==vt)throw yt("tplrt",v.name,g);o={$attr:{}};ii(u,t,c);b=ui(c,[],o);l(v.scope)&&li(b);n=b.concat(n);ai(i,o)}else c=d,t.html(o);for(n.unshift(nt),w=ci(n,c,i,e,t,v,s,h,a),r(u,function(n,i){n==c&&(u[i]=t[0])}),k=ri(t[0].childNodes,e);y.length;){o=y.shift();it=y.shift();var ft=y.shift(),rt=y.shift(),b=t[0];o.$$destroyed||(it!==d&&(ut=it.className,a.hasElementTranscludeDirective&&v.replace||(b=du(c)),ii(ft,f(it),b),gt(f(b),ut)),it=w.transcludeOnThisElement?ni(o,w.transclude,rt):rt,w(k,o,b,u,it))}y=null}),function(n,t,i,r,u){n=u;t.$$destroyed||(y?y.push(t,i,r,n):(w.transcludeOnThisElement&&(n=ni(t,w.transclude,u)),w(k,t,i,r,n)))}}function tr(n,t){var i=t.priority-n.priority;return 0!==i?i:n.name!==t.name?n.name<t.name?-1:1:n.index-t.index}function dt(n,t,i,r){if(t)throw yt("multidir",t.name,i.name,n,wt(r));}function ir(n,t){var i=u(t,!0);i&&n.push({priority:0,compile:function(n){n=n.parent();var t=!!n.length;return t&&kt.$$addBindingClass(n),function(n,r){var u=r.parent();t||kt.$$addBindingClass(u);kt.$$addBindingInfo(u,i.expressions);n.$watch(i,function(n){r[0].nodeValue=n})}}})}function fi(n,i){n=y(n||"html");switch(n){case"svg":case"math":var r=t.createElement("div");return r.innerHTML="<"+n+">"+i+"<\/"+n+">",r.childNodes[0].childNodes;default:return i}}function rr(n,t){if("srcdoc"==t)return ht.HTML;var i=pt(n);if("xlinkHref"==t||"form"==i&&"action"==t||"img"!=i&&("src"==t||"ngSrc"==t))return ht.RESOURCE_URL}function ur(n,t,i,r,f){var o=rr(n,r),e;if(f=g[r]||f,e=u(i,!0,o,f),e){if("multiple"===r&&"select"===pt(n))throw yt("selmulti",wt(n));t.push({priority:100,compile:function(){return{pre:function(n,t,s){if(t=s.$$observers||(s.$$observers={}),ut.test(r))throw yt("nodomevents");var h=s[r];h!==i&&(e=h&&u(h,!0,o,f),i=h);e&&(s[r]=e(n),(t[r]||(t[r]=[])).$$inter=!0,(s.$$observers&&s.$$observers[r].$$scope||n).$watch(e,function(n,t){"class"===r&&n!=t?s.$updateClass(n,t):s.$set(r,n)}))}}}})}}function ii(n,i,r){var u=i[0],h=i.length,s=u.parentNode,e,o,c;if(n)for(e=0,o=n.length;e<o;e++)if(n[e]==u){for(n[e++]=r,o=e+h-1,c=n.length;e<c;e++,o++)o<c?n[e]=n[o]:delete n[e];n.length-=h-1;n.context===u&&(n.context=r);break}for(s&&s.replaceChild(r,u),n=t.createDocumentFragment(),n.appendChild(u),f(r).data(f(u).data()),at?(af=!0,at.cleanData([u])):delete f.cache[u[f.expando]],u=1,h=i.length;u<h;u++)s=i[u],f(s).remove(),n.appendChild(s),delete i[u];i[0]=r;i.length=1}function vi(n,t){return c(function(){return n.apply(null,arguments)},n,t)}function yi(n,t,i,r,u,f){try{n(t,i,r,u,f)}catch(o){e(o,wt(i))}}var oi=function(n,t){if(t)for(var u=Object.keys(t),r,i=0,f=u.length;i<f;i++)r=u[i],this[r]=t[r];else this.$attr={};this.$$element=n};oi.prototype={$normalize:bt,$addClass:function(n){n&&0<n.length&&ct.addClass(this.$$element,n)},$removeClass:function(n){n&&0<n.length&&ct.removeClass(this.$$element,n)},$updateClass:function(n,t){var i=de(n,t);i&&i.length&&ct.addClass(this.$$element,i);(i=de(t,n))&&i.length&&ct.removeClass(this.$$element,i)},$set:function(n,t,u,f){var h=this.$$element[0],s=be(h,n),o=ic(h,n),h=n;if(s?(this.$$element.prop(n,t),f=s):o&&(this[o]=t,h=o),this[n]=t,f?this.$attr[n]=f:(f=this.$attr[n])||(this.$attr[n]=f=se(n,"-")),s=pt(this.$$element),"a"===s&&"href"===n||"img"===s&&"src"===n)this[n]=t=lt(t,"src"===n);else if("img"===s&&"srcset"===n){for(var s="",o=p(t),l=/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/,l=/\s/.test(o)?l:/(,)/,o=o.split(l),l=Math.floor(o.length/2),c=0;c<l;c++)var a=2*c,s=s+lt(p(o[a]),!0),s=s+(" "+p(o[a+1]));o=p(o[2*c]).split(/\s/);s+=lt(p(o[0]),!0);2===o.length&&(s+=" "+p(o[1]));this[n]=t=s}!1!==u&&(null===t||t===i?this.$$element.removeAttr(f):this.$$element.attr(f,t));(n=this.$$observers)&&r(n[h],function(n){try{n(t)}catch(i){e(i)}})},$observe:function(n,t){var i=this,u=i.$$observers||(i.$$observers=it()),r=u[n]||(u[n]=[]);return r.push(t),et.$evalAsync(function(){!r.$$inter&&i.hasOwnProperty(n)&&t(i[n])}),function(){di(r,t)}}};var pi=u.startSymbol(),wi=u.endSymbol(),ki="{{"==pi||"}}"==wi?ot:function(n){return n.replace(/\{\{/g,pi).replace(/}}/g,wi)},fr=/^ngAttr[A-Z]/;return kt.$$addBindingInfo=v?function(n,t){var i=n.data("$binding")||[];h(t)?i=i.concat(t):i.push(t);n.data("$binding",i)}:s,kt.$$addBindingClass=v?function(n){gt(n,"ng-binding")}:s,kt.$$addScopeInfo=v?function(n,t,i,r){n.data(i?r?"$isolateScopeNoTemplate":"$isolateScope":"$scope",t)}:s,kt.$$addScopeClass=v?function(n,t){gt(n,t?"ng-isolate-scope":"ng-scope")}:s,kt}]}function bt(n){return tr(n.replace(ls,""))}function de(n,t){var r="",e=n.split(/\s+/),o=t.split(/\s+/),u=0,f,i;n:for(;u<e.length;u++){for(f=e[u],i=0;i<o.length;i++)if(f==o[i])continue n;r+=(0<r.length?" ":"")+f}return r}function ge(n){n=f(n);var t=n.length;if(1>=t)return n;for(;t--;)8===n[t].nodeType&&ra.call(n,t,1);return n}function ac(){var n={},t=!1,r=/^(\S+)(\s+as\s+(\w+))?$/;this.register=function(t,i){si(t,"controller");l(t)?c(n,t):n[t]=i};this.allowGlobals=function(){t=!0};this.$get=["$injector","$window",function(u,f){function e(n,t,i,r){if(!n||!l(n.$scope))throw v("$controller")("noscp",r,t);n.$scope[t]=i}return function(o,s,l,v){var p,y,w;return(l=!0===l,v&&a(v)&&(w=v),a(o)&&(v=o.match(r),y=v[1],w=w||v[3],o=n.hasOwnProperty(y)?n[y]:he(s.$scope,y,!0)||(t?he(f,y,!0):i),kr(o,y,!0)),l)?(l=(h(o)?o[o.length-1]:o).prototype,p=Object.create(l),w&&e(s,w,p,y||o.name),c(function(){return u.invoke(o,p,s,y),p},{instance:p,identifier:w})):(p=u.instantiate(o,s,y),w&&e(s,w,p,y||o.name),p)}}]}function vc(){this.$get=["$window",function(n){return f(n.document)}]}function yc(){this.$get=["$log",function(n){return function(){n.error.apply(n,arguments)}}]}function rf(n,t){var r,i;return a(n)&&(r=n.replace(ga,"").trim(),r&&(i=t("Content-Type"),(i=i&&0===i.indexOf(as))||(i=(i=r.match(ka))&&da[i[0]].test(r)),i&&(n=ue(r)))),n}function no(n){var t=it(),i,u,f;return n?(r(n.split("\n"),function(n){f=n.indexOf(":");i=y(p(n.substr(0,f)));u=p(n.substr(f+1));i&&(t[i]=t[i]?t[i]+", "+u:u)}),t):t}function to(n){var t=l(n)?n:i;return function(i){return t||(t=no(n)),i?(i=t[y(i)],void 0===i&&(i=null),i):t}}function io(n,t,i,u){return o(u)?u(n,t,i):(r(u,function(r){n=r(n,t,i)}),n)}function pc(){var n=this.defaults={transformResponse:[rf],transformRequest:[function(n){return l(n)&&"[object File]"!==fi.call(n)&&"[object Blob]"!==fi.call(n)&&"[object FormData]"!==fi.call(n)?nr(n):n}],headers:{common:{Accept:"application/json, text/plain, */*"},post:ht(bf),put:ht(bf),patch:ht(bf)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN"},t=!1,f;this.useApplyAsync=function(n){return u(n)?(t=!!n,this):t};f=this.interceptors=[];this.$get=["$httpBackend","$browser","$cacheFactory","$rootScope","$q","$injector",function(s,p,w,b,k,d){function g(t){function h(n){var t=c({},n);return t.data=n.data?io(n.data,n.headers,n.status,f.transformResponse):n.data,n=n.status,200<=n&&300>n?t:k.reject(t)}function a(n){var t,i={};return r(n,function(n,r){o(n)?(t=n(),null!=t&&(i[r]=t)):i[r]=n}),i}var f,s,l,u;if(!rt.isObject(t))throw v("$http")("badreq",t);for(f=c({method:"get",transformRequest:n.transformRequest,transformResponse:n.transformResponse},t),f.headers=function(t){var i=n.headers,u=c({},t.headers),r,f,i=c({},i.common,i[y(t.method)]);n:for(r in i){t=y(r);for(f in u)if(y(f)===t)continue n;u[r]=i[r]}return a(u)}(t),f.method=cu(f.method),s=[function(t){var u=t.headers,f=io(t.data,to(u),i,t.transformRequest);return e(f)&&r(u,function(n,t){"content-type"===y(t)&&delete u[t]}),e(t.withCredentials)&&!e(n.withCredentials)&&(t.withCredentials=n.withCredentials),tt(t,f).then(h,h)},i],u=k.when(f),r(nt,function(n){(n.request||n.requestError)&&s.unshift(n.request,n.requestError);(n.response||n.responseError)&&s.push(n.response,n.responseError)});s.length;)t=s.shift(),l=s.shift(),u=u.then(t,l);return u.success=function(n){return u.then(function(t){n(t.data,t.status,t.headers,f)}),u},u.error=function(n){return u.then(null,function(t){n(t.data,t.status,t.headers,f)}),u},u}function tt(r,f){function ft(n,i,r,u){function f(){y(i,n,r,u)}a&&(200<=n&&300>n?a.put(v,[n,i,no(r),u]):a.remove(v));t?b.$applyAsync(f):(f(),b.$$phase||b.$apply())}function y(n,t,i,u){t=Math.max(t,0);(200<=t&&300>t?w.resolve:w.reject)({data:n,status:t,headers:to(i),config:r,statusText:u})}function nt(n){y(n.data,n.status,ht(n.headers()),n.statusText)}function tt(){var n=g.pendingRequests.indexOf(r);-1!==n&&g.pendingRequests.splice(n,1)}var w=k.defer(),d=w.promise,a,c,rt=r.headers,v=it(r.url,r.params);return g.pendingRequests.push(r),d.then(tt,tt),(r.cache||n.cache)&&!1!==r.cache&&("GET"===r.method||"JSONP"===r.method)&&(a=l(r.cache)?r.cache:l(n.cache)?n.cache:ut),a&&(c=a.get(v),u(c)?c&&o(c.then)?c.then(nt,nt):h(c)?y(c[1],c[0],ht(c[2]),c[3]):y(c,200,{},"OK"):a.put(v,d)),e(c)&&((c=lo(r.url)?p.cookies()[r.xsrfCookieName||n.xsrfCookieName]:i)&&(rt[r.xsrfHeaderName||n.xsrfHeaderName]=c),s(r.method,v,f,ft,rt,r.timeout,r.withCredentials,r.responseType)),d}function it(n,t){if(!t)return n;var i=[];return lh(t,function(n,t){null===n||e(n)||(h(n)||(n=[n]),r(n,function(n){l(n)&&(n=st(n)?n.toISOString():nr(n));i.push(ti(t)+"="+ti(n))}))}),0<i.length&&(n+=(-1==n.indexOf("?")?"?":"&")+i.join("&")),n}var ut=w("$http"),nt=[];return r(f,function(n){nt.unshift(a(n)?d.get(n):d.invoke(n))}),g.pendingRequests=[],function(){r(arguments,function(n){g[n]=function(t,i){return g(c(i||{},{method:n,url:t}))}})}("get","delete","head","jsonp"),function(){r(arguments,function(n){g[n]=function(t,i,r){return g(c(r||{},{method:n,url:t,data:i}))}})}("post","put","patch"),g.defaults=n,g}]}function wc(){return new n.XMLHttpRequest}function bc(){this.$get=["$browser","$window","$document",function(n,t,i){return kc(n,wc,n.defer,t.angular.callbacks,i[0])}]}function kc(n,t,f,e,h){function c(n,t,i){var r=h.createElement("script"),u=null;return r.type="text/javascript",r.src=n,r.async=!0,u=function(n){r.removeEventListener("load",u,!1);r.removeEventListener("error",u,!1);h.body.removeChild(r);r=null;var f=-1,o="unknown";n&&("load"!==n.type||e[t].called||(n={type:"error"}),o=n.type,f="error"===n.type?404:200);i&&i(f,o)},r.addEventListener("load",u,!1),r.addEventListener("error",u,!1),h.body.appendChild(r),u}return function(h,l,a,v,p,w,b,k){function rt(){nt&&nt();d&&d.abort()}function tt(t,r,u,e,o){it!==i&&f.cancel(it);nt=d=null;t(r,u,e,o);n.$$completeOutstandingRequest(s)}var g,nt,d,it;if(n.$$incOutstandingRequestCount(),l=l||n.url(),"jsonp"==y(h))g="_"+(e.counter++).toString(36),e[g]=function(n){e[g].data=n;e[g].called=!0},nt=c(l.replace("JSON_CALLBACK","angular.callbacks."+g),g,function(n,t){tt(v,n,e[g].data,"",t);e[g]=s});else{if(d=t(),d.open(h,l,!0),r(p,function(n,t){u(n)&&d.setRequestHeader(t,n)}),d.onload=function(){var i=d.statusText||"",t="response"in d?d.response:d.responseText,n=1223===d.status?204:d.status;0===n&&(n=t?200:"file"==dt(l).protocol?404:0);tt(v,n,t,d.getAllResponseHeaders(),i)},h=function(){tt(v,-1,null,null,"")},d.onerror=h,d.onabort=h,b&&(d.withCredentials=!0),k)try{d.responseType=k}catch(ut){if("json"!==k)throw ut;}d.send(a||null)}0<w?it=f(rt,w):w&&o(w.then)&&w.then(rt)}}function dc(){var n="{{",t="}}";this.startSymbol=function(t){return t?(n=t,this):n};this.endSymbol=function(n){return n?(t=n,this):t};this.$get=["$parse","$exceptionHandler","$sce",function(i,r,f){function h(n){return"\\\\\\"+n}function s(s,h,p,w){function rt(i){return i.replace(v,n).replace(y,t)}function et(n){var i,t;try{if(i=n,n=p?f.getTrusted(p,i):f.valueOf(i),w&&!u(n))t=n;else if(null==n)t="";else{switch(typeof n){case"string":break;case"number":n=""+n;break;default:n=nr(n)}t=n}return t}catch(e){t=kf("interr",s,e.toString());r(t)}}var it;w=!!w;for(var d,nt,b=0,g=[],tt=[],ut=s.length,k=[],ft=[];b<ut;)if(-1!=(d=s.indexOf(n,b))&&-1!=(nt=s.indexOf(t,d+l)))b!==d&&k.push(rt(s.substring(b,d))),b=s.substring(d+l,nt),g.push(b),tt.push(i(b,et)),b=nt+a,ft.push(k.length),k.push("");else{b!==ut&&k.push(rt(s.substring(b)));break}if(p&&1<k.length)throw kf("noconcat",s);if(!h||g.length)return it=function(n){for(var t=0,i=g.length;t<i;t++){if(w&&e(n[t]))return;k[ft[t]]=n[t]}return k.join("")},c(function(n){var t=0,i=g.length,u=Array(i);try{for(;t<i;t++)u[t]=tt[t](n);return it(u)}catch(f){n=kf("interr",s,f.toString());r(n)}},{exp:s,expressions:g,$$watchDelegate:function(n,t,i){var r;return n.$watchGroup(tt,function(i,u){var f=it(i);o(t)&&t.call(this,f,i!==u?r:f,n);r=f},i)}})}var l=n.length,a=t.length,v=new RegExp(n.replace(/./g,h),"g"),y=new RegExp(t.replace(/./g,h),"g");return s.startSymbol=function(){return n},s.endSymbol=function(){return t},s}]}function gc(){this.$get=["$rootScope","$window","$q","$$q",function(n,t,i,r){function e(e,o,s,h){var y=t.setInterval,p=t.clearInterval,a=0,v=u(h)&&!h,l=(v?r:i).defer(),c=l.promise;return s=u(s)?s:0,c.then(null,null,e),c.$$intervalId=y(function(){l.notify(a++);0<s&&a>=s&&(l.resolve(a),p(c.$$intervalId),delete f[c.$$intervalId]);v||n.$apply()},o),f[c.$$intervalId]=l,c}var f={};return e.cancel=function(n){return n&&n.$$intervalId in f?(f[n.$$intervalId].reject("canceled"),t.clearInterval(n.$$intervalId),delete f[n.$$intervalId],!0):!1},e}]}function nl(){this.$get=function(){return{id:"en-us",NUMBER_FORMATS:{DECIMAL_SEP:".",GROUP_SEP:",",PATTERNS:[{minInt:1,minFrac:0,maxFrac:3,posPre:"",posSuf:"",negPre:"-",negSuf:"",gSize:3,lgSize:3},{minInt:1,minFrac:2,maxFrac:2,posPre:"¤",posSuf:"",negPre:"(¤",negSuf:")",gSize:3,lgSize:3}],CURRENCY_SYM:"$"},DATETIME_FORMATS:{MONTH:"January February March April May June July August September October November December".split(" "),SHORTMONTH:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),DAY:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),SHORTDAY:"Sun Mon Tue Wed Thu Fri Sat".split(" "),AMPMS:["AM","PM"],medium:"MMM d, y h:mm:ss a",short:"M/d/yy h:mm a",fullDate:"EEEE, MMMM d, y",longDate:"MMMM d, y",mediumDate:"MMM d, y",shortDate:"M/d/yy",mediumTime:"h:mm:ss a",shortTime:"h:mm a"},pluralCat:function(n){return 1===n?"one":"other"}}}}function uf(n){n=n.split("/");for(var t=n.length;t--;)n[t]=br(n[t]);return n.join("/")}function ro(n,t){var i=dt(n);t.$$protocol=i.protocol;t.$$host=i.hostname;t.$$port=g(i.port)||tv[i.protocol]||null}function uo(n,t){var r="/"!==n.charAt(0),i;r&&(n="/"+n);i=dt(n);t.$$path=decodeURIComponent(r&&"/"===i.pathname.charAt(0)?i.pathname.substring(1):i.pathname);t.$$search=ee(i.search);t.$$hash=decodeURIComponent(i.hash);t.$$path&&"/"!=t.$$path.charAt(0)&&(t.$$path="/"+t.$$path)}function kt(n,t){if(0===t.indexOf(n))return t.substr(n.length)}function ii(n){var t=n.indexOf("#");return-1==t?n:n.substr(0,t)}function fo(n){return n.replace(/(#.+)|#$/,"$1")}function ff(n){return n.substr(0,ii(n).lastIndexOf("/")+1)}function ef(n,t){this.$$html5=!0;t=t||"";var r=ff(n);ro(n,this);this.$$parse=function(n){var t=kt(r,n);if(!a(t))throw yu("ipthprfx",n,r);uo(t,this);this.$$path||(this.$$path="/");this.$$compose()};this.$$compose=function(){var n=bu(this.$$search),t=this.$$hash?"#"+br(this.$$hash):"";this.$$url=uf(this.$$path)+(n?"?"+n:"")+t;this.$$absUrl=r+this.$$url.substr(1)};this.$$parseLinkUrl=function(u,f){if(f&&"#"===f[0])return this.hash(f.slice(1)),!0;var e,o;return(e=kt(n,u))!==i?(o=e,o=(e=kt(t,e))!==i?r+(kt("/",e)||e):n+o):(e=kt(r,u))!==i?o=r+e:r==u+"/"&&(o=r),o&&this.$$parse(o),!!o}}function of(n,t){var i=ff(n);ro(n,this);this.$$parse=function(r){var u,f;r=kt(n,r)||kt(i,r);"#"===r.charAt(0)?(u=kt(t,r),e(u)&&(u=r)):u=this.$$html5?r:"";uo(u,this);r=this.$$path;f=/^\/[A-Z]:(\/.*)/;0===u.indexOf(n)&&(u=u.replace(n,""));f.exec(u)||(r=(u=f.exec(r))?u[1]:r);this.$$path=r;this.$$compose()};this.$$compose=function(){var i=bu(this.$$search),r=this.$$hash?"#"+br(this.$$hash):"";this.$$url=uf(this.$$path)+(i?"?"+i:"")+r;this.$$absUrl=n+(this.$$url?t+this.$$url:"")};this.$$parseLinkUrl=function(t){return ii(n)==ii(t)?(this.$$parse(t),!0):!1}}function eo(n,t){this.$$html5=!0;of.apply(this,arguments);var i=ff(n);this.$$parseLinkUrl=function(r,u){if(u&&"#"===u[0])return this.hash(u.slice(1)),!0;var f,e;return n==ii(r)?f=r:(e=kt(i,r))?f=n+t+e:i===r+"/"&&(f=i),f&&this.$$parse(f),!!f};this.$$compose=function(){var i=bu(this.$$search),r=this.$$hash?"#"+br(this.$$hash):"";this.$$url=uf(this.$$path)+(i?"?"+i:"")+r;this.$$absUrl=n+t+this.$$url}}function eu(n){return function(){return this[n]}}function oo(n,t){return function(i){return e(i)?this[n]:(this[n]=t(i),this.$$compose(),this)}}function tl(){var t="",n={enabled:!1,requireBase:!0,rewriteLinks:!0};this.hashPrefix=function(n){return u(n)?(t=n,this):t};this.html5Mode=function(t){return ki(t)?(n.enabled=t,this):l(t)?(ki(t.enabled)&&(n.enabled=t.enabled),ki(t.requireBase)&&(n.requireBase=t.requireBase),ki(t.rewriteLinks)&&(n.rewriteLinks=t.rewriteLinks),this):n};this.$get=["$rootScope","$browser","$sniffer","$rootElement","$window",function(i,r,u,e,o){function y(n,t,i){var u=s.url(),f=s.$$state;try{r.url(n,t,i);s.$$state=r.state()}catch(e){throw s.url(u),s.$$state=f,e;}}function p(n,t){i.$broadcast("$locationChangeSuccess",s.absUrl(),n,s.$$state,t)}var s,c,h,v,w,a;if(c=r.baseHref(),h=r.url(),n.enabled){if(!c&&n.requireBase)throw yu("nobase");v=h.substring(0,h.indexOf("/",h.indexOf("//")+2))+(c||"/");c=u.history?ef:eo}else v=ii(h),c=of;s=new c(v,"#"+t);s.$$parseLinkUrl(h,h);s.$$state=r.state();w=/^\s*(javascript|mailto):/i;e.on("click",function(t){var u,h,c;if(n.rewriteLinks&&!t.ctrlKey&&!t.metaKey&&2!=t.which){for(u=f(t.target);"a"!==pt(u[0]);)if(u[0]===e[0]||!(u=u.parent())[0])return;h=u.prop("href");c=u.attr("href")||u.attr("xlink:href");l(h)&&"[object SVGAnimatedString]"===h.toString()&&(h=dt(h.animVal).href);w.test(h)||!h||u.attr("target")||t.isDefaultPrevented()||!s.$$parseLinkUrl(h,c)||(t.preventDefault(),s.absUrl()!=r.url()&&(i.$apply(),o.angular["ff-684208-preventDefault"]=!0))}});s.absUrl()!=h&&r.url(s.absUrl(),!0);a=!0;r.onUrlChange(function(n,t){i.$evalAsync(function(){var r=s.absUrl(),u=s.$$state,f;s.$$parse(n);s.$$state=t;f=i.$broadcast("$locationChangeStart",n,r,t,u).defaultPrevented;s.absUrl()===n&&(f?(s.$$parse(r),s.$$state=u,y(r,!1,u)):(a=!1,p(r,u)))});i.$$phase||i.$digest()});return i.$watch(function(){var t=fo(r.url()),e=fo(s.absUrl()),n=r.state(),o=s.$$replace,f=t!==e||s.$$html5&&u.history&&n!==s.$$state;(a||f)&&(a=!1,i.$evalAsync(function(){var r=s.absUrl(),u=i.$broadcast("$locationChangeStart",r,t,s.$$state,n).defaultPrevented;s.absUrl()===r&&(u?(s.$$parse(t),s.$$state=n):(f&&y(r,o,n===s.$$state?null:s.$$state),p(t,n)))}));s.$$replace=!1}),s}]}function il(){var n=!0,t=this;this.debugEnabled=function(t){return u(t)?(n=t,this):n};this.$get=["$window",function(i){function f(n){return n instanceof Error&&(n.stack?n=n.message&&-1===n.stack.indexOf(n.message)?"Error: "+n.message+"\n"+n.stack:n.stack:n.sourceURL&&(n=n.message+"\n"+n.sourceURL+":"+n.line)),n}function u(n){var t=i.console||{},u=t[n]||t.log||s;n=!1;try{n=!!u.apply}catch(e){}return n?function(){var n=[];return r(arguments,function(t){n.push(f(t))}),u.apply(t,n)}:function(n,t){u(n,null==t?"":t)}}return{log:u("log"),info:u("info"),warn:u("warn"),error:u("error"),debug:function(){var i=u("debug");return function(){n&&i.apply(t,arguments)}}()}}]}function ct(n,t){if("__defineGetter__"===n||"__defineSetter__"===n||"__lookupGetter__"===n||"__lookupSetter__"===n||"__proto__"===n)throw ft("isecfld",t);return n}function lt(n,t){if(n){if(n.constructor===n)throw ft("isecfn",t);if(n.window===n)throw ft("isecwindow",t);if(n.children&&(n.nodeName||n.prop&&n.attr&&n.find))throw ft("isecdom",t);if(n===Object)throw ft("isecobj",t);}return n}function sf(n){return n.constant}function rr(n,t,i,r){var u,e,f;for(lt(n,r),t=t.split("."),e=0;1<t.length;e++)u=ct(t.shift(),r),f=lt(n[u],r),f||(f={},n[u]=f),n=f;return u=ct(t.shift(),r),lt(n[u],r),n[u]=i}function ci(n){return"constructor"==n}function so(n,t,r,u,f,e,o){ct(n,e);ct(t,e);ct(r,e);ct(u,e);ct(f,e);var s=function(n){return lt(n,e)},h=o||ci(n)?s:ot,c=o||ci(t)?s:ot,l=o||ci(r)?s:ot,a=o||ci(u)?s:ot,v=o||ci(f)?s:ot;return function(e,o){var s=o&&o.hasOwnProperty(n)?o:e;return null==s?s:(s=h(s[n]),!t)?s:null==s?i:(s=c(s[t]),!r)?s:null==s?i:(s=l(s[r]),!u)?s:null==s?i:(s=a(s[u]),f?null==s?i:s=v(s[f]):s)}}function rl(n,t){return function(i,r){return n(i,r,lt,t)}}function ul(n,t,u){var o=t.expensiveChecks,l=o?sv:ov,e=l[n],f,h,s,c;return e?e:(f=n.split("."),h=f.length,t.csp?e=6>h?so(f[0],f[1],f[2],f[3],f[4],u,o):function(n,t){var r=0,e;do e=so(f[r++],f[r++],f[r++],f[r++],f[r++],u,o)(n,t),t=i,n=e;while(r<h);return e}:(s="",o&&(s+="s = eso(s, fe);\nl = eso(l, fe);\n"),c=o,r(f,function(n,t){ct(n,u);var i=(t?"s":'((l&&l.hasOwnProperty("'+n+'"))?l:s)')+"."+n;(o||ci(n))&&(i="eso("+i+", fe)",c=!0);s+="if(s == null) return undefined;\ns="+i+";\n"}),s+="return s;",t=new Function("s","l","eso","fe",s),t.toString=nt(s),c&&(t=rl(t,u)),e=t),e.sharedGetter=!0,e.assign=function(t,i){return rr(t,n,i,n)},l[n]=e)}function hf(n){return o(n.valueOf)?n.valueOf():hv.call(n)}function fl(){var n=it(),t=it();this.$get=["$filter","$sniffer",function(i,f){function y(n){var t=n;return n.sharedGetter&&(t=function(t,i){return n(t,i)},t.literal=n.literal,t.constant=n.constant,t.assign=n.assign),t}function l(n,t){for(var i,r=0,u=n.length;r<u;r++)i=n[r],i.constant||(i.inputs?l(i.inputs,t):-1===t.indexOf(i)&&t.push(i));return t}function e(n,t){return null==n||null==t?n===t:"object"==typeof n&&(n=hf(n),"object"==typeof n)?!1:n===t||n!==n&&t!==t}function h(n,t,i,r){var u=r.$$inputs||(r.$$inputs=l(r.inputs,[])),f,o;if(1===u.length)return o=e,u=u[0],n.$watch(function(n){var t=u(n);return e(t,o)||(f=r(n),o=t&&hf(t)),f},t,i);for(var s=[],h=0,c=u.length;h<c;h++)s[h]=e;return n.$watch(function(n){for(var i,o=!1,t=0,h=u.length;t<h;t++)i=u[t](n),(o||(o=!e(i,s[t])))&&(s[t]=i&&hf(i));return o&&(f=r(n)),f},t,i)}function a(n,t,i,r){var f,e;return f=n.$watch(function(n){return r(n)},function(n,i,r){e=n;o(t)&&t.apply(this,arguments);u(n)&&r.$$postDigest(function(){u(e)&&f()})},i)}function v(n,t,i,f){function e(n){var t=!0;return r(n,function(n){u(n)||(t=!1)}),t}var s,h;return s=n.$watch(function(n){return f(n)},function(n,i,r){h=n;o(t)&&t.call(this,n,i,r);e(n)&&r.$$postDigest(function(){e(h)&&s()})},i)}function p(n,t,i,r){var u;return u=n.$watch(function(n){return r(n)},function(){o(t)&&t.apply(this,arguments);u()},i)}function c(n,t){if(!t)return n;var i=n.$$watchDelegate,i=i!==v&&i!==a?function(i,r){var u=n(i,r);return t(u,i,r)}:function(i,r){var f=n(i,r),e=t(f,i,r);return u(f)?e:f};return n.$$watchDelegate&&n.$$watchDelegate!==h?i.$$watchDelegate=n.$$watchDelegate:t.$stateful||(i.$$watchDelegate=h,i.inputs=[n]),i}var w={csp:f.csp,expensiveChecks:!1},b={csp:f.csp,expensiveChecks:!0};return function(r,u,f){var e,k,o,l;switch(typeof r){case"string":return o=r=r.trim(),l=f?t:n,e=l[o],e||(":"===r.charAt(0)&&":"===r.charAt(1)&&(k=!0,r=r.substring(2)),f=f?b:w,e=new df(f),e=new vi(e,i,f).parse(r),e.constant?e.$$watchDelegate=p:k?(e=y(e),e.$$watchDelegate=e.literal?v:a):e.inputs&&(e.$$watchDelegate=h),l[o]=e),c(e,u);case"function":return c(r,u);default:return c(s,u)}}}]}function el(){this.$get=["$rootScope","$exceptionHandler",function(n,t){return ho(function(t){n.$evalAsync(t)},t)}]}function ol(){this.$get=["$browser","$exceptionHandler",function(n,t){return ho(function(t){n.defer(t)},t)}]}function ho(n,t){function k(n,t,i){function r(t){return function(i){u||(u=!0,t.call(n,i))}}var u=!1;return[r(t),r(i)]}function a(){this.$$state={status:0}}function s(n,t){return function(i){t.call(n,i)}}function c(r){!r.processScheduled&&r.pending&&(r.processScheduled=!0,n(function(){var e,n,f,u,s;for(f=r.pending,r.processScheduled=!1,r.pending=i,u=0,s=f.length;u<s;++u){n=f[u][0];e=f[u][r.status];try{o(e)?n.resolve(e(r.value)):1===r.status?n.resolve(r.value):n.reject(r.value)}catch(h){n.reject(h);t(h)}}}))}function u(){this.promise=new a;this.resolve=s(this,this.resolve);this.reject=s(this,this.reject);this.notify=s(this,this.notify)}var y=v("$q",TypeError);a.prototype={then:function(n,t,i){var r=new u;return this.$$state.pending=this.$$state.pending||[],this.$$state.pending.push([r,n,t,i]),0<this.$$state.status&&c(this.$$state),r.promise},"catch":function(n){return this.then(null,n)},"finally":function(n,t){return this.then(function(t){return p(t,!0,n)},function(t){return p(t,!1,n)},t)}};u.prototype={resolve:function(n){this.promise.$$state.status||(n===this.promise?this.$$reject(y("qcycle",n)):this.$$resolve(n))},$$resolve:function(n){var i,r=k(this,this.$$resolve,this.$$reject);try{(l(n)||o(n))&&(i=n&&n.then);o(i)?(this.promise.$$state.status=-1,i.call(n,r[0],r[1],this.notify)):(this.promise.$$state.value=n,this.promise.$$state.status=1,c(this.promise.$$state))}catch(u){r[1](u);t(u)}},reject:function(n){this.promise.$$state.status||this.$$reject(n)},$$reject:function(n){this.promise.$$state.value=n;this.promise.$$state.status=2;c(this.promise.$$state)},notify:function(i){var r=this.promise.$$state.pending;0>=this.promise.$$state.status&&r&&r.length&&n(function(){for(var u,f,n=0,e=r.length;n<e;n++){f=r[n][0];u=r[n][3];try{f.notify(o(u)?u(i):i)}catch(s){t(s)}}})}};var e=function(n,t){var i=new u;return t?i.resolve(n):i.reject(n),i.promise},p=function(n,t,i){var r=null;try{o(i)&&(r=i())}catch(u){return e(u,!1)}return r&&o(r.then)?r.then(function(){return e(n,t)},function(n){return e(n,!1)}):e(n,t)},w=function(n,t,i,r){var f=new u;return f.resolve(n),f.promise.then(t,i,r)},f=function b(n){if(!o(n))throw y("norslvr",n);if(!(this instanceof b))return new b(n);var t=new u;return n(function(n){t.resolve(n)},function(n){t.reject(n)}),t.promise};return f.defer=function(){return new u},f.reject=function(n){var t=new u;return t.reject(n),t.promise},f.when=w,f.all=function(n){var i=new u,f=0,t=h(n)?[]:{};return r(n,function(n,r){f++;w(n).then(function(n){t.hasOwnProperty(r)||(t[r]=n,--f||i.resolve(t))},function(n){t.hasOwnProperty(r)||i.reject(n)})}),0===f&&i.resolve(t),i.promise},f}function sl(){this.$get=["$window","$timeout",function(n,t){var i=n.requestAnimationFrame||n.webkitRequestAnimationFrame,f=n.cancelAnimationFrame||n.webkitCancelAnimationFrame||n.webkitCancelRequestAnimationFrame,r=!!i,u=r?function(n){var t=i(n);return function(){f(t)}}:function(n){var i=t(n,16.66,!1);return function(){t.cancel(i)}};return u.supported=r,u}]}function hl(){var i=10,u=v("$rootScope"),n=null,t=null;this.digestTtl=function(n){return arguments.length&&(i=n),i};this.$get=["$injector","$exceptionHandler","$parse","$browser",function(f,h,c,a){function p(){this.$id=++lu;this.$$phase=this.$parent=this.$$watchers=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null;this.$root=this;this.$$destroyed=!1;this.$$listeners={};this.$$listenerCount={};this.$$isolateBindings=null}function k(n){if(v.$$phase)throw u("inprog",v.$$phase);v.$$phase=n}function d(n,t,i){do n.$$listenerCount[i]-=t,0===n.$$listenerCount[i]&&delete n.$$listenerCount[i];while(n=n.$parent)}function g(){}function nt(){for(;b.length;)try{b.shift()()}catch(n){h(n)}t=null}function it(){null===t&&(t=a.defer(function(){v.$apply(nt)}))}p.prototype={constructor:p,$new:function(n,t){function r(){i.$$destroyed=!0}var i;return t=t||this,n?(i=new p,i.$root=this.$root):(this.$$ChildScope||(this.$$ChildScope=function(){this.$$watchers=this.$$nextSibling=this.$$childHead=this.$$childTail=null;this.$$listeners={};this.$$listenerCount={};this.$id=++lu;this.$$ChildScope=null},this.$$ChildScope.prototype=this),i=new this.$$ChildScope),i.$parent=t,i.$$prevSibling=t.$$childTail,t.$$childHead?(t.$$childTail.$$nextSibling=i,t.$$childTail=i):t.$$childHead=t.$$childTail=i,(n||t!=this)&&i.$on("$destroy",r),i},$watch:function(t,i,r){var f=c(t),u,e;return f.$$watchDelegate?f.$$watchDelegate(this,i,r,f):(u=this.$$watchers,e={fn:i,last:g,get:f,exp:t,eq:!!r},n=null,o(i)||(e.fn=s),u||(u=this.$$watchers=[]),u.unshift(e),function(){di(u,e);n=null})},$watchGroup:function(n,t){function c(){o=!1;h?(h=!1,t(i,i,u)):t(i,f,u)}var f=Array(n.length),i=Array(n.length),e=[],u=this,o=!1,h=!0,s;return n.length?1===n.length?this.$watch(n[0],function(n,r,u){i[0]=n;f[0]=r;t(i,n===r?i:f,u)}):(r(n,function(n,t){var r=u.$watch(n,function(n,r){i[t]=n;f[t]=r;o||(o=!0,u.$evalAsync(c))});e.push(r)}),function(){for(;e.length;)e.shift()()}):(s=!0,u.$evalAsync(function(){s&&t(i,i,u)}),function(){s=!1})},$watchCollection:function(n,t){function s(n){i=n;var t,h,o,s;if(!e(i)){if(l(i))if(pi(i))for(r!==a&&(r=a,f=r.length=0,u++),n=i.length,f!==n&&(u++,r.length=f=n),t=0;t<n;t++)s=r[t],o=i[t],h=s!==s&&o!==o,h||s===o||(u++,r[t]=o);else{r!==v&&(r=v={},f=0,u++);n=0;for(t in i)i.hasOwnProperty(t)&&(n++,o=i[t],s=r[t],t in r?(h=s!==s&&o!==o,h||s===o||(u++,r[t]=o)):(f++,r[t]=o,u++));if(f>n)for(t in u++,r)i.hasOwnProperty(t)||(f--,delete r[t])}else r!==i&&(r=i,u++);return u}}s.$stateful=!0;var h=this,i,r,o,p=1<t.length,u=0,w=c(n,s),a=[],v={},y=!0,f=0;return this.$watch(w,function(){if(y?(y=!1,t(i,i,h)):t(i,o,h),p)if(l(i))if(pi(i)){o=Array(i.length);for(var n=0;n<i.length;n++)o[n]=i[n]}else for(n in o={},i)fs.call(i,n)&&(o[n]=i[n]);else o=i})},$digest:function(){var r,e,s,c,it,l,rt=i,f,p=[],b,d;k("$digest");a.$$checkUrlChange();this===v&&null!==t&&(a.defer.cancel(t),nt());n=null;do{for(l=!1,f=this;y.length;){try{d=y.shift();d.scope.$eval(d.expression,d.locals)}catch(ut){h(ut)}n=null}n:do{if(c=f.$$watchers)for(it=c.length;it--;)try{if(r=c[it])if((e=r.get(f))===(s=r.last)||(r.eq?tt(e,s):"number"==typeof e&&"number"==typeof s&&isNaN(e)&&isNaN(s))){if(r===n){l=!1;break n}}else l=!0,n=r,r.last=r.eq?ni(e,null):e,r.fn(e,s===g?e:s,f),5>rt&&(b=4-rt,p[b]||(p[b]=[]),p[b].push({msg:o(r.exp)?"fn: "+(r.exp.name||r.exp.toString()):r.exp,newVal:e,oldVal:s}))}catch(ft){h(ft)}if(!(c=f.$$childHead||f!==this&&f.$$nextSibling))for(;f!==this&&!(c=f.$$nextSibling);)f=f.$parent}while(f=c);if((l||y.length)&&!rt--)throw v.$$phase=null,u("infdig",i,p);}while(l||y.length);for(v.$$phase=null;w.length;)try{w.shift()()}catch(et){h(et)}},$destroy:function(){var n,t;if(!this.$$destroyed&&(n=this.$parent,this.$broadcast("$destroy"),this.$$destroyed=!0,this!==v)){for(t in this.$$listenerCount)d(this,this.$$listenerCount[t],t);n.$$childHead==this&&(n.$$childHead=this.$$nextSibling);n.$$childTail==this&&(n.$$childTail=this.$$prevSibling);this.$$prevSibling&&(this.$$prevSibling.$$nextSibling=this.$$nextSibling);this.$$nextSibling&&(this.$$nextSibling.$$prevSibling=this.$$prevSibling);this.$destroy=this.$digest=this.$apply=this.$evalAsync=this.$applyAsync=s;this.$on=this.$watch=this.$watchGroup=function(){return s};this.$$listeners={};this.$parent=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=this.$root=this.$$watchers=null}},$eval:function(n,t){return c(n)(this,t)},$evalAsync:function(n,t){v.$$phase||y.length||a.defer(function(){y.length&&v.$digest()});y.push({scope:this,expression:n,locals:t})},$$postDigest:function(n){w.push(n)},$apply:function(n){try{return k("$apply"),this.$eval(n)}catch(i){h(i)}finally{v.$$phase=null;try{v.$digest()}catch(t){throw h(t),t;}}},$applyAsync:function(n){function t(){i.$eval(n)}var i=this;n&&b.push(t);it()},$on:function(n,t){var r=this.$$listeners[n],i,u;r||(this.$$listeners[n]=r=[]);r.push(t);i=this;do i.$$listenerCount[n]||(i.$$listenerCount[n]=0),i.$$listenerCount[n]++;while(i=i.$parent);return u=this,function(){var i=r.indexOf(t);-1!==i&&(r[i]=null,d(u,1,n))}},$emit:function(n){var o=[],u,r=this,e=!1,t={name:n,targetScope:r,stopPropagation:function(){e=!0},preventDefault:function(){t.defaultPrevented=!0},defaultPrevented:!1},s=gi([t],arguments,1),i,f;do{for(u=r.$$listeners[n]||o,t.currentScope=r,i=0,f=u.length;i<f;i++)if(u[i])try{u[i].apply(null,s)}catch(c){h(c)}else u.splice(i,1),i--,f--;if(e)return t.currentScope=null,t;r=r.$parent}while(r);return t.currentScope=null,t},$broadcast:function(n){var t=this,i=this,u={name:n,targetScope:this,preventDefault:function(){u.defaultPrevented=!0},defaultPrevented:!1},e,r,f;if(!this.$$listenerCount[n])return u;for(e=gi([u],arguments,1);t=i;){for(u.currentScope=t,i=t.$$listeners[n]||[],r=0,f=i.length;r<f;r++)if(i[r])try{i[r].apply(null,e)}catch(o){h(o)}else i.splice(r,1),r--,f--;if(!(i=t.$$listenerCount[n]&&t.$$childHead||t!==this&&t.$$nextSibling))for(;t!==this&&!(i=t.$$nextSibling);)t=t.$parent}return u.currentScope=null,u}};var v=new p,y=v.$$asyncQueue=[],w=v.$$postDigestQueue=[],b=v.$$applyAsyncQueue=[];return v}]}function cl(){var n=/^\s*(https?|ftp|mailto|tel|file):/,t=/^\s*((https?|ftp|file|blob):|data:image\/)/;this.aHrefSanitizationWhitelist=function(t){return u(t)?(n=t,this):n};this.imgSrcSanitizationWhitelist=function(n){return u(n)?(t=n,this):t};this.$get=function(){return function(i,r){var f=r?t:n,u;return u=dt(i).href,""===u||u.match(f)?i:"unsafe:"+u}}}function ll(n){if("self"===n)return n;if(a(n)){if(-1<n.indexOf("***"))throw gt("iwcard",n);return n=es(n).replace("\\*\\*",".*").replace("\\*","[^:/.?&;]*"),new RegExp("^"+n+"$")}if(wr(n))return new RegExp("^"+n.source+"$");throw gt("imatcher");}function co(n){var t=[];return u(n)&&r(n,function(n){t.push(ll(n))}),t}function al(){this.SCE_CONTEXTS=et;var n=["self"],t=[];this.resourceUrlWhitelist=function(t){return arguments.length&&(n=co(t)),n};this.resourceUrlBlacklist=function(n){return arguments.length&&(t=co(n)),t};this.$get=["$injector",function(r){function o(n,t){return"self"===n?lo(t):!!n.exec(t.href)}function f(n){var t=function(n){this.$$unwrapTrustedValue=function(){return n}};return n&&(t.prototype=new n),t.prototype.valueOf=function(){return this.$$unwrapTrustedValue()},t.prototype.toString=function(){return this.$$unwrapTrustedValue().toString()},t}var s=function(){throw gt("unsafe");},e,u;return r.has("$sanitize")&&(s=r.get("$sanitize")),e=f(),u={},u[et.HTML]=f(e),u[et.CSS]=f(e),u[et.URL]=f(e),u[et.JS]=f(e),u[et.RESOURCE_URL]=f(u[et.URL]),{trustAs:function(n,t){var r=u.hasOwnProperty(n)?u[n]:null;if(!r)throw gt("icontext",n,t);if(null===t||t===i||""===t)return t;if("string"!=typeof t)throw gt("itype",n);return new r(t)},getTrusted:function(r,f){var h,e,l,c;if(null===f||f===i||""===f)return f;if(h=u.hasOwnProperty(r)?u[r]:null,h&&f instanceof h)return f.$$unwrapTrustedValue();if(r===et.RESOURCE_URL){for(h=dt(f.toString()),c=!1,e=0,l=n.length;e<l;e++)if(o(n[e],h)){c=!0;break}if(c)for(e=0,l=t.length;e<l;e++)if(o(t[e],h)){c=!1;break}if(c)return f;throw gt("insecurl",f.toString());}if(r===et.HTML)return s(f);throw gt("unsafe");},valueOf:function(n){return n instanceof e?n.$$unwrapTrustedValue():n}}}]}function vl(){var n=!0;this.enabled=function(t){return arguments.length&&(n=!!t),n};this.$get=["$parse","$sceDelegate",function(t,i){var u;if(n&&8>li)throw gt("iequirks");u=ht(et);u.isEnabled=function(){return n};u.trustAs=i.trustAs;u.getTrusted=i.getTrusted;u.valueOf=i.valueOf;n||(u.trustAs=u.getTrusted=function(n,t){return t},u.valueOf=ot);u.parseAs=function(n,i){var r=t(i);return r.literal&&r.constant?r:t(i,function(t){return u.getTrusted(n,t)})};var f=u.parseAs,e=u.getTrusted,o=u.trustAs;return r(et,function(n,t){var i=y(t);u[tr("parse_as_"+i)]=function(t){return f(n,t)};u[tr("get_trusted_"+i)]=function(t){return e(n,t)};u[tr("trust_as_"+i)]=function(t){return o(n,t)}}),u}]}function yl(){this.$get=["$window","$document",function(n,t){var s={},h=g((/android (\d+)/.exec(y((n.navigator||{}).userAgent))||[])[1]),l=/Boxee/i.test((n.navigator||{}).userAgent),f=t[0]||{},i,r=f.body&&f.body.style,u=!1,o=!1,c;if(r){for(c in r)if(u=/^(Moz|webkit|ms)(?=[A-Z])/.exec(c)){i=u[0];i=i.substr(0,1).toUpperCase()+i.substr(1);break}i||(i="WebkitOpacity"in r&&"webkit");u=!!("transition"in r||i+"Transition"in r);o=!!("animation"in r||i+"Animation"in r);!h||u&&o||(u=a(f.body.style.webkitTransition),o=a(f.body.style.webkitAnimation))}return{history:!(!n.history||!n.history.pushState||4>h||l),hasEvent:function(n){if("input"===n&&11>=li)return!1;if(e(s[n])){var t=f.createElement("div");s[n]="on"+n in t}return s[n]},csp:sr(),vendorPrefix:i,transitions:u,animations:o,android:h}}]}function pl(){this.$get=["$templateCache","$http","$q",function(n,t,i){function r(u,f){r.totalPendingRequests++;var e=t.defaults&&t.defaults.transformResponse;return h(e)?e=e.filter(function(n){return n!==rf}):e===rf&&(e=null),t.get(u,{cache:n,transformResponse:e}).then(function(n){return r.totalPendingRequests--,n.data},function(n){if(r.totalPendingRequests--,!f)throw yt("tpload",u);return i.reject(n)})}return r.totalPendingRequests=0,r}]}function wl(){this.$get=["$rootScope","$browser","$location",function(n,t,i){return{findBindings:function(n,t,i){n=n.getElementsByClassName("ng-binding");var u=[];return r(n,function(n){var f=rt.element(n).data("$binding");f&&r(f,function(r){i?new RegExp("(^|\\s)"+es(t)+"(\\s|\\||$)").test(r)&&u.push(n):-1!=r.indexOf(t)&&u.push(n)})}),u},findModels:function(n,t,i){for(var f,u=["ng-","data-ng-","ng\\:"],r=0;r<u.length;++r)if(f=n.querySelectorAll("["+u[r]+"model"+(i?"=":"*=")+'"'+t+'"]'),f.length)return f},getLocation:function(){return i.url()},setLocation:function(t){t!==i.url()&&(i.url(t),n.$digest())},whenStable:function(n){t.notifyWhenNoOutstandingRequests(n)}}}]}function bl(){this.$get=["$rootScope","$browser","$q","$$q","$exceptionHandler",function(n,t,i,r,f){function o(o,s,h){var a=u(h)&&!h,c=(a?r:i).defer(),l=c.promise;return s=t.defer(function(){try{c.resolve(o())}catch(t){c.reject(t);f(t)}finally{delete e[l.$$timeoutId]}a||n.$apply()},s),l.$$timeoutId=s,e[s]=c,l}var e={};return o.cancel=function(n){return n&&n.$$timeoutId in e?(e[n.$$timeoutId].reject("canceled"),delete e[n.$$timeoutId],t.defer.cancel(n.$$timeoutId)):!1},o}]}function dt(n){return li&&(d.setAttribute("href",n),n=d.href),d.setAttribute("href",n),{href:d.href,protocol:d.protocol?d.protocol.replace(/:$/,""):"",host:d.host,search:d.search?d.search.replace(/^\?/,""):"",hash:d.hash?d.hash.replace(/^#/,""):"",hostname:d.hostname,port:d.port,pathname:"/"===d.pathname.charAt(0)?d.pathname:"/"+d.pathname}}function lo(n){return n=a(n)?dt(n):n,n.protocol===vs.protocol&&n.host===vs.host}function kl(){this.$get=nt(n)}function ao(n){function t(i,u){if(l(i)){var f={};return r(i,function(n,i){f[i]=t(i,n)}),f}return n.factory(i+"Filter",u)}this.register=t;this.$get=["$injector",function(n){return function(t){return n.get(t+"Filter")}}];t("currency",vo);t("date",ko);t("filter",dl);t("json",na);t("limitTo",ta);t("lowercase",ps);t("number",yo);t("orderBy",go);t("uppercase",ws)}function dl(){return function(n,t,i){if(!h(n))return n;var r;switch(typeof t){case"function":break;case"boolean":case"number":case"string":r=!0;case"object":t=gl(t,i,r);break;default:return n}return n.filter(t)}}function gl(n,t,i){var r=l(n)&&"$"in n;return!0===t?t=tt:o(t)||(t=function(n,t){return l(n)||l(t)?!1:(n=y(""+n),t=y(""+t),-1!==n.indexOf(t))}),function(u){return r&&!l(u)?ri(u,n.$,t,!1):ri(u,n,t,i)}}function ri(n,t,i,r,u){var e=typeof n,s=typeof t,f;if("string"===s&&"!"===t.charAt(0))return!ri(n,t.substring(1),i,r);if("array"===e)return n.some(function(n){return ri(n,t,i,r)});switch(e){case"object":if(r){for(f in n)if("$"!==f.charAt(0)&&ri(n[f],t,i,!0))return!0;return u?!1:ri(n,t,i,!1)}if("object"===s){for(f in t)if(u=t[f],!o(u)&&(e="$"===f,!ri(e?n:n[f],u,i,e,e)))return!1;return!0}return i(n,t);case"function":return!1;default:return i(n,t)}}function vo(n){var t=n.NUMBER_FORMATS;return function(n,i,r){return e(i)&&(i=t.CURRENCY_SYM),e(r)&&(r=t.PATTERNS[1].maxFrac),null==n?n:po(n,t.PATTERNS[1],t.GROUP_SEP,t.DECIMAL_SEP,r).replace(/\u00A4/g,i)}}function yo(n){var t=n.NUMBER_FORMATS;return function(n,i){return null==n?n:po(n,t.PATTERNS[0],t.GROUP_SEP,t.DECIMAL_SEP,i)}}function po(n,t,i,r,u){var c,f;if(!isFinite(n)||l(n))return"";c=0>n;n=Math.abs(n);var o=n+"",s="",y=[],h=!1;if(-1!==o.indexOf("e")&&(f=o.match(/([\d\.]+)e(-?)(\d+)/),f&&"-"==f[2]&&f[3]>u+1?n=0:(s=o,h=!0)),h)0<u&&1>n&&(s=n.toFixed(u),n=parseFloat(s));else{o=(o.split(ys)[1]||"").length;e(u)&&(u=Math.min(Math.max(t.minFrac,o),t.maxFrac));n=+(Math.round(+(n.toString()+"e"+u)).toString()+"e"+-u);var o=(""+n).split(ys),h=o[0],o=o[1]||"",a=0,v=t.lgSize,p=t.gSize;if(h.length>=v+p)for(a=h.length-v,f=0;f<a;f++)0==(a-f)%p&&0!==f&&(s+=i),s+=h.charAt(f);for(f=a;f<h.length;f++)0==(h.length-f)%v&&0!==f&&(s+=i),s+=h.charAt(f);for(;o.length<u;)o+="0";u&&"0"!==u&&(s+=r+o.substr(0,u))}return 0===n&&(c=!1),y.push(c?t.negPre:t.posPre,s,c?t.negSuf:t.posSuf),y.join("")}function ou(n,t,i){var r="";for(0>n&&(r="-",n=-n),n=""+n;n.length<t;)n="0"+n;return i&&(n=n.substr(n.length-t)),r+n}function k(n,t,i,r){return i=i||0,function(u){return u=u["get"+n](),(0<i||u>-i)&&(u+=i),0===u&&-12==i&&(u=12),ou(u,t,r)}}function su(n,t){return function(i,r){var u=i["get"+n](),f=cu(t?"SHORT"+n:n);return r[f][u]}}function wo(n){var t=new Date(n,0,1).getDay();return new Date(n,0,(4>=t?5:12)-t)}function bo(n){return function(t){var i=wo(t.getFullYear());return t=+new Date(t.getFullYear(),t.getMonth(),t.getDate()+(4-t.getDay()))-+i,t=1+Math.round(t/6048e5),ou(t,n)}}function ko(n){function t(n){var t;if(t=n.match(i)){n=new Date(0);var r=0,u=0,f=t[8]?n.setUTCFullYear:n.setFullYear,e=t[8]?n.setUTCHours:n.setHours;t[9]&&(r=g(t[9]+t[10]),u=g(t[9]+t[11]));f.call(n,g(t[1]),g(t[2])-1,g(t[3]));r=g(t[4]||0)-r;u=g(t[5]||0)-u;f=g(t[6]||0);t=Math.round(1e3*parseFloat("0."+(t[7]||0)));e.call(n,r,u,f,t)}return n}var i=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;return function(i,u,f){var s="",e=[],o,h;if(u=u||"mediumDate",u=n.DATETIME_FORMATS[u]||u,a(i)&&(i=av.test(i)?g(i):t(i)),b(i)&&(i=new Date(i)),!st(i))return i;for(;u;)(h=lv.exec(u))?(e=gi(e,h,1),u=e.pop()):(e.push(u),u=null);return f&&"UTC"===f&&(i=new Date(i.getTime()),i.setMinutes(i.getMinutes()+i.getTimezoneOffset())),r(e,function(t){o=cv[t];s+=o?o(i,n.DATETIME_FORMATS):t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),s}}function na(){return function(n,t){return e(t)&&(t=2),nr(n,t)}}function ta(){return function(n,t){if(b(n)&&(n=n.toString()),!h(n)&&!a(n))return n;if(t=Infinity===Math.abs(Number(t))?Number(t):g(t),a(n))return t?0<=t?n.slice(0,t):n.slice(t,n.length):"";var i,r;if(t>n.length?t=n.length:t<-n.length&&(t=-n.length),0<t)i=0,r=t;else{if(!t)return[];i=n.length+t;r=n.length}return n.slice(i,r)}}function go(n){return function(t,i,r){function u(n,t){return t?function(t,i){return n(i,t)}:n}function e(n){switch(typeof n){case"number":case"boolean":case"string":return!0;default:return!1}}function o(n){return null===n?"null":"function"==typeof n.valueOf&&(n=n.valueOf(),e(n))||"function"==typeof n.toString&&(n=n.toString(),e(n))?n:""}function f(n,t){var i=typeof n,r=typeof t;return i===r&&"object"===i&&(n=o(n),t=o(t)),i===r?("string"===i&&(n=n.toLowerCase(),t=t.toLowerCase()),n===t?0:n<t?-1:1):i<r?-1:1}return pi(t)?(i=h(i)?i:[i],0===i.length&&(i=["+"]),i=i.map(function(t){var r=!1,i=t||ot,e;if(a(t)){if(("+"==t.charAt(0)||"-"==t.charAt(0))&&(r="-"==t.charAt(0),t=t.substring(1)),""===t)return u(f,r);if(i=n(t),i.constant)return e=i(),u(function(n,t){return f(n[e],t[e])},r)}return u(function(n,t){return f(i(n),i(t))},r)}),er.call(t).sort(u(function(n,t){for(var u,r=0;r<i.length;r++)if(u=i[r](n,t),0!==u)return u;return 0},r))):t}}function ui(n){return o(n)&&(n={link:n}),n.restrict=n.restrict||"AC",nt(n)}function ns(n,t,u,f,e){var o=this,s=[],h=o.$$parentForm=n.parent().controller("form")||yr;o.$error={};o.$$success={};o.$pending=i;o.$name=e(t.name||t.ngForm||"")(u);o.$dirty=!1;o.$pristine=!0;o.$valid=!0;o.$invalid=!1;o.$submitted=!1;h.$addControl(o);o.$rollbackViewValue=function(){r(s,function(n){n.$rollbackViewValue()})};o.$commitViewValue=function(){r(s,function(n){n.$commitViewValue()})};o.$addControl=function(n){si(n.$name,"input");s.push(n);n.$name&&(o[n.$name]=n)};o.$$renameControl=function(n,t){var i=n.$name;o[i]===n&&delete o[i];o[t]=n;n.$name=t};o.$removeControl=function(n){n.$name&&o[n.$name]===n&&delete o[n.$name];r(o.$pending,function(t,i){o.$setValidity(i,null,n)});r(o.$error,function(t,i){o.$setValidity(i,null,n)});di(s,n)};rs({ctrl:this,$element:n,set:function(n,t,i){var r=n[t];r?-1===r.indexOf(i)&&r.push(i):n[t]=[i]},unset:function(n,t,i){var r=n[t];r&&(di(r,i),0===r.length&&delete n[t])},parentForm:h,$animate:f});o.$setDirty=function(){f.removeClass(n,yi);f.addClass(n,wu);o.$dirty=!0;o.$pristine=!1;h.$setDirty()};o.$setPristine=function(){f.setClass(n,yi,wu+" ng-submitted");o.$dirty=!1;o.$pristine=!0;o.$submitted=!1;r(s,function(n){n.$setPristine()})};o.$setUntouched=function(){r(s,function(n){n.$setUntouched()})};o.$setSubmitted=function(){f.addClass(n,"ng-submitted");o.$submitted=!0;h.$setSubmitted()}}function cf(n){n.$formatters.push(function(t){return n.$isEmpty(t)?t:t.toString()})}function ur(n,t,i,r,u,f){var c=y(t[0].type),s,o,e,h;if(!u.android){s=!1;t.on("compositionstart",function(){s=!0});t.on("compositionend",function(){s=!1;o()})}if(o=function(n){if(e&&(f.defer.cancel(e),e=null),!s){var u=t.val();n=n&&n.type;"password"===c||i.ngTrim&&"false"===i.ngTrim||(u=p(u));(r.$viewValue!==u||""===u&&r.$$hasNativeValidators)&&r.$setViewValue(u,n)}},u.hasEvent("input"))t.on("input",o);else{h=function(n,t,i){e||(e=f.defer(function(){e=null;t&&t.value===i||o(n)}))};t.on("keydown",function(n){var t=n.keyCode;91===t||15<t&&19>t||37<=t&&40>=t||h(n,this,this.value)});if(u.hasEvent("paste"))t.on("paste cut",h)}t.on("change",o);r.$render=function(){t.val(r.$isEmpty(r.$viewValue)?"":r.$viewValue)}}function hu(n,t){return function(i,u){var e,f;if(st(i))return i;if(a(i)){if('"'==i.charAt(0)&&'"'==i.charAt(i.length-1)&&(i=i.substring(1,i.length-1)),pv.test(i))return new Date(i);if(n.lastIndex=0,e=n.exec(i))return e.shift(),f=u?{yyyy:u.getFullYear(),MM:u.getMonth()+1,dd:u.getDate(),HH:u.getHours(),mm:u.getMinutes(),ss:u.getSeconds(),sss:u.getMilliseconds()/1e3}:{yyyy:1970,MM:1,dd:1,HH:0,mm:0,ss:0,sss:0},r(e,function(n,i){i<t.length&&(f[t[i]]=+n)}),new Date(f.yyyy,f.MM-1,f.dd,f.HH,f.mm,f.ss||0,1e3*f.sss||0)}return NaN}}function fr(n,t,r,f){return function(o,s,h,c,l,a,v){function w(n){return n&&!(n.getTime&&n.getTime()!==n.getTime())}function d(n){return u(n)?st(n)?n:r(n):i}var p,y,b,k;ts(o,s,h,c);ur(o,s,h,c,l,a);p=c&&c.$options&&c.$options.timezone;c.$$parserName=n;c.$parsers.push(function(n){return c.$isEmpty(n)?null:t.test(n)?(n=r(n,y),"UTC"===p&&n.setMinutes(n.getMinutes()-n.getTimezoneOffset()),n):i});c.$formatters.push(function(n){if(n&&!st(n))throw pu("datefmt",n);if(w(n)){if((y=n)&&"UTC"===p){var t=6e4*y.getTimezoneOffset();y=new Date(y.getTime()+t)}return v("date")(n,f,p)}return y=null,""});(u(h.min)||h.ngMin)&&(c.$validators.min=function(n){return!w(n)||e(b)||r(n)>=b},h.$observe("min",function(n){b=d(n);c.$validate()}));(u(h.max)||h.ngMax)&&(c.$validators.max=function(n){return!w(n)||e(k)||r(n)<=k},h.$observe("max",function(n){k=d(n);c.$validate()}))}}function ts(n,t,r,u){(u.$$hasNativeValidators=l(t[0].validity))&&u.$parsers.push(function(n){var r=t.prop("validity")||{};return r.badInput&&!r.typeMismatch?i:n})}function is(n,t,i,r,f){if(u(r)){if(n=n(r),!n.constant)throw v("ngModel")("constexpr",i,r);return n(t)}return f}function rs(n){function f(n,t){t&&!r[n]?(h.addClass(o,n),r[n]=!0):!t&&r[n]&&(h.removeClass(o,n),r[n]=!1)}function e(n,t){n=n?"-"+se(n,"-"):"";f(pr+n,!0===t);f(uh+n,!1===t)}var t=n.ctrl,o=n.$element,r={},s=n.set,u=n.unset,c=n.parentForm,h=n.$animate;r[uh]=!(r[pr]=o.hasClass(pr));t.$setValidity=function(n,r,o){r===i?(t.$pending||(t.$pending={}),s(t.$pending,n,o)):(t.$pending&&u(t.$pending,n,o),us(t.$pending)&&(t.$pending=i));ki(r)?r?(u(t.$error,n,o),s(t.$$success,n,o)):(s(t.$error,n,o),u(t.$$success,n,o)):(u(t.$error,n,o),u(t.$$success,n,o));t.$pending?(f(fh,!0),t.$valid=t.$invalid=i,e("",null)):(f(fh,!1),t.$valid=us(t.$error),t.$invalid=!t.$valid,e("",t.$valid));r=t.$pending&&t.$pending[n]?i:t.$error[n]?!1:t.$$success[n]?!0:null;e(n,r);c.$setValidity(n,r,t)}}function us(n){if(n)for(var t in n)return!1;return!0}function lf(n,t){return n="ngClass"+n,["$animate",function(i){function f(n,t){var f=[],r=0,u,i;n:for(;r<n.length;r++){for(u=n[r],i=0;i<t.length;i++)if(u==t[i])continue n;f.push(u)}return f}function u(n){if(!h(n)){if(a(n))return n.split(" ");if(l(n)){var t=[];return r(n,function(n,i){n&&(t=t.concat(i.split(" ")))}),t}}return n}return{restrict:"AC",link:function(e,o,s){function h(n,t){var i=o.data("$classCounts")||{},u=[];return r(n,function(n){(0<t||i[n])&&(i[n]=(i[n]||0)+t,i[n]===+(0<t)&&u.push(n))}),o.data("$classCounts",i),u.join(" ")}function l(n){var r,l;if(!0===t||e.$index%2===t)if(r=u(n||[]),c){if(!tt(n,c)){var a=u(c),l=f(r,a),r=f(a,r),l=h(l,1),r=h(r,-1);l&&l.length&&i.addClass(o,l);r&&r.length&&i.removeClass(o,r)}}else l=h(r,1),s.$addClass(l);c=ht(n)}var c;e.$watch(s[n],l,!0);s.$observe("class",function(){l(e.$eval(s[n]))});"ngClass"!==n&&e.$watch("$index",function(i,r){var f=i&1,o;f!==(r&1)&&(o=u(e.$eval(s[n])),f===t?(f=h(o,1),s.$addClass(f)):(f=h(o,-1),s.$removeClass(f)))})}}}]}var ia=/^\/(.+)\/([a-z]*)$/,y=function(n){return a(n)?n.toLowerCase():n},fs=Object.prototype.hasOwnProperty,cu=function(n){return a(n)?n.toUpperCase():n},li,f,at,er=[].slice,ra=[].splice,ua=[].push,fi=Object.prototype.toString,ai=v("ng"),rt=n.angular||(n.angular={}),or,lu=0,hr,ss,ei,cr,pf,wf,vi,ps,ws,bs,vr,yr;li=t.documentMode;s.$inject=[];ot.$inject=[];var h=Array.isArray,p=function(n){return a(n)?n.trim():n},es=function(n){return n.replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")},sr=function(){if(u(sr.isActive_))return sr.isActive_;var n=!(!t.querySelector("[ng-csp]")&&!t.querySelector("[data-ng-csp]"));if(!n)try{new Function("")}catch(i){n=!0}return sr.isActive_=n},au=["ng-","data-ng-","ng:","x-ng-"],fa=/[A-Z]/g,os=!1,af,vt=1,vu=3,ea={full:"1.8.2",major:1,minor:8,dot:2,codeName:"prophetic-narwhal"};w.expando="ng339";hr=w.cache={};ss=1;w._data=function(n){return this.cache[n[this.expando]]||{}};var oa=/([\:\-\_]+(.))/g,sa=/^moz([A-Z])/,ha={mouseleave:"mouseout",mouseenter:"mouseover"},vf=v("jqLite"),ca=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,yf=/<|&#?\w+;/,la=/<([\w:]+)/,aa=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,ut={option:[1,'<select multiple="multiple">',"<\/select>"],thead:[1,"<table>","<\/table>"],col:[2,"<table><colgroup>","<\/colgroup><\/table>"],tr:[2,"<table><tbody>","<\/tbody><\/table>"],td:[3,"<table><tbody><tr>","<\/tr><\/tbody><\/table>"],_default:[0,"",""]};ut.optgroup=ut.option;ut.tbody=ut.tfoot=ut.colgroup=ut.caption=ut.thead;ut.th=ut.td;ei=w.prototype={ready:function(i){function r(){u||(u=!0,i())}var u=!1;"complete"===t.readyState?setTimeout(r):(this.on("DOMContentLoaded",r),w(n).on("load",r))},toString:function(){var n=[];return r(this,function(t){n.push(""+t)}),"["+n.join(", ")+"]"},eq:function(n){return 0<=n?f(this[n]):f(this[this.length+n])},length:0,push:ua,sort:[].sort,splice:[].splice};cr={};r("multiple selected checked disabled readOnly required open".split(" "),function(n){cr[y(n)]=n});pf={};r("input select option textarea button form details".split(" "),function(n){pf[n]=!0});wf={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern"};r({data:gu,removeData:nu},function(n,t){w[t]=n});r({data:gu,inheritedData:fu,scope:function(n){return f.data(n,"$scope")||fu(n.parentNode||n,["$isolateScope","$scope"])},isolateScope:function(n){return f.data(n,"$isolateScope")||f.data(n,"$isolateScopeNoTemplate")},controller:ye,injector:function(n){return fu(n,"$injector")},removeAttr:function(n,t){n.removeAttribute(t)},hasClass:iu,css:function(n,t,i){if(t=tr(t),u(i))n.style[t]=i;else return n.style[t]},attr:function(n,t,r){var f=y(t);if(cr[f])if(u(r))r?(n[t]=!0,n.setAttribute(t,f)):(n[t]=!1,n.removeAttribute(f));else return n[t]||(n.attributes.getNamedItem(t)||s).specified?f:i;else if(u(r))n.setAttribute(t,r);else if(n.getAttribute)return n=n.getAttribute(t,2),null===n?i:n},prop:function(n,t,i){if(u(i))n[t]=i;else return n[t]},text:function(){function n(n,t){if(e(t)){var i=n.nodeType;return i===vt||i===vu?n.textContent:""}n.textContent=t}return n.$dv="",n}(),val:function(n,t){if(e(t)){if(n.multiple&&"select"===pt(n)){var i=[];return r(n.options,function(n){n.selected&&i.push(n.value||n.text)}),0===i.length?null:i}return n.value}n.value=t},html:function(n,t){if(e(t))return n.innerHTML;gr(n,!0);n.innerHTML=t},empty:pe},function(n,t){w.prototype[t]=function(t,r){var u,f,e=this.length,o;if(n!==pe&&(2==n.length&&n!==iu&&n!==ye?t:r)===i){if(l(t)){for(u=0;u<e;u++)if(n===gu)n(this[u],t);else for(f in t)n(this[u],f,t[f]);return this}for(u=n.$dv,e=u===i?Math.min(e,1):e,f=0;f<e;f++)o=n(this[f],t,r),u=u?u+o:o;return u}for(u=0;u<e;u++)n(this[u],t,r);return this}});r({removeData:nu,on:function va(n,t,i,r){var e,f,s,o;if(u(r))throw vf("onargs");if(ce(n))for(f=tu(n,!0),r=f.events,e=f.handle,e||(e=f.handle=rc(n,r)),f=0<=t.indexOf(" ")?t.split(" "):[t],s=f.length;s--;)t=f[s],o=r[t],o||(r[t]=[],"mouseenter"===t||"mouseleave"===t?va(n,ha[t],function(n){var i=n.relatedTarget;i&&(i===this||this.contains(i))||e(n,t)}):"$destroy"!==t&&n.addEventListener(t,e,!1),o=r[t]),o.push(i)},off:ae,one:function(n,t,i){n=f(n);n.on(t,function r(){n.off(t,i);n.off(t,r)});n.on(t,i)},replaceWith:function(n,t){var i,u=n.parentNode;gr(n);r(new w(t),function(t){i?u.insertBefore(t,i.nextSibling):u.replaceChild(t,n);i=t})},children:function(n){var t=[];return r(n.childNodes,function(n){n.nodeType===vt&&t.push(n)}),t},contents:function(n){return n.contentDocument||n.childNodes||[]},append:function(n,t){var i=n.nodeType,r;if(i===vt||11===i)for(t=new w(t),i=0,r=t.length;i<r;i++)n.appendChild(t[i])},prepend:function(n,t){if(n.nodeType===vt){var i=n.firstChild;r(new w(t),function(t){n.insertBefore(t,i)})}},wrap:function(n,t){t=f(t).eq(0).clone()[0];var i=n.parentNode;i&&i.replaceChild(t,n);t.appendChild(n)},remove:we,detach:function(n){we(n,!0)},after:function(n,t){var u=n,e=n.parentNode,i,f,r;for(t=new w(t),i=0,f=t.length;i<f;i++)r=t[i],e.insertBefore(r,u.nextSibling),u=r},addClass:uu,removeClass:ru,toggleClass:function(n,t,i){t&&r(t.split(" "),function(t){var r=i;e(r)&&(r=!iu(n,t));(r?uu:ru)(n,t)})},parent:function(n){return(n=n.parentNode)&&11!==n.nodeType?n:null},next:function(n){return n.nextElementSibling},find:function(n,t){return n.getElementsByTagName?n.getElementsByTagName(t):[]},clone:du,triggerHandler:function(n,t,i){var u,e,o=t.type||t,f=tu(n);(f=(f=f&&f.events)&&f[o])&&(u={preventDefault:function(){this.defaultPrevented=!0},isDefaultPrevented:function(){return!0===this.defaultPrevented},stopImmediatePropagation:function(){this.immediatePropagationStopped=!0},isImmediatePropagationStopped:function(){return!0===this.immediatePropagationStopped},stopPropagation:s,type:o,target:n},t.type&&(u=c(u,t)),t=ht(f),e=i?[u].concat(i):[u],r(t,function(t){u.isImmediatePropagationStopped()||t.apply(n,e)}))}},function(n,t){w.prototype[t]=function(t,i,r){for(var o,s=0,h=this.length;s<h;s++)e(o)?(o=n(this[s],t,i,r),u(o)&&(o=f(o))):ve(o,n(this[s],t,i,r));return u(o)?o:this};w.prototype.bind=w.prototype.on;w.prototype.unbind=w.prototype.off});ir.prototype={put:function(n,t){this[hi(n,this.nextUid)]=t},get:function(n){return this[hi(n,this.nextUid)]},remove:function(n){var t=this[n=hi(n,this.nextUid)];return delete this[n],t}};var hs=/^function\s*[^\(]*\(\s*([^\)]*)\)/m,ya=/,/,pa=/^\s*(_?)(\S+?)\1\s*$/,cs=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg,oi=v("$injector");tf.$$annotate=nf;var wa=v("$animate"),ba=["$provide",function(n){this.$$selectors={};this.register=function(t,i){var r=t+"-animation";if(t&&"."!=t.charAt(0))throw wa("notcsel",t);this.$$selectors[t.substr(1)]=r;n.factory(r,i)};this.classNameFilter=function(n){return 1===arguments.length&&(this.$$classNameFilter=n instanceof RegExp?n:null),this.$$classNameFilter};this.$get=["$$q","$$asyncCallback","$rootScope",function(n,t,i){function v(t){var r,u=n.defer();return u.promise.$$cancelFn=function(){r&&r()},i.$$postDigest(function(){r=t(function(){u.resolve()})}),u.promise}function y(n,t){var i=[],u=[],f=it();return r((n.attr("class")||"").split(/\s+/),function(n){f[n]=!0}),r(t,function(n,t){var r=f[t];!1===n&&r?u.push(t):!0!==n||r||i.push(t)}),0<i.length+u.length&&[i.length?i:null,u.length?u:null]}function l(n,t,i){for(var r=0,u=t.length;r<u;++r)n[t[r]]=i}function u(){return o||(o=n.defer(),t(function(){o.resolve();o=null})),o.promise}function e(n,t){if(rt.isObject(t)){var i=c(t.from||{},t.to||{});n.css(i)}}var o;return{animate:function(n,t,i){return e(n,{from:t,to:i}),u()},enter:function(n,t,i,r){return e(n,r),i?i.after(n):t.prepend(n),u()},leave:function(n){return n.remove(),u()},move:function(n,t,i,r){return this.enter(n,t,i,r)},addClass:function(n,t,i){return this.setClass(n,t,[],i)},$$addClassImmediately:function(n,t,i){return n=f(n),t=a(t)?t:h(t)?t.join(" "):"",r(n,function(n){uu(n,t)}),e(n,i),u()},removeClass:function(n,t,i){return this.setClass(n,[],t,i)},$$removeClassImmediately:function(n,t,i){return n=f(n),t=a(t)?t:h(t)?t.join(" "):"",r(n,function(n){ru(n,t)}),e(n,i),u()},setClass:function(n,t,i,r){var o=this,e=!1,u;return n=f(n),u=n.data("$$animateClasses"),u?r&&u.options&&(u.options=rt.extend(u.options||{},r)):(u={classes:{},options:r},e=!0),r=u.classes,t=h(t)?t:t.split(" "),i=h(i)?i:i.split(" "),l(r,t,!0),l(r,i,!1),e&&(u.promise=v(function(t){var r=n.data("$$animateClasses"),i;n.removeData("$$animateClasses");r&&(i=y(n,r.classes),i&&o.$$setClassImmediately(n,i[0],i[1],r.options));t()}),n.data("$$animateClasses",u)),u.promise},$$setClassImmediately:function(n,t,i,r){return t&&this.$$addClassImmediately(n,t),i&&this.$$removeClassImmediately(n,i),e(n,r),u()},enabled:s,cancel:s}}]}],yt=v("$compile");ke.$inject=["$provide","$$sanitizeUriProvider"];var ls=/^((?:x|data)[\:\-_])/i,as="application/json",bf={"Content-Type":as+";charset=utf-8"},ka=/^\[|^\{(?!\{)/,da={"[":/]$/,"{":/}$/},ga=/^\)\]\}',?\n/,kf=v("$interpolate"),nv=/^([^\?#]*)(\?([^#]*))?(#(.*))?$/,tv={http:80,https:443,ftp:21},yu=v("$location"),iv={$$html5:!1,$$replace:!1,absUrl:eu("$$absUrl"),url:function(n){if(e(n))return this.$$url;var t=nv.exec(n);return(t[1]||""===n)&&this.path(decodeURIComponent(t[1])),(t[2]||t[1]||""===n)&&this.search(t[3]||""),this.hash(t[5]||""),this},protocol:eu("$$protocol"),host:eu("$$host"),port:eu("$$port"),path:oo("$$path",function(n){return n=null!==n?n.toString():"","/"==n.charAt(0)?n:"/"+n}),search:function(n,t){switch(arguments.length){case 0:return this.$$search;case 1:if(a(n)||b(n))n=n.toString(),this.$$search=ee(n);else if(l(n))n=ni(n,{}),r(n,function(t,i){null==t&&delete n[i]}),this.$$search=n;else throw yu("isrcharg");break;default:e(t)||null===t?delete this.$$search[n]:this.$$search[n]=t}return this.$$compose(),this},hash:oo("$$hash",function(n){return null!==n?n.toString():""}),replace:function(){return this.$$replace=!0,this}};r([eo,of,ef],function(n){n.prototype=Object.create(iv);n.prototype.state=function(t){if(!arguments.length)return this.$$state;if(n!==ef||!this.$$html5)throw yu("nostate");return this.$$state=e(t)?null:t,this}});var ft=v("$parse"),rv=Function.prototype.call,uv=Function.prototype.apply,fv=Function.prototype.bind,lr=it();r({"null":function(){return null},"true":function(){return!0},"false":function(){return!1},undefined:function(){}},function(n,t){n.constant=n.literal=n.sharedGetter=!0;lr[t]=n});lr["this"]=function(n){return n};lr["this"].sharedGetter=!0;var ar=c(it(),{"+":function(n,t,r,f){return r=r(n,t),f=f(n,t),u(r)?u(f)?r+f:r:u(f)?f:i},"-":function(n,t,i,r){return i=i(n,t),r=r(n,t),(u(i)?i:0)-(u(r)?r:0)},"*":function(n,t,i,r){return i(n,t)*r(n,t)},"/":function(n,t,i,r){return i(n,t)/r(n,t)},"%":function(n,t,i,r){return i(n,t)%r(n,t)},"===":function(n,t,i,r){return i(n,t)===r(n,t)},"!==":function(n,t,i,r){return i(n,t)!==r(n,t)},"==":function(n,t,i,r){return i(n,t)==r(n,t)},"!=":function(n,t,i,r){return i(n,t)!=r(n,t)},"<":function(n,t,i,r){return i(n,t)<r(n,t)},">":function(n,t,i,r){return i(n,t)>r(n,t)},"<=":function(n,t,i,r){return i(n,t)<=r(n,t)},">=":function(n,t,i,r){return i(n,t)>=r(n,t)},"&&":function(n,t,i,r){return i(n,t)&&r(n,t)},"||":function(n,t,i,r){return i(n,t)||r(n,t)},"!":function(n,t,i){return!i(n,t)},"=":!0,"|":!0}),ev={n:"\n",f:"\f",r:"\r",t:"\t",v:"\v","'":"'",'"':'"'},df=function(n){this.options=n};df.prototype={constructor:df,lex:function(n){for(this.text=n,this.index=0,this.tokens=[];this.index<this.text.length;)if(n=this.text.charAt(this.index),'"'===n||"'"===n)this.readString(n);else if(this.isNumber(n)||"."===n&&this.isNumber(this.peek()))this.readNumber();else if(this.isIdent(n))this.readIdent();else if(this.is(n,"(){}[].,;:?"))this.tokens.push({index:this.index,text:n}),this.index++;else if(this.isWhitespace(n))this.index++;else{var t=n+this.peek(),i=t+this.peek(2),r=ar[t],u=ar[i];ar[n]||r||u?(n=u?i:r?t:n,this.tokens.push({index:this.index,text:n,operator:!0}),this.index+=n.length):this.throwError("Unexpected next character ",this.index,this.index+1)}return this.tokens},is:function(n,t){return-1!==t.indexOf(n)},peek:function(n){return n=n||1,this.index+n<this.text.length?this.text.charAt(this.index+n):!1},isNumber:function(n){return"0"<=n&&"9">=n&&"string"==typeof n},isWhitespace:function(n){return" "===n||"\r"===n||"\t"===n||"\n"===n||"\v"===n||" "===n},isIdent:function(n){return"a"<=n&&"z">=n||"A"<=n&&"Z">=n||"_"===n||"$"===n},isExpOperator:function(n){return"-"===n||"+"===n||this.isNumber(n)},throwError:function(n,t,i){i=i||this.index;t=u(t)?"s "+t+"-"+this.index+" ["+this.text.substring(t,i)+"]":" "+i;throw ft("lexerr",n,t,this.text);},readNumber:function(){for(var t,i,n="",r=this.index;this.index<this.text.length;){if(t=y(this.text.charAt(this.index)),"."==t||this.isNumber(t))n+=t;else if(i=this.peek(),"e"==t&&this.isExpOperator(i))n+=t;else if(this.isExpOperator(t)&&i&&this.isNumber(i)&&"e"==n.charAt(n.length-1))n+=t;else if(!this.isExpOperator(t)||i&&this.isNumber(i)||"e"!=n.charAt(n.length-1))break;else this.throwError("Invalid exponent");this.index++}this.tokens.push({index:r,text:n,constant:!0,value:Number(n)})},readIdent:function(){for(var t,n=this.index;this.index<this.text.length;){if(t=this.text.charAt(this.index),!this.isIdent(t)&&!this.isNumber(t))break;this.index++}this.tokens.push({index:n,text:this.text.slice(n,this.index),identifier:!0})},readString:function(n){var f=this.index,t,u;this.index++;for(var r="",u=n,i=!1;this.index<this.text.length;){if(t=this.text.charAt(this.index),u=u+t,i)"u"===t?(i=this.text.substring(this.index+1,this.index+5),i.match(/[\da-f]{4}/i)||this.throwError("Invalid unicode escape [\\u"+i+"]"),this.index+=4,r+=String.fromCharCode(parseInt(i,16))):r+=ev[t]||t,i=!1;else if("\\"===t)i=!0;else{if(t===n){this.index++;this.tokens.push({index:f,text:u,constant:!0,value:r});return}r+=t}this.index++}this.throwError("Unterminated quote",f)}};vi=function(n,t,i){this.lexer=n;this.$filter=t;this.options=i};vi.ZERO=c(function(){return 0},{sharedGetter:!0,constant:!0});vi.prototype={constructor:vi,parse:function(n){return this.text=n,this.tokens=this.lexer.lex(n),n=this.statements(),0!==this.tokens.length&&this.throwError("is an unexpected token",this.tokens[0]),n.literal=!!n.literal,n.constant=!!n.constant,n},primary:function(){var n,t,i;for(this.expect("(")?(n=this.filterChain(),this.consume(")")):this.expect("[")?n=this.arrayDeclaration():this.expect("{")?n=this.object():this.peek().identifier&&(this.peek().text in lr)?n=lr[this.consume().text]:this.peek().identifier?n=this.identifier():this.peek().constant?n=this.constant():this.throwError("not a primary expression",this.peek());t=this.expect("(","[",".");)"("===t.text?(n=this.functionCall(n,i),i=null):"["===t.text?(i=n,n=this.objectIndex(n)):"."===t.text?(i=n,n=this.fieldAccess(n)):this.throwError("IMPOSSIBLE");return n},throwError:function(n,t){throw ft("syntax",t.text,n,t.index+1,this.text,this.text.substring(t.index));},peekToken:function(){if(0===this.tokens.length)throw ft("ueoe",this.text);return this.tokens[0]},peek:function(n,t,i,r){return this.peekAhead(0,n,t,i,r)},peekAhead:function(n,t,i,r,u){if(this.tokens.length>n){n=this.tokens[n];var f=n.text;if(f===t||f===i||f===r||f===u||!(t||i||r||u))return n}return!1},expect:function(n,t,i,r){return(n=this.peek(n,t,i,r))?(this.tokens.shift(),n):!1},consume:function(n){if(0===this.tokens.length)throw ft("ueoe",this.text);var t=this.expect(n);return t||this.throwError("is unexpected, expecting ["+n+"]",this.peek()),t},unaryFn:function(n,t){var i=ar[n];return c(function(n,r){return i(n,r,t)},{constant:t.constant,inputs:[t]})},binaryFn:function(n,t,i,r){var u=ar[t];return c(function(t,r){return u(t,r,n,i)},{constant:n.constant&&i.constant,inputs:!r&&[n,i]})},identifier:function(){for(var n=this.consume().text;this.peek(".")&&this.peekAhead(1).identifier&&!this.peekAhead(2,"(");)n+=this.consume().text+this.consume().text;return ul(n,this.options,this.text)},constant:function(){var n=this.consume().value;return c(function(){return n},{constant:!0,literal:!0})},statements:function(){for(var n=[];;)if(0<this.tokens.length&&!this.peek("}",")",";","]")&&n.push(this.filterChain()),!this.expect(";"))return 1===n.length?n[0]:function(t,i){for(var u,r=0,f=n.length;r<f;r++)u=n[r](t,i);return u}},filterChain:function(){for(var n=this.expression();this.expect("|");)n=this.filter(n);return n},filter:function(n){var u=this.$filter(this.consume().text),t,r,f;if(this.peek(":"))for(t=[],r=[];this.expect(":");)t.push(this.expression());return f=[n].concat(t||[]),c(function(f,e){var o=n(f,e);if(r){for(r[0]=o,o=t.length;o--;)r[o+1]=t[o](f,e);return u.apply(i,r)}return u(o)},{constant:!u.$stateful&&f.every(sf),inputs:!u.$stateful&&f})},expression:function(){return this.assignment()},assignment:function(){var n=this.ternary(),t,i;return(i=this.expect("="))?(n.assign||this.throwError("implies assignment but ["+this.text.substring(0,i.index)+"] can not be assigned to",i),t=this.ternary(),c(function(i,r){return n.assign(i,t(i,r),r)},{inputs:[n,t]})):n},ternary:function(){var n=this.logicalOR(),t,i;return this.expect("?")&&(t=this.assignment(),this.consume(":"))?(i=this.assignment(),c(function(r,u){return n(r,u)?t(r,u):i(r,u)},{constant:n.constant&&t.constant&&i.constant})):n},logicalOR:function(){for(var n=this.logicalAND(),t;t=this.expect("||");)n=this.binaryFn(n,t.text,this.logicalAND(),!0);return n},logicalAND:function(){for(var n=this.equality(),t;t=this.expect("&&");)n=this.binaryFn(n,t.text,this.equality(),!0);return n},equality:function(){for(var n=this.relational(),t;t=this.expect("==","!=","===","!==");)n=this.binaryFn(n,t.text,this.relational());return n},relational:function(){for(var n=this.additive(),t;t=this.expect("<",">","<=",">=");)n=this.binaryFn(n,t.text,this.additive());return n},additive:function(){for(var n=this.multiplicative(),t;t=this.expect("+","-");)n=this.binaryFn(n,t.text,this.multiplicative());return n},multiplicative:function(){for(var n=this.unary(),t;t=this.expect("*","/","%");)n=this.binaryFn(n,t.text,this.unary());return n},unary:function(){var n;return this.expect("+")?this.primary():(n=this.expect("-"))?this.binaryFn(vi.ZERO,n.text,this.unary()):(n=this.expect("!"))?this.unaryFn(n.text,this.unary()):this.primary()},fieldAccess:function(n){var t=this.identifier();return c(function(r,u,f){return r=f||n(r,u),null==r?i:t(r)},{assign:function(i,r,u){return(u=n(i,u))||n.assign(i,u={}),t.assign(u,r)}})},objectIndex:function(n){var t=this.text,r=this.expression();return this.consume("]"),c(function(u,f){var e=n(u,f),o=r(u,f);return ct(o,t),e?lt(e[o],t):i},{assign:function(i,u,f){var e=ct(r(i,f),t);return(f=lt(n(i,f),t))||n.assign(i,f={}),f[e]=u}})},functionCall:function(n,t){var e=[],f,r;if(")"!==this.peekToken().text)do e.push(this.expression());while(this.expect(","));return this.consume(")"),f=this.text,r=e.length?[]:null,function(o,h){var l=t?t(o,h):u(t)?i:o,c=n(o,h,l)||s,a;if(r)for(a=e.length;a--;)r[a]=lt(e[a](o,h),f);if(lt(l,f),c){if(c.constructor===c)throw ft("isecfn",f);if(c===rv||c===uv||c===fv)throw ft("isecff",f);}return l=c.apply?c.apply(l,r):c(r[0],r[1],r[2],r[3],r[4]),lt(l,f)}},arrayDeclaration:function(){var n=[];if("]"!==this.peekToken().text)do{if(this.peek("]"))break;n.push(this.expression())}while(this.expect(","));return this.consume("]"),c(function(t,i){for(var u=[],r=0,f=n.length;r<f;r++)u.push(n[r](t,i));return u},{literal:!0,constant:n.every(sf),inputs:n})},object:function(){var i=[],t=[],n;if("}"!==this.peekToken().text)do{if(this.peek("}"))break;n=this.consume();n.constant?i.push(n.value):n.identifier?i.push(n.text):this.throwError("invalid key",n);this.consume(":");t.push(this.expression())}while(this.expect(","));return this.consume("}"),c(function(n,r){for(var f={},u=0,e=t.length;u<e;u++)f[i[u]]=t[u](n,r);return f},{literal:!0,constant:t.every(sf),inputs:t})}};var ov=it(),sv=it(),hv=Object.prototype.valueOf,gt=v("$sce"),et={HTML:"html",CSS:"css",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"},yt=v("$compile"),d=t.createElement("a"),vs=dt(n.location.href);ao.$inject=["$provide"];vo.$inject=["$locale"];yo.$inject=["$locale"];var ys=".",cv={yyyy:k("FullYear",4),yy:k("FullYear",2,0,!0),y:k("FullYear",1),MMMM:su("Month"),MMM:su("Month",!0),MM:k("Month",2,1),M:k("Month",1,1),dd:k("Date",2),d:k("Date",1),HH:k("Hours",2),H:k("Hours",1),hh:k("Hours",2,-12),h:k("Hours",1,-12),mm:k("Minutes",2),m:k("Minutes",1),ss:k("Seconds",2),s:k("Seconds",1),sss:k("Milliseconds",3),EEEE:su("Day"),EEE:su("Day",!0),a:function(n,t){return 12>n.getHours()?t.AMPMS[0]:t.AMPMS[1]},Z:function(n){return n=-1*n.getTimezoneOffset(),(0<=n?"+":"")+(ou(Math[0<n?"floor":"ceil"](n/60),2)+ou(Math.abs(n%60),2))},ww:bo(2),w:bo(1)},lv=/((?:[^yMdHhmsaZEw']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|d+|H+|h+|m+|s+|a|Z|w+))(.*)/,av=/^\-?\d+$/;ko.$inject=["$locale"];ps=nt(y);ws=nt(cu);go.$inject=["$parse"];bs=nt({restrict:"E",compile:function(n,t){if(!t.href&&!t.xlinkHref&&!t.name)return function(n,t){var i="[object SVGAnimatedString]"===fi.call(t.prop("href"))?"xlink:href":"href";t.on("click",function(n){t.attr(i)||n.preventDefault()})}}});vr={};r(cr,function(n,t){if("multiple"!=n){var i=bt("ng-"+t);vr[i]=function(){return{restrict:"A",priority:100,link:function(n,r,u){n.$watch(u[i],function(n){u.$set(t,!!n)})}}}}});r(wf,function(n,t){vr[t]=function(){return{priority:100,link:function(n,i,r){if("ngPattern"===t&&"/"==r.ngPattern.charAt(0)&&(i=r.ngPattern.match(ia))){r.$set("ngPattern",new RegExp(i[1],i[2]));return}n.$watch(r[t],function(n){r.$set(t,n)})}}}});r(["src","srcset","href"],function(n){var t=bt("ng-"+n);vr[t]=function(){return{priority:99,link:function(i,r,u){var e=n,f=n;"href"===n&&"[object SVGAnimatedString]"===fi.call(r.prop("href"))&&(f="xlinkHref",u.$attr[f]="xlink:href",e=null);u.$observe(t,function(t){t?(u.$set(f,t),li&&e&&r.prop(e,u[f])):"href"===n&&u.$set(f,null)})}}}});yr={$addControl:s,$$renameControl:function(n,t){n.$name=t},$removeControl:s,$setValidity:s,$setDirty:s,$setPristine:s,$setSubmitted:s};ns.$inject=["$element","$attrs","$scope","$animate","$interpolate"];var ks=function(n){return["$timeout",function(t){return{name:"form",restrict:n?"EAC":"E",controller:ns,compile:function(n){return n.addClass(yi).addClass(pr),{pre:function(n,r,u,f){var o,s,e;if(!("action"in u)){o=function(t){n.$apply(function(){f.$commitViewValue();f.$setSubmitted()});t.preventDefault()};r[0].addEventListener("submit",o,!1);r.on("$destroy",function(){t(function(){r[0].removeEventListener("submit",o,!1)},0,!1)})}s=f.$$parentForm;e=f.$name;e&&(rr(n,e,f,e),u.$observe(u.name?"name":"ngForm",function(t){e!==t&&(rr(n,e,i,e),e=t,rr(n,e,f,e),s.$$renameControl(f,e))}));r.on("$destroy",function(){s.$removeControl(f);e&&rr(n,e,i,e);c(f,yr)})}}}}}]},vv=ks(),yv=ks(!0),pv=/\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z)/,wv=/^(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?$/,bv=/^[a-z0-9!#$%&'*+\/=?^_`{|}~.-]+@[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*$/i,kv=/^\s*(\-|\+)?(\d+|(\d*(\.\d*)))\s*$/,ds=/^(\d{4})-(\d{2})-(\d{2})$/,gs=/^(\d{4})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,gf=/^(\d{4})-W(\d\d)$/,nh=/^(\d{4})-(\d\d)$/,th=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,dv=/(\s+|^)default(\s+|$)/,pu=new v("ngModel"),ih={text:function(n,t,i,r,u,f){ur(n,t,i,r,u,f);cf(r)},date:fr("date",ds,hu(ds,["yyyy","MM","dd"]),"yyyy-MM-dd"),"datetime-local":fr("datetimelocal",gs,hu(gs,"yyyy MM dd HH mm ss sss".split(" ")),"yyyy-MM-ddTHH:mm:ss.sss"),time:fr("time",th,hu(th,["HH","mm","ss","sss"]),"HH:mm:ss.sss"),week:fr("week",gf,function(n,t){var i;if(st(n))return n;if(a(n)&&(gf.lastIndex=0,i=gf.exec(n),i)){var r=+i[1],u=+i[2],f=i=0,e=0,o=0,s=wo(r),u=7*(u-1);return t&&(i=t.getHours(),f=t.getMinutes(),e=t.getSeconds(),o=t.getMilliseconds()),new Date(r,0,s.getDate()+u,i,f,e,o)}return NaN},"yyyy-Www"),month:fr("month",nh,hu(nh,["yyyy","MM"]),"yyyy-MM"),number:function(n,t,r,f,o,s){var h,c;ts(n,t,r,f);ur(n,t,r,f,o,s);f.$$parserName="number";f.$parsers.push(function(n){return f.$isEmpty(n)?null:kv.test(n)?parseFloat(n):i});f.$formatters.push(function(n){if(!f.$isEmpty(n)){if(!b(n))throw pu("numfmt",n);n=n.toString()}return n});(r.min||r.ngMin)&&(f.$validators.min=function(n){return f.$isEmpty(n)||e(h)||n>=h},r.$observe("min",function(n){u(n)&&!b(n)&&(n=parseFloat(n,10));h=b(n)&&!isNaN(n)?n:i;f.$validate()}));(r.max||r.ngMax)&&(f.$validators.max=function(n){return f.$isEmpty(n)||e(c)||n<=c},r.$observe("max",function(n){u(n)&&!b(n)&&(n=parseFloat(n,10));c=b(n)&&!isNaN(n)?n:i;f.$validate()}))},url:function(n,t,i,r,u,f){ur(n,t,i,r,u,f);cf(r);r.$$parserName="url";r.$validators.url=function(n,t){var i=n||t;return r.$isEmpty(i)||wv.test(i)}},email:function(n,t,i,r,u,f){ur(n,t,i,r,u,f);cf(r);r.$$parserName="email";r.$validators.email=function(n,t){var i=n||t;return r.$isEmpty(i)||bv.test(i)}},radio:function(n,t,i,r){e(i.name)&&t.attr("name",++lu);t.on("click",function(n){t[0].checked&&r.$setViewValue(i.value,n&&n.type)});r.$render=function(){t[0].checked=i.value==r.$viewValue};i.$observe("value",r.$render)},checkbox:function(n,t,i,r,u,f,e,o){var s=is(o,n,"ngTrueValue",i.ngTrueValue,!0),h=is(o,n,"ngFalseValue",i.ngFalseValue,!1);t.on("click",function(n){r.$setViewValue(t[0].checked,n&&n.type)});r.$render=function(){t[0].checked=r.$viewValue};r.$isEmpty=function(n){return!1===n};r.$formatters.push(function(n){return tt(n,s)});r.$parsers.push(function(n){return n?s:h})},hidden:s,button:s,submit:s,reset:s,file:s},rh=["$browser","$sniffer","$filter","$parse",function(n,t,i,r){return{restrict:"E",require:["?ngModel"],link:{pre:function(u,f,e,o){o[0]&&(ih[y(e.type)]||ih.text)(u,f,e,o[0],t,n,i,r)}}}}],pr="ng-valid",uh="ng-invalid",yi="ng-pristine",wu="ng-dirty",fh="ng-pending",gv=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate","$timeout","$rootScope","$q","$interpolate",function(n,t,f,h,c,l,a,v,y,p){var tt,d;this.$modelValue=this.$viewValue=Number.NaN;this.$$rawModelValue=i;this.$validators={};this.$asyncValidators={};this.$parsers=[];this.$formatters=[];this.$viewChangeListeners=[];this.$untouched=!0;this.$touched=!1;this.$pristine=!0;this.$dirty=!1;this.$valid=!0;this.$invalid=!1;this.$error={};this.$$success={};this.$pending=i;this.$name=p(f.name||"",!1)(n);var k=c(f.ngModel),it=k.assign,nt=k,rt=it,g=null,w=this;this.$$setOptions=function(n){if((w.$options=n)&&n.getterSetter){var t=c(f.ngModel+"()"),i=c(f.ngModel+"($$$p)");nt=function(n){var i=k(n);return o(i)&&(i=t(n)),i};rt=function(n){o(k(n))?i(n,{$$$p:w.$modelValue}):it(n,w.$modelValue)}}else if(!k.assign)throw pu("nonassign",f.ngModel,wt(h));};this.$render=s;this.$isEmpty=function(n){return e(n)||""===n||null===n||n!==n};tt=h.inheritedData("$formController")||yr;d=0;rs({ctrl:this,$element:h,set:function(n,t){n[t]=!0},unset:function(n,t){delete n[t]},parentForm:tt,$animate:l});this.$setPristine=function(){w.$dirty=!1;w.$pristine=!0;l.removeClass(h,wu);l.addClass(h,yi)};this.$setDirty=function(){w.$dirty=!0;w.$pristine=!1;l.removeClass(h,yi);l.addClass(h,wu);tt.$setDirty()};this.$setUntouched=function(){w.$touched=!1;w.$untouched=!0;l.setClass(h,"ng-untouched","ng-touched")};this.$setTouched=function(){w.$touched=!0;w.$untouched=!1;l.setClass(h,"ng-touched","ng-untouched")};this.$rollbackViewValue=function(){a.cancel(g);w.$viewValue=w.$$lastCommittedViewValue;w.$render()};this.$validate=function(){if(!b(w.$modelValue)||!isNaN(w.$modelValue)){var n=w.$$rawModelValue,t=w.$valid,r=w.$modelValue,u=w.$options&&w.$options.allowInvalid;w.$$runValidators(w.$error[w.$$parserName||"parse"]?!1:i,n,w.$$lastCommittedViewValue,function(f){u||t===f||(w.$modelValue=f?n:i,w.$modelValue!==r&&w.$$writeModelToScope())})}};this.$$runValidators=function(n,t,u,f){function l(){var n=!0;return r(w.$validators,function(i,r){var f=i(t,u);n=n&&f;e(r,f)}),n?!0:(r(w.$asyncValidators,function(n,t){e(t,null)}),!1)}function a(){var n=[],f=!0;r(w.$asyncValidators,function(r,s){var h=r(t,u);if(!h||!o(h.then))throw pu("$asyncValidators",h);e(s,i);n.push(h.then(function(){e(s,!0)},function(){f=!1;e(s,!1)}))});n.length?y.all(n).then(function(){h(f)},s):h(!0)}function e(n,t){c===d&&w.$setValidity(n,t)}function h(n){c===d&&f(n)}d++;var c=d;(function(n){var t=w.$$parserName||"parse";if(n===i)e(t,null);else if(e(t,n),!n)return r(w.$validators,function(n,t){e(t,null)}),r(w.$asyncValidators,function(n,t){e(t,null)}),!1;return!0})(n)?l()?a():h(!1):h(!1)};this.$commitViewValue=function(){var n=w.$viewValue;a.cancel(g);(w.$$lastCommittedViewValue!==n||""===n&&w.$$hasNativeValidators)&&(w.$$lastCommittedViewValue=n,w.$pristine&&this.$setDirty(),this.$$parseAndValidate())};this.$$parseAndValidate=function(){var t=w.$$lastCommittedViewValue,u=e(t)?i:!0,r,f,o;if(u)for(r=0;r<w.$parsers.length;r++)if(t=w.$parsers[r](t),e(t)){u=!1;break}b(w.$modelValue)&&isNaN(w.$modelValue)&&(w.$modelValue=nt(n));f=w.$modelValue;o=w.$options&&w.$options.allowInvalid;w.$$rawModelValue=t;o&&(w.$modelValue=t,w.$modelValue!==f&&w.$$writeModelToScope());w.$$runValidators(u,t,w.$$lastCommittedViewValue,function(n){o||(w.$modelValue=n?t:i,w.$modelValue!==f&&w.$$writeModelToScope())})};this.$$writeModelToScope=function(){rt(n,w.$modelValue);r(w.$viewChangeListeners,function(n){try{n()}catch(i){t(i)}})};this.$setViewValue=function(n,t){w.$viewValue=n;w.$options&&!w.$options.updateOnDefault||w.$$debounceViewValueCommit(t)};this.$$debounceViewValueCommit=function(t){var r=0,i=w.$options;i&&u(i.debounce)&&(i=i.debounce,b(i)?r=i:b(i[t])?r=i[t]:b(i["default"])&&(r=i["default"]));a.cancel(g);r?g=a(function(){w.$commitViewValue()},r):v.$$phase?w.$commitViewValue():n.$apply(function(){w.$commitViewValue()})};n.$watch(function(){var t=nt(n);if(t!==w.$modelValue){w.$modelValue=w.$$rawModelValue=t;for(var u=w.$formatters,f=u.length,r=t;f--;)r=u[f](r);w.$viewValue!==r&&(w.$viewValue=w.$$lastCommittedViewValue=r,w.$render(),w.$$runValidators(i,t,r,s))}return t})}],ny=["$rootScope",function(n){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:gv,priority:1,compile:function(t){return t.addClass(yi).addClass("ng-untouched").addClass(pr),{pre:function(n,t,i,r){var u=r[0],f=r[1]||yr;u.$$setOptions(r[2]&&r[2].$options);f.$addControl(u);i.$observe("name",function(n){u.$name!==n&&f.$$renameControl(u,n)});n.$on("$destroy",function(){f.$removeControl(u)})},post:function(t,i,r,u){var f=u[0];if(f.$options&&f.$options.updateOn)i.on(f.$options.updateOn,function(n){f.$$debounceViewValueCommit(n&&n.type)});i.on("blur",function(){f.$touched||(n.$$phase?t.$evalAsync(f.$setTouched):t.$apply(f.$setTouched))})}}}}}],ty=nt({restrict:"A",require:"ngModel",link:function(n,t,i,r){r.$viewChangeListeners.push(function(){n.$eval(i.ngChange)})}}),eh=function(){return{restrict:"A",require:"?ngModel",link:function(n,t,i,r){r&&(i.required=!0,r.$validators.required=function(n,t){return!i.required||!r.$isEmpty(t)},i.$observe("required",function(){r.$validate()}))}}},oh=function(){return{restrict:"A",require:"?ngModel",link:function(n,t,r,u){if(u){var f,o=r.ngPattern||r.pattern;r.$observe("pattern",function(n){if(a(n)&&0<n.length&&(n=new RegExp("^"+n+"$")),n&&!n.test)throw v("ngPattern")("noregexp",o,n,wt(t));f=n||i;u.$validate()});u.$validators.pattern=function(n){return u.$isEmpty(n)||e(f)||f.test(n)}}}}},sh=function(){return{restrict:"A",require:"?ngModel",link:function(n,t,i,r){if(r){var u=-1;i.$observe("maxlength",function(n){n=g(n);u=isNaN(n)?-1:n;r.$validate()});r.$validators.maxlength=function(n,t){return 0>u||r.$isEmpty(n)||t.length<=u}}}}},hh=function(){return{restrict:"A",require:"?ngModel",link:function(n,t,i,r){if(r){var u=0;i.$observe("minlength",function(n){u=g(n)||0;r.$validate()});r.$validators.minlength=function(n,t){return r.$isEmpty(t)||t.length>=u}}}}},iy=function(){return{restrict:"A",priority:100,require:"ngModel",link:function(n,t,u,f){var o=t.attr(u.$attr.ngList)||", ",s="false"!==u.ngTrim,c=s?p(o):o;f.$parsers.push(function(n){if(!e(n)){var t=[];return n&&r(n.split(c),function(n){n&&t.push(s?p(n):n)}),t}});f.$formatters.push(function(n){return h(n)?n.join(o):i});f.$isEmpty=function(n){return!n||!n.length}}}},ry=/^(true|false|\d+)$/,uy=function(){return{restrict:"A",priority:100,compile:function(n,t){return ry.test(t.ngValue)?function(n,t,i){i.$set("value",n.$eval(i.ngValue))}:function(n,t,i){n.$watch(i.ngValue,function(n){i.$set("value",n)})}}}},fy=function(){return{restrict:"A",controller:["$scope","$attrs",function(n,t){var r=this;this.$options=n.$eval(t.ngModelOptions);this.$options.updateOn!==i?(this.$options.updateOnDefault=!1,this.$options.updateOn=p(this.$options.updateOn.replace(dv,function(){return r.$options.updateOnDefault=!0," "}))):this.$options.updateOnDefault=!0}]}},ey=["$compile",function(n){return{restrict:"AC",compile:function(t){return n.$$addBindingClass(t),function(t,r,u){n.$$addBindingInfo(r,u.ngBind);r=r[0];t.$watch(u.ngBind,function(n){r.textContent=n===i?"":n})}}}}],oy=["$interpolate","$compile",function(n,t){return{compile:function(r){return t.$$addBindingClass(r),function(r,u,f){r=n(u.attr(f.$attr.ngBindTemplate));t.$$addBindingInfo(u,r.expressions);u=u[0];f.$observe("ngBindTemplate",function(n){u.textContent=n===i?"":n})}}}}],sy=["$sce","$parse","$compile",function(n,t,i){return{restrict:"A",compile:function(r,u){var f=t(u.ngBindHtml),e=t(u.ngBindHtml,function(n){return(n||"").toString()});return i.$$addBindingClass(r),function(t,r,u){i.$$addBindingInfo(r,u.ngBindHtml);t.$watch(e,function(){r.html(n.getTrustedHtml(f(t))||"")})}}}}],hy=lf("",!0),cy=lf("Odd",0),ly=lf("Even",1),ay=ui({compile:function(n,t){t.$set("ngCloak",i);n.removeClass("ng-cloak")}}),vy=[function(){return{restrict:"A",scope:!0,controller:"@",priority:500}}],ch={},yy={blur:!0,focus:!0};r("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),function(n){var t=bt("ng-"+n);ch[t]=["$parse","$rootScope",function(i,r){return{restrict:"A",compile:function(u,f){var e=i(f[t],null,!0);return function(t,i){i.on(n,function(i){var u=function(){e(t,{$event:i})};yy[n]&&r.$$phase?t.$evalAsync(u):t.$apply(u)})}}}}]});var py=["$animate",function(n){return{multiElement:!0,transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link:function(i,r,u,f,e){var h,s,o;i.$watch(u.ngIf,function(i){i?s||e(function(i,f){s=f;i[i.length++]=t.createComment(" end ngIf: "+u.ngIf+" ");h={clone:i};n.enter(i,r.parent(),r)}):(o&&(o.remove(),o=null),s&&(s.$destroy(),s=null),h&&(o=dr(h.clone),n.leave(o).then(function(){o=null}),h=null))})}}}],wy=["$templateRequest","$anchorScroll","$animate","$sce",function(n,t,i,r){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:rt.noop,compile:function(f,e){var s=e.ngInclude||e.src,h=e.onload||"",o=e.autoscroll;return function(f,e,c,l,a){var w=0,v,y,p,b=function(){y&&(y.remove(),y=null);v&&(v.$destroy(),v=null);p&&(i.leave(p).then(function(){y=null}),y=p,p=null)};f.$watch(r.parseAsResourceUrl(s),function(r){var c=function(){u(o)&&(!o||f.$eval(o))&&t()},s=++w;r?(n(r,!0).then(function(n){if(s===w){var t=f.$new();l.template=n;n=a(t,function(n){b();i.enter(n,null,e).then(c)});v=t;p=n;v.$emit("$includeContentLoaded",r);f.$eval(h)}},function(){s===w&&(b(),f.$emit("$includeContentError",r))}),f.$emit("$includeContentRequested",r)):(b(),l.template=null)})}}}}],by=["$compile",function(n){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(i,r,u,f){/SVG/.test(r[0].toString())?(r.empty(),n(le(f.template,t).childNodes)(i,function(n){r.append(n)},{futureParentElement:r})):(r.html(f.template),n(r.contents())(i))}}}],ky=ui({priority:450,compile:function(){return{pre:function(n,t,i){n.$eval(i.ngInit)}}}}),dy=ui({terminal:!0,priority:1e3}),gy=["$locale","$interpolate",function(n,t){var i=/{}/g,u=/^when(Minus)?(.+)$/;return{restrict:"EA",link:function(f,e,o){function w(n){e.text(n||"")}var c=o.count,l=o.$attr.when&&e.attr(o.$attr.when),a=o.offset||0,s=f.$eval(l)||{},v={},l=t.startSymbol(),b=t.endSymbol(),k=l+c+"-"+a+b,p=rt.noop,h;r(o,function(n,t){var i=u.exec(t);i&&(i=(i[1]?"-":"")+y(i[2]),s[i]=e.attr(o.$attr[t]))});r(s,function(n,r){v[r]=t(n.replace(i,k))});f.$watch(c,function(t){t=parseFloat(t);var i=isNaN(t);i||t in s||(t=n.pluralCat(t-a));t===h||i&&isNaN(h)||(p(),p=f.$watch(v[t],w),h=t)})}}}],np=["$parse","$animate",function(n,u){var e=v("ngRepeat"),o=function(n,t,i,r,u,f,e){n[i]=r;u&&(n[u]=f);n.$index=t;n.$first=0===t;n.$last=t===e-1;n.$middle=!(n.$first||n.$last);n.$odd=!(n.$even=0==(t&1))};return{restrict:"A",multiElement:!0,transclude:"element",priority:1e3,terminal:!0,$$tlb:!0,compile:function(s,h){var y=h.ngRepeat,tt=t.createComment(" end ngRepeat: "+y+" "),c=y.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/),p,a,w,b,g,nt,v;if(!c)throw e("iexp",y);var k=c[1],rt=c[2],l=c[3],d=c[4],c=k.match(/^(?:(\s*[\$\w]+)|\(\s*([\$\w]+)\s*,\s*([\$\w]+)\s*\))$/);if(!c)throw e("iidexp",k);if(p=c[3]||c[1],a=c[2],l&&(!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(l)||/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent)$/.test(l)))throw e("badident",l);return v={$id:hi},d?w=n(d):(g=function(n,t){return hi(t)},nt=function(n){return n}),function(n,t,s,h,c){w&&(b=function(t,i,r){return a&&(v[a]=t),v[p]=i,v.$index=r,w(n,v)});var k=it();n.$watchCollection(rt,function(s){var h,st,ht=t[0],ut,ct=it(),et,ft,ot,w,d,v,rt;if(l&&(n[l]=s),pi(s))d=s,st=b||g;else{st=b||nt;d=[];for(rt in s)s.hasOwnProperty(rt)&&"$"!=rt.charAt(0)&&d.push(rt);d.sort()}for(et=d.length,rt=Array(et),h=0;h<et;h++)if(ft=s===d?h:d[h],ot=s[ft],w=st(ft,ot,h),k[w])v=k[w],delete k[w],ct[w]=v,rt[h]=v;else{if(ct[w])throw r(rt,function(n){n&&n.scope&&(k[n.id]=n)}),e("dupes",y,w,ot);rt[h]={id:w,scope:i,clone:i};ct[w]=!0}for(ut in k){if(v=k[ut],w=dr(v.clone),u.leave(w),w[0].parentNode)for(h=0,st=w.length;h<st;h++)w[h].$$NG_REMOVED=!0;v.scope.$destroy()}for(h=0;h<et;h++)if(ft=s===d?h:d[h],ot=s[ft],v=rt[h],v.scope){ut=ht;do ut=ut.nextSibling;while(ut&&ut.$$NG_REMOVED);v.clone[0]!=ut&&u.move(dr(v.clone),null,f(ht));ht=v.clone[v.clone.length-1];o(v.scope,h,p,ot,a,ft,et)}else c(function(n,t){v.scope=t;var i=tt.cloneNode(!1);n[n.length++]=i;u.enter(n,null,f(ht));ht=i;v.clone=n;ct[v.id]=v;o(v.scope,h,p,ot,a,ft,et)});k=ct})}}}}],tp=["$animate",function(n){return{restrict:"A",multiElement:!0,link:function(t,i,r){t.$watch(r.ngShow,function(t){n[t?"removeClass":"addClass"](i,"ng-hide",{tempClasses:"ng-hide-animate"})})}}}],ip=["$animate",function(n){return{restrict:"A",multiElement:!0,link:function(t,i,r){t.$watch(r.ngHide,function(t){n[t?"addClass":"removeClass"](i,"ng-hide",{tempClasses:"ng-hide-animate"})})}}}],rp=ui(function(n,t,i){n.$watch(i.ngStyle,function(n,i){i&&n!==i&&r(i,function(n,i){t.css(i,"")});n&&t.css(n)},!0)}),up=["$animate",function(n){return{restrict:"EA",require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(i,u,f,e){var c=[],h=[],o=[],s=[],l=function(n,t){return function(){n.splice(t,1)}};i.$watch(f.ngSwitch||f.on,function(i){for(var a,u=0,f=o.length;u<f;++u)n.cancel(o[u]);for(u=o.length=0,f=s.length;u<f;++u)a=dr(h[u].clone),s[u].$destroy(),(o[u]=n.leave(a)).then(l(o,u));h.length=0;s.length=0;(c=e.cases["!"+i]||e.cases["?"])&&r(c,function(i){i.transclude(function(r,u){s.push(u);var f=i.element;r[r.length++]=t.createComment(" end ngSwitchWhen: ");h.push({clone:r});n.enter(r,f.parent(),f)})})})}}}],fp=ui({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(n,t,i,r,u){r.cases["!"+i.ngSwitchWhen]=r.cases["!"+i.ngSwitchWhen]||[];r.cases["!"+i.ngSwitchWhen].push({transclude:u,element:t})}}),ep=ui({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(n,t,i,r,u){r.cases["?"]=r.cases["?"]||[];r.cases["?"].push({transclude:u,element:t})}}),op=ui({restrict:"EAC",link:function(n,t,i,r,u){if(!u)throw v("ngTransclude")("orphan",wt(t));u(function(n){t.empty();t.append(n)})}}),sp=["$templateCache",function(n){return{restrict:"E",terminal:!0,compile:function(t,i){"text/ng-template"==i.type&&n.put(i.id,t[0].text)}}}],hp=v("ngOptions"),cp=nt({restrict:"A",terminal:!0}),lp=["$compile","$parse",function(n,o){var c=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+group\s+by\s+([\s\S]+?))?\s+for\s+(?:([\$\w][\$\w]*)|(?:\(\s*([\$\w][\$\w]*)\s*,\s*([\$\w][\$\w]*)\s*\)))\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?$/,l={$setViewValue:s};return{restrict:"E",require:["select","?ngModel"],controller:["$element","$scope","$attrs",function(n,t,i){var r=this,f={},e=l,u;r.databound=i.ngModel;r.init=function(n,t,i){e=n;u=i};r.addOption=function(t,i){si(t,'"option value"');f[t]=!0;e.$viewValue==t&&(n.val(t),u.parent()&&u.remove());i&&i[0].hasAttribute("selected")&&(i[0].selected=!0)};r.removeOption=function(n){this.hasOption(n)&&(delete f[n],e.$viewValue===n&&this.renderUnknownOption(n))};r.renderUnknownOption=function(t){t="? "+hi(t)+" ?";u.val(t);n.prepend(u);n.val(t);u.prop("selected",!0)};r.hasOption=function(n){return f.hasOwnProperty(n)};t.$on("$destroy",function(){r.renderUnknownOption=s})}],link:function(s,l,a,v){function ut(n,t,i,r){i.$render=function(){var n=i.$viewValue;r.hasOption(n)?(b.parent()&&b.remove(),t.val(n),""===n&&g.prop("selected",!0)):e(n)&&g?t.val(""):r.renderUnknownOption(n)};t.on("change",function(){n.$apply(function(){b.parent()&&b.remove();i.$setViewValue(t.val())})})}function ft(n,t,i){var f;i.$render=function(){var n=new ir(i.$viewValue);r(t.find("option"),function(t){t.selected=u(n.get(t.value))})};n.$watch(function(){tt(f,i.$viewValue)||(f=ht(i.$viewValue),i.$render())});t.on("change",function(){n.$apply(function(){var n=[];r(t.find("option"),function(t){t.selected&&n.push(t.value)});i.$setViewValue(n)})})}function et(t,f,e){function a(n,i,r){return ut[ct]=r,k&&(ut[k]=i),n(t,ut)}function at(n){var t,i;if(p)if(l&&h(n))for(t=new ir([]),i=0;i<n.length;i++)t.put(a(l,null,n[i]),!0);else t=new ir(n);else l&&(n=a(l,null,n));return function(i,r){var f;return f=l?l:v?v:ht,p?u(t.remove(a(f,i,r))):n===a(f,i,r)}}function ft(){nt||(t.$$postDigest(et),nt=!0)}function b(n,t,i){n[t]=n[t]||0;n[t]+=i?1:-1}function et(){var ht,yt,n,v,d,c,h,ct,s,ft,pt,i,et,o,lt,wt;for(nt=!1,ht={"":[]},yt=[""],d=e.$viewValue,c=tt(t)||[],ct=k?Object.keys(c).sort():c,et={},h=at(d),o=!1,rt={},i=0;pt=ct.length,i<pt;i++)(s=i,k&&(s=ct[i],"$"===s.charAt(0)))||(ft=c[s],n=a(vt,s,ft)||"",(v=ht[n])||(v=ht[n]=[],yt.push(n)),n=h(s,ft),o=o||n,ft=a(st,s,ft),ft=u(ft)?ft:"",wt=l?l(t,ut):k?ct[i]:i,l&&(rt[wt]=s),v.push({id:wt,label:ft,selected:n}));for(p||(y||null===d?ht[""].unshift({id:"",label:"",selected:!o}):o||ht[""].unshift({id:"?",label:"",selected:!0})),s=0,ct=yt.length;s<ct;s++){for(n=yt[s],v=ht[n],g.length<=s?(d={element:ot.clone().attr("label",n),label:v.label},c=[d],g.push(c),f.append(d.element)):(c=g[s],d=c[0],d.label!=n&&d.element.attr("label",d.label=n)),o=null,i=0,pt=v.length;i<pt;i++)n=v[i],(h=c[i+1])?(o=h.element,h.label!==n.label&&(b(et,h.label,!1),b(et,n.label,!0),o.text(h.label=n.label),o.prop("label",h.label)),h.id!==n.id&&o.val(h.id=n.id),o[0].selected!==n.selected&&(o.prop("selected",h.selected=n.selected),li&&o.prop("selected",h.selected))):(""===n.id&&y?lt=y:(lt=it.clone()).val(n.id).prop("selected",n.selected).attr("selected",n.selected).prop("label",n.label).text(n.label),c.push(h={element:lt,label:n.label,id:n.id,selected:n.selected}),b(et,n.label,!0),o?o.after(lt):d.element.append(lt),o=lt);for(i++;c.length>i;)n=c.pop(),b(et,n.label,!1),n.element.remove()}for(;g.length>s;){for(v=g.pop(),i=1;i<v.length;++i)b(et,v[i].label,!1);v[0].element.remove()}r(et,function(n,t){0<n?w.addOption(t):0>n&&w.removeOption(t)})}var s;if(!(s=d.match(c)))throw hp("iexp",d,wt(f));var st=o(s[2]||s[1]),ct=s[4]||s[6],lt=/ as /.test(s[0])&&s[1],v=lt?o(lt):null,k=s[5],vt=o(s[3]||""),ht=o(s[2]?s[1]:ct),tt=o(s[7]),l=s[8]?o(s[8]):null,rt={},g=[[{element:f,label:""}]],ut={};y&&(n(y)(t),y.removeClass("ng-scope"),y.remove());f.empty();f.on("change",function(){t.$apply(function(){var o=tt(t)||[],u,n;p?(u=[],r(f.val(),function(n){n=l?rt[n]:n;u.push("?"===n?i:""===n?null:a(v?v:ht,n,o[n]))})):(n=l?rt[f.val()]:f.val(),u="?"===n?i:""===n?null:a(v?v:ht,n,o[n]));e.$setViewValue(u);et()})});e.$render=et;t.$watchCollection(tt,ft);t.$watchCollection(function(){var i=tt(t),r,n,u;if(i&&h(i))for(r=Array(i.length),n=0,u=i.length;n<u;n++)r[n]=a(st,n,i[n]);else if(i)for(n in r={},i)i.hasOwnProperty(n)&&(r[n]=a(st,n,i[n]));return r},ft);p&&t.$watchCollection(function(){return e.$modelValue},ft)}var w,k,rt;if(v[1]){w=v[0];v=v[1];var p=a.multiple,d=a.ngOptions,y=!1,g,nt=!1,it=f(t.createElement("option")),ot=f(t.createElement("optgroup")),b=it.clone();for(a=0,k=l.children(),rt=k.length;a<rt;a++)if(""===k[a].value){g=y=k.eq(a);break}w.init(v,y,b);p&&(v.$isEmpty=function(n){return!n||0===n.length});d?et(s,l,v):p?ft(s,l,v):ut(s,l,v,w)}}}}],ap=["$interpolate",function(n){var t={addOption:s,removeOption:s};return{restrict:"E",priority:100,compile:function(i,r){if(e(r.value)){var u=n(i.text(),!0);u||r.$set("value",i.text())}return function(n,i,r){var e=i.parent(),f=e.data("$selectController")||e.parent().data("$selectController");f&&f.databound||(f=t);u?n.$watch(u,function(n,t){r.$set("value",n);t!==n&&f.removeOption(t);f.addOption(n,i)}):f.addOption(r.value,i);i.on("$destroy",function(){f.removeOption(r.value)})}}}}],vp=nt({restrict:"E",terminal:!1});n.angular.bootstrap?console.log("WARNING: Tried to load angular more than once."):(dh(),nc(rt),f(t).ready(function(){wh(t,oe)}))}(window,document);window.angular.$$csp()||window.angular.element(document).find("head").prepend('<style type="text/css">@charset "UTF-8";[ng\\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak,.ng-hide:not(.ng-hide-animate){display:none !important;}ng\\:form{display:block;}<\/style>'),function(n,t,i){"use strict";function k(n){var i=[];return o(i,t.noop).chars(n),i.join("")}function r(n){var i={},t;for(n=n.split(","),t=0;t<n.length;t++)i[n[t]]=!0;return i}function d(n,i){function k(n,r,e,s){if(r=t.lowercase(r),v[r])for(;u.last()&&y[u.last()];)o("",u.last());a[r]&&u.last()==r&&o("",r);(s=l[r]||!!s)||u.push(r);var h={};e.replace(nt,function(n,t,i,r,u){h[t]=f(i||r||u||"")});i.start&&i.start(r,h,s)}function o(n,r){var f=0,e;if(r=t.lowercase(r))for(f=u.length-1;0<=f&&u[f]!=r;f--);if(0<=f){for(e=u.length-1;e>=f;e--)i.end&&i.end(u[e]);u.length=f}}"string"!=typeof n&&(n=null===n||"undefined"==typeof n?"":""+n);var r,e,u=[],b=n,w;for(u.last=function(){return u[u.length-1]};n;){if(w="",e=!0,u.last()&&p[u.last()]?(n=n.replace(new RegExp("(.*)<\\s*\\/\\s*"+u.last()+"[^>]*>","i"),function(n,t){return t=t.replace(rt,"$1").replace(ut,"$1"),i.chars&&i.chars(f(t)),""}),o("",u.last())):(0===n.indexOf("<!--")?(r=n.indexOf("--",4),0<=r&&n.lastIndexOf("-->",r)===r&&(i.comment&&i.comment(n.substring(4,r)),n=n.substring(r+3),e=!1)):c.test(n)?(r=n.match(c))&&(n=n.replace(r[0],""),e=!1):it.test(n)?(r=n.match(h))&&(n=n.substring(r[0].length),r[0].replace(h,o),e=!1):tt.test(n)&&((r=n.match(s))?(r[4]&&(n=n.substring(r[0].length),r[0].replace(s,k)),e=!1):(w+="<",n=n.substring(1))),e&&(r=n.indexOf("<"),w+=0>r?n:n.substring(0,r),n=0>r?"":n.substring(r),i.chars&&i.chars(f(w)))),n==b)throw g("badparse",n);b=n}o()}function f(n){var t,i;return n?(t=st.exec(n),n=t[1],i=t[3],(t=t[2])&&(u.innerHTML=t.replace(/</g,"&lt;"),t="textContent"in u?u.textContent:u.innerText),n+t+i):""}function e(n){return n.replace(/&/g,"&amp;").replace(ft,function(n){var t=n.charCodeAt(0);return n=n.charCodeAt(1),"&#"+(1024*(t-55296)+(n-56320)+65536)+";"}).replace(et,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}function o(n,i){var u=!1,r=t.bind(n,n.push);return{start:function(n,f,o){n=t.lowercase(n);!u&&p[n]&&(u=n);u||!0!==w[n]||(r("<"),r(n),t.forEach(f,function(u,f){var o=t.lowercase(f),s="img"===n&&"src"===o||"background"===o;!0===ot[o]&&(!0!==b[o]||i(u,s))&&(r(" "),r(f),r('="'),r(e(u)),r('"'))}),r(o?"/>":">"))},end:function(n){n=t.lowercase(n);u||!0!==w[n]||(r("<\/"),r(n),r(">"));n==u&&(u=!1)},chars:function(n){u||r(e(n))}}}var g=t.$$minErr("$sanitize"),s=/^<((?:[a-zA-Z])[\w:-]*)((?:\s+[\w:-]+(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)\s*(>?)/,h=/^<\/\s*([\w:-]+)[^>]*>/,nt=/([\w:-]+)(?:\s*=\s*(?:(?:"((?:[^"])*)")|(?:'((?:[^'])*)')|([^>\s]+)))?/g,tt=/^</,it=/^<\//,rt=/\x3c!--(.*?)--\x3e/g,c=/<!DOCTYPE([^>]*?)>/i,ut=/<!\[CDATA\[(.*?)]]\x3e/g,ft=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,et=/([^\#-~| |!])/g,l=r("area,br,col,hr,img,wbr");n=r("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr");i=r("rp,rt");var a=t.extend({},i,n),v=t.extend({},n,r("address,article,aside,blockquote,caption,center,del,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,map,menu,nav,ol,pre,script,section,table,ul")),y=t.extend({},i,r("a,abbr,acronym,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,q,ruby,rp,rt,s,samp,small,span,strike,strong,sub,sup,time,tt,u,var"));n=r("animate,animateColor,animateMotion,animateTransform,circle,defs,desc,ellipse,font-face,font-face-name,font-face-src,g,glyph,hkern,image,linearGradient,line,marker,metadata,missing-glyph,mpath,path,polygon,polyline,radialGradient,rect,set,stop,svg,switch,text,title,tspan,use");var p=r("script,style"),w=t.extend({},l,v,y,a,n),b=r("background,cite,href,longdesc,src,usemap,xlink:href");n=r("abbr,align,alt,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,coords,dir,face,headers,height,hreflang,hspace,ismap,lang,language,nohref,nowrap,rel,rev,rows,rowspan,rules,scope,scrolling,shape,size,span,start,summary,target,title,type,valign,value,vspace,width");i=r("accent-height,accumulate,additive,alphabetic,arabic-form,ascent,attributeName,attributeType,baseProfile,bbox,begin,by,calcMode,cap-height,class,color,color-rendering,content,cx,cy,d,dx,dy,descent,display,dur,end,fill,fill-rule,font-family,font-size,font-stretch,font-style,font-variant,font-weight,from,fx,fy,g1,g2,glyph-name,gradientUnits,hanging,height,horiz-adv-x,horiz-origin-x,ideographic,k,keyPoints,keySplines,keyTimes,lang,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mathematical,max,min,offset,opacity,orient,origin,overline-position,overline-thickness,panose-1,path,pathLength,points,preserveAspectRatio,r,refX,refY,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,rotate,rx,ry,slope,stemh,stemv,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,systemLanguage,target,text-anchor,to,transform,type,u1,u2,underline-position,underline-thickness,unicode,unicode-range,units-per-em,values,version,viewBox,visibility,width,widths,x,x-height,x1,x2,xlink:actuate,xlink:arcrole,xlink:role,xlink:show,xlink:title,xlink:type,xml:base,xml:lang,xml:space,xmlns,xmlns:xlink,y,y1,y2,zoomAndPan");var ot=t.extend({},b,i,n),u=document.createElement("pre"),st=/^(\s*)([\s\S]*?)(\s*)$/;t.module("ngSanitize",[]).provider("$sanitize",function(){this.$get=["$$sanitizeUri",function(n){return function(t){var i=[];return d(t,o(i,function(t,i){return!/^unsafe/.test(n(t,i))})),i.join("")}}]});t.module("ngSanitize").filter("linky",["$sanitize",function(n){var i=/((ftp|https?):\/\/|(www\.)|(mailto:)?[A-Za-z0-9._%+-]+@)\S*[^\s.;,(){}<>"\u201d\u2019]/,r=/^mailto:/;return function(u,f){function c(n){n&&o.push(k(n))}function a(n,i){o.push("<a ");t.isDefined(f)&&o.push('target="',f,'" ');o.push('href="',n.replace(/"/g,"&quot;"),'">');c(i);o.push("<\/a>")}if(!u)return u;for(var e,s=u,o=[],h,l;e=s.match(i);)h=e[0],e[2]||e[4]||(h=(e[3]?"http://":"mailto:")+h),l=e.index,c(s.substr(0,l)),a(h,e[0].replace(r,"")),s=s.substring(l+e[0].length);return c(s),n(o.join(""))}}])}(window,window.angular),function(n,t){"use strict";t.module("ngMessages",[]).directive("ngMessages",["$compile","$animate","$templateRequest",function(n,i,r){return{restrict:"AE",controller:function(){this.$renderNgMessageClasses=t.noop;var n=[];this.registerMessage=function(t,i){for(var u,r=0;r<n.length;r++)if(n[r].type==i.type){t!=r&&(u=n[t],n[t]=n[r],t<n.length?n[r]=u:n.splice(0,r));return}n.splice(t,0,i)};this.renderMessages=function(i,r){i=i||{};var u;t.forEach(n,function(n){var t;(t=!u||r)&&(t=i[n.type],t=null!==t&&!1!==t&&t);t?(n.attach(),u=!0):n.detach()});this.renderElementClasses(u)}},require:"ngMessages",link:function(u,f,e,o){o.renderElementClasses=function(n){n?i.setClass(f,"ng-active","ng-inactive"):i.setClass(f,"ng-inactive","ng-active")};var s=t.isString(e.ngMessagesMultiple)||t.isString(e.multiple),h;u.$watchCollection(e.ngMessages||e["for"],function(n){h=n;o.renderMessages(n,s)});(e=e.ngMessagesInclude||e.include)&&r(e).then(function(i){var r;i=t.element("<div/>").html(i);t.forEach(i.children(),function(i){i=t.element(i);r?r.after(i):f.prepend(i);r=i;n(i)(u)});o.renderMessages(h,s)})}}}]).directive("ngMessage",["$animate",function(n){return{require:"^ngMessages",transclude:"element",terminal:!0,restrict:"AE",link:function(t,i,r,u,f){for(var o,h,e,c=i[0],l=c.parentNode,s=0,a=0;s<l.childNodes.length;s++)if(o=l.childNodes[s],8==o.nodeType&&0<=o.nodeValue.indexOf("ngMessage")){if(o===c){h=a;break}a++}u.registerMessage(h,{type:r.ngMessage||r.when,attach:function(){e||f(t,function(t){n.enter(t,null,i);e=t})},detach:function(){e&&(n.leave(e),e=null)}})}}}])}(window,window.angular),function(n,t,i){"use strict";function e(n){return u(n)?n:Object.keys(n).map(function(t){return n[t]})}function k(n){return n===null}function l(n,t){var r=Object.keys(n);return r.map(function(r){return t[r]!==i&&t[r]==n[r]}).indexOf(!1)==-1}function a(n,t){if(t==="")return n;var i=n.indexOf(t.charAt(0));return i===-1?!1:a(n.substr(i+1),t.substr(1))}function d(n,t,i){var r=0;return n.filter(function(n){var u=y(i)?r<t&&i(n):r<t;return r=u?r+1:r,u})}function h(n,t,i){return i.round(n*i.pow(10,t))/i.pow(10,t)}function g(n,t,i){t=t||[];var f=Object.keys(n);return f.forEach(function(f){var e,o;r(n[f])&&!u(n[f])?(e=i?i+"."+f:i,g(n[f],t,e||f)):(o=i?i+"."+f:f,t.push(o))}),t}function nt(n){return n&&n.$evalAsync&&n.$watch}function tt(){return function(n,t){return n>t}}function it(){return function(n,t){return n>=t}}function rt(){return function(n,t){return n<t}}function ut(){return function(n,t){return n<=t}}function ft(){return function(n,t){return n==t}}function et(){return function(n,t){return n!=t}}function ot(){return function(n,t){return n===t}}function st(){return function(n,t){return n!==t}}function ht(n){return function(t,i){return(t=r(t)?e(t):t,!u(t)||f(i))?!1:t.some(function(t){return r(t)||p(i)?n(i)(t):t===i})}}function v(n,t){return(t=t||0,t>=n.length)?n:u(n[t])?v(n.slice(0,t).concat(n[t],n.slice(t+1)),t):v(n,t+1)}function ct(n){return function(t,i){function h(n,t){return f(t)?!1:n.some(function(n){return c(n,t)})}if(t=r(t)?e(t):t,!u(t))return t;var o=[],s=n(i);return f(i)?t.filter(function(n,t,i){return i.indexOf(n)===t}):t.filter(function(n){var t=s(n);return h(o,t)?!1:(o.push(t),!0)})}}function lt(n,t,i){return t?n+i+lt(n,--t,i):n}var y=t.isDefined,f=t.isUndefined,p=t.isFunction,o=t.isString,s=t.isNumber,r=t.isObject,u=t.isArray,w=t.forEach,b=t.extend,at=t.copy,c=t.equals;String.prototype.contains||(String.prototype.contains=function(){return String.prototype.indexOf.apply(this,arguments)!==-1});t.module("a8m.angular",[]).filter("isUndefined",function(){return function(n){return t.isUndefined(n)}}).filter("isDefined",function(){return function(n){return t.isDefined(n)}}).filter("isFunction",function(){return function(n){return t.isFunction(n)}}).filter("isString",function(){return function(n){return t.isString(n)}}).filter("isNumber",function(){return function(n){return t.isNumber(n)}}).filter("isArray",function(){return function(n){return t.isArray(n)}}).filter("isObject",function(){return function(n){return t.isObject(n)}}).filter("isEqual",function(){return function(n,i){return t.equals(n,i)}});t.module("a8m.conditions",[]).filter({isGreaterThan:tt,">":tt,isGreaterThanOrEqualTo:it,">=":it,isLessThan:rt,"<":rt,isLessThanOrEqualTo:ut,"<=":ut,isEqualTo:ft,"==":ft,isNotEqualTo:et,"!=":et,isIdenticalTo:ot,"===":ot,isNotIdenticalTo:st,"!==":st});t.module("a8m.is-null",[]).filter("isNull",function(){return function(n){return k(n)}});t.module("a8m.after-where",[]).filter("afterWhere",function(){return function(n,t){if(n=r(n)?e(n):n,!u(n)||f(t))return n;var i=n.map(function(n){return l(t,n)}).indexOf(!0);return n.slice(i===-1?0:i)}});t.module("a8m.after",[]).filter("after",function(){return function(n,t){return n=r(n)?e(n):n,u(n)?n.slice(t):n}});t.module("a8m.before-where",[]).filter("beforeWhere",function(){return function(n,t){if(n=r(n)?e(n):n,!u(n)||f(t))return n;var i=n.map(function(n){return l(t,n)}).indexOf(!0);return n.slice(0,i===-1?n.length:++i)}});t.module("a8m.before",[]).filter("before",function(){return function(n,t){return n=r(n)?e(n):n,u(n)?n.slice(0,t?--t:t):n}});t.module("a8m.chunk-by",["a8m.filter-watcher"]).filter("chunkBy",["filterWatcher",function(n){return function(t,i,r){function e(n,t){for(var i=[];n--;)i[n]=t;return i}function o(n,t,i){return u(n)?n.map(function(n,r,u){return r=r*t,n=u.slice(r,r+t),!f(i)&&n.length<t?n.concat(e(t-n.length,i)):n}).slice(0,Math.ceil(n.length/t)):n}return n.isMemoized("chunkBy",arguments)||n.memoize("chunkBy",arguments,this,o(t,i,r))}}]);t.module("a8m.concat",[]).filter("concat",[function(){return function(n,t){if(f(t))return n;if(u(n))return r(t)?n.concat(e(t)):n.concat(t);if(r(n)){var i=e(n);return r(t)?i.concat(e(t)):i.concat(t)}return n}}]);t.module("a8m.contains",[]).filter({contains:["$parse",ht],some:["$parse",ht]});t.module("a8m.count-by",[]).filter("countBy",["$parse",function(n){return function(t,i){var o={},h=n(i),s;return(t=r(t)?e(t):t,!u(t)||f(i))?t:(t.forEach(function(n){s=h(n);o[s]||(o[s]=0);o[s]++}),o)}}]);t.module("a8m.defaults",[]).filter("defaults",["$parse",function(n){return function(t,i){if(t=r(t)?e(t):t,!u(t)||!r(i))return t;var o=g(i);return t.forEach(function(t){o.forEach(function(r){var u=n(r),e=u.assign;f(u(t))&&e(t,u(i))})}),t}}]);t.module("a8m.every",[]).filter("every",["$parse",function(n){return function(t,i){return(t=r(t)?e(t):t,!u(t)||f(i))?!0:t.every(function(t){return r(t)||p(i)?n(i)(t):t===i})}}]);t.module("a8m.filter-by",[]).filter("filterBy",["$parse",function(n){return function(t,h,c){var l;return(c=o(c)||s(c)?String(c).toLowerCase():i,t=r(t)?e(t):t,!u(t)||f(c))?t:t.filter(function(t){return h.some(function(i){if(~i.indexOf("+")){var r=i.replace(new RegExp("\\s","g"),"").split("+");l=r.reduce(function(i,r,u){return u===1?n(i)(t)+" "+n(r)(t):i+" "+n(r)(t)})}else l=n(i)(t);return o(l)||s(l)?String(l).toLowerCase().contains(c):!1})})}}]);t.module("a8m.first",[]).filter("first",["$parse",function(n){return function(t){var h,o,f;return(t=r(t)?e(t):t,!u(t))?t:(f=Array.prototype.slice.call(arguments,1),h=s(f[0])?f[0]:1,o=s(f[0])?s(f[1])?i:f[1]:f[0],f.length?d(t,h,o?n(o):o):t[0])}}]);t.module("a8m.flatten",[]).filter("flatten",function(){return function(n,t){return(t=t||!1,n=r(n)?e(n):n,!u(n))?n:t?[].concat.apply([],n):v(n,0)}});t.module("a8m.fuzzy-by",[]).filter("fuzzyBy",["$parse",function(n){return function(t,i,s,h){var l=h||!1,c,v;return(t=r(t)?e(t):t,!u(t)||f(i)||f(s))?t:(v=n(i),t.filter(function(n){return(c=v(n),!o(c))?!1:(c=l?c:c.toLowerCase(),s=l?s:s.toLowerCase(),a(c,s)!==!1)}))}}]);t.module("a8m.fuzzy",[]).filter("fuzzy",function(){return function(n,t,i){function h(n,t){var u=Object.keys(n),i,r;return 0<u.filter(function(u){return(i=n[u],r)?!0:o(i)?(i=s?i:i.toLowerCase(),r=a(i,t)!==!1):!1}).length}var s=i||!1;return(n=r(n)?e(n):n,!u(n)||f(t))?n:(t=s?t:t.toLowerCase(),n.filter(function(n){return o(n)?(n=s?n:n.toLowerCase(),a(n,t)!==!1):r(n)?h(n,t):!1}))}});t.module("a8m.group-by",["a8m.filter-watcher"]).filter("groupBy",["$parse","filterWatcher",function(n,t){return function(i,u){function e(n,t){var i={},r;return w(n,function(n){r=t(n);i[r]||(i[r]=[]);i[r].push(n)}),i}return!r(i)||f(u)?i:t.isMemoized("groupBy",arguments)||t.memoize("groupBy",arguments,this,e(i,n(u)))}}]);t.module("a8m.is-empty",[]).filter("isEmpty",function(){return function(n){return r(n)?!e(n).length:!n.length}});t.module("a8m.join",[]).filter("join",function(){return function(n,t){return f(n)||!u(n)?n:(f(t)&&(t=" "),n.join(t))}});t.module("a8m.last",[]).filter("last",["$parse",function(n){return function(t){var c,h,o,f=at(t);return(f=r(f)?e(f):f,!u(f))?f:(o=Array.prototype.slice.call(arguments,1),c=s(o[0])?o[0]:1,h=s(o[0])?s(o[1])?i:o[1]:o[0],o.length?d(f.reverse(),c,h?n(h):h).reverse():f[f.length-1])}}]);t.module("a8m.map",[]).filter("map",["$parse",function(n){return function(t,i){return(t=r(t)?e(t):t,!u(t)||f(i))?t:t.map(function(t){return n(i)(t)})}}]);t.module("a8m.omit",[]).filter("omit",["$parse",function(n){return function(t,i){return(t=r(t)?e(t):t,!u(t)||f(i))?t:t.filter(function(t){return!n(i)(t)})}}]);t.module("a8m.pick",[]).filter("pick",["$parse",function(n){return function(t,i){return(t=r(t)?e(t):t,!u(t)||f(i))?t:t.filter(function(t){return n(i)(t)})}}]);t.module("a8m.range",[]).filter("range",function(){return function(n,t){for(var i=0;i<parseInt(t);i++)n.push(i);return n}});t.module("a8m.remove-with",[]).filter("removeWith",function(){return function(n,t){return f(t)?n:(n=r(n)?e(n):n,n.filter(function(n){return!l(t,n)}))}});t.module("a8m.remove",[]).filter("remove",function(){return function(n){n=r(n)?e(n):n;var t=Array.prototype.slice.call(arguments,1);return u(n)?n.filter(function(n){return!t.some(function(t){return c(t,n)})}):n}});t.module("a8m.reverse",[]).filter("reverse",[function(){return function(n){return(n=r(n)?e(n):n,o(n))?n.split("").reverse().join(""):u(n)?n.slice().reverse():n}}]);t.module("a8m.search-field",[]).filter("searchField",["$parse",function(n){return function(t){var f,o,i;return(t=r(t)?e(t):t,i=Array.prototype.slice.call(arguments,1),!u(t)||!i.length)?t:t.map(function(t){return o=i.map(function(i){return f=n(i),f(t)}).join(" "),b(t,{searchField:o})})}}]);t.module("a8m.to-array",[]).filter("toArray",function(){return function(n,t){return r(n)?t?Object.keys(n).map(function(t){return b(n[t],{$key:t})}):e(n):n}});t.module("a8m.unique",[]).filter({unique:["$parse",ct],uniq:["$parse",ct]});t.module("a8m.where",[]).filter("where",function(){return function(n,t){return f(t)?n:(n=r(n)?e(n):n,n.filter(function(n){return l(t,n)}))}});t.module("a8m.xor",[]).filter("xor",["$parse",function(n){return function(t,i,f){function o(t,i){var r=n(f);return i.some(function(n){return f?c(r(n),r(t)):c(n,t)})}return(f=f||!1,t=r(t)?e(t):t,i=r(i)?e(i):i,!u(t)||!u(i))?t:t.concat(i).filter(function(n){return!(o(n,t)&&o(n,i))})}}]);t.module("a8m.math.byteFmt",["a8m.math"]).filter("byteFmt",["$math",function(n){return function(t,i){return s(i)&&isFinite(i)&&i%1==0&&i>=0&&s(t)&&isFinite(t)?t<1024?h(t,i,n)+" B":t<1048576?h(t/1024,i,n)+" KB":t<1073741824?h(t/1048576,i,n)+" MB":h(t/1073741824,i,n)+" GB":"NaN"}}]);t.module("a8m.math.degrees",["a8m.math"]).filter("degrees",["$math",function(n){return function(t,i){if(s(i)&&isFinite(i)&&i%1==0&&i>=0&&s(t)&&isFinite(t)){var r=t*180/n.PI;return n.round(r*n.pow(10,i))/n.pow(10,i)}return"NaN"}}]);t.module("a8m.math.kbFmt",["a8m.math"]).filter("kbFmt",["$math",function(n){return function(t,i){return s(i)&&isFinite(i)&&i%1==0&&i>=0&&s(t)&&isFinite(t)?t<1024?h(t,i,n)+" KB":t<1048576?h(t/1024,i,n)+" MB":h(t/1048576,i,n)+" GB":"NaN"}}]);t.module("a8m.math",[]).factory("$math",["$window",function(n){return n.Math}]);t.module("a8m.math.max",["a8m.math"]).filter("max",["$math","$parse",function(n,t){function i(i,r){var u=i.map(function(n){return t(r)(n)});return u.indexOf(n.max.apply(n,u))}return function(t,r){return u(t)?f(r)?n.max.apply(n,t):t[i(t,r)]:t}}]);t.module("a8m.math.min",["a8m.math"]).filter("min",["$math","$parse",function(n,t){function i(i,r){var u=i.map(function(n){return t(r)(n)});return u.indexOf(n.min.apply(n,u))}return function(t,r){return u(t)?f(r)?n.min.apply(n,t):t[i(t,r)]:t}}]);t.module("a8m.math.percent",["a8m.math"]).filter("percent",["$math","$window",function(n,t){return function(i,r,u){var f=o(i)?t.Number(i):i;return(r=r||100,u=u||!1,!s(f)||t.isNaN(f))?i:u?n.round(f/r*100):f/r*100}}]);t.module("a8m.math.radians",["a8m.math"]).filter("radians",["$math",function(n){return function(t,i){if(s(i)&&isFinite(i)&&i%1==0&&i>=0&&s(t)&&isFinite(t)){var r=t*3.14159265359/180;return n.round(r*n.pow(10,i))/n.pow(10,i)}return"NaN"}}]);t.module("a8m.math.radix",[]).filter("radix",function(){return function(n,t){return!s(n)||!/^[2-9]$|^[1-2]\d$|^3[0-6]$/.test(t)?n:n.toString(t).toUpperCase()}});t.module("a8m.math.shortFmt",["a8m.math"]).filter("shortFmt",["$math",function(n){return function(t,i){return s(i)&&isFinite(i)&&i%1==0&&i>=0&&s(t)&&isFinite(t)?t<1e3?t:t<1e6?h(t/1e3,i,n)+" K":t<1e9?h(t/1e6,i,n)+" M":h(t/1e9,i,n)+" B":"NaN"}}]);t.module("a8m.math.sum",[]).filter("sum",function(){return function(n,t){return u(n)?n.reduce(function(n,t){return n+t},t||0):n}});t.module("a8m.ends-with",[]).filter("endsWith",function(){return function(n,t,i){var r=i||!1,u;return!o(n)||f(t)?n:(n=r?n:n.toLowerCase(),u=n.length-t.length,n.indexOf(r?t:t.toLowerCase(),u)!==-1)}});t.module("a8m.latinize",[]).filter("latinize",[function(){function f(n){return n.replace(/[^\u0000-\u007E]/g,function(n){return u[n]||n})}for(var r,t,i=[{base:"A",letters:"AⒶＡÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷＢḂḄḆɃƂƁ"},{base:"C",letters:"CⒸＣĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹＤḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"ǱǄ"},{base:"Dz",letters:"ǲǅ"},{base:"E",letters:"EⒺＥÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻＦḞƑꝻ"},{base:"G",letters:"GⒼＧǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽＨĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾＩÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿＪĴɈ"},{base:"K",letters:"KⓀＫḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁＬĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"Ǉ"},{base:"Lj",letters:"ǈ"},{base:"M",letters:"MⓂＭḾṀṂⱮƜ"},{base:"N",letters:"NⓃＮǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"Ǌ"},{base:"Nj",letters:"ǋ"},{base:"O",letters:"OⓄＯÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"OE",letters:"Œ"},{base:"oe",letters:"œ"},{base:"P",letters:"PⓅＰṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆＱꝖꝘɊ"},{base:"R",letters:"RⓇＲŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈＳẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉＴṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊＵÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋＶṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌＷẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍＸẊẌ"},{base:"Y",letters:"YⓎＹỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏＺŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐａẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑｂḃḅḇƀƃɓ"},{base:"c",letters:"cⓒｃćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓｄḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"ǳǆ"},{base:"e",letters:"eⓔｅèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕｆḟƒꝼ"},{base:"g",letters:"gⓖｇǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗｈĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘｉìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙｊĵǰɉ"},{base:"k",letters:"kⓚｋḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛｌŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"ǉ"},{base:"m",letters:"mⓜｍḿṁṃɱɯ"},{base:"n",letters:"nⓝｎǹńñṅňṇņṋṉƞɲŉꞑꞥ"},{base:"nj",letters:"ǌ"},{base:"o",letters:"oⓞｏòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟｐṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠｑɋꝗꝙ"},{base:"r",letters:"rⓡｒŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢｓßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣｔṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤｕùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥｖṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦｗẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧｘẋẍ"},{base:"y",letters:"yⓨｙỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩｚźẑżžẓẕƶȥɀⱬꝣ"}],u={},n=0;n<i.length;n++)for(r=i[n].letters.split(""),t=0;t<r.length;t++)u[r[t]]=i[n].base;return function(n){return o(n)?f(n):n}}]);t.module("a8m.ltrim",[]).filter("ltrim",function(){return function(n,t){var i=t||"\\s";return o(n)?n.replace(new RegExp("^"+i+"+"),""):n}});t.module("a8m.match",[]).filter("match",function(){return function(n,t,i){var r=new RegExp(t,i);return o(n)?n.match(r):null}});t.module("a8m.repeat",[]).filter("repeat",[function(){return function(n,t,i){var r=~~t;return o(n)?r?lt(n,--t,i||""):n:n}}]);t.module("a8m.rtrim",[]).filter("rtrim",function(){return function(n,t){var i=t||"\\s";return o(n)?n.replace(new RegExp(i+"+$"),""):n}});t.module("a8m.slugify",[]).filter("slugify",[function(){return function(n,t){var i=f(t)?"-":t;return o(n)?n.toLowerCase().replace(/\s+/g,i):n}}]);t.module("a8m.starts-with",[]).filter("startsWith",function(){return function(n,t,i){var r=i||!1;return!o(n)||f(t)?n:(n=r?n:n.toLowerCase(),!n.indexOf(r?t:t.toLowerCase()))}});t.module("a8m.stringular",[]).filter("stringular",function(){return function(n){var t=Array.prototype.slice.call(arguments,1);return n.replace(/{(\d+)}/g,function(n,i){return f(t[i])?n:t[i]})}});t.module("a8m.strip-tags",[]).filter("stripTags",function(){return function(n){return o(n)?n.replace(/<\S[^><]*>/g,""):n}});t.module("a8m.test",[]).filter("test",function(){return function(n,t,i){var r=new RegExp(t,i);return o(n)?r.test(n):n}});t.module("a8m.trim",[]).filter("trim",function(){return function(n,t){var i=t||"\\s";return o(n)?n.replace(new RegExp("^"+i+"+|"+i+"+$","g"),""):n}});t.module("a8m.truncate",[]).filter("truncate",function(){return function(n,t,i,r){return(t=f(t)?n.length:t,r=r||!1,i=i||"",!o(n)||n.length<=t)?n:n.substring(0,r?n.indexOf(" ",t)===-1?n.length:n.indexOf(" ",t):t)+i}});t.module("a8m.ucfirst",[]).filter("ucfirst",[function(){return function(n){return o(n)?n.split(" ").map(function(n){return n.charAt(0).toUpperCase()+n.substring(1)}).join(" "):n}}]);t.module("a8m.uri-component-encode",[]).filter("uriComponentEncode",["$window",function(n){return function(t){return o(t)?n.encodeURIComponent(t):t}}]);t.module("a8m.uri-encode",[]).filter("uriEncode",["$window",function(n){return function(t){return o(t)?n.encodeURI(t):t}}]);t.module("a8m.wrap",[]).filter("wrap",function(){return function(n,t,i){return o(n)&&y(t)?[t,n,i||t].join(""):n}});t.module("a8m.filter-watcher",[]).provider("filterWatcher",function(){this.$get=["$window","$rootScope",function(n,t){function e(t,i){function u(){var t=[];return function(i,u){if(r(u)&&!k(u)){if(~t.indexOf(u))return"[Circular]";t.push(u)}return n==u?"$WINDOW":n.document==u?"$DOCUMENT":nt(u)?"$SCOPE":u}}return[t,JSON.stringify(i,u())].join("#").replace(/"/g,"")}function s(n){var t=n.targetScope.$id;w(i[t],function(n){delete u[n]});delete i[t]}function h(){o(function(){t.$$phase||(u={})},2e3)}function c(n,t){var r=n.$id;return f(i[r])&&(n.$on("$destroy",s),i[r]=[]),i[r].push(t)}function l(n,t){var i=e(n,t);return u[i]}function a(n,t,i,r){var f=e(n,t);return u[f]=r,nt(i)?c(i,f):h(),r}var u={},i={},o=n.setTimeout;return{isMemoized:l,memoize:a}}]});t.module("angular.filter",["a8m.ucfirst","a8m.uri-encode","a8m.uri-component-encode","a8m.slugify","a8m.latinize","a8m.strip-tags","a8m.stringular","a8m.truncate","a8m.starts-with","a8m.ends-with","a8m.wrap","a8m.trim","a8m.ltrim","a8m.rtrim","a8m.repeat","a8m.test","a8m.match","a8m.to-array","a8m.concat","a8m.contains","a8m.unique","a8m.is-empty","a8m.after","a8m.after-where","a8m.before","a8m.before-where","a8m.defaults","a8m.where","a8m.reverse","a8m.remove","a8m.remove-with","a8m.group-by","a8m.count-by","a8m.chunk-by","a8m.search-field","a8m.fuzzy-by","a8m.fuzzy","a8m.omit","a8m.pick","a8m.every","a8m.filter-by","a8m.xor","a8m.map","a8m.first","a8m.last","a8m.flatten","a8m.join","a8m.range","a8m.math","a8m.math.max","a8m.math.min","a8m.math.percent","a8m.math.radix","a8m.math.sum","a8m.math.degrees","a8m.math.radians","a8m.math.byteFmt","a8m.math.kbFmt","a8m.math.shortFmt","a8m.angular","a8m.conditions","a8m.is-null","a8m.filter-watcher"])}(window,window.angular);angular.module("angular-fullcalendar",[]).value("CALENDAR_DEFAULTS",{locale:"en"}).directive("fc",["CALENDAR_DEFAULTS",fcDirectiveFn]);angular.module("SignalR",[]).constant("$",window.jQuery).factory("Hub",["$",function(n){function i(t){var i=null;return i=t&&t.rootPath?n.hubConnection(t.rootPath,{useDefaultPath:!1}):n.hubConnection(),i.logging=t&&t.logging?!0:!1,i}function r(n){var r=!(n&&n.useSharedConnection===!1);return r?"undefined"==typeof t[n.rootPath]?t[n.rootPath]=i(n):t[n.rootPath]:i(n)}var t=[];return function(t,i){var u=this;return u.connection=r(i),u.proxy=u.connection.createHubProxy(t),u.on=function(n,t){u.proxy.on(n,t)},u.invoke=function(){return u.proxy.invoke.apply(u.proxy,arguments)},u.disconnect=function(){u.connection.stop()},u.connect=function(n){var t={};return i.transport&&(t.transport=i.transport),i.jsonp&&(t.jsonp=i.jsonp),angular.isDefined(i.withCredentials)&&(t.withCredentials=i.withCredentials),n&&(u.connection.qs=n),u.connection.start(t)},i&&i.listeners&&Object.getOwnPropertyNames(i.listeners).filter(function(n){return"function"==typeof i.listeners[n]}).forEach(function(n){u.on(n,i.listeners[n])}),i&&i.methods&&angular.forEach(i.methods,function(t){u[t]=function(){var i=n.makeArray(arguments);return i.unshift(t),u.invoke.apply(u,i)}}),i&&i.queryParams&&(u.connection.qs=i.queryParams),i&&i.errorHandler&&u.connection.error(i.errorHandler),i&&i.stateChanged&&u.connection.stateChanged(i.stateChanged),(void 0===i.autoConnect||i.autoConnect)&&(u.promise=u.connect()),u}}]);"undefined"!=typeof module&&"undefined"!=typeof exports&&module.exports===exports&&(module.exports="SignalR");timerModule=angular.module("timer",[]).directive("timer",["$compile",function(n){return{restrict:"EA",replace:!1,scope:{type:"=type",auctionId:"=auctionid",interval:"=interval",startTimeAttr:"=startTime",endTimeAttr:"=endTime",countdownattr:"=countdown",finishCallback:"&finishCallback",autoStart:"&autoStart",language:"@?",fallback:"@?",maxTimeUnit:"=",seconds:"=?",minutes:"=?",hours:"=?",days:"=?",months:"=?",years:"=?",secondsS:"=?",minutesS:"=?",hoursS:"=?",daysS:"=?",monthsS:"=?",yearsS:"=?"},controller:["$rootScope","$scope","$element","$attrs","$timeout","I18nService","$interpolate","progressBarService",function(t,i,r,u,f,e,o,s){function h(){i.timeoutId&&clearTimeout(i.timeoutId)}function a(){var n={};u.startTime!==undefined&&(i.millis=moment().diff(moment(i.startTimeAttr)));n=l.getTimeUnits(i.millis);i.maxTimeUnit&&i.maxTimeUnit!=="day"?i.maxTimeUnit==="second"?(i.seconds=Math.floor(i.millis/1e3),i.minutes=0,i.hours=0,i.days=0,i.months=0,i.years=0):i.maxTimeUnit==="minute"?(i.seconds=Math.floor(i.millis/1e3%60),i.minutes=Math.floor(i.millis/6e4),i.hours=0,i.days=0,i.months=0,i.years=0):i.maxTimeUnit==="hour"?(i.seconds=Math.floor(i.millis/1e3%60),i.minutes=Math.floor(i.millis/6e4%60),i.hours=Math.floor(i.millis/36e5),i.days=0,i.months=0,i.years=0):i.maxTimeUnit==="month"?(i.seconds=Math.floor(i.millis/1e3%60),i.minutes=Math.floor(i.millis/6e4%60),i.hours=Math.floor(i.millis/36e5%24),i.days=Math.floor(i.millis/864e5%30),i.months=Math.floor(i.millis/2592e6),i.years=0):i.maxTimeUnit==="year"&&(i.seconds=Math.floor(i.millis/1e3%60),i.minutes=Math.floor(i.millis/6e4%60),i.hours=Math.floor(i.millis/36e5%24),i.days=Math.floor(i.millis/864e5%30),i.months=Math.floor(i.millis/2592e6%12),i.years=Math.floor(i.millis/31536e6)):(i.seconds=Math.floor(i.millis/1e3%60),i.minutes=Math.floor(i.millis/6e4%60),i.hours=Math.floor(i.millis/36e5%24),i.days=Math.floor(i.millis/864e5),i.months=0,i.years=0);i.secondsS=i.seconds===1?"":"s";i.minutesS=i.minutes===1?"":"s";i.hoursS=i.hours===1?"":"s";i.daysS=i.days===1?"":"s";i.monthsS=i.months===1?"":"s";i.yearsS=i.years===1?"":"s";i.secondUnit=n.seconds;i.minuteUnit=n.minutes;i.hourUnit=n.hours;i.dayUnit=n.days;i.monthUnit=n.months;i.yearUnit=n.years;i.sseconds=i.seconds<10?"0"+i.seconds:i.seconds;i.mminutes=i.minutes<10?"0"+i.minutes:i.minutes;i.hhours=i.hours<10?"0"+i.hours:i.hours;i.ddays=i.days<10?"0"+i.days:i.days;i.mmonths=i.months<10?"0"+i.months:i.months;i.yyears=i.years<10?"0"+i.years:i.years}var l,c;typeof String.prototype.trim!="function"&&(String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")});i.autoStart=u.autoStart||u.autostart;i.language=i.language||"en";i.fallback=i.fallback||"en";i.$watch("language",function(n){n!==undefined&&l.init(n,i.fallback)});l=new e;l.init(i.language,i.fallback);i.displayProgressBar=0;i.displayProgressActive="active";r.html().trim().length===0?r.append(n("<span>"+o.startSymbol()+"millis"+o.endSymbol()+"<\/span>")(i)):r.append(n(r.contents())(i));i.startTime=null;i.endTime=null;i.timeoutId=null;i.countdown=angular.isNumber(i.countdownattr)&&parseInt(i.countdownattr,10)>=0?parseInt(i.countdownattr,10):undefined;i.isRunning=!1;i.$on("timer-start",function(){i.start()});i.$on("timer-resume",function(){i.resume()});i.$on("timer-stop",function(){i.stop()});i.$on("timer-clear",function(){i.clear()});i.$on("timer-reset",function(){i.reset()});t.$on("timer-reset",function(n,t){t==i.type&&(i.reset(),i.start())});t.$on("timer-reset-current",function(n){i.auctionId==n&&(i.reset(),i.start())});i.$on("timer-set-countdown",function(n,t){i.countdown=t});t.$on("timer-set-countdown",function(n,t,r){t==i.type&&(i.countdown=r)});i.$watch("startTimeAttr",function(n,t){n!==t&&i.isRunning&&i.start()});i.$watch("endTimeAttr",function(n,t){n!==t&&i.isRunning&&i.start()});i.start=r[0].start=function(){i.startTime=i.startTimeAttr?moment(i.startTimeAttr):moment();i.endTime=i.endTimeAttr?moment(i.endTimeAttr):null;angular.isNumber(i.countdown)||(i.countdown=angular.isNumber(i.countdownattr)&&parseInt(i.countdownattr,10)>0?parseInt(i.countdownattr,10):undefined);h();c();i.isRunning=!0};i.resume=r[0].resume=function(){h();i.countdownattr&&(i.countdown+=1);i.startTime=moment().diff(moment(i.stoppedTime).diff(moment(i.startTime)));c();i.isRunning=!0};i.stop=i.pause=r[0].stop=r[0].pause=function(){var n=i.timeoutId;i.clear();i.$emit("timer-stopped",{timeoutId:n,millis:i.millis,seconds:i.seconds,minutes:i.minutes,hours:i.hours,days:i.days})};i.clear=r[0].clear=function(){i.stoppedTime=moment();h();i.timeoutId=null;i.isRunning=!1};i.reset=r[0].reset=function(){i.startTime=i.startTimeAttr?moment(i.startTimeAttr):moment();i.endTime=i.endTimeAttr?moment(i.endTimeAttr):null;i.countdown=angular.isNumber(i.countdownattr)&&parseInt(i.countdownattr,10)>0?parseInt(i.countdownattr,10):undefined;h();c();i.isRunning=!1;i.clear()};r.bind("$destroy",function(){h();i.isRunning=!1});i.countdownattr?(i.millis=i.countdownattr*1e3,i.addCDSeconds=r[0].addCDSeconds=function(n){i.countdown+=n;i.$digest();i.isRunning||i.start()},i.$on("timer-add-cd-seconds",function(n,t){f(function(){i.addCDSeconds(t)})}),i.$on("timer-set-countdown-seconds",function(n,t){i.isRunning||i.clear();i.countdown=t;i.millis=t*1e3;a()})):i.millis=0;a();c=function c(){var n=null,t;if(i.millis=moment().diff(i.startTime),t=i.millis%1e3,i.endTimeAttr&&(n=i.endTimeAttr,i.millis=moment(i.endTime).diff(moment()),t=i.interval-i.millis%1e3),i.countdownattr&&(n=i.countdownattr,i.millis=i.countdown*1e3),i.millis<0){i.stop();i.millis=0;a();i.finishCallback&&i.$eval(i.finishCallback);return}a();i.timeoutId=setTimeout(function(){c();i.$digest()},i.interval-t);i.$emit("timer-tick",{timeoutId:i.timeoutId,millis:i.millis,timerElement:r[0]});i.countdown>0?i.countdown--:i.countdown<=0&&(i.stop(),i.finishCallback&&i.$eval(i.finishCallback));n!==null&&(i.progressBar=s.calculateProgressBar(i.startTime,i.millis,i.endTime,i.countdownattr),i.progressBar===100&&(i.displayProgressActive=""))};(i.autoStart===undefined||i.autoStart===!0)&&i.start()}]}}]);typeof module!="undefined"&&typeof exports!="undefined"&&module.exports===exports&&(module.exports=timerModule);app=angular.module("timer");app.factory("I18nService",function(){var n=function(){};return n.prototype.language="en",n.prototype.fallback="en",n.prototype.timeHumanizer={},n.prototype.init=function(n,t){var i=humanizeDuration.getSupportedLanguages();this.fallback=t!==undefined?t:"en";i.indexOf(t)===-1&&(this.fallback="en");this.language=n;i.indexOf(n)===-1&&(this.language=this.fallback);moment.locale(this.language);this.timeHumanizer=humanizeDuration.humanizer({language:this.language,halfUnit:!1})},n.prototype.getTimeUnits=function(n){var t=Math.round(n/1e3)*1e3,i={};return typeof this.timeHumanizer!="undefined"?i={millis:this.timeHumanizer(t,{units:["milliseconds"]}),seconds:this.timeHumanizer(t,{units:["seconds"]}),minutes:this.timeHumanizer(t,{units:["minutes","seconds"]}),hours:this.timeHumanizer(t,{units:["hours","minutes","seconds"]}),days:this.timeHumanizer(t,{units:["days","hours","minutes","seconds"]}),months:this.timeHumanizer(t,{units:["months","days","hours","minutes","seconds"]}),years:this.timeHumanizer(t,{units:["years","months","days","hours","minutes","seconds"]})}:console.error('i18nService has not been initialized. You must call i18nService.init("en") for example'),i},n});app=angular.module("timer");app.factory("progressBarService",function(){var n=function(){};return n.prototype.calculateProgressBar=function(n,t,i,r){var u=0,f,e;return t=t/1e3,i!==null?(f=moment(i),e=f.diff(n,"seconds"),u=t*100/e):u=t*100/r,u=100-u,u=Math.round(u*10)/10,u>100&&(u=100),u},new n}),function(){function u(n){var t=function(n,i){var r=o({},t,i||{});return h(n,r)};return o(t,{language:"en",delimiter:", ",spacer:" ",units:["year","month","week","day","hour","minute","second"],languages:{},halfUnit:!0,round:!1},n)}function i(){return f.apply(f,arguments)}function h(n,t){var f,c,i,o,u,l,h,a;if(n=Math.abs(n),n===0)return"0";if(f=t.languages[t.language]||r[t.language],!f)throw new Error("No language "+f+".");for(c=[],h=0,a=t.units.length;h<a;h++){if(i=t.units[h],i[i.length-1]==="s"&&(i=i.substring(0,i.length-1)),o=s[i],c.length===0&&t.halfUnit&&(l=n/o*2,l===Math.floor(l)))return e(l/2,i,f,t.spacer);h+1===a?(u=n/o,t.round&&(u=Math.round(u))):u=Math.floor(n/o);u&&c.push(e(u,i,f,t.spacer));n-=u*o}return c.join(t.delimiter)}function e(n,t,i,r){var u=i[t],f;return f=typeof u=="function"?u(n):u,n+r+f}function o(n){for(var i,t,r=1;r<arguments.length;r++){t=arguments[r];for(i in t)t.hasOwnProperty(i)&&(n[i]=t[i])}return n}function n(n){return n===1?0:Math.floor(n)!==n?1:2<=n%10&&n%10<=4&&!(10<n%100&&n%100<20)?2:3}function t(n){return Math.floor(n)!==n?2:n===0||n>=5&&n<=20||n%10>=5&&n%10<=9||n%10==0?0:n===1||n%10==1?1:n>1?2:0}function c(){var n=[];for(var t in r)r.hasOwnProperty(t)&&n.push(t);return n}var s={year:315576e5,month:26298e5,week:6048e5,day:864e5,hour:36e5,minute:6e4,second:1e3,millisecond:1},r={ar:{year:function(n){return n===1?"سنة":"سنوات"},month:function(n){return n===1?"شهر":"أشهر"},week:function(n){return n===1?"أسبوع":"أسابيع"},day:function(n){return n===1?"يوم":"أيام"},hour:function(n){return n===1?"ساعة":"ساعات"},minute:function(n){return n===1?"دقيقة":"دقائق"},second:function(n){return n===1?"ثانية":"ثواني"},millisecond:function(n){return n===1?"جزء من الثانية":"أجزاء من الثانية"}},ca:{year:function(n){return"any"+(n!==1?"s":"")},month:function(n){return"mes"+(n!==1?"os":"")},week:function(n){return"setman"+(n!==1?"es":"a")},day:function(n){return"di"+(n!==1?"es":"a")},hour:function(n){return"hor"+(n!==1?"es":"a")},minute:function(n){return"minut"+(n!==1?"s":"")},second:function(n){return"segon"+(n!==1?"s":"")},millisecond:function(n){return"milisegon"+(n!==1?"s":"")}},da:{year:"år",month:function(n){return"måned"+(n!==1?"er":"")},week:function(n){return"uge"+(n!==1?"r":"")},day:function(n){return"dag"+(n!==1?"e":"")},hour:function(n){return"time"+(n!==1?"r":"")},minute:function(n){return"minut"+(n!==1?"ter":"")},second:function(n){return"sekund"+(n!==1?"er":"")},millisecond:function(n){return"millisekund"+(n!==1?"er":"")}},de:{year:function(n){return"Jahr"+(n!==1?"e":"")},month:function(n){return"Monat"+(n!==1?"e":"")},week:function(n){return"Woche"+(n!==1?"n":"")},day:function(n){return"Tag"+(n!==1?"e":"")},hour:function(n){return"Stunde"+(n!==1?"n":"")},minute:function(n){return"Minute"+(n!==1?"n":"")},second:function(n){return"Sekunde"+(n!==1?"n":"")},millisecond:function(n){return"Millisekunde"+(n!==1?"n":"")}},en:{year:function(n){return"year"+(n!==1?"s":"")},month:function(n){return"month"+(n!==1?"s":"")},week:function(n){return"week"+(n!==1?"s":"")},day:function(n){return"day"+(n!==1?"s":"")},hour:function(n){return"hour"+(n!==1?"s":"")},minute:function(n){return"minute"+(n!==1?"s":"")},second:function(n){return"second"+(n!==1?"s":"")},millisecond:function(n){return"millisecond"+(n!==1?"s":"")}},es:{year:function(n){return"año"+(n!==1?"s":"")},month:function(n){return"mes"+(n!==1?"es":"")},week:function(n){return"semana"+(n!==1?"s":"")},day:function(n){return"día"+(n!==1?"s":"")},hour:function(n){return"hora"+(n!==1?"s":"")},minute:function(n){return"minuto"+(n!==1?"s":"")},second:function(n){return"segundo"+(n!==1?"s":"")},millisecond:function(n){return"milisegundo"+(n!==1?"s":"")}},fr:{year:function(n){return"an"+(n!==1?"s":"")},month:"mois",week:function(n){return"semaine"+(n!==1?"s":"")},day:function(n){return"jour"+(n!==1?"s":"")},hour:function(n){return"heure"+(n!==1?"s":"")},minute:function(n){return"minute"+(n!==1?"s":"")},second:function(n){return"seconde"+(n!==1?"s":"")},millisecond:function(n){return"milliseconde"+(n!==1?"s":"")}},hu:{year:"év",month:"hónap",week:"hét",day:"nap",hour:"óra",minute:"perc",second:"másodperc",millisecond:"ezredmásodperc"},it:{year:function(n){return"ann"+(n!==1?"i":"o")},month:function(n){return"mes"+(n!==1?"i":"e")},week:function(n){return"settiman"+(n!==1?"e":"a")},day:function(n){return"giorn"+(n!==1?"i":"o")},hour:function(n){return"or"+(n!==1?"e":"a")},minute:function(n){return"minut"+(n!==1?"i":"o")},second:function(n){return"second"+(n!==1?"i":"o")},millisecond:function(n){return"millisecond"+(n!==1?"i":"o")}},ja:{year:"年",month:"月",week:"週",day:"日",hour:"時間",minute:"分",second:"秒",millisecond:"ミリ秒"},ko:{year:"년",month:"개월",week:"주일",day:"일",hour:"시간",minute:"분",second:"초",millisecond:"밀리 초"},nl:{year:"jaar",month:function(n){return n===1?"maand":"maanden"},week:function(n){return n===1?"week":"weken"},day:function(n){return n===1?"dag":"dagen"},hour:"uur",minute:function(n){return n===1?"minuut":"minuten"},second:function(n){return n===1?"seconde":"seconden"},millisecond:function(n){return n===1?"milliseconde":"milliseconden"}},nob:{year:"år",month:function(n){return"måned"+(n!==1?"er":"")},week:function(n){return"uke"+(n!==1?"r":"")},day:function(n){return"dag"+(n!==1?"er":"")},hour:function(n){return"time"+(n!==1?"r":"")},minute:function(n){return"minutt"+(n!==1?"er":"")},second:function(n){return"sekund"+(n!==1?"er":"")},millisecond:function(n){return"millisekund"+(n!==1?"er":"")}},pl:{year:function(t){return["rok","roku","lata","lat"][n(t)]},month:function(t){return["miesiąc","miesiąca","miesiące","miesięcy"][n(t)]},week:function(t){return["tydzień","tygodnia","tygodnie","tygodni"][n(t)]},day:function(t){return["dzień","dnia","dni","dni"][n(t)]},hour:function(t){return["godzina","godziny","godziny","godzin"][n(t)]},minute:function(t){return["minuta","minuty","minuty","minut"][n(t)]},second:function(t){return["sekunda","sekundy","sekundy","sekund"][n(t)]},millisecond:function(t){return["milisekunda","milisekundy","milisekundy","milisekund"][n(t)]}},pt:{year:function(n){return"ano"+(n!==1?"s":"")},month:function(n){return n!==1?"meses":"mês"},week:function(n){return"semana"+(n!==1?"s":"")},day:function(n){return"dia"+(n!==1?"s":"")},hour:function(n){return"hora"+(n!==1?"s":"")},minute:function(n){return"minuto"+(n!==1?"s":"")},second:function(n){return"segundo"+(n!==1?"s":"")},millisecond:function(n){return"milissegundo"+(n!==1?"s":"")}},ru:{year:function(n){return["лет","год","года"][t(n)]},month:function(n){return["месяцев","месяц","месяца"][t(n)]},week:function(n){return["недель","неделя","недели"][t(n)]},day:function(n){return["дней","день","дня"][t(n)]},hour:function(n){return["часов","час","часа"][t(n)]},minute:function(n){return["минут","минута","минуты"][t(n)]},second:function(n){return["секунд","секунда","секунды"][t(n)]},millisecond:function(n){return["миллисекунд","миллисекунда","миллисекунды"][t(n)]}},sv:{year:"år",month:function(n){return"månad"+(n!==1?"er":"")},week:function(n){return"veck"+(n!==1?"or":"a")},day:function(n){return"dag"+(n!==1?"ar":"")},hour:function(n){return"timm"+(n!==1?"ar":"e")},minute:function(n){return"minut"+(n!==1?"er":"")},second:function(n){return"sekund"+(n!==1?"er":"")},millisecond:function(n){return"millisekund"+(n!==1?"er":"")}},tr:{year:"yıl",month:"ay",week:"hafta",day:"gün",hour:"saat",minute:"dakika",second:"saniye",millisecond:"milisaniye"},"zh-CN":{year:"年",month:"个月",week:"周",day:"天",hour:"小时",minute:"分钟",second:"秒",millisecond:"毫秒"},"zh-TW":{year:"年",month:"個月",week:"周",day:"天",hour:"小時",minute:"分鐘",second:"秒",millisecond:"毫秒"}},f=u({});i.humanizer=u;i.getSupportedLanguages=c;typeof define=="function"&&define.amd?define(function(){return i}):typeof module!="undefined"&&module.exports?module.exports=i:this.humanizeDuration=i}();!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):n.moment=t()}(this,function(){"use strict";function t(){return hf.apply(null,arguments)}function tt(n){return n instanceof Array||"[object Array]"===Object.prototype.toString.call(n)}function li(n){return null!=n&&"[object Object]"===Object.prototype.toString.call(n)}function p(n){return void 0===n}function dt(n){return"number"==typeof n||"[object Number]"===Object.prototype.toString.call(n)}function gi(n){return n instanceof Date||"[object Date]"===Object.prototype.toString.call(n)}function lf(n,t){for(var r=[],i=0;i<n.length;++i)r.push(t(n[i],i));return r}function l(n,t){return Object.prototype.hasOwnProperty.call(n,t)}function vt(n,t){for(var i in t)l(t,i)&&(n[i]=t[i]);return l(t,"toString")&&(n.toString=t.toString),l(t,"valueOf")&&(n.valueOf=t.valueOf),n}function ft(n,t,i,r){return no(n,t,i,r,!0).utc()}function u(n){return null==n._pf&&(n._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),n._pf}function nu(n){if(null==n._isValid){var t=u(n),r=cf.call(t.parsedDateParts,function(n){return null!=n}),i=!isNaN(n._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r);if(n._strict&&(i=i&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(n))return i;n._isValid=i}return n._isValid}function nr(n){var t=ft(NaN);return null!=n?vt(u(t),n):u(t).userInvalidated=!0,t}function tu(n,t){var i,r,f;if(p(t._isAMomentObject)||(n._isAMomentObject=t._isAMomentObject),p(t._i)||(n._i=t._i),p(t._f)||(n._f=t._f),p(t._l)||(n._l=t._l),p(t._strict)||(n._strict=t._strict),p(t._tzm)||(n._tzm=t._tzm),p(t._isUTC)||(n._isUTC=t._isUTC),p(t._offset)||(n._offset=t._offset),p(t._pf)||(n._pf=u(t)),p(t._locale)||(n._locale=t._locale),0<tr.length)for(i=0;i<tr.length;i++)p(f=t[r=tr[i]])||(n[r]=f);return n}function ai(n){tu(this,n);this._d=new Date(null!=n._d?n._d.getTime():NaN);this.isValid()||(this._d=new Date(NaN));!1===ir&&(ir=!0,t.updateOffset(this),ir=!1)}function yt(n){return n instanceof ai||null!=n&&null!=n._isAMomentObject}function d(n){return n<0?Math.ceil(n)||0:Math.floor(n)}function f(n){var t=+n,i=0;return 0!==t&&isFinite(t)&&(i=d(t)),i}function af(n,t,i){for(var e=Math.min(n.length,t.length),o=Math.abs(n.length-t.length),u=0,r=0;r<e;r++)(i&&n[r]!==t[r]||!i&&f(n[r])!==f(t[r]))&&u++;return u+o}function vf(n){!1===t.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+n)}function g(n,i){var r=!0;return vt(function(){var u,e,f,o;if(null!=t.deprecationHandler&&t.deprecationHandler(null,n),r){for(e=[],f=0;f<arguments.length;f++){if(u="","object"==typeof arguments[f]){for(o in u+="\n["+f+"] ",arguments[0])u+=o+": "+arguments[0][o]+", ";u=u.slice(0,-2)}else u=arguments[f];e.push(u)}vf(n+"\nArguments: "+Array.prototype.slice.call(e).join("")+"\n"+(new Error).stack);r=!1}return i.apply(this,arguments)},i)}function pf(n,i){null!=t.deprecationHandler&&t.deprecationHandler(n,i);iu[n]||(vf(i),iu[n]=!0)}function et(n){return n instanceof Function||"[object Function]"===Object.prototype.toString.call(n)}function wf(n,t){var i,r=vt({},n);for(i in t)l(t,i)&&(li(n[i])&&li(t[i])?(r[i]={},vt(r[i],n[i]),vt(r[i],t[i])):null!=t[i]?r[i]=t[i]:delete r[i]);for(i in n)l(n,i)&&!l(t,i)&&li(n[i])&&(r[i]=vt({},r[i]));return r}function ru(n){null!=n&&this.set(n)}function w(n,t){var i=n.toLowerCase();ui[i]=ui[i+"s"]=ui[t]=n}function nt(n){if("string"==typeof n)return ui[n]||ui[n.toLowerCase()]}function uu(n){var i,t,r={};for(t in n)l(n,t)&&(i=nt(t))&&(r[i]=n[t]);return r}function b(n,t){fu[n]=t}function ct(n,t,i){var r=""+Math.abs(n),u=t-r.length;return(0<=n?i?"+":"":"-")+Math.pow(10,Math.max(0,u)).toString().substr(1)+r}function r(n,t,i,r){var u=r;"string"==typeof r&&(u=function(){return this[r]()});n&&(fi[n]=u);t&&(fi[t[0]]=function(){return ct(u.apply(this,arguments),t[1],t[2])});i&&(fi[i]=function(){return this.localeData().ordinal(u.apply(this,arguments),n)})}function ur(n,t){return n.isValid()?(t=kf(t,n.localeData()),eu[t]=eu[t]||function(n){for(var u,t=n.match(bf),i=0,r=t.length;i<r;i++)t[i]=fi[t[i]]?fi[t[i]]:(u=t[i]).match(/\[[\s\S]/)?u.replace(/^\[|\]$/g,""):u.replace(/\\/g,"");return function(i){for(var f="",u=0;u<r;u++)f+=et(t[u])?t[u].call(i,n):t[u];return f}}(t),eu[t](n)):n.localeData().invalidDate()}function kf(n,t){function r(n){return t.longDateFormat(n)||n}var i=5;for(rr.lastIndex=0;0<=i&&rr.test(n);)n=n.replace(rr,r),rr.lastIndex=0,i-=1;return n}function i(n,t,i){hu[n]=et(t)?t:function(n){return n&&i?i:t}}function es(n,t){return l(hu,n)?hu[n](t._strict,t._locale):new RegExp(gt(n.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(n,t,i,r,u){return t||i||r||u})))}function gt(n){return n.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function h(n,t){var i,r=t;for("string"==typeof n&&(n=[n]),dt(t)&&(r=function(n,i){i[t]=f(n)}),i=0;i<n.length;i++)cr[n[i]]=r}function yi(n,t){h(n,function(n,i,r,u){r._w=r._w||{};t(n,r._w,r,u)})}function pi(n){return lr(n)?366:365}function lr(n){return n%4==0&&n%100!=0||n%400==0}function ei(n,i){return function(r){return null!=r?(ie(this,n,r),t.updateOffset(this,i),this):ar(this,n)}}function ar(n,t){return n.isValid()?n._d["get"+(n._isUTC?"UTC":"")+t]():NaN}function ie(n,t,i){n.isValid()&&!isNaN(i)&&("FullYear"===t&&lr(n.year())&&1===n.month()&&29===n.date()?n._d["set"+(n._isUTC?"UTC":"")+t](i,n.month(),vr(i,n.month())):n._d["set"+(n._isUTC?"UTC":"")+t](i))}function vr(n,t){if(isNaN(n)||isNaN(t))return NaN;var i,r=(t%(i=12)+i)%i;return n+=(t-r)/12,1===r?lr(n)?29:28:31-r%7%2}function fe(n,t){var i;if(!n.isValid())return n;if("string"==typeof t)if(/^\d+$/.test(t))t=f(t);else if(!dt(t=n.localeData().monthsParse(t)))return n;return i=Math.min(n.date(),vr(n.year(),t)),n._d["set"+(n._isUTC?"UTC":"")+"Month"](t,i),n}function ee(n){return null!=n?(fe(this,n),t.updateOffset(this,!0),this):ar(this,"Month")}function he(){function f(n,t){return t.length-n.length}for(var i,r=[],u=[],t=[],n=0;n<12;n++)i=ft([2e3,n]),r.push(this.monthsShort(i,"")),u.push(this.months(i,"")),t.push(this.months(i,"")),t.push(this.monthsShort(i,""));for(r.sort(f),u.sort(f),t.sort(f),n=0;n<12;n++)r[n]=gt(r[n]),u[n]=gt(u[n]);for(n=0;n<24;n++)t[n]=gt(t[n]);this._monthsRegex=new RegExp("^("+t.join("|")+")","i");this._monthsShortRegex=this._monthsRegex;this._monthsStrictRegex=new RegExp("^("+u.join("|")+")","i");this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function wi(n){var t=new Date(Date.UTC.apply(null,arguments));return n<100&&0<=n&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(n),t}function yr(n,t,i){var r=7+t-i;return-((7+wi(n,0,r).getUTCDay()-t)%7)+r-1}function ce(n,t,i,r,u){var e,o,f=1+7*(t-1)+(7+i-r)%7+yr(n,r,u);return f<=0?o=pi(e=n-1)+f:f>pi(n)?(e=n+1,o=f-pi(n)):(e=n,o=f),{year:e,dayOfYear:o}}function bi(n,t,i){var u,f,e=yr(n.year(),t,i),r=Math.floor((n.dayOfYear()-e-1)/7)+1;return r<1?u=r+ti(f=n.year()-1,t,i):r>ti(n.year(),t,i)?(u=r-ti(n.year(),t,i),f=n.year()+1):(f=n.year(),u=r),{week:u,year:f}}function ti(n,t,i){var r=yr(n,t,i),u=yr(n+1,t,i);return(pi(n)-r+u)/7}function lu(){function u(n,t){return t.length-n.length}for(var f,e,o,s,h=[],i=[],r=[],t=[],n=0;n<7;n++)f=ft([2e3,1]).day(n),e=this.weekdaysMin(f,""),o=this.weekdaysShort(f,""),s=this.weekdays(f,""),h.push(e),i.push(o),r.push(s),t.push(e),t.push(o),t.push(s);for(h.sort(u),i.sort(u),r.sort(u),t.sort(u),n=0;n<7;n++)i[n]=gt(i[n]),r[n]=gt(r[n]),t[n]=gt(t[n]);this._weekdaysRegex=new RegExp("^("+t.join("|")+")","i");this._weekdaysShortRegex=this._weekdaysRegex;this._weekdaysMinRegex=this._weekdaysRegex;this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i");this._weekdaysShortStrictRegex=new RegExp("^("+i.join("|")+")","i");this._weekdaysMinStrictRegex=new RegExp("^("+h.join("|")+")","i")}function au(){return this.hours()%12||12}function ae(n,t){r(n,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function ve(n,t){return t._meridiemParse}function pe(n){return n?n.toLowerCase().replace("_","-"):n}function pr(n){var t=null;if(!y[n]&&"undefined"!=typeof module&&module&&module.exports)try{t=ki._abbr;require("./locale/"+n);oi(t)}catch(n){}return y[n]}function oi(n,t){var i;return n&&((i=p(t)?pt(n):vu(n,t))?ki=i:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+n+" not found. Did you forget to load it?")),ki._abbr}function vu(n,t){if(null!==t){var r,i=ye;if(t.abbr=n,null!=y[n])pf("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=y[n]._config;else if(null!=t.parentLocale)if(null!=y[t.parentLocale])i=y[t.parentLocale]._config;else{if(null==(r=pr(t.parentLocale)))return di[t.parentLocale]||(di[t.parentLocale]=[]),di[t.parentLocale].push({name:n,config:t}),null;i=r._config}return y[n]=new ru(wf(i,t)),di[n]&&di[n].forEach(function(n){vu(n.name,n.config)}),oi(n),y[n]}return delete y[n],null}function pt(n){var t;if(n&&n._locale&&n._locale._abbr&&(n=n._locale._abbr),!n)return ki;if(!tt(n)){if(t=pr(n))return t;n=[n]}return function(n){for(var t,i,f,u,r=0;r<n.length;){for(t=(u=pe(n[r]).split("-")).length,i=(i=pe(n[r+1]))?i.split("-"):null;0<t;){if(f=pr(u.slice(0,t).join("-")))return f;if(i&&i.length>=t&&af(u,i,!0)>=t-1)break;t--}r++}return ki}(n)}function yu(n){var i,t=n._a;return t&&-2===u(n).overflow&&(i=t[lt]<0||11<t[lt]?lt:t[ot]<1||t[ot]>vr(t[it],t[lt])?ot:t[v]<0||24<t[v]||24===t[v]&&(0!==t[rt]||0!==t[at]||0!==t[ni])?v:t[rt]<0||59<t[rt]?rt:t[at]<0||59<t[at]?at:t[ni]<0||999<t[ni]?ni:-1,u(n)._overflowDayOfYear&&(i<it||ot<i)&&(i=ot),u(n)._overflowWeeks&&-1===i&&(i=os),u(n)._overflowWeekday&&-1===i&&(i=ss),u(n).overflow=i),n}function si(n,t,i){return null!=n?n:null!=t?t:i}function pu(n){var i,f,e,h,o,s=[],l,r;if(!n._d){for(l=n,r=new Date(t.now()),e=l._useUTC?[r.getUTCFullYear(),r.getUTCMonth(),r.getUTCDate()]:[r.getFullYear(),r.getMonth(),r.getDate()],n._w&&null==n._a[ot]&&null==n._a[lt]&&function(n){var t,o,f,i,r,e,h,s,l;null!=(t=n._w).GG||null!=t.W||null!=t.E?(r=1,e=4,o=si(t.GG,n._a[it],bi(c(),1,4).year),f=si(t.W,1),((i=si(t.E,1))<1||7<i)&&(s=!0)):(r=n._locale._week.dow,e=n._locale._week.doy,l=bi(c(),r,e),o=si(t.gg,n._a[it],l.year),f=si(t.w,l.week),null!=t.d?((i=t.d)<0||6<i)&&(s=!0):null!=t.e?(i=t.e+r,(t.e<0||6<t.e)&&(s=!0)):i=r);f<1||f>ti(o,r,e)?u(n)._overflowWeeks=!0:null!=s?u(n)._overflowWeekday=!0:(h=ce(o,f,i,r,e),n._a[it]=h.year,n._dayOfYear=h.dayOfYear)}(n),null!=n._dayOfYear&&(o=si(n._a[it],e[it]),(n._dayOfYear>pi(o)||0===n._dayOfYear)&&(u(n)._overflowDayOfYear=!0),f=wi(o,0,n._dayOfYear),n._a[lt]=f.getUTCMonth(),n._a[ot]=f.getUTCDate()),i=0;i<3&&null==n._a[i];++i)n._a[i]=s[i]=e[i];for(;i<7;i++)n._a[i]=s[i]=null==n._a[i]?2===i?1:0:n._a[i];24===n._a[v]&&0===n._a[rt]&&0===n._a[at]&&0===n._a[ni]&&(n._nextDay=!0,n._a[v]=0);n._d=(n._useUTC?wi:function(n,t,i,r,u,f,e){var o=new Date(n,t,i,r,u,f,e);return n<100&&0<=n&&isFinite(o.getFullYear())&&o.setFullYear(n),o}).apply(null,s);h=n._useUTC?n._d.getUTCDay():n._d.getDay();null!=n._tzm&&n._d.setUTCMinutes(n._d.getUTCMinutes()-n._tzm);n._nextDay&&(n._a[v]=24);n._w&&void 0!==n._w.d&&n._w.d!==h&&(u(n).weekdayMismatch=!0)}}function we(n){var t,r,o,e,f,s,h=n._i,i=ws.exec(h)||bs.exec(h);if(i){for(u(n).iso=!0,t=0,r=wr.length;t<r;t++)if(wr[t][1].exec(i[1])){e=wr[t][0];o=!1!==wr[t][2];break}if(null==e)return void(n._isValid=!1);if(i[3]){for(t=0,r=wu.length;t<r;t++)if(wu[t][1].exec(i[3])){f=(i[2]||" ")+wu[t][0];break}if(null==f)return void(n._isValid=!1)}if(!o&&null!=f)return void(n._isValid=!1);if(i[4]){if(!ks.exec(i[4]))return void(n._isValid=!1);s="Z"}n._f=e+(f||"")+(s||"");bu(n)}else n._isValid=!1}function gs(n,t,i,r,u,f){var e=[function(n){var t=parseInt(n,10);return t<=49?2e3+t:t<=999?1900+t:t}(n),ue.indexOf(t),parseInt(i,10),parseInt(r,10),parseInt(u,10)];return f&&e.push(parseInt(f,10)),e}function de(n){var r,i,f,t=be.exec(n._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")),e;if(t){if(e=gs(t[4],t[3],t[2],t[5],t[6],t[7]),r=t[1],i=e,f=n,r&&le.indexOf(r)!==new Date(i[0],i[1],i[2]).getDay()&&(u(f).weekdayMismatch=!0,!(f._isValid=!1)))return;n._a=e;n._tzm=function(n,t,i){if(n)return ke[n];if(t)return 0;var r=parseInt(i,10),u=r%100;return(r-u)/100*60+u}(t[8],t[9],t[10]);n._d=wi.apply(null,n._a);n._d.setUTCMinutes(n._d.getUTCMinutes()-n._tzm);u(n).rfc2822=!0}else n._isValid=!1}function bu(n){if(n._f!==t.ISO_8601)if(n._f!==t.RFC_2822){n._a=[];u(n).empty=!0;for(var r,f,c,o,a,h,i=""+n._i,p=i.length,y=0,s=kf(n._f,n._locale).match(bf)||[],e=0;e<s.length;e++)f=s[e],(r=(i.match(es(f,n))||[])[0])&&(0<(c=i.substr(0,i.indexOf(r))).length&&u(n).unusedInput.push(c),i=i.slice(i.indexOf(r)+r.length),y+=r.length),fi[f]?(r?u(n).empty=!1:u(n).unusedTokens.push(f),o=f,h=n,null!=(a=r)&&l(cr,o)&&cr[o](a,h._a,h,o)):n._strict&&!r&&u(n).unusedTokens.push(f);u(n).charsLeftOver=p-y;0<i.length&&u(n).unusedInput.push(i);n._a[v]<=12&&!0===u(n).bigHour&&0<n._a[v]&&(u(n).bigHour=void 0);u(n).parsedDateParts=n._a.slice(0);u(n).meridiem=n._meridiem;n._a[v]=function(n,t,i){var r;return null==i?t:null!=n.meridiemHour?n.meridiemHour(t,i):(null!=n.isPM&&((r=n.isPM(i))&&t<12&&(t+=12),r||12!==t||(t=0)),t)}(n._locale,n._a[v],n._meridiem);pu(n);yu(n)}else de(n);else we(n)}function ge(n){var r,f,i,s,e=n._i,o=n._f;return n._locale=n._locale||pt(n._l),null===e||void 0===o&&""===e?nr({nullInput:!0}):("string"==typeof e&&(n._i=e=n._locale.preparse(e)),yt(e)?new ai(yu(e)):(gi(e)?n._d=e:tt(o)?function(n){var t,e,f,r,i;if(0===n._f.length)return u(n).invalidFormat=!0,n._d=new Date(NaN);for(r=0;r<n._f.length;r++)i=0,t=tu({},n),null!=n._useUTC&&(t._useUTC=n._useUTC),t._f=n._f[r],bu(t),nu(t)&&(i+=u(t).charsLeftOver,i+=10*u(t).unusedTokens.length,u(t).score=i,(null==f||i<f)&&(f=i,e=t));vt(n,e||t)}(n):o?bu(n):p(f=(r=n)._i)?r._d=new Date(t.now()):gi(f)?r._d=new Date(f.valueOf()):"string"==typeof f?(i=r,null===(s=ds.exec(i._i))?(we(i),!1===i._isValid&&(delete i._isValid,de(i),!1===i._isValid&&(delete i._isValid,t.createFromInputFallback(i)))):i._d=new Date(+s[1])):tt(f)?(r._a=lf(f.slice(0),function(n){return parseInt(n,10)}),pu(r)):li(f)?function(n){if(!n._d){var t=uu(n._i);n._a=lf([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],function(n){return n&&parseInt(n,10)});pu(n)}}(r):dt(f)?r._d=new Date(f):t.createFromInputFallback(r),nu(n)||(n._d=null),n))}function no(n,t,i,r,u){var e,f={};return!0!==i&&!1!==i||(r=i,i=void 0),(li(n)&&function(n){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(n).length;for(var t in n)if(n.hasOwnProperty(t))return!1;return!0}(n)||tt(n)&&0===n.length)&&(n=void 0),f._isAMomentObject=!0,f._useUTC=f._isUTC=u,f._l=i,f._i=n,f._f=t,f._strict=r,(e=new ai(yu(ge(f))))._nextDay&&(e.add(1,"d"),e._nextDay=void 0),e}function c(n,t,i,r){return no(n,t,i,r,!1)}function ro(n,t){var r,i;if(1===t.length&&tt(t[0])&&(t=t[0]),!t.length)return c();for(r=t[0],i=1;i<t.length;++i)t[i].isValid()&&!t[i][n](r)||(r=t[i]);return r}function br(n){var t=uu(n),i=t.year||0,r=t.quarter||0,u=t.month||0,e=t.week||0,o=t.day||0,s=t.hour||0,h=t.minute||0,c=t.second||0,l=t.millisecond||0;this._isValid=function(n){var i,r,t;for(i in n)if(-1===a.call(hi,i)||null!=n[i]&&isNaN(n[i]))return!1;for(r=!1,t=0;t<hi.length;++t)if(n[hi[t]]){if(r)return!1;parseFloat(n[hi[t]])!==f(n[hi[t]])&&(r=!0)}return!0}(t);this._milliseconds=+l+1e3*c+6e4*h+36e5*s;this._days=+o+7*e;this._months=+u+3*r+12*i;this._data={};this._locale=pt();this._bubble()}function ku(n){return n instanceof br}function du(n){return n<0?-1*Math.round(-1*n):Math.round(n)}function uo(n,t){r(n,0,0,function(){var n=this.utcOffset(),i="+";return n<0&&(n=-n,i="-"),i+ct(~~(n/60),2)+t+ct(~~n%60,2)})}function gu(n,t){var u=(t||"").match(n),i,r;return null===u?null:(i=((u[u.length-1]||[])+"").match(fo)||["-",0,0],r=60*i[1]+f(i[2]),0===r?0:"+"===i[0]?r:-r)}function nf(n,i){var r,u;return i._isUTC?(r=i.clone(),u=(yt(n)||gi(n)?n.valueOf():c(n).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+u),t.updateOffset(r,!1),r):c(n).local()}function tf(n){return 15*-Math.round(n._d.getTimezoneOffset()/15)}function eo(){return!!this.isValid()&&this._isUTC&&0===this._offset}function ut(n,t){var u,e,o,r=n,i=null;return ku(n)?r={ms:n._milliseconds,d:n._days,M:n._months}:dt(n)?(r={},t?r[t]=n:r.milliseconds=n):(i=oo.exec(n))?(u="-"===i[1]?-1:1,r={y:0,d:f(i[ot])*u,h:f(i[v])*u,m:f(i[rt])*u,s:f(i[at])*u,ms:f(du(1e3*i[ni]))*u}):(i=so.exec(n))?(u="-"===i[1]?-1:(i[1],1),r={y:ii(i[2],u),M:ii(i[3],u),w:ii(i[4],u),d:ii(i[5],u),h:ii(i[6],u),m:ii(i[7],u),s:ii(i[8],u)}):null==r?r={}:"object"==typeof r&&("from"in r||"to"in r)&&(o=function(n,t){var i;return!n.isValid()||!t.isValid()?{milliseconds:0,months:0}:(t=nf(t,n),n.isBefore(t)?i=ho(n,t):((i=ho(t,n)).milliseconds=-i.milliseconds,i.months=-i.months),i)}(c(r.from),c(r.to)),(r={}).ms=o.milliseconds,r.M=o.months),e=new br(r),ku(n)&&l(n,"_locale")&&(e._locale=n._locale),e}function ii(n,t){var i=n&&parseFloat(n.replace(",","."));return(isNaN(i)?0:i)*t}function ho(n,t){var i={milliseconds:0,months:0};return i.months=t.month()-n.month()+12*(t.year()-n.year()),n.clone().add(i.months,"M").isAfter(t)&&--i.months,i.milliseconds=+t-+n.clone().add(i.months,"M"),i}function co(n,t){return function(i,r){var u;return null===r||isNaN(+r)||(pf(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),u=i,i=r,r=u),lo(this,ut(i="string"==typeof i?+i:i,r),n),this}}function lo(n,i,r,u){var o=i._milliseconds,f=du(i._days),e=du(i._months);n.isValid()&&(u=null==u||u,e&&fe(n,ar(n,"Month")+e*r),f&&ie(n,"Date",ar(n,"Date")+f*r),o&&n._d.setTime(n._d.valueOf()+o*r),u&&t.updateOffset(n,f||e))}function rf(n,t){var r=12*(t.year()-n.year())+(t.month()-n.month()),i=n.clone().add(r,"months");return-(r+(t-i<0?(t-i)/(i-n.clone().add(r-1,"months")):(t-i)/(n.clone().add(r+1,"months")-i)))||0}function yo(n){var t;return void 0===n?this._locale._abbr:(null!=(t=pt(n))&&(this._locale=t),this)}function po(){return this._locale}function kr(n,t){r(0,[n,n.length],0,t)}function wo(n,t,i,r,u){var f;return null==n?bi(this,r,u).year:((f=ti(n,r,u))<t&&(t=f),function(n,t,i,r,u){var e=ce(n,t,i,r,u),f=wi(e.year,0,e.dayOfYear);return this.year(f.getUTCFullYear()),this.month(f.getUTCMonth()),this.date(f.getUTCDate()),this}.call(this,n,t,i,r,u))}function nh(n,t){t[ni]=f(1e3*("0."+n))}function ns(n){return n}function dr(n,t,i,r){var u=pt(),f=ft().set(r,t);return u[i](f,n)}function ts(n,t,i){if(dt(n)&&(t=n,n=void 0),n=n||"",null!=t)return dr(n,t,i,"month");for(var u=[],r=0;r<12;r++)u[r]=dr(n,r,i,"month");return u}function ef(n,t,i,r){var u,o,f,e;if("boolean"==typeof n?dt(t)&&(i=t,t=void 0):(t=n,n=!1,dt(i=t)&&(i=t,t=void 0)),t=t||"",o=pt(),f=n?o._week.dow:0,null!=i)return dr(t,(i+f)%7,r,"day");for(e=[],u=0;u<7;u++)e[u]=dr(t,(u+f)%7,r,"day");return e}function is(n,t,i,r){var u=ut(t,i);return n._milliseconds+=r*u._milliseconds,n._days+=r*u._days,n._months+=r*u._months,n._bubble()}function rs(n){return n<0?Math.floor(n):Math.ceil(n)}function us(n){return 4800*n/146097}function of(n){return 146097*n/4800}function bt(n){return function(){return this.as(n)}}function ri(n){return function(){return this.isValid()?this._data[n]:NaN}}function ci(n){return(0<n)-(n<0)||+n}function gr(){if(!this.isValid())return this.localeData().invalidDate();var i,o,t=sf(this._milliseconds)/1e3,v=sf(this._days),s=sf(this._months);o=d((i=d(t/60))/60);t%=60;i%=60;var h=d(s/12),c=s%=12,l=v,r=o,u=i,f=t?t.toFixed(3).replace(/\.?0+$/,""):"",n=this.asSeconds();if(!n)return"P0D";var y=n<0?"-":"",a=ci(this._months)!==ci(n)?"-":"",p=ci(this._days)!==ci(n)?"-":"",e=ci(this._milliseconds)!==ci(n)?"-":"";return y+"P"+(h?a+h+"Y":"")+(c?a+c+"M":"")+(l?p+l+"D":"")+(r||u||f?"T":"")+(r?e+r+"H":"")+(u?e+u+"M":"")+(f?e+f+"S":"")}var hf,cf,tr,ir,yf,iu,ui,fu,cr,a,cu,oe,se,be,ke,to,io,hi,fo,oo,so,ao,vo,uf,ff,bo,wt,ko,go,n,o,st,e;cf=Array.prototype.some?Array.prototype.some:function(n){for(var i=Object(this),r=i.length>>>0,t=0;t<r;t++)if(t in i&&n.call(this,i[t],t,i))return!0;return!1};tr=t.momentProperties=[];ir=!1;iu={};t.suppressDeprecationWarnings=!1;t.deprecationHandler=null;yf=Object.keys?Object.keys:function(n){var t,i=[];for(t in n)l(n,t)&&i.push(t);return i};ui={};fu={};var bf=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,rr=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,eu={},fi={};var df=/\d/,k=/\d\d/,gf=/\d{3}/,ou=/\d{4}/,fr=/[+-]?\d{6}/,s=/\d\d?/,ne=/\d\d\d\d?/,te=/\d\d\d\d\d\d?/,er=/\d{1,3}/,su=/\d{1,4}/,or=/[+-]?\d{1,6}/,sr=/[+-]?\d+/,fs=/Z|[+-]\d\d:?\d\d/gi,hr=/Z|[+-]\d\d(?::?\d\d)?/gi,vi=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,hu={};cr={};var it=0,lt=1,ot=2,v=3,rt=4,at=5,ni=6,os=7,ss=8;r("Y",0,0,function(){var n=this.year();return n<=9999?""+n:"+"+n});r(0,["YY",2],0,function(){return this.year()%100});r(0,["YYYY",4],0,"year");r(0,["YYYYY",5],0,"year");r(0,["YYYYYY",6,!0],0,"year");w("year","y");b("year",1);i("Y",sr);i("YY",s,k);i("YYYY",su,ou);i("YYYYY",or,fr);i("YYYYYY",or,fr);h(["YYYYY","YYYYYY"],it);h("YYYY",function(n,i){i[it]=2===n.length?t.parseTwoDigitYear(n):f(n)});h("YY",function(n,i){i[it]=t.parseTwoDigitYear(n)});h("Y",function(n,t){t[it]=parseInt(n,10)});t.parseTwoDigitYear=function(n){return f(n)+(68<f(n)?1900:2e3)};cu=ei("FullYear",!0);a=Array.prototype.indexOf?Array.prototype.indexOf:function(n){for(var t=0;t<this.length;++t)if(this[t]===n)return t;return-1};r("M",["MM",2],"Mo",function(){return this.month()+1});r("MMM",0,0,function(n){return this.localeData().monthsShort(this,n)});r("MMMM",0,0,function(n){return this.localeData().months(this,n)});w("month","M");b("month",8);i("M",s);i("MM",s,k);i("MMM",function(n,t){return t.monthsShortRegex(n)});i("MMMM",function(n,t){return t.monthsRegex(n)});h(["M","MM"],function(n,t){t[lt]=f(n)-1});h(["MMM","MMMM"],function(n,t,i,r){var f=i._locale.monthsParse(n,r,i._strict);null!=f?t[lt]=f:u(i).invalidMonth=n});var re=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,hs="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ue="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");oe=vi;se=vi;r("w",["ww",2],"wo","week");r("W",["WW",2],"Wo","isoWeek");w("week","w");w("isoWeek","W");b("week",5);b("isoWeek",5);i("w",s);i("ww",s,k);i("W",s);i("WW",s,k);yi(["w","ww","W","WW"],function(n,t,i,r){t[r.substr(0,1)]=f(n)});r("d",0,"do","day");r("dd",0,0,function(n){return this.localeData().weekdaysMin(this,n)});r("ddd",0,0,function(n){return this.localeData().weekdaysShort(this,n)});r("dddd",0,0,function(n){return this.localeData().weekdays(this,n)});r("e",0,0,"weekday");r("E",0,0,"isoWeekday");w("day","d");w("weekday","e");w("isoWeekday","E");b("day",11);b("weekday",11);b("isoWeekday",11);i("d",s);i("e",s);i("E",s);i("dd",function(n,t){return t.weekdaysMinRegex(n)});i("ddd",function(n,t){return t.weekdaysShortRegex(n)});i("dddd",function(n,t){return t.weekdaysRegex(n)});yi(["dd","ddd","dddd"],function(n,t,i,r){var f=i._locale.weekdaysParse(n,r,i._strict);null!=f?t.d=f:u(i).invalidWeekday=n});yi(["d","e","E"],function(n,t,i,r){t[r]=f(n)});var cs="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),le="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),ls="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),as=vi,vs=vi,ys=vi;r("H",["HH",2],0,"hour");r("h",["hh",2],0,au);r("k",["kk",2],0,function(){return this.hours()||24});r("hmm",0,0,function(){return""+au.apply(this)+ct(this.minutes(),2)});r("hmmss",0,0,function(){return""+au.apply(this)+ct(this.minutes(),2)+ct(this.seconds(),2)});r("Hmm",0,0,function(){return""+this.hours()+ct(this.minutes(),2)});r("Hmmss",0,0,function(){return""+this.hours()+ct(this.minutes(),2)+ct(this.seconds(),2)});ae("a",!0);ae("A",!1);w("hour","h");b("hour",13);i("a",ve);i("A",ve);i("H",s);i("h",s);i("k",s);i("HH",s,k);i("hh",s,k);i("kk",s,k);i("hmm",ne);i("hmmss",te);i("Hmm",ne);i("Hmmss",te);h(["H","HH"],v);h(["k","kk"],function(n,t){var i=f(n);t[v]=24===i?0:i});h(["a","A"],function(n,t,i){i._isPm=i._locale.isPM(n);i._meridiem=n});h(["h","hh"],function(n,t,i){t[v]=f(n);u(i).bigHour=!0});h("hmm",function(n,t,i){var r=n.length-2;t[v]=f(n.substr(0,r));t[rt]=f(n.substr(r));u(i).bigHour=!0});h("hmmss",function(n,t,i){var r=n.length-4,e=n.length-2;t[v]=f(n.substr(0,r));t[rt]=f(n.substr(r,2));t[at]=f(n.substr(e));u(i).bigHour=!0});h("Hmm",function(n,t){var i=n.length-2;t[v]=f(n.substr(0,i));t[rt]=f(n.substr(i))});h("Hmmss",function(n,t){var i=n.length-4,r=n.length-2;t[v]=f(n.substr(0,i));t[rt]=f(n.substr(i,2));t[at]=f(n.substr(r))});var ki,ps=ei("Hours",!0),ye={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:hs,monthsShort:ue,week:{dow:0,doy:6},weekdays:cs,weekdaysMin:ls,weekdaysShort:le,meridiemParse:/[ap]\.?m?\.?/i},y={},di={};var ws=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,bs=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ks=/Z|[+-]\d\d(?::?\d\d)?/,wr=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],wu=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],ds=/^\/?Date\((\-?\d+)/i;for(be=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,ke={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480},t.createFromInputFallback=g("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(n){n._d=new Date(n._i+(n._useUTC?" UTC":""))}),t.ISO_8601=function(){},t.RFC_2822=function(){},to=g("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var n=c.apply(null,arguments);return this.isValid()&&n.isValid()?n<this?this:n:nr()}),io=g("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var n=c.apply(null,arguments);return this.isValid()&&n.isValid()?this<n?this:n:nr()}),hi=["year","quarter","month","week","day","hour","minute","second","millisecond"],uo("Z",":"),uo("ZZ",""),i("Z",hr),i("ZZ",hr),h(["Z","ZZ"],function(n,t,i){i._useUTC=!0;i._tzm=gu(hr,n)}),fo=/([\+\-]|\d\d)/gi,t.updateOffset=function(){},oo=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,so=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,ut.fn=br.prototype,ut.invalid=function(){return ut(NaN)},ao=co(1,"add"),vo=co(-1,"subtract"),t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",t.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]",uf=g("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(n){return void 0===n?this.localeData():this.locale(n)}),r(0,["gg",2],0,function(){return this.weekYear()%100}),r(0,["GG",2],0,function(){return this.isoWeekYear()%100}),kr("gggg","weekYear"),kr("ggggg","weekYear"),kr("GGGG","isoWeekYear"),kr("GGGGG","isoWeekYear"),w("weekYear","gg"),w("isoWeekYear","GG"),b("weekYear",1),b("isoWeekYear",1),i("G",sr),i("g",sr),i("GG",s,k),i("gg",s,k),i("GGGG",su,ou),i("gggg",su,ou),i("GGGGG",or,fr),i("ggggg",or,fr),yi(["gggg","ggggg","GGGG","GGGGG"],function(n,t,i,r){t[r.substr(0,2)]=f(n)}),yi(["gg","GG"],function(n,i,r,u){i[u]=t.parseTwoDigitYear(n)}),r("Q",0,"Qo","quarter"),w("quarter","Q"),b("quarter",7),i("Q",df),h("Q",function(n,t){t[lt]=3*(f(n)-1)}),r("D",["DD",2],"Do","date"),w("date","D"),b("date",9),i("D",s),i("DD",s,k),i("Do",function(n,t){return n?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),h(["D","DD"],ot),h("Do",function(n,t){t[ot]=f(n.match(s)[0])}),ff=ei("Date",!0),r("DDD",["DDDD",3],"DDDo","dayOfYear"),w("dayOfYear","DDD"),b("dayOfYear",4),i("DDD",er),i("DDDD",gf),h(["DDD","DDDD"],function(n,t,i){i._dayOfYear=f(n)}),r("m",["mm",2],0,"minute"),w("minute","m"),b("minute",14),i("m",s),i("mm",s,k),h(["m","mm"],rt),bo=ei("Minutes",!1),r("s",["ss",2],0,"second"),w("second","s"),b("second",15),i("s",s),i("ss",s,k),h(["s","ss"],at),ko=ei("Seconds",!1),r("S",0,0,function(){return~~(this.millisecond()/100)}),r(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),r(0,["SSS",3],0,"millisecond"),r(0,["SSSS",4],0,function(){return 10*this.millisecond()}),r(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),r(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),r(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),r(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),r(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),w("millisecond","ms"),b("millisecond",16),i("S",er,df),i("SS",er,k),i("SSS",er,gf),wt="SSSS";wt.length<=9;wt+="S")i(wt,/\d+/);for(wt="S";wt.length<=9;wt+="S")h(wt,nh);go=ei("Milliseconds",!1);r("z",0,0,"zoneAbbr");r("zz",0,0,"zoneName");n=ai.prototype;n.add=ao;n.calendar=function(n,i){var u=n||c(),f=nf(u,this).startOf("day"),r=t.calendarFormat(this,f)||"sameElse",e=i&&(et(i[r])?i[r].call(this,u):i[r]);return this.format(e||this.localeData().calendar(r,this,c(u)))};n.clone=function(){return new ai(this)};n.diff=function(n,t,i){var r,f,u;if(!this.isValid())return NaN;if(!(r=nf(n,this)).isValid())return NaN;switch(f=6e4*(r.utcOffset()-this.utcOffset()),t=nt(t)){case"year":u=rf(this,r)/12;break;case"month":u=rf(this,r);break;case"quarter":u=rf(this,r)/3;break;case"second":u=(this-r)/1e3;break;case"minute":u=(this-r)/6e4;break;case"hour":u=(this-r)/36e5;break;case"day":u=(this-r-f)/864e5;break;case"week":u=(this-r-f)/6048e5;break;default:u=this-r}return i?u:d(u)};n.endOf=function(n){return void 0===(n=nt(n))||"millisecond"===n?this:("date"===n&&(n="day"),this.startOf(n).add(1,"isoWeek"===n?"week":n).subtract(1,"ms"))};n.format=function(n){n||(n=this.isUtc()?t.defaultFormatUtc:t.defaultFormat);var i=ur(this,n);return this.localeData().postformat(i)};n.from=function(n,t){return this.isValid()&&(yt(n)&&n.isValid()||c(n).isValid())?ut({to:this,from:n}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()};n.fromNow=function(n){return this.from(c(),n)};n.to=function(n,t){return this.isValid()&&(yt(n)&&n.isValid()||c(n).isValid())?ut({from:this,to:n}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()};n.toNow=function(n){return this.to(c(),n)};n.get=function(n){return et(this[n=nt(n)])?this[n]():this};n.invalidAt=function(){return u(this).overflow};n.isAfter=function(n,t){var i=yt(n)?n:c(n);return!(!this.isValid()||!i.isValid())&&("millisecond"===(t=nt(p(t)?"millisecond":t))?this.valueOf()>i.valueOf():i.valueOf()<this.clone().startOf(t).valueOf())};n.isBefore=function(n,t){var i=yt(n)?n:c(n);return!(!this.isValid()||!i.isValid())&&("millisecond"===(t=nt(p(t)?"millisecond":t))?this.valueOf()<i.valueOf():this.clone().endOf(t).valueOf()<i.valueOf())};n.isBetween=function(n,t,i,r){return("("===(r=r||"()")[0]?this.isAfter(n,i):!this.isBefore(n,i))&&(")"===r[1]?this.isBefore(t,i):!this.isAfter(t,i))};n.isSame=function(n,t){var i,r=yt(n)?n:c(n);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=nt(t||"millisecond"))?this.valueOf()===r.valueOf():(i=r.valueOf(),this.clone().startOf(t).valueOf()<=i&&i<=this.clone().endOf(t).valueOf()))};n.isSameOrAfter=function(n,t){return this.isSame(n,t)||this.isAfter(n,t)};n.isSameOrBefore=function(n,t){return this.isSame(n,t)||this.isBefore(n,t)};n.isValid=function(){return nu(this)};n.lang=uf;n.locale=yo;n.localeData=po;n.max=io;n.min=to;n.parsingFlags=function(){return vt({},u(this))};n.set=function(n,t){if("object"==typeof n)for(var r=function(n){var t=[];for(var i in n)t.push({unit:i,priority:fu[i]});return t.sort(function(n,t){return n.priority-t.priority}),t}(n=uu(n)),i=0;i<r.length;i++)this[r[i].unit](n[r[i].unit]);else if(et(this[n=nt(n)]))return this[n](t);return this};n.startOf=function(n){switch(n=nt(n)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===n&&this.weekday(0),"isoWeek"===n&&this.isoWeekday(1),"quarter"===n&&this.month(3*Math.floor(this.month()/3)),this};n.subtract=vo;n.toArray=function(){var n=this;return[n.year(),n.month(),n.date(),n.hour(),n.minute(),n.second(),n.millisecond()]};n.toObject=function(){var n=this;return{years:n.year(),months:n.month(),date:n.date(),hours:n.hours(),minutes:n.minutes(),seconds:n.seconds(),milliseconds:n.milliseconds()}};n.toDate=function(){return new Date(this.valueOf())};n.toISOString=function(n){if(!this.isValid())return null;var i=!0!==n,t=i?this.clone().utc():this;return t.year()<0||9999<t.year()?ur(t,i?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):et(Date.prototype.toISOString)?i?this.toDate().toISOString():new Date(this.valueOf()+6e4*this.utcOffset()).toISOString().replace("Z",ur(t,"Z")):ur(t,i?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")};n.inspect=function(){var n,t;if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";n="moment";t="";this.isLocal()||(n=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var i="["+n+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",u=t+'[")]';return this.format(i+r+"-MM-DD[T]HH:mm:ss.SSS"+u)};n.toJSON=function(){return this.isValid()?this.toISOString():null};n.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")};n.unix=function(){return Math.floor(this.valueOf()/1e3)};n.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)};n.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}};n.year=cu;n.isLeapYear=function(){return lr(this.year())};n.weekYear=function(n){return wo.call(this,n,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)};n.isoWeekYear=function(n){return wo.call(this,n,this.isoWeek(),this.isoWeekday(),1,4)};n.quarter=n.quarters=function(n){return null==n?Math.ceil((this.month()+1)/3):this.month(3*(n-1)+this.month()%3)};n.month=ee;n.daysInMonth=function(){return vr(this.year(),this.month())};n.week=n.weeks=function(n){var t=this.localeData().week(this);return null==n?t:this.add(7*(n-t),"d")};n.isoWeek=n.isoWeeks=function(n){var t=bi(this,1,4).week;return null==n?t:this.add(7*(n-t),"d")};n.weeksInYear=function(){var n=this.localeData()._week;return ti(this.year(),n.dow,n.doy)};n.isoWeeksInYear=function(){return ti(this.year(),1,4)};n.date=ff;n.day=n.days=function(n){if(!this.isValid())return null!=n?this:NaN;var t,i,r=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=n?(t=n,i=this.localeData(),n="string"!=typeof t?t:isNaN(t)?"number"==typeof(t=i.weekdaysParse(t))?t:null:parseInt(t,10),this.add(n-r,"d")):r};n.weekday=function(n){if(!this.isValid())return null!=n?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==n?t:this.add(n-t,"d")};n.isoWeekday=function(n){var i,t,r;return this.isValid()?null!=n?(i=(t=n,r=this.localeData(),"string"==typeof t?r.weekdaysParse(t)%7||7:isNaN(t)?null:t),this.day(this.day()%7?i:i-7)):this.day()||7:null!=n?this:NaN};n.dayOfYear=function(n){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==n?t:this.add(n-t,"d")};n.hour=n.hours=ps;n.minute=n.minutes=bo;n.second=n.seconds=ko;n.millisecond=n.milliseconds=go;n.utcOffset=function(n,i,r){var u,f=this._offset||0;if(!this.isValid())return null!=n?this:NaN;if(null!=n){if("string"==typeof n){if(null===(n=gu(hr,n)))return this}else Math.abs(n)<16&&!r&&(n*=60);return!this._isUTC&&i&&(u=tf(this)),this._offset=n,this._isUTC=!0,null!=u&&this.add(u,"m"),f!==n&&(!i||this._changeInProgress?lo(this,ut(n-f,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?f:tf(this)};n.utc=function(n){return this.utcOffset(0,n)};n.local=function(n){return this._isUTC&&(this.utcOffset(0,n),this._isUTC=!1,n&&this.subtract(tf(this),"m")),this};n.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var n=gu(fs,this._i);null!=n?this.utcOffset(n):this.utcOffset(0,!0)}return this};n.hasAlignedHourOffset=function(n){return!!this.isValid()&&(n=n?c(n).utcOffset():0,(this.utcOffset()-n)%60==0)};n.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()};n.isLocal=function(){return!!this.isValid()&&!this._isUTC};n.isUtcOffset=function(){return!!this.isValid()&&this._isUTC};n.isUtc=eo;n.isUTC=eo;n.zoneAbbr=function(){return this._isUTC?"UTC":""};n.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""};n.dates=g("dates accessor is deprecated. Use date instead.",ff);n.months=g("months accessor is deprecated. Use month instead",ee);n.years=g("years accessor is deprecated. Use year instead",cu);n.zone=g("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(n,t){return null!=n?("string"!=typeof n&&(n=-n),this.utcOffset(n,t),this):-this.utcOffset()});n.isDSTShifted=g("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){var n,t;return p(this._isDSTShifted)?(n={},(tu(n,this),(n=ge(n))._a)?(t=n._isUTC?ft(n._a):c(n._a),this._isDSTShifted=this.isValid()&&0<af(n._a,t.toArray())):this._isDSTShifted=!1,this._isDSTShifted):this._isDSTShifted});o=ru.prototype;o.calendar=function(n,t,i){var r=this._calendar[n]||this._calendar.sameElse;return et(r)?r.call(t,i):r};o.longDateFormat=function(n){var t=this._longDateFormat[n],i=this._longDateFormat[n.toUpperCase()];return t||!i?t:(this._longDateFormat[n]=i.replace(/MMMM|MM|DD|dddd/g,function(n){return n.slice(1)}),this._longDateFormat[n])};o.invalidDate=function(){return this._invalidDate};o.ordinal=function(n){return this._ordinal.replace("%d",n)};o.preparse=ns;o.postformat=ns;o.relativeTime=function(n,t,i,r){var u=this._relativeTime[i];return et(u)?u(n,t,i,r):u.replace(/%d/i,n)};o.pastFuture=function(n,t){var i=this._relativeTime[0<n?"future":"past"];return et(i)?i(t):i.replace(/%s/i,t)};o.set=function(n){var t;for(var i in n)et(t=n[i])?this[i]=t:this["_"+i]=t;this._config=n;this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)};o.months=function(n,t){return n?tt(this._months)?this._months[n.month()]:this._months[(this._months.isFormat||re).test(t)?"format":"standalone"][n.month()]:tt(this._months)?this._months:this._months.standalone};o.monthsShort=function(n,t){return n?tt(this._monthsShort)?this._monthsShort[n.month()]:this._monthsShort[re.test(t)?"format":"standalone"][n.month()]:tt(this._monthsShort)?this._monthsShort:this._monthsShort.standalone};o.monthsParse=function(n,t,i){var r,u,f;if(this._monthsParseExact)return function(n,t,i){var u,r,e,f=n.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],u=0;u<12;++u)e=ft([2e3,u]),this._shortMonthsParse[u]=this.monthsShort(e,"").toLocaleLowerCase(),this._longMonthsParse[u]=this.months(e,"").toLocaleLowerCase();return i?"MMM"===t?-1!==(r=a.call(this._shortMonthsParse,f))?r:null:-1!==(r=a.call(this._longMonthsParse,f))?r:null:"MMM"===t?-1!==(r=a.call(this._shortMonthsParse,f))?r:-1!==(r=a.call(this._longMonthsParse,f))?r:null:-1!==(r=a.call(this._longMonthsParse,f))?r:-1!==(r=a.call(this._shortMonthsParse,f))?r:null}.call(this,n,t,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++)if((u=ft([2e3,r]),i&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(u,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(u,"").replace(".","")+"$","i")),i||this._monthsParse[r]||(f="^"+this.months(u,"")+"|^"+this.monthsShort(u,""),this._monthsParse[r]=new RegExp(f.replace(".",""),"i")),i&&"MMMM"===t&&this._longMonthsParse[r].test(n))||i&&"MMM"===t&&this._shortMonthsParse[r].test(n)||!i&&this._monthsParse[r].test(n))return r};o.monthsRegex=function(n){return this._monthsParseExact?(l(this,"_monthsRegex")||he.call(this),n?this._monthsStrictRegex:this._monthsRegex):(l(this,"_monthsRegex")||(this._monthsRegex=se),this._monthsStrictRegex&&n?this._monthsStrictRegex:this._monthsRegex)};o.monthsShortRegex=function(n){return this._monthsParseExact?(l(this,"_monthsRegex")||he.call(this),n?this._monthsShortStrictRegex:this._monthsShortRegex):(l(this,"_monthsShortRegex")||(this._monthsShortRegex=oe),this._monthsShortStrictRegex&&n?this._monthsShortStrictRegex:this._monthsShortRegex)};o.week=function(n){return bi(n,this._week.dow,this._week.doy).week};o.firstDayOfYear=function(){return this._week.doy};o.firstDayOfWeek=function(){return this._week.dow};o.weekdays=function(n,t){return n?tt(this._weekdays)?this._weekdays[n.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][n.day()]:tt(this._weekdays)?this._weekdays:this._weekdays.standalone};o.weekdaysMin=function(n){return n?this._weekdaysMin[n.day()]:this._weekdaysMin};o.weekdaysShort=function(n){return n?this._weekdaysShort[n.day()]:this._weekdaysShort};o.weekdaysParse=function(n,t,i){var r,u,f;if(this._weekdaysParseExact)return function(n,t,i){var f,r,e,u=n.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],f=0;f<7;++f)e=ft([2e3,1]).day(f),this._minWeekdaysParse[f]=this.weekdaysMin(e,"").toLocaleLowerCase(),this._shortWeekdaysParse[f]=this.weekdaysShort(e,"").toLocaleLowerCase(),this._weekdaysParse[f]=this.weekdays(e,"").toLocaleLowerCase();return i?"dddd"===t?-1!==(r=a.call(this._weekdaysParse,u))?r:null:"ddd"===t?-1!==(r=a.call(this._shortWeekdaysParse,u))?r:null:-1!==(r=a.call(this._minWeekdaysParse,u))?r:null:"dddd"===t?-1!==(r=a.call(this._weekdaysParse,u))?r:-1!==(r=a.call(this._shortWeekdaysParse,u))?r:-1!==(r=a.call(this._minWeekdaysParse,u))?r:null:"ddd"===t?-1!==(r=a.call(this._shortWeekdaysParse,u))?r:-1!==(r=a.call(this._weekdaysParse,u))?r:-1!==(r=a.call(this._minWeekdaysParse,u))?r:null:-1!==(r=a.call(this._minWeekdaysParse,u))?r:-1!==(r=a.call(this._weekdaysParse,u))?r:-1!==(r=a.call(this._shortWeekdaysParse,u))?r:null}.call(this,n,t,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++)if((u=ft([2e3,1]).day(r),i&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(u,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(u,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(u,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(f="^"+this.weekdays(u,"")+"|^"+this.weekdaysShort(u,"")+"|^"+this.weekdaysMin(u,""),this._weekdaysParse[r]=new RegExp(f.replace(".",""),"i")),i&&"dddd"===t&&this._fullWeekdaysParse[r].test(n))||i&&"ddd"===t&&this._shortWeekdaysParse[r].test(n)||i&&"dd"===t&&this._minWeekdaysParse[r].test(n)||!i&&this._weekdaysParse[r].test(n))return r};o.weekdaysRegex=function(n){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||lu.call(this),n?this._weekdaysStrictRegex:this._weekdaysRegex):(l(this,"_weekdaysRegex")||(this._weekdaysRegex=as),this._weekdaysStrictRegex&&n?this._weekdaysStrictRegex:this._weekdaysRegex)};o.weekdaysShortRegex=function(n){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||lu.call(this),n?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(l(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=vs),this._weekdaysShortStrictRegex&&n?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)};o.weekdaysMinRegex=function(n){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||lu.call(this),n?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(l(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=ys),this._weekdaysMinStrictRegex&&n?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)};o.isPM=function(n){return"p"===(n+"").toLowerCase().charAt(0)};o.meridiem=function(n,t,i){return 11<n?i?"pm":"PM":i?"am":"AM"};oi("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(n){var t=n%10;return n+(1===f(n%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}});t.lang=g("moment.lang is deprecated. Use moment.locale instead.",oi);t.langData=g("moment.langData is deprecated. Use moment.localeData instead.",pt);st=Math.abs;var th=bt("ms"),ih=bt("s"),rh=bt("m"),uh=bt("h"),fh=bt("d"),eh=bt("w"),oh=bt("M"),sh=bt("y");var hh=ri("milliseconds"),ch=ri("seconds"),lh=ri("minutes"),ah=ri("hours"),vh=ri("days"),yh=ri("months"),ph=ri("years"),kt=Math.round,ht={ss:44,s:45,m:45,h:22,d:26,M:11},sf=Math.abs;return e=br.prototype,e.isValid=function(){return this._isValid},e.abs=function(){var n=this._data;return this._milliseconds=st(this._milliseconds),this._days=st(this._days),this._months=st(this._months),n.milliseconds=st(n.milliseconds),n.seconds=st(n.seconds),n.minutes=st(n.minutes),n.hours=st(n.hours),n.months=st(n.months),n.years=st(n.years),this},e.add=function(n,t){return is(this,n,t,1)},e.subtract=function(n,t){return is(this,n,t,-1)},e.as=function(n){if(!this.isValid())return NaN;var t,r,i=this._milliseconds;if("month"===(n=nt(n))||"year"===n)return t=this._days+i/864e5,r=this._months+us(t),"month"===n?r:r/12;switch(t=this._days+Math.round(of(this._months)),n){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return 24*t+i/36e5;case"minute":return 1440*t+i/6e4;case"second":return 86400*t+i/1e3;case"millisecond":return Math.floor(864e5*t)+i;default:throw new Error("Unknown unit "+n);}},e.asMilliseconds=th,e.asSeconds=ih,e.asMinutes=rh,e.asHours=uh,e.asDays=fh,e.asWeeks=eh,e.asMonths=oh,e.asYears=sh,e.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*f(this._months/12):NaN},e._bubble=function(){var u,f,e,o,s,r=this._milliseconds,t=this._days,n=this._months,i=this._data;return 0<=r&&0<=t&&0<=n||r<=0&&t<=0&&n<=0||(r+=864e5*rs(of(n)+t),n=t=0),i.milliseconds=r%1e3,u=d(r/1e3),i.seconds=u%60,f=d(u/60),i.minutes=f%60,e=d(f/60),i.hours=e%24,n+=s=d(us(t+=d(e/24))),t-=rs(of(s)),o=d(n/12),n%=12,i.days=t,i.months=n,i.years=o,this},e.clone=function(){return ut(this)},e.get=function(n){return n=nt(n),this.isValid()?this[n+"s"]():NaN},e.milliseconds=hh,e.seconds=ch,e.minutes=lh,e.hours=ah,e.days=vh,e.weeks=function(){return d(this.days()/7)},e.months=yh,e.years=ph,e.humanize=function(n){if(!this.isValid())return this.localeData().invalidDate();var l,a,v,t,i,r,u,f,e,s,o,h=this.localeData(),c=(a=!n,v=h,t=ut(l=this).abs(),i=kt(t.as("s")),r=kt(t.as("m")),u=kt(t.as("h")),f=kt(t.as("d")),e=kt(t.as("M")),s=kt(t.as("y")),(o=i<=ht.ss&&["s",i]||i<ht.s&&["ss",i]||r<=1&&["m"]||r<ht.m&&["mm",r]||u<=1&&["h"]||u<ht.h&&["hh",u]||f<=1&&["d"]||f<ht.d&&["dd",f]||e<=1&&["M"]||e<ht.M&&["MM",e]||s<=1&&["y"]||["yy",s])[2]=a,o[3]=0<+l,o[4]=v,function(n,t,i,r,u){return u.relativeTime(t||1,!!i,n,r)}.apply(null,o));return n&&(c=h.pastFuture(+this,c)),h.postformat(c)},e.toISOString=gr,e.toString=gr,e.toJSON=gr,e.locale=yo,e.localeData=po,e.toIsoString=g("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",gr),e.lang=uf,r("X",0,0,"unix"),r("x",0,0,"valueOf"),i("x",sr),i("X",/[+-]?\d+(\.\d{1,3})?/),h("X",function(n,t,i){i._d=new Date(1e3*parseFloat(n,10))}),h("x",function(n,t,i){i._d=new Date(f(n))}),t.version="2.22.2",hf=c,t.fn=n,t.min=function(){return ro("isBefore",[].slice.call(arguments,0))},t.max=function(){return ro("isAfter",[].slice.call(arguments,0))},t.now=function(){return Date.now?Date.now():+new Date},t.utc=ft,t.unix=function(n){return c(1e3*n)},t.months=function(n,t){return ts(n,t,"months")},t.isDate=gi,t.locale=oi,t.invalid=nr,t.duration=ut,t.isMoment=yt,t.weekdays=function(n,t,i){return ef(n,t,i,"weekdays")},t.parseZone=function(){return c.apply(null,arguments).parseZone()},t.localeData=pt,t.isDuration=ku,t.monthsShort=function(n,t){return ts(n,t,"monthsShort")},t.weekdaysMin=function(n,t,i){return ef(n,t,i,"weekdaysMin")},t.defineLocale=vu,t.updateLocale=function(n,t){if(null!=t){var i,r,u=ye;null!=(r=pr(n))&&(u=r._config);(i=new ru(t=wf(u,t))).parentLocale=y[n];y[n]=i;oi(n)}else null!=y[n]&&(null!=y[n].parentLocale?y[n]=y[n].parentLocale:null!=y[n]&&delete y[n]);return y[n]},t.locales=function(){return yf(y)},t.weekdaysShort=function(n,t,i){return ef(n,t,i,"weekdaysShort")},t.normalizeUnits=nt,t.relativeTimeRounding=function(n){return void 0===n?kt:"function"==typeof n&&(kt=n,!0)},t.relativeTimeThreshold=function(n,t){return void 0!==ht[n]&&(void 0===t?ht[n]:(ht[n]=t,"s"===n&&(ht.ss=t-1),!0))},t.calendarFormat=function(n,t){var i=n.diff(t,"days",!0);return i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse"},t.prototype=n,t.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"YYYY-[W]WW",MONTH:"YYYY-MM"},t});!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):n.moment=t()}(this,function(){"use strict";function n(){return as.apply(null,arguments)}function at(n){return n instanceof Array||"[object Array]"===Object.prototype.toString.call(n)}function uu(n){return null!=n&&"[object Object]"===Object.prototype.toString.call(n)}function p(n){return void 0===n}function gi(n){return"number"==typeof n||"[object Number]"===Object.prototype.toString.call(n)}function ku(n){return n instanceof Date||"[object Date]"===Object.prototype.toString.call(n)}function ys(n,t){for(var r=[],i=0;i<n.length;++i)r.push(t(n[i],i));return r}function l(n,t){return Object.prototype.hasOwnProperty.call(n,t)}function si(n,t){for(var i in t)l(t,i)&&(n[i]=t[i]);return l(t,"toString")&&(n.toString=t.toString),l(t,"valueOf")&&(n.valueOf=t.valueOf),n}function ti(n,t,i,r){return rc(n,t,i,r,!0).utc()}function u(n){return null==n._pf&&(n._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),n._pf}function le(n){if(null==n._isValid){var t=u(n),r=vs.call(t.parsedDateParts,function(n){return null!=n}),i=!isNaN(n._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r);if(n._strict&&(i=i&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(n))return i;n._isValid=i}return n._isValid}function du(n){var t=ti(NaN);return null!=n?si(u(t),n):u(t).userInvalidated=!0,t}function ae(n,t){var i,r,f;if(p(t._isAMomentObject)||(n._isAMomentObject=t._isAMomentObject),p(t._i)||(n._i=t._i),p(t._f)||(n._f=t._f),p(t._l)||(n._l=t._l),p(t._strict)||(n._strict=t._strict),p(t._tzm)||(n._tzm=t._tzm),p(t._isUTC)||(n._isUTC=t._isUTC),p(t._offset)||(n._offset=t._offset),p(t._pf)||(n._pf=u(t)),p(t._locale)||(n._locale=t._locale),0<gu.length)for(i=0;i<gu.length;i++)p(f=t[r=gu[i]])||(n[r]=f);return n}function fu(t){ae(this,t);this._d=new Date(null!=t._d?t._d.getTime():NaN);this.isValid()||(this._d=new Date(NaN));!1===nf&&(nf=!0,n.updateOffset(this),nf=!1)}function hi(n){return n instanceof fu||null!=n&&null!=n._isAMomentObject}function d(n){return n<0?Math.ceil(n)||0:Math.floor(n)}function f(n){var t=+n,i=0;return 0!==t&&isFinite(t)&&(i=d(t)),i}function ps(n,t,i){for(var e=Math.min(n.length,t.length),o=Math.abs(n.length-t.length),u=0,r=0;r<e;r++)(i&&n[r]!==t[r]||!i&&f(n[r])!==f(t[r]))&&u++;return u+o}function ws(t){!1===n.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function g(t,i){var r=!0;return si(function(){var u,e,f,o;if(null!=n.deprecationHandler&&n.deprecationHandler(null,t),r){for(e=[],f=0;f<arguments.length;f++){if(u="","object"==typeof arguments[f]){for(o in u+="\n["+f+"] ",arguments[0])u+=o+": "+arguments[0][o]+", ";u=u.slice(0,-2)}else u=arguments[f];e.push(u)}ws(t+"\nArguments: "+Array.prototype.slice.call(e).join("")+"\n"+(new Error).stack);r=!1}return i.apply(this,arguments)},i)}function ks(t,i){null!=n.deprecationHandler&&n.deprecationHandler(t,i);ve[t]||(ws(i),ve[t]=!0)}function vt(n){return n instanceof Function||"[object Function]"===Object.prototype.toString.call(n)}function ds(n,t){var i,r=si({},n);for(i in t)l(t,i)&&(uu(n[i])&&uu(t[i])?(r[i]={},si(r[i],n[i]),si(r[i],t[i])):null!=t[i]?r[i]=t[i]:delete r[i]);for(i in n)l(n,i)&&!l(t,i)&&uu(n[i])&&(r[i]=si({},r[i]));return r}function ye(n){null!=n&&this.set(n)}function w(n,t){var i=n.toLowerCase();hr[i]=hr[i+"s"]=hr[t]=n}function nt(n){if("string"==typeof n)return hr[n]||hr[n.toLowerCase()]}function pe(n){var i,t,r={};for(t in n)l(n,t)&&(i=nt(t))&&(r[i]=n[t]);return r}function b(n,t){we[n]=t}function fi(n,t,i){var r=""+Math.abs(n),u=t-r.length;return(0<=n?i?"+":"":"-")+Math.pow(10,Math.max(0,u)).toString().substr(1)+r}function r(n,t,i,r){var u=r;"string"==typeof r&&(u=function(){return this[r]()});n&&(cr[n]=u);t&&(cr[t[0]]=function(){return fi(u.apply(this,arguments),t[1],t[2])});i&&(cr[i]=function(){return this.localeData().ordinal(u.apply(this,arguments),n)})}function rf(n,t){return n.isValid()?(t=nh(t,n.localeData()),be[t]=be[t]||function(n){for(var u,t=n.match(gs),i=0,r=t.length;i<r;i++)t[i]=cr[t[i]]?cr[t[i]]:(u=t[i]).match(/\[[\s\S]/)?u.replace(/^\[|\]$/g,""):u.replace(/\\/g,"");return function(i){for(var f="",u=0;u<r;u++)f+=vt(t[u])?t[u].call(i,n):t[u];return f}}(t),be[t](n)):n.localeData().invalidDate()}function nh(n,t){function r(n){return t.longDateFormat(n)||n}var i=5;for(tf.lastIndex=0;0<=i&&tf.test(n);)n=n.replace(tf,r),tf.lastIndex=0,i-=1;return n}function i(n,t,i){ge[n]=vt(t)?t:function(n){return n&&i?i:t}}function yv(n,t){return l(ge,n)?ge[n](t._strict,t._locale):new RegExp(nr(n.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(n,t,i,r,u){return t||i||r||u})))}function nr(n){return n.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function h(n,t){var i,r=t;for("string"==typeof n&&(n=[n]),gi(t)&&(r=function(n,i){i[t]=f(n)}),i=0;i<n.length;i++)hf[n[i]]=r}function ou(n,t){h(n,function(n,i,r,u){r._w=r._w||{};t(n,r._w,r,u)})}function su(n){return cf(n)?366:365}function cf(n){return n%4==0&&n%100!=0||n%400==0}function lr(t,i){return function(r){return null!=r?(fh(this,t,r),n.updateOffset(this,i),this):lf(this,t)}}function lf(n,t){return n.isValid()?n._d["get"+(n._isUTC?"UTC":"")+t]():NaN}function fh(n,t,i){n.isValid()&&!isNaN(i)&&("FullYear"===t&&cf(n.year())&&1===n.month()&&29===n.date()?n._d["set"+(n._isUTC?"UTC":"")+t](i,n.month(),af(i,n.month())):n._d["set"+(n._isUTC?"UTC":"")+t](i))}function af(n,t){if(isNaN(n)||isNaN(t))return NaN;var i,r=(t%(i=12)+i)%i;return n+=(t-r)/12,1===r?cf(n)?29:28:31-r%7%2}function sh(n,t){var i;if(!n.isValid())return n;if("string"==typeof t)if(/^\d+$/.test(t))t=f(t);else if(!gi(t=n.localeData().monthsParse(t)))return n;return i=Math.min(n.date(),af(n.year(),t)),n._d["set"+(n._isUTC?"UTC":"")+"Month"](t,i),n}function hh(t){return null!=t?(sh(this,t),n.updateOffset(this,!0),this):lf(this,"Month")}function ah(){function f(n,t){return t.length-n.length}for(var i,r=[],u=[],t=[],n=0;n<12;n++)i=ti([2e3,n]),r.push(this.monthsShort(i,"")),u.push(this.months(i,"")),t.push(this.months(i,"")),t.push(this.monthsShort(i,""));for(r.sort(f),u.sort(f),t.sort(f),n=0;n<12;n++)r[n]=nr(r[n]),u[n]=nr(u[n]);for(n=0;n<24;n++)t[n]=nr(t[n]);this._monthsRegex=new RegExp("^("+t.join("|")+")","i");this._monthsShortRegex=this._monthsRegex;this._monthsStrictRegex=new RegExp("^("+u.join("|")+")","i");this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function hu(n){var t=new Date(Date.UTC.apply(null,arguments));return n<100&&0<=n&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(n),t}function vf(n,t,i){var r=7+t-i;return-((7+hu(n,0,r).getUTCDay()-t)%7)+r-1}function vh(n,t,i,r,u){var e,o,f=1+7*(t-1)+(7+i-r)%7+vf(n,r,u);return f<=0?o=su(e=n-1)+f:f>su(n)?(e=n+1,o=f-su(n)):(e=n,o=f),{year:e,dayOfYear:o}}function cu(n,t,i){var u,f,e=vf(n.year(),t,i),r=Math.floor((n.dayOfYear()-e-1)/7)+1;return r<1?u=r+ir(f=n.year()-1,t,i):r>ir(n.year(),t,i)?(u=r-ir(n.year(),t,i),f=n.year()+1):(f=n.year(),u=r),{week:u,year:f}}function ir(n,t,i){var r=vf(n,t,i),u=vf(n+1,t,i);return(su(n)-r+u)/7}function to(){function u(n,t){return t.length-n.length}for(var f,e,o,s,h=[],i=[],r=[],t=[],n=0;n<7;n++)f=ti([2e3,1]).day(n),e=this.weekdaysMin(f,""),o=this.weekdaysShort(f,""),s=this.weekdays(f,""),h.push(e),i.push(o),r.push(s),t.push(e),t.push(o),t.push(s);for(h.sort(u),i.sort(u),r.sort(u),t.sort(u),n=0;n<7;n++)i[n]=nr(i[n]),r[n]=nr(r[n]),t[n]=nr(t[n]);this._weekdaysRegex=new RegExp("^("+t.join("|")+")","i");this._weekdaysShortRegex=this._weekdaysRegex;this._weekdaysMinRegex=this._weekdaysRegex;this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i");this._weekdaysShortStrictRegex=new RegExp("^("+i.join("|")+")","i");this._weekdaysMinStrictRegex=new RegExp("^("+h.join("|")+")","i")}function io(){return this.hours()%12||12}function ph(n,t){r(n,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function wh(n,t){return t._meridiemParse}function kh(n){return n?n.toLowerCase().replace("_","-"):n}function yf(n){var t=null;if(!y[n]&&"undefined"!=typeof module&&module&&module.exports)try{t=lu._abbr;require("./locale/"+n);ar(t)}catch(n){}return y[n]}function ar(n,t){var i;return n&&((i=p(t)?ci(n):ro(n,t))?lu=i:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+n+" not found. Did you forget to load it?")),lu._abbr}function ro(n,t){if(null!==t){var r,i=bh;if(t.abbr=n,null!=y[n])ks("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=y[n]._config;else if(null!=t.parentLocale)if(null!=y[t.parentLocale])i=y[t.parentLocale]._config;else{if(null==(r=yf(t.parentLocale)))return au[t.parentLocale]||(au[t.parentLocale]=[]),au[t.parentLocale].push({name:n,config:t}),null;i=r._config}return y[n]=new ye(ds(i,t)),au[n]&&au[n].forEach(function(n){ro(n.name,n.config)}),ar(n),y[n]}return delete y[n],null}function ci(n){var t;if(n&&n._locale&&n._locale._abbr&&(n=n._locale._abbr),!n)return lu;if(!at(n)){if(t=yf(n))return t;n=[n]}return function(n){for(var t,i,f,u,r=0;r<n.length;){for(t=(u=kh(n[r]).split("-")).length,i=(i=kh(n[r+1]))?i.split("-"):null;0<t;){if(f=yf(u.slice(0,t).join("-")))return f;if(i&&i.length>=t&&ps(u,i,!0)>=t-1)break;t--}r++}return lu}(n)}function uo(n){var i,t=n._a;return t&&-2===u(n).overflow&&(i=t[ei]<0||11<t[ei]?ei:t[ii]<1||t[ii]>af(t[yt],t[ei])?ii:t[v]<0||24<t[v]||24===t[v]&&(0!==t[pt]||0!==t[oi]||0!==t[tr])?v:t[pt]<0||59<t[pt]?pt:t[oi]<0||59<t[oi]?oi:t[tr]<0||999<t[tr]?tr:-1,u(n)._overflowDayOfYear&&(i<yt||ii<i)&&(i=ii),u(n)._overflowWeeks&&-1===i&&(i=pv),u(n)._overflowWeekday&&-1===i&&(i=wv),u(n).overflow=i),n}function vr(n,t,i){return null!=n?n:null!=t?t:i}function fo(t){var i,f,e,h,o,s=[],l,r;if(!t._d){for(l=t,r=new Date(n.now()),e=l._useUTC?[r.getUTCFullYear(),r.getUTCMonth(),r.getUTCDate()]:[r.getFullYear(),r.getMonth(),r.getDate()],t._w&&null==t._a[ii]&&null==t._a[ei]&&function(n){var t,o,f,i,r,e,h,s,l;null!=(t=n._w).GG||null!=t.W||null!=t.E?(r=1,e=4,o=vr(t.GG,n._a[yt],cu(c(),1,4).year),f=vr(t.W,1),((i=vr(t.E,1))<1||7<i)&&(s=!0)):(r=n._locale._week.dow,e=n._locale._week.doy,l=cu(c(),r,e),o=vr(t.gg,n._a[yt],l.year),f=vr(t.w,l.week),null!=t.d?((i=t.d)<0||6<i)&&(s=!0):null!=t.e?(i=t.e+r,(t.e<0||6<t.e)&&(s=!0)):i=r);f<1||f>ir(o,r,e)?u(n)._overflowWeeks=!0:null!=s?u(n)._overflowWeekday=!0:(h=vh(o,f,i,r,e),n._a[yt]=h.year,n._dayOfYear=h.dayOfYear)}(t),null!=t._dayOfYear&&(o=vr(t._a[yt],e[yt]),(t._dayOfYear>su(o)||0===t._dayOfYear)&&(u(t)._overflowDayOfYear=!0),f=hu(o,0,t._dayOfYear),t._a[ei]=f.getUTCMonth(),t._a[ii]=f.getUTCDate()),i=0;i<3&&null==t._a[i];++i)t._a[i]=s[i]=e[i];for(;i<7;i++)t._a[i]=s[i]=null==t._a[i]?2===i?1:0:t._a[i];24===t._a[v]&&0===t._a[pt]&&0===t._a[oi]&&0===t._a[tr]&&(t._nextDay=!0,t._a[v]=0);t._d=(t._useUTC?hu:function(n,t,i,r,u,f,e){var o=new Date(n,t,i,r,u,f,e);return n<100&&0<=n&&isFinite(o.getFullYear())&&o.setFullYear(n),o}).apply(null,s);h=t._useUTC?t._d.getUTCDay():t._d.getDay();null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm);t._nextDay&&(t._a[v]=24);t._w&&void 0!==t._w.d&&t._w.d!==h&&(u(t).weekdayMismatch=!0)}}function dh(n){var t,r,o,e,f,s,h=n._i,i=ry.exec(h)||uy.exec(h);if(i){for(u(n).iso=!0,t=0,r=pf.length;t<r;t++)if(pf[t][1].exec(i[1])){e=pf[t][0];o=!1!==pf[t][2];break}if(null==e)return void(n._isValid=!1);if(i[3]){for(t=0,r=eo.length;t<r;t++)if(eo[t][1].exec(i[3])){f=(i[2]||" ")+eo[t][0];break}if(null==f)return void(n._isValid=!1)}if(!o&&null!=f)return void(n._isValid=!1);if(i[4]){if(!fy.exec(i[4]))return void(n._isValid=!1);s="Z"}n._f=e+(f||"")+(s||"");oo(n)}else n._isValid=!1}function oy(n,t,i,r,u,f){var e=[function(n){var t=parseInt(n,10);return t<=49?2e3+t:t<=999?1900+t:t}(n),oh.indexOf(t),parseInt(i,10),parseInt(r,10),parseInt(u,10)];return f&&e.push(parseInt(f,10)),e}function tc(n){var r,i,f,t=gh.exec(n._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")),e;if(t){if(e=oy(t[4],t[3],t[2],t[5],t[6],t[7]),r=t[1],i=e,f=n,r&&yh.indexOf(r)!==new Date(i[0],i[1],i[2]).getDay()&&(u(f).weekdayMismatch=!0,!(f._isValid=!1)))return;n._a=e;n._tzm=function(n,t,i){if(n)return nc[n];if(t)return 0;var r=parseInt(i,10),u=r%100;return(r-u)/100*60+u}(t[8],t[9],t[10]);n._d=hu.apply(null,n._a);n._d.setUTCMinutes(n._d.getUTCMinutes()-n._tzm);u(n).rfc2822=!0}else n._isValid=!1}function oo(t){if(t._f!==n.ISO_8601)if(t._f!==n.RFC_2822){t._a=[];u(t).empty=!0;for(var r,f,c,o,a,h,i=""+t._i,p=i.length,y=0,s=nh(t._f,t._locale).match(gs)||[],e=0;e<s.length;e++)f=s[e],(r=(i.match(yv(f,t))||[])[0])&&(0<(c=i.substr(0,i.indexOf(r))).length&&u(t).unusedInput.push(c),i=i.slice(i.indexOf(r)+r.length),y+=r.length),cr[f]?(r?u(t).empty=!1:u(t).unusedTokens.push(f),o=f,h=t,null!=(a=r)&&l(hf,o)&&hf[o](a,h._a,h,o)):t._strict&&!r&&u(t).unusedTokens.push(f);u(t).charsLeftOver=p-y;0<i.length&&u(t).unusedInput.push(i);t._a[v]<=12&&!0===u(t).bigHour&&0<t._a[v]&&(u(t).bigHour=void 0);u(t).parsedDateParts=t._a.slice(0);u(t).meridiem=t._meridiem;t._a[v]=function(n,t,i){var r;return null==i?t:null!=n.meridiemHour?n.meridiemHour(t,i):(null!=n.isPM&&((r=n.isPM(i))&&t<12&&(t+=12),r||12!==t||(t=0)),t)}(t._locale,t._a[v],t._meridiem);fo(t);uo(t)}else tc(t);else dh(t)}function ic(t){var r,f,i,s,e=t._i,o=t._f;return t._locale=t._locale||ci(t._l),null===e||void 0===o&&""===e?du({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),hi(e)?new fu(uo(e)):(ku(e)?t._d=e:at(o)?function(n){var t,e,f,r,i;if(0===n._f.length)return u(n).invalidFormat=!0,n._d=new Date(NaN);for(r=0;r<n._f.length;r++)i=0,t=ae({},n),null!=n._useUTC&&(t._useUTC=n._useUTC),t._f=n._f[r],oo(t),le(t)&&(i+=u(t).charsLeftOver,i+=10*u(t).unusedTokens.length,u(t).score=i,(null==f||i<f)&&(f=i,e=t));si(n,e||t)}(t):o?oo(t):p(f=(r=t)._i)?r._d=new Date(n.now()):ku(f)?r._d=new Date(f.valueOf()):"string"==typeof f?(i=r,null===(s=ey.exec(i._i))?(dh(i),!1===i._isValid&&(delete i._isValid,tc(i),!1===i._isValid&&(delete i._isValid,n.createFromInputFallback(i)))):i._d=new Date(+s[1])):at(f)?(r._a=ys(f.slice(0),function(n){return parseInt(n,10)}),fo(r)):uu(f)?function(n){if(!n._d){var t=pe(n._i);n._a=ys([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],function(n){return n&&parseInt(n,10)});fo(n)}}(r):gi(f)?r._d=new Date(f):n.createFromInputFallback(r),le(t)||(t._d=null),t))}function rc(n,t,i,r,u){var e,f={};return!0!==i&&!1!==i||(r=i,i=void 0),(uu(n)&&function(n){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(n).length;for(var t in n)if(n.hasOwnProperty(t))return!1;return!0}(n)||at(n)&&0===n.length)&&(n=void 0),f._isAMomentObject=!0,f._useUTC=f._isUTC=u,f._l=i,f._i=n,f._f=t,f._strict=r,(e=new fu(uo(ic(f))))._nextDay&&(e.add(1,"d"),e._nextDay=void 0),e}function c(n,t,i,r){return rc(n,t,i,r,!1)}function ec(n,t){var r,i;if(1===t.length&&at(t[0])&&(t=t[0]),!t.length)return c();for(r=t[0],i=1;i<t.length;++i)t[i].isValid()&&!t[i][n](r)||(r=t[i]);return r}function wf(n){var t=pe(n),i=t.year||0,r=t.quarter||0,u=t.month||0,e=t.week||0,o=t.day||0,s=t.hour||0,h=t.minute||0,c=t.second||0,l=t.millisecond||0;this._isValid=function(n){var i,r,t;for(i in n)if(-1===a.call(yr,i)||null!=n[i]&&isNaN(n[i]))return!1;for(r=!1,t=0;t<yr.length;++t)if(n[yr[t]]){if(r)return!1;parseFloat(n[yr[t]])!==f(n[yr[t]])&&(r=!0)}return!0}(t);this._milliseconds=+l+1e3*c+6e4*h+36e5*s;this._days=+o+7*e;this._months=+u+3*r+12*i;this._data={};this._locale=ci();this._bubble()}function so(n){return n instanceof wf}function ho(n){return n<0?-1*Math.round(-1*n):Math.round(n)}function oc(n,t){r(n,0,0,function(){var n=this.utcOffset(),i="+";return n<0&&(n=-n,i="-"),i+fi(~~(n/60),2)+t+fi(~~n%60,2)})}function co(n,t){var u=(t||"").match(n),i,r;return null===u?null:(i=((u[u.length-1]||[])+"").match(sc)||["-",0,0],r=60*i[1]+f(i[2]),0===r?0:"+"===i[0]?r:-r)}function lo(t,i){var r,u;return i._isUTC?(r=i.clone(),u=(hi(t)||ku(t)?t.valueOf():c(t).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+u),n.updateOffset(r,!1),r):c(t).local()}function ao(n){return 15*-Math.round(n._d.getTimezoneOffset()/15)}function hc(){return!!this.isValid()&&this._isUTC&&0===this._offset}function wt(n,t){var u,e,o,r=n,i=null;return so(n)?r={ms:n._milliseconds,d:n._days,M:n._months}:gi(n)?(r={},t?r[t]=n:r.milliseconds=n):(i=cc.exec(n))?(u="-"===i[1]?-1:1,r={y:0,d:f(i[ii])*u,h:f(i[v])*u,m:f(i[pt])*u,s:f(i[oi])*u,ms:f(ho(1e3*i[tr]))*u}):(i=lc.exec(n))?(u="-"===i[1]?-1:(i[1],1),r={y:rr(i[2],u),M:rr(i[3],u),w:rr(i[4],u),d:rr(i[5],u),h:rr(i[6],u),m:rr(i[7],u),s:rr(i[8],u)}):null==r?r={}:"object"==typeof r&&("from"in r||"to"in r)&&(o=function(n,t){var i;return!n.isValid()||!t.isValid()?{milliseconds:0,months:0}:(t=lo(t,n),n.isBefore(t)?i=ac(n,t):((i=ac(t,n)).milliseconds=-i.milliseconds,i.months=-i.months),i)}(c(r.from),c(r.to)),(r={}).ms=o.milliseconds,r.M=o.months),e=new wf(r),so(n)&&l(n,"_locale")&&(e._locale=n._locale),e}function rr(n,t){var i=n&&parseFloat(n.replace(",","."));return(isNaN(i)?0:i)*t}function ac(n,t){var i={milliseconds:0,months:0};return i.months=t.month()-n.month()+12*(t.year()-n.year()),n.clone().add(i.months,"M").isAfter(t)&&--i.months,i.milliseconds=+t-+n.clone().add(i.months,"M"),i}function vc(n,t){return function(i,r){var u;return null===r||isNaN(+r)||(ks(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),u=i,i=r,r=u),yc(this,wt(i="string"==typeof i?+i:i,r),n),this}}function yc(t,i,r,u){var o=i._milliseconds,f=ho(i._days),e=ho(i._months);t.isValid()&&(u=null==u||u,e&&sh(t,lf(t,"Month")+e*r),f&&fh(t,"Date",lf(t,"Date")+f*r),o&&t._d.setTime(t._d.valueOf()+o*r),u&&n.updateOffset(t,f||e))}function vo(n,t){var r=12*(t.year()-n.year())+(t.month()-n.month()),i=n.clone().add(r,"months");return-(r+(t-i<0?(t-i)/(i-n.clone().add(r-1,"months")):(t-i)/(n.clone().add(r+1,"months")-i)))||0}function bc(n){var t;return void 0===n?this._locale._abbr:(null!=(t=ci(n))&&(this._locale=t),this)}function kc(){return this._locale}function bf(n,t){r(0,[n,n.length],0,t)}function dc(n,t,i,r,u){var f;return null==n?cu(this,r,u).year:((f=ir(n,r,u))<t&&(t=f),function(n,t,i,r,u){var e=vh(n,t,i,r,u),f=hu(e.year,0,e.dayOfYear);return this.year(f.getUTCFullYear()),this.month(f.getUTCMonth()),this.date(f.getUTCDate()),this}.call(this,n,t,i,r,u))}function sy(n,t){t[tr]=f(1e3*("0."+n))}function il(n){return n}function kf(n,t,i,r){var u=ci(),f=ti().set(r,t);return u[i](f,n)}function rl(n,t,i){if(gi(n)&&(t=n,n=void 0),n=n||"",null!=t)return kf(n,t,i,"month");for(var u=[],r=0;r<12;r++)u[r]=kf(n,r,i,"month");return u}function wo(n,t,i,r){var u,o,f,e;if("boolean"==typeof n?gi(t)&&(i=t,t=void 0):(t=n,n=!1,gi(i=t)&&(i=t,t=void 0)),t=t||"",o=ci(),f=n?o._week.dow:0,null!=i)return kf(t,(i+f)%7,r,"day");for(e=[],u=0;u<7;u++)e[u]=kf(t,(u+f)%7,r,"day");return e}function ul(n,t,i,r){var u=wt(t,i);return n._milliseconds+=r*u._milliseconds,n._days+=r*u._days,n._months+=r*u._months,n._bubble()}function fl(n){return n<0?Math.floor(n):Math.ceil(n)}function el(n){return 4800*n/146097}function bo(n){return 146097*n/4800}function ai(n){return function(){return this.as(n)}}function ur(n){return function(){return this.isValid()?this._data[n]:NaN}}function pr(n){return(0<n)-(n<0)||+n}function df(){if(!this.isValid())return this.localeData().invalidDate();var i,o,t=ko(this._milliseconds)/1e3,v=ko(this._days),s=ko(this._months);o=d((i=d(t/60))/60);t%=60;i%=60;var h=d(s/12),c=s%=12,l=v,r=o,u=i,f=t?t.toFixed(3).replace(/\.?0+$/,""):"",n=this.asSeconds();if(!n)return"P0D";var y=n<0?"-":"",a=pr(this._months)!==pr(n)?"-":"",p=pr(this._days)!==pr(n)?"-":"",e=pr(this._milliseconds)!==pr(n)?"-":"";return y+"P"+(h?a+h+"Y":"")+(c?a+c+"M":"")+(l?p+l+"D":"")+(r||u||f?"T":"")+(r?e+r+"H":"")+(u?e+u+"M":"")+(f?e+f+"S":"")}function fr(n,t,i){var r,u;return"m"===i?t?"хвіліна":"хвіліну":"h"===i?t?"гадзіна":"гадзіну":n+" "+(r=+n,u={ss:t?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:t?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:t?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"}[i].split("_"),r%10==1&&r%100!=11?u[0]:2<=r%10&&r%10<=4&&(r%100<10||20<=r%100)?u[1]:u[2])}function go(n,t,i){return n+" "+function(n,t){return 2===t?function(n){var t={m:"v",b:"v",d:"z"};return void 0===t[n.charAt(0)]?n:t[n.charAt(0)]+n.substring(1)}(n):n}({mm:"munutenn",MM:"miz",dd:"devezh"}[i],n)}function yi(n,t,i){var r=n+" ";switch(i){case"ss":return r+(1===n?"sekunda":2===n||3===n||4===n?"sekunde":"sekundi");case"m":return t?"jedna minuta":"jedne minute";case"mm":return r+(1===n?"minuta":2===n||3===n||4===n?"minute":"minuta");case"h":return t?"jedan sat":"jednog sata";case"hh":return r+(1===n?"sat":2===n||3===n||4===n?"sata":"sati");case"dd":return r+(1===n?"dan":"dana");case"MM":return r+(1===n?"mjesec":2===n||3===n||4===n?"mjeseca":"mjeseci");case"yy":return r+(1===n?"godina":2===n||3===n||4===n?"godine":"godina")}}function wr(n){return 1<n&&n<5&&1!=~~(n/10)}function rt(n,t,i,r){var u=n+" ";switch(i){case"s":return t||r?"pár sekund":"pár sekundami";case"ss":return t||r?u+(wr(n)?"sekundy":"sekund"):u+"sekundami";case"m":return t?"minuta":r?"minutu":"minutou";case"mm":return t||r?u+(wr(n)?"minuty":"minut"):u+"minutami";case"h":return t?"hodina":r?"hodinu":"hodinou";case"hh":return t||r?u+(wr(n)?"hodiny":"hodin"):u+"hodinami";case"d":return t||r?"den":"dnem";case"dd":return t||r?u+(wr(n)?"dny":"dní"):u+"dny";case"M":return t||r?"měsíc":"měsícem";case"MM":return t||r?u+(wr(n)?"měsíce":"měsíců"):u+"měsíci";case"y":return t||r?"rok":"rokem";case"yy":return t||r?u+(wr(n)?"roky":"let"):u+"lety"}}function pi(n,t,i){var r={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[n+" Tage",n+" Tagen"],M:["ein Monat","einem Monat"],MM:[n+" Monate",n+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[n+" Jahre",n+" Jahren"]};return t?r[i][0]:r[i][1]}function wi(n,t,i){var r={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[n+" Tage",n+" Tagen"],M:["ein Monat","einem Monat"],MM:[n+" Monate",n+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[n+" Jahre",n+" Jahren"]};return t?r[i][0]:r[i][1]}function bi(n,t,i){var r={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[n+" Tage",n+" Tagen"],M:["ein Monat","einem Monat"],MM:[n+" Monate",n+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[n+" Jahre",n+" Jahren"]};return t?r[i][0]:r[i][1]}function bt(n,t,i,r){var u={s:["mõne sekundi","mõni sekund","paar sekundit"],ss:[n+"sekundi",n+"sekundit"],m:["ühe minuti","üks minut"],mm:[n+" minuti",n+" minutit"],h:["ühe tunni","tund aega","üks tund"],hh:[n+" tunni",n+" tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:[n+" kuu",n+" kuud"],y:["ühe aasta","aasta","üks aasta"],yy:[n+" aasta",n+" aastat"]};return t?u[i][2]?u[i][2]:u[i][1]:r?u[i][0]:u[i][1]}function ut(n,t,i,r){var f,e,u="";switch(i){case"s":return r?"muutaman sekunnin":"muutama sekunti";case"ss":return r?"sekunnin":"sekuntia";case"m":return r?"minuutin":"minuutti";case"mm":u=r?"minuutin":"minuuttia";break;case"h":return r?"tunnin":"tunti";case"hh":u=r?"tunnin":"tuntia";break;case"d":return r?"päivän":"päivä";case"dd":u=r?"päivän":"päivää";break;case"M":return r?"kuukauden":"kuukausi";case"MM":u=r?"kuukauden":"kuukautta";break;case"y":return r?"vuoden":"vuosi";case"yy":u=r?"vuoden":"vuotta"}return e=r,u=((f=n)<10?e?ra[f]:vu[f]:f)+" "+u}function ft(n,t,i){var r={s:["thodde secondanim","thodde second"],ss:[n+" secondanim",n+" second"],m:["eka mintan","ek minute"],mm:[n+" mintanim",n+" mintam"],h:["eka horan","ek hor"],hh:[n+" horanim",n+" horam"],d:["eka disan","ek dis"],dd:[n+" disanim",n+" dis"],M:["eka mhoinean","ek mhoino"],MM:[n+" mhoineanim",n+" mhoine"],y:["eka vorsan","ek voros"],yy:[n+" vorsanim",n+" vorsam"]};return t?r[i][0]:r[i][1]}function ki(n,t,i){var r=n+" ";switch(i){case"ss":return r+(1===n?"sekunda":2===n||3===n||4===n?"sekunde":"sekundi");case"m":return t?"jedna minuta":"jedne minute";case"mm":return r+(1===n?"minuta":2===n||3===n||4===n?"minute":"minuta");case"h":return t?"jedan sat":"jednog sata";case"hh":return r+(1===n?"sat":2===n||3===n||4===n?"sata":"sati");case"dd":return r+(1===n?"dan":"dana");case"MM":return r+(1===n?"mjesec":2===n||3===n||4===n?"mjeseca":"mjeseci");case"yy":return r+(1===n?"godina":2===n||3===n||4===n?"godine":"godina")}}function et(n,t,i,r){var u=n;switch(i){case"s":return r||t?"néhány másodperc":"néhány másodperce";case"ss":return u+(r||t)?" másodperc":" másodperce";case"m":return"egy"+(r||t?" perc":" perce");case"mm":return u+(r||t?" perc":" perce");case"h":return"egy"+(r||t?" óra":" órája");case"hh":return u+(r||t?" óra":" órája");case"d":return"egy"+(r||t?" nap":" napja");case"dd":return u+(r||t?" nap":" napja");case"M":return"egy"+(r||t?" hónap":" hónapja");case"MM":return u+(r||t?" hónap":" hónapja");case"y":return"egy"+(r||t?" év":" éve");case"yy":return u+(r||t?" év":" éve")}return""}function ca(n){return(n?"":"[múlt] ")+"["+ha[this.day()]+"] LT[-kor]"}function br(n){return n%100==11||n%10!=1}function kt(n,t,i,r){var u=n+" ";switch(i){case"s":return t||r?"nokkrar sekúndur":"nokkrum sekúndum";case"ss":return br(n)?u+(t||r?"sekúndur":"sekúndum"):u+"sekúnda";case"m":return t?"mínúta":"mínútu";case"mm":return br(n)?u+(t||r?"mínútur":"mínútum"):t?u+"mínúta":u+"mínútu";case"hh":return br(n)?u+(t||r?"klukkustundir":"klukkustundum"):u+"klukkustund";case"d":return t?"dagur":r?"dag":"degi";case"dd":return br(n)?t?u+"dagar":u+(r?"daga":"dögum"):t?u+"dagur":u+(r?"dag":"degi");case"M":return t?"mánuður":r?"mánuð":"mánuði";case"MM":return br(n)?t?u+"mánuðir":u+(r?"mánuði":"mánuðum"):t?u+"mánuður":u+(r?"mánuð":"mánuði");case"y":return t||r?"ár":"ári";case"yy":return br(n)?u+(t||r?"ár":"árum"):u+(t||r?"ár":"ári")}}function yu(n,t,i){var r={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 t?r[i][0]:r[i][1]}function pu(n){if(n=parseInt(n,10),isNaN(n))return!1;if(n<0)return!0;if(n<10)return 4<=n&&n<=7;if(n<100){var t=n%10;return pu(0===t?n/10:t)}if(n<1e4){for(;10<=n;)n/=10;return pu(n)}return pu(n/=1e3)}function kr(n,t,i,r){return t?di(i)[0]:r?di(i)[1]:di(i)[2]}function wa(n){return n%10==0||10<n&&n<20}function di(n){return pa[n].split("_")}function dr(n,t,i,r){var u=n+" ";return 1===n?u+kr(0,t,i[0],r):t?u+(wa(n)?di(i)[1]:di(i)[0]):r?u+di(i)[1]:u+(wa(n)?di(i)[1]:di(i)[2])}function ba(n,t,i){return i?t%10==1&&t%100!=11?n[2]:n[3]:t%10==1&&t%100!=11?n[0]:n[1]}function gr(n,t,i){return n+" "+ba(es[i],n,t)}function wu(n,t,i){return ba(es[i],n,t)}function ot(n,t,i){switch(i){case"s":return t?"хэдхэн секунд":"хэдхэн секундын";case"ss":return n+(t?" секунд":" секундын");case"m":case"mm":return n+(t?" минут":" минутын");case"h":case"hh":return n+(t?" цаг":" цагийн");case"d":case"dd":return n+(t?" өдөр":" өдрийн");case"M":case"MM":return n+(t?" сар":" сарын");case"y":case"yy":return n+(t?" жил":" жилийн");default:return n}}function st(n,t,i){var r="";if(t)switch(i){case"s":r="काही सेकंद";break;case"ss":r="%d सेकंद";break;case"m":r="एक मिनिट";break;case"mm":r="%d मिनिटे";break;case"h":r="एक तास";break;case"hh":r="%d तास";break;case"d":r="एक दिवस";break;case"dd":r="%d दिवस";break;case"M":r="एक महिना";break;case"MM":r="%d महिने";break;case"y":r="एक वर्ष";break;case"yy":r="%d वर्षे"}else switch(i){case"s":r="काही सेकंदां";break;case"ss":r="%d सेकंदां";break;case"m":r="एका मिनिटा";break;case"mm":r="%d मिनिटां";break;case"h":r="एका तासा";break;case"hh":r="%d तासां";break;case"d":r="एका दिवसा";break;case"dd":r="%d दिवसां";break;case"M":r="एका महिन्या";break;case"MM":r="%d महिन्यां";break;case"y":r="एका वर्षा";break;case"yy":r="%d वर्षां"}return r.replace(/%d/i,n)}function bu(n){return n%10<5&&1<n%10&&~~(n/10)%10!=1}function er(n,t,i){var r=n+" ";switch(i){case"ss":return r+(bu(n)?"sekundy":"sekund");case"m":return t?"minuta":"minutę";case"mm":return r+(bu(n)?"minuty":"minut");case"h":return t?"godzina":"godzinę";case"hh":return r+(bu(n)?"godziny":"godzin");case"MM":return r+(bu(n)?"miesiące":"miesięcy");case"yy":return r+(bu(n)?"lata":"lat")}}function nu(n,t,i){var r=" ";return(20<=n%100||100<=n&&n%100==0)&&(r=" de "),n+r+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",MM:"luni",yy:"ani"}[i]}function or(n,t,i){var r,u;return"m"===i?t?"минута":"минуту":n+" "+(r=+n,u={ss:t?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:t?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"}[i].split("_"),r%10==1&&r%100!=11?u[0]:2<=r%10&&r%10<=4&&(r%100<10||20<=r%100)?u[1]:u[2])}function tu(n){return 1<n&&n<5}function ht(n,t,i,r){var u=n+" ";switch(i){case"s":return t||r?"pár sekúnd":"pár sekundami";case"ss":return t||r?u+(tu(n)?"sekundy":"sekúnd"):u+"sekundami";case"m":return t?"minúta":r?"minútu":"minútou";case"mm":return t||r?u+(tu(n)?"minúty":"minút"):u+"minútami";case"h":return t?"hodina":r?"hodinu":"hodinou";case"hh":return t||r?u+(tu(n)?"hodiny":"hodín"):u+"hodinami";case"d":return t||r?"deň":"dňom";case"dd":return t||r?u+(tu(n)?"dni":"dní"):u+"dňami";case"M":return t||r?"mesiac":"mesiacom";case"MM":return t||r?u+(tu(n)?"mesiace":"mesiacov"):u+"mesiacmi";case"y":return t||r?"rok":"rokom";case"yy":return t||r?u+(tu(n)?"roky":"rokov"):u+"rokmi"}}function ct(n,t,i,r){var u=n+" ";switch(i){case"s":return t||r?"nekaj sekund":"nekaj sekundami";case"ss":return u+(1===n?t?"sekundo":"sekundi":2===n?t||r?"sekundi":"sekundah":n<5?t||r?"sekunde":"sekundah":"sekund");case"m":return t?"ena minuta":"eno minuto";case"mm":return u+(1===n?t?"minuta":"minuto":2===n?t||r?"minuti":"minutama":n<5?t||r?"minute":"minutami":t||r?"minut":"minutami");case"h":return t?"ena ura":"eno uro";case"hh":return u+(1===n?t?"ura":"uro":2===n?t||r?"uri":"urama":n<5?t||r?"ure":"urami":t||r?"ur":"urami");case"d":return t||r?"en dan":"enim dnem";case"dd":return u+(1===n?t||r?"dan":"dnem":2===n?t||r?"dni":"dnevoma":t||r?"dni":"dnevi");case"M":return t||r?"en mesec":"enim mesecem";case"MM":return u+(1===n?t||r?"mesec":"mesecem":2===n?t||r?"meseca":"mesecema":n<5?t||r?"mesece":"meseci":t||r?"mesecev":"meseci");case"y":return t||r?"eno leto":"enim letom";case"yy":return u+(1===n?t||r?"leto":"letom":2===n?t||r?"leti":"letoma":n<5?t||r?"leta":"leti":t||r?"let":"leti")}}function iu(n,t,i){var r=function(n){var i=Math.floor(n%1e3/100),r=Math.floor(n%100/10),u=n%10,t="";return 0<i&&(t+=se[i]+"vatlh"),0<r&&(t+=(""!==t?" ":"")+se[r]+"maH"),0<u&&(t+=(""!==t?" ":"")+se[u]),""===t?"pagh":t}(n);switch(i){case"ss":return r+" lup";case"mm":return r+" tup";case"hh":return r+" rep";case"dd":return r+" jaj";case"MM":return r+" jar";case"yy":return r+" DIS"}}function lt(n,t,i,r){var u={s:["viensas secunds","'iensas secunds"],ss:[n+" secunds",n+" secunds"],m:["'n míut","'iens míut"],mm:[n+" míuts",n+" míuts"],h:["'n þora","'iensa þora"],hh:[n+" þoras",n+" þoras"],d:["'n ziua","'iensa ziua"],dd:[n+" ziuas",n+" ziuas"],M:["'n mes","'iens mes"],MM:[n+" mesen",n+" mesen"],y:["'n ar","'iens ar"],yy:[n+" ars",n+" ars"]};return r?u[i][0]:t?u[i][0]:u[i][1]}function sr(n,t,i){var r,u;return"m"===i?t?"хвилина":"хвилину":"h"===i?t?"година":"годину":n+" "+(r=+n,u={ss:t?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:t?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:t?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"}[i].split("_"),r%10==1&&r%100!=11?u[0]:2<=r%10&&r%10<=4&&(r%100<10||20<=r%100)?u[1]:u[2])}function ru(n){return function(){return n+"о"+(11===this.hours()?"б":"")+"] LT"}}var as,vs,gu,nf,bs,ve,hr,we,hf,a,no,ch,lh,gh,nc,uc,fc,yr,sc,cc,lc,pc,wc,yo,po,gc,li,nl,tl,t,o,ri,e,hl,cl,gf,vl,yl,pl,wl,ne,te,ns,ts,rs,dl,ta,ia,vu,ra,fs,ua,fa,ea,oa,sa,ha,ie,la,aa,va,ya,re,pa,es,dt,ka,da,ga,nv,tv,iv,ov,sv,ue,hs,fe,cs,ee,hv,cv,gt,ni,lv,av,oe,se,he,ls,ce;vs=Array.prototype.some?Array.prototype.some:function(n){for(var i=Object(this),r=i.length>>>0,t=0;t<r;t++)if(t in i&&n.call(this,i[t],t,i))return!0;return!1};gu=n.momentProperties=[];nf=!1;ve={};n.suppressDeprecationWarnings=!1;n.deprecationHandler=null;bs=Object.keys?Object.keys:function(n){var t,i=[];for(t in n)l(n,t)&&i.push(t);return i};hr={};we={};var gs=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,tf=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,be={},cr={};var th=/\d/,k=/\d\d/,ih=/\d{3}/,ke=/\d{4}/,uf=/[+-]?\d{6}/,s=/\d\d?/,rh=/\d\d\d\d?/,uh=/\d\d\d\d\d\d?/,ff=/\d{1,3}/,de=/\d{1,4}/,ef=/[+-]?\d{1,6}/,of=/[+-]?\d+/,vv=/Z|[+-]\d\d:?\d\d/gi,sf=/Z|[+-]\d\d(?::?\d\d)?/gi,eu=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,ge={};hf={};var yt=0,ei=1,ii=2,v=3,pt=4,oi=5,tr=6,pv=7,wv=8;r("Y",0,0,function(){var n=this.year();return n<=9999?""+n:"+"+n});r(0,["YY",2],0,function(){return this.year()%100});r(0,["YYYY",4],0,"year");r(0,["YYYYY",5],0,"year");r(0,["YYYYYY",6,!0],0,"year");w("year","y");b("year",1);i("Y",of);i("YY",s,k);i("YYYY",de,ke);i("YYYYY",ef,uf);i("YYYYYY",ef,uf);h(["YYYYY","YYYYYY"],yt);h("YYYY",function(t,i){i[yt]=2===t.length?n.parseTwoDigitYear(t):f(t)});h("YY",function(t,i){i[yt]=n.parseTwoDigitYear(t)});h("Y",function(n,t){t[yt]=parseInt(n,10)});n.parseTwoDigitYear=function(n){return f(n)+(68<f(n)?1900:2e3)};no=lr("FullYear",!0);a=Array.prototype.indexOf?Array.prototype.indexOf:function(n){for(var t=0;t<this.length;++t)if(this[t]===n)return t;return-1};r("M",["MM",2],"Mo",function(){return this.month()+1});r("MMM",0,0,function(n){return this.localeData().monthsShort(this,n)});r("MMMM",0,0,function(n){return this.localeData().months(this,n)});w("month","M");b("month",8);i("M",s);i("MM",s,k);i("MMM",function(n,t){return t.monthsShortRegex(n)});i("MMMM",function(n,t){return t.monthsRegex(n)});h(["M","MM"],function(n,t){t[ei]=f(n)-1});h(["MMM","MMMM"],function(n,t,i,r){var f=i._locale.monthsParse(n,r,i._strict);null!=f?t[ei]=f:u(i).invalidMonth=n});var eh=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,bv="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),oh="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");ch=eu;lh=eu;r("w",["ww",2],"wo","week");r("W",["WW",2],"Wo","isoWeek");w("week","w");w("isoWeek","W");b("week",5);b("isoWeek",5);i("w",s);i("ww",s,k);i("W",s);i("WW",s,k);ou(["w","ww","W","WW"],function(n,t,i,r){t[r.substr(0,1)]=f(n)});r("d",0,"do","day");r("dd",0,0,function(n){return this.localeData().weekdaysMin(this,n)});r("ddd",0,0,function(n){return this.localeData().weekdaysShort(this,n)});r("dddd",0,0,function(n){return this.localeData().weekdays(this,n)});r("e",0,0,"weekday");r("E",0,0,"isoWeekday");w("day","d");w("weekday","e");w("isoWeekday","E");b("day",11);b("weekday",11);b("isoWeekday",11);i("d",s);i("e",s);i("E",s);i("dd",function(n,t){return t.weekdaysMinRegex(n)});i("ddd",function(n,t){return t.weekdaysShortRegex(n)});i("dddd",function(n,t){return t.weekdaysRegex(n)});ou(["dd","ddd","dddd"],function(n,t,i,r){var f=i._locale.weekdaysParse(n,r,i._strict);null!=f?t.d=f:u(i).invalidWeekday=n});ou(["d","e","E"],function(n,t,i,r){t[r]=f(n)});var kv="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),yh="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),dv="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),gv=eu,ny=eu,ty=eu;r("H",["HH",2],0,"hour");r("h",["hh",2],0,io);r("k",["kk",2],0,function(){return this.hours()||24});r("hmm",0,0,function(){return""+io.apply(this)+fi(this.minutes(),2)});r("hmmss",0,0,function(){return""+io.apply(this)+fi(this.minutes(),2)+fi(this.seconds(),2)});r("Hmm",0,0,function(){return""+this.hours()+fi(this.minutes(),2)});r("Hmmss",0,0,function(){return""+this.hours()+fi(this.minutes(),2)+fi(this.seconds(),2)});ph("a",!0);ph("A",!1);w("hour","h");b("hour",13);i("a",wh);i("A",wh);i("H",s);i("h",s);i("k",s);i("HH",s,k);i("hh",s,k);i("kk",s,k);i("hmm",rh);i("hmmss",uh);i("Hmm",rh);i("Hmmss",uh);h(["H","HH"],v);h(["k","kk"],function(n,t){var i=f(n);t[v]=24===i?0:i});h(["a","A"],function(n,t,i){i._isPm=i._locale.isPM(n);i._meridiem=n});h(["h","hh"],function(n,t,i){t[v]=f(n);u(i).bigHour=!0});h("hmm",function(n,t,i){var r=n.length-2;t[v]=f(n.substr(0,r));t[pt]=f(n.substr(r));u(i).bigHour=!0});h("hmmss",function(n,t,i){var r=n.length-4,e=n.length-2;t[v]=f(n.substr(0,r));t[pt]=f(n.substr(r,2));t[oi]=f(n.substr(e));u(i).bigHour=!0});h("Hmm",function(n,t){var i=n.length-2;t[v]=f(n.substr(0,i));t[pt]=f(n.substr(i))});h("Hmmss",function(n,t){var i=n.length-4,r=n.length-2;t[v]=f(n.substr(0,i));t[pt]=f(n.substr(i,2));t[oi]=f(n.substr(r))});var lu,iy=lr("Hours",!0),bh={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:bv,monthsShort:oh,week:{dow:0,doy:6},weekdays:kv,weekdaysMin:dv,weekdaysShort:yh,meridiemParse:/[ap]\.?m?\.?/i},y={},au={};var ry=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,uy=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,fy=/Z|[+-]\d\d(?::?\d\d)?/,pf=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],eo=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],ey=/^\/?Date\((\-?\d+)/i;for(gh=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,nc={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480},n.createFromInputFallback=g("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(n){n._d=new Date(n._i+(n._useUTC?" UTC":""))}),n.ISO_8601=function(){},n.RFC_2822=function(){},uc=g("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var n=c.apply(null,arguments);return this.isValid()&&n.isValid()?n<this?this:n:du()}),fc=g("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var n=c.apply(null,arguments);return this.isValid()&&n.isValid()?this<n?this:n:du()}),yr=["year","quarter","month","week","day","hour","minute","second","millisecond"],oc("Z",":"),oc("ZZ",""),i("Z",sf),i("ZZ",sf),h(["Z","ZZ"],function(n,t,i){i._useUTC=!0;i._tzm=co(sf,n)}),sc=/([\+\-]|\d\d)/gi,n.updateOffset=function(){},cc=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,lc=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,wt.fn=wf.prototype,wt.invalid=function(){return wt(NaN)},pc=vc(1,"add"),wc=vc(-1,"subtract"),n.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",n.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]",yo=g("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(n){return void 0===n?this.localeData():this.locale(n)}),r(0,["gg",2],0,function(){return this.weekYear()%100}),r(0,["GG",2],0,function(){return this.isoWeekYear()%100}),bf("gggg","weekYear"),bf("ggggg","weekYear"),bf("GGGG","isoWeekYear"),bf("GGGGG","isoWeekYear"),w("weekYear","gg"),w("isoWeekYear","GG"),b("weekYear",1),b("isoWeekYear",1),i("G",of),i("g",of),i("GG",s,k),i("gg",s,k),i("GGGG",de,ke),i("gggg",de,ke),i("GGGGG",ef,uf),i("ggggg",ef,uf),ou(["gggg","ggggg","GGGG","GGGGG"],function(n,t,i,r){t[r.substr(0,2)]=f(n)}),ou(["gg","GG"],function(t,i,r,u){i[u]=n.parseTwoDigitYear(t)}),r("Q",0,"Qo","quarter"),w("quarter","Q"),b("quarter",7),i("Q",th),h("Q",function(n,t){t[ei]=3*(f(n)-1)}),r("D",["DD",2],"Do","date"),w("date","D"),b("date",9),i("D",s),i("DD",s,k),i("Do",function(n,t){return n?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),h(["D","DD"],ii),h("Do",function(n,t){t[ii]=f(n.match(s)[0])}),po=lr("Date",!0),r("DDD",["DDDD",3],"DDDo","dayOfYear"),w("dayOfYear","DDD"),b("dayOfYear",4),i("DDD",ff),i("DDDD",ih),h(["DDD","DDDD"],function(n,t,i){i._dayOfYear=f(n)}),r("m",["mm",2],0,"minute"),w("minute","m"),b("minute",14),i("m",s),i("mm",s,k),h(["m","mm"],pt),gc=lr("Minutes",!1),r("s",["ss",2],0,"second"),w("second","s"),b("second",15),i("s",s),i("ss",s,k),h(["s","ss"],oi),nl=lr("Seconds",!1),r("S",0,0,function(){return~~(this.millisecond()/100)}),r(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),r(0,["SSS",3],0,"millisecond"),r(0,["SSSS",4],0,function(){return 10*this.millisecond()}),r(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),r(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),r(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),r(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),r(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),w("millisecond","ms"),b("millisecond",16),i("S",ff,th),i("SS",ff,k),i("SSS",ff,ih),li="SSSS";li.length<=9;li+="S")i(li,/\d+/);for(li="S";li.length<=9;li+="S")h(li,sy);tl=lr("Milliseconds",!1);r("z",0,0,"zoneAbbr");r("zz",0,0,"zoneName");t=fu.prototype;t.add=pc;t.calendar=function(t,i){var u=t||c(),f=lo(u,this).startOf("day"),r=n.calendarFormat(this,f)||"sameElse",e=i&&(vt(i[r])?i[r].call(this,u):i[r]);return this.format(e||this.localeData().calendar(r,this,c(u)))};t.clone=function(){return new fu(this)};t.diff=function(n,t,i){var r,f,u;if(!this.isValid())return NaN;if(!(r=lo(n,this)).isValid())return NaN;switch(f=6e4*(r.utcOffset()-this.utcOffset()),t=nt(t)){case"year":u=vo(this,r)/12;break;case"month":u=vo(this,r);break;case"quarter":u=vo(this,r)/3;break;case"second":u=(this-r)/1e3;break;case"minute":u=(this-r)/6e4;break;case"hour":u=(this-r)/36e5;break;case"day":u=(this-r-f)/864e5;break;case"week":u=(this-r-f)/6048e5;break;default:u=this-r}return i?u:d(u)};t.endOf=function(n){return void 0===(n=nt(n))||"millisecond"===n?this:("date"===n&&(n="day"),this.startOf(n).add(1,"isoWeek"===n?"week":n).subtract(1,"ms"))};t.format=function(t){t||(t=this.isUtc()?n.defaultFormatUtc:n.defaultFormat);var i=rf(this,t);return this.localeData().postformat(i)};t.from=function(n,t){return this.isValid()&&(hi(n)&&n.isValid()||c(n).isValid())?wt({to:this,from:n}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()};t.fromNow=function(n){return this.from(c(),n)};t.to=function(n,t){return this.isValid()&&(hi(n)&&n.isValid()||c(n).isValid())?wt({from:this,to:n}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()};t.toNow=function(n){return this.to(c(),n)};t.get=function(n){return vt(this[n=nt(n)])?this[n]():this};t.invalidAt=function(){return u(this).overflow};t.isAfter=function(n,t){var i=hi(n)?n:c(n);return!(!this.isValid()||!i.isValid())&&("millisecond"===(t=nt(p(t)?"millisecond":t))?this.valueOf()>i.valueOf():i.valueOf()<this.clone().startOf(t).valueOf())};t.isBefore=function(n,t){var i=hi(n)?n:c(n);return!(!this.isValid()||!i.isValid())&&("millisecond"===(t=nt(p(t)?"millisecond":t))?this.valueOf()<i.valueOf():this.clone().endOf(t).valueOf()<i.valueOf())};t.isBetween=function(n,t,i,r){return("("===(r=r||"()")[0]?this.isAfter(n,i):!this.isBefore(n,i))&&(")"===r[1]?this.isBefore(t,i):!this.isAfter(t,i))};t.isSame=function(n,t){var i,r=hi(n)?n:c(n);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=nt(t||"millisecond"))?this.valueOf()===r.valueOf():(i=r.valueOf(),this.clone().startOf(t).valueOf()<=i&&i<=this.clone().endOf(t).valueOf()))};t.isSameOrAfter=function(n,t){return this.isSame(n,t)||this.isAfter(n,t)};t.isSameOrBefore=function(n,t){return this.isSame(n,t)||this.isBefore(n,t)};t.isValid=function(){return le(this)};t.lang=yo;t.locale=bc;t.localeData=kc;t.max=fc;t.min=uc;t.parsingFlags=function(){return si({},u(this))};t.set=function(n,t){if("object"==typeof n)for(var r=function(n){var t=[];for(var i in n)t.push({unit:i,priority:we[i]});return t.sort(function(n,t){return n.priority-t.priority}),t}(n=pe(n)),i=0;i<r.length;i++)this[r[i].unit](n[r[i].unit]);else if(vt(this[n=nt(n)]))return this[n](t);return this};t.startOf=function(n){switch(n=nt(n)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===n&&this.weekday(0),"isoWeek"===n&&this.isoWeekday(1),"quarter"===n&&this.month(3*Math.floor(this.month()/3)),this};t.subtract=wc;t.toArray=function(){var n=this;return[n.year(),n.month(),n.date(),n.hour(),n.minute(),n.second(),n.millisecond()]};t.toObject=function(){var n=this;return{years:n.year(),months:n.month(),date:n.date(),hours:n.hours(),minutes:n.minutes(),seconds:n.seconds(),milliseconds:n.milliseconds()}};t.toDate=function(){return new Date(this.valueOf())};t.toISOString=function(n){if(!this.isValid())return null;var i=!0!==n,t=i?this.clone().utc():this;return t.year()<0||9999<t.year()?rf(t,i?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):vt(Date.prototype.toISOString)?i?this.toDate().toISOString():new Date(this.valueOf()+6e4*this.utcOffset()).toISOString().replace("Z",rf(t,"Z")):rf(t,i?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")};t.inspect=function(){var n,t;if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";n="moment";t="";this.isLocal()||(n=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var i="["+n+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",u=t+'[")]';return this.format(i+r+"-MM-DD[T]HH:mm:ss.SSS"+u)};t.toJSON=function(){return this.isValid()?this.toISOString():null};t.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")};t.unix=function(){return Math.floor(this.valueOf()/1e3)};t.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)};t.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}};t.year=no;t.isLeapYear=function(){return cf(this.year())};t.weekYear=function(n){return dc.call(this,n,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)};t.isoWeekYear=function(n){return dc.call(this,n,this.isoWeek(),this.isoWeekday(),1,4)};t.quarter=t.quarters=function(n){return null==n?Math.ceil((this.month()+1)/3):this.month(3*(n-1)+this.month()%3)};t.month=hh;t.daysInMonth=function(){return af(this.year(),this.month())};t.week=t.weeks=function(n){var t=this.localeData().week(this);return null==n?t:this.add(7*(n-t),"d")};t.isoWeek=t.isoWeeks=function(n){var t=cu(this,1,4).week;return null==n?t:this.add(7*(n-t),"d")};t.weeksInYear=function(){var n=this.localeData()._week;return ir(this.year(),n.dow,n.doy)};t.isoWeeksInYear=function(){return ir(this.year(),1,4)};t.date=po;t.day=t.days=function(n){if(!this.isValid())return null!=n?this:NaN;var t,i,r=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=n?(t=n,i=this.localeData(),n="string"!=typeof t?t:isNaN(t)?"number"==typeof(t=i.weekdaysParse(t))?t:null:parseInt(t,10),this.add(n-r,"d")):r};t.weekday=function(n){if(!this.isValid())return null!=n?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==n?t:this.add(n-t,"d")};t.isoWeekday=function(n){var i,t,r;return this.isValid()?null!=n?(i=(t=n,r=this.localeData(),"string"==typeof t?r.weekdaysParse(t)%7||7:isNaN(t)?null:t),this.day(this.day()%7?i:i-7)):this.day()||7:null!=n?this:NaN};t.dayOfYear=function(n){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==n?t:this.add(n-t,"d")};t.hour=t.hours=iy;t.minute=t.minutes=gc;t.second=t.seconds=nl;t.millisecond=t.milliseconds=tl;t.utcOffset=function(t,i,r){var u,f=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if("string"==typeof t){if(null===(t=co(sf,t)))return this}else Math.abs(t)<16&&!r&&(t*=60);return!this._isUTC&&i&&(u=ao(this)),this._offset=t,this._isUTC=!0,null!=u&&this.add(u,"m"),f!==t&&(!i||this._changeInProgress?yc(this,wt(t-f,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,n.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?f:ao(this)};t.utc=function(n){return this.utcOffset(0,n)};t.local=function(n){return this._isUTC&&(this.utcOffset(0,n),this._isUTC=!1,n&&this.subtract(ao(this),"m")),this};t.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var n=co(vv,this._i);null!=n?this.utcOffset(n):this.utcOffset(0,!0)}return this};t.hasAlignedHourOffset=function(n){return!!this.isValid()&&(n=n?c(n).utcOffset():0,(this.utcOffset()-n)%60==0)};t.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()};t.isLocal=function(){return!!this.isValid()&&!this._isUTC};t.isUtcOffset=function(){return!!this.isValid()&&this._isUTC};t.isUtc=hc;t.isUTC=hc;t.zoneAbbr=function(){return this._isUTC?"UTC":""};t.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""};t.dates=g("dates accessor is deprecated. Use date instead.",po);t.months=g("months accessor is deprecated. Use month instead",hh);t.years=g("years accessor is deprecated. Use year instead",no);t.zone=g("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(n,t){return null!=n?("string"!=typeof n&&(n=-n),this.utcOffset(n,t),this):-this.utcOffset()});t.isDSTShifted=g("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){var n,t;return p(this._isDSTShifted)?(n={},(ae(n,this),(n=ic(n))._a)?(t=n._isUTC?ti(n._a):c(n._a),this._isDSTShifted=this.isValid()&&0<ps(n._a,t.toArray())):this._isDSTShifted=!1,this._isDSTShifted):this._isDSTShifted});o=ye.prototype;o.calendar=function(n,t,i){var r=this._calendar[n]||this._calendar.sameElse;return vt(r)?r.call(t,i):r};o.longDateFormat=function(n){var t=this._longDateFormat[n],i=this._longDateFormat[n.toUpperCase()];return t||!i?t:(this._longDateFormat[n]=i.replace(/MMMM|MM|DD|dddd/g,function(n){return n.slice(1)}),this._longDateFormat[n])};o.invalidDate=function(){return this._invalidDate};o.ordinal=function(n){return this._ordinal.replace("%d",n)};o.preparse=il;o.postformat=il;o.relativeTime=function(n,t,i,r){var u=this._relativeTime[i];return vt(u)?u(n,t,i,r):u.replace(/%d/i,n)};o.pastFuture=function(n,t){var i=this._relativeTime[0<n?"future":"past"];return vt(i)?i(t):i.replace(/%s/i,t)};o.set=function(n){var t;for(var i in n)vt(t=n[i])?this[i]=t:this["_"+i]=t;this._config=n;this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)};o.months=function(n,t){return n?at(this._months)?this._months[n.month()]:this._months[(this._months.isFormat||eh).test(t)?"format":"standalone"][n.month()]:at(this._months)?this._months:this._months.standalone};o.monthsShort=function(n,t){return n?at(this._monthsShort)?this._monthsShort[n.month()]:this._monthsShort[eh.test(t)?"format":"standalone"][n.month()]:at(this._monthsShort)?this._monthsShort:this._monthsShort.standalone};o.monthsParse=function(n,t,i){var r,u,f;if(this._monthsParseExact)return function(n,t,i){var u,r,e,f=n.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],u=0;u<12;++u)e=ti([2e3,u]),this._shortMonthsParse[u]=this.monthsShort(e,"").toLocaleLowerCase(),this._longMonthsParse[u]=this.months(e,"").toLocaleLowerCase();return i?"MMM"===t?-1!==(r=a.call(this._shortMonthsParse,f))?r:null:-1!==(r=a.call(this._longMonthsParse,f))?r:null:"MMM"===t?-1!==(r=a.call(this._shortMonthsParse,f))?r:-1!==(r=a.call(this._longMonthsParse,f))?r:null:-1!==(r=a.call(this._longMonthsParse,f))?r:-1!==(r=a.call(this._shortMonthsParse,f))?r:null}.call(this,n,t,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++)if((u=ti([2e3,r]),i&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(u,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(u,"").replace(".","")+"$","i")),i||this._monthsParse[r]||(f="^"+this.months(u,"")+"|^"+this.monthsShort(u,""),this._monthsParse[r]=new RegExp(f.replace(".",""),"i")),i&&"MMMM"===t&&this._longMonthsParse[r].test(n))||i&&"MMM"===t&&this._shortMonthsParse[r].test(n)||!i&&this._monthsParse[r].test(n))return r};o.monthsRegex=function(n){return this._monthsParseExact?(l(this,"_monthsRegex")||ah.call(this),n?this._monthsStrictRegex:this._monthsRegex):(l(this,"_monthsRegex")||(this._monthsRegex=lh),this._monthsStrictRegex&&n?this._monthsStrictRegex:this._monthsRegex)};o.monthsShortRegex=function(n){return this._monthsParseExact?(l(this,"_monthsRegex")||ah.call(this),n?this._monthsShortStrictRegex:this._monthsShortRegex):(l(this,"_monthsShortRegex")||(this._monthsShortRegex=ch),this._monthsShortStrictRegex&&n?this._monthsShortStrictRegex:this._monthsShortRegex)};o.week=function(n){return cu(n,this._week.dow,this._week.doy).week};o.firstDayOfYear=function(){return this._week.doy};o.firstDayOfWeek=function(){return this._week.dow};o.weekdays=function(n,t){return n?at(this._weekdays)?this._weekdays[n.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][n.day()]:at(this._weekdays)?this._weekdays:this._weekdays.standalone};o.weekdaysMin=function(n){return n?this._weekdaysMin[n.day()]:this._weekdaysMin};o.weekdaysShort=function(n){return n?this._weekdaysShort[n.day()]:this._weekdaysShort};o.weekdaysParse=function(n,t,i){var r,u,f;if(this._weekdaysParseExact)return function(n,t,i){var f,r,e,u=n.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],f=0;f<7;++f)e=ti([2e3,1]).day(f),this._minWeekdaysParse[f]=this.weekdaysMin(e,"").toLocaleLowerCase(),this._shortWeekdaysParse[f]=this.weekdaysShort(e,"").toLocaleLowerCase(),this._weekdaysParse[f]=this.weekdays(e,"").toLocaleLowerCase();return i?"dddd"===t?-1!==(r=a.call(this._weekdaysParse,u))?r:null:"ddd"===t?-1!==(r=a.call(this._shortWeekdaysParse,u))?r:null:-1!==(r=a.call(this._minWeekdaysParse,u))?r:null:"dddd"===t?-1!==(r=a.call(this._weekdaysParse,u))?r:-1!==(r=a.call(this._shortWeekdaysParse,u))?r:-1!==(r=a.call(this._minWeekdaysParse,u))?r:null:"ddd"===t?-1!==(r=a.call(this._shortWeekdaysParse,u))?r:-1!==(r=a.call(this._weekdaysParse,u))?r:-1!==(r=a.call(this._minWeekdaysParse,u))?r:null:-1!==(r=a.call(this._minWeekdaysParse,u))?r:-1!==(r=a.call(this._weekdaysParse,u))?r:-1!==(r=a.call(this._shortWeekdaysParse,u))?r:null}.call(this,n,t,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++)if((u=ti([2e3,1]).day(r),i&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(u,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(u,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(u,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(f="^"+this.weekdays(u,"")+"|^"+this.weekdaysShort(u,"")+"|^"+this.weekdaysMin(u,""),this._weekdaysParse[r]=new RegExp(f.replace(".",""),"i")),i&&"dddd"===t&&this._fullWeekdaysParse[r].test(n))||i&&"ddd"===t&&this._shortWeekdaysParse[r].test(n)||i&&"dd"===t&&this._minWeekdaysParse[r].test(n)||!i&&this._weekdaysParse[r].test(n))return r};o.weekdaysRegex=function(n){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||to.call(this),n?this._weekdaysStrictRegex:this._weekdaysRegex):(l(this,"_weekdaysRegex")||(this._weekdaysRegex=gv),this._weekdaysStrictRegex&&n?this._weekdaysStrictRegex:this._weekdaysRegex)};o.weekdaysShortRegex=function(n){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||to.call(this),n?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(l(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=ny),this._weekdaysShortStrictRegex&&n?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)};o.weekdaysMinRegex=function(n){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||to.call(this),n?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(l(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=ty),this._weekdaysMinStrictRegex&&n?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)};o.isPM=function(n){return"p"===(n+"").toLowerCase().charAt(0)};o.meridiem=function(n,t,i){return 11<n?i?"pm":"PM":i?"am":"AM"};ar("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(n){var t=n%10;return n+(1===f(n%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}});n.lang=g("moment.lang is deprecated. Use moment.locale instead.",ar);n.langData=g("moment.langData is deprecated. Use moment.localeData instead.",ci);ri=Math.abs;var hy=ai("ms"),cy=ai("s"),ly=ai("m"),ay=ai("h"),vy=ai("d"),yy=ai("w"),py=ai("M"),wy=ai("y");var by=ur("milliseconds"),ky=ur("seconds"),dy=ur("minutes"),gy=ur("hours"),np=ur("days"),tp=ur("months"),ip=ur("years"),vi=Math.round,ui={ss:44,s:45,m:45,h:22,d:26,M:11},ko=Math.abs;e=wf.prototype;e.isValid=function(){return this._isValid};e.abs=function(){var n=this._data;return this._milliseconds=ri(this._milliseconds),this._days=ri(this._days),this._months=ri(this._months),n.milliseconds=ri(n.milliseconds),n.seconds=ri(n.seconds),n.minutes=ri(n.minutes),n.hours=ri(n.hours),n.months=ri(n.months),n.years=ri(n.years),this};e.add=function(n,t){return ul(this,n,t,1)};e.subtract=function(n,t){return ul(this,n,t,-1)};e.as=function(n){if(!this.isValid())return NaN;var t,r,i=this._milliseconds;if("month"===(n=nt(n))||"year"===n)return t=this._days+i/864e5,r=this._months+el(t),"month"===n?r:r/12;switch(t=this._days+Math.round(bo(this._months)),n){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return 24*t+i/36e5;case"minute":return 1440*t+i/6e4;case"second":return 86400*t+i/1e3;case"millisecond":return Math.floor(864e5*t)+i;default:throw new Error("Unknown unit "+n);}};e.asMilliseconds=hy;e.asSeconds=cy;e.asMinutes=ly;e.asHours=ay;e.asDays=vy;e.asWeeks=yy;e.asMonths=py;e.asYears=wy;e.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*f(this._months/12):NaN};e._bubble=function(){var u,f,e,o,s,r=this._milliseconds,t=this._days,n=this._months,i=this._data;return 0<=r&&0<=t&&0<=n||r<=0&&t<=0&&n<=0||(r+=864e5*fl(bo(n)+t),n=t=0),i.milliseconds=r%1e3,u=d(r/1e3),i.seconds=u%60,f=d(u/60),i.minutes=f%60,e=d(f/60),i.hours=e%24,n+=s=d(el(t+=d(e/24))),t-=fl(bo(s)),o=d(n/12),n%=12,i.days=t,i.months=n,i.years=o,this};e.clone=function(){return wt(this)};e.get=function(n){return n=nt(n),this.isValid()?this[n+"s"]():NaN};e.milliseconds=by;e.seconds=ky;e.minutes=dy;e.hours=gy;e.days=np;e.weeks=function(){return d(this.days()/7)};e.months=tp;e.years=ip;e.humanize=function(n){if(!this.isValid())return this.localeData().invalidDate();var l,a,v,t,i,r,u,f,e,s,o,h=this.localeData(),c=(a=!n,v=h,t=wt(l=this).abs(),i=vi(t.as("s")),r=vi(t.as("m")),u=vi(t.as("h")),f=vi(t.as("d")),e=vi(t.as("M")),s=vi(t.as("y")),(o=i<=ui.ss&&["s",i]||i<ui.s&&["ss",i]||r<=1&&["m"]||r<ui.m&&["mm",r]||u<=1&&["h"]||u<ui.h&&["hh",u]||f<=1&&["d"]||f<ui.d&&["dd",f]||e<=1&&["M"]||e<ui.M&&["MM",e]||s<=1&&["y"]||["yy",s])[2]=a,o[3]=0<+l,o[4]=v,function(n,t,i,r,u){return u.relativeTime(t||1,!!i,n,r)}.apply(null,o));return n&&(c=h.pastFuture(+this,c)),h.postformat(c)};e.toISOString=df;e.toString=df;e.toJSON=df;e.locale=bc;e.localeData=kc;e.toIsoString=g("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",df);e.lang=yo;r("X",0,0,"unix");r("x",0,0,"valueOf");i("x",of);i("X",/[+-]?\d+(\.\d{1,3})?/);h("X",function(n,t,i){i._d=new Date(1e3*parseFloat(n,10))});h("x",function(n,t,i){i._d=new Date(f(n))});n.version="2.22.2";as=c;n.fn=t;n.min=function(){return ec("isBefore",[].slice.call(arguments,0))};n.max=function(){return ec("isAfter",[].slice.call(arguments,0))};n.now=function(){return Date.now?Date.now():+new Date};n.utc=ti;n.unix=function(n){return c(1e3*n)};n.months=function(n,t){return rl(n,t,"months")};n.isDate=ku;n.locale=ar;n.invalid=du;n.duration=wt;n.isMoment=hi;n.weekdays=function(n,t,i){return wo(n,t,i,"weekdays")};n.parseZone=function(){return c.apply(null,arguments).parseZone()};n.localeData=ci;n.isDuration=so;n.monthsShort=function(n,t){return rl(n,t,"monthsShort")};n.weekdaysMin=function(n,t,i){return wo(n,t,i,"weekdaysMin")};n.defineLocale=ro;n.updateLocale=function(n,t){if(null!=t){var i,r,u=bh;null!=(r=yf(n))&&(u=r._config);(i=new ye(t=ds(u,t))).parentLocale=y[n];y[n]=i;ar(n)}else null!=y[n]&&(null!=y[n].parentLocale?y[n]=y[n].parentLocale:null!=y[n]&&delete y[n]);return y[n]};n.locales=function(){return bs(y)};n.weekdaysShort=function(n,t,i){return wo(n,t,i,"weekdaysShort")};n.normalizeUnits=nt;n.relativeTimeRounding=function(n){return void 0===n?vi:"function"==typeof n&&(vi=n,!0)};n.relativeTimeThreshold=function(n,t){return void 0!==ui[n]&&(void 0===t?ui[n]:(ui[n]=t,"s"===n&&(ui.ss=t-1),!0))};n.calendarFormat=function(n,t){var i=n.diff(t,"days",!0);return i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse"};n.prototype=t;n.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"YYYY-[W]WW",MONTH:"YYYY-MM"};n.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_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("_"),meridiemParse:/vm|nm/i,isPM:function(n){return/^nm$/i.test(n)},meridiem:function(n,t,i){return n<12?i?"vm":"VM":i?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},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",ss:"%d 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"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(n){return n+(1===n||8===n||20<=n?"ste":"de")},week:{dow:1,doy:4}});n.defineLocale("ar-dz",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"أح_إث_ثلا_أر_خم_جم_سب".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},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 سنوات"},week:{dow:0,doy:4}});n.defineLocale("ar-kw",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},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 سنوات"},week:{dow:0,doy:12}});var rp={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},ol=function(n){return 0===n?0:1===n?1:2===n?2:3<=n%100&&n%100<=10?3:11<=n%100?4:5},up={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},tt=function(n){return function(t,i){var u=ol(t),r=up[n][ol(t)];return 2===u&&(r=r[i?0:1]),r.replace(/%d/i,t)}},sl=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];n.defineLocale("ar-ly",{months:sl,monthsShort:sl,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(n){return"م"===n},meridiem:function(n){return n<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:tt("s"),ss:tt("s"),m:tt("m"),mm:tt("m"),h:tt("h"),hh:tt("h"),d:tt("d"),dd:tt("d"),M:tt("M"),MM:tt("M"),y:tt("y"),yy:tt("y")},preparse:function(n){return n.replace(/\u060c/g,",")},postformat:function(n){return n.replace(/\d/g,function(n){return rp[n]}).replace(/,/g,"،")},week:{dow:6,doy:12}});n.defineLocale("ar-ma",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},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 سنوات"},week:{dow:6,doy:12}});hl={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"};cl={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"};n.defineLocale("ar-sa",{months:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(n){return"م"===n},meridiem:function(n){return n<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 سنوات"},preparse:function(n){return n.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(n){return cl[n]}).replace(/\u060c/g,",")},postformat:function(n){return n.replace(/\d/g,function(n){return hl[n]}).replace(/,/g,"،")},week:{dow:0,doy:6}});n.defineLocale("ar-tn",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},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 سنوات"},week:{dow:1,doy:4}});var fp={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},ep={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},ll=function(n){return 0===n?0:1===n?1:2===n?2:3<=n%100&&n%100<=10?3:11<=n%100?4:5},op={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},it=function(n){return function(t,i){var u=ll(t),r=op[n][ll(t)];return 2===u&&(r=r[i?0:1]),r.replace(/%d/i,t)}},al=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];n.defineLocale("ar",{months:al,monthsShort:al,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(n){return"م"===n},meridiem:function(n){return n<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:it("s"),ss:it("s"),m:it("m"),mm:it("m"),h:it("h"),hh:it("h"),d:it("d"),dd:it("d"),M:it("M"),MM:it("M"),y:it("y"),yy:it("y")},preparse:function(n){return n.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(n){return ep[n]}).replace(/\u060c/g,",")},postformat:function(n){return n.replace(/\d/g,function(n){return fp[n]}).replace(/,/g,"،")},week:{dow:6,doy:12}});gf={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ı"};n.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("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},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çə saniyə",ss:"%d saniyə",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"},meridiemParse:/gec\u0259|s\u0259h\u0259r|g\xfcnd\xfcz|ax\u015fam/,isPM:function(n){return/^(g\xfcnd\xfcz|ax\u015fam)$/.test(n)},meridiem:function(n){return n<4?"gecə":n<12?"səhər":n<17?"gündüz":"axşam"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0131nc\u0131|inci|nci|\xfcnc\xfc|nc\u0131|uncu)/,ordinal:function(n){if(0===n)return n+"-ıncı";var t=n%10;return n+(gf[t]||gf[n%100-t]||gf[100<=n?100:null])},week:{dow:1,doy:7}});n.defineLocale("be",{months:{format:"студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня".split("_"),standalone:"студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань".split("_")},monthsShort:"студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж".split("_"),weekdays:{format:"нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу".split("_"),standalone:"нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота".split("_"),isFormat:/\[ ?[\u0423\u0443\u045e] ?(?:\u043c\u0456\u043d\u0443\u043b\u0443\u044e|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0443\u044e)? ?\] ?dddd/},weekdaysShort:"нд_пн_ат_ср_чц_пт_сб".split("_"),weekdaysMin:"нд_пн_ат_ср_чц_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., HH:mm",LLLL:"dddd, D MMMM YYYY г., HH:mm"},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:fr,mm:fr,h:fr,hh:fr,d:"дзень",dd:fr,M:"месяц",MM:fr,y:"год",yy:fr},meridiemParse:/\u043d\u043e\u0447\u044b|\u0440\u0430\u043d\u0456\u0446\u044b|\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430/,isPM:function(n){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430)$/.test(n)},meridiem:function(n){return n<4?"ночы":n<12?"раніцы":n<17?"дня":"вечара"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0456|\u044b|\u0433\u0430)/,ordinal:function(n,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return n%10!=2&&n%10!=3||n%100==12||n%100==13?n+"-ы":n+"-і";case"D":return n+"-га";default:return n}},week:{dow:1,doy:7}});n.defineLocale("bg",{months:"януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември".split("_"),monthsShort:"янр_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек".split("_"),weekdays:"неделя_понеделник_вторник_сряда_четвъртък_петък_събота".split("_"),weekdaysShort:"нед_пон_вто_сря_чет_пет_съб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},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:"няколко секунди",ss:"%d секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дни",M:"месец",MM:"%d месеца",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(n){var t=n%10,i=n%100;return 0===n?n+"-ев":0===i?n+"-ен":10<i&&i<20?n+"-ти":1===t?n+"-ви":2===t?n+"-ри":7===t||8===t?n+"-ми":n+"-ти"},week:{dow:1,doy:7}});n.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des".split("_"),weekdays:"Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm"},calendar:{sameDay:"[Bi lɛrɛ] LT",nextDay:"[Sini lɛrɛ] LT",nextWeek:"dddd [don lɛrɛ] LT",lastDay:"[Kunu lɛrɛ] LT",lastWeek:"dddd [tɛmɛnen lɛrɛ] LT",sameElse:"L"},relativeTime:{future:"%s kɔnɔ",past:"a bɛ %s bɔ",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"lɛrɛ kelen",hh:"lɛrɛ %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}});vl={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"};yl={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"};n.defineLocale("bn",{months:"জানুয়ারী_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব_মার্চ_এপ্র_মে_জুন_জুল_আগ_সেপ্ট_অক্টো_নভে_ডিসে".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),weekdaysMin:"রবি_সোম_মঙ্গ_বুধ_বৃহঃ_শুক্র_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},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 বছর"},preparse:function(n){return n.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(n){return yl[n]})},postformat:function(n){return n.replace(/\d/g,function(n){return vl[n]})},meridiemParse:/\u09b0\u09be\u09a4|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b0\u09be\u09a4/,meridiemHour:function(n,t){return 12===n&&(n=0),"রাত"===t&&4<=n||"দুপুর"===t&&n<5||"বিকাল"===t?n+12:n},meridiem:function(n){return n<4?"রাত":n<10?"সকাল":n<17?"দুপুর":n<20?"বিকাল":"রাত"},week:{dow:0,doy:6}});pl={1:"༡",2:"༢",3:"༣",4:"༤",5:"༥",6:"༦",7:"༧",8:"༨",9:"༩",0:"༠"};wl={"༡":"1","༢":"2","༣":"3","༤":"4","༥":"5","༦":"6","༧":"7","༨":"8","༩":"9","༠":"0"};n.defineLocale("bo",{months:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),monthsShort:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),weekdays:"གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་".split("_"),weekdaysShort:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),weekdaysMin:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[དི་རིང] LT",nextDay:"[སང་ཉིན] LT",nextWeek:"[བདུན་ཕྲག་རྗེས་མ], 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 ལོ"},preparse:function(n){return n.replace(/[\u0f21\u0f22\u0f23\u0f24\u0f25\u0f26\u0f27\u0f28\u0f29\u0f20]/g,function(n){return wl[n]})},postformat:function(n){return n.replace(/\d/g,function(n){return pl[n]})},meridiemParse:/\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c|\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66|\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44|\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42|\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c/,meridiemHour:function(n,t){return 12===n&&(n=0),"མཚན་མོ"===t&&4<=n||"ཉིན་གུང"===t&&n<5||"དགོང་དག"===t?n+12:n},meridiem:function(n){return n<4?"མཚན་མོ":n<10?"ཞོགས་ཀས":n<17?"ཉིན་གུང":n<20?"དགོང་དག":"མཚན་མོ"},week:{dow:0,doy:6}});n.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("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h[e]mm A",LTS:"h[e]mm:ss A",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY h[e]mm A",LLLL:"dddd, D [a viz] MMMM YYYY h[e]mm A"},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ù",ss:"%d eilenn",m:"ur vunutenn",mm:go,h:"un eur",hh:"%d eur",d:"un devezh",dd:go,M:"ur miz",MM:go,y:"ur bloaz",yy:function(n){switch(function n(t){return 9<t?n(t%10):t}(n)){case 1:case 3:case 4:case 5:case 9:return n+" bloaz";default:return n+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(a\xf1|vet)/,ordinal:function(n){return n+(1===n?"añ":"vet")},week:{dow:1,doy:4}});n.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,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("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},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",ss:yi,m:yi,mm:yi,h:yi,hh:yi,d:"dan",dd:yi,M:"mjesec",MM:yi,y:"godinu",yy:yi},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});n.defineLocale("ca",{months:{standalone:"gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,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("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},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:"d'aquí %s",past:"fa %s",s:"uns segons",ss:"%d 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"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|\xe8|a)/,ordinal:function(n,t){var i=1===n?"r":2===n?"n":3===n?"r":4===n?"t":"è";return"w"!==t&&"W"!==t||(i="a"),n+i},week:{dow:1,doy:4}});ne="leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_");te="led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_");n.defineLocale("cs",{months:ne,monthsShort:te,monthsParse:function(n,t){for(var r=[],i=0;i<12;i++)r[i]=new RegExp("^"+n[i]+"$|^"+t[i]+"$","i");return r}(ne,te),shortMonthsParse:function(n){for(var i=[],t=0;t<12;t++)i[t]=new RegExp("^"+n[t]+"$","i");return i}(te),longMonthsParse:function(n){for(var i=[],t=0;t<12;t++)i[t]=new RegExp("^"+n[t]+"$","i");return i}(ne),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",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},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:rt,ss:rt,m:rt,mm:rt,h:rt,hh:rt,d:rt,dd:rt,M:rt,MM:rt,y:rt,yy:rt},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});n.defineLocale("cv",{months:"кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав".split("_"),monthsShort:"кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш".split("_"),weekdays:"вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун".split("_"),weekdaysShort:"выр_тун_ытл_юн_кӗҫ_эрн_шӑм".split("_"),weekdaysMin:"вр_тн_ыт_юн_кҫ_эр_шм".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]",LLL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm",LLLL:"dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm"},calendar:{sameDay:"[Паян] LT [сехетре]",nextDay:"[Ыран] LT [сехетре]",lastDay:"[Ӗнер] LT [сехетре]",nextWeek:"[Ҫитес] dddd LT [сехетре]",lastWeek:"[Иртнӗ] dddd LT [сехетре]",sameElse:"L"},relativeTime:{future:function(n){return n+(/\u0441\u0435\u0445\u0435\u0442$/i.exec(n)?"рен":/\u04ab\u0443\u043b$/i.exec(n)?"тан":"ран")},past:"%s каялла",s:"пӗр-ик ҫеккунт",ss:"%d ҫеккунт",m:"пӗр минут",mm:"%d минут",h:"пӗр сехет",hh:"%d сехет",d:"пӗр кун",dd:"%d кун",M:"пӗр уйӑх",MM:"%d уйӑх",y:"пӗр ҫул",yy:"%d ҫул"},dayOfMonthOrdinalParse:/\d{1,2}-\u043c\u04d7\u0448/,ordinal:"%d-мӗш",week:{dow:1,doy:7}});n.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("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},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",ss:"%d eiliad",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"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(n){var t="";return 20<n?t=40===n||50===n||60===n||80===n||100===n?"fed":"ain":0<n&&(t=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][n]),n+t},week:{dow:1,doy:4}});n.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",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"på dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"få sekunder",ss:"%d 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"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});n.defineLocale("de-at",{months:"Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,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("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:pi,mm:"%d Minuten",h:pi,hh:"%d Stunden",d:pi,dd:pi,M:pi,MM:pi,y:pi,yy:pi},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});n.defineLocale("de-ch",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,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("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:wi,mm:"%d Minuten",h:wi,hh:"%d Stunden",d:wi,dd:wi,M:wi,MM:wi,y:wi,yy:wi},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});n.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,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("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:bi,mm:"%d Minuten",h:bi,hh:"%d Stunden",d:bi,dd:bi,M:bi,MM:bi,y:bi,yy:bi},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});ns=["ޖެނުއަރީ","ފެބްރުއަރީ","މާރިޗު","އޭޕްރީލު","މޭ","ޖޫން","ޖުލައި","އޯގަސްޓު","ސެޕްޓެމްބަރު","އޮކްޓޯބަރު","ނޮވެމްބަރު","ޑިސެމްބަރު"];ts=["އާދިއްތަ","ހޯމަ","އަންގާރަ","ބުދަ","ބުރާސްފަތި","ހުކުރު","ހޮނިހިރު"];n.defineLocale("dv",{months:ns,monthsShort:ns,weekdays:ts,weekdaysShort:ts,weekdaysMin:"އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0789\u0786|\u0789\u078a/,isPM:function(n){return"މފ"===n},meridiem:function(n){return n<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"},preparse:function(n){return n.replace(/\u060c/g,",")},postformat:function(n){return n.replace(/,/g,"،")},week:{dow:7,doy:12}});n.defineLocale("el",{monthsNominativeEl:"Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος".split("_"),monthsGenitiveEl:"Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου".split("_"),months:function(n,t){return n?"string"==typeof t&&/D/.test(t.substring(0,t.indexOf("MMMM")))?this._monthsGenitiveEl[n.month()]:this._monthsNominativeEl[n.month()]:this._monthsNominativeEl},monthsShort:"Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ".split("_"),weekdays:"Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο".split("_"),weekdaysShort:"Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ".split("_"),weekdaysMin:"Κυ_Δε_Τρ_Τε_Πε_Πα_Σα".split("_"),meridiem:function(n,t,i){return 11<n?i?"μμ":"ΜΜ":i?"πμ":"ΠΜ"},isPM:function(n){return"μ"===(n+"").toLowerCase()[0]},meridiemParse:/[\u03a0\u039c]\.?\u039c?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},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(n,t){var i=this._calendarEl[n],r=t&&t.hours();return vt(i)&&(i=i.apply(t)),i.replace("{}",r%12==1?"στη":"στις")},relativeTime:{future:"σε %s",past:"%s πριν",s:"λίγα δευτερόλεπτα",ss:"%d δευτερόλεπτα",m:"ένα λεπτό",mm:"%d λεπτά",h:"μία ώρα",hh:"%d ώρες",d:"μία μέρα",dd:"%d μέρες",M:"ένας μήνας",MM:"%d μήνες",y:"ένας χρόνος",yy:"%d χρόνια"},dayOfMonthOrdinalParse:/\d{1,2}\u03b7/,ordinal:"%dη",week:{dow:1,doy:4}});n.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",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},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",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(n){var t=n%10;return n+(1==~~(n%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}});n.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",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},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",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(n){var t=n%10;return n+(1==~~(n%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}});n.defineLocale("en-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",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},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",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(n){var t=n%10;return n+(1==~~(n%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}});n.defineLocale("en-ie",{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",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},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",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(n){var t=n%10;return n+(1==~~(n%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}});n.defineLocale("en-il",{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",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},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"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(n){var t=n%10;return n+(1==~~(n%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}});n.defineLocale("en-nz",{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 h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},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",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(n){var t=n%10;return n+(1==~~(n%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}});n.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",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D[-a de] MMMM, YYYY",LLL:"D[-a de] MMMM, YYYY HH:mm",LLLL:"dddd, [la] D[-a de] MMMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(n){return"p"===n.charAt(0).toLowerCase()},meridiem:function(n,t,i){return 11<n?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:"post %s",past:"antaŭ %s",s:"sekundoj",ss:"%d 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"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}});var bl="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),sp="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),is=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],kl=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;n.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(n,t){return n?/-MMM-/.test(t)?sp[n.month()]:bl[n.month()]:bl},monthsRegex:kl,monthsShortRegex:kl,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:is,longMonthsParse:is,shortMonthsParse:is,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("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},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",ss:"%d 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"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%dº",week:{dow:1,doy:4}});rs="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_");dl="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_");n.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(n,t){return n?/-MMM-/.test(t)?dl[n.month()]:rs[n.month()]:rs},monthsParseExact:!0,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("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"MMMM [de] D [de] YYYY",LLL:"MMMM [de] D [de] YYYY h:mm A",LLLL:"dddd, MMMM [de] D [de] YYYY h:mm A"},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",ss:"%d 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"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%dº",week:{dow:0,doy:6}});var gl="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),hp="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),us=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],na=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;n.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(n,t){return n?/-MMM-/.test(t)?hp[n.month()]:gl[n.month()]:gl},monthsRegex:na,monthsShortRegex:na,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:us,longMonthsParse:us,shortMonthsParse:us,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("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},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",ss:"%d 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"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%dº",week:{dow:1,doy:4}});n.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",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},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:bt,ss:bt,m:bt,mm:bt,h:bt,hh:bt,d:bt,dd:"%d päeva",M:bt,MM:bt,y:bt,yy:bt},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});n.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("_"),monthsParseExact:!0,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("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},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",ss:"%d segundo",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"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});ta={1:"۱",2:"۲",3:"۳",4:"۴",5:"۵",6:"۶",7:"۷",8:"۸",9:"۹",0:"۰"};ia={"۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","۰":"0"};n.defineLocale("fa",{months:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),monthsShort:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),weekdays:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysShort:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ج_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u0642\u0628\u0644 \u0627\u0632 \u0638\u0647\u0631|\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/,isPM:function(n){return/\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/.test(n)},meridiem:function(n){return n<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 سال"},preparse:function(n){return n.replace(/[\u06f0-\u06f9]/g,function(n){return ia[n]}).replace(/\u060c/g,",")},postformat:function(n){return n.replace(/\d/g,function(n){return ta[n]}).replace(/,/g,"،")},dayOfMonthOrdinalParse:/\d{1,2}\u0645/,ordinal:"%dم",week:{dow:6,doy:12}});vu="nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän".split(" ");ra=["nolla","yhden","kahden","kolmen","neljän","viiden","kuuden",vu[7],vu[8],vu[9]];n.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",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},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:ut,ss:ut,m:ut,mm:ut,h:ut,hh:ut,d:ut,dd:ut,M:ut,MM:ut,y:ut,yy:ut},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});n.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",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},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",ss:"%d sekundir",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"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});n.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("_"),monthsParseExact:!0,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("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},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",ss:"%d 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"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(n,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return n+(1===n?"er":"e");case"w":case"W":return n+(1===n?"re":"e")}}});n.defineLocale("fr-ch",{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("_"),monthsParseExact:!0,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("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},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",ss:"%d 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"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(n,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return n+(1===n?"er":"e");case"w":case"W":return n+(1===n?"re":"e")}},week:{dow:1,doy:4}});n.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("_"),monthsParseExact:!0,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("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},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",ss:"%d 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"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(n,t){switch(t){case"D":return n+(1===n?"er":"");default:case"M":case"Q":case"DDD":case"d":return n+(1===n?"er":"e");case"w":case"W":return n+(1===n?"re":"e")}},week:{dow:1,doy:4}});fs="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_");ua="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");n.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(n,t){return n?/-MMM-/.test(t)?ua[n.month()]:fs[n.month()]:fs},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[ôfrûne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien minút",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(n){return n+(1===n||8===n||20<=n?"ste":"de")},week:{dow:1,doy:4}});n.defineLocale("gd",{months:["Am Faoilleach","An Gearran","Am Màrt","An Giblean","An Cèitean","An t-Ògmhios","An t-Iuchar","An Lùnastal","An t-Sultain","An Dàmhair","An t-Samhain","An Dùbhlachd"],monthsShort:["Faoi","Gear","Màrt","Gibl","Cèit","Ògmh","Iuch","Lùn","Sult","Dàmh","Samh","Dùbh"],monthsParseExact:!0,weekdays:["Didòmhnaich","Diluain","Dimàirt","Diciadain","Diardaoin","Dihaoine","Disathairne"],weekdaysShort:["Did","Dil","Dim","Dic","Dia","Dih","Dis"],weekdaysMin:["Dò","Lu","Mà","Ci","Ar","Ha","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-màireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-dè aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"mìos",MM:"%d mìosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(n){return n+(1===n?"d":n%10==2?"na":"mh")},week:{dow:1,doy:4}});n.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("_"),monthsParseExact:!0,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("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},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(n){return 0===n.indexOf("un")?"n"+n:"en "+n},past:"hai %s",s:"uns segundos",ss:"%d 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"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%dº",week:{dow:1,doy:4}});n.defineLocale("gom-latn",{months:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budvar_Brestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM[achea] Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Ieta to] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fatlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:ft,ss:ft,m:ft,mm:ft,h:ft,hh:ft,d:ft,dd:ft,M:ft,MM:ft,y:ft,yy:ft},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(n,t){switch(t){case"D":return n+"er";default:case"M":case"Q":case"DDD":case"d":case"w":case"W":return n}},week:{dow:1,doy:4},meridiemParse:/rati|sokalli|donparam|sanje/,meridiemHour:function(n,t){return 12===n&&(n=0),"rati"===t?n<4?n:n+12:"sokalli"===t?n:"donparam"===t?12<n?n:n+12:"sanje"===t?n+12:void 0},meridiem:function(n){return n<4?"rati":n<12?"sokalli":n<16?"donparam":n<20?"sanje":"rati"}});fa={1:"૧",2:"૨",3:"૩",4:"૪",5:"૫",6:"૬",7:"૭",8:"૮",9:"૯",0:"૦"};ea={"૧":"1","૨":"2","૩":"3","૪":"4","૫":"5","૬":"6","૭":"7","૮":"8","૯":"9","૦":"0"};n.defineLocale("gu",{months:"જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર".split("_"),monthsShort:"જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.".split("_"),monthsParseExact:!0,weekdays:"રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર".split("_"),weekdaysShort:"રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ".split("_"),weekdaysMin:"ર_સો_મં_બુ_ગુ_શુ_શ".split("_"),longDateFormat:{LT:"A h:mm વાગ્યે",LTS:"A h:mm:ss વાગ્યે",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm વાગ્યે",LLLL:"dddd, D MMMM YYYY, A h:mm વાગ્યે"},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 વર્ષ"},preparse:function(n){return n.replace(/[\u0ae7\u0ae8\u0ae9\u0aea\u0aeb\u0aec\u0aed\u0aee\u0aef\u0ae6]/g,function(n){return ea[n]})},postformat:function(n){return n.replace(/\d/g,function(n){return fa[n]})},meridiemParse:/\u0ab0\u0abe\u0aa4|\u0aac\u0aaa\u0acb\u0ab0|\u0ab8\u0ab5\u0abe\u0ab0|\u0ab8\u0abe\u0a82\u0a9c/,meridiemHour:function(n,t){return 12===n&&(n=0),"રાત"===t?n<4?n:n+12:"સવાર"===t?n:"બપોર"===t?10<=n?n:n+12:"સાંજ"===t?n+12:void 0},meridiem:function(n){return n<4?"રાત":n<10?"સવાર":n<17?"બપોર":n<20?"સાંજ":"રાત"},week:{dow:0,doy:6}});n.defineLocale("he",{months:"ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר".split("_"),monthsShort:"ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳".split("_"),weekdays:"ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת".split("_"),weekdaysShort:"א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳".split("_"),weekdaysMin:"א_ב_ג_ד_ה_ו_ש".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [ב]MMMM YYYY",LLL:"D [ב]MMMM YYYY HH:mm",LLLL:"dddd, D [ב]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},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:function(n){return 2===n?"שעתיים":n+" שעות"},d:"יום",dd:function(n){return 2===n?"יומיים":n+" ימים"},M:"חודש",MM:function(n){return 2===n?"חודשיים":n+" חודשים"},y:"שנה",yy:function(n){return 2===n?"שנתיים":n%10==0&&10!==n?n+" שנה":n+" שנים"}},meridiemParse:/\u05d0\u05d7\u05d4"\u05e6|\u05dc\u05e4\u05e0\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8|\u05d1\u05d1\u05d5\u05e7\u05e8|\u05d1\u05e2\u05e8\u05d1/i,isPM:function(n){return/^(\u05d0\u05d7\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05d1\u05e2\u05e8\u05d1)$/.test(n)},meridiem:function(n,t,i){return n<5?"לפנות בוקר":n<10?"בבוקר":n<12?i?'לפנה"צ':"לפני הצהריים":n<18?i?'אחה"צ':"אחרי הצהריים":"בערב"}});oa={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"};sa={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};n.defineLocale("hi",{months:"जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर".split("_"),monthsShort:"जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm बजे",LTS:"A h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm बजे",LLLL:"dddd, D MMMM YYYY, A h:mm बजे"},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 वर्ष"},preparse:function(n){return n.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(n){return sa[n]})},postformat:function(n){return n.replace(/\d/g,function(n){return oa[n]})},meridiemParse:/\u0930\u093e\u0924|\u0938\u0941\u092c\u0939|\u0926\u094b\u092a\u0939\u0930|\u0936\u093e\u092e/,meridiemHour:function(n,t){return 12===n&&(n=0),"रात"===t?n<4?n:n+12:"सुबह"===t?n:"दोपहर"===t?10<=n?n:n+12:"शाम"===t?n+12:void 0},meridiem:function(n){return n<4?"रात":n<10?"सुबह":n<17?"दोपहर":n<20?"शाम":"रात"},week:{dow:0,doy:6}});n.defineLocale("hr",{months:{format:"siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,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("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},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",ss:ki,m:ki,mm:ki,h:ki,hh:ki,d:"dan",dd:ki,M:"mjesec",MM:ki,y:"godinu",yy:ki},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});ha="vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton".split(" ");n.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",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(n){return"u"===n.charAt(1).toLowerCase()},meridiem:function(n,t,i){return n<12?!0===i?"de":"DE":!0===i?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return ca.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return ca.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s múlva",past:"%s",s:et,ss:et,m:et,mm:et,h:et,hh:et,d:et,dd:et,M:et,MM:et,y:et,yy:et},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});n.defineLocale("hy-am",{months:{format:"հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի".split("_"),standalone:"հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր".split("_")},monthsShort:"հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ".split("_"),weekdays:"կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ".split("_"),weekdaysShort:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),weekdaysMin:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY թ.",LLL:"D MMMM YYYY թ., HH:mm",LLLL:"dddd, D MMMM YYYY թ., HH:mm"},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:"մի քանի վայրկյան",ss:"%d վայրկյան",m:"րոպե",mm:"%d րոպե",h:"ժամ",hh:"%d ժամ",d:"օր",dd:"%d օր",M:"ամիս",MM:"%d ամիս",y:"տարի",yy:"%d տարի"},meridiemParse:/\u0563\u056b\u0577\u0565\u0580\u057e\u0561|\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561|\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576/,isPM:function(n){return/^(\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576)$/.test(n)},meridiem:function(n){return n<4?"գիշերվա":n<12?"առավոտվա":n<17?"ցերեկվա":"երեկոյան"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(\u056b\u0576|\u0580\u0564)/,ordinal:function(n,t){switch(t){case"DDD":case"w":case"W":case"DDDo":return 1===n?n+"-ին":n+"-րդ";default:return n}},week:{dow:1,doy:7}});n.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_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",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(n,t){return 12===n&&(n=0),"pagi"===t?n:"siang"===t?11<=n?n:n+12:"sore"===t||"malam"===t?n+12:void 0},meridiem:function(n){return n<11?"pagi":n<15?"siang":n<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",ss:"%d 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}});n.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",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},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:kt,ss:kt,m:kt,mm:kt,h:"klukkustund",hh:kt,d:kt,dd:kt,M:kt,MM:kt,y:kt,yy:kt},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});n.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:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(n){return(/^[0-9].+$/.test(n)?"tra":"in")+" "+n},past:"%s fa",s:"alcuni secondi",ss:"%d 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"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%dº",week:{dow:1,doy:4}});n.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:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日(ddd) HH:mm"},meridiemParse:/\u5348\u524d|\u5348\u5f8c/i,isPM:function(n){return"午後"===n},meridiem:function(n){return n<12?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:function(n){return n.week()<this.week()?"[来週]dddd LT":"dddd LT"},lastDay:"[昨日] LT",lastWeek:function(n){return this.week()<n.week()?"[先週]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}\u65e5/,ordinal:function(n,t){switch(t){case"d":case"D":case"DDD":return n+"日";default:return n}},relativeTime:{future:"%s後",past:"%s前",s:"数秒",ss:"%d秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}});n.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(n,t){return 12===n&&(n=0),"enjing"===t?n:"siyang"===t?11<=n?n:n+12:"sonten"===t||"ndalu"===t?n+12:void 0},meridiem:function(n){return n<11?"enjing":n<15?"siyang":n<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}});n.defineLocale("ka",{months:{standalone:"იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი".split("_"),format:"იანვარს_თებერვალს_მარტს_აპრილის_მაისს_ივნისს_ივლისს_აგვისტს_სექტემბერს_ოქტომბერს_ნოემბერს_დეკემბერს".split("_")},monthsShort:"იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"),weekdays:{standalone:"კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი".split("_"),format:"კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს".split("_"),isFormat:/(\u10ec\u10d8\u10dc\u10d0|\u10e8\u10d4\u10db\u10d3\u10d4\u10d2)/},weekdaysShort:"კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ".split("_"),weekdaysMin:"კვ_ორ_სა_ოთ_ხუ_პა_შა".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[დღეს] LT[-ზე]",nextDay:"[ხვალ] LT[-ზე]",lastDay:"[გუშინ] LT[-ზე]",nextWeek:"[შემდეგ] dddd LT[-ზე]",lastWeek:"[წინა] dddd LT-ზე",sameElse:"L"},relativeTime:{future:function(n){return/(\u10ec\u10d0\u10db\u10d8|\u10ec\u10e3\u10d7\u10d8|\u10e1\u10d0\u10d0\u10d7\u10d8|\u10ec\u10d4\u10da\u10d8)/.test(n)?n.replace(/\u10d8$/,"ში"):n+"ში"},past:function(n){return/(\u10ec\u10d0\u10db\u10d8|\u10ec\u10e3\u10d7\u10d8|\u10e1\u10d0\u10d0\u10d7\u10d8|\u10d3\u10e6\u10d4|\u10d7\u10d5\u10d4)/.test(n)?n.replace(/(\u10d8|\u10d4)$/,"ის წინ"):/\u10ec\u10d4\u10da\u10d8/.test(n)?n.replace(/\u10ec\u10d4\u10da\u10d8$/,"წლის წინ"):void 0},s:"რამდენიმე წამი",ss:"%d წამი",m:"წუთი",mm:"%d წუთი",h:"საათი",hh:"%d საათი",d:"დღე",dd:"%d დღე",M:"თვე",MM:"%d თვე",y:"წელი",yy:"%d წელი"},dayOfMonthOrdinalParse:/0|1-\u10da\u10d8|\u10db\u10d4-\d{1,2}|\d{1,2}-\u10d4/,ordinal:function(n){return 0===n?n:1===n?n+"-ლი":n<20||n<=100&&n%20==0||n%100==0?"მე-"+n:n+"-ე"},week:{dow:1,doy:7}});ie={0:"-ші",1:"-ші",2:"-ші",3:"-ші",4:"-ші",5:"-ші",6:"-шы",7:"-ші",8:"-ші",9:"-шы",10:"-шы",20:"-шы",30:"-шы",40:"-шы",50:"-ші",60:"-шы",70:"-ші",80:"-ші",90:"-шы",100:"-ші"};n.defineLocale("kk",{months:"қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан".split("_"),monthsShort:"қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел".split("_"),weekdays:"жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі".split("_"),weekdaysShort:"жек_дүй_сей_сәр_бей_жұм_сен".split("_"),weekdaysMin:"жк_дй_сй_ср_бй_жм_сн".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},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 жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0448\u0456|\u0448\u044b)/,ordinal:function(n){return n+(ie[n]||ie[n%10]||ie[100<=n?100:null])},week:{dow:1,doy:7}});la={1:"១",2:"២",3:"៣",4:"៤",5:"៥",6:"៦",7:"៧",8:"៨",9:"៩",0:"០"};aa={"១":"1","២":"2","៣":"3","៤":"4","៥":"5","៦":"6","៧":"7","៨":"8","៩":"9","០":"0"};n.defineLocale("km",{months:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),monthsShort:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),weekdays:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysShort:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysMin:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u1796\u17d2\u179a\u17b9\u1780|\u179b\u17d2\u1784\u17b6\u1785/,isPM:function(n){return"ល្ងាច"===n},meridiem:function(n){return n<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 ឆ្នាំ"},dayOfMonthOrdinalParse:/\u1791\u17b8\d{1,2}/,ordinal:"ទី%d",preparse:function(n){return n.replace(/[\u17e1\u17e2\u17e3\u17e4\u17e5\u17e6\u17e7\u17e8\u17e9\u17e0]/g,function(n){return aa[n]})},postformat:function(n){return n.replace(/\d/g,function(n){return la[n]})},week:{dow:1,doy:4}});va={1:"೧",2:"೨",3:"೩",4:"೪",5:"೫",6:"೬",7:"೭",8:"೮",9:"೯",0:"೦"};ya={"೧":"1","೨":"2","೩":"3","೪":"4","೫":"5","೬":"6","೭":"7","೮":"8","೯":"9","೦":"0"};n.defineLocale("kn",{months:"ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್".split("_"),monthsShort:"ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ".split("_"),monthsParseExact:!0,weekdays:"ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ".split("_"),weekdaysShort:"ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ".split("_"),weekdaysMin:"ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},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 ವರ್ಷ"},preparse:function(n){return n.replace(/[\u0ce7\u0ce8\u0ce9\u0cea\u0ceb\u0cec\u0ced\u0cee\u0cef\u0ce6]/g,function(n){return ya[n]})},postformat:function(n){return n.replace(/\d/g,function(n){return va[n]})},meridiemParse:/\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf|\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6|\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8|\u0cb8\u0c82\u0c9c\u0cc6/,meridiemHour:function(n,t){return 12===n&&(n=0),"ರಾತ್ರಿ"===t?n<4?n:n+12:"ಬೆಳಿಗ್ಗೆ"===t?n:"ಮಧ್ಯಾಹ್ನ"===t?10<=n?n:n+12:"ಸಂಜೆ"===t?n+12:void 0},meridiem:function(n){return n<4?"ರಾತ್ರಿ":n<10?"ಬೆಳಿಗ್ಗೆ":n<17?"ಮಧ್ಯಾಹ್ನ":n<20?"ಸಂಜೆ":"ರಾತ್ರಿ"},dayOfMonthOrdinalParse:/\d{1,2}(\u0ca8\u0cc6\u0cd5)/,ordinal:function(n){return n+"ನೇ"},week:{dow:0,doy:6}});n.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:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY년 MMMM D일",LLL:"YYYY년 MMMM D일 A h:mm",LLLL:"YYYY년 MMMM D일 dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY년 MMMM D일",lll:"YYYY년 MMMM D일 A h:mm",llll:"YYYY년 MMMM D일 dddd A h:mm"},calendar:{sameDay:"오늘 LT",nextDay:"내일 LT",nextWeek:"dddd LT",lastDay:"어제 LT",lastWeek:"지난주 dddd LT",sameElse:"L"},relativeTime:{future:"%s 후",past:"%s 전",s:"몇 초",ss:"%d초",m:"1분",mm:"%d분",h:"한 시간",hh:"%d시간",d:"하루",dd:"%d일",M:"한 달",MM:"%d달",y:"일 년",yy:"%d년"},dayOfMonthOrdinalParse:/\d{1,2}(\uc77c|\uc6d4|\uc8fc)/,ordinal:function(n,t){switch(t){case"d":case"D":case"DDD":return n+"일";case"M":return n+"월";case"w":case"W":return n+"주";default:return n}},meridiemParse:/\uc624\uc804|\uc624\ud6c4/,isPM:function(n){return"오후"===n},meridiem:function(n){return n<12?"오전":"오후"}});re={0:"-чү",1:"-чи",2:"-чи",3:"-чү",4:"-чү",5:"-чи",6:"-чы",7:"-чи",8:"-чи",9:"-чу",10:"-чу",20:"-чы",30:"-чу",40:"-чы",50:"-чү",60:"-чы",70:"-чи",80:"-чи",90:"-чу",100:"-чү"};n.defineLocale("ky",{months:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),monthsShort:"янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек".split("_"),weekdays:"Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби".split("_"),weekdaysShort:"Жек_Дүй_Шей_Шар_Бей_Жум_Ише".split("_"),weekdaysMin:"Жк_Дй_Шй_Шр_Бй_Жм_Иш".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},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 жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0447\u0438|\u0447\u044b|\u0447\u04af|\u0447\u0443)/,ordinal:function(n){return n+(re[n]||re[n%10]||re[100<=n?100:null])},week:{dow:1,doy:7}});n.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("_"),monthsParseExact:!0,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("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},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:function(n){return pu(n.substr(0,n.indexOf(" ")))?"a "+n:"an "+n},past:function(n){return pu(n.substr(0,n.indexOf(" ")))?"viru "+n:"virun "+n},s:"e puer Sekonnen",ss:"%d Sekonnen",m:yu,mm:"%d Minutten",h:yu,hh:"%d Stonnen",d:yu,dd:"%d Deeg",M:yu,MM:"%d Méint",y:yu,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});n.defineLocale("lo",{months:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),monthsShort:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),weekdays:"ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysShort:"ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysMin:"ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"ວັນdddd D MMMM YYYY HH:mm"},meridiemParse:/\u0e95\u0ead\u0e99\u0ec0\u0e8a\u0ebb\u0ec9\u0eb2|\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87/,isPM:function(n){return"ຕອນແລງ"===n},meridiem:function(n){return n<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:"1 ນາທີ",mm:"%d ນາທີ",h:"1 ຊົ່ວໂມງ",hh:"%d ຊົ່ວໂມງ",d:"1 ມື້",dd:"%d ມື້",M:"1 ເດືອນ",MM:"%d ເດືອນ",y:"1 ປີ",yy:"%d ປີ"},dayOfMonthOrdinalParse:/(\u0e97\u0eb5\u0ec8)\d{1,2}/,ordinal:function(n){return"ທີ່"+n}});pa={ss:"sekundė_sekundžių_sekundes",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"};n.defineLocale("lt",{months:{format:"sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_Šeš".split("_"),weekdaysMin:"S_P_A_T_K_Pn_Š".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [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:function(n,t,i,r){return t?"kelios sekundės":r?"kelių sekundžių":"kelias sekundes"},ss:dr,m:kr,mm:dr,h:kr,hh:dr,d:kr,dd:dr,M:kr,MM:dr,y:kr,yy:dr},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(n){return n+"-oji"},week:{dow:1,doy:4}});es={ss:"sekundes_sekundēm_sekunde_sekundes".split("_"),m:"minūtes_minūtēm_minūte_minūtes".split("_"),mm:"minūtes_minūtēm_minūte_minūtes".split("_"),h:"stundas_stundām_stunda_stundas".split("_"),hh:"stundas_stundām_stunda_stundas".split("_"),d:"dienas_dienām_diena_dienas".split("_"),dd:"dienas_dienām_diena_dienas".split("_"),M:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),MM:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};n.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("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},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:"pēc %s",past:"pirms %s",s:function(n,t){return t?"dažas sekundes":"dažām sekundēm"},ss:gr,m:wu,mm:gr,h:wu,hh:gr,d:wu,dd:gr,M:wu,MM:gr,y:wu,yy:gr},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});dt={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(n,t){return 1===n?t[0]:2<=n&&n<=4?t[1]:t[2]},translate:function(n,t,i){var r=dt.words[i];return 1===i.length?t?r[0]:r[1]:n+" "+dt.correctGrammaticalCase(n,r)}};n.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,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("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra 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če u] LT",lastWeek:function(){return["[prošle] [nedjelje] [u] LT","[prošlog] [ponedjeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srijede] [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:"prije %s",s:"nekoliko sekundi",ss:dt.translate,m:dt.translate,mm:dt.translate,h:dt.translate,hh:dt.translate,d:"dan",dd:dt.translate,M:"mjesec",MM:dt.translate,y:"godinu",yy:dt.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});n.defineLocale("mi",{months:"Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei".split("_"),weekdaysShort:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),weekdaysMin:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te hēkona ruarua",ss:"%d hēkona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%dº",week:{dow:1,doy:4}});n.defineLocale("mk",{months:"јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември".split("_"),monthsShort:"јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек".split("_"),weekdays:"недела_понеделник_вторник_среда_четврток_петок_сабота".split("_"),weekdaysShort:"нед_пон_вто_сре_чет_пет_саб".split("_"),weekdaysMin:"нe_пo_вт_ср_че_пе_сa".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},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:"неколку секунди",ss:"%d секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дена",M:"месец",MM:"%d месеци",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(n){var t=n%10,i=n%100;return 0===n?n+"-ев":0===i?n+"-ен":10<i&&i<20?n+"-ти":1===t?n+"-ви":2===t?n+"-ри":7===t||8===t?n+"-ми":n+"-ти"},week:{dow:1,doy:7}});n.defineLocale("ml",{months:"ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ".split("_"),monthsShort:"ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.".split("_"),monthsParseExact:!0,weekdays:"ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച".split("_"),weekdaysShort:"ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി".split("_"),weekdaysMin:"ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ".split("_"),longDateFormat:{LT:"A h:mm -നു",LTS:"A h:mm:ss -നു",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -നു",LLLL:"dddd, D MMMM YYYY, A h:mm -നു"},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 വർഷം"},meridiemParse:/\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f|\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46|\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d|\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02|\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f/i,meridiemHour:function(n,t){return 12===n&&(n=0),"രാത്രി"===t&&4<=n||"ഉച്ച കഴിഞ്ഞ്"===t||"വൈകുന്നേരം"===t?n+12:n},meridiem:function(n){return n<4?"രാത്രി":n<12?"രാവിലെ":n<17?"ഉച്ച കഴിഞ്ഞ്":n<20?"വൈകുന്നേരം":"രാത്രി"}});n.defineLocale("mn",{months:"Нэгдүгээр сар_Хоёрдугаар сар_Гуравдугаар сар_Дөрөвдүгээр сар_Тавдугаар сар_Зургадугаар сар_Долдугаар сар_Наймдугаар сар_Есдүгээр сар_Аравдугаар сар_Арван нэгдүгээр сар_Арван хоёрдугаар сар".split("_"),monthsShort:"1 сар_2 сар_3 сар_4 сар_5 сар_6 сар_7 сар_8 сар_9 сар_10 сар_11 сар_12 сар".split("_"),monthsParseExact:!0,weekdays:"Ням_Даваа_Мягмар_Лхагва_Пүрэв_Баасан_Бямба".split("_"),weekdaysShort:"Ням_Дав_Мяг_Лха_Пүр_Баа_Бям".split("_"),weekdaysMin:"Ня_Да_Мя_Лх_Пү_Ба_Бя".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY оны MMMMын D",LLL:"YYYY оны MMMMын D HH:mm",LLLL:"dddd, YYYY оны MMMMын D HH:mm"},meridiemParse:/\u04ae\u04e8|\u04ae\u0425/i,isPM:function(n){return"ҮХ"===n},meridiem:function(n){return n<12?"ҮӨ":"ҮХ"},calendar:{sameDay:"[Өнөөдөр] LT",nextDay:"[Маргааш] LT",nextWeek:"[Ирэх] dddd LT",lastDay:"[Өчигдөр] LT",lastWeek:"[Өнгөрсөн] dddd LT",sameElse:"L"},relativeTime:{future:"%s дараа",past:"%s өмнө",s:ot,ss:ot,m:ot,mm:ot,h:ot,hh:ot,d:ot,dd:ot,M:ot,MM:ot,y:ot,yy:ot},dayOfMonthOrdinalParse:/\d{1,2} \u04e9\u0434\u04e9\u0440/,ordinal:function(n,t){switch(t){case"d":case"D":case"DDD":return n+" өдөр";default:return n}}});ka={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"};da={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};n.defineLocale("mr",{months:"जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),monthsShort:"जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm वाजता",LTS:"A h:mm:ss वाजता",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm वाजता",LLLL:"dddd, D MMMM YYYY, A h:mm वाजता"},calendar:{sameDay:"[आज] LT",nextDay:"[उद्या] LT",nextWeek:"dddd, LT",lastDay:"[काल] LT",lastWeek:"[मागील] dddd, LT",sameElse:"L"},relativeTime:{future:"%sमध्ये",past:"%sपूर्वी",s:st,ss:st,m:st,mm:st,h:st,hh:st,d:st,dd:st,M:st,MM:st,y:st,yy:st},preparse:function(n){return n.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(n){return da[n]})},postformat:function(n){return n.replace(/\d/g,function(n){return ka[n]})},meridiemParse:/\u0930\u093e\u0924\u094d\u0930\u0940|\u0938\u0915\u093e\u0933\u0940|\u0926\u0941\u092a\u093e\u0930\u0940|\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940/,meridiemHour:function(n,t){return 12===n&&(n=0),"रात्री"===t?n<4?n:n+12:"सकाळी"===t?n:"दुपारी"===t?10<=n?n:n+12:"सायंकाळी"===t?n+12:void 0},meridiem:function(n){return n<4?"रात्री":n<10?"सकाळी":n<17?"दुपारी":n<20?"सायंकाळी":"रात्री"},week:{dow:0,doy:6}});n.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",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(n,t){return 12===n&&(n=0),"pagi"===t?n:"tengahari"===t?11<=n?n:n+12:"petang"===t||"malam"===t?n+12:void 0},meridiem:function(n){return n<11?"pagi":n<15?"tengahari":n<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",ss:"%d 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}});n.defineLocale("ms",{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",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(n,t){return 12===n&&(n=0),"pagi"===t?n:"tengahari"===t?11<=n?n:n+12:"petang"===t||"malam"===t?n+12:void 0},meridiem:function(n){return n<11?"pagi":n<15?"tengahari":n<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",ss:"%d 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}});n.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ".split("_"),weekdays:"Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt".split("_"),weekdaysShort:"Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib".split("_"),weekdaysMin:"Ħa_Tn_Tl_Er_Ħa_Ġi_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[Għada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-bieraħ fil-]LT",lastWeek:"dddd [li għadda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f’ %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"siegħa",hh:"%d siegħat",d:"ġurnata",dd:"%d ġranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%dº",week:{dow:1,doy:4}});ga={1:"၁",2:"၂",3:"၃",4:"၄",5:"၅",6:"၆",7:"၇",8:"၈",9:"၉",0:"၀"};nv={"၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","၀":"0"};n.defineLocale("my",{months:"ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ".split("_"),monthsShort:"ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ".split("_"),weekdays:"တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ".split("_"),weekdaysShort:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),weekdaysMin:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},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 နှစ်"},preparse:function(n){return n.replace(/[\u1041\u1042\u1043\u1044\u1045\u1046\u1047\u1048\u1049\u1040]/g,function(n){return nv[n]})},postformat:function(n){return n.replace(/\d/g,function(n){return ga[n]})},week:{dow:1,doy:4}});n.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"sø._ma._ti._on._to._fr._lø.".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},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:"%s siden",s:"noen sekunder",ss:"%d 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"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});tv={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"};iv={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};n.defineLocale("ne",{months:"जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर".split("_"),monthsShort:"जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.".split("_"),monthsParseExact:!0,weekdays:"आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार".split("_"),weekdaysShort:"आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.".split("_"),weekdaysMin:"आ._सो._मं._बु._बि._शु._श.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"Aको h:mm बजे",LTS:"Aको h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, Aको h:mm बजे",LLLL:"dddd, D MMMM YYYY, Aको h:mm बजे"},preparse:function(n){return n.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(n){return iv[n]})},postformat:function(n){return n.replace(/\d/g,function(n){return tv[n]})},meridiemParse:/\u0930\u093e\u0924\u093f|\u092c\u093f\u0939\u093e\u0928|\u0926\u093f\u0909\u0901\u0938\u094b|\u0938\u093e\u0901\u091d/,meridiemHour:function(n,t){return 12===n&&(n=0),"राति"===t?n<4?n:n+12:"बिहान"===t?n:"दिउँसो"===t?10<=n?n:n+12:"साँझ"===t?n+12:void 0},meridiem:function(n){return n<3?"राति":n<12?"बिहान":n<16?"दिउँसो":n<20?"साँझ":"राति"},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 बर्ष"},week:{dow:0,doy:6}});var rv="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),cp="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),os=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],uv=/^(januari|februari|maart|april|mei|april|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;n.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(n,t){return n?/-MMM-/.test(t)?cp[n.month()]:rv[n.month()]:rv},monthsRegex:uv,monthsShortRegex:uv,monthsStrictRegex:/^(januari|februari|maart|mei|ju[nl]i|april|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:os,longMonthsParse:os,shortMonthsParse:os,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("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},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",ss:"%d 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"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(n){return n+(1===n||8===n||20<=n?"ste":"de")},week:{dow:1,doy:4}});var fv="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),lp="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),ss=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],ev=/^(januari|februari|maart|april|mei|april|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;return n.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(n,t){return n?/-MMM-/.test(t)?lp[n.month()]:fv[n.month()]:fv},monthsRegex:ev,monthsShortRegex:ev,monthsStrictRegex:/^(januari|februari|maart|mei|ju[nl]i|april|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:ss,longMonthsParse:ss,shortMonthsParse:ss,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("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},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",ss:"%d 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"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(n){return n+(1===n||8===n||20<=n?"ste":"de")},week:{dow:1,doy:4}}),n.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",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},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:"%s sidan",s:"nokre sekund",ss:"%d 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"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),ov={1:"੧",2:"੨",3:"੩",4:"੪",5:"੫",6:"੬",7:"੭",8:"੮",9:"੯",0:"੦"},sv={"੧":"1","੨":"2","੩":"3","੪":"4","੫":"5","੬":"6","੭":"7","੮":"8","੯":"9","੦":"0"},n.defineLocale("pa-in",{months:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),monthsShort:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),weekdays:"ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ".split("_"),weekdaysShort:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),weekdaysMin:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),longDateFormat:{LT:"A h:mm ਵਜੇ",LTS:"A h:mm:ss ਵਜੇ",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm ਵਜੇ",LLLL:"dddd, D MMMM YYYY, A h:mm ਵਜੇ"},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 ਸਾਲ"},preparse:function(n){return n.replace(/[\u0a67\u0a68\u0a69\u0a6a\u0a6b\u0a6c\u0a6d\u0a6e\u0a6f\u0a66]/g,function(n){return sv[n]})},postformat:function(n){return n.replace(/\d/g,function(n){return ov[n]})},meridiemParse:/\u0a30\u0a3e\u0a24|\u0a38\u0a35\u0a47\u0a30|\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30|\u0a38\u0a3c\u0a3e\u0a2e/,meridiemHour:function(n,t){return 12===n&&(n=0),"ਰਾਤ"===t?n<4?n:n+12:"ਸਵੇਰ"===t?n:"ਦੁਪਹਿਰ"===t?10<=n?n:n+12:"ਸ਼ਾਮ"===t?n+12:void 0},meridiem:function(n){return n<4?"ਰਾਤ":n<10?"ਸਵੇਰ":n<17?"ਦੁਪਹਿਰ":n<20?"ਸ਼ਾਮ":"ਰਾਤ"},week:{dow:0,doy:6}}),ue="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),hs="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_"),n.defineLocale("pl",{months:function(n,t){return n?""===t?"("+hs[n.month()]+"|"+ue[n.month()]+")":/D MMMM/.test(t)?hs[n.month()]:ue[n.month()]:ue},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:"ndz_pon_wt_śr_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_Śr_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dziś o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedzielę o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W środę o] LT";case 6:return"[W sobotę o] LT";default:return"[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",ss:er,m:er,mm:er,h:er,hh:er,d:"1 dzień",dd:"%d dni",M:"miesiąc",MM:er,y:"rok",yy:er},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),n.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:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},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:"poucos segundos",ss:"%d 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"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%dº"}),n.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:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},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",ss:"%d 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"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%dº",week:{dow:1,doy:4}}),n.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("_"),monthsParseExact:!0,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",LTS:"H:mm:ss",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",ss:nu,m:"un minut",mm:nu,h:"o oră",hh:nu,d:"o zi",dd:nu,M:"o lună",MM:nu,y:"un an",yy:nu},week:{dow:1,doy:7}}),fe=[/^\u044f\u043d\u0432/i,/^\u0444\u0435\u0432/i,/^\u043c\u0430\u0440/i,/^\u0430\u043f\u0440/i,/^\u043c\u0430[\u0439\u044f]/i,/^\u0438\u044e\u043d/i,/^\u0438\u044e\u043b/i,/^\u0430\u0432\u0433/i,/^\u0441\u0435\u043d/i,/^\u043e\u043a\u0442/i,/^\u043d\u043e\u044f/i,/^\u0434\u0435\u043a/i],n.defineLocale("ru",{months:{format:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),standalone:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_")},monthsShort:{format:"янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),standalone:"янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_")},weekdays:{standalone:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),format:"воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split("_"),isFormat:/\[ ?[\u0412\u0432] ?(?:\u043f\u0440\u043e\u0448\u043b\u0443\u044e|\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e|\u044d\u0442\u0443)? ?\] ?dddd/},weekdaysShort:"вс_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:fe,longMonthsParse:fe,shortMonthsParse:fe,monthsRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsShortRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsStrictRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044f\u044c]|\u0444\u0435\u0432\u0440\u0430\u043b[\u044f\u044c]|\u043c\u0430\u0440\u0442\u0430?|\u0430\u043f\u0440\u0435\u043b[\u044f\u044c]|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044f\u044c]|\u0438\u044e\u043b[\u044f\u044c]|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043e\u043a\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043d\u043e\u044f\u0431\u0440[\u044f\u044c]|\u0434\u0435\u043a\u0430\u0431\u0440[\u044f\u044c])/i,monthsShortStrictRegex:/^(\u044f\u043d\u0432\.|\u0444\u0435\u0432\u0440?\.|\u043c\u0430\u0440[\u0442.]|\u0430\u043f\u0440\.|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044c\u044f.]|\u0438\u044e\u043b[\u044c\u044f.]|\u0430\u0432\u0433\.|\u0441\u0435\u043d\u0442?\.|\u043e\u043a\u0442\.|\u043d\u043e\u044f\u0431?\.|\u0434\u0435\u043a\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},calendar:{sameDay:"[Сегодня, в] LT",nextDay:"[Завтра, в] LT",lastDay:"[Вчера, в] LT",nextWeek:function(n){if(n.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";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"}},lastWeek:function(n){if(n.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";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:"несколько секунд",ss:or,m:or,mm:or,h:"час",hh:or,d:"день",dd:or,M:"месяц",MM:or,y:"год",yy:or},meridiemParse:/\u043d\u043e\u0447\u0438|\u0443\u0442\u0440\u0430|\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430/i,isPM:function(n){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430)$/.test(n)},meridiem:function(n){return n<4?"ночи":n<12?"утра":n<17?"дня":"вечера"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e|\u044f)/,ordinal:function(n,t){switch(t){case"M":case"d":case"DDD":return n+"-й";case"D":return n+"-го";case"w":case"W":return n+"-я";default:return n}},week:{dow:1,doy:4}}),cs=["جنوري","فيبروري","مارچ","اپريل","مئي","جون","جولاءِ","آگسٽ","سيپٽمبر","آڪٽوبر","نومبر","ڊسمبر"],ee=["آچر","سومر","اڱارو","اربع","خميس","جمع","ڇنڇر"],n.defineLocale("sd",{months:cs,monthsShort:cs,weekdays:ee,weekdaysShort:ee,weekdaysMin:ee,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/\u0635\u0628\u062d|\u0634\u0627\u0645/,isPM:function(n){return"شام"===n},meridiem:function(n){return n<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 سال"},preparse:function(n){return n.replace(/\u060c/g,",")},postformat:function(n){return n.replace(/,/g,"،")},week:{dow:1,doy:4}}),n.defineLocale("se",{months:"ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu".split("_"),monthsShort:"ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov".split("_"),weekdays:"sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat".split("_"),weekdaysShort:"sotn_vuos_maŋ_gask_duor_bear_láv".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s geažes",past:"maŋit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta mánnu",MM:"%d mánut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),n.defineLocale("si",{months:"ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්".split("_"),monthsShort:"ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ".split("_"),weekdays:"ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා".split("_"),weekdaysShort:"ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන".split("_"),weekdaysMin:"ඉ_ස_අ_බ_බ්‍ර_සි_සෙ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [වැනි] dddd, a h:mm:ss"},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"},dayOfMonthOrdinalParse:/\d{1,2} \u0dc0\u0dd0\u0db1\u0dd2/,ordinal:function(n){return n+" වැනි"},meridiemParse:/\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4|\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4|\u0db4\u0dd9.\u0dc0|\u0db4.\u0dc0./,isPM:function(n){return"ප.ව."===n||"පස් වරු"===n},meridiem:function(n,t,i){return 11<n?i?"ප.ව.":"පස් වරු":i?"පෙ.ව.":"පෙර වරු"}}),hv="január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_"),cv="jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_"),n.defineLocale("sk",{months:hv,monthsShort:cv,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",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},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:ht,ss:ht,m:ht,mm:ht,h:ht,hh:ht,d:ht,dd:ht,M:ht,MM:ht,y:ht,yy:ht},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),n.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("_"),monthsParseExact:!0,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("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},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:return"[prejšnjo] [nedeljo] [ob] LT";case 3:return"[prejšnjo] [sredo] [ob] LT";case 6:return"[prejšnjo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prejšnji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"čez %s",past:"pred %s",s:ct,ss:ct,m:ct,mm:ct,h:ct,hh:ct,d:ct,dd:ct,M:ct,MM:ct,y:ct,yy:ct},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}}),n.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("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(n){return"M"===n.charAt(0)},meridiem:function(n){return n<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},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",ss:"%d 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"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),gt={words:{ss:["секунда","секунде","секунди"],m:["један минут","једне минуте"],mm:["минут","минуте","минута"],h:["један сат","једног сата"],hh:["сат","сата","сати"],dd:["дан","дана","дана"],MM:["месец","месеца","месеци"],yy:["година","године","година"]},correctGrammaticalCase:function(n,t){return 1===n?t[0]:2<=n&&n<=4?t[1]:t[2]},translate:function(n,t,i){var r=gt.words[i];return 1===i.length?t?r[0]:r[1]:n+" "+gt.correctGrammaticalCase(n,r)}},n.defineLocale("sr-cyrl",{months:"јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар".split("_"),monthsShort:"јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.".split("_"),monthsParseExact:!0,weekdays:"недеља_понедељак_уторак_среда_четвртак_петак_субота".split("_"),weekdaysShort:"нед._пон._уто._сре._чет._пет._суб.".split("_"),weekdaysMin:"не_по_ут_ср_че_пе_су".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},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:"неколико секунди",ss:gt.translate,m:gt.translate,mm:gt.translate,h:gt.translate,hh:gt.translate,d:"дан",dd:gt.translate,M:"месец",MM:gt.translate,y:"годину",yy:gt.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}}),ni={words:{ss:["sekunda","sekunde","sekundi"],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(n,t){return 1===n?t[0]:2<=n&&n<=4?t[1]:t[2]},translate:function(n,t,i){var r=ni.words[i];return 1===i.length?t?r[0]:r[1]:n+" "+ni.correctGrammaticalCase(n,r)}},n.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},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",ss:ni.translate,m:ni.translate,mm:ni.translate,h:ni.translate,hh:ni.translate,d:"dan",dd:ni.translate,M:"mesec",MM:ni.translate,y:"godinu",yy:ni.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}}),n.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(n){return n<11?"ekuseni":n<15?"emini":n<19?"entsambama":"ebusuku"},meridiemHour:function(n,t){return 12===n&&(n=0),"ekuseni"===t?n:"emini"===t?11<=n?n:n+12:"entsambama"===t||"ebusuku"===t?0===n?0:n+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}}),n.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",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Igår] LT",nextWeek:"[På] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"för %s sedan",s:"några sekunder",ss:"%d 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"},dayOfMonthOrdinalParse:/\d{1,2}(e|a)/,ordinal:function(n){var t=n%10;return n+(1==~~(n%100/10)?"e":1===t?"a":2===t?"a":"e")},week:{dow:1,doy:4}}),n.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"masiku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}}),lv={1:"௧",2:"௨",3:"௩",4:"௪",5:"௫",6:"௬",7:"௭",8:"௮",9:"௯",0:"௦"},av={"௧":"1","௨":"2","௩":"3","௪":"4","௫":"5","௬":"6","௭":"7","௮":"8","௯":"9","௦":"0"},n.defineLocale("ta",{months:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),monthsShort:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),weekdays:"ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை".split("_"),weekdaysShort:"ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி".split("_"),weekdaysMin:"ஞா_தி_செ_பு_வி_வெ_ச".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},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 ஆண்டுகள்"},dayOfMonthOrdinalParse:/\d{1,2}\u0bb5\u0ba4\u0bc1/,ordinal:function(n){return n+"வது"},preparse:function(n){return n.replace(/[\u0be7\u0be8\u0be9\u0bea\u0beb\u0bec\u0bed\u0bee\u0bef\u0be6]/g,function(n){return av[n]})},postformat:function(n){return n.replace(/\d/g,function(n){return lv[n]})},meridiemParse:/\u0baf\u0bbe\u0bae\u0bae\u0bcd|\u0bb5\u0bc8\u0b95\u0bb1\u0bc8|\u0b95\u0bbe\u0bb2\u0bc8|\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd|\u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1|\u0bae\u0bbe\u0bb2\u0bc8/,meridiem:function(n){return n<2?" யாமம்":n<6?" வைகறை":n<10?" காலை":n<14?" நண்பகல்":n<18?" எற்பாடு":n<22?" மாலை":" யாமம்"},meridiemHour:function(n,t){return 12===n&&(n=0),"யாமம்"===t?n<2?n:n+12:"வைகறை"===t||"காலை"===t?n:"நண்பகல்"===t&&10<=n?n:n+12},week:{dow:0,doy:6}}),n.defineLocale("te",{months:"జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జూలై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్".split("_"),monthsShort:"జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జూలై_ఆగ._సెప్._అక్టో._నవ._డిసె.".split("_"),monthsParseExact:!0,weekdays:"ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం".split("_"),weekdaysShort:"ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని".split("_"),weekdaysMin:"ఆ_సో_మం_బు_గు_శు_శ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},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 సంవత్సరాలు"},dayOfMonthOrdinalParse:/\d{1,2}\u0c35/,ordinal:"%dవ",meridiemParse:/\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f|\u0c09\u0c26\u0c2f\u0c02|\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02|\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02/,meridiemHour:function(n,t){return 12===n&&(n=0),"రాత్రి"===t?n<4?n:n+12:"ఉదయం"===t?n:"మధ్యాహ్నం"===t?10<=n?n:n+12:"సాయంత్రం"===t?n+12:void 0},meridiem:function(n){return n<4?"రాత్రి":n<10?"ఉదయం":n<17?"మధ్యాహ్నం":n<20?"సాయంత్రం":"రాత్రి"},week:{dow:0,doy:6}}),n.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"minutu balun",ss:"minutu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(n){var t=n%10;return n+(1==~~(n%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}}),oe={0:"-ум",1:"-ум",2:"-юм",3:"-юм",4:"-ум",5:"-ум",6:"-ум",7:"-ум",8:"-ум",9:"-ум",10:"-ум",12:"-ум",13:"-ум",20:"-ум",30:"-юм",40:"-ум",50:"-ум",60:"-ум",70:"-ум",80:"-ум",90:"-ум",100:"-ум"},n.defineLocale("tg",{months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе".split("_"),weekdaysShort:"яшб_дшб_сшб_чшб_пшб_ҷум_шнб".split("_"),weekdaysMin:"яш_дш_сш_чш_пш_ҷм_шб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Имрӯз соати] LT",nextDay:"[Пагоҳ соати] LT",lastDay:"[Дирӯз соати] LT",nextWeek:"dddd[и] [ҳафтаи оянда соати] 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 сол"},meridiemParse:/\u0448\u0430\u0431|\u0441\u0443\u0431\u04b3|\u0440\u04ef\u0437|\u0431\u0435\u0433\u043e\u04b3/,meridiemHour:function(n,t){return 12===n&&(n=0),"шаб"===t?n<4?n:n+12:"субҳ"===t?n:"рӯз"===t?11<=n?n:n+12:"бегоҳ"===t?n+12:void 0},meridiem:function(n){return n<4?"шаб":n<11?"субҳ":n<16?"рӯз":n<19?"бегоҳ":"шаб"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0443\u043c|\u044e\u043c)/,ordinal:function(n){return n+(oe[n]||oe[n%10]||oe[100<=n?100:null])},week:{dow:1,doy:7}}),n.defineLocale("th",{months:"มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"),monthsShort:"ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.".split("_"),monthsParseExact:!0,weekdays:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),weekdaysShort:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"),weekdaysMin:"อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY เวลา H:mm",LLLL:"วันddddที่ D MMMM YYYY เวลา H:mm"},meridiemParse:/\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07|\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07/,isPM:function(n){return"หลังเที่ยง"===n},meridiem:function(n){return n<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:"1 นาที",mm:"%d นาที",h:"1 ชั่วโมง",hh:"%d ชั่วโมง",d:"1 วัน",dd:"%d วัน",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"}}),n.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",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d 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"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(n){return n},week:{dow:1,doy:4}}),se="pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_"),n.defineLocale("tlh",{months:"tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’".split("_"),monthsShort:"jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa’leS] LT",nextWeek:"LLL",lastDay:"[wa’Hu’] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:function(n){var t=n;return-1!==n.indexOf("jaj")?t.slice(0,-3)+"leS":-1!==n.indexOf("jar")?t.slice(0,-3)+"waQ":-1!==n.indexOf("DIS")?t.slice(0,-3)+"nem":t+" pIq"},past:function(n){var t=n;return-1!==n.indexOf("jaj")?t.slice(0,-3)+"Hu’":-1!==n.indexOf("jar")?t.slice(0,-3)+"wen":-1!==n.indexOf("DIS")?t.slice(0,-3)+"ben":t+" ret"},s:"puS lup",ss:iu,m:"wa’ tup",mm:iu,h:"wa’ rep",hh:iu,d:"wa’ jaj",dd:iu,M:"wa’ jar",MM:iu,y:"wa’ DIS",yy:iu},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),he={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ı"},n.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",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[dün] LT",lastWeek:"[geçen] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",ss:"%d 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(n,t){switch(t){case"d":case"D":case"Do":case"DD":return n;default:if(0===n)return n+"'ıncı";var i=n%10;return n+(he[i]||he[n%100-i]||he[100<=n?100:null])}},week:{dow:1,doy:7}}),n.defineLocale("tzl",{months:"Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi".split("_"),weekdaysShort:"Súl_Lún_Mai_Már_Xhú_Vié_Sát".split("_"),weekdaysMin:"Sú_Lú_Ma_Má_Xh_Vi_Sá".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(n){return"d'o"===n.toLowerCase()},meridiem:function(n,t,i){return 11<n?i?"d'o":"D'O":i?"d'a":"D'A"},calendar:{sameDay:"[oxhi à] LT",nextDay:"[demà à] LT",nextWeek:"dddd [à] LT",lastDay:"[ieiri à] LT",lastWeek:"[sür el] dddd [lasteu à] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:lt,ss:lt,m:lt,mm:lt,h:lt,hh:lt,d:lt,dd:lt,M:lt,MM:lt,y:lt,yy:lt},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),n.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",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},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",ss:"%d 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}}),n.defineLocale("tzm",{months:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),monthsShort:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),weekdays:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysShort:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysMin:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},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 oⵙⵙⴰⵏ",M:"ⴰⵢoⵓⵔ",MM:"%d ⵉⵢⵢⵉⵔⵏ",y:"ⴰⵙⴳⴰⵙ",yy:"%d ⵉⵙⴳⴰⵙⵏ"},week:{dow:6,doy:12}}),n.defineLocale("ug-cn",{months:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),monthsShort:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),weekdays:"يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە".split("_"),weekdaysShort:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),weekdaysMin:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-يىلىM-ئاينىڭD-كۈنى",LLL:"YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm",LLLL:"dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm"},meridiemParse:/\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5|\u0633\u06d5\u06be\u06d5\u0631|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646|\u0686\u06c8\u0634|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646|\u0643\u06d5\u0686/,meridiemHour:function(n,t){return 12===n&&(n=0),"يېرىم كېچە"===t||"سەھەر"===t||"چۈشتىن بۇرۇن"===t?n:"چۈشتىن كېيىن"===t||"كەچ"===t?n+12:11<=n?n:n+12},meridiem:function(n,t){var i=100*n+t;return i<600?"يېرىم كېچە":i<900?"سەھەر":i<1130?"چۈشتىن بۇرۇن":i<1230?"چۈش":i<1800?"چۈشتىن كېيىن":"كەچ"},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 يىل"},dayOfMonthOrdinalParse:/\d{1,2}(-\u0643\u06c8\u0646\u0649|-\u0626\u0627\u064a|-\u06be\u06d5\u067e\u062a\u06d5)/,ordinal:function(n,t){switch(t){case"d":case"D":case"DDD":return n+"-كۈنى";case"w":case"W":return n+"-ھەپتە";default:return n}},preparse:function(n){return n.replace(/\u060c/g,",")},postformat:function(n){return n.replace(/,/g,"،")},week:{dow:1,doy:7}}),n.defineLocale("uk",{months:{format:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),standalone:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_")},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekdays:function(n,t){var i={nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")};return n?i[/(\[[\u0412\u0432\u0423\u0443]\]) ?dddd/.test(t)?"accusative":/\[?(?:\u043c\u0438\u043d\u0443\u043b\u043e\u0457|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u043e\u0457)? ?\] ?dddd/.test(t)?"genitive":"nominative"][n.day()]:i.nominative},weekdaysShort:"нд_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY р.",LLL:"D MMMM YYYY р., HH:mm",LLLL:"dddd, D MMMM YYYY р., HH:mm"},calendar:{sameDay:ru("[Сьогодні "),nextDay:ru("[Завтра "),lastDay:ru("[Вчора "),nextWeek:ru("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return ru("[Минулої] dddd [").call(this);case 1:case 2:case 4:return ru("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",ss:sr,m:sr,mm:sr,h:"годину",hh:sr,d:"день",dd:sr,M:"місяць",MM:sr,y:"рік",yy:sr},meridiemParse:/\u043d\u043e\u0447\u0456|\u0440\u0430\u043d\u043a\u0443|\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430/,isPM:function(n){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430)$/.test(n)},meridiem:function(n){return n<4?"ночі":n<12?"ранку":n<17?"дня":"вечора"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e)/,ordinal:function(n,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return n+"-й";case"D":return n+"-го";default:return n}},week:{dow:1,doy:7}}),ls=["جنوری","فروری","مارچ","اپریل","مئی","جون","جولائی","اگست","ستمبر","اکتوبر","نومبر","دسمبر"],ce=["اتوار","پیر","منگل","بدھ","جمعرات","جمعہ","ہفتہ"],n.defineLocale("ur",{months:ls,monthsShort:ls,weekdays:ce,weekdaysShort:ce,weekdaysMin:ce,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/\u0635\u0628\u062d|\u0634\u0627\u0645/,isPM:function(n){return"شام"===n},meridiem:function(n){return n<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 سال"},preparse:function(n){return n.replace(/\u060c/g,",")},postformat:function(n){return n.replace(/,/g,"،")},week:{dow:1,doy:4}}),n.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}}),n.defineLocale("uz",{months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба".split("_"),weekdaysShort:"Якш_Душ_Сеш_Чор_Пай_Жум_Шан".split("_"),weekdaysMin:"Як_Ду_Се_Чо_Па_Жу_Ша".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},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 йил"},week:{dow:1,doy:7}}),n.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("_"),monthsParseExact:!0,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("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(n){return/^ch$/i.test(n)},meridiem:function(n,t,i){return n<12?i?"sa":"SA":i?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY HH:mm",LLLL:"dddd, D MMMM [năm] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},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",ss:"%d 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"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(n){return n},week:{dow:1,doy:4}}),n.defineLocale("x-pseudo",{months:"J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér".split("_"),monthsShort:"J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc".split("_"),monthsParseExact:!0,weekdays:"S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý".split("_"),weekdaysShort:"S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát".split("_"),weekdaysMin:"S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~ódá~ý át] LT",nextDay:"[T~ómó~rró~w át] LT",nextWeek:"dddd [át] LT",lastDay:"[Ý~ést~érdá~ý át] LT",lastWeek:"[L~ást] dddd [át] LT",sameElse:"L"},relativeTime:{future:"í~ñ %s",past:"%s á~gó",s:"á ~féw ~sécó~ñds",ss:"%d s~écóñ~ds",m:"á ~míñ~úté",mm:"%d m~íñú~tés",h:"á~ñ hó~úr",hh:"%d h~óúrs",d:"á ~dáý",dd:"%d d~áýs",M:"á ~móñ~th",MM:"%d m~óñt~hs",y:"á ~ýéár",yy:"%d ý~éárs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(n){var t=n%10;return n+(1==~~(n%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}}),n.defineLocale("yo",{months:"Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀".split("_"),monthsShort:"Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀".split("_"),weekdays:"Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta".split("_"),weekdaysShort:"Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá".split("_"),weekdaysMin:"Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Ònì ni] LT",nextDay:"[Ọ̀la ni] LT",nextWeek:"dddd [Ọsẹ̀ tón'bọ] [ni] LT",lastDay:"[Àna ni] LT",lastWeek:"dddd [Ọsẹ̀ tólọ́] [ni] LT",sameElse:"L"},relativeTime:{future:"ní %s",past:"%s kọjá",s:"ìsẹjú aayá die",ss:"aayá %d",m:"ìsẹjú kan",mm:"ìsẹjú %d",h:"wákati kan",hh:"wákati %d",d:"ọjọ́ kan",dd:"ọjọ́ %d",M:"osù kan",MM:"osù %d",y:"ọdún kan",yy:"ọdún %d"},dayOfMonthOrdinalParse:/\u1ecdj\u1ecd\u0301\s\d{1,2}/,ordinal:"ọjọ́ %d",week:{dow:1,doy:4}}),n.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:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(n,t){return 12===n&&(n=0),"凌晨"===t||"早上"===t||"上午"===t?n:"下午"===t||"晚上"===t?n+12:11<=n?n:n+12},meridiem:function(n,t){var i=100*n+t;return i<600?"凌晨":i<900?"早上":i<1130?"上午":i<1230?"中午":i<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u5468)/,ordinal:function(n,t){switch(t){case"d":case"D":case"DDD":return n+"日";case"M":return n+"月";case"w":case"W":return n+"周";default:return n}},relativeTime:{future:"%s内",past:"%s前",s:"几秒",ss:"%d 秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}}),n.defineLocale("zh-hk",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(n,t){return 12===n&&(n=0),"凌晨"===t||"早上"===t||"上午"===t?n:"中午"===t?11<=n?n:n+12:"下午"===t||"晚上"===t?n+12:void 0},meridiem:function(n,t){var i=100*n+t;return i<600?"凌晨":i<900?"早上":i<1130?"上午":i<1230?"中午":i<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(n,t){switch(t){case"d":case"D":case"DDD":return n+"日";case"M":return n+"月";case"w":case"W":return n+"週";default:return n}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}}),n.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:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(n,t){return 12===n&&(n=0),"凌晨"===t||"早上"===t||"上午"===t?n:"中午"===t?11<=n?n:n+12:"下午"===t||"晚上"===t?n+12:void 0},meridiem:function(n,t){var i=100*n+t;return i<600?"凌晨":i<900?"早上":i<1130?"上午":i<1230?"中午":i<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(n,t){switch(t){case"d":case"D":case"DDD":return n+"日";case"M":return n+"月";case"w":case"W":return n+"週";default:return n}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}}),n.locale("en"),n});angular.module("isteven-multi-select",["ng"]).directive("istevenMultiSelect",["$sce","$timeout","$templateCache",function(n,t){return{restrict:"AE",scope:{inputModel:"=",outputModel:"=",isDisabled:"=",onClear:"&",onClose:"&",onSearchChange:"&",onItemClick:"&",onOpen:"&",onReset:"&",onSelectAll:"&",onSelectNone:"&",translation:"="},templateUrl:"isteven-multi-select.htm",link:function(i,r,u){function b(n){for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",i="",r=0;r<n;r++)i+=t.charAt(Math.floor(Math.random()*t.length));return i}var v,w,l,y,p;i.backUp=[];i.varButtonLabel="";i.spacingProperty="";i.indexProperty="";i.orientationH=!1;i.orientationV=!0;i.filteredModel=[];i.inputLabel={labelFilter:""};i.tabIndex=0;i.lang={};i.helperStatus={all:!0,none:!0,reset:!1,filter:!1};var e=0,c=[],o=0,s="",f=[],a=0,h=null;i.clearClicked=function(n){i.inputLabel.labelFilter="";i.updateFilter();i.select("clear",n)};i.numberToArray=function(n){return new Array(n)};i.searchChanged=function(){if(i.inputLabel.labelFilter.length<a&&i.inputLabel.labelFilter.length>0)return!1;i.updateFilter()};i.updateFilter=function(){var n,f,r;if(i.filteredModel=[],n=0,typeof i.inputModel=="undefined")return!1;for(n=i.inputModel.length-1;n>=0;n--){if(typeof i.inputModel[n][u.groupProperty]!="undefined"&&i.inputModel[n][u.groupProperty]===!1&&i.filteredModel.push(i.inputModel[n]),f=!1,typeof i.inputModel[n][u.groupProperty]=="undefined"){if(typeof u.searchProperty!="undefined"&&u.searchProperty!==""){for(r in i.inputModel[n])if(typeof i.inputModel[n][r]!="boolean"&&String(i.inputModel[n][r]).toUpperCase().indexOf(i.inputLabel.labelFilter.toUpperCase())>=0&&u.searchProperty.indexOf(r)>-1){f=!0;break}}else for(r in i.inputModel[n])if(typeof i.inputModel[n][r]!="boolean"&&String(i.inputModel[n][r]).toUpperCase().indexOf(i.inputLabel.labelFilter.toUpperCase())>=0){f=!0;break}f===!0&&i.filteredModel.push(i.inputModel[n])}typeof i.inputModel[n][u.groupProperty]!="undefined"&&i.inputModel[n][u.groupProperty]===!0&&(typeof i.filteredModel[i.filteredModel.length-1][u.groupProperty]!="undefined"&&i.filteredModel[i.filteredModel.length-1][u.groupProperty]===!1?i.filteredModel.pop():i.filteredModel.push(i.inputModel[n]))}i.filteredModel.reverse();t(function(){if(i.getFormElements(),i.inputLabel.labelFilter.length>a){var n=[];angular.forEach(i.filteredModel,function(t){if(typeof t!="undefined"&&typeof t[u.groupProperty]=="undefined"){var f=angular.copy(t),r=n.push(f);delete n[r-1][i.indexProperty];delete n[r-1][i.spacingProperty]}});i.onSearchChange({data:{keyword:i.inputLabel.labelFilter,result:n}})}},0)};i.getFormElements=function(){var n;f=[];var e=[],t=[],o=[],u=[];for(i.helperStatus.all||i.helperStatus.none||i.helperStatus.reset?(e=r.children().children().next().children().children()[0].getElementsByTagName("button"),i.helperStatus.filter&&(t=r.children().children().next().children().children().next()[0].getElementsByTagName("input"),u=r.children().children().next().children().children().next()[0].getElementsByTagName("button"))):i.helperStatus.filter&&(t=r.children().children().next().children().children()[0].getElementsByTagName("input"),u=r.children().children().next().children().children()[0].getElementsByTagName("button")),o=i.helperStatus.all||i.helperStatus.none||i.helperStatus.reset||i.helperStatus.filter?r.children().children().next().children().next()[0].getElementsByTagName("input"):r.children().children().next()[0].getElementsByTagName("input"),n=0;n<e.length;n++)f.push(e[n]);for(n=0;n<t.length;n++)f.push(t[n]);for(n=0;n<u.length;n++)f.push(u[n]);for(n=0;n<o.length;n++)f.push(o[n])};i.isGroupMarker=function(n,t){return typeof n[u.groupProperty]!="undefined"&&n[u.groupProperty]===t?!0:!1};i.removeGroupEndMarker=function(n){return typeof n[u.groupProperty]!="undefined"&&n[u.groupProperty]===!1?!1:!0};i.syncItems=function(n,r,f){var a,b,l;if((r.preventDefault(),r.stopPropagation(),typeof u.disableProperty!="undefined"&&n[u.disableProperty]===!0)||typeof u.isDisabled!="undefined"&&i.isDisabled===!0||typeof n[u.groupProperty]!="undefined"&&n[u.groupProperty]===!1)return!1;if(a=i.filteredModel.indexOf(n),typeof n[u.groupProperty]!="undefined"&&n[u.groupProperty]===!0){if(typeof u.selectionMode!="undefined"&&u.selectionMode.toUpperCase()==="SINGLE")return!1;for(var s,p=0,w=i.filteredModel.length-1,v=[],y=0,c=a;c<i.filteredModel.length;c++){if(y===0&&c>a)break;if(typeof i.filteredModel[c][u.groupProperty]!="undefined"&&i.filteredModel[c][u.groupProperty]===!0)v.length===0&&(p=c+1),y=y+1;else if(typeof i.filteredModel[c][u.groupProperty]!="undefined"&&i.filteredModel[c][u.groupProperty]===!1){if(y=y-1,v.length>0&&y===0){for(b=!0,w=c,s=0;s<v.length;s++)if(typeof v[s][i.tickProperty]!="undefined"&&v[s][i.tickProperty]===!1){b=!1;break}if(b===!0)for(s=p;s<=w;s++)typeof i.filteredModel[s][u.groupProperty]=="undefined"&&(typeof u.disableProperty=="undefined"?(i.filteredModel[s][i.tickProperty]=!1,l=i.filteredModel[s][i.indexProperty],i.inputModel[l][i.tickProperty]=!1):i.filteredModel[s][u.disableProperty]!==!0&&(i.filteredModel[s][i.tickProperty]=!1,l=i.filteredModel[s][i.indexProperty],i.inputModel[l][i.tickProperty]=!1));else for(s=p;s<=w;s++)typeof i.filteredModel[s][u.groupProperty]=="undefined"&&(typeof u.disableProperty=="undefined"?(i.filteredModel[s][i.tickProperty]=!0,l=i.filteredModel[s][i.indexProperty],i.inputModel[l][i.tickProperty]=!0):i.filteredModel[s][u.disableProperty]!==!0&&(i.filteredModel[s][i.tickProperty]=!0,l=i.filteredModel[s][i.indexProperty],i.inputModel[l][i.tickProperty]=!0))}}else v.push(i.filteredModel[c])}}else{if(typeof u.selectionMode!="undefined"&&u.selectionMode.toUpperCase()==="SINGLE"){for(c=0;c<i.filteredModel.length;c++)i.filteredModel[c][i.tickProperty]=!1;for(c=0;c<i.inputModel.length;c++)i.inputModel[c][i.tickProperty]=!1;i.filteredModel[a][i.tickProperty]=!0}else i.filteredModel[a][i.tickProperty]=!i.filteredModel[a][i.tickProperty];l=i.filteredModel[a][i.indexProperty];i.inputModel[l][i.tickProperty]=i.filteredModel[a][i.tickProperty]}h=angular.copy(n);h!==null&&t(function(){delete h[i.indexProperty];delete h[i.spacingProperty];i.onItemClick({data:h});h=null},0);i.refreshOutputModel();i.refreshButton();e=i.tabIndex;i.tabIndex=f+o;r.target.focus();i.removeFocusStyle(e);i.setFocusStyle(i.tabIndex);typeof u.selectionMode!="undefined"&&u.selectionMode.toUpperCase()==="SINGLE"&&i.toggleCheckboxes(r)};i.refreshOutputModel=function(){i.outputModel=[];var t=[],n={};typeof u.outputProperties!="undefined"?(t=u.outputProperties.split(" "),angular.forEach(i.inputModel,function(r){if(typeof r!="undefined"&&typeof r[u.groupProperty]=="undefined"&&r[i.tickProperty]===!0){n={};angular.forEach(r,function(i,r){t.indexOf(r)>-1&&(n[r]=i)});var f=i.outputModel.push(n);delete i.outputModel[f-1][i.indexProperty];delete i.outputModel[f-1][i.spacingProperty]}})):angular.forEach(i.inputModel,function(n){if(typeof n!="undefined"&&typeof n[u.groupProperty]=="undefined"&&n[i.tickProperty]===!0){var r=angular.copy(n),t=i.outputModel.push(r);delete i.outputModel[t-1][i.indexProperty];delete i.outputModel[t-1][i.spacingProperty]}})};i.refreshButton=function(){var r,t;i.varButtonLabel="";r=0;i.outputModel.length===0?i.varButtonLabel=i.lang.nothingSelected:(t=i.outputModel.length,typeof u.maxLabels!="undefined"&&u.maxLabels!==""&&(t=u.maxLabels),i.more=i.outputModel.length>t?!0:!1,angular.forEach(i.inputModel,function(n){typeof n!="undefined"&&n[u.tickProperty]===!0&&(r<t&&(i.varButtonLabel+=(i.varButtonLabel.length>0?'<\/div>, <div class="buttonLabel">':'<div class="buttonLabel">')+i.writeLabel(n,"buttonLabel")),r++)}),i.more===!0&&(t>0&&(i.varButtonLabel+=", ... "),i.varButtonLabel+="("+i.outputModel.length+")"));i.varButtonLabel=n.trustAsHtml(i.varButtonLabel+'<span class="caret"><\/span>')};i.itemIsDisabled=function(n){return typeof u.disableProperty!="undefined"&&n[u.disableProperty]===!0?!0:i.isDisabled===!0?!0:!1};i.writeLabel=function(t,i){var f=u[i].split(" "),r="";return(angular.forEach(f,function(n){t[n]&&(r+="&nbsp;"+n.split(".").reduce(function(n,t){return n[t]},t))}),i.toUpperCase()==="BUTTONLABEL")?r:n.trustAsHtml(r)};i.writeLabelCount=function(t,i){var r=u[i],f="("+t[r]+")";return n.trustAsHtml(f)};i.toggleCheckboxes=function(){var e=r.children()[0],n,u;if(angular.element(document).off("click",i.externalClickListener),angular.element(document).off("keydown",i.keyboardListener),angular.element(s).hasClass("show"))angular.element(s).removeClass("show"),angular.element(e).removeClass("buttonClicked"),angular.element(document).off("click",i.externalClickListener),angular.element(document).off("keydown",i.keyboardListener),i.removeFocusStyle(i.tabIndex),typeof f[i.tabIndex]!="undefined"&&f[i.tabIndex].blur(),t(function(){i.onClose()},0),r.children().children()[0].focus();else{i.inputLabel.labelFilter="";i.updateFilter();c=[];o=0;angular.element(s).addClass("show");angular.element(e).addClass("buttonClicked");angular.element(document).on("click",i.externalClickListener);angular.element(document).on("keydown",i.keyboardListener);if(i.getFormElements(),i.tabIndex=0,n=angular.element(r[0].querySelector(".helperContainer"))[0],typeof n!="undefined"){for(u=0;u<n.getElementsByTagName("BUTTON").length;u++)c[u]=n.getElementsByTagName("BUTTON")[u];o=c.length+n.getElementsByTagName("INPUT").length}r[0].querySelector(".inputFilter")?(r[0].querySelector(".inputFilter").focus(),i.tabIndex=i.tabIndex+o-2,angular.element(r).children()[0].blur()):i.isDisabled||(i.tabIndex=i.tabIndex+o,i.inputModel.length>0&&(f[i.tabIndex].focus(),i.setFocusStyle(i.tabIndex),angular.element(r).children()[0].blur()));i.onOpen()}};i.externalClickListener=function(n){for(var f=r.find(n.target.tagName),u=0;u<f.length;u++)if(n.target==f[u])return;angular.element(s.previousSibling).removeClass("buttonClicked");angular.element(s).removeClass("show");angular.element(document).off("click",i.externalClickListener);angular.element(document).off("keydown",i.keyboardListener);t(function(){i.onClose()},0);r.children().children()[0].focus()};i.select=function(n,t){var r=c.indexOf(t.target);i.tabIndex=r;switch(n.toUpperCase()){case"ALL":angular.forEach(i.filteredModel,function(n){typeof n!="undefined"&&n[u.disableProperty]!==!0&&typeof n[u.groupProperty]=="undefined"&&(n[i.tickProperty]=!0)});i.refreshOutputModel();i.refreshButton();i.onSelectAll();break;case"NONE":angular.forEach(i.filteredModel,function(n){typeof n!="undefined"&&n[u.disableProperty]!==!0&&typeof n[u.groupProperty]=="undefined"&&(n[i.tickProperty]=!1)});i.refreshOutputModel();i.refreshButton();i.onSelectNone();break;case"RESET":angular.forEach(i.filteredModel,function(n){if(typeof n[u.groupProperty]=="undefined"&&typeof n!="undefined"&&n[u.disableProperty]!==!0){var t=n[i.indexProperty];n[i.tickProperty]=i.backUp[t][i.tickProperty]}});i.refreshOutputModel();i.refreshButton();i.onReset();break;case"CLEAR":i.tabIndex=i.tabIndex+1;i.onClear();break;case"FILTER":i.tabIndex=c.length-1}};i.prepareGrouping=function(){var n=0;angular.forEach(i.filteredModel,function(t){t[i.spacingProperty]=n;t[u.groupProperty]===!0?n+=2:t[u.groupProperty]===!1&&(n-=2)})};i.prepareIndex=function(){var n=0;angular.forEach(i.filteredModel,function(t){t[i.indexProperty]=n;n++})};i.keyboardListener=function(n){var t=n.keyCode?n.keyCode:n.which,r=!1,u;if(t===27)n.preventDefault(),n.stopPropagation(),i.toggleCheckboxes(n);else if(t!==40&&t!==39&&(n.shiftKey||t!=9)){if(t===38||t===37||n.shiftKey&&t==9)for(r=!0,e=i.tabIndex,i.tabIndex--,i.tabIndex<0&&(i.tabIndex=f.length-1,e=0);f[i.tabIndex].disabled===!0;){if(i.tabIndex--,i.tabIndex===e)break;i.tabIndex<0&&(i.tabIndex=f.length-1)}}else for(r=!0,e=i.tabIndex,i.tabIndex++,i.tabIndex>f.length-1&&(i.tabIndex=0,e=f.length-1);f[i.tabIndex].disabled===!0;)if(i.tabIndex++,i.tabIndex>f.length-1&&(i.tabIndex=0),i.tabIndex===e)break;r===!0&&(n.preventDefault(),f[i.tabIndex].focus(),u=document.activeElement,u.type.toUpperCase()==="CHECKBOX"?(i.setFocusStyle(i.tabIndex),i.removeFocusStyle(e)):(i.removeFocusStyle(e),i.removeFocusStyle(o),i.removeFocusStyle(f.length-1)));r=!1};i.setFocusStyle=function(n){angular.element(f[n]).parent().parent().parent().addClass("multiSelectFocus")};i.removeFocusStyle=function(n){angular.element(f[n]).parent().parent().parent().removeClass("multiSelectFocus")};i.groupProperty=u.groupProperty;i.tickProperty=u.tickProperty;i.directiveId=u.directiveId;v=b(5);i.indexProperty="idx_"+v;i.spacingProperty="spc_"+v;typeof u.orientation!="undefined"&&(u.orientation.toUpperCase()==="HORIZONTAL"?(i.orientationH=!0,i.orientationV=!1):(i.orientationH=!1,i.orientationV=!0));s=r.children().children().next()[0];typeof u.maxHeight!="undefined"&&(w=r.children().children().children()[0],angular.element(w).attr("style","height:"+u.maxHeight+"; overflow-y:scroll;"));for(l in i.helperStatus)i.helperStatus.hasOwnProperty(l)&&typeof u.helperElements!="undefined"&&u.helperElements.toUpperCase().indexOf(l.toUpperCase())===-1&&(i.helperStatus[l]=!1);typeof u.selectionMode!="undefined"&&u.selectionMode.toUpperCase()==="SINGLE"&&(i.helperStatus.all=!1,i.helperStatus.none=!1);i.icon={};i.icon.selectAll="&#10003;";i.icon.selectNone="&times;";i.icon.reset="&#8630;";i.icon.tickMark="";typeof u.translation!="undefined"?(i.lang.selectAll=n.trustAsHtml(i.icon.selectAll+"&nbsp;&nbsp;"+i.translation.selectAll),i.lang.selectNone=n.trustAsHtml(i.icon.selectNone+"&nbsp;&nbsp;"+i.translation.selectNone),i.lang.reset=n.trustAsHtml(i.icon.reset+"&nbsp;&nbsp;"+i.translation.reset),i.lang.search=i.translation.search,i.lang.nothingSelected=n.trustAsHtml(i.translation.nothingSelected)):(i.lang.selectAll=n.trustAsHtml(i.icon.selectAll+"&nbsp;&nbsp;Select All"),i.lang.selectNone=n.trustAsHtml(i.icon.selectNone+"&nbsp;&nbsp;Select None"),i.lang.reset=n.trustAsHtml(i.icon.reset+"&nbsp;&nbsp;Reset"),i.lang.search="Search...",i.lang.nothingSelected=u.noneselected!=="undefined"&&u.noneselected!==""?u.noneselected:"None Selected");i.icon.tickMark=n.trustAsHtml(i.icon.tickMark);typeof u.MinSearchLength!="undefined"&&parseInt(u.MinSearchLength)>0&&(a=Math.floor(parseInt(u.MinSearchLength)));i.$watch("inputModel",function(n){n&&(i.refreshOutputModel(),i.refreshButton())},!0);i.$watch("inputModel",function(n){n&&(i.backUp=angular.copy(i.inputModel),i.updateFilter(),i.prepareGrouping(),i.prepareIndex(),i.refreshOutputModel(),i.refreshButton())});i.$watch("isDisabled",function(n){i.isDisabled=n});y=function(){i.$apply(function(){i.scrolled=!1})};angular.element(document).bind("touchstart",y);p=function(){i.$apply(function(){i.scrolled=!0})};angular.element(document).bind("touchmove",p);i.$on("$destroy",function(){angular.element(document).unbind("touchstart",y);angular.element(document).unbind("touchmove",p)})}}}]),function(n,t){"use strict";if(typeof define=="function"&&define.amd)define(["angular"],t);else if(typeof module=="object"&&module.exports){var i=angular||require("angular");i&&i.module||typeof angular=="undefined"||(i=angular);module.exports=t(i)}else t(n.angular)}(this,function(n){"use strict";var t=n.module("rzModule",[]).factory("RzSliderOptions",function(){var r={floor:0,ceil:null,step:1,precision:0,minRange:null,maxRange:null,pushRange:!1,minLimit:null,maxLimit:null,id:null,translate:null,getLegend:null,stepsArray:null,bindIndexForStepsArray:!1,draggableRange:!1,draggableRangeOnly:!1,showSelectionBar:!1,showSelectionBarEnd:!1,showSelectionBarFromValue:null,hidePointerLabels:!1,hideLimitLabels:!1,autoHideLimitLabels:!0,readOnly:!1,disabled:!1,interval:350,showTicks:!1,showTicksValues:!1,ticksArray:null,ticksTooltip:null,ticksValuesTooltip:null,vertical:!1,getSelectionBarColor:null,getTickColor:null,getPointerColor:null,keyboardSupport:!0,scale:1,enforceStep:!0,enforceRange:!1,noSwitching:!1,onlyBindHandles:!1,onStart:null,onChange:null,onEnd:null,rightToLeft:!1,boundPointerLabels:!0,mergeRangeLabelsIfSame:!1,customTemplateScope:null,logScale:!1,customValueToPosition:null,customPositionToValue:null,selectionBarGradient:null},i={},t={};return t.options=function(t){n.extend(i,t)},t.getOptions=function(t){return n.extend({},r,i,t)},t}).factory("rzThrottle",["$timeout",function(n){return function(t,i,r){var h=Date.now||function(){return(new Date).getTime()},u,f,o,e=null,s=0,c;return r=r||{},c=function(){s=h();e=null;o=t.apply(u,f);u=f=null},function(){var l=h(),a=i-(l-s);return u=this,f=arguments,a<=0?(n.cancel(e),e=null,s=l,o=t.apply(u,f),u=f=null):e||r.trailing===!1||(e=n(c,a)),o}}}]).factory("RzSlider",["$timeout","$document","$window","$compile","RzSliderOptions","rzThrottle",function(t,i,r,u,f,e){var o=function(n,t){this.scope=n;this.lowValue=0;this.highValue=0;this.sliderElem=t;this.range=this.scope.rzSliderModel!==undefined&&this.scope.rzSliderHigh!==undefined;this.dragging={active:!1,value:0,difference:0,position:0,lowLimit:0,highLimit:0};this.positionProperty="left";this.dimensionProperty="width";this.handleHalfDim=0;this.maxPos=0;this.precision=0;this.step=1;this.tracking="";this.minValue=0;this.maxValue=0;this.valueRange=0;this.intermediateTicks=!1;this.initHasRun=!1;this.firstKeyDown=!1;this.internalChange=!1;this.cmbLabelShown=!1;this.currentFocusElement=null;this.fullBar=null;this.selBar=null;this.minH=null;this.maxH=null;this.flrLab=null;this.ceilLab=null;this.minLab=null;this.maxLab=null;this.cmbLab=null;this.ticks=null;this.init()};return o.prototype={init:function(){var i,u,t=this,f=function(){t.calcViewDimensions()};this.applyOptions();this.syncLowValue();this.range&&this.syncHighValue();this.initElemHandles();this.manageElementsStyle();this.setDisabledState();this.calcViewDimensions();this.setMinAndMax();this.addAccessibility();this.updateCeilLab();this.updateFloorLab();this.initHandles();this.manageEventsBindings();this.scope.$on("reCalcViewDimensions",f);n.element(r).on("resize",f);this.initHasRun=!0;i=e(function(){t.onLowHandleChange()},t.options.interval);u=e(function(){t.onHighHandleChange()},t.options.interval);this.scope.$on("rzSliderForceRender",function(){t.resetLabelsValue();i();t.range&&u();t.resetSlider()});this.scope.$watch("rzSliderOptions()",function(n,i){n!==i&&(t.applyOptions(),t.syncLowValue(),t.range&&t.syncHighValue(),t.resetSlider())},!0);this.scope.$watch("rzSliderModel",function(n,r){t.internalChange||n!==r&&i()});this.scope.$watch("rzSliderHigh",function(n,i){t.internalChange||n!==i&&(n!=null&&u(),(t.range&&n==null||!t.range&&n!=null)&&(t.applyOptions(),t.resetSlider()))});this.scope.$on("$destroy",function(){t.unbindEvents();n.element(r).off("resize",f);t.currentFocusElement=null})},findStepIndex:function(t){for(var i,u=0,r=0;r<this.options.stepsArray.length;r++)if(i=this.options.stepsArray[r],i===t){u=r;break}else if(n.isDate(i)){if(i.getTime()===t.getTime()){u=r;break}}else if(n.isObject(i)){if(n.isDate(i.value)&&i.value.getTime()===t.getTime()||i.value===t){u=r;break}if(i.Id===t){u=r;break}}return u},syncLowValue:function(){this.lowValue=this.options.stepsArray?this.options.bindIndexForStepsArray?this.scope.rzSliderModel:this.findStepIndex(this.scope.rzSliderModel):this.scope.rzSliderModel},syncHighValue:function(){this.highValue=this.options.stepsArray?this.options.bindIndexForStepsArray?this.scope.rzSliderHigh:this.findStepIndex(this.scope.rzSliderHigh):this.scope.rzSliderHigh},getStepValue:function(t){var i=this.options.stepsArray[t];return n.isDate(i)?i:n.isObject(i)?i.Id:i},applyLowValue:function(){this.scope.rzSliderModel=this.options.stepsArray?this.options.bindIndexForStepsArray?this.lowValue:this.getStepValue(this.lowValue):this.lowValue},applyHighValue:function(){this.scope.rzSliderHigh=this.options.stepsArray?this.options.bindIndexForStepsArray?this.highValue:this.getStepValue(this.highValue):this.highValue},onLowHandleChange:function(){this.syncLowValue();this.range&&this.syncHighValue();this.setMinAndMax();this.updateLowHandle(this.valueToPosition(this.lowValue));this.updateSelectionBar();this.updateTicksScale();this.updateAriaAttributes();this.range&&this.updateCmbLabel()},onHighHandleChange:function(){this.syncLowValue();this.syncHighValue();this.setMinAndMax();this.updateHighHandle(this.valueToPosition(this.highValue));this.updateSelectionBar();this.updateTicksScale();this.updateCmbLabel();this.updateAriaAttributes()},applyOptions:function(){var t;t=this.scope.rzSliderOptions?this.scope.rzSliderOptions():{};this.options=f.getOptions(t);this.options.step<=0&&(this.options.step=1);this.range=this.scope.rzSliderModel!==undefined&&this.scope.rzSliderHigh!==undefined;this.options.draggableRange=this.range&&this.options.draggableRange;this.options.draggableRangeOnly=this.range&&this.options.draggableRangeOnly;this.options.draggableRangeOnly&&(this.options.draggableRange=!0);this.options.showTicks=this.options.showTicks||this.options.showTicksValues||!!this.options.ticksArray;this.scope.showTicks=this.options.showTicks;(n.isNumber(this.options.showTicks)||this.options.ticksArray)&&(this.intermediateTicks=!0);this.options.showSelectionBar=this.options.showSelectionBar||this.options.showSelectionBarEnd||this.options.showSelectionBarFromValue!==null;this.options.stepsArray?this.parseStepsArray():(this.customTrFn=this.options.translate?this.options.translate:function(n){return String(n)},this.getLegend=this.options.getLegend);this.options.vertical&&(this.positionProperty="bottom",this.dimensionProperty="height");this.options.customTemplateScope&&(this.scope.custom=this.options.customTemplateScope)},parseStepsArray:function(){this.options.floor=0;this.options.ceil=this.options.stepsArray.length-1;this.options.step=1;this.customTrFn=this.options.translate?this.options.translate:function(n){return this.options.bindIndexForStepsArray?this.getStepValue(n):n};this.getLegend=function(t){var i=this.options.stepsArray[t];return n.isObject(i)?i.Text:null}},resetSlider:function(){this.manageElementsStyle();this.addAccessibility();this.setMinAndMax();this.updateCeilLab();this.updateFloorLab();this.unbindEvents();this.manageEventsBindings();this.setDisabledState();this.calcViewDimensions();this.refocusPointerIfNeeded()},refocusPointerIfNeeded:function(){if(this.currentFocusElement){this.onPointerFocus(this.currentFocusElement.pointer,this.currentFocusElement.ref);this.focusElement(this.currentFocusElement.pointer)}},initElemHandles:function(){n.forEach(this.sliderElem.children(),function(t,i){var r=n.element(t);switch(i){case 0:this.fullBar=r;break;case 1:this.selBar=r;break;case 2:this.minH=r;break;case 3:this.maxH=r;break;case 4:this.flrLab=r;break;case 5:this.ceilLab=r;break;case 6:this.minLab=r;break;case 7:this.maxLab=r;break;case 8:this.cmbLab=r;break;case 9:this.ticks=r}},this);this.selBar.rzsp=0;this.minH.rzsp=0;this.maxH.rzsp=0;this.flrLab.rzsp=0;this.ceilLab.rzsp=0;this.minLab.rzsp=0;this.maxLab.rzsp=0;this.cmbLab.rzsp=0},manageElementsStyle:function(){this.range?this.maxH.css("display",""):this.maxH.css("display","none");this.alwaysHide(this.flrLab,this.options.showTicksValues||this.options.hideLimitLabels);this.alwaysHide(this.ceilLab,this.options.showTicksValues||this.options.hideLimitLabels);var n=this.options.showTicksValues&&!this.intermediateTicks;this.alwaysHide(this.minLab,n||this.options.hidePointerLabels);this.alwaysHide(this.maxLab,n||!this.range||this.options.hidePointerLabels);this.alwaysHide(this.cmbLab,n||!this.range||this.options.hidePointerLabels);this.alwaysHide(this.selBar,!this.range&&!this.options.showSelectionBar);this.options.vertical&&this.sliderElem.addClass("rz-vertical");this.options.draggableRange?this.selBar.addClass("rz-draggable"):this.selBar.removeClass("rz-draggable");this.intermediateTicks&&this.options.showTicksValues&&this.ticks.addClass("rz-ticks-values-under")},alwaysHide:function(n,t){n.rzAlwaysHide=t;t?this.hideEl(n):this.showEl(n)},manageEventsBindings:function(){this.options.disabled||this.options.readOnly?this.unbindEvents():this.bindEvents()},setDisabledState:function(){this.options.disabled?this.sliderElem.attr("disabled","disabled"):this.sliderElem.attr("disabled",null)},resetLabelsValue:function(){this.minLab.rzsv=undefined;this.maxLab.rzsv=undefined},initHandles:function(){this.updateLowHandle(this.valueToPosition(this.lowValue));this.range&&this.updateHighHandle(this.valueToPosition(this.highValue));this.updateSelectionBar();this.range&&this.updateCmbLabel();this.updateTicksScale()},translateFn:function(n,t,i,r){r=r===undefined?!0:r;var u="",f=!1,e=t.hasClass("no-label-injection");r?(this.options.stepsArray&&!this.options.bindIndexForStepsArray&&(n=this.getStepValue(n)),u=String(this.customTrFn(n,this.options.id,i))):u=String(n);(t.rzsv===undefined||t.rzsv.length!==u.length||t.rzsv.length>0&&t.rzsd===0)&&(f=!0,t.rzsv=u);e||t.html(u);this.scope[i+"Label"]=u;f&&this.getDimension(t)},setMinAndMax:function(){if(this.step=+this.options.step,this.precision=+this.options.precision,this.minValue=this.options.floor,this.options.logScale&&this.minValue===0)throw Error("Can't use floor=0 with logarithmic scale");this.options.enforceStep&&(this.lowValue=this.roundStep(this.lowValue),this.range&&(this.highValue=this.roundStep(this.highValue)));this.maxValue=this.options.ceil!=null?this.options.ceil:this.options.ceil=this.range?this.highValue:this.lowValue;this.options.enforceRange&&(this.lowValue=this.sanitizeValue(this.lowValue),this.range&&(this.highValue=this.sanitizeValue(this.highValue)));this.applyLowValue();this.range&&this.applyHighValue();this.valueRange=this.maxValue-this.minValue},addAccessibility:function(){this.minH.attr("role","slider");this.updateAriaAttributes();!this.options.keyboardSupport||this.options.readOnly||this.options.disabled?this.minH.attr("tabindex",""):this.minH.attr("tabindex","0");this.options.vertical&&this.minH.attr("aria-orientation","vertical");this.range&&(this.maxH.attr("role","slider"),!this.options.keyboardSupport||this.options.readOnly||this.options.disabled?this.maxH.attr("tabindex",""):this.maxH.attr("tabindex","0"),this.options.vertical&&this.maxH.attr("aria-orientation","vertical"))},updateAriaAttributes:function(){this.minH.attr({"aria-valuenow":this.scope.rzSliderModel,"aria-valuetext":this.customTrFn(this.scope.rzSliderModel,this.options.id,"model"),"aria-valuemin":this.minValue,"aria-valuemax":this.maxValue});this.range&&this.maxH.attr({"aria-valuenow":this.scope.rzSliderHigh,"aria-valuetext":this.customTrFn(this.scope.rzSliderHigh,this.options.id,"high"),"aria-valuemin":this.minValue,"aria-valuemax":this.maxValue})},calcViewDimensions:function(){var n=this.getDimension(this.minH),i;this.handleHalfDim=n/2;this.barDimension=this.getDimension(this.fullBar);this.maxPos=this.barDimension-n;this.getDimension(this.sliderElem);this.sliderElem.rzsp=this.sliderElem[0].getBoundingClientRect()[this.positionProperty];this.initHasRun&&(this.updateFloorLab(),this.updateCeilLab(),this.initHandles(),i=this,t(function(){i.updateTicksScale()}))},updateTicksScale:function(){if(this.options.showTicks){var t=this.options.ticksArray||this.getTicksArray(),i=this.options.vertical?"translateY":"translateX",n=this;this.options.rightToLeft&&t.reverse();this.scope.ticks=t.map(function(t){var u=n.valueToPosition(t),r,f;return n.options.vertical&&(u=n.maxPos-u),r={selected:n.isTickSelected(t),style:{transform:i+"("+Math.round(u)+"px)"}},r.selected&&n.options.getSelectionBarColor&&(r.style["background-color"]=n.getSelectionBarColor()),!r.selected&&n.options.getTickColor&&(r.style["background-color"]=n.getTickColor(t)),n.options.ticksTooltip&&(r.tooltip=n.options.ticksTooltip(t),r.tooltipPlacement=n.options.vertical?"right":"top"),n.options.showTicksValues&&(r.value=n.getDisplayValue(t,"tick-value"),n.options.ticksValuesTooltip&&(r.valueTooltip=n.options.ticksValuesTooltip(t),r.valueTooltipPlacement=n.options.vertical?"right":"top")),n.getLegend&&(f=n.getLegend(t,n.options.id),f&&(r.legend=f)),r})}},getTicksArray:function(){var t=this.step,i=[],n;for(this.intermediateTicks&&(t=this.options.showTicks),n=this.minValue;n<=this.maxValue;n+=t)i.push(n);return i},isTickSelected:function(n){if(!this.range)if(this.options.showSelectionBarFromValue!==null){var t=this.options.showSelectionBarFromValue;if(this.lowValue>t&&n>=t&&n<=this.lowValue||this.lowValue<t&&n<=t&&n>=this.lowValue)return!0}else if(this.options.showSelectionBarEnd){if(n>=this.lowValue)return!0}else if(this.options.showSelectionBar&&n<=this.lowValue)return!0;return this.range&&n>=this.lowValue&&n<=this.highValue?!0:!1},updateFloorLab:function(){this.translateFn(this.minValue,this.flrLab,"floor");this.getDimension(this.flrLab);var n=this.options.rightToLeft?this.barDimension-this.flrLab.rzsd:0;this.setPosition(this.flrLab,n)},updateCeilLab:function(){this.translateFn(this.maxValue,this.ceilLab,"ceil");this.getDimension(this.ceilLab);var n=this.options.rightToLeft?0:this.barDimension-this.ceilLab.rzsd;this.setPosition(this.ceilLab,n)},updateHandles:function(n,t){n==="lowValue"?this.updateLowHandle(t):this.updateHighHandle(t);this.updateSelectionBar();this.updateTicksScale();this.range&&this.updateCmbLabel()},getHandleLabelPos:function(n,t){var r=this[n].rzsd,i=t-r/2+this.handleHalfDim,u=this.barDimension-r;return this.options.boundPointerLabels?this.options.rightToLeft&&n==="minLab"||!this.options.rightToLeft&&n==="maxLab"?Math.min(i,u):Math.min(Math.max(i,0),u):i},updateLowHandle:function(n){if(this.setPosition(this.minH,n),this.translateFn(this.lowValue,this.minLab,"model"),this.setPosition(this.minLab,this.getHandleLabelPos("minLab",n)),this.options.getPointerColor){var t=this.getPointerColor("min");this.scope.minPointerStyle={backgroundColor:t}}this.options.autoHideLimitLabels&&this.shFloorCeil()},updateHighHandle:function(n){if(this.setPosition(this.maxH,n),this.translateFn(this.highValue,this.maxLab,"high"),this.setPosition(this.maxLab,this.getHandleLabelPos("maxLab",n)),this.options.getPointerColor){var t=this.getPointerColor("max");this.scope.maxPointerStyle={backgroundColor:t}}this.options.autoHideLimitLabels&&this.shFloorCeil()},shFloorCeil:function(){var r,u;if(!this.options.hidePointerLabels){var n=!1,t=!1,i=this.isLabelBelowFloorLab(this.minLab),f=this.isLabelAboveCeilLab(this.minLab),e=this.isLabelAboveCeilLab(this.maxLab),o=this.isLabelBelowFloorLab(this.cmbLab),s=this.isLabelAboveCeilLab(this.cmbLab);i?(n=!0,this.hideEl(this.flrLab)):(n=!1,this.showEl(this.flrLab));f?(t=!0,this.hideEl(this.ceilLab)):(t=!1,this.showEl(this.ceilLab));this.range&&(r=this.cmbLabelShown?s:e,u=this.cmbLabelShown?o:i,r?this.hideEl(this.ceilLab):t||this.showEl(this.ceilLab),u?this.hideEl(this.flrLab):n||this.showEl(this.flrLab))}},isLabelBelowFloorLab:function(n){var r=this.options.rightToLeft,t=n.rzsp,u=n.rzsd,i=this.flrLab.rzsp,f=this.flrLab.rzsd;return r?t+u>=i-2:t<=i+f+2},isLabelAboveCeilLab:function(n){var r=this.options.rightToLeft,t=n.rzsp,u=n.rzsd,i=this.ceilLab.rzsp,f=this.ceilLab.rzsd;return r?t<=i+f+2:t+u>=i-2},updateSelectionBar:function(){var n=0,t=0,e=this.options.rightToLeft?!this.options.showSelectionBarEnd:this.options.showSelectionBarEnd,s=this.options.rightToLeft?this.maxH.rzsp+this.handleHalfDim:this.minH.rzsp+this.handleHalfDim,o;if(this.range)t=Math.abs(this.maxH.rzsp-this.minH.rzsp),n=s;else if(this.options.showSelectionBarFromValue!==null){var r=this.options.showSelectionBarFromValue,u=this.valueToPosition(r),h=this.options.rightToLeft?this.lowValue<=r:this.lowValue>r;h?(t=this.minH.rzsp-u,n=u+this.handleHalfDim):(t=u-this.minH.rzsp,n=this.minH.rzsp+this.handleHalfDim)}else e?(t=Math.abs(this.maxPos-this.minH.rzsp)+this.handleHalfDim,n=this.minH.rzsp+this.handleHalfDim):(t=Math.abs(this.maxH.rzsp-this.minH.rzsp)+this.handleHalfDim,n=0);if(this.setDimension(this.selBar,t),this.setPosition(this.selBar,n),this.options.getSelectionBarColor)o=this.getSelectionBarColor(),this.scope.barStyle={backgroundColor:o};else if(this.options.selectionBarGradient){var f=this.options.showSelectionBarFromValue!==null?this.valueToPosition(this.options.showSelectionBarFromValue):0,i=f-n>0^e,c=this.options.vertical?i?"bottom":"top":i?"left":"right";this.scope.barStyle={backgroundImage:"linear-gradient(to "+c+", "+this.options.selectionBarGradient.from+" 0%,"+this.options.selectionBarGradient.to+" 100%)"};this.options.vertical?(this.scope.barStyle.backgroundPosition="center "+(f+t+n+(i?-this.handleHalfDim:0))+"px",this.scope.barStyle.backgroundSize="100% "+(this.barDimension-this.handleHalfDim)+"px"):(this.scope.barStyle.backgroundPosition=f-n+(i?this.handleHalfDim:0)+"px center",this.scope.barStyle.backgroundSize=this.barDimension-this.handleHalfDim+"px 100%")}},getSelectionBarColor:function(){return this.range?this.options.getSelectionBarColor(this.scope.rzSliderModel,this.scope.rzSliderHigh):this.options.getSelectionBarColor(this.scope.rzSliderModel)},getPointerColor:function(n){return n==="max"?this.options.getPointerColor(this.scope.rzSliderHigh,n):this.options.getPointerColor(this.scope.rzSliderModel,n)},getTickColor:function(n){return this.options.getTickColor(n)},updateCmbLabel:function(){var i=null,u;if(i=this.options.rightToLeft?this.minLab.rzsp-this.minLab.rzsd-10<=this.maxLab.rzsp:this.minLab.rzsp+this.minLab.rzsd+10>=this.maxLab.rzsp,i){var n=this.getDisplayValue(this.lowValue,"model"),t=this.getDisplayValue(this.highValue,"high"),r="";r=this.options.mergeRangeLabelsIfSame&&n===t?n:this.options.rightToLeft?t+" - "+n:n+" - "+t;this.translateFn(r,this.cmbLab,"cmb",!1);u=this.options.boundPointerLabels?Math.min(Math.max(this.selBar.rzsp+this.selBar.rzsd/2-this.cmbLab.rzsd/2,0),this.barDimension-this.cmbLab.rzsd):this.selBar.rzsp+this.selBar.rzsd/2-this.cmbLab.rzsd/2;this.setPosition(this.cmbLab,u);this.cmbLabelShown=!0;this.hideEl(this.minLab);this.hideEl(this.maxLab);this.showEl(this.cmbLab)}else this.cmbLabelShown=!1,this.showEl(this.maxLab),this.showEl(this.minLab),this.hideEl(this.cmbLab);this.options.autoHideLimitLabels&&this.shFloorCeil()},getDisplayValue:function(n,t){return this.options.stepsArray&&!this.options.bindIndexForStepsArray&&(n=this.getStepValue(n)),this.customTrFn(n,this.options.id,t)},roundStep:function(n,t){var r=t?t:this.step,i=parseFloat((n-this.minValue)/r).toPrecision(12),u;return i=Math.round(+i)*r,u=(this.minValue+i).toFixed(this.precision),+u},hideEl:function(n){return n.css({visibility:"hidden"})},showEl:function(n){return!n.rzAlwaysHide?n.css({visibility:"visible"}):n},setPosition:function(n,t){n.rzsp=t;var i={};return i[this.positionProperty]=Math.round(t)+"px",n.css(i),t},getDimension:function(n){var t=n[0].getBoundingClientRect();return n.rzsd=this.options.vertical?(t.bottom-t.top)*this.options.scale:(t.right-t.left)*this.options.scale,n.rzsd},setDimension:function(n,t){n.rzsd=t;var i={};return i[this.dimensionProperty]=Math.round(t)+"px",n.css(i),t},sanitizeValue:function(n){return Math.min(Math.max(n,this.minValue),this.maxValue)},valueToPosition:function(n){var i=this.linearValueToPosition,t;return this.options.customValueToPosition?i=this.options.customValueToPosition:this.options.logScale&&(i=this.logValueToPosition),n=this.sanitizeValue(n),t=i(n,this.minValue,this.maxValue)||0,this.options.rightToLeft&&(t=1-t),t*this.maxPos},linearValueToPosition:function(n,t,i){var r=i-t;return(n-t)/r},logValueToPosition:function(n,t,i){n=Math.log(n);t=Math.log(t);i=Math.log(i);var r=i-t;return(n-t)/r},positionToValue:function(n){var i=n/this.maxPos,t;return this.options.rightToLeft&&(i=1-i),t=this.linearPositionToValue,this.options.customPositionToValue?t=this.options.customPositionToValue:this.options.logScale&&(t=this.logPositionToValue),t(i,this.minValue,this.maxValue)||0},linearPositionToValue:function(n,t,i){return n*(i-t)+t},logPositionToValue:function(n,t,i){t=Math.log(t);i=Math.log(i);var r=n*(i-t)+t;return Math.exp(r)},getEventXY:function(n){var t=this.options.vertical?"clientY":"clientX";return n[t]!==undefined?n[t]:n.originalEvent===undefined?n.touches[0][t]:n.originalEvent.touches[0][t]},getEventPosition:function(n){var t=this.sliderElem.rzsp,i=0;return i=this.options.vertical?-this.getEventXY(n)+t:this.getEventXY(n)-t,i*this.options.scale-this.handleHalfDim},getEventNames:function(n){var t={moveEvent:"",endEvent:""};return n.touches||n.originalEvent!==undefined&&n.originalEvent.touches?(t.moveEvent="touchmove",t.endEvent="touchend"):(t.moveEvent="mousemove",t.endEvent="mouseup"),t},getNearestHandle:function(n){if(!this.range)return this.minH;var t=this.getEventPosition(n),i=Math.abs(t-this.minH.rzsp),r=Math.abs(t-this.maxH.rzsp);return i<r?this.minH:i>r?this.maxH:this.options.rightToLeft?t>this.minH.rzsp?this.minH:this.maxH:t<this.minH.rzsp?this.minH:this.maxH},focusElement:function(n){n[0].focus()},bindEvents:function(){var t,i,r;if(this.options.draggableRange?(t="rzSliderDrag",i=this.onDragStart,r=this.onDragMove):(t="lowValue",i=this.onStart,r=this.onMove),!this.options.onlyBindHandles){this.selBar.on("mousedown",n.bind(this,i,null,t));this.selBar.on("mousedown",n.bind(this,r,this.selBar))}if(this.options.draggableRangeOnly){this.minH.on("mousedown",n.bind(this,i,null,t));this.maxH.on("mousedown",n.bind(this,i,null,t))}else{this.minH.on("mousedown",n.bind(this,this.onStart,this.minH,"lowValue"));if(this.range)this.maxH.on("mousedown",n.bind(this,this.onStart,this.maxH,"highValue"));if(!this.options.onlyBindHandles){this.fullBar.on("mousedown",n.bind(this,this.onStart,null,null));this.fullBar.on("mousedown",n.bind(this,this.onMove,this.fullBar));this.ticks.on("mousedown",n.bind(this,this.onStart,null,null));this.ticks.on("mousedown",n.bind(this,this.onTickClick,this.ticks))}}if(!this.options.onlyBindHandles){this.selBar.on("touchstart",n.bind(this,i,null,t));this.selBar.on("touchstart",n.bind(this,r,this.selBar))}if(this.options.draggableRangeOnly){this.minH.on("touchstart",n.bind(this,i,null,t));this.maxH.on("touchstart",n.bind(this,i,null,t))}else{this.minH.on("touchstart",n.bind(this,this.onStart,this.minH,"lowValue"));if(this.range)this.maxH.on("touchstart",n.bind(this,this.onStart,this.maxH,"highValue"));if(!this.options.onlyBindHandles){this.fullBar.on("touchstart",n.bind(this,this.onStart,null,null));this.fullBar.on("touchstart",n.bind(this,this.onMove,this.fullBar));this.ticks.on("touchstart",n.bind(this,this.onStart,null,null));this.ticks.on("touchstart",n.bind(this,this.onTickClick,this.ticks))}}if(this.options.keyboardSupport){this.minH.on("focus",n.bind(this,this.onPointerFocus,this.minH,"lowValue"));if(this.range)this.maxH.on("focus",n.bind(this,this.onPointerFocus,this.maxH,"highValue"))}},unbindEvents:function(){this.minH.off();this.maxH.off();this.fullBar.off();this.selBar.off();this.ticks.off()},onStart:function(t,r,u){var f,e,o=this.getEventNames(u);u.stopPropagation();u.preventDefault();this.calcViewDimensions();t?this.tracking=r:(t=this.getNearestHandle(u),this.tracking=t===this.minH?"lowValue":"highValue");t.addClass("rz-active");this.options.keyboardSupport&&this.focusElement(t);f=n.bind(this,this.dragging.active?this.onDragMove:this.onMove,t);e=n.bind(this,this.onEnd,f);i.on(o.moveEvent,f);i.one(o.endEvent,e);this.callOnStart()},onMove:function(t,i,r){var f=this.getEventPosition(i),u,e=this.options.rightToLeft?this.minValue:this.maxValue,o=this.options.rightToLeft?this.maxValue:this.minValue;f<=0?u=o:f>=this.maxPos?u=e:(u=this.positionToValue(f),u=r&&n.isNumber(this.options.showTicks)?this.roundStep(u,this.options.showTicks):this.roundStep(u));this.positionTrackingHandle(u)},onEnd:function(n,t){var r=this.getEventNames(t).moveEvent;this.options.keyboardSupport||(this.minH.removeClass("rz-active"),this.maxH.removeClass("rz-active"),this.tracking="");this.dragging.active=!1;i.off(r,n);this.callOnEnd()},onTickClick:function(n,t){this.onMove(n,t,!0)},onPointerFocus:function(t,i){this.tracking=i;t.one("blur",n.bind(this,this.onPointerBlur,t));t.on("keydown",n.bind(this,this.onKeyboardEvent));t.on("keyup",n.bind(this,this.onKeyUp));this.firstKeyDown=!0;t.addClass("rz-active");this.currentFocusElement={pointer:t,ref:i}},onKeyUp:function(){this.firstKeyDown=!0;this.callOnEnd()},onPointerBlur:function(n){n.off("keydown");n.off("keyup");this.tracking="";n.removeClass("rz-active");this.currentFocusElement=null},getKeyActions:function(n){var i=n+this.step,r=n-this.step,u=n+this.valueRange/10,f=n-this.valueRange/10,t={UP:i,DOWN:r,LEFT:r,RIGHT:i,PAGEUP:u,PAGEDOWN:f,HOME:this.minValue,END:this.maxValue};return this.options.rightToLeft&&(t.LEFT=i,t.RIGHT=r,this.options.vertical&&(t.UP=r,t.DOWN=i)),t},onKeyboardEvent:function(n){var u=this[this.tracking],f=n.keyCode||n.which,e=this.getKeyActions(u),o={38:"UP",40:"DOWN",37:"LEFT",39:"RIGHT",33:"PAGEUP",34:"PAGEDOWN",36:"HOME",35:"END"}[f],r=e[o],i;r!=null&&this.tracking!==""&&(n.preventDefault(),this.firstKeyDown&&(this.firstKeyDown=!1,this.callOnStart()),i=this,t(function(){var u=i.roundStep(i.sanitizeValue(r)),f,n,t;i.options.draggableRangeOnly?(f=i.highValue-i.lowValue,i.tracking==="lowValue"?(n=u,t=u+f,t>i.maxValue&&(t=i.maxValue,n=t-f)):(t=u,n=u-f,n<i.minValue&&(n=i.minValue,t=n+f)),i.positionTrackingBar(n,t)):i.positionTrackingHandle(u)}))},onDragStart:function(n,t,i){var r=this.getEventPosition(i);this.dragging={active:!0,value:this.positionToValue(r),difference:this.highValue-this.lowValue,lowLimit:this.options.rightToLeft?this.minH.rzsp-r:r-this.minH.rzsp,highLimit:this.options.rightToLeft?r-this.maxH.rzsp:this.maxH.rzsp-r};this.onStart(n,t,i)},getValue:function(n,t,i,r){var u=this.options.rightToLeft,f=null;return f=n==="min"?i?r?u?this.minValue:this.maxValue-this.dragging.difference:u?this.maxValue-this.dragging.difference:this.minValue:u?this.positionToValue(t+this.dragging.lowLimit):this.positionToValue(t-this.dragging.lowLimit):i?r?u?this.minValue+this.dragging.difference:this.maxValue:u?this.maxValue:this.minValue+this.dragging.difference:u?this.positionToValue(t+this.dragging.lowLimit)+this.dragging.difference:this.positionToValue(t-this.dragging.lowLimit)+this.dragging.difference,this.roundStep(f)},onDragMove:function(n,t){var i=this.getEventPosition(t),r,u,f,e,h,c,o,s;if(this.options.rightToLeft?(f=this.dragging.lowLimit,e=this.dragging.highLimit,o=this.maxH,s=this.minH):(f=this.dragging.highLimit,e=this.dragging.lowLimit,o=this.minH,s=this.maxH),h=i<=e,c=i>=this.maxPos-f,h){if(o.rzsp===0)return;r=this.getValue("min",i,!0,!1);u=this.getValue("max",i,!0,!1)}else if(c){if(s.rzsp===this.maxPos)return;u=this.getValue("max",i,!0,!0);r=this.getValue("min",i,!0,!0)}else r=this.getValue("min",i,!1),u=this.getValue("max",i,!1);this.positionTrackingBar(r,u)},positionTrackingBar:function(n,t){this.options.minLimit!=null&&n<this.options.minLimit&&(n=this.options.minLimit,t=n+this.dragging.difference);this.options.maxLimit!=null&&t>this.options.maxLimit&&(t=this.options.maxLimit,n=t-this.dragging.difference);this.lowValue=n;this.highValue=t;this.applyLowValue();this.range&&this.applyHighValue();this.applyModel();this.updateHandles("lowValue",this.valueToPosition(n));this.updateHandles("highValue",this.valueToPosition(t))},positionTrackingHandle:function(n){var t=!1;n=this.applyMinMaxLimit(n);this.range&&(this.options.pushRange?(n=this.applyPushRange(n),t=!0):(this.options.noSwitching&&(this.tracking==="lowValue"&&n>this.highValue?n=this.applyMinMaxRange(this.highValue):this.tracking==="highValue"&&n<this.lowValue&&(n=this.applyMinMaxRange(this.lowValue))),n=this.applyMinMaxRange(n),this.tracking==="lowValue"&&n>this.highValue?(this.lowValue=this.highValue,this.applyLowValue(),this.updateHandles(this.tracking,this.maxH.rzsp),this.updateAriaAttributes(),this.tracking="highValue",this.minH.removeClass("rz-active"),this.maxH.addClass("rz-active"),this.options.keyboardSupport&&this.focusElement(this.maxH),t=!0):this.tracking==="highValue"&&n<this.lowValue&&(this.highValue=this.lowValue,this.applyHighValue(),this.updateHandles(this.tracking,this.minH.rzsp),this.updateAriaAttributes(),this.tracking="lowValue",this.maxH.removeClass("rz-active"),this.minH.addClass("rz-active"),this.options.keyboardSupport&&this.focusElement(this.minH),t=!0)));this[this.tracking]!==n&&(this[this.tracking]=n,this.tracking==="lowValue"?this.applyLowValue():this.applyHighValue(),this.updateHandles(this.tracking,this.valueToPosition(n)),this.updateAriaAttributes(),t=!0);t&&this.applyModel()},applyMinMaxLimit:function(n){return this.options.minLimit!=null&&n<this.options.minLimit?this.options.minLimit:this.options.maxLimit!=null&&n>this.options.maxLimit?this.options.maxLimit:n},applyMinMaxRange:function(n){var i=this.tracking==="lowValue"?this.highValue:this.lowValue,t=Math.abs(n-i);return this.options.minRange!=null&&t<this.options.minRange?this.tracking==="lowValue"?this.highValue-this.options.minRange:this.lowValue+this.options.minRange:this.options.maxRange!=null&&t>this.options.maxRange?this.tracking==="lowValue"?this.highValue-this.options.maxRange:this.lowValue+this.options.maxRange:n},applyPushRange:function(n){var r=this.tracking==="lowValue"?this.highValue-n:n-this.lowValue,t=this.options.minRange!==null?this.options.minRange:this.options.step,i=this.options.maxRange;return r<t?(this.tracking==="lowValue"?(this.highValue=Math.min(n+t,this.maxValue),n=this.highValue-t,this.applyHighValue(),this.updateHandles("highValue",this.valueToPosition(this.highValue))):(this.lowValue=Math.max(n-t,this.minValue),n=this.lowValue+t,this.applyLowValue(),this.updateHandles("lowValue",this.valueToPosition(this.lowValue))),this.updateAriaAttributes()):i!==null&&r>i&&(this.tracking==="lowValue"?(this.highValue=n+i,this.applyHighValue(),this.updateHandles("highValue",this.valueToPosition(this.highValue))):(this.lowValue=n-i,this.applyLowValue(),this.updateHandles("lowValue",this.valueToPosition(this.lowValue))),this.updateAriaAttributes()),n},applyModel:function(){this.internalChange=!0;this.scope.$apply();this.callOnChange();this.internalChange=!1},callOnStart:function(){if(this.options.onStart){var n=this,t=this.tracking==="lowValue"?"min":"max";this.scope.$evalAsync(function(){n.options.onStart(n.options.id,n.scope.rzSliderModel,n.scope.rzSliderHigh,t)})}},callOnChange:function(){if(this.options.onChange){var n=this,t=this.tracking==="lowValue"?"min":"max";this.scope.$evalAsync(function(){n.options.onChange(n.options.id,n.scope.rzSliderModel,n.scope.rzSliderHigh,t)})}},callOnEnd:function(){if(this.options.onEnd){var n=this,t=this.tracking==="lowValue"?"min":"max";this.scope.$evalAsync(function(){n.options.onEnd(n.options.id,n.scope.rzSliderModel,n.scope.rzSliderHigh,t)})}this.scope.$emit("slideEnded")}},o}]).directive("rzslider",["RzSlider",function(n){return{restrict:"AE",replace:!0,scope:{rzSliderModel:"=?",rzSliderHigh:"=?",rzSliderOptions:"&?",rzSliderTplUrl:"@"},templateUrl:"rzSliderTpl.htm",link:function(t,i){t.slider=new n(t,i)}}}]);return t.name});AK={System:undefined,HomePage:undefined,Catalog:undefined,Product:undefined,Cart:undefined,Order:undefined,Garage:undefined,Header:undefined,History:undefined,Dashboard:undefined,Account:undefined,Registration:undefined,Administration:undefined,CmsPage:undefined,Contact:undefined,Search:undefined,Report:undefined,ServiceProfile:undefined,LedCalc:undefined,Auction:undefined,Complaint:undefined,Disagreement:undefined,ProductPriceSeller:undefined,HaynesPro:undefined};AK.Paging={init:undefined};AK.Paging.init=function(n,t){AK.System.alert("@Paging.init");var i=function i(){_classCallCheck(this,i);this.Page=1;this.Size=20;this.Total=1;this.Ranges=[];this.CallbackFn=""};t.getEmptyModel=function(){return new i};t.setModel=function(n){t.model=n;t.setRange()};t.set=function(n,i,r,u){var f=t.getEmptyModel();f.Page=n;f.Size=i;f.Total=r;f.Ranges=[];f.CallbackFn=u;t.setModel(f)};t.getModel=function(){return t.model};t.model=t.getEmptyModel();t.setPage=function(n){t.model.Page=n;t.model.CallbackFn(t.model.Page)};t.setRange=function(){var i=10,r=Math.ceil(i/2)-1,u,f=t.model.Total,n;for(u=t.model.Page<=r+1?1:t.model.Page>f-r?Math.max(1,f-i+1):t.model.Page-r+1,t.model.Ranges=[],n=u;n<=u+i-1;n++)n>=1&&n<=f&&t.model.Ranges.push(n)};t.prevPage=function(){t.model.Page>1&&t.setPage(t.model.Page-1)};t.prevPageDisabled=function(){return t.model.Page===1?"prev disabled":""};t.nextPage=function(){t.model.Page<t.model.Total&&t.setPage(t.model.Page+1)};t.nextPageDisabled=function(){return t.model.Page===t.model.Total?"next disabled":""}};AK.HomePage={getBanner:undefined,getWidget:undefined,getPromoBanner:undefined,getWorkshopGrid:undefined,getPaintingGrid:undefined,getPresentationPopup:undefined,getRootMenu:undefined};AK.Catalog={getBanner:undefined,getMenu:undefined,menuItemDropdown:undefined,getCar:undefined,getModel:undefined,getMotor:undefined,getCategory:undefined,getCatalog:undefined,getStripPath:undefined,getImageStrip:undefined,getWheelConfig:undefined,getAktiRoot:undefined,getAktiTreeList:undefined,getGraphicScheme:undefined,getInteractiveScheme:undefined,getFilterCar:undefined,getFilterVan:undefined,getFilterAxle:undefined,getFilterBike:undefined,getVinDecoder:undefined,getVinCreditUse:undefined,getRenderMode:undefined,getVinDecoder2:undefined,getLicencePlateDecoder:undefined,initSwitchView:undefined};AK.WheelConfigAlcar={init:undefined};AK.CompanyBriefInfo={init:undefined};AK.HaynesPro={init:undefined,RepairTimes:undefined,Adjustment:undefined,Lubricant:undefined,Basket:undefined,Stories:undefined,TechnicalDrawing:undefined,Maintenance:undefined};AK.HaynesPro.Basket={init:undefined};AK.HaynesPro.RepairTimes={init:undefined};AK.HaynesPro.Adjustment={init:undefined};AK.HaynesPro.Lubricant={init:undefined};AK.HaynesPro.Stories={init:undefined};AK.HaynesPro.TechnicalDrawing={init:undefined};AK.HaynesPro.Maintenance={init:undefined};AK.ProductList={getProductList:undefined,getProductListGraphicScheme:undefined,getProductListViewTypeFilter:undefined,getProductListBrandFilter:undefined,getProductListPriceFilter:undefined,getProductListAttributeFilter:undefined,initStockFilter:undefined,RefreshTooltip2:undefined,getTopSell:undefined,initRestriction:undefined,initTrackInfo:undefined};AK.ProductList.TrackInfo=function(){function n(){_classCallCheck(this,n);this.Id=AK.Common.newGuid();this.TypeId=5;this.UserId="";this.CompanySubType="";this.RelativeUrl="";this.CatalogPath=[];this.TopProducts=undefined;this.Products=undefined;this.Page=1;this.StartTime=""}return n}();AK.ProductList.TrackCatalog=function(){function n(){_classCallCheck(this,n);this.Id=0;this.Text=""}return n}();AK.ProductList.TrackProduct=function(){function n(){_classCallCheck(this,n);this.Id=0;this.Code="";this.Text="";this.Position=0;this.PrimaryStock=0;this.CentralStock=0;this.OtherStock=0;this.AddToCartTime="";this.AddToCartQuantity=0}return n}();AK.ProductFilter={initTest:undefined};AK.ProductFilter={initLeftMenu:undefined};AK.ProductFilter2={initLeftMenu:undefined};AK.Header={getFlag:undefined,getLogonAs:undefined,initFoundUsers:undefined};AK.Product={getImage:undefined,getAttribute:undefined,getInfo:undefined,getTabs:undefined,getRecommend:undefined,getCode:undefined,getOccurence:undefined,getStorage:undefined,onHomeCreditCalc:undefined,getCart:undefined,getLink:undefined,initStock:undefined,initStockDisponibility:undefined,initStockDisponibility2:undefined};AK.Cart={getHeader:undefined,getMini:undefined,getMini2:undefined,getStep:undefined,getCart:undefined,addProduct:undefined,getModal:undefined,getRecapitulation:undefined,getProductAdd:undefined,getItemNoteModal:undefined,initPrint:undefined};AK.Cart2={getBig:undefined};AK.TakeOff={initAccordion:undefined,initStorage:undefined,initAKDeliveryStorage:undefined,initExpressTaking:undefined,initDelivery:undefined,initService:undefined,initModalMessage:undefined,maps:undefined,mapService:undefined,mapStorage:undefined};AK.TakeOff.maps={scriptLoaded:null};AK.TakeOff.mapStorage={gmap:null,marker:null,infoWindow:null,initialize:undefined,isInitialized:!1,select:undefined};AK.TakeOff.mapService={gmap:null,markerClusterer:null,markers:[],markerYouAreHere:null,infoWindow:null,initialize:undefined,select:undefined};AK.Order={getOrder:undefined,getOrderPanes:undefined,getOrderList:undefined,getOrderItem:undefined,getOrderItemCancel:undefined,getOrderDetail:undefined,Archive:{init:undefined}};AK.ElitOrder={initListItems:undefined,initListOrders:undefined};AK.ElitInvoice={initList:undefined};AK.ElitShipment={initList:undefined};AK.ElitCreditMemos={initList:undefined};AK.ElitLoan={initList:undefined};AK.ElitVendorInfo={init:undefined};AK.Elit={Product:{initStockDisponibility2:undefined}};AK.ElitOeDelivery={init:undefined};AK.BatchInfo={init:undefined};AK.History={getHistoryCatalog:undefined,getHistoryVin:undefined};AK.History2={init:undefined,initCatalog:undefined,initProduct:undefined,intiVin:undefined};AK.History2Catalog={init:undefined};AK.History2Product={init:undefined};AK.History2Vin={init:undefined};AK.Dashboard={getUserInfo:undefined};AK.Account={getStorage:undefined,getSettings:undefined,getForgottenPassword:undefined,getChangePassword:undefined,getAccounts:undefined,getAccountDelete:undefined,getAccountEdit:undefined,initDebt:undefined};AK.Garage={getCarList:undefined,getCarDetail:undefined,getParkedCarDelete:undefined,getHomeServiceList:undefined,getServiceBook:undefined,initServiceInspection:undefined,getParkNewCar:undefined,Map:undefined,notificationInit:undefined,parkedCar:{orderListInit:undefined},setup:undefined,setupTotalHidden:undefined,Calendar:{init:undefined,initServiceSheet:undefined}};AK.Garage.Map={gmap:null,osmMap:null,geocoder:null,scriptLoaded:!1,markerClusterer:null,markers:[],markerYouAreHere:null,infoWindow:null};AK.CalcOffer={initList:undefined,initCarList:undefined,initDetail:undefined,initGetCar:undefined,initTechInfoCar:undefined};AK.GarageSetup={userItem:undefined,totalHidden:undefined,profile:undefined};AK.CmsPage={getCmsPage:undefined};AK.Contact={getContact:undefined,getContactDetail:undefined,getContactEBikeService:undefined,getContactEBikeServiceDetail:undefined,getContactMotoService:undefined,getContactMotoServiceDetail:undefined,getContactAkasService:undefined,getContactAkasServiceDetail:undefined,Map:undefined};AK.Contact.Map={gmap:null,osmMap:null,geocoder:null,scriptLoaded:null,markerClusterer:null,markers:[],markerYouAreHere:null,infoWindow:null};AK.Search={getSearch:undefined};AK.Search2={init:undefined,initHistory:undefined,initCatalog:undefined,initProduct:undefined,initCarDecoded:undefined};AK.ServiceTicket={getNewTicket:undefined,getTicketMy:undefined};AK.ServiceSheet={initList:undefined,initCarList:undefined,initDetail:undefined};AK.ServiceProfile={init:undefined};AK.ServiceProfile.Map={gmap:null,scriptLoaded:null,markerYouAreHere:null,infoWindow:null};AK.LedCalc={init:undefined};AK.Auction={initList:undefined,initDetail:undefined,initHistory:undefined,initHPBanner:undefined,confirmModal:undefined};AK.AkDocument={init:undefined};AK.ServiceInvoice={initList:undefined,initCreate:undefined};AK.ServiceCustomer={initList:undefined,initEdit:undefined,initSelect:undefined};AK.RegistrationAdmin={initList:undefined,initDetail:undefined};AK.OrderAdmin={initList:undefined,initDetail:undefined};AK.OrderPromise={initList:undefined};AK.OrderBranch={initList:undefined};AK.PriceCompare={init:undefined,initList:undefined};AK.ProductReturn={initNew:undefined,initNewList:undefined,initOld:undefined,messages:{dataNotComplette:"",importFailed:"",importFailedBadColumn:"",importFailedBadCode:"",importFailedBadAmount:"",importSuccess:"",importFailedNoItems:""}};AK.ProductReturnOld={initCreate:undefined,initListDays:undefined,initListDay:undefined,initList:undefined,messages:{dataNotComplette:"",importFailed:"",importFailedBadColumn:"",importFailedBadCode:"",importFailedBadAmount:"",importSuccess:"",importFailedNoItems:""}};AK.Complaint={init:undefined,initCreate:undefined,initListDays:undefined,initListDay:undefined,initList:undefined,messages:{dataNotComplette:"",importFailed:"",importFailedBadColumn:"",importFailedBadCode:"",importFailedBadAmount:"",importSuccess:"",importFailedNoItems:""}};AK.CalendarSales={init:undefined,init2:undefined};AK.CalendarSalesWeek={init:undefined};AK.MarketingDeals={init:undefined};AK.Sales={init:undefined};AK.DeliveryNotes={init:undefined};AK.MarketingDealsItems={init:undefined};AK.ProductPriceSeller={init:undefined};AK.MarketingPackage={initGroup:undefined,initDetail:undefined};AK.EET={initSetting:undefined};AK.EDI={init:undefined};AK.FortuneWheel={init:undefined};AK.PPC={Transaction:undefined,TransactionProcess:undefined,TransactionCommit:undefined,TransactionAdwords:undefined,TransactiontAdwordsCommit:undefined,CheckGat:undefined,TransactionGTMCommit:undefined};AK.System={url:undefined,alertEnabled:!1,alert:function(n){AK.System.alertEnabled===!0&&console.log(n)},alertDir:function(n){AK.System.alertEnabled===!0&&console.dir(n)},datePickerLanguage:undefined,TrackEventGA:function(){},ShowMessage:function(n){n!=undefined&&n.length>0&&$.bootstrapGrowl(n,{type:"info",align:"center",width:"auto",offset:{from:"top",amount:20}})},ShowModalMessage:function(n){n!=undefined&&n!=null&&n.length>0&&($("#AKMessageModalText").html(n),$("#AKMessageModal").modal("show"))},ShowError:function(n){$.bootstrapGrowl(n,{type:"danger",align:"center",width:"auto",offset:{from:"top",amount:20}})},AngularReady:function(){console.log("@System.AngulerReady")},NewWindow:function(n,t,i,r,u,f,e,o){return console.log("@System.NewWindow"),showScrollBar=e==0?"no":"yes",showMenuBar=u==0?"no":"yes",isResizable=f==0?"no":"yes",showStatusBar=o==0?"no":"yes",LeftPosition=screen.width?(screen.width-i)/2:300,TopPosition=screen.height?(screen.height-r)/2:300,Setting="copyhistory=0;status=0,directories=0,titlebar=0,toolbar=0,scrollbars="+showScrollBar+",location=0,statusbar=0,menubar="+showMenuBar+",resizable="+isResizable+",Width="+i+",Height="+r+",top="+TopPosition+",left="+LeftPosition,openwindow=window.open(n,t.replace(/\./gi,"").replace(/\-/gi,"").replace(/\_/gi,""),Setting),openwindow!=null&&openwindow.focus(),!1},CreateCookie:function(n,t,i){var r,u;i?(r=new Date,r.setTime(r.getTime()+i*864e5),u="; expires="+r.toGMTString()):u="";document.cookie=n+"="+t+u+"; path=/"},ReadCookie:function(n){for(var t,r=n+"=",u=document.cookie.split(";"),i=0;i<u.length;i++){for(t=u[i];t.charAt(0)==" ";)t=t.substring(1,t.length);if(t.indexOf(r)==0)return t.substring(r.length,t.length)}return""},EraseCookie:function(n){AK.System.CreateCookie(n,"",-1)},CheckHtml5Support:function(){var i=!document.createElement("svg").getAttributeNS,n=document.documentMode,t=!1;return n!=undefined&&(t=n==9),!i&&!t},AddJavascript:function(n,t){var r=document.getElementsByTagName(t)[0],i=document.createElement("script");i.setAttribute("type","text/javascript");i.setAttribute("src",n);r.appendChild(i)},IsEmailValid:function(n){var t=!1;return/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/.test(n)&&(t=!0),t},IsPhoneValid:function(n){var t=!1;return/^(\+|\d)(\d){8,14}$/.test(n)&&(t=!0),t},ChangeUrlWithoutReload:function(n,t){if(typeof history.pushState!="undefined"){var i={Title:n,Url:t};history.pushState(i,i.Title,i.Url)}else alert("Browser does not support HTML5.")},HideLeftMenu:function(){var i=navigator.userAgent.match(/Android/i)||navigator.userAgent.match(/webOS/i)||navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPad/i)||navigator.userAgent.match(/iPod/i)||navigator.userAgent.match(/BlackBerry/i),n,t;i||(n=window.innerWidth,t=n<768,t||catalogMenuNavBarClick())},GuidEmpty:"00000000-0000-0000-0000-000000000000",ShowLoginModal:function(){$("#modal-simple").modal("show")},CopyToClipboard:function(n){var t=$("<input>");return $("body").append(t),t.val(n).select(),document.execCommand("copy"),t.remove(),!1}};AK.SystemMessage={init:undefined};AK.Common={setDatetimepicker:undefined,loadDigitOnly:undefined,getDataLoading:undefined,exportCsvFile:undefined};AK.SessionTimeoutCounter={init:undefined};AK.SessionTimeoutExtender={init:undefined};AK.SystemMessage.init=function(n,t,i){AK.System.alert("@SystemMessage.init");t.items=[];t.loadData=function(){i.systemMessage.getData().then(function(n){n.data.errorMessage&&n.data.errorMessage.length>0?AK.System.alert(errorMessage):n.data.items&&n.data.items.length>0&&(t.items=n.data.items)},function(){AK.System.alert("SystemMessage load data failed")})};t.loadData()};AK.HomePage.getBanner=function(n,t){AK.System.alert("@HomePage.getBanner");n.hpBannerClick=function(n){AK.System.TrackEventGA(n.Category,n.Action,n.Label,n.WebSite)};n.hpBanners=[];t.getBanners().success(function(t){n.hpBanners=t;$("#HPCarousel").removeClass("visibilityOff")})};AK.HomePage.getWidget=function(n,t){AK.System.alert("@HomePage.getWidget");n.widgetClick=function(n){AK.System.TrackEventGA(n.Category,n.Action,n.Label,n.WebSite)};n.widgets=[];t.getWidgets().success(function(t){n.widgets=t;$("#HPWidget").removeClass("visibilityOff")})};AK.HomePage.getPromoBanner=function(n,t){AK.System.alert("@HomePage.getPromoBanner");n.promoBannerClick=function(n){AK.System.TrackEventGA(n.Category,n.Action,n.Label,n.WebSite)};n.flashSales=[];n.promoBanners=[];t.getPromoBanners().success(function(t){n.flashSales=t.FlashSales;n.promoBanners=t.PromoBanners;$("#HPPromoBanner").removeClass("visibilityOff")})};AK.HomePage.getWorkshopGrid=function(n,t){AK.System.alert("@HomePage.getWorkshopItem");n.workshopItemClick=function(n){AK.System.TrackEventGA(n.Category,n.Action,n.Label,n.WebSite)};n.workshopItems=[];t.getWorkshopItems().success(function(t){n.workshopItems=t;$("#HPWorkshopContainer").removeClass("visibilityOff")})};AK.HomePage.getPaintingGrid=function(n,t){AK.System.alert("@HomePage.getPaintingItem");n.paintingItemClick=function(n){AK.System.TrackEventGA(n.Category,n.Action,n.Label,n.WebSite)};n.paintingItems=[];t.getPaintingItems().success(function(t){n.paintingItems=t;$("#HPPaintingContainer").removeClass("visibilityOff")})};AK.HomePage.getPresentationPopup=function(n,t,i){AK.System.alert("@HomePage.getPresentationPopup");n.alwaysHidden=function(){t.setPopupAlwaysHidden(i).success(function(n){n===!0&&$("#PresentationPopupModal").modal("hide")})}};AK.HomePage.getRootMenu=function(n,t){AK.System.alert("@HomePage.getRootMenu");n.rootItems=[];$(window).width()<=767&&$("#HPRootMenuContainer").addClass("mobile-ready");n.showingEnabled=$("#HPRootMenuContainer").hasClass("mobile-ready");n.rootItemClick=function(n){AK.System.TrackEventGA(n.Category,n.Action,n.Label,n.WebSite)};n.loadRootItems=function(){n.showingEnabled&&n.rootItems.length<=0&&t.getCatalogRootItems().success(function(t){n.rootItems=t})};n.loadRootItems();n.showRootMenu=function(){n.showingEnabled=$("#HPRootMenuContainer").hasClass("mobile-ready");n.loadRootItems();n.$apply()}};AK.HomePage.widgetHover=function(n){n.hover(function(){$(".fdw-background",this).animate({opacity:"1"},200);$(".iconHome",this).animate({opacity:"0"},200)},function(){$(".fdw-background",this).animate({opacity:"0"},200);$(".iconHome",this).animate({opacity:"1"},200)})};$(function(){$("#HPCarousel").carousel({interval:3e3})});AK.Catalog.getBanner=function(n,t){AK.System.alert("@Catalog.getBanner");n.catalogBanners=[];n.customerLineBranch=undefined;n.catalogBannerClick=function(n){AK.System.TrackEventGA(n.Category,n.Action,n.Label,n.WebSite)};t.getCatalogBanners().success(function(t){n.catalogBanners=t.banners;n.customerLineBranch=t.customerLineBranch;$("#HPCatalogMenuBanner").removeClass("visibilityOff")})};AK.Catalog.getMenu=function(n,t,i){AK.System.alert("@Catalog.getMenu");t.showCatalog=!0;t.catalogMenuItems=[];t.catalogMenuItemClick=function(n){n!=null&&AK.System.TrackEventGA(n.Category,n.Action,n.Label,n.WebSite)};t.langEPortalClick=function(){i.getLangEPortalUrl().then(function(n){n.data.url&&n.data.url.length>0&&(window.location=n.data.url)})};n.akDataLoadingStringAdd("CatalogMenu");i.getCatalogMenuItems().then(function(i){t.catalogMenuItems=i.data;$("#CatalogMenuUl").removeClass("visibilityOff");n.akDataLoadingStringRemove("CatalogMenu")},function(){AK.System.alert("Get catalog menu failed");n.akDataLoadingStringRemove("CatalogMenu")})};AK.Catalog.menuItemDropdown=function(n,t){t.toLowerCase()==="true"&&$(n).dropdownHover()};AK.Catalog.getCar=function(n,t,i,r){AK.System.alert("@Catalog.getCar");t.catalogCars=[];n.akDataLoadingStringAdd("CatalogCar");t.catalogCarClick=function(n){AK.System.TrackEventGA(n.Category,n.Action,n.Label,n.WebSite)};i.getCatalogCars(r).then(function(i){t.catalogCars=i.data;$("#CatalogCarContainer").removeClass("visibilityOff");n.akDataLoadingStringRemove("CatalogCar")},function(){AK.System.alert("Get catalog car failed");n.akDataLoadingStringRemove("CatalogCar")})};AK.Catalog.getModel=function(n,t,i){AK.System.alert("@Catalog.getModel");n.showCategoryTitle=!1;n.catalogModels=[];n.filter={years:undefined,showTo:!1};n.catalogModelItemClick=function(n){AK.System.TrackEventGA(n.Category,n.Action,n.Label,n.WebSite)};n.filterYear=function(i){t.catalog.model.setYearFilter(i).then(function(t){n.catalogModels=t.data.Models;n.filter=t.data.Filter;var i=0,r=0;angular.forEach(n.catalogModels,function(n){angular.forEach(n.Categories,function(n){i+=1;r+=n.Items.length})});n.showCategoryTitle=i>1&&i!=r},function(n){AK.System.alert(n)})};t.catalog.model.get(i).success(function(t){n.catalogModels=t.Models;n.filter=t.Filter;$("#CatalogModelContainer").removeClass("visibilityOff");var i=0,r=0;angular.forEach(n.catalogModels,function(n){angular.forEach(n.Categories,function(n){i+=1;r+=n.Items.length})});n.showCategoryTitle=i>1&&i!=r})};AK.Catalog.getMotor=function(n,t,i,r,u){AK.System.alert("@Catalog.getMotor");t.catalogMotors=[];t.catalogMotorClick=function(n){AK.System.TrackEventGA(n.Category,n.Action,n.Label,n.WebSite)};t.motorInfoClick=function(n){i.getCatalogMotorInfo(n).success(function(n){t.motorInfoHtml=u.trustAsHtml(n)})};t.parkCar=function(n){i.createParkedCarCatalog(n).then(function(){window.location="/Garage/Car/"+AK.System.GuidEmpty},function(n){AK.System.alert(n)})};t.loadData=function(){i.getCatalogMotors(r).success(function(n){t.catalogMotors=n;$("#CatalogMotorContainer").removeClass("visibilityOff")})};t.loadData();n.$on("CatalogMotorsLoadData",function(){t.loadData()})};AK.Catalog.getCategory=function(n,t,i,r){AK.System.alert("@Catalog.getCategory");t.catalogCategoryRows=[];n.akDataLoadingStringAdd("CatalogCategory");t.catalogCategoryClick=function(n){AK.System.TrackEventGA(n.Category,n.Action,n.Label,n.WebSite)};i.getCatalogCategories(r).then(function(i){t.catalogCategoryRows=i.data;$("#CatalogCategoryContainer").removeClass("visibilityOff");n.akDataLoadingStringRemove("CatalogCategory")},function(){AK.System.alert("Get catalog categories failed");n.akDataLoadingStringRemove("CatalogCategory")});n.$on("CatalogSwitchView",function(n,i){t.viewType=i})};AK.Catalog.getCatalog=function(n,t,i,r,u){AK.System.alert("@Catalog.getCatalog");t.catalogs=[];t.viewType=u;t.catalogClick=function(n){AK.System.TrackEventGA(n.Category,n.Action,n.Label,n.WebSite)};i.getCatalogs(r).success(function(n){t.catalogs=n;$("#CatalogSimpleContainer").removeClass("visibilityOff");setTimeout(function(){t.highlightCatalog()},100)});t.highlightCatalog=function(){var n=!1;$(".productListContainer").each(function(){n=!0});n&&$(".catalogItem").each(function(){var n=$(this).parent().css("background-color"),t=$(this).css("color");$(this).animate({backgroundColor:"#aa0000",color:"#fff"},500);$(this).animate({backgroundColor:n,color:t},500)})};n.$on("CatalogSwitchView",function(n,i){t.viewType=i})};AK.Catalog.getStripPath=function(n,t,i){AK.System.alert("@Catalog.getStripPath");t.stripPathItems=[];t.virtualText=undefined;t.catalogStripPathClick=function(n){AK.System.TrackEventGA(n.Category,n.Action,n.Label,n.WebSite)};i.getStripPathItems().success(function(n){t.stripPathItems=n;$("#CatalogStripPathContainer").removeClass("visibilityOff")});n.$on("SetCatalogStripVirtual",function(n,i){t.virtualText=i})};AK.Catalog.getImageStrip=function(n,t,i){AK.System.alert("@Catalog.getStripPath");t.items=[];t.catalogImageStripClick=function(n){AK.System.TrackEventGA(n.Category,n.Action,n.Label,n.WebSite)};n.akDataLoadingStringAdd("CatalogImageStrip");i.getImageStripItems().then(function(i){t.items=i.data;$("#CatalogImageStripContainer").removeClass("visibilityOff");n.akDataLoadingStringRemove("CatalogImageStrip")},function(){AK.System.alert("Get catalog image strip failed");n.akDataLoadingStringRemove("CatalogImageStrip")})};AK.Catalog.getWheelConfig=function(n,t,i,r,u){AK.System.alert("@Catalog.getWheelConfig");t.catalogs=[];t.wheels=[];t.selectedCatalogId=u;t.selectedWheel=null;t.selectedPriceType=null;t.vPriceVisible=!1;t.netiumCarId="";t.netiumWheelSize="16";t.isDataLoaded=!1;t.cartAddAmount=0;i.getWheelConfig(u).success(function(n){t.netiumCarId=n.NetiumCarId;t.netiumWheelSize=n.WheelSize;t.catalogs=n.Catalogs;t.wheels=n.Wheels;t.selectedWheel=t.wheels[0];t.cartAddAmount=t.selectedWheel.StepAmount;t.selectedPriceType=n.PriceType;t.vPriceVisible=t.selectedPriceType==3?!0:!1;t.isDataLoaded=!0;t.loadWheelConfig();$("#CatalogWheelConfigContainer").removeClass("visibilityOff");var i=t.wheels.filter(function(n){return n.LoadUserPrice==!0}).map(function(n){return n.ProductId});t.loadPrices(i)});t.loadPrices=function(n){n!=undefined&&n.length>0&&(t.userPriceLoading=!0,i.getProductUserPrice(n).then(function(n){n.data.Content!=undefined?t.wheels.forEach(function(t){var i=AK.Common.altFind(n.data.Content,function(n){return n.ProductId==t.ProductId});i!=undefined&&(t.VPrice=i.Price,t.VPriceVat=i.PriceVat)}):n.data.error!=undefined&&AK.System.alert(n.data.error);t.userPriceLoading=!1},function(){t.userPriceLoading=!1}))};t.selectWheel=function(n){$.configurator.myActualCanvasMode="normal";t.selectedWheel=t.wheels[n];t.cartAddAmount=t.selectedWheel.StepAmount;$.car.setWheelsByParams(t.netiumCarId,t.selectedWheel.WheelId,t.netiumWheelSize)};t.changePriceType=function(){t.vPriceVisible=t.selectedPriceType==3?!0:!1};t.getLastCatalogId=function(n){var t=n.split(";");return t[t.length-1]};t.loadWheelConfig=function(){$.configurator.myActualCanvasMode="normal";frame=top.frames[$.configurator.getCurrentCanvasName()];frame.window.canvas_mode=="normal"&&$.configurator.onCanvasLoaded?$.configurator.onCanvasLoaded():frame.window.canvas_mode=="large"&&$.configurator.onLargeCanvasLoaded&&($.configurator.onLargeCanvasLoaded(),frame.$(document).unbind("click").click(function(){t.closeLargePreview()}));frame.window.onmousewheel=function(){return!1};$.car.setCarByGuid(t.netiumCarId);$.car.setWheelsByParams(t.netiumCarId,t.selectedWheel.WheelId,t.netiumWheelSize)};t.catalogClick=function(n){AK.System.TrackEventGA(n.Category,n.Action,n.Label,n.WebSite)};t.netiumShowLargePreview=function(){$.configurator.myActualCanvasMode="large";var n=$.car.showLargePreview(),i=new Date;t.largeImageCarUrl=r.trustAsResourceUrl("/Html/"+n+"&ts="+i.toJSON().replace(/:/g,"-").replace(".","-"));$("#ModalNetiumShowLargePreview").modal("show")};t.closeLargePreview=function(){$.configurator.myActualCanvasMode="normal";t.largeImageCarUrl=r.trustAsResourceUrl("");$("#ModalNetiumShowLargePreview").modal("hide")};t.netiumRotateWheels=function(){$.configurator.myActualCanvasMode="normal";$.car.rotateWheels()};t.changeColor=function(){$.configurator.myActualCanvasMode="normal";$.car.setColor(t.selectedColor);$.fn._activeColor=t.selectedColor};t.productCartAdd=function(){n.$emit("CartAddProduct",t.selectedWheel.ProductId,t.cartAddAmount,t.selectedWheel.StepAmount,!1,"","","","",!1)}};AK.Catalog.getAktiRoot=function(n,t){AK.System.alert("@Catalog.getAktiRoot");n.catalogs=[];n.catalogClick=function(n){AK.System.TrackEventGA(n.Category,n.Action,n.Label,n.WebSite)};t.getAktiRootItems().success(function(t){n.catalogs=t})};AK.Catalog.getAktiTreeList=function(n,t,i){AK.System.alert("@Catalog.getAktiTreeList");n.radioNodes=[];n.checkboxNodes=[];n.type=i;n.selectedData="";n.treeListClick=function(i,r){t.getAktiTreeListChange(n.type,i.Id,!(r===!0)).success(function(n){n===!0&&(i.IsOpen=!(r===!0))})};n.detailButtonClick=function(){var i="";angular.forEach(n.checkboxNodes,function(n){angular.forEach(n.Children,function(n){n.IsChecked===!0&&(i=i+(i.length>0?";":"")+n.Id)})});n.selectedData.AuxiliaryWorkIds=i;t.setCatalogAktiTreeListResult(n.selectedData).then(function(){window.location="/Catalog/AktiDetailMaintenance"},function(){})};t.getAktiTreeList(n.type).success(function(t){n.radioNodes=t.RadioNodes;n.checkboxNodes=t.CheckboxNodes;n.selectedData=t.SelectedData;$("#CatalogAktiTreeListContainer").removeClass("visibilityOff")})};AK.Catalog.getGraphicScheme=function(n,t,i){AK.System.alert("@Catalog.getGraphicScheme");n.receiveMessage=function(n){AK.System.alert(n.data);window.location="/ProductList/GraphicScheme/"+n.data};AK.System.HideLeftMenu();n.iframeInitialize=function(){var n,t;AK.System.alert("@Catalog.OEM_iframeInitialize");n=$("#GraphicScheme_IFrame").width();$("#GraphicScheme_IFrame").height(n*.5625);t=$("#GraphicScheme_IFrame").height()};n.load=function(){$(".GraphicScheme_IFrameContainer").each(function(){var r,t,u;window.addEventListener&&window.addEventListener("message",n.receiveMessage,!1);r=!1;$(".GraphicScheme_IFrame").each(function(){r=!0});r||(t=document.createElement("iframe"),$(t).attr("id","GraphicScheme_IFrame"),$(t).addClass("GraphicScheme_IFrame GraphicScheme_IFrame_Default"),$(t).attr("allowfullscreen",!0),$(t).attr("webkitallowfullscreen",!0),$(t).attr("mozallowfullscreen",!0),$(this).append(t),u=$(".GraphicScheme_DataTextBox").val(),t.contentWindow.document.write(u));i(setTimeout(function(){n.iframeInitialize()},10))});$("#CatalogGraphicSchemeContainer").removeClass("visibilityOff")};n.load()};AK.Catalog.getInteractiveScheme=function(n,t,i,r,u,f){AK.System.alert("@Catalog.getInteractiveScheme");n.schemes=[];n.jqueryScrollbarOptions={type:"simple"};n.showPanes=u=="true";n.selectedArea=undefined;t.getInteractiveScheme(r).success(function(t){n.schemes=t;n.showPanes&&(n.selectedArea=n.schemes[0].Areas[0]);$(".interactiveSchemeContainer").removeClass("visibilityOff")});n.areaOver=function(n,r){AK.System.alert("@Catalog.InteractiveScheme.AreaClick");var u=r.target;n.ToolTipLoaded===!1&&(n.ToolTipLoaded=!0,t.getInteractiveSchemeAreaTooltip(n.TargetIds).success(function(t){n.ToolTip=i.trustAsHtml(t);$(u).attr("data-original-title",n.ToolTip);$(u).tooltip("hide");$(u).tooltip("show")}))};n.selectArea=function(t){n.selectedArea=t;n.getAreaProducts(t)};n.areaClick=function(t){n.selectArea(t);f(function(){var n=$("#akintschemepane"+t.Code)[0];$(n).hasClass("collapsed")==!0&&$("#akintschemepane"+t.Code)[0].click()},100)};n.reloadScope=function(t){var i=n.getProductListScope(t);i.$apply()};n.getAreaProducts=function(i){AK.System.alert("@Catalog.InteractiveScheme.Area.GetProducts");i.ProductsLoaded===!1&&t.interactiveScheme.area.getProducts(i.TargetIds).success(function(t){i.ProductsLoaded=!0;i.Products=t.products;var r=n.getProductListScope(i.Code),u={Items:i.Products,Paging:{Page:1,Size:100,Total:1}};r.setProducts(u,!1)})};n.getProductListScope=function(n){return angular.element(document.getElementById("productContainer"+n).getElementsByClassName("productListContainer")[0]).scope()}};AK.Catalog.getFilterCar=function(n,t,i){AK.System.alert("@Catalog.getFilterCar");t.data=null;t.filters=null;t.filtersVisible=!1;t.yearItems=null;t.kwItems=null;t.hpItems=null;t.ccmItems=null;t.cylinderItems=null;t.fuelItems=null;t.filterModel=null;i.getCatalogFilterCarInfoRange().success(function(n){t.data=n;t.filters=t.data.Filters;t.yearItems=t.data.YearItems;t.kwItems=t.data.KWItems;t.hpItems=t.data.HPItems;t.ccmItems=t.data.CCMItems;t.cylinderItems=t.data.CylinderItems;t.fuelItems=t.data.FuelItems;t.filterModel={};t.filterModel.type=t.data.Type;t.filterModel.year=t.yearItems[0].Value;t.filterModel.kw=t.kwItems[0].Value;t.filterModel.hp=t.hpItems[0].Value;t.filterModel.ccm=t.ccmItems[0].Value;t.filterModel.cylinder=t.cylinderItems[0].Value;t.filterModel.fuel=t.fuelItems[0].Value;t.filterModel.code=t.data.Code});t.getSelectedValue=function(n,t){var i=t;return n.forEach(function(n){n.Selected==!0&&(i=n.Value)}),i};t.checkFiltersVisibility=function(){var n=!1;t.filters.forEach(function(t){t.Active===!0&&(n=!0)});t.filtersVisible!=n&&(t.filtersVisible=n)};t.removeFilter=function(n){t.filters.forEach(function(t){t.Name==n&&(t.Active=!1)});t.filterModel[n]=n=="year"||n=="kw"||n=="hp"||n=="ccm"||n=="cylinder"||n=="fuel"?t.yearItems[0].Value:"";t.checkFiltersVisibility();t.postFilter()};t.removeAllFilters=function(){t.filters.forEach(function(n){n.Active===!0&&(n.Active=!1)});for(var n in t.filterModel)t.filterModel[n]=n=="year"||n=="kw"||n=="hp"||n=="ccm"||n=="cylinder"||n=="fuel"?t.yearItems[0].Value:"";t.filtersVisible=!1;t.postFilter()};t.setFilter=function(n,i){AK.System.alert(n+", "+i);t.filters.forEach(function(r){r.Name==n&&(i!=""?i!=r.Value&&(r.Value=i,r.Active=!0,t.filtersVisible=!0,t.postFilter()):t.removeFilter(n))})};t.setSelectFilter=function(n,i,r){n.forEach(function(n){n.Value==r&&(r!=t.yearItems[0].Value?t.setFilter(i,r):t.removeFilter(i))})};t.postFilter=function(){AK.System.alert("Sending to server");i.setCatalogFilterCarInfo(t.filterModel).then(function(i){AK.System.alert("Set success");t.data=i.data;t.filters=t.data.Filters;t.yearItems=t.data.YearItems;t.kwItems=t.data.KWItems;t.hpItems=t.data.HPItems;t.ccmItems=t.data.CCMItems;t.cylinderItems=t.data.CylinderItems;t.fuelItems=t.data.FuelItems;t.filterModel.type=t.data.Type;t.filterModel.year=t.getSelectedValue(t.yearItems,t.yearItems[0].Value);t.filterModel.kw=t.getSelectedValue(t.kwItems,t.kwItems[0].Value);t.filterModel.hp=t.getSelectedValue(t.hpItems,t.hpItems[0].Value);t.filterModel.ccm=t.getSelectedValue(t.ccmItems,t.ccmItems[0].Value);t.filterModel.cylinder=t.getSelectedValue(t.cylinderItems,t.cylinderItems[0].Value);t.filterModel.fuel=t.getSelectedValue(t.fuelItems,t.fuelItems[0].Value);t.filterModel.code=t.data.Code;n.$emit("CatalogMotorsLoadData")},function(){AK.System.alert("Failed")})}};AK.Catalog.getFilterVan=function(n,t,i){AK.System.alert("@Catalog.getFilterVan");t.data=null;t.filters=null;t.filtersVisible=!1;t.yearItems=null;t.bodyItems=null;t.axleItems=null;t.hpItems=null;t.ccmItems=null;t.tonnageItems=null;t.filterModel=null;i.getCatalogFilterVanInfoRange().success(function(n){t.data=n;t.filters=t.data.Filters;t.yearItems=t.data.YearItems;t.bodyItems=t.data.BodyItems;t.axleItems=t.data.AxleItems;t.hpItems=t.data.HPItems;t.ccmItems=t.data.CCMItems;t.tonnageItems=t.data.TonnageItems;t.filterModel={};t.filterModel.type=t.data.Type;t.filterModel.year=t.yearItems[0].Value;t.filterModel.body=t.bodyItems[0].Value;t.filterModel.axle=t.axleItems[0].Value;t.filterModel.hp=t.hpItems[0].Value;t.filterModel.ccm=t.ccmItems[0].Value;t.filterModel.tonnage=t.tonnageItems[0].Value;t.filterModel.code=t.data.Code});t.getSelectedValue=function(n,t){var i=t;return n.forEach(function(n){n.Selected==!0&&(i=n.Value)}),i};t.checkFiltersVisibility=function(){var n=!1;t.filters.forEach(function(t){t.Active===!0&&(n=!0)});t.filtersVisible!=n&&(t.filtersVisible=n)};t.removeFilter=function(n){t.filters.forEach(function(t){t.Name==n&&(t.Active=!1)});t.filterModel[n]=n=="year"||n=="body"||n=="axle"||n=="hp"||n=="ccm"||n=="tonnage"?t.yearItems[0].Value:"";t.checkFiltersVisibility();t.postFilter()};t.removeAllFilters=function(){t.filters.forEach(function(n){n.Active===!0&&(n.Active=!1)});for(var n in t.filterModel)t.filterModel[n]=name=="year"||name=="body"||name=="axle"||name=="hp"||name=="ccm"||name=="tonnage"?t.yearItems[0].Value:"";t.filtersVisible=!1;t.postFilter()};t.setFilter=function(n,i){AK.System.alert(n+", "+i);t.filters.forEach(function(r){r.Name==n&&(i!=""?i!=r.Value&&(r.Value=i,r.Active=!0,t.filtersVisible=!0,t.postFilter()):t.removeFilter(n))})};t.setSelectFilter=function(n,i,r){n.forEach(function(n){n.Value==r&&(r!=t.yearItems[0].Value?t.setFilter(i,r):t.removeFilter(i))})};t.postFilter=function(){AK.System.alert("Sending to server");i.setCatalogFilterVanInfo(t.filterModel).then(function(i){AK.System.alert("Set success");t.data=i.data;t.filters=t.data.Filters;t.yearItems=t.data.YearItems;t.bodyItems=t.data.BodyItems;t.axleItems=t.data.AxleItems;t.hpItems=t.data.HPItems;t.ccmItems=t.data.CCMItems;t.tonnageItems=t.data.TonnageItems;t.filterModel.type=t.data.Type;t.filterModel.year=t.getSelectedValue(t.yearItems,t.yearItems[0].Value);t.filterModel.body=t.getSelectedValue(t.bodyItems,t.bodyItems[0].Value);t.filterModel.axle=t.getSelectedValue(t.axleItems,t.axleItems[0].Value);t.filterModel.hp=t.getSelectedValue(t.hpItems,t.hpItems[0].Value);t.filterModel.ccm=t.getSelectedValue(t.ccmItems,t.ccmItems[0].Value);t.filterModel.tonnage=t.getSelectedValue(t.tonnageItems,t.tonnageItems[0].Value);t.filterModel.code=t.data.Code;n.$emit("CatalogMotorsLoadData")},function(){AK.System.alert("Failed")})}};AK.Catalog.getFilterAxle=function(n,t,i){AK.System.alert("@Catalog.getFilterAxle");t.data=null;t.filters=null;t.filtersVisible=!1;t.typeItems=null;t.loadItems=null;t.filterModel=null;i.getCatalogFilterAxleInfoRange().success(function(n){t.data=n;t.filters=t.data.Filters;t.typeItems=t.data.TypeItems;t.loadItems=t.data.LoadItems;t.filterModel={};t.filterModel.type=t.data.Type;t.filterModel.axleType=t.typeItems[0].Value;t.filterModel.axleLoad=t.loadItems[0].Value});t.getSelectedValue=function(n,t){var i=t;return n.forEach(function(n){n.Selected==!0&&(i=n.Value)}),i};t.checkFiltersVisibility=function(){var n=!1;t.filters.forEach(function(t){t.Active===!0&&(n=!0)});t.filtersVisible!=n&&(t.filtersVisible=n)};t.removeFilter=function(n){t.filters.forEach(function(t){t.Name==n&&(t.Active=!1)});t.filterModel[n]=n=="axleType"||n=="axleLoad"?t.typeItems[0].Value:"";t.checkFiltersVisibility();t.postFilter()};t.removeAllFilters=function(){t.filters.forEach(function(n){n.Active===!0&&(n.Active=!1)});for(var n in t.filterModel)t.filterModel[n]=name=="axleType"||name=="axleLoad"?t.typeItems[0].Value:"";t.filtersVisible=!1;t.postFilter()};t.setFilter=function(n,i){AK.System.alert(n+", "+i);t.filters.forEach(function(r){r.Name==n&&(i!=""?i!=r.Value&&(r.Value=i,r.Active=!0,t.filtersVisible=!0,t.postFilter()):t.removeFilter(n))})};t.setSelectFilter=function(n,i,r){n.forEach(function(n){n.Value==r&&(r!=t.typeItems[0].Value?t.setFilter(i,r):t.removeFilter(i))})};t.postFilter=function(){AK.System.alert("Sending to server");i.setCatalogFilterAxleInfo(t.filterModel).then(function(i){AK.System.alert("Set success");t.data=i.data;t.filters=t.data.Filters;t.typeItems=t.data.TypeItems;t.loadItems=t.data.LoadItems;t.filterModel.type=t.data.Type;t.filterModel.axleType=t.getSelectedValue(t.typeItems,t.typeItems[0].Value);t.filterModel.axleLoad=t.getSelectedValue(t.loadItems,t.loadItems[0].Value);n.$emit("CatalogMotorsLoadData")},function(){AK.System.alert("Failed")})}};AK.Catalog.getFilterBike=function(n,t,i){AK.System.alert("@Catalog.getFilterBike");t.data=null;t.filters=null;t.filtersVisible=!1;t.yearItems=null;t.kwItems=null;t.hpItems=null;t.ccmItems=null;t.cylinderItems=null;t.filterModel=null;n.akDataLoadingStringAdd("CatalogFilterBike");i.getCatalogFilterBikeInfoRange().then(function(i){t.data=i.data;t.filters=t.data.Filters;t.yearItems=t.data.YearItems;t.kwItems=t.data.KWItems;t.hpItems=t.data.HPItems;t.ccmItems=t.data.CCMItems;t.cylinderItems=t.data.CylinderItems;t.filterModel={};t.filterModel.type=t.data.Type;t.filterModel.year=t.yearItems[0].Value;t.filterModel.kw=t.kwItems[0].Value;t.filterModel.hp=t.hpItems[0].Value;t.filterModel.ccm=t.ccmItems[0].Value;t.filterModel.cylinder=t.cylinderItems[0].Value;n.akDataLoadingStringRemove("CatalogFilterBike")},function(){AK.System.alert("Get catalog filter bike failed");n.akDataLoadingStringRemove("CatalogFilterBike")});t.getSelectedValue=function(n,t){var i=t;return n.forEach(function(n){n.Selected==!0&&(i=n.Value)}),i};t.checkFiltersVisibility=function(){var n=!1;t.filters.forEach(function(t){t.Active===!0&&(n=!0)});t.filtersVisible!=n&&(t.filtersVisible=n)};t.removeFilter=function(n){t.filters.forEach(function(t){t.Name==n&&(t.Active=!1)});t.filterModel[n]=n=="year"||n=="kw"||n=="hp"||n=="ccm"||n=="cylinder"||n=="fuel"?t.yearItems[0].Value:"";t.checkFiltersVisibility();t.postFilter()};t.removeAllFilters=function(){t.filters.forEach(function(n){n.Active===!0&&(n.Active=!1)});for(var n in t.filterModel)t.filterModel[n]=n=="year"||n=="kw"||n=="hp"||n=="ccm"||n=="cylinder"||n=="fuel"?t.yearItems[0].Value:"";t.filtersVisible=!1;t.postFilter()};t.setFilter=function(n,i){AK.System.alert(n+", "+i);t.filters.forEach(function(r){r.Name==n&&(i!=""?i!=r.Value&&(r.Value=i,r.Active=!0,t.filtersVisible=!0,t.postFilter()):t.removeFilter(n))})};t.setSelectFilter=function(n,i,r){n.forEach(function(n){n.Value==r&&(r!=t.yearItems[0]?t.setFilter(i,r):t.removeFilter(i))})};t.postFilter=function(){AK.System.alert("Sending to server");n.akDataLoadingStringAdd("CatalogFilterBike");i.setCatalogFilterBikeInfo(t.filterModel).then(function(i){AK.System.alert("Set success");t.data=i.data;t.filters=t.data.Filters;t.yearItems=t.data.YearItems;t.kwItems=t.data.KWItems;t.hpItems=t.data.HPItems;t.ccmItems=t.data.CCMItems;t.cylinderItems=t.data.CylinderItems;t.filterModel.type=t.data.Type;t.filterModel.year=t.getSelectedValue(t.yearItems,t.yearItems[0].Value);t.filterModel.kw=t.getSelectedValue(t.kwItems,t.kwItems[0].Value);t.filterModel.hp=t.getSelectedValue(t.hpItems,t.hpItems[0].Value);t.filterModel.ccm=t.getSelectedValue(t.ccmItems,t.ccmItems[0].Value);t.filterModel.cylinder=t.getSelectedValue(t.cylinderItems,t.cylinderItems[0].Value);n.$emit("CatalogMotorsLoadData");n.akDataLoadingStringRemove("CatalogFilterBike")},function(){AK.System.alert("Failed");n.akDataLoadingStringRemove("CatalogFilterBike")})}};AK.Catalog.getVinDecoder=function(n,t,i){AK.System.alert("@Catalog.getVinDecoder");t.cntVin=0;t.vin="";t.formSubmitted=!1;i.getCatalogVins().success(function(n){t.cntVin=n});t.decode=function(){(t.formSubmitted=!0,t.vinDecoderForm.$invalid)||t.vin.length==17&&t.openModalVinCreditUse()};t.openModalVinCreditUse=function(){return AK.System.alert("Open ModalVinCreditUse"),n.vin=t.vin,$("#ModalVinCreditUse").modal("show"),!1};t.buy=function(){AK.System.alert("Buying VIN")}};AK.Catalog.getVinCreditUse=function(n,t,i){t.decode=function(){n.vin.length==17&&(AK.System.alert("Decoding VIN: "+n.vin),$("#ModalVinCreditUse").modal("hide"),i.decodeVin(n.vin).then(function(n){n.data.IsSuccess?(AK.System.alert("Decoding success"),window.location=n.data.Value):AK.System.ShowMessage(n.data.Value)},function(){alert("Zpracování VIN kódu se nezdařilo.")}))}};AK.Catalog.getRenderMode=function(n,t){n.parkCar=function(n){t.createParkedCarCatalog(n).then(function(){window.location="/Garage/Car/"+AK.System.GuidEmpty},function(n){AK.System.alert(n)})}};AK.Catalog.getVinDecoder2=function(n,t,i,r,u){AK.System.alert("@Catalog.getVinDecoder2");t.vin="";t.formSubmitted=!1;t.url=r;t.decode=function(){if(t.formSubmitted=!0,t.vinDecoder2Form.$invalid)return AK.System.ShowMessage(u),!1;window.location=r+t.vin}};AK.Catalog.getLicencePlateDecoder=function(n,t,i,r){AK.System.alert("@Catalog.getLicencePlateDecoder2");t.licencePlate="";t.formSubmitted=!1;t.url=r;t.decode=function(){t.formSubmitted=!0;window.location=r+t.licencePlate}};AK.Catalog.initSwitchView=function(n,t,i,r){AK.System.alert("@Catalog.switchView");t.viewType=r;t.setViewType=function(r){r!==t.viewType&&(t.viewType=r,i.catalog.setSwitchViewType(r).then(function(){AK.System.alert("Set switchViewType succeed")},function(){AK.System.alert("Set switchViewType failed")}),n.$emit("CatalogSwitchView",r))}};AK.WheelConfigAlcar.init=function(n,t,i,r,u,f,e,o,s,h,c){AK.System.alert("@WheelConfigAlcar.init");t.listType=r;t.ownId=u;t.nonReversibleMessage=o;t.showStockDisponibilityModal=s=="true";t.groups=undefined;t.userPriceLoading=!1;t.elitDisponibilityLoading=!1;t.oeDeliveryEnabled=h=="true";t.quantityDiscountTooltipEnabled=c=="true";t.brands=null;t.brandSelected=null;t.types=null;t.typeSelected=null;t.typeDisabled=!0;t.models=null;t.modelSelected=null;t.modelDisabled=!0;t.abeLines=null;t.abeLineSelected=null;t.abeLineDisabled=!0;t.formSubmitted=!1;t.errorMessage="";t.loadBrands=function(){i.wheelConfigAlcar.getBrands().then(function(n){t.brands=n.data.data;t.brandSelected=t.brands[0];t.brandSelected.Code!=="0"&&t.loadTypes(t.brandSelected.Code)},function(){AK.System.alert("Error get brands")})};t.loadTypes=function(n){i.wheelConfigAlcar.getTypes(n).then(function(n){t.types=n.data.data;t.typeSelected=t.types[0];t.typeDisabled=!1;t.typeSelected.Code!=="0"&&t.loadModels(t.brandSelected.Code,t.typeSelected.Code)},function(){AK.System.alert("Error get types")})};t.updateABELines=function(n){t.abeLines=n;t.abeLineSelected=t.abeLines&&t.abeLines.length>0?t.abeLines[0]:{Code:"NULL",ABENr:"",ABENG:""};t.abeLineDisabled=t.modelSelected.Code!=="0"?!1:!0;t.modelSelected.Code!=="0"&&t.abeLineSelected.Code!=="0"&&t.loadWheelProducts()};t.loadModels=function(n,r){i.wheelConfigAlcar.getModels(n,r).then(function(n){t.models=n.data.data;t.modelSelected=t.models[0];t.modelDisabled=!1;t.updateABELines(t.modelSelected.ABELines)},function(){AK.System.alert("Error get models")})};t.loadWheelProducts=function(){n.akDataLoadingStringAdd("WheelConfigAlcarProductList");t.loadProducts(1)};t.loadProducts=function(r){var u=angular.element(document.getElementById("AlcarProductListPaging")).scope(),f=u.model.Size*(r-1);i.wheelConfigAlcar.getProducts(t.modelSelected.Code,t.abeLineSelected.ABENr,t.abeLineSelected.ABENG,f).then(function(i){var r=i.data.paging;u.set(r.Page,r.Size,r.Total,t.loadProducts);t.setProducts(i.data.data.Groups);n.$emit("ProductListLoaded",t.listType);n.akDataLoadingStringRemove("WheelConfigAlcarProductList")},function(){AK.System.alert("Error get products");n.akDataLoadingStringRemove("WheelConfigAlcarProductList")});t.wheelConfigAlcarForm.$setPristine()};t.brandChange=function(){t.brandSelected.Value==="0"?(t.cleanTypes(),t.cleanModels(),t.cleanABELines()):(t.loadTypes(t.brandSelected.Code),t.cleanModels(),t.cleanABELines())};t.typeChange=function(){t.typeSelected.Code==="0"?(t.cleanModels(),t.cleanABELines()):(t.loadModels(t.brandSelected.Code,t.typeSelected.Code),t.cleanABELines())};t.modelChange=function(){t.modelSelected.Code==="0"?t.cleanABELines():t.updateABELines(t.modelSelected.ABELines)};t.abeLineChange=function(){t.modelSelected.Code!=="0"&&t.abeLineSelected.Code!=="0"&&t.loadWheelProducts()};t.select=function(){t.formSubmitted=!0;t.wheelConfigAlcarForm.$invalid?AK.System.alert("Failed validation"):t.loadWheelProducts()};t.cleanTypes=function(){t.types=null;t.typeSelected=null;t.typeDisabled=!0};t.cleanModels=function(){t.models=null;t.modelSelected=null;t.modelDisabled=!0};t.cleanABELines=function(){t.abeLines=null;t.abeLineSelected=null;t.abeLineDisabled=!0};t.loadProductIds=[];t.loadOeProductIds=[];t.setProducts=function(n){var i,r,e,u;n!=null&&(angular.forEach(n,function(n){n.isPreview=!1;n.Product&&(n.Product.Description=f.trustAsHtml(n.Product.Description),n.Product.Disponibility.Text=f.trustAsHtml(n.Product.Disponibility.Text));n.Kitset&&(n.Kitset.Description=f.trustAsHtml(n.Kitset.Description),n.Kitset.Disponibility.Text=f.trustAsHtml(n.Kitset.Disponibility.Text))}),t.groups=n,AK.Common.loadDigitOnly(),AK.ProductList.RefreshTooltip2(),$(".productListContainer").removeClass("visibilityOff"),i=n.filter(function(n){return n.Product.LoadUserPrice==!0}).map(function(n){return n.Product.Id}),i=i.concat(n.filter(function(n){return n.Kitset&&n.Kitset.LoadUserPrice==!0}).map(function(n){return n.Kitset.Id})),r=n.filter(function(n){return n.Product.LoadHasOeDelivery==!0}).map(function(n){return n.Product.Id}),r=r.concat(n.filter(function(n){return n.Kitset&&n.Kitset.LoadHasOeDelivery==!0}).map(function(n){return n.Kitset.Id})),e=i&&i.length>0,u=[],i&&(u=u.concat(i)),r&&(u=u.concat(r)),t.loadProductIds=i,t.loadOeProductIds=r,t.loadPrices(u,e).then(function(){t.loadAttributes(t.loadProductIds);t.loadOeDelivery(t.loadOeProductIds);var i=n.filter(function(n){return n.Product.LoadElitDisponibility==!0}).map(function(n){return n.Product.Id});i=i.concat(n.filter(function(n){return n.Kitset&&n.Kitset.LoadElitDisponibility==!0}).map(function(n){return n.Kitset.Id}));t.loadElitDisponibility(i);t.loadElitHasVendorInfo(i)}),t.loadPriceInfoIds=n.filter(function(n){return n.Product.LoadUserPriceInfo==!0}).map(function(n){return n.Product.Id}),t.loadPriceInfoIds=t.loadPriceInfoIds.concat(n.filter(function(n){return n.Kitset&&n.Kitset.LoadUserPriceInfo==!0}).map(function(n){return n.Kitset.Id})),t.loadPriceInfo(t.loadPriceInfoIds).then(function(){t.loadPriceInfoIds!=null&&t.loadPriceInfoIds.length>0&&t.loadAttributes(t.loadPriceInfoIds)}),t.loadMarginInfoIds=n.filter(function(n){return n.Product.LoadUserMarginInfo==!0}).map(function(n){return n.Product.Id}),t.loadMarginInfoIds=t.loadMarginInfoIds.concat(n.filter(function(n){return n.Kitset&&n.Kitset.LoadUserMarginInfo==!0}).map(function(n){return n.Kitset.Id})),t.loadMarginInfo(t.loadMarginInfoIds).then(function(){t.loadMarginInfoIds!=null&&t.loadMarginInfoIds.length>0&&t.loadAttributes(t.loadMarginInfoIds)}))};t.loadPrices=function(n,r){return new Promise(function(u){n&&n.length>0?(t.userPriceLoading=!0,u(i.getProductUserPrice(n).then(function(n){n.data.Content&&r?t.groups.forEach(function(t){var r=AK.Common.altFind(n.data.Content,function(n){return n.ProductId==t.Product.Id}),i;r&&(t.Product.Price=r.Price,t.Product.PriceVat=r.PriceVat);i=AK.Common.altFind(n.data.Content,function(n){return t.Kitset&&n.ProductId==t.Kitset.Id});i&&(t.Kitset.Price=i.Price,t.Kitset.PriceVat=i.PriceVat)}):n.data.error&&AK.System.alert(n.data.error);t.userPriceLoading=!1},function(){t.userPriceLoading=!1}))):u()})};t.loadAttributes=function(n){if(n&&n.length>0){var r=n.filter(t.onlyUniqueCode);i.getProductListAttributes(r).then(function(n){n.data.attributes&&n.data.attributes.length>0&&(t.groups.forEach(function(t){var r=AK.Common.altFind(n.data.attributes,function(n){return n.ProductId==t.Product.Id}),i;r&&(t.Product.Attributes=r.Attributes);i=AK.Common.altFind(n.data.attributes,function(n){return t.Kitset&&n.ProductId==t.Kitset.Id});i&&(t.Kitset.Attributes=i.Attributes)}),AK.System.alert("ProductList attributes load hasdata success"))},function(){AK.System.alert("ProductList attributes load hasdata failed")})}};t.loadOeDelivery=function(n){if(t.oeDeliveryEnabled&&n&&n.length>0){var r=n.filter(t.onlyUniqueCode);i.elitOeDelivery.getHasData(r).then(function(n){n.data.items!=null&&n.data.items.length>0&&(t.groups.forEach(function(t){var r=AK.Common.altFind(n.data.items,function(n){return n.ProductId==t.Product.Id}),i;r&&(t.Product.HasOeDelivery=r.HasData===!0);i=AK.Common.altFind(n.data.items,function(n){return t.Kitset&&n.ProductId==t.Kitset.Id});i&&(t.Kitset.HasOeDelivery=i.HasData===!0)}),AK.System.alert("OeDelivery load hasdata success"))},function(){AK.System.alert("OeDelivery load hasdata failed")})}};t.productOeDeliveryClick=function(i,r){$("#ModalOeDelivery"+t.listType).modal("show");n.OEDeliveryProductId=r.Id;var u=angular.element(document.getElementById("ProductOeDeliveryControl"+t.listType)).scope();u.setData(r)};t.loadElitDisponibility=function(n){if(n&&n.length>0){t.elitDisponibilityLoading=!0;var r=n.filter(t.onlyUniqueCode);i.getProductElitDisponibility(r).then(function(n){n.data.items?t.groups.forEach(function(t){var r=AK.Common.altFind(n.data.items,function(n){return n.ProductId==t.Product.Id}),i;r&&(t.Product.Disponibility=r.Disponibility);i=AK.Common.altFind(n.data.items,function(n){return t.Kitset&&n.ProductId==t.Kitset.Id});i&&(t.Kitset.Disponibility=i.Disponibility)}):n.data.error&&AK.System.alert(n.data.error);t.elitDisponibilityLoading=!1},function(){t.elitDisponibilityLoading=!1})}};t.loadElitHasVendorInfo=function(n){if(n&&n.length>0){var r=n.filter(t.onlyUniqueCode);i.getProductElitHasVendorInfo(r).then(function(n){n.data.Content?t.groups.forEach(function(t){var r=AK.Common.altFind(n.data.Content,function(n){return n.ProductId==t.Product.Id}),i;r&&(t.Product.ElitHasVendorInfo=r.ElitHasVendorInfo);i=AK.Common.altFind(n.data.Content,function(n){return t.Kitset&&n.ProductId==t.Kitset.Id});i&&(t.Kitset.ElitHasVendorInfo=i.ElitHasVendorInfo)}):n.data.error&&AK.System.alert(n.data.error)},function(){})}};t.loadPriceInfo=function(n){return new Promise(function(r){n&&n.length>0?r(i.getProductUserPriceInfo(n).then(function(n){n.data.Content?t.groups.forEach(function(t){var r=AK.Common.altFind(n.data.Content,function(n){return n.ProductId==t.Product.Id}),i;r&&(t.Product.VPriceInfo=r.PriceInfo);i=AK.Common.altFind(n.data.Content,function(n){return t.Kitset&&n.ProductId==t.Kitset.Id});i&&(t.Kitset.VPriceInfo=i.PriceInfo)}):n.data.error&&AK.System.alert(n.data.error)},function(){})):r()})};t.loadMarginInfo=function(n){return new Promise(function(r){n&&n.length>0?r(i.getProductUserMarginInfo(n).then(function(n){n.data.Content?t.groups.forEach(function(t){var r=AK.Common.altFind(n.data.Content,function(n){return n.ProductId==t.Product.Id}),i;r&&(t.Product.MarginInfo=r.MarginInfo);i=AK.Common.altFind(n.data.Content,function(n){return t.Kitset&&n.ProductId==t.Kitset.Id});i&&(t.Kitset.MarginInfo=i.MarginInfo)}):n.data.error&&AK.System.alert(n.data.error)},function(){})):r()})};t.trustSrc=function(n){return f.trustAsResourceUrl(n)};t.loadBrands();t.productListCartAdd=function(i,r){if(r.NonReversible!==!0||window.confirm(t.nonReversibleMessage)){var u=angular.element(i.currentTarget).parent().parent(),f=$(u).find("input").val(),e=t.elitTimeAvailability2Enabled&&r.TimeAvailabilitySelected?r.TimeAvailabilitySelected.Storage:"",o=t.elitTimeAvailability2Enabled&&r.TimeAvailabilitySelected?r.TimeAvailabilitySelected.AvailableFrom:"",s=t.elitTimeAvailability2Enabled&&r.TimeAvailabilitySelected?r.TimeAvailabilitySelected.CashAndCarry:!1;n.$emit("CartAddProduct",r.Id,f,r.StepAmount,!1,"","",e,o,s)}};t.productStockDispClick=function(r,u){var s,h,o,e;n.AKStockDispProductId=u.Id;s=u.Amount;t.showStockDisponibilityModal==!0?(u.Amount=Number(s),h=$($(r.target).parentsUntil(".productListContainer").last()[0]).parent()[0],o=angular.element($(h).find(".ProductStockControl"+t.listType)[0]).scope(),o!=undefined&&o!=null&&o.setData(angular.copy(u),!0),$($(h).find(".ModalStockDisponibility"+t.listType)[0]).modal("show")):(e=$(r.target).parent(),i.getProductStockDisponibility(u.Id,s).success(function(n){$(e).attr("data-original-title",f.trustAsHtml(n));$(e).attr("data-html","true");$(e).children(".tooltip").remove();$(e).children().removeAttr("data-toggle");$(e).tooltip("show")}))};t.disponibilityAddProductCart=function(i){(t.disponibilitySelectedProduct.NonReversible!==!0||window.confirm(t.nonReversibleMessage))&&n.$emit("CartAddProduct",t.disponibilitySelectedProduct.Id,t.disponibilitySelectedProduct.Amount,t.disponibilitySelectedProduct.StepAmount,i,"","","","",!1)};t.getStorageStockDisponibility=function(n,r,u){AK.System.alert("@ProductList.getStorageStockDisponibility");var e=u.target;n.EventType!="Empty"&&i.getStorageStockDisponibility(r,n.Id).success(function(i){var r=f.trustAsHtml(i);n.EventType=="OpeningHours"?t.products.forEach(function(t){t.Storages.forEach(function(t){t.Id==n.Id&&t.EventType=="OpeningHours"&&(t.Tooltip=r,t.EventType="Empty")})}):n.EventType=="StockDisponibility"&&(n.Tooltip=r);$(e).attr("data-original-title",r);$(e).tooltip("hide");$(e).tooltip("show")})};t.onlyUniqueCode=function(n,t,i){return i.indexOf(n)===t}};AK.CompanyBriefInfo.init=function(n,t,i){AK.System.alert("@CompanyBriefInfo.init");t.data=null;t.loadData=function(){i.companyBriefInfo.getData().then(function(n){t.data=n.data;$("#CompanyBriefInfoContainer").removeClass("visibilityOff")},function(){AK.System.alert("Error get company brief info");$("#CompanyBriefInfoContainer").removeClass("visibilityOff")})};t.loadData()};AK.HaynesPro.init=function(n,t){AK.System.alert("@HaynesPro.init");n.variants=[];n.selectedVariantIndex=0;n.subjectGroups=[];n.loadVariants=function(){t.haynesPro.variants.getData().success(function(t){AK.System.alert("@HaynesPro.loadVariants");n.variants=t})};n.loadSubjects=function(){AK.System.alert("@HaynesPro.loadSubjects");t.haynesPro.subjects.getData().success(function(t){n.subjectGroups=t})};n.repairTime=[];n.getRepairTime=function(){AK.System.alert("@HaynesPro.getRepairTime");t.haynesPro.repairTime.getData().success(function(t){n.repairTime=t})};n.repairTimeTypes=[];n.getRepairTimeTypes=function(){AK.System.alert("@HaynesPro.getRepairTimeTypes");t.haynesPro.repairTime.getTypes().success(function(t){n.repairTimeTypes=t})};n.repairTimeNodes=[];n.getRepairTimeNodes=function(){AK.System.alert("@HaynesPro.getRepairTimeNodes");t.haynesPro.repairTime.getNodes().success(function(t){n.repairTimeNodes=t})}};AK.HaynesPro.Basket.init=function(n,t,i,r,u,f){AK.System.alert("@HaynesPro.Basket.init");t.catalogPath=r;t.basketId=u;t.repairTypeId=f;t.basket=undefined;t.loadItems=function(n,r){i.haynesPro.basket.getData(n,r).success(function(n){AK.System.alert("@HaynesPro.Basket.loadItems");t.basket=n})};t.loadItems(t.catalogPath,t.basketId);t.removeItem=function(n){AK.System.alert("@HaynesPro.Basket.removeItem");t.removeRepairTask(t.catalogPath,t.basketId,t.repairTypeId,n)};t.productItems=[];t.totalProducts=0;t.refreshProductView=function(){t.totalProducts=t.productItems.length;var n={Items:t.productItems,Paging:{Page:1,Size:100,Total:1}},i=angular.element(document.getElementById("productContainerHaynesProBasket").getElementsByClassName("productListContainer")[0]).scope();i.setHaynesProProducts(n,"HaynesProBasket",0,"")};t.allreadyInBasket=function(n){var i=!1;return t.productItems.forEach(function(t){t.Id===n&&(i=!0)}),i};t.addProducts=function(n){n.forEach(function(n){t.allreadyInBasket(n.Id)||t.productItems.push(n)});t.refreshProductView()};t.removeProduct=function(n){var i=[];t.productItems.forEach(function(t){t.Id!==n&&i.push(t)});t.productItems=i;t.refreshProductView()};t.addToReguralCart=function(){t.productItems.forEach(function(t){n.$emit("CartAddProduct",t.Id,t.Amount,t.StepAmount,!1,"","","","",!1)})}};AK.HaynesPro.RepairTimes.init=function(n,t,i,r,u,f){AK.System.alert("@HaynesPro.RepairTimes.init");n.isLoading=!1;n.infoTypes=[];n.mapInfoTypes={};n.emptyPrintDataMessage=f;n.loadInfoTypes=function(){n.isLoading=!0;t.haynesPro.repairTimes.getInfoTypes().success(function(t){AK.System.alert("@HaynesPro.RepairTimes.getInfoTypes");n.infoTypes=t;n.infoTypes.forEach(function(t){return n.mapInfoTypes[t.Id]=t});n.isLoading=!1}).error(function(){n.isLoading=!1})};n.catalogPath=i;n.basketId=r;n.repairTypeId=u;n.loadInfoTypes();n.basket;n.groups=[];n.setRepair=function(t){n.loadItems(t);item=n.findParent(t);var i=t.split(";"),r=i[i.length-1];item.Selected===!0?n.addRepairTask(n.catalogPath,n.basketId,n.repairTypeId,r):n.removeRepairTask(n.catalogPath,n.basketId,n.repairTypeId,r)};n.resetRepair=function(t,i,r){t!=undefined&&t.forEach(function(t){n.resetRepair(t.Items,i,r);var u=t.Path.split(";"),f=u[u.length-1];f==i&&(t.Opened=r,t.Selected=r)})};n.removeRepairTaskById=function(t){n.resetRepair(n.groups,t,!1);n.removeRepairTask(n.catalogPath,n.basketId,n.repairTypeId,t)};n.addRepairTask=function(i,r,u,f){n.isLoading=!0;t.haynesPro.basket.addItem(i,r,u,f).success(function(t){AK.System.alert("@HaynesPro.Basket.addItem");var i=angular.element(document.getElementById("HaynesProBasket")).scope();i.basket=t;n.resetRepair(n.groups,f,!0);n.isLoading=!1}).error(function(){n.isLoading=!1})};n.removeRepairTask=function(i,r,u,f){n.isLoading=!0;t.haynesPro.basket.removeItem(i,r,u,f).success(function(t){AK.System.alert("@HaynesPro.Basket.removeItem");var i=angular.element(document.getElementById("HaynesProBasket")).scope();i.basket=t;n.resetRepair(n.groups,f,!1);n.isLoading=!1}).error(function(){n.isLoading=!1})};n.loadItems=function(i){var f=i==undefined||i==="",u=!1,r=undefined,e=i.split(";").length==1,o;f?u=!0:(e&&(n.groups.forEach(function(n){return n.Opened=!1}),o=AK.Common.altFind(n.groups,function(n){return n.Path==i}),o.Opened=!0),r=n.findParent(i),u=r!=undefined&&r.Items==undefined);u===!0?(r!=undefined&&(r.Opened=!0,r.Selected=!0),n.isLoading=!0,t.haynesPro.repairTimes.getData(i).success(function(t){if(AK.System.alert("@HaynesPro.RepairTimes.loadItems"),f){n.groups=t.Items;var i=n.groups[0].Path;n.loadItems(i)}else n.setItems(t.Path,t.Items),r.Opened=!0;n.isLoading=!1}).error(function(){n.isLoading=!1})):r!=undefined&&e===!1&&(r.Opened=!r.Opened,r.Selected=r.Opened)};n.setItems=function(t,i){var r=n.findParent(t);r!=undefined&&(r.Items=i)};n.findParent=function(t){return n.populateIds(n.groups,t.split(";"),1)};n.populateIds=function(t,i,r){var f=i.slice(0,r).join(";"),u=AK.Common.altFind(t,function(n){return n.Path==f});return i.length==r?u:n.populateIds(u.Items,i,r+1)};n.print=function(){n.isLoading=!0;var i=n.getPrintData();if(i.SubGroups==undefined||i.SubGroups.length==0){AK.System.ShowMessage(n.emptyPrintDataMessage);return}t.haynesPro.repairTimes.savePrintData(i).success(function(t){AK.System.alert("@HaynesPro.RepairTimes.savedata");t===!0&&$("#printButton")[0].click();n.isLoading=!1}).error(function(){n.isLoading=!1})};n.getPrintData=function(){var t=AK.Common.altFind(n.groups,function(n){return n.Opened===!0}),i=[];return angular.forEach(t.Items,function(n){var t=[],r;angular.forEach(n.Items,function(n){var i,r;n.Selected===!0&&(i=[],angular.forEach(n.Items,function(n){if(n.Selected===!0){var t={Text:n.Text,Time:n.Time};i.push(t)}}),r={Text:n.Text,Time:n.Time,OeCode:n.OeCode,Infos:i},t.push(r))});t.length>0&&(r={Text:n.Text,Time:n.Time,Repairs:t},i.push(r))}),{Text:t.Text,Time:t.Time,SubGroups:i}}};AK.HaynesPro.Adjustment.init=function(n,t,i,r){AK.System.alert("@HaynesPro.Adjustment.init");n.isLoading=!1;n.root=undefined;n.catalogPath=i;n.generalArticleEnabled=r==="true";n.loadItems=function(i){n.isLoading=!0;t.haynesPro.adjustment.getData(i).success(function(t){if(AK.System.alert("@HaynesPro.Adjustment.loadItems"),n.root=t,n.isLoading=!1,n.generalArticleEnabled){var i=[],r=0;n.root.Items.forEach(function(n){n.Items&&n.Items.forEach(function(n){n.Items&&n.Items.forEach(function(n){n.GeneralArticles&&n.GeneralArticles.forEach(function(n){n.ownId=r++;i.push(n.Id)})})})});i.length>0&&n.loadAllProducts(i.join(";"))}}).error(function(){n.isLoading=!1})};n.isLoadedProducts=!1;n.listProducts=null;n.haynesProModule="HaynesProAdjustment";n.dictGenartVisibility={};n.addSingleHaynesProBasket=function(t){var i=[];i.push(t);n.addMultiHaynesProBasket(i)};n.addMultiHaynesProBasket=function(n){if(document.getElementById("HaynesProBasket")){var t=angular.element(document.getElementById("HaynesProBasket").getElementsByClassName("haynesProBasketContainer")[0]).scope();t.addProducts(n)}};n.loadAllProducts=function(i){t.haynesPro.generalArticle.getListProducts(n.catalogPath,i).then(function(t){AK.System.alert("@HaynesPro.Adjustment.loadProducts");n.listProducts=t.data.data;var i=[];n.listProducts.forEach(function(t){var r,u,f;n.dictGenartVisibility[t.GenartId]=!1;t.Items.length>0&&(n.dictGenartVisibility[t.GenartId]=!0,r=[],r.push(angular.copy(t.Items[0])),u={Items:r,Paging:{Page:1,Size:100,Total:1}},f={Items:t.Items,Paging:{Page:1,Size:100,Total:1}},document.getElementsByName("productContainerGenartId"+t.GenartId).forEach(function(i){var r=i.id.split("-")[1],e=t.GenartId+"-"+r,o="ModalSelectProduct"+e,h=angular.element(i.getElementsByClassName("productListContainer")[0]).scope(),s;h.setHaynesProProducts(u,n.haynesProModule,t.GenartId,r,o);s=angular.element(document.getElementById("productContainerModalGenartId"+e).getElementsByClassName("productListContainer")[0]).scope();s.setHaynesProProducts(f,n.haynesProModule,t.GenartId,r,o)}),i.push(angular.copy(t.Items[0])))});n.addMultiHaynesProBasket(i);n.isLoadedProducts=!0},function(){n.isLoading=!1})};n.setSelectedProduct=function(t,i,r){n.listProducts.forEach(function(u){var f,e;if(u.Items.length>0&&u.GenartId===i){f=[];e=null;u.Items.forEach(function(n){n.Id===t&&(f.push(angular.copy(n)),e=angular.copy(n))});var s={Items:f,Paging:{Page:1,Size:100,Total:1}},o=i+"-"+r,h=angular.element(document.getElementById("productContainerGenartId"+o).getElementsByClassName("productListContainer")[0]).scope(),c="ModalSelectProduct"+o;h.setHaynesProProducts(s,n.haynesProModule,u.GenartId,r,c);n.addSingleHaynesProBasket(e)}})};n.selectHaynesProProduct=function(t,i,r,u){n.setSelectedProduct(t,i,r);var f="#"+u;$(f).modal("hide")};n.loadItems(n.catalogPath);n.print=function(){var n=new jsPDF;n.fromHTML($("#printContainer")[0],10,10,{},function(){n.save("Lubricants.pdf");return});return}};AK.HaynesPro.Lubricant.init=function(n,t,i,r){AK.System.alert("@HaynesPro.Lubricant.init");n.isLoading=!1;n.lubricants=undefined;n.catalogPath=i;n.generalArticleEnabled=r==="true";n.loadItems=function(i){n.isLoading=!0;t.haynesPro.lubricant.getData(i).success(function(t){if(AK.System.alert("@HaynesPro.Lubricant.loadItems"),n.lubricants=t,n.isLoading=!1,n.generalArticleEnabled){var i=[],r=0;n.lubricants.forEach(function(n){n.GeneralArticles&&n.GeneralArticles.forEach(function(n){n.ownId=r++;i.push(n.Id)})});i.length>0&&n.loadAllProducts(i.join(";"))}}).error(function(){n.isLoading=!1})};n.loadProducts=function(i,r){r.Opened=!0;t.haynesPro.generalArticle.getProducts(n.catalogPath,r.Id).success(function(n){AK.System.alert("@HaynesPro.Lubricant.loadProducts");var t=angular.element(document.getElementById("productContainer"+i).getElementsByClassName("productListContainer")[0]).scope(),r={Items:n,Paging:{Page:1,Size:100,Total:1}};t.setProducts(r,!1)}).error(function(){n.isLoading=!1})};n.isLoadedProducts=!1;n.listProducts=null;n.haynesProModule="HaynesProLubricant";n.dictGenartVisibility={};n.addSingleHaynesProBasket=function(t){var i=[];i.push(t);n.addMultiHaynesProBasket(i)};n.addMultiHaynesProBasket=function(n){if(document.getElementById("HaynesProBasket")){var t=angular.element(document.getElementById("HaynesProBasket").getElementsByClassName("haynesProBasketContainer")[0]).scope();t.addProducts(n)}};n.loadAllProducts=function(i){t.haynesPro.generalArticle.getListProducts(n.catalogPath,i).then(function(t){AK.System.alert("@HaynesPro.Adjustment.loadProducts");n.listProducts=t.data.data;var i=[];n.listProducts.forEach(function(t){var r,u,f;n.dictGenartVisibility[t.GenartId]=!1;t.Items.length>0&&(n.dictGenartVisibility[t.GenartId]=!0,r=[],r.push(angular.copy(t.Items[0])),u={Items:r,Paging:{Page:1,Size:100,Total:1}},f={Items:t.Items,Paging:{Page:1,Size:100,Total:1}},document.getElementsByName("productContainerGenartId"+t.GenartId).forEach(function(i){var r=i.id.split("-")[1],e=t.GenartId+"-"+r,o="ModalSelectProduct"+e,h=angular.element(i.getElementsByClassName("productListContainer")[0]).scope(),s;h.setHaynesProProducts(u,n.haynesProModule,t.GenartId,r,o);s=angular.element(document.getElementById("productContainerModalGenartId"+e).getElementsByClassName("productListContainer")[0]).scope();s.setHaynesProProducts(f,n.haynesProModule,t.GenartId,r,o)}),i.push(angular.copy(t.Items[0])))});n.addMultiHaynesProBasket(i);n.isLoadedProducts=!0},function(){n.isLoading=!1})};n.setSelectedProduct=function(t,i,r){n.listProducts.forEach(function(u){var f,e;if(u.Items.length>0&&u.GenartId===i){f=[];e=null;u.Items.forEach(function(n){n.Id===t&&(f.push(angular.copy(n)),e=angular.copy(n))});var s={Items:f,Paging:{Page:1,Size:100,Total:1}},o=i+"-"+r,h=angular.element(document.getElementById("productContainerGenartId"+o).getElementsByClassName("productListContainer")[0]).scope(),c="ModalSelectProduct"+o;h.setHaynesProProducts(s,n.haynesProModule,u.GenartId,r,c);n.addSingleHaynesProBasket(e)}})};n.selectHaynesProProduct=function(t,i,r,u){n.setSelectedProduct(t,i,r);var f="#"+u;$(f).modal("hide")};n.loadItems(n.catalogPath);n.print=function(){return}};AK.HaynesPro.Stories.init=function(n,t,i){AK.System.alert("@HaynesPro.Stories.init");n.isLoading=!1;n.stories=undefined;n.catalogPath=i;n.openedStoryId=undefined;n.loadData=function(i){n.isLoading=!0;t.haynesPro.stories.getData(i).success(function(t){if(AK.System.alert("@HaynesPro.Stories.loadItems"),n.stories=t,n.isLoading=!1,n.stories!=null&&n.stories.length>0){var i=n.stories[0];i!=null&&(i.Opened=!0,n.openedStoryId=i.Id)}}).error(function(){n.isLoading=!1})};n.loadData(n.catalogPath);n.showStory=function(t){n.openedStoryId=t;n.stories.forEach(function(n){n.Opened=n.Id==t})}};AK.HaynesPro.TechnicalDrawing.init=function(n,t,i,r){AK.System.alert("@HaynesPro.TechnicalDrawing.init");n.drawings=undefined;n.catalogPath=i;n.generalArticleEnabled=r==="true";n.isLoading=!1;n.loadItems=function(i){n.isLoading=!0;t.haynesPro.technicalDrawing.getData(i).success(function(t){if(AK.System.alert("@HaynesPro.TechnicalDrawing.loadItems"),n.drawings=t,n.isLoading=!1,n.generalArticleEnabled){var i=[],r=0;n.drawings.forEach(function(n){n.Items&&n.Items.forEach(function(n){n.GeneralArticles&&n.GeneralArticles.forEach(function(n){n.ownId=r++;i.push(n.Id)})})});i.length>0&&n.loadAllProducts(i.join(";"))}}).error(function(){n.isLoading=!1})};n.isLoadedProducts=!1;n.listProducts=null;n.haynesProModule="HaynesProTechnicalDrawing";n.dictGenartVisibility={};n.addSingleHaynesProBasket=function(t){var i=[];i.push(t);n.addMultiHaynesProBasket(i)};n.addMultiHaynesProBasket=function(n){if(document.getElementById("HaynesProBasket")){var t=angular.element(document.getElementById("HaynesProBasket").getElementsByClassName("haynesProBasketContainer")[0]).scope();t.addProducts(n)}};n.loadAllProducts=function(i){t.haynesPro.generalArticle.getListProducts(n.catalogPath,i).then(function(t){AK.System.alert("@HaynesPro.Adjustment.loadProducts");n.listProducts=t.data.data;var i=[];n.listProducts.forEach(function(t){var r,u,f;n.dictGenartVisibility[t.GenartId]=!1;t.Items.length>0&&(n.dictGenartVisibility[t.GenartId]=!0,r=[],r.push(angular.copy(t.Items[0])),u={Items:r,Paging:{Page:1,Size:100,Total:1}},f={Items:t.Items,Paging:{Page:1,Size:100,Total:1}},document.getElementsByName("productContainerGenartId"+t.GenartId).forEach(function(i){var r=i.id.split("-")[1],e=t.GenartId+"-"+r,o="ModalSelectProduct"+e,h=angular.element(i.getElementsByClassName("productListContainer")[0]).scope(),s;h.setHaynesProProducts(u,n.haynesProModule,t.GenartId,r,o);s=angular.element(document.getElementById("productContainerModalGenartId"+e).getElementsByClassName("productListContainer")[0]).scope();s.setHaynesProProducts(f,n.haynesProModule,t.GenartId,r,o)}),i.push(angular.copy(t.Items[0])))});n.addMultiHaynesProBasket(i);n.isLoadedProducts=!0},function(){n.isLoading=!1})};n.setSelectedProduct=function(t,i,r){n.listProducts.forEach(function(u){var f,e;if(u.Items.length>0&&u.GenartId===i){f=[];e=null;u.Items.forEach(function(n){n.Id===t&&(f.push(angular.copy(n)),e=angular.copy(n))});var s={Items:f,Paging:{Page:1,Size:100,Total:1}},o=i+"-"+r,h=angular.element(document.getElementById("productContainerGenartId"+o).getElementsByClassName("productListContainer")[0]).scope(),c="ModalSelectProduct"+o;h.setHaynesProProducts(s,n.haynesProModule,u.GenartId,r,c);n.addSingleHaynesProBasket(e)}})};n.selectHaynesProProduct=function(t,i,r,u){n.setSelectedProduct(t,i,r);var f="#"+u;$(f).modal("hide")};n.loadItems(n.catalogPath)};AK.HaynesPro.Maintenance.init=function(n,t,i,r){AK.System.alert("@HaynesPro.Maintenance.init");n.isLoading=!1;n.periods=undefined;n.catalogPath=i;n.generalArticleEnabled=r==="true";n.standardTime="";n.additionalTime="";n.totalTime="";n.customer={Name:"",Address:"",PostalCode:"",LicencePlate:"",City:"",Mileage:"",Note:""};n.loadPeriods=function(i){n.isLoading=!0;t.haynesPro.maintenance.getData(i).success(function(t){AK.System.alert("@HaynesPro.Maintenance.loadPeriods");n.periods=t;n.loadItems(n.periods[0].Id);n.isLoading=!1}).error(function(){n.isLoading=!1})};n.loadPeriods(n.catalogPath);n.getPeriod=function(t){return t==undefined?AK.Common.altFind(n.periods,function(n){return n.Opened===!0}):AK.Common.altFind(n.periods,function(n){return n.Id==t})};n.isLoadedProducts=!1;n.listProducts=null;n.haynesProModule="HaynesProMaintenance";n.dictGenartVisibility={};n.addSingleHaynesProBasket=function(t){var i=[];i.push(t);n.addMultiHaynesProBasket(i)};n.addMultiHaynesProBasket=function(n){if(document.getElementById("HaynesProBasket")){var t=angular.element(document.getElementById("HaynesProBasket").getElementsByClassName("haynesProBasketContainer")[0]).scope();t.addProducts(n)}};n.loadAllProducts=function(i){t.haynesPro.generalArticle.getListProducts(n.catalogPath,i).then(function(t){AK.System.alert("@HaynesPro.Adjustment.loadProducts");n.listProducts=t.data.data;var i=[];n.listProducts.forEach(function(t){var r,u,f;n.dictGenartVisibility[t.GenartId]=!1;t.Items.length>0&&(n.dictGenartVisibility[t.GenartId]=!0,r=[],r.push(angular.copy(t.Items[0])),u={Items:r,Paging:{Page:1,Size:100,Total:1}},f={Items:t.Items,Paging:{Page:1,Size:100,Total:1}},document.getElementsByName("productContainerGenartId"+t.GenartId).forEach(function(i){var r=i.id.split("-")[1],e=t.GenartId+"-"+r,o="ModalSelectProduct"+e,h=angular.element(i.getElementsByClassName("productListContainer")[0]).scope(),s;h.setHaynesProProducts(u,n.haynesProModule,t.GenartId,r,o);s=angular.element(document.getElementById("productContainerModalGenartId"+e).getElementsByClassName("productListContainer")[0]).scope();s.setHaynesProProducts(f,n.haynesProModule,t.GenartId,r,o)}),i.push(angular.copy(t.Items[0])))});n.addMultiHaynesProBasket(i);n.isLoadedProducts=!0},function(){n.isLoading=!1})};n.setSelectedProduct=function(t,i,r){n.listProducts.forEach(function(u){var f,e;if(u.Items.length>0&&u.GenartId===i){f=[];e=null;u.Items.forEach(function(n){n.Id===t&&(f.push(angular.copy(n)),e=angular.copy(n))});var s={Items:f,Paging:{Page:1,Size:100,Total:1}},o=i+"-"+r,h=angular.element(document.getElementById("productContainerGenartId"+o).getElementsByClassName("productListContainer")[0]).scope(),c="ModalSelectProduct"+o;h.setHaynesProProducts(s,n.haynesProModule,u.GenartId,r,c);n.addSingleHaynesProBasket(e)}})};n.selectHaynesProProduct=function(t,i,r,u){n.setSelectedProduct(t,i,r);var f="#"+u;$(f).modal("hide")};n.loadItems=function(i){var r=n.getPeriod(i);r!=undefined&&(n.periods.forEach(function(n){return n.Opened=!1}),r.Opened=!0,r.Items==undefined&&(n.isLoading=!0,t.haynesPro.maintenance.getItems(n.catalogPath,i).success(function(t){if(AK.System.alert("@HaynesPro.Maintenance.loadItems"),r.Items=t,n.isLoading=!1,n.recalcTime(r),n.generalArticleEnabled){var i=[],u=0;r.Items.Items.forEach(function(n){n.Items&&n.Items.forEach(function(n){n.GeneralArticles&&n.GeneralArticles.forEach(function(n){n.ownId=u++;i.push(n.Id)})})});i.length>0&&n.loadAllProducts(i.join(";"))}}).error(function(){n.isLoading=!1})))};n.recalcTime=function(t){(n.standardTime=0,n.additionalTime=0,n.totalTime=0,t!=undefined)&&(t.Times&&t.Times.forEach(function(t){t!=undefined&&t.Visible===!0&&(n.standardTime+=t.Value)}),t.Items&&t.Items.Items.forEach(function(t){t.Items&&t.Items.forEach(function(t){t.Times&&t.Times.forEach(function(t){t!=undefined&&t.Visible===!0&&t.Selected===!0&&(n.additionalTime+=t.Value)});(t.IncludeByDefault===!0||n.hasTimeSelected(t))&&t.FollowUpRepairs&&t.FollowUpRepairs.forEach(function(t){t!=undefined&&t.Selected===!0&&(n.additionalTime+=t.Value)})})}),n.totalTime=n.standardTime+n.additionalTime)};n.getTimeCode=function(n){if(n.Times==undefined)return"";var t=AK.Common.altFind(n.Times,function(n){return n.Selected==!0});return t==undefined?"":t.Code};n.changeAdditionalTime=function(t,i,r){r&&(i.Visible=i.Selected);angular.forEach(t.Items.Items,function(n){angular.forEach(n.Items,function(n){angular.forEach(n.Times,function(n){n!=null&&n.Code==i.Code&&(n.Selected=i.Selected,r&&(n.Visible=i.Selected))})})});n.recalcTime(t)};n.hasTimeSelected=function(n){if(n==undefined)return!1;var t=!1;return angular.forEach(n.Times,function(n){n.Selected==!0&&(t=!0)}),t};n.hasTimeVisible=function(n){var t=!1;return angular.forEach(n.Times,function(n){n.Visible==!0&&(t=!0)}),t};n.taskIsVisible=function(t){var i=t.Times!=null&&t.Times.length>0;return!i||n.hasTimeVisible(t)};n.changeFollowUp=function(){n.recalcTime(n.getPeriod(undefined))};n.showPrintModal=function(){$("#MaintenanceCustomerModal").modal("show")};n.print=function(){n.isLoading=!0;var i=n.getPrintData();t.haynesPro.maintenance.savePrintData(n.customer,i).success(function(t){AK.System.alert("@HaynesPro.Maintenance.savedata");t===!0&&($("#printButton")[0].click(),$("#MaintenanceCustomerModal").modal("hide"));n.isLoading=!1}).error(function(){n.isLoading=!1})};n.getPrintData=function(){var t=n.getPeriod(undefined),i=[];return angular.forEach(t.Items.Items,function(t){var r=[],u;angular.forEach(t.Items,function(t){var i,u,f;(t.IncludeByDefault===!0||n.taskIsVisible(t))&&(i=[],t.FollowUpRepairs&&t.FollowUpRepairs.length>0&&angular.forEach(t.FollowUpRepairs,function(n){if(n&&n.Selected===!0){var t={Text:n.Text,Done:n.Done};i.push(t)}}),u=n.getTimeCode(t),f={Name:t.Name,Done:t.Done,Code:u,FollowUps:i},r.push(f))});u={Name:t.Name,Tasks:r};i.push(u)}),{Name:t.Name,Code:t.Code,Groups:i}}};AK.ProductList.getProductList=function(n,t,i,r,u,f,e,o,s,h,c,l,a,v,y){AK.System.alert("@ProductList.getProductList");t.trackInfoEnabled=y==="true";t.listType=r;t.ownId=u;t.nonReversibleMessage=o;t.showStockDisponibilityModal=s==="true";t.products=undefined;t.paging={Page:e,Size:5,Total:1};t.containerVisible=!0;t.titleVisible=!0;t.loadDataSelf=h==="true";t.userPriceLoading=!1;t.disponibilityLoading=!1;t.elitDisponibilityLoading=!1;t.elitCarDisponibilityLoading=!1;t.oeDeliveryEnabled=c==="true";t.quantityDiscountTooltipEnabled=l==="true";t.elitTimeAvailability2Enabled=a==="true";t.loadDisponibilityEnabled=v==="true";t.trackInfoProductLoaded=function(i){if(t.trackInfoEnabled){var r=[],u=1;i.forEach(function(n){var t=new AK.ProductList.TrackProduct;t.Id=parseInt(n.Id);t.Code=n.Code;t.Text=n.Text;t.Position=u++;t.PrimaryStock=n.Storages[0].Stock;t.CentralStock=n.Storages.length>1?n.Storages[1].Stock:n.Storages[0].Stock;t.CentralDelayStock=0;t.OtherStock=0;t.AddToCartTime="";t.AddToCartQuantity=0;r.push(t)});n.$emit("ProductListTrackInfoSetProducts",t.listType,r,t.paging.Page)}};t.setPriceTooltipInfo=function(){t.products&&t.products.forEach(function(n){t.setProductPriceTooltipInfo(n)})};t.setProductPriceTooltipInfo=function(n){n.PriceTooltipInfo="";n.MPriceInfo&&n.MPriceInfo.length>0&&(n.PriceTooltipInfo=n.MPriceInfo);n.VPriceInfo&&n.VPriceInfo.length>0&&(n.PriceTooltipInfo.length>0&&(n.PriceTooltipInfo+="<br />"),n.PriceTooltipInfo+=n.VPriceInfo);n.MarginInfo&&n.MarginInfo.length>0&&(n.PriceTooltipInfo.length>0&&(n.PriceTooltipInfo+="<br />"),n.PriceTooltipInfo+=n.MarginInfo)};t.productListCartAdd=function(i,r){if(r.NonReversible!==!0||window.confirm(t.nonReversibleMessage)){var f=angular.element(i.currentTarget).parent().parent(),u=$(f).find("input").val(),e=t.elitTimeAvailability2Enabled&&r.TimeAvailabilitySelected?r.TimeAvailabilitySelected.Storage:"",o=t.elitTimeAvailability2Enabled&&r.TimeAvailabilitySelected?r.TimeAvailabilitySelected.AvailableFrom:"",s=t.elitTimeAvailability2Enabled&&r.TimeAvailabilitySelected?r.TimeAvailabilitySelected.CashAndCarry:!1;n.$emit("CartAddProduct",r.Id,u,r.StepAmount,!1,"","",e,o,s);n.$emit("ProductListTrackInfoCartAddProduct",r.Id,u,t.listType)}};t.productAttributesCss=function(n){var t="";return angular.forEach(n.Attributes,function(n){t+=" "+n.Css}),t};t.ediProductIsExpressOrderable=!1;n.$on("EdiProductExpressLoaded",function(i,r,u){n.AKStockDispProductId==r&&(t.ediProductIsExpressOrderable=u)});t.productStockDispClick=function(r,u){var s,h,o,e;n.AKStockDispProductId=u.Id;s=u.Amount;t.showStockDisponibilityModal==!0?(u.Amount=Number(s),h=$($(r.target).parentsUntil(".productListContainer").last()[0]).parent()[0],o=angular.element($(h).find(".ProductStockControl"+t.listType)[0]).scope(),o!=undefined&&o!=null&&o.setData(angular.copy(u),!0),$($(h).find(".ModalStockDisponibility"+t.listType)[0]).modal("show")):(e=$(r.target).parent(),i.getProductStockDisponibility(u.Id,s).success(function(n){$(e).attr("data-original-title",f.trustAsHtml(n));$(e).attr("data-html","true");$(e).children(".tooltip").remove();$(e).children().removeAttr("data-toggle");$(e).tooltip("show")}))};t.disponibilityAddProductCart=function(i){(t.disponibilitySelectedProduct.NonReversible!==!0||window.confirm(t.nonReversibleMessage))&&n.$emit("CartAddProduct",t.disponibilitySelectedProduct.Id,t.disponibilitySelectedProduct.Amount,t.disponibilitySelectedProduct.StepAmount,i,"","","","",!1)};t.getStorageStockDisponibility=function(n,r,u){AK.System.alert("@ProductList.getStorageStockDisponibility");var e=u.target;n.EventType!="Empty"&&i.getStorageStockDisponibility(r,n.Id).success(function(i){var r=f.trustAsHtml(i.Text);n.EventType=="OpeningHours"?t.products.forEach(function(t){t.Storages.forEach(function(t){t.Id==n.Id&&t.EventType=="OpeningHours"&&(t.Tooltip=r,t.EventType="Empty")})}):n.EventType=="StockDisponibility"&&(n.Tooltip=r);$(e).attr("data-original-title",r);$(e).tooltip("hide");$(e).tooltip("show")})};t.processECommerce=function(n,t){if(t!=null&&t!=undefined&&!(t.length<=0)&&n!=null&&n!=undefined){var r=document.getElementsByTagName("head")[0],i=document.createElement("script");i.type="text/javascript";i.innerHTML="window.dataLayer = window.dataLayer || [];dataLayer.push({'ecomm_prodid': "+JSON.stringify(n.ProdId)+",'ecomm_pagetype': '"+n.PageType+"','event': 'ecommLoad'});(function (w, d, s, l, i) {w[l] = w[l] || []; w[l].push({'gtm.start':new Date().getTime(), event: 'gtm.js'}); var f = d.getElementsByTagName(s)[0],j = d.createElement(s), dl = l != 'dataLayer' ? '&l=' + l : ''; j.async = true; j.src ='https://www.googletagmanager.com/gtm.js?id=' + i + dl; f.parentNode.insertBefore(j, f);console.log('ECommerce productlist');})(window, document, 'script', 'dataLayer', '"+t+"');";r.appendChild(i)}};t.loadPrices=function(n,r){return new Promise(function(u){n!=undefined&&n.length>0?(t.userPriceLoading=!0,u(i.getProductUserPrice(n).then(function(n){n.data.Content!=undefined&&r?t.products.forEach(function(t){var i=AK.Common.altFind(n.data.Content,function(n){return n.ProductId==t.Id});i!=undefined&&(t.Price=i.Price,t.PriceVat=i.PriceVat)}):n.data.error!=undefined&&AK.System.alert(n.data.error);t.userPriceLoading=!1},function(){t.userPriceLoading=!1}))):u()})};t.loadPriceInfo=function(n){return new Promise(function(r){n!=undefined&&n.length>0?r(i.getProductUserPriceInfo(n).then(function(n){n.data.Content!=undefined?(t.products.forEach(function(t){var i=AK.Common.altFind(n.data.Content,function(n){return n.ProductId==t.Id});i!=undefined&&(t.VPriceInfo=i.PriceInfo)}),t.setPriceTooltipInfo()):n.data.error!=undefined&&AK.System.alert(n.data.error)},function(){})):r()})};t.loadMarginInfo=function(n){return new Promise(function(r){n!=undefined&&n.length>0?r(i.getProductUserMarginInfo(n).then(function(n){n.data.Content!=undefined?(t.products.forEach(function(t){var i=AK.Common.altFind(n.data.Content,function(n){return n.ProductId==t.Id});i!=undefined&&(t.MarginInfo=i.MarginInfo)}),t.setPriceTooltipInfo()):n.data.error!=undefined&&AK.System.alert(n.data.error)},function(){})):r()})};t.loadDisponibility=function(n){n!=undefined&&n.length>0&&(t.disponibilityLoading=!0,i.getProductsDisponibility(n).then(function(n){n.data.items!=undefined?t.products.forEach(function(t){var i=AK.Common.altFind(n.data.items,function(n){return n.ProductId==t.Id});i!=undefined&&(t.Disponibility=i.Disponibility)}):n.data.error!=undefined&&AK.System.alert(n.data.error);t.disponibilityLoading=!1},function(){t.disponibilityLoading=!1}))};t.loadElitDisponibility=function(n){n!=undefined&&n.length>0&&(t.elitDisponibilityLoading=!0,i.getProductElitDisponibility(n).then(function(n){n.data.items!=undefined?t.products.forEach(function(t){var i=AK.Common.altFind(n.data.items,function(n){return n.ProductId==t.Id});i!=undefined&&(t.Disponibility=i.Disponibility)}):n.data.error!=undefined&&AK.System.alert(n.data.error);t.elitDisponibilityLoading=!1},function(){t.elitDisponibilityLoading=!1}))};t.loadElitTimeAvailability=function(n){t.elitTimeAvailability2Enabled==!0&&n!=undefined&&n.length>0&&i.getProductElitDisponibility2(n).then(function(n){n.data.items!=undefined?(t.products.forEach(function(t){var i=AK.Common.altFind(n.data.items,function(n){return n.ProductId==t.Id});i!=undefined&&(t.TimeAvailabilities=i.TimeAvailabilities)}),t.setTimeAvailabilityInfo()):n.data.error!=undefined&&AK.System.alert(n.data.error)},function(){})};t.loadElitCarDisponibility=function(n){n!=undefined&&n.length>0&&(t.elitCarDisponibilityLoading=!0,i.getProductElitCarDisponibility(n).then(function(n){n.data.items!=undefined?t.products.forEach(function(t){var i=AK.Common.altFind(n.data.items,function(n){return n.ProductId==t.Id});i!=undefined&&(t.Disponibility=i.Disponibility)}):n.data.error!=undefined&&AK.System.alert(n.data.error);t.elitCarDisponibilityLoading=!1},function(){t.elitCarDisponibilityLoading=!1}))};t.loadElitHasVendorInfo=function(n){n!=undefined&&n.length>0&&i.getProductElitHasVendorInfo(n).then(function(n){n.data.Content!=undefined?t.products.forEach(function(t){var i=AK.Common.altFind(n.data.Content,function(n){return n.ProductId==t.Id});i!=undefined&&(t.ElitHasVendorInfo=i.ElitHasVendorInfo)}):n.data.error!=undefined&&AK.System.alert(n.data.error)},function(){})};t.loadAttributes=function(n){n!=undefined&&n.length>0&&i.getProductListAttributes(n).then(function(n){n.data.attributes!=undefined&&n.data.attributes.length>0&&(t.products.forEach(function(t){var i=AK.Common.altFind(n.data.attributes,function(n){return n.ProductId==t.Id});i!=undefined&&(t.Attributes=i.Attributes)}),AK.System.alert("ProductList attributes load hasdata success"))},function(){AK.System.alert("ProductList attributes load hasdata failed")})};t.isOeDeliveryLoaded=!t.oeDeliveryEnabled;t.isOeDeliveryLoading=function(n){return n.LoadHasOeDelivery&&!t.isOeDeliveryLoaded};t.loadOeDelivery=function(n){t.oeDeliveryEnabled&&n!=undefined&&n.length>0?i.elitOeDelivery.getHasData(n).then(function(n){n.data.items!=null&&n.data.items.length>0&&(t.products.forEach(function(t){var i=AK.Common.altFind(n.data.items,function(n){return n.ProductId==t.Id});i!=undefined&&(t.HasOeDelivery=i.HasData===!0)}),AK.System.alert("OeDelivery load hasdata success"));t.isOeDeliveryLoaded=!0},function(){AK.System.alert("OeDelivery load hasdata failed");t.isOeDeliveryLoaded=!0}):t.isOeDeliveryLoaded=!0};t.productOeDeliveryClick=function(i,r){$("#ModalOeDelivery"+t.listType).modal("show");n.OEDeliveryProductId=r.Id;var u=angular.element(document.getElementById("ProductOeDeliveryControl"+t.listType)).scope();u.setData(r)};t.loadProducts=function(r,u,f){n.$emit("ProductListRestrictionApplied",!1);t.loadDataSelf&&(n.akDataLoadingStringAdd("ProductList"),i.getProductList(r,u,f).then(function(i){t.setProducts(i.data,!1);n.$emit("ProductListLoaded",t.listType);n.$emit("ProductListRestrictionApplied",i.data.RestrictionApplied);t.processECommerce(i.data.ECommerce,i.data.GTMCode);n.akDataLoadingStringRemove("ProductList")},function(){AK.System.alert("Get product list failed");n.akDataLoadingStringRemove("ProductList")}))};t.loadProducts(r,e,u);t.initialize=function(){AK.Common.loadDigitOnly();t.setTimeAvailabilityInfo();AK.ProductList.RefreshTooltip2();(t.listType=="Product"||t.listType=="ProductPrefered"||t.listType=="ProductOriginal")&&(t.containerVisible=t.products.length>0,n.productListVisibility[t.listType]=t.products!=undefined&&t.products!=null&&t.products.length>0,n.$emit("ProductListReloaded",t.listType,t.paging.Page));$(".productListContainer").removeClass("visibilityOff")};(t.listType=="ProductPrefered"||t.listType=="ProductOriginal"||t.listType=="Product")&&n.$on("ProductListReloaded",function(){t.listType=="Product"&&n.$emit("ProductListRefreshVisibility",t.listType,t.paging.Page)});(t.listType=="ProductPrefered"||t.listType=="ProductOriginal"||t.listType=="Product")&&n.$on("ProductListRefreshVisibility",function(i,r,u){if(r=="Product"){if(u>1){t.titleVisible=!1;t.containerVisible=t.listType=="Product";return}if(t.products!=undefined&&t.products!=null&&t.products.length>0&&(t.containerVisible=!0),t.containerVisible==!0){var f=0;for(key in n.productListVisibility)n.productListVisibility[key]==!0&&(f+=1);t.titleVisible=f>1}else t.titleVisible=!1}});t.setHighlightProduct=function(n){angular.forEach(t.products,function(t){t.IsHighlighted=n.includes(t.Id)})};t.loadProductIds=[];t.loadOeProductIds=[];t.setProducts=function(n,i){var r,e,u;t.restrictionApplied=!1;n!=null&&n.Items!=null&&n.Paging!=null&&(angular.forEach(n.Items,function(n){n.Description=f.trustAsHtml(n.Description);n.Disponibility&&(n.Disponibility.Text=f.trustAsHtml(n.Disponibility.Text))}),t.products=i?t.products.concat(n.Items):n.Items,t.setPriceTooltipInfo(),t.paging=n.Paging,t.setRange(),t.initialize(),(t.listType==="TopSell"||t.listType==="Product"||t.listType==="AllInOne")&&t.trackInfoProductLoaded(n.Items),r=n.Items.filter(function(n){return n.LoadUserPrice==!0}).map(function(n){return n.Id}),e=n.Items.filter(function(n){return n.LoadHasOeDelivery==!0}).map(function(n){return n.Id}),updatePrice=r!=undefined&&r.length>0,u=[],r!=undefined&&(u=u.concat(r)),e!=undefined&&(u=u.concat(e)),t.loadProductIds=r,t.loadOeProductIds=e,t.loadPrices(u,updatePrice).then(function(){var r,u,i,f;t.loadAttributes(t.loadProductIds);t.loadOeDelivery(t.loadOeProductIds);t.loadDisponibilityEnabled&&(r=n.Items.map(function(n){return n.Id}),t.loadDisponibility(r));t.elitTimeAvailability2Enabled?(u=n.Items.filter(function(n){return n.LoadElitDisponibility==!0}).map(function(n){return{ProductId:n.Id,Amount:n.Amount}}),t.loadElitTimeAvailability(u),t.setTimeAvailabilityInfo()):(i=n.Items.filter(function(n){return n.LoadElitDisponibility==!0}).map(function(n){return n.Id}),t.loadElitDisponibility(i),t.loadElitHasVendorInfo(i));f=n.Items.filter(function(n){return n.LoadElitCarDisponibility==!0}).map(function(n){return n.Id});t.loadElitCarDisponibility(f)}),t.loadPriceInfoIds=n.Items.filter(function(n){return n.LoadUserPriceInfo==!0}).map(function(n){return n.Id}),t.loadPriceInfo(t.loadPriceInfoIds).then(function(){t.loadPriceInfoIds!=null&&t.loadPriceInfoIds.length>0&&t.loadAttributes(t.loadPriceInfoIds)}),t.loadMarginInfoIds=n.Items.filter(function(n){return n.LoadUserMarginInfo==!0}).map(function(n){return n.Id}),t.loadMarginInfo(t.loadMarginInfoIds).then(function(){t.loadMarginInfoIds!=null&&t.loadMarginInfoIds.length>0&&t.loadAttributes(t.loadMarginInfoIds)}))};t.haynesProId="";t.genartId="";t.gownId="";t.targetModalSelectProduct="";t.checkboxHaynesProProduct={value:!0};t.selectedModalProductId=0;t.setHaynesProProducts=function(n,i,r,u,e){var o,h,s;n!=null&&n.Items!=null&&n.Paging!=null&&(t.haynesProId=i,t.genartId=r,t.gownId=u,t.targetModalSelectProduct=e,t.checkboxHaynesProProduct.value=!0,t.products=angular.copy(n.Items),angular.forEach(t.products,function(n){n.Description=f.trustAsHtml(n.Description);n.Disponibility&&(n.Disponibility.Text=f.trustAsHtml(n.Disponibility.Text));n.checkboxHaynesProModalSelected=!1}),t.paging=n.Paging,t.setRange(),t.initialize(),o=n.Items.filter(function(n){return n.LoadUserPrice==!0}).map(function(n){return n.Id}),h=n.Items.filter(function(n){return n.LoadHasOeDelivery==!0}).map(function(n){return n.Id}),updatePrice=o!=undefined&&o.length>0,s=[],o!=undefined&&(s=s.concat(o)),h!=undefined&&(s=s.concat(h)),t.loadProductIds=o,t.loadOeProductIds=h,t.loadPrices(s,updatePrice).then(function(){var i,r;t.loadAttributes(t.loadProductIds);t.loadOeDelivery(t.loadOeProductIds);i=n.Items.filter(function(n){return n.LoadElitDisponibility==!0}).map(function(n){return n.Id});t.loadElitDisponibility(i);t.loadElitHasVendorInfo(i);r=n.Items.filter(function(n){return n.LoadElitCarDisponibility==!0}).map(function(n){return n.Id});t.loadElitCarDisponibility(r)}),t.loadPriceInfoIds=n.Items.filter(function(n){return n.LoadUserPriceInfo==!0}).map(function(n){return n.Id}),t.loadPriceInfo(t.loadPriceInfoIds).then(function(){t.loadPriceInfoIds!=null&&t.loadPriceInfoIds.length>0&&t.loadAttributes(t.loadPriceInfoIds)}),t.loadMarginInfoIds=n.Items.filter(function(n){return n.LoadUserMarginInfo==!0}).map(function(n){return n.Id}),t.loadMarginInfo(t.loadMarginInfoIds).then(function(){t.loadMarginInfoIds!=null&&t.loadMarginInfoIds.length>0&&t.loadAttributes(t.loadMarginInfoIds)}))};t.setCheckboxHaynesProModal=function(n){t.selectedModalProductId=n;t.products.forEach(function(n){n.checkboxHaynesProModalSelected!==null&&(n.checkboxHaynesProModalSelected=t.selectedModalProductId===n.Id?!0:!1)})};t.openHaynesProModal=function(n,i){var r,u;t.checkboxHaynesProProduct.value===!1&&(i=0);r=angular.element(document.getElementById("productContainerModalGenartId"+t.genartId+"-"+t.gownId).getElementsByClassName("productListContainer")[0]).scope();r.setCheckboxHaynesProModal(i);u="#"+n;$(u).modal("show")};t.selectHaynesProProduct=function(n){n!==t.selectedModalProductId&&t.removeHaynesProBasketProduct(t.selectedModalProductId);var i=angular.element(document.getElementById(t.haynesProId).getElementsByClassName("haynesProContainer")[0]).scope();i.selectHaynesProProduct(n,t.genartId,t.gownId,t.targetModalSelectProduct)};t.removeHaynesProBasketProduct=function(n){if(document.getElementById("HaynesProBasket")){var t=angular.element(document.getElementById("HaynesProBasket").getElementsByClassName("haynesProBasketContainer")[0]).scope();t.removeProduct(n)}};t.addRemoveHaynesProBasket=function(n){t.checkboxHaynesProProduct.value===!0?t.selectHaynesProProduct(n):t.removeHaynesProBasketProduct(n)};n.$on("ProductListLoadProducts",function(){t.paging.Page=1;t.loadProducts(r,t.paging.Page,u)});t.productOemOrder=function(n){i.getProductListOemOrder(n).success(function(n){AK.System.ShowMessage(n)})};t.showLoginModal=function(){AK.System.ShowLoginModal()};t.showNext=function(){n.akDataLoadingStringAdd("ShowNextProducts");i.getProductList(t.listType,t.paging.Page+1,t.ownId).then(function(i){i.data!=null&&i.data.Items!=null&&i.data.Paging!=null&&t.setProducts(i.data,!0);n.$emit("ProductListLoaded",t.listType);t.processECommerce(i.data.ECommerce,i.data.GTMCode);n.akDataLoadingStringRemove("ShowNextProducts")},function(){AK.System.alert("Get next products list failed");n.akDataLoadingStringRemove("ShowNextProducts")})};t.copyToClipboard=function(n,t){n.preventDefault();n.stopPropagation();AK.System.CopyToClipboard(t)};t.setTimeAvailabilityInfo=function(){t.elitTimeAvailability2Enabled===!0&&t.products.forEach(function(n){n.TimeAvailabilities&&n.TimeAvailabilities.length>0&&n.TimeAvailabilities.forEach(function(t){t.Selected===!0&&(n.TimeAvailabilitySelected=t)})})};t.timeAvailabilitySelect=function(n,t){n.TimeAvailabilities&&(n.TimeAvailabilities.forEach(function(n){n.Selected=n.Id==t.Id}),n.TimeAvailabilitySelected=t)};t.getTimeAvailabilitySelected=function(n){var t=n.filter(function(n){return n.Selected==!0});return t.Storage+" - "+t.Text+" - "+t.AvailableFrom};t.changeAmount=function(n){if(t.elitTimeAvailability2Enabled===!0){var i=[{ProductId:n.Id,Amount:n.Amount}];t.loadElitTimeAvailability(i)}};t.ranges=[];t.setRange=function(){var i=5,r=Math.ceil(i/2)-1,u,f=t.paging.Total,n;for(u=t.paging.Page<=r+1?1:t.paging.Page>f-r?Math.max(1,f-i+1):t.paging.Page-r+1,t.ranges=[],n=u;n<=u+i-1;n++)n>=1&&n<=f&&t.ranges.push(n)};t.setRange();t.prevPage=function(){t.paging.Page>1&&t.setPage(t.paging.Page-1)};t.prevPageDisabled=function(){return t.paging.Page===1?"prev disabled":""};t.nextPage=function(){t.paging.Page<t.paging.Total&&t.setPage(t.paging.Page+1)};t.nextPageDisabled=function(){return t.paging.Page===t.paging.Total?"next disabled":""};t.setPage=function(i){t.paging.Page=i;t.loadProducts(t.listType,t.paging.Page,t.ownId);t.trackInfoEnabled===!0&&(t.listType==="Product"||t.listType==="AllInOne")&&n.$emit("ProductListTrackInfoCleanProducts")}};AK.ProductList.getProductListGraphicScheme=function(n,t,i){AK.System.alert("@ProductList.getProductListGraphicScheme");n.$on("RefreshCart",function(){i.getGraphicSchemePaneCartText().success(function(n){t.paneCartTexts=n;t.paneCartTexts.forEach(function(n){var t="."+n.ClassName;$(t).text(n.Text)})})});t.showAfterMarketProducts=!1};AK.ProductList.getProductListViewTypeFilter=function(n,t,i){t.setViewTypeFilter=function(n,t){i.setProductListViewType(n,t).then(function(n){n.data==!0&&window.location.reload()},function(){AK.System.alert("Failed")})}};AK.ProductList.getProductListBrandFilter=function(n,t,i,r){t.brands=null;t.selectedBrand=null;t.listType=r;t.reloadData=!0;t.loadData=function(){i.getProductListFilterBrands(r).success(function(n){t.brands=n;t.selectedBrand=null;angular.forEach(t.brands,function(n){if(n.Selected===!0){t.selectedBrand=n.Value;return}});t.selectedBrand==null&&t.brands!=null&&t.brands.length>0&&(t.selectedBrand=t.brands[0].Value);t.reloadData=!1})};n.$on("ProductListLoaded",function(){t.reloadData==!0&&t.loadData()});t.setBrandFilter=function(){AK.System.alert("ProductList filter set: ",t.selectedBrand);var r=[];r.push(t.selectedBrand);i.setProductListFilterBrands(r,t.listType).then(function(t){t.data==!0&&(AK.System.alert("ProductList filter succesfully set."),n.$emit("ProductListLoadProducts"))},function(){AK.System.alert("Failed")})}};AK.ProductList.getProductListPriceFilter=function(n,t,i){t.prices=null;t.selectedPrice=null;i.getProductListPriceFilter().success(function(n){t.prices=n;t.selectedPrice=null;angular.forEach(t.prices,function(n){if(n.Selected===!0){t.selectedPrice=n.Value;return}});t.selectedPrice==null&&(t.selectedPrice=t.prices[0].Value)});t.setPriceFilter=function(){AK.System.alert("ProductList filter set: ",t.selectedPrice);i.setProductListPriceFilter(t.selectedPrice).then(function(t){t.data==!0&&(AK.System.alert("ProductList price filter succesfully set."),n.$emit("ProductListLoadProducts"))},function(){AK.System.alert("Set Price filter failed")})}};AK.ProductList.getProductListAttributeFilter=function(n,t,i){t.attributes=null;i.getProductListAttributeFilter().success(function(n){t.attributes=n});t.setAttributeFilter=function(){AK.System.alert("ProductList attribute filter set (tip, new, sellout): ",t.attributes.Tip+", "+t.attributes.New+", "+t.attributes.Sellout+", ");i.setProductListAttributeFilter(t.attributes).then(function(t){t.data==!0&&(AK.System.alert("ProductList attribute filter succesfully set."),n.$emit("ProductListLoadProducts"))},function(){AK.System.alert("Set attribute filter failed")})}};AK.ProductList.getProductListVirtualSkeleton=function(n,t,i){t.rows=null;t.loadData=function(){i.productFilter.getVirtualSkeletonData().then(function(n){n.data.ErrorMessage.length<=0?(t.rows=n.data.rows,AK.System.alert("Virtual Skeleton load data success")):AK.System.alert("Virtual Skeleton load data failed")},function(){AK.System.alert("ProductFilter load data failed");n.akDataLoadingStringRemove("ProductFilterLoadData")})};t.loadData();t.isFilterLoading=!1;t.setVirtualSkeleton=function(r,u){var e,f,o;if(t.isFilterLoading==!0||!r||!r.Items||r.Items.length==0||r.Items[0].Disabled==!0)return!1;t.isFilterLoading=!0;e=[];f=[];t.rows.forEach(function(n){n.Filters.forEach(function(n){n&&r&&r.Id==n.Id&&n.Items&&n.Items.length>0&&(n.Items[0].Selected=u?!n.Items[0].Selected:!0);(n&&n.Items&&n.Items.length>0&&n.Items[0].Selected==!0||r&&r.Id==n.Id)&&e.push(n);n&&n.Items&&n.Items.length>0&&f.push(n)})});o=e.length>0?e.map(function(n){return n.Text}).join(" - "):"";n.$emit("SetCatalogStripVirtual",o);n.akDataLoadingStringAdd("VirtualSkeletonData");i.productFilter.setVirtualSkeletonData(f&&f.length>0?f:null).then(function(i){t.rows=i.data.rows;var r=i.data.title,u=i.data.url;AK.System.ChangeUrlWithoutReload(r,u);n.$emit("LoadLeftMenuFilter");n.$emit("ProductListLoadProducts");t.isFilterLoading=!1;n.akDataLoadingStringRemove("VirtualSkeletonData")},function(){AK.System.alert("Set stock filter failed");t.isFilterLoading=!1;n.akDataLoadingStringRemove("VirtualSkeletonData")})};n.$on("ProductFilterLeftMenuChanged",function(){t.loadData()})};AK.ProductList.initStockFilter=function(n,t,i,r){t.stockExists=r;t.changeFilter=function(){AK.System.alert("ProductList stock filter change: ",t.stockExists);i.productListFilter.setStockExist(t.stockExists).then(function(t){t.data==!0&&(AK.System.alert("ProductList stock filter succesfully set."),n.$emit("ProductListLoadProducts"))},function(){AK.System.alert("Set stock filter failed")})}};AK.ProductList.RefreshTooltip2=function(){setTimeout(function(){$('[data-toggle="tooltip2"]').tooltip({template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"><\/div><div class="tooltip-inner tooltip-product"><\/div><\/div>'});$('[data-tooltip="true"]').tooltip()},100)};AK.ProductList.initRestriction=function(n,t){t.restrictionApplied=!1;$(".filterRestrictionMessageContainer").removeClass("visibilityOff");n.$on("ProductListRestrictionApplied",function(n,i){t.restrictionApplied=i})};AK.ProductList.getTopSell=function(n,t,i){AK.System.alert("@ProductList.getTopSell");t.maxCount=10;t.minCount=3;t.products=[];t.showAll=!1;t.switchEnabled=!1;t.showEnabled=!1;t.loadData=function(){i.getProductListTopSell().then(function(n){t.products=n.data.listData.Items;t.switchEnabled=n.data.switchEnabled;t.showEnabled=n.data.showEnabled;t.setProducts();$("#topSellContainer").removeClass("visibilityOff")},function(){AK.System.alert("Get product list topsell failed");$("#topSellContainer").removeClass("visibilityOff")})};t.loadData();t.setProducts=function(){var n=angular.element(document.getElementById("topSellContainer").getElementsByClassName("productListContainer")[0]).scope(),i=t.showAll?t.products.slice(0,t.maxCount):t.products.slice(0,t.minCount),r={Items:angular.copy(i),Paging:{Page:1,Size:100,Total:1}};n.setProducts(r,!1)};t.showMoreClick=function(){t.showAll=!t.showAll;t.setProducts()};n.$on("ProductListLoadProducts",function(){t.loadData()});t.switchClick=function(){t.showEnabled=!t.showEnabled;t.saveShowEnabled()};t.saveShowEnabled=function(){i.setProductListTopSellShowEnabled(t.showEnabled).then(function(){AK.System.alert("Set product list topsell switch succeed")},function(){AK.System.alert("Set product list topsell switch failed")})}};AK.ProductList.initTrackInfo=function(n,t,i){AK.System.alert("@ProductList.initTrackInfo");t.trackInfo=new AK.ProductList.TrackInfo;n.$on("ProductListTrackInfoSetProducts",function(n,i,r,u){i==="TopSell"?t.trackInfo.TopProducts=r:(i==="Product"||i==="AllInOne")&&(t.trackInfo.Products=r,t.trackInfo.Page=u);t.sendProductInfo()});n.$on("ProductListTrackInfoCleanAll",function(){t.cleanAll()});n.$on("ProductListTrackInfoCleanProducts",function(){t.trackInfo.Products=undefined;t.trackInfo.Page=1});n.$on("ProductListTrackInfoCartAddProduct",function(n,i,r,u){var e=u==="TopSell"?t.trackInfo.TopProducts:t.trackInfo.Products,f=AK.Common.altFind(e,function(n){return n.Id==i});f&&(f.AddToCartTime=new Date,f.AddToCartQuantity=r);t.sendProductInfo()});n.$on("ProductListLoadProducts",function(){t.cleanAll()});n.$on("ProductFilterLeftMenuChanged",function(){t.cleanAll()});t.sendProductInfo=function(){t.trackInfo.TopProducts&&t.trackInfo.Products&&t.trackInfo.Products.length>0&&(t.trackInfo.StartTime=new Date,t.trackInfo.RelativeUrl=window.location.pathname+window.location.search,i.trackInfoProductList(t.trackInfo))};t.sendCartInfo=function(){};t.cleanAll=function(){t.trackInfo=new AK.ProductList.TrackInfo}};AK.ProductFilter.initTest=function(n,t){AK.System.alert("@ProductFilter.initTest");t.filters=[];t.filters[0]=[];t.filters[1]=[];t.filters[2]=[];t.selectedValues=[];t.selectedValues1=[];t.filters[0].push({Id:"1",Count:5,Text:"Barum",Value:"Value1",Selected:!1,Disabled:!1});t.filters[0].push({Id:"2",Count:2,Text:"Continental",Value:"Value2",Selected:!1,Disabled:!0});t.filters[0].push({Id:"3",Count:10,Text:"Michelin",Value:"Value3",Selected:!1,Disabled:!1});t.filters[0].push({Id:"4",Count:4,Text:"Brigestone",Value:"Value4",Selected:!0,Disabled:!1});t.filters[0].push({Id:"5",Count:8,Text:"Matador",Value:"Value5",Selected:!1,Disabled:!1});t.filters[1].Items=[];t.filters[1].LowValue="20";t.filters[1].HighValue="40";t.filters[1].Items.push({Id:"10",Count:5,Text:"125",Selected:!1,Disabled:!1});t.filters[1].Items.push({Id:"20",Count:2,Text:"150",Selected:!1,Disabled:!0});t.filters[1].Items.push({Id:"30",Count:10,Text:"165",Selected:!1,Disabled:!1});t.filters[1].Items.push({Id:"40",Count:4,Text:"195",Selected:!0,Disabled:!1});t.filters[1].Items.push({Id:"50",Count:8,Text:"210",Selected:!1,Disabled:!1});t.filters[2].Items=[];t.filters[2].LowValue="10";t.filters[2].HighValue="30";t.filters[2].Items.push({Id:"10",Count:5,Text:"t125",Selected:!1,Disabled:!1});t.filters[2].Items.push({Id:"20",Count:2,Text:"t150",Selected:!1,Disabled:!0});t.filters[2].Items.push({Id:"30",Count:10,Text:"t165",Selected:!1,Disabled:!1});t.filters[2].Items.push({Id:"40",Count:4,Text:"t195",Selected:!0,Disabled:!1});t.filters[2].Items.push({Id:"50",Count:8,Text:"t210",Selected:!1,Disabled:!1});t.sliderChange=function(n,t,i,r){AK.System.alert("sliderId: "+n);AK.System.alert("modelValue: "+t);AK.System.alert("highValue: "+i);AK.System.alert("pointerType: "+r)};t.itemClick=function(){AK.System.alert("selectedItem: "+t.selectedValues.Text)}};AK.ProductFilter.initLeftMenu=function(n,t,r){AK.System.alert("@ProductFilter.initLeftMenu");t.showFilter=!0;t.filters=[];t.selectedValues=[];t.checkBoxShowNext=[];t.selectedLast=[];t.showme=[];t.loadData=function(){n.akDataLoadingStringAdd("ProductFilterLoadData");r.productFilter.getLeftMenuData().then(function(r){if(r.data.ErrorMessage.length<=0){for(t.filters=r.data.filters,i=0;i<t.filters;i++)t.selectedValues[i]=[],t.checkBoxShowNext[i]=!1,t.showme[i]=!1;t.selectedLast=t.getSelected(t.filters);AK.System.alert("ProductFilter load data success");$(".productFilterContainer").removeClass("visibilityOff")}else AK.System.alert("ProductFilter load data failed");n.akDataLoadingStringRemove("ProductFilterLoadData")},function(){AK.System.alert("ProductFilter load data failed");n.akDataLoadingStringRemove("ProductFilterLoadData")})};t.loadData();t.postFilter=!1;t.firstChange=!1;t.nextChange=!1;t.postItemId=-1;t.postItemSelected=!1;t.changeFilter=function(n){t.postItemId=n.Id;t.postItemSelected=n.Selected;setTimeout(function(){t.setData(n.Id,n.Selected)},1e3)};t.setData=function(n,i){t.postItemId==n&&t.postItemSelected==i&&t.postData()};t.changeFilterAll=function(){t.postData()};t.changeFilterEmpty=function(){t.postData()};n.$on("LoadLeftMenuFilter",function(){t.loadData()});t.postData=function(){var i=t.getSelected(t.filters);angular.equals(t.selectedLast,i)||(n.akDataLoadingStringAdd("ProductFilterSetData"),r.productFilter.setLeftMenuData(t.filters).then(function(i){i.data.ErrorMessage.length<=0?(t.filters=i.data.filters,t.selectedLast=t.getSelected(t.filters),n.$emit("ProductListLoadProducts"),AK.System.alert("ProductFilter set data success"),$(".productFilterContainer").removeClass("visibilityOff")):AK.System.alert("ProductFilter set data failed");n.akDataLoadingStringRemove("ProductFilterSetData")},function(){AK.System.alert("ProductFilter set data failed");n.akDataLoadingStringRemove("ProductFilterSetData")}))};t.getSelected=function(n){var t=[];for(iFilter=0;iFilter<n.length;iFilter++)for(iRange=0;iRange<n[iFilter].Items.length;iRange++)n[iFilter].Items[iRange].Selected==!0&&t.push({id:n[iFilter].Id,value:n[iFilter].Items[iRange].Id});return t};t.cancelAll=function(){for(iFilter=0;iFilter<t.filters.length;iFilter++){for(iRange=0;iRange<t.filters[iFilter].Items.length;iRange++)t.filters[iFilter].Items[iRange].Selected==!0&&(t.filters[iFilter].Items[iRange].Selected=!1);t.filters[iFilter].LowValue="";t.filters[iFilter].HighValue=""}t.postData()};t.sliderChange=function(n,r,u,f){AK.System.alert("sliderId: "+n);AK.System.alert("modelValue: "+r);AK.System.alert("highValue: "+u);AK.System.alert("pointerType: "+f);var e=parseInt(n.replace("pfslider","")),o=t.filters[e].Items.length-1,s=o;for(i=0;i<t.filters[e].Items.length;i++)t.filters[e].Items[i].Id==r&&(s=i),t.filters[e].Items[i].Id==u&&(o=i),t.filters[e].Items[i].Selected=i>=s&&i<=o;if(s==0&&o==t.filters[e].Items.length-1)for(i=0;i<t.filters[e].Items.length;i++)t.filters[e].Items[i].Selected=!1;t.postData()}};AK.ProductFilter2.initLeftMenu=function(n,t,r,u){AK.System.alert("@ProductFilter.initLeftMenu");t.showFilter=!0;t.filters=[];t.selectedValues=[];t.checkBoxShowNext=[];t.selectedLast=[];t.showme=[];t.firstLoad=!0;t.loadData=function(i){n.akDataLoadingStringAdd("ProductFilterLoadData");r.productFilter.getLeftMenuData().then(function(r){if(r.data.errorMessage.length<=0){var f=[];r.data.filters.forEach(function(n){if(f[n.Id]=n,t.selectedValues[n.Id]=[],t.checkBoxShowNext[n.Id]=!1,i?t.showme[n.Id.toString()]=!1:t.firstLoad&&n.Expanded===!0&&(t.showme[n.Id.toString()]=!0),t.filters){var r=t.filters[n.Id];r&&r.HasPreferredItem&&n.HasPreferredItem&&(n.ShowAll=r.ShowAll)}});t.filters=f;t.selectedLast=t.getSelected(t.filters);AK.System.alert("ProductFilter load data success");$(".productFilterContainer").removeClass("visibilityOff");u(function(){t.$broadcast("rzSliderForceRender")})}else AK.System.alert("ProductFilter load data failed");n.akDataLoadingStringRemove("ProductFilterLoadData");t.firstLoad=!1},function(){AK.System.alert("ProductFilter load data failed");n.akDataLoadingStringRemove("ProductFilterLoadData");t.firstLoad=!1})};t.loadData(!1);t.postFilter=!1;t.firstChange=!1;t.nextChange=!1;t.postItemId=-1;t.postItemSelected=!1;t.changeFilter=function(n){t.postItemId=n.Id;t.postItemSelected=n.Selected;setTimeout(function(){t.setData(n.Id,n.Selected)},1e3)};t.setData=function(n,i){t.postItemId==n&&t.postItemSelected==i&&t.postData()};t.changeFilterAll=function(){t.postData()};t.changeFilterEmpty=function(){t.postData()};n.$on("LoadLeftMenuFilter",function(){t.loadData(!1)});t.postData=function(){var f=t.getSelected(t.filters),i;angular.equals(t.selectedLast,f)||(n.akDataLoadingStringAdd("ProductFilterSetData"),i=[],Object.keys(t.filters).forEach(function(n){return i.push(t.filters[n])}),r.productFilter.setLeftMenuData(i).then(function(i){var r,f,e;n.$emit("ProductFilterLeftMenuChanged");i.data.errorMessage.length<=0?(r=[],i.data.filters.forEach(function(n){if(r[n.Id]=n,t.filters){var i=t.filters[n.Id];i&&i.HasPreferredItem&&n.HasPreferredItem&&(n.ShowAll=i.ShowAll)}}),t.filters=r,f=i.data.title,e=i.data.url,AK.System.ChangeUrlWithoutReload(f,e),console.log(t.filters),t.selectedLast=t.getSelected(t.filters),n.$emit("ProductListLoadProducts"),AK.System.alert("ProductFilter set data success"),$(".productFilterContainer").removeClass("visibilityOff"),u(function(){t.$broadcast("rzSliderForceRender")})):AK.System.alert("ProductFilter set data failed");n.akDataLoadingStringRemove("ProductFilterSetData")},function(){AK.System.alert("ProductFilter set data failed");n.akDataLoadingStringRemove("ProductFilterSetData")}))};t.getSelected=function(n){var t=[];return Object.keys(n).forEach(function(i){var r=n[i];r&&r.Items&&Object.keys(r.Items).forEach(function(n){var i=r.Items[n];i.Selected==!0&&t.push({id:r.Id,value:i.Id})})}),t};t.cancelAll=function(){Object.keys(t.filters).forEach(function(n){var i=t.filters[n];i&&(Object.keys(i.Items).forEach(function(n){var t=i.Items[n];t&&(t.Selected=!1)}),i.LowValue="",i.HighValue="")});t.postData()};t.sliderChange=function(n,r,u,f){AK.System.alert("sliderId: "+n);AK.System.alert("modelValue: "+r);AK.System.alert("highValue: "+u);AK.System.alert("pointerType: "+f);var e=n.replace("pfslider",""),o=t.filters[e].Items.length-1,s=o;for(i=0;i<t.filters[e].Items.length;i++)t.filters[e].Items[i].Id==r&&(s=i),t.filters[e].Items[i].Id==u&&(o=i),t.filters[e].Items[i].Selected=i>=s&&i<=o;if(s==0&&o==t.filters[e].Items.length-1)for(i=0;i<t.filters[e].Items.length;i++)t.filters[e].Items[i].Selected=!1;t.postData()};t.sliderText=function(n,i){var f=i.replace("pfslider",""),r=t.filters[f],u;return r&&r.Items&&r.Items.length>0?(u=AK.Common.altFind(r.Items,function(t){return t.Id==n}),u?u.Text:n):n};t.favoriteReset=function(n){n.Items.forEach(function(n){n.IsFavorite=!1})};t.changeFavoriteBrand=function(i,u,f){if(!i||!i.Items||i.Items.length<=0)return!1;t.favoriteReset(i);u.IsFavorite=f;i.Items.filter(function(n){return n.IsFavorite==!0}).map(function(n){return n.Id});var e=i.Items.filter(function(n){return n.IsFavorite==!0}).map(function(n){return n.Id});return r.productFilter.setFavoriteBrand(e).then(function(t){t.data.errorMessage.length<=0?n.$emit("ProductListLoadProducts"):(AK.System.alert("ProductFilter set favorite brand failed"),AK.System.ShowMessage(t.data.errorMessage));n.akDataLoadingStringRemove("ProductFilterLoadData")},function(){AK.System.alert("ProductFilter set favorite brand failed")}),!1}};AK.Header.getFlag=function(n,t){AK.System.alert("@Header.getFlag");n.flags=[];n.setFlags=function(t){n.flags=t};n.setLanguage=function(n){t.setLanguage(n).then(function(n){n.data.url.length>0?window.location=n.data.url:window.location.reload(!1)},function(){})}};$(document).delegate("#opendialog","click",function(){$("<div>").simpledialog2({mode:"blank",headerText:"Some Stuff",headerClose:!0,fullScreen:!0,fullScreenForce:!0,blankContent:"<ul data-role='listview'><li>Some<\/li><li>List<\/li><li>Items<\/li><\/ul><a rel='close' data-role='button' href='#'>Close<\/a>"})});$(document).ready(function(){function n(){$(".top_search").hasClass("srch2")&&(setTimeout("$('.top_search').removeClass('srch2');",5),setTimeout("$('.topnav').removeClass('searchopen');",10),setTimeout("$('.navbar.main').removeClass('no-top-nav');",10),$(".hideBTN").hide())}function t(){$(".topnav").addClass("searchopen");$(".top_search").addClass("srch2");$(".navbar.main").addClass("no-top-nav");$(".hideBTN").show()}$("#SearchFocus").focus(function(){t();$(".top_search").click(function(t){$(".top_search").off("mouseleave",n);t.stopPropagation()})});$(".hideBTN").click(function(){$(".top_search").hasClass("srch2")&&(setTimeout("$('.top_search').removeClass('srch2');",5),setTimeout("$('.topnav').removeClass('searchopen');",10),setTimeout("$('.navbar.main').removeClass('no-top-nav');",10),$(".hideBTN").hide())});$(".hoverBTN").click(function(){t();$("#SearchFocus").focus()});$(".top_search").on("mouseleave",n);$(document).on("click",n)});AK.Header.getLogonAs=function(n,t,i){AK.System.alert("@Header.getLogonAs");t.data=undefined;t.loadData=function(){n.akDataLoadingStringAdd("LogonAsLoadData");i.logonAs.getData().then(function(i){i.data.errorMessage.length<=0?(t.data=i.data.data,AK.System.alert("LogonAs load data success")):(AK.System.alert("LogonAs load data failed"),AK.System.ShowMessage(i.data.errorMessage));n.akDataLoadingStringRemove("LogonAsLoadData")},function(){AK.System.alert("Get LogonAsLoadData failed");n.akDataLoadingStringRemove("LogonAsLoadData")})};t.loadData();t.find=function(){t.data.Fullname.length>3||t.data.Username.length>0||t.data.CompanyId.length>0||t.data.Ico.length>5||t.data.Email.length>3||t.data.Barcode.length>8?(AK.System.alert("Find: "+t.data.Fullname+", "+t.data.CompanyId+", "+t.data.Ico+", "+t.data.Email+", "+t.data.Barcode),i.logonAs.findUser(t.data.Fullname,t.data.Username,t.data.CompanyId,t.data.Ico,t.data.Email,t.data.Barcode,t.data.SelectedStorage.Value,t.data.SelectedSubtype.Value).then(function(n){n.data==!0?window.location="/FoundUsers":AK.System.alert("Failed")},function(){AK.System.alert("Failed")})):AK.System.ShowMessage("Pro vyhlednání zadejte více znaků")};t.clear=function(){t.data.Fullname="";t.data.Username="";t.data.Id="";t.data.Ico="";t.data.Email="";t.data.Barcode="";t.data.SelectedStorage=t.data.Storages[0];t.data.SelectedSubtype=t.data.Subtypes[0]};t.clearFilter=function(){i.logonAs.clearFilter().then(function(){t.clear()},function(){AK.System.alert("Get LogonAsLoadData failed")})}};AK.Header.initFoundUsers=function(n,t,i){AK.System.alert("@Header.initFoundUsers");t.data=null;t.loadData=function(){n.akDataLoadingStringAdd("FoundUsersLoadData");i.foundUsers.getData().then(function(i){t.data=i.data;$(".foundUsersContainer").removeClass("visibilityOff");n.akDataLoadingStringRemove("FoundUsersLoadData")},function(){AK.System.alert("Get found users failed");n.akDataLoadingStringRemove("FoundUsersLoadData")})};t.loadData();t.completeItem=undefined;t.completionRegistrationClick=function(n){t.completeItem=n;$("#ModalComplete").modal("show")};t.completionRegistration=function(){$("#ModalComplete").modal("hide");n.akDataLoadingStringAdd("FoundUsersCompleteRegistration");i.foundUsers.completeRegistration(t.completeItem.UserId).then(function(i){i.data.success===!0&&t.loadData();AK.System.ShowMessage(i.data.message);n.akDataLoadingStringRemove("FoundUsersCompleteRegistration")},function(){AK.System.alert("Complete registration failed");n.akDataLoadingStringRemove("FoundUsersCompleteRegistration")});t.completeItem=undefined};t.loggonAs=function(n){AK.System.alert("Logon for: "+n);i.logFoundUser(n).then(function(n){n.data==!0?window.location="/":AK.System.alert("Failed")},function(){AK.System.alert("Failed")})};t.jsonToString=function(n){try{var i=JSON.parse(n),t="";for(x in i)t+=x+": "+i[x]+"<br>";return t==""&&(t=n),t}catch(r){return n}}};AK.Product.getImage=function(n,t,i){AK.System.alert("@Product.getImage");n.productImages=[];t.getProductImages(i).success(function(t){n.productImages=t;$("#ProductImageGalContainer").removeClass("visibilityOff")})};AK.Product.getAttribute=function(n,t,i,r){AK.System.alert("@Product.getAttribute");t.productAttributes=[];t.loadData=function(){i.getProductAttributes(r).success(function(n){t.productAttributes=n;$(".ProductInfoTags").removeClass("visibilityOff")})};t.loadData();n.$on("ProductPriceLoaded",function(){t.loadData()})};AK.Product.getInfo=function(n,t,i,r,u){AK.System.alert("@Product.getInfo");t.productInfoRows=undefined;t.auctionInfo=undefined;t.loadData=function(){i.getProductInfos(r,u).then(function(i){t.productInfoRows=i.data.productInfo;t.auctionInfo=i.data.auctionInfo;t.auctionInfo!=null&&t.auctionInfo!=undefined&&n.$emit("timer-set-countdown","auction",t.auctionInfo.RemainingLeft);$("#ProductInfoRowsContainer").removeClass("visibilityOff")},function(){$("#ProductInfoRowsContainer").removeClass("visibilityOff")})};t.loadData();t.timerfinished=function(){t.loadData();n.$emit("auction-timer-finished")};n.$on("ProductPriceLoaded",function(){t.loadData()})};AK.Product.getTabs=function(n,t,i,r,u,f,e){AK.System.alert("@Product.getTabs");t.productTabs=[];t.auctionId=f;i.getProductTabs(r,t.auctionId).success(function(n){t.productTabs=n;$("#ProductTabsContainer").removeClass("visibilityOff");var i=AK.Common.getUrlParam("tabType");i!==!1&&n.some(function(n){return n.Type===i})||(i=n&&n.length>0?n[0].Type:undefined);i!==undefined&&i.length>0&&t.selectTabType(i)});t.getProductTabContent=function(n,f){t.productTabs[n].IsLoaded||i.getProductTabContent(r,f,t.auctionId).success(function(i){AK.System.alert("@Product.getTabContent");t.productTabs[n].Content=u.trustAsHtml(i);t.productTabs[n].IsLoaded=!0})};t.openDocument=function(n,t){AK.System.NewWindow(n,t,800,600,1,1,1,1)};t.selectTabType=function(n){for(var r=!1,i=0;i<t.productTabs.length;i++)if(t.productTabs[i].Type==n){r=!0;break}r&&e(function(){var t=document.getElementById("tabType"+n);t!=null&&t!=undefined&&t.click()},100)};n.$on("ProductTabShow",function(n,i){t.selectTabType(i)})};AK.Product.getRecommend=function(n,t,i,r,u){AK.System.alert("@Product.getRecommend");n.productRecommends=null;n.loadUserPrice=u=="true";n.userPriceLoading=!1;t.getProductRecommends(i,r).success(function(t){if(n.productRecommends=t,n.loadUserPrice&&n.productRecommends!=undefined&&n.productRecommends!=null&&n.productRecommends.length>0){var i=t.filter(function(n){return n.LoadUserPrice==!0}).map(function(n){return n.ProductId});i.length>0&&n.loadPrices(i)}$("#ProductRecommendContainer").removeClass("visibilityOff")});n.loadPrices=function(i){n.userPriceLoading=!0;t.getProductUserPrice(i).then(function(t){t.data.Content!=undefined&&t.data.Content.length>0?(n.productRecommends.forEach(function(n){var i=AK.Common.altFind(t.data.Content,function(t){return t.ProductId==n.ProductId});i!=undefined&&(n.Price=i.Price,n.PriceVat=i.PriceVat)}),n.userPriceLoading=!1):t.data.error!=undefined&&AK.System.alert(t.data.error)},function(){n.userPriceLoading=!1})}};AK.Product.hitRecommend=function(n){AK.System.alert("@Product.hitRecommend");var t=$(n).attr("data-hitinfo");t="jsonData="+t;$.post(AK.System.url+"/product/recommend/hit",t)};AK.Product.getCode=function(n,t,i){AK.System.alert("@Product.getCode");n.productCodes=null;t.getProductCodes(i).success(function(t){n.productCodes=t;$("#ProductCodeContainer").removeClass("visibilityOff")})};AK.Product.getOccurence=function(n,t,i,r){AK.System.alert("@Product.getOccurence");n.productOccurences=null;n.productId=i;n.paging={Page:r,Size:20,Total:1};n.loadReferences=function(i,r){t.getProductReferences(i,r).success(function(t){n.productOccurences=t.References;$("#ProductOccurenceContainer").removeClass("visibilityOff");n.paging=t.Paging;n.setRange()})};n.loadReferences(i,r);n.ranges=[];n.setRange=function(){var i=5,r=Math.ceil(i/2)-1,u,f=n.paging.Total,t;for(u=n.paging.Page<=r+1?1:n.paging.Page>f-r?Math.max(1,f-i+1):n.paging.Page-r+1,n.ranges=[],t=u;t<u+i-1;t++)t>=1&&t<=f&&n.ranges.push(t)};n.setRange();n.prevPage=function(){n.paging.Page>1&&n.setPage(n.paging.Page-1)};n.prevPageDisabled=function(){return n.paging.Page===1?"prev disabled":""};n.nextPage=function(){n.paging.Page<n.paging.Total&&n.paging.Page++};n.nextPageDisabled=function(){return n.paging.Page===n.paging.Total?"next disabled":""};n.setPage=function(t){n.paging.Page=t;n.loadReferences(n.productId,n.paging.Page)}};AK.Product.getStorage=function(n,t,i,r){AK.System.alert("@Product.getStorage");n.loading=!1;n.productStorages=null;n.productAllStorages=null;n.nonZeroStorageListEnabled=r=="true";n.loadData=function(){$("#ProductStorageContainer").removeClass("visibilityOff");n.loading=!0;t.getProductAllStorages(i).then(function(t){n.productAllStorages=t.data;n.loading=!1},function(){n.loading=!1})};n.loadData();n.isVisible=function(t){return n.nonZeroStorageListEnabled==!1||t.IsStock===!0}};AK.Product.onHomeCreditCalc=function(){AK.System.alert("@Product.onHomeCreditCalc")};AK.Product.getCart=function(n,t,i,r,u,f,e,o,s,h,c,l){AK.System.alert("@Product.getCart");t.stepAmount=parseInt(u,10);t.amount=parseInt(u,10);t.nonReversibleMessage=f;t.showStockDisponibilityModal=o=="true";t.expressOrderMessage=e;t.elitHasVendorInfo=!1;t.elitHasVendorInfoLoaded=!1;t.oeDeliveryEnabled=s=="true";t.loadOeDelivery=h=="true";t.hasOeDelivery=!1;t.isOeNotOrderable=t.oeDeliveryEnabled&&t.loadOeDelivery;t.productId=c;t.elitTimeAvailability2Enabled=l=="true";t.timeAvailabilities=[];t.timeAvailabilitySelected=undefined;t.loadTimeAvailability=function(){t.elitTimeAvailability2Enabled&&i.getProductElitDisponibility2([{ProductId:t.productId,Amount:t.amount}]).then(function(n){if(n.data.items!=undefined&&n.data.items.length>0){var i=n.data.items[0];i!=undefined&&(t.timeAvailabilities=i.TimeAvailabilities,t.setTimeAvailabilityInfo())}else n.data.error!=undefined&&AK.System.alert(n.data.error)},function(){})};t.loadTimeAvailability();t.setTimeAvailabilityInfo=function(){t.elitTimeAvailability2Enabled===!0&&t.timeAvailabilities&&t.timeAvailabilities.length>0&&t.timeAvailabilities.forEach(function(n){n.Selected===!0&&(t.timeAvailabilitySelected=n)})};t.timeAvailabilitySelect=function(n){t.timeAvailabilities&&(t.timeAvailabilities.forEach(function(t){t.Selected=t.Id==n.Id}),t.timeAvailabilitySelected=n)};n.$on("ProductPriceLoaded",function(){AK.System.alert("@Product.getCart - ProductPriceLoaded")});t.amountDecrease=function(){t.amount>t.stepAmount&&(t.amount=parseInt(t.amount)-t.stepAmount,t.loadTimeAvailability())};t.amountIncrease=function(){t.amount=parseInt(t.amount)+t.stepAmount;t.loadTimeAvailability()};t.amountChange=function(){t.amount=parseInt(t.amount);t.loadTimeAvailability()};t.productCartAdd=function(i,r,u){if(u!==!0||window.confirm(t.nonReversibleMessage)){var f=t.elitTimeAvailability2Enabled&&t.timeAvailabilitySelected?t.timeAvailabilitySelected.Storage:"",e=t.elitTimeAvailability2Enabled&&t.timeAvailabilitySelected?t.timeAvailabilitySelected.AvailableFrom:"",o=t.elitTimeAvailability2Enabled&&t.timeAvailabilitySelected?t.timeAvailabilitySelected.CashAndCarry:!1;n.$emit("CartAddProduct",i,t.amount,t.stepAmount,!1,"","",f,e,o)}};t.oneClickNote="";t.oneClickInvoiceNote="";t.productOneClickOrder=function(i,r,u,f){var e=t.oneClickNote,o=t.oneClickInvoiceNote;$("#OneClickNoteModal").modal("hide");n.$emit("ProductOneClickOrder",i,t.amount,t.stepAmount,f,e,o)};t.ediProductIsExpressOrderable=!1;n.$on("EdiProductExpressLoaded",function(i,r,u){n.AKStockDispProductId==r&&(t.ediProductIsExpressOrderable=u)});t.disponibilityAddProductCart=function(i){(t.disponibilitySelectedProduct.NonReversible!==!0||window.confirm(t.nonReversibleMessage))&&($("#ModalStockDisponibilityDetail").modal("hide"),n.$emit("CartAddProduct",t.disponibilitySelectedProduct.Id,t.disponibilitySelectedProduct.Amount,t.disponibilitySelectedProduct.StepAmount,i,"","","","",!1))};t.productStockDispClick=function(n,i,r,u,f,e,o,s){var h=$(n.target).parent();t.productStockDispClickProcess(h,i,r,u,f,e,o,!0,!0,s)};t.productStockDispClickProcess=function(u,f,e,o,s,h,c,l,a,v){if(n.AKStockDispProductId=f,t.showStockDisponibilityModal==!0){$("#ModalStockDisponibilityDetail").modal("show");t.ediProductIsExpressOrderable=!1;t.disponibilitySelectedProduct={Id:f,Code:e,Amount:t.amount,NonReversible:s,StepAmount:t.stepAmount,IsStorageStock:h,StorageStockAmount:c,HasEDI:o,HasBOSCH:v};var y=angular.element(document.getElementById("ProductStockControlDetail")).scope();y.setData(t.disponibilitySelectedProduct,l)}else i.getProductStockDisponibility(f,t.amount).success(function(n){$(u).attr("data-original-title",r.trustAsHtml(n));$(u).attr("data-html","true");$(u).children(".tooltip").remove();$(u).children().removeAttr("data-toggle");$(u).tooltip("show")})};n.$on("ProductStockDispClick",function(n,i,r,u,f,e,o,s,h,c){if(t.oeDeliveryEnabled){if(t.isOeNotOrderable){AK.System.alert("Oe is not orderable");return}if(t.hasOeDelivery==!0){t.productOeDeliveryClick(n,i,r,f);return}}$("#ModalStockDisponibility").modal("show");var l=$("#ProductStockDisponibilityBtn").parent();t.productStockDispClickProcess(l,i,r,u,f,e,o,s,h,c)});t.productStockDispEDIOnly=function(i,r,u,f){var o,e;t.showStockDisponibilityModal==!0&&(n.AKStockDispProductId=i,$("#ModalStockDisponibilityDetail").modal("show"),t.ediProductIsExpressOrderable=!1,t.disponibilitySelectedProduct={Id:i,Amount:t.amount,NonReversible:u,StepAmount:t.stepAmount,IsStorageStock:f,HasEDI:r},o=angular.element(document.getElementById("ProductStockControlDetail")).scope(),o.setData(t.disponibilitySelectedProduct,!1),e=angular.element(document.getElementById("EDIProductListDetail")).scope(),r?e.setData(angular.copy(t.disponibilitySelectedProduct)):e.clear())};n.$on("ElitHasVendorInfoLoaded",function(n,i){t.elitHasVendorInfo=i;t.elitHasVendorInfoLoaded=!0});t.productOeDeliveryClick=function(i,r,u,f){$("#ModalOeDeliveryDetail").modal("show");n.OEDeliveryProductId=r;t.oeDeliverySelectedProduct={Id:r,Code:u,Amount:t.amount,NonReversible:f,StepAmount:t.stepAmount,Note:""};var e=angular.element(document.getElementById("ProductOeDeliveryControlDetail")).scope();e.setData(t.oeDeliverySelectedProduct)};t.loadOeDeliveryProcess=function(){t.oeDeliveryEnabled&&t.loadOeDelivery&&i.getProductUserPrice([t.productId]).then(function(n){n.data.Content!=undefined?t.loadHasOeDelivery():n.data.error!=undefined&&(AK.System.alert(n.data.error),t.isOeNotOrderable=!1)},function(){t.isOeNotOrderable=!1})};t.loadOeDeliveryProcess();t.loadHasOeDelivery=function(){i.elitOeDelivery.getHasData([t.productId]).then(function(n){if(n.data.items!=null&&n.data.items.length>0){var i=n.data.items[0];t.productId==i.ProductId&&(t.hasOeDelivery=i.HasData===!0);AK.System.alert("OeDelivery load hasdata success")}t.isOeNotOrderable=!1},function(){AK.System.alert("OeDelivery load hasdata failed");t.isOeNotOrderable=!1})}};AK.Product.getLink=function(n,t,i,r){AK.System.alert("@Product.getLinks");t.productId=r;t.links=[];t.loadData=function(r){n.akDataLoadingStringAdd("ProductLinkLoadData");i.product.getLink(r).then(function(i){i.data.errorMessage.length<=0?(t.links=i.data.links,AK.System.alert("Links laod data success")):(AK.System.alert("Links load data failed"),AK.System.ShowMessage(i.data.errorMessage));$(".ProductLinkContainer").removeClass("visibilityOff");n.akDataLoadingStringRemove("ProductLinkLoadData")},function(){AK.System.alert("Get links data failed");$(".ProductLinkContainer").removeClass("visibilityOff");n.akDataLoadingStringRemove("ProductLinkLoadData")})};t.loadData(r)};AK.Product.initStock=function(n,t){AK.System.alert("@Product.initStock");t.disponibility=undefined;t.disponibilityStorage=undefined;t.disponibilityDelivery=undefined;t.disponibilityLoaded=!1;t.showProductTab=function(t){n.$emit("ProductTabShow",t);$("html, body").animate({scrollTop:$("#tabTypeStorage").offset().top-80},1e3)};t.productStockDispClick=function(t,i,r,u,f,e,o,s,h){n.$emit("ProductStockDispClick",t,i,r,u,f,e,o,s,h)};n.$on("DetailDisponibilityAllLoaded",function(n,i,r){t.disponibilityStorage=r;t.disponibilityDelivery=i;t.disponibilityLoaded=!0});n.$on("ElitDisponibilityLoaded",function(n,i){t.disponibility=i;t.disponibilityLoaded=!0});n.$on("ElitCarDisponibilityLoaded",function(n,i){t.disponibility=i;t.disponibilityLoaded=!0})};BllCartTypes={Unknown:"Unknown",Default:"Default",Custom:"Custom",System:"System",CalcOffer:"CalcOffer",Fleet:"Fleet",MarketingVoucher:"MarketingVoucher",Lms:"Lms",MarketingPackage:"MarketingPackage"};FooterItemType={ProductAdd:"ProductAdd",Import:"Import",Export:"Export",RemoveAll:"RemoveAll",Print:"Print",SendEmail:"SendEmail"};AK.Cart.getModal=function(n,t,i,r){AK.System.alert("@Cart.getCreateNewModal");t.cartCreateNew=function(n,i,r){t.cartname="";t.actionType=i;t.cartId=n;t.cartType=r;$("#cartCreateNewModal").modal("show")};t.createNewOk=function(){var r=t.actionType,u=t.cartId,f=t.cartType,e=t.cartname;$("#cartCreateNewModal").modal("hide");i.getCartAction(u,r,f,e).success(function(t){n.$emit("RefreshCart",t.SelectedCart,t.HeaderData,t.BllCartType);AK.System.ShowMessage(t.Message)})};t.createNewCancel=function(){$("#cartCreateNewModal").modal("hide")};t.cartRename=function(n,i,r){t.actionType=i;t.cartId=n;t.cartType=r;$("#cartRenameModal").modal("show")};t.renameOk=function(){var r=t.actionType,u=t.cartId,f=t.cartType,e=t.cartname;$("#cartRenameModal").modal("hide");i.getCartAction(u,r,f,e).success(function(t){n.$emit("RefreshCart",t.SelectedCart,t.HeaderData,t.BllCartType);AK.System.ShowMessage(t.Message)})};t.renameCancel=function(){$("#cartRenameModal").modal("hide")};n.cartActionSelect=function(u,f,e,o,s){t.cartname=s;f.toLowerCase()==="add"?t.cartCreateNew(u,f,o):f.toLowerCase()==="rename"?(t.cartname.length>r.length&&(t.cartname=t.cartname.slice(r.length+1,t.cartname.length)),t.cartRename(u,f,o)):f.toLowerCase()==="remove"?window.confirm(e)&&i.getCartAction(u,f,o,"default").success(function(t){n.$emit("RefreshCart",t.SelectedCart,t.HeaderData,t.BllCartType);AK.System.ShowMessage(t.Message)}):i.getCartAction(u,f,o,"default").success(function(t){n.$emit("RefreshCart",t.SelectedCart,t.HeaderData,t.BllCartType)})}};AK.Cart.getHeader=function(n,t,i,r,u,f){AK.System.alert("@Cart.getHeader");t.headerData={Amount:"",Price:"",Name:"",LoadUserPrice:!1};t.miniCartDataLoaded=!1;i.getCartHeaderData().success(function(n){t.headerData=n;t.loadSum(n.LoadUserPrice);$("#CartHeaderContainer").removeClass("visibilityOff")});t.loadSum=function(n){n===!0&&i.getCartSumTotalAll().then(function(n){n.data.TotalSum!=undefined?(t.headerData.Amount=n.data.TotalSum.Amount,t.headerData.Price=n.data.TotalSum.Price):n.data.error!=undefined&&AK.System.alert(n.data.error)},function(){})};n.$on("CartAddProduct",function(t,r,e,o,s,h,c,l,a,v){if(AK.System.alert("@Cart.onEvent.CartAddProduct("+r+","+e+","+o+")"),e<=0)return AK.System.ShowMessage(u),!1;var y=e%o;if(y>0)return AK.System.ShowMessage(f),!1;i.addCartProduct(r,e,s,h,c,l,a,v).success(function(t){s==!0&&n.$emit("CartAddProductExpressSucceed",r,t.SelectedCart.Id,t.CartItemId);t.IsAdded===!0&&n.$emit("RefreshCart",t.SelectedCart,t.HeaderData,t.BllCartType);AK.System.ShowMessage(t.ResultMessage)}).error(function(){AK.System.ShowMessage("addCartProduct FAILED!")})});n.$on("RefreshCart",function(n,i,r){r.LoadUserPrice===!1?t.headerData=r:t.headerData!=null&&(t.headerData.Name=r.Name);t.loadSum(r.LoadUserPrice);t.miniCartDataLoaded=!0});n.$on("ProductOneClickOrder",function(n,t,r,e,o,s,h){if(AK.System.alert("@Cart.onEvent.productOneClickOrder("+t+","+r+","+e+")"),r<=0)return AK.System.ShowMessage(u),!1;var c=r%e;if(c>0)return AK.System.ShowMessage(f),!1;i.cart.oneClickOrderProduct(t,r,s,h).success(function(n){if(n.isOrdered===!0&&o){window.location=AK.System.url+"/Account/Logout";return}AK.System.ShowModalMessage(n.message)})});t.loadMiniCartData=function(){AK.System.alert("@Cart. load mini content");t.miniCartDataLoaded===!1&&(t.miniCartDataLoaded=!0,n.$emit("LoadMiniCartData"))};t.loadDefault=function(){AK.System.alert("@Cart.loadDefault");i.cart.loadDefault(r).success(function(t){n.$emit("RefreshCart",t.SelectedCart,t.HeaderData,t.BllCartType)})}};AK.Cart.getMini=function(n,t,i,r,u){AK.System.alert("@Cart.getMini");t.selectedCart=null;t.cartSelectClick=function(t,r){i.getCartSelected(t,r,1).success(function(t){n.$emit("RefreshCart",t.SelectedCart,t.HeaderData,t.BllCartType)})};t.cartItemAmountDecrease=function(t,r,u,f,e){var o=parseInt(f);o>0&&i.getCartItemAction(t,r,u,e).success(function(t){n.$emit("RefreshCart",t.SelectedCart,t.HeaderData,t.BllCartType)})};t.cartItemAction=function(t,r,u,f){i.getCartItemAction(t,r,u,f).success(function(t){n.$emit("RefreshCart",t.SelectedCart,t.HeaderData,t.BllCartType)})};n.$on("LoadMiniCartData",function(){i.getCartSelected(r,u,1).success(function(t){n.$emit("RefreshCart",t.SelectedCart,t.HeaderData,t.BllCartType)})});n.$on("ReloadCart",function(){i.getCartCurrent().success(function(t){n.$emit("RefreshCart",t.SelectedCart,t.HeaderData,t.BllCartType)})});t.loadSum=function(n,r){n===!0&&i.getCartSumTotal(r).then(function(n){n.data.TotalSum!=undefined&&(t.selectedCart.RetailPrice=n.data.TotalSum.RetailPrice,t.selectedCart.RetailPriceVat=n.data.TotalSum.RetailPriceVat,t.selectedCart.Price=n.data.TotalSum.Price,t.selectedCart.PriceVat=n.data.TotalSum.PriceVat,t.selectedCart.Vats=n.data.TotalSum.Vats)},function(){})};t.loadPrices=function(n){if(n!=undefined&&n.Items!=undefined){var r=n.Items.filter(function(n){return n.LoadUserPrice==!0}).map(function(n){return{Id:n.ProductId,Amount:n.Amount}});r!=undefined&&r.length>0&&i.getCartUserPrice(r).then(function(n){n.data.Content!=undefined?t.selectedCart.Items.forEach(function(t){var i=AK.Common.altFind(n.data.Content,function(n){return n.ProductId==t.ProductId});i!=undefined&&(t.Price=i.Price,t.PriceVat=i.PriceVat,t.PriceOnePiece=i.PriceOnePiece,t.Discount=i.Discount)}):n.data.error!=undefined&&AK.System.alert(n.data.error)},function(){})}};n.$on("RefreshCart",function(n,i,r){r.LoadUserPrice===!0&&t.selectedCart&&(i.Price=t.selectedCart.Price,i.PriceVat=t.selectedCart.PriceVat,i.Vats=t.selectedCart.Vats);t.selectedCart=i;t.loadSum(r.LoadUserPrice,i.Id);t.loadPrices(i)})};AK.Cart.getMini2=function(n,t,i,r,u,f){AK.System.alert("@Cart.getMini2");t.selectedCart=null;t.panes=[];t.showEmptyFilter=JSON.parse(f);t.setPanes=function(n){var i=[];angular.forEach(n,function(i){angular.forEach(t.panes,function(n,t){i.Id==n.Id&&(i.Order=t)});i.Order==undefined&&(i.Order=n.length)});i=n.sort(function(n,t){return n.Order-t.Order});t.panes=i};t.setItemsToPane=function(){angular.forEach(t.panes,function(n){n.Items=[];n.Id==t.selectedCart.Id&&(n.Items=t.selectedCart.Items)})};t.loadPanes=function(){i.cart2.getPanes(t.showEmptyFilter).then(function(n){t.setPanes(n.data.panes);t.setItemsToPane();t.loadPaneSum(n.data.LoadUserPrice)},function(){AK.System.alert("Get next cart items list failed")})};t.loadPaneSum=function(n){n===!0&&i.getCartSum().then(function(n){n.data.TotalSum!=undefined?angular.forEach(n.data.TotalSum,function(n){angular.forEach(t.panes,function(t){t.Id==n.CartId&&(t.Count=n.Amount,t.Price=n.Price)})}):n.data.error!=undefined&&AK.System.alert(n.data.error)},function(){})};t.selectCart=function(n){t.selectedCart.Id!=n&&t.loadCart(n)};t.loadCart=function(t){i.cart2.get(t).then(function(t){var i=t.data;i!==null&&i.Items!==null&&n.$emit("RefreshCart",t.data.SelectedCart,t.data.HeaderData,t.data.BllCartType)},function(){AK.System.alert("Get next cart items list failed")})};t.cartSelectClick=function(t,r){i.getCartSelected(t,r,1).success(function(t){n.$emit("RefreshCart",t.SelectedCart,t.HeaderData,t.BllCartType)})};t.cartItemAmountDecrease=function(t,r,u,f,e){var o=parseInt(f);o>0&&i.getCartItemAction(t,r,u,e).success(function(t){n.$emit("RefreshCart",t.SelectedCart,t.HeaderData,t.BllCartType)})};t.cartItemAction=function(t,r,u,f){i.getCartItemAction(t,r,u,f).success(function(t){n.$emit("RefreshCart",t.SelectedCart,t.HeaderData,t.BllCartType)})};n.$on("LoadMiniCartData",function(){i.getCartSelected(r,u,1).success(function(t){n.$emit("RefreshCart",t.SelectedCart,t.HeaderData,t.BllCartType)})});n.$on("ReloadCart",function(){i.getCartCurrent().success(function(t){n.$emit("RefreshCart",t.SelectedCart,t.HeaderData,t.BllCartType)})});t.loadSum=function(n,r){n===!0&&i.getCartSumTotal(r).then(function(n){n.data.TotalSum!=undefined&&(t.selectedCart.RetailPrice=n.data.TotalSum.RetailPrice,t.selectedCart.RetailPriceVat=n.data.TotalSum.RetailPriceVat,t.selectedCart.Price=n.data.TotalSum.Price,t.selectedCart.PriceVat=n.data.TotalSum.PriceVat,t.selectedCart.Vats=n.data.TotalSum.Vats)},function(){})};t.loadPrices=function(n){if(n!=undefined&&n.Items!=undefined){var r=n.Items.filter(function(n){return n.LoadUserPrice==!0}).map(function(n){return{Id:n.ProductId,Amount:n.Amount}});r!=undefined&&r.length>0&&i.getCartUserPrice(r).then(function(n){n.data.Content!=undefined?t.selectedCart.Items.forEach(function(t){var i=AK.Common.altFind(n.data.Content,function(n){return n.ProductId==t.ProductId});i!=undefined&&(t.Price=i.Price,t.PriceVat=i.PriceVat,t.PriceOnePiece=i.PriceOnePiece,t.Discount=i.Discount)}):n.data.error!=undefined&&AK.System.alert(n.data.error)},function(){})}};n.$on("RefreshCart",function(n,i,r){t.loadPanes();t.loadSum(r.LoadUserPrice,i.Id);t.selectedCart=i;t.loadPrices(i)});t.changeFilter=function(){t.loadPanes()}};AK.Cart.getStep=function(n,t,i){AK.System.alert("@Cart.getStep");n.cartSteps=null;t.getCartSteps(i).success(function(t){n.cartSteps=t;$("#CartStepContainer").removeClass("visibilityOff")})};AK.Cart.getBig=function(n,t,i,r,u,f,e,o,s){AK.System.alert("@Cart.getCart");t.selectedCart=null;t.cartPriceTypes=null;t.footerItems=null;t.footerContent="";t.cartType=u;t.removeAllMessage=o;t.paging={Page:s,Size:5,Total:1};t.importInfo=null;t.bllCartType=undefined;t.importHandleFileSelect=function(r){var o,h,u,s,f,e;for(AK.System.alert("@Cart.importClick"),o=r.files,h=[],u=0;s=o[u];u++)f=[],e=new FileReader,e.onload=function(r){for(var u,e,c,l=r.target.result,h=l.split(/[\r\n]+/g),o=0,s=0;s<h.length;s++)u=h[s].split(";"),u.length===4&&(e={ProductCode:u[0],Amount:Number(u[1]),UserNote:u[2],InvoiceNote:u[3]},o=o+Number(e.Amount),e.ProductCode.length>0&&e.Amount>0&&e.Amount<1001&&o<1001&&f.push(e));c=JSON.stringify(f);n.akDataLoadingStringAdd("CartImportData");i.getCartImport(c).then(function(i){n.akDataLoadingStringRemove("CartImportData");t.importInfo=i.data;i.data.ImportSucceded===!0?(t.getCartSelected(t.selectedCart.Id,t.cartType,1),i.Message.length>0&&AK.System.ShowMessage(i.Message)):i.data.FailedItems!=null&&i.data.FailedItems.length>0?$("#ModalImportFailed").modal("show"):AK.System.ShowMessage(i.Message)},function(){AK.System.alert("Cart import failed");n.akDataLoadingStringRemove("CartImportData")})},e.readAsText(s,"UTF-8")};t.exportFile=function(n,r){if(t.selectedCart.Items.length<=0)return AK.System.ShowMessage(r),!1;i.getCartExportContent(t.selectedCart.Id).success(function(n){var i,t;if(n.length<=0)return AK.System.ShowMessage(r),!1;window.navigator.msSaveOrOpenBlob?(i=new Blob([decodeURIComponent(encodeURI(n))],{type:"text/csv;charset=utf-8;"}),navigator.msSaveBlob(i,"Export.csv")):(t=document.createElement("a"),t.href="data:attachment/csv,"+encodeURI(n),t.target="_blank",t.download="Export.csv",document.body.appendChild(t),t.click())})};n.cartItemNote={cartId:"",cartItemId:"",note:"",noteInvoice:""};t.cartSelectClick=function(t,r){i.getCartSelected(t,r,1).success(function(t){n.$emit("RefreshCart",t.SelectedCart,t.HeaderData,t.BllCartType)})};t.cartItemAmountChange=function(t,r,u,f,e,o){var s=angular.element(t.currentTarget).val(),h;if(s<=0||(h=s%f,h>0))return!1;i.getCartItemActionValue(r,u,e,o,s).success(function(t){n.$emit("RefreshCart",t.SelectedCart,t.HeaderData,t.BllCartType)})};t.cartItemAmountDecrease=function(t,r,u,f,e){var o=parseInt(f);o>0&&i.getCartItemAction(t,r,u,e).success(function(t){n.$emit("RefreshCart",t.SelectedCart,t.HeaderData,t.BllCartType)})};t.cartItemAction=function(t,r,u,f){i.getCartItemAction(t,r,u,f).success(function(t){n.$emit("RefreshCart",t.SelectedCart,t.HeaderData,t.BllCartType)})};t.cartItemNoteEdit=function(t,i,r,u){n.cartItemNote.cartId=t;n.cartItemNote.cartItemId=i;n.$emit("SetCartItemNote",r,u)};t.cartPriceTypeSelect=function(r,u){i.setCartPrice(r,u).success(function(i){t.selectedCart=i.selectedCart;n.$emit("RefreshCart",i.selectedCart,i.headerData,i.BllCartType)})};t.getCartSelected=function(t,r,u){n.akDataLoadingStringAdd("LoadCartSelected");i.getCartSelected(t,r,u).success(function(t){n.$emit("RefreshCart",t.SelectedCart,t.HeaderData,t.BllCartType);n.akDataLoadingStringRemove("LoadCartSelected")})};t.getCartSelected(r,u,t.paging.Page);t.loadItems=function(){n.akDataLoadingStringAdd("CartShowNext");i.getCartItemsNext(t.selectedCart.Id,t.cartType,t.paging.Page).then(function(i){var r=i.data;r!==null&&r.Items!==null&&(t.selectedCart.Items=r.Items,t.bllCartType=r.bllCartType,t.setFooterItems());n.akDataLoadingStringRemove("CartShowNext")},function(){AK.System.alert("Get next cart items list failed");n.akDataLoadingStringRemove("CartShowNext")})};t.showNext=function(){n.akDataLoadingStringAdd("CartShowNext");i.getCartItemsNext(t.selectedCart.Id,t.cartType,t.paging.Page+1).then(function(i){var r=i.data;r!==null&&r.Items!==null&&(t.selectedCart.Items=t.selectedCart.Items.concat(r.Items),t.bllCartType=r.bllCartType,t.paging.Page=t.paging.Page+1,t.setRange());n.akDataLoadingStringRemove("CartShowNext")},function(){AK.System.alert("Get next cart items list failed");n.akDataLoadingStringRemove("CartShowNext")})};i.getCartPriceTypes().success(function(n){t.cartPriceTypes=n});n.$on("RefreshCart",function(n,i,r,u){if(t.selectedCart=i,t.bllCartType=u,i.Paging==undefined||i.Paging==null){t.loadItems();return}t.setFooterItems();t.paging=i.Paging;t.setRange();$("#CartBigContainer").removeClass("visibilityOff")});t.setFooterItems=function(){angular.forEach(t.footerItems,function(n){n.Visible=!0;t.bllCartType!=undefined&&t.bllCartType==BllCartTypes.MarketingPackage&&(n.Type==FooterItemType.ProductAdd||n.Type==FooterItemType.Export||n.Type==FooterItemType.Import||n.Type==FooterItemType.SendEmail||n.Type==FooterItemType.RemoveAll)&&(n.Visible=!1)})};i.getCartFooterItems().success(function(n){t.footerItems=n;t.setFooterItems()});t.footerTabClick=function(n,r,u){if(r==="RemoveAll")return window.confirm(t.removeAllMessage)?!0:(n.preventDefault(),!1);if(r==="Print")return AK.System.NewWindow("/cart/print","CartPrint",800,600,1,1,1,1),!1;t.footerItems[u].IsLoaded===!1?i.getCartFooterItemContent(r).success(function(n){t.footerItems[u].Content=f.trustAsHtml(n);t.footerItems[u].IsLoaded=!0;t.footerContent=t.footerItems[u].Content}):t.footerContent=t.footerItems[u].Content};t.cartOneClickOrder=function(n){AK.System.alert("@Cart.onEvent.CartOneClickOrder("+n+")");i.cart.oneClickOrder(n).success(function(n){AK.System.ShowModalMessage(n.message);n.isOrdered==!0&&(t.paging.Page=1,t.getCartSelected(n.cartId,t.cartType,t.paging.Page))})};t.saveNote=function(n){i.setCartItemNote(t.selectedCart.Id,n.Id,n.Note,n.NoteInvoice).success(function(){})};t.ranges=[];t.setRange=function(){var i=5,r=Math.ceil(i/2)-1,u,f=t.paging.Total,n;for(u=t.paging.Page<=r+1?1:t.paging.Page>f-r?Math.max(1,f-i+1):t.paging.Page-r+1,t.ranges=[],n=u;n<u+i-1;n++)n>=1&&n<=f&&t.ranges.push(n)};t.setRange();t.prevPage=function(){t.paging.Page>1&&t.setPage(t.paging.Page-1)};t.prevPageDisabled=function(){return t.paging.Page===1?"prev disabled":""};t.nextPage=function(){t.paging.Page<t.paging.Total&&t.setPage(t.paging.Page+1)};t.nextPageDisabled=function(){return t.paging.Page===t.paging.Total?"next disabled":""};t.setPage=function(n){t.paging.Page=n;t.loadItems()}};AK.Cart.getItemNoteModal=function(n,t,i){AK.System.alert("@Cart.getItemNoteModal");t.note="";t.noteInvoice="";n.$on("SetCartItemNote",function(n,i,r){t.note=i;t.noteInvoice=r});t.noteSave=function(){i.setCartItemNote(n.cartItemNote.cartId,n.cartItemNote.cartItemId,t.note,t.noteInvoice).success(function(t){n.$emit("RefreshCart",t.SelectedCart,t.HeaderData,t.BllCartType);n.cartItemNote.cartId="";n.cartItemNote.cartItemId="";$("#CartItemNoteModal").modal("hide")})}};AK.Cart.getProductAdd=function(n,t,i,r){AK.System.alert("@Cart.getProductAdd");t.amount=1;t.code="";t.note="";t.noteInvoice="";t.oeDeliveryEnabled=r=="true";t.productAddClick=function(){var n=t.amount,r=t.code;n.length<1||r.length<3?AK.System.ShowMessage("Položky objednací kód i počet kusů musí byt zadany!"):n<1?AK.System.ShowMessage("Počet kusů nesmí byt menší než 1!"):t.oeDeliveryEnabled?i.elitOeDelivery.getHasDataCode(t.code).then(function(n){AK.System.alert("Load cart product from code has oedelivery success");n.data.data!=undefined&&n.data.data!=""&&n.data.data.HasData===!0?t.showOeDeliveryModal(n.data.data.ProductId):t.sendAddProduct()},function(){AK.System.alert("Load cart product from code has oedelivery failed")}):t.sendAddProduct()};t.sendAddProduct=function(){i.addCartProductCode(t.code,t.amount,t.note,t.noteInvoice).success(function(i){AK.System.ShowMessage(i.ResultMessage);i.IsAdded===!0&&(n.$emit("RefreshCart",i.SelectedCart,i.HeaderData,i.BllCartType),t.amount="1",t.code="",t.note="")})};t.showOeDeliveryModal=function(i){$("#ModalOeDeliveryCart").modal("show");n.OEDeliveryProductId=i;t.oeDeliverySelectedProduct={Id:i,Code:t.code,Amount:t.amount,NonReversible:!1,StepAmount:1,Note:t.note};var r=angular.element(document.getElementById("ProductOeDeliveryControlCart")).scope();r.setData(t.oeDeliverySelectedProduct);t.amount="1";t.code="";t.note=""};AK.Common.loadDigitOnly();t.codeKeypress=function(n){n.which===13&&t.productAddClick()}};AK.Cart.addProduct=function(n,t,i,r,u){AK.System.alert("@Cart.addproduct("+n+","+t+","+i+")");var f=t%i;if(f>0)return!1;r.addCartProduct(n,t,"").success(function(n){AK.System.ShowMessage(n.ResultMessage);n.IsAdded===!0&&u.$emit("RefreshCart",n.selectedCart,n.HeaderData,n.BllCartType)})};AK.Cart.getRecapitulation=function(n,t,r,u,f,e,o,s,h,c,l){AK.System.alert("@Cart.getRecapitulation");t.userInfo=null;t.takeOff=null;t.payment=null;t.selectedCart=null;t.priceWithDelivery=null;t.hasFlashSales=!1;t.flashSalesModalBody="";t.hasCalendarSales=!1;t.calendarSalesModalBody="";t.cartType=o;t.paging={Page:e,Size:5,Total:1};t.showDisponibility=f==="true";t.promiseEnabled=h==="true";t.updatePromiseEnabled=c==="true";t.hasOldExpressDelivery=!1;t.showPersonalAgreement=s.toLowerCase()==="true";t.hasPersonalAgreement=!1;t.formSubmitted=!1;t.marketingCouponEnabled=l==="true";t.loadSum=function(n,i){n===!0&&r.getCartSumTotal(i).then(function(n){n.data.TotalSum!=undefined&&(t.selectedCart.RetailPrice=n.data.TotalSum.RetailPrice,t.selectedCart.RetailPriceVat=n.data.TotalSum.RetailPriceVat,t.selectedCart.Price=n.data.TotalSum.Price,t.selectedCart.PriceVat=n.data.TotalSum.PriceVat,t.selectedCart.Vats=n.data.TotalSum.Vats)},function(){})};t.loadPrices=function(n){if(n!=undefined&&n.Items!=undefined){var i=n.Items.filter(function(n){return n.LoadUserPrice==!0}).map(function(n){return{Id:n.ProductId,Amount:n.Amount}});i!=undefined&&i.length>0&&r.getCartUserPrice(i).then(function(n){n.data.Content!=undefined?t.selectedCart.Items.forEach(function(t){var i=AK.Common.altFind(n.data.Content,function(n){return n.ProductId==t.ProductId});i!=undefined&&(t.Price=i.Price,t.PriceVat=i.PriceVat,t.PriceOnePiece=i.PriceOnePiece,t.Discount=i.Discount)}):n.data.error!=undefined&&AK.System.alert(n.data.error)},function(){})}};t.cartCoupon="";t.coupon={IsValid:!1,Code:"",Url:"",Values:null,IsMinValuePassed:!1,IsProductGroupRestricted:!1,DiscountTypeId:0};t.isCouponVerified=!1;t.couponVerify=function(){if(t.marketingCouponEnabled!=!1)if(t.isCouponVerified=!0,t.coupon.Code.length>0){var n=t.selectedCart.Items.map(function(n){if(n.IsCouponApplyable)return{ProductId:n.ProductId,Amount:Number(n.Amount)}}).filter(function(n){return n});r.marketingCoupon.verify(t.coupon.Code,n,t.selectedCart.Id).then(function(n){t.coupon=n.data.coupon;t.coupon.IsValid===!0?(t.totalSumCoupon=n.data.totalSumCoupon,n.data.items&&n.data.items.Content&&angular.forEach(n.data.items.Content,function(n){angular.forEach(t.selectedCart.Items,function(t){t.ProductId===n.ProductId&&Number(t.Amount)===n.Amount&&(t.CouponPrice=n.CouponPrice,t.IsCouponApplyable=n.IsCouponApplyable,t.IsCouponPriceDepositUsed=n.IsDepositUsed)})}),t.selectedCart.PriceTypeId||(t.selectedCart.PriceTypeId=n.data.priceTypeId)):(t.couponClear(),$("#CouponInvalidModal").modal("show"));t.isCouponVerified=!0;n.data.giftReload===!0&&t.loadItems()},function(){t.isCouponVerified=!0;AK.System.alert("Error verify coupon")})}else t.isCouponVerified=!0};t.couponCancel=function(){if(t.marketingCouponEnabled!=!1){var n=t.coupon.DiscountTypeId;t.coupon.IsValid=!1;t.isCouponVerified=!1;t.couponClear();r.marketingCoupon.cancel(t.selectedCart.Id).then(function(i){i.data===!0&&(AK.System.alert("Cancel coupon success"),n===3&&t.loadItems())},function(){AK.System.alert("Error cancel coupon")})}};t.couponClear=function(){t.marketingCouponEnabled!=!1&&(t.coupon.Code="",t.coupon.Values=null,t.totalSumCoupon=null,angular.forEach(t.selectedCart.Items,function(n){n.CouponPrice=""}))};r.getCartRecapitulationData().success(function(n){t.userInfo=u.trustAsHtml(n.UserInfo);t.takeOff=u.trustAsHtml(n.TakeOff);t.payment=u.trustAsHtml(n.Payment);t.selectedCart=n.SelectedCart;t.loadSum(n.LoadUserPrice,n.SelectedCart.Id);t.loadPrices(n.SelectedCart);t.paging=n.SelectedCart.Paging;t.setRange();t.priceWithDelivery=n.PriceWithDelivery;t.hasFlashSales=n.HasFlashSales===!0;t.hasCalendarSales=n.HasCalendarSales===!0;t.hasOldExpressDelivery=n.HasOldExpressDelivery===!0;$("#CartRecapitulationContainer").removeClass("visibilityOff");t.promiseEnabled==!0?(t.loadPromise(),t.hasOldExpressDelivery==!0&&t.reloadPromiseExpress()):t.showDisponibility&&t.loadDisponibility();t.coupon.Code=n.CartCouponCode?n.CartCouponCode:"";t.couponVerify();setTimeout(function(){AK.Common.setDatetimepicker()},1e3)});t.loadDisponibility=function(){r.cart.getRecapitulationDisponibility().then(function(n){if(n.data.ErrorMessage.length<=0)for(i=0;i<t.selectedCart.Items.length;i++){var r=t.selectedCart.Items[i].Id;for(ir=0;ir<n.data.Disponibility.length;ir++)r===n.data.Disponibility[ir].CartItemId&&(t.selectedCart.Items[i].Disponibility=n.data.Disponibility[ir].Data,n.data.Disponibility[ir].Tooltip!=undefined&&n.data.Disponibility[ir].Tooltip!=null&&(t.selectedCart.Items[i].Disponibility.Tooltip=n.data.Disponibility[ir].Tooltip),n.data.Disponibility[ir].IsDeliveryExpress==!0&&(t.selectedCart.Items[i].Stock=n.data.Disponibility[ir].ShortText))}else AK.System.alert("Cart recapitulation load disponibility failed")},function(){AK.System.alert("Cart recapitulation load disponibility failed")})};t.loadPromise=function(){r.cart.getRecapitulationPromise().then(function(n){if(n.data.errorMessage.length<=0)for(i=0;i<t.selectedCart.Items.length;i++){var r=t.selectedCart.Items[i].Id;for(ir=0;ir<n.data.disponibility.length;ir++)r===n.data.disponibility[ir].CartItemId&&(t.selectedCart.Items[i].disponibility=n.data.disponibility[ir].Items.slice(0,3))}else AK.System.alert("Cart recapitulation load disponibility failed")},function(){AK.System.alert("Cart recapitulation load disponibility failed")})};t.isloadingExpressDelivery=!1;t.reloadPromiseExpress=function(){$("#ReloadExpressPromise").modal("show");t.isloadingExpressDelivery=!0;r.cart.getPromiseExpress().then(function(n){if(n.data.errorMessage.length<=0){for(i=0;i<t.selectedCart.Items.length;i++){var r=t.selectedCart.Items[i].Id;for(ir=0;ir<n.data.disponibility.length;ir++)r===n.data.disponibility[ir].CartItemId&&(t.selectedCart.Items[i].disponibility=n.data.disponibility[ir].Items.slice(0,3))}t.hasOldExpressDelivery=!1}else AK.System.alert("Cart recapitulation reload promise express failed");t.isloadingExpressDelivery=!1;t.hasOldExpressDelivery=!1;$("#ReloadExpressPromise").modal("hide");t.updatePromiseEnabled&&t.updateExpressNPromise(n.data.disponibility)},function(){AK.System.alert("Cart recapitulation reload promise express failed");t.isloadingExpressDelivery=!1;$("#ReloadExpressPromise").modal("show")})};t.updateExpressNPromise=function(n){r.cart.updateNPromise(t.selectedCart.Id,n).then(function(n){n.data.errorMessage.length>0&&AK.System.alert("Update N promise error: "+n.data.errorMessage)},function(){AK.System.alert("Update promise  failed")})};t.checkPersonalAgreement=function(){t.showPersonalAgreement&&!t.hasPersonalAgreement?t.formSubmitted=!0:t.makeOrder()};t.checkFlashSalesClick=function(){t.hasFlashSales?r.getCartFlashSalesSplit().success(function(n){n.length>0?(t.flashSalesModalBody=n,$("#CartSplitModal").modal("show")):t.checkPersonalAgreement()}):t.checkPersonalAgreement()};t.checkCalendarSalesClick=function(){t.hasCalendarSales?r.getCartCalendarSalesSplit().success(function(n){n.length>0?(t.calendarSalesModalBody=n,$("#CartSplitModal2").modal("show")):t.checkPersonalAgreement()}):t.checkPersonalAgreement()};t.makeCartOrderClick=function(){};t.makeOrderSplit=function(){$("#CartSplitModal").modal("hide");t.makeOrder()};t.makeOrder=function(){$("#CartRecapitulationOrderBtn").click()};t.logoutAfterOrder=!1;t.makeOrderLogoutClick=function(){$("#logoutAfterOrderTextBox").val("true");t.makeOrder()};t.loadItems=function(){n.akDataLoadingStringAdd("CartRecapitulationShowNext");r.getCartItemsNext(t.selectedCart.Id,t.cartType,t.paging.Page).then(function(i){var r=i.data;r!==null&&r.Items!==null&&(t.selectedCart.Items=r.Items,t.showDisponibility&&(t.promiseEnabled==!0?t.loadPromise():t.loadDisponibility(),t.hasOldExpressDelivery==!0&&t.reloadPromiseExpress()),setTimeout(function(){AK.Common.setDatetimepicker()},1e3));n.akDataLoadingStringRemove("CartRecapitulationShowNext")},function(){AK.System.alert("Get next cart items list failed");n.akDataLoadingStringRemove("CartRecapitulationShowNext")})};t.changeDeliveryDate=function(n){var f=n.DeliveryDate,i=moment(f,"DD.MM.YYYY").toDate(),u=new Date;u.setHours(0);u.setMinutes(0);(n.DeliveryDate.length==0||i instanceof Date&&!isNaN(i)&&i>=u)&&r.cart.setItemDelivery(t.selectedCart.Id,n.Id,n.DeliveryDate,n.DeliveryLocation,n.DeliveryCashAndCarry).then(function(n){n.data.errorMessage.length>0&&AK.System.Message(n.data.errorMessage);AK.System.alert("Set cartitem delivery date success")},function(){AK.System.alert("Set cartitem delivery date failed")})};t.showNext=function(){n.akDataLoadingStringAdd("CartRecapitulationShowNext");r.getCartItemsNext(t.selectedCart.Id,t.cartType,t.paging.Page+1).then(function(i){var r=i.data;r!==null&&r.Items!==null&&(t.selectedCart.Items=t.selectedCart.Items.concat(r.Items),t.paging.Page=t.paging.Page+1,t.setRange(),t.showDisponibility&&(t.promiseEnabled==!0?t.loadPromise():t.loadDisponibility(),t.hasOldExpressDelivery==!0&&t.reloadPromiseExpress()));n.akDataLoadingStringRemove("CartRecapitulationShowNext")},function(){AK.System.alert("Get next cart items list failed");n.akDataLoadingStringRemove("CartRecapitulationShowNext")})};t.changeTakeOffStorage=function(n){r.cart.setItemTakeOffStorage(t.selectedCart.Id,n.Id,n.HasTakeOffStorage).then(function(){AK.System.alert("Set cart item takeOffstorage succeed")},function(){AK.System.alert("Set cart item takeOffstorage failed")})};t.ranges=[];t.setRange=function(){var i=5,r=Math.ceil(i/2)-1,u,f=t.paging.Total,n;for(u=t.paging.Page<=r+1?1:t.paging.Page>f-r?Math.max(1,f-i+1):t.paging.Page-r+1,t.ranges=[],n=u;n<u+i-1;n++)n>=1&&n<=f&&t.ranges.push(n)};t.setRange();t.prevPage=function(){t.paging.Page>1&&t.setPage(t.paging.Page-1)};t.prevPageDisabled=function(){return t.paging.Page===1?"prev disabled":""};t.nextPage=function(){t.paging.Page<t.paging.Total&&t.setPage(t.paging.Page+1)};t.nextPageDisabled=function(){return t.paging.Page===t.paging.Total?"next disabled":""};t.setPage=function(n){t.paging.Page=n;t.loadItems()}};AK.Cart.initPrint=function(n,t,i){AK.System.alert("@Cart.initPrint");t.data=undefined;t.showPrice=!1;t.loadData=function(){i.cart.getPrintData().then(function(i){t.data=i.data;n.akDataLoadingStringRemove("CartPrintLoadData")},function(){n.akDataLoadingStringRemove("CartPrintLoadData")})};n.akDataLoadingStringAdd("CartPrintLoadData");t.loadData();t.showPriceSwitch=function(){t.showPrice=!t.showPrice;t.setTextboxValues()};t.setTextboxValues=function(){angular.forEach(t.data.CartItems,function(n){n.TextBoxPriceValue=t.showPrice?n.Price:"";n.TextBoxPriceVatValue=t.showPrice?n.PriceVat:""});t.data.TextBoxPriceSumValue=t.showPrice?t.data.PriceSum:"";t.data.TextBoxPriceVatSumValue=t.showPrice?t.data.PriceVatSum:""}};PriceCartTypes={MOCVat:1,MOC:2,VOCVat:3,VOC:4};AK.Cart2.getBig=function(n,t,r,u,f,e,o,s,h,c,l,a,v,y){AK.System.alert("@Cart.getCart");t.selectedCart=null;t.cartPriceTypes=null;t.footerItems=null;t.footerContent="";t.cartType=f;t.removeAllMessage=s;t.paging={Page:h,Size:5,Total:1};t.importInfo=null;t.bllCartType=undefined;t.showEmptyFilter=JSON.parse(c);t.panes=[];t.elitTimeAvailability2Enabled=a=="true";t.loadDisponibilityEnabled=v=="true";t.disponibilityLoaded=!1;t.loadPromiseEnabled=y=="true";t.importHandleFileSelect=function(i){var o,h,f,s,u,e;for(AK.System.alert("@Cart.importClick"),o=i.files,h=[],f=0;s=o[f];f++)u=[],e=new FileReader,e.onload=function(i){for(var f,o,s,l,a=i.target.result,c=a.split(/[\r\n]+/g),e=0,h=0;h<c.length;h++)f=c[h].split(";"),f.length===4&&(o={ProductCode:f[0],Amount:Number(f[1]),UserNote:f[2],InvoiceNote:f[3]},e=e+Number(o.Amount),o.ProductCode.length>0&&o.Amount>0&&o.Amount<1001&&e<1001&&u.push(o)),f.length===3&&(s={ProductCode:f[0],Amount:Number(f[1]),UserNote:f[2],InvoiceNote:""},e=e+Number(s.Amount),s.ProductCode.length>0&&s.Amount>0&&s.Amount<1001&&e<1001&&u.push(s));l=JSON.stringify(u);n.akDataLoadingStringAdd("CartImportData");r.getCartImport(l).then(function(i){n.akDataLoadingStringRemove("CartImportData");t.importInfo=i.data;i.data.ImportSucceded===!0?(t.getCartSelected(t.selectedCart.Id,t.cartType,1),i.data.Message.length>0&&AK.System.ShowMessage(i.data.Message)):i.data.FailedItems!=null&&i.data.FailedItems.length>0?$("#ModalImportFailed").modal("show"):AK.System.ShowMessage(i.Message)},function(){AK.System.alert("Cart import failed");n.akDataLoadingStringRemove("CartImportData")})},e.readAsText(s,"UTF-8")};t.exportFile=function(n,i){if(t.selectedCart.Items.length<=0)return AK.System.ShowMessage(i),!1;r.getCartExportContent(t.selectedCart.Id).success(function(n){var r,t;if(n.length<=0)return AK.System.ShowMessage(i),!1;window.navigator.msSaveOrOpenBlob?(r=new Blob([decodeURIComponent(encodeURI(n))],{type:"text/csv;charset=utf-8;"}),navigator.msSaveBlob(r,"Export.csv")):(t=document.createElement("a"),t.href="data:attachment/csv,"+encodeURI(n),t.target="_blank",t.download="Export.csv",document.body.appendChild(t),t.click())})};n.cartItemNote={cartId:"",cartItemId:"",note:"",noteInvoice:""};t.cartSelectClick=function(t,i){r.getCartSelected(t,i,1).success(function(t){n.$emit("RefreshCart",t.SelectedCart,t.HeaderData,t.BllCartType)})};t.cartItemAmountChange=function(t,i,u,f,e){var o=angular.element(t.currentTarget).val(),s;if(o<=0||(s=o%i.StepAmount,s>0))return!1;r.getCartItemActionValue(u,i.Id,f,e,o).success(function(t){n.$emit("RefreshCart",t.SelectedCart,t.HeaderData,t.BllCartType);n.$emit("ReloadTimeAvailability",t.SelectedCart,i.Id)})};t.cartItemAmountDecrease=function(t,i,u,f,e){var o=parseInt(f);o>0&&r.getCartItemAction(i,t.Id,u,e).success(function(i){n.$emit("RefreshCart",i.SelectedCart,i.HeaderData,i.BllCartType);n.$emit("ReloadTimeAvailability",i.SelectedCart,t.Id)})};t.cartItemAmountIncrease=function(t,i,u,f){r.getCartItemAction(t,i,u,f).success(function(t){n.$emit("RefreshCart",t.SelectedCart,t.HeaderData,t.BllCartType);n.$emit("ReloadTimeAvailability",t.SelectedCart,i)})};t.cartItemAction=function(t,i,u,f){r.getCartItemAction(t,i,u,f).success(function(t){n.$emit("RefreshCart",t.SelectedCart,t.HeaderData,t.BllCartType)})};t.cartItemNoteEdit=function(t,i,r,u){n.cartItemNote.cartId=t;n.cartItemNote.cartItemId=i;n.$emit("SetCartItemNote",r,u)};t.cartPriceTypeSelect=function(i,u){r.setCartPrice(i,u).success(function(i){t.selectedCart=i.selectedCart;n.$emit("RefreshCart",i.selectedCart,i.headerData,i.BllCartType)})};t.getCartSelected=function(t,i,u){n.akDataLoadingStringAdd("LoadCartSelected");r.getCartSelected(t,i,u).success(function(t){n.$emit("RefreshCart",t.SelectedCart,t.HeaderData,t.BllCartType);n.akDataLoadingStringRemove("LoadCartSelected")})};t.getCartSelected(u,f,t.paging.Page);t.loadItems=function(){n.akDataLoadingStringAdd("CartShowNext");r.getCartItemsNext(t.selectedCart.Id,t.cartType,t.paging.Page).then(function(i){var r=i.data;r!==null&&r.Items!==null&&(t.selectedCart.Items=r.Items,t.setItemsToPane(),t.bllCartType=r.bllCartType,t.setFooterItems(),t.coupon.IsValid&&t.coupon.IsValid===!0&&t.couponVerify(),t.loadPromiseEnabled&&t.loadPromise(),t.loadDisponibilityEnabled&&t.loadDisponibility());n.akDataLoadingStringRemove("CartShowNext")},function(){AK.System.alert("Get next cart items list failed");n.akDataLoadingStringRemove("CartShowNext")})};t.showNext=function(){n.akDataLoadingStringAdd("CartShowNext");r.getCartItemsNext(t.selectedCart.Id,t.cartType,t.paging.Page+1).then(function(i){var r=i.data;r!==null&&r.Items!==null&&(t.selectedCart.Items=t.selectedCart.Items.concat(r.Items),t.setItemsToPane(),t.bllCartType=r.bllCartType,t.paging.Page=t.paging.Page+1,t.setRange(),t.loadPromiseEnabled&&t.loadPromise(),t.loadDisponibilityEnabled&&t.loadDisponibility());n.akDataLoadingStringRemove("CartShowNext")},function(){AK.System.alert("Get next cart items list failed");n.akDataLoadingStringRemove("CartShowNext")})};r.getCartPriceTypes().success(function(n){t.cartPriceTypes=n});n.$on("RefreshCart",function(n,i,r,u){var e=t.selectedCart==null||t.selectedCart.Id!=i.Id,f;if(t.loadPrices(i),t.loadSum(r.LoadUserPrice,i.Id),r.LoadUserPrice===!0&&t.selectedCart&&(i.Price=t.selectedCart.Price,i.PriceVat=t.selectedCart.PriceVat,i.Vats=t.selectedCart.Vats),t.selectedCart=i,t.bllCartType=u,i.Paging==undefined||i.Paging==null){t.loadItems();t.loadPanes();return}t.setFooterItems();t.paging=i.Paging;t.setRange();$("#CartBigContainer").removeClass("visibilityOff");e?t.loadPanes():t.setPaneValues();t.selectedCart.CouponCode==""?(t.coupon.IsValid=!1,t.isCouponVerified=!1,t.couponClear(),l=""):t.isCouponVerified===!1&&t.selectedCart.CouponCode!==""?(t.couponClear(),l="",t.coupon.Code=t.selectedCart.CouponCode,t.couponVerify()):t.isCouponVerified===!1&&l.length>0?(t.coupon.Code=l,l="",t.couponVerify()):t.coupon.IsValid&&t.coupon.IsValid===!0&&t.couponVerify();t.elitTimeAvailability2Enabled&&(t.setTimeAvailabilityInfo(),f=i.Items.filter(function(n){return n.LoadUserPrice==!0}).map(function(n){return{ProductId:n.ProductId,Amount:n.Amount}}),t.loadElitTimeAvailability(f));t.loadDisponibilityEnabled&&t.loadDisponibility();t.loadPromiseEnabled&&t.loadPromise()});n.$on("ReloadCartPanes",function(n,i){t.selectedCart.Id.toLowerCase()==i.toLowerCase()&&t.loadPanes()});t.setPaneValues=function(){var n="",i;n=t.selectedCart.PriceTypeId==PriceCartTypes.MOC||t.selectedCart.PriceTypeId==PriceCartTypes.VOC?t.selectedCart.Price:t.selectedCart.PriceVat;i=t.selectedCart.Items.length>0?t.selectedCart.Items.map(function(n){return Number(n.Amount)}).reduce(function(n,t){return n+Number(t)}):0;angular.forEach(t.panes,function(r){t.selectedCart.Id==r.Id&&(r.Price=n,r.Count=i,r.Items=t.selectedCart.Items)})};t.setFooterItems=function(){angular.forEach(t.footerItems,function(n){n.Visible=!0;t.bllCartType!=undefined&&t.bllCartType==BllCartTypes.MarketingPackage&&(n.Type==FooterItemType.ProductAdd||n.Type==FooterItemType.Export||n.Type==FooterItemType.Import||n.Type==FooterItemType.SendEmail||n.Type==FooterItemType.RemoveAll)&&(n.Visible=!1)})};r.getCartFooterItems().success(function(n){t.footerItems=n;t.setFooterItems()});t.footerTabClick=function(n,i,u){if(i==="RemoveAll")return window.confirm(t.removeAllMessage)?!0:(n.preventDefault(),!1);if(i==="Print")return AK.System.NewWindow("/cart/print","CartPrint",800,600,1,1,1,1),!1;t.footerItems[u].IsLoaded===!1?r.getCartFooterItemContent(i).success(function(n){t.footerItems[u].Content=e.trustAsHtml(n);t.footerItems[u].IsLoaded=!0;t.footerContent=t.footerItems[u].Content}):t.footerContent=t.footerItems[u].Content};t.oneClickNote="";t.oneClickInvoiceNote="";t.cartOneClickOrder=function(n,i){AK.System.alert("@Cart.onEvent.CartOneClickOrder("+n+")");r.cart.oneClickOrder(n,t.oneClickNote,t.oneClickInvoiceNote).success(function(n){if($("#OneClickNoteModal").modal("hide"),AK.System.ShowModalMessage(n.message),n.isOrdered==!0){if(i){window.location=AK.System.url+"/Account/Logout";return}t.paging.Page=1;t.getCartSelected(n.cartId,t.cartType,t.paging.Page)}})};t.selectCart=function(n){t.selectedCart.Id!=n&&(t.isCouponVerified=!1,t.isCouponManualVerified=!1,t.loadCart(n))};t.loadSum=function(n,i){n!=!1&&i!=undefined&&(r.getCartSum().then(function(n){n.data.TotalSum!=undefined?angular.forEach(n.data.TotalSum,function(n){angular.forEach(t.panes,function(t){t.Id==n.CartId&&(t.Count=n.Amount,t.Price=n.Price)})}):n.data.error!=undefined&&AK.System.alert(n.data.error)},function(){}),r.getCartSumTotal(i).then(function(n){n.data.TotalSum!=undefined&&(t.selectedCart.RetailPrice=n.data.TotalSum.RetailPrice,t.selectedCart.RetailPriceVat=n.data.TotalSum.RetailPriceVat,t.selectedCart.Price=n.data.TotalSum.Price,t.selectedCart.PriceVat=n.data.TotalSum.PriceVat,t.selectedCart.Vats=n.data.TotalSum.Vats)},function(){}))};t.loadPrices=function(n){if(n!=undefined&&n.Items!=undefined){var i=n.Items.filter(function(n){return n.LoadUserPrice==!0}).map(function(n){return{Id:n.ProductId,Amount:n.Amount}});i!=undefined&&i.length>0&&r.getCartUserPrice(i).then(function(n){n.data.Content!=undefined?t.selectedCart.Items.forEach(function(t){var i=AK.Common.altFind(n.data.Content,function(n){return n.ProductId==t.ProductId});i!=undefined&&(t.Price=i.Price,t.PriceVat=i.PriceVat,t.PriceOnePiece=i.PriceOnePiece,t.Discount=i.Discount)}):n.data.error!=undefined&&AK.System.alert(n.data.error)},function(){})}};t.loadDisponibility=function(){t.disponibilityLoaded=!1;r.cart.getRecapitulationDisponibility().then(function(n){if(n.data.ErrorMessage.length<=0){for(i=0;i<t.selectedCart.Items.length;i++){var r=t.selectedCart.Items[i].Id;for(ir=0;ir<n.data.Disponibility.length;ir++)r===n.data.Disponibility[ir].CartItemId&&(t.selectedCart.Items[i].Disponibility=n.data.Disponibility[ir].Data,n.data.Disponibility[ir].Tooltip!=undefined&&n.data.Disponibility[ir].Tooltip!=null&&(t.selectedCart.Items[i].Disponibility.Tooltip=n.data.Disponibility[ir].Tooltip),n.data.Disponibility[ir].IsDeliveryExpress==!0&&(t.selectedCart.Items[i].Stock=n.data.Disponibility[ir].ShortText))}t.disponibilityLoaded=!0}else AK.System.alert("Cart load disponibility failed"),t.disponibilityLoaded=!1},function(){AK.System.alert("Cart load disponibility failed");t.disponibilityLoaded=!1})};t.loadPromise=function(){t.disponibilityLoaded=!1;r.cart.getPromise().then(function(n){if(n.data.errorMessage.length<=0){for(i=0;i<t.selectedCart.Items.length;i++){var r=t.selectedCart.Items[i].Id;for(ir=0;ir<n.data.disponibility.length;ir++)r===n.data.disponibility[ir].CartItemId&&(t.selectedCart.Items[i].disponibility=n.data.disponibility[ir].Items.slice(0,3))}t.disponibilityLoaded=!0}else AK.System.alert("Cart recapitulation load disponibility failed"),t.disponibilityLoaded=!1},function(){AK.System.alert("Cart recapitulation load disponibility failed");t.disponibilityLoaded=!1})};t.loadCart=function(t){r.cart2.get(t).then(function(t){var i=t.data;i!==null&&i.Items!==null&&n.$emit("RefreshCart",t.data.SelectedCart,t.data.HeaderData,t.data.BllCartType)},function(){AK.System.alert("Get next cart items list failed")})};t.ReloadCartContent=function(n){var t="#collapse-"+n,i=$(selectedCartContent).html();$(t).html(i)};t.loadPanes=function(){r.cart2.getPanes(t.showEmptyFilter).then(function(n){t.panes.length>0?t.setPanesInOrder(n.data.panes):t.panes=n.data.panes;t.setItemsToPane();t.loadPaneSum(n.data.LoadUserPrice)},function(){AK.System.alert("Get next cart items list failed")})};t.loadPaneSum=function(n){n===!0&&r.getCartSum().then(function(n){n.data.TotalSum!=undefined?angular.forEach(n.data.TotalSum,function(n){angular.forEach(t.panes,function(t){t.Id==n.CartId&&(t.Count=n.Amount,t.Price=n.Price)})}):n.data.error!=undefined&&AK.System.alert(n.data.error)},function(){})};t.setPanesInOrder=function(n){var i=[];angular.forEach(n,function(i){angular.forEach(t.panes,function(n,t){i.Id==n.Id&&(i.Order=t)});i.Order==undefined&&(i.Order=n.length)});i=n.sort(function(n,t){return n.Order-t.Order});t.panes=i};t.setItemsToPane=function(){angular.forEach(t.panes,function(n){n.Items=[];n.Id==t.selectedCart.Id&&(n.Items=t.selectedCart.Items)})};t.changeFilter=function(){t.loadPanes()};t.saveNote=function(n){r.setCartItemNote(t.selectedCart.Id,n.Id,n.Note,n.NoteInvoice).success(function(){})};t.coupon={IsValid:!1,Code:"",Url:"",Values:null,IsMinValuePassed:!1,DiscountTypeId:0};t.isCouponVerified=!1;t.isCouponManualVerified=!1;t.couponVerifyClick=function(){t.isCouponManualVerified=!0;t.couponVerify()};t.couponVerify=function(){if(t.coupon.Code.length>0){var n=t.selectedCart.Items.map(function(n){if(n.IsCouponApplyable)return{ProductId:n.ProductId,Amount:Number(n.Amount)}}).filter(function(n){return n});r.marketingCoupon.verify(t.coupon.Code,n,t.selectedCart.Id).then(function(n){t.coupon=n.data.coupon;t.coupon.IsValid===!0?(t.totalSumCoupon=n.data.totalSumCoupon,n.data.items&&n.data.items.Content&&angular.forEach(n.data.items.Content,function(n){angular.forEach(t.selectedCart.Items,function(t){t.ProductId===n.ProductId&&Number(t.Amount)===n.Amount&&(t.CouponPrice=n.CouponPrice,t.IsCouponApplyable=n.IsCouponApplyable,t.IsCouponPriceDepositUsed=n.IsDepositUsed)})}),t.selectedCart.CouponCode=t.coupon.Code,t.selectedCart.PriceTypeId||(t.selectedCart.PriceTypeId=n.data.priceTypeId)):((t.coupon.IsActive===!0&&t.coupon.IsUsed===!0||t.coupon.IsActive===!1&&t.coupon.IsUsed===!1)&&$("#CouponInvalidModal").modal("show"),t.couponClear());t.isCouponVerified=!0;t.isCouponManualVerified===!0&&t.coupon.IsValid===!0&&t.coupon.IsMinValuePassed===!0&&($("#CouponPassedModal").modal("show"),t.isCouponManualVerified=!1);n.data.giftReload===!0&&t.loadCart(t.selectedCart.Id)},function(){t.isCouponVerified=!0;AK.System.alert("Error verify coupon")})}else t.isCouponVerified=!0};t.couponCancel=function(){var n=t.coupon.DiscountTypeId;t.coupon.IsValid=!1;t.isCouponVerified=!1;t.couponClear();r.marketingCoupon.cancel(t.selectedCart.Id).then(function(i){i.data===!0&&(AK.System.alert("Cancel coupon success"),n===3&&t.loadCart(t.selectedCart.Id))},function(){AK.System.alert("Error cancel coupon")})};t.couponClear=function(){t.coupon.Code="";t.coupon.Values=null;t.coupon.DiscountTypeId=0;t.totalSumCoupon=null;angular.forEach(t.selectedCart.Items,function(n){n.CouponPrice="";n.IsCouponPriceDepositUsed=!1})};t.couponCodeKeypress=function(n){n.which===13&&t.couponVerifyClick()};t.loadElitTimeAvailability=function(n){t.elitTimeAvailability2Enabled==!0&&n!=undefined&&n.length>0&&r.getProductElitDisponibility2(n).then(function(n){n.data.items!=undefined?(t.selectedCart.Items.forEach(function(t){var i=AK.Common.altFind(n.data.items,function(n){return n.ProductId==t.ProductId});i!=undefined&&(t.TimeAvailabilities=i.TimeAvailabilities)}),t.setTimeAvailabilityInfo()):n.data.error!=undefined&&AK.System.alert(n.data.error)},function(){})};t.setTimeAvailabilityInfo=function(){t.elitTimeAvailability2Enabled===!0&&t.selectedCart.Items.forEach(function(n){n.TimeAvailabilities&&n.TimeAvailabilities.length>0&&(n.TimeAvailabilities.forEach(function(t){n.DeliveryLocation&&n.DeliveryLocation.length>0&&n.DeliveryLocation==t.Storage&&n.DeliveryDate==t.AvailableFrom&&(n.TimeAvailabilitySelected=t)}),n.TimeAvailabilitySelected==undefined&&n.TimeAvailabilities.forEach(function(i){i.Selected===!0&&(n.TimeAvailabilitySelected=i,t.setItemDelivery(n.Id,i))}))})};t.timeAvailabilitySelect=function(n,i){n.TimeAvailabilities&&(n.TimeAvailabilities.forEach(function(n){n.Selected=n.Id==i.Id}),n.TimeAvailabilitySelected=i,t.setItemDelivery(n.Id,i))};t.setItemDelivery=function(n,i){r.cart.setItemDelivery(t.selectedCart.Id,n,i.AvailableFrom,i.Storage,i.CashAndCarry).then(function(){AK.System.alert("Delivery info save succeed")},function(){AK.System.alert("Delivery info save failed")})};n.$on("ReloadTimeAvailability",function(n,i,r){if(t.elitTimeAvailability2Enabled==!0){var u=i.Items.filter(function(n){return n.Id==r}).map(function(n){return{ProductId:n.ProductId,Amount:n.Amount}});t.loadElitTimeAvailability(u)}});t.ranges=[];t.setRange=function(){var i=5,r=Math.ceil(i/2)-1,u,f=t.paging.Total,n;for(u=t.paging.Page<=r+1?1:t.paging.Page>f-r?Math.max(1,f-i+1):t.paging.Page-r+1,t.ranges=[],n=u;n<u+i-1;n++)n>=1&&n<=f&&t.ranges.push(n)};t.setRange();t.prevPage=function(){t.paging.Page>1&&t.setPage(t.paging.Page-1)};t.prevPageDisabled=function(){return t.paging.Page===1?"prev disabled":""};t.nextPage=function(){t.paging.Page<t.paging.Total&&t.setPage(t.paging.Page+1)};t.nextPageDisabled=function(){return t.paging.Page===t.paging.Total?"next disabled":""};t.setPage=function(n){t.paging.Page=n;t.loadItems()}};AK.Cart.getModal=function(n,t,i,r){AK.System.alert("@Cart.getCreateNewModal");t.cartCreateNew=function(n,i,r){t.cartname="";t.actionType=i;t.cartId=n;t.cartType=r;$("#cartCreateNewModal").modal("show")};t.createNewOk=function(){var r=t.actionType,u=t.cartId,f=t.cartType,e=t.cartname;$("#cartCreateNewModal").modal("hide");i.getCartAction(u,r,f,e).success(function(t){n.$emit("RefreshCart",t.SelectedCart,t.HeaderData,t.BllCartType);AK.System.ShowMessage(t.Message)})};t.createNewCancel=function(){$("#cartCreateNewModal").modal("hide")};t.cartRename=function(n,i,r){t.actionType=i;t.cartId=n;t.cartType=r;$("#cartRenameModal").modal("show")};t.renameOk=function(){var r=t.actionType,u=t.cartId,f=t.cartType,e=t.cartname;$("#cartRenameModal").modal("hide");i.getCartAction(u,r,f,e).success(function(t){n.$emit("RefreshCart",t.SelectedCart,t.HeaderData,t.BllCartType);AK.System.ShowMessage(t.Message)})};t.renameCancel=function(){$("#cartRenameModal").modal("hide")};n.cartActionSelect=function(u,f,e,o,s){t.cartname=s;f.toLowerCase()==="add"?t.cartCreateNew(u,f,o):f.toLowerCase()==="rename"?(t.cartname.length>r.length&&(t.cartname=t.cartname.slice(r.length+1,t.cartname.length)),t.cartRename(u,f,o)):f.toLowerCase()==="remove"?window.confirm(e)&&i.getCartAction(u,f,o,"default").success(function(t){n.$emit("RefreshCart",t.SelectedCart,t.HeaderData,t.BllCartType);AK.System.ShowMessage(t.Message);setTimeout(function(){n.$emit("ReloadCartPanes",t.SelectedCart.Id)},200)}):i.getCartAction(u,f,o,"default").success(function(t){n.$emit("RefreshCart",t.SelectedCart,t.HeaderData,t.BllCartType)})}};AK.TakeOff.initAccordion=function(n,t,r,u,f,e,o){AK.System.alert("@TakeOff.getAccordion");n.panes=undefined;n.selectedType="Unknown";n.paymentPanes=undefined;n.paymentSelectedType="Unknown";n.messageRequiredTakeOff=e;n.messageRequiredPayment=o;n.getPayment=function(){t.getPaymentPanes(n.selectedType,n.paymentSelectedType).success(function(t){for(i=0;i<t.length;i++)t[i].Content=r.trustAsHtml(t[i].Content),t[i].IsOpened===!0&&(n.paymentSelectedType=t[i].Type);n.paymentPanes=t;$("#TakeOffContainer").removeClass("visibilityOff")})};n.paymentPaneClick=function(t,i){var r=$("#PaymentPane"+i).hasClass("collapsed");n.paymentSelectedType=r?i:"Unknown"};t.getTakeOffPanes().success(function(t){n.panes=t;for(i=0;i<n.panes.length;i++)n.panes[i].Content=r.trustAsHtml(n.panes[i].Content),n.panes[i].IsOpened===!0&&(n.selectedType=n.panes[i].Type);n.getPayment();f(function(){AK.Common.setDatetimepicker()});f(function(){$('[data-toggle="tooltipAccordion"]').tooltip()})});n.paneClick=function(i,u,e){if(!e)return!1;var o=$("#TakeOffPane"+u).hasClass("collapsed");if(!o)return n.selectedType=o?u:"Unknown",!1;n.panes[i].IsLoaded===!1&&t.getTakeOffPaneContent(n.panes[i].Type).success(function(t){n.panes[i].Content=r.trustAsHtml(t);n.panes[i].IsLoaded=!0;f(function(){AK.Common.setDatetimepicker()})});n.selectedType=u;n.getPayment()};n.nextClick=function(){if(n.selectedType=="Unknown")return AK.System.ShowMessage(e),!1;if(n.paymentSelectedType=="Unknown")return AK.System.ShowMessage(o),!1;t.sekTakeOffPayment(n.paymentSelectedType).success(function(t){t===!0&&u.$emit("TakeOffSelect",n.selectedType)})}};AK.TakeOff.initStorage=function(n,t,i,r,u,f){AK.System.alert("@TakeOff.getStorage");n.autoregenabled=u==="true";n.storages=null;n.selectedStorage={Id:-1,Text:"",Town:"",Street:"",Zip:"",Latitude:"",Longitude:"",OpeningHours:""};n.type=r;n.isLoged=!1;n.nameValue="";n.phoneValue="";n.emailValue="";n.formSubmitted=!1;AK.TakeOff.mapStorage.isInitialized===!1;var e={};[{name:"osm-js",type:"script",src:"https://unpkg.com/leaflet@1.3.4/dist/leaflet.js",integrity:"sha512-nMMmRyTVoLYqjP9hrbed9S+FzjZHW5gY1TWCHA5ckwXZBadntCNs8kEqAWdrb9O7rxbCaA4lKTIWjDXZxflOcA=="}].forEach(function(n){e[n.name]={loaded:!1,src:n.src,integrity:n.integrity}});$("#takeOffStorageForm").on("keyup keypress",function(n){var t=n.keyCode||n.which;if(t===13)return n.preventDefault(),!1});n.loadItems=function(){i.akDataLoadingStringAdd("TakeOffStorageLoadItems");t.TakeOff.Storage.getItems(n.type).then(function(t){if(i.akDataLoadingStringRemove("TakeOffStorageLoadItems"),n.selectedStorage=t.data.Selected,n.storages=t.data.Storages,n.isLoged=t.data.IsLoged,n.selectedStorage.Id!="NoneSelected")if(f==MAPSOURCETYPE.GoogleMap)AK.TakeOff.maps.scriptLoaded===!0?n.gMapInitialize():n.loadGMapScript();else if(f==MAPSOURCETYPE.OpenStreetMap)if(AK.TakeOff.maps.scriptLoaded===!0)n.osmInitialize();else{var r=[];r.push("osm-js");n.loadScripts(r).then(function(){AK.TakeOff.maps.scriptLoaded=!0;n.osmInitialize()})}$("#TakeOffStorageContainer").removeClass("visibilityOff");typeof smartform!="undefined"&&smartform.rebindAllForms(!1,takeoffStorageReloadSmartForm)},function(){i.akDataLoadingStringRemove("TakeOffStorageLoadItems")})};n.loadItems();n.emailIcoAllowed=!0;n.emailIcoVerify=function(){if(n.isLoged)return!1;var r=n.emailValue,u=n.icoValue;i.akDataLoadingStringAdd("TakeOffStorageEmailVerification");t.TakeOff.emailIcoVerify(r,u).then(function(t){n.emailIcoAllowed=t.data.allowed===!0;AK.System.alert("Email and ico allowed:"+n.emailIcoAllowed);t.data.message.length>0&&(t.data.validitytype==3?i.$emit("OpenTakeOffModalUnregisteredMessage",n.emailValue,t.data.message,"#TakeOffStorageButton"):t.data.validitytype==4?i.$emit("OpenTakeOffModalRegisteredMessage",n.emailValue,t.data.message,"#TakeOffStorageButton"):AK.System.ShowMessage(t.data.message));i.akDataLoadingStringRemove("TakeOffStorageEmailVerification");n.emailIcoAllowed&&$("#TakeOffStorageButton").click()},function(){i.akDataLoadingStringRemove("TakeOffStorageEmailVerification")})};i.$on("TakeOffSelect",function(t,i){n.submitForm(i)});n.submitForm=function(t){if(n.type==t){if(AK.System.alert("@TakeOff.onEvent.TakeOffSelect("+t+")"),n.formSubmitted=!0,n.takeOffStorageForm.$invalid||n.selectedStorage.Id=="NoneSelected")return!1;n.isLoged||!n.autoregenabled?$("#TakeOffStorageButton").click():n.emailIcoVerify()}};n.setStreet=function(t){n.streetValue=t};n.setTown=function(t){n.townValue=t};n.setZip=function(t){n.zipValue=t};n.changeStorage=function(){if(n.selectedStorage.Id!="NoneSelected")if(f==MAPSOURCETYPE.GoogleMap)AK.TakeOff.maps.scriptLoaded===!0?AK.TakeOff.mapStorage.isInitialized===!0?n.gMapChangePosition():n.gMapInitialize():n.loadGMapScript();else if(f==MAPSOURCETYPE.OpenStreetMap)if(AK.TakeOff.maps.scriptLoaded===!0)n.osmChangePosition();else{var t=[];t.push("osm-js");n.loadScripts(t).then(function(){AK.TakeOff.maps.scriptLoaded=!0;n.osmInitialize()})}};n.loadScript=function(n){return new Promise(function(t){if(e[n].loaded)t({script:n,loaded:!0,status:"Already Loaded"});else{var i=document.createElement("script");i.type="text/javascript";i.src=e[n].src;i.readyState?i.onreadystatechange=function(){(i.readyState==="loaded"||i.readyState==="complete")&&(i.onreadystatechange=null,e[n].loaded=!0,t({script:n,loaded:!0,status:"Loaded"}))}:i.onload=function(){e[n].loaded=!0;t({script:n,loaded:!0,status:"Loaded"})};i.onerror=function(){t({script:n,loaded:!1,status:"Loaded"})};document.getElementsByTagName("head")[0].appendChild(i)}})};n.loadScripts=function(t){var i=[];return t.forEach(function(t){i.push(n.loadScript(t))}),Promise.all(i)};n.osmInitialize=function(){AK.TakeOff.mapStorage.osmMap=L.map("Storage_OsmMap").setView([n.selectedStorage.Latitude,n.selectedStorage.Longitude],15);L.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{maxZoom:19,attribution:'&copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap<\/a>'}).addTo(AK.TakeOff.mapStorage.osmMap);AK.TakeOff.mapStorage.marker=n.osmCreateMarker();AK.TakeOff.mapStorage.marker.addTo(AK.TakeOff.mapStorage.osmMap)};n.osmCreateMarker=function(){var t=AK.System.url+"/images/"+gImagePath+"/defaultMarker.png",i=L.icon({iconUrl:t,iconSize:[13,13]});return L.marker([n.selectedStorage.Latitude,n.selectedStorage.Longitude],{icon:i,title:n.selectedStorage.Text})};n.osmChangePosition=function(){AK.TakeOff.mapStorage.osmMap.removeLayer(AK.TakeOff.mapStorage.marker);AK.TakeOff.mapStorage.marker=n.osmCreateMarker();AK.TakeOff.mapStorage.marker.addTo(AK.TakeOff.mapStorage.osmMap);AK.TakeOff.mapStorage.osmMap.setView([n.selectedStorage.Latitude,n.selectedStorage.Longitude],15)};n.loadGMapScript=function(){var n=document.createElement("script");n.type="text/javascript";n.src="https://maps.googleapis.com/maps/api/js?v=3.exp&key=AIzaSyCosq11V2IImQBarjzCED68lfrQDXFFITc&callback=AK.TakeOff.mapStorage.initialize";document.body.appendChild(n);AK.TakeOff.maps.scriptLoaded=!0};n.gMapInitialize=function(){var t=new google.maps.LatLng(n.selectedStorage.Latitude,n.selectedStorage.Longitude),r={center:t,zoom:15,mapTypeId:google.maps.MapTypeId.ROADMAP},i;AK.TakeOff.mapStorage.gmap=new google.maps.Map(document.getElementById("Storage_GMap"),r);i=AK.System.url+"/images/"+gImagePath+"/defaultMarker.png";AK.TakeOff.mapStorage.marker=new google.maps.Marker({position:t,map:AK.TakeOff.mapStorage.gmap,icon:i,title:n.selectedStorage.Text})};n.gMapChangePosition=function(){var t=new google.maps.LatLng(n.selectedStorage.Latitude,n.selectedStorage.Longitude);AK.TakeOff.mapStorage.marker.setPosition(t);AK.TakeOff.mapStorage.marker.setTitle(n.selectedStorage.Text)}};AK.TakeOff.mapStorage.initialize=function(){angular.element(document.getElementById("Storage_GMap")).scope().gMapInitialize()};AK.TakeOff.initAKDeliveryStorage=function(n,t,i,r){AK.System.alert("@TakeOff.getAKDelivery");n.isLoaded=!1;n.selectedStorage=null;n.type=r;t.getTakeOffAKDeliveryStorage().success(function(t){n.selectedStorage=t;n.isLoaded=!0;$("#TakeOffAKDeliveryContainer").removeClass("visibilityOff")});i.$on("TakeOffSelect",function(t,i){n.type==i&&(AK.System.alert("@TakeOff.onEvent.TakeOffSelect("+i+")"),$(".TakeOffAKDeliveryButton").click())})};AK.TakeOff.initExpressTaking=function(n,t,i,r){AK.System.alert("@TakeOff.getExpressTaking");n.type=r;n.mobileValue="";n.dateValue="";n.formSubmitted=!1;$("#takeOffExpressDate").datetimepicker("setStartDate",new Date);$("#takeOffExpressForm").on("keyup keypress",function(n){var t=n.keyCode||n.which;if(t===13)return n.preventDefault(),!1});i.$on("TakeOffSelect",function(t,i){if(n.type==i){if(AK.System.alert("@TakeOff.onEvent.TakeOffSelect("+i+")"),n.formSubmitted=!0,n.takeOffExpressForm.$invalid)return!1;$("#TakeOffExpressButton").click()}});$("#TakeOffExpressContainer").removeClass("visibilityOff")};TakeOffDeliveryTypes={Unknown:"Unknown",External:"External",Internal:"Internal"};AK.TakeOff.initDelivery=function(n,t,i,r,u,f,e,o){AK.System.alert("@TakeOff.getDelivery");n.autoregenabled=u==="true";n.storages=null;n.selectedStorage={Id:-1,Text:""};n.type=r;n.residentialAdressEnabled=!1;n.isLoged=f==="true";n.checkPostalCodeEnabled=e==="true";n.deliveryByPostalCodeEnabled=o==="true";n.deliveryMessage="";n.isUndeliveryCart=!1;n.undeliveryCartMessage="";n.deliveryType=TakeOffDeliveryTypes.Unknown;n.postalZipValue="";n.nameValue="";n.phoneValue="";n.emailValue="";n.addressValue="";n.contactNameValue="";n.formSubmitted=!1;$("#takeOffDeliveryForm").on("keyup keypress",function(n){var t=n.keyCode||n.which;if(t===13)return n.preventDefault(),!1});if(n.loadStorages=function(){i.akDataLoadingStringAdd("TakeOffDeliveryLoadStorages");t.TakeOff.Storage.getItems(n.type).then(function(t){i.akDataLoadingStringRemove("TakeOffDeliveryLoadStorages");n.selectedStorage=t.data.Selected;n.storages=t.data.Storages;$("#TakeOffStorageContainer").removeClass("visibilityOff");typeof smartform!="undefined"&&smartform.rebindAllForms(!1,takeoffDeliveryReloadSmartForm)},function(){i.akDataLoadingStringRemove("TakeOffDeliveryLoadStorages")})},n.loadStorages(),n.emailIcoAllowed=!0,n.emailIcoVerify=function(){if(n.isLoged)return!1;var r=n.emailValue,u=n.icoValue;i.akDataLoadingStringAdd("TakeOffDeliveryEmailVerification");t.TakeOff.emailIcoVerify(r,u).then(function(t){n.emailIcoAllowed=t.data.allowed===!0;AK.System.alert("Email and ico allowed:"+n.emailIcoAllowed);t.data.message.length>0&&(t.data.validitytype==3?i.$emit("OpenTakeOffModalUnregisteredMessage",n.emailValue,t.data.message,"#TakeOffDeliveryButton"):t.data.validitytype==4?i.$emit("OpenTakeOffModalRegisteredMessage",n.emailValue,t.data.message,"#TakeOffDeliveryButton"):AK.System.ShowMessage(t.data.message));i.akDataLoadingStringRemove("TakeOffDeliveryEmailVerification");n.emailIcoAllowed&&$("#TakeOffDeliveryButton").click()},function(){i.akDataLoadingStringRemove("TakeOffDeliveryEmailVerification")})},i.$on("TakeOffSelect",function(t,i){n.submitForm(i)}),n.submitForm=function(t){if(n.deliveryByPostalCodeEnabled&&(n.isUndeliveryCart||n.deliveryType==TakeOffDeliveryTypes.Unknown))return!1;if(n.type==t){var i=new Promise(function(t){n.checkPostalCode(t)});i.then(function(){if(AK.System.alert("@TakeOff.onEvent.TakeOffSelect("+t+")"),n.formSubmitted=!0,n.takeOffDeliveryForm.$invalid||n.takeOffDeliveryForm.PostalZip.$error&&n.takeOffDeliveryForm.PostalZip.$error.checkPostalCodeFailed)return!1;n.isLoged||!n.autoregenabled?$("#TakeOffDeliveryButton").click():n.emailIcoVerify()})}},n.checkPostalCode=function(i){n.checkPostalCodeEnabled?(n.takeOffDeliveryForm.PostalZip.$error.checkPostalCodeFailed=!1,t.TakeOff.checkPostalCode(n.postalZipValue).then(function(t){n.takeOffDeliveryForm.PostalZip.$error.checkPostalCodeFailed=!t.data.isValid;i()})):i()},n.isPostalCodeValid=function(){return n.takeOffDeliveryForm!=undefined&&!n.takeOffDeliveryForm.PostalZip.$invalid&&n.postalZipValue!=undefined&&n.postalZipValue.length>5},n.zipChanged=function(){n.deliveryMessage="";n.setDeliveryByPostalCode()},n.setDeliveryByPostalCode=function(){if(n.deliveryByPostalCodeEnabled==!1||!n.isPostalCodeValid())return!1;t.TakeOff.getDeliveryByPostalCode(n.postalZipValue).then(function(t){n.deliveryMessage="";t.data.errorMessage==undefined||t.data.errorMessage.length<=0?(n.deliveryType=t.data.data.DeliveryType,n.deliveryMessage=t.data.data.DeliveryMessage,$("#TakeOffStorageIdTB2").val(t.data.data.StorageId),n.undeliveryCartMessage=t.data.data.UndeliveryCartMessage,n.isUndeliveryCart=n.undeliveryCartMessage!=undefined&&n.undeliveryCartMessage.length>0):AK.System.alert(t.data.errorMessage)},function(){n.deliveryMessage="";AK.System.alert("akService.TakeOff.getDeliveryByPostalCode failed")})},n.deliveryByPostalCodeEnabled){var s=$("#PostalZip").val();n.postalZipValue=s}setTimeout(function(){n.setDeliveryByPostalCode()},200);n.setPostalStreet=function(t){n.postalStreetValue=t};n.setPostalTown=function(t){n.postalTownValue=t};n.setPostalZip=function(t){n.postalZipValue=t;n.$apply();setTimeout(function(){n.setDeliveryByPostalCode()},200)};n.setResidentialStreet=function(t){n.residentialStreetValue=t};n.setResidentialTown=function(t){n.residentialTownValue=t};n.setResidentialZip=function(t){n.residentialZipValue=t};$("#TakeOffDeliveryContainer").removeClass("visibilityOff")};AK.TakeOff.initService=function(n,t,i,r){AK.System.alert("@TakeOff.initService");n.type=r;n.services=[];n.mapSettings=null;n.selectedService={companyId:"",name:"",address:""};$("#takeOffServiceForm").on("keyup keypress",function(n){var t=n.keyCode||n.which;if(t===13)return n.preventDefault(),!1});t.TakeOff.Service.get().success(function(t){n.services=t.Services;n.mapSettings=t.MapSettings;AK.TakeOff.maps.scriptLoaded===!0?n.gMapInitialize():n.loadGMapScript()});n.loadGMapScript=function(){var n=document.createElement("script");n.type="text/javascript";n.src="https://maps.googleapis.com/maps/api/js?v=3.exp&key=AIzaSyCosq11V2IImQBarjzCED68lfrQDXFFITc&callback=AK.TakeOff.mapService.initialize";document.body.appendChild(n);AK.TakeOff.maps.scriptLoaded=!0};n.gMapInitialize=function(){var i=new google.maps.LatLng(n.mapSettings.CenterLat,n.mapSettings.CenterLng),r={zoom:parseInt(n.mapSettings.Zoom),center:i,mapTypeId:n.mapSettings.MapType.toLowerCase()},u={gridSize:50,maxZoom:17,imagePath:AK.System.url+"/images/MarkerClusterer/s"};AK.TakeOff.mapService.gmap=new google.maps.Map(document.getElementById("Service_GMap"),r);AK.TakeOff.mapService.markerClusterer=new MarkerClusterer(AK.TakeOff.mapService.gmap,[],u);AK.TakeOff.mapService.markerYouAreHere=null;AK.TakeOff.mapService.markers=[];AK.TakeOff.mapService.infoWindow=null;var t="",f=AK.System.url+"/images/carrepairAKAS.png",e=AK.System.url+"/images/carrepairOther.png";$.each(n.services,function(i,r){var o=new google.maps.LatLng(r.Latitude,r.Longitude),s='<div id="GMapInfoWindow"><h2 class="GMapHeader">'+r.Name+'<\/h2><table class="GMapTable"><tr><td class="GMapColumn"><b>'+n.mapSettings.ResxAddress+"<\/b><br />"+r.Street+"<br />"+r.Town+"<br />"+r.Zip+"<br />"+n.mapSettings.ResxPhone+" "+r.Phone+'<\/td><\/tr><\/table><span class="GMapServiceSelect" onclick="return AK.TakeOff.mapService.select('+r.CompanyId+",'"+r.Name+"','"+r.Street+", "+r.Zip+" "+r.Town+"');\">"+n.mapSettings.ResxSelect+"<\/span><\/div>",u,e;t=f;u=new google.maps.Marker({position:o,map:AK.TakeOff.mapService.gmap,icon:t,title:r.Name});google.maps.event.addListener(u,"click",function(){AK.TakeOff.mapService.infoWindow&&AK.TakeOff.mapService.infoWindow.close();AK.TakeOff.mapService.infoWindow=new google.maps.InfoWindow({content:s});AK.TakeOff.mapService.infoWindow.open(AK.TakeOff.mapService.gmap,u)});e={companyId:r.CompanyId,marker:u};AK.TakeOff.mapService.markers.push(e)});closeInfoWindow=function(){AK.TakeOff.mapService.infoWindow!==null&&AK.TakeOff.mapService.infoWindow.close()};google.maps.event.addListener(AK.TakeOff.mapService.gmap,"click",closeInfoWindow);n.loadMarkerClusterer()};n.loadMarkerClusterer=function(){var n=[];typeof AK.TakeOff.mapService.markers!="undefined"&&AK.TakeOff.mapService.markers!=null&&$.each(AK.TakeOff.mapService.markers,function(t,i){n.push(i.marker)});AK.TakeOff.mapService.markerClusterer.addMarkers(n)};n.resizeGMap=function(){if(typeof AK.TakeOff.mapService.gmap!="undefined"&&AK.TakeOff.mapService.gmap!=null){var n=AK.TakeOff.mapService.gmap.getZoom(),t=AK.TakeOff.mapService.gmap.getCenter();google.maps.event.trigger(AK.TakeOff.mapService.gmap,"resize");AK.TakeOff.mapService.gmap.setZoom(n);AK.TakeOff.mapService.gmap.setCenter(t)}};n.findByGeolocation=function(t,i){return $("#Service_MapMessage").html(""),navigator.geolocation?navigator.geolocation.getCurrentPosition(function(r){n.showPosition(r,t,i)},n.showError):$("#Service_MapMessage").html("Geolocation is not supported by this browser."),!1};n.showPosition=function(n,t,i){var u=n.coords.latitude,f=n.coords.longitude,r;$("#Service_MapMessage").html(t);r=new google.maps.LatLng(u,f,!0);typeof AK.TakeOff.mapService.markerYouAreHere=="undefined"||AK.TakeOff.mapService.markerYouAreHere==null?AK.TakeOff.mapService.markerYouAreHere=new google.maps.Marker({position:r,map:AK.TakeOff.mapService.gmap,title:i}):AK.TakeOff.mapService.markerYouAreHere.setPosition(r);AK.TakeOff.mapService.gmap.panTo(r);AK.TakeOff.mapService.gmap.setZoom(15)};n.showError=function(n){var t=$("#Service_MapMessage");switch(n.code){case n.PERMISSION_DENIED:t.html("User denied the request for Geolocation.");break;case n.POSITION_UNAVAILABLE:t.html("Location information is unavailable.");break;case n.TIMEOUT:t.html("The request to get user location timed out.");break;case n.UNKNOWN_ERROR:t.html("An unknown error occurred.")}};n.findByAddress=function(n,t){$("#Service_MapMessage").html("");var r=new google.maps.Geocoder,i=$("#Service_AddressInput").val();return i.length>0?r.geocode({address:i},function(i,r){if(r==google.maps.GeocoderStatus.OK){$("#Service_MapMessage").html(n);var u=i[0].geometry.location;typeof AK.TakeOff.mapService.markerYouAreHere=="undefined"||AK.TakeOff.mapService.markerYouAreHere==null?AK.TakeOff.mapService.markerYouAreHere=new google.maps.Marker({position:u,map:AK.TakeOff.mapService.gmap,title:t}):AK.TakeOff.mapService.markerYouAreHere.setPosition(u);AK.TakeOff.mapService.gmap.panTo(u);AK.TakeOff.mapService.gmap.setZoom(15)}else $("#Service_MapMessage").html("Geocode was not successful for the following reason: "+r)}):$("#Service_MapMessage").html("Zadejte adresu"),!1};i.$on("TakeOffSelect",function(t,i){if(n.type==i){if(AK.System.alert("@TakeOff.onEvent.TakeOffSelect("+i+")"),n.formSubmitted=!0,n.takeOffServiceForm.$invalid)return!1;$("#TakeOffServiceButton").click()}});n.serviceSelect=function(t,i,r){n.selectedService.companyId=t;n.selectedService.name=i;n.selectedService.address=r;n.$apply()}};AK.TakeOff.mapService.select=function(n,t,i){return angular.element(document.getElementById("Service_GMap")).scope().serviceSelect(n,t,i),!1};AK.TakeOff.mapService.initialize=function(){angular.element(document.getElementById("Service_GMap")).scope().gMapInitialize()};AK.TakeOff.initModalMessage=function(n,t,i){AK.System.alert("@TakeOff.initModalMessage");n.message="";n.email="";n.buttonClick="";n.openModalTakeOffUnregisteredMessage=function(){return $("#ModalTakeOffUnregisteredMessage").modal("show"),!1};n.openModalTakeOffRegisteredMessage=function(){return $("#ModalTakeOffRegisteredMessage").modal("show"),!1};n.completeRegistration=function(){return i.akDataLoadingStringAdd("TakeOffCompleteRegistration"),t.Account.setPasswordEmail(n.email).then(function(n){i.akDataLoadingStringRemove("TakeOffCompleteRegistration");$("#ModalTakeOffUnregisteredMessage").modal("hide");AK.System.ShowMessage(n.data.Message)},function(n){i.akDataLoadingStringRemove("TakeOffCompleteRegistration");AK.System.ShowMessage(n.data.Message)}),!1};n.continueWithoutRegistration=function(){return $(n.buttonClick).click(),!1};n.showLogin=function(){return $("#ModalTakeOffRegisteredMessage").modal("hide"),$("#modal-simple").modal("show"),!1};n.setScopeData=function(t,i,r){n.email=t;n.message=i;n.buttonClick=r};i.$on("OpenTakeOffModalUnregisteredMessage",function(t,i,r,u){n.setScopeData(i,r,u);n.openModalTakeOffUnregisteredMessage()});i.$on("OpenTakeOffModalRegisteredMessage",function(t,i,r,u){n.setScopeData(i,r,u);n.openModalTakeOffRegisteredMessage()})};AK.Order.getOrder=function(n,t,i){AK.System.alert("@Order.getOrder");t.orderFilters=null;n.filtersVisible=!1;t.orderStatusItems=null;t.orderFilterModel={};n.getSelectedValue=function(n,t){var i=t;return n.forEach(function(n){n.Selected==!0&&(i=n.Value)}),i};t.checkFiltersVisibility=function(){var i=!1;t.orderFilters.forEach(function(n){n.Active===!0&&(i=!0)});n.filtersVisible!=i&&(n.filtersVisible=i)};n.removeFilter=function(i){t.orderFilters.forEach(function(n){n.Name==i&&(n.Active=!1)});t.orderFilterModel[i]=i=="status"?t.orderStatusItems[0].Value:"";n.postFilter()};n.removeAllFilters=function(){t.orderFilters.forEach(function(n){n.Active===!0&&(n.Active=!1)});for(var i in t.orderFilterModel)t.orderFilterModel[i]=i=="status"?t.orderStatusItems[0].Value:"";n.postFilter()};n.setFilter=function(i,r){AK.System.alert(i+", "+r);t.orderFilters.forEach(function(t){t.Name==i&&(r!=""?r!=t.Value&&(t.Value=r,t.Active=!0,n.postFilter()):n.removeFilter(i))})};n.setSelectFilter=function(i,r,u){i.forEach(function(i){i.Value==u&&(u!=t.orderStatusItems[0].Value?n.setFilter(r,u):n.removeFilter(r))})};n.postFilter=function(){AK.System.alert("Sending to server - order filter");i.setOrderFilter(t.orderFilterModel).then(function(){AK.System.alert("Set success");t.loadOrderData(1)},function(){AK.System.alert("Failed")})}};AK.Order.getOrderPanes=function(n,t,i,r){AK.System.alert("@Order.getOrderPanes");n.orders=null;n.paginationVisible=!1;n.isDataLoaded=!1;n.template="";n.groups=[];n.paging={Page:1,Size:5,Total:1};i.getOrderTemplate().success(function(t){n.template=r.trustAsHtml(t)});t.loadOrderData=function(r){n.isDataLoaded=!1;n.groups=[];i.getOrders(r).success(function(i){n.orders=i;var r=0;n.orders.Items.forEach(function(t){n.groups.push({idx:r,id:t.Id,createDate:t.CreateDate,name:t.Name,content:"",open:!1});r++});t.orderFilters=n.orders.FilterOrder.Filters;t.orderStatusItems=n.orders.FilterOrder.StatusItems;t.orderFilterModel.productCode=n.orders.FilterOrder.ProductCode;t.orderFilterModel.invoiceNumber=n.orders.FilterOrder.InvoiceNumber;t.orderFilterModel.cartName=n.orders.FilterOrder.CartName;t.orderFilterModel.status=n.getSelectedValue(t.orderStatusItems,t.orderStatusItems[0].Value);t.orderFilterModel.dateFrom=n.orders.FilterOrder.DateFrom;t.orderFilterModel.dateTo=n.orders.FilterOrder.DateTo;t.checkFiltersVisibility();n.paging=i.Paging;n.setRange();n.isDataLoaded=!0})};t.loadOrderData(n.paging.Page);n.openOrder=function(i){n.groups[i].open=!n.groups[i].open;n.groups[i].open===!0&&(t.orderGroupId=n.groups[i].id,n.groups[i].content=n.template,console.log("Opened group with idx: "+i+" "+n.groups[i].id))};n.ranges=[];n.setRange=function(){var i=5,r=Math.ceil(i/2)-1,u,f=n.paging.Total,t;for(u=n.paging.Page<=r+1?1:n.paging.Page>f-r?Math.max(1,f-i+1):n.paging.Page-r+1,n.ranges=[],t=u;t<u+i-1;t++)t>=1&&t<=f&&n.ranges.push(t)};n.setRange();n.prevPage=function(){n.paging.Page>1&&n.setPage(n.paging.Page-1)};n.prevPageDisabled=function(){return n.paging.Page===1?"prev disabled":""};n.nextPage=function(){n.paging.Page<n.paging.Total&&n.setPage(n.paging.Page+1)};n.nextPageDisabled=function(){return n.paging.Page===n.paging.Total?"next disabled":""};n.setPage=function(i){n.paging.Page=i;t.loadOrderData(n.paging.Page)}};AK.Order.getOrderItem=function(n,t,i){AK.System.alert("@Order.getOrderItem");n.order=null;n.isDataLoaded=!1;n.paging={Page:1,Size:5,Total:1};n.loadData=function(r){n.isDataLoaded=!1;i.getOrderItems(t.orderGroupId,r).success(function(t){n.order=t;n.paging=t.Paging;n.setRange();n.isDataLoaded=!0})};n.loadData(n.paging.Page);n.openModalCancel=function(n){return AK.System.alert("Open ModalCancel OrderItem: "+n),t.orderItemId=n,t.$emit("OrderItemCancelUpdateOrderItemId"),$("#ModalOrderItemCancel").modal("show"),!1};n.ranges=[];n.setRange=function(){var i=5,r=Math.ceil(i/2)-1,u,f=n.paging.Total,t;for(u=n.paging.Page<=r+1?1:n.paging.Page>f-r?Math.max(1,f-i+1):n.paging.Page-r+1,n.ranges=[],t=u;t<u+i-1;t++)t>=1&&t<=f&&n.ranges.push(t)};n.setRange();n.prevPage=function(){n.paging.Page>1&&n.setPage(n.paging.Page-1)};n.prevPageDisabled=function(){return n.paging.Page===1?"prev disabled":""};n.nextPage=function(){n.paging.Page<n.paging.Total&&n.setPage(n.paging.Page+1)};n.nextPageDisabled=function(){return n.paging.Page===n.paging.Total?"next disabled":""};n.setPage=function(t){n.paging.Page=t;n.loadData(n.paging.Page)}};AK.Order.getOrderList=function(n,t,i){AK.System.alert("@Order.getOrderList");n.orders=null;n.isDataLoaded=!1;n.paging={Page:1,Size:5,Total:1};t.loadOrderData=function(r){n.isDataLoaded=!1;i.getOrderList(r).success(function(i){n.orders=i;t.orderFilters=n.orders.FilterOrder.Filters;t.orderStatusItems=n.orders.FilterOrder.StatusItems;t.orderFilterModel.productCode=n.orders.FilterOrder.ProductCode;t.orderFilterModel.invoiceNumber=n.orders.FilterOrder.InvoiceNumber;t.orderFilterModel.cartName=n.orders.FilterOrder.CartName;t.orderFilterModel.status=n.getSelectedValue(t.orderStatusItems,t.orderStatusItems[0].Value);t.orderFilterModel.dateFrom=n.orders.FilterOrder.DateFrom;t.orderFilterModel.dateTo=n.orders.FilterOrder.DateTo;t.checkFiltersVisibility();n.paging=n.orders.Paging;n.setRange();n.isDataLoaded=!0})};t.loadOrderData(n.paging.Page);n.openModalCancel=function(n){return AK.System.alert("Open ModalCancel OrderItem: "+n),t.orderItemId=n,t.$emit("OrderItemCancelUpdateOrderItemId"),$("#ModalOrderItemCancel").modal("show"),!1};n.ranges=[];n.setRange=function(){var i=5,r=Math.ceil(i/2)-1,u,f=n.paging.Total,t;for(u=n.paging.Page<=r+1?1:n.paging.Page>f-r?Math.max(1,f-i+1):n.paging.Page-r+1,n.ranges=[],t=u;t<u+i-1;t++)t>=1&&t<=f&&n.ranges.push(t)};n.setRange();n.prevPage=function(){n.paging.Page>1&&n.setPage(n.paging.Page-1)};n.prevPageDisabled=function(){return n.paging.Page===1?"prev disabled":""};n.nextPage=function(){n.paging.Page<n.paging.Total&&n.setPage(n.paging.Page+1)};n.nextPageDisabled=function(){return n.paging.Page===n.paging.Total?"next disabled":""};n.setPage=function(i){n.paging.Page=i;t.loadOrderData(n.paging.Page)}};AK.Order.getOrderItemCancel=function(n,t,i){AK.System.alert("@Order.getOrderItemCancel");n.id=t.orderItemId;t.$on("OrderItemCancelUpdateOrderItemId",function(){n.id=t.orderItemId});n.cancel=function(){var n=t.orderItemId;AK.System.alert("Cancel OrderItem: "+n);i.cancelOrderItem(n).then(function(){AK.System.alert("Canceled order item");$("#ModalOrderItemCancel").modal("hide");window.location.reload()},function(){$("#ModalOrderItemCancel").modal("hide")})}};AK.Order.getOrderDetail=function(n,t,i,r,u,f,e){AK.System.alert("@Order.getOrderDetail");n.items=null;n.cartId=u;n.year=f;n.quarter=e;n.priceTypes=null;n.priceTypeText=null;n.priceSum=null;n.priceVatSum=null;n.userInfo=null;n.takeOffInfo=null;n.paymentInfo=null;n.priceTypeSelect=function(r){n.priceTypeText!=r.Text&&(AK.System.alert("Price type change"),t.akDataLoadingStringAdd("OrderDetailPriceTypeChange"),i.getOrderDetailPriceTypeChange(r.Value).then(function(i){i.data===!0&&n.loadItems(n.cartId);t.akDataLoadingStringRemove("OrderDetailPriceTypeChange")},function(){t.akDataLoadingStringRemove("OrderDetailPriceTypeChange")}))};n.loadItems=function(r){AK.System.alert("Load order items");t.akDataLoadingStringAdd("OrderDetailLoadItems");i.getOrderDetailItems(r,f,e).then(function(i){n.items=i.data.Items;n.priceSum=i.data.Price;n.priceVatSum=i.data.PriceVat;n.priceTypeText=i.data.PriceTypeText;n.priceTypes=i.data.PriceTypes;t.akDataLoadingStringRemove("OrderDetailLoadItems");$("#OrderDetail").removeClass("visibilityOff")},function(){t.akDataLoadingStringRemove("OrderDetailLoadItems");$("#OrderDetail").removeClass("visibilityOff")})};n.loadItems(n.cartId,n.year,n.quarter);n.loadUserInfo=function(t){AK.System.alert("Load info");i.getOrderDetailInfo(t,f,e).then(function(t){t.data.errorMessage.length<=0?(n.userInfo=t.data.userInfo,n.takeOffInfo=t.data.takeOffInfo,n.paymentInfo=t.data.paymentInfo):AK.System.alert(t.data.errorMessage)},function(){})};n.loadUserInfo(n.cartId,n.year,n.quarter);n.openModalCancel=function(n){return AK.System.alert("Open ModalCancel OrderItem: "+n),t.orderItemId=n,t.$emit("OrderItemCancelUpdateOrderItemId"),$("#ModalOrderItemCancel").modal("show"),!1}};AK.Order.Archive.init=function(n,t,i){AK.System.alert("@Order.Archive.init");n.years=[];n.loadData=function(){AK.System.alert("Load order archive years");t.akDataLoadingStringAdd("OrderArchiveLoadData");i.order.archive.getData().then(function(i){i.data.errorMessage.length<=0?(AK.System.alert("Order archive load data success"),n.years=i.data.years):(AK.System.alert("Order archive load data failed"),AK.System.ShowMessage(i.data.errorMessage));t.akDataLoadingStringRemove("OrderArchiveLoadData");$("#orderArchiveContainer").removeClass("visibilityOff")},function(){t.akDataLoadingStringRemove("OrderArchiveLoadData");$("#orderArchiveContainer").removeClass("visibilityOff")})};n.loadData()};OrderSourceTypes={None:0,Online:1,Phone:2,Manual:4,All:7};AK.ElitOrder.initListItems=function(n,t,i){AK.System.alert("@ElitOrder.getListItems");n.filter=undefined;n.items=[];n.loadFilter=function(){AK.System.alert("@ElitOrder.getListItems load filter");t.akDataLoadingStringAdd("ElitOrderLoadFilter");i.elitOrder.getFilter().then(function(i){i.data.errorMessage.length<=0?(AK.System.alert("ElitOrder listItms load filter success"),n.filter=i.data.filter,n.initFilter(),n.loadData(n.filter.Paging.Page)):(AK.System.alert("ElitOrder listItems load filter failed"),AK.System.ShowMessage(i.data.errorMessage));t.akDataLoadingStringRemove("ElitOrderLoadFilter")},function(){t.akDataLoadingStringRemove("ElitOrderLoadFilter")})};n.loadFilter();n.loadData=function(r){AK.System.alert("@ElitOrder.getListItems load items");t.akDataLoadingStringAdd("ElitOrderListItemsLoadData");n.filter.Paging.Page=r;i.elitOrder.getListItems(n.filter).then(function(i){if(i.data.errorMessage.length<=0){AK.System.alert("ElitOrder listItems load data success");n.items=i.data.items;n.filter=i.data.filter;n.initFilter();var r=angular.element(document.getElementById("ElitOrderPaging")).scope();r.set(n.filter.Paging.Page,n.filter.Paging.Size,n.filter.Paging.Total,n.loadData)}else AK.System.alert("ElitOrder listItems load data failed"),AK.System.ShowMessage(i.data.errorMessage);t.akDataLoadingStringRemove("ElitOrderListItemsLoadData");$("#ElitOrderContainer").removeClass("visibilityOff")},function(){t.akDataLoadingStringRemove("ElitOrderListItemsLoadData");$("#ElitOrderContainer").removeClass("visibilityOff")})};n.sourceOnline=0;n.sourcePhone=0;n.sourceManual=0;n.initFilter=function(){n.sourceOnline=n.filter.Sources&OrderSourceTypes.Online;n.sourcePhone=n.filter.Sources&OrderSourceTypes.Phone;n.sourceManual=n.filter.Sources&OrderSourceTypes.Manual};n.changeFilter=function(){n.filter.Paging.Page=1;n.loadData()};n.changeSourceFilter=function(){n.filter.Sources=n.sourceOnline|n.sourcePhone|n.sourceManual;n.changeFilter()};n.exportCsv=function(){i.elitOrder.exportCsv(n.filter).success(function(n){var i;if(n.csv.length>0)if(window.navigator.msSaveOrOpenBlob)i=new Blob([decodeURIComponent(encodeURI(n.csv))],{type:"text/csv;charset=utf-8;"}),navigator.msSaveBlob(i,n.filename);else{var r="﻿"+n.csv,t=document.createElement("a");t.href="data:attachment/csv,"+encodeURI(r);t.target="_blank";t.download=n.filename;document.body.appendChild(t);t.click()}})}};AK.ElitOrder.initListOrders=function(n,t,i){AK.System.alert("@ElitOrder.getListOrders");n.filter=undefined;n.orders=[];n.loadFilter=function(){AK.System.alert("@ElitOrder.getListOrders load filter");t.akDataLoadingStringAdd("ElitOrderLoadFilter");i.elitOrder.getFilter().then(function(i){i.data.errorMessage.length<=0?(AK.System.alert("ElitOrder listOrders load filter success"),n.filter=i.data.filter,n.initFilter(),n.loadData(n.filter.Paging.Page)):(AK.System.alert("ElitOrder listOrders load filter failed"),AK.System.ShowMessage(i.data.errorMessage));t.akDataLoadingStringRemove("ElitOrderLoadFilter")},function(){t.akDataLoadingStringRemove("ElitOrderLoadFilter")})};n.loadFilter();n.loadData=function(r){AK.System.alert("@ElitOrder.getListOrders load items");t.akDataLoadingStringAdd("ElitOrderListOrdersLoadData");n.filter.Paging.Page=r;i.elitOrder.getListOrders(n.filter).then(function(i){if(i.data.errorMessage.length<=0){AK.System.alert("ElitOrder listItems load data success");n.orders=i.data.orders;n.filter=i.data.filter;n.initFilter();var r=angular.element(document.getElementById("ElitOrderPaging")).scope();r.set(n.filter.Paging.Page,n.filter.Paging.Size,n.filter.Paging.Total,n.loadData)}else AK.System.alert("ElitOrder listItems load data failed"),AK.System.ShowMessage(i.data.errorMessage);t.akDataLoadingStringRemove("ElitOrderListOrdersLoadData");$("#ElitOrderContainer").removeClass("visibilityOff")},function(){t.akDataLoadingStringRemove("ElitOrderListOrdersLoadData");$("#ElitOrderContainer").removeClass("visibilityOff")})};n.sourceOnline=0;n.sourcePhone=0;n.sourceManual=0;n.initFilter=function(){n.sourceOnline=n.filter.Sources&OrderSourceTypes.Online;n.sourcePhone=n.filter.Sources&OrderSourceTypes.Phone;n.sourceManual=n.filter.Sources&OrderSourceTypes.Manual};n.changeFilter=function(){n.filter.Paging.Page=1;n.loadData()};n.changeSourceFilter=function(){n.filter.Sources=n.sourceOnline|n.sourcePhone|n.sourceManual;n.changeFilter()}};AK.ElitInvoice.initList=function(n,t,i){AK.System.alert("@ElitInvoice.getList");n.filter=undefined;n.items=[];n.loadFilter=function(){AK.System.alert("@ElitInvoice.getList load filter");t.akDataLoadingStringAdd("ElitInvoiceLoadFilter");i.elitInvoice.getFilter().then(function(i){i.data.errorMessage.length<=0?(AK.System.alert("ElitInvoice load filter success"),n.filter=i.data.filter,n.loadData(n.filter.Paging.Page)):(AK.System.alert("ElitInvoice load filter failed"),AK.System.ShowMessage(i.data.errorMessage));t.akDataLoadingStringRemove("ElitInvoiceLoadFilter")},function(){t.akDataLoadingStringRemove("ElitInvoiceLoadFilter")})};n.loadFilter();n.loadData=function(r){AK.System.alert("@ElitInvoice.getList load items");t.akDataLoadingStringAdd("ElitInvoiceListLoadData");n.filter.Paging.Page=r;i.elitInvoice.getList(n.filter).then(function(i){if(i.data.errorMessage.length<=0){AK.System.alert("ElitInvoice load data success");n.items=i.data.items;n.filter=i.data.filter;var r=angular.element(document.getElementById("ElitInvoicePaging")).scope();r.set(n.filter.Paging.Page,n.filter.Paging.Size,n.filter.Paging.Total,n.loadData)}else AK.System.alert("ElitInvoice load data failed"),AK.System.ShowMessage(i.data.errorMessage);t.akDataLoadingStringRemove("ElitInvoiceListLoadData");$("#ElitInvoiceContainer").removeClass("visibilityOff")},function(){t.akDataLoadingStringRemove("ElitInvoiceListLoadData");$("#ElitInvoiceContainer").removeClass("visibilityOff")})};n.changeFilter=function(){n.filter.Paging.Page=1;n.loadData()};n.exportCsvList=function(){i.elitInvoice.exportCsvList(n.filter).success(function(n){var i;if(n.csv.length>0)if(window.navigator.msSaveOrOpenBlob)i=new Blob([decodeURIComponent(encodeURI(n.csv))],{type:"text/csv;charset=utf-8;"}),navigator.msSaveBlob(i,n.filename);else{var r="﻿"+n.csv,t=document.createElement("a");t.href="data:attachment/csv,"+encodeURI(r);t.target="_blank";t.download=n.filename;document.body.appendChild(t);t.click()}})};n.exportCsv=function(n){i.elitInvoice.exportCsv(n).success(function(n){var i;if(n.csv.length>0)if(window.navigator.msSaveOrOpenBlob)i=new Blob([decodeURIComponent(encodeURI(n.csv))],{type:"text/csv;charset=utf-8;"}),navigator.msSaveBlob(i,n.filename);else{var r="﻿"+n.csv,t=document.createElement("a");t.href="data:attachment/csv,"+encodeURI(r);t.target="_blank";t.download=n.filename;document.body.appendChild(t);t.click()}})};n.exportXml=function(n){i.elitInvoice.exportXml(n).success(function(n){n.xml.length>0&&n.filename.length>0&&AK.Common.exportXmlFile(n.xml,n.filename)})}};AK.ElitShipment.initList=function(n,t,i){AK.System.alert("@ElitShipment.getList");n.paging={Page:1,PageSize:20,Total:1,TotalCount:1};n.items=[];n.loadData=function(r){AK.System.alert("@ElitShipment.getList load items");t.akDataLoadingStringAdd("ElitShipmentListLoadData");n.paging.Page=r;i.elitShipment.getList(n.paging).then(function(i){if(i.data.errorMessage.length<=0){AK.System.alert("ElitShipment load data success");n.items=i.data.items;n.paging=i.data.paging;var r=angular.element(document.getElementById("ElitShipmentPaging")).scope();r.set(n.paging.Page,n.paging.Size,n.paging.Total,n.loadData)}else AK.System.alert("ElitShipment load data failed"),AK.System.ShowMessage(i.data.errorMessage);t.akDataLoadingStringRemove("ElitShipmentListLoadData");$("#ElitShipmentContainer").removeClass("visibilityOff")},function(){t.akDataLoadingStringRemove("ElitShipmentListLoadData");$("#ElitShipmentContainer").removeClass("visibilityOff")})};n.loadData(n.paging.Page);n.exportCsvList=function(){i.elitShipment.exportCsvList().success(function(n){var i;if(n.errorMessage&&n.errorMessage.length>0)AK.System.ShowMessage(n.errorMessage);else if(n.csv.length>0)if(window.navigator.msSaveOrOpenBlob)i=new Blob([decodeURIComponent(encodeURI(n.csv))],{type:"text/csv;charset=utf-8;"}),navigator.msSaveBlob(i,n.filename);else{var r="﻿"+n.csv,t=document.createElement("a");t.href="data:attachment/csv,"+encodeURI(r);t.target="_blank";t.download=n.filename;document.body.appendChild(t);t.click()}})};n.exportCsv=function(n,t){i.elitShipment.exportCsv(n,t).success(function(n){var i;if(n.csv.length>0)if(window.navigator.msSaveOrOpenBlob)i=new Blob([decodeURIComponent(encodeURI(n.csv))],{type:"text/csv;charset=utf-8;"}),navigator.msSaveBlob(i,n.filename);else{var r="﻿"+n.csv,t=document.createElement("a");t.href="data:attachment/csv,"+encodeURI(r);t.target="_blank";t.download=n.filename;document.body.appendChild(t);t.click()}})};n.exportXml=function(n,t){i.elitShipment.exportXml(n,t).success(function(n){n.xml.length>0&&n.filename.length>0&&AK.Common.exportXmlFile(n.xml,n.filename)})}};AK.ElitCreditMemos.initList=function(n,t,i){AK.System.alert("@ElitCreditMemos.getList");n.filter=undefined;n.items=[];n.loadFilter=function(){AK.System.alert("@ElitCreditMemos.getList load filter");t.akDataLoadingStringAdd("ElitCreditMemosLoadFilter");i.elitCreditMemos.getFilter().then(function(i){i.data.errorMessage.length<=0?(AK.System.alert("ElitCreditMemos load filter success"),n.filter=i.data.filter,n.loadData(n.filter.Paging.Page)):(AK.System.alert("ElitCreditMemos load filter failed"),AK.System.ShowMessage(i.data.errorMessage));t.akDataLoadingStringRemove("ElitCreditMemosLoadFilter")},function(){t.akDataLoadingStringRemove("ElitCreditMemosLoadFilter")})};n.loadFilter();n.loadData=function(r){AK.System.alert("@ElitCreditMemos.getList load items");t.akDataLoadingStringAdd("ElitCreditMemosListLoadData");n.filter.Paging.Page=r;i.elitCreditMemos.getList(n.filter).then(function(i){if(i.data.errorMessage.length<=0){AK.System.alert("ElitCreditMemos load data success");n.items=i.data.items;n.filter=i.data.filter;var r=angular.element(document.getElementById("ElitCreditMemosPaging")).scope();r.set(n.filter.Paging.Page,n.filter.Paging.Size,n.filter.Paging.Total,n.loadData)}else AK.System.alert("ElitCreditMemos load data failed"),AK.System.ShowMessage(i.data.errorMessage);t.akDataLoadingStringRemove("ElitCreditMemosListLoadData");$("#ElitCreditMemosContainer").removeClass("visibilityOff")},function(){t.akDataLoadingStringRemove("ElitCreditMemosListLoadData");$("#ElitCreditMemosContainer").removeClass("visibilityOff")})};n.changeFilter=function(){n.filter.Paging.Page=1;n.loadData()}};AK.ElitLoan.initList=function(n,t,i){AK.System.alert("@ElitLoan.getList");n.filter=undefined;n.items=[];n.loadFilter=function(){AK.System.alert("@ElitLoan.getList load filter");t.akDataLoadingStringAdd("ElitLoanLoadFilter");i.elitLoan.getFilter().then(function(i){i.data.errorMessage.length<=0?(AK.System.alert("ElitLoan load filter success"),n.filter=i.data.filter,n.loadData(n.filter.Paging.Page)):(AK.System.alert("ElitLoan load filter failed"),AK.System.ShowMessage(i.data.errorMessage));t.akDataLoadingStringRemove("ElitLoanLoadFilter")},function(){t.akDataLoadingStringRemove("ElitLoanLoadFilter")})};n.loadFilter();n.loadData=function(r){AK.System.alert("@ElitLoan.getList load items");t.akDataLoadingStringAdd("ElitLoanListLoadData");n.filter.Paging.Page=r;i.elitLoan.getList(n.filter).then(function(i){if(i.data.errorMessage.length<=0){AK.System.alert("ElitLoan load data success");n.items=i.data.items;n.filter=i.data.filter;var r=angular.element(document.getElementById("ElitLoanPaging")).scope();r.set(n.filter.Paging.Page,n.filter.Paging.Size,n.filter.Paging.Total,n.loadData)}else AK.System.alert("ElitLoan load data failed"),AK.System.ShowMessage(i.data.errorMessage);t.akDataLoadingStringRemove("ElitLoanListLoadData");$("#ElitLoanContainer").removeClass("visibilityOff")},function(){t.akDataLoadingStringRemove("ElitLoanListLoadData");$("#ElitLoanContainer").removeClass("visibilityOff")})};n.changeFilter=function(){n.filter.Paging.Page=1;n.loadData()}};AK.ElitVendorInfo.init=function(n,t,i,r){AK.System.alert("@Elit.VendorInfo.init");t.items=undefined;t.isLoadingData=!1;t.productCode=undefined;t.loadData=function(n){t.productCode=n;t.isLoadingData=!0;t.rows=[];r.getElitVendorInfo(n).then(function(n){t.items=n.data.items;t.isLoadingData=!1;t.callbackLoaded!=undefined&&t.callbackLoaded()},function(){AK.System.alert("Elit vendorinfo load data failed");t.isLoadingData=!1;t.callbackLoaded!=unfdefined&&t.callbackLoaded()})};t.callbackLoaded=undefined};CartItemPromiseTypes={Unknown:0,InHouseOnStock:1,InHouseAvailableOn:2,ExternalOnStock:3,CommonDelivery:4};AK.Elit.Product.initStockDisponibility2=function(n,t,i){AK.System.alert("@Product.Elit.initStockDisponibility2");t.isLoading=!1;t.product=null;t.akData=null;t.showDisponibility=!0;t.noAvailableAmount=0;t.noAvailableText="";t.noAvailableDate="";t.elitVendorIsLoading=!1;t.setData=function(n){t.akData=null;t.product=n;n!=null&&t.loadData()};t.loadData=function(){t.akData=null;t.isLoading=!0;i.product.getStockDisponibility(t.product.Id,t.product.Amount,!1).then(function(i){if(i.data.errorMessage.length<=0){if(i.data.productId.toString()==n.AKStockDispProductId){if(t.akData=i.data.data,t.akData.Disponibility=null,t.noAvailableAmount=t.akData.Items.reduce(function(n,t){return n+(t.Available==!1?t.Amount:0)},0),t.noAvailableAmount>0){var r=AK.Common.altFind(t.akData.Items,function(n){return n.Available==!1});t.noAvailableText=r.Value;t.noAvailableDate=r.Date}t.elitVendorProcess()}AK.System.alert("Product stock load data success")}else AK.System.alert("Product stock load data failed"),AK.System.ShowMessage(i.data.errorMessage);t.isLoading=!1},function(){AK.System.alert("Product stock load data failed");t.isLoading=!1})};t.elitVendorProcess=function(){if(t.noAvailableAmount>0&&t.akData.HasVendorInfo){var n=angular.element(document.getElementById("ElitVendorInfo")).scope();n!=null&&n!=undefined&&(t.elitVendorIsLoading=!0,n.callbackLoaded=t.elitVendorLoaded,n.loadData(t.product.Code))}};t.elitVendorLoaded=function(){t.elitVendorIsLoading=!1};t.disponibilityAddProductCart=function(){if(t.product.NonReversible!==!0||window.confirm("Produkt lze vratit pouze se schvalenim produktoveho manazera.")){var i=(t.ediData!=null&&t.ediData.IsExpressOrderable==!0&&t.ediData.AmountSum>0||t.boschData!=null&&t.boschData.IsExpressOrderable==!0&&t.boschData.AmountSum>0)&&t.product.Amount>t.product.StorageStockAmount;n.$emit("CartAddProduct",t.product.Id,t.product.Amount,t.product.StepAmount,i,"","","","",!1);i||$(".ModalProductStockDisponibility").modal("hide")}};n.$on("CartAddProductExpressSucceed",function(n,i,r,u){var f,e,o;t.product.Id==i&&t.product.HasEDI==!0&&(f=[],e=AK.Common.altFind(t.akData.Items,function(n){return n.Type==CartItemPromiseTypes.InHouseOnStock}),e!=null&&f.push(t.createPromise(CartItemPromiseTypes.InHouseOnStock,e.Value,e.Date,e.Amount,e.StorageAbbrev)),o=AK.Common.altFind(t.akData.Items,function(n){return n.Type==CartItemPromiseTypes.InHouseAvailableOn}),o!=null&&f.push(t.createPromise(CartItemPromiseTypes.InHouseAvailableOn,o.Value,o.Date,o.Amount,o.StorageAbbrev)),t.ediData.AmountSum>0&&f.push(t.createPromise(CartItemPromiseTypes.ExternalOnStock,t.ediData.Disponibility.Text,t.ediData.Disponibility.Text,t.ediData.AmountSum,t.ediData.SupplierName)),t.noAvailableAmount>0&&f.push(t.createPromise(CartItemPromiseTypes.CommonDelivery,t.noAvailableText,t.noAvailableDate,t.noAvailableAmount,"NO")),promise={CartId:r,CartItemId:u,ProductId:i,Items:f},t.updatePromise(promise));$(".ModalProductStockDisponibility").modal("hide")});t.createPromise=function(n,t,i,r,u){return promiseItem={TypeId:n,Date:i,Text:t,Amount:r,LastUpdate:"",StorageAbbrev:u}};t.updatePromise=function(n){i.cart.updatePromise(n).then(function(n){n.data.errorMessage.length>0&&AK.System.alert("Update promise error: "+n.data.errorMessage)},function(){AK.System.alert("Update promise  failed")})};t.recalcAmount=function(){var i,n;if(t.product.Amount<=t.product.StorageStockAmount)return i=t.akData.Items.reduce(function(n,t){return n+(t.Available==!0?t.Amount:0)},0),i<t.product.Amount&&t.loadData(),!1;if(n=t.product.Amount-t.product.StorageStockAmount,t.HasEDI){if(n<=t.ediData.AmountSum)return t.ediData.AmountSum=n,t.noAvailableAmount=0,!1;t.noAvailableAmount=n;t.loadEDIData(n)}else t.noAvailableAmount=n};t.increaseAmount=function(){t.product.Amount=Number(Number(t.product.Amount)+Number(t.product.StepAmount));t.recalcAmount()};t.decreaseAmount=function(){var n=Number(t.product.Amount),i=Number(t.product.StepAmount);return n>i&&(t.product.Amount=Number(n-i)),t.recalcAmount(),!1}};AK.ElitOeDelivery.init=function(n,t,i,r){AK.System.alert("@Product.ElitOeDelivery.init");t.isLoading=!1;t.product=null;t.items=null;t.selectedOeDeliveryId=null;t.nonReversibleMessage=r;t.model={};t.setData=function(n){t.items=null;t.product=n;n!=null&&t.loadData()};t.loadData=function(){t.items=null;t.isLoading=!0;i.elitOeDelivery.getData(t.product.Id,t.product.Amount).then(function(i){i.data.productId.toString()==n.OEDeliveryProductId&&(t.items=i.data.items,t.items&&t.items.length>0&&(t.selectedOeDeliveryId=t.items[0].Id));AK.System.alert("OeDelivery load data success");t.isLoading=!1},function(){AK.System.alert("OeDelivery load data failed");t.isLoading=!1})};t.disponibilityAddProductCart=function(){if(t.product.NonReversible!==!0||window.confirm(t.nonReversibleMessage))n.$emit("CartAddProduct",t.product.Id,t.product.Amount,t.product.StepAmount,!1,t.selectedOeDeliveryId,t.product.Note,"","",!1),$(".ModalProductOeDelivery").modal("hide")};t.increaseAmount=function(){t.product.Amount=Number(Number(t.product.Amount)+Number(t.product.StepAmount))};t.decreaseAmount=function(){var n=Number(t.product.Amount),i=Number(t.product.StepAmount);return n>i&&(t.product.Amount=Number(n-i)),!1};t.selectOeDelivery=function(n){t.selectedOeDeliveryId=n.Id}};AK.BatchInfo.init=function(n,t,i){AK.System.alert("@BatchInfo.init");n.data=null;n.loadData=function(){n.data=null;i.batchInfo.getData().then(function(t){t.data.errorMessage.length<=0?(n.data=t.data.data,AK.System.alert("BatchInfo load data success")):AK.System.alert("BatchInfo load data failed")},function(){AK.System.alert("BatchInfo load data failed")})};n.loadData()};AK.History.getHistoryCatalog=function(n,t,i){AK.System.alert("@History.getHistoryCatalog");t.history=null;t.paging={Page:1,Size:5,Total:1};t.loadData=function(r){n.akDataLoadingStringAdd("HistoryCatalogListLoadData");i.getHistoryCatalogs(r).then(function(i){i.data.errorMessage.length<=0?(t.history=i.data.history,AK.System.alert("HistoryCatalog laod data success"),t.paging=i.data.paging,t.setRange()):(AK.System.alert("HistoryCatalog load data failed"),AK.System.ShowMessage(i.data.ErrorMessage));$(".HistoryCatalogContainer").removeClass("visibilityOff");n.akDataLoadingStringRemove("HistoryCatalogListLoadData")},function(){AK.System.alert("Get HistoryCatalog data failed");$(".HistoryCatalogContainer").removeClass("visibilityOff");n.akDataLoadingStringRemove("HistoryCatalogListLoadData")})};t.loadData(t.paging.Page);t.ranges=[];t.setRange=function(){var i=5,r=Math.ceil(i/2)-1,u,f=t.paging.Total,n;for(u=t.paging.Page<=r+1?1:t.paging.Page>f-r?Math.max(1,f-i+1):t.paging.Page-r+1,t.ranges=[],n=u;n<u+i-1;n++)n>=1&&n<=f&&t.ranges.push(n)};t.setRange();t.prevPage=function(){t.paging.Page>1&&t.setPage(t.paging.Page-1)};t.prevPageDisabled=function(){return t.paging.Page===1?"prev disabled":""};t.nextPage=function(){t.paging.Page<t.paging.Total&&t.paging.Page++};t.nextPageDisabled=function(){return t.paging.Page===t.paging.Total?"next disabled":""};t.setPage=function(n){t.paging.Page=n;t.loadData(t.paging.Page)}};AK.History.getHistoryVin=function(n,t){AK.System.alert("@History.getHistoryVin");n.history=null;n.paginationVisible=!1;n.isDataLoaded=!1;n.page=1;n.pageSize=5;n.totalItems=0;t.getHistoryVins().success(function(t){n.history=t;n.page=n.history.Page;n.pageSize=n.history.PageSize;n.totalItems=n.history.TotalItems;n.totalItems>n.pageSize&&(n.paginationVisible=!0);n.isDataLoaded=!0});n.range=function(){for(var i=5,r=Math.ceil(i/2)-1,e=[],f=n.pageCount(),u=n.page<=r+1?1:n.page>f-r?f-i+1:n.page-r+1,t=u;t<u+i-1;t++)t>=1&&t<=f&&e.push(t);return e};n.prevPage=function(){n.page>1&&n.page--};n.prevPageDisabled=function(){return n.page===1?"prev disabled":""};n.pageCount=function(){return Math.ceil(n.totalItems/n.pageSize)};n.nextPage=function(){n.page<n.pageCount()&&n.page++};n.nextPageDisabled=function(){return n.page===n.pageCount()?"next disabled":""};n.setPage=function(t){n.page=t};n.$watch("page",function(i,r){i!=r&&(n.isDataLoaded=!1,t.getHistoryVinsByPage(i).success(function(t){n.history=t;n.pageSize=n.history.PageSize;n.totalItems=n.history.TotalItems;n.isDataLoaded=!0}))})};AK.History2.init=function(n,t){AK.System.alert("@History2.init");t.loadNext=function(){var i=angular.element(document.getElementById("History2Catalog")).scope(),n,t;i.loadNext();n=angular.element(document.getElementById("History2Product")).scope();n.loadNext();t=angular.element(document.getElementById("History2Vin")).scope();t.loadNext()}};AK.History2Catalog.init=function(n,t,i){AK.System.alert("@History2Catalog.init");t.items=[];t.totalCount=0;t.loadData=function(n){i.history2.catalog.getData(n).then(function(n){n.data.errorMessage.length<=0?(t.items=n.data.items,t.totalCount=n.data.totalCount,AK.System.alert("History2 load data success")):(AK.System.alert("History2 load data failed"),AK.System.ShowMessage(n.data.ErrorMessage));$(".History2Container").removeClass("visibilityOff")},function(){AK.System.alert("Get History2 data failed");$(".History2Container").removeClass("visibilityOff")})};t.loadData(t.items.length);t.loadNext=function(){t.totalCount>t.items.length&&i.history2.catalog.getData(t.items.length).then(function(n){n.data.errorMessage.length<=0?(t.items=t.items.concat(n.data.items),AK.System.alert("History2 load data success")):AK.System.alert("History2 load data failed")},function(){AK.System.alert("Get History2 data failed")})}};AK.History2Product.init=function(n,t,i){AK.System.alert("@History2Product.init");t.items=[];t.totalCount=0;t.loadData=function(n){i.history2.product.getData(n).then(function(n){if(n.data.errorMessage.length<=0){t.items=n.data.items;t.totalCount=n.data.totalCount;var i=n.data.items.filter(function(n){return n.LoadUserPrice==!0}).map(function(n){return n.Id});t.loadPrices(i);AK.System.alert("History2 load data success")}else AK.System.alert("History2 load data failed");$(".History2Container").removeClass("visibilityOff")},function(){AK.System.alert("Get History2 data failed");$(".History2Container").removeClass("visibilityOff")})};t.loadData(t.items.length);t.loadNext=function(){t.totalCount>t.items.length&&i.history2.product.getData(t.items.length).then(function(n){if(n.data.errorMessage.length<=0){t.items=t.items.concat(n.data.items);t.totalCount=n.data.totalCount;var i=n.data.items.filter(function(n){return n.LoadUserPrice==!0}).map(function(n){return n.Id});t.loadPrices(i);AK.System.alert("History2 load data success")}else AK.System.alert("History2 load data failed"),AK.System.ShowMessage(n.data.ErrorMessage)},function(){AK.System.alert("Get History2 data failed")})};t.loadPrices=function(n){n!=undefined&&n.length>0&&i.getProductUserPrice(n).then(function(n){n.data.Content!=undefined?t.items.forEach(function(t){var i=AK.Common.altFind(n.data.Content,function(n){return n.ProductId==t.Id});i!=undefined&&(t.Price=i.Price,t.PriceVat=i.PriceVat)}):n.data.error!=undefined&&AK.System.alert(n.data.error)},function(){})}};AK.History2Vin.init=function(n,t,i){AK.System.alert("@History2Vin.init");t.items=[];t.page=1;t.totalCount=0;t.loadData=function(n){i.history2.vin.getData(n).then(function(n){n.data.errorMessage.length<=0?(t.items=n.data.items,t.totalCount=n.data.totalCount,AK.System.alert("History2 load data success")):AK.System.alert("History2 load data failed");$(".History2Container").removeClass("visibilityOff")},function(){AK.System.alert("Get History2 data failed");$(".History2Container").removeClass("visibilityOff")})};t.loadData(t.items.length);t.vinProcess=function(n){t.saveNote(n);window.location=n.Link};t.saveNote=function(n){n.Note!=n.NoteBase&&i.history2.vin.saveNote(n).then(function(t){AK.System.ShowMessage(t.data.message);t.data.succeed===!0&&(n.NoteBase=n.Note)},function(){AK.System.alert("Save History2 vin note failed")})};t.loadNext=function(){t.totalCount>t.items.length&&i.history2.vin.getData(t.items.length).then(function(n){n.data.errorMessage.length<=0?(t.items=t.items.concat(n.data.items),AK.System.alert("History2 load data success")):AK.System.alert("History2 load data failed")},function(){AK.System.alert("Get History2 data failed")})}};AK.Dashboard.getUserInfo=function(n,t){AK.System.alert("@Dashboard.getUserInfo");n.userInfo=null;t.getUserInfos().success(function(t){n.userInfo=t;var i={highlights:[{from:0,to:n.userInfo.GaugeSales,color:"#fff000"},{from:n.userInfo.GaugeSales,to:220,color:"#eee"}]},r={highlights:[{from:0,to:n.userInfo.GaugeRequiredBackBonus,color:"#fff000"},{from:n.userInfo.GaugeRequiredBackBonus,to:220,color:"#eee"}]};setTimeout(function(){Gauge.Collection.get("gauge1").setValue(n.userInfo.Vin)},1e3);n.userInfo.BackBonusEnabled?(setTimeout(function(){Gauge.Collection.get("gauge2").updateConfig(i).setValue(n.userInfo.GaugeCurrentSales)},1600),setTimeout(function(){Gauge.Collection.get("gauge3").updateConfig(r).setValue(n.userInfo.GaugeCurrentBackBonus)},1600)):(setTimeout(function(){Gauge.Collection.get("gauge2").updateConfig(i).setValue(n.userInfo.GaugeCurrentSales)},1600),setTimeout(function(){Gauge.Collection.get("gauge3").updateConfig(i).setValue(n.userInfo.GaugeSales)},1600));setTimeout(function(){Gauge.Collection.get("gauge4").setValue(n.userInfo.Akti)},1e3);$(".DashboardContainer").removeClass("visibilityOff")})};AK.Account.getStorage=function(n,t){AK.System.alert("@Account.getStorage");n.storages=[];n.storagevalue=[];n.loadData=function(){t.getAccountStorages().success(function(t){n.storages=t;var i=0;angular.forEach(n.storages,function(t){n.storagevalue[i]=t.IsUserPrimary||t.IsEShopPrimary||t.IsUserVisible;i++})})};n.loadData();n.change=function(i,r){var u=n.storagevalue[r];t.setAccountStorageVisibility(i,u).then(function(t){t.data.error===!0?AK.System.alert("Error set storage visibility: "+i+", "+u):(AK.System.alert(i+" "+u),t.data.success?n.loadData():n.storagevalue[r]=!n.storagevalue[r]);AK.System.ShowMessage(t.data.message)},function(){AK.System.alert("Error set storage visibility: "+i+", "+u)})};n.changePrimaryStoragesSeparated=function(){var i=n.primaryStoragesSeparated;t.setAccountPrimaryStoragesSeparated(i).then(function(t){t.data.error===!0&&AK.System.alert("Error set primary storages separated: "+i);n.primaryStoragesSeparated=t.data.value;AK.System.ShowMessage(t.data.message)},function(){AK.System.alert("Error set primary storages separated: "+i)})};n.changeOutlandStoragesSeparated=function(){var i=n.outlandStoragesSeparated;t.Account.outlandStoragesSeparated.set(i).then(function(t){t.data.error===!0&&AK.System.alert("Error set outland storages separated: "+i);n.outlandStoragesSeparated=t.data.value;AK.System.ShowMessage(t.data.message)},function(){AK.System.alert("Error set outland storages separated: "+i)})}};AK.Account.getSettings=function(n,t){AK.System.alert("@Account.getSettings");n.currencyTypes=[];n.settings=undefined;n.companyBriefInfo={Visible:!1};n.logonAsKeepSelectedStorage={Visible:!1};t.getAccountSettings().then(function(t){n.settings=t.data;n.currencyTypes=n.settings.CurrencyTypes;n.selectedProductListViewType=n.settings.SelectedProductListViewType;n.selectedCurrencyType=n.settings.SelectedCurrencyType;n.selectedPriceType=n.settings.SelectedPriceType;n.priceVisibility=n.settings.PriceVisibility;n.userNotification=n.settings.UserNotification;n.companyBriefInfo.Visible=n.settings.CompanyBriefInfoVisible;n.logonAsKeepSelectedStorage.Visible=n.settings.LogonAsKeepSelectedStorageVisible},function(){AK.System.alert("Error set primary storages separated: "+value)});n.changePriceVisibility=function(){t.setAccountPriceVisibility(n.priceVisibility).then(function(t){t.data.error===!0&&AK.System.alert("Error set PriceVisibility");n.priceVisibility=t.data.priceVisibility;AK.System.ShowMessage(t.data.message)},function(){AK.System.alert("Error set PriceVisibility")})};n.changeUserNotification=function(){t.setAccountUserNotification(n.userNotification).then(function(t){t.data.error===!0&&AK.System.alert("Error set UserNotification");n.userNotification=t.data.userNotification;AK.System.ShowMessage(t.data.message)},function(){AK.System.alert("Error set UserNotification")})};n.changeCompanyBriefInfoVisibility=function(){t.setAccountCompanyBriefInfoVisibility(n.companyBriefInfo.Visible).then(function(t){t.data.error===!0?AK.System.alert("Error set CompanyBriefInfoVisibility"):(n.companyBriefInfo.Visible=t.data.value,AK.System.ShowMessage(t.data.message),window.location.reload())},function(){AK.System.alert("Error set CompanyBriefInfoVisibility")})};n.changeLogonAsKeepSelectedStorageVisibility=function(){t.setAccountLogonAsKeepSelectedStorageVisibility(n.logonAsKeepSelectedStorage.Visible).then(function(t){t.data.error===!0?AK.System.alert("Error set LogonAsKeepSelectedStorageVisibility"):(n.logonAsKeepSelectedStorage.Visible=t.data.value,AK.System.ShowMessage(t.data.message),window.location.reload())},function(){AK.System.alert("Error set LogonAsKeepSelectedStorageVisibility")})};n.changeGraphicsCatalogProductTargetBlank=function(i){n.settings.GraphicCatalogProductTargetBlankEnabled=i;t.setAccountGraphicCatalogProductTargetBlank(n.settings.GraphicCatalogProductTargetBlankEnabled).then(function(n){n.data.success===!1&&AK.System.ShowMessage(n.data.message);AK.System.alert(n.data.message)},function(){AK.System.alert("Error set GraphicCatalogProductTargetBlankEnabled")})};n.$watch("selectedProductListViewType",function(n,i){n!=i&&i!=undefined&&t.changeProductListViewType(n).then(function(){AK.System.alert("Change view type to: "+n)},function(){AK.System.alert("Error change view type to: "+n)})});n.changePriceType=function(t){n.selectedCurrencyType=t};n.$watch("selectedCurrencyType",function(n,i){n!=i&&i!=undefined&&t.changeCurrencyType(n).then(function(){AK.System.alert("Change currency type to: "+n)},function(){AK.System.alert("Error change currency type to: "+n)})});n.$watch("selectedPriceType",function(n,i){n!=i&&i!=undefined&&t.changePriceType(n).then(function(){AK.System.alert("Change price type to: "+n)},function(){AK.System.alert("Error change price type to: "+n)})})};AK.Account.getForgottenPassword=function(n,t){AK.System.alert("@Account.getForgottenPassword");n.inputValue=null;n.formSubmitted=!1;n.submit=function(){(n.formSubmitted=!0,n.forgottenPasswordForm.$invalid)||(AK.System.alert("Send forgotten password for: "+n.inputValue),t.sendAccountForgottenPassword(n.inputValue).then(function(n){$("#ModalForgottenPassword").modal("hide");AK.System.ShowMessage(n.data.message)},function(){$("#ModalForgottenPassword").modal("hide");AK.System.alert("Send forgotten password failed")}))}};AK.Account.getChangePassword=function(n,t,i){AK.System.alert("@Account.getChangePassword");n.changeId=i;n.newPassword="";n.newPassword2="";n.formSubmitted=!1;n.isMatching=!0;n.submit=function(){if(n.formSubmitted=!0,n.newPassword!=n.newPassword2){n.isMatching=!1;return}n.changePasswordForm.$invalid||(AK.System.alert("Send new password"),t.setAccountNewPassword(n.changeId,n.newPassword).then(function(n){n.data==!0?(AK.System.alert("Password changed successfully"),window.location="/Account/SuccessChangePassword"):AK.System.alert("Error in changing password.")},function(){}))};n.change=function(){n.isMatching=n.formSubmitted&&n.newPassword!=n.newPassword2?!1:!0}};AK.Account.getAccountDelete=function(n,t,i){AK.System.alert("@Account.getAccountDelete");t.account=n.accountDelete;n.$on("AccountDeleted",function(){t.account=n.accountDelete});t.delete=function(){AK.System.alert("Delete AccountId: "+t.account.Id);i.Account.remove(t.account.Id).then(function(){AK.System.alert("Deleted account");$("#ModalDeleteAccount").modal("hide");window.location="/account/list"},function(n){$("#ModalDeleteAccount").modal("hide");AK.System.alert("Deleted account failed! "+n)})}};AK.Account.getAccountEdit=function(n,t,i){AK.System.alert("@Account.getAccountEdit");t.account=n.accountEdit;t.formSubmitted=!1;t.passwordChangeEnabled=!1;n.$on("AccountEdited",function(){t.account=n.accountEdit;t.formSubmitted=!1;t.passwordChangeEnabled=!1;t.editAccountForm.$setPristine()});t.edit=function(){if(t.formSubmitted=!0,t.passwordChangeEnabled&&t.account.Password!=t.account.Password2){t.isMatching=!1;return}t.editAccountForm.$invalid||(AK.System.alert("Edit AccountId: "+t.account.Id),i.Account.edit(t.account).then(function(){AK.System.alert("Edited account");$("#ModalEditAccount").modal("hide");window.location="/account/list"},function(n){$("#ModalEditAccount").modal("hide");AK.System.alert("Account edit failed! "+n)}))};t.change=function(){t.isMatching=t.formSubmitted&&t.account.Password!=t.account.Password2?!1:!0}};AK.Account.getAccounts=function(n,t,i){AK.System.alert("@Account.getAccounts");n.akDataLoadingStringAdd("AccountList");t.formSubmitted=!1;t.data=null;t.errorMessage="";t.loadData=function(){i.Account.list().then(function(i){t.data=i.data;$("#AccountListContainer").removeClass("visibilityOff");n.akDataLoadingStringRemove("AccountList")},function(){AK.System.alert("Get account list failed");$("#AccountListContainer").removeClass("visibilityOff");n.akDataLoadingStringRemove("AccountList")})};t.loadNewAccount=function(){t.formSubmitted=!1;t.errorMessage="";t.isMatching=!0;t.newAccount={Username:"",Password:"",Password2:"",Fullname:"",Email:"",Phone:"",Role:"none",UsernameInvoiceNoteEnabled:!1}};t.loadData();t.loadNewAccount();t.create=function(){if(t.formSubmitted=!0,t.newAccount.Password!=t.newAccount.Password2){t.isMatching=!1;return}t.createAccountForm.$invalid||(AK.System.alert("Creating new account"),i.Account.addNew(t.newAccount).then(function(i){i.data.Result==!0?(AK.System.alert("Successfully created new account"),t.formSubmitted=!1,t.createAccountForm.$setPristine(),$("#ModalCreateAccount").modal("hide"),n.akDataLoadingStringAdd("AccountList"),t.loadData(),t.loadNewAccount()):(t.errorMessage=i.data.Message,AK.System.alert("Error in creating account."+t.errorMessage))},function(){AK.System.alert("Creating new account failed")}))};t.change=function(){t.isMatching=t.formSubmitted&&t.newAccount.Password!=t.newAccount.Password2?!1:!0};t.openModalDelete=function(t){return AK.System.alert("Open ModalDelete accountId: "+t.Id),n.accountDelete=t,n.$emit("AccountDeleted"),$("#ModalDeleteAccount").modal("show"),!1};t.openModalEdit=function(t){return AK.System.alert("Open ModalEdit accountId: "+t.Id),n.accountEdit=t,n.$emit("AccountEdited"),$("#ModalEditAccount").modal("show"),!1}};AK.Account.initDebt=function(n,t,i){AK.System.alert("@Account.initDebt");t.debts=[];t.loadData=function(){i.Account.getDebt().then(function(n){t.debts=n.data},function(){AK.System.alert("Get account list failed")})};t.loadData()};AK.Garage.getCarList=function(n,t,i){AK.System.alert("@Garage.getCarList");n.cars=null;n.carSearchStr="";n.filterOwnerId=AK.System.GuidEmpty;n.showAllVisible=!1;n.paging={Page:1,Size:5,Total:1};n.loadData=function(r){r==undefined&&(r=1);t.akDataLoadingStringAdd("CarList");i.getCars(r).then(function(i){n.cars=i.data;n.paging=n.cars.Paging;n.paging==undefined&&(n.paging={Page:1,Size:5,Total:1});n.setRange();$("#GarageContainer").removeClass("visibilityOff");t.akDataLoadingStringRemove("CarList")},function(){AK.System.alert("Get car list failed");$("#GarageContainer").removeClass("visibilityOff");t.akDataLoadingStringRemove("CarList")})};n.loadData(1);t.$on("GarageCarListReload",function(t,i){i==undefined&&(i=1);n.loadData(i)});n.loadFilter=function(){i.garage.getFilter().then(function(t){t.data.success==!0?(n.carSearchStr=t.data.search,n.filterOwnerId=t.data.ownerId):AK.System.alert("Get garage filter failed");(n.carSearchStr.length>0||n.filterOwnerId.length>0&&n.filterOwnerId!=AK.System.GuidEmpty)&&(n.showAllVisible=!0)},function(){AK.System.alert("Get garage filter failed")})};n.loadFilter();n.ranges=[];n.setRange=function(){var i=5,r=Math.ceil(i/2)-1,u,f=n.paging.Total,t;for(u=n.paging.Page<=r+1?1:n.paging.Page>f-r?Math.max(1,f-i+1):n.paging.Page-r+1,n.ranges=[],t=u;t<u+i-1;t++)t>=1&&t<=f&&n.ranges.push(t)};n.prevPage=function(){n.paging.Page>1&&n.paging.Page--};n.prevPageDisabled=function(){return n.paging.Page===1?"prev disabled":""};n.nextPage=function(){n.paging.Page<n.paging.Total&&n.paging.Page++};n.nextPageDisabled=function(){return n.paging.Page===n.paging.Total?"next disabled":""};n.setPage=function(t){n.paging.Page=t};n.$watch("paging.Page",function(t,i){t!=i&&n.loadData(t)});n.search=function(){n.formSubmitted=!0;n.carSearchForm.$invalid?AK.System.alert("Failed validation"):(t.akDataLoadingStringAdd("CarList"),i.searchCars(n.carSearchStr).then(function(i){n.cars=i.data;n.paging=n.cars.Paging;n.setRange();n.showAllVisible=!0;$("#GarageContainer").removeClass("visibilityOff");t.akDataLoadingStringRemove("CarList")},function(){AK.System.alert("Get search cars failed");$("#GarageContainer").removeClass("visibilityOff");t.akDataLoadingStringRemove("CarList")}))};n.showAll=function(){if(n.carSearchStr="",n.formSubmitted=!1,n.carSearchForm.$setPristine(),n.filterOwnerId=AK.System.GuidEmpty,t.$emit("ClearGarageCarListFilter"),window.location.href.indexOf("garage/owner/")>-1){var r=AK.System.url+"/garage/carlist";AK.System.ChangeUrlWithoutReload(document.title,r)}t.akDataLoadingStringAdd("CarList");i.showAllCars().then(function(i){n.cars=i.data;n.paging=n.cars.Paging;n.setRange();n.showAllVisible=!1;$("#GarageContainer").removeClass("visibilityOff");t.akDataLoadingStringRemove("CarList")},function(){AK.System.alert("Get search cars failed");$("#GarageContainer").removeClass("visibilityOff");t.akDataLoadingStringRemove("CarList")})};n.decodeVin=function(t){t.length==17&&n.openModalVinCreditUse(t)};n.openModalVinCreditUse=function(n){return AK.System.alert("Open ModalVinCreditUse"),t.vin=n,$("#ModalVinCreditUse").modal("show"),!1};n.cartName="";n.createNewCart=function(t,i,r,u,f){AK.System.alert("Show NewCartModal");n.cartName=t.length>0?t:i.length>0?i:r.length>0?r:u;n.addCart(f)};n.addCart=function(r){return AK.System.alert("Create cart: "+n.cartName),t.akDataLoadingStringAdd("GarageAddCart"),i.cart.add(n.cartName).then(function(){t.akDataLoadingStringRemove("GarageAddCart");window.location.href=r},function(){t.akDataLoadingStringRemove("GarageAddCart")}),!1};n.openModalDelete=function(n){return AK.System.alert("Open ModalDelete GarageParkedCar: "+n),t.parkedCarId=n,$("#ModalGarageParkedCarDelete").modal("show"),!1}};AK.Garage.getCarDetail=function(n,t,i,r,u){AK.System.alert("@Garage.getCarDetail");n.parkedCarId=u;n.formSubmitted=!1;n.carDetail=null;n.isHomeServiceCancelVisible=!1;n.saveSuccessed=!1;n.homeServiceTemplate="";n.serviceSheetTemplate="";n.serviceBookTemplate="";n.calcOfferTemplate="";n.orderListTemplate="";n.homeServiceIsOpened=!1;n.serviceSheetIsOpened=!1;n.serviceBookIsOpened=!1;n.calcOfferIsOpened=!1;n.orderListIsOpened=!1;n.summerTyresStoreEnabled=!1;n.winterTyresStoreEnabled=!1;n.modalNewTitleText="";n.modalEditTitleText="";n.modalCustomerEditTitle="";n.errorMessage="";n.loadData=function(){t.akDataLoadingStringAdd("GarageCarDetail");n.errorMessage="";i.getCarDetail(n.parkedCarId).then(function(i){if(i.data.errorMessage.length>0)return AK.System.ShowMessage(i.data.errorMessage),t.akDataLoadingStringRemove("GarageCarDetail"),n.errorMessage=i.data.errorMessage,!1;n.carDetail=i.data.carDetail;n.setNotifications();n.summerTyresStoreEnabled=n.carDetail.Car.Tyres[0].StoreDate!=null&&n.carDetail.Car.Tyres[0].StoreDate!="";n.winterTyresStoreEnabled=n.carDetail.Car.Tyres[1].StoreDate!=null&&n.carDetail.Car.Tyres[1].StoreDate!="";n.carDetail.Car.HomeService!=null&&n.carDetail.Car.HomeService!=undefined&&n.setHomeService(n.carDetail.Car.HomeService.CompanyId,n.carDetail.Car.HomeService.Name,n.carDetail.Car.HomeService.Street,n.carDetail.Car.HomeService.Town,n.carDetail.Car.HomeService.Zip);n.modalNewTitleText=i.data.modalNewTitleText;n.modalEditTitleText=i.data.modalEditTitleText;$("#GarageCarDetailContainer").removeClass("visibilityOff");t.akDataLoadingStringRemove("GarageCarDetail")},function(){n.errorMessage="Get car detail data failed";AK.System.alert("Get car detail data failed");t.akDataLoadingStringRemove("GarageCarDetail")})};n.loadData();t.loadDataCarDetail=function(){n.loadData()};n.setHomeService=function(t,i,r,u,f){i!=""&&r!=""&&u!=""&&f!=""?($(".HomeServiceSelected").text(i+", "+r+", "+f+" "+u),n.homeServiceCancelSetVisible()):$(".HomeServiceSelected").text("");$(".HomeServiceSelected").attr("homeService",t)};n.openHomeService=function(){n.homeServiceIsOpened===!1&&i.getHomeServiceTemplate().success(function(t){n.homeServiceTemplate=r.trustAsHtml(t);n.homeServiceIsOpened=!0;console.log("Opened HomeService")})};n.openServiceSheet=function(){n.serviceSheetIsOpened===!1&&i.ServiceSheet.getCarListTemplate(n.parkedCarId).success(function(t){n.serviceSheetTemplate=r.trustAsHtml(t);n.serviceSheetIsOpened=!0;console.log("Opened ServiceSheet")})};t.reloadServiceSheet=function(){n.serviceSheetIsOpened=!1;n.serviceSheetTemplate="";n.openServiceSheet()};n.openServiceBook=function(){n.serviceBookIsOpened===!1&&i.getServiceBookTemplate().success(function(t){n.serviceBookTemplate=r.trustAsHtml(t);n.serviceBookIsOpened=!0;console.log("Opened ServiceBook")})};t.reloadServiceBook=function(){n.serviceBookIsOpened=!1;n.serviceBookTemplate="";n.openServiceBook()};n.openCalcOffer=function(){n.calcOfferIsOpened===!1&&i.calcOffer.getListTemplate(n.parkedCarId).success(function(t){n.calcOfferTemplate=r.trustAsHtml(t);n.calcOfferIsOpened=!0;AK.System.alert("Opened CalcOffer")})};n.openOrderList=function(){n.orderListIsOpened===!1&&i.garage.getOrderListTemplate().success(function(t){n.orderListTemplate=r.trustAsHtml(t);n.orderListIsOpened=!0;console.log("Opened OrderList")})};n.save=function(){if(n.formSubmitted=!0,n.carDetailForm.$invalid){n.carDetailForm.email.$invalid&&AK.System.ShowError($(".ErrorMessage.Email")[0].innerText);return}n.saveSuccessed=!1;n.carDetail.Car.HomeService.Name=$(".HomeServiceSelected").text();n.carDetail.Car.HomeService.CompanyId=$(".HomeServiceSelected").attr("homeService");i.saveParkedCar(n.carDetail.Car).then(function(t){t.data.succeed==!0?(AK.System.alert("Save car suceess"),n.saveSuccessed=!0,$("#ModalSaveParkedCar").modal("show"),t.data.newParkedCarId!=n.carDetail.Car.Id&&(window.location="/Garage/Car/"+t.data.newParkedCarId)):(AK.System.alert("Error in save car"),n.saveSuccessed=!1,$("#ModalSaveParkedCar").modal("show"))},function(t){AK.System.alert(t);n.saveSuccessed=!1;$("#ModalSaveParkedCar").modal("show")})};n.reload=function(){n.saveSuccessed&&window.location.reload()};n.openModalDelete=function(){return AK.System.alert("Open ModalDelete GarageParkedCar: "+n.carDetail.Car.Id),t.parkedCarId=n.carDetail.Car.Id,$("#ModalGarageParkedCarDelete").modal("show"),!1};n.homeServiceCancel=function(){$(".HomeServiceSelected").text("");$(".HomeServiceSelected").attr("homeService",0);n.isHomeServiceCancelVisible=!1};n.homeServiceCancelSetVisible=function(){n.isHomeServiceCancelVisible=!0};t.$on("GarageHomeServiceCancelSetVisible",function(){n.isHomeServiceCancelVisible=!0;n.$apply()});n.decodeVin=function(){n.carDetail.Car.VIN.length==17&&n.openModalVinCreditUse()};n.openModalVinCreditUse=function(){return AK.System.alert("Open ModalVinCreditUse"),t.vin=n.carDetail.Car.VIN,$("#ModalVinCreditUse").modal("show"),!1};n.cartName="";n.createNewCart=function(t,i,r,u,f){AK.System.alert("Show NewCartModal");n.cartName=t.length>0?t:i.length>0?i:r.length>0?r:u;n.addCart(f)};n.addCart=function(r){return AK.System.alert("Create cart: "+n.cartName),t.akDataLoadingStringAdd("GarageAddCart"),i.cart.add(n.cartName).then(function(){t.akDataLoadingStringRemove("GarageAddCart");window.location.href=r},function(){t.akDataLoadingStringRemove("GarageAddCart")}),!1};n.$watch("summerTyresStoreEnabled",function(t,i){t!=i&&(t?n.carDetail.Car.Tyres[0].StoreDate==""&&(n.carDetail.Car.Tyres[0].StoreCount=4):(n.carDetail.Car.Tyres[0].StoreDate="",n.carDetail.Car.Tyres[0].StoreCount=0))});n.$watch("winterTyresStoreEnabled",function(t,i){t!=i&&(t?n.carDetail.Car.Tyres[1].StoreDate==""&&(n.carDetail.Car.Tyres[1].StoreCount=4):(n.carDetail.Car.Tyres[1].StoreDate="",n.carDetail.Car.Tyres[1].StoreCount=0))});n.setNotifications=function(){n.ntfMOT={Date:"",Class:""};n.ntfMedikit={Date:"",Class:""};n.ntfServiceInspection={Date:"",Class:""};n.carDetail.Car.Notifications!=undefined&&(n.carDetail.Car.Notifications.forEach(function(t){t.Type=="STK"&&(n.ntfMOT.Date=t.Date,n.ntfMOT.Class=t.Validation=="Expired"?"danger":t.Validation=="LastMonth"||t.Validation=="LastWeek"?"attention":t.Validation=="OK"?"success":"");t.Type=="MedKit"&&(n.ntfMedikit.Date=t.Date,n.ntfMedikit.Class=t.Validation=="Expired"?"danger":t.Validation=="LastMonth"||t.Validation=="LastWeek"?"attention":t.Validation=="OK"?"success":"");t.Type=="ServiceInspection"&&(n.ntfServiceInspection.Date=t.Date,n.ntfServiceInspection.Class=t.Validation=="Expired"?"danger":t.Validation=="LastMonth"||t.Validation=="LastWeek"?"attention":t.Validation=="OK"?"success":"")}),n.ntfMOT.Date==""&&(n.ntfMOT.Date=n.carDetail.Car.ImportantDates.MOT,n.ntfMOT.Class=n.carDetail.Car.ImportantDates.MOT!=""?"success":""),n.ntfMedikit.Date==""&&(n.ntfMedikit.Date=n.carDetail.Car.ImportantDates.Medikit,n.ntfMedikit.Class=n.carDetail.Car.ImportantDates.Medikit!=""?"success":""))};n.editCustomerClick=function(t,u){n.modalCustomerEditTitle=u==AK.System.GuidEmpty?n.modalNewTitleText:n.modalEditTitleText;i.serviceCustomer.getModalEditContent(u,t).then(function(t){t.data.errorMessage.length<=0?(n.modalEditContent=r.trustAsHtml(t.data.content),$("#ModalEditCustomer").modal("show"),AK.System.alert("Get edit content success")):AK.System.ShowMessage(t.data.errorMessage)},function(){AK.System.alert("Get edit content failed")})};t.$on("ServiceCustomer_SaveSuccess",function(t,r){$("#ModalEditCustomer").modal("hide");i.serviceCustomer.getData(r).then(function(t){t.data.errorMessage.length<=0?(n.carDetail.Car.Customer=t.data.customer,AK.System.alert("Get data for customer success")):AK.System.ShowMessage(t.data.errorMessage)},function(){AK.System.alert("Get data for customer failed")})});n.removeCustomerClick=function(t,r){i.serviceCustomer.unbindCar(r,t).then(function(t){t.data.success==!0&&(n.carDetail.Car.Customer=null,AK.System.alert("Unbind car success"));AK.System.ShowMessage(t.data.message)},function(){AK.System.alert("Unbind customer failed")})};n.selectCustomerClick=function(){i.serviceCustomer.getModalSelectContent().then(function(t){t.data.errorMessage.length<=0?(n.modalSelectContent=r.trustAsHtml(t.data.content),$("#ModalSelectCustomer").modal("show"),AK.System.alert("Get edit content success")):AK.System.ShowMessage(t.data.errorMessage)},function(){AK.System.alert("Get edit content failed")})};t.$on("ServiceCustomer_Select",function(t,r){AK.System.alert("Service customer selected - id: "+r);r!=AK.System.GuidEmpty?i.serviceCustomer.bindCar(r,n.parkedCarId).then(function(t){$("#ModalSelectCustomer").modal("hide");t.data.success==!0&&(n.carDetail.Car.Customer=t.data.customer,AK.System.alert("Bind car success"));AK.System.ShowMessage(t.data.message)},function(){AK.System.alert("Select customer failed")}):AK.System.alert("Nekde se stala chyba - vyber zakaznika vratilo neplatne ID")})};AK.Garage.getParkedCarDelete=function(n,t,i){AK.System.alert("@Garage.getParkedCarDelete");n.delete=function(){var n=t.parkedCarId;AK.System.alert("Delete id: "+n);i.deleteParkedCar(n).then(function(n){n.data==!0?(AK.System.alert("Parked car is deleted"),$("#ModalGarageParkedCarDelete").modal("hide"),t.$emit("GarageCarListReload",1)):($("#ModalGarageParkedCarDelete").modal("hide"),alert("Error in deleting parked car"))},function(){$("#ModalGarageParkedCarDelete").modal("hide")})}};AK.Garage.getServiceBook=function(n,t,i){AK.System.alert("@Garage.getServiceBook");n.serviceBook=null;n.isDataLoaded=!1;n.saveSuccessed=!1;n.getData=function(){n.isDataLoaded=!1;i.getServiceBook(n.parkedCarId).success(function(t){n.serviceBook=t;n.isDataLoaded=!0;$("#ak-cardetail-serviceBook2").removeClass("visibilityOff")})};n.getData();n.saveNewInspection=function(){n.saveSuccessed=!1;var r=n.serviceBook.EmptyInspection;return i.createServiceBookInspection(r).then(function(i){i.data==!0?(AK.System.alert("Created new service inspection"),n.saveSuccessed=!0,$("#ModalSaveServiceBookInspection").modal("show"),t.loadDataCarDetail(),t.reloadServiceBook()):(AK.System.alert("Error in creating new service inspection"),n.saveSuccessed=!1,$("#ModalSaveServiceBookInspection").modal("show"))},function(t){AK.System.alert(t);n.saveSuccessed=!1;$("#ModalSaveServiceBookInspection").modal("show")}),!1};n.saveInspection=function(r){n.saveSuccessed=!1;var u=n.serviceBook.Inspections.forEach(function(u){u.Id==r&&i.saveServiceBookInspection(u).then(function(i){i.data==!0?(AK.System.alert("Created new service inspection"),n.saveSuccessed=!0,$("#ModalSaveServiceBookInspection").modal("show"),t.loadDataCarDetail(),t.reloadServiceBook()):(AK.System.alert("Error in creating new service inspection"),n.saveSuccessed=!1,$("#ModalSaveServiceBookInspection").modal("show"))},function(t){AK.System.alert(t);n.saveSuccessed=!1;$("#ModalSaveServiceBookInspection").modal("show")})});return!1}};AK.Garage.initServiceInspection=function(n,t,i,r,u,f,e){AK.System.alert("@Garage.getServiceInspection");n.carId=r;n.inspectionId=u;n.companyId=f;n.totalCheckBadrowMessage=e;n.carname="";n.inspection=undefined;n.loadData=function(){t.akDataLoadingStringAdd("ServiceInspectionLoadData");i.serviceInspection.getData(n.carId,n.inspectionId).then(function(i){i.data.message.length<=0?(n.inspection=i.data.inspection,n.carname=i.data.carname,AK.System.alert("ServiceInspection laod data success")):(AK.System.alert("ServiceInspection load data failed"),AK.System.ShowMessage(i.data.message));$(".serviceInspectionContainer").removeClass("visibilityOff");t.akDataLoadingStringRemove("ServiceInspectionLoadData")},function(){AK.System.alert("Get serviceInspection data failed");$(".serviceInspectionContainer").removeClass("visibilityOff");t.akDataLoadingStringRemove("ServiceInspectionLoadData")})};n.loadData();n.saveData=function(){if(n.totalCheckSucceed())t.akDataLoadingStringAdd("ServiceInspectionSaveData"),i.serviceInspection.setData(n.carId,n.inspectionId,n.inspection).then(function(i){if(i.data.succeed==!0){if(i.data.inspectionId!=n.inspectionId){var r=AK.System.url+"/Garage/Car/"+n.carId+"/ServiceInspection/"+i.data.inspectionId;AK.System.ChangeUrlWithoutReload(document.title,r)}n.inspection.Id=i.data.inspectionId;n.inspectionId=i.data.inspectionId;AK.System.alert("ServiceInspection set data success")}else AK.System.alert("ServiceInspection set data failed");t.akDataLoadingStringRemove("ServiceInspectionSaveData");AK.System.ShowMessage(i.data.message)},function(){AK.System.alert("Seet serviceInspection data failed");t.akDataLoadingStringRemove("ServiceInspectionSaveData")});else return AK.System.ShowMessage(n.totalCheckBadrowMessage),!1};n.totalCheckChange=function(t){t.Type==0&&(t.Price.length>0||t.Note.length>0||t.NextDate.length>0||t.NextKm.length>0)&&AK.System.ShowMessage(n.totalCheckBadrowMessage)};n.totalCheckSucceed=function(){var t=!0;return n.inspection.TotalChecks2.forEach(function(n){n.Type==0&&(n.Price.length>0||n.Note.length>0||n.NextDate.length>0||n.NextKm.length>0)&&(t=!1)}),t};n.totalCheckClearRow=function(n){n.Price="";n.Note="";n.NextKm="";n.NextDate=""}};AK.Garage.getParkNewCar=function(n,t,i){AK.System.alert("@Garage.getParkNewCar");t.data=null;t.manufacturerSelected=null;t.models=null;t.modelSelected=null;t.modelDisabled=!0;t.motors=null;t.motorSelected=null;t.motorDisabled=!0;t.formSubmitted=!1;i.getParkNewCar().success(function(n){t.data=n;t.manufacturerSelected=t.data.Manufacturers[0]});t.parkNewCar=function(){(t.formSubmitted=!0,t.parkNewCarForm.$invalid||t.data.Car.Manufacturer==0||t.data.Car.Model==0||t.data.Car.Motor==0)||i.createParkedCar(t.data.Car).then(function(t){AK.System.alert("Successed park new car to garage "+t);$("#ModalParkNewCar").modal("hide");n.$emit("GarageCarListReload",1)},function(n){AK.System.alert(n)})};t.manufacturerChange=function(){t.data.Car.Manufacturer=t.manufacturerSelected.Value;t.data.Car.Manufacturer==0?(t.models=null,t.modelSelected=null,t.modelDisabled=!0,t.motors=null,t.motorSelected=null,t.motorDisabled=!0):(i.getRegistrationStructureItems(t.data.Car.Manufacturer).success(function(n){t.models=n;t.modelSelected=t.models[0];t.motors=null;t.motorSelected=null}),t.modelDisabled=!1,t.motorDisabled=!0)};t.modelChange=function(){t.data.Car.Model=t.modelSelected.Value;t.data.Car.Model==0?(t.motors=null,t.motorSelected=null,t.motorDisabled=!0):(i.getRegistrationStructureItems(t.data.Car.Manufacturer+";"+t.data.Car.Model).success(function(n){t.motors=n;t.motorSelected=t.motors[0]}),t.motorDisabled=!1)};t.motorChange=function(){t.data.Car.Motor=t.motorSelected.Value};n.$on("ClearGarageCarListFilter",function(){t.data.Car.Customer=null})};AK.Garage.notificationInit=function(n,t,i){AK.System.alert("@Garage.Notofication.init");t.filter=null;t.items=null;t.otherNotification=undefined;t.getData=function(){t.isDataLoaded=!1;n.akDataLoadingStringAdd("GarageNotificationTable");i.garage.notification.get(t.parkedCarId).then(function(i){t.filter=i.data.Filter;t.FilterSTK=!1;t.FilterMedKit=!1;t.FilterServiceInspection=!1;t.items=i.data.Items;$("#notificationContainer").removeClass("visibilityOff");n.akDataLoadingStringRemove("GarageNotificationTable")},function(){AK.System.alert("Get garage notification failed");n.akDataLoadingStringRemove("GarageNotificationTable");$("#notificationContainer").removeClass("visibilityOff")})};t.getData();t.setFilterStatus=function(n){t.filter.Status=n;t.setFilter()};t.getDate=function(n){return moment(n,"D.M.YYYY")._d};t.setFilterDateFrom=function(){if(t.filter.DateFrom&&t.filter.DateFrom.length>0&&t.filter.DateTo&&t.filter.DateTo.length>0){var i=t.getDate(t.filter.DateFrom),n=t.getDate(t.filter.DateTo);i>=n&&(n=i,n.setMonth(i.getMonth()+1),t.filter.DateTo=moment(n).format("DD.MM.YYYY"))}t.setFilter()};t.setFilterDateTo=function(){if(t.filter.DateFrom&&t.filter.DateFrom.length>0&&t.filter.DateTo&&t.filter.DateTo.length>0){var n=t.getDate(t.filter.DateFrom),i=t.getDate(t.filter.DateTo);n>=i&&(n=i,n.setMonth(i.getMonth()-1),t.filter.DateFrom=moment(n).format("DD.MM.YYYY"))}t.setFilter()};t.setFilter=function(){var n=JSON.stringify(t.filter);i.garage.notification.setFilter(n).then(function(n){n.data===!0&&t.getData()},function(){AK.System.alert("Set garage notification filter failed")})};$("#SmsModalContent").keydown(function(){var n=$("#SmsModalContent").val().length;$("#counterSMSCount").html(n+" ")});t.smsShowModalClick=function(n,t,i,r){var u="",f;u=t=="STK"?$("#SmsModalContent").attr("data-mottext"):t=="MedKit"?$("#SmsModalContent").attr("data-medkittext"):$("#SmsModalContent").attr("data-servicetext");$("#SmsModalContent").val(u.replace("[Date]",i));f=$("#SmsModalContent").val().length;$("#counterSMSCount").html(f+" ");$("#smsModalSend").attr("data-parkedCarId",n);$("#smsModalSend").attr("data-type",t);$("#smsModalPhone").val(r);$("#smsModalPhoneMessage").removeClass("visibilityOff");$("#smsModalPhoneMessage").addClass("visibilityOff");AK.System.alert(n+", "+t)};$("#smsModalPhone").keyup(function(){var n=$("#smsModalPhone").val();AK.System.IsPhoneValid(n)?$("#smsModalPhoneMessage").hasClass("visibilityOff")||$("#smsModalPhoneMessage").addClass("visibilityOff"):$("#smsModalPhoneMessage").removeClass("visibilityOff")});t.sendSms=function(){var n=$("#smsModalPhone").val();if(!AK.System.IsPhoneValid(n))return $("#smsModalPhoneMessage").removeClass("visibilityOff"),!1;$("#smsModalPhoneMessage").addClass("visibilityOff");var r=$("#smsModalSend").attr("data-parkedCarId"),u=$("#smsModalSend").attr("data-type"),f=$("#SmsModalContent").val();i.garage.notification.sendSms(r,u,f,n).then(function(n){n.data.success===!0&&($("#sms").modal("hide"),t.getData());AK.System.ShowMessage(n.data.message)},function(){AK.System.alert("Send parkedCar notification SMS failed")})};t.emailShowModalClick=function(n,t,i,r){var u="";u=t=="STK"?$("#EmailModalContent").attr("data-mottext"):t=="MedKit"?$("#EmailModalContent").attr("data-medkittext"):$("#EmailModalContent").attr("data-servicetext");$("#EmailModalContent").val(u.replace("[Date]",i));$("#emailModalSend").attr("data-parkedCarId",n);$("#emailModalSend").attr("data-type",t);$("#emailModalEmail").val(r);$("#emailModalPhoneMessage").removeClass("visibilityOff");$("#emailModalPhoneMessage").addClass("visibilityOff");AK.System.alert(n+", "+t)};$("#emailModalEmail").keyup(function(){var n=$("#emailModalEmail").val();AK.System.IsEmailValid(n)?$("#emailModalPhoneMessage").hasClass("visibilityOff")||$("#emailModalPhoneMessage").addClass("visibilityOff"):$("#emailModalPhoneMessage").removeClass("visibilityOff")});t.sendEmail=function(){var n=$("#emailModalEmail").val();if(!AK.System.IsEmailValid(n))return $("#emailModalPhoneMessage").removeClass("visibilityOff"),!1;var r=$("#emailModalSend").attr("data-parkedCarId"),u=$("#emailModalSend").attr("data-type"),f=$("#EmailModalContent").val();i.garage.notification.sendEmail(r,u,f,n).then(function(n){n.data.success===!0&&($("#email").modal("hide"),t.getData());AK.System.ShowMessage(n.data.message)},function(){AK.System.alert("Send parkedCar notification SMS failed")})};t.phoneHasInterest="false";t.phoneShowModalClick=function(n,t,i,r,u,f){$("#phoneModalOwner").html(f);$("#phoneModalType").html(u);$("#phoneModalDate").html(i);$("#phoneModalSend").attr("data-parkedCarId",n);$("#phoneModalSend").attr("data-type",t);$("#phoneModalPhone").val(r);$("#phoneModalPhoneMessage").removeClass("visibilityOff");$("#phoneModalPhoneMessage").addClass("visibilityOff")};$("#phoneModalPhone").keyup(function(){var n=$("#phoneModalPhone").val();AK.System.IsPhoneValid(n)?$("#phoneModalPhoneMessage").hasClass("visibilityOff")||$("#phoneModalPhoneMessage").addClass("visibilityOff"):$("#phoneModalPhoneMessage").removeClass("visibilityOff")});t.sendPhone=function(){var n=$("#phoneModalPhone").val(),f;if(!AK.System.IsPhoneValid(n))return $("#phoneModalPhoneMessage").removeClass("visibilityOff"),!1;var e=$("#phoneModalSend").attr("data-parkedCarId"),o=$("#phoneModalSend").attr("data-type"),r=!$("#phoneModalNotContacted").prop("checked"),u=!1;r&&(u=$("#phoneModalContactedYesInterested").prop("checked"));f=$("#phoneModalServiceDate").val();i.garage.notification.sendPhone(e,o,n,r,u,f).then(function(n){n.data.success===!0&&($("#tel").modal("hide"),t.getData());AK.System.ShowMessage(n.data.message)},function(){AK.System.alert("Send parkedCar notification Phone failed")})};t.dismissClick=function(n,r){i.garage.notification.dismiss(n,r).then(function(n){n.data.success===!0&&t.getData();AK.System.ShowMessage(n.data.message)},function(){AK.System.alert("Send parkedCar notification Phone failed")})};t.interestClick=function(n,r,u,f,e){i.garage.notification.interest(n,r,u,f,e).then(function(n){n.data.success===!0&&t.getData();AK.System.ShowMessage(n.data.message)},function(){AK.System.alert("Send parkedCar notification Interest failed")})};t.showOtherNotification=function(n,r){i.garage.notification.getOther(n,r).then(function(n){t.otherNotification=n.data},function(){AK.System.alert("Get other notification failed")})};t.showServiceDateModal=function(n,t,i,r){$("#serviceDateSend").attr("data-parkedCarId",t);$("#serviceDateSend").attr("data-type",i);$("#serviceDateSend").attr("data-notificationId",n);$("#serviceDateValue").val(r);$("#serviceDateMessage").removeClass("visibilityOff");$("#serviceDateMessage").addClass("visibilityOff")};t.sendServiceDate=function(){var n=$("#serviceDateValue").val();if(n.length<=0)return $("#serviceDateMessage").removeClass("visibilityOff"),!1;var r=$("#serviceDateSend").attr("data-parkedCarId"),u=$("#serviceDateSend").attr("data-type"),f=$("#serviceDateSend").attr("data-notificationId");i.garage.notification.sendServiceDate(f,r,u,n).then(function(n){n.data.success===!0&&($("#serviceDateModal").modal("hide"),t.getData());AK.System.ShowMessage(n.data.message)},function(){AK.System.alert("Send parkedCar notification ServiceDate failed")})};t.showInterestModalClick=function(n,t,i){$("#interestSend").attr("data-parkedCarId",t);$("#interestSend").attr("data-type",i);$("#interestSend").attr("data-notificationId",n);$("#interestServiceDateMessage").removeClass("visibilityOff");$("#interestServiceDateMessage").addClass("visibilityOff");$("#interestStateModal").modal("show")};t.interestModalSend=function(){var n=$("#interestServiceDateValue").val(),i=$("#interestSend").attr("data-parkedCarId"),r=$("#interestSend").attr("data-type"),u=$("#interestSend").attr("data-notificationId");t.interestClick(u,i,r,!0,n);$("#interestStateModal").modal("hide")}};AK.Garage.parkedCar.orderListInit=function(n,t,i,r){AK.System.alert("@Garage.ParkedCar.orderList.init");t.orders=[];t.isArchive=!1;t.archiveSelectEnabled=!1;t.archiveYears=[];t.archiveEnabled=r.toLowerCase()==="true";t.archiveYear=0;t.archiveQuarter=0;t.getData=function(){n.akDataLoadingStringAdd("CarOrderList");i.order.getParkedCarList(t.parkedCarId,t.isArchive,t.archiveYear,t.archiveQuarter).then(function(i){t.orders=i.data.Orders;$("#akCardetailOrderList").removeClass("visibilityOff");n.akDataLoadingStringRemove("CarOrderList")},function(){AK.System.alert("Get car order list failed");$("#akCardetailOrderList").removeClass("visibilityOff");n.akDataLoadingStringRemove("CarOrderList")})};t.getData();t.getArchiveData=function(){i.order.archive.getData().then(function(n){n.data.errorMessage.length<=0&&n.data.years!=null&&n.data.years.length>0?(AK.System.alert("Order archive load data success"),t.archiveYears=n.data.years):(AK.System.alert("Order archive load data failed or empty data: "+n.data.errorMessage),t.archiveEnabled=!1)},function(){t.archiveEnabled=!1;AK.System.alert("Order archive load data failed")})};t.archiveEnabled&&t.getArchiveData();t.showCurrent=function(){t.isArchive=!1;t.archiveYear=0;t.archiveQuarter=0;t.archiveSelectEnabled=!1;t.getData()};t.showArchive=function(){t.archiveSelectEnabled=!0};t.setArchive=function(n,i){n>0&&i>0&&(t.archiveYear=n,t.archiveQuarter=i,t.isArchive=!0,t.archiveSelectEnabled=!1,t.getData())}};AK.Garage.getHomeServiceList=function(n,t,i,r){AK.System.alert("@Garage.getHomeServiceList");n.homeServices=[];n.mapSettings=null;var u={};[{name:"gmap-js",type:"script",src:"https://maps.googleapis.com/maps/api/js?v=3.exp&key=AIzaSyCosq11V2IImQBarjzCED68lfrQDXFFITc",integrity:""},{name:"osm-js",type:"script",src:"https://unpkg.com/leaflet@1.3.4/dist/leaflet.js",integrity:"sha512-nMMmRyTVoLYqjP9hrbed9S+FzjZHW5gY1TWCHA5ckwXZBadntCNs8kEqAWdrb9O7rxbCaA4lKTIWjDXZxflOcA=="},{name:"osm-markercluster-js",type:"script",src:"https://unpkg.com/leaflet.markercluster@1.4.1/dist/leaflet.markercluster.js",integrity:""}].forEach(function(n){u[n.name]={loaded:!1,src:n.src,integrity:n.integrity}});i.getHomeServices().success(function(t){var r=t,i;n.homeServices=r.HomeServices;n.mapSettings=r.MapSettings;n.mapSettings.MapSourceType==MAPSOURCETYPE.GoogleMap?AK.Garage.Map.scriptLoaded===!0?n.gMapInitialize():n.loadGMapScript():n.mapSettings.MapSourceType==MAPSOURCETYPE.OpenStreetMap&&(AK.Garage.Map.scriptLoaded===!0?n.osmInitialize():(i=[],i.push("osm-js"),n.loadScripts(i).then(function(){AK.Garage.Map.scriptLoaded=!0;n.osmInitialize()})));$("#GarageHomeServiceContainer").removeClass("visibilityOff")});n.loadScript=function(n){return new Promise(function(t){if(u[n].loaded)t({script:n,loaded:!0,status:"Already Loaded"});else{var i=document.createElement("script");i.type="text/javascript";i.src=u[n].src;i.readyState?i.onreadystatechange=function(){(i.readyState==="loaded"||i.readyState==="complete")&&(i.onreadystatechange=null,u[n].loaded=!0,t({script:n,loaded:!0,status:"Loaded"}))}:i.onload=function(){u[n].loaded=!0;t({script:n,loaded:!0,status:"Loaded"})};i.onerror=function(){t({script:n,loaded:!1,status:"Loaded"})};document.getElementsByTagName("head")[0].appendChild(i)}})};n.loadScripts=function(t){var i=[];return t.forEach(function(t){i.push(n.loadScript(t))}),Promise.all(i)};n.osmInitialize=function(){AK.Garage.Map.osmMap=L.map("HomeService_OSM").setView([n.mapSettings.CenterLat,n.mapSettings.CenterLng],parseInt(n.mapSettings.Zoom));L.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{maxZoom:19,attribution:'&copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap<\/a>'}).addTo(AK.Garage.Map.osmMap);var i=AK.System.url+"/images/carrepairAKAS.png",r=L.icon({iconUrl:i,iconSize:[32,37]}),u=AK.System.url+"/images/carrepairOther.png",f=L.icon({iconUrl:u,iconSize:[32,37]}),t=[];t.push("osm-markercluster-js");n.loadScripts(t).then(function(){var t=L.markerClusterGroup();$.each(n.homeServices,function(i,u){var o='<div id="GMapInfoWindow"><h2 class="GMapHeader">'+u.Name+'<\/h2><table class="GMapTable"><tr><td class="GMapColumn"><b>'+n.mapSettings.ResxAddress+"<\/b><br />"+u.Street+"<br />"+u.Town+"<br />"+u.Zip+"<br />"+n.mapSettings.ResxPhone+" "+u.Phone+'<\/td><\/tr><\/table><span class="GMapHomeServiceSelect" onclick="return homeServiceMapSelect('+u.CompanyId+",'"+u.Name+"','"+u.Street+", "+u.Zip+" "+u.Town+"');\">"+n.mapSettings.ResxSelect+"<\/span><\/div>",e=null;e=u.IsPrimary==!0?L.marker([u.Latitude,u.Longitude],{icon:r,title:u.Name}):L.marker([u.Latitude,u.Longitude],{icon:f,title:u.Name});e.bindPopup(o);t.addLayer(e)});AK.Garage.Map.osmMap.addLayer(t)})};n.osmCreateMarker=function(){var t=AK.System.url+"/images/"+gImagePath+"/defaultMarker.png",i=L.icon({iconUrl:t,iconSize:[13,13]});return L.marker([n.selectedStorage.Latitude,n.selectedStorage.Longitude],{icon:i,title:n.selectedStorage.Text})};n.osmChangePosition=function(){AK.Garage.Map.osmMap.removeLayer(AK.Garage.Map.marker);AK.Garage.Map.marker=n.osmCreateMarker();AK.Garage.Map.marker.addTo(AK.Garage.Map.osmMap);AK.Garage.Map.osmMap.setView([n.selectedStorage.Latitude,n.selectedStorage.Longitude],15)};n.loadGMapScript=function(){var n=document.createElement("script");n.type="text/javascript";n.src="https://maps.googleapis.com/maps/api/js?v=3.exp&key=AIzaSyCosq11V2IImQBarjzCED68lfrQDXFFITc&callback=homeServiceGMapInitialize";document.body.appendChild(n);AK.Garage.Map.scriptLoaded=!0};n.gMapInitialize=function(){var i=new google.maps.LatLng(n.mapSettings.CenterLat,n.mapSettings.CenterLng),r={zoom:parseInt(n.mapSettings.Zoom),center:i,mapTypeId:n.mapSettings.MapType.toLowerCase()},u={gridSize:50,maxZoom:17,imagePath:AK.System.url+"/images/MarkerClusterer/s"};AK.Garage.Map.gmap=new google.maps.Map(document.getElementById("HomeService_GMap"),r);AK.Garage.Map.markerClusterer=new MarkerClusterer(AK.Garage.Map.gmap,[],u);AK.Garage.Map.markerYouAreHere=null;AK.Garage.Map.markers=[];AK.Garage.Map.infoWindow=null;var t="",f=AK.System.url+"/images/carrepairAKAS.png",e=AK.System.url+"/images/carrepairOther.png";$.each(n.homeServices,function(i,r){var s=new google.maps.LatLng(r.Latitude,r.Longitude),h='<div id="GMapInfoWindow"><h2 class="GMapHeader">'+r.Name+'<\/h2><table class="GMapTable"><tr><td class="GMapColumn"><b>'+n.mapSettings.ResxAddress+"<\/b><br />"+r.Street+"<br />"+r.Town+"<br />"+r.Zip+"<br />"+n.mapSettings.ResxPhone+" "+r.Phone+'<\/td><\/tr><\/table><span class="GMapHomeServiceSelect" onclick="return homeServiceMapSelect('+r.CompanyId+",'"+r.Name+"','"+r.Street+", "+r.Zip+" "+r.Town+"');\">"+n.mapSettings.ResxSelect+"<\/span><\/div>",u,o;t=r.IsPrimary==!0?f:e;u=new google.maps.Marker({position:s,map:AK.Garage.Map.gmap,icon:t,title:r.Name});google.maps.event.addListener(u,"click",function(){AK.Garage.Map.infoWindow&&AK.Garage.Map.infoWindow.close();AK.Garage.Map.infoWindow=new google.maps.InfoWindow({content:h});AK.Garage.Map.infoWindow.open(AK.Garage.Map.gmap,u)});o={companyId:r.CompanyId,marker:u};AK.Garage.Map.markers.push(o)});closeInfoWindow=function(){AK.Garage.Map.infoWindow!==null&&AK.Garage.Map.infoWindow.close()};google.maps.event.addListener(AK.Garage.Map.gmap,"click",closeInfoWindow);n.loadMarkerClusterer()};n.loadMarkerClusterer=function(){var n=[];typeof AK.Garage.Map.markers!="undefined"&&AK.Garage.Map.markers!=null&&$.each(AK.Garage.Map.markers,function(t,i){n.push(i.marker)});AK.Garage.Map.markerClusterer.addMarkers(n)};n.resizeGMap=function(){if(typeof AK.Garage.Map.gmap!="undefined"&&AK.Garage.Map.gmap!=null){var n=AK.Garage.Map.gmap.getZoom(),t=AK.Garage.Map.gmap.getCenter();google.maps.event.trigger(AK.Garage.Map.gmap,"resize");AK.Garage.Map.gmap.setZoom(n);AK.Garage.Map.gmap.setCenter(t)}};n.findByGeolocation=function(t,i){return $("#HomeService_MapMessage").html(""),navigator.geolocation?navigator.geolocation.getCurrentPosition(function(r){n.showPosition(r,t,i)},n.showError):$("#HomeService_MapMessage").html("Geolocation is not supported by this browser."),!1};n.showPosition=function(t,i,r){var u=t.coords.latitude,f=t.coords.longitude;$("#HomeService_MapMessage").html(i);n.mapSettings.MapSourceType==MAPSOURCETYPE.GoogleMap?n.setGMapMarkerYouAreHere(u,f,15,r):n.mapSettings.MapSourceType==MAPSOURCETYPE.OpenStreetMap&&n.setOsmMarkerYouAreHere(u,f,15,r)};n.showPosition2=function(t,i,r,u){$("#Store_MapMessage").html(r);n.mapSettings.MapSourceType==MAPSOURCETYPE.GoogleMap?n.setGMapMarkerYouAreHere(t,i,12,u):n.mapSettings.MapSourceType==MAPSOURCETYPE.OpenStreetMap&&n.setOsmMarkerYouAreHere(t,i,12,u)};n.setGMapMarkerYouAreHere=function(n,t,i,r){var u=new google.maps.LatLng(n,t,!0);typeof AK.Garage.Map.markerYouAreHere=="undefined"||AK.Garage.Map.markerYouAreHere==null?AK.Garage.Map.markerYouAreHere=new google.maps.Marker({position:u,map:AK.Garage.Map.gmap,title:r}):AK.Garage.Map.markerYouAreHere.setPosition(u);AK.Garage.Map.gmap.panTo(u);AK.Garage.Map.gmap.setZoom(i)};n.setOsmMarkerYouAreHere=function(n,t,i,r){typeof AK.Garage.Map.markerYouAreHere=="undefined"||AK.Garage.Map.markerYouAreHere==null?(AK.Garage.Map.markerYouAreHere=L.marker([n,t],{title:r}),AK.Garage.Map.markerYouAreHere.addTo(AK.Garage.Map.osmMap)):AK.Garage.Map.markerYouAreHere.setLatLng([n,t]);AK.Garage.Map.osmMap.setView([n,t],i)};n.showError=function(n){var t=$("#HomeService_MapMessage");switch(n.code){case n.PERMISSION_DENIED:t.html("User denied the request for Geolocation.");break;case n.POSITION_UNAVAILABLE:t.html("Location information is unavailable.");break;case n.TIMEOUT:t.html("The request to get user location timed out.");break;case n.UNKNOWN_ERROR:t.html("An unknown error occurred.")}};n.findByAddress=function(t,i){if($("#HomeService_MapMessage").html(""),n.address.length>0){if(r==GPSSOURCETYPE.GoogleMap)if(AK.Garage.Map.geocoder==null){var u=[];u.push("gmap-js");n.loadScripts(u).then(function(){AK.Garage.Map.geocoder=new google.maps.Geocoder;n.findByAddress(t,i)})}else AK.Garage.Map.geocoder.geocode({address:n.address},function(r,u){if(u==google.maps.GeocoderStatus.OK){$("#HomeService_MapMessage").html(t);var f=r[0].geometry.location;n.mapSettings.MapSourceType==MAPSOURCETYPE.GoogleMap?n.setGMapMarkerYouAreHere(f.lat(),f.lng(),12,i):n.mapSettings.MapSourceType==MAPSOURCETYPE.OpenStreetMap&&n.setOsmMarkerYouAreHere(f.lat(),f.lng(),12,i)}else $("#HomeService_MapMessage").html("Geocode was not successful for the following reason: "+u)})}else $("#Store_MapMessage").html("Zadejte adresu")};n.findByAddress=function(n,t){$("#HomeService_MapMessage").html("");var r=new google.maps.Geocoder,i=$("#HomeService_AddressInput").val();return i.length>0?r.geocode({address:i},function(i,r){if(r==google.maps.GeocoderStatus.OK){$("#HomeService_MapMessage").html(n);var u=i[0].geometry.location;typeof AK.Garage.Map.markerYouAreHere=="undefined"||AK.Garage.Map.markerYouAreHere==null?AK.Garage.Map.markerYouAreHere=new google.maps.Marker({position:u,map:AK.Garage.Map.gmap,title:t}):AK.Garage.Map.markerYouAreHere.setPosition(u);AK.Garage.Map.gmap.panTo(u);AK.Garage.Map.gmap.setZoom(15)}else $("#HomeService_MapMessage").html("Geocode was not successful for the following reason: "+r)}):$("#HomeService_MapMessage").html("Zadejte adresu"),!1};n.homeServiceNameSelect=function(){var t=$("#HomeService_NameInput").val();return n.$parent.homeServiceCancel(),$(".HomeServiceSelected").text(t),$(".HomeServiceSelected").attr("homeService",0),n.$parent.homeServiceCancelSetVisible(),!1};n.homeServiceCancelSetVisible=function(){t.$emit("GarageHomeServiceCancelSetVisible")}};AK.CalcOffer.initList=function(n,t,i,r){AK.System.alert("@CalcOffer.List");t.calcOffers=[];t.paging={Page:r,Size:5,Total:1,TotalCount:1};t.loadData=function(){n.akDataLoadingStringAdd("CalcOfferListLoadData");i.calcOffer.getListItems(t.paging.Page).then(function(i){i.data.errorMessage.length<=0?(t.calcOffers=i.data.items,t.paging=i.data.paging,t.setRange()):AK.System.ShowMessage(i.data.errorMessage);$(".calcOfferListContainer").removeClass("visibilityOff");n.akDataLoadingStringRemove("CalcOfferListLoadData")},function(){AK.System.alert("Get ServiceSheet List data failed");$(".calcOfferListContainer").removeClass("visibilityOff");n.akDataLoadingStringRemove("CalcOfferListLoadData")})};t.loadData(r);t.remove=function(u,f){n.akDataLoadingStringAdd("CalcOfferListRemoveCalc");i.calcOffer.remove(u,f).then(function(i){i.data.succeed==!0&&t.loadData(r);AK.System.ShowMessage(i.data.message);n.akDataLoadingStringRemove("CalcOfferListRemoveCalc")},function(){AK.System.alert("Remove calc failed");n.akDataLoadingStringRemove("CalcOfferListRemoveCalc")})};n.$on("CalcOfferCreateCatalogPath",function(n,t){$("#ModalGetCar").modal("hide");window.location="/Garage/CalcOffer/"+t+"/create"});t.ranges=[];t.setRange=function(){var i=5,r=Math.ceil(i/2)-1,u,f=t.paging.Total,n;for(u=t.paging.Page<=r+1?1:t.paging.Page>f-r?Math.max(1,f-i+1):t.paging.Page-r+1,t.ranges=[],n=u;n<u+i-1;n++)n>=1&&n<=f&&t.ranges.push(n)};t.setRange();t.prevPage=function(){t.paging.Page>1&&t.setPage(t.paging.Page-1)};t.prevPageDisabled=function(){return t.paging.Page===1?"prev disabled":""};t.nextPage=function(){t.paging.Page<t.paging.Total&&t.paging.Page++};t.nextPageDisabled=function(){return t.paging.Page===t.paging.Total?"next disabled":""};t.setPage=function(n){t.paging.Page=n;t.loadData(t.paging.Page)}};AK.CalcOffer.initCarList=function(n,t,i,r,u){AK.System.alert("@CalcOffer.CarList");t.carId=r;t.calcOffers=[];t.paging={Page:u,Size:5,Total:1,TotalCount:1};t.loadData=function(){n.akDataLoadingStringAdd("CalcOfferCarListLoadData");i.calcOffer.getCarListItems(t.carId,t.paging.Page).then(function(i){i.data.errorMessage.length<=0?(t.calcOffers=i.data.items,t.paging=i.data.paging,t.setRange()):AK.System.ShowMessage(i.data.errorMessage);$(".carCalcOfferListContainer").removeClass("visibilityOff");n.akDataLoadingStringRemove("CalcOfferCarListLoadData")},function(){AK.System.alert("Get ServiceSheet List data failed");$(".carCalcOfferListContainer").removeClass("visibilityOff");n.akDataLoadingStringRemove("CalcOfferCarListLoadData")})};t.loadData(u);t.ranges=[];t.setRange=function(){var i=5,r=Math.ceil(i/2)-1,u,f=t.paging.Total,n;for(u=t.paging.Page<=r+1?1:t.paging.Page>f-r?Math.max(1,f-i+1):t.paging.Page-r+1,t.ranges=[],n=u;n<u+i-1;n++)n>=1&&n<=f&&t.ranges.push(n)};t.setRange();t.prevPage=function(){t.paging.Page>1&&t.setPage(t.paging.Page-1)};t.prevPageDisabled=function(){return t.paging.Page===1?"prev disabled":""};t.nextPage=function(){t.paging.Page<t.paging.Total&&t.paging.Page++};t.nextPageDisabled=function(){return t.paging.Page===t.paging.Total?"next disabled":""};t.setPage=function(n){t.paging.Page=n;t.loadData(t.paging.Page)}};AK.CalcOffer.initDetail=function(n,t,i,r,u){AK.System.alert("@CalcOffer.Detail");t.carId=r;t.calcId=u;t.calc=undefined;t.carname="";t.loadData=function(){n.akDataLoadingStringAdd("CarCalcOfferDetail");i.calcOffer.getData(t.carId,t.calcId).then(function(i){i.data.errorMessage.length<=0?(t.calc=i.data.calc,t.carname=i.data.carname,$(".carCalcOfferContainer").removeClass("visibilityOff")):AK.System.ShowMessage(i.data.errorMessage);n.akDataLoadingStringRemove("CarCalcOfferDetail")},function(){AK.System.alert("Get ServiceSheet List data failed");$(".carCalcOfferContainer").removeClass("visibilityOff");n.akDataLoadingStringRemove("CarCalcOfferDetail")})};t.loadData();t.createServiceSheet=function(){n.akDataLoadingStringAdd("CarCalcCreateServiceSheet");i.calcOffer.createServiceSheet(t.carId,t.calcId).then(function(i){i.data.sheetId!=AK.System.GuidEmpty&&(window.location="/Car/"+t.carId+"/ServiceSheet/"+i.data.sheetId);AK.System.ShowMessage(i.data.message);n.akDataLoadingStringRemove("CarCalcCreateServiceSheet")},function(){AK.System.alert("Create ServiceSheet failed");n.akDataLoadingStringRemove("CarCalcCreateServiceSheet")})};t.createCart=function(){n.akDataLoadingStringAdd("CarCalcCreateOrder");i.calcOffer.createCart(t.carId,t.calcId).then(function(t){t.data.succeed==!0&&n.$emit("ReloadCart");AK.System.ShowMessage(t.data.message);n.akDataLoadingStringRemove("CarCalcCreateOrder")},function(){AK.System.alert("Create order failed");n.akDataLoadingStringRemove("CarCalcCreateOrder")})};t.createServiceSheetAndOrder=function(){n.akDataLoadingStringAdd("CarCalcOfferCreateServiceSheetAndOrder");i.calcOffer.createServiceSheetAndCart(t.carId,t.calcId).then(function(i){i.data.allSucceed==!0&&(window.location="/Car/"+t.carId+"/ServiceSheet/"+i.data.sheetId);AK.System.ShowMessage(i.data.message);n.akDataLoadingStringRemove("CarCalcOfferCreateServiceSheetAndOrder")},function(){AK.System.alert("Create order failed");n.akDataLoadingStringRemove("CarCalcOfferCreateServiceSheetAndOrder")})}};AK.CalcOffer.initGetCar=function(n,t,i){AK.System.alert("@Garage.CalcOffer.getCar");t.data=null;t.manufacturerSelected=null;t.models=null;t.modelSelected=null;t.modelDisabled=!0;t.motors=null;t.motorSelected=null;t.motorDisabled=!0;t.formSubmitted=!1;i.getParkNewCar().success(function(i){t.data=i;t.manufacturerSelected=t.data.Manufacturers[0];n.$emit("CalcOfferGetCarReady")});t.sendCar=function(){if(t.formSubmitted=!0,!t.parkNewCarForm.$invalid&&t.data.Car.Manufacturer!=0&&t.data.Car.Model!=0&&t.data.Car.Motor!=0){var i=t.data.Car.Manufacturer+";"+t.data.Car.Model+";"+t.data.Car.Motor;n.$emit("CalcOfferCreateCatalogPath",i)}};t.manufacturerChange=function(){t.data.Car.Manufacturer=t.manufacturerSelected.Value;t.data.Car.Manufacturer==0?(t.models=null,t.modelSelected=null,t.modelDisabled=!0,t.motors=null,t.motorSelected=null,t.motorDisabled=!0):(i.getRegistrationStructureItems(t.data.Car.Manufacturer).success(function(n){t.models=n;t.modelSelected=t.models[0];t.motors=null;t.motorSelected=null}),t.modelDisabled=!1,t.motorDisabled=!0)};t.modelChange=function(){t.data.Car.Model=t.modelSelected.Value;t.data.Car.Model==0?(t.motors=null,t.motorSelected=null,t.motorDisabled=!0):(i.getRegistrationStructureItems(t.data.Car.Manufacturer+";"+t.data.Car.Model).success(function(n){t.motors=n;t.motorSelected=t.motors[0]}),t.motorDisabled=!1)};t.motorChange=function(){t.data.Car.Motor=t.motorSelected.Value}};AK.CalcOffer.initTechInfoCar=function(n,t){AK.System.alert("@Garage.CalcOffer.TechInfoCar");t.selectCar=function(){$("#ModalGetCar").modal("show")};n.$on("CalcOfferGetCarReady",function(){t.selectCar()});n.$on("CalcOfferCreateCatalogPath",function(n,t){$("#ModalGetCar").modal("hide");window.location="/Garage/TechInfo/"+t})};AK.GarageSetup.userItem=function(n,t,i){AK.System.alert("@Garage.setup");n.userItemsFormSubmitted=!1;n.userItems="";n.loadUserItems=function(){t.akDataLoadingStringAdd("GarageSetupLoadUserItems");i.garage.setup.userItems.get().then(function(i){i.data.errorMessage.length<=0?n.userItems=i.data.userItems:AK.System.alert(i.data.errorMessage);$("#GarageSetupUserItemsContainer").removeClass("visibilityOff");t.akDataLoadingStringRemove("GarageSetupLoadUserItems")},function(){AK.System.alert("Get setup userItems data failed");$("#GarageSetupUserItemsContainer").removeClass("visibilityOff");t.akDataLoadingStringRemove("GarageSetupLoadUserItems")})};n.loadUserItems();n.userItemSelectedOrder="";n.userItemDeleteClick=function(t){n.userItemSelectedOrder=t;$("#UserItemModalDelete").modal("show")};n.userItemDelete=function(){for(var t=0;t<n.userItems.length;t++)if(n.userItems[t].Order==n.userItemSelectedOrder){n.userItems.splice(t,1);n.userItemSelectedOrder="";break}for(t=0;t<n.userItems.length;t++)n.userItems[t].Order=t;$("#UserItemModalDelete").modal("hide")};n.userItemAdd=function(){var t={Id:AK.System.GuidEmpty,Name:"",Amount:"",Price:"",Order:n.userItems.length};n.userItems.push(t)};n.saveUserItems=function(){if(n.userItemsFormSubmitted=!0,n.userItemsForm.$invalid)return!1;i.garage.setup.userItems.set(n.userItems).then(function(t){AK.System.ShowMessage(t.data.message);n.loadUserItems()},function(){AK.System.alert("Get setup data failed")})}};AK.GarageSetup.totalHidden=function(n,t,i){AK.System.alert("@Garage.setupTotalHidden");n.totalHidden="";n.load=function(){t.akDataLoadingStringAdd("GarageSetupLoadTotalHidden");i.garage.setup.totalHidden.get().then(function(i){i.data.errorMessage.length<=0?n.totalHidden=i.data.totalHidden:AK.System.alert(i.data.errorMessage);$("#GarageSetupTotalHiddenContainer").removeClass("visibilityOff");t.akDataLoadingStringRemove("GarageSetupLoadTotalHidden")},function(){AK.System.alert("Get setup totalHidden data failed");$("#GarageSetupTotalHiddenContainer").removeClass("visibilityOff");t.akDataLoadingStringRemove("GarageSetupLoadTotalHidden")})};n.load();n.change=function(t){i.garage.setup.totalHidden.set(t.Id,t.IsVisible).then(function(t){AK.System.ShowMessage(t.data.message);n.load()},function(){AK.System.alert("Garage setup Total Hidden visibility failed")})}};AK.GarageSetup.profile=function(n,t,i){AK.System.alert("@Garage.setupProfile");n.formSubmitted=!1;n.profile="";n.errorMessage="";n.setDefaultSheetFormat=function(){n.serviceSheetFormatPrefix="ZL"+(new Date).getFullYear();n.serviceSheetFormatStartNumber=1;n.serviceSheetFormatCharCnt=10};n.setDefaultInvoiceFormat=function(){n.serviceInvoiceFormatPrefix="FA"+(new Date).getFullYear();n.serviceInvoiceFormatStartNumber=1;n.serviceInvoiceFormatCharCnt=10};n.setDefaultSheetFormat();n.setDefaultInvoiceFormat();n.loadData=function(){t.akDataLoadingStringAdd("GarageSetupLoadProfile");n.formSubmitted=!1;n.profile=null;n.errorMessage="";i.ServiceProfile.getData().then(function(i){var r,u;n.profile=i.data.profile;r=n.profile.ServiceSheetFormat;r!=null&&r.length>0&&r.indexOf("[")!==-1&&r.indexOf("]")!==-1&&(n.serviceSheetFormatPrefix=r.substring(r.lastIndexOf("[")+1,r.lastIndexOf("]")),n.serviceSheetFormatStartNumber=parseInt(r.replace("["+n.serviceSheetFormatPrefix+"]","")),n.serviceSheetFormatCharCnt=r.length-2);u=n.profile.ServiceInvoiceFormat;u!=null&&u.length>0&&u.indexOf("[")!==-1&&u.indexOf("]")!==-1&&(n.serviceInvoiceFormatPrefix=u.substring(u.lastIndexOf("[")+1,u.lastIndexOf("]")),n.serviceInvoiceFormatStartNumber=parseInt(u.replace("["+n.serviceInvoiceFormatPrefix+"]","")),n.serviceInvoiceFormatCharCnt=u.length-2);$("#GarageSetupProfileContainer").removeClass("visibilityOff");t.akDataLoadingStringRemove("GarageSetupLoadProfile")},function(){AK.System.alert("Get service profile data failed");$("#GarageSetupProfileContainer").removeClass("visibilityOff");t.akDataLoadingStringRemove("GarageSetupLoadProfile")})};n.loadData();n.addressChange=function(){n.fullAddress=n.profile.Address.Street+", "+n.profile.Address.Zip+" "+n.profile.Address.Town};n.getZeroStringNumber=function(n,t){for(var i=n+"";i.length<t;)i="0"+i;return i};n.save=function(){if(n.formSubmitted=!0,n.serviceProfileForm.$invalid){AK.System.alert("Chybně vyplněn formulář.");return}AK.System.alert("Saving service profile");(n.serviceSheetFormatPrefix.length==0||n.serviceSheetFormatStartNumber==null||n.serviceSheetFormatCharCnt==null)&&n.setDefaultSheetFormat();(n.serviceInvoiceFormatPrefix.length==0||n.serviceInvoiceFormatStartNumber==null||n.serviceInvoiceFormatCharCnt==null)&&n.setDefaultInvoiceFormat();n.profile.ServiceSheetFormat="["+n.serviceSheetFormatPrefix+"]"+n.getZeroStringNumber(n.serviceSheetFormatStartNumber,n.serviceSheetFormatCharCnt-n.serviceSheetFormatPrefix.length);n.profile.ServiceInvoiceFormat="["+n.serviceInvoiceFormatPrefix+"]"+n.getZeroStringNumber(n.serviceInvoiceFormatStartNumber,n.serviceInvoiceFormatCharCnt-n.serviceInvoiceFormatPrefix.length);i.ServiceProfile.save(n.profile).then(function(t){t.data.Result==!0?(AK.System.alert("Successfully saved profile"),n.formSubmitted=!1,n.serviceProfileForm.$setPristine(),n.loadData(),AK.System.ShowMessage(t.data.Message)):(n.errorMessage=t.data.Message,AK.System.alert("Error in saving service profile."+n.errorMessage))},function(){AK.System.alert("Saving profile failed")})}};GarageCalendarSheetEdit=function GarageCalendarSheetEdit(){_classCallCheck(this,GarageCalendarSheetEdit);this.Id=AK.System.GuidEmpty;this.CalendarId=AK.System.GuidEmpty;this.ServiceSheetId=AK.System.GuidEmpty;this.OperatorName="";this.Name="";this.From="";this.To=""};AK.Garage.Calendar.init=function(n,t,i){AK.System.alert("@Garage.calendar.init");var r={ServiceSheet:"ServiceSheet",Event:"Event"},u={Closing:"#000000",Opening:"#5f6dd0",Event:"#df6dd0"};t.businessHours=[];t.viewTypes=[];t.calendars=[];t.selectedEvent=undefined;t.newCalendar={Name:"",Description:""};t.removeCalendarId="";t.selectedViewType=[];t.formSubmitted=!1;t.badTimes=!1;t.fromNotValid=!1;t.toNotValid=!1;t.serviceSheets=[];$("#calendars-prev").click(function(){$(".calendarObj").fullCalendar("prev")});$("#calendars-next").click(function(){$(".calendarObj").fullCalendar("next")});t.loadServiceSheets=function(){var n=angular.element(document.getElementById("GarageCalendarSheetContainer")).scope(),i;n!=undefined&&(t.serviceSheets=angular.copy(n.getData()),angular.forEach(t.serviceSheets,function(n){var t=n.Number;n.LicencePlate!=undefined&&n.LicencePlate.length>0&&(t+=" - "+n.LicencePlate);n.CustomerName!=undefined&&n.CustomerName.length>0&&(t+=" - "+n.CustomerName);n.Text=t}),i={Text:"Vyberte",Id:"Select",ServiceSheetId:"Select"},t.serviceSheets.unshift(i))};t.reloadServiceSheets=function(){var n=angular.element(document.getElementById("GarageCalendarSheetContainer")).scope();n!=undefined&&n.loadData()};t.getBusinessHours=function(){return t.businessHours};t.calendarOptions={locale:AK.System.datePickerLanguage,eventAfterRender:function(n,t){if(n.type==r.ServiceSheet){var u=n.title==n.sheetNumber,i="";n.description.length>0&&(i+="<br/>"+n.description);!u&&n.sheetNumber&&(i+="<br/>"+n.sheetNumber);i.length>0&&t.find(".fc-title").append(i)}},eventClick:function(n){t.selectedEvent=angular.copy(n.eventObj);t.badTimes=!1;t.formSubmitted=!1;t.fromNotValid=!1;t.toNotValid=!1;n.type==r.ServiceSheet?(t.eventCalendarSheetEditForm.$setPristine(),$("#sheetEditModal").modal("show"),t.initDateTimePickerEditEvent(),t.$apply()):(t.loadServiceSheets(),t.newSheetSelectedId="Select",t.eventCalendarSheetNewForm.$setPristine(),$("#eventSheetNewModal").modal("show"),t.initDateTimePickerNewEvent(),t.$apply())},selectable:!0,select:function(n,i,r,u){var f=u.calendar.el[0].id;t.createNewSheetEvent(angular.copy(n),angular.copy(i),f)},eventLimit:!0,header:!1,views:{agendaThreeDay:{type:"agenda",duration:{days:3},buttonText:"3 day"},agendaWork:{type:"agenda",duration:{weeks:1},buttonText:"work days",hiddenDays:[0,6]}},defaultView:"agendaWork",minTime:"06:00:00",maxTime:"22:00:00",editable:!0,allDaySlot:!1,height:"auto",timeFormat:"H:mm",slotLabelInterval:"02:00:00",slotLabelFormat:"H:mm",columnHeaderFormat:"ddd D.M.",slotDuration:"00:30:00",firstDay:1,droppable:!0,eventResize:function(n){var i=t.getServiceSheetEventObj(n.eventObj);i.From=moment(n.start._d).format("DD.MM.YYYY")+" "+moment(n.start._i).format("HH:mm");i.To=moment(n.end._d).format("DD.MM.YYYY")+" "+moment(n.end._i).format("HH:mm");t.editServiceSheetEventSave(i)},eventDrop:function(n){var i=t.getServiceSheetEventObj(n.eventObj);i.From=moment(n.start._d).format("DD.MM.YYYY")+" "+moment(n.start._i).format("HH:mm");i.To=moment(n.end._d).format("DD.MM.YYYY")+" "+moment(n.end._i).format("HH:mm");t.editServiceSheetEventSave(i)},drop:function(){}};t.selectViewType=function(n){t.selectedViewType=n;$(".calendarObj").fullCalendar("changeView",n.Id)};t.loadViewTypes=function(){n.akDataLoadingStringAdd("GarageCalendarLoadViewTypes");i.garage.calendar.getViewTypes().then(function(i){t.viewTypes=i.data.viewTypes||[];n.akDataLoadingStringRemove("GarageCalendarLoadViewTypes");t.selectedViewType=t.viewTypes[2];t.businessHours=i.data.businessHours||[]},function(){AK.System.alert("Get garage calendar view types failed");n.akDataLoadingStringRemove("GarageCalendarLoadViewTypes")})};t.loadViewTypes();t.calendarDate=undefined;t.saveCalendarDate=function(){t.calendarDate=t.calendarDate==undefined?moment():$(".calendarObj").fullCalendar("getDate")};t.loadCalendarDate=function(){t.calendarDate&&t.calendarDate.isValid()&&$(".calendarObj").fullCalendar("gotoDate",t.calendarDate)};t.loadData=function(){n.akDataLoadingStringAdd("GarageCalendarLoadData");t.saveCalendarDate();i.garage.calendar.getData().then(function(i){t.calendars=i.data.calendars||[];$("#GarageCalendarContainer").removeClass("visibilityOff");n.akDataLoadingStringRemove("GarageCalendarLoadData");t.initCalendar()},function(){AK.System.alert("Get garage calendar failed");$("#GarageCalendarContainer").removeClass("visibilityOff");n.akDataLoadingStringRemove("GarageCalendarLoadData")})};t.loadData();t.initCalendar=function(){t.calendars.forEach(function(n){t.createCalendar(n)});setTimeout(function(){t.loadCalendarDate();$(".calendarObj").fullCalendar("option",{businessHours:t.businessHours});$(".calendarObj").fullCalendar("changeView",t.selectedViewType.Id);$(".calendarObj").fullCalendar("render");$(".calendarObj").fullCalendar("rerenderEvents");$("#calendars-prev").click();$("#calendars-next").click()},100)};t.createCalendar=function(n){t.createEvents(n)};t.createEvents=function(n){n&&(n.EventItems=[],n.ServiceSheetEvents!=undefined&&n.ServiceSheetEvents.forEach(function(i){var f=i.ServiceSheetId!=undefined&&i.ServiceSheetId.length>0?r.ServiceSheet:r.Event,e=i.Name,o;f==r.ServiceSheet&&(e=i.CarLicencePlate,(e==undefined||e.length==0)&&(e=i.ServiceSheetNumber));o={type:f,title:e,description:f==r.ServiceSheet?i.CustomerName:i.Name,sheetNumber:f==r.ServiceSheet?i.ServiceSheetNumber:"",start:date=t.getDate(i.From),end:date=t.getDate(i.To),color:f==r.ServiceSheet?i.ServiceSheetIsOpened?u.Opening:u.Closing:u.Event,eventObj:i};n.EventItems.push(o)}))};t.showDeleteModal=function(){$("#eventDeleteModal").modal("show")};t.editEventSave=function(){n.akDataLoadingStringAdd("GarageCalendarEventEditSave");i.garage.calendar.saveEvent(t.selectedEvent,t.selectedEventCalendarId).then(function(i){$("#eventEditModal").modal("hide");i.data.succeed==!0&&t.loadData();AK.System.ShowMessage(i.data.message);AK.System.alert(i.data.message);n.akDataLoadingStringRemove("GarageCalendarEventEditSave")},function(){AK.System.alert("Save event failed");n.akDataLoadingStringRemove("GarageCalendarEventEditSave")})};t.editServiceSheetEventSave=function(r){n.akDataLoadingStringAdd("GarageCalendarSheetEventEditSave");i.garage.calendar.saveSheetEvent(r).then(function(i){$("#sheetEditModal").modal("hide");i.data.succeed==!0&&(t.loadData(),t.reloadServiceSheets());AK.System.alert(i.data.message);n.akDataLoadingStringRemove("GarageCalendarSheetEventEditSave")},function(){AK.System.alert("Save event failed");n.akDataLoadingStringRemove("GarageCalendarSheetEventEditSave")})};t.datetimeFormat=/^[0-9.:\s]+$/;t.validateDate=function(n){return n!=undefined&&n.match(t.datetimeFormat)&&moment(n,"D.M.YYYY H:m").isValid()};t.getDate=function(n){return moment(n,"D.M.YYYY H:m")._d};t.operatorNameSave=function(){var n,i,r;if(t.formSubmitted=!0,t.fromNotValid=!t.validateDate(t.selectedEvent.From),t.toNotValid=!t.validateDate(t.selectedEvent.To),t.fromNotValid||t.toNotValid)return!1;if(n=t.getDate(t.selectedEvent.From),i=t.getDate(t.selectedEvent.To),n>i)return t.badTimes=!0,!1;if(t.eventCalendarSheetEditForm.$invalid)return!1;t.formSubmitted=!1;r=t.getServiceSheetEventObj(t.selectedEvent);t.editServiceSheetEventSave(r)};t.getServiceSheetEventObj=function(n){var t=new GarageCalendarSheetEdit;return t.Id=n.Id,t.CalendarId=n.CalendarId,t.ServiceSheetId=n.ServiceSheetId,t.OperatorName=n.OperatorName,t.From=n.From,t.To=n.To,t.Name=n.Name,t};t.removeEventClick=function(){$("#removeEventModal").modal("show")};t.removeEvent=function(){n.akDataLoadingStringAdd("GarageCalendarEventRemove");i.garage.calendar.removeEvent(t.selectedEvent.CalendarId,t.selectedEvent.Id).then(function(i){$("#removeEventModal").modal("hide");n.akDataLoadingStringRemove("GarageCalendarEventRemove");i.data.succeed==!0&&(t.loadData(),t.reloadServiceSheets(),$("#eventEditModal").modal("hide"),$("#sheetEditModal").modal("hide"),$("#eventSheetNewModal").modal("hide"));AK.System.ShowMessage(i.data.errorMessage)},function(){$("#removeEventModal").modal("hide");AK.System.alert("Remove garage calendar failed");n.akDataLoadingStringRemove("GarageCalendarEventRemove")})};t.selectedEventCalendarId=undefined;t.createNewEvent=function(n,i,r){var u=moment(n._d).format("DD.MM.YYYY")+" "+moment(n._i).format("HH:mm"),f=moment(i._d).format("DD.MM.YYYY")+" "+moment(i._i).format("HH:mm");t.selectedEvent={Id:AK.System.GuidEmpty,Name:"",Description:"",From:u,To:f};t.selectedEventCalendarId=r;t.badTimes=!1;t.formSubmitted=!1;t.fromNotValid=!1;t.toNotValid=!1;$("#eventEditModal").modal("show");t.$apply()};t.showErrorOperator=function(){return(t.eventCalendarSheetNewForm.operatorName.$dirty||t.formSubmitted)&&t.newSheetSelectedId!=undefined&&t.newSheetSelectedId!="Select"&&t.selectedEvent!=undefined&&(t.selectedEvent.OperatorName==undefined||t.selectedEvent.OperatorName.length==0)};t.showErrorText=function(){return(t.eventCalendarSheetNewForm.name.$dirty||t.formSubmitted)&&t.newSheetSelectedId!=undefined&&t.newSheetSelectedId=="Select"&&t.selectedEvent!=undefined&&t.selectedEvent.Name.length==0};t.createNewSheetEvent=function(n,i,r){t.loadServiceSheets();var f=moment(n._d).format("DD.MM.YYYY")+" "+moment(n._i).format("HH:mm"),e=moment(i._d).format("DD.MM.YYYY")+" "+moment(i._i).format("HH:mm"),u=new GarageCalendarSheetEdit;u.CalendarId=r;u.From=f;u.To=e;t.selectedEvent=u;t.badTimes=!1;t.formSubmitted=!1;t.fromNotValid=!1;t.toNotValid=!1;t.newSheetSelectedId="Select";t.eventCalendarSheetNewForm.$setPristine();$("#eventSheetNewModal").modal("show");t.initDateTimePickerNewEvent();t.$apply()};t.newSheetEventSave=function(){if(t.formSubmitted=!0,t.fromNotValid=!t.validateDate(t.selectedEvent.From),t.toNotValid=!t.validateDate(t.selectedEvent.To),t.fromNotValid||t.toNotValid)return!1;var n=t.getDate(t.selectedEvent.From),i=t.getDate(t.selectedEvent.To);if(n>i)return t.badTimes=!0,!1;if(t.showErrorOperator()||t.showErrorText()||t.eventCalendarSheetNewForm.$invalid)return!1;t.selectedEvent.ServiceSheetId=t.newSheetSelectedId=="Select"?AK.System.GuidEmpty:t.newSheetSelectedId;t.newSheetSelectedId="Select";t.editSheetEventSave();t.formSubmitted=!1};t.hasValidId=function(n){return n!=AK.System.GuidEmpty};t.editSheetEventSave=function(){$("#eventSheetNewModal").modal("hide");t.editServiceSheetEventSave(t.selectedEvent)};t.addCalendar=function(){n.akDataLoadingStringAdd("GarageCalendarAdd");i.garage.calendar.add(t.newCalendar.Name,t.newCalendar.Description).then(function(i){$("#ModalCreateCalednar").modal("hide");t.newCalendar.Name="";n.akDataLoadingStringRemove("GarageCalendarAdd");i.data.succeed==!0&&t.loadData();AK.System.alert(i.data.message)},function(){$("#ModalCreateCalednar").modal("hide");AK.System.alert("Adding garage calendar failed");n.akDataLoadingStringRemove("GarageCalendarAdd")})};t.removeCalendarClick=function(n){t.removeCalendarId=n;$("#ModalRemoveCalendar").modal("show")};t.removeCalendar=function(){n.akDataLoadingStringAdd("GarageCalendarRemove");i.garage.calendar.remove(t.removeCalendarId).then(function(i){$("#ModalRemoveCalendar").modal("hide");n.akDataLoadingStringRemove("GarageCalendarRemove");i.data.succeed==!0&&(t.loadData(),t.reloadServiceSheets());AK.System.alert(i.data.message)},function(){$("#ModalRemoveCalendar").modal("hide");AK.System.alert("Remove garage calendar failed");n.akDataLoadingStringRemove("GarageCalendarRemove")})};t.initDateTimePickerNewEvent=function(){var n,i;$("#newEventFrom").datetimepicker().on("changeDate",function(n){var i=n.date!=undefined?new Date(n.date.valueOf()):null;i!=undefined&&i.setTime(i.getTime()+i.getTimezoneOffset()*6e4);t.editEventFromChange(i,"#newEventTo")});$("#newEventTo").datetimepicker().on("changeDate",function(n){var i=n.date!=undefined?new Date(n.date.valueOf()):null;i!=undefined&&i.setTime(i.getTime()+i.getTimezoneOffset()*6e4);t.editEventToChange(i,"#newEventFrom")});n=t.selectedEvent.From&&t.selectedEvent.From.length>0?t.getDate(t.selectedEvent.From):undefined;n&&$("#newEventTo").datetimepicker("setStartDate",t.addMinutes(n,5));i=t.selectedEvent.To&&t.selectedEvent.To.length>0?t.getDate(t.selectedEvent.To):undefined;i&&$("#newEventFrom").datetimepicker("setEndDate",t.addMinutes(i,-5))};t.initDateTimePickerEditEvent=function(){var n,i;$("#editEventFrom").datetimepicker().on("changeDate",function(n){var i=n.date?new Date(n.date.valueOf()):null;i&&i.setTime(i.getTime()+i.getTimezoneOffset()*6e4);t.editEventFromChange(i,"#editEventTo")});$("#editEventTo").datetimepicker().on("changeDate",function(n){var i=n.date!=undefined?new Date(n.date.valueOf()):null;i&&i.setTime(i.getTime()+i.getTimezoneOffset()*6e4);t.editEventToChange(i,"#editEventFrom")});n=t.selectedEvent.From!=undefined&&t.selectedEvent.From.length>0?t.getDate(t.selectedEvent.From):undefined;n&&$("#editEventTo").datetimepicker("setStartDate",t.addMinutes(n,5));i=t.selectedEvent.To!=undefined&&t.selectedEvent.To.length>0?t.getDate(t.selectedEvent.To):undefined;i&&$("#editEventFrom").datetimepicker("setEndDate",t.addMinutes(i,-5))};t.changeNewDateTimeFrom=function(){var n=t.selectedEvent.From!=undefined&&t.selectedEvent.From.length>0?t.getDate(t.selectedEvent.From):undefined;t.editEventFromChange(n,"#newEventTo")};t.changeNewDateTimeTo=function(){var n=t.selectedEvent.To!=undefined&&t.selectedEvent.To.length>0?t.getDate(t.selectedEvent.To):undefined;t.editEventToChange(n,"#newEventFrom")};t.changeEditDateTimeFrom=function(){var n=t.selectedEvent.From!=undefined&&t.selectedEvent.From.length>0?t.getDate(t.selectedEvent.From):undefined;t.editEventFromChange(n,"#editEventTo")};t.changeEditDateTimeTo=function(){var n=t.selectedEvent.To!=undefined&&t.selectedEvent.To.length>0?t.getDate(t.selectedEvent.To):undefined;t.editEventToChange(n,"#editEventFrom")};t.editEventFromChange=function(n,i){if(t.fromNotValid=!t.validateDate(t.selectedEvent.From),t.fromNotValid){var r=new Date;$(i).datetimepicker("setStartDate",r.setDate(r.getDate()-1e3));return}n&&$(i).datetimepicker("setStartDate",t.addMinutes(n,5))};t.editEventToChange=function(n,i){if(t.toNotValid=!t.validateDate(t.selectedEvent.To),t.toNotValid){var r=new Date;r.setDate(r.getDate()+365);$(i).datetimepicker("setEndDate",r);return}n&&$(i).datetimepicker("setEndDate",t.addMinutes(n,-5))};t.showError=function(n,i){return n.$invalid&&(n.$dirty||t.formSubmitted)||t.formSubmitted&&t.badTimes||i};t.addMinutes=function(n,t){return n.setTime(n.getTime()+t*6e4),n}};AK.Garage.Calendar.initServiceSheet=function(n,t,i){AK.System.alert("@Garage.calendar.serviceSheet.init");t.serviceSheets=[];t.calendars=[];t.filter=undefined;t.selectedSheet=undefined;t.selectedEvent=undefined;t.selectedCalendarId=undefined;t.formSubmitted=!1;t.badTimes=!1;t.fromNotValid=!1;t.toNotValid=!1;t.loadFilter=function(){i.garage.calendar.getServiceSheetFilter().then(function(n){t.filter=n.data.filter;t.loadData()},function(){AK.System.alert("Get garage calendar filter failed")})};t.loadFilter();t.loadData=function(){n.akDataLoadingStringAdd("GarageCalendarSheetLoad");i.garage.calendar.getServiceSheet(t.filter).then(function(i){t.serviceSheets=i.data.serviceSheets;$("#GarageCalendarSheetContainer").removeClass("visibilityOff");n.akDataLoadingStringRemove("GarageCalendarSheetLoad");t.initDraggableEvents()},function(){AK.System.alert("Get garage calendar failed");$("#GarageCalendarSheetContainer").removeClass("visibilityOff");n.akDataLoadingStringRemove("GarageCalendarSheetLoad")})};t.initDraggableEvents=function(){};t.getData=function(){return t.serviceSheets};t.showCreateEventModal=function(n){t.loadCalendars();t.selectedSheet=n;t.selectedEvent=new GarageCalendarSheetEdit;t.selectedEvent.ServiceSheetId=n.Id;t.badTimes=!1;t.initDateTimePicker();t.fromNotValid=!1;t.toNotValid=!1;t.formSubmitted=!1;t.eventSheetCalendarNewForm.$setPristine();$("#eventCalendarNewModal").modal("show")};t.createEvent=function(){if(t.formSubmitted=!0,t.fromNotValid=!t.validateDate(t.selectedEvent.From),t.toNotValid=!t.validateDate(t.selectedEvent.To),t.fromNotValid||t.toNotValid)return!1;var r=t.getDate(t.selectedEvent.From),u=t.getDate(t.selectedEvent.To);if(r>u)return t.badTimes=!0,!1;if(t.eventSheetCalendarNewForm.$invalid)return!1;t.selectedEvent.CalendarId=t.selectedCalendarId;t.formSubmitted=!1;n.akDataLoadingStringAdd("GarageCalendarSheetCalendarEventSave");i.garage.calendar.saveSheetEvent(t.selectedEvent).then(function(i){i.data.succeed==!0&&(t.loadData(),t.reloadCalendars(),$("#eventCalendarNewModal").modal("hide"),t.selectedEvent=undefined);n.akDataLoadingStringRemove("GarageCalendarSheetCalendarEventSave")},function(){AK.System.alert("Save event failed");n.akDataLoadingStringRemove("GarageCalendarSheetCalendarEventSave")})};t.getCalendarScope=function(){return angular.element(document.getElementById("GarageCalendarContainer")).scope()};t.reloadCalendars=function(){var n=t.getCalendarScope();n!=undefined&&n.loadData()};t.loadCalendars=function(){var n=t.getCalendarScope();n!=undefined&&(t.calendars=angular.copy(n.calendars),t.calendars!=undefined&&t.calendars.length>0&&(t.selectedCalendarId=t.calendars[0].Id))};t.changeNewDateTimeFrom=function(){var n=t.selectedEvent.From!=undefined&&t.selectedEvent.From.length>0?t.getDate(t.selectedEvent.From):undefined;t.editEventFromChange(n,"#newSheetCalendarEventTo")};t.changeNewDateTimeTo=function(){var n=t.selectedEvent.To!=undefined&&t.selectedEvent.To.length>0?t.getDate(t.selectedEvent.To):undefined;t.editEventToChange(n,"#newSheetCalendarEventFrom")};t.editEventFromChange=function(n,i){if(t.fromNotValid=!t.validateDate(t.selectedEvent.From),t.fromNotValid){var r=new Date;$(i).datetimepicker("setStartDate",r.setDate(r.getDate()-1e3));return}n&&$(i).datetimepicker("setStartDate",t.addMinutes(n,5))};t.editEventToChange=function(n,i){if(t.toNotValid=!t.validateDate(t.selectedEvent.To),t.toNotValid){var r=new Date;r.setDate(r.getDate()+365);$(i).datetimepicker("setEndDate",r);return}n&&$(i).datetimepicker("setEndDate",t.addMinutes(n,-5))};t.initDateTimePicker=function(){$("#newSheetCalendarEventFrom").datetimepicker().on("changeDate",function(n){var i=n.date!=undefined?new Date(n.date.valueOf()):null;i!=undefined&&i.setTime(i.getTime()+i.getTimezoneOffset()*6e4);t.editEventFromChange(i,"#newSheetCalendarEventTo")});$("#newSheetCalendarEventTo").datetimepicker().on("changeDate",function(n){var i=n.date!=undefined?new Date(n.date.valueOf()):null;i!=undefined&&i.setTime(i.getTime()+i.getTimezoneOffset()*6e4);t.editEventToChange(i,"#newSheetCalendarEventFrom")})};t.showError=function(n,i){return n.$invalid&&(n.$dirty||t.formSubmitted)||t.formSubmitted&&t.badTimes||i};t.datetimeFormat=/^[0-9.:\s]+$/;t.validateDate=function(n){return n!=undefined&&n.match(t.datetimeFormat)&&moment(n,"D.M.YYYY H:m").isValid()};t.getDate=function(n){return moment(n,"D.M.YYYY H:m")._d};t.addMinutes=function(n,t){return n.setTime(n.getTime()+t*6e4),n}};AK.CmsPage.getCmsPage=function(n,t,i,r){AK.System.alert("@CmsPage.getCmsPage");n.name=r;n.content=null;t.getCmsPageContent(n.name).success(function(t){n.content=i.trustAsHtml(t)})};MAPSOURCETYPE={Unknown:0,GoogleMap:1,OpenStreetMap:2};Object.freeze(MAPSOURCETYPE);GPSSOURCETYPE={Unknown:0,GoogleMap:1,SmartForm:2};Object.freeze(GPSSOURCETYPE);AK.Contact.getContact=function(n,t,i,r){AK.System.alert("@Contact.getContact");n.akDataLoadingStringAdd("ContactStore");t.data=null;t.stores=[];t.isLPGVisible=!1;t.address="";var u={};[{name:"gmap-js",type:"script",src:"https://maps.googleapis.com/maps/api/js?v=3.exp&key=AIzaSyCosq11V2IImQBarjzCED68lfrQDXFFITc",integrity:""}].forEach(function(n){u[n.name]={loaded:!1,src:n.src,integrity:n.integrity}});t.loadScript=function(n){return new Promise(function(t){if(u[n].loaded)t({script:n,loaded:!0,status:"Already Loaded"});else{var i=document.createElement("script");i.type="text/javascript";i.src=u[n].src;i.readyState?i.onreadystatechange=function(){(i.readyState==="loaded"||i.readyState==="complete")&&(i.onreadystatechange=null,u[n].loaded=!0,t({script:n,loaded:!0,status:"Loaded"}))}:i.onload=function(){u[n].loaded=!0;t({script:n,loaded:!0,status:"Loaded"})};i.onerror=function(){t({script:n,loaded:!1,status:"Loaded"})};document.getElementsByTagName("head")[0].appendChild(i)}})};t.loadScripts=function(n){var i=[];return n.forEach(function(n){i.push(t.loadScript(n))}),Promise.all(i)};i.Contact.getData().then(function(i){t.data=i.data;t.stores=t.data.Stores;t.setLPGVisibility();t.mapSettings=t.data.MapSettings;t.mapSettings.MapSourceType==MAPSOURCETYPE.GoogleMap?AK.Contact.Map.scriptLoaded==null||AK.Contact.Map.scriptLoaded==!1?t.loadGMapScript():t.gMapInitialize():t.mapSettings.MapSourceType==MAPSOURCETYPE.OpenStreetMap&&t.osmInitialize();$("#ContactContainer").removeClass("visibilityOff");n.akDataLoadingStringRemove("ContactStore")},function(){AK.System.alert("Get contact data failed");$("#ContactContainer").removeClass("visibilityOff");n.akDataLoadingStringRemove("ContactStore")});t.setLPGVisibility=function(){t.isLPGVisible=!1;angular.forEach(t.stores,function(n){if(n.IsLPG){t.isLPGVisible=!0;return}})};t.osmInitialize=function(){AK.Contact.Map.osmMap=L.map("Store_OSM").setView([t.mapSettings.CenterLat,t.mapSettings.CenterLng],parseInt(t.mapSettings.Zoom));L.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{maxZoom:19,attribution:'&copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap<\/a>'}).addTo(AK.Contact.Map.osmMap);var n=AK.System.url+"/images/"+gImagePath+"/defaultMarker.png",i=L.icon({iconUrl:n,iconSize:[13,13]});$.each(t.stores,function(n,r){var u='<div id="GMapInfoWindow"><h2 class="GMapHeader">'+r.Name+'<\/h2><table class="GMapTable"><tr><td class="GMapColumn"><b>'+t.mapSettings.ResxAddress+"<\/b><br />"+r.AddressLine1+"<br />"+r.City+"<br />"+r.PostalCode+"<br />"+t.mapSettings.ResxPhone+" "+r.MainPhone+'<\/td><\/tr><\/table><a href="'+r.Link+'" class="btn btn-default">'+t.mapSettings.ResxDetail+"<\/a><\/div>",f=L.marker([r.Latitude,r.Longitude],{icon:i,title:r.Name}).addTo(AK.Contact.Map.osmMap);f.bindPopup(u)})};t.loadGMapScript=function(){var n=document.createElement("script");n.type="text/javascript";n.src="https://maps.googleapis.com/maps/api/js?v=3.exp&key=AIzaSyCosq11V2IImQBarjzCED68lfrQDXFFITc&callback=storeGMapInitialize";document.body.appendChild(n);AK.Contact.Map.scriptLoaded=!0};t.gMapInitialize=function(){var r=new google.maps.LatLng(t.mapSettings.CenterLat,t.mapSettings.CenterLng),u={zoom:parseInt(t.mapSettings.Zoom),center:r,mapTypeId:t.mapSettings.MapType.toLowerCase()},f={gridSize:50,maxZoom:17,imagePath:AK.System.url+"/images/MarkerClusterer/s"},n,i;AK.Contact.Map.gmap=new google.maps.Map(document.getElementById("Store_GMap"),u);AK.Contact.Map.markerYouAreHere=null;AK.Contact.Map.markers=[];AK.Contact.Map.infoWindow=null;n="";i=AK.System.url+"/images/"+gImagePath+"/defaultMarker.png";$.each(t.stores,function(r,u){var o=new google.maps.LatLng(u.Latitude,u.Longitude),s='<div id="GMapInfoWindow"><h2 class="GMapHeader">'+u.Name+'<\/h2><table class="GMapTable"><tr><td class="GMapColumn"><b>'+t.mapSettings.ResxAddress+"<\/b><br />"+u.AddressLine1+"<br />"+u.City+"<br />"+u.PostalCode+"<br />"+t.mapSettings.ResxPhone+" "+u.MainPhone+'<\/td><\/tr><\/table><a href="'+u.Link+'" class="btn btn-default">'+t.mapSettings.ResxDetail+"<\/a><\/div>",f,e;n=i;f=new google.maps.Marker({position:o,map:AK.Contact.Map.gmap,icon:n,title:u.Name});google.maps.event.addListener(f,"click",function(){AK.Contact.Map.infoWindow&&AK.Contact.Map.infoWindow.close();AK.Contact.Map.infoWindow=new google.maps.InfoWindow({content:s});AK.Contact.Map.infoWindow.open(AK.Contact.Map.gmap,f)});e={name:u.Name,marker:f};AK.Contact.Map.markers.push(e)});closeInfoWindow=function(){AK.Contact.Map.infoWindow!==null&&AK.Contact.Map.infoWindow.close()};google.maps.event.addListener(AK.Contact.Map.gmap,"click",closeInfoWindow)};t.loadMarkerClusterer=function(){var n=[];typeof AK.Contact.Map.markers!="undefined"&&AK.Contact.Map.markers!=null&&$.each(AK.Contact.Map.markers,function(t,i){n.push(i.marker)});AK.Contact.Map.markerClusterer.addMarkers(n)};t.resizeGMap=function(){if(typeof AK.Contact.Map.gmap!="undefined"&&AK.Contact.Map.gmap!=null){var n=AK.Contact.Map.gmap.getZoom(),t=AK.Contact.Map.gmap.getCenter();google.maps.event.trigger(AK.Contact.Map.gmap,"resize");AK.Contact.Map.gmap.setZoom(n);AK.Contact.Map.gmap.setCenter(t)}};t.findByGeolocation=function(n,i){return $("#Store_MapMessage").html(""),navigator.geolocation?navigator.geolocation.getCurrentPosition(function(r){t.showPosition(r,n,i)},t.showError):$("#Store_MapMessage").html("Geolocation is not supported by this browser."),!1};t.showPosition=function(n,i,r){var u=n.coords.latitude,f=n.coords.longitude;$("#Store_MapMessage").html(i);t.mapSettings.MapSourceType==MAPSOURCETYPE.GoogleMap?t.setGMapMarkerYouAreHere(u,f,12,r):t.mapSettings.MapSourceType==MAPSOURCETYPE.OpenStreetMap&&t.setOsmMarkerYouAreHere(u,f,12,r)};t.showPosition2=function(n,i,r,u){$("#Store_MapMessage").html(r);t.mapSettings.MapSourceType==MAPSOURCETYPE.GoogleMap?t.setGMapMarkerYouAreHere(n,i,12,u):t.mapSettings.MapSourceType==MAPSOURCETYPE.OpenStreetMap&&t.setOsmMarkerYouAreHere(n,i,12,u)};t.setGMapMarkerYouAreHere=function(n,t,i,r){var u=new google.maps.LatLng(n,t,!0);typeof AK.Contact.Map.markerYouAreHere=="undefined"||AK.Contact.Map.markerYouAreHere==null?AK.Contact.Map.markerYouAreHere=new google.maps.Marker({position:u,map:AK.Contact.Map.gmap,title:r}):AK.Contact.Map.markerYouAreHere.setPosition(u);AK.Contact.Map.gmap.panTo(u);AK.Contact.Map.gmap.setZoom(i)};t.setOsmMarkerYouAreHere=function(n,t,i,r){typeof AK.Contact.Map.markerYouAreHere=="undefined"||AK.Contact.Map.markerYouAreHere==null?(AK.Contact.Map.markerYouAreHere=L.marker([n,t],{title:r}),AK.Contact.Map.markerYouAreHere.addTo(AK.Contact.Map.osmMap)):AK.Contact.Map.markerYouAreHere.setLatLng([n,t]);AK.Contact.Map.osmMap.setView([n,t],i)};t.showError=function(n){var t=$("#Store_MapMessage");switch(n.code){case n.PERMISSION_DENIED:t.html("User denied the request for Geolocation.");break;case n.POSITION_UNAVAILABLE:t.html("Location information is unavailable.");break;case n.TIMEOUT:t.html("The request to get user location timed out.");break;case n.UNKNOWN_ERROR:t.html("An unknown error occurred.")}};t.findByAddress=function(n,i){if($("#Store_MapMessage").html(""),t.address.length>0){if(r==GPSSOURCETYPE.GoogleMap)if(AK.Contact.Map.geocoder==null){var u=[];u.push("gmap-js");t.loadScripts(u).then(function(){AK.Contact.Map.geocoder=new google.maps.Geocoder;t.findByAddress(n,i)})}else AK.Contact.Map.geocoder.geocode({address:t.address},function(r,u){if(u==google.maps.GeocoderStatus.OK){$("#Store_MapMessage").html(n);var f=r[0].geometry.location;t.mapSettings.MapSourceType==MAPSOURCETYPE.GoogleMap?t.setGMapMarkerYouAreHere(f.lat(),f.lng(),12,i):t.mapSettings.MapSourceType==MAPSOURCETYPE.OpenStreetMap&&t.setOsmMarkerYouAreHere(f.lat(),f.lng(),12,i)}else $("#Store_MapMessage").html("Geocode was not successful for the following reason: "+u)})}else $("#Store_MapMessage").html("Zadejte adresu")}};AK.Contact.getContactDetail=function(n,t,i,r,u){AK.System.alert("@Contact.getContactDetail");n.akDataLoadingStringAdd("ContactDetailStore");t.data=null;var f={};[{name:"gmap-js",type:"script",src:"https://maps.googleapis.com/maps/api/js?v=3.exp&key=AIzaSyCosq11V2IImQBarjzCED68lfrQDXFFITc",integrity:""}].forEach(function(n){f[n.name]={loaded:!1,src:n.src,integrity:n.integrity}});t.loadScript=function(n){return new Promise(function(t){if(f[n].loaded)t({script:n,loaded:!0,status:"Already Loaded"});else{var i=document.createElement("script");i.type="text/javascript";i.src=f[n].src;i.readyState?i.onreadystatechange=function(){(i.readyState==="loaded"||i.readyState==="complete")&&(i.onreadystatechange=null,f[n].loaded=!0,t({script:n,loaded:!0,status:"Loaded"}))}:i.onload=function(){f[n].loaded=!0;t({script:n,loaded:!0,status:"Loaded"})};i.onerror=function(){t({script:n,loaded:!1,status:"Loaded"})};document.getElementsByTagName("head")[0].appendChild(i)}})};t.loadScripts=function(n){var i=[];return n.forEach(function(n){i.push(t.loadScript(n))}),Promise.all(i)};i.Contact.getDetailData(r).then(function(i){t.data=i.data;t.data.Latitude!=""&&t.data.Longitude!=""&&(u==MAPSOURCETYPE.GoogleMap?AK.Contact.Map.scriptLoaded==null||AK.Contact.Map.scriptLoaded==!1?t.loadGMapScript():t.gMapInitialize():u==MAPSOURCETYPE.OpenStreetMap&&t.osmInitialize());$("#ContactBody").removeClass("visibilityOff");n.akDataLoadingStringRemove("ContactDetailStore")},function(){AK.System.alert("Get contact data failed");$("#ContactBody").removeClass("visibilityOff");n.akDataLoadingStringRemove("ContactDetailStore")});t.osmInitialize=function(){AK.Contact.Map.osmMap=L.map("map-canvas-osm").setView([t.data.Latitude,t.data.Longitude],16);L.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{maxZoom:19,attribution:'&copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap<\/a>'}).addTo(AK.Contact.Map.osmMap);var n=AK.System.url+"/images/"+gImagePath+"/defaultMarker.png",i=L.icon({iconUrl:n,iconSize:[13,13]});L.marker([t.data.Latitude,t.data.Longitude],{icon:i,title:t.data.Name}).addTo(AK.Contact.Map.osmMap);t.data.GmapHeading!=""&&t.gMapStreetViewLoad(t.data.Latitude,t.data.Longitude,t.data.GmapHeading)};t.loadGMapScript=function(){var n=document.createElement("script");n.type="text/javascript";n.src="https://maps.googleapis.com/maps/api/js?v=3.exp&key=AIzaSyCosq11V2IImQBarjzCED68lfrQDXFFITc&callback=storeDetailGMapInitialize";document.body.appendChild(n);AK.Contact.Map.scriptLoaded=!0};t.gMapInitialize=function(){var n=new google.maps.LatLng(t.data.Latitude,t.data.Longitude),r={center:n,zoom:16,mapTypeId:google.maps.MapTypeId.ROADMAP},i,u;AK.Contact.Map.gmap=new google.maps.Map(document.getElementById("map-canvas"),r);i=AK.System.url+"/images/"+gImagePath+"/defaultMarker.png";u=new google.maps.Marker({position:n,map:AK.Contact.Map.gmap,icon:i});t.data.GmapHeading!=""&&t.gMapStreetViewLoad(t.data.Latitude,t.data.Longitude,t.data.GmapHeading)};t.gMapStreetViewLoad=function(n,i,r){var u;if(AK.Contact.Map.gmap==null)u=[],u.push("gmap-js"),t.loadScripts(u).then(function(){var u=new google.maps.LatLng(n,i),f={center:u,zoom:16,mapTypeId:google.maps.MapTypeId.ROADMAP};AK.Contact.Map.gmap=new google.maps.Map(document.getElementById("pano"),f);t.gMapStreetViewLoad(n,i,r)});else if(r!=""){var f=new google.maps.LatLng(n,i),e={position:f,pov:{heading:parseInt(r),pitch:10}},o=new google.maps.StreetViewPanorama(document.getElementById("pano"),e);AK.Contact.Map.gmap.setStreetView(o)}}};AK.Contact.getContactEBikeService=function(n,t,i,r){AK.System.alert("@Contact.EBikeService.getContact");n.akDataLoadingStringAdd("ContactEBikeService");t.data=null;t.services=[];t.address="";var u={};[{name:"gmap-js",type:"script",src:"https://maps.googleapis.com/maps/api/js?v=3.exp&key=AIzaSyCosq11V2IImQBarjzCED68lfrQDXFFITc",integrity:""}].forEach(function(n){u[n.name]={loaded:!1,src:n.src,integrity:n.integrity}});t.loadScript=function(n){return new Promise(function(t){if(u[n].loaded)t({script:n,loaded:!0,status:"Already Loaded"});else{var i=document.createElement("script");i.type="text/javascript";i.src=u[n].src;i.readyState?i.onreadystatechange=function(){(i.readyState==="loaded"||i.readyState==="complete")&&(i.onreadystatechange=null,u[n].loaded=!0,t({script:n,loaded:!0,status:"Loaded"}))}:i.onload=function(){u[n].loaded=!0;t({script:n,loaded:!0,status:"Loaded"})};i.onerror=function(){t({script:n,loaded:!1,status:"Loaded"})};document.getElementsByTagName("head")[0].appendChild(i)}})};t.loadScripts=function(n){var i=[];return n.forEach(function(n){i.push(t.loadScript(n))}),Promise.all(i)};i.Contact.EBikeService.getData().then(function(i){t.data=i.data;t.services=t.data.Services;t.mapSettings=t.data.MapSettings;t.mapSettings.MapSourceType==MAPSOURCETYPE.GoogleMap?AK.Contact.Map.scriptLoaded==null||AK.Contact.Map.scriptLoaded==!1?t.loadGMapScript():t.gMapInitialize():t.mapSettings.MapSourceType==MAPSOURCETYPE.OpenStreetMap&&t.osmInitialize();$("#ContactContainer").removeClass("visibilityOff");n.akDataLoadingStringRemove("ContactEBikeService")},function(){AK.System.alert("Get contact data failed");$("#ContactContainer").removeClass("visibilityOff");n.akDataLoadingStringRemove("ContactEBikeService")});t.osmInitialize=function(){AK.Contact.Map.osmMap=L.map("EBikeService_OSM").setView([t.mapSettings.CenterLat,t.mapSettings.CenterLng],parseInt(t.mapSettings.Zoom));L.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{maxZoom:19,attribution:'&copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap<\/a>'}).addTo(AK.Contact.Map.osmMap);var n=AK.System.url+"/images/"+gImagePath+"/defaultMarker.png",i=L.icon({iconUrl:n,iconSize:[13,13]});$.each(t.services,function(n,r){var u='<div id="GMapInfoWindow"><h2 class="GMapHeader">'+r.Name+'<\/h2><table class="GMapTable"><tr><td class="GMapColumn"><b>'+t.mapSettings.ResxAddress+"<\/b><br />"+r.AddressLine1+"<br />"+r.City+"<br />"+r.PostalCode+"<br />"+t.mapSettings.ResxPhone+" "+r.MainPhone+'<\/td><\/tr><\/table><a href="/EBikeService/'+r.Link+'" class="btn btn-default">'+t.mapSettings.ResxDetail+"<\/a><\/div>",f=L.marker([r.Latitude,r.Longitude],{icon:i,title:r.Name}).addTo(AK.Contact.Map.osmMap);f.bindPopup(u)})};t.loadGMapScript=function(){var n=document.createElement("script");n.type="text/javascript";n.src="https://maps.googleapis.com/maps/api/js?v=3.exp&key=AIzaSyCosq11V2IImQBarjzCED68lfrQDXFFITc&callback=ebikeGMapInitialize";document.body.appendChild(n);AK.Contact.Map.scriptLoaded=!0};t.gMapInitialize=function(){var r=new google.maps.LatLng(t.mapSettings.CenterLat,t.mapSettings.CenterLng),u={zoom:parseInt(t.mapSettings.Zoom),center:r,mapTypeId:t.mapSettings.MapType.toLowerCase()},f={gridSize:50,maxZoom:17,imagePath:AK.System.url+"/images/MarkerClusterer/s"},n,i;AK.Contact.Map.gmap=new google.maps.Map(document.getElementById("EBikeService_GMap"),u);AK.Contact.Map.markerYouAreHere=null;AK.Contact.Map.markers=[];AK.Contact.Map.infoWindow=null;n="";i=AK.System.url+"/images/"+gImagePath+"/defaultMarker.png";$.each(t.services,function(r,u){var o=new google.maps.LatLng(u.Latitude,u.Longitude),s='<div id="GMapInfoWindow"><h2 class="GMapHeader">'+u.Name+'<\/h2><table class="GMapTable"><tr><td class="GMapColumn"><b>'+t.mapSettings.ResxAddress+"<\/b><br />"+u.AddressLine1+"<br />"+u.City+"<br />"+u.PostalCode+"<br />"+t.mapSettings.ResxPhone+" "+[u.Phone,u.Mobile].filter(function(n){return n}).join(", ")+'<\/td><\/tr><\/table><a href="/EBikeService/'+u.Link+'" class="btn btn-default">'+t.mapSettings.ResxDetail+"<\/a><\/div>",f,e;n=i;f=new google.maps.Marker({position:o,map:AK.Contact.Map.gmap,icon:n,title:u.Name});google.maps.event.addListener(f,"click",function(){AK.Contact.Map.infoWindow&&AK.Contact.Map.infoWindow.close();AK.Contact.Map.infoWindow=new google.maps.InfoWindow({content:s});AK.Contact.Map.infoWindow.open(AK.Contact.Map.gmap,f)});e={name:u.Name,marker:f};AK.Contact.Map.markers.push(e)});closeInfoWindow=function(){AK.Contact.Map.infoWindow!==null&&AK.Contact.Map.infoWindow.close()};google.maps.event.addListener(AK.Contact.Map.gmap,"click",closeInfoWindow)};t.loadMarkerClusterer=function(){var n=[];typeof AK.Contact.Map.markers!="undefined"&&AK.Contact.Map.markers!=null&&$.each(AK.Contact.Map.markers,function(t,i){n.push(i.marker)});AK.Contact.Map.markerClusterer.addMarkers(n)};t.resizeGMap=function(){if(typeof AK.Contact.Map.gmap!="undefined"&&AK.Contact.Map.gmap!=null){var n=AK.Contact.Map.gmap.getZoom(),t=AK.Contact.Map.gmap.getCenter();google.maps.event.trigger(AK.Contact.Map.gmap,"resize");AK.Contact.Map.gmap.setZoom(n);AK.Contact.Map.gmap.setCenter(t)}};t.findByGeolocation=function(n,i){return $("#Store_MapMessage").html(""),navigator.geolocation?navigator.geolocation.getCurrentPosition(function(r){t.showPosition(r,n,i)},t.showError):$("#Store_MapMessage").html("Geolocation is not supported by this browser."),!1};t.showPosition=function(n,i,r){var u=n.coords.latitude,f=n.coords.longitude;$("#Store_MapMessage").html(i);t.mapSettings.MapSourceType==MAPSOURCETYPE.GoogleMap?t.setGMapMarkerYouAreHere(u,f,12,r):t.mapSettings.MapSourceType==MAPSOURCETYPE.OpenStreetMap&&t.setOsmMarkerYouAreHere(u,f,12,r)};t.showPosition2=function(n,i,r,u){$("#Store_MapMessage").html(r);t.mapSettings.MapSourceType==MAPSOURCETYPE.GoogleMap?t.setGMapMarkerYouAreHere(n,i,12,u):t.mapSettings.MapSourceType==MAPSOURCETYPE.OpenStreetMap&&t.setOsmMarkerYouAreHere(n,i,12,u)};t.setGMapMarkerYouAreHere=function(n,t,i,r){var u=new google.maps.LatLng(n,t,!0);typeof AK.Contact.Map.markerYouAreHere=="undefined"||AK.Contact.Map.markerYouAreHere==null?AK.Contact.Map.markerYouAreHere=new google.maps.Marker({position:u,map:AK.Contact.Map.gmap,title:r}):AK.Contact.Map.markerYouAreHere.setPosition(u);AK.Contact.Map.gmap.panTo(u);AK.Contact.Map.gmap.setZoom(i)};t.setOsmMarkerYouAreHere=function(n,t,i,r){typeof AK.Contact.Map.markerYouAreHere=="undefined"||AK.Contact.Map.markerYouAreHere==null?(AK.Contact.Map.markerYouAreHere=L.marker([n,t],{title:r}),AK.Contact.Map.markerYouAreHere.addTo(AK.Contact.Map.osmMap)):AK.Contact.Map.markerYouAreHere.setLatLng([n,t]);AK.Contact.Map.osmMap.setView([n,t],i)};t.showError=function(n){var t=$("#Store_MapMessage");switch(n.code){case n.PERMISSION_DENIED:t.html("User denied the request for Geolocation.");break;case n.POSITION_UNAVAILABLE:t.html("Location information is unavailable.");break;case n.TIMEOUT:t.html("The request to get user location timed out.");break;case n.UNKNOWN_ERROR:t.html("An unknown error occurred.")}};t.findByAddress=function(n,i){if($("#Store_MapMessage").html(""),t.address.length>0){if(r==GPSSOURCETYPE.GoogleMap)if(AK.Contact.Map.geocoder==null){var u=[];u.push("gmap-js");t.loadScripts(u).then(function(){AK.Contact.Map.geocoder=new google.maps.Geocoder;t.findByAddress(n,i)})}else AK.Contact.Map.geocoder.geocode({address:t.address},function(r,u){if(u==google.maps.GeocoderStatus.OK){$("#Store_MapMessage").html(n);var f=r[0].geometry.location;t.mapSettings.MapSourceType==MAPSOURCETYPE.GoogleMap?t.setGMapMarkerYouAreHere(f.lat(),f.lng(),12,i):t.mapSettings.MapSourceType==MAPSOURCETYPE.OpenStreetMap&&t.setOsmMarkerYouAreHere(f.lat(),f.lng(),12,i)}else $("#Store_MapMessage").html("Geocode was not successful for the following reason: "+u)})}else $("#Store_MapMessage").html("Zadejte adresu")}};AK.Contact.getContactEBikeServiceDetail=function(n,t,i,r,u){AK.System.alert("@Contact.getContactEBikeServiceDetail");n.akDataLoadingStringAdd("ContactEBikeServiceDetail");t.data=null;var f={};[{name:"gmap-js",type:"script",src:"https://maps.googleapis.com/maps/api/js?v=3.exp&key=AIzaSyCosq11V2IImQBarjzCED68lfrQDXFFITc",integrity:""}].forEach(function(n){f[n.name]={loaded:!1,src:n.src,integrity:n.integrity}});t.loadScript=function(n){return new Promise(function(t){if(f[n].loaded)t({script:n,loaded:!0,status:"Already Loaded"});else{var i=document.createElement("script");i.type="text/javascript";i.src=f[n].src;i.readyState?i.onreadystatechange=function(){(i.readyState==="loaded"||i.readyState==="complete")&&(i.onreadystatechange=null,f[n].loaded=!0,t({script:n,loaded:!0,status:"Loaded"}))}:i.onload=function(){f[n].loaded=!0;t({script:n,loaded:!0,status:"Loaded"})};i.onerror=function(){t({script:n,loaded:!1,status:"Loaded"})};document.getElementsByTagName("head")[0].appendChild(i)}})};t.loadScripts=function(n){var i=[];return n.forEach(function(n){i.push(t.loadScript(n))}),Promise.all(i)};i.Contact.EBikeService.getDetailData(r).then(function(i){t.data=i.data;t.data.Latitude!=""&&t.data.Longitude!=""&&(u==MAPSOURCETYPE.GoogleMap?AK.Contact.Map.scriptLoaded==null||AK.Contact.Map.scriptLoaded==!1?t.loadGMapScript():t.gMapInitialize():u==MAPSOURCETYPE.OpenStreetMap&&t.osmInitialize());$("#ContactBody").removeClass("visibilityOff");n.akDataLoadingStringRemove("ContactEBikeServiceDetail")},function(){AK.System.alert("Get contact data failed");$("#ContactBody").removeClass("visibilityOff");n.akDataLoadingStringRemove("ContactEBikeServiceDetail")});t.osmInitialize=function(){AK.Contact.Map.osmMap=L.map("map-canvas-osm").setView([t.data.Latitude,t.data.Longitude],16);L.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{maxZoom:19,attribution:'&copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap<\/a>'}).addTo(AK.Contact.Map.osmMap);var n=AK.System.url+"/images/"+gImagePath+"/defaultMarker.png",i=L.icon({iconUrl:n,iconSize:[13,13]});L.marker([t.data.Latitude,t.data.Longitude],{icon:i,title:t.data.Name}).addTo(AK.Contact.Map.osmMap);t.data.GmapHeading!=""&&t.gMapStreetViewLoad(t.data.Latitude,t.data.Longitude,t.data.GmapHeading)};t.loadGMapScript=function(){var n=document.createElement("script");n.type="text/javascript";n.src="https://maps.googleapis.com/maps/api/js?v=3.exp&key=AIzaSyCosq11V2IImQBarjzCED68lfrQDXFFITc&callback=ebikeDetailGMapInitialize";document.body.appendChild(n);AK.Contact.Map.scriptLoaded=!0};t.gMapInitialize=function(){var n=new google.maps.LatLng(t.data.Latitude,t.data.Longitude),r={center:n,zoom:16,mapTypeId:google.maps.MapTypeId.ROADMAP},i,u;AK.Contact.Map.gmap=new google.maps.Map(document.getElementById("map-canvas"),r);i=AK.System.url+"/images/"+gImagePath+"/defaultMarker.png";u=new google.maps.Marker({position:n,map:AK.Contact.Map.gmap,icon:i});t.data.GmapHeading!=""&&t.gMapStreetViewLoad(t.data.Latitude,t.data.Longitude,t.data.GmapHeading)};t.gMapStreetViewLoad=function(n,i,r){var u;if(AK.Contact.Map.gmap==null)u=[],u.push("gmap-js"),t.loadScripts(u).then(function(){var u=new google.maps.LatLng(n,i),f={center:u,zoom:16,mapTypeId:google.maps.MapTypeId.ROADMAP};AK.Contact.Map.gmap=new google.maps.Map(document.getElementById("pano"),f);t.gMapStreetViewLoad(n,i,r)});else if(r!=""){var f=new google.maps.LatLng(n,i),e={position:f,pov:{heading:parseInt(r),pitch:10}},o=new google.maps.StreetViewPanorama(document.getElementById("pano"),e);AK.Contact.Map.gmap.setStreetView(o)}}};AK.Contact.getContactMotoService=function(n,t,i,r){AK.System.alert("@Contact.MotoService.getContact");n.akDataLoadingStringAdd("ContactMotoService");t.data=null;t.services=[];t.address="";var u={};[{name:"gmap-js",type:"script",src:"https://maps.googleapis.com/maps/api/js?v=3.exp&key=AIzaSyCosq11V2IImQBarjzCED68lfrQDXFFITc",integrity:""}].forEach(function(n){u[n.name]={loaded:!1,src:n.src,integrity:n.integrity}});t.loadScript=function(n){return new Promise(function(t){if(u[n].loaded)t({script:n,loaded:!0,status:"Already Loaded"});else{var i=document.createElement("script");i.type="text/javascript";i.src=u[n].src;i.readyState?i.onreadystatechange=function(){(i.readyState==="loaded"||i.readyState==="complete")&&(i.onreadystatechange=null,u[n].loaded=!0,t({script:n,loaded:!0,status:"Loaded"}))}:i.onload=function(){u[n].loaded=!0;t({script:n,loaded:!0,status:"Loaded"})};i.onerror=function(){t({script:n,loaded:!1,status:"Loaded"})};document.getElementsByTagName("head")[0].appendChild(i)}})};t.loadScripts=function(n){var i=[];return n.forEach(function(n){i.push(t.loadScript(n))}),Promise.all(i)};i.Contact.MotoService.getData().then(function(i){t.data=i.data;t.services=t.data.Services;t.mapSettings=t.data.MapSettings;t.mapSettings.MapSourceType==MAPSOURCETYPE.GoogleMap?AK.Contact.Map.scriptLoaded==null||AK.Contact.Map.scriptLoaded==!1?t.loadGMapScript():t.gMapInitialize():t.mapSettings.MapSourceType==MAPSOURCETYPE.OpenStreetMap&&t.osmInitialize();$("#ContactContainer").removeClass("visibilityOff");n.akDataLoadingStringRemove("ContactMotoService")},function(){AK.System.alert("Get contact data failed");$("#ContactContainer").removeClass("visibilityOff");n.akDataLoadingStringRemove("ContactMotoService")});t.osmInitialize=function(){AK.Contact.Map.osmMap=L.map("MotoService_OSM").setView([t.mapSettings.CenterLat,t.mapSettings.CenterLng],parseInt(t.mapSettings.Zoom));L.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{maxZoom:19,attribution:'&copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap<\/a>'}).addTo(AK.Contact.Map.osmMap);var n=AK.System.url+"/images/"+gImagePath+"/defaultMarker.png",i=L.icon({iconUrl:n,iconSize:[13,13]});$.each(t.services,function(n,r){var u='<div id="GMapInfoWindow"><h2 class="GMapHeader">'+r.Name+'<\/h2><table class="GMapTable"><tr><td class="GMapColumn"><b>'+t.mapSettings.ResxAddress+"<\/b><br />"+r.AddressLine1+"<br />"+r.City+"<br />"+r.PostalCode+"<br />"+t.mapSettings.ResxPhone+" "+r.MainPhone+'<\/td><\/tr><\/table><a href="/MotoService/'+r.Link+'" class="btn btn-default">'+t.mapSettings.ResxDetail+"<\/a><\/div>",f=L.marker([r.Latitude,r.Longitude],{icon:i,title:r.Name}).addTo(AK.Contact.Map.osmMap);f.bindPopup(u)})};t.loadGMapScript=function(){var n=document.createElement("script");n.type="text/javascript";n.src="https://maps.googleapis.com/maps/api/js?v=3.exp&key=AIzaSyCosq11V2IImQBarjzCED68lfrQDXFFITc&callback=motoGMapInitialize";document.body.appendChild(n);AK.Contact.Map.scriptLoaded=!0};t.gMapInitialize=function(){var r=new google.maps.LatLng(t.mapSettings.CenterLat,t.mapSettings.CenterLng),u={zoom:parseInt(t.mapSettings.Zoom),center:r,mapTypeId:t.mapSettings.MapType.toLowerCase()},f={gridSize:50,maxZoom:17,imagePath:AK.System.url+"/images/MarkerClusterer/s"},n,i;AK.Contact.Map.gmap=new google.maps.Map(document.getElementById("MotoService_GMap"),u);AK.Contact.Map.markerYouAreHere=null;AK.Contact.Map.markers=[];AK.Contact.Map.infoWindow=null;n="";i=AK.System.url+"/images/"+gImagePath+"/defaultMarker.png";$.each(t.services,function(r,u){var o=new google.maps.LatLng(u.Latitude,u.Longitude),s='<div id="GMapInfoWindow"><h2 class="GMapHeader">'+u.Name+'<\/h2><table class="GMapTable"><tr><td class="GMapColumn"><b>'+t.mapSettings.ResxAddress+"<\/b><br />"+u.AddressLine1+"<br />"+u.City+"<br />"+u.PostalCode+"<br />"+t.mapSettings.ResxPhone+" "+[u.Phone,u.Mobile].filter(function(n){return n}).join(", ")+'<\/td><\/tr><\/table><a href="/MotoService/'+u.Link+'" class="btn btn-default">'+t.mapSettings.ResxDetail+"<\/a><\/div>",f,e;n=i;f=new google.maps.Marker({position:o,map:AK.Contact.Map.gmap,icon:n,title:u.Name});google.maps.event.addListener(f,"click",function(){AK.Contact.Map.infoWindow&&AK.Contact.Map.infoWindow.close();AK.Contact.Map.infoWindow=new google.maps.InfoWindow({content:s});AK.Contact.Map.infoWindow.open(AK.Contact.Map.gmap,f)});e={name:u.Name,marker:f};AK.Contact.Map.markers.push(e)});closeInfoWindow=function(){AK.Contact.Map.infoWindow!==null&&AK.Contact.Map.infoWindow.close()};google.maps.event.addListener(AK.Contact.Map.gmap,"click",closeInfoWindow)};t.loadMarkerClusterer=function(){var n=[];typeof AK.Contact.Map.markers!="undefined"&&AK.Contact.Map.markers!=null&&$.each(AK.Contact.Map.markers,function(t,i){n.push(i.marker)});AK.Contact.Map.markerClusterer.addMarkers(n)};t.resizeGMap=function(){if(typeof AK.Contact.Map.gmap!="undefined"&&AK.Contact.Map.gmap!=null){var n=AK.Contact.Map.gmap.getZoom(),t=AK.Contact.Map.gmap.getCenter();google.maps.event.trigger(AK.Contact.Map.gmap,"resize");AK.Contact.Map.gmap.setZoom(n);AK.Contact.Map.gmap.setCenter(t)}};t.findByGeolocation=function(n,i){return $("#Store_MapMessage").html(""),navigator.geolocation?navigator.geolocation.getCurrentPosition(function(r){t.showPosition(r,n,i)},t.showError):$("#Store_MapMessage").html("Geolocation is not supported by this browser."),!1};t.showPosition=function(n,i,r){var u=n.coords.latitude,f=n.coords.longitude;$("#Store_MapMessage").html(i);t.mapSettings.MapSourceType==MAPSOURCETYPE.GoogleMap?t.setGMapMarkerYouAreHere(u,f,12,r):t.mapSettings.MapSourceType==MAPSOURCETYPE.OpenStreetMap&&t.setOsmMarkerYouAreHere(u,f,12,r)};t.showPosition2=function(n,i,r,u){$("#Store_MapMessage").html(r);t.mapSettings.MapSourceType==MAPSOURCETYPE.GoogleMap?t.setGMapMarkerYouAreHere(n,i,12,u):t.mapSettings.MapSourceType==MAPSOURCETYPE.OpenStreetMap&&t.setOsmMarkerYouAreHere(n,i,12,u)};t.setGMapMarkerYouAreHere=function(n,t,i,r){var u=new google.maps.LatLng(n,t,!0);typeof AK.Contact.Map.markerYouAreHere=="undefined"||AK.Contact.Map.markerYouAreHere==null?AK.Contact.Map.markerYouAreHere=new google.maps.Marker({position:u,map:AK.Contact.Map.gmap,title:r}):AK.Contact.Map.markerYouAreHere.setPosition(u);AK.Contact.Map.gmap.panTo(u);AK.Contact.Map.gmap.setZoom(i)};t.setOsmMarkerYouAreHere=function(n,t,i,r){typeof AK.Contact.Map.markerYouAreHere=="undefined"||AK.Contact.Map.markerYouAreHere==null?(AK.Contact.Map.markerYouAreHere=L.marker([n,t],{title:r}),AK.Contact.Map.markerYouAreHere.addTo(AK.Contact.Map.osmMap)):AK.Contact.Map.markerYouAreHere.setLatLng([n,t]);AK.Contact.Map.osmMap.setView([n,t],i)};t.showError=function(n){var t=$("#Store_MapMessage");switch(n.code){case n.PERMISSION_DENIED:t.html("User denied the request for Geolocation.");break;case n.POSITION_UNAVAILABLE:t.html("Location information is unavailable.");break;case n.TIMEOUT:t.html("The request to get user location timed out.");break;case n.UNKNOWN_ERROR:t.html("An unknown error occurred.")}};t.findByAddress=function(n,i){if($("#Store_MapMessage").html(""),t.address.length>0){if(r==GPSSOURCETYPE.GoogleMap)if(AK.Contact.Map.geocoder==null){var u=[];u.push("gmap-js");t.loadScripts(u).then(function(){AK.Contact.Map.geocoder=new google.maps.Geocoder;t.findByAddress(n,i)})}else AK.Contact.Map.geocoder.geocode({address:t.address},function(r,u){if(u==google.maps.GeocoderStatus.OK){$("#Store_MapMessage").html(n);var f=r[0].geometry.location;t.mapSettings.MapSourceType==MAPSOURCETYPE.GoogleMap?t.setGMapMarkerYouAreHere(f.lat(),f.lng(),12,i):t.mapSettings.MapSourceType==MAPSOURCETYPE.OpenStreetMap&&t.setOsmMarkerYouAreHere(f.lat(),f.lng(),12,i)}else $("#Store_MapMessage").html("Geocode was not successful for the following reason: "+u)})}else $("#Store_MapMessage").html("Zadejte adresu")}};AK.Contact.getContactMotoServiceDetail=function(n,t,i,r,u){AK.System.alert("@Contact.getContactMotoServiceDetail");n.akDataLoadingStringAdd("ContactMotoServiceDetail");t.data=null;var f={};[{name:"gmap-js",type:"script",src:"https://maps.googleapis.com/maps/api/js?v=3.exp&key=AIzaSyCosq11V2IImQBarjzCED68lfrQDXFFITc",integrity:""}].forEach(function(n){f[n.name]={loaded:!1,src:n.src,integrity:n.integrity}});t.loadScript=function(n){return new Promise(function(t){if(f[n].loaded)t({script:n,loaded:!0,status:"Already Loaded"});else{var i=document.createElement("script");i.type="text/javascript";i.src=f[n].src;i.readyState?i.onreadystatechange=function(){(i.readyState==="loaded"||i.readyState==="complete")&&(i.onreadystatechange=null,f[n].loaded=!0,t({script:n,loaded:!0,status:"Loaded"}))}:i.onload=function(){f[n].loaded=!0;t({script:n,loaded:!0,status:"Loaded"})};i.onerror=function(){t({script:n,loaded:!1,status:"Loaded"})};document.getElementsByTagName("head")[0].appendChild(i)}})};t.loadScripts=function(n){var i=[];return n.forEach(function(n){i.push(t.loadScript(n))}),Promise.all(i)};i.Contact.MotoService.getDetailData(r).then(function(i){t.data=i.data;t.data.Latitude!=""&&t.data.Longitude!=""&&(u==MAPSOURCETYPE.GoogleMap?AK.Contact.Map.scriptLoaded==null||AK.Contact.Map.scriptLoaded==!1?t.loadGMapScript():t.gMapInitialize():u==MAPSOURCETYPE.OpenStreetMap&&t.osmInitialize());$("#ContactBody").removeClass("visibilityOff");n.akDataLoadingStringRemove("ContactMotoServiceDetail")},function(){AK.System.alert("Get contact data failed");$("#ContactBody").removeClass("visibilityOff");n.akDataLoadingStringRemove("ContactMotoServiceDetail")});t.osmInitialize=function(){AK.Contact.Map.osmMap=L.map("map-canvas-osm").setView([t.data.Latitude,t.data.Longitude],16);L.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{maxZoom:19,attribution:'&copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap<\/a>'}).addTo(AK.Contact.Map.osmMap);var n=AK.System.url+"/images/"+gImagePath+"/defaultMarker.png",i=L.icon({iconUrl:n,iconSize:[13,13]});L.marker([t.data.Latitude,t.data.Longitude],{icon:i,title:t.data.Name}).addTo(AK.Contact.Map.osmMap);t.data.GmapHeading!=""&&t.gMapStreetViewLoad(t.data.Latitude,t.data.Longitude,t.data.GmapHeading)};t.loadGMapScript=function(){var n=document.createElement("script");n.type="text/javascript";n.src="https://maps.googleapis.com/maps/api/js?v=3.exp&key=AIzaSyCosq11V2IImQBarjzCED68lfrQDXFFITc&callback=motoDetailGMapInitialize";document.body.appendChild(n);AK.Contact.Map.scriptLoaded=!0};t.gMapInitialize=function(){var n=new google.maps.LatLng(t.data.Latitude,t.data.Longitude),r={center:n,zoom:16,mapTypeId:google.maps.MapTypeId.ROADMAP},i,u;AK.Contact.Map.gmap=new google.maps.Map(document.getElementById("map-canvas"),r);i=AK.System.url+"/images/"+gImagePath+"/defaultMarker.png";u=new google.maps.Marker({position:n,map:AK.Contact.Map.gmap,icon:i});t.data.GmapHeading!=""&&t.gMapStreetViewLoad(t.data.Latitude,t.data.Longitude,t.data.GmapHeading)};t.gMapStreetViewLoad=function(n,i,r){var u;if(AK.Contact.Map.gmap==null)u=[],u.push("gmap-js"),t.loadScripts(u).then(function(){var u=new google.maps.LatLng(n,i),f={center:u,zoom:16,mapTypeId:google.maps.MapTypeId.ROADMAP};AK.Contact.Map.gmap=new google.maps.Map(document.getElementById("pano"),f);t.gMapStreetViewLoad(n,i,r)});else if(r!=""){var f=new google.maps.LatLng(n,i),e={position:f,pov:{heading:parseInt(r),pitch:10}},o=new google.maps.StreetViewPanorama(document.getElementById("pano"),e);AK.Contact.Map.gmap.setStreetView(o)}}};AK.Contact.getContactAkasService=function(n,t,i,r){AK.System.alert("@Contact.AkasService.getContact");n.akDataLoadingStringAdd("ContactAkasService");t.data=null;t.services=[];t.address="";var u={};[{name:"gmap-js",type:"script",src:"https://maps.googleapis.com/maps/api/js?v=3.exp&key=AIzaSyCosq11V2IImQBarjzCED68lfrQDXFFITc",integrity:""}].forEach(function(n){u[n.name]={loaded:!1,src:n.src,integrity:n.integrity}});t.loadScript=function(n){return new Promise(function(t){if(u[n].loaded)t({script:n,loaded:!0,status:"Already Loaded"});else{var i=document.createElement("script");i.type="text/javascript";i.src=u[n].src;i.readyState?i.onreadystatechange=function(){(i.readyState==="loaded"||i.readyState==="complete")&&(i.onreadystatechange=null,u[n].loaded=!0,t({script:n,loaded:!0,status:"Loaded"}))}:i.onload=function(){u[n].loaded=!0;t({script:n,loaded:!0,status:"Loaded"})};i.onerror=function(){t({script:n,loaded:!1,status:"Loaded"})};document.getElementsByTagName("head")[0].appendChild(i)}})};t.loadScripts=function(n){var i=[];return n.forEach(function(n){i.push(t.loadScript(n))}),Promise.all(i)};i.Contact.AkasService.getData().then(function(i){t.data=i.data;t.services=t.data.Services;t.mapSettings=t.data.MapSettings;t.mapSettings.MapSourceType==MAPSOURCETYPE.GoogleMap?AK.Contact.Map.scriptLoaded==null||AK.Contact.Map.scriptLoaded==!1?t.loadGMapScript():t.gMapInitialize():t.mapSettings.MapSourceType==MAPSOURCETYPE.OpenStreetMap&&t.osmInitialize();$("#ContactContainer").removeClass("visibilityOff");n.akDataLoadingStringRemove("ContactAkasService")},function(){AK.System.alert("Get contact data failed");$("#ContactContainer").removeClass("visibilityOff");n.akDataLoadingStringRemove("ContactAkasService")});t.osmInitialize=function(){AK.Contact.Map.osmMap=L.map("AkasService_OSM").setView([t.mapSettings.CenterLat,t.mapSettings.CenterLng],parseInt(t.mapSettings.Zoom));L.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{maxZoom:19,attribution:'&copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap<\/a>'}).addTo(AK.Contact.Map.osmMap);var i=AK.System.url+"/images/"+gImagePath+"/defaultMarker.png",r=L.icon({iconUrl:i,iconSize:[13,13]}),n=L.markerClusterGroup();$.each(t.services,function(i,u){var e='<div id="GMapInfoWindow"><h2 class="GMapHeader">'+u.Name+'<\/h2><table class="GMapTable"><tr><td class="GMapColumn"><b>'+t.mapSettings.ResxAddress+"<\/b><br />"+u.AddressLine1+"<br />"+u.City+"<br />"+u.PostalCode+"<br />"+t.mapSettings.ResxPhone+" "+u.MainPhone+'<\/td><\/tr><\/table><a href="/AkasService/'+u.Link+'" class="btn btn-default">'+t.mapSettings.ResxDetail+"<\/a><\/div>",f=L.marker([u.Latitude,u.Longitude],{icon:r,title:u.Name});f.bindPopup(e);n.addLayer(f)});AK.Contact.Map.osmMap.addLayer(n)};t.loadGMapScript=function(){var n=document.createElement("script");n.type="text/javascript";n.src="https://maps.googleapis.com/maps/api/js?v=3.exp&key=AIzaSyCosq11V2IImQBarjzCED68lfrQDXFFITc&callback=akasGMapInitialize";document.body.appendChild(n);AK.Contact.Map.scriptLoaded=!0};t.gMapInitialize=function(){var r=new google.maps.LatLng(t.mapSettings.CenterLat,t.mapSettings.CenterLng),u={zoom:parseInt(t.mapSettings.Zoom),center:r,mapTypeId:t.mapSettings.MapType.toLowerCase()},f={gridSize:50,maxZoom:17,imagePath:AK.System.url+"/images/MarkerClusterer/s"},n,i;AK.Contact.Map.gmap=new google.maps.Map(document.getElementById("AkasService_GMap"),u);AK.Contact.Map.markerClusterer=new MarkerClusterer(AK.Contact.Map.gmap,[],f);AK.Contact.Map.markerYouAreHere=null;AK.Contact.Map.markers=[];AK.Contact.Map.infoWindow=null;n="";i=AK.System.url+"/images/"+gImagePath+"/defaultMarker.png";$.each(t.services,function(r,u){var o=new google.maps.LatLng(u.Latitude,u.Longitude),s='<div id="GMapInfoWindow"><h2 class="GMapHeader">'+u.Name+'<\/h2><table class="GMapTable"><tr><td class="GMapColumn"><b>'+t.mapSettings.ResxAddress+"<\/b><br />"+u.AddressLine1+"<br />"+u.City+"<br />"+u.PostalCode+"<br />"+t.mapSettings.ResxPhone+" "+[u.Phone,u.Mobile].filter(function(n){return n}).join(", ")+'<\/td><\/tr><\/table><a href="/AkasService/'+u.Link+'" class="btn btn-default">'+t.mapSettings.ResxDetail+"<\/a><\/div>",f,e;n=i;f=new google.maps.Marker({position:o,map:AK.Contact.Map.gmap,icon:n,title:u.Name});google.maps.event.addListener(f,"click",function(){AK.Contact.Map.infoWindow&&AK.Contact.Map.infoWindow.close();AK.Contact.Map.infoWindow=new google.maps.InfoWindow({content:s});AK.Contact.Map.infoWindow.open(AK.Contact.Map.gmap,f)});e={name:u.Name,marker:f};AK.Contact.Map.markers.push(e)});closeInfoWindow=function(){AK.Contact.Map.infoWindow!==null&&AK.Contact.Map.infoWindow.close()};google.maps.event.addListener(AK.Contact.Map.gmap,"click",closeInfoWindow);t.loadMarkerClusterer()};t.loadMarkerClusterer=function(){var n=[];typeof AK.Contact.Map.markers!="undefined"&&AK.Contact.Map.markers!=null&&$.each(AK.Contact.Map.markers,function(t,i){n.push(i.marker)});AK.Contact.Map.markerClusterer.addMarkers(n)};t.resizeGMap=function(){if(typeof AK.Contact.Map.gmap!="undefined"&&AK.Contact.Map.gmap!=null){var n=AK.Contact.Map.gmap.getZoom(),t=AK.Contact.Map.gmap.getCenter();google.maps.event.trigger(AK.Contact.Map.gmap,"resize");AK.Contact.Map.gmap.setZoom(n);AK.Contact.Map.gmap.setCenter(t)}};t.findByGeolocation=function(n,i){return $("#Store_MapMessage").html(""),navigator.geolocation?navigator.geolocation.getCurrentPosition(function(r){t.showPosition(r,n,i)},t.showError):$("#Store_MapMessage").html("Geolocation is not supported by this browser."),!1};t.showPosition=function(n,i,r){var u=n.coords.latitude,f=n.coords.longitude;$("#Store_MapMessage").html(i);t.mapSettings.MapSourceType==MAPSOURCETYPE.GoogleMap?t.setGMapMarkerYouAreHere(u,f,12,r):t.mapSettings.MapSourceType==MAPSOURCETYPE.OpenStreetMap&&t.setOsmMarkerYouAreHere(u,f,12,r)};t.showPosition2=function(n,i,r,u){$("#Store_MapMessage").html(r);t.mapSettings.MapSourceType==MAPSOURCETYPE.GoogleMap?t.setGMapMarkerYouAreHere(n,i,12,u):t.mapSettings.MapSourceType==MAPSOURCETYPE.OpenStreetMap&&t.setOsmMarkerYouAreHere(n,i,12,u)};t.setGMapMarkerYouAreHere=function(n,t,i,r){var u=new google.maps.LatLng(n,t,!0);typeof AK.Contact.Map.markerYouAreHere=="undefined"||AK.Contact.Map.markerYouAreHere==null?AK.Contact.Map.markerYouAreHere=new google.maps.Marker({position:u,map:AK.Contact.Map.gmap,title:r}):AK.Contact.Map.markerYouAreHere.setPosition(u);AK.Contact.Map.gmap.panTo(u);AK.Contact.Map.gmap.setZoom(i)};t.setOsmMarkerYouAreHere=function(n,t,i,r){typeof AK.Contact.Map.markerYouAreHere=="undefined"||AK.Contact.Map.markerYouAreHere==null?(AK.Contact.Map.markerYouAreHere=L.marker([n,t],{title:r}),AK.Contact.Map.markerYouAreHere.addTo(AK.Contact.Map.osmMap)):AK.Contact.Map.markerYouAreHere.setLatLng([n,t]);AK.Contact.Map.osmMap.setView([n,t],i)};t.showError=function(n){var t=$("#Store_MapMessage");switch(n.code){case n.PERMISSION_DENIED:t.html("User denied the request for Geolocation.");break;case n.POSITION_UNAVAILABLE:t.html("Location information is unavailable.");break;case n.TIMEOUT:t.html("The request to get user location timed out.");break;case n.UNKNOWN_ERROR:t.html("An unknown error occurred.")}};t.findByAddress=function(n,i){if($("#Store_MapMessage").html(""),t.address.length>0){if(r==GPSSOURCETYPE.GoogleMap)if(AK.Contact.Map.geocoder==null){var u=[];u.push("gmap-js");t.loadScripts(u).then(function(){AK.Contact.Map.geocoder=new google.maps.Geocoder;t.findByAddress(n,i)})}else AK.Contact.Map.geocoder.geocode({address:t.address},function(r,u){if(u==google.maps.GeocoderStatus.OK){$("#Store_MapMessage").html(n);var f=r[0].geometry.location;t.mapSettings.MapSourceType==MAPSOURCETYPE.GoogleMap?t.setGMapMarkerYouAreHere(f.lat(),f.lng(),12,i):t.mapSettings.MapSourceType==MAPSOURCETYPE.OpenStreetMap&&t.setOsmMarkerYouAreHere(f.lat(),f.lng(),12,i)}else $("#Store_MapMessage").html("Geocode was not successful for the following reason: "+u)})}else $("#Store_MapMessage").html("Zadejte adresu")}};AK.Contact.getContactAkasServiceDetail=function(n,t,i,r,u){AK.System.alert("@Contact.getContactAkasServiceDetail");n.akDataLoadingStringAdd("ContactAkasServiceDetail");t.data=null;var f={};[{name:"gmap-js",type:"script",src:"https://maps.googleapis.com/maps/api/js?v=3.exp&key=AIzaSyCosq11V2IImQBarjzCED68lfrQDXFFITc",integrity:""}].forEach(function(n){f[n.name]={loaded:!1,src:n.src,integrity:n.integrity}});t.loadScript=function(n){return new Promise(function(t){if(f[n].loaded)t({script:n,loaded:!0,status:"Already Loaded"});else{var i=document.createElement("script");i.type="text/javascript";i.src=f[n].src;i.readyState?i.onreadystatechange=function(){(i.readyState==="loaded"||i.readyState==="complete")&&(i.onreadystatechange=null,f[n].loaded=!0,t({script:n,loaded:!0,status:"Loaded"}))}:i.onload=function(){f[n].loaded=!0;t({script:n,loaded:!0,status:"Loaded"})};i.onerror=function(){t({script:n,loaded:!1,status:"Loaded"})};document.getElementsByTagName("head")[0].appendChild(i)}})};t.loadScripts=function(n){var i=[];return n.forEach(function(n){i.push(t.loadScript(n))}),Promise.all(i)};i.Contact.AkasService.getDetailData(r).then(function(i){t.data=i.data;t.data.Latitude!=""&&t.data.Longitude!=""&&(u==MAPSOURCETYPE.GoogleMap?AK.Contact.Map.scriptLoaded==null||AK.Contact.Map.scriptLoaded==!1?t.loadGMapScript():t.gMapInitialize():u==MAPSOURCETYPE.OpenStreetMap&&t.osmInitialize());$("#ContactBody").removeClass("visibilityOff");n.akDataLoadingStringRemove("ContactAkasServiceDetail")},function(){AK.System.alert("Get contact data failed");$("#ContactBody").removeClass("visibilityOff");n.akDataLoadingStringRemove("ContactAkasServiceDetail")});t.osmInitialize=function(){AK.Contact.Map.osmMap=L.map("map-canvas-osm").setView([t.data.Latitude,t.data.Longitude],16);L.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{maxZoom:19,attribution:'&copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap<\/a>'}).addTo(AK.Contact.Map.osmMap);var n=AK.System.url+"/images/"+gImagePath+"/defaultMarker.png",i=L.icon({iconUrl:n,iconSize:[13,13]});L.marker([t.data.Latitude,t.data.Longitude],{icon:i,title:t.data.Name}).addTo(AK.Contact.Map.osmMap);t.data.GmapHeading!=""&&t.gMapStreetViewLoad(t.data.Latitude,t.data.Longitude,t.data.GmapHeading)};t.loadGMapScript=function(){var n=document.createElement("script");n.type="text/javascript";n.src="https://maps.googleapis.com/maps/api/js?v=3.exp&key=AIzaSyCosq11V2IImQBarjzCED68lfrQDXFFITc&callback=akasDetailGMapInitialize";document.body.appendChild(n);AK.Contact.Map.scriptLoaded=!0};t.gMapInitialize=function(){var n=new google.maps.LatLng(t.data.Latitude,t.data.Longitude),r={center:n,zoom:16,mapTypeId:google.maps.MapTypeId.ROADMAP},i,u;AK.Contact.Map.gmap=new google.maps.Map(document.getElementById("map-canvas"),r);i=AK.System.url+"/images/"+gImagePath+"/defaultMarker.png";u=new google.maps.Marker({position:n,map:AK.Contact.Map.gmap,icon:i});t.data.GmapHeading!=""&&t.gMapStreetViewLoad(t.data.Latitude,t.data.Longitude,t.data.GmapHeading)};t.gMapStreetViewLoad=function(n,i,r){var u;if(AK.Contact.Map.gmap==null)u=[],u.push("gmap-js"),t.loadScripts(u).then(function(){var u=new google.maps.LatLng(n,i),f={center:u,zoom:16,mapTypeId:google.maps.MapTypeId.ROADMAP};AK.Contact.Map.gmap=new google.maps.Map(document.getElementById("pano"),f);t.gMapStreetViewLoad(n,i,r)});else if(r!=""){var f=new google.maps.LatLng(n,i),e={position:f,pov:{heading:parseInt(r),pitch:10}},o=new google.maps.StreetViewPanorama(document.getElementById("pano"),e);AK.Contact.Map.gmap.setStreetView(o)}}};AK.Search.getSearch=function(n,t,i,r){AK.System.alert("@Search.getSearch");n.products=null;n.countProducts=0;n.history=[];n.showHistory=!1;n.searchString="";n.isDataLoaded=!1;n.isSubmitted=!1;n.isShortLength=!1;n.isNoData=!1;n.minLength=i;n.minLengthMessage=r.replace("[MINLENGTH]",n.minLength);n.onkeydown=function(t){t.which===13?n.search():((n.history==null||n.history.length===0)&&n.getHistory(),n.showHistory=!0)};n.search=function(){n.isShortLength=!1;n.isNoData=!1;n.isSubmitted=!0;n.searchString.replace(/[\s+|\[\]\!\@\$\#\$\%\^\&\*\(\)\_\{\}\/\:\|\"\'\<\>\?\-\~\\\,]/gi,"").length>=n.minLength?(n.isDataLoaded=!1,AK.System.alert("Searching: "+n.searchString),t.getSearchData(n.searchString).then(function(t){t.data.Exists?(AK.System.alert("Found search results"),n.products=t.data.SearchProducts,n.countProducts=t.data.CountSearchProducts,n.history=t.data.SearchHistory):(n.history=null,n.products=null,n.countProducts=0,n.isNoData=!0);n.showHistory=!1;n.isDataLoaded=!0},function(){})):(n.products=null,n.countProducts=0,n.isShortLength=!0)};n.getHistory=function(){t.getSearchHistory().then(function(t){n.history=t.data.History;n.showHistory=!0})}};var TrackInfo=function TrackInfo(){_classCallCheck(this,TrackInfo);this.Id=AK.Common.newGuid();this.TypeId=1;this.SearchText="";this.Product=new TrackInfoObject;this.Catalog=new TrackInfoObject;this.UserId="";this.CompanySubType="";this.ResultType=new SearchResultType},TrackInfoObject=function TrackInfoObject(){_classCallCheck(this,TrackInfoObject);this.Selected=undefined;this.OptionIds=undefined;this.StartTime="";this.LoadTime="";this.ClickTime=""},TrackInfoObjectClick=function TrackInfoObjectClick(){_classCallCheck(this,TrackInfoObjectClick);this.Id=0;this.Code="";this.Name="";this.Position=0},History=function History(){_classCallCheck(this,History);this.SearchText="";this.Result=new HistoryResult},HistoryResult=function HistoryResult(){_classCallCheck(this,HistoryResult);this.SearchTypeId=undefined;this.ProductIds=undefined;this.CatalogPaths=undefined},SearchResultType=function SearchResultType(){_classCallCheck(this,SearchResultType);this.Id=undefined;this.Name=undefined},SearchTypes={FullText:1,LicencePlate:2,Vin:3};if(AK.Search2.init=function(n,t,i,r,u,f,e,o,s,h,c,l,a,v){AK.System.alert("@Search2.init");n.history=[];n.isHistoryVisible=!1;n.searchText="";n.lastSearchText=undefined;n.isShortLength=!1;n.minLength=i;n.minLengthMessage=r.replace("[MINLENGTH]",n.minLength);n.isResultVisible=!1;n.isCatalogLoading=!1;n.isProductLoading=!1;n.hasCatalogResult=!1;n.hasProductResult=!1;n.restrictionApplied=!1;n.hasCarDecodedResult=!1;n.trackInfo=undefined;n.trackInfoEnabled=u=="true";n.historyEnabled=f=="true";n.historyWithoutClickEnabled=e=="true";n.history=undefined;n.userId=o;n.companySubType=s;n.lastSearchType=undefined;n.searchType=SearchTypes.FullText;n.searchVinLegacy=h=="true";n.owner=c;n.elasticSearchEnabled=l=="true";n.searchResultPriceEnabled=a=="true";n.elitTimeAvailability2Enabled=v=="true";n.selectSearchMode=function(t){n.lastSearchType=n.searchType;n.searchType=t;n.trackInfo&&(n.trackInfo.TypeId=t);n.search()};n.delaySearching=500;n.lastKeyDownTime=0;n.searchAfterDelay=!1;n.onkeydown=function(t){t.which===13?(n.searchType=SearchTypes.FullText,n.search(),n.searchAfterDelay=!1):n.elasticSearchEnabled===!0?(n.searchAfterDelay=!0,n.lastKeyDownTime=Date.now(),setTimeout(function(){n.callDelaySearch()},n.delaySearching)):n.isHistoryVisible==!1&&n.showHistory()};n.callDelaySearch=function(){var t=Date.now()-n.lastKeyDownTime;AK.System.alert("delay: "+t);t>=n.delaySearching&&n.searchAfterDelay&&n.search()};n.onclick=function(){n.showHistory()};n.showHistory=function(){n.isHistoryVisible=!0;n.isResultVisible=!1;n.loadHistoryData()};n.hideHistory=function(){n.isHistoryVisible=!1};n.loadHistoryData=function(){var t=angular.element(document.getElementById("SearchHistoryController"+n.owner)).scope();t!=null&&t!=undefined&&(t.callbackSearch=n.callbackHistorySearch,t.loadData())};n.loadCatalogData=function(){var t=angular.element(document.getElementById("SearchCatalogController"+n.owner)).scope();t&&(n.isCatalogLoading=!0,t.callbackResult=n.callbackCatalogResult,t.callbackClick=n.callbackCatalogClick,n.trackInfo&&(n.trackInfo.Catalog.StartTime=new Date),t.loadData(n.searchText))};n.loadProductData=function(){var t=angular.element(document.getElementById("SearchProductController"+n.owner)).scope();t&&(n.isProductLoading=!0,t.callbackResult=n.callbackProductResult,t.callbackClick=n.callbackProductClick,n.trackInfo!=undefined&&(n.trackInfo.Product.StartTime=new Date),t.loadData(n.searchText,n.searchResultPriceEnabled,n.elitTimeAvailability2Enabled))};n.loadCarData=function(){n.isCatalogLoading=!0;n.hasCarDecodedResult=!1;t.search2.carDecoded.getData(n.searchText,n.searchType,!1).then(function(t){var u=t.data.properties,i,r;if(u&&u.length>0){if(n.hasCarDecodedResult=!0,i=t.data.catalogs,n.trackInfoAddCatalogs(i),n.historyAddCatalogs(i),r=[],n.trackInfoAddProducts(r),n.historyAddProducts(r),n.isProductLoading=!1,n.isCatalogLoading=!1,n.trackInfoLoadCompleted(),n.searchType==SearchTypes.LicencePlate){window.location="/search2/cardecoded/licenceplate/"+n.searchText;return}if(n.searchType==SearchTypes.Vin){window.location="/search2/cardecoded/vin/"+n.searchText;return}}else n.isProductLoading=!1,n.isCatalogLoading=!1,n.hasCatalogResult=!1,n.hasProductResult=!1,n.historyAddCatalogs([]),n.historyAddProducts([])},function(){AK.System.alert("Search selection load data failed");n.isLoadingData=!1;n.callbackResult!=undefined&&n.callbackResult([])})};n.callbackHistorySearch=function(t,i){n.searchText=t;n.searchType=i;n.search()};n.callbackCatalogResult=function(t){n.hasCatalogResult=t!=null&&t.length>0;n.isCatalogLoading=!1;n.trackInfoAddCatalogs(t);n.historyAddCatalogs(t);n.trackInfoLoadCompleted()};n.callbackProductResult=function(t,i){n.hasProductResult=t!=null&&t.length>0;n.restrictionApplied=i;n.isProductLoading=!1;n.trackInfoAddProducts(t);n.historyAddProducts(t);n.trackInfoLoadCompleted()};n.trackInfoProductClick=function(i,r){var u,f;n.trackInfo!=undefined&&(n.trackInfo.TypeId=n.searchType,n.trackInfo.Product.ClickTime=new Date,n.trackInfo.UserId=n.userId,n.trackInfo.CompanySubType=n.companySubType,u=new TrackInfoObjectClick,i===null?(u.Id=0,u.Code="ALL",u.Name="ALL",u.Position=0):(n.trackInfo.ResultType.Id=i.TypeId,n.trackInfo.ResultType.Name=i.Type,u.Id=i.Id,u.Code=i.Code,u.Name=i.Name,u.Position=r+1),n.trackInfo.Product.Selected=u,f=JSON.stringify(n.trackInfo),t.trackInfo(f))};n.historySend=function(){n.history!=undefined&&t.search2.history.setData(n.history)};n.callbackProductClick=function(t,i){n.trackInfoProductClick(t,i);n.historySend()};n.trackInfoLoadStarted=function(){if(n.trackInfo){n.trackInfo.Catalog.StartTime=new Date;n.trackInfo.Product.StartTime=new Date;n.trackInfo.TypeId=n.searchType;n.trackInfo.UserId=n.userId;n.trackInfo.CompanySubType=n.companySubType;var i=JSON.stringify(n.trackInfo);t.trackInfo(i)}};n.trackInfoLoadCompleted=function(){if(n.isProductLoading==!1&&n.isCatalogLoading==!1&&n.trackInfo){n.trackInfo.TypeId=n.searchType;n.trackInfo.UserId=n.userId;n.trackInfo.CompanySubType=n.companySubType;var i=JSON.stringify(n.trackInfo);t.trackInfo(i)}};n.trackInfoCatalogClick=function(i,r){var u,f;n.trackInfo!=undefined&&(n.trackInfo.TypeId=n.searchType,n.trackInfo.Catalog.ClickTime=new Date,n.trackInfo.UserId=n.userId,n.trackInfo.CompanySubType=n.companySubType,u=new TrackInfoObjectClick,u.Id=i.Id,u.Code="",u.Name=i.Name,u.Position=r+1,n.trackInfo.Catalog.Selected=u,f=JSON.stringify(n.trackInfo),t.trackInfo(f))};n.callbackCatalogClick=function(t,i){n.trackInfoCatalogClick(t,i);n.historySend()};n.search=function(){if(n.isHistoryVisible=!1,n.isResultVisible=!0,n.lastSearchText!=n.searchText||n.lastSearchType!=n.searchType)if(n.lastSearchText=n.searchText,n.isShortLength=!1,n.searchText.replace(/[\s+|\[\]\!\@\$\#\$\%\^\&\*\(\)\_\{\}\/\:\|\"\'\<\>\?\-\~\\\,]/gi,"").length>=n.minLength){n.hideHistory();n.trackInfoEnabled&&(n.trackInfo=new TrackInfo,n.trackInfo.SearchText=n.searchText);n.historyEnabled&&(n.history=new History,n.history.SearchText=n.searchText);var t=n.searchText.match(/[a-zA-Z0-9]{9}[a-zA-Z0-9-]{4}[0-9]{4}/g);n.searchVinLegacy===!0&&n.searchText.length==17&&t!=null&&t[0]==n.searchText?window.location="/catalog/graphic/VIN/"+n.searchText:(n.trackInfoLoadStarted(),n.searchType==SearchTypes.FullText?(AK.System.alert("searchText: "+n.searchText),n.loadCatalogData(),n.loadProductData()):(n.searchType==SearchTypes.LicencePlate||n.searchType==SearchTypes.Vin)&&n.loadCarData())}else n.isShortLength=!0};n.hide=function(){n.isResultVisible=!1;n.isHistoryVisible=!1};n.trackInfoAddCatalogs=function(t){n.trackInfo&&(n.trackInfo.Catalog.LoadTime=new Date,n.trackInfo.Catalog.OptionIds=t&&t.length>0?t.map(function(n){return n.Catalogs.map(function(n){return n.Id}).join(";")}):[])};n.historyAddCatalogs=function(t){n.history&&(n.history.Result.SearchTypeId=n.searchType,n.history.Result.CatalogPaths=t&&t.length>0?t.map(function(n){return n.Catalogs.map(function(n){return n.Id}).join(";")}):"",n.historyWithoutClickEnabled===!0&&n.history.Result.ProductIds!=undefined&&n.historySend())};n.trackInfoAddProducts=function(t){n.trackInfo!=undefined&&t!=undefined&&(n.trackInfo.Product.LoadTime=new Date,n.trackInfo.Product.OptionIds=t!=null&&t.length>0?t.map(function(n){return n.Id}):[])};n.historyAddProducts=function(t){n.history!=undefined&&(n.history.Result.SearchTypeId=n.searchType,n.history.Result.ProductIds=t!=null&&t!=undefined&&t.length>0?t.map(function(n){return n.Id}):[],n.historyWithoutClickEnabled===!0&&n.history.Result.CatalogPaths!=undefined&&n.historySend())}},AK.Search2.initCarDecoded=function(n,t,i,r,u){AK.System.alert("@Search2.CarDecoded.init");t.properties=undefined;t.catalogs=undefined;t.products=undefined;t.searchType=u;t.searchText=r;t.vin="";t.isMore=!1;t.parkedCar=undefined;t.showMore=function(n){t.isMore=n};t.loadData=function(n){t.catalogs=[];t.isLoadingData=!0;i.search2.carDecoded.getData(t.searchText,t.searchType,n).then(function(n){t.properties=n.data.properties;t.catalogs=n.data.catalogs;t.parkedCar=n.data.parkedCar;t.vin=n.data.vin;t.setCatalogs();t.products=n.data.products;t.isLoadingData=!1},function(){AK.System.alert("Search selection load data failed")})};t.loadData(!1);t.setCatalogs=function(){var n=angular.element(document.getElementById("CarDecodedCatalogController")).scope();n!=null&&n!=undefined&&(t.isCatalogLoading=!0,n.callbackResult=t.callbackCatalogResult,n.callbackClick=t.callbackCatalogClick,t.trackInfo!=undefined&&(t.trackInfo.Catalog.StartTime=new Date),n.setData(t.catalogs))};t.setVin=function(){var n=undefined;t.searchType==3?n=t.searchText:t.properties.forEach(function(t){t.Name=="vin"&&(n=t.Value)});n!=undefined&&n.length==17&&(t.vin=n)};t.catalogProcess=function(){var n="";n=t.parkedCar.LicencePlate.length>0?t.parkedCar.LicencePlate:t.parkedCar.VIN.length>0?t.parkedCar.VIN:t.parkedCar.OwnerId.length>0?t.parkedCar.OwnerId:t.parkedCar.Name;t.createCart(n,t.parkedCar.CatalogLink)};t.createCart=function(t,r){n.akDataLoadingStringAdd("GarageAddCart");i.cart.add(t).then(function(){n.akDataLoadingStringRemove("GarageAddCart");window.location.href=r},function(){n.akDataLoadingStringRemove("GarageAddCart")})}},AK.Search2.initHistory=function(n,t,i){AK.System.alert("@Search.Selection.init");t.history=[];t.loadData=function(){i.search2.history.getData().then(function(n){t.history=n.data.history;angular.forEach(t.history,function(n){n.result.length==0?n.result={SearchTypeId:SearchTypes.FullText}:(n.result=JSON.parse(n.result),n.result==undefined?n.result={SearchTypeId:SearchTypes.FullText}:n.result.SearchTypeId==undefined&&(n.result.SearchTypeId=SearchTypes.FullText))})},function(){AK.System.alert("Search selection load data failed")})};t.search=function(n,i){t.callbackSearch!=undefined&&t.callbackSearch(n,i||1)};t.callbackSearch=undefined;t.removeItem=function(n){i.search2.history.deleteData(n);t.loadData()}},AK.Search2.initCatalog=function(n,t,i){AK.System.alert("@Search.Catalog.init");t.catalogs=[];t.isLoadingData=!1;t.loadData=function(n){t.catalogs=[];t.isLoadingData=!0;i.search2.catalog.getData(n).then(function(n){t.catalogs=n.data.catalogs;t.isLoadingData=!1;t.callbackResult!=undefined&&t.callbackResult(t.catalogs)},function(){AK.System.alert("Search selection load data failed");t.isLoadingData=!1;t.callbackResult!=undefined&&t.callbackResult([])})};t.callbackResult=undefined;t.callbackClick=undefined;t.trackInfo=function(n,i){t.callbackClick!=undefined&&t.callbackClick(n,i)};t.setData=function(n){t.catalogs=n}},AK.Search2.initProduct=function(n,t,i,r,u,f){AK.System.alert("@Search.Product.init");t.products=[];t.isLoadingData=!1;t.searchText="";t.loadTime=null;t.elasticSearchEnabled=r=="true";t.searchResultPriceEnabled=u=="true";t.elitTimeAvailability2Enabled=f=="true";t.restrictionApplied=!1;t.loadData=function(n){t.elasticSearchEnabled||(t.products=[]);t.isLoadingData=!0;t.searchText=n;i.search2.product.getData(n).then(function(n){if(t.restrictionApplied=n.data.restrictionApplied,t.products=n.data.products,t.isLoadingData=!1,t.loadTime=new Date,t.callbackResult!=undefined&&t.callbackResult(t.products,t.restrictionApplied),u){var i=t.products.filter(function(n){return n.LoadUserPrice==!0}).map(function(n){return n.Id});t.loadPrices(i).then(function(){var u=t.products.filter(function(n){return n.LoadDisponibility==!0}).map(function(n){return n.Id}),n,i,r;t.loadDisponibility(u);t.elitTimeAvailability2Enabled?(n=t.products.filter(function(n){return n.LoadElitDisponibility==!0}).map(function(n){return n.Id}),t.loadElitTimeAvailability(n)):(i=t.products.filter(function(n){return n.LoadElitDisponibility==!0}).map(function(n){return n.Id}),t.loadElitDisponibility(i));r=t.products.filter(function(n){return n.LoadElitCarDisponibility==!0}).map(function(n){return n.Id});t.loadElitCarDisponibility(r)})}},function(){AK.System.alert("Search selection load data failed");t.isLoadingData=!1;t.callbackResult!=undefined&&t.callbackResult([],!1)})};t.loadElitTimeAvailability=function(n){t.elitTimeAvailability2Enabled==!0&&n!=undefined&&n.length>0&&i.getProductElitDisponibility2Default(n).then(function(n){n.data.items!=undefined?t.products.forEach(function(t){var i=AK.Common.altFind(n.data.items,function(n){return n.ProductId==t.Id});i!=undefined&&(t.Disponibility={Text:i.Disponibility.AvailableFromText,CssClass:i.Disponibility.Css})}):n.data.error!=undefined&&AK.System.alert(n.data.error)},function(){})};t.callbackResult=undefined;t.callbackClick=undefined;t.trackInfo=function(n,i){t.callbackClick!=undefined&&t.callbackClick(n,i)};t.trackInfoShowAll=function(){t.callbackClick!=undefined&&t.callbackClick(null,null)};t.loadPrices=function(n){return new Promise(function(r){n!=undefined&&n.length>0?(t.userPriceLoading=!0,r(i.getProductUserPrice(n).then(function(n){n.data.Content!=undefined?t.products.forEach(function(t){var i=AK.Common.altFind(n.data.Content,function(n){return n.ProductId==t.Id});i!=undefined&&(t.Price=i.Price,t.PriceVat=i.PriceVat,t.LoadUserPrice=!1)}):n.data.error!=undefined&&AK.System.alert(n.data.error);t.userPriceLoading=!1;t.callbackResult!=undefined&&t.callbackResult(t.products,t.restrictionApplied)},function(){t.userPriceLoading=!1}))):r()})};t.loadDisponibility=function(n){n!=undefined&&n.length>0&&i.getProductsDisponibility(n).then(function(n){n.data.items!=undefined?t.products.forEach(function(t){var i=AK.Common.altFind(n.data.items,function(n){return n.ProductId==t.Id});i!=undefined&&(t.Disponibility=i.Disponibility)}):n.data.error!=undefined&&AK.System.alert(n.data.error)},function(){})};t.loadElitDisponibility=function(n){n!=undefined&&n.length>0&&i.getProductElitDisponibility(n).then(function(n){n.data.items!=undefined?t.products.forEach(function(t){var i=AK.Common.altFind(n.data.items,function(n){return n.ProductId==t.Id});i!=undefined&&(t.Disponibility=i.Disponibility)}):n.data.error!=undefined&&AK.System.alert(n.data.error)},function(){})};t.loadElitCarDisponibility=function(n){n!=undefined&&n.length>0&&i.getProductElitCarDisponibility(n).then(function(n){n.data.items!=undefined?t.products.forEach(function(t){var i=AK.Common.altFind(n.data.items,function(n){return n.ProductId==t.Id});i!=undefined&&(t.Disponibility=i.Disponibility)}):n.data.error!=undefined&&AK.System.alert(n.data.error)},function(){})}},AK.SessionTimeoutCounter.init=function(n,t,i,r){AK.System.alert("@SessionTimeoutCounter");t.timeout=r;t.remainingLeft=parseInt(r)*60;t.isLoggedOn=undefined;t.isInitialized=!1;t.setCounter=function(){setTimeout(function(){n.$emit("timer-reset","sessiontimeout");t.isInitialized=!0},100)};t.setCounter();t.expired=function(n){t.isInitialized===!0&&n=="sessiontimeout"&&$("#ModalSessionTimeout").modal("show")};t.reload=function(){t.loadLogedStatus()};t.loadLogedStatus=function(){i.isLoggedOn().then(function(n){if(n.data.isLoggedOn==undefined){window.location=AK.System.url;return}t.isLoggedOn=n.data.isLoggedOn;t.isLoggedOn?t.redirectToHP()?window.location=AK.System.url:window.location.reload():window.location=AK.System.url},function(){AK.System.alert("LogedStatus load failed");t.isLogedOn=!1})};$("#ModalSessionTimeout").on("hidden.bs.modal",function(){t.loadLogedStatus()});t.redirectUrls=["Cart/Order"];t.redirectToHP=function(){var n=!1;return t.redirectUrls.forEach(function(t){if(window.location.pathname.indexOf(t)!==-1)return n=!0,!0}),n};n.$on("SesionTimeoutCounterReset",function(){t.setCounter()})},AK.SessionTimeoutExtender.init=function(n,t,i,r){AK.System.alert("@SessionTimeoutCounter");t.sessionTimeout=r;t.getSessionTimeoutMiliseconds=function(){return(t.sessionTimeout-1)*6e4};t.timeoutOppositeSessionExpiration=function(){i.emptyRequest().then(function(){},function(){});n.$emit("SesionTimeoutCounterReset");setTimeout(function(){t.timeoutOppositeSessionExpiration()},t.getSessionTimeoutMiliseconds())};t.sessionTimeout>0&&setTimeout(function(){t.timeoutOppositeSessionExpiration()},t.getSessionTimeoutMiliseconds())},AK.ServiceTicket.getNewTicket=function(n,t,i){AK.System.alert("@ServiceTicket.getNewTicket");t.formSubmitted=!1;t.data=null;t.errorMessage="";t.equipmentSelected=null;t.brands=null;t.brandSelected=null;t.brandDisabled=!0;t.revisionTypes=null;t.revisionTypeSelected=null;t.revisionTypeDisabled=!0;t.hasAgreement=!1;t.loadData=function(){n.akDataLoadingStringAdd("NewServiceTicket");t.formSubmitted=!1;t.data=null;t.errorMessage="";t.equipmentSelected=null;t.brands=null;t.brandSelected=null;t.brandDisabled=!0;t.revisionTypes=null;t.revisionTypeSelected=null;t.revisionTypeDisabled=!0;t.hasAgreement=!1;i.ServiceTicket.getData().then(function(i){t.data=i.data;t.equipmentSelected=t.data.Equipments[0];$("#NewTicketContainer").removeClass("visibilityOff");n.akDataLoadingStringRemove("NewServiceTicket")},function(){AK.System.alert("Get new ticket data failed");$("#NewTicketContainer").removeClass("visibilityOff");n.akDataLoadingStringRemove("NewServiceTicket")})};t.loadData();t.clearAddress=function(){t.data.Ticket.Address=""};t.create=function(){if(t.formSubmitted=!0,t.newTicketForm.$invalid||t.data.Ticket.EquipmentId==0||t.data.Ticket.BrandId==0||t.data.Ticket.RevisionTypeId==0){if(t.data.Ticket.EquipmentId==0){AK.System.alert("Vyberte zařizeni");return}if(t.data.Ticket.BrandId==0){AK.System.alert("Vyberte značku");return}if(t.data.Ticket.RevisionTypeId==0){AK.System.alert("Vyberte typ zásahu");return}return}AK.System.alert("Creating new ticket");i.ServiceTicket.createNew(t.data.Ticket).then(function(n){n.data.Result==!0?(AK.System.alert("Successfully created new ticket"),t.formSubmitted=!1,t.newTicketForm.$setPristine(),t.loadData(),AK.System.ShowMessage(n.data.Message)):(t.errorMessage=n.data.Message,AK.System.alert("Error in creating service ticket."+t.errorMessage))},function(){AK.System.alert("Creating new ticket failed")})};t.equipmentChange=function(){t.data.Ticket.EquipmentId=t.equipmentSelected.Value;t.data.Ticket.EquipmentId==0?(t.brands=null,t.brandSelected=null,t.brandDisabled=!0,t.revisionTypes=null,t.revisionTypeSelected=null,t.revisionTypeDisabled=!0):(i.ServiceTicket.getBrands(t.data.Ticket.EquipmentId).then(function(n){t.brands=n.data;t.brandSelected=t.brands[0];t.revisionTypes=null;t.revisionTypeSelected=null},function(){AK.System.alert("Error get ticket brands")}),t.brandDisabled=!1,t.revisionTypeDisabled=!0)};t.brandChange=function(){t.data.Ticket.BrandId=t.brandSelected.Value;t.data.Ticket.BrandId==0?(t.revisionTypes=null,t.revisionTypeSelected=null,t.revisionTypeDisabled=!0):(i.ServiceTicket.getRevisionTypes(t.data.Ticket.BrandId).then(function(n){t.revisionTypes=n.data;t.revisionTypeSelected=t.revisionTypes[0]},function(){AK.System.alert("Error get ticket revisionTypes")}),t.revisionTypeDisabled=!1)};t.revisionTypeChange=function(){t.data.Ticket.RevisionTypeId=t.revisionTypeSelected.Value}},AK.ServiceTicket.getTicketMy=function(n,t,i){AK.System.alert("@ServiceTicket.getTicketMy");n.akDataLoadingStringAdd("ServiceTicketMy");t.tickets=null;t.loadData=function(){i.ServiceTicket.getDataMy().then(function(i){t.tickets=i.data;$("#TicketMeContainer").removeClass("visibilityOff");n.akDataLoadingStringRemove("ServiceTicketMy")},function(){AK.System.alert("Get new ticket data failed");$("#TicketMeContainer").removeClass("visibilityOff");n.akDataLoadingStringRemove("ServiceTicketMy")})};t.loadData()},AK.ServiceSheet.initList=function(n,t,i,r){AK.System.alert("@ServiceSheet.List");t.akDataLoadingStringAdd("ServiceSheetList");n.sheets=undefined;n.filter=undefined;n.paging={Page:r,Size:5,Total:1,TotalCount:1};n.loadData=function(){i.ServiceSheet.getList(n.paging.Page).then(function(i){n.sheets=i.data.Sheets;n.filter=i.data.Filter;n.paging=i.data.Paging;n.setRange();$("#ServiceSheetListContainer").removeClass("visibilityOff");t.akDataLoadingStringRemove("ServiceSheetList")},function(){AK.System.alert("Get ServiceSheet List data failed");$("#ServiceSheetListContainer").removeClass("visibilityOff");t.akDataLoadingStringRemove("ServiceSheetList")})};n.loadData(r);n.setFilterStatus=function(t){n.filter.Status=t;n.setFilter()};n.setFilter=function(){i.ServiceSheet.setListFilter(n.filter).then(function(t){t.data.succeed?(n.loadData(n.paging.Page),AK.System.alert("Set servicesheet filter succeed")):(AK.System.ShowMessage(t.data.message),AK.System.alert("Set servicesheet filter failed"))},function(){AK.System.alert("Set servicesheet filter failed")})};n.removeSheetId="";n.removeParkedCarId="";n.remove=function(t,i){n.removeSheetId=t;n.removeParkedCarId=i;$("#ModalServiceSheetDelete").modal("show")};n.removeConfirmed=function(){i.ServiceSheet.remove(n.removeSheetId,n.removeParkedCarId).then(function(t){t.data.succeed===!0&&n.loadData("1");AK.System.ShowMessage(t.data.message);AK.System.alert(t.data.message)},function(){AK.System.alert("Get ServiceSheet remove failed")});n.removeSheetId="";n.removeParkedCarId="";$("#ModalServiceSheetDelete").modal("hide")};n.ranges=[];n.setRange=function(){var i=5,r=Math.ceil(i/2)-1,u,f=n.paging.Total,t;for(u=n.paging.Page<=r+1?1:n.paging.Page>f-r?Math.max(1,f-i+1):n.paging.Page-r+1,n.ranges=[],t=u;t<u+i-1;t++)t>=1&&t<=f&&n.ranges.push(t)};n.setRange();n.prevPage=function(){n.paging.Page>1&&n.setPage(n.paging.Page-1)};n.prevPageDisabled=function(){return n.paging.Page===1?"prev disabled":""};n.nextPage=function(){n.paging.Page<n.paging.Total&&n.paging.Page++};n.nextPageDisabled=function(){return n.paging.Page===n.paging.Total?"next disabled":""};n.setPage=function(t){n.paging.Page=t;n.loadData(n.paging.Page)}},AK.ServiceSheet.initCarList=function(n,t,i,r){AK.System.alert("@Garage.getServiceSheet");t.akDataLoadingStringAdd("ServiceSheetCarList");n.data=null;n.parkedCarId=r;n.getData=function(){n.isDataLoaded=!1;i.ServiceSheet.getCarList(n.parkedCarId).then(function(i){n.data=i.data;$("#ak-cardetail-servicesheet").removeClass("visibilityOff");t.akDataLoadingStringRemove("ServiceSheetCarList")},function(){AK.System.alert("Get ServiceSheetList data failed");$("#ak-cardetail-servicesheet").removeClass("visibilityOff");t.akDataLoadingStringRemove("ServiceSheetCarList")})};n.getData();n.removeSheetId="";n.remove=function(t){n.removeSheetId=t;$("#ModalServiceSheetDelete").modal("show")};n.removeConfirmed=function(){i.ServiceSheet.remove(n.removeSheetId,n.parkedCarId).then(function(t){t.data.succeed===!0&&n.getData();AK.System.ShowMessage(t.data.message);AK.System.alert(t.data.message)},function(){AK.System.alert("Get ServiceSheet remove failed")});n.removeSheetId="";$("#ModalServiceSheetDelete").modal("hide")}},AK.ServiceSheet.initDetail=function(n,t,i,r,u,f,e,o,s,h,c){AK.System.alert("@ServiceSheet.initDetail");t.serviceTotal2Enabled=h.toLowerCase()==="true";t.totalCheckBadrowMessage=s;t.userItemsEnabled=o.toLowerCase()==="true";t.userItems=[];t.defaultVat=f;t.workHourRate=e;t.sheet=undefined;t.sheetLast=undefined;t.printCustomer=!1;t.printService=!1;t.printBoth=!1;t.backToCar=!1;t.carOtherDamage=!1;t.loadData=function(r,u){n.akDataLoadingStringAdd("ServiceSheetDetail");i.ServiceSheet.getData(r,u).then(function(i){t.reloadData(i.data.sheet);t.userItemsEnabled&&(t.userItems=i.data.userItems);n.akDataLoadingStringRemove("ServiceSheetDetail")},function(){AK.System.alert("Get ServiceSheet failed");n.akDataLoadingStringRemove("ServiceSheetDetail")})};t.loadData(r,u);t.reloadData=function(n){if(t.sheet!==undefined&&t.sheet.Id=="00000000-0000-0000-0000-000000000000"&&n.Id!="00000000-0000-0000-0000-000000000000"){$("#printBoth").attr("href",AK.System.url+"/servicesheet/"+n.Id+"/Print");var i=AK.System.url+"/car/"+t.sheet.ParkedCarId+"/servicesheet/"+n.Id;AK.System.ChangeUrlWithoutReload(document.title,i)}t.sheet=n;t.sheet.Work.forEach(function(n){n.Price=n.Price==0?"":Number(n.Price.toString().replace(",",".")).toFixed(2).toString().replace(".",",");n.Amount=n.Amount==0?"":Number(n.Amount.toString().replace(",",".")).toFixed(2).toString().replace(".",",");n.VAT==0&&(n.VAT="");n.Discount=n.Discount==0?"":Number(n.Discount.toString().replace(",",".")).toFixed(2).toString().replace(".",",")});t.sheet.Material.forEach(function(n){n.Price=n.Price==0?"":Number(n.Price.toString().replace(",",".")).toFixed(2).toString().replace(".",",");n.Amount=n.Amount==0?"":Number(n.Amount.toString().replace(",",".")).toFixed(2).toString().replace(".",",");n.VAT==0&&(n.VAT="");n.Discount=n.Discount==0?"":Number(n.Discount.toString().replace(",",".")).toFixed(2).toString().replace(".",",")});t.sheet.Stuff.forEach(function(n){n.Price=n.Price==0?"":Number(n.Price.toString().replace(",",".")).toFixed(2).toString().replace(".",",");n.Amount=n.Amount==0?"":Number(n.Amount.toString().replace(",",".")).toFixed(2).toString().replace(".",",");n.VAT==0&&(n.VAT="");n.Discount=n.Discount==0?"":Number(n.Discount.toString().replace(",",".")).toFixed(2).toString().replace(".",",")});t.sheet.Other.forEach(function(n){n.Price=n.Price==0?"":Number(n.Price.toString().replace(",",".")).toFixed(2).toString().replace(".",",");n.Amount=n.Amount==0?"":Number(n.Amount.toString().replace(",",".")).toFixed(2).toString().replace(".",",");n.VAT==0&&(n.VAT="");n.Discount=n.Discount==0?"":Number(n.Discount.toString().replace(",",".")).toFixed(2).toString().replace(".",",")});t.carOtherDamage=t.sheet.OrderedRepair.OtherDamage.length>0?"true":"false";t.calcPriceWorkSum();t.calcPriceMaterialSum();t.calcPriceStuffSum();t.calcPriceOtherSum();t.sheetLast=angular.copy(t.sheet);n.Car.LicencePlate.length>0&&$("#serviceSheetCarLicencePlate").attr("disabled","");n.Car.VIN.length>0&&$("#serviceSheetCarVin").attr("disabled","")};t.save=function(){if(t.serviceTotal2Enabled&&!t.totalCheckSucceed())return AK.System.ShowMessage(t.totalCheckBadrowMessage),!1;i.ServiceSheet.setData(t.sheet).then(function(n){if(AK.System.alert("Save ServiceSheet result: ",n.data.succeed),n.data.succeed){if(t.reloadData(n.data.sheet),t.printBoth==!0)return t.printBoth=!1,$("#printBoth").simulate("click",""),!1;t.backToCar==!0&&(t.backToCar=!1,window.location=$("#sheetBackToCar").attr("href"))}AK.System.ShowMessage(n.data.message)},function(){AK.System.alert("Save ServiceSheet failed")})};t.changeStatus=function(n){if(t.serviceTotal2Enabled&&!t.totalCheckSucceed())return AK.System.ShowMessage(t.totalCheckBadrowMessage),!1;t.sheet.Status=n;$("#ServiceSheetSubmit").click()};t.printBothClick=function(){if(t.serviceTotal2Enabled&&!t.totalCheckSucceed())return AK.System.ShowMessage(t.totalCheckBadrowMessage),!1;t.printBoth=!0;$("#ServiceSheetSubmit").click()};t.changeCarOtherDamage=function(){t.carOtherDamage=="false"&&(t.sheet.OrderedRepair.OtherDamage="")};$("#sheetBackToCar").click(function(n){angular.equals(t.sheet,t.sheetLast)?AK.System.alert("Are equals"):(AK.System.alert("Are not equals"),n.preventDefault(),$("#SheetModalSave").modal("show"))});$("#sheetModalSaveButton").click(function(){if(t.serviceTotal2Enabled&&!t.totalCheckSucceed())return $("#SheetModalSave").modal("hide"),AK.System.ShowMessage(t.totalCheckBadrowMessage),!1;t.backToCar=!0;$("#ServiceSheetSubmit").click()});t.addWorkRow=function(){var n={Type:1,Name:"",Code:"",Amount:"",Price:"",Discount:"",PriceDiscount:"",VAT:Number(t.defaultVat),PriceDiscountVAT:"",Order:t.sheet.Work.length};t.sheet.Work.push(n);t.calcPriceWorkSum()};t.addMaterialRow=function(){var n={Type:2,Name:"",Code:"",Amount:"",Price:"",Discount:"",PriceDiscount:"",VAT:Number(t.defaultVat),PriceDiscountVAT:"",Order:t.sheet.Material.length};t.sheet.Material.push(n);t.calcPriceMaterialSum()};t.addStuffRow=function(){};t.addOtherRow=function(){};t.priceSum=0;t.priceVatSum=0;t.vatSum=0;t.calcPriceSum=function(){t.priceSum=(AK.Common.toNumber(t.WorkPriceSum)+AK.Common.toNumber(t.MaterialPriceSum)+AK.Common.toNumber(t.StuffPriceSum)+AK.Common.toNumber(t.OtherPriceSum)).toFixed(2).toString().replace(".",",");t.priceVatSum=(AK.Common.toNumber(t.WorkPriceVatSum)+AK.Common.toNumber(t.MaterialPriceVatSum)+AK.Common.toNumber(t.StuffPriceVatSum)+AK.Common.toNumber(t.OtherPriceVatSum)).toFixed(2).toString().replace(".",",");t.vatSum=(AK.Common.toNumber(t.WorkVatSum)+AK.Common.toNumber(t.MaterialVatSum)+AK.Common.toNumber(t.StuffVatSum)+AK.Common.toNumber(t.OtherVatSum)).toFixed(2).toString().replace(".",",")};t.WorkPriceSum=0;t.WorkVatSum=0;t.WorkPriceVatSum=0;t.calcPriceWorkSum=function(){var n=0,i=0;t.sheet.Work.forEach(function(r){var u=Number(r.Amount.toString().replace(",","."));u>0&&r.Price.toString().length<=0&&(r.Price=t.workHourRate);var s=Number(r.Price.toString().replace(",",".")),h=Number(r.Discount.toString().replace(",",".")),c=Number(r.VAT.toString().replace(",",".")),o=s*((100-h)/100),f=Number(o*u),e=Number(o*(100+c)/100*u);r.PriceDiscount=f>0?Number(f).toFixed(2).toString().replace(".",","):"";r.PriceDiscountVAT=e>0?Number(e).toFixed(2).toString().replace(".",","):"";n+=f;i+=e});t.WorkPriceSum=n>0?n.toFixed(2).toString().replace(".",","):"";t.WorkPriceVatSum=i>0?i.toFixed(2).toString().replace(".",","):"";t.WorkVatSum=i-n>0?(i-n).toFixed(2).toString().replace(".",","):"";t.calcPriceSum()};t.MaterialPriceSum=0;t.MaterialVatSum=0;t.MaterialPriceVatSum=0;t.calcPriceMaterialSum=function(){var n=0,i=0;t.sheet.Material.forEach(function(t){var f=Number(t.Amount.toString().replace(",",".")),o=Number(t.Price.toString().replace(",",".")),s=Number(t.Discount.toString().replace(",",".")),h=Number(t.VAT.toString().replace(",",".")),e=o*((100-s)/100),r=Number(e*f),u=Number(e*(100+h)/100*f);t.PriceDiscount=r>0?Number(r).toFixed(2).toString().replace(".",","):"";t.PriceDiscountVAT=u>0?Number(u).toFixed(2).toString().replace(".",","):"";n+=r;i+=u});t.MaterialPriceSum=n>0?n.toFixed(2).toString().replace(".",","):"";t.MaterialPriceVatSum=i>0?i.toFixed(2).toString().replace(".",","):"";t.MaterialVatSum=i-n>0?(i-n).toFixed(2).toString().replace(".",","):"";t.calcPriceSum()};t.StuffPriceSum=0;t.StuffVatSum=0;t.StuffPriceVatSum=0;t.calcPriceStuffSum=function(){var n=0,i=0;t.sheet.Stuff.forEach(function(t){var f=Number(t.Amount.toString().replace(",",".")),o=Number(t.Price.toString().replace(",",".")),s=Number(t.Discount.toString().replace(",",".")),h=Number(t.VAT.toString().replace(",",".")),e=o*((100-s)/100),r=Number(e*f),u=Number(e*(100+h)/100*f);t.PriceDiscount=r>0?Number(r).toFixed(2).toString().replace(".",","):"";t.PriceDiscountVAT=u>0?Number(u).toFixed(2).toString().replace(".",","):"";n+=r;i+=u});t.StuffPriceSum=n>0?n.toFixed(2).toString().replace(".",","):"";t.StuffPriceVatSum=i>0?i.toFixed(2).toString().replace(".",","):"";t.StuffVatSum=i-n>0?(i-n).toFixed(2).toString().replace(".",","):"";t.calcPriceSum()};t.OtherPriceSum=0;t.OtherVatSum=0;t.OtherPriceVatSum=0;t.calcPriceOtherSum=function(){var n=0,i=0;t.sheet.Other.forEach(function(t){var f=Number(t.Amount.toString().replace(",",".")),o=Number(t.Price.toString().replace(",",".")),s=Number(t.Discount.toString().replace(",",".")),h=Number(t.VAT.toString().replace(",",".")),e=o*((100-s)/100),r=Number(e*f),u=Number(e*(100+h)/100*f);t.PriceDiscount=r>0?Number(r).toFixed(2).toString().replace(".",","):"";t.PriceDiscountVAT=u>0?Number(u).toFixed(2).toString().replace(".",","):"";n+=r;i+=u});t.OtherPriceSum=n>0?n.toFixed(2).toString().replace(".",","):"";t.OtherPriceVatSum=i>0?i.toFixed(2).toString().replace(".",","):"";t.OtherVatSum=i-n>0?(i-n).toFixed(2).toString().replace(".",","):"";t.calcPriceSum()};t.changeAKProduct=function(n){n.Code.length<=3||t.loadAKProduct(n)};t.loadAKProduct=function(r){r.Code.length<=0||(n.akDataLoadingStringAdd("ServiceSheetLoadAKProduct"),i.ServiceSheet.getAKProduct(r).then(function(i){i.data.errorMessage.length<=0?(AK.System.alert("ServiceSheet load AK product success"),t.setItem(i.data.item),t.reloadData(t.sheet)):(AK.System.alert("ServiceSheet load AK product failed"),AK.System.ShowMessage(i.data.errorMessage));n.akDataLoadingStringRemove("ServiceSheetLoadAKProduct")},function(){AK.System.alert("ServiceSheet load AK product failed");n.akDataLoadingStringRemove("ServiceSheetLoadAKProduct")}))};t.setItem=function(n){for(var i=0;i<t.sheet.Material.length;i++)if(t.sheet.Material[i].Order==n.Order){t.sheet.IsVATPayer==!1&&(n.Price=Number(n.Price*(100+n.VAT)/100));t.sheet.Material[i]=n;break}};t.selectedWorkItemOrder="";t.selectUserItemClick=function(n){t.selectedWorkItemOrder=n;$("#ModalSelectUserItem").modal("show")};t.selectUserItemConfirm=function(n){$("#ModalSelectUserItem").modal("hide");for(var i=0;i<t.sheet.Work.length;i++)if(t.sheet.Work[i].Order==t.selectedWorkItemOrder){t.sheet.Work[i].Name=n.Name;t.sheet.Work[i].Amount=n.Amount;t.sheet.Work[i].Price=n.Price;t.sheet.Work[i].VAT=n.VAT;break}t.selectedWorkItemOrder="";t.reloadData(t.sheet)};t.changeWork=function(n){if(n.Name.length<=3){n.UserItems=[];return}t.findUserItem(n)};t.findUserItem=function(n){n.Name.length<=0||(AK.System.alert("find user items"),i.ServiceSheet.findUserItem(n).then(function(n){n.data.errorMessage.length<=0?(AK.System.alert("ServiceSheet find UserItem success"),t.setUserItem(n.data.item)):(AK.System.alert("ServiceSheet find UserItem  failed"),AK.System.ShowMessage(n.data.errorMessage))},function(){AK.System.alert("ServiceSheet find UserItem  failed")}))};t.setUserItem=function(n){for(var i=0;i<t.sheet.Work.length;i++)if(t.sheet.Work[i].Order==n.Order){t.sheet.Work[i]=n;break}};t.selectUserItem=function(n,i){n.Name=i.Name;n.Amount=i.Amount;n.Price=i.Price;n.VAT=i.VAT;n.UserItems=[];t.reloadData(t.sheet)};t.totalCheckChange=function(n){n.Type==0&&(n.Price.length>0||n.Note.length>0||n.NextDate.length>0||n.NextKm.length>0)&&AK.System.ShowMessage(t.totalCheckBadrowMessage)};t.totalCheckSucceed=function(){var n=!0;return t.sheet.TotalChecks2.forEach(function(t){t.Type==0&&(t.Price.length>0||t.Note.length>0||t.NextDate.length>0||t.NextKm.length>0)&&(n=!1)}),n};t.totalCheckClearRow=function(n){n.Price="";n.Note="";n.NextKm="";n.NextDate=""};t.modalSelectCustomerContent="";t.selectCustomerClick=function(){i.serviceCustomer.getModalSelectContent().then(function(n){n.data.errorMessage.length<=0?(t.modalSelectCustomerContent=c.trustAsHtml(n.data.content),$("#ModalSelectCustomer").modal("show"),AK.System.alert("Get select customer content success")):AK.System.alert(n.data.errorMessage)},function(){AK.System.alert("Get select custoer content failed")})};n.$on("ServiceCustomer_Select",function(n,r){AK.System.alert("Service customer selected - id: "+r);r!=AK.System.GuidEmpty?i.serviceCustomer.getData(r).then(function(n){$("#ModalSelectCustomer").modal("hide");n.data.errorMessage.length<=0?(t.setReceiverData(n.data.customer),AK.System.alert("Set customer success")):AK.System.alert(n.data.errorMessage)},function(){AK.System.alert("Set customer failed")}):AK.System.alert("Nekde se stala chyba - vyber zakaznika vratilo neplatne ID")});t.setReceiverData=function(n){if(n!=null){var i=n.ContactName;n.CompanyName.length>0&&n.CompanyName!=n.ContactName&&(i=i+" - "+n.CompanyName);t.sheet.Customer.Name=i;t.sheet.Customer.Phone=n.Mobile;t.sheet.Customer.Email=n.Email}}},AK.ServiceProfile.init=function(n,t,i){AK.System.alert("@ServiceProfile.init");n.akDataLoadingStringAdd("ServiceProfile");t.formSubmitted=!1;t.profile=null;t.mapSettings=null;t.errorMessage="";t.setDefaultSheetFormat=function(){t.serviceSheetFormatPrefix="ZL"+(new Date).getFullYear();t.serviceSheetFormatStartNumber=1;t.serviceSheetFormatCharCnt=10};t.setDefaultInvoiceFormat=function(){t.serviceInvoiceFormatPrefix="FA"+(new Date).getFullYear();t.serviceInvoiceFormatStartNumber=1;t.serviceInvoiceFormatCharCnt=10};t.setDefaultSheetFormat();t.setDefaultInvoiceFormat();t.loadData=function(){t.formSubmitted=!1;t.profile=null;t.mapSettings=null;t.errorMessage="";i.ServiceProfile.getData().then(function(i){var r,u;t.profile=i.data.profile;r=t.profile.ServiceSheetFormat;r!=null&&r.length>0&&r.indexOf("[")!==-1&&r.indexOf("]")!==-1&&(t.serviceSheetFormatPrefix=r.substring(r.lastIndexOf("[")+1,r.lastIndexOf("]")),t.serviceSheetFormatStartNumber=parseInt(r.replace("["+t.serviceSheetFormatPrefix+"]","")),t.serviceSheetFormatCharCnt=r.length-2);u=t.profile.ServiceInvoiceFormat;u!=null&&u.length>0&&u.indexOf("[")!==-1&&u.indexOf("]")!==-1&&(t.serviceInvoiceFormatPrefix=u.substring(u.lastIndexOf("[")+1,u.lastIndexOf("]")),t.serviceInvoiceFormatStartNumber=parseInt(u.replace("["+t.serviceInvoiceFormatPrefix+"]","")),t.serviceInvoiceFormatCharCnt=u.length-2);t.addressChange();t.servicesLength=t.profile.Services.length;t.servicesMiddle=t.servicesLength/2;t.mapSettings=i.data.mapSettings;t.latLon=t.profile.Latitude+";"+t.profile.Longitude;AK.ServiceProfile.Map.scriptLoaded==null||AK.ServiceProfile.Map.scriptLoaded==!1?t.loadGMapScript():t.gMapInitialize();$("#ServiceProfileContainer").removeClass("visibilityOff");n.akDataLoadingStringRemove("ServiceProfile")},function(){AK.System.alert("Get service profile data failed");$("#ServiceProfileContainer").removeClass("visibilityOff");n.akDataLoadingStringRemove("ServiceProfile")})};t.loadData();t.addressChange=function(){t.fullAddress=t.profile.Address.Street+", "+t.profile.Address.Zip+" "+t.profile.Address.Town};t.getZeroStringNumber=function(n,t){for(var i=n+"";i.length<t;)i="0"+i;return i};t.save=function(){if(t.formSubmitted=!0,t.serviceProfileForm.$invalid){AK.System.alert("Chybně vyplněn formulář.");return}AK.System.alert("Saving service profile");(t.serviceSheetFormatPrefix.length==0||t.serviceSheetFormatStartNumber==null||t.serviceSheetFormatCharCnt==null)&&t.setDefaultSheetFormat();(t.serviceInvoiceFormatPrefix.length==0||t.serviceInvoiceFormatStartNumber==null||t.serviceInvoiceFormatCharCnt==null)&&t.setDefaultInvoiceFormat();t.profile.ServiceSheetFormat="["+t.serviceSheetFormatPrefix+"]"+t.getZeroStringNumber(t.serviceSheetFormatStartNumber,t.serviceSheetFormatCharCnt-t.serviceSheetFormatPrefix.length);t.profile.ServiceInvoiceFormat="["+t.serviceInvoiceFormatPrefix+"]"+t.getZeroStringNumber(t.serviceInvoiceFormatStartNumber,t.serviceInvoiceFormatCharCnt-t.serviceInvoiceFormatPrefix.length);i.ServiceProfile.save(t.profile).then(function(i){i.data.Result==!0?(AK.System.alert("Successfully saved profile"),t.formSubmitted=!1,t.serviceProfileForm.$setPristine(),n.akDataLoadingStringAdd("ServiceProfile"),t.loadData(),AK.System.ShowMessage(i.data.Message)):(t.errorMessage=i.data.Message,AK.System.alert("Error in saving service profile."+t.errorMessage))},function(){AK.System.alert("Creating new ticket failed")})};t.loadGMapScript=function(){var n=document.createElement("script");n.type="text/javascript";n.src="https://maps.googleapis.com/maps/api/js?v=3.exp&key=AIzaSyCosq11V2IImQBarjzCED68lfrQDXFFITc&callback=serviceProfileGMapInitialize";document.body.appendChild(n);AK.ServiceProfile.Map.scriptLoaded=!0};t.gMapInitialize=function(){var i=t.profile.Latitude.length>0&&t.profile.Longitude.length>0?17:parseInt(t.mapSettings.Zoom),r=t.profile.Latitude.length>0&&t.profile.Longitude.length>0?new google.maps.LatLng(t.profile.Latitude,t.profile.Longitude):new google.maps.LatLng(t.mapSettings.CenterLat,t.mapSettings.CenterLng),u={zoom:i,center:r,mapTypeId:t.mapSettings.MapType.toLowerCase()},n;AK.ServiceProfile.Map.gmap=new google.maps.Map(document.getElementById("ServiceProfile_GMap"),u);AK.ServiceProfile.Map.markerYouAreHere=null;t.profile.Latitude.length>0&&t.profile.Longitude.length>0&&(n=new google.maps.LatLng(t.profile.Latitude,t.profile.Longitude),AK.ServiceProfile.Map.markerYouAreHere=new google.maps.Marker({position:n,map:AK.ServiceProfile.Map.gmap}));google.maps.event.addListener(AK.ServiceProfile.Map.gmap,"click",function(n){t.$apply(function(){t.profile.Latitude=n.latLng.lat();t.profile.Longitude=n.latLng.lng();t.latLon=t.profile.Latitude+";"+t.profile.Longitude});var i=new google.maps.LatLng(t.profile.Latitude,t.profile.Longitude);typeof AK.ServiceProfile.Map.markerYouAreHere=="undefined"||AK.ServiceProfile.Map.markerYouAreHere==null?AK.ServiceProfile.Map.markerYouAreHere=new google.maps.Marker({position:i,map:AK.ServiceProfile.Map.gmap,title:msgYourPosition}):AK.ServiceProfile.Map.markerYouAreHere.setPosition(i);AK.ServiceProfile.Map.gmap.panTo(i)})};t.resizeGMap=function(){if(typeof AK.ServiceProfile.Map.gmap!="undefined"&&AK.ServiceProfile.Map.gmap!=null){var n=AK.ServiceProfile.Map.gmap.getZoom(),t=AK.ServiceProfile.Map.gmap.getCenter();google.maps.event.trigger(AK.ServiceProfile.Map.gmap,"resize");AK.ServiceProfile.Map.gmap.setZoom(n);AK.ServiceProfile.Map.gmap.setCenter(t)}};t.findByGeolocation=function(n,i){return $("#ServiceProfile_MapMessage").html(""),navigator.geolocation?navigator.geolocation.getCurrentPosition(function(r){t.showPosition(r,n,i)},t.showError):$("#ServiceProfile_MapMessage").html("Geolocation is not supported by this browser."),!1};t.showPosition=function(n,t,i){var u=n.coords.latitude,f=n.coords.longitude,r;$("#ServiceProfile_MapMessage").html(t);r=new google.maps.LatLng(u,f,!0);typeof AK.ServiceProfile.Map.markerYouAreHere=="undefined"||AK.ServiceProfile.Map.markerYouAreHere==null?AK.ServiceProfile.Map.markerYouAreHere=new google.maps.Marker({position:r,map:AK.ServiceProfile.Map.gmap,title:i}):AK.ServiceProfile.Map.markerYouAreHere.setPosition(r);AK.ServiceProfile.Map.gmap.panTo(r);AK.ServiceProfile.Map.gmap.setZoom(15)};t.showError=function(n){var t=$("#ServiceProfile_MapMessage");switch(n.code){case n.PERMISSION_DENIED:t.html("User denied the request for Geolocation.");break;case n.POSITION_UNAVAILABLE:t.html("Location information is unavailable.");break;case n.TIMEOUT:t.html("The request to get user location timed out.");break;case n.UNKNOWN_ERROR:t.html("An unknown error occurred.")}};t.findByAddress=function(n,i){$("#ServiceProfile_MapMessage").html("");var u=new google.maps.Geocoder,r=t.fullAddress;return r.length>0?u.geocode({address:r},function(r,u){if(u==google.maps.GeocoderStatus.OK){$("#ServiceProfile_MapMessage").html(n);var f=r[0].geometry.location;t.$apply(function(){t.profile.Latitude=f.lat();t.profile.Longitude=f.lng();t.latLon=t.profile.Latitude+";"+t.profile.Longitude});typeof AK.ServiceProfile.Map.markerYouAreHere=="undefined"||AK.ServiceProfile.Map.markerYouAreHere==null?AK.ServiceProfile.Map.markerYouAreHere=new google.maps.Marker({position:f,map:AK.ServiceProfile.Map.gmap,title:i}):AK.ServiceProfile.Map.markerYouAreHere.setPosition(f);AK.ServiceProfile.Map.gmap.panTo(f);AK.ServiceProfile.Map.gmap.setZoom(15)}else $("#ServiceProfile_MapMessage").html("Geocode was not successful for the following reason: "+u)}):$("#ServiceProfile_MapMessage").html("Zadejte adresu"),!1}},AK.Auction.confirmModal={getCookieName:function(n){return"AKAuction."+n+".Confirmable"},isEnabled:function(n){var t=AK.System.ReadCookie(this.getCookieName(n));return t!=""?t==="true":(AK.System.CreateCookie(this.getCookieName(n),"true",14),!0)},disable:function(n){AK.System.EraseCookie(this.getCookieName(n));AK.System.CreateCookie(this.getCookieName(n),"false",14)}},AK.Auction.initList=function(n,t,r,u,f,e){AK.System.alert("@Auction.initList");t.minPriceMessage=e;t.AKHub=u;t.paging={Page:f,Size:5,Total:1};t.products=undefined;t.filter={Active:!0,Mine:!1};t.selectedProduct=undefined;t.confirmBidChecked=!0;t.loadData=function(i){n.akDataLoadingStringAdd("AuctionListLoadData");r.auction.getListItems(i).then(function(i){i.data.ErrorMessage.length<=0?(t.products=i.data.Items,AK.System.alert("Auction laod data success"),t.UserPriceTextBoxProcess(),t.paging=i.data.Paging,t.setRange(),t.filter=i.data.Filter,setTimeout(function(){n.$emit("timer-reset","auction")},100)):(AK.System.alert("Auction load data failed"),AK.System.ShowMessage(i.data.ErrorMessage));$(".auctionListContainer").removeClass("visibilityOff");n.akDataLoadingStringRemove("AuctionListLoadData")},function(){AK.System.alert("Get auction data failed");$(".auctionListContainer").removeClass("visibilityOff");n.akDataLoadingStringRemove("AuctionListLoadData")})};t.loadData(t.paging.Page);t.refreshAuctionData=function(u){var f=!1;angular.forEach(t.products,function(n){n.AuctionId==u&&(f=!0)});f&&(t.showRefresh(u),r.auction.getListItem(u).then(function(r){var f,e;if(r.data.ErrorMessage.length<=0){if(f=r.data.Auction,f!=null&&f!=undefined){for(e=!1,i=0;i<t.products.length;i++)t.products[i].AuctionId==f.AuctionId&&(t.products[i]=f,e=!0,i=t.products.length,setTimeout(function(){n.$emit("timer-reset-current",f.AuctionId)},100));AK.System.alert("Auction item load data success");e&&(AK.System.alert("Current auction refreshed"),t.UserPriceTextBoxProcess())}}else AK.System.alert("Get load list item data failed"),AK.System.ShowMessage(r.data.ErrorMessage);t.hideRefresh(u)},function(){AK.System.alert("Get load list item data failed");t.hideRefresh(u)}))};t.showRefresh=function(n){$(".AuctionRefresh").each(function(){var t=$(this).attr("data-auctionid");t==n&&$(this).removeClass("visibilityOff")})};t.hideRefresh=function(n){$(".AuctionRefresh").each(function(){var t=$(this).attr("data-auctionid");t==n&&$(this).addClass("visibilityOff")})};t.setFilter=function(){r.auction.setFilter(t.filter).then(function(n){n.data.ErrorMessage.length<=0?(AK.System.alert("Auction set filter success"),t.loadData(1)):(AK.System.alert("Auction set filter failed"),AK.System.ShowMessage(n.data.ErrorMessage))},function(){AK.System.alert("Auction set filter failed")})};t.buyBidConfirm=function(n){if(n.BidPriceVat<n.MinPriceVat)return AK.System.ShowMessage(e),!1;if(n.BidPriceVat>n.BuyNowPriceVatDouble&&n.BuyNowPriceVatDouble>0)return t.BuyNowProduct=n,$("#ModalBigPrice").modal("show"),!1;AK.Auction.confirmModal.isEnabled(n.AuctionId)?(t.selectedProduct=n,t.confirmBidChecked=!0,$("#ModalConfirmBid").modal("show")):t.buyBidSend(n,!1,!1)};t.buyBidSend=function(n,i,u){i&&!u&&(name=AK.Auction.confirmModal.disable(n.AuctionId));$("#ModalConfirmBid").modal("hide");$("#ModalAutoBet").modal("hide");t.showRefresh(n.AuctionId);r.auction.buyBid(n.AuctionId,n.BidPriceVat).then(function(i){i.data.ErrorMessage.length<=0?(AK.System.ShowMessage(i.data.Message),AK.System.alert(i.data.Message),t.AKHub.auctionPriceChanged(n.AuctionId)):(AK.System.alert("Auction buy failed"),AK.System.ShowMessage(i.data.ErrorMessage));t.hideRefresh(n.AuctionId)},function(){AK.System.alert("Auction buy failed");t.hideRefresh(n.AuctionId)})};t.buyAutoBid=function(n){if(n.BidPriceVat<n.MinPriceVat)return AK.System.ShowMessage(e),!1;if(n.BidPriceVat>n.BuyNowPriceVatDouble&&n.BuyNowPriceVatDouble>0)return t.BuyNowProduct=n,$("#ModalBigPrice").modal("show"),!1;t.selectedProduct=n;$("#AuctionModalPrice").html(n.BidPriceVat.toString());$("#ModalAutoBet").modal("show");AK.System.alert("Automaticaly increased - show modal")};t.buyAutoBidSend=function(n){$("#ModalAutoBet").modal("hide");t.showRefresh(n.AuctionId);r.auction.buyAutoBid(n.AuctionId,n.BidPriceVat).then(function(i){i.data.ErrorMessage.length<=0?(AK.System.ShowMessage(i.data.Message),AK.System.alert(i.data.Message),t.AKHub.auctionPriceChanged(n.AuctionId)):(AK.System.alert("Auction buy failed"),AK.System.ShowMessage(i.data.ErrorMessage));t.hideRefresh(n.AuctionId)},function(){AK.System.alert("Auction buy failed");t.hideRefresh(n.AuctionId)})};t.BuyNowProduct=undefined;t.buyNowConfirm=function(n){if($("#ModalBigPrice").modal("hide"),n.BuyNowPriceVat.length<=0)return!1;if(n.BidPriceVat<n.MinPriceVat)return AK.System.ShowMessage(t.minPriceMessage),!1;n.BuyNowPriceVat.length>0&&(t.BuyNowProduct=n,$("#ModalBuyNow").modal("show"),AK.System.alert("Buy now - show modal"))};t.buyNow=function(){$("#ModalBuyNow").modal("hide");var i=t.BuyNowProduct;i.BuyNowPriceVat.length>0&&(n.akDataLoadingStringAdd("AuctionListBuyNow"),r.auction.buyNow(i.AuctionId).then(function(i){i.data.ErrorMessage.length<=0?(AK.System.alert(i.data.Message),AK.System.ShowMessage(i.data.Message),t.AKHub.auctionStateChanged()):(AK.System.alert(i.data.ErrorMessage),AK.System.ShowMessage(i.data.ErrorMessage));n.akDataLoadingStringRemove("AuctionListBuyNow")},function(){AK.System.alert("Auction buy failed");n.akDataLoadingStringRemove("AuctionListBuyNow")}))};t.UserPriceTextBoxProcess=function(){setTimeout(function(){$(".AuIncrPriceString").focus(function(){$(this).next().focus().on("change keyup paste",function(){$(this).prev().val($(this).val()+" "+$(this).data("currency"))}).addClass("focused").focusout(function(){$(this).removeClass("focused")})})},200)};t.timerfinished=function(n,i){i.IsOpened&&(AK.System.alert("Auction timer finished and called reload data"),t.loadData(1))};n.$on("auctionPriceReload",function(n,i){t.refreshAuctionData(i)});n.$on("auctionStateReload",function(){t.loadData(1)});t.ranges=[];t.setRange=function(){var i=5,r=Math.ceil(i/2)-1,u,f=t.paging.Total,n;for(u=t.paging.Page<=r+1?1:t.paging.Page>f-r?Math.max(1,f-i+1):t.paging.Page-r+1,t.ranges=[],n=u;n<u+i-1;n++)n>=1&&n<=f&&t.ranges.push(n)};t.setRange();t.prevPage=function(){t.paging.Page>1&&t.setPage(t.paging.Page-1)};t.prevPageDisabled=function(){return t.paging.Page===1?"prev disabled":""};t.nextPage=function(){t.paging.Page<t.paging.Total&&t.paging.Page++};t.nextPageDisabled=function(){return t.paging.Page===t.paging.Total?"next disabled":""};t.setPage=function(n){t.paging.Page=n;t.loadData(t.paging.Page)}},AK.Auction.initDetail=function(n,t,i,r,u,f){AK.System.alert("@Auction.initDetail");t.minPriceMessage=f;t.AKHub=r;t.auctionId=u;t.auction=undefined;t.confirmBidChecked=!0;t.loadData=function(r){n.akDataLoadingStringAdd("AuctionDetailLoadData");i.auction.getModel(r).then(function(i){i.data.ErrorMessage.length<=0?(t.auction=i.data.Model,AK.System.alert("Auction laod data success"),t.UserPriceTextBoxProcess(),setTimeout(function(){n.$emit("timer-reset","auction")},100)):(AK.System.alert("Auction load data failed"),AK.System.ShowMessage(i.data.ErrorMessage));$(".auctionListContainer").removeClass("visibilityOff");n.akDataLoadingStringRemove("AuctionDetailLoadData")},function(){AK.System.alert("Auction load data failed");n.akDataLoadingStringRemove("AuctionDetailLoadData")})};t.loadData(t.auctionId);t.buyBidConfirm=function(){if(t.auction.BidPriceVat<t.auction.MinPriceVat)return AK.System.ShowMessage(t.minPriceMessage),!1;if(t.auction.BidPriceVat>t.auction.BuyNowPriceVatDouble&&t.auction.BuyNowPriceVatDouble>0)return $("#ModalBigPrice").modal("show"),!1;AK.Auction.confirmModal.isEnabled(t.auctionId)?(t.confirmBidChecked=!0,$("#ModalConfirmBid").modal("show")):t.buyBidSend(!1,!1)};t.buyBidSend=function(r,u){r&&!u&&(name=AK.Auction.confirmModal.disable(t.auctionId));$("#ModalConfirmBid").modal("hide");$("#ModalAutoBet").modal("hide");n.akDataLoadingStringAdd("AuctionDetailBuyBid");i.auction.buyBid(t.auctionId,t.auction.BidPriceVat).then(function(i){i.data.ErrorMessage.length<=0?(AK.System.ShowMessage(i.data.Message),AK.System.alert(i.data.Message),t.AKHub.auctionPriceChanged(t.auctionId)):(AK.System.alert("Auction buy failed"),AK.System.ShowMessage(i.data.ErrorMessage));n.akDataLoadingStringRemove("AuctionDetailBuyBid")},function(){AK.System.alert("Auction buy failed");n.akDataLoadingStringRemove("AuctionDetailBuyBid")})};t.buyAutoBid=function(){if(t.auction.BidPriceVat<t.auction.MinPriceVat)return AK.System.ShowMessage(t.minPriceMessage),!1;if(t.auction.BidPriceVat>t.auction.BuyNowPriceVatDouble&&t.auction.BuyNowPriceVatDouble>0)return $("#ModalBigPrice").modal("show"),!1;t.selectedProduct=t.auction;$("#AuctionModalPrice").html(t.auction.BidPriceVat.toString());$("#ModalAutoBet").modal("show");AK.System.alert("Automaticaly increased - show modal")};t.buyAutoBidSend=function(){$("#ModalAutoBet").modal("hide");t.auction=t.selectedProduct;n.akDataLoadingStringAdd("AuctionDetailAutoBuyBid");i.auction.buyAutoBid(t.auctionId,t.auction.BidPriceVat).then(function(i){i.data.ErrorMessage.length<=0?(AK.System.ShowMessage(i.data.Message),AK.System.alert(i.data.Message),t.AKHub.auctionPriceChanged(t.auctionId)):(AK.System.alert("Auction buy failed"),AK.System.ShowMessage(i.data.ErrorMessage));n.akDataLoadingStringRemove("AuctionDetailAutoBuyBid")},function(){AK.System.alert("Auction buy failed");n.akDataLoadingStringRemove("AuctionDetailAutoBuyBid")})};t.buyNowConfirm=function(){if($("#ModalBigPrice").modal("hide"),t.auction.BidPriceVat<t.auction.MinPriceVat)return AK.System.ShowMessage(t.minPriceMessage),!1;t.auction.HasBuyNowPrice===!0&&($("#ModalBuyNow").modal("show"),AK.System.alert("Buy now - show modal"))};t.buyNow=function(){$("#ModalBuyNow").modal("hide");t.auction.HasBuyNowPrice===!0&&(n.akDataLoadingStringAdd("AuctionDetailBuyNow"),i.auction.buyNow(t.auctionId).then(function(i){i.data.ErrorMessage.length<=0?(AK.System.alert(i.data.Message),AK.System.ShowMessage(i.data.Message),t.AKHub.auctionStateChanged()):(AK.System.alert(i.data.ErrorMessage),AK.System.ShowMessage(i.data.ErrorMessage));n.akDataLoadingStringRemove("AuctionDetailBuyNow")},function(){AK.System.alert("Auction buy failed");n.akDataLoadingStringRemove("AuctionDetailBuyNow")}))};t.UserPriceTextBoxProcess=function(){$(".AuIncrPriceString").focus(function(){$(this).next().focus().on("change keyup paste",function(){$(this).prev().val($(this).val()+" "+$(this).data("currency"))}).addClass("focused").focusout(function(){$(this).removeClass("focused")})})};t.UserPriceTextBoxProcess();n.$on("auctionPriceReload",function(){t.loadData(t.auctionId)});n.$on("auctionStateReload",function(){t.loadData(t.auctionId)});n.$on("auction-timer-finished",function(){t.auction.IsOpened&&t.loadData(t.auctionId)})},AK.Auction.initHistory=function(n,t,i,r){AK.System.alert("@Auction.initHistory");t.paging={Page:1,Size:5,Total:1};t.auctionId=r;t.items=undefined;n.akDataLoadingStringAdd("AuctionHistoryLoadData");t.loadData=function(r,u){i.auction.getHistoryItems(r,u).then(function(i){i.data.ErrorMessage.length<=0?(t.items=i.data.Items,t.paging=i.data.Paging,AK.System.alert("Auction history laod data success")):(AK.System.alert("Auction history load data failed"),AK.System.ShowMessage(i.data.ErrorMessage));n.akDataLoadingStringRemove("AuctionHistoryLoadData")},function(){AK.System.alert("Auction load data failed");n.akDataLoadingStringRemove("AuctionHistoryLoadData")})};t.loadData(t.auctionId,t.paging.Page);n.$on("auctionPriceReload",function(){t.loadData(t.auctionId,t.paging.Page)});n.$on("auctionStateReload",function(){t.loadData(t.auctionId,1)});t.ranges=[];t.setRange=function(){var i=5,r=Math.ceil(i/2)-1,u,f=t.paging.Total,n;for(u=t.paging.Page<=r+1?1:t.paging.Page>f-r?Math.max(1,f-i+1):t.paging.Page-r+1,t.ranges=[],n=u;n<u+i-1;n++)n>=1&&n<=f&&t.ranges.push(n)};t.setRange();t.prevPage=function(){t.paging.Page>1&&t.setPage(t.paging.Page-1)};t.prevPageDisabled=function(){return t.paging.Page===1?"prev disabled":""};t.nextPage=function(){t.paging.Page<t.paging.Total&&t.setPage(t.paging.Page+1)};t.nextPageDisabled=function(){return t.paging.Page===t.paging.Total?"next disabled":""};t.setPage=function(n){t.paging.Page=n;t.loadData(t.auctionId,t.paging.Page)}},AK.Auction.initHPBanner=function(n,t,i){AK.System.alert("@Auction.initHPBanner");t.auction=undefined;t.loadData=function(){i.auction.getHPBanner().then(function(i){i.data.ErrorMessage.length<=0?(t.auction=i.data.Auction,setTimeout(function(){n.$emit("timer-reset","auction")},100),AK.System.alert("Auction HP banner load data success"),$(".HpAuctionContainer").removeClass("visibilityOff")):(AK.System.alert("Auction HP banner load data failed"),AK.System.ShowMessage(i.data.ErrorMessage))},function(){AK.System.alert("Auction HP banner load data failed")})};t.loadData()},AK.ServiceInvoice.initList=function(n,t,i,r){AK.System.alert("@ServiceInvoice.initList");t.items=undefined;t.filter={DateFrom:"",DateTo:"",Search:"",OwnerId:""};t.paging={Page:r,Size:5,Total:1};t.payments=[];t.eetActive=!1;t.loadPayment=function(){n.akDataLoadingStringAdd("ServiceInvoiceListLoadPaymentData");i.serviceInvoice.getListPayments().then(function(i){i.data.errorMessage.length<=0?(t.payments=i.data.payments,AK.System.alert("ServiceInvoice load payment data success")):(AK.System.alert("ServiceInvoice load paymnet data failed"),AK.System.ShowMessage(i.data.ErrorMessage));n.akDataLoadingStringRemove("ServiceInvoiceListLoadPaymentData")},function(){AK.System.alert("ServiceInvoice load payment data failed");n.akDataLoadingStringRemove("ServiceInvoiceListLoadPaymentData")})};t.loadPayment();t.loadData=function(r){n.akDataLoadingStringAdd("ServiceInvoiceListLoadData");i.serviceInvoice.getListItems(r).then(function(i){i.data.errorMessage.length<=0?(t.items=i.data.items,AK.System.alert("ServiceInvoice laod data success"),t.eetActive=i.data.eetActive,t.paging=i.data.paging,t.setRange()):(AK.System.alert("ServiceInvoice load data failed"),AK.System.ShowMessage(i.data.errorMessage));$(".serviceInvoiceContainer").removeClass("visibilityOff");n.akDataLoadingStringRemove("ServiceInvoiceListLoadData")},function(){AK.System.alert("Get serviceInvoice data failed");$(".serviceInvoiceContainer").removeClass("visibilityOff");n.akDataLoadingStringRemove("ServiceInvoiceListLoadData")})};t.loadData(t.paging.Page);t.loadFilter=function(){n.akDataLoadingStringAdd("ServiceInvoiceListLoadFilterData");i.serviceInvoice.getListFilter().then(function(i){i.data.errorMessage.length<=0?(t.filter=i.data.filter,AK.System.alert("ServiceInvoice load filter data success")):(AK.System.alert("ServiceInvoice load filter data failed"),AK.System.ShowMessage(i.data.ErrorMessage));n.akDataLoadingStringRemove("ServiceInvoiceListLoadFilterData")},function(){AK.System.alert("ServiceInvoice load filter data failed");n.akDataLoadingStringRemove("ServiceInvoiceListLoadFilterData")})};t.loadFilter();t.setFilter=function(){i.serviceInvoice.setListFilter(t.filter).then(function(n){n.data.errorMessage.length<=0?(AK.System.alert("Set serviceInvoice filter success"),t.loadData(1)):(AK.System.alert("Set serviceInvoice filter failed"),AK.System.ShowMessage(n.data.errorMessage))},function(){AK.System.alert("Set serviceInvoice filter failed")})};t.selectedInvoiceId=undefined;t.showStornoModal=function(n,i){i!==!0||t.eetActive===!0?(t.selectedInvoiceId=n,$("#ModalStorno").modal("show"),AK.System.alert("Storno - show modal")):$("#ModalStornoNoEETActive").modal("show")};t.storno=function(n){$("#ModalStorno").modal("hide");i.serviceInvoice.storno(n).then(function(n){n.data.errorMessage.length<=0?(AK.System.alert("Storno serviceInvoice success"),t.loadData(1)):(AK.System.alert("Storno serviceInvoice failed"),AK.System.ShowMessage(n.data.errorMessage))},function(){AK.System.alert("Storno serviceInvoice failed")})};t.changeIsPaid=function(n){i.serviceInvoice.setPaid(n.Id,n.IsPaid).then(function(n){AK.System.ShowMessage(n.data.message)},function(){AK.System.alert("Set invoice paid failed")})};t.paymentChange=function(n,t){i.serviceInvoice.setPayment(n.Id,n.Payment).then(function(i){AK.System.ShowMessage(i.data.message);i.data.success===!1&&(n.Payment=t)},function(){AK.System.alert("Set invoice payment failed");n.Payment=t})};t.ranges=[];t.setRange=function(){var i=5,r=Math.ceil(i/2)-1,u,f=t.paging.Total,n;for(u=t.paging.Page<=r+1?1:t.paging.Page>f-r?Math.max(1,f-i+1):t.paging.Page-r+1,t.ranges=[],n=u;n<u+i-1;n++)n>=1&&n<=f&&t.ranges.push(n)};t.setRange();t.prevPage=function(){t.paging.Page>1&&t.setPage(t.paging.Page-1)};t.prevPageDisabled=function(){return t.paging.Page===1?"prev disabled":""};t.nextPage=function(){t.paging.Page<t.paging.Total&&t.paging.Page++};t.nextPageDisabled=function(){return t.paging.Page===t.paging.Total?"next disabled":""};t.setPage=function(n){t.paging.Page=n;t.loadData(t.paging.Page)}},AK.ServiceInvoice.initCreate=function(n,t,i,r,u,f,e,o){AK.System.alert("@ServiceInvoice.initList");t.defaultVat=o;t.formSubmitted=!1;t.invoice=undefined;t.serviceSheetId=u;t.aresVerificationActive=!1;t.errorMessage="";t.roundFormat=Number(e.replace(",","."));$("#aksicctrl input").keydown(function(n){if(n.keyCode==13)return $(this).next().focus(),!1});t.loadData=function(){n.akDataLoadingStringAdd("ServiceInvoiceCreatingLoadData");r.serviceInvoice.getCreatingData(t.serviceSheetId).then(function(i){i.data.errorMessage.length<=0?(t.invoice=i.data.invoice,t.initDateTimePicker(),t.initValues(),t.calcSum(!0),t.invoice.VariableCode=t.invoice.Code,AK.System.alert("ServiceInvoice laod data success")):(AK.System.alert("ServiceInvoice load data failed"),AK.System.ShowMessage(i.data.ErrorMessage));$(".serviceInvoiceCreatingContainer").removeClass("visibilityOff");n.akDataLoadingStringRemove("ServiceInvoiceCreatingLoadData")},function(){AK.System.alert("Get serviceInvoice data failed");$(".serviceInvoiceCreatingContainer").removeClass("visibilityOff");n.akDataLoadingStringRemove("ServiceInvoiceCreatingLoadData")})};t.loadData();t.create=function(){t.formSubmitted=!0;t.CheckValidItems()&&!t.serviceInvoiceForm.$invalid?$("#EETModal").modal("show"):AK.System.ShowMessage(f)};t.createSend=function(){if($("#EETModal").modal("hide"),t.formSubmitted=!0,t.CheckValidItems()&&!t.serviceInvoiceForm.$invalid){n.akDataLoadingStringAdd("ServiceInvoiceCreatingCreate");var i=t.invoice.OwnerId!=null&&t.invoice.OwnerId!=AK.System.GuidEmpty;r.serviceInvoice.create(t.invoice).then(function(r){r.data.errorMessage.length<=0?(AK.System.alert("ServiceInvoice creating success"),r.data.eetErrorMessage.length>0&&AK.System.alert("EET ErrorMessage: "+r.data.eetErrorMessage),window.location.href=i?"/ServiceInvoice/List/owner/"+t.invoice.OwnerId:"/ServiceInvoice/List"):(AK.System.alert("ServiceInvoice creating failed"),AK.System.ShowMessage(r.data.ErrorMessage));$(".serviceInvoiceCreatingContainer").removeClass("visibilityOff");n.akDataLoadingStringRemove("ServiceInvoiceCreatingCreate")},function(){AK.System.alert("ServiceInvoice creating failed");$(".serviceInvoiceCreatingContainer").removeClass("visibilityOff");n.akDataLoadingStringRemove("ServiceInvoiceCreatingCreate")})}};t.hasValidItems=!1;t.CheckValidItems=function(){var n,r,i;for(t.hasValidItems=!1,n=0,r=t.invoice.Items.length;n<r;n++)if(i=t.invoice.Items[n],Number(i.Amount.toString().replace(",","."))!=0&&!isNaN(AK.Common.toNumber(i.Price))&&AK.Common.toNumber(i.Price)!=0){t.hasValidItems=!0;break}return t.hasValidItems};t.addRow=function(){var n={Text:"",Amount:"",Price:"",Discount:"",VAT:Number(t.defaultVat),PriceDiscount:"",PriceDiscountVAT:"",Order:t.invoice.Items.length};t.invoice.Items.push(n)};t.initValues=function(){t.invoice.Items.forEach(function(n){n.Price=n.Price==0?"":n.Price.toFixed(2).toString().replace(".",",");n.PriceVAT=n.PriceVAT==0?"":n.PriceVAT.toFixed(2).toString().replace(".",",");n.Amount=n.Amount==0?"":n.Amount.toFixed(2).toString().replace(".",",");n.VAT==0&&(n.VAT="");n.Discount=n.Discount==0?"":n.Discount.toFixed(2).toString().replace(".",",")})};t.initDateTimePicker=function(){$("#releaseDate").datetimepicker().on("changeDate",function(n){var t=new Date(n.date.valueOf()),i,r;$("#dueDate").datetimepicker("setStartDate",t);$("#taxableDate").datetimepicker("setStartDate",t);i=$("#dueDate").datetimepicker("getDate");r=$("#taxableDate").datetimepicker("getDate");t>i&&$("#dueDate").datetimepicker("setDate",t);t>r&&$("#taxableDate").datetimepicker("setDate",t)});var n=$("#releaseDate").datetimepicker("getDate");$("#taxableDate").datetimepicker("setStartDate",n);$("#dueDate").datetimepicker("setStartDate",n)};t.priceSum=0;t.priceSumVat=0;t.vatSum=0;t.priceSumRound=0;t.priceSumVatRound=0;t.roundValue=0;t.roundValueVat=0;t.calcSum=function(n){var i=0,r=0,u,f;t.invoice.Items.forEach(function(t){var e=Number(t.Amount.toString().replace(",",".")),o=Number(t.Price.toString().replace(",",".")),l=Number(t.Discount.toString().replace(",",".")),s=Number(t.VAT.toString().replace(",",".")),h=o*((100-l)/100),u=Number(h*e),f=Number(h*(100+s)/100*e),c;n&&(c=Number(o*(100+s)/100),t.PriceVAT=u!=0?Number(c).toFixed(2).toString().replace(".",","):"");t.PriceDiscount=u!=0?Number(u).toFixed(2).toString().replace(".",","):"";t.PriceDiscountVAT=f!=0?Number(f).toFixed(2).toString().replace(".",","):"";i+=u;r+=f});t.priceSum=i!=0?i.toFixed(2).toString().replace(".",","):"";t.priceSumVat=r!=0?r.toFixed(2).toString().replace(".",","):"";t.vatSum=r-i!=0?(r-i).toFixed(2).toString().replace(".",","):"";u=AK.Common.numberRoundUp(i,t.roundFormat);f=AK.Common.numberRoundUp(r,t.roundFormat);t.roundValue=u-i!=0?(u-i).toFixed(2).toString().replace(".",","):"";t.roundValueVat=f-r!=0?(f-r).toFixed(2).toString().replace(".",","):"";t.priceSumRound=u!=0?u.toFixed(2).toString().replace(".",","):"";t.priceSumVatRound=f!=0?f.toFixed(2).toString().replace(".",","):""};t.calcSumWithVAT=function(n){var i=Number(n.PriceVAT.toString().replace(",",".")),r=Number(n.VAT.toString().replace(",",".")),u=i/(100+r)*100;n.Price=u.toFixed(2).toString().replace(".",",");t.calcSum(!1)};t.changeReleaseDate=function(){};t.modalSelectCustomerContent="";t.selectCustomerClick=function(){r.serviceCustomer.getModalSelectContent().then(function(n){n.data.errorMessage.length<=0?(t.modalSelectCustomerContent=i.trustAsHtml(n.data.content),$("#ModalSelectCustomer").modal("show"),AK.System.alert("Get select customer content success")):AK.System.alert(n.data.errorMessage)},function(){AK.System.alert("Get select custoer content failed")})};n.$on("ServiceCustomer_Select",function(n,i){AK.System.alert("Service customer selected - id: "+i);i!=AK.System.GuidEmpty?r.serviceCustomer.getData(i).then(function(n){$("#ModalSelectCustomer").modal("hide");n.data.errorMessage.length<=0?(t.setReceiverData(n.data.customer),AK.System.alert("Set customer success")):AK.System.alert(n.data.errorMessage)},function(){AK.System.alert("Set customer failed")}):AK.System.alert("Nekde se stala chyba - vyber zakaznika vratilo neplatne ID")});t.setReceiverData=function(n){if(n!=null){t.invoice.OwnerId=n.Id;var i=n.ContactName;n.CompanyName.length>0&&n.CompanyName!=n.ContactName&&(i=i+" - "+n.CompanyName);t.invoice.Receiver.Name=i;n.ResidentialAddress!=null&&(n.ResidentialAddress.Street.length>0||n.ResidentialAddress.Town.length>0||n.ResidentialAddress.Zip.length>0)?(t.invoice.Receiver.Street=n.ResidentialAddress.Street!=null&&n.ResidentialAddress.Street.length>0?n.ResidentialAddress.Street:"",t.invoice.Receiver.Town=n.ResidentialAddress.Town!=null&&n.ResidentialAddress.Town.length>0?n.ResidentialAddress.Town:"",t.invoice.Receiver.Zip=n.ResidentialAddress.Zip!=null&&n.ResidentialAddress.Zip.length>0?n.ResidentialAddress.Zip:""):n.PostalAddress!=null&&(n.PostalAddress.Street.length>0||n.PostalAddress.Town.length>0||n.PostalAddress.Zip.length>0)?(t.invoice.Receiver.Street=n.PostalAddress.Street!=null&&n.PostalAddress.Street.length>0?n.PostalAddress.Street:"",t.invoice.Receiver.Town=n.PostalAddress.Town!=null&&n.PostalAddress.Town.length>0?n.PostalAddress.Town:"",t.invoice.Receiver.Zip=n.PostalAddress.Zip!=null&&n.PostalAddress.Zip.length>0?n.PostalAddress.Zip:""):(t.invoice.Receiver.Street="",t.invoice.Receiver.Town="",t.invoice.Receiver.Zip="");t.invoice.Receiver.Email=n.Email;n.ICO.length>0&&(t.invoice.Receiver.ICO=n.ICO);n.DIC.length>0&&(t.invoice.Receiver.DIC=n.DIC);t.invoice.Receiver.Mobile=n.Mobile;t.invoice.Receiver.IsVATPayer=n.IsVATPayer==!0}};t.getAres=function(){t.invoice.Receiver.ICO=t.invoice.Receiver.ICO.replace(/\D/g,"");t.aresSuccess=!1;t.errorMessage="";t.invoice.Receiver.ICO!=""&&(t.aresVerificationActive=!0,r.Account.getAres(t.invoice.Receiver.ICO).then(function(n){n.data.errorMessage.length<=0?(t.invoice.Receiver.DIC=n.data.ares.DIC,t.invoice.Receiver.Name=n.data.ares.CompanyName,t.invoice.Receiver.Street=n.data.ares.Address.Street,t.invoice.Receiver.Town=n.data.ares.Address.Town,t.invoice.Receiver.Zip=n.data.ares.Address.Zip,t.aresVerificationActive=!1):(t.aresVerificationActive=!1,t.errorMessage=n.data.errorMessage)},function(){AK.System.alert("Get Ares data for customer failed")}))}},AK.ServiceCustomer.initList=function(n,t,i,r,u,f,e){AK.System.alert("@ServiceCustomer.initList");t.customers=undefined;t.filter={Search:""};t.isEmptyFilter=!0;t.paging={Page:u,Size:5,Total:1};t.modalNewTitleText=f;t.modalEditTitleText=e;t.modalEditTitle="";t.customerEdit=undefined;t.loadData=function(r){n.akDataLoadingStringAdd("ServiceCustomerListLoadData");i.serviceCustomer.getListItems(r).then(function(i){i.data.errorMessage.length<=0?(t.customers=i.data.items,AK.System.alert("ServiceCustomer laod data success"),t.paging=i.data.paging,t.setRange()):(AK.System.alert("ServiceCustomer load data failed"),AK.System.ShowMessage(i.data.ErrorMessage));$(".serviceCustomerContainer").removeClass("visibilityOff");n.akDataLoadingStringRemove("ServiceCustomerListLoadData")},function(){AK.System.alert("Get serviceCustomer data failed");$(".serviceCustomerContainer").removeClass("visibilityOff");n.akDataLoadingStringRemove("ServiceCustomerListLoadData")})};t.loadData(t.paging.Page);t.loadFilter=function(){n.akDataLoadingStringAdd("ServiceCustomerListLoadFilterData");i.serviceCustomer.getListFilter().then(function(i){i.data.errorMessage.length<=0?(t.filter=i.data.filter,i.data.filter!=null&&i.data.filter!=undefined&&(t.isEmptyFilter=i.data.filter.Search.length<=0),AK.System.alert("ServiceCustomer load filter data success")):(AK.System.alert("ServiceCustomer load filter data failed"),AK.System.ShowMessage(i.data.ErrorMessage));n.akDataLoadingStringRemove("ServiceCustomerListLoadFilterData")},function(){AK.System.alert("ServiceCustomer load filter data failed");n.akDataLoadingStringRemove("ServiceCustomerListLoadFilterData")})};t.loadFilter();t.setFilter=function(){i.serviceCustomer.setListFilter(t.filter).then(function(n){n.data.errorMessage.length<=0?(AK.System.alert("Set serviceCustomer filter success"),t.loadData(1),t.isEmptyFilter=t.filter.Search.length<=0):(AK.System.alert("Set serviceCustomer filter failed"),AK.System.ShowMessage(n.data.errorMessage))},function(){AK.System.alert("Set serviceCustomer filter failed")})};t.resetFilter=function(){t.filter.Search="";t.setFilter()};t.selectedCustomerId=undefined;t.deleteClick=function(n){t.selectedCustomerId=n;$("#ModalDelete").modal("show");AK.System.alert("Delete servicecustomer - show modal")};t.delete=function(n){$("#ModalDelete").modal("hide");i.serviceCustomer.remove(n).then(function(n){n.data.success==!0?(AK.System.alert("Delete serviceCustomer success"),t.loadData(1)):AK.System.alert("Delete serviceCustomer failed");AK.System.ShowMessage(n.data.message)},function(){AK.System.alert("Delete serviceCustomer failed")})};t.showCars=function(n){window.location="/garage/owner/"+n};t.showInvoices=function(n){window.location="/serviceinvoice/list/owner/"+n};t.editClick=function(n){t.modalEditTitle=n==AK.System.GuidEmpty?t.modalNewTitleText:t.modalEditTitleText;i.serviceCustomer.getModalEditContent(n,AK.System.GuidEmpty).then(function(n){n.data.errorMessage.length<=0?(t.modalEditContent=r.trustAsHtml(n.data.content),$("#ModalEditCustomer").modal("show"),AK.System.alert("Get edit content success")):AK.System.ShowMessage(n.data.errorMessage)},function(){AK.System.alert("Get edit content failed")})};n.$on("ServiceCustomer_SaveSuccess",function(n,r){$("#ModalEditCustomer").modal("hide");var u=!0;t.customers.forEach(function(n){n.Id==r&&(u=!1)});u?t.loadData(1):i.serviceCustomer.getData(r).then(function(n){if(n.data.errorMessage.length<=0){for(var i=0;i<t.customers.length;i++)if(t.customers[i].Id==r){t.customers[i]=n.data.customer;break}AK.System.alert("Reload edited customer success")}else AK.System.ShowMessage(n.data.errorMessage)},function(){AK.System.alert("Get data for customer failed")})});t.ranges=[];t.setRange=function(){var i=5,r=Math.ceil(i/2)-1,u,f=t.paging.Total,n;for(u=t.paging.Page<=r+1?1:t.paging.Page>f-r?Math.max(1,f-i+1):t.paging.Page-r+1,t.ranges=[],n=u;n<u+i-1;n++)n>=1&&n<=f&&t.ranges.push(n)};t.setRange();t.prevPage=function(){t.paging.Page>1&&t.setPage(t.paging.Page-1)};t.prevPageDisabled=function(){return t.paging.Page===1?"prev disabled":""};t.nextPage=function(){t.paging.Page<t.paging.Total&&t.paging.Page++};t.nextPageDisabled=function(){return t.paging.Page===t.paging.Total?"next disabled":""};t.setPage=function(n){t.paging.Page=n;t.loadData(t.paging.Page)}},AK.ServiceCustomer.initEdit=function(n,t,i,r,u,f){AK.System.alert("@ServiceCustomer.initList");t.formSubmitted=!1;t.customerId=u;t.carId=f;t.aresVerificationActive=!1;t.errorMessage="";t.loadData=function(){n.akDataLoadingStringAdd("ServiceCustomerEditLoadData");i.serviceCustomer.getData(t.customerId).then(function(i){i.data.errorMessage.length<=0?(t.customer=i.data.customer,AK.System.alert("Get data for customer success")):AK.System.ShowMessage(i.data.errorMessage);n.akDataLoadingStringRemove("ServiceCustomerEditLoadData")},function(){AK.System.alert("Get data for customer failed");n.akDataLoadingStringRemove("ServiceCustomerEditLoadData")})};t.loadData();t.saveData=function(){if(AK.System.alert("@ServiceCustomer.savedata"),t.formSubmitted=!0,t.customerEditForm.$invalid)return!1;i.serviceCustomer.setData(t.customer,t.carId).then(function(t){t.data.success==!0?(n.$emit("ServiceCustomer_SaveSuccess",t.data.customerId),AK.System.alert("Get data for customer success")):AK.System.ShowMessage(t.data.errorMessage)},function(){AK.System.alert("Get data for customer failed")})};t.getAres=function(){t.customer.ICO=t.customer.ICO.replace(/\D/g,"");t.aresSuccess=!1;t.errorMessage="";t.customer.ICO!=""&&(t.aresVerificationActive=!0,i.Account.getAres(t.customer.ICO).then(function(n){n.data.errorMessage.length<=0?(t.customer.DIC=n.data.ares.DIC,t.customer.CompanyName=n.data.ares.CompanyName,t.customer.ResidentialAddress=n.data.ares.Address,t.customer.PostalAddress=n.data.ares.Address,t.aresVerificationActive=!1):(t.aresVerificationActive=!1,t.errorMessage=n.data.errorMessage)},function(){AK.System.alert("Get Ares data for customer failed")}))}},AK.ServiceCustomer.initSelect=function(n,t,i,r,u){AK.System.alert("@ServiceCustomer.initSelect");t.customers=undefined;t.filter={Search:""};t.isEmptyFilter=!0;t.paging={Page:u,Size:5,Total:1};t.loadData=function(r,u){u&&n.akDataLoadingStringAdd("ServiceCustomerSelectLoadData");i.serviceCustomer.getListItems(r).then(function(i){i.data.errorMessage.length<=0?(t.customers=i.data.items,AK.System.alert("ServiceCustomerSelect load data success"),t.paging=i.data.paging,t.setRange()):(AK.System.alert("ServiceCustomerSelect load data failed"),AK.System.ShowMessage(i.data.ErrorMessage));$(".serviceCustomerContainer").removeClass("visibilityOff");u&&n.akDataLoadingStringRemove("ServiceCustomerSelectLoadData")},function(){AK.System.alert("ServiceCustomerSelect load data failed");$(".serviceCustomerContainer").removeClass("visibilityOff");u&&n.akDataLoadingStringRemove("ServiceCustomerSelectLoadData")})};t.loadData(t.paging.Page,!0);t.loadFilter=function(){n.akDataLoadingStringAdd("ServiceCustomerSelectListLoadFilterData");i.serviceCustomer.getListFilter().then(function(i){i.data.errorMessage.length<=0?(t.filter=i.data.filter,i.data.filter!=null&&i.data.filter!=undefined&&(t.isEmptyFilter=i.data.filter.Search.length<=0),AK.System.alert("ServiceCustomerSelect load filter data success")):(AK.System.alert("ServiceCustomerSelect load filter data failed"),AK.System.ShowMessage(i.data.ErrorMessage));n.akDataLoadingStringRemove("ServiceCustomerSelectListLoadFilterData")},function(){AK.System.alert("ServiceCustomerSelect load filter data failed");n.akDataLoadingStringRemove("ServiceCustomerSelectListLoadFilterData")})};t.loadFilter();t.setFilter=function(){i.serviceCustomer.setListFilter(t.filter).then(function(n){n.data.errorMessage.length<=0?(AK.System.alert("Set serviceCustomerSelect filter success"),t.loadData(1,!1),t.isEmptyFilter=t.filter.Search.length<=0):(AK.System.alert("Set serviceCustomerSelect filter failed"),AK.System.ShowMessage(n.data.errorMessage))},function(){AK.System.alert("Set serviceCustomerSelect filter failed")})};t.resetFilter=function(){t.filter.Search="";t.setFilter()};t.select=function(t){n.$emit("ServiceCustomer_Select",t)};t.ranges=[];t.setRange=function(){var i=5,r=Math.ceil(i/2)-1,u,f=t.paging.Total,n;for(u=t.paging.Page<=r+1?1:t.paging.Page>f-r?Math.max(1,f-i+1):t.paging.Page-r+1,t.ranges=[],n=u;n<u+i-1;n++)n>=1&&n<=f&&t.ranges.push(n)};t.setRange();t.prevPage=function(){t.paging.Page>1&&t.setPage(t.paging.Page-1)};t.prevPageDisabled=function(){return t.paging.Page===1?"prev disabled":""};t.nextPage=function(){t.paging.Page<t.paging.Total&&t.paging.Page++};t.nextPageDisabled=function(){return t.paging.Page===t.paging.Total?"next disabled":""};t.setPage=function(n){t.paging.Page=n;t.loadData(t.paging.Page)}},AK.RegistrationAdmin.initList=function(n,t,i,r){AK.System.alert("@Registration.List.init");t.AKHub=r;t.items=[];t.selectedRegistrationId="";t.loadData=function(){AK.System.alert("Load bad registration");n.akDataLoadingStringAdd("RegistrationBadListLoadData");i.registrationAdmin.getList().then(function(i){i.data.errorMessage.length<=0?(AK.System.alert("Registration list load data success"),t.items=i.data.items):(AK.System.alert("Registration list load data failed"),AK.System.ShowMessage(i.data.errorMessage));n.akDataLoadingStringRemove("RegistrationBadListLoadData");$("#registrationListContainer").removeClass("visibilityOff")},function(){n.akDataLoadingStringRemove("RegistrationBadListLoadData");$("#registrationListContainer").removeClass("visibilityOff")})};t.loadData();t.deleteClick=function(n){t.selectedRegistrationId=n;$("#ModalDelete").modal("show")};t.delete=function(){$("#ModalDelete").modal("hide");AK.System.alert("Delete registration");n.akDataLoadingStringAdd("RegistrationBadListDeleteData");i.registrationAdmin.delete(t.selectedRegistrationId).then(function(i){AK.System.ShowMessage(i.data.message);AK.System.alert(i.data.message);n.akDataLoadingStringRemove("RegistrationBadListDeleteData");t.AKHub.registrationStatusChanged(t.selectedRegistrationId);i.data.succes===!0&&setTimeout(function(){window.location="/administration/registration/list"},2e3)},function(){n.akDataLoadingStringRemove("RegistrationBadListDeleteData")})};t.lastUpdateData=Date.now();AK.System.alert("lastupdate: "+t.lastUpdateData);n.$on("registrationStatusReload",function(){var n=Date.now();t.loadData();t.lastUpdateData=n})},AK.RegistrationAdmin.initDetail=function(n,t,r,u,f){AK.System.alert("@Registration.Detail.init");t.registrationId=u;t.AKHub=f;t.data=undefined;t.formSubmitted=!1;t.storages=[];t.storageSelected="";t.types=[];t.typeSelected=undefined;t.loadData=function(i){AK.System.alert("Load data registration");n.akDataLoadingStringAdd("RegistrationBadDetailLoadData");r.registrationAdmin.get(i).then(function(i){i.data.errorMessage.length<=0?(AK.System.alert("Registration load data success"),t.data=i.data.data,t.storages=i.data.storages,t.types=i.data.types,t.enumInit()):(AK.System.alert("Registration load data failed"),AK.System.ShowMessage(i.data.errorMessage),setTimeout(function(){window.location="/administration/registration/list"},2e3));n.akDataLoadingStringRemove("RegistrationBadDetailLoadData");$("#registrationDetailContainer").removeClass("visibilityOff")},function(){n.akDataLoadingStringRemove("RegistrationBadDetailLoadData");$("#registrationDetailContainer").removeClass("visibilityOff")})};t.loadData(t.registrationId);t.save=function(){t.formSubmitted=!0;t.registrationAdminForm.$invalid||(AK.System.alert("Set registration data"),n.akDataLoadingStringAdd("RegistrationBadDetailSetData"),r.registrationAdmin.set(t.data).then(function(i){n.akDataLoadingStringRemove("RegistrationBadDetailSetData");AK.System.ShowMessage(i.data.message);i.data.success===!0?(t.AKHub.registrationStatusChanged(t.registrationId),AK.System.alert("Registration set data success"),setTimeout(function(){window.location="/administration/registration/list"},2e3)):AK.System.alert("Registration set data failed")},function(){n.akDataLoadingStringRemove("RegistrationBadDetailSetData")}))};t.enumInit=function(){for(i=0;i<t.types.length;i++)if(t.types[i].Value==t.data.Registration.Type.toString()){t.typeSelected=t.types[i];break}for(i=0;i<t.storages.length;i++)if(t.storages[i].Value==t.data.Registration.Storage){t.storageSelected=t.storages[i];break}};t.unlock=function(){AK.System.alert("Unlock registration");n.akDataLoadingStringAdd("RegistrationBadDetailUnlock");r.registrationAdmin.unlock(t.registrationId).then(function(i){n.akDataLoadingStringRemove("RegistrationBadDetailUnlock");AK.System.ShowMessage(i.data.message);i.data.success===!0?(t.AKHub.registrationStatusChanged(t.registrationId),AK.System.alert("Registration unlock success"),setTimeout(function(){window.location="/administration/registration/list"},2e3)):AK.System.alert("Registration set data failed")},function(){n.akDataLoadingStringRemove("RegistrationBadDetailUnlock")})};t.storageChange=function(){t.data.Registration.Storage=t.storageSelected.Value};t.typeChange=function(){t.data.Registration.Type=t.typeSelected.Value}},AK.OrderAdmin.initList=function(n,t,i,r){AK.System.alert("@OrderAdmin.List.init");t.AKHub=r;t.items=[];t.loadData=function(){AK.System.alert("Load carts");n.akDataLoadingStringAdd("OrderAdminListLoadData");i.orderAdmin.getList().then(function(i){i.data.errorMessage.length<=0?(AK.System.alert("OrderAdmin list load data success"),t.items=i.data.items):(AK.System.alert("OrrderAdmin list load data failed"),AK.System.ShowMessage(i.data.errorMessage));n.akDataLoadingStringRemove("OrderAdminListLoadData");$("#orderAdminListContainer").removeClass("visibilityOff")},function(){n.akDataLoadingStringRemove("OrderAdminListLoadData");$("#orderAdminListContainer").removeClass("visibilityOff")})};t.loadData();t.lastUpdateData=Date.now();AK.System.alert("lastupdate: "+t.lastUpdateData);n.$on("orderStatusReload",function(){var n=Date.now();t.loadData();t.lastUpdateData=n})},AK.OrderAdmin.initDetail=function(n,t,i,r,u,f){AK.System.alert("@Cart.getRecapitulation");t.AKHub=f;t.cartId=u;t.data=null;t.userInfo=null;t.takeOff=null;t.payment=null;t.note="";t.invoiceNote="";t.loadData=function(){AK.System.alert("Load cart detail");n.akDataLoadingStringAdd("OrderAdminDetailLoadData");i.orderAdmin.getData(t.cartId).then(function(i){i.data.errorMessage.length<=0?(AK.System.alert("OrderAdmin detail load data success"),t.data=i.data.data,t.userInfo=r.trustAsHtml(i.data.data.UserInfo),t.takeOff=r.trustAsHtml(i.data.data.TakeOff),t.payment=r.trustAsHtml(i.data.data.Payment)):(AK.System.alert("OrrderAdmin detail load data failed"),AK.System.ShowMessage(i.data.errorMessage));n.akDataLoadingStringRemove("OrderAdminDetailLoadData");$("#OrderAdminDetailContainer").removeClass("visibilityOff")},function(){n.akDataLoadingStringRemove("OrderAdminDetailLoadData");$("#OrderAdminDetailContainer").removeClass("visibilityOff")})};t.loadData();t.loadItems=function(){AK.System.alert("Load cart items detail");n.akDataLoadingStringAdd("OrderAdminDetailLoadItems");i.orderAdmin.getItems(t.cartId).then(function(i){i.data.errorMessage.length<=0?(AK.System.alert("OrderAdmin detail load items success"),t.data.Items=i.data.items,t.data.Price=i.data.price,t.data.PriceVat=i.data.priceVat):(AK.System.alert("OrrderAdmin detail load items failed"),AK.System.ShowMessage(i.data.errorMessage));n.akDataLoadingStringRemove("OrderAdminDetailLoadItems")},function(){n.akDataLoadingStringRemove("OrderAdminDetailLoadItems")})};t.amountChange=function(r){AK.System.alert("Change amount cart item: "+r.Amount);AK.System.alert(r.Amount);n.akDataLoadingStringAdd("OrderAdminDetailChangeItemAmount");i.orderAdmin.changeItemAmount(t.cartId,r.Id,r.Amount).then(function(i){i.data.success===!0&&(AK.System.alert("Change amount cart item success"),t.loadItems());AK.System.ShowMessage(i.data.message);n.akDataLoadingStringRemove("OrderAdminDetailChangeItemAmount")},function(){n.akDataLoadingStringRemove("OrderAdminDetailChangeItemAmount")})};t.deleteItemId="";t.deleteItemClick=function(n){t.deleteItemId=n.Id;$("#DeleteItemModal").modal("show")};t.deleteItemConfirmClick=function(){$("#DeleteItemModal").modal("hide");AK.System.alert("Delete cart item");n.akDataLoadingStringAdd("OrderAdminDetailDeleteItem");i.orderAdmin.deleteItem(t.cartId,t.deleteItemId).then(function(i){i.data.success===!0&&(AK.System.alert("Delete cart item success"),t.loadItems());AK.System.ShowMessage(i.data.message);n.akDataLoadingStringRemove("OrderAdminDetailDeleteItem")},function(){n.akDataLoadingStringRemove("OrderAdminDetailDeleteItem")})};t.deleteClick=function(){AK.System.alert("Delete order");n.akDataLoadingStringAdd("OrderAdminDetailDeleteOrder");i.orderAdmin.delete(t.cartId).then(function(i){i.data.success===!0&&(t.AKHub.orderStatusChanged(),AK.System.alert("Delete cart item success"),setTimeout(function(){window.location="/administration/order/list"},2e3));AK.System.ShowMessage(i.data.message);n.akDataLoadingStringRemove("OrderAdminDetailDeleteOrder")},function(){n.akDataLoadingStringRemove("OrderAdminDetailDeleteOrder")})};t.unlock=function(){AK.System.alert("Unlock order");n.akDataLoadingStringAdd("OrderAdminUnlock");i.orderAdmin.unlock(t.cartId).then(function(i){i.data.success===!0&&(t.AKHub.orderStatusChanged(),AK.System.alert("Unlock order success"),setTimeout(function(){window.location="/administration/order/list"},2e3));AK.System.ShowMessage(i.data.message);n.akDataLoadingStringRemove("OrderAdminUnlock")},function(){n.akDataLoadingStringRemove("OrderAdminUnlock")})};t.confirmClick=function(){AK.System.alert("Confirm order");n.akDataLoadingStringAdd("OrderAdminConfirm");var r={CartId:t.cartId,UserNote:t.note,InvoiceNote:t.invoiceNote};i.orderAdmin.confirm(r).then(function(i){i.data.success===!0&&(t.AKHub.orderStatusChanged(),AK.System.alert("Unlock order success"),setTimeout(function(){window.location="/administration/order/list"},2e3));AK.System.ShowMessage(i.data.message);n.akDataLoadingStringRemove("OrderAdminConfirm")},function(){n.akDataLoadingStringRemove("OrderAdminConfirm")})}},OrderPromiseDayRange=3,AK.OrderPromise.initList=function(n,t,i){AK.System.alert("@OrderPromise.List.init");t.items=[];t.filter=undefined;AK.System.HideLeftMenu();t.filterProcess=function(){t.loadData()};t.loadFilter=function(){AK.System.alert("@OrderPromise.List load filter");n.akDataLoadingStringAdd("OrderPromiseListLoadFilter");i.orderPromise.getFilter().then(function(i){i.data.errorMessage.length<=0?(AK.System.alert("OrderPromise list load filter success"),t.filter=i.data.filter,t.initDateTimePicker(),t.loadData()):(AK.System.alert("OrderPromise list load filter failed"),AK.System.ShowMessage(i.data.errorMessage));n.akDataLoadingStringRemove("OrderPromiseListLoadFilter")},function(){n.akDataLoadingStringRemove("OrderPromiseListLoadFilter")})};t.loadFilter();t.loadData=function(){AK.System.alert("@OrderPromise.List load items");n.akDataLoadingStringAdd("OrderPromiseListLoadData");i.orderPromise.getList(t.filter).then(function(i){i.data.errorMessage.length<=0?(AK.System.alert("OrderPromise list load data success"),t.items=i.data.items):(AK.System.alert("OrderPromise list load data failed"),AK.System.ShowMessage(i.data.errorMessage));n.akDataLoadingStringRemove("OrderPromiseListLoadData");$("#OrderPromiseListContainer").removeClass("visibilityOff")},function(){n.akDataLoadingStringRemove("OrderPromiseListLoadData");$("#OrderPromiseListContainer").removeClass("visibilityOff")})};t.exportCsvFile=function(){n.akDataLoadingStringAdd("OrderPromiseListExportData");i.orderPromise.getExportCsvFileContent(t.filter).then(function(t){var r=t.data.content,u,i;if(r.length<=0)return AK.System.ShowModalMessage(t.data.errorMessage),!1;window.navigator.msSaveOrOpenBlob?(u=new Blob([decodeURIComponent(encodeURI(r))],{type:"text/csv;charset=utf-8;"}),navigator.msSaveBlob(u,"Export.csv")):(i=document.createElement("a"),i.href="data:attachment/csv,"+encodeURI(r),i.target="_blank",i.download="Export.csv",document.body.appendChild(i),i.click());n.akDataLoadingStringRemove("OrderPromiseListExportData")},function(){AK.System.alert("Sales export data failed");n.akDataLoadingStringRemove("OrderPromiseListExportData")})};t.datesValid=function(){var u=new Date,i=t.stringToDate(t.filter.From),n=t.stringToDate(t.filter.To),r=n.getDate()-i.getDate();return i<n&&r>=0&&r<=OrderPromiseDayRange&&n<=u};t.initDateTimePicker=function(){var n=new Date,i;t.filter.To==""&&(t.filter.To=t.dateToString(n));t.filter.From==""&&(i=new Date(n),i.setDate(n.getDate()-OrderPromiseDayRange),t.filter.From=t.dateToString(i));$("#orderPromiseDateTo").datetimepicker({language:AK.System.datePickerLanguage,weekStart:1,todayBtn:1,autoclose:1,todayHighlight:1,forceParse:0,showMeridian:1,endDate:n,format:"dd.mm.yyyy hh:ii",startView:2,minView:1}).on("changeDate",function(n){var r=new Date(n.date.valueOf()),i;fromDate=t.stringToDate(t.filter.From);i=new Date(r);i.setDate(r.getDate()-OrderPromiseDayRange);(fromDate>r||fromDate<i)&&(fromDate=i,t.filter.From=t.dateToString(fromDate),t.$apply(),AK.System.ShowMessage("Došlo k přenastavení datumu 'Od'"))});$("#orderPromiseDateFrom").datetimepicker({language:AK.System.datePickerLanguage,weekStart:1,todayBtn:1,autoclose:1,todayHighlight:1,forceParse:0,showMeridian:1,endDate:n,format:"dd.mm.yyyy hh:ii",startView:2,minView:1}).on("changeDate",function(n){var r=new Date(n.date.valueOf()),i,u;toDate=t.stringToDate(t.filter.To);i=new Date(r);i.setDate(r.getDate()+OrderPromiseDayRange);(r>toDate||toDate>i)&&(toDate=i,u=new Date,toDate>u&&toDate.setDate(u),t.filter.To=t.dateToString(toDate),t.$apply(),AK.System.ShowMessage("Došlo k přenastavení datumu 'Do'"))})};t.dateToString=function(n){var t=String(n.getDate()).padStart(2,"0"),i=String(n.getMonth()+1).padStart(2,"0"),r=n.getFullYear(),u=String(n.getHours()).padStart(2,"0"),f=String(n.getMinutes()).padStart(2,"0");return t+"."+i+"."+r+" "+u+":"+f};t.stringToDate=function(n){var t=moment(n,"DD.MM.YYYY HH:mm");return t.toDate()}},AK.OrderBranch.initList=function(n,t,i,r){AK.System.alert("@OrderBranch.List.init");t.items=[];t.storageid=r;t.loadData=function(){AK.System.alert("Load items");n.akDataLoadingStringAdd("OrderBranchListLoadData");i.orderBranch.getList(t.storageid).then(function(i){i.data.errorMessage.length<=0?(AK.System.alert("OrderBranch list load data success"),t.items=i.data.items):(AK.System.alert("OrrderBranch list load data failed"),AK.System.ShowMessage(i.data.errorMessage));n.akDataLoadingStringRemove("OrderBranchListLoadData");$("#orderBranchListContainer").removeClass("visibilityOff")},function(){n.akDataLoadingStringRemove("OrderBranchListLoadData");$("#orderBranchListContainer").removeClass("visibilityOff")})};t.loadData()},AK.PriceCompare.init=function(n,t,i,r){AK.System.alert("@PriceCompare.init");AK.System.HideLeftMenu();t.lastItems=[];t.lastRivalId="";t.itemsMinCount=1;t.priceCompareId=r;t.productsLoaded=!1;t.priceValidated=!1;t.data=[];t.rivalSum=0;t.currentSum=0;t.currentSubstituteSum=0;t.profile1Sum=0;t.profile1SubstituteSum=0;t.profile2Sum=0;t.profile2SubstituteSum=0;t.loadData=function(){n.akDataLoadingStringAdd("PriceCompareLoadData");i.priceCompare.getData(t.priceCompareId).then(function(i){i.data.errorMessage.length<=0?(AK.System.alert("PriceCompare laod data success"),t.data=i.data.data,t.lastItems=angular.copy(t.data.Items),t.lastRivalId=t.data.SelectedRival,t.recalcPrices(),t.checkRows()):(AK.System.alert("PriceCompare load data failed"),AK.System.ShowMessage(i.data.errorMessage));$(".priceCompareContainer").removeClass("visibilityOff");n.akDataLoadingStringRemove("PriceCompareLoadData")},function(){AK.System.alert("Get PriceCompare data failed");$(".priceCompareContainer").removeClass("visibilityOff");n.akDataLoadingStringRemove("PriceCompareLoadData")})};t.loadData();t.clearItem=function(n){n.RivalCode="";n.RivalPrice=0;n.Amount=1;n.ProductCode="";n.ProductId=0;n.ProductPrice="";n.SubstituteCode="";n.SubstituteId=0;n.SubstitutePrice=0};t.clearItemProduct=function(n){n.ProductCode="";n.ProductId=0;n.ProductPrice=""};t.clearItemSubstitute=function(n){n.SubstituteCode="";n.SubstituteId=0;n.SubstitutePrice=0};t.changeRivalProduct=function(n){if(n.RivalCode.length<=0){t.clearItem(n);t.recalcPrices();return}n.RivalCode.length<5||t.loadRivalProduct(n)};t.loadRivalProduct=function(n){i.priceCompare.getRivalProduct(n,t.data.SelectedRival).then(function(n){n.data.errorMessage.length<=0?(AK.System.alert("PriceCompare load rival product success"),t.setItem(n.data.item),t.recalcPrices(),t.productsLoaded=!0):(AK.System.alert("PriceCompare load rival product failed"),AK.System.ShowMessage(n.data.errorMessage))},function(){AK.System.alert("PriceCompare load rival product failed")})};t.changeAKProduct=function(n){if(n.ProductCode.length<=0){t.clearItemProduct(n);t.clearItemSubstitute(n);t.recalcPrices();return}n.ProductCode.length<5||t.loadAKProduct(n)};t.loadAKProduct=function(r){if(r.ProductCode.length<=0){t.clearItemProduct(r);t.recalcPrices();return}n.akDataLoadingStringAdd("PriceCompareLoadAKProduct");i.priceCompare.getAKProduct(r).then(function(i){i.data.errorMessage.length<=0?(AK.System.alert("PriceCompare load AK product success"),t.setItem(i.data.item),t.recalcPrices(),t.productsLoaded=!0):(AK.System.alert("PriceCompare load AK product failed"),AK.System.ShowMessage(i.data.errorMessage));n.akDataLoadingStringRemove("PriceCompareLoadAKProduct")},function(){AK.System.alert("PriceCompare load AK product failed");n.akDataLoadingStringRemove("PriceCompareLoadAKProduct")})};t.changeSubstitute=function(n){if(n.SubstituteCode.length<=0){t.clearItemSubstitute(n);t.recalcPrices();return}n.SubstituteCode.length<5||t.loadSubstitute(n)};t.loadSubstitute=function(r){if(r.SubstituteCode.length<=0){t.clearItemSubstitute(r);t.recalcPrices();return}n.akDataLoadingStringAdd("PriceCompareLoadSubstitute");i.priceCompare.getSubstitute(r).then(function(i){i.data.errorMessage.length<=0?(AK.System.alert("PriceCompare load substitute success"),t.setItem(i.data.item),t.recalcPrices(),t.productsLoaded=!0):(AK.System.alert("PriceCompare load substitute failed"),AK.System.ShowMessage(i.data.errorMessage));n.akDataLoadingStringRemove("PriceCompareLoadSubstitute")},function(){AK.System.alert("PriceCompare load substitute failed");n.akDataLoadingStringRemove("PriceCompareLoadSubstitute")})};t.loadSubstituteFromProduct=function(r){if(r.ProductCode.length<=0){t.clearItemSubstitute(r);t.recalcPrices();return}n.akDataLoadingStringAdd("PriceCompareLoadProductSubstitute");i.priceCompare.getSubstituteFromProduct(r).then(function(i){i.data.errorMessage.length<=0?(AK.System.alert("PriceCompare load substitute from product success"),t.setItem(i.data.item),t.recalcPrices(),t.productsLoaded=!0):(AK.System.alert("PriceCompare load substitute from product failed"),AK.System.ShowMessage(i.data.errorMessage));n.akDataLoadingStringRemove("PriceCompareLoadProductSubstitute")},function(){AK.System.alert("PriceCompare load substitute from product failed");n.akDataLoadingStringRemove("PriceCompareLoadProductSubstitute")})};t.selectProduct=function(n,i){n.ProductCode=i.Code;n.ProductId=i.Id;n.ProductPrice=i.Price;n.SelectProducts=[];t.clearItemSubstitute(n);t.loadSubstituteFromProduct(n)};t.setItem=function(n){for(var i=0;i<t.data.Items.length;i++)if(t.data.Items[i].Order==n.Order){t.data.Items[i]=n;break}};t.loadProducts=function(){n.akDataLoadingStringAdd("PriceCompareLoadProducts");i.priceCompare.getProducts(t.data.Items).then(function(i){i.data.errorMessage.length<=0?(AK.System.alert("PriceCompare load products success"),t.data.Items=i.data.items,t.recalcPrices(),t.productsLoaded=!0,t.hasProducts()?t.calc():AK.System.ShowMessage("Nepodarilo se priradit vsechny produkty!")):(AK.System.alert("PriceCompare load products failed"),AK.System.ShowMessage(i.data.errorMessage));n.akDataLoadingStringRemove("PriceCompareLoadProducts")},function(){AK.System.alert("PriceCompare load products failed");n.akDataLoadingStringRemove("PriceCompareLoadProducts")})};t.hasProducts=function(){for(var i,n=0;n<t.data.Items.length;n++)if(i=t.data.Items[n],i.RivalCode.length>0&&(i.ProductId<=0||i.SubstituteId<=0))return!1;return!0};t.hasPrices=function(){var n,i;for(t.priceValidated=!0,n=0;n<t.data.Items.length;n++)if(i=t.data.Items[n],i.RivalCode.length>0&&i.RivalPrice<=0)return!1;return!0};t.countValidProducts=function(){for(var i,r=0,n=0;n<t.data.Items.length;n++)i=t.data.Items[n],i.RivalCode.length>0&&i.ProductId>0&&r++;return r};t.checkAmount=function(n){Number(n.Amount)<=0&&(n.Amount=1)};t.hasProfiles=function(){return t.data.SelectedProductProfile1!=t.data.CurrentProductProfile.Value||t.data.SelectedProductProfile2!=t.data.CurrentProductProfile.Value||t.data.SelectedGroupProfile1!=t.data.CurrentGroupProfile.Value||t.data.SelectedGroupProfile2!=t.data.CurrentGroupProfile.Value};t.calc=function(){if(t.recalcPrices(),t.data.SelectedRival=="selector"){AK.System.ShowMessage("Vyberte konkurenci");return}if(!t.hasProducts()){t.productsLoaded=!0;AK.System.ShowMessage("Nejsou nastaveny vsechny produkty");return}if(t.countValidProducts()<t.itemsMinCount){AK.System.ShowMessage("Zadaný počet produktů musí být alespoň "+t.itemsMinCount);return}if(!t.hasPrices()){AK.System.ShowMessage("Musí být zadány ceny u všech produktů");return}t.hasProfiles()?t.calcSend():AK.System.ShowMessage("Nastavte alespon jeden odlisny profil!")};t.calcSend=function(){n.akDataLoadingStringAdd("PriceCompareSaveData");var r=t.lastRivalId!=t.data.SelectedRival||!angular.equals(t.lastItems,t.data.Items);i.priceCompare.compare(t.data,r).then(function(i){if(i.data.errorMessage.length<=0){AK.System.alert("PriceCompare save data success");t.data.PriceCompareId=i.data.compareId;var r=AK.System.url+"/PriceCompare/"+t.data.PriceCompareId;AK.System.ChangeUrlWithoutReload(document.title,r);t.data.Items=i.data.items;t.recalcPrices();t.lastItems=angular.copy(t.data.Items);t.lastRivalId=angular.copy(t.data.SelectedRival)}else AK.System.alert("PriceCompare save data failed"),AK.System.ShowMessage(i.data.errorMessage);n.akDataLoadingStringRemove("PriceCompareSaveData")},function(){AK.System.alert("PriceCompare save data failed");n.akDataLoadingStringRemove("PriceCompareSaveData")})};t.recalcPrices=function(){var n;for(t.rivalSum=0,t.currentSum=0,t.currentSubstituteSum=0,t.profile1Sum=0,t.profile1SubstituteSum=0,t.profile2Sum=0,t.profile2SubstituteSum=0,n=0;n<t.data.Items.length;n++)t.data.Items[n].RivalPrice=AK.Common.toNumber(t.data.Items[n].RivalPrice),t.data.Items[n].ProductPrice=AK.Common.toNumber(t.data.Items[n].ProductPrice),t.data.Items[n].SubstitutePrice=AK.Common.toNumber(t.data.Items[n].SubstitutePrice);for(n=0;n<t.data.Items.length;n++)t.rivalSum+=t.data.Items[n].RivalPrice*t.data.Items[n].Amount,t.currentSum+=t.data.Items[n].ProductPrice*t.data.Items[n].Amount,t.currentSubstituteSum+=(t.data.Items[n].SubstitutePrice>0?t.data.Items[n].SubstitutePrice:t.data.Items[n].RivalPrice)*t.data.Items[n].Amount,t.profile1Sum+=t.data.Items[n].ProductPriceProfile1*t.data.Items[n].Amount,t.profile1SubstituteSum+=(t.data.Items[n].SubstitutePriceProfile1>0?t.data.Items[n].SubstitutePriceProfile1:t.data.Items[n].RivalPrice)*t.data.Items[n].Amount,t.profile2Sum+=t.data.Items[n].ProductPriceProfile2*t.data.Items[n].Amount,t.profile2SubstituteSum+=(t.data.Items[n].SubstitutePriceProfile2>0?t.data.Items[n].SubstitutePriceProfile2:t.data.Items[n].RivalPrice)*t.data.Items[n].Amount};t.addItem=function(){var n={Id:"00000000-0000-0000-0000-000000000000",Order:t.data.Items.length,RivalCode:"",RivalPrice:0,ProductId:0,ProductCode:"",ProductPrice:0,SubstituteId:0,SubstituteCode:"",SubstitutePrice:0,Amount:1,ProductPriceProfile1:0,SubstitutePriceProfile1:0,ProductPriceProfile2:0,SubstitutePriceProfile2:0};t.data.Items.push(n)};t.checkRows=function(){var i=t.itemsMinCount-t.data.Items.length,n;if(i>0)for(n=0;n<i;n++)t.addItem()}},AK.PriceCompare.initList=function(n,t,i,r){AK.System.alert("@PriceCompareList.init");AK.System.HideLeftMenu();t.items=[];t.page=r;t.loadData=function(r){n.akDataLoadingStringAdd("PriceCompareListLoadData");i.priceCompare.getListItems(r).then(function(i){i.data.errorMessage.length<=0?(AK.System.alert("PriceCompareList laod data success"),t.items=i.data.items):(AK.System.alert("PriceCompareList load data failed"),AK.System.ShowMessage(i.data.errorMessage));$(".priceCompareListContainer").removeClass("visibilityOff");n.akDataLoadingStringRemove("PriceCompareListLoadData")},function(){AK.System.alert("Get PriceCompareList data failed");$(".priceCompareListContainer").removeClass("visibilityOff");n.akDataLoadingStringRemove("PriceCompareListLoadData")})};t.loadData(r)},AK.ProductReturn.initNew=function(n,t,i){AK.System.alert("@ProductReturn.initNew");t.data={Pallets:0,Boxes:0,IndividualParts:0,Items:[]};t.submitDataValidated=!1;t.isDataValid=!1;t.dataLast=angular.copy(t.data);t.hasAgreement=!1;t.validateData=function(){if(!t.hasSubmitValidData()){AK.System.ShowMessage(AK.ProductReturn.messages.dataNotComplette);return}n.akDataLoadingStringAdd("ProductReturnNewValidateData");i.productReturn.validateData(t.data).then(function(i){t.data.Items=i.data.items;t.isDataValid=i.data.isDataValid===!0;t.dataLast=angular.copy(t.data);AK.System.ShowMessage(i.data.errorMessage);AK.System.alert(i.data.errorMessage);n.akDataLoadingStringRemove("ProductReturnNewValidateData")},function(){AK.System.alert("ProductReturn validate data failed");n.akDataLoadingStringRemove("ProductReturnNewValidateData")})};t.sendData=function(){if(!t.hasSubmitValidData()){AK.System.ShowMessage(AK.ProductReturn.messages.dataNotComplette);return}$("#partsModal").modal("show")};t.showPartsAmountMessage=!1;t.partsAmountChange=function(){t.showPartsAmountMessage=t.data.Pallets+t.data.Boxes+t.data.IndividualParts<=0};t.sendDataCheckParts=function(){if(t.data.Pallets+t.data.Boxes+t.data.IndividualParts<=0){t.showPartsAmountMessage=!0;return}t.showPartsAmountMessage=!1;$("#partsModal").modal("hide");t.sendDataConfirm()};t.sendDataConfirm=function(){if(!t.hasSubmitValidData()){AK.System.ShowMessage(AK.ProductReturn.messages.dataNotComplette);return}n.akDataLoadingStringAdd("ProductReturnNewSendData");i.productReturn.sendData(t.data).then(function(i){i.data.errorMessage.length<=0?(AK.System.alert("ProductReturn send data success"),t.dataLast=angular.copy(t.data),i.data.productReturnSaved===!0&&(window.location=AK.System.url+"/ProductReturnNew/List")):(AK.System.alert("ProductReturn send data failed"),AK.System.ShowMessage(i.data.errorMessage));n.akDataLoadingStringRemove("ProductReturnNewSendData")},function(){AK.System.alert("ProductReturn send data failed");n.akDataLoadingStringRemove("ProductReturnNewSendData")})};t.importMessage="";t.importItems=[];t.importHandleFileSelect=function(n){var f,o,i,e,r,u;for(AK.System.alert("@ProductReturn.New.importClick"),f=n.files,o=[],i=0;e=f[i];i++)r=new FileReader,r.onload=function(n){for(var i,s,r=!1,u=!1,f=!1,h=n.target.result,o=h.split(/[\r\n]+/g),e=0;e<o.length;e++)if((i=o[e].split(";"),!(i.length<=0)&&(i.length!=1||!(i[0].length<=0)))&&(i.length!=2?r=!0:i[0].length<=0?u=!0:(parseInt(i[1])||0)<1?f=!0:(s={Id:"00000000-0000-0000-0000-000000000000",ProductCode:i[0],Amount:parseInt(i[1]),InvoiceNumber:"",Penalization:"",Status:""},t.importItems.push(s)),r||u||f))break;setTimeout(function(){t.fileImported(r,u,f)},100)},r.readAsText(e,"UTF-8");u=$("#AKFileUpload");u.wrap("<form>").closest("form").get(0).reset();u.unwrap()};t.fileImported=function(n,i,r){var f,u;AK.System.alert("File imported - items: "+t.importItems.length);f="";n||i||r||t.importItems.length<=0?(f=AK.ProductReturn.messages.importFailed,u=[],n&&u.push(AK.ProductReturn.messages.importFailedBadColumn),i&&u.push(AK.ProductReturn.messages.importFailedBadCode),r&&u.push(AK.ProductReturn.messages.importFailedBadAmount),u.length==0&&t.importItems.length<=0&&u.push(AK.ProductReturn.messages.importFailedNoItems),f+=u.join(",")):(f=AK.ProductReturn.messages.importSuccess,t.clearEmptyRows(),t.data.Items=t.data.Items.concat(t.importItems),t.isDataValid=!1,t.$apply());t.importMessage=f;AK.System.alert(f);t.importItems=[];t.$apply();$("#importModal").modal("show")};t.clearEmptyRows=function(){for(var n=t.data.Items.length-1;n>=0;n--)t.data.Items[n].ProductCode.length<=0&&t.removeRow(t.data.Items[n]);t.recalcOrder()};t.checkChanges=function(){t.isDataValid&&!angular.equals(t.lastItems,t.data.Items)&&(t.isDataValid=!1)};t.addRow=function(){var n={Id:"00000000-0000-0000-0000-000000000000",ProductCode:"",Amount:1,InvoiceNumber:"",Penalization:"",Status:"",Order:t.data.Items.length};t.data.Items.push(n)};t.removeRow=function(n){for(var i=t.data.Items.length-1;i>=0;i--)if(t.data.Items[i].Order==n.Order&&t.data.Items[i].ProductCode==n.ProductCode&&t.data.Items[i].Amount==n.Amount){AK.System.alert("Delete item with index: "+i);t.data.Items.splice(i,1);break}t.recalcOrder()};t.recalcOrder=function(){for(var n=0;n<t.data.Items.length;n++)t.data.Items[n].Order==n};t.hasSubmitValidData=function(){var r,i,n;for(t.submitDataValidated=!0,r=0,i=0;i<t.data.Items.length;i++){if(n=t.data.Items[i],n.ProductCode.length>0&&n.Amount<=0)return!1;n.ProductCode.length>0&&n.Amount>0&&r++}return r>0};t.initRows=function(){for(var n=0;n<3;n++)t.addRow()};t.initRows()},AK.ProductReturn.initNewList=function(n,t,i){AK.System.alert("@ProductReturnNew.initList");t.items=undefined;t.paging={Page:1,Size:5,Total:1};t.loadData=function(r){n.akDataLoadingStringAdd("ProductReturnNewListLoadData");i.productReturn.getListItems(r).then(function(i){i.data.errorMessage.length<=0?(t.items=i.data.items,AK.System.alert("ProductReturnNew load list items success")):(AK.System.alert("ProductReturnNew load list items failed"),AK.System.ShowMessage(i.data.ErrorMessage));$(".prnContainer").removeClass("visibilityOff");n.akDataLoadingStringRemove("ProductReturnNewListLoadData")},function(){AK.System.alert("Get ProductReturnNew load list items failed");$(".prnContainer").removeClass("visibilityOff");n.akDataLoadingStringRemove("ProductReturnNewListLoadData")})};t.loadData(t.paging.Page)},AK.ProductReturnOld.initCreate=function(n,t,i){AK.System.alert("@ProductReturnOld.initNew");t.data={Pallets:0,Boxes:0,IndividualParts:0,Items:[]};t.submitDataValidated=!1;t.isDataValid=!1;t.dataLast=angular.copy(t.data);t.hasAgreement=!1;t.addRow=function(){var n=t.data.Items!=undefined&&t.data.Items!=null?t.data.Items.length:0,i={Id:"00000000-0000-0000-0000-000000000000",ProductCode:"",Amount:1,Available:"",Invoices:null,Status:0,StatusText:"",Order:n};t.data.Items.push(i)};t.initRows=function(){for(var n=0;n<3;n++)t.addRow()};t.initRows();t.removeRow=function(n){for(var i=t.data.Items.length-1;i>=0;i--)if(t.data.Items[i].Order==n.Order&&t.data.Items[i].ProductCode==n.ProductCode&&t.data.Items[i].Amount==n.Amount){AK.System.alert("Delete item with index: "+i);t.data.Items.splice(i,1);break}t.recalcOrder()};t.removeBadRows=function(){for(var n=t.data.Items.length-1;n>=0;n--)t.data.Items[n].Status.Id==1&&(AK.System.alert("Delete item with index: "+n),t.data.Items.splice(n,1));t.recalcOrder();AK.System.ShowModalMessage(AK.ProductReturnOld.messages.deletedBadRows)};t.recalcOrder=function(){for(var n=0;n<t.data.Items.length;n++)t.data.Items[n].Order==n};t.clearEmptyRows=function(){for(var n=t.data.Items.length-1;n>=0;n--)t.data.Items[n].ProductCode.length<=0&&t.removeRow(t.data.Items[n]);t.recalcOrder()};t.importMessage="";t.importItems=[];t.importHandleFileSelect=function(n){var f,o,i,e,r,u;for(AK.System.alert("@ProductReturn.Old.importClick"),f=n.files,o=[],i=0;e=f[i];i++)r=new FileReader,r.onload=function(n){for(var i,s,r=!1,u=!1,f=!1,h=n.target.result,o=h.split(/[\r\n]+/g),e=0;e<o.length;e++)if((i=o[e].split(";"),!(i.length<=0)&&(i.length!=1||!(i[0].length<=0)))&&(i.length!=2?r=!0:i[0].length<=0?u=!0:(parseInt(i[1])||0)<1?f=!0:(s={Id:"00000000-0000-0000-0000-000000000000",ProductCode:i[0],Amount:parseInt(i[1]),Available:"",Invoices:null,Status:"",StatusText:"",Order:t.importItems.length},t.importItems.push(s)),r||u||f))break;setTimeout(function(){t.fileImported(r,u,f)},100)},r.readAsText(e,"UTF-8");u=$("#AKFileUpload");u.wrap("<form>").closest("form").get(0).reset();u.unwrap()};t.fileImported=function(n,i,r){var f,u;AK.System.alert("File imported - items: "+t.importItems.length);f="";n||i||r||t.importItems.length<=0?(f=AK.ProductReturnOld.messages.importFailed,u=[],n&&u.push(AK.ProductReturnOld.messages.importFailedBadColumn),i&&u.push(AK.ProductReturnOld.messages.importFailedBadCode),r&&u.push(AK.ProductReturnOld.messages.importFailedBadAmount),u.length==0&&t.importItems.length<=0&&u.push(AK.ProductReturnOld.messages.importFailedNoItems),f+=u.join(",")):(f=AK.ProductReturnOld.messages.importSuccess,t.clearEmptyRows(),t.data.Items=t.data.Items.concat(t.importItems),t.isDataValid=!1,t.$apply());t.importMessage=f;AK.System.alert(f);t.importItems=[];t.$apply();$("#importModal").modal("show")};t.validateData=function(){if(!t.hasSubmitValidData()){AK.System.ShowModalMessage(AK.ProductReturnOld.messages.dataNotComplette);return}n.akDataLoadingStringAdd("ProductReturnOldValidateData");i.productReturnOld.validateData(t.data).then(function(i){i.data.responseValid==!0&&(t.data.Items=i.data.items,t.isDataValid=i.data.isDataValid===!0,t.dataLast=angular.copy(t.data));AK.System.ShowModalMessage(i.data.errorMessage);AK.System.alert(i.data.errorMessage);n.akDataLoadingStringRemove("ProductReturnOldValidateData")},function(){AK.System.alert("ProductReturn old validate data failed");n.akDataLoadingStringRemove("ProductReturnOldValidateData")})};t.sendData=function(){if(!t.hasSubmitValidData()){AK.System.ShowModalMessage(AK.ProductReturnOld.messages.dataNotComplette);return}t.sendDataConfirm()};t.invoiceSelectedItem=null;t.invoiceSelectedItemCopy=null;t.invoiceSelect=function(n){t.invoiceSelectedItem=n;t.invoiceSelectedItemCopy=angular.copy(t.invoiceSelectedItem);t.recalcItemInvoiceUseAmount();$("#InvoiceModal").modal("show")};t.invoiceSelectedItemUseAmount=0;t.recalcItemInvoiceUseAmount=function(){for(var u,n,f,i=0,r=0;r<t.invoiceSelectedItemCopy.Invoices.length;r++)for(u=t.invoiceSelectedItemCopy.Invoices[r],n=0;n<u.Rows.length;n++)f=u.Rows[n],i=i+f.UseAmount;t.invoiceSelectedItemUseAmount=i};t.changeInvoiceRowUseAmount=function(n,i){i.Amount<i.UseAmount&&(i.UseAmount=i.Amount);t.recalcItemInvoiceUseAmount();t.invoiceSelectedItemUseAmount>t.invoiceSelectedItemCopy.Amount&&(newVal=i.UseAmount-(t.invoiceSelectedItemUseAmount-t.invoiceSelectedItemCopy.Amount),newVal>=0&&(i.UseAmount=newVal,t.recalcItemInvoiceUseAmount()))};t.saveItemInvoice=function(){t.invoiceSelectedItem.Invoices=t.invoiceSelectedItemCopy.Invoices;$("#InvoiceModal").modal("hide")};t.sendDataConfirm=function(){if(!t.hasSubmitValidData()){AK.System.ShowModalMessage(AK.ProductReturnOld.messages.dataNotComplette);return}n.akDataLoadingStringAdd("ProductReturnNewSendData");i.productReturnOld.sendData(t.data).then(function(i){i.data.errorMessage.length<=0?(AK.System.alert("ProductReturn send data success"),t.dataLast=angular.copy(t.data),i.data.productReturnSaved===!0&&(window.location=AK.System.url+"/ProductReturnOld/List")):(AK.System.alert("ProductReturn send data failed"),AK.System.ShowModalMessage(i.data.errorMessage));n.akDataLoadingStringRemove("ProductReturnNewSendData")},function(){AK.System.alert("ProductReturn send data failed");n.akDataLoadingStringRemove("ProductReturnNewSendData")})};t.checkChanges=function(){t.isDataValid&&!angular.equals(t.lastItems,t.data.Items)&&(t.isDataValid=!1)};t.hasSubmitValidData=function(){var r,i,n;for(t.submitDataValidated=!0,r=0,i=0;i<t.data.Items.length;i++){if(n=t.data.Items[i],n.ProductCode.length>0&&n.Amount<=0)return!1;n.ProductCode.length>0&&n.Amount>0&&r++}return r>0}},AK.ProductReturnOld.initListDays=function(n,t,i,r){AK.System.alert("@ProductReturnOld.initListDays");t.items=undefined;t.paging={Page:r,Size:5,Total:1};t.loadData=function(r){n.akDataLoadingStringAdd("ProductReturnOldListDaysLoadData");i.productReturnOld.getListDaysItems(r).then(function(i){i.data.errorMessage.length<=0?(t.items=i.data.items,AK.System.alert("ProductReturnOld load list items success"),t.paging=i.data.paging,t.setRange()):(AK.System.alert("ProductReturnOld load list items failed"),AK.System.ShowMessage(i.data.ErrorMessage));$(".prnContainer").removeClass("visibilityOff");n.akDataLoadingStringRemove("ProductReturnOldListDaysLoadData")},function(){AK.System.alert("Get ProductReturnOld load list items failed");$(".prnContainer").removeClass("visibilityOff");n.akDataLoadingStringRemove("ProductReturnOldListDaysLoadData")})};t.loadData(t.paging.Page);t.ranges=[];t.setRange=function(){var i=5,r=Math.ceil(i/2)-1,u,f=t.paging.Total,n;for(u=t.paging.Page<=r+1?1:t.paging.Page>f-r?Math.max(1,f-i+1):t.paging.Page-r+1,t.ranges=[],n=u;n<u+i-1;n++)n>=1&&n<=f&&t.ranges.push(n)};t.setRange();t.prevPage=function(){t.paging.Page>1&&t.setPage(t.paging.Page-1)};t.prevPageDisabled=function(){return t.paging.Page===1?"prev disabled":""};t.nextPage=function(){t.paging.Page<t.paging.Total&&t.paging.Page++};t.nextPageDisabled=function(){return t.paging.Page===t.paging.Total?"next disabled":""};t.setPage=function(n){t.paging.Page=n;t.loadData(t.paging.Page)}},AK.ProductReturnOld.initListDay=function(n,t,i,r,u){AK.System.alert("@ProductReturnOld.initList");t.date=u;t.items=undefined;t.paging={Page:r,Size:5,Total:1};t.loadData=function(r,u){n.akDataLoadingStringAdd("ProductReturnOldListDayLoadData");i.productReturnOld.getListDayItems(r,u).then(function(i){i.data.errorMessage.length<=0?(t.items=i.data.items,AK.System.alert("ProductReturnOld load list items success"),t.paging=i.data.paging,t.setRange()):(AK.System.alert("ProductReturnOld load list items failed"),AK.System.ShowMessage(i.data.ErrorMessage));$(".prnContainer").removeClass("visibilityOff");n.akDataLoadingStringRemove("ProductReturnOldListDayLoadData")},function(){AK.System.alert("Get ProductReturnOld load list items failed");$(".prnContainer").removeClass("visibilityOff");n.akDataLoadingStringRemove("ProductReturnOldListDayLoadData")})};t.loadData(t.paging.Page,t.date);t.ranges=[];t.setRange=function(){var i=5,r=Math.ceil(i/2)-1,u,f=t.paging.Total,n;for(u=t.paging.Page<=r+1?1:t.paging.Page>f-r?Math.max(1,f-i+1):t.paging.Page-r+1,t.ranges=[],n=u;n<u+i-1;n++)n>=1&&n<=f&&t.ranges.push(n)};t.setRange();t.prevPage=function(){t.paging.Page>1&&t.setPage(t.paging.Page-1)};t.prevPageDisabled=function(){return t.paging.Page===1?"prev disabled":""};t.nextPage=function(){t.paging.Page<t.paging.Total&&t.paging.Page++};t.nextPageDisabled=function(){return t.paging.Page===t.paging.Total?"next disabled":""};t.setPage=function(n){t.paging.Page=n;t.loadData(t.paging.Page,t.date)}},AK.ProductReturnOld.initList=function(n,t,i){AK.System.alert("@ProductReturnOld.initList");t.items=undefined;t.paging={Page:1,Size:5,Total:1};t.loadData=function(r){n.akDataLoadingStringAdd("ProductReturnOldListLoadData");i.productReturnOld.getListItems(r).then(function(i){i.data.errorMessage.length<=0?(t.items=i.data.items,AK.System.alert("ProductReturnOld load list items success")):(AK.System.alert("ProductReturnOld load list items failed"),AK.System.ShowMessage(i.data.ErrorMessage));$(".prnContainer").removeClass("visibilityOff");n.akDataLoadingStringRemove("ProductReturnOldListLoadData")},function(){AK.System.alert("Get ProductReturnOld load list items failed");$(".prnContainer").removeClass("visibilityOff");n.akDataLoadingStringRemove("ProductReturnOldListLoadData")})};t.loadData(t.paging.Page)},AK.Complaint.init=function(n,t,i){var r={NotAvailable:1};AK.System.alert("@Complaint.init");t.data={Items:[]};t.submitDataValidated=!1;t.isDataValid=!1;t.dataLast=angular.copy(t.data);t.hasAgreement=!1;t.addRow=function(){var n=Array.isArray(t.data.Items)?t.data.Items.length:0;t.data.Items.push({Id:"00000000-0000-0000-0000-000000000000",ProductCode:"",Amount:1,Available:"",Invoices:null,Status:0,StatusText:"",Order:n})},function(){for(var n=0;n<3;n++)t.addRow()}();t.removeRow=function(n){var i=t.data.Items.findIndex(function(t){return t.Order==n.Order&&t.ProductCode==n.ProductCode&&t.Amount==n.Amount});i>-1&&(t.data.Items.splice(i,1),AK.System.alert("Delete item with index: "+i),t.recalcOrder())};t.removeBadRows=function(){t.data.Items=t.data.Items.filter(function(n){return n.Status.Id!=r.NotAvailable});t.recalcOrder();AK.System.ShowModalMessage(AK.Complaint.messages.deletedBadRows)};t.recalcOrder=function(){if(Array.isArray(t.data.Items)){var n=0;t.data.Items.forEach(function(t){return t.Order=n++})}};t.clearEmptyRows=function(){t.data.Items.forEach(function(n){n.ProductCode.length<=0&&t.data.Items.splice(n.Order,1)});t.recalcOrder()};t.importMessage="";t.importItems=[];t.importHandleFileSelect=function(n){var f,o,i,e,r,u;for(AK.System.alert("@Complaint.importClick"),f=n.files,o=[],i=0;e=f[i];i++)r=new FileReader,r.onload=function(n){for(var i,r=!1,u=!1,f=!1,s=n.target.result,o=s.split(/[\r\n]+/g),e=0;e<o.length;e++)if((i=o[e].split(";"),!(i.length<=0)&&(i.length!=1||!(i[0].length<=0)))&&(i.length!=2?r=!0:i[0].length<=0?u=!0:(parseInt(i[1])||0)<1?f=!0:t.importItems.push({Id:"00000000-0000-0000-0000-000000000000",ProductCode:i[0],Amount:parseInt(i[1]),Available:"",Invoices:null,Status:"",StatusText:"",Order:t.importItems.length}),r||u||f))break;setTimeout(function(){t.fileImported(r,u,f)},100)},r.readAsText(e,"UTF-8");u=$("#AKFileUpload");u.wrap("<form>").closest("form").get(0).reset();u.unwrap()};t.fileImported=function(n,i,r){var f,u;AK.System.alert("File imported - items: "+t.importItems.length);f="";n||i||r||t.importItems.length<=0?(f=AK.Complaint.messages.importFailed,u=[],n&&u.push(AK.Complaint.messages.importFailedBadColumn),i&&u.push(AK.Complaint.messages.importFailedBadCode),r&&u.push(AK.Complaint.messages.importFailedBadAmount),u.length==0&&t.importItems.length<=0&&u.push(AK.Complaint.messages.importFailedNoItems),f+=u.join(",")):(f=AK.Complaint.messages.importSuccess,t.clearEmptyRows(),t.data.Items=t.data.Items.concat(t.importItems),t.isDataValid=!1,t.$apply());t.importMessage=f;AK.System.alert(f);t.importItems=[];t.$apply();$("#importModal").modal("show")};t.validateData=function(){if(!t.hasSubmitValidData()){AK.System.ShowModalMessage(AK.Complaint.messages.dataNotComplete);return}n.akDataLoadingStringAdd("ComplaintValidateData");i.Complaint.validateData(t.data).then(function(i){i.data.responseValid==!0&&(t.data.Items=i.data.items,t.isDataValid=i.data.isDataValid===!0,t.dataLast=angular.copy(t.data));AK.System.ShowModalMessage(i.data.errorMessage);AK.System.alert(i.data.errorMessage);n.akDataLoadingStringRemove("ComplaintValidateData")},function(){AK.System.alert("Complaint old validate data failed");n.akDataLoadingStringRemove("ComplaintValidateData")})};t.sendData=function(){if(!t.hasSubmitValidData()){AK.System.ShowModalMessage(AK.Complaint.messages.dataNotComplete);return}t.sendDataConfirm()};t.invoiceSelectedItem=null;t.invoiceSelect=function(n){t.complaint=n.UserData.Complaint;$("#InvoiceModal").modal("hide");$("#userComplaintModal").modal("show")};t.complaintSave=function(){$("#userComplaintModal").modal("hide");AK.System.alert(t.complaintItem)};t.invoiceSelectedItemUseAmount=0;t.recalcItemInvoiceUseAmount=function(){};t.changeInvoiceRowUseAmount=function(n,i){i.Amount<i.UseAmount&&(i.UseAmount=i.Amount);t.recalcItemInvoiceUseAmount()};t.sendDataConfirm=function(){if(!t.hasSubmitValidData()){AK.System.ShowModalMessage(AK.Complaint.messages.dataNotComplete);return}n.akDataLoadingStringAdd("ComplaintSendData");i.Complaint.sendData(t.data).then(function(i){i.data.errorMessage.length<=0?(AK.System.alert("Complaint send data success"),t.dataLast=angular.copy(t.data),i.data.ComplaintSaved===!0&&(window.location=AK.System.url+"/Complaint/List")):(AK.System.alert("Complaint send data failed"),AK.System.ShowModalMessage(i.data.errorMessage));n.akDataLoadingStringRemove("ComplaintSendData")},function(){AK.System.alert("Complaint send data failed");n.akDataLoadingStringRemove("ComplaintSendData")})};t.checkChanges=function(){t.isDataValid&&!angular.equals(t.lastItems,t.data.Items)&&(t.isDataValid=!1)};t.hasSubmitValidData=function(){return t.submitDataValidated=!0,!t.data.Items.some(function(n){return n.ProductCode.length>0&&n.Amount<=0})}},AK.Complaint.initListDays=function(n,t,i,r){AK.System.alert("@Complaint.initListDays");t.items=undefined;t.paging={Page:r,Size:5,Total:1};t.loadData=function(r){n.akDataLoadingStringAdd("ComplaintListDaysLoadData");i.Complaint.getListDaysItems(r).then(function(i){i.data.errorMessage.length<=0?(t.items=i.data.items,AK.System.alert("Complaint load list items success"),t.paging=i.data.paging,t.setRange()):(AK.System.alert("Complaint load list items failed"),AK.System.ShowMessage(i.data.ErrorMessage));$(".prnContainer").removeClass("visibilityOff");n.akDataLoadingStringRemove("ComplaintListDaysLoadData")},function(){AK.System.alert("Get Complaint load list items failed");$(".prnContainer").removeClass("visibilityOff");n.akDataLoadingStringRemove("ComplaintListDaysLoadData")})};t.loadData(t.paging.Page);t.ranges=[];t.setRange=function(){var i=5,r=Math.ceil(i/2)-1,u,f=t.paging.Total,n;for(u=t.paging.Page<=r+1?1:t.paging.Page>f-r?Math.max(1,f-i+1):t.paging.Page-r+1,t.ranges=[],n=u;n<u+i-1;n++)n>=1&&n<=f&&t.ranges.push(n)};t.setRange();t.prevPage=function(){t.paging.Page>1&&t.setPage(t.paging.Page-1)};t.prevPageDisabled=function(){return t.paging.Page===1?"prev disabled":""};t.nextPage=function(){t.paging.Page<t.paging.Total&&t.paging.Page++};t.nextPageDisabled=function(){return t.paging.Page===t.paging.Total?"next disabled":""};t.setPage=function(n){t.paging.Page=n;t.loadData(t.paging.Page)}},AK.Complaint.initListDay=function(n,t,i,r,u){AK.System.alert("@Complaint.initList");t.date=u;t.items=undefined;t.paging={Page:r,Size:5,Total:1};t.loadData=function(r,u){n.akDataLoadingStringAdd("ComplaintListDayLoadData");i.Complaint.getListDayItems(r,u).then(function(i){i.data.errorMessage.length<=0?(t.items=i.data.items,AK.System.alert("Complaint load list items success"),t.paging=i.data.paging,t.setRange()):(AK.System.alert("Complaint load list items failed"),AK.System.ShowMessage(i.data.ErrorMessage));$(".prnContainer").removeClass("visibilityOff");n.akDataLoadingStringRemove("ComplaintListDayLoadData")},function(){AK.System.alert("Get Complaint load list items failed");$(".prnContainer").removeClass("visibilityOff");n.akDataLoadingStringRemove("ComplaintListDayLoadData")})};t.loadData(t.paging.Page,t.date);t.ranges=[];t.setRange=function(){var i=5,r=Math.ceil(i/2)-1,u,f=t.paging.Total,n;for(u=t.paging.Page<=r+1?1:t.paging.Page>f-r?Math.max(1,f-i+1):t.paging.Page-r+1,t.ranges=[],n=u;n<u+i-1;n++)n>=1&&n<=f&&t.ranges.push(n)};t.setRange();t.prevPage=function(){t.paging.Page>1&&t.setPage(t.paging.Page-1)};t.prevPageDisabled=function(){return t.paging.Page===1?"prev disabled":""};t.nextPage=function(){t.paging.Page<t.paging.Total&&t.paging.Page++};t.nextPageDisabled=function(){return t.paging.Page===t.paging.Total?"next disabled":""};t.setPage=function(n){t.paging.Page=n;t.loadData(t.paging.Page,t.date)}},AK.Complaint.initList=function(n,t,i){AK.System.alert("@Complaint.initList");t.items=undefined;t.paging={Page:1,Size:5,Total:1};t.loadData=function(r){n.akDataLoadingStringAdd("ComplaintListLoadData");i.Complaint.getListItems(r).then(function(i){i.data.errorMessage.length<=0?(t.items=i.data.items,AK.System.alert("Complaint load list items success")):(AK.System.alert("Complaint load list items failed"),AK.System.ShowMessage(i.data.ErrorMessage));$(".prnContainer").removeClass("visibilityOff");n.akDataLoadingStringRemove("ComplaintListLoadData")},function(){AK.System.alert("Get Complaint load list items failed");$(".prnContainer").removeClass("visibilityOff");n.akDataLoadingStringRemove("ComplaintListLoadData")})};t.loadData(t.paging.Page)},AK.CalendarSales.init=function(n,t,i,r){AK.System.alert("@CalendarSales.init");t.data={Items:[]};moment.locale(r);t.loadData=function(){n.akDataLoadingStringAdd("CalendarSalesLoadData");i.CalendarSales.getData(t.data).then(function(i){i.data.errorMessage===""?(t.data.Items=i.data.data.items,$("#CalendarSalesWeek_Previous").length>0&&t.setWeek("CalendarSalesWeek_Previous",t.data.Items.previous),$("#CalendarSalesWeek_Current").length>0&&t.setWeek("CalendarSalesWeek_Current",t.data.Items.current),$("#CalendarSalesWeek_Next").length>0&&t.setWeek("CalendarSalesWeek_Next",t.data.Items.next),$("#CalendarSalesWeek_Hidden").length>0&&t.setWeek("CalendarSalesWeek_Hidden",t.data.Items.hidden),$("#CalendarSalesWeek_Last").length>0&&t.setWeek("CalendarSalesWeek_Last",t.data.Items.last),$("#CalendarSalesWeek_SuperLast").length>0&&t.setWeek("CalendarSalesWeek_SuperLast",t.data.Items.superLast)):(AK.System.ShowModalMessage(i.data.errorMessage),AK.System.alert(i.data.errorMessage));n.akDataLoadingStringRemove("CalendarSalesLoadData");$("#CalendarSalesContainer").removeClass("visibilityOff")},function(){AK.System.alert("CalendarSales load data failed");n.akDataLoadingStringRemove("CalendarSalesLoadData");$("#CalendarSalesContainer").removeClass("visibilityOff")})};t.setWeek=function(n,t){if(t!=null){var i=angular.element(document.getElementById(n)).scope(),r=[];t.forEach(function(n){var t=i.getEmptyModel();t.date=n.Date;t.dateDisplay=moment(n.Date,"YYYY-MM-DD").format("DD.MM. (dd)");t.productId=n.ProductId;t.productCode=n.ProductCode;t.productName=n.ProductName;t.productImage=n.ProductImage;t.productLink=n.ProductLink;t.amount=n.Amount;t.restAmount=n.RestAmount;t.oldPrice=n.OldPrice;t.price=n.Price;t.discount=n.Discount;t.typeId=n.TypeId;t.lastSoldDate=n.LastSoldDate;r.push(t)});i.setModels(r)}};t.loadData()},AK.CalendarSales.init2=function(n,t,i,r){AK.System.alert("@CalendarSales.init");t.data={Items:[]};moment.locale(r);t.loadData=function(){n.akDataLoadingStringAdd("CalendarSalesLoadData");i.CalendarSales.getData2(t.data).then(function(i){i.data.errorMessage===""?(t.data.Items=i.data.data.items,t.data.Items.forEach(function(n){n.WeekNumber=moment(n.Date,"YYYY-MM-DD").week();n.IsCurrentWeek=moment(n.Date,"YYYY-MM-DD").week()===moment().week();n.DateDisplay=moment(n.Date,"YYYY-MM-DD").format("DD.MM. (dd)")})):(AK.System.ShowModalMessage(i.data.errorMessage),AK.System.alert(i.data.errorMessage));n.akDataLoadingStringRemove("CalendarSalesLoadData");$("#CalendarSalesContainer").removeClass("visibilityOff")},function(){AK.System.alert("CalendarSales load data failed");n.akDataLoadingStringRemove("CalendarSalesLoadData");$("#CalendarSalesContainer").removeClass("visibilityOff")})};t.setWeek=function(n,t){if(t!=null){var i=angular.element(document.getElementById(n)).scope(),r=[];t.forEach(function(n){var t=i.getEmptyModel();t.date=n.Date;t.dateDisplay=moment(n.Date,"YYYY-MM-DD").format("DD.MM. (dd)");t.productId=n.ProductId;t.productCode=n.ProductCode;t.productName=n.ProductName;t.productImage=n.ProductImage;t.productLink=n.ProductLink;t.amount=n.Amount;t.restAmount=n.RestAmount;t.oldPrice=n.OldPrice;t.price=n.Price;t.discount=n.Discount;t.typeId=n.TypeId;t.lastSoldDate=n.LastSoldDate;r.push(t)});i.setModels(r)}};t.loadData()},AK.CalendarSalesWeek.init=function(n,t){AK.System.alert("@CalendarSalesWeek.init");t.data=[];var i=function i(){_classCallCheck(this,i);this.date="";this.dateDisplay="";this.productId=0;this.productCode="";this.productName="";this.productImage="";this.productLink="";this.amount="";this.restAmount="";this.oldPrice="";this.price="";this.discount="";this.typeId=0;this.lastSoldDate=""};t.getEmptyModel=function(){return new i};t.setModels=function(n){t.data=n;t.data.length>0&&(t.weekNumber=moment(t.data[0].date,"YYYY-MM-DD").week())};t.isCurrentWeek=function(){var n=!1;return t.data.forEach(function(t){t.typeId===2&&(n=!0)}),n}},AK.MarketingDeals.init=function(n,t,i){AK.System.alert("@MarketingDeals.init");t.data={};moment.locale("cs");t.loadPrices=function(n){n!=undefined&&n.length>0&&i.getProductUserPrice(n).then(function(n){if(n.data.Content!=undefined){var t=function(n,t){var i=angular.element(document.getElementById(n)).scope();i.data.products!=undefined&&i.data.products.forEach(function(n){var i=AK.Common.altFind(t,function(t){return t.ProductId==n.id});i!=undefined&&(n.price=i.PriceVat,n.discount=i.Discount)})};t("MarketingDeals_Weekly",n.data.Content);t("MarketingDeals_News",n.data.Content);t("MarketingDeals_Sales",n.data.Content);t("MarketingDeals_Handy",n.data.Content)}else n.data.error!=undefined&&AK.System.alert(n.data.error)},function(){})};t.loadData=function(){n.akDataLoadingStringAdd("MarketingDealsLoadData");i.MarketingDeals.getData().then(function(i){if(i.data.errorMessage===""){t.data=i.data.data;t.setItems("MarketingDeals_Weekly",t.data.weekly);t.setItems("MarketingDeals_News",t.data.news);t.setItems("MarketingDeals_Sales",t.data.sales);t.setItems("MarketingDeals_Handy",t.data.handy);var u=[],r=function(n){n!=undefined&&n.filter(function(n){return n.LoadUserPrice==!0}).map(function(n){return n.ProductId}).forEach(function(n){return u.push(n)})};r(t.data.weekly.products);r(t.data.news.products);r(t.data.sales.products);r(t.data.handy.products);t.loadPrices(u)}else AK.System.ShowModalMessage(i.data.errorMessage),AK.System.alert(i.data.errorMessage);n.akDataLoadingStringRemove("MarketingDealsLoadData");$("#MarketingDealsContainer").removeClass("visibilityOff")},function(){AK.System.alert("Marketing Deals load data failed");n.akDataLoadingStringRemove("MarketingDealsLoadData");$("#MarketingDealsContainer").removeClass("visibilityOff")})};t.setItems=function(n,t){var r,i,u;t!=null&&(r=angular.element(document.getElementById(n)).scope(),i=r.getEmptyModel(),i.text=t.text,i.rpriceVisible=t.rpriceVisible,u=[],t.products!=null&&t.products.forEach(function(n){var t=r.getEmptyProduct();t.id=n.ProductId;t.code=n.ProductCode;t.name=n.ProductName;t.image=n.ProductImage;t.link=n.ProductLink;t.price=n.Price;t.rprice=n.RPrice;t.discount=n.Discount;u.push(t)}),i.products=u,r.setModel(i))};t.loadData()},AK.Sales.init=function(n,t,i){AK.System.alert("@Sales.init");t.data={};t.filter={CompanyId:0,StorageId:0,Offset:0,Limit:20};t.filterChanged=function(){t.loadData(1)};t.loadData=function(r){t.page=r;t.filter.Offset=(r-1)*t.pageSize;t.filter.Limit=t.pageSize;n.akDataLoadingStringAdd("SalesLoadData");i.Sales.getData(t.filter).then(function(i){if(i.data.errorMessage===""){t.data=i.data.data;t.data.Items.forEach(function(n){if(n.CreatedDate=moment(n.CreatedDate,"YYYY-MM-DD[T]hh:mm:ssZ").format("DD.MM.YYYY hh:mm:ss"),n.DueDate=moment(n.DueDate,"YYYY-MM-DD[T]hh:mm:ssZ").format("DD.MM.YYYY hh:mm:ss"),n.TotalPriceVat=(Number(n.TotalPrice)+Number(n.VatPrice)).toFixed(2).toString(),n.Debt!="--"){var t=parseFloat(n.Debt.replace(",","."));t!=undefined&&t!="NaN"&&(n.Debt=t.toFixed(2).toString())}});var r=Math.floor(t.data.Total/t.pageSize)+(t.data.Total%t.pageSize>0?1:0),u=angular.element(document.getElementById("SalesPaging")).scope();u.set(t.page,t.pageSize,r,t.loadData)}else AK.System.ShowModalMessage(i.data.errorMessage),AK.System.alert(i.data.errorMessage);n.akDataLoadingStringRemove("SalesLoadData");$("#SalesContainer").removeClass("visibilityOff")},function(){AK.System.alert("Sales load data failed");n.akDataLoadingStringRemove("SalesLoadData");$("#SalesContainer").removeClass("visibilityOff")})};t.page=1;t.pageSize=20;t.loadData(1);t.exportCsvFile=function(){n.akDataLoadingStringAdd("SalesLoadData");i.Sales.getExportCsvFileContent(t.filter).then(function(t){var r=t.data.data.Content,u,i;if(r.length<=0)return AK.System.ShowModalMessage(t.data.errorMessage),!1;window.navigator.msSaveOrOpenBlob?(u=new Blob([decodeURIComponent(encodeURI(r))],{type:"text/csv;charset=utf-8;"}),navigator.msSaveBlob(u,"Export.csv")):(i=document.createElement("a"),i.href="data:attachment/csv,"+encodeURI(r),i.target="_blank",i.download="Export.csv",document.body.appendChild(i),i.click());n.akDataLoadingStringRemove("SalesLoadData");$("#SalesContainer").removeClass("visibilityOff")},function(){AK.System.alert("Sales export data failed");n.akDataLoadingStringRemove("SalesLoadData");$("#SalesContainer").removeClass("visibilityOff")})}},AK.DeliveryNotes.init=function(n,t,i){AK.System.alert("@DeliveryNotes.init");t.data={};t.filter={CompanyId:0,StorageId:0,Offset:0,Limit:20};t.filterChanged=function(){t.loadData(1)};t.loadData=function(r){t.page=r;t.filter.Offset=(r-1)*t.pageSize;t.filter.Limit=t.pageSize;n.akDataLoadingStringAdd("DeliveryNotesLoadData");i.DeliveryNotes.getData(t.filter).then(function(i){if(i.data.errorMessage===""){t.data=i.data.data;t.data.Items.forEach(function(n){n.CreatedDate=moment(n.CreatedDate,"YYYY-MM-DD[T]hh:mm:ssZ").format("DD.MM.YYYY hh:mm:ss");n.TotalPriceVat=(Number(n.TotalPrice)+Number(n.VatPrice)).toFixed(2).toString()});var r=Math.floor(t.data.Total/t.pageSize)+(t.data.Total%t.pageSize>0?1:0),u=angular.element(document.getElementById("DeliveryNotesPaging")).scope();u.set(t.page,t.pageSize,r,t.loadData)}else AK.System.ShowModalMessage(i.data.errorMessage),AK.System.alert(i.data.errorMessage);n.akDataLoadingStringRemove("DeliveryNotesLoadData");$("#DeliveryNotesContainer").removeClass("visibilityOff")},function(){AK.System.alert("DeliveryNotes load data failed");n.akDataLoadingStringRemove("DeliveryNotesLoadData");$("#DeliveryNotesContainer").removeClass("visibilityOff")})};t.page=1;t.pageSize=20;t.loadData(1);t.exportCsvFile=function(){n.akDataLoadingStringAdd("DeliveryNotesLoadData");i.DeliveryNotes.getExportCsvFileContent(t.filter).then(function(t){var r=t.data.data.Content,u,i;if(r.length<=0)return AK.System.ShowModalMessage(t.data.errorMessage),!1;window.navigator.msSaveOrOpenBlob?(u=new Blob([decodeURIComponent(encodeURI(r))],{type:"text/csv;charset=utf-8;"}),navigator.msSaveBlob(u,"Export.csv")):(i=document.createElement("a"),i.href="data:attachment/csv,"+encodeURI(r),i.target="_blank",i.download="Export.csv",document.body.appendChild(i),i.click());n.akDataLoadingStringRemove("DeliveryNotesLoadData");$("#DeliveryNotesContainer").removeClass("visibilityOff")},function(){AK.System.alert("DeliveryNotes export data failed");n.akDataLoadingStringRemove("DeliveryNotesLoadData");$("#DeliveryNotesContainer").removeClass("visibilityOff")})}},AK.MarketingDealsItems.init=function(n,t){AK.System.alert("@MarketingDealsItems.init");t.data={};var i=function i(){_classCallCheck(this,i);this.id=0;this.code="";this.name="";this.image="";this.link="";this.price="";this.rprice="";this.discount=""},r=function r(){_classCallCheck(this,r);this.isVisible;this.rpriceVisible;this.text="";this.products=[]};t.getEmptyModel=function(){return new r};t.getEmptyProduct=function(){return new i};t.setModel=function(n){t.data=n;t.data.isVisible=t.data.products.length>0}},AK.ProductPriceSeller.init=function(n,t,i,r,u,f,e,o,s,h,c){AK.System.alert("@ProductPriceSeller.init");t.Price="";t.PriceVat="";t.VPriceInfo="";t.MarginInfo="";t.MPriceInfo="";t.loadUserPrice=u=="true";t.loadUserPriceInfo=f=="true";t.loadUserMarginInfo=e=="true";t.loadDisponibilityEnabled=c=="true";t.isLoadElitDisponibility=o=="true";t.isLoadElitCarDisponibility=s=="true";t.isLoadElitHasVendorInfo=h=="true";t.userPriceLoaded=!1;t.userPriceInfoLoaded=!1;t.userMarginInfoLoaded=!1;t.productId=r;t.disponibilityLoading=!1;t.elitDisponibilityLoading=!1;t.elitCarDisponibilityLoading=!1;t.elitHasVendorInfo=undefined;t.userPriceLoading=!1;t.loadPrice=function(){t.userPriceLoading=!0;i.getProductUserPrice([r]).then(function(i){if(i.data.Content!=undefined&&i.data.Content.length>0){var r=i.data.Content[0];t.Price=r.Price;t.PriceVat=r.PriceVat;t.userPriceLoaded=!0;n.$emit("ProductPriceLoaded");t.userPriceLoading=!1}else i.data.error!=undefined&&AK.System.alert(i.data.error)},function(){t.userPriceLoaded=!1;t.userPriceLoading=!1})};t.loadUserPrice&&t.loadPrice();t.loadPriceInfo=function(){i.getProductUserPriceInfo([r]).then(function(i){i.data.Content!=undefined&&i.data.Content.length>0?(t.VPriceInfo=i.data.Content[0].PriceInfo,t.userPriceInfoLoaded=!0,n.$emit("ProductPriceLoaded")):i.data.error!=undefined&&AK.System.alert(i.data.error)},function(){t.userPriceInfoLoaded=!1})};t.loadUserPriceInfo&&t.loadPriceInfo();t.loadMarginInfo=function(){i.getProductUserMarginInfo([r]).then(function(n){n.data.Content!=undefined&&n.data.Content.length>0?(t.MarginInfo=n.data.Content[0].MarginInfo,t.userMarginInfoLoaded=!0):n.data.error!=undefined&&AK.System.alert(n.data.error)},function(){t.userMarginInfoLoaded=!1})};t.loadUserMarginInfo&&t.loadMarginInfo();t.loadDisponibilityAll=function(){t.disponibilityLoading=!0;i.getProductDisponibilityAll(r).then(function(i){i.data.deliveryItem||i.data.storageItem?n.$emit("DetailDisponibilityAllLoaded",i.data.deliveryItem,i.data.storageItem):i.data.error!=undefined&&AK.System.alert(i.data.error);t.disponibilityLoading=!1},function(){t.disponibilityLoading=!1})};t.loadDisponibilityEnabled&&t.loadDisponibilityAll();t.loadElitDisponibility=function(){t.elitDisponibilityLoading=!0;i.getProductElitDisponibility([r]).then(function(i){i.data.items!=undefined?n.$emit("ElitDisponibilityLoaded",i.data.items[0].Disponibility):i.data.error!=undefined&&AK.System.alert(i.data.error);t.elitDisponibilityLoading=!1},function(){t.elitDisponibilityLoading=!1})};t.isLoadElitDisponibility&&t.loadElitDisponibility();t.loadElitCarDisponibility=function(){t.elitCarDisponibilityLoading=!0;i.getProductElitCarDisponibility([r]).then(function(i){i.data.items!=undefined?n.$emit("ElitCarDisponibilityLoaded",i.data.items[0].Disponibility):i.data.error!=undefined&&AK.System.alert(i.data.error);t.elitCarDisponibilityLoading=!1},function(){t.elitCarDisponibilityLoading=!1})};t.isLoadElitCarDisponibility&&t.loadElitCarDisponibility();t.loadElitHasVendorInfo=function(){i.getProductElitHasVendorInfo([r]).then(function(t){t.data.Content!=undefined?n.$emit("ElitHasVendorInfoLoaded",t.data.items[0].ElitHasVendorInfo):t.data.error!=undefined&&AK.System.alert(t.data.error)},function(){})};t.isLoadElitHasVendorInfo&&t.loadElitHasVendorInfo();t.getToolTip=function(n,i,r){var u="",f,e;return u=n&&n.length>0?n:t.userPriceInfoLoaded?t.VPriceInfo:i,f=t.userMarginInfoLoaded?t.MarginInfo:r,e="",u.length>0&&f.length>0&&(e="<\/br >"),u+e+f}},AK.MarketingPackage.initGroups=function(n,t,i){AK.System.alert("@MarketingPackage.initList");t.groups=[];t.loadData=function(){n.akDataLoadingStringAdd("MarketingPackageListLoadData");i.MarketingPackage.getGroups().then(function(i){i.data.errorMessage.length==0?t.groups=i.data.groups:AK.System.alert(i.data.errorMessage);n.akDataLoadingStringRemove("MarketingPackageListLoadData");$("#marketingPackagesContainer").removeClass("visibilityOff")},function(){AK.System.alert("Marketingpackages groups load data failed");n.akDataLoadingStringRemove("MarketingPackageListLoadData");$("#marketingPackagesContainer").removeClass("visibilityOff")})};t.loadData()},AK.MarketingPackage.initDetail=function(n,t,i,r,u){AK.System.alert("@MarketingPackage.initList");var f={RetailPrice:1,RetailStaticPrice:2,SellerPrice:3,SellerCommonPrice:4,SellerStaticCommonPrice:5,RetailStaticDiscount:6,SellerStaticCommonDiscount:7};t.packageId=u;t.groupId=r;t.data=undefined;t.packages=undefined;t.discounts=undefined;t.amountLimit=undefined;t.staticText=undefined;t.decimalPlaces=0;t.type=undefined;t.staticPrice=0;t.staticDiscount=0;t.loadData=function(){n.akDataLoadingStringAdd("MarketingPackageDetailLoadData");i.MarketingPackage.getData(u,r).then(function(i){i.data.errorMessage.length==0?(t.data=i.data.data.Data,t.packages=i.data.data.Packages,t.discounts=i.data.data.Discount,t.amountLimit=1e3,t.staticText=i.data.data.StaticText,t.decimalPlaces=i.data.data.DecimalPlaces,t.type=t.discounts[0].TypeId,t.isStaticPrice()?t.staticPrice=t.discounts[0].Price:t.isStaticDiscount()&&(t.staticDiscount=t.discounts[0].Value),t.recalc(),t.loadPrices()):AK.System.alert(i.data.errorMessage);n.akDataLoadingStringRemove("MarketingPackageDetailLoadData");$("#marketingPackageContainer").removeClass("visibilityOff")},function(){AK.System.alert("Marketing package load data failed");n.akDataLoadingStringRemove("MarketingPackageDetailLoadData");$("#marketingPackageContainer").removeClass("visibilityOff")})};t.loadData();t.loadPrices=function(){if(t.type==f.SellerPrice){var n=[];t.data.Categories.forEach(function(t){var i=t.Products.filter(function(n){return n.LoadUserPrice==!0}).map(function(n){return n.Id});n=n.concat(i)});n.length>0&&i.getProductUserPriceDouble(n).then(function(n){n.data.Content!=undefined?(t.data.Categories.forEach(function(t){t.Products.forEach(function(t){var i=AK.Common.altFind(n.data.Content,function(n){return n.ProductId==t.Id});i!=undefined&&(t.Price=i.Price)})}),t.recalc()):n.data.error!=undefined&&AK.System.alert(n.data.error)},function(){})}};t.isStaticDiscount=function(){return t.type==f.RetailStaticDiscount||t.type==f.SellerStaticCommonDiscount};t.isStaticPrice=function(){return t.type==f.RetailStaticPrice||t.type==f.SellerStaticCommonPrice};t.isNumber=function(n){return Object.prototype.toString.call(n)==="[object Number]"};t.getLocaleNumberText=function(n){return t.isNumber(n)?Number(n.toFixed(t.decimalPlaces).replace(",",".")).toLocaleString():n};t.roundUpper=function(){};t.price=0;t.discount=0;t.priceDiscount=0;t.recalc=function(){var n=0,i,r;t.data.Categories.forEach(function(t){t.Products.forEach(function(i){if(t.hasFilter==!1||t.SelectedLine.length<=0||i.Line==t.SelectedLine){var f=Number(i.Amount.toString().replace(",",".")),r=Number(i.Price.toString().replace(",",".")),u=Number(r*f);i.Price=r!=0?Number(r):"";i.PriceSum=u!=0?Number(u):"";n+=u}})});i=0;t.isStaticPrice()?(t.price=n!=0?AK.Common.mathRoundUp(Number(n),t.decimalPlaces):"",i=100-t.staticPrice*100/n,t.discount=i.toFixed(t.decimalPlaces).toString().replace(".",","),t.priceDiscount=t.staticPrice):t.isStaticDiscount()?(t.price=n!=0?AK.Common.mathRoundUp(Number(n),t.decimalPlaces):"",t.discount=t.staticDiscount.toFixed(t.decimalPlaces).toString().replace(".",","),i=t.staticDiscount,t.priceDiscount=n!=0?AK.Common.mathRoundUp(Number(n*((100-i)/100)),t.decimalPlaces):""):(t.price=n!=0?AK.Common.mathRoundUp(Number(n),t.decimalPlaces):"",r=t.getDiscount(n),i=r.discount,t.discount=r.discount.toFixed(t.decimalPlaces).toString().replace(".",","),t.nextPrice=r.nextPrice-n>0?(r.nextPrice-n).toFixed(t.decimalPlaces).toString().replace(".",","):"",t.nextDiscount=r.nextDiscount>0?r.nextDiscount.toFixed(t.decimalPlaces).toString().replace(".",","):"",t.priceDiscount=n!=0?AK.Common.mathRoundUp(Number(n*((100-r.discount)/100)),t.decimalPlaces):"");t.data.Categories.forEach(function(n){n.Products.forEach(function(r){if(n.hasFilter==!1||n.SelectedLine.length<=0||r.Line==n.SelectedLine){var e=Number(r.Amount.toString().replace(",",".")),u=Number(r.Price.toString().replace(",",".")),f=Number(u*e);r.PriceDiscount=u!=0?Number((u*((100-i)/100)).toFixed(t.decimalPlaces)):"";r.PriceDiscountSum=f!=0?Number((f*((100-i)/100)).toFixed(t.decimalPlaces)):""}})})};t.getDiscount=function(n){var u=0,f=0,e=0,r=t.discounts.filter(function(t){return t.Price<n}).sort(function(n,t){return n-t}),i;return r!=null&&r.length>0&&(u=r[r.length-1].Value),i=t.discounts.filter(function(t){return t.Price>n}).sort(function(n,t){return n-t}),i!=null&&i.length>0&&(f=i[0].Price,e=i[0].Value),{discount:u,nextPrice:f,nextDiscount:e}};t.changeAmount=function(n,i){var r,u;if((i=Number(i),r=Number(n.Amount),r<0)||(u=r%n.StepAmount,u>0)||r>t.amountLimit)return n.Amount=i,!1;n.Amount=r;t.recalc()};t.amountDecrease=function(n){n.Amount>=n.StepAmount&&(n.Amount=parseInt(n.Amount)-n.StepAmount,t.recalc())};t.amountIncrease=function(n){var i=parseInt(n.Amount)+n.StepAmount;if(i>t.amountLimit)return!1;n.Amount=i;t.recalc()};t.getCategory=function(n){return AK.Common.altFind(t.data.Category,function(t){return t.Id==n})};t.cartAdd=function(){var n=[];t.data.Categories.forEach(function(t){t.Products.forEach(function(i){(t.HasFilter==!1||i.Line==t.SelectedLine)&&i.Amount>0&&n.push(i)})});t.sendData(n)};t.sendData=function(t){n.akDataLoadingStringAdd("MarketingPackageDetailOrderData");i.MarketingPackage.cartAddData(u,r,t).then(function(t){t.data.errorMessage!=undefined&&t.data.errorMessage.length>0?AK.System.ShowMessage(t.data.errorMessage):(AK.System.ShowMessage(t.data.message),t.data.success==!0&&t.data.link!=undefined&&t.data.link.length>0&&(window.location=t.data.link));n.akDataLoadingStringRemove("MarketingPackageDetailOrderData")},function(){AK.System.alert("Marketing package order data failed");n.akDataLoadingStringRemove("MarketingPackageDetailOrderData")})}},AK.EET.initSetting=function(n,t,i){AK.System.alert("@EET.initSetting");t.eet=undefined;t.loadData=function(){n.akDataLoadingStringAdd("EETSettingLoadData");i.eet.getData().then(function(i){i.data.errorMessage.length<=0?(t.eet=i.data.eet,AK.System.alert("Load EET data success")):(AK.System.alert("Load EET failed"),AK.System.ShowMessage(i.data.ErrorMessage));$(".eetSettingContainer").removeClass("visibilityOff");n.akDataLoadingStringRemove("EETSettingLoadData")},function(){AK.System.alert("Load EET data failed");$(".eetSettingContainer").removeClass("visibilityOff");n.akDataLoadingStringRemove("EETSettingLoadData")})};t.loadData();t.formSubmitted=!1;t.saveData=function(){t.formSubmitted=!0;t.eetForm.$invalid?AK.System.ShowMessage("Data nejsou ve spravnem tvaru"):(n.akDataLoadingStringAdd("EETSettingSetData"),i.eet.setData(t.eet).then(function(i){i.data.errorMessage.length<=0?AK.System.alert("EET save data success"):(AK.System.alert("EET save data failed"),AK.System.ShowMessage(i.data.errorMessage));n.akDataLoadingStringRemove("EETSettingSetData");t.eet=i.data.eet},function(){AK.System.alert("EET save data failed");n.akDataLoadingStringRemove("EETSettingSetData")}))};t.deleteCertificate=function(){n.akDataLoadingStringAdd("EETSettingDeleteCertificate");i.eet.deleteCertificate().then(function(i){i.data.errorMessage.length<=0?(AK.System.alert("EET delete certificate success"),t.eet=i.data.eet):(AK.System.alert("EET delete certificate failed"),AK.System.ShowMessage(i.data.ErrorMessage));n.akDataLoadingStringRemove("EETSettingDeleteCertificate")},function(){AK.System.alert("EET delete certificate failed");n.akDataLoadingStringRemove("EETSettingDeleteCertificate")})};t.setActive=function(n){t.eet.IsActive=n;t.saveData()}},AK.EDI.init=function(n,t,i,r){AK.System.alert("@EDI.init");t.isLoading=!1;t.product=null;t.data=null;t.showCartAdd=!1;t.setData=function(n,i){t.data=null;t.product=n;t.showCartAdd=i;t.loadData()};t.clear=function(){t.data=null;t.product=null;t.showCartAdd=!1;t.isLoading=!1};t.loadData=function(){t.data=null;t.isLoading=!0;r.EDI.get(t.product.Id,t.product.Amount).then(function(r){r.data.errorMessage.length<=0?(r.data.productId.toString()==n.AKStockDispProductId&&(t.data=r.data.data,t.data.Description=i.trustAsHtml(t.data.Description),t.calcSum(),n.$emit("IsEDIProductStock",t.product.Id,t.amountSum>0),t.data.Disponibility=null,t.amountSum>0&&t.loadDisponibility()),AK.System.alert("EDI load data success")):(AK.System.alert("EDI load data failed"),AK.System.ShowMessage(r.data.errorMessage));t.isLoading=!1},function(){AK.System.alert("EDI load data failed");t.isLoading=!1})};t.isExpressOrderable=function(){if(t.data==null||t.data.Items==null||t.data.Items.length<=0)return!1;var n=t.data.Items.findIndex(function(n){return n.Amount>0});return n>=0&&t.data.IsExpressOrderable};t.loadDisponibility=function(){r.ProductDisponibility(t.product.Id,t.product.Amount,!0).then(function(n){t.data.Disponibility=n.data.disponibility;n.data.errorMessage.length>0&&AK.System.alert("Product disponibility load failed")},function(){AK.System.alert("Product disponibility load failed")})};t.disponibilityAddProductCart=function(i){(t.product.NonReversible!==!0||window.confirm("Produkt lze vratit pouze se schvalenim produktoveho manazera."))&&n.$emit("CartAddProduct",t.product.Id,t.product.Amount,t.product.StepAmount,i,"","","","",!1)};t.amountSum=0;t.calcSum=function(){t.amountSum=0;t.data!=null&&t.data.Items!=null&&t.data.Items.length>0&&t.data.Items.forEach(function(n){t.amountSum=t.amountSum+n.Amount})};t.increaseAmount=function(){t.product.Amount=Number(Number(t.product.Amount)+Number(t.product.StepAmount))};t.decreaseAmount=function(){var n=Number(t.product.Amount),i=Number(t.product.StepAmount);return n>i&&(t.product.Amount=Number(n-i)),!1}},AK.Product.initStockDisponibility=function(n,t,i){AK.System.alert("@Product.initStockDisponibility");t.visible=!1;t.isLoading=!1;t.product=null;t.data=null;t.showDisponibility=!0;t.setData=function(n,i){t.visible=i;t.data=null;t.product=n;i==!0&&t.loadData()};t.loadData=function(){t.data=null;t.isLoading=!0;i.product.getStockDisponibility(t.product.Id,t.product.Amount,!1).then(function(i){i.data.errorMessage.length<=0?(i.data.productId.toString()==n.AKStockDispProductId&&(t.data=i.data.data,t.data.Disponibility=null,t.loadDisponibility()),AK.System.alert("Product stock load data success")):(AK.System.alert("Product stock load data failed"),AK.System.ShowMessage(i.data.errorMessage));t.isLoading=!1},function(){AK.System.alert("Product stock load data failed");t.isLoading=!1})};t.loadDisponibility=function(){i.ProductDisponibility(t.product.Id,t.product.Amount,!1).then(function(n){n.data.errorMessage.length<=0?t.data.Disponibility=n.data.disponibility:AK.System.alert("Product disponibility load failed")},function(){AK.System.alert("Product disponibility load failed")})};t.disponibilityAddProductCart=function(i){(t.product.NonReversible!==!0||window.confirm("Produkt lze vratit pouze se schvalenim produktoveho manazera."))&&n.$emit("CartAddProduct",t.product.Id,t.product.Amount,t.product.StepAmount,i,"","","","",!1)};n.$on("IsEDIProductStock",function(n,i,r){t.product.Id==i&&(t.showDisponibility=r)});t.increaseAmount=function(){t.product.Amount=Number(Number(t.product.Amount)+Number(t.product.StepAmount))};t.decreaseAmount=function(){var n=Number(t.product.Amount),i=Number(t.product.StepAmount);return n>i&&(t.product.Amount=Number(n-i)),!1}},CartItemPromiseTypes={Unknown:0,InHouseOnStock:1,InHouseAvailableOn:2,ExternalOnStock:3,CommonDelivery:4},AK.Product.initStockDisponibility2=function(n,t,i,r){AK.System.alert("@Product.initStockDisponibility");t.ediVisible=!1;t.isLoading=!1;t.ediIsLoading=!1;t.boschVisible=!1;t.boschIsLoading=!1;t.product=null;t.akData=null;t.ediData=undefined;t.boschData=undefined;t.showDisponibility=!0;t.noAvailableAmount=0;t.noAvailableText="";t.noAvailableDate="";t.firstLoad=!0;t.productDeliveryStock=0;t.hasDelivery=!1;t.setData=function(n){t.ediVisible=n.HasEDI&&n.Amount>n.StorageStockAmount;t.boschVisible=n.HasBOSCH&&n.Amount>n.StorageStockAmount;t.akData=null;t.ediData=null;t.boschData=null;t.product=n;t.firstLoad=!0;n!=null&&t.loadData()};t.loadData=function(){t.akData=null;t.isLoading=!0;i.product.getStockDisponibility(t.product.Id,t.product.Amount,t.firstLoad).then(function(i){i.data.errorMessage.length<=0?(i.data.productId.toString()==n.AKStockDispProductId&&(t.firstLoad&&(t.hasDelivery=i.data.data.HasDelivery,t.productDeliveryStock=i.data.data.ProductDeliveryStock),t.akData=i.data.data,t.akData.Disponibility=null,t.baseProcess(),t.ediProcess(),t.boschProcess()),AK.System.alert("Product stock load data success")):(AK.System.alert("Product stock load data failed"),AK.System.ShowMessage(i.data.errorMessage));t.isLoading=!1;t.firstLoad=!1},function(){AK.System.alert("Product stock load data failed");t.isLoading=!1;t.firstLoad=!1})};t.baseProcess=function(){if(t.noAvailableAmount=t.akData.Items.reduce(function(n,t){return n+(t.Available==!1?t.Amount:0)},0),t.noAvailableAmount>0){var n=AK.Common.altFind(t.akData.Items,function(n){return n.Available==!1});t.noAvailableText=n.Value;t.noAvailableDate=n.Date}};t.ediProcess=function(){t.ediVisible=!1;t.noAvailableAmount>0&&t.product.HasEDI&&(t.ediVisible=!0,t.loadEDIData(t.noAvailableAmount))};t.loadEDIData=function(u){t.ediData=null;t.ediIsLoading=!0;i.EDI.get(t.product.Id,u).then(function(i){if(i.data.errorMessage.length<=0){if(i.data.productId.toString()==n.AKStockDispProductId)if(i.data.data.IsExpressOrderable==!0&&i.data.data.Items!=null){var u=i.data.data.Items.reduce(function(n,t){return n+t.Amount},0);u>0?(t.ediData=i.data.data,t.ediData.Description=r.trustAsHtml(t.ediData.Description),t.ediData.AmountSum=Math.min(u,t.noAvailableAmount),t.ediData.Disponibility=null,t.ediVisible=!0,t.ediData.AmountSum>0&&t.loadEDIDisponibility(),t.noAvailableAmount-=t.ediData.AmountSum):t.ediVisible=!1}else t.ediVisible=!1;AK.System.alert("EDI load data success")}else AK.System.alert("EDI load data failed"),AK.System.ShowMessage(i.data.errorMessage),t.ediVisible=!1;t.ediIsLoading=!1},function(){AK.System.alert("EDI load data failed");t.ediIsLoading=!1;t.ediVisible=!1})};t.loadEDIDisponibility=function(){i.ProductDisponibility(t.product.Id,t.ediData.AmountSum,!0).then(function(i){i.data.productId.toString()==n.AKStockDispProductId&&(i.data.errorMessage.length<=0?t.ediData.Disponibility=i.data.disponibility:AK.System.alert("Product EDI disponibility load failed"))},function(){AK.System.alert("Product EDI disponibility load failed")})};t.loadDisponibility=function(){i.ProductDisponibility(t.product.Id,t.product.Amount,!1).then(function(i){i.data.productId.toString()==n.AKStockDispProductId&&(i.data.errorMessage.length<=0?t.akData.Disponibility=i.data.disponibility:AK.System.alert("Product disponibility load failed"))},function(){AK.System.alert("Product disponibility load failed")})};t.disponibilityAddProductCart=function(){if(t.product.NonReversible!==!0||window.confirm("Produkt lze vratit pouze se schvalenim produktoveho manazera.")){var i=(t.ediData!=null&&t.ediData.IsExpressOrderable==!0&&t.ediData.AmountSum>0||t.boschData!=null&&t.boschData.IsExpressOrderable==!0&&t.boschData.AmountSum>0)&&t.product.Amount>t.product.StorageStockAmount;n.$emit("CartAddProduct",t.product.Id,t.product.Amount,t.product.StepAmount,i,"","",!1);i||$(".ModalProductStockDisponibility").modal("hide")}};t.boschProcess=function(){t.boschVisible=!1;t.noAvailableAmount>0&&t.product.HasBOSCH&&(t.boschVisible=!0,t.loadBOSCHData(t.noAvailableAmount))};t.loadBOSCHData=function(u){t.boschData=null;t.boschIsLoading=!0;i.BOSCH.get(t.product.Id,u).then(function(i){if(i.data.errorMessage.length<=0){if(i.data.productId.toString()==n.AKStockDispProductId&&i.data.data.IsExpressOrderable==!0&&(t.boschData=i.data.data,t.boschVisible=t.boschData!=null&&t.boschData.IsExpressOrderable==!0&&t.boschData.Items!=null&&t.boschData.Items.length>0,t.boschVisible)){t.boschData.Description=r.trustAsHtml(t.boschData.Description);var u=t.boschData.Items.reduce(function(n,t){return n+t.Amount},0);u>0&&(t.boschData.AmountSum=Math.min(u,t.noAvailableAmount),t.noAvailableAmount-=t.boschData.AmountSum)}AK.System.alert("BOSCH load data success")}else AK.System.alert("BOSCH load data failed"),AK.System.ShowMessage(i.data.errorMessage),t.boschVisible=!1;t.boschIsLoading=!1},function(){AK.System.alert("BOSCH load data failed");t.boschIsLoading=!1;t.boschVisible=!1})};n.$on("CartAddProductExpressSucceed",function(n,i,r,u){var f,e,o;t.product.Id==i&&t.product.HasEDI==!0&&(f=[],e=AK.Common.altFind(t.akData.Items,function(n){return n.Type==CartItemPromiseTypes.InHouseOnStock}),e!=null&&f.push(t.createPromise(CartItemPromiseTypes.InHouseOnStock,e.Value,e.Date,e.Amount,e.StorageAbbrev)),o=AK.Common.altFind(t.akData.Items,function(n){return n.Type==CartItemPromiseTypes.InHouseAvailableOn}),o!=null&&f.push(t.createPromise(CartItemPromiseTypes.InHouseAvailableOn,o.Value,o.Date,o.Amount,o.StorageAbbrev)),t.ediData.AmountSum>0&&f.push(t.createPromise(CartItemPromiseTypes.ExternalOnStock,t.ediData.Disponibility.Text,t.ediData.Disponibility.Text,t.ediData.AmountSum,t.ediData.SupplierName)),t.noAvailableAmount>0&&f.push(t.createPromise(CartItemPromiseTypes.CommonDelivery,t.noAvailableText,t.noAvailableDate,t.noAvailableAmount,"NO")),promise={CartId:r,CartItemId:u,ProductId:i,Items:f},t.updatePromise(promise));$(".ModalProductStockDisponibility").modal("hide")});t.createPromise=function(n,t,i,r,u){return promiseItem={TypeId:n,Date:i,Text:t,Amount:r,LastUpdate:"",StorageAbbrev:u}};t.updatePromise=function(n){i.cart.updatePromise(n).then(function(n){n.data.errorMessage.length>0&&AK.System.alert("Update promise error: "+n.data.errorMessage)},function(){AK.System.alert("Update promise  failed")})};t.recalcAmount=function(){var i,n;if(t.hasDelivery)return t.loadData(),!1;if(t.product.Amount<=t.product.StorageStockAmount+t.productDeliveryStock+1)return i=t.akData.Items.reduce(function(n,t){return n+(t.Available==!0?t.Amount:0)},0),i<t.product.Amount?t.loadData():t.baseProcess(),!1;if(n=t.product.Amount-t.product.StorageStockAmount-t.productDeliveryStock,t.HasEDI){if(n<=t.ediData.AmountSum)return t.ediData.AmountSum=n,t.noAvailableAmount=0,!1;t.noAvailableAmount=n;t.loadEDIData(n)}else t.noAvailableAmount=n};t.increaseAmount=function(){t.product.Amount=Number(Number(t.product.Amount)+Number(t.product.StepAmount));t.recalcAmount()};t.decreaseAmount=function(){var n=Number(t.product.Amount),i=Number(t.product.StepAmount);return n>i&&(t.product.Amount=Number(n-i)),t.loadData(),!1}},AK.PPC.CheckGat=function(){typeof _gat!="object"?window.setTimeout(AK.PPC.CheckGat,1e3):AK.PPC.TransactionCommit()},AK.PPC.TransactionCommit=function(){var n=AK.PPC.Transaction,r,t;if(n!=undefined&&typeof _gat=="object"){for(AK.System.alert("transaction.UaCode: "+n.UaCode),r=_gat._getTracker(n.UaCode),r._trackPageview(),AK.System.alert("TransactionId: "+n.OrderId+", sumprice: "+n.PriceSum.replace(/\s/g,"")),r._addTrans(n.OrderId,n.Role,n.PriceSum.replace(/\s/g,""),"0","0","Prague","CZ","CZ"),i=0;i<n.Items.length;i++)t=n.Items[i],AK.System.alert("TransactionItem - code: "+t.Code+", Name: "+t.Name+", Category: "+t.Category+", Price: "+t.Price.replace(/\s/g,"")),r._addItem(n.OrderId,t.Code,t.Name,t.Category,t.Price.replace(/\s/g,""),t.Amount);r._trackTrans();AK.PPC.Transaction=undefined}},AK.PPC.TransactionProcess=function(n){AK.System.alert("PPC Set Transaction");try{AK.PPC.Transaction=JSON.parse(n);typeof _gat!="object"?(AK.System.AddJavascript("http://www.google-analytics.com/ga.js","form"),window.setTimeout(AK.PPC.CheckGat,500)):AK.PPC.TransactionCommit();return}catch(t){AK.System.alert("error: "+t)}},AK.AkDocument.init=function(n,t,i,r){AK.System.alert("@AkDocument.initList");t.data=undefined;t.activeFlagPath="";t.loadFirst=function(){n.akDataLoadingStringAdd("AkDocumentLoadData");i.akDocument.getFirst().then(function(i){t.data=i.data.data;t.data!=null&&t.data!=""&&(t.data.Description=r.trustAsHtml(t.data.Description),t.data.Flags.forEach(function(n){n.Active.length>0&&(t.activeFlagPath=n.ImagePath)}),$("#akDocumentModal").modal("show"));AK.System.alert("AkDocument load data success");$(".akDocumentContainer").removeClass("visibilityOff");n.akDataLoadingStringRemove("AkDocumentLoadData")},function(){AK.System.alert("Get AkDocument data failed");$(".akDocumentContainer").removeClass("visibilityOff");n.akDataLoadingStringRemove("AkDocumentLoadData")})};t.loadFirst();t.loadDocument=function(u,f){n.akDataLoadingStringAdd("AkDocumentLoadData");i.akDocument.getData(u,f).then(function(i){t.data=i.data.data;t.data!=null&&t.data!=""&&(t.data.Description=r.trustAsHtml(t.data.Description),t.data.Flags.forEach(function(n){n.Active.length>0&&(t.activeFlagPath=n.ImagePath)}),$("#akDocumentModal").modal("show"));AK.System.alert("AkDocument load data success");$(".akDocumentContainer").removeClass("visibilityOff");n.akDataLoadingStringRemove("AkDocumentLoadData")},function(){AK.System.alert("Get AkDocument data failed");$(".akDocumentContainer").removeClass("visibilityOff");n.akDataLoadingStringRemove("AkDocumentLoadData")})};t.selectLanguage=function(n){t.loadDocument(t.data.DocumentId,n)};t.process=function(u){if($("#akDocumentModal").modal("hide"),t.data.MustAgree==!0&&u==!1)return window.location="/Account/Logout",!1;n.akDataLoadingStringAdd("AkDocumentProcess");i.akDocument.process(t.data.DocumentId,t.data.LanguageType,u).then(function(i){t.data=i.data.data;t.data!=null&&t.data!=""&&(t.data.Description=r.trustAsHtml(t.data.Description),$("#akDocumentModal").modal("show"));AK.System.alert("AkDocument process success");n.akDataLoadingStringRemove("AkDocumentProcess")},function(){AK.System.alert("Get AkDocument process failed");n.akDataLoadingStringRemove("AkDocumentProcess")})}},_typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},AK.Common.setDatetimepicker=function(){$(".form_delivery_date").datetimepicker({language:AK.System.datePickerLanguage,weekStart:1,todayBtn:1,autoclose:1,todayHighlight:1,startDate:new Date,startView:2,minView:2,forceParse:0,showMeridian:1,toggleActive:!0});$(".form_date").datetimepicker({language:AK.System.datePickerLanguage,weekStart:1,todayBtn:1,autoclose:1,todayHighlight:1,startView:4,minView:2,forceParse:0,showMeridian:1});$(".form_date_time").datetimepicker({language:AK.System.datePickerLanguage,weekStart:1,todayBtn:1,autoclose:1,todayHighlight:1,forceParse:0,showMeridian:1})},AK.Common.datetimeFormat=/^[0-9.:\s]+$/,AK.Common.isValidDateTimeFormat=function(n,t){return n!=undefined&&n.match(AK.Common.datetimeFormat)&&moment(n,t).isValid()},AK.Common.processDateTimeValue=function(n,t,i,r){if(t!=""){var u=AK.Common.isValidDateTimeFormat(t,r);u||$("#"+n).val(i)}},AK.Common.toNumber=function(n){return Number(n.toString().replace(",",".").replace(" ",""))},AK.Common.numberRoundUp=function(n,t){return n==0?n:Math.ceil(n/t)*t},AK.Common.mathRoundUp=function(n,t){return Math.ceil(n*Math.pow(10,t))/Math.pow(10,t)},REGEX_EMPTY="\\s",String.prototype.replaceAll=function(n,t){var i=this;return i.replace(new RegExp(n,"g"),t)},AK.Common.FormatToText=function(n){return n.toLocaleString("cs-CZ")},AK.Common.FormatToNumber=function(n){return Number(n.replaceAll(REGEX_EMPTY,"").replaceAll(",","."))},AK.Common.loadDigitOnly=function(){$(".onlyDigit").live("keypress",function(n){var t=n.charCode?n.charCode:n.keyCode?n.keyCode:0;return t>31&&(t<48||t>57)?!1:!0})},AK.Common.loadDigitOnlySpace=function(){$(".onlyDigitSpace").live("keypress",function(n){var t=n.charCode?n.charCode:n.keyCode?n.keyCode:0;return t>33&&(t<48||t>57)?!1:!0})},AK.Common.loadPriceDigitOnly=function(){$(".onlyDigitPrice").live("keypress",function(n){return n.charCode>=48&&n.charCode<=57||n.charCode==44||n.charCode==8||n.charCode==127})},AK.Common.loadPriceMinusDigitOnly=function(){$(".onlyDigitPriceMinus").live("keypress",function(n){return n.charCode>=48&&n.charCode<=57||n.charCode==44||n.charCode==8||n.charCode==127||n.charCode==45})},AK.Common.loadDateDigitOnly=function(){$(".onlyDigitDate").live("keypress",function(n){return n.charCode>=45&&n.charCode<=58||n.charCode==8||n.charCode==127})},AK.Common.altFind=function(n,t){for(var r,i=0;i<n.length;i++)if(r=t(n[i]),r)return n[i]},AK.Common.newGuid=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(n){var t=Math.random()*16|0,i=n=="x"?t:t&3|8;return i.toString(16)})},$(document).ready(function(){AK.Common.setDatetimepicker();AK.Common.loadDigitOnly();AK.Common.loadDigitOnlySpace();AK.Common.loadPriceDigitOnly();AK.Common.loadPriceMinusDigitOnly();AK.Common.loadDateDigitOnly()}),AK.Common.getDataLoading=function(n,t){n.showLoading=!1;n.akDataLoadingString="";t.akDataLoadingStringAdd=function(t){n.akDataLoadingString=n.akDataLoadingString+t;n.showLoading=n.akDataLoadingString.length>0};t.akDataLoadingStringRemove=function(t){n.akDataLoadingString=n.akDataLoadingString.replace(t,"");n.showLoading=n.akDataLoadingString.length>0}},AK.Common.exportCsvFile=function(n,t){var r="data:text/csv;charset=utf-8,"+n.join("\r\n"),u=encodeURI(r),i=document.createElement("a");i.setAttribute("href",u);i.setAttribute("download",t+".csv");document.body.appendChild(i);i.click()},AK.Common.exportXmlFile=function(n,t){var r="data:text/xml;charset=utf-8,"+n.replace("#",""),u=encodeURI(r),i=document.createElement("a");i.setAttribute("href",u);i.setAttribute("download",t);i.style.display="none";document.body.appendChild(i);i.click();document.body.removeChild(i)},AK.Common.getUrlParam=function(n){for(var u=window.location.search.substring(1),r=u.split("&"),t,i=0;i<r.length;i++)if(t=r[i].split("="),t[0]===n)return _typeof(t[1])===undefined?!0:decodeURIComponent(t[1]);return!1},akAngularModule=angular.module("akApp",["ngMessages","ngSanitize","ui.bootstrap","akApp.controllers","akApp.services","SignalR","ui.bootstrap.modal","jQueryScrollbar","vcRecaptcha","angular.filter","timer","isteven-multi-select","rzModule","angular-fullcalendar"]),angular.module("akApp.controllers",[]).run(["$rootScope",function(n){n.productListVisibility={Product:!1,ProductPrefered:!1,ProductOriginal:!1};n.processDateTimeValue=function(n,t,i,r){AK.Common.processDateTimeValue(n,t,i,r)}}]).factory("AKHub",["$rootScope","Hub",function(n,t){var i=new t("AKHub",{listeners:{AuctionPriceReload:function(t){n.$emit("auctionPriceReload",t)},AuctionStateReload:function(){n.$emit("auctionStateReload")},RegistrationStatusReload:function(){n.$emit("registrationStatusReload")},OrderStatusReload:function(){n.$emit("orderStatusReload")}},methods:["AuctionPriceChanged","AuctionStateChanged","RegistrationStatusChanged","OrderStatusChanged"],queryParams:{token:"exampletoken"},errorHandler:function(n){console.error(n)},stateChanged:function(n){switch(n.newState){case $.signalR.connectionState.connecting:AK.System.alert("connecting");break;case $.signalR.connectionState.connected:AK.System.alert("connected");break;case $.signalR.connectionState.reconnecting:AK.System.alert("reconnecting");break;case $.signalR.connectionState.disconnected:AK.System.alert("disconnected")}}}),r=function(n){AK.System.alert("SignalR - auctionPriceChanged");i.AuctionPriceChanged(n)},u=function(){AK.System.alert("SignalR - auctionStateChanged");i.AuctionStateChanged()},f=function(n){AK.System.alert("SignalR - registrationStatusChanged");i.RegistrationStatusChanged(n)},e=function(){AK.System.alert("SignalR - orderStatusChanged");i.OrderStatusChanged()};return{auctionPriceChanged:r,auctionStateChanged:u,registrationStatusChanged:f,orderStatusChanged:e}}]).directive("stringToNumber",function(){return{require:"ngModel",link:function(n,t,i,r){r.$parsers.push(function(n){return""+n});r.$formatters.push(function(n){return parseFloat(n,10)})}}}).directive("hideZero",function(){return{link:function(n,t){t.on("input change",function(){this.value==="0"&&(this.value="")})}}}).filter("marketingPackageFilter",[function(){return function(n,t){return t?n.filter(function(n){return t.length<=0||n.Line==t}):n}}]).controller("akSystemMessageController",["$rootScope","$scope","akService","$sce",function(n,t,i,r){AK.SystemMessage.init(n,t,i,r)}]).controller("akHistory2Controller",["$rootScope","$scope","akService",function(n,t,i){AK.History2.init(n,t,i)}]).controller("akHistory2CatalogController",["$rootScope","$scope","akService",function(n,t,i){AK.History2Catalog.init(n,t,i)}]).controller("akHistory2ProductController",["$rootScope","$scope","akService",function(n,t,i){AK.History2Product.init(n,t,i)}]).controller("akHistory2VinController",["$rootScope","$scope","akService",function(n,t,i){AK.History2Vin.init(n,t,i)}]).controller("akBatchInfoController",["$scope","$rootScope","akService","$sce",function(n,t,i,r){AK.BatchInfo.init(n,t,i,r)}]).controller("akElitLoanController",["$scope","$rootScope","akService","$sce",function(n,t,i,r){AK.ElitLoan.initList(n,t,i,r)}]).controller("akElitCreditMemosController",["$scope","$rootScope","akService","$sce",function(n,t,i,r){AK.ElitCreditMemos.initList(n,t,i,r)}]).controller("akElitShipmentController",["$scope","$rootScope","akService","$sce",function(n,t,i,r){AK.ElitShipment.initList(n,t,i,r)}]).controller("akElitInvoiceController",["$scope","$rootScope","akService","$sce",function(n,t,i,r){AK.ElitInvoice.initList(n,t,i,r)}]).controller("akElitOrderListOrdersController",["$scope","$rootScope","akService","$sce",function(n,t,i,r){AK.ElitOrder.initListOrders(n,t,i,r)}]).controller("akElitOrderListItemsController",["$scope","$rootScope","akService","$sce",function(n,t,i,r){AK.ElitOrder.initListItems(n,t,i,r)}]).controller("akElitVendorInfoController",["$rootScope","$scope","$sce","akService",function(n,t,i,r){AK.ElitVendorInfo.init(n,t,i,r)}]).controller("akEDIController",["$rootScope","$scope","$sce","akService",function(n,t,i,r){AK.EDI.init(n,t,i,r)}]).controller("akProductStockDisponibilityController",["$rootScope","$scope","akService",function(n,t,i){AK.Product.initStockDisponibility(n,t,i)}]).controller("akProductStockDisponibility2Controller",["$rootScope","$scope","akService","$sce",function(n,t,i,r){AK.Product.initStockDisponibility2(n,t,i,r)}]).controller("akElitProductStockDisponibility2Controller",["$rootScope","$scope","akService","$sce",function(n,t,i,r){AK.Elit.Product.initStockDisponibility2(n,t,i,r)}]).controller("akElitOeDeliveryController",["$rootScope","$scope","akService","$attrs",function(n,t,i,r){AK.ElitOeDelivery.init(n,t,i,r.nonreversiblemessage)}]).controller("akTestIframeController",["$rootScope","$scope","akService",function(n,t,i){AK.TestIframe.init(n,t,i)}]).controller("akDocumentController",["$rootScope","$scope","akService","$sce",function(n,t,i,r){AK.AkDocument.init(n,t,i,r)}]).controller("akStaticTextController",["$rootScope","$scope","akService","$attrs","$sce",function(n,t,i,r,u){AK.StaticText.initList(n,t,i,r.page,u)}]).controller("akOrderAdminListController",["$rootScope","$scope","akService","AKHub",function(n,t,i,r){AK.OrderAdmin.initList(n,t,i,r)}]).controller("akOrderAdminDetailController",["$rootScope","$scope","akService","$sce","$attrs","AKHub",function(n,t,i,r,u,f){AK.OrderAdmin.initDetail(n,t,i,r,u.cartid,f)}]).controller("akOrderPromiseListController",["$rootScope","$scope","akService",function(n,t,i){AK.OrderPromise.initList(n,t,i)}]).controller("akOrderBranchListController",["$rootScope","$scope","akService","$attrs",function(n,t,i,r){AK.OrderBranch.initList(n,t,i,r.storageid)}]).controller("akRegistrationAdminListController",["$rootScope","$scope","akService","AKHub",function(n,t,i,r){AK.RegistrationAdmin.initList(n,t,i,r)}]).controller("akRegistrationAdminDetailController",["$rootScope","$scope","akService","$attrs","AKHub",function(n,t,i,r,u){AK.RegistrationAdmin.initDetail(n,t,i,r.registrationid,u)}]).controller("akOrderArchiveController",["$rootScope","$scope","akService",function(n,t,i){AK.Order.Archive.init(n,t,i)}]).controller("akProductReturnNewController",["$rootScope","$scope","akService",function(n,t,i){AK.ProductReturn.initNew(n,t,i)}]).controller("akProductReturnNewListController",["$rootScope","$scope","akService",function(n,t,i){AK.ProductReturn.initNewList(n,t,i)}]).controller("akProductReturnOldController",["$rootScope","$scope","akService",function(n,t,i){AK.ProductReturnOld.initCreate(n,t,i)}]).controller("akProductReturnOldListDaysController",["$rootScope","$scope","akService","$attrs",function(n,t,i,r){AK.ProductReturnOld.initListDays(n,t,i,r.page)}]).controller("akProductReturnOldListDayController",["$rootScope","$scope","akService","$attrs",function(n,t,i,r){AK.ProductReturnOld.initListDay(n,t,i,r.page,r.date)}]).controller("akProductReturnOldListController",["$rootScope","$scope","akService","$attrs",function(n,t,i,r){AK.ProductReturnOld.initList(n,t,i,r.page)}]).controller("akPriceCompareController",["$rootScope","$scope","akService","$attrs",function(n,t,i,r){AK.PriceCompare.init(n,t,i,r.pricecompareid)}]).controller("akPriceCompareListController",["$rootScope","$scope","akService","$attrs",function(n,t,i,r){AK.PriceCompare.initList(n,t,i,r.page)}]).controller("akDataLoadingController",["$scope","$rootScope","akService",function(n,t,i){AK.Common.getDataLoading(n,t,i)}]).controller("akCatalogBannerController",["$scope","akService",function(n,t){AK.Catalog.getBanner(n,t)}]).controller("akCatalogCarController",["$rootScope","$scope","akService","$attrs",function(n,t,i,r){AK.Catalog.getCar(n,t,i,r.catalogid)}]).controller("akCatalogModelController",["$scope","akService","$attrs",function(n,t,i){AK.Catalog.getModel(n,t,i.catalogid)}]).controller("akCatalogMotorController",["$rootScope","$scope","akService","$attrs","$sce",function(n,t,i,r,u){AK.Catalog.getMotor(n,t,i,r.catalogid,u)}]).controller("akCatalogCategoryController",["$rootScope","$scope","akService","$attrs",function(n,t,i,r){AK.Catalog.getCategory(n,t,i,r.catalogid)}]).controller("akCatalogController",["$rootScope","$scope","akService","$attrs",function(n,t,i,r){AK.Catalog.getCatalog(n,t,i,r.catalogid,r.viewtype)}]).controller("akCatalogSwitchViewController",["$rootScope","$scope","akService","$attrs",function(n,t,i,r){AK.Catalog.initSwitchView(n,t,i,r.switchactive)}]).controller("akCatalogAktiRootController",["$scope","akService","$attrs",function(n,t,i){AK.Catalog.getAktiRoot(n,t,i.catalogid)}]).controller("akHaynesProController",["$scope","akService",function(n,t){AK.HaynesPro.init(n,t)}]).controller("akHaynesProRepairTimesController",["$scope","akService","$attrs",function(n,t,i){AK.HaynesPro.RepairTimes.init(n,t,i.catalogpath,i.basketid,i.repairtypeid,i.emptyprintdatamessage)}]).controller("akHaynesProAdjustmentController",["$scope","akService","$attrs",function(n,t,i){AK.HaynesPro.Adjustment.init(n,t,i.catalogpath,i.generalarticleenabled)}]).controller("akHaynesProLubricantController",["$scope","akService","$attrs",function(n,t,i){AK.HaynesPro.Lubricant.init(n,t,i.catalogpath,i.generalarticleenabled)}]).controller("akHaynesProStoriesController",["$scope","akService","$attrs",function(n,t,i){AK.HaynesPro.Stories.init(n,t,i.catalogpath)}]).controller("akHaynesProBasketController",["$rootScope","$scope","akService","$attrs",function(n,t,i,r){AK.HaynesPro.Basket.init(n,t,i,r.catalogpath,r.basketid,r.repairtypeid)}]).controller("akHaynesProRepairTimesTaskController",["$scope","akService","$attrs",function(n,t,i){AK.HaynesPro.RepairTimesTask.init(n,t,i.path)}]).controller("akHaynesProTechnicalDrawingController",["$scope","akService","$attrs",function(n,t,i){AK.HaynesPro.TechnicalDrawing.init(n,t,i.catalogpath,i.generalarticleenabled)}]).controller("akHaynesProMaintenanceController",["$scope","akService","$attrs",function(n,t,i){AK.HaynesPro.Maintenance.init(n,t,i.catalogpath,i.generalarticleenabled)}]).controller("akCatalogAktiTreeList",["$scope","akService","$attrs",function(n,t,i){AK.Catalog.getAktiTreeList(n,t,i.type)}]).controller("akCatalogMenuController",["$rootScope","$scope","akService","$timeout",function(n,t,i,r){AK.Catalog.getMenu(n,t,i,r)}]).controller("akCatalogWheelConfigController",["$rootScope","$scope","akService","$sce","$attrs",function(n,t,i,r,u){AK.Catalog.getWheelConfig(n,t,i,r,u.catalogid)}]).controller("akCatalogGraphicSchemeController",["$scope","akService","$timeout",function(n,t,i){AK.Catalog.getGraphicScheme(n,t,i)}]).controller("akCatalogStripPathController",["$rootScope","$scope","akService",function(n,t,i){AK.Catalog.getStripPath(n,t,i)}]).controller("akCatalogImageStripController",["$rootScope","$scope","akService",function(n,t,i){AK.Catalog.getImageStrip(n,t,i)}]).controller("akCatalogInteractiveSchemeController",["$scope","akService","$sce","$attrs","$timeout",function(n,t,i,r,u){AK.Catalog.getInteractiveScheme(n,t,i,r.catalogid,r.showpanes,u)}]).controller("akProductFilterTestController",["$rootScope","$scope","akService","$attrs","$sce",function(n,t,i,r){AK.ProductFilter.initTest(n,t,i,r.catalogpath)}]).controller("akProductFilterController",["$rootScope","$scope","akService","$attrs",function(n,t,i){AK.ProductFilter.initLeftMenu(n,t,i)}]).controller("akProductFilter2Controller",["$rootScope","$scope","akService","$attrs","$timeout",function(n,t,i,r,u){AK.ProductFilter2.initLeftMenu(n,t,i,u)}]).controller("akProductListTrackInfoController",["$rootScope","$scope","akService",function(n,t,i){AK.ProductList.initTrackInfo(n,t,i)}]).controller("akProductListTopSell",["$rootScope","$scope","akService",function(n,t,i){AK.ProductList.getTopSell(n,t,i)}]).controller("akProductListController",["$rootScope","$scope","akService","$attrs","$sce",function(n,t,i,r,u){AK.ProductList.getProductList(n,t,i,r.listtype,r.ownid,u,r.page,r.nonreversiblemessage,r.showstockdisponibilitymodal,r.loaddataself,r.oedeliveryenabled,r.quantitydiscounttooltipenabled,r.elittimeavailability2enabled,r.loaddisponibilityenabled,r.trackinfoenabled)}]).controller("akProductListViewTypeFilterController",["$rootScope","$scope","akService",function(n,t,i){AK.ProductList.getProductListViewTypeFilter(n,t,i)}]).controller("akProductListBrandFilterController",["$rootScope","$scope","akService","$attrs",function(n,t,i,r){AK.ProductList.getProductListBrandFilter(n,t,i,r.listtype)}]).controller("akProductListPriceFilterController",["$rootScope","$scope","akService",function(n,t,i){AK.ProductList.getProductListPriceFilter(n,t,i)}]).controller("akProductListAttributeFilterController",["$rootScope","$scope","akService",function(n,t,i){AK.ProductList.getProductListAttributeFilter(n,t,i)}]).controller("akProductListVirtualSkeletonController",["$rootScope","$scope","akService",function(n,t,i){AK.ProductList.getProductListVirtualSkeleton(n,t,i)}]).controller("akProductListStockFilterController",["$rootScope","$scope","akService","$attrs",function(n,t,i,r){AK.ProductList.initStockFilter(n,t,i,r.stockenabled)}]).controller("akProductListRestrictionController",["$rootScope","$scope",function(n,t){AK.ProductList.initRestriction(n,t)}]).controller("akProductListGraphicSchemeController",["$rootScope","$scope","akService",function(n,t,i){AK.ProductList.getProductListGraphicScheme(n,t,i)}]).controller("akBannerController",["$scope","akService",function(n,t){AK.HomePage.getBanner(n,t)}]).controller("akWidgetController",["$scope","akService",function(n,t){AK.HomePage.getWidget(n,t)}]).controller("akPromoBannerController",["$scope","akService",function(n,t){AK.HomePage.getPromoBanner(n,t)}]).directive("widgethover",function(){return function(n,t){AK.HomePage.widgetHover(t)}}).controller("akHomepageRootMenuController",["$scope","akService","$attrs",function(n,t,i){AK.HomePage.getRootMenu(n,t,i)}]).directive("menuitemdropdown",function(){return function(n,t,i){AK.Catalog.menuItemDropdown(t,i.menuitemdropdown)}}).controller("akWorkshopController",["$scope","akService",function(n,t){AK.HomePage.getWorkshopGrid(n,t)}]).controller("akPaintingController",["$scope","akService",function(n,t){AK.HomePage.getPaintingGrid(n,t)}]).controller("akPresentationPopupController",["$scope","akService","$attrs",function(n,t,i){AK.HomePage.getPresentationPopup(n,t,i.cms)}]).controller("akFlagController",["$scope","akService",function(n,t){AK.Header.getFlag(n,t)}]).controller("akProductImageController",["$scope","akService","$attrs",function(n,t,i){AK.Product.getImage(n,t,i.productid)}]).controller("akProductCartController",["$rootScope","$scope","akService","$sce","$attrs",function(n,t,i,r,u){AK.Product.getCart(n,t,i,r,u.stepamount,u.nonreversiblemessage,u.expressordermessage,u.showstockdisponibilitymodal,u.oedeliveryenabled,u.loadoedelivery,u.productid,u.elittimeavailability2enabled)}]).controller("akProductAttributeController",["$rootScope","$scope","akService","$attrs",function(n,t,i,r){AK.Product.getAttribute(n,t,i,r.productid)}]).controller("akProductInfoController",["$rootScope","$scope","akService","$attrs",function(n,t,i,r){AK.Product.getInfo(n,t,i,r.productid,r.auctionid)}]).controller("akProductTabController",["$rootScope","$scope","akService","$attrs","$sce","$timeout",function(n,t,i,r,u,f){AK.Product.getTabs(n,t,i,r.productid,u,r.auctionid,f)}]).directive("compilecontent",["$compile","$parse",function(n,t){return{link:function(i,r,u){function e(){return(f(i)||"").toString()}var f=t(u.ngBindHtml);i.$watch(e,function(){n(r,null,-9999)(i)})}}}]).controller("akProductRecommendController",["$scope","akService","$attrs",function(n,t,i){AK.Product.getRecommend(n,t,i.productid,i.firstreccommendcatalogpath,i.loaduserprice)}]).controller("akProductCodesController",["$scope","akService","$attrs",function(n,t,i){AK.Product.getCode(n,t,i.productid)}]).controller("akProductOccurenceController",["$scope","akService","$attrs",function(n,t,i){AK.Product.getOccurence(n,t,i.productid,i.page)}]).controller("akProductLinkController",["$rootScope","$scope","akService","$attrs",function(n,t,i,r){AK.Product.getLink(n,t,i,r.productid,r.page)}]).controller("akProductStorageController",["$scope","akService","$attrs",function(n,t,i){AK.Product.getStorage(n,t,i.productid,i.nonzerostoragelistenabled,i.loaddisponibilityenabled)}]).controller("akProductStockController",["$rootScope","$scope","akService","$attrs",function(n,t,i){AK.Product.initStock(n,t,i)}]).controller("akCartHeaderController",["$rootScope","$scope","akService","$attrs",function(n,t,i,r){AK.Cart.getHeader(n,t,i,r.carttype,r.lowmessage,r.stepamountmessage)}]).controller("akCartMiniController",["$rootScope","$scope","akService","$attrs",function(n,t,i,r){AK.Cart.getMini(n,t,i,r.cartid,r.carttype)}]).controller("akCartMini2Controller",["$rootScope","$scope","akService","$attrs",function(n,t,i,r){AK.Cart.getMini2(n,t,i,r.cartid,r.carttype,r.showemptyfilter)}]).controller("akCartStepController",["$scope","akService","$attrs",function(n,t,i){AK.Cart.getStep(n,t,i.stepactive)}]).controller("akCartItemNoteModalController",["$rootScope","$scope","akService",function(n,t,i){AK.Cart.getItemNoteModal(n,t,i)}]).controller("akCartBigController",["$rootScope","$scope","akService","$attrs","$sce","$timeout",function(n,t,i,r,u,f){AK.Cart.getBig(n,t,i,r.cartid,r.carttype,u,f,r.removeallmessage,r.page)}]).controller("akCart2BigController",["$rootScope","$scope","akService","$attrs","$sce","$timeout",function(n,t,i,r,u,f){AK.Cart2.getBig(n,t,i,r.cartid,r.carttype,u,f,r.removeallmessage,r.page,r.showemptyfilter,r.cartcouponcode,r.elittimeavailability2enabled,r.loaddisponibilityenabled,r.promiseenabled)}]).controller("akCartModal",["$rootScope","$scope","akService","$attrs",function(n,t,i,r){AK.Cart.getModal(n,t,i,r.cartnameprefix)}]).controller("akCartRecapitulationController",["$rootScope","$scope","akService","$sce","$attrs",function(n,t,i,r,u){AK.Cart.getRecapitulation(n,t,i,r,u.showdisponibility,u.page,u.carttype,u.showpersonalagreement,u.promiseenabled,u.updatepromiseenabled,u.marketingcouponenabled)}]).controller("akCartProductAddController",["$rootScope","$scope","akService","$attrs",function(n,t,i,r){AK.Cart.getProductAdd(n,t,i,r.oedeliveryenabled)}]).controller("akCartPrintController",["$rootScope","$scope","akService",function(n,t,i){AK.Cart.initPrint(n,t,i)}]).controller("akTakeOffController",["$scope","akService","$sce","$rootScope","$timeout","$attrs",function(n,t,i,r,u,f){AK.TakeOff.initAccordion(n,t,i,r,u,f.messagerequiredtakeoff,f.messagerequiredpayment)}]).controller("akTakeOffStorageController",["$scope","akService","$rootScope","$attrs",function(n,t,i,r){AK.TakeOff.initStorage(n,t,i,r.type,r.autoregenabled,r.mapsourcetype)}]).controller("akTakeOffAKDeliveryController",["$scope","akService","$rootScope","$attrs",function(n,t,i,r){AK.TakeOff.initAKDeliveryStorage(n,t,i,r.type)}]).controller("akTakeOffExpressTakingController",["$scope","akService","$rootScope","$attrs",function(n,t,i,r){AK.TakeOff.initExpressTaking(n,t,i,r.type)}]).controller("akTakeOffDeliveryController",["$scope","akService","$rootScope","$attrs",function(n,t,i,r){AK.TakeOff.initDelivery(n,t,i,r.type,r.autoregenabled,r.isloged,r.checkpostalcodeenabled,r.deliverybypostalcodeenabled)}]).controller("akTakeOffServiceController",["$scope","akService","$rootScope","$attrs",function(n,t,i,r){AK.TakeOff.initService(n,t,i,r.type)}]).controller("akTakeOffModalMessageController",["$scope","akService","$rootScope",function(n,t,i){AK.TakeOff.initModalMessage(n,t,i)}]).filter("slice",function(){return function(n,t,i){return n.slice(t,i)}}).controller("akOrderController",["$scope","$rootScope","akService","$sce",function(n,t,i,r){AK.Order.getOrder(n,t,i,r)}]).controller("akOrderDetailController",["$scope","$rootScope","akService","$sce","$attrs",function(n,t,i,r,u){AK.Order.getOrderDetail(n,t,i,r,u.orderid,u.year,u.quarter)}]).controller("akOrderPanesController",["$scope","$rootScope","akService","$sce",function(n,t,i,r){AK.Order.getOrderPanes(n,t,i,r)}]).controller("akOrderListController",["$scope","$rootScope","akService",function(n,t,i){AK.Order.getOrderList(n,t,i)}]).controller("akOrderItemController",["$scope","$rootScope","akService",function(n,t,i){AK.Order.getOrderItem(n,t,i)}]).controller("akOrderItemCancelController",["$scope","$rootScope","akService",function(n,t,i){AK.Order.getOrderItemCancel(n,t,i)}]).controller("akHistoryCatalogController",["$rootScope","$scope","akService",function(n,t,i){AK.History.getHistoryCatalog(n,t,i)}]).controller("akHistoryVinController",["$scope","akService",function(n,t){AK.History.getHistoryVin(n,t)}]).controller("akDashboardController",["$scope","akService",function(n,t){AK.Dashboard.getUserInfo(n,t)}]).controller("akAccountStorageController",["$scope","akService",function(n,t){AK.Account.getStorage(n,t)}]).controller("akAccountSettingsController",["$scope","akService",function(n,t){AK.Account.getSettings(n,t)}]).controller("akAccountForgottenPasswordController",["$scope","akService",function(n,t){AK.Account.getForgottenPassword(n,t)}]).controller("akAccountChangePasswordController",["$scope","akService","$attrs",function(n,t,i){AK.Account.getChangePassword(n,t,i.changeid)}]).controller("akAccountDebtController",["$rootScope","$scope","akService",function(n,t,i){AK.Account.initDebt(n,t,i)}]).controller("akGarageController",["$scope","$rootScope","akService",function(n,t,i){AK.Garage.getCarList(n,t,i)}]).controller("akGarageSetupUserItemController",["$scope","$rootScope","akService",function(n,t,i){AK.GarageSetup.userItem(n,t,i)}]).controller("akGarageSetupTotalHiddenController",["$scope","$rootScope","akService",function(n,t,i){AK.GarageSetup.totalHidden(n,t,i)}]).controller("akGarageSetupProfileController",["$scope","$rootScope","akService",function(n,t,i){AK.GarageSetup.profile(n,t,i)}]).controller("akGarageCalendarController",["$rootScope","$scope","akService",function(n,t,i){AK.Garage.Calendar.init(n,t,i)}]).controller("akGarageCalendarServiceSheetController",["$rootScope","$scope","akService","$timeout",function(n,t,i,r){AK.Garage.Calendar.initServiceSheet(n,t,i,r)}]).controller("akCarDetailController",["$scope","$rootScope","akService","$attrs","$sce",function(n,t,i,r,u){AK.Garage.getCarDetail(n,t,i,u,r.parkedcarid)}]).controller("akGarageParkedCarDeleteController",["$rootScope","$scope","akService",function(n,t,i){AK.Garage.getParkedCarDelete(n,t,i)}]).controller("akHomeServiceController",["$scope","$rootScope","akService","$attrs",function(n,t,i,r){AK.Garage.getHomeServiceList(n,t,i,r.gpsSourceType)}]).controller("akServiceSheetCarListController",["$scope","$rootScope","akService","$attrs",function(n,t,i,r){AK.ServiceSheet.initCarList(n,t,i,r.parkedcarid)}]).controller("akServiceBookController",["$scope","$rootScope","akService",function(n,t,i){AK.Garage.getServiceBook(n,t,i)}]).controller("akServiceInspectionController",["$scope","$rootScope","akService","$attrs",function(n,t,i,r){AK.Garage.initServiceInspection(n,t,i,r.carid,r.inspectionid,r.companyid,r.badrowmessage)}]).controller("akParkNewCarController",["$rootScope","$scope","akService",function(n,t,i){AK.Garage.getParkNewCar(n,t,i)}]).controller("akGarageNotificationController",["$rootScope","$scope","akService",function(n,t,i){AK.Garage.notificationInit(n,t,i)}]).controller("akParkedCarOrderListController",["$rootScope","$scope","akService","$attrs",function(n,t,i,r){AK.Garage.parkedCar.orderListInit(n,t,i,r.archiveenabled)}]).controller("akCalcOfferListController",["$rootScope","$scope","akService","$attrs",function(n,t,i,r){AK.CalcOffer.initList(n,t,i,r.page)}]).controller("akCalcOfferCarListController",["$rootScope","$scope","akService","$attrs",function(n,t,i,r){AK.CalcOffer.initCarList(n,t,i,r.carid,r.page)}]).controller("akCalcOfferDetailController",["$rootScope","$scope","akService","$attrs",function(n,t,i,r){AK.CalcOffer.initDetail(n,t,i,r.carid,r.calcid)}]).controller("akCalcOfferGetCarController",["$rootScope","$scope","akService",function(n,t,i){AK.CalcOffer.initGetCar(n,t,i)}]).controller("akCalcOfferTechInfoCarController",["$rootScope","$scope","akService",function(n,t,i){AK.CalcOffer.initTechInfoCar(n,t,i)}]).controller("akRegistrationController",["$scope","akService","vcRecaptchaService",function(n,t,i){AK.Registration.getRegistration(n,t,i)}]).directive("ngModelOnblurOnenter",function(){return{restrict:"A",require:"ngModel",priority:1,link:function(n,t,i,r){i.type!=="radio"&&i.type!=="checkbox"&&(t.unbind("input").unbind("keydown").unbind("change"),t.bind("blur",function(){n.$apply(function(){r.$setViewValue(t.val())})}),t.bind("keydown keypress",function(i){i.which===13&&n.$apply(function(){r.$setViewValue(t.val())})}))}}}).directive("ngEnter",function(){return function(n,t,i){t.bind("keydown keypress",function(t){t.which===13&&(n.$apply(function(){n.$eval(i.ngEnter)}),t.preventDefault())})}}).controller("akAdministrationHtmlGroupController",["$scope","$rootScope","akService","$sce","$attrs",function(n,t,i,r,u){AK.Administration.getHtmlGroup(n,t,i,r,u.htmlgroupname)}]).controller("akAdministrationHtmlGroupEditController",["$scope","$rootScope","akService",function(n,t,i){AK.Administration.getHtmlGroupEdit(n,t,i)}]).controller("akAdministrationHtmlGroupDeleteController",["$scope","$rootScope","akService",function(n,t,i){AK.Administration.getHtmlGroupDelete(n,t,i)}]).controller("akAdministrationCmsPageController",["$scope","$rootScope","akService","$attrs",function(n,t,i,r){AK.Administration.getCmsPage(n,t,i,r.cmspagename)}]).controller("akAdministrationCmsPageDeleteController",["$scope","$rootScope","akService",function(n,t,i){AK.Administration.getCmsPageDelete(n,t,i)}]).directive("ckEditor",function(){return{require:"?ngModel",link:function(n,t,i,r){var u=CKEDITOR.replace(t[0]);if(r){u.on("pasteState",function(){n.$apply(function(){r.$setViewValue(u.getData())})});r.$render=function(){u.setData(r.$viewValue)};CKFinder.setupCKEditor(u,"/ckfinder/");u.config.enterMode=CKEDITOR.ENTER_BR;u.config.fillEmptyBlocks=!1;u.config.protectedSource.push(/(<cms:[^\>]+>[\s|\S]*?<\/cms:[^\>]+>)|(<cms:[^\>]+\/>)/gi);u.config.allowedContent=!0;CKEDITOR.dtd.$removeEmpty.i=!1}}}}).controller("akAdministrationCmsPageListController",["$scope","$rootScope","akService","$attrs",function(n,t,i,r){AK.Administration.getCmsPageList(n,t,i,r.cmsfoldername)}]).controller("akCmsPageController",["$scope","akService","$sce","$attrs",function(n,t,i,r){AK.CmsPage.getCmsPage(n,t,i,r.cmspagename)}]).controller("akAdministrationAkDocumentController",["$rootScope","$scope","akService","$sce",function(n,t,i,r){AK.Administration.AkDocument.initList(n,t,i,r)}]).controller("akAdministrationAuctionController",["$scope","$rootScope","akService","$sce",function(n,t,i,r){AK.Administration.Auction.initList(n,t,i,r)}]).controller("akAdministrationAuctionEditController",["$scope","$rootScope","akService",function(n,t,i){AK.Administration.Auction.initEdit(n,t,i)}]).controller("akAdministrationAuctionDeleteController",["$scope","$rootScope","akService",function(n,t,i){AK.Administration.Auction.initDelete(n,t,i)}]).controller("akContactController",["$rootScope","$scope","akService","$attrs",function(n,t,i,r){AK.Contact.getContact(n,t,i,r.gpssourcetype)}]).controller("akContactDetailController",["$rootScope","$scope","akService","$attrs",function(n,t,i,r){AK.Contact.getContactDetail(n,t,i,r.name,r.mapsourcetype)}]).controller("akContactEBikeServiceController",["$rootScope","$scope","akService","$attrs",function(n,t,i,r){AK.Contact.getContactEBikeService(n,t,i,r.gpssourcetype)}]).controller("akContactEBikeServiceDetailController",["$rootScope","$scope","akService","$attrs",function(n,t,i,r){AK.Contact.getContactEBikeServiceDetail(n,t,i,r.link,r.mapsourcetype)}]).controller("akContactMotoServiceController",["$rootScope","$scope","akService","$attrs",function(n,t,i,r){AK.Contact.getContactMotoService(n,t,i,r.gpssourcetype)}]).controller("akContactMotoServiceDetailController",["$rootScope","$scope","akService","$attrs",function(n,t,i,r){AK.Contact.getContactMotoServiceDetail(n,t,i,r.link,r.mapsourcetype)}]).controller("akContactAkasServiceController",["$rootScope","$scope","akService","$attrs",function(n,t,i,r){AK.Contact.getContactAkasService(n,t,i,r.gpssourcetype)}]).controller("akContactAkasServiceDetailController",["$rootScope","$scope","akService","$attrs",function(n,t,i,r){AK.Contact.getContactAkasServiceDetail(n,t,i,r.link,r.mapsourcetype)}]).controller("akCatalogFilterCarController",["$rootScope","$scope","akService","$attrs",function(n,t,i,r){AK.Catalog.getFilterCar(n,t,i,r.catalogid)}]).controller("akCatalogFilterVanController",["$rootScope","$scope","akService","$attrs",function(n,t,i,r){AK.Catalog.getFilterVan(n,t,i,r.catalogid)}]).controller("akCatalogFilterAxleController",["$rootScope","$scope","akService","$attrs",function(n,t,i,r){AK.Catalog.getFilterAxle(n,t,i,r.catalogid)}]).controller("akCatalogFilterBikeController",["$rootScope","$scope","akService","$attrs",function(n,t,i,r){AK.Catalog.getFilterBike(n,t,i,r.catalogid)}]).controller("akCatalogVinDecoderController",["$rootScope","$scope","akService",function(n,t,i){AK.Catalog.getVinDecoder(n,t,i)}]).controller("akCatalogVinDecoder2Controller",["$rootScope","$scope","akService","$attrs",function(n,t,i,r){AK.Catalog.getVinDecoder2(n,t,i,r.url,r.badvinmessage)}]).controller("akCatalogLicencePlateDecoderController",["$rootScope","$scope","akService","$attrs",function(n,t,i,r){AK.Catalog.getLicencePlateDecoder(n,t,i,r.url,r.badmessage)}]).controller("akCatalogVinCreditUseController",["$rootScope","$scope","akService",function(n,t,i){AK.Catalog.getVinCreditUse(n,t,i)}]).controller("akCatalogRenderModeController",["$scope","akService",function(n,t){AK.Catalog.getRenderMode(n,t)}]).controller("akSearchController",["$scope","akService","$attrs",function(n,t,i){AK.Search.getSearch(n,t,i.minlength,i.minlengthmessage)}]).controller("akSearch2CarDecoded",["$rootScope","$scope","akService","$attrs",function(n,t,i,r){AK.Search2.initCarDecoded(n,t,i,r.searchtext,r.searchtype)}]).controller("akSearch2Controller",["$scope","akService","$attrs",function(n,t,i){AK.Search2.init(n,t,i.minlength,i.minlengthmessage,i.trackinfoenabled,i.historyenabled,i.historywithoutclickenabled,i.userid,i.companysubtype,i.searchvinlegacy,i.owner,i.elasticsearchenabled,i.searchresultpriceenabled,i.elittimeavailability2enabled)}]).controller("akSearch2HistoryController",["$rootScope","$scope","akService",function(n,t,i){AK.Search2.initHistory(n,t,i)}]).controller("akSearch2CatalogController",["$rootScope","$scope","akService",function(n,t,i){AK.Search2.initCatalog(n,t,i)}]).controller("akSearch2ProductController",["$rootScope","$scope","akService","$attrs",function(n,t,i,r){AK.Search2.initProduct(n,t,i,r.elasticsearchenabled,r.searchresultpriceenabled,r.elittimeavailability2enabled)}]).controller("akHeaderLogonAsController",["$rootScope","$scope","akService",function(n,t,i){AK.Header.getLogonAs(n,t,i)}]).controller("akFoundUsersController",["$rootScope","$scope","akService",function(n,t,i){AK.Header.initFoundUsers(n,t,i)}]).controller("akAccountDeleteController",["$rootScope","$scope","akService",function(n,t,i){AK.Account.getAccountDelete(n,t,i)}]).controller("akAccountEditController",["$rootScope","$scope","akService",function(n,t,i){AK.Account.getAccountEdit(n,t,i)}]).controller("akAccountListController",["$rootScope","$scope","akService",function(n,t,i){AK.Account.getAccounts(n,t,i)}]).controller("akServiceTicketNewController",["$rootScope","$scope","akService",function(n,t,i){AK.ServiceTicket.getNewTicket(n,t,i)}]).controller("akServiceTicketMyController",["$rootScope","$scope","akService",function(n,t,i){AK.ServiceTicket.getTicketMy(n,t,i)}]).controller("akAdministrationServiceTicketController",["$rootScope","$scope","akService","$sce","$attrs",function(n,t,i,r,u){AK.Administration.getServiceTicket(n,t,i,r,u.ticketid)}]).controller("akAdministrationServiceTicketLogController",["$scope","akService","$attrs",function(n,t,i){AK.Administration.getServiceTicketLog(n,t,i.ticketid)}]).controller("akAdministrationServiceTicketListController",["$rootScope","$scope","akService","$attrs",function(n,t,i,r){AK.Administration.getServiceTicketList(n,t,i,r.operatorid,r.statustypes,r.page,r.fulltext,r.equipmentid,r.revisiontypeid)}]).controller("akAdministrationServiceTicketDeleteController",["$rootScope","$scope","akService",function(n,t,i){AK.Administration.getServiceTicketDelete(n,t,i)}]).controller("akReportRequestsAvgDurationController",["$scope","akService","$attrs",function(n,t,i){AK.Report.initRequestsAvgDuration(n,t,i.type)}]).controller("akReportPageLoadController",["$scope","akService",function(n,t){AK.Report.initPageLoad(n,t)}]).controller("akReportPageLoadByDeviceController",["$scope","akService",function(n,t){AK.Report.initPageLoadByDevice(n,t)}]).controller("akReportServiceTicketController",["$scope","akService",function(n,t){AK.Report.initServiceTicket(n,t)}]).controller("akServiceSheetController",["$rootScope","$scope","akService","$attrs","$sce",function(n,t,i,r,u){AK.ServiceSheet.initDetail(n,t,i,r.servicesheetid,r.parkedcarid,r.defaultvat,r.hourrate,r.useritemenabled,r.totalcheckbadrowmessage,r.servicetotal2enabled,u)}]).controller("akServiceSheetListController",["$rootScope","$scope","akService","$attrs",function(n,t,i,r){AK.ServiceSheet.initList(n,t,i,r.page)}]).controller("akServiceProfileController",["$rootScope","$scope","akService",function(n,t,i){AK.ServiceProfile.init(n,t,i)}]).controller("akLedCalcController",["$rootScope","$scope","akService",function(n,t,i){AK.LedCalc.init(n,t,i)}]).controller("akServiceCustomerListController",["$rootScope","$scope","akService","$sce","$attrs",function(n,t,i,r,u){AK.ServiceCustomer.initList(n,t,i,r,u.page,u.modalnewtitle,u.modaledittitle)}]).controller("akServiceCustomerSelectController",["$rootScope","$scope","akService","$sce","$attrs",function(n,t,i,r,u){AK.ServiceCustomer.initSelect(n,t,i,r,u.page)}]).controller("akServiceCustomerEditController",["$rootScope","$scope","akService","$attrs",function(n,t,i,r){AK.ServiceCustomer.initEdit(n,t,i,r.page,r.customerid,r.carid)}]).controller("akServiceInvoiceListController",["$rootScope","$scope","akService","$attrs",function(n,t,i,r){AK.ServiceInvoice.initList(n,t,i,r.page)}]).controller("akServiceInvoiceCreateController",["$rootScope","$scope","$sce","akService","$attrs",function(n,t,i,r,u){AK.ServiceInvoice.initCreate(n,t,i,r,u.servicesheetid,u.messagebaddata,u.roundformat,u.defaultvat)}]).controller("akEETSettingController",["$rootScope","$scope","akService",function(n,t,i){AK.EET.initSetting(n,t,i)}]).controller("akAuctionListController",["$rootScope","$scope","akService","AKHub","$attrs",function(n,t,i,r,u){AK.Auction.initList(n,t,i,r,u.page,u.minpricemessage)}]).controller("akAuctionDetailController",["$rootScope","$scope","akService","AKHub","$attrs",function(n,t,i,r,u){AK.Auction.initDetail(n,t,i,r,u.auctionid,u.minpricemessage)}]).controller("akAuctionHistoryController",["$rootScope","$scope","akService","$attrs",function(n,t,i,r){AK.Auction.initHistory(n,t,i,r.auctionid)}]).controller("akAuctionHPController",["$rootScope","$scope","akService",function(n,t,i){AK.Auction.initHPBanner(n,t,i)}]).controller("akComplaintController",["$rootScope","$scope","akService",function(n,t,i){AK.Complaint.init(n,t,i)}]).controller("akCalendarSalesController",["$rootScope","$scope","akService","$attrs",function(n,t,i,r){AK.CalendarSales.init(n,t,i,r.momentjslocale)}]).controller("akCalendarSalesController2",["$rootScope","$scope","akService","$attrs",function(n,t,i,r){AK.CalendarSales.init2(n,t,i,r.momentjslocale)}]).controller("akCalendarSalesWeekController",["$rootScope","$scope","akService",function(n,t,i){AK.CalendarSalesWeek.init(n,t,i)}]).controller("akMarketingDealsController",["$rootScope","$scope","akService",function(n,t,i){AK.MarketingDeals.init(n,t,i)}]).controller("akMarketingDealsItemsController",["$rootScope","$scope","akService",function(n,t,i){AK.MarketingDealsItems.init(n,t,i)}]).controller("akProductPriceSellerController",["$rootScope","$scope","akService","$attrs",function(n,t,i,r){AK.ProductPriceSeller.init(n,t,i,r.productid,r.loaduserprice,r.loaduserpriceinfo,r.loadusermargininfo,r.isloadelitdisponibility,r.isloadelitcardisponibility,r.isloadelithasvendorinfo,r.loaddisponibilityenabled)}]).controller("akMarketingPackageGroupsController",["$rootScope","$scope","akService",function(n,t,i){AK.MarketingPackage.initGroups(n,t,i)}]).controller("akMarketingPackageDetailController",["$rootScope","$scope","akService","$attrs",function(n,t,i,r){AK.MarketingPackage.initDetail(n,t,i,r.groupid,r.packageid)}]).controller("akAdminMarketingPackageProductController",["$rootScope","$scope","akService","$sce",function(n,t,i,r){AK.Administration.MarketingPackage.initProduct(n,t,i,r)}]).controller("akAdminMarketingPackageProductEditController",["$rootScope","$scope","akService","$sce",function(n,t,i,r){AK.Administration.MarketingPackage.initProductEdit(n,t,i,r)}]).controller("akAdminMarketingPackagePricingController",["$rootScope","$scope","akService","$sce",function(n,t,i,r){AK.Administration.MarketingPackage.initPricing(n,t,i,r)}]).controller("akAdminMarketingPackagePricingEditController",["$rootScope","$scope","akService","$sce",function(n,t,i,r){AK.Administration.MarketingPackage.initPricingEdit(n,t,i,r)}]).controller("akAdminMarketingCouponListController",["$rootScope","$scope","akService","$sce","$attrs",function(n,t,i,r,u){AK.Administration.MarketingCoupon.initList(n,t,i,r,u.page,u.statictextemptycodes)}]).controller("akAdminMarketingCouponEditController",["$rootScope","$scope","akService",function(n,t,i){AK.Administration.MarketingCoupon.initEdit(n,t,i)}]).controller("akAdminSupplierListController",["$rootScope","$scope","akService","$sce","$attrs",function(n,t,i,r,u){AK.Administration.Supplier.initList(n,t,i,r,u.page)}]).controller("akAdminSupplierEditController",["$rootScope","$scope","akService","$sce",function(n,t,i,r){AK.Administration.Supplier.initEdit(n,t,i,r)}]).controller("akDeliveryNotesController",["$rootScope","$scope","akService",function(n,t,i){AK.DeliveryNotes.init(n,t,i)}]).controller("akSalesController",["$rootScope","$scope","akService",function(n,t,i){AK.Sales.init(n,t,i)}]).controller("akPagingController",["$rootScope","$scope","akService",function(n,t,i){AK.Paging.init(n,t,i)}]).controller("akSessionTimeoutCounterController",["$rootScope","$scope","akService","$attrs",function(n,t,i,r){AK.SessionTimeoutCounter.init(n,t,i,r.sessiontimeout)}]).controller("akSessionTimeoutExtenderController",["$rootScope","$scope","akService","$attrs",function(n,t,i,r){AK.SessionTimeoutExtender.init(n,t,i,r.sessiontimeout)}]).controller("akWheelConfigAlcarController",["$rootScope","$scope","akService",function(n,t,i){AK.WheelConfigAlcar.init(n,t,i)}]).controller("akWheelConfigAlcarController",["$rootScope","$scope","akService","$attrs","$sce",function(n,t,i,r,u){AK.WheelConfigAlcar.init(n,t,i,r.listtype,r.ownid,u,r.page,r.nonreversiblemessage,r.showstockdisponibilitymodal,r.oedeliveryenabled,r.quantitydiscounttooltipenabled)}]).controller("akCompanyBriefInfoController",["$rootScope","$scope","akService",function(n,t,i){AK.CompanyBriefInfo.init(n,t,i)}]).directive("bannerimageload",function(){return function(n,t,i){var r=i.bannerimageload,u;try{r.length>0&&(u=parseInt(r),u<=0&&angular.element(document).ready(function(){setTimeout(function(){$("#akHPbanner0").attr("lazy-src")!="{{::hpBanner.ImgPath}}"&&($("#akHPbanner0").attr("src",$("#akHPbanner0").attr("lazy-src")),$("#akHPbannerSmall0").attr("src",$("#akHPbannerSmall0").attr("lazy-src")),$("#akHPbanner0").removeAttr("lazy-src"),$("#akHPbannerSmall0").removeAttr("lazy-src"))},100)}))}catch(f){}}}).directive("akdatetimepicker",["$timeout",function(n){return{restrict:"A",link:function(t,i){n(function(){$(i).datetimepicker({language:AK.System.datePickerLanguage,weekStart:1,todayBtn:1,autoclose:1,todayHighlight:1,forceParse:0,showMeridian:1})})}}}]).directive("akdatepicker",["$timeout",function(n){return{restrict:"A",link:function(t,i){n(function(){$(i).datetimepicker({language:AK.System.datePickerLanguage,weekStart:1,todayBtn:1,autoclose:1,todayHighlight:1,startView:4,minView:2,forceParse:0,showMeridian:1})})}}}]),akAngularServices=angular.module("akApp.services",[]),akAngularServices.config(["$httpProvider",function(n){n.interceptors.push(["$injector",function(n){return{response:function(t){var i=n.get("$rootScope");return i.$emit("SesionTimeoutCounterReset"),AK.System.alert("Called emit SesionTimeoutCounterReset"),t},responseError:function(t){var i=n.get("$rootScope");return i.$emit("SesionTimeoutCounterReset"),AK.System.alert("Called emit SesionTimeoutCounterReset"),t}}}])}]),akAngularServices.factory("akService",["$http",function(n){var t={};return t.systemMessage={getData:function(){return n({method:"GET",url:AK.System.url+"/SystemMessage/Data/"})}},t.haynesPro={variants:{getData:function(t){return n({method:"POST",url:AK.System.url+"/TechnicalInformationClient/Variants/Data",data:{data:t}})}},subjects:{getData:function(){return n({method:"POST",url:AK.System.url+"/TechnicalInformationClient/Subjects/Data"})}},repairTimes:{getData:function(t){return n({method:"POST",url:AK.System.url+"/TechnicalInformationClient/RepairTimes/Data",data:{path:t}})},getInfoTypes:function(){return n({method:"POST",url:AK.System.url+"/TechnicalInformationClient/RepairTimes/InfoTypes/Data"})},setRepair:function(t,i){return n({method:"POST",url:AK.System.url+"/TechnicalInformationClient/RepairTimes/Set",data:{path:t,addItem:i}})},savePrintData:function(t){return n({method:"POST",url:AK.System.url+"/TechnicalInformationClient/RepairTimes/print/data",data:{data:JSON.stringify(t)}})}},basket:{getData:function(t,i){return n({method:"GET",url:AK.System.url+"/TechnicalInformationClient/Catalog/"+t+"/Basket/"+i})},addItem:function(t,i,r,u){return n({method:"POST",url:AK.System.url+"/TechnicalInformationClient/Catalog/"+t+"/Basket/"+i+"/RepairType/"+r+"/RepairTask/"+u})},removeItem:function(t,i,r,u){return n({method:"DELETE",url:AK.System.url+"/TechnicalInformationClient/Catalog/"+t+"/Basket/"+i+"/RepairType/"+r+"/RepairTask/"+u})},empty:function(t,i){return n({method:"DELETE",url:AK.System.url+"/TechnicalInformationClient/Catalog/"+t+"Basket/"+i})}},adjustment:{getData:function(t){return n({method:"POST",url:AK.System.url+"/TechnicalInformationClient/Catalog/"+t+"/Adjustment"})}},lubricant:{getData:function(t){return n({method:"POST",url:AK.System.url+"/TechnicalInformationClient/Catalog/"+t+"/Lubricant"})}},stories:{getData:function(t){return n({method:"POST",url:AK.System.url+"/TechnicalInformationClient/Catalog/"+t+"/Stories"})}},technicalDrawing:{getData:function(t){return n({method:"POST",url:AK.System.url+"/TechnicalInformationClient/Catalog/"+t+"/TechnicalDrawing"})}},generalArticle:{getProducts:function(t,i){return n({method:"POST",url:AK.System.url+"/TechnicalInformationClient/Catalog/"+t+"/GeneralArticle/"+i})},getListProducts:function(t,i){return n({method:"POST",url:AK.System.url+"/TechnicalInformationClient/GeneralArticles",data:{catalogPath:t,genartIds:i}})}},maintenance:{getData:function(t){return n({method:"POST",url:AK.System.url+"/TechnicalInformationClient/Catalog/"+t+"/Maintenance"})},getItems:function(t,i){return n({method:"POST",url:AK.System.url+"/TechnicalInformationClient/Catalog/"+t+"/Maintenance/"+i})},savePrintData:function(t,i){return n({method:"POST",url:AK.System.url+"/TechnicalInformationClient/Maintenance/print/data",data:{customer:JSON.stringify(t),data:JSON.stringify(i)}})}}},t.history2={catalog:{getData:function(t){return n({method:"GET",url:AK.System.url+"/History2/Catalog/Data/"+t})}},product:{getData:function(t){return n({method:"GET",url:AK.System.url+"/History2/Product/Data/"+t})}},vin:{getData:function(t){return n({method:"GET",url:AK.System.url+"/History2/Vin/Data/"+t})},saveNote:function(t){return n({method:"POST",url:AK.System.url+"/History2/Vin/Data/",data:{data:t}})}}},t.batchInfo={getData:function(){return n({method:"GET",url:AK.System.url+"/BatchInfo/Data/"})}},t.ProductDisponibility=function(t,i,r){return n({method:"GET",url:AK.System.url+"/ProductDisponibility/"+t+"/Amount/"+i+"/Express/"+r})},t.ProductDetailDisponibility=function(t){return n({method:"GET",url:AK.System.url+"/ProductDisponibility/"+t+"/Amount/"+amount+"/Express/"+isExpressOrder})},t.getProductsDisponibility=function(t){return n({method:"POST",url:AK.System.url+"/ProductDisponibility/data",data:{productIds:t}})},t.emptyRequest=function(){return n({method:"GET",url:AK.System.url+"/System/EmptyRequest"})},t.catalog={model:undefined},t.getCatalogBanners=function(){return n({method:"GET",url:AK.System.url+"/Catalog/Banners"})},t.getCatalogCars=function(t){return n({method:"POST",url:AK.System.url+"/Catalog/Cars/"+t})},t.catalog={model:{get:function(t){return n({method:"POST",url:AK.System.url+"/Catalog/Models/"+t})},setYearFilter:function(t){return n({method:"POST",url:AK.System.url+"/Catalog/YearFilter",data:{year:t}})}},setSwitchViewType:function(t){return n({method:"POST",url:AK.System.url+"/catalog/switchviewtype/"+t})}},t.getCatalogMotors=function(t){return n({method:"POST",url:AK.System.url+"/Catalog/Motors/"+t})},t.getCatalogMotorInfo=function(t){return n({method:"POST",url:AK.System.url+"/Catalog/MotorInfo/"+t})},t.getCatalogCategories=function(t){return n({method:"POST",url:AK.System.url+"/Catalog/Categories/"+t})},t.getCatalogs=function(t){return n({method:"POST",url:AK.System.url+"/Catalog/Catalogs/"+t})},t.interactiveScheme={area:{getProducts:function(t){return n({method:"GET",url:AK.System.url+"/catalog/interactivescheme2/area/products/"+t})}}},t.getInteractiveScheme=function(t){return n({method:"POST",url:AK.System.url+"/Catalog/InteractiveSchemes/"+t})},t.getInteractiveSchemeAreaTooltip=function(t){return n({method:"POST",url:AK.System.url+"/Catalog/interactiveschemeareatooltip/"+t})},t.getCatalogMenuItems=function(){return n({method:"Get",url:AK.System.url+"/Catalog/MenuItems"})},t.getLangEPortalUrl=function(){return n({method:"POST",url:AK.System.url+"/Catalog/LangEPortalUrl"})},t.getCatalogRootItems=function(){return n({method:"POST",url:AK.System.url+"/Catalog/RootItems"})},t.getStripPathItems=function(){return n({method:"POST",url:AK.System.url+"/Catalog/StripPathItems"})},t.getImageStripItems=function(){return n({method:"POST",url:AK.System.url+"/Catalog/ImageStripItems"})},t.getAktiRootItems=function(){return n({method:"POST",url:AK.System.url+"/Catalog/AktiRootItems"})},t.getAktiTreeList=function(t){return n({method:"POST",url:AK.System.url+"/Catalog/AktiTreeList/"+t})},t.getAktiTreeListChange=function(t,i,r){return n({method:"POST",url:AK.System.url+"/Catalog/AktiTreeListChange/"+t+"/"+i+"/"+r})},t.setCatalogAktiTreeListResult=function(t){return n.post(AK.System.url+"/Catalog/AktiTreeListResult",t)},t.getCatalogFilterCarInfoRange=function(){return n({method:"POST",url:AK.System.url+"/Catalog/FilterCarInfoRange"})},t.getCatalogFilterVanInfoRange=function(){return n({method:"POST",url:AK.System.url+"/Catalog/FilterVanInfoRange"})},t.getCatalogFilterAxleInfoRange=function(){return n({method:"POST",url:AK.System.url+"/Catalog/FilterAxleInfoRange"})},t.getCatalogFilterBikeInfoRange=function(){return n({method:"POST",url:AK.System.url+"/Catalog/FilterBikeInfoRange"})},t.setCatalogFilterCarInfo=function(t){return n.post(AK.System.url+"/Catalog/SetFilterCarInfo",{data:t})},t.setCatalogFilterVanInfo=function(t){return n.post(AK.System.url+"/Catalog/SetFilterVanInfo",{data:t})},t.setCatalogFilterAxleInfo=function(t){return n.post(AK.System.url+"/Catalog/SetFilterAxleInfo",{data:t})},t.setCatalogFilterBikeInfo=function(t){return n.post(AK.System.url+"/Catalog/SetFilterBikeInfo",{data:t})},t.getCatalogVins=function(){return n({method:"POST",url:AK.System.url+"/Catalog/Vins"})},t.decodeVin=function(t){return n.post(AK.System.url+"/Catalog/DecodeVin",{vin:t})},t.productFilter={setVirtualSkeletonData:function(t){return n.post(AK.System.url+"/ProductFilter/VirtualSkeleton/Data",{filters:t})},getVirtualSkeletonData:function(){return n({method:"GET",url:AK.System.url+"/ProductFilter/VirtualSkeleton/Data"})},getLeftMenuData:function(){return n({method:"GET",url:AK.System.url+"/ProductFilter/LeftMenu/Data"})},setLeftMenuData:function(t){return n.post(AK.System.url+"/ProductFilter/LeftMenu/Data",{filters:t})},setFavoriteBrand:function(t){return n.post(AK.System.url+"/ProductFilter/brands",{brandIds:t})}},t.getElitVendorInfo=function(t){return n.post(AK.System.url+"/elit/vendorinfo/data",{productCode:t})},t.getProductUserPrice=function(t){return n.post(AK.System.url+"/UserPrice/Data",{productIds:t})},t.getProductUserPriceDouble=function(t){return n.post(AK.System.url+"/UserPrice/Data/Double",{productIds:t})},t.getProductUserPriceInfo=function(t){return n.post(AK.System.url+"/UserPrice/Info/Data",{productIds:t})},t.getProductUserMarginInfo=function(t){return n.post(AK.System.url+"/UserPrice/Margin/Data",{productIds:t})},t.getProductDisponibility=function(t){return n.post(AK.System.url+"/Disponibility/Data",{productIds:t})},t.getProductDisponibilityAll=function(t){return n.post(AK.System.url+"/ProductDisponibility/AllData",{productId:t})},t.getProductElitDisponibility=function(t){return n.post(AK.System.url+"/Elit/Disponibility/Data",{productIds:t})},t.getProductElitDisponibility2=function(t){return n.post(AK.System.url+"/Elit/Disponibility2/Data",{productIds:t})},t.getProductElitDisponibility2Default=function(t){return n.post(AK.System.url+"/Elit/Disponibility2/Default/Data",{productIds:t})},t.getProductElitCarDisponibility=function(t){return n.post(AK.System.url+"/ElitCar/Disponibility/Data",{productIds:t})},t.getProductElitHasVendorInfo=function(t){return n.post(AK.System.url+"/Elit/HasVendorInfo/Data",{productIds:t})},t.getCartUserPrice=function(t){return n.post(AK.System.url+"/UserPrice/Cart/Data",{productIds:t})},t.getCartSumTotalAll=function(){return n.get(AK.System.url+"/UserCart/TotalAll/Data")},t.getCartSumTotal=function(t){return n.post(AK.System.url+"/UserCart/Total/Data",{cartId:t})},t.getCartSum=function(){return n.post(AK.System.url+"/UserCart/Data")},t.getProductListTopSell=function(){return n({method:"POST",url:AK.System.url+"/ProductList/TopSell/data"})},t.setProductListTopSellShowEnabled=function(t){return n({method:"POST",url:AK.System.url+"/ProductList/TopSell/ShowEnabled",data:{showEnabled:t}})},t.getProductList=function(t,i,r){var u="";return r!==null&&r.length>0&&r!=="empty"&&(u="/"+r),n({method:"POST",url:AK.System.url+"/ProductList/Items/"+t+"/"+i+u})},t.setProductListViewType=function(t,i){return n.post(AK.System.url+"/ProductList/Viewtype",{type:t,value:i})},t.getProductListFilterBrands=function(t){return n({method:"GET",url:AK.System.url+"/ProductList/Filter/Brands/"+t})},t.setProductListFilterBrands=function(t,i){return n.post(AK.System.url+"/ProductList/Filter/Brands/Set",{brandIds:t,listType:i})},t.getProductListPriceFilter=function(){return n({method:"POST",url:AK.System.url+"/ProductList/PriceFilter"})},t.setProductListPriceFilter=function(t){return n({method:"POST",url:AK.System.url+"/ProductList/SetPriceFilter",data:{value:t}})},t.getProductListAttributeFilter=function(){return n({method:"POST",url:AK.System.url+"/ProductList/AttributeFilter"})},t.setProductListAttributeFilter=function(t){return n({method:"POST",url:AK.System.url+"/ProductList/SetAttributeFilter",data:{attributes:t}})},t.productListFilter={setStockExist:function(t){return n({method:"POST",url:AK.System.url+"/ProductList/StockFilter",data:{stockExists:t}})}},t.setProductListStockFilter=function(){return n({method:"POST",url:AK.System.url+"/ProductList/SetAttributeFilter",data:{attributes:attributes}})},t.getProductListOemOrder=function(t){return n({method:"POST",url:AK.System.url+"/ProductList/OemOrder",data:{code:t}})},t.getProductListAttributes=function(t){return n({method:"POST",url:AK.System.url+"/ProductList/Attributes",data:{productIds:t}})},t.getBanners=function(){return n({method:"POST",url:AK.System.url+"/Banner/Banners"})},t.getWidgets=function(){return n({method:"POST",url:AK.System.url+"/Widget/Widgets"})},t.getPromoBanners=function(){return n({method:"POST",url:AK.System.url+"/PromoBanner/Banners"})},t.getWorkshopItems=function(){return n({method:"POST",url:AK.System.url+"/Workshop/Items"})},t.getPaintingItems=function(){return n({method:"GET",url:AK.System.url+"/Painting/Items"})},t.setPopupAlwaysHidden=function(t){return n({method:"POST",url:AK.System.url+"/Homepage/PopupAlwaysHidden/"+t})},t.getFlags=function(){return n({method:"POST",url:AK.System.url+"/Language/Flags"})},t.setLanguage=function(t){return n({method:"POST",url:AK.System.url+"/Language/Select/"+t})},t.product={getLink:function(t){return n({method:"GET",url:AK.System.url+"/Product/Links/"+t})},getStockDisponibility:function(t,i,r){return n({method:"GET",url:AK.System.url+"/Product/"+t+"/StockDisponibility/"+i+"/"+r})}},t.getProductImages=function(t){return n({method:"POST",url:AK.System.url+"/Product/Images/"+t})},t.getProductAttributes=function(t){return n({method:"POST",url:AK.System.url+"/Product/Attributes/"+t})},t.getProductInfos=function(t,i){return n({method:"POST",url:AK.System.url+"/Product/Infos",data:{productId:t,auctionId:i}})},t.getProductTabs=function(t,i){return n({method:"POST",url:AK.System.url+"/Product/Tabs/"+t+"/"+i})},t.getProductTabContent=function(t,i,r){return n({method:"POST",url:AK.System.url+"/Product/TabContent/"+t+"/"+i+"/"+r})},t.getProductRecommends=function(t,i){var r=AK.System.url+"/Product/Recommends/"+t;return i!=undefined&&i!=null&&i.length>0&&(r=r+"/"+i),n({method:"POST",url:r})},t.getProductCodes=function(t){return n({method:"POST",url:AK.System.url+"/Product/Codes/"+t})},t.getProductReferences=function(t,i){return n({method:"POST",url:AK.System.url+"/Product/References",data:{productId:t,page:i}})},t.getProductStorages=function(t){return n({method:"POST",url:AK.System.url+"/Product/Storages/"+t})},t.getProductAllStorages=function(t){return n({method:"POST",url:AK.System.url+"/Product/StoragesAll/"+t})},t.getProductStockDisponibility=function(t,i){return n({method:"POST",url:AK.System.url+"/Product/stockdisponibilityedi/"+t+"/"+i})},t.getProductStockDisponibilityEDI=function(){return n({method:"GET",url:AK.System.url+"/edi/stock/template/productlist/"})},t.getStorageStockDisponibility=function(t,i){return n({method:"POST",url:AK.System.url+"/Product/"+t+"/StorageStockDisponibility/"+i})},t.EDI={get:function(t,i){return n({method:"GET",url:AK.System.url+"/edi/stock/product/"+t+"/amount/"+i+"/data"})}},t.BOSCH={get:function(t,i){return n({method:"GET",url:AK.System.url+"/bosch/stock/product/"+t+"/amount/"+i+"/data"})}},t.cart2={get:function(t){return n({method:"GET",url:AK.System.url+"/Cart/"+t+"/data"})},getPanes:function(t){return n({method:"GET",url:AK.System.url+"/Cart/Panes/data/"+t})}},t.cart={add:function(t){return n({method:"POST",url:AK.System.url+"/Cart/Add/",data:{cartName:t}})},loadDefault:function(t){return n({method:"POST",url:AK.System.url+"/Cart/Default/",data:{cartType:t}})},getPrintData:function(){return n({method:"GET",url:AK.System.url+"/Cart/PrintData/"})},oneClickOrderProduct:function(t,i,r,u){return n({method:"POST",url:AK.System.url+"/Cart/oneclickorder/"+t+"/"+i,data:{note:r,invoiceNote:u}})},oneClickOrder:function(t,i,r){return n({method:"POST",url:AK.System.url+"/Cart/oneclickorder/"+t,data:{note:i,invoiceNote:r}})},setItemDelivery:function(t,i,r,u,f){return n({method:"POST",url:AK.System.url+"/Cart/"+t+"/Item/"+i+"/deliveryDate",data:{deliverydate:r,location:u,cashAndCarry:f}})},updatePromise:function(t){return n({method:"POST",url:AK.System.url+"/Cart/UpdatePromise",data:{promise:t}})},updateNPromise:function(t,i){return n({method:"POST",url:AK.System.url+"/Cart/UpdateNPromise",data:{cartId:t,promises:i}})},getRecapitulationDisponibility:function(){return n({method:"GET",url:AK.System.url+"/Cart/Recapitulation/Disponibility"})},getPromise:function(){return n({method:"GET",url:AK.System.url+"/Cart/Promise"})},getRecapitulationPromise:function(){return n({method:"GET",url:AK.System.url+"/Cart/Recapitulation/Promise"})},getPromiseExpress:function(){return n({method:"GET",url:AK.System.url+"/Cart/Recapitulation/PromiseExpress"})},setItemTakeOffStorage:function(t,i,r){return n({method:"POST",url:AK.System.url+"/Cart/"+t+"/Item/"+i+"/TakeOffStorage",data:{value:r}})}},t.getCartHeaderData=function(){return n({method:"POST",url:AK.System.url+"/Cart/HeaderData"})},t.getCartSelected=function(t,i,r){return n({method:"GET",url:AK.System.url+"/Cart/Selected/"+t+"/"+i+"/"+r})},t.getCartCurrent=function(){return n({method:"GET",url:AK.System.url+"/Cart/Current"})},t.getCartItemsNext=function(t,i,r){return n({method:"GET",url:AK.System.url+"/Cart/"+t+"/"+i+"/Items/"+r})},t.getCarts=function(){return n({method:"POST",url:AK.System.url+"/Cart/Carts"})},t.getCartItemActionValue=function(t,i,r,u,f){return n({method:"POST",url:AK.System.url+"/Cart/ItemAction/"+t+"/"+i+"/"+r+"/"+u+"/"+f})},t.getCartItemAction=function(n,i,r,u){return t.getCartItemActionValue(n,i,r,u,0)},t.setCartItemNote=function(t,i,r,u){return n({method:"POST",url:AK.System.url+"/Cart/ItemNote",data:{cartId:t,cartItemId:i,note:r,noteInvoice:u}})},t.getCartAction=function(t,i,r,u){return n({method:"POST",url:AK.System.url+"/Cart/Action/"+t+"/"+i+"/"+r+"/"+u})},t.getCartSteps=function(t){return n({method:"POST",url:AK.System.url+"/Cart/Steps/"+t})},t.setCartPrice=function(t,i){return n({method:"POST",url:AK.System.url+"/Cart/PriceTypeSelect/"+t+"/"+i})},t.getCartPriceTypes=function(){return n({method:"POST",url:AK.System.url+"/Cart/PriceTypes"})},t.getCartFooterItems=function(){return n({method:"GET",url:AK.System.url+"/Cart/FooterItems"})},t.getCartFooterItemContent=function(t){return n({method:"POST",url:AK.System.url+"/Cart/FooterItemContent/"+t})},t.addCartProduct=function(t,i,r,u,f,e,o,s){return n({method:"POST",url:AK.System.url+"/Cart/AddProduct",data:{productId:t,amount:i,isExpressOrder:r,oeDeliveryId:u,note:f,ta2Location:e,ta2AvailableFrom:o,ta2CashAndCarry:s}})},t.addCartProductCode=function(t,i,r,u){return n({method:"POST",url:AK.System.url+"/Cart/AddCode",data:{code:t,amount:i,note:r,noteInvoice:u}})},t.getCartImport=function(t){return n({method:"POST",url:AK.System.url+"/Cart/Import",data:{jsonData:t}})},t.getCartExportContent=function(t){return n({method:"POST",url:AK.System.url+"/Cart/Export",data:{cartId:t}})},t.getCartRecapitulationData=function(){return n({method:"GET",url:AK.System.url+"/Cart/RecapitulationData"})},t.getCartFlashSalesSplit=function(){return n({method:"POST",url:AK.System.url+"/Cart/FlashSalesSplitText"})},t.getCartCalendarSalesSplit=function(){return n({method:"POST",url:AK.System.url+"/Cart/CalendarSalesSplitText"})},t.getTakeOffPanes=function(){return n({method:"POST",url:AK.System.url+"/TakeOff/Panes"})},t.getTakeOffPaneContent=function(t){return n({method:"POST",url:AK.System.url+"/TakeOff/PaneContent/"+t})},t.getTakeOffDefault=function(){return n({method:"POST",url:AK.System.url+"/TakeOff/Default"})},t.getTakeOffAKDeliveryStorage=function(){return n({method:"POST",url:AK.System.url+"/TakeOff/AKDeliveryStorage"})},t.getTakeOffExpressTaking=function(){return n({method:"POST",url:AK.System.url+"/TakeOff/ExpressTaking"})},t.TakeOff={Service:undefined,Storage:undefined,emailIcoVerify:function(t,i){return n({method:"POST",url:AK.System.url+"/TakeOff/EmailIcoVerify",data:{email:t,ico:i}})},checkPostalCode:function(t){return n({method:"POST",url:AK.System.url+"/TakeOff/CheckPostalCode",data:{postalCode:t}})},getDeliveryByPostalCode:function(t){return n({method:"POST",url:AK.System.url+"/TakeOff/DeliveryByPostalCode",data:{postalCode:t}})}},t.TakeOff.Storage={getItems:function(t){return n({method:"GET",url:AK.System.url+"/TakeOff/"+t+"/Storages"})}},t.TakeOff.Service={get:function(){return n({method:"GET",url:AK.System.url+"/TakeOff/Service"})},template:function(){return n({method:"GET",url:AK.System.url+"/TakeOff/Service/template"})}},t.getPaymentPanes=function(t,i){return n({method:"POST",url:AK.System.url+"/TakeOff/PaymentPanes/"+t+"/"+i})},t.sekTakeOffPayment=function(t){return n({method:"POST",url:AK.System.url+"/TakeOff/Payment/"+t})},t.orderAdmin={getList:function(){return n({method:"GET",url:AK.System.url+"/Administration/Order/List/Data"})},getData:function(t){return n({method:"GET",url:AK.System.url+"/Administration/Order/"+t+"/Data"})},getItems:function(t){return n({method:"GET",url:AK.System.url+"/Administration/Order/"+t+"/Items/"})},"delete":function(t){return n({method:"DELETE",url:AK.System.url+"/Administration/Order/"+t})},deleteItem:function(t,i){return n({method:"DELETE",url:AK.System.url+"/Administration/Order/"+t+"/item/"+i})},confirm:function(t){return n({method:"POST",url:AK.System.url+"/Administration/Order/confirm",data:{data:t}})},changeItemAmount:function(t,i,r){return n({method:"POST",url:AK.System.url+"/Administration/Order/"+t+"/item/"+i+"/amount/"+r})},unlock:function(t){return n({method:"POST",url:AK.System.url+"/Administration/Order/"+t+"/unlock"})}},t.orderBranch={getList:function(t){return n({method:"GET",url:AK.System.url+"/OrderBranch/List/Data/"+t})}},t.order={getParkedCarList:function(t,i,r,u){return n({method:"GET",url:AK.System.url+"/Order/Car/"+t+"/"+i+"/"+r+"/"+u})},archive:{getData:function(){return n({method:"GET",url:AK.System.url+"/Order/Archive/data"})}}},t.getOrders=function(t){return n({method:"POST",url:AK.System.url+"/Orders/"+t})},t.getOrderList=function(t){return n({method:"POST",url:AK.System.url+"/Order/List/"+t})},t.getOrderItems=function(t,i){return n({method:"POST",url:AK.System.url+"/Order/DetailItems/"+t+"/"+i})},t.getOrderDetail=function(t){return n({method:"POST",url:AK.System.url+"/Order/Detail",data:{orderId:t}})},t.getOrderDetailItems=function(t,i,r){var u=AK.System.url+"/Order/DetailItems/"+t;return Number(i)>0&&Number(r)>0&&(u=u+"/"+i+"/"+r),n({method:"GET",url:u})},t.getOrderDetailPriceTypeChange=function(t){return n({method:"POST",url:AK.System.url+"/Order/DetailPriceTypeChange",data:{priceType:t}})},t.getOrderDetailInfo=function(t,i,r){var u=AK.System.url+"/Order/DetailInfo/"+t;return Number(i)>0&&Number(r)>0&&(u=u+"/"+i+"/"+r),n({method:"GET",url:u})},t.getOrderTemplate=function(){return n({method:"POST",url:AK.System.url+"/Order/Template"})},t.cancelOrderItem=function(t){return n.post(AK.System.url+"/Order/Item/Cancel",{id:t})},t.setOrderFilter=function(t){return n.post(AK.System.url+"/Order/Filter",{data:t})},t.setOrderDetail=function(t){return n({method:"POST",url:AK.System.url+"/Order/Detail",data:{orderId:t}})},t.getHistoryCatalogs=function(t){return n({method:"GET",url:AK.System.url+"/History/Catalog/"+t})},t.getHistoryVins=function(){return n({method:"POST",url:AK.System.url+"/History/Vins"})},t.getHistoryCatalogsByPage=function(t){return n({method:"POST",url:AK.System.url+"/History/Catalog/"+t})},t.getHistoryVinsByPage=function(t){return n({method:"POST",url:AK.System.url+"/History/Vin/"+t})},t.getUserInfos=function(){return n({method:"GET",url:AK.System.url+"/Dashboard/UserInfo"})},t.getAccountStorages=function(){return n({method:"POST",url:AK.System.url+"/Account/Storages"})},t.setAccountStorageVisibility=function(t,i){return n.post(AK.System.url+"/Account/Storage/SetVisibility",{storageId:t,value:i})},t.setAccountPrimaryStoragesSeparated=function(t){return n.post(AK.System.url+"/Account/Storage/PrimarySeparated",{value:t})},t.setAccountCompanyBriefInfoVisibility=function(t){return n.post(AK.System.url+"/Account/CompanyBriefInfo/SetVisibility",{value:t})},t.setAccountLogonAsKeepSelectedStorageVisibility=function(t){return n.post(AK.System.url+"/Account/LogonAsKeepSelectedStorage/SetVisibility",{value:t})},t.setAccountGraphicCatalogProductTargetBlank=function(t){return n.post(AK.System.url+"/Account/GraphicCatalogProductTargetBlank",{value:t})},t.getAccountSettings=function(){return n({method:"POST",url:AK.System.url+"/Account/Settings"})},t.sendAccountForgottenPassword=function(t){return n.post(AK.System.url+"/Account/ForgottenPassword/Send",{value:t})},t.setAccountNewPassword=function(t,i){return n.post(AK.System.url+"/Account/NewPassword",{changeId:t,newPassword:i})},t.changeProductListViewType=function(t){return n.post(AK.System.url+"/Account/ChangeProductListViewType",{value:t})},t.setAccountPriceVisibility=function(t){return n.post(AK.System.url+"/Account/SetPriceVisibility",{priceVisibility:t})},t.setAccountUserNotification=function(t){return n.post(AK.System.url+"/Account/SetUserNotification",{userNotification:t})},t.changeCurrencyType=function(t){return n.post(AK.System.url+"/Account/ChangeCurrencyType",{value:t})},t.changePriceType=function(t){return n.post(AK.System.url+"/Account/ChangePriceType",{value:t})},t.getAccounts=function(){return n({method:"POST",url:AK.System.url+"/Account/Accounts"})},t.createAccount=function(t){return n.post(AK.System.url+"/Account/Create",{account:t})},t.Account={list:function(){return n({method:"GET",url:AK.System.url+"/account"})},detail:function(t){return n({method:"GET",url:AK.System.url+"/account/"+t})},addNew:function(t){return n({method:"POST",url:AK.System.url+"/account",data:{account:t}})},remove:function(t){return n({method:"DELETE",url:AK.System.url+"/account/"+t})},edit:function(t){return n({method:"POST",url:AK.System.url+"/account/"+t.Id,data:{account:t}})},getDebt:function(){return n({method:"GET",url:AK.System.url+"/account/debts"})},setPasswordEmail:function(t){return n.post(AK.System.url+"/Account/SetPassword/Email",{email:t})},getAres:function(t){return n({method:"GET",url:AK.System.url+"/Account/Ares/"+t})},outlandStoragesSeparated:{set:function(t){return n.post(AK.System.url+"/Account/Storage/OutlandSeparated",{value:t})}}},t.getCars=function(t){return n({method:"POST",url:AK.System.url+"/Garage/Cars/"+t})},t.searchCars=function(t){return n.post(AK.System.url+"/Garage/SearchCars",{searchString:t})},t.showAllCars=function(){return n.post(AK.System.url+"/Garage/ShowAll")},t.getCarDetail=function(t){return n({method:"POST",url:AK.System.url+"/Garage/CarDetail/"+t})},t.saveParkedCar=function(t){return n.post(AK.System.url+"/Garage/Save",t)},t.deleteParkedCar=function(t){return n({method:"DELETE",url:AK.System.url+"/Garage/Car/"+t})},t.getHomeServices=function(){return n({method:"POST",url:AK.System.url+"/Garage/HomeServices"})},t.getHomeServiceTemplate=function(){return n({method:"POST",url:AK.System.url+"/Garage/HomeServiceTemplate"})},t.getServiceBook=function(t){return n({method:"GET",url:AK.System.url+"/Garage/ServiceBook/"+t})},t.getServiceBookTemplate=function(){return n({method:"POST",url:AK.System.url+"/Garage/ServiceBookTemplate"})},t.calcOffer={getListItems:function(t){return n({method:"GET",url:AK.System.url+"/Garage/CalcOffer/"+t})},getListTemplate:function(t){return n({method:"GET",url:AK.System.url+"/Garage/CalcOfferTemplate/"+t})},getCarListItems:function(t,i){return n({method:"GET",url:AK.System.url+"/Garage/Car/"+t+"/CalcOfferList/"+i})},getData:function(t,i){return n({method:"GET",url:AK.System.url+"/Garage/Car/"+t+"/CalcOffer/"+i+"/data"})},remove:function(t,i){return n({method:"DELETE",url:AK.System.url+"/Garage/Car/"+i+"/CalcOffer/"+t+"/data"})},createServiceSheet:function(t,i){return n({method:"POST",url:AK.System.url+"/Garage/Car/"+t+"/CalcOffer/"+i+"/createsheet"})},createCart:function(t,i){return n({method:"POST",url:AK.System.url+"/Garage/Car/"+t+"/CalcOffer/"+i+"/createcart"})},createServiceSheetAndCart:function(t,i){return n({method:"POST",url:AK.System.url+"/Garage/Car/"+t+"/CalcOffer/"+i+"/createsheetandcart"})}},t.serviceInspection={getData:function(t,i){return n({method:"GET",url:AK.System.url+"/Garage/Car/"+t+"/ServiceInspection/"+i+"/data"})},setData:function(t,i,r){return n({method:"POST",url:AK.System.url+"/Garage/Car/"+t+"/ServiceInspection/"+i+"/data",data:{inspection:r}})}},t.createServiceBookInspection=function(t){return n.post(AK.System.url+"/Garage/ServiceBookInspection/Create",t)},t.saveServiceBookInspection=function(t){return n.post(AK.System.url+"/Garage/ServiceBookInspection/Save",t)},t.getParkNewCar=function(){return n({method:"GET",url:AK.System.url+"/Garage/ParkNewCarData"})},t.createParkedCar=function(t){return n.post(AK.System.url+"/Garage/CreateParkedCar",t)},t.createParkedCarCatalog=function(t){return n.post(AK.System.url+"/Garage/CreateParkedCarCatalog",{path:t})},t.garage={notification:{get:function(){return n({method:"GET",url:AK.System.url+"/Garage/Notifications"})},setFilter:function(t){return n({method:"POST",url:AK.System.url+"/Garage/Notification/Filter",data:{jsonData:t}})},sendSms:function(t,i,r,u){return n({method:"POST",url:AK.System.url+"/Garage/Notification/SendSms",data:{parkedCarId:t,stype:i,content:r,phone:u}})},sendEmail:function(t,i,r,u){return n({method:"POST",url:AK.System.url+"/Garage/Notification/SendEmail",data:{parkedCarId:t,stype:i,content:r,email:u}})},sendPhone:function(t,i,r,u,f,e){return n({method:"POST",url:AK.System.url+"/Garage/Notification/SendPhone",data:{parkedCarId:t,stype:i,phone:r,wasContacted:u,hasInterested:f,serviceDate:e}})},dismiss:function(t,i){return n({method:"POST",url:AK.System.url+"/Garage/Notification/Dismiss",data:{parkedCarId:t,stype:i}})},interest:function(t,i,r,u,f){return n({method:"POST",url:AK.System.url+"/Garage/Notification/Interest",data:{notificationId:t,parkedCarId:i,stype:r,value:u,serviceDate:f}})},getOther:function(t,i){return n({method:"POST",url:AK.System.url+"/Garage/Notification/Other",data:{parkedCarId:t,stype:i}})},sendServiceDate:function(t,i,r,u){return n({method:"POST",url:AK.System.url+"/Garage/Notification/SendServiceDate",data:{id:t,parkedCarId:i,stype:r,date:u}})}},getOrderListTemplate:function(){return n({method:"GET",url:AK.System.url+"/Garage/OrderListTemplate"})},setFilter:function(t,i){return n({method:"POST",url:AK.System.url+"/Garage/Filter",data:{search:t,ownerId:i}})},getFilter:function(){return n({method:"GET",url:AK.System.url+"/Garage/Filter"})},setup:{userItems:{get:function(){return n({method:"GET",url:AK.System.url+"/Garage/Setup/UserItems/Data"})},set:function(t){return n({method:"POST",url:AK.System.url+"/Garage/Setup/UserItems/Data",data:{items:t}})}},totalHidden:{get:function(){return n({method:"GET",url:AK.System.url+"/Garage/Setup/TotalHidden/Data"})},set:function(t,i){return n({method:"POST",url:AK.System.url+"/Garage/Setup/TotalHidden/Data",data:{id:t,isVisible:i}})}},profile:{get:function(){return n({method:"GET",url:AK.System.url+"/Garage/Setup/Profile/Data"})},set:function(t){return n({method:"POST",url:AK.System.url+"/Garage/Setup/Profile/Data",data:{profile:t}})}}},calendar:{getData:function(){return n({method:"GET",url:AK.System.url+"/Garage/Calendar/Data"})},getViewTypes:function(){return n({method:"GET",url:AK.System.url+"/Garage/Calendar/ViewTypes"})},getServiceSheet:function(t){return n({method:"POST",url:AK.System.url+"/Garage/Calendar/ServiceSheet/Data",data:{filter:t}})},getServiceSheetFilter:function(){return n({method:"GET",url:AK.System.url+"/Garage/Calendar/ServiceSheet/Filter"})},saveEvent:function(t,i){return n({method:"POST",url:AK.System.url+"/Garage/Calendar/"+i+"/Event/Data",data:{data:t}})},saveSheetEvent:function(t){return n({method:"POST",url:AK.System.url+"/Garage/Calendar/SheetEvent/Data",data:{data:t}})},removeEvent:function(t,i){return n({method:"DELETE",url:AK.System.url+"/Garage/Calendar/"+t+"/SheetEvent/"+i})},add:function(t,i){return n({method:"POST",url:AK.System.url+"/Garage/Calendar/Data",data:{name:t,description:i}})},remove:function(t){return n({method:"DELETE",url:AK.System.url+"/Garage/Calendar/"+t})}}},t.registrationAdmin={getList:function(){return n({method:"GET",url:AK.System.url+"/Administration/Registration/List/Data"})},"delete":function(t){return n({method:"DELETE",url:AK.System.url+"/Administration/Registration/"+t})},get:function(t){return n({method:"GET",url:AK.System.url+"/Administration/Registration/Data/"+t})},set:function(t){return n({method:"POST",url:AK.System.url+"/Administration/Registration/Data",data:{data:t}})},unlock:function(t){return n({method:"POST",url:AK.System.url+"/Administration/Registration/"+t+"/Unlock"})}},t.getRegistration=function(){return n({method:"POST",url:AK.System.url+"/Registration/Data"})},t.getRegistrationAres=function(t){return n({method:"POST",url:AK.System.url+"/Registration/Ares/"+t})},t.getRegistrationStructureItems=function(t){return n({method:"POST",url:AK.System.url+"/Registration/StructureItems/"+t})},t.createRegistration=function(t){return n.post(AK.System.url+"/Registration/Create",{SubmitData:t})},t.getWheelConfig=function(t){return n({method:"POST",url:AK.System.url+"/Catalog/WheelConfig/"+t})},t.getGraphicSchemePaneCartText=function(){return n({method:"POST",url:AK.System.url+"/ProductList/GraphicSchemePaneCartText/"})},t.Administration={StaticText:{getListHeaderData:function(){return n({method:"GET",url:AK.System.url+"/Administration/StaticText/List/HeaderData"})},getListData:function(t){return n({method:"GET",url:AK.System.url+"/Administration/StaticText/List/Data/"+t})},setListFilter:function(t,i){return n({method:"POST",url:AK.System.url+"/Administration/StaticText/Filter",data:{searchText:t,languageType:i}})},getEditTemplate:function(){return n({method:"GET",url:AK.System.url+"/Administration/StaticText/EditTemplate"})},saveResource:function(t){return n({method:"POST",url:AK.System.url+"/Administration/StaticText/Resource",data:{resource:t}})}},HtmlGroup:{getData:function(t,i){return n({method:"POST",url:AK.System.url+"/Administration/Data/"+t+"/"+i})},getEditTemplate:function(){return n({method:"POST",url:AK.System.url+"/Administration/HtmlGroupEditTemplate"})},getEditData:function(t,i){return n({method:"POST",url:AK.System.url+"/Administration/EditData/"+t+"/"+i})},save:function(t){return n.post(AK.System.url+"/Administration/HtmlGroup/Save",{Data:t})},"delete":function(t){return n.post(AK.System.url+"/Administration/HtmlGroup/Delete",{htmlGroupDataPackId:t})}},CmsPage:{getData:function(t){return n({method:"POST",url:AK.System.url+"/Administration/CmsPageData/"+t})},save:function(t){return n.post(AK.System.url+"/Administration/CmsPage/Save",t)},"delete":function(t){return n.post(AK.System.url+"/Administration/CmsPage/Delete",{name:t})},getList:function(t,i,r,u,f){return n.post(AK.System.url+"/Administration/CmsPageList",{FolderName:t,Page:i,SortType:r,SortDirection:u,Name:f})},createFolder:function(t){return n.post(AK.System.url+"/Administration/CmsFolder/Create",{folderName:t})},create:function(t){return n.post(AK.System.url+"/Administration/CmsPage/Create",{name:t})}},ServiceTicket:{getData:function(t){return n({method:"GET",url:AK.System.url+"/Administration/ServiceTicket/Data/"+t})},getLogContent:function(t){return n({method:"GET",url:AK.System.url+"/Administration/ServiceTicketLog/Content/"+t})},getLog:function(t){return n({method:"GET",url:AK.System.url+"/Administration/ServiceTicketLog/"+t})},getList:function(t,i,r,u,f,e){return n({method:"POST",url:AK.System.url+"/Administration/ServiceTickets/Data",data:{page:t,operatorid:i,statustypes:r,fulltext:u,equipmentid:f,revisiontypeid:e}})},resetFilter:function(){return n({method:"POST",url:AK.System.url+"/Administration/ServiceTickets/ResetFilter"})},save:function(t,i){return n({method:"POST",url:AK.System.url+"/Administration/ServiceTicket/"+t,data:{data:i}})},getUserInfo:function(t){return n({method:"GET",url:AK.System.url+"/Administration/ServiceTicket/UserInfo/"+t})},"delete":function(t){return n({method:"DELETE",url:AK.System.url+"/Administration/ServiceTicket/"+t})}},Auction:{getList:function(t){return n({method:"POST",url:AK.System.url+"/Administration/Auction/Data",data:{page:t}})},getEditTemplate:function(){return n({method:"POST",url:AK.System.url+"/Administration/AuctionEditTemplate"})},getData:function(t){return n({method:"GET",url:AK.System.url+"/Administration/Auction/Data/"+t})},save:function(t,i){return n({method:"POST",url:AK.System.url+"/Administration/Auction/"+t,data:{data:i}})},"delete":function(t){return n({method:"DELETE",url:AK.System.url+"/Administration/Auction/"+t})}},AkDocument:{getList:function(){return n({method:"GET",url:AK.System.url+"/Administration/AkDocument/ListItems"})},getEditTemplate:function(){return n({method:"GET",url:AK.System.url+"/Administration/AkDocument/EditTemplate"})},getData:function(t){return n({method:"GET",url:AK.System.url+"/Administration/AkDocument/"+t})},save:function(t,i){return n({method:"POST",url:AK.System.url+"/Administration/AkDocument/"+t,data:{data:i}})},"delete":function(t){return n({method:"DELETE",url:AK.System.url+"/Administration/AkDocument/"+t})},getTypes:function(){return n({method:"GET",url:AK.System.url+"/Administration/AkDocument/Types"})}},MarketingPackage:{getData:function(t){return n({method:"GET",url:AK.System.url+"/Administration/MarketingPackage/Data/"+t})},getProductEditTemplate:function(){return n({method:"GET",url:AK.System.url+"/Administration/MarketingPackage/Product/EditTemplate"})},getPricingEditTemplate:function(){return n({method:"GET",url:AK.System.url+"/Administration/MarketingPackage/Pricing/EditTemplate"})},save:function(t){return n({method:"POST",url:AK.System.url+"/Administration/MarketingPackage/Data",data:{item:t}})},"delete":function(t){return n({method:"POST",url:AK.System.url+"/Administration/MarketingPackage/Data/delete",data:{item:t}})},getEmptyItem:function(){return n({method:"GET",url:AK.System.url+"/Administration/MarketingPackage/Product/Empty"})}},MarketingCoupon:{getFilter:function(){return n({method:"GET",url:AK.System.url+"/Administration/MarketingCoupon/Coupon/Filter"})},getData:function(t,i){return n({method:"GET",url:AK.System.url+"/Administration/MarketingCoupon/Coupon/"+t+"/Data/AllData/"+i})},setData:function(t){return n({method:"POST",url:AK.System.url+"/Administration/MarketingCoupon/Coupon/"+t.Id+"/Data",data:{data:t}})},"delete":function(t){return n({method:"DELETE",url:AK.System.url+"/Administration/MarketingCoupon/Coupon/"+t+"/Data"})},publish:function(t){return n({method:"POST",url:AK.System.url+"/Administration/MarketingCoupon/Coupon/"+t+"/Publish"})},getEditTemplate:function(){return n({method:"GET",url:AK.System.url+"/Administration/MarketingCoupon/Coupon/EditTemplate"})},getListItems:function(t){return n({method:"POST",url:AK.System.url+"/Administration/MarketingCoupon/Coupon/List/Data",data:{filter:t}})},getListItem:function(t){return n({method:"GET",url:AK.System.url+"/Administration/MarketingCoupon/Coupon/"+t+"/List/Data"})},getExportData:function(t,i){return n({method:"POST",url:AK.System.url+"/Administration/MarketingCoupon/Coupon/"+t+"/Export/Data",data:{columns:i}})}},Supplier:{getEditTemplate:function(){return n({method:"GET",url:AK.System.url+"/Administration/Supplier/EditTemplate"})},getData:function(t){return n({method:"GET",url:AK.System.url+"/Administration/Supplier/Data/"+t})},save:function(t){return n({method:"POST",url:AK.System.url+"/Administration/Supplier/Data",data:{item:t}})}}},t.getCmsPageContent=function(t){return n.post(AK.System.url+"/Page/Content",{name:t})},t.Contact={getData:function(){return n({method:"GET",url:AK.System.url+"/Contacts/Data"})},getDetailData:function(t){return n({method:"GET",url:AK.System.url+"/Contact/Detail/"+t})},EBikeService:{getData:function(){return n({method:"GET",url:AK.System.url+"/EBikeServices/Data"})},getDetailData:function(t){return n({method:"GET",url:AK.System.url+"/EBikeService/Detail/"+t})}},MotoService:{getData:function(){return n({method:"GET",url:AK.System.url+"/MotoServices/Data"})},getDetailData:function(t){return n({method:"GET",url:AK.System.url+"/MotoService/Detail/"+t})}},AkasService:{getData:function(){return n({method:"GET",url:AK.System.url+"/AkasServices/Data"})},getDetailData:function(t){return n({method:"GET",url:AK.System.url+"/AkasService/Detail/"+t})}}},t.getSearchData=function(t){return n.post(AK.System.url+"/Search/Data",{searchString:t})},t.getSearchHistory=function(){return n.post(AK.System.url+"/Search/HistoryData")},t.search2={history:{getData:function(){return n({method:"GET",url:AK.System.url+"/Search2/History/Data"})},setData:function(t){return n({method:"POST",url:AK.System.url+"/Search2/History/Data",data:{searchText:t.SearchText,result:JSON.stringify(t.Result)}})},deleteData:function(t){return n({method:"POST",url:AK.System.url+"/Search2/History/Remove",data:{searchText:t}})}},catalog:{getData:function(t){return n({method:"POST",url:AK.System.url+"/Search2/Catalog/Data",data:{searchText:t}})}},product:{getData:function(t){return n({method:"POST",url:AK.System.url+"/Search2/Product/Data",data:{searchText:t}})}},carDecoded:{getData:function(t,i,r){return n({method:"POST",url:AK.System.url+"/Search2/CarDecoded/Data",data:{searchText:t,searchType:i,refresh:r}})}}},t.logonAs={getData:function(){return n({method:"GET",url:AK.System.url+"/Header/LogonAs/Data"})},findUser:function(t,i,r,u,f,e,o,s){return n.post(AK.System.url+"/Header/FindUser",{name:t,username:i,id:r,ico:u,email:f,barcode:e,storageId:o,subtype:s})},clearFilter:function(){return n({method:"DELETE",url:AK.System.url+"/Header/LogonAs/Data"})}},t.isLoggedOn=function(){return n({method:"GET",url:AK.System.url+"/account/isloggedon"})},t.foundUsers={getData:function(){return n({method:"POST",url:AK.System.url+"/foundusers/data"})},completeRegistration:function(t){return n({method:"POST",url:AK.System.url+"/FoundUsers/CompleteRegistration/",data:{userId:t}})}},t.logFoundUser=function(t){return n.post(AK.System.url+"/FoundUsers/Log",{userId:t})},t.ServiceTicket={getData:function(){return n({method:"GET",url:AK.System.url+"/serviceticket/data"})},getBrands:function(t){return n({method:"GET",url:AK.System.url+"/serviceticket/brands/"+t})},getRevisionTypes:function(t){return n({method:"GET",url:AK.System.url+"/serviceticket/revisiontypes/"+t})},createNew:function(t){return n({method:"POST",url:AK.System.url+"/serviceticket/new",data:{ticket:t}})},getDataMy:function(){return n({method:"GET",url:AK.System.url+"/serviceticket/datamy"})}},t.Report={RequestsAvgDuration:{getData:function(t,i,r){return n({method:"POST",url:AK.System.url+"/Report/RequestsAvgDuration/Data",data:{from:t,to:i,allHours:!r}})}},PageLoad:{getData:function(t,i,r){return n({method:"POST",url:AK.System.url+"/Report/PageLoad/Data",data:{from:t,to:i,allHours:!r}})}},ServiceTicket:{getWarrantyData:function(t,i){return n({method:"POST",url:AK.System.url+"/Report/ServiceTicket/WarrantyData",data:{from:t,to:i}})},getTechnicData:function(t,i){return n({method:"POST",url:AK.System.url+"/Report/ServiceTicket/TechnicData",data:{from:t,to:i}})},getResponseData:function(t,i){return n({method:"POST",url:AK.System.url+"/Report/ServiceTicket/ResponseData",data:{from:t,to:i}})},getFinishData:function(t,i){return n({method:"POST",url:AK.System.url+"/Report/ServiceTicket/FinishData",data:{from:t,to:i}})},getSummaryData:function(t,i){return n({method:"POST",url:AK.System.url+"/Report/ServiceTicket/SummaryData",data:{from:t,to:i}})},getWarrantyMonthData:function(t,i){return n({method:"POST",url:AK.System.url+"/Report/ServiceTicket/WarrantyMonthData",data:{from:t,to:i}})},getTechnicMonthData:function(t,i){return n({method:"POST",url:AK.System.url+"/Report/ServiceTicket/TechnicMonthData",data:{from:t,to:i}})}}},t.productReturn={validateData:function(t){return n({method:"POST",url:AK.System.url+"/ProductReturnNew/ValidateData",data:{data:t}})},sendData:function(t){return n({method:"POST",url:AK.System.url+"/ProductReturnNew/SendData",data:{data:t}})},getListItems:function(t){return n({method:"GET",url:AK.System.url+"/ProductReturnNew/List/"+t})}},t.productReturnOld={validateData:function(t){return n({method:"POST",url:AK.System.url+"/ProductReturnold/ValidateData",data:{data:t}})},sendData:function(t){return n({method:"POST",url:AK.System.url+"/ProductReturnOld/SendData",data:{data:t}})},getListDaysItems:function(t){return n({method:"GET",url:AK.System.url+"/ProductReturnOld/List/Days/"+t})},getListDayItems:function(t,i){return n({method:"GET",url:AK.System.url+"/ProductReturnOld/List/Day/"+i+"/"+t})},getListItems:function(t){return n({method:"GET",url:AK.System.url+"/ProductReturnOld/List/"+t})}},t.priceCompare={getData:function(t){return n({method:"GET",url:AK.System.url+"/PriceCompare/Data/"+t})},compare:function(t,i){return n({method:"POST",url:AK.System.url+"/PriceCompare/Data",data:{data:t,hasChanges:i}})},getRivalProduct:function(t,i){return n({method:"POST",url:AK.System.url+"/PriceCompare/Product/Rival",data:{item:t,rivalId:i}})},getAKProduct:function(t){return n({method:"POST",url:AK.System.url+"/PriceCompare/Product",data:{item:t}})},getSubstitute:function(t){return n({method:"POST",url:AK.System.url+"/PriceCompare/Substitute",data:{item:t}})},getSubstituteFromProduct:function(t){return n({method:"POST",url:AK.System.url+"/PriceCompare/SubstituteFromProduct",data:{item:t}})},getProducts:function(t){return n({method:"POST",url:AK.System.url+"/PriceCompare/Products",data:{items:t}})},getListItems:function(t){return n({method:"GET",url:AK.System.url+"/PriceCompare/List/"+t})}},t.akDocument={getFirst:function(){return n({method:"GET",url:AK.System.url+"/AkDocument/First"})},getData:function(t,i){return n({method:"GET",url:AK.System.url+"/AkDocument/"+t+"/"+i})},process:function(t,i,r){return n({method:"POST",url:AK.System.url+"/AkDocument/"+t+"/"+i+"/"+r})}},t.serviceInvoice={getListItems:function(t){return n({method:"GET",url:AK.System.url+"/ServiceInvoice/List/"+t})},getListPayments:function(){return n({method:"GET",url:AK.System.url+"/ServiceInvoice/Payments"})},setPayment:function(t,i){return n({method:"POST",url:AK.System.url+"/ServiceInvoice/"+t+"/payment",data:{payment:i}})},getListFilter:function(){return n({method:"GET",url:AK.System.url+"/ServiceInvoice/Filter"})},setListFilter:function(t){return n({method:"POST",url:AK.System.url+"/ServiceInvoice/Filter",data:{filter:t}})},storno:function(t){return n({method:"DELETE",url:AK.System.url+"/ServiceInvoice/"+t})},getCreatingData:function(t){return n({method:"GET",url:AK.System.url+"/ServiceInvoice/data/ServiceSheet/"+t})},create:function(t){return n.post(AK.System.url+"/serviceinvoice",{data:t})},setPaid:function(t,i){return n({method:"POST",url:AK.System.url+"/ServiceInvoice/"+t+"/paid/"+i})}},t.serviceCustomer={getListItems:function(t){return n({method:"GET",url:AK.System.url+"/ServiceCustomer/List/"+t})},getListFilter:function(){return n({method:"GET",url:AK.System.url+"/ServiceCustomer/Filter"})},setListFilter:function(t){return n({method:"POST",url:AK.System.url+"/ServiceCustomer/Filter",data:{filter:t}})},remove:function(t){return n({method:"DELETE",url:AK.System.url+"/ServiceCustomer/"+t})},getModalEditContent:function(t,i){return n({method:"GET",url:AK.System.url+"/ServiceCustomer/"+t+"/car/"+i+"/editcontent"})},getModalSelectContent:function(){return n({method:"GET",url:AK.System.url+"/ServiceCustomer/selectcontent"})},getData:function(t){return n({method:"GET",url:AK.System.url+"/ServiceCustomer/"+t})},setData:function(t,i){return n({method:"POST",url:AK.System.url+"/ServiceCustomer/"+t.Id+"/car/"+i,data:{data:t,saveCustomer:!0}})},bindCar:function(t,i){return n({method:"POST",url:AK.System.url+"/ServiceCustomer/"+t+"/car/"+i+"/bind"})},unbindCar:function(t,i){return n({method:"POST",url:AK.System.url+"/ServiceCustomer/"+t+"/car/"+i+"/unbind"})}},t.eet={getData:function(){return n({method:"GET",url:AK.System.url+"/EET/data"})},setData:function(t){return n.post(AK.System.url+"/EET/data",{data:t})},deleteCertificate:function(){return n({method:"DELETE",url:AK.System.url+"/EET/certificate"})}},t.auction={getListItems:function(t){return n({method:"GET",url:AK.System.url+"/Auction/Items/"+t})},getListItem:function(t){return n({method:"GET",url:AK.System.url+"/Auction/ListItem/"+t})},getModel:function(t){return n({method:"GET",url:AK.System.url+"/Auction/"+t})},buyBid:function(t,i){return n({method:"POST",url:AK.System.url+"/Auction/BuyBid",data:{auctionId:t,price:i}})},buyAutoBid:function(t,i){return n({method:"POST",url:AK.System.url+"/Auction/BuyAutoBid",data:{auctionId:t,price:i}})},buyNow:function(t){return n({method:"POST",url:AK.System.url+"/Auction/BuyNow",data:{auctionId:t}})},getHistoryItems:function(t,i){return n({method:"GET",url:AK.System.url+"/Auction/"+t+"/history/"+i})},setFilter:function(t){return n({method:"POST",url:AK.System.url+"/Auction/filter",data:{active:t.Active,mine:t.Mine}})},getHPBanner:function(){return n({method:"GET",url:AK.System.url+"/Auction/HPBanner"})}},t.LedCalc={getData:function(){return n({method:"GET",url:AK.System.url+"/LedCalc/data"})}},t.ServiceSheet={getData:function(t,i){return n({method:"GET",url:AK.System.url+"/Car/"+i+"/ServiceSheet/"+t+"/data"})},setData:function(t){return n.post(AK.System.url+"/ServiceSheet/Data",t)},remove:function(t,i){return n({method:"DELETE",url:AK.System.url+"/Car/"+i+"/ServiceSheet/"+t})},getCarList:function(t){return n({method:"GET",url:AK.System.url+"/Car/"+t+"/ServiceSheet"})},getCarListTemplate:function(t){return n({method:"POST",url:AK.System.url+"/Garage/ServiceSheetTemplate/"+t})},getList:function(t){return n({method:"GET",url:AK.System.url+"/ServiceSheet/Page/"+t})},setListFilter:function(t){return n({method:"POST",url:AK.System.url+"/ServiceSheet/Filter",data:{filter:t}})},getAKProduct:function(t){return n({method:"POST",url:AK.System.url+"/ServiceSheet/Product",data:{item:t}})},findUserItem:function(t){return n({method:"POST",url:AK.System.url+"/ServiceSheet/Work",data:{item:t}})}},t.ServiceProfile={getData:function(){return n({method:"GET",url:AK.System.url+"/ServiceProfile/Data"})},save:function(t){return n({method:"POST",url:AK.System.url+"/ServiceProfile/Save",data:{profile:t}})}},t.Track={PageLoad:{send:function(t,i,r){return n({method:"POST",url:AK.System.url+"/Track/PageLoad",data:{requestid:t,time:i,type:r}})}}},t.Complaint={validateData:function(t){return n({method:"POST",url:AK.System.url+"/complaint/validate/data",data:{data:t}})},sendData:function(t){return n({method:"POST",url:AK.System.url+"/complaint/create/data",data:{data:t}})},getListDaysItems:function(t){return n({method:"GET",url:AK.System.url+"/complaint/page/"+t+"/data"})},getListDayItems:function(t,i){return n({method:"GET",url:AK.System.url+"/complaint/day/"+i+"/page/"+t+"/data"})},getListItems:function(t){return n({method:"GET",url:AK.System.url+"/complaint/page/"+t+"/data"})}},t.CalendarSales={getData:function(){return n({method:"GET",url:AK.System.url+"/CalendarSales/Data"})},getData2:function(){return n({method:"GET",url:AK.System.url+"/CalendarSales/Data2"})}},t.MarketingDeals={getData:function(){return n({method:"GET",url:AK.System.url+"/MarketingDeals/Data"})}},t.MarketingPackage={getGroups:function(){return n({method:"GET",url:AK.System.url+"/MarketingPackages/Group/List/Data"})},getData:function(t,i){return n({method:"GET",url:AK.System.url+"/MarketingPackages/Group/"+i+"/Package/"+t+"/Data"})},cartAddData:function(t,i,r){return n({method:"POST",url:AK.System.url+"/MarketingPackages/Group/"+i+"/Package/"+t+"/Data",data:{products:r}})}},t.marketingCoupon={verify:function(t,i,r){return n({method:"POST",url:AK.System.url+"/MarketingCoupon/Verify",data:{code:t,productAmounts:i,cartId:r}})},cancel:function(t){return n({method:"POST",url:AK.System.url+"/MarketingCoupon/Cancel",data:{cartId:t}})}},t.orderPromise={getList:function(t){return n({method:"POST",url:AK.System.url+"/Administration/OrderPromise/List/Data",data:{filter:t}})},getExportCsvFileContent:function(t){return n({method:"POST",url:AK.System.url+"/Administration/OrderPromise/Export",data:{filter:t}})},getFilter:function(){return n({method:"GET",url:AK.System.url+"/Administration/OrderPromise/Filter"})}},t.elitOrder={getListItems:function(t){return n({method:"POST",url:AK.System.url+"/Elit/Order/ListItems/Data",data:{filter:t}})},getListOrders:function(t){return n({method:"POST",url:AK.System.url+"/Elit/Order/ListOrders/Data",data:{filter:t}})},getFilter:function(){return n({method:"GET",url:AK.System.url+"/Elit/Order/Filter"})},exportCsv:function(t){return n({method:"POST",url:AK.System.url+"/Elit/Order/Items/CSV",data:{filter:t}})}},t.elitLoan={getList:function(t){return n({method:"POST",url:AK.System.url+"/Elit/Loan/List/Data",data:{filter:t}})},getFilter:function(){return n({method:"GET",url:AK.System.url+"/Elit/Loan/Filter"})}},t.elitCreditMemos={getList:function(t){return n({method:"POST",url:AK.System.url+"/Elit/CreditMemos/List/Data",data:{filter:t}})},getFilter:function(){return n({method:"GET",url:AK.System.url+"/Elit/CreditMemos/Filter"})}},t.elitShipment={getList:function(t){return n({method:"POST",url:AK.System.url+"/Elit/Shipment/List/Data",data:{paging:t}})},exportCsvList:function(){return n({method:"POST",url:AK.System.url+"/Elit/Shipment/Items/CSV"})},exportCsv:function(t,i){return n({method:"POST",url:AK.System.url+"/Elit/Shipment/"+t+"/includePrice/"+i+"/Print/CSV"})},exportXml:function(t,i){return n({method:"POST",url:AK.System.url+"/Elit/Shipment/"+t+"/includePrice/"+i+"/Print/XML"})}},t.elitInvoice={getList:function(t){return n({method:"POST",url:AK.System.url+"/Elit/Invoice/List/Data",data:{filter:t}})},getFilter:function(){return n({method:"GET",url:AK.System.url+"/Elit/Invoice/Filter"})},exportCsvList:function(t){return n({method:"POST",url:AK.System.url+"/Elit/Invoice/Items/CSV",data:{filter:t}})},exportCsv:function(t){return n({method:"POST",url:AK.System.url+"/Elit/Invoice/"+t+"/Print/CSV"})},exportXml:function(t){return n({method:"POST",url:AK.System.url+"/Elit/Invoice/"+t+"/Print/Xml"})}},t.elitOeDelivery={getData:function(t,i){return n({method:"GET",url:AK.System.url+"/Elit/OeDelivery/Product/"+t+"/Amount/"+i+"/Data"})},getHasData:function(t){return n({method:"POST",url:AK.System.url+"/Elit/OeDelivery/HasData",data:{productIds:t}})},getHasDataCode:function(t){return n({method:"POST",url:AK.System.url+"/Elit/OeDelivery/HasData/Code",data:{productCode:t}})}},t.elitQuantityDiscountAttribute={getData:function(t){return n({method:"POST",url:AK.System.url+"/Elit/QuantityDiscountAttribute/Data",data:{productIds:t}})}},t.DeliveryNotes={getData:function(t){return n({method:"POST",url:AK.System.url+"/DeliveryNotes/Data",data:{filter:t}})},getExportCsvFileContent:function(t){return n({method:"POST",url:AK.System.url+"/DeliveryNotes/Export",data:{filter:t}})}},t.Sales={getData:function(t){return n({method:"POST",url:AK.System.url+"/Sales/Data",data:{filter:t}})},getExportCsvFileContent:function(t){return n({method:"POST",url:AK.System.url+"/Sales/Export",data:{filter:t}})}},t.trackInfo=function(t){return n.post(AK.System.url+"/TrackInfo/Data",{jsonData:t})},t.trackInfoProductList=function(t){return n.post(AK.System.url+"/TrackInfo/CatalogProductList",{trackInfo:t})},t.wheelConfigAlcar={getBrands:function(){return n({method:"POST",url:AK.System.url+"/WheelConfigAlcar/Brands"})},getTypes:function(t){return n({method:"POST",url:AK.System.url+"/WheelConfigAlcar/Types",data:{brandCode:t}})},getModels:function(t,i){return n({method:"POST",url:AK.System.url+"/WheelConfigAlcar/Models",data:{brandCode:t,typeCode:i}})},getProducts:function(t,i,r,u){return n({method:"POST",url:AK.System.url+"/WheelConfigAlcar/Products",data:{modelCode:t,abeNr:i,abeNG:r,offset:u}})}},t.companyBriefInfo={getData:function(){return n({method:"POST",url:AK.System.url+"/CompanyBriefInfo/Data"})}},t}]),function(n){jQuery.fn.extend({slimScroll:function(t){var i=n.extend({width:"auto",height:"250px",size:"7px",color:"#000",position:"right",distance:"1px",start:"top",opacity:.4,alwaysVisible:!1,disableFadeOut:!1,railVisible:!1,railColor:"#333",railOpacity:.2,railDraggable:!0,railClass:"slimScrollRail",barClass:"slimScrollBar",wrapperClass:"slimScrollDiv",allowPageScroll:!1,wheelStep:20,touchScrollStep:200},t);return this.each(function(){function v(t){if(c){t=t||window.event;var u=0;t.wheelDelta&&(u=-t.wheelDelta/120);t.detail&&(u=t.detail/3);n(t.target||t.srcTarget).closest("."+i.wrapperClass).is(r.parent())&&e(u,!0);t.preventDefault&&!a&&t.preventDefault();a||(t.returnValue=!1)}}function e(n,t,e){var o=n,h=r.outerHeight()-u.outerHeight();t&&(o=parseInt(u.css("top"))+n*parseInt(i.wheelStep)/100*u.outerHeight(),o=Math.min(Math.max(o,0),h),o=0<n?Math.ceil(o):Math.floor(o),u.css({top:o+"px"}));f=parseInt(u.css("top"))/(r.outerHeight()-u.outerHeight());o=f*(r[0].scrollHeight-r.outerHeight());e&&(o=n,n=o/r[0].scrollHeight*r.outerHeight(),n=Math.min(Math.max(n,0),h),u.css({top:n+"px"}));r.scrollTop(o);r.trigger("slimscrolling",~~o);p();s()}function tt(){window.addEventListener?(this.addEventListener("DOMMouseScroll",v,!1),this.addEventListener("mousewheel",v,!1)):document.attachEvent("onmousewheel",v)}function y(){l=Math.max(r.outerHeight()/r[0].scrollHeight*r.outerHeight(),it);u.css({height:l+"px"});var n=l==r.outerHeight()?"none":"block";u.css({display:n})}function p(){y();clearTimeout(k);f==~~f&&(a=i.allowPageScroll,g!=f&&r.trigger("slimscroll",0==~~f?"top":"bottom"));g=f;l>=r.outerHeight()?a=!0:(u.stop(!0,!0).fadeIn("fast"),i.railVisible&&o.stop(!0,!0).fadeIn("fast"))}function s(){i.alwaysVisible||(k=setTimeout(function(){i.disableFadeOut&&c||w||b||(u.fadeOut("slow"),o.fadeOut("slow"))},1e3))}var c,w,b,k,d,l,f,g,it=30,a=!1,r=n(this);if(r.parent().hasClass(i.wrapperClass)){var h=r.scrollTop(),u=r.parent().find("."+i.barClass),o=r.parent().find("."+i.railClass);if(y(),n.isPlainObject(t)){if("scrollTo"in t)h=parseInt(i.scrollTo);else if("scrollBy"in t)h+=parseInt(i.scrollBy);else if("destroy"in t){u.remove();o.remove();r.unwrap();return}e(h,!1,!0)}}else{i.height="auto"==i.height?r.parent().innerHeight():i.height;h=n("<div><\/div>").addClass(i.wrapperClass).css({position:"relative",overflow:"hidden",width:i.width,height:i.height});r.css({overflow:"hidden",width:i.width,height:i.height});var o=n("<div><\/div>").addClass(i.railClass).css({width:i.size,height:"100%",position:"absolute",top:0,display:i.alwaysVisible&&i.railVisible?"block":"none","border-radius":i.size,background:i.railColor,opacity:i.railOpacity,zIndex:90}),u=n("<div><\/div>").addClass(i.barClass).css({background:i.color,width:i.size,position:"absolute",top:0,opacity:i.opacity,display:i.alwaysVisible?"block":"none","border-radius":i.size,BorderRadius:i.size,MozBorderRadius:i.size,WebkitBorderRadius:i.size,zIndex:99}),nt="right"==i.position?{right:i.distance}:{left:i.distance};o.css(nt);u.css(nt);r.wrap(h);r.parent().append(u);r.parent().append(o);i.railDraggable&&u.draggable({axis:"y",containment:"parent",start:function(){b=!0},stop:function(){b=!1;s()},drag:function(){e(0,n(this).position().top,!1)}});o.hover(function(){p()},function(){s()});u.hover(function(){w=!0},function(){w=!1});r.hover(function(){c=!0;p();s()},function(){c=!1;s()});r.bind("touchstart",function(n){n.originalEvent.touches.length&&(d=n.originalEvent.touches[0].pageY)});r.bind("touchmove",function(n){n.originalEvent.preventDefault();n.originalEvent.touches.length&&e((d-n.originalEvent.touches[0].pageY)/i.touchScrollStep,!0)});"bottom"===i.start?(u.css({top:r.outerHeight()-u.outerHeight()}),e(0,!0)):"top"!==i.start&&(e(n(i.start).position().top,null,!0),i.alwaysVisible||u.hide());tt();y()}}),this}});jQuery.fn.extend({slimscroll:jQuery.fn.slimScroll})}(jQuery),window.matchMedia=window.matchMedia||function(n){var u,i=n.documentElement,f=i.firstElementChild||i.firstChild,r=n.createElement("body"),t=n.createElement("div");return t.id="mq-test-1",t.style.cssText="position:absolute;top:-100em",r.style.background="none",r.appendChild(t),function(n){return t.innerHTML='&shy;<style media="'+n+'"> #mq-test-1 { width: 42px; }<\/style>',i.insertBefore(r,f),u=t.offsetWidth==42,i.removeChild(r),{matches:u,media:n}}}(document),function(n){function d(){a(!0)}if(n.respond={},respond.update=function(){},respond.mediaQueriesSupported=n.matchMedia&&n.matchMedia("only all").matches,!respond.mediaQueriesSupported){var t=n.document,i=t.documentElement,e=[],u=[],r=[],o={},v=30,f=t.getElementsByTagName("head")[0]||i,g=t.getElementsByTagName("base")[0],s=f.getElementsByTagName("link"),h=[],y=function(){for(var f=s,c=f.length,r=0,t,i,u,e;r<c;r++)t=f[r],i=t.href,u=t.media,e=t.rel&&t.rel.toLowerCase()==="stylesheet",!i||!e||o[i]||(t.styleSheet&&t.styleSheet.rawCssText?(w(t.styleSheet.rawCssText,i,u),o[i]=!0):(/^([a-zA-Z:]*\/\/)/.test(i)||g)&&i.replace(RegExp.$1,"").split("/")[0]!==n.location.host||h.push({href:i,media:u}));p()},p=function(){if(h.length){var n=h.shift();nt(n.href,function(t){w(t,n.href,n.media);o[n.href]=!0;p()})}},w=function(n,t,i){var o=n.match(/@media[^\{]+\{([^\{\}]*\{[^\}\{]*\})+/gi),s=o&&o.length||0,t=t.substring(0,t.lastIndexOf("/")),v=function(n){return n.replace(/(url\()['"]?([^\/\)'"][^:\)'"]+)['"]?(\))/g,"$1"+t+"$2$3")},y=!s&&i,h=0,f,c,r,l,p;for(t.length&&(t+="/"),y&&(s=1);h<s;h++)for(f=0,y?(c=i,u.push(v(n))):(c=o[h].match(/@media *([^\{]+)\{([\S\s]+?)$/)&&RegExp.$1,u.push(RegExp.$2&&v(RegExp.$2))),l=c.split(","),p=l.length;f<p;f++)r=l[f],e.push({media:r.split("(")[0].match(/(only\s+)?([a-zA-Z]+)\s?/)&&RegExp.$2||"all",rules:u.length-1,hasquery:r.indexOf("(")>-1,minw:r.match(/\(min\-width:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/)&&parseFloat(RegExp.$1)+(RegExp.$2||""),maxw:r.match(/\(max\-width:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/)&&parseFloat(RegExp.$1)+(RegExp.$2||"")});a()},c,b,k=function(){var u,r=t.createElement("div"),n=t.body,f=!1;return r.style.cssText="position:absolute;font-size:1em;width:1em",n||(n=f=t.createElement("body"),n.style.background="none"),n.appendChild(r),i.insertBefore(n,i.firstChild),u=r.offsetWidth,f?i.removeChild(n):n.removeChild(r),l=parseFloat(u)},l,a=function(n){var nt="clientWidth",tt=i[nt],it=t.compatMode==="CSS1Compat"&&tt||t.body[nt]||tt,d={},ot=s[s.length-1],rt=(new Date).getTime(),o,h,g;if(n&&c&&rt-c<v){clearTimeout(b);b=setTimeout(a,v);return}c=rt;for(o in e){var y=e[o],p=y.minw,w=y.maxw,ut=p===null,ft=w===null,et="em";!p||(p=parseFloat(p)*(p.indexOf(et)>-1?l||k():1));!w||(w=parseFloat(w)*(w.indexOf(et)>-1?l||k():1));y.hasquery&&(ut&&ft||!(ut||it>=p)||!(ft||it<=w))||(d[y.media]||(d[y.media]=[]),d[y.media].push(u[y.rules]))}for(o in r)r[o]&&r[o].parentNode===f&&f.removeChild(r[o]);for(o in d)h=t.createElement("style"),g=d[o].join("\n"),h.type="text/css",h.media=o,f.insertBefore(h,ot.nextSibling),h.styleSheet?h.styleSheet.cssText=g:h.appendChild(t.createTextNode(g)),r.push(h)},nt=function(n,t){var i=tt();i&&(i.open("GET",n,!0),i.onreadystatechange=function(){i.readyState==4&&(i.status==200||i.status==304)&&t(i.responseText)},i.readyState!=4)&&i.send(null)},tt=function(){var n=!1;try{n=new XMLHttpRequest}catch(t){n=new ActiveXObject("Microsoft.XMLHTTP")}return function(){return n}}();y();respond.update=y;n.addEventListener?n.addEventListener("resize",d,!1):n.attachEvent&&n.attachEvent("onresize",d)}}(this),!jQuery)throw new Error("Bootstrap requires jQuery");+function(n){"use strict";function t(){var i=document.createElement("bootstrap"),n={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var t in n)if(i.style[t]!==undefined)return{end:n[t]}}n.fn.emulateTransitionEnd=function(t){var i=!1,u=this,r;n(this).one(n.support.transition.end,function(){i=!0});return r=function(){i||n(u).trigger(n.support.transition.end)},setTimeout(r,t),this};n(function(){n.support.transition=t()})}(window.jQuery);+function(n){"use strict";var i='[data-dismiss="alert"]',t=function(t){n(t).on("click",i,this.close)},r;t.prototype.close=function(t){function f(){i.trigger("closed.bs.alert").remove()}var u=n(this),r=u.attr("data-target"),i;(r||(r=u.attr("href"),r=r&&r.replace(/.*(?=#[^\s]*$)/,"")),i=n(r),t&&t.preventDefault(),i.length||(i=u.hasClass("alert")?u:u.parent()),i.trigger(t=n.Event("close.bs.alert")),t.isDefaultPrevented())||(i.removeClass("in"),n.support.transition&&i.hasClass("fade")?i.one(n.support.transition.end,f).emulateTransitionEnd(150):f())};r=n.fn.alert;n.fn.alert=function(i){return this.each(function(){var r=n(this),u=r.data("bs.alert");u||r.data("bs.alert",u=new t(this));typeof i=="string"&&u[i].call(r)})};n.fn.alert.Constructor=t;n.fn.alert.noConflict=function(){return n.fn.alert=r,this};n(document).on("click.bs.alert.data-api",i,t.prototype.close)}(window.jQuery);+function(n){"use strict";var t=function(i,r){this.$element=n(i);this.options=n.extend({},t.DEFAULTS,r)},i;t.DEFAULTS={loadingText:"loading..."};t.prototype.setState=function(n){var i="disabled",t=this.$element,r=t.is("input")?"val":"html",u=t.data();n=n+"Text";u.resetText||t.data("resetText",t[r]());t[r](u[n]||this.options[n]);setTimeout(function(){n=="loadingText"?t.addClass(i).attr(i,i):t.removeClass(i).removeAttr(i)},0)};t.prototype.toggle=function(){var n=this.$element.closest('[data-toggle="buttons"]'),t;n.length&&(t=this.$element.find("input").prop("checked",!this.$element.hasClass("active")).trigger("change"),t.prop("type")==="radio"&&n.find(".active").removeClass("active"));this.$element.toggleClass("active")};i=n.fn.button;n.fn.button=function(i){return this.each(function(){var u=n(this),r=u.data("bs.button"),f=typeof i=="object"&&i;r||u.data("bs.button",r=new t(this,f));i=="toggle"?r.toggle():i&&r.setState(i)})};n.fn.button.Constructor=t;n.fn.button.noConflict=function(){return n.fn.button=i,this};n(document).on("click.bs.button.data-api","[data-toggle^=button]",function(t){var i=n(t.target);i.hasClass("btn")||(i=i.closest(".btn"));i.button("toggle");t.preventDefault()})}(window.jQuery);+function(n){"use strict";var t=function(t,i){this.$element=n(t);this.$indicators=this.$element.find(".carousel-indicators");this.options=i;this.paused=this.sliding=this.interval=this.$active=this.$items=null;this.options.pause=="hover"&&this.$element.on("mouseenter",n.proxy(this.pause,this)).on("mouseleave",n.proxy(this.cycle,this))},i;t.DEFAULTS={interval:5e3,pause:"hover",wrap:!0};t.prototype.cycle=function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(n.proxy(this.next,this),this.options.interval)),this};t.prototype.getActiveIndex=function(){return this.$active=this.$element.find(".item.active"),this.$items=this.$active.parent().children(),this.$items.index(this.$active)};t.prototype.to=function(t){var r=this,i=this.getActiveIndex();if(!(t>this.$items.length-1)&&!(t<0))return this.sliding?this.$element.one("slid",function(){r.to(t)}):i==t?this.pause().cycle():this.slide(t>i?"next":"prev",n(this.$items[t]))};t.prototype.pause=function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&n.support.transition.end&&(this.$element.trigger(n.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this};t.prototype.next=function(){if(!this.sliding)return this.slide("next")};t.prototype.prev=function(){if(!this.sliding)return this.slide("prev")};t.prototype.slide=function(t,i){var u=this.$element.find(".item.active"),r=i||u[t](),s=this.interval,f=t=="next"?"left":"right",h=t=="next"?"first":"last",o=this,e;if(!r.length){if(!this.options.wrap)return;r=this.$element.find(".akCaruselItem")[h]()}if(this.sliding=!0,s&&this.pause(),e=n.Event("slide.bs.carousel",{relatedTarget:r[0],direction:f}),!r.hasClass("active")){if(this.$indicators.length){this.$indicators.find(".active").removeClass("active");this.$element.one("slid",function(){var t=n(o.$indicators.children()[o.getActiveIndex()]);t&&t.addClass("active")})}if(n.support.transition&&this.$element.hasClass("slide")){if(this.$element.trigger(e),e.isDefaultPrevented())return;r.addClass(t);r[0].offsetWidth;u.addClass(f);r.addClass(f);u.one(n.support.transition.end,function(){r.removeClass([t,f].join(" ")).addClass("active");u.removeClass(["active",f].join(" "));o.sliding=!1;setTimeout(function(){o.$element.trigger("slid")},0)}).emulateTransitionEnd(600)}else{if(this.$element.trigger(e),e.isDefaultPrevented())return;u.removeClass("active");r.addClass("active");this.sliding=!1;this.$element.trigger("slid")}return s&&this.cycle(),this}};i=n.fn.carousel;n.fn.carousel=function(i){return this.each(function(){var u=n(this),r=u.data("bs.carousel"),f=n.extend({},t.DEFAULTS,u.data(),typeof i=="object"&&i),e=typeof i=="string"?i:f.slide;r||u.data("bs.carousel",r=new t(this,f));typeof i=="number"?r.to(i):e?r[e]():f.interval&&r.pause().cycle()})};n.fn.carousel.Constructor=t;n.fn.carousel.noConflict=function(){return n.fn.carousel=i,this};n(document).on("click.bs.carousel.data-api","[data-slide], [data-slide-to]",function(t){var i=n(this),f,r=n(i.attr("data-target")||(f=i.attr("href"))&&f.replace(/.*(?=#[^\s]+$)/,"")),e=n.extend({},r.data(),i.data()),u=i.attr("data-slide-to");u&&(e.interval=!1);r.carousel(e);(u=i.attr("data-slide-to"))&&r.data("bs.carousel").to(u);t.preventDefault()});n(window).on("load",function(){n('[data-ride="carousel"]').each(function(){var t=n(this);t.carousel(t.data())})})}(window.jQuery);+function(n){"use strict";var t=function(i,r){this.$element=n(i);this.options=n.extend({},t.DEFAULTS,r);this.transitioning=null;this.options.parent&&(this.$parent=n(this.options.parent));this.options.toggle&&this.toggle()},i;t.DEFAULTS={toggle:!0};t.prototype.dimension=function(){var n=this.$element.hasClass("width");return n?"width":"height"};t.prototype.show=function(){var u,t,r,i,f,e;if(!this.transitioning&&!this.$element.hasClass("in")&&(u=n.Event("show.bs.collapse"),this.$element.trigger(u),!u.isDefaultPrevented())){if(t=this.$parent&&this.$parent.find("> .panel > .in"),t&&t.length){if(r=t.data("bs.collapse"),r&&r.transitioning)return;t.collapse("hide");r||t.data("bs.collapse",null)}if(i=this.dimension(),this.$element.removeClass("collapse").addClass("collapsing")[i](0),this.transitioning=1,f=function(){this.$element.removeClass("collapsing").addClass("in")[i]("auto");this.transitioning=0;this.$element.trigger("shown.bs.collapse")},!n.support.transition)return f.call(this);e=n.camelCase(["scroll",i].join("-"));this.$element.one(n.support.transition.end,n.proxy(f,this)).emulateTransitionEnd(350)[i](this.$element[0][e])}};t.prototype.hide=function(){var i,t,r;if(!this.transitioning&&this.$element.hasClass("in")&&(i=n.Event("hide.bs.collapse"),this.$element.trigger(i),!i.isDefaultPrevented())){if(t=this.dimension(),this.$element[t](this.$element[t]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse").removeClass("in"),this.transitioning=1,r=function(){this.transitioning=0;this.$element.trigger("hidden.bs.collapse").removeClass("collapsing").addClass("collapse")},!n.support.transition)return r.call(this);this.$element[t](0).one(n.support.transition.end,n.proxy(r,this)).emulateTransitionEnd(350)}};t.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()};i=n.fn.collapse;n.fn.collapse=function(i){return this.each(function(){var r=n(this),u=r.data("bs.collapse"),f=n.extend({},t.DEFAULTS,r.data(),typeof i=="object"&&i);u||r.data("bs.collapse",u=new t(this,f));typeof i=="string"&&u[i]()})};n.fn.collapse.Constructor=t;n.fn.collapse.noConflict=function(){return n.fn.collapse=i,this};n(document).on("click.bs.collapse.data-api","[data-toggle=collapse]",function(t){var i=n(this),e,s=i.attr("data-target")||t.preventDefault()||(e=i.attr("href"))&&e.replace(/.*(?=#[^\s]+$)/,""),r=n(s),u=r.data("bs.collapse"),h=u?"toggle":i.data(),f=i.attr("data-parent"),o=f&&n(f);u&&u.transitioning||(o&&o.find('[data-toggle=collapse][data-parent="'+f+'"]').not(i).addClass("collapsed"),i[r.hasClass("in")?"addClass":"removeClass"]("collapsed"));r.collapse(h)})}(window.jQuery);+function(n){"use strict";function r(){n(e).remove();n(i).each(function(t){var i=u(n(this));i.hasClass("open")&&((i.trigger(t=n.Event("hide.bs.dropdown")),t.isDefaultPrevented())||i.removeClass("open").trigger("hidden.bs.dropdown"))})}function u(t){var i=t.attr("data-target"),r;return i||(i=t.attr("href"),i=i&&/#/.test(i)&&i.replace(/.*(?=#[^\s]*$)/,"")),r=i&&n(i),r&&r.length?r:t.parent()}var e=".dropdown-backdrop",i="[data-toggle=dropdown]",t=function(t){var i=n(t).on("click.bs.dropdown",this.toggle)},f;t.prototype.toggle=function(t){var f=n(this),i,e;if(!f.is(".disabled, :disabled")){if(i=u(f),e=i.hasClass("open"),r(),!e){if("ontouchstart"in document.documentElement&&!i.closest(".navbar-nav").length)n('<div class="dropdown-backdrop"/>').insertAfter(n(this)).on("click",r);if(i.trigger(t=n.Event("show.bs.dropdown")),t.isDefaultPrevented())return;i.toggleClass("open").trigger("shown.bs.dropdown");f.focus()}return!1}};t.prototype.keydown=function(t){var e,o,s,f,r;if(/(38|40|27)/.test(t.keyCode)&&(e=n(this),t.preventDefault(),t.stopPropagation(),!e.is(".disabled, :disabled"))){if(o=u(e),s=o.hasClass("open"),!s||s&&t.keyCode==27)return t.which==27&&o.find(i).focus(),e.click();(f=n("[role=menu] li:not(.divider):visible a",o),f.length)&&(r=f.index(f.filter(":focus")),t.keyCode==38&&r>0&&r--,t.keyCode==40&&r<f.length-1&&r++,~r||(r=0),f.eq(r).focus())}};f=n.fn.dropdown;n.fn.dropdown=function(i){return this.each(function(){var r=n(this),u=r.data("dropdown");u||r.data("dropdown",u=new t(this));typeof i=="string"&&u[i].call(r)})};n.fn.dropdown.Constructor=t;n.fn.dropdown.noConflict=function(){return n.fn.dropdown=f,this};n(document).on("click.bs.dropdown.data-api",r).on("click.bs.dropdown.data-api",".dropdown form",function(n){n.stopPropagation()}).on("click.bs.dropdown.data-api",i,t.prototype.toggle).on("keydown.bs.dropdown.data-api",i+", [role=menu]",t.prototype.keydown)}(window.jQuery);+function(n){"use strict";var t=function(t,i){this.options=i;this.$element=n(t);this.$backdrop=this.isShown=null;this.options.remote&&this.$element.load(this.options.remote)},i;t.DEFAULTS={backdrop:!0,keyboard:!0,show:!0};t.prototype.toggle=function(n){return this[this.isShown?"hide":"show"](n)};t.prototype.show=function(t){var i=this,r=n.Event("show.bs.modal",{relatedTarget:t});if(this.$element.trigger(r),!this.isShown&&!r.isDefaultPrevented()){this.isShown=!0;this.escape();this.$element.on("click.dismiss.modal",'[data-dismiss="modal"]',n.proxy(this.hide,this));this.backdrop(function(){var u=n.support.transition&&i.$element.hasClass("fade"),r;i.$element.parent().length||i.$element.appendTo(document.body);i.$element.show();u&&i.$element[0].offsetWidth;i.$element.addClass("in").attr("aria-hidden",!1);i.enforceFocus();r=n.Event("shown.bs.modal",{relatedTarget:t});u?i.$element.find(".modal-dialog").one(n.support.transition.end,function(){i.$element.focus().trigger(r)}).emulateTransitionEnd(300):i.$element.focus().trigger(r)})}};t.prototype.hide=function(t){(t&&t.preventDefault(),t=n.Event("hide.bs.modal"),this.$element.trigger(t),this.isShown&&!t.isDefaultPrevented())&&(this.isShown=!1,this.escape(),n(document).off("focusin.bs.modal"),this.$element.removeClass("in").attr("aria-hidden",!0).off("click.dismiss.modal"),n.support.transition&&this.$element.hasClass("fade")?this.$element.one(n.support.transition.end,n.proxy(this.hideModal,this)).emulateTransitionEnd(300):this.hideModal())};t.prototype.enforceFocus=function(){n(document).off("focusin.bs.modal").on("focusin.bs.modal",n.proxy(function(n){this.$element[0]===n.target||this.$element.has(n.target).length||this.$element.focus()},this))};t.prototype.escape=function(){if(this.isShown&&this.options.keyboard)this.$element.on("keyup.dismiss.bs.modal",n.proxy(function(n){n.which==27&&this.hide()},this));else this.isShown||this.$element.off("keyup.dismiss.bs.modal")};t.prototype.hideModal=function(){var n=this;this.$element.hide();this.backdrop(function(){n.removeBackdrop();n.$element.trigger("hidden.bs.modal")})};t.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove();this.$backdrop=null};t.prototype.backdrop=function(t){var u=this,r=this.$element.hasClass("fade")?"fade":"",i;if(this.isShown&&this.options.backdrop){i=n.support.transition&&r;this.$backdrop=n('<div class="modal-backdrop '+r+'" />').appendTo(document.body);this.$element.on("click.dismiss.modal",n.proxy(function(n){n.target===n.currentTarget&&(this.options.backdrop=="static"?this.$element[0].focus.call(this.$element[0]):this.hide.call(this))},this));if(i&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!t)return;i?this.$backdrop.one(n.support.transition.end,t).emulateTransitionEnd(150):t()}else!this.isShown&&this.$backdrop?(this.$backdrop.removeClass("in"),n.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one(n.support.transition.end,t).emulateTransitionEnd(150):t()):t&&t()};i=n.fn.modal;n.fn.modal=function(i,r){return this.each(function(){var f=n(this),u=f.data("bs.modal"),e=n.extend({},t.DEFAULTS,f.data(),typeof i=="object"&&i);u||f.data("bs.modal",u=new t(this,e));typeof i=="string"?u[i](r):e.show&&u.show(r)})};n.fn.modal.Constructor=t;n.fn.modal.noConflict=function(){return n.fn.modal=i,this};n(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(t){var i=n(this),r=i.attr("href"),u=n(i.attr("data-target")||r&&r.replace(/.*(?=#[^\s]+$)/,"")),f=u.data("modal")?"toggle":n.extend({remote:!/#/.test(r)&&r},u.data(),i.data());t.preventDefault();u.modal(f,this).one("hide",function(){i.is(":visible")&&i.focus()})});n(document).on("show.bs.modal",".modal",function(){n(document.body).addClass("modal-open")}).on("hidden.bs.modal",".modal",function(){n(document.body).removeClass("modal-open")})}(window.jQuery);+function(n){"use strict";var t=function(n,t){this.type=this.options=this.enabled=this.timeout=this.hoverState=this.$element=null;this.init("tooltip",n,t)},i;t.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};t.prototype.init=function(t,i,r){var f,e,u,o,s;for(this.enabled=!0,this.type=t,this.$element=n(i),this.options=this.getOptions(r),f=this.options.trigger.split(" "),e=f.length;e--;)if(u=f[e],u=="click")this.$element.on("click."+this.type,this.options.selector,n.proxy(this.toggle,this));else if(u!="manual"){o=u=="hover"?"mouseenter":"focus";s=u=="hover"?"mouseleave":"blur";this.$element.on(o+"."+this.type,this.options.selector,n.proxy(this.enter,this));this.$element.on(s+"."+this.type,this.options.selector,n.proxy(this.leave,this))}this.options.selector?this._options=n.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()};t.prototype.getDefaults=function(){return t.DEFAULTS};t.prototype.getOptions=function(t){return t=n.extend({},this.getDefaults(),this.$element.data(),t),t.delay&&typeof t.delay=="number"&&(t.delay={show:t.delay,hide:t.delay}),t};t.prototype.getDelegateOptions=function(){var t={},i=this.getDefaults();return this._options&&n.each(this._options,function(n,r){i[n]!=r&&(t[n]=r)}),t};t.prototype.enter=function(t){var i=t instanceof this.constructor?t:n(t.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(){i.hoverState=="in"&&i.show()},i.options.delay.show)};t.prototype.leave=function(t){var i=t instanceof this.constructor?t:n(t.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(){i.hoverState=="out"&&i.hide()},i.options.delay.hide)};t.prototype.show=function(){var o=n.Event("show.bs."+this.type),i,l;if(this.hasContent()&&this.enabled){if(this.$element.trigger(o),o.isDefaultPrevented())return;i=this.tip();this.setContent();this.options.animation&&i.addClass("fade");var t=typeof this.options.placement=="function"?this.options.placement.call(this,i[0],this.$element[0]):this.options.placement,s=/\s?auto?\s?/i,h=s.test(t);h&&(t=t.replace(s,"")||"top");i.detach().css({top:0,left:0,display:"block"}).addClass(t);this.options.container?i.appendTo(this.options.container):i.insertAfter(this.$element);var r=this.getPosition(),u=i[0].offsetWidth,f=i[0].offsetHeight;if(h){var e=this.$element.parent(),a=t,c=document.documentElement.scrollTop||document.body.scrollTop,v=this.options.container=="body"?window.innerWidth:e.outerWidth(),y=this.options.container=="body"?window.innerHeight:e.outerHeight(),p=this.options.container=="body"?0:e.offset().left;t=t=="bottom"&&r.top+r.height+f-c>y?"top":t=="top"&&r.top-c-f<0?"bottom":t=="right"&&r.right+u>v?"left":t=="left"&&r.left-u<p?"right":t;i.removeClass(a).addClass(t)}l=this.getCalculatedOffset(t,r,u,f);this.applyPlacement(l,t);this.$element.trigger("shown.bs."+this.type)}};t.prototype.applyPlacement=function(n,t){var h,i=this.tip(),c=i[0].offsetWidth,f=i[0].offsetHeight,e=parseInt(i.css("margin-top"),10),o=parseInt(i.css("margin-left"),10),u,r,s;isNaN(e)&&(e=0);isNaN(o)&&(o=0);n.top=n.top+e;n.left=n.left+o;i.offset(n).addClass("in");u=i[0].offsetWidth;r=i[0].offsetHeight;t=="top"&&r!=f&&(h=!0,n.top=n.top+f-r);/bottom|top/.test(t)?(s=0,n.left<0&&(s=n.left*-2,n.left=0,i.offset(n),u=i[0].offsetWidth,r=i[0].offsetHeight),this.replaceArrow(s-c+u,u,"left")):this.replaceArrow(r-f,r,"top");h&&i.offset(n)};t.prototype.replaceArrow=function(n,t,i){this.arrow().css(i,n?50*(1-n/t)+"%":"")};t.prototype.setContent=function(){var n=this.tip(),t=this.getTitle();n.find(".tooltip-inner")[this.options.html?"html":"text"](t);n.removeClass("fade in top bottom left right")};t.prototype.hide=function(){function r(){u.hoverState!="in"&&t.detach()}var u=this,t=this.tip(),i=n.Event("hide.bs."+this.type);if(this.$element.trigger(i),!i.isDefaultPrevented())return t.removeClass("in"),n.support.transition&&this.$tip.hasClass("fade")?t.one(n.support.transition.end,r).emulateTransitionEnd(150):r(),this.$element.trigger("hidden.bs."+this.type),this};t.prototype.fixTitle=function(){var n=this.$element;(n.attr("title")||typeof n.attr("data-original-title")!="string")&&n.attr("data-original-title",n.attr("title")||"").attr("title","")};t.prototype.hasContent=function(){return this.getTitle()};t.prototype.getPosition=function(){var t=this.$element[0];return n.extend({},typeof t.getBoundingClientRect=="function"?t.getBoundingClientRect():{width:t.offsetWidth,height:t.offsetHeight},this.$element.offset())};t.prototype.getCalculatedOffset=function(n,t,i,r){return n=="bottom"?{top:t.top+t.height,left:t.left+t.width/2-i/2}:n=="top"?{top:t.top-r,left:t.left+t.width/2-i/2}:n=="left"?{top:t.top+t.height/2-r/2,left:t.left-i}:{top:t.top+t.height/2-r/2,left:t.left+t.width}};t.prototype.getTitle=function(){var t=this.$element,n=this.options;return t.attr("data-original-title")||(typeof n.title=="function"?n.title.call(t[0]):n.title)};t.prototype.tip=function(){return this.$tip=this.$tip||n(this.options.template)};t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")};t.prototype.validate=function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)};t.prototype.enable=function(){this.enabled=!0};t.prototype.disable=function(){this.enabled=!1};t.prototype.toggleEnabled=function(){this.enabled=!this.enabled};t.prototype.toggle=function(t){var i=t?n(t.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type):this;i.tip().hasClass("in")?i.leave(i):i.enter(i)};t.prototype.destroy=function(){this.hide().$element.off("."+this.type).removeData("bs."+this.type)};i=n.fn.tooltip;n.fn.tooltip=function(i){return this.each(function(){var u=n(this),r=u.data("bs.tooltip"),f=typeof i=="object"&&i;r||u.data("bs.tooltip",r=new t(this,f));typeof i=="string"&&r[i]()})};n.fn.tooltip.Constructor=t;n.fn.tooltip.noConflict=function(){return n.fn.tooltip=i,this}}(window.jQuery);+function(n){"use strict";var t=function(n,t){this.init("popover",n,t)},i;if(!n.fn.tooltip)throw new Error("Popover requires tooltip.js");t.DEFAULTS=n.extend({},n.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>'});t.prototype=n.extend({},n.fn.tooltip.Constructor.prototype);t.prototype.constructor=t;t.prototype.getDefaults=function(){return t.DEFAULTS};t.prototype.setContent=function(){var n=this.tip(),t=this.getTitle(),i=this.getContent();n.find(".popover-title")[this.options.html?"html":"text"](t);n.find(".popover-content")[this.options.html?"html":"text"](i);n.removeClass("fade top bottom left right in");n.find(".popover-title").html()||n.find(".popover-title").hide()};t.prototype.hasContent=function(){return this.getTitle()||this.getContent()};t.prototype.getContent=function(){var t=this.$element,n=this.options;return t.attr("data-content")||(typeof n.content=="function"?n.content.call(t[0]):n.content)};t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};t.prototype.tip=function(){return this.$tip||(this.$tip=n(this.options.template)),this.$tip};i=n.fn.popover;n.fn.popover=function(i){return this.each(function(){var u=n(this),r=u.data("bs.popover"),f=typeof i=="object"&&i;r||u.data("bs.popover",r=new t(this,f));typeof i=="string"&&r[i]()})};n.fn.popover.Constructor=t;n.fn.popover.noConflict=function(){return n.fn.popover=i,this}}(window.jQuery);+function(n){"use strict";function t(i,r){var u,f=n.proxy(this.process,this);this.$element=n(i).is("body")?n(window):n(i);this.$body=n("body");this.$scrollElement=this.$element.on("scroll.bs.scroll-spy.data-api",f);this.options=n.extend({},t.DEFAULTS,r);this.selector=(this.options.target||(u=n(i).attr("href"))&&u.replace(/.*(?=#[^\s]+$)/,"")||"")+" .nav li > a";this.offsets=n([]);this.targets=n([]);this.activeTarget=null;this.refresh();this.process()}t.DEFAULTS={offset:10};t.prototype.refresh=function(){var i=this.$element[0]==window?"offset":"position",t,r;this.offsets=n([]);this.targets=n([]);t=this;r=this.$body.find(this.selector).map(function(){var f=n(this),r=f.data("target")||f.attr("href"),u=/^#\w/.test(r)&&n(r);return u&&u.length&&[[u[i]().top+(!n.isWindow(t.$scrollElement.get(0))&&t.$scrollElement.scrollTop()),r]]||null}).sort(function(n,t){return n[0]-t[0]}).each(function(){t.offsets.push(this[0]);t.targets.push(this[1])})};t.prototype.process=function(){var i=this.$scrollElement.scrollTop()+this.options.offset,f=this.$scrollElement[0].scrollHeight||this.$body[0].scrollHeight,e=f-this.$scrollElement.height(),t=this.offsets,r=this.targets,u=this.activeTarget,n;if(i>=e)return u!=(n=r.last()[0])&&this.activate(n);for(n=t.length;n--;)u!=r[n]&&i>=t[n]&&(!t[n+1]||i<=t[n+1])&&this.activate(r[n])};t.prototype.activate=function(t){this.activeTarget=t;n(this.selector).parents(".active").removeClass("active");var r=this.selector+'[data-target="'+t+'"],'+this.selector+'[href="'+t+'"]',i=n(r).parents("li").addClass("active");i.parent(".dropdown-menu").length&&(i=i.closest("li.dropdown").addClass("active"));i.trigger("activate")};var i=n.fn.scrollspy;n.fn.scrollspy=function(i){return this.each(function(){var u=n(this),r=u.data("bs.scrollspy"),f=typeof i=="object"&&i;r||u.data("bs.scrollspy",r=new t(this,f));typeof i=="string"&&r[i]()})};n.fn.scrollspy.Constructor=t;n.fn.scrollspy.noConflict=function(){return n.fn.scrollspy=i,this};n(window).on("load",function(){n('[data-spy="scroll"]').each(function(){var t=n(this);t.scrollspy(t.data())})})}(window.jQuery);+function(n){"use strict";var t=function(t){this.element=n(t)},i;t.prototype.show=function(){var t=this.element,e=t.closest("ul:not(.dropdown-menu)"),i=t.attr("data-target"),r,u,f;(i||(i=t.attr("href"),i=i&&i.replace(/.*(?=#[^\s]*$)/,"")),t.parent("li").hasClass("active"))||(r=e.find(".active:last a")[0],u=n.Event("show.bs.tab",{relatedTarget:r}),t.trigger(u),u.isDefaultPrevented())||(f=n(i),this.activate(t.parent("li"),e),this.activate(f,f.parent(),function(){t.trigger({type:"shown.bs.tab",relatedTarget:r})}))};t.prototype.activate=function(t,i,r){function e(){u.removeClass("active").find("> .dropdown-menu > .active").removeClass("active");t.addClass("active");f?(t[0].offsetWidth,t.addClass("in")):t.removeClass("fade");t.parent(".dropdown-menu")&&t.closest("li.dropdown").addClass("active");r&&r()}var u=i.find("> .active"),f=r&&n.support.transition&&u.hasClass("fade");f?u.one(n.support.transition.end,e).emulateTransitionEnd(150):e();u.removeClass("in")};i=n.fn.tab;n.fn.tab=function(i){return this.each(function(){var u=n(this),r=u.data("bs.tab");r||u.data("bs.tab",r=new t(this));typeof i=="string"&&r[i]()})};n.fn.tab.Constructor=t;n.fn.tab.noConflict=function(){return n.fn.tab=i,this};n(document).on("click.bs.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"]',function(t){t.preventDefault();n(this).tab("show")})}(window.jQuery);+function(n){"use strict";var t=function(i,r){this.options=n.extend({},t.DEFAULTS,r);this.$window=n(window).on("scroll.bs.affix.data-api",n.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",n.proxy(this.checkPositionWithEventLoop,this));this.$element=n(i);this.affixed=this.unpin=null;this.checkPosition()},i;t.RESET="affix affix-top affix-bottom";t.DEFAULTS={offset:0};t.prototype.checkPositionWithEventLoop=function(){setTimeout(n.proxy(this.checkPosition,this),1)};t.prototype.checkPosition=function(){var i;if(this.$element.is(":visible")){var s=n(document).height(),e=this.$window.scrollTop(),o=this.$element.offset(),r=this.options.offset,f=r.top,u=r.bottom;(typeof r!="object"&&(u=f=r),typeof f=="function"&&(f=r.top()),typeof u=="function"&&(u=r.bottom()),i=this.unpin!=null&&e+this.unpin<=o.top?!1:u!=null&&o.top+this.$element.height()>=s-u?"bottom":f!=null&&e<=f?"top":!1,this.affixed!==i)&&(this.unpin&&this.$element.css("top",""),this.affixed=i,this.unpin=i=="bottom"?o.top-e:null,this.$element.removeClass(t.RESET).addClass("affix"+(i?"-"+i:"")),i=="bottom"&&this.$element.offset({top:document.body.offsetHeight-u-this.$element.height()}))}};i=n.fn.affix;n.fn.affix=function(i){return this.each(function(){var u=n(this),r=u.data("bs.affix"),f=typeof i=="object"&&i;r||u.data("bs.affix",r=new t(this,f));typeof i=="string"&&r[i]()})};n.fn.affix.Constructor=t;n.fn.affix.noConflict=function(){return n.fn.affix=i,this};n(window).on("load",function(){n('[data-spy="affix"]').each(function(){var i=n(this),t=i.data();t.offset=t.offset||{};t.offsetBottom&&(t.offset.bottom=t.offsetBottom);t.offsetTop&&(t.offset.top=t.offsetTop);i.affix(t)})})}(window.jQuery);!function(n){"use strict";"function"==typeof define&&define.amd?define(["./blueimp-helper"],n):(window.blueimp=window.blueimp||{},window.blueimp.Gallery=n(window.blueimp.helper||window.jQuery))}(function(n){"use strict";function t(n,i){return void 0===document.body.style.maxHeight?null:this&&this.options===t.prototype.options?n&&n.length?(this.list=n,this.num=n.length,this.initOptions(i),void this.initialize()):void this.console.log("blueimp Gallery: No or empty list provided as first argument.",n):new t(n,i)}return n.extend(t.prototype,{options:{container:"#blueimp-gallery",slidesContainer:"div",titleElement:"h3",displayClass:"blueimp-gallery-display",controlsClass:"blueimp-gallery-controls",singleClass:"blueimp-gallery-single",leftEdgeClass:"blueimp-gallery-left",rightEdgeClass:"blueimp-gallery-right",playingClass:"blueimp-gallery-playing",slideClass:"slide",slideLoadingClass:"slide-loading",slideErrorClass:"slide-error",slideContentClass:"slide-content",toggleClass:"toggle",prevClass:"prev",nextClass:"next",closeClass:"close",playPauseClass:"play-pause",typeProperty:"type",titleProperty:"title",urlProperty:"href",displayTransition:!0,clearSlides:!0,stretchImages:!1,toggleControlsOnReturn:!0,toggleSlideshowOnSpace:!0,enableKeyboardNavigation:!0,closeOnEscape:!0,closeOnSlideClick:!0,closeOnSwipeUpOrDown:!0,emulateTouchEvents:!0,stopTouchEventsPropagation:!1,hidePageScrollbars:!0,disableScroll:!0,carousel:!1,continuous:!0,unloadElements:!0,startSlideshow:!1,slideshowInterval:5e3,index:0,preloadRange:2,transitionSpeed:400,slideshowTransitionSpeed:void 0,event:void 0,onopen:void 0,onopened:void 0,onslide:void 0,onslideend:void 0,onslidecomplete:void 0,onclose:void 0,onclosed:void 0},carouselOptions:{hidePageScrollbars:!1,toggleControlsOnReturn:!1,toggleSlideshowOnSpace:!1,enableKeyboardNavigation:!1,closeOnEscape:!1,closeOnSlideClick:!1,closeOnSwipeUpOrDown:!1,disableScroll:!1,startSlideshow:!0},console:window.console&&"function"==typeof window.console.log?window.console:{log:function(){}},support:function(t){var i={touch:void 0!==window.ontouchstart||window.DocumentTouch&&document instanceof DocumentTouch},r=function(){var n,u,r=i.transition;document.body.appendChild(t);r&&(n=r.name.slice(0,-9)+"ransform",void 0!==t.style[n]&&(t.style[n]="translateZ(0)",u=window.getComputedStyle(t).getPropertyValue(r.prefix+"transform"),i.transform={prefix:r.prefix,name:n,translate:!0,translateZ:!!u&&"none"!==u}));void 0!==t.style.backgroundSize&&(i.backgroundSize={},t.style.backgroundSize="contain",i.backgroundSize.contain="contain"===window.getComputedStyle(t).getPropertyValue("background-size"),t.style.backgroundSize="cover",i.backgroundSize.cover="cover"===window.getComputedStyle(t).getPropertyValue("background-size"));document.body.removeChild(t)};return function(n,i){for(var r in i)if(i.hasOwnProperty(r)&&void 0!==t.style[r]){n.transition=i[r];n.transition.name=r;break}}(i,{webkitTransition:{end:"webkitTransitionEnd",prefix:"-webkit-"},MozTransition:{end:"transitionend",prefix:"-moz-"},OTransition:{end:"otransitionend",prefix:"-o-"},transition:{end:"transitionend",prefix:""}}),document.body?r():n(document).on("DOMContentLoaded",r),i}(document.createElement("div")),requestAnimationFrame:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame,initialize:function(){return this.initStartIndex(),this.initWidget()===!1?!1:(this.initEventListeners(),this.onslide(this.index),this.ontransitionend(),void(this.options.startSlideshow&&this.play()))},slide:function(n,t){window.clearTimeout(this.timeout);var i,f,u,r=this.index;if(r!==n&&1!==this.num){if(t||(t=this.options.transitionSpeed),this.support.transform){for(this.options.continuous||(n=this.circle(n)),i=Math.abs(r-n)/(r-n),this.options.continuous&&(f=i,i=-this.positions[this.circle(n)]/this.slideWidth,i!==f&&(n=-i*this.num+n)),u=Math.abs(r-n)-1;u;)u-=1,this.move(this.circle((n>r?n:r)-u-1),this.slideWidth*i,0);n=this.circle(n);this.move(r,this.slideWidth*i,t);this.move(n,0,t);this.options.continuous&&this.move(this.circle(n-i),-(this.slideWidth*i),0)}else n=this.circle(n),this.animate(r*-this.slideWidth,n*-this.slideWidth,t);this.onslide(n)}},getIndex:function(){return this.index},getNumber:function(){return this.num},prev:function(){(this.options.continuous||this.index)&&this.slide(this.index-1)},next:function(){(this.options.continuous||this.index<this.num-1)&&this.slide(this.index+1)},play:function(n){var t=this;window.clearTimeout(this.timeout);this.interval=n||this.options.slideshowInterval;this.elements[this.index]>1&&(this.timeout=this.setTimeout(!this.requestAnimationFrame&&this.slide||function(n,i){t.animationFrameId=t.requestAnimationFrame.call(window,function(){t.slide(n,i)})},[this.index+1,this.options.slideshowTransitionSpeed],this.interval));this.container.addClass(this.options.playingClass)},pause:function(){window.clearTimeout(this.timeout);this.interval=null;this.container.removeClass(this.options.playingClass)},add:function(n){var t;for(n.concat||(n=Array.prototype.slice.call(n)),this.list.concat||(this.list=Array.prototype.slice.call(this.list)),this.list=this.list.concat(n),this.num=this.list.length,this.num>2&&null===this.options.continuous&&(this.options.continuous=!0,this.container.removeClass(this.options.leftEdgeClass)),this.container.removeClass(this.options.rightEdgeClass).removeClass(this.options.singleClass),t=this.num-n.length;t<this.num;t+=1)this.addSlide(t),this.positionSlide(t);this.positions.length=this.num;this.initSlides(!0)},resetSlides:function(){this.slidesContainer.empty();this.slides=[]},handleClose:function(){var n=this.options;this.destroyEventListeners();this.pause();this.container[0].style.display="none";this.container.removeClass(n.displayClass).removeClass(n.singleClass).removeClass(n.leftEdgeClass).removeClass(n.rightEdgeClass);n.hidePageScrollbars&&(document.body.style.overflow=this.bodyOverflowStyle);this.options.clearSlides&&this.resetSlides();this.options.onclosed&&this.options.onclosed.call(this)},close:function(){var n=this,t=function(i){i.target===n.container[0]&&(n.container.off(n.support.transition.end,t),n.handleClose())};this.options.onclose&&this.options.onclose.call(this);this.support.transition&&this.options.displayTransition?(this.container.on(this.support.transition.end,t),this.container.removeClass(this.options.displayClass)):this.handleClose()},circle:function(n){return(this.num+n%this.num)%this.num},move:function(n,t,i){this.translateX(n,t,i);this.positions[n]=t},translate:function(n,t,i,r){var u=this.slides[n].style,e=this.support.transition,f=this.support.transform;u[e.name+"Duration"]=r+"ms";u[f.name]="translate("+t+"px, "+i+"px)"+(f.translateZ?" translateZ(0)":"")},translateX:function(n,t,i){this.translate(n,t,0,i)},translateY:function(n,t,i){this.translate(n,0,t,i)},animate:function(n,t,i){if(!i)return void(this.slidesContainer[0].style.left=t+"px");var r=this,u=(new Date).getTime(),f=window.setInterval(function(){var e=(new Date).getTime()-u;return e>i?(r.slidesContainer[0].style.left=t+"px",r.ontransitionend(),void window.clearInterval(f)):void(r.slidesContainer[0].style.left=(t-n)*(Math.floor(e/i*100)/100)+n+"px")},4)},preventDefault:function(n){n.preventDefault?n.preventDefault():n.returnValue=!1},stopPropagation:function(n){n.stopPropagation?n.stopPropagation():n.cancelBubble=!0},onresize:function(){this.initSlides(!0)},onmousedown:function(n){n.which&&1===n.which&&"VIDEO"!==n.target.nodeName&&(n.preventDefault(),(n.originalEvent||n).touches=[{pageX:n.pageX,pageY:n.pageY}],this.ontouchstart(n))},onmousemove:function(n){this.touchStart&&((n.originalEvent||n).touches=[{pageX:n.pageX,pageY:n.pageY}],this.ontouchmove(n))},onmouseup:function(n){this.touchStart&&(this.ontouchend(n),delete this.touchStart)},onmouseout:function(t){if(this.touchStart){var r=t.target,i=t.relatedTarget;i&&(i===r||n.contains(r,i))||this.onmouseup(t)}},ontouchstart:function(n){this.options.stopTouchEventsPropagation&&this.stopPropagation(n);var t=(n.originalEvent||n).touches[0];this.touchStart={x:t.pageX,y:t.pageY,time:Date.now()};this.isScrolling=void 0;this.touchDelta={}},ontouchmove:function(n){this.options.stopTouchEventsPropagation&&this.stopPropagation(n);var i,r,u=(n.originalEvent||n).touches[0],f=(n.originalEvent||n).scale,t=this.index;if(!(u.length>1||f&&1!==f))if(this.options.disableScroll&&n.preventDefault(),this.touchDelta={x:u.pageX-this.touchStart.x,y:u.pageY-this.touchStart.y},i=this.touchDelta.x,void 0===this.isScrolling&&(this.isScrolling=this.isScrolling||Math.abs(i)<Math.abs(this.touchDelta.y)),this.isScrolling)this.options.closeOnSwipeUpOrDown&&this.translateY(t,this.touchDelta.y+this.positions[t],0);else for(n.preventDefault(),window.clearTimeout(this.timeout),this.options.continuous?r=[this.circle(t+1),t,this.circle(t-1)]:(this.touchDelta.x=i/=!t&&i>0||t===this.num-1&&0>i?Math.abs(i)/this.slideWidth+1:1,r=[t],t&&r.push(t-1),t<this.num-1&&r.unshift(t+1));r.length;)t=r.pop(),this.translateX(t,i+this.positions[t],0)},ontouchend:function(n){this.options.stopTouchEventsPropagation&&this.stopPropagation(n);var u,f,o,e,s,t=this.index,i=this.options.transitionSpeed,r=this.slideWidth,h=Number(Date.now()-this.touchStart.time)<250,c=h&&Math.abs(this.touchDelta.x)>20||Math.abs(this.touchDelta.x)>r/2,l=!t&&this.touchDelta.x>0||t===this.num-1&&this.touchDelta.x<0,a=!c&&this.options.closeOnSwipeUpOrDown&&(h&&Math.abs(this.touchDelta.y)>20||Math.abs(this.touchDelta.y)>this.slideHeight/2);this.options.continuous&&(l=!1);u=this.touchDelta.x<0?-1:1;this.isScrolling?a?this.close():this.translateY(t,0,i):c&&!l?(f=t+u,o=t-u,e=r*u,s=-r*u,this.options.continuous?(this.move(this.circle(f),e,0),this.move(this.circle(t-2*u),s,0)):f>=0&&f<this.num&&this.move(f,e,0),this.move(t,this.positions[t]+e,i),this.move(this.circle(o),this.positions[this.circle(o)]+e,i),t=this.circle(o),this.onslide(t)):this.options.continuous?(this.move(this.circle(t-1),-r,i),this.move(t,0,i),this.move(this.circle(t+1),r,i)):(t&&this.move(t-1,-r,i),this.move(t,0,i),t<this.num-1&&this.move(t+1,r,i))},ontouchcancel:function(n){this.touchStart&&(this.ontouchend(n),delete this.touchStart)},ontransitionend:function(n){var t=this.slides[this.index];n&&t!==n.target||(this.interval&&this.play(),this.setTimeout(this.options.onslideend,[this.index,t]))},oncomplete:function(t){var u,r=t.target||t.srcElement,i=r&&r.parentNode;r&&i&&(u=this.getNodeIndex(i),n(i).removeClass(this.options.slideLoadingClass),"error"===t.type?(n(i).addClass(this.options.slideErrorClass),this.elements[u]=3):this.elements[u]=2,r.clientHeight>this.container[0].clientHeight&&(r.style.maxHeight=this.container[0].clientHeight),this.interval&&this.slides[this.index]===i&&this.play(),this.setTimeout(this.options.onslidecomplete,[u,i]))},onload:function(n){this.oncomplete(n)},onerror:function(n){this.oncomplete(n)},onkeydown:function(n){switch(n.which||n.keyCode){case 13:this.options.toggleControlsOnReturn&&(this.preventDefault(n),this.toggleControls());break;case 27:this.options.closeOnEscape&&this.close();break;case 32:this.options.toggleSlideshowOnSpace&&(this.preventDefault(n),this.toggleSlideshow());break;case 37:this.options.enableKeyboardNavigation&&(this.preventDefault(n),this.prev());break;case 39:this.options.enableKeyboardNavigation&&(this.preventDefault(n),this.next())}},handleClick:function(t){var i=this.options,f=t.target||t.srcElement,u=f.parentNode,r=function(t){return n(f).hasClass(t)||n(u).hasClass(t)};r(i.toggleClass)?(this.preventDefault(t),this.toggleControls()):r(i.prevClass)?(this.preventDefault(t),this.prev()):r(i.nextClass)?(this.preventDefault(t),this.next()):r(i.closeClass)?(this.preventDefault(t),this.close()):r(i.playPauseClass)?(this.preventDefault(t),this.toggleSlideshow()):u===this.slidesContainer[0]?(this.preventDefault(t),i.closeOnSlideClick?this.close():this.toggleControls()):u.parentNode&&u.parentNode===this.slidesContainer[0]&&(this.preventDefault(t),this.toggleControls())},onclick:function(n){return this.options.emulateTouchEvents&&this.touchDelta&&(Math.abs(this.touchDelta.x)>20||Math.abs(this.touchDelta.y)>20)?void delete this.touchDelta:this.handleClick(n)},updateEdgeClasses:function(n){n?this.container.removeClass(this.options.leftEdgeClass):this.container.addClass(this.options.leftEdgeClass);n===this.num-1?this.container.addClass(this.options.rightEdgeClass):this.container.removeClass(this.options.rightEdgeClass)},handleSlide:function(n){this.options.continuous||this.updateEdgeClasses(n);this.loadElements(n);this.options.unloadElements&&this.unloadElements(n);this.setTitle(n)},onslide:function(n){this.index=n;this.handleSlide(n);this.setTimeout(this.options.onslide,[n,this.slides[n]])},setTitle:function(n){var t=this.slides[n].firstChild.title,i=this.titleElement;i.length&&(this.titleElement.empty(),t&&i[0].appendChild(document.createTextNode(t)))},setTimeout:function(n,t,i){var r=this;return n&&window.setTimeout(function(){n.apply(r,t||[])},i||0)},imageFactory:function(t,i){var h,r,o,c=this,f=this.imagePrototype.cloneNode(!1),e=t,u=this.options.stretchImages,s=function(t){if(!h){if(t={type:t.type,target:r},!r.parentNode)return c.setTimeout(s,[t]);h=!0;n(f).off("load error",s);u&&"load"===t.type&&(r.style.background='url("'+e+'") center no-repeat',r.style.backgroundSize=u);i(t)}};return"string"!=typeof e&&(e=this.getItemProperty(t,this.options.urlProperty),o=this.getItemProperty(t,this.options.titleProperty)),u===!0&&(u="contain"),u=this.support.backgroundSize&&this.support.backgroundSize[u]&&u,u?r=this.elementPrototype.cloneNode(!1):(r=f,f.draggable=!1),o&&(r.title=o),n(f).on("load error",s),f.src=e,r},createElement:function(t,i){var u=t&&this.getItemProperty(t,this.options.typeProperty),f=u&&this[u.split("/")[0]+"Factory"]||this.imageFactory,r=t&&f.call(this,t,i);return r||(r=this.elementPrototype.cloneNode(!1),this.setTimeout(i,[{type:"error",target:r}])),n(r).addClass(this.options.slideContentClass),r},loadElement:function(t){this.elements[t]||(this.slides[t].firstChild?this.elements[t]=n(this.slides[t]).hasClass(this.options.slideErrorClass)?3:2:(this.elements[t]=1,n(this.slides[t]).addClass(this.options.slideLoadingClass),this.slides[t].appendChild(this.createElement(this.list[t],this.proxyListener))))},loadElements:function(n){for(var r=Math.min(this.num,2*this.options.preloadRange+1),i=n,t=0;r>t;t+=1)i+=t*(t%2==0?-1:1),i=this.circle(i),this.loadElement(i)},unloadElements:function(n){var t,i,r;for(t in this.elements)this.elements.hasOwnProperty(t)&&(r=Math.abs(n-t),r>this.options.preloadRange&&r+this.options.preloadRange<this.num&&(i=this.slides[t],i.removeChild(i.firstChild),delete this.elements[t]))},addSlide:function(n){var t=this.slidePrototype.cloneNode(!1);t.setAttribute("data-index",n);this.slidesContainer[0].appendChild(t);this.slides.push(t)},positionSlide:function(n){var t=this.slides[n];t.style.width=this.slideWidth+"px";this.support.transform&&(t.style.left=n*-this.slideWidth+"px",this.move(n,this.index>n?-this.slideWidth:this.index<n?this.slideWidth:0,0))},initSlides:function(t){var r,i;for(t||(this.positions=[],this.positions.length=this.num,this.elements={},this.imagePrototype=document.createElement("img"),this.elementPrototype=document.createElement("div"),this.slidePrototype=document.createElement("div"),n(this.slidePrototype).addClass(this.options.slideClass),this.slides=this.slidesContainer[0].children,r=this.options.clearSlides||this.slides.length!==this.num),this.slideWidth=this.container[0].offsetWidth,this.slideHeight=this.container[0].offsetHeight,this.slidesContainer[0].style.width=this.num*this.slideWidth+"px",r&&this.resetSlides(),i=0;i<this.num;i+=1)r&&this.addSlide(i),this.positionSlide(i);this.options.continuous&&this.support.transform&&(this.move(this.circle(this.index-1),-this.slideWidth,0),this.move(this.circle(this.index+1),this.slideWidth,0));this.support.transform||(this.slidesContainer[0].style.left=this.index*-this.slideWidth+"px")},toggleControls:function(){var n=this.options.controlsClass;this.container.hasClass(n)?this.container.removeClass(n):this.container.addClass(n)},toggleSlideshow:function(){this.interval?this.pause():this.play()},getNodeIndex:function(n){return parseInt(n.getAttribute("data-index"),10)},getNestedProperty:function(n,t){return t.replace(/\[(?:'([^']+)'|"([^"]+)"|(\d+))\]|(?:(?:^|\.)([^\.\[]+))/g,function(t,i,r,u,f){var e=f||i||r||u&&parseInt(u,10);t&&n&&(n=n[e])}),n},getDataProperty:function(t,i){if(t.getAttribute){var r=t.getAttribute("data-"+i.replace(/([A-Z])/g,"-$1").toLowerCase());if("string"==typeof r){if(/^(true|false|null|-?\d+(\.\d+)?|\{[\s\S]*\}|\[[\s\S]*\])$/.test(r))try{return n.parseJSON(r)}catch(u){}return r}}},getItemProperty:function(n,t){var i=n[t];return void 0===i&&(i=this.getDataProperty(n,t),void 0===i&&(i=this.getNestedProperty(n,t))),i},initStartIndex:function(){var n,t=this.options.index,i=this.options.urlProperty;if(t&&"number"!=typeof t)for(n=0;n<this.num;n+=1)if(this.list[n]===t||this.getItemProperty(this.list[n],i)===this.getItemProperty(t,i)){t=n;break}this.index=this.circle(parseInt(t,10)||0)},initEventListeners:function(){var i=this,r=this.slidesContainer,t=function(n){var t=i.support.transition&&i.support.transition.end===n.type?"transitionend":n.type;i["on"+t](n)};n(window).on("resize",t);n(document.body).on("keydown",t);this.container.on("click",t);this.support.touch?r.on("touchstart touchmove touchend touchcancel",t):this.options.emulateTouchEvents&&this.support.transition&&r.on("mousedown mousemove mouseup mouseout",t);this.support.transition&&r.on(this.support.transition.end,t);this.proxyListener=t},destroyEventListeners:function(){var i=this.slidesContainer,t=this.proxyListener;n(window).off("resize",t);n(document.body).off("keydown",t);this.container.off("click",t);this.support.touch?i.off("touchstart touchmove touchend touchcancel",t):this.options.emulateTouchEvents&&this.support.transition&&i.off("mousedown mousemove mouseup mouseout",t);this.support.transition&&i.off(this.support.transition.end,t)},handleOpen:function(){this.options.onopened&&this.options.onopened.call(this)},initWidget:function(){var t=this,i=function(n){n.target===t.container[0]&&(t.container.off(t.support.transition.end,i),t.handleOpen())};return this.container=n(this.options.container),this.container.length?(this.slidesContainer=this.container.find(this.options.slidesContainer).first(),this.slidesContainer.length?(this.titleElement=this.container.find(this.options.titleElement).first(),1===this.num&&this.container.addClass(this.options.singleClass),this.options.onopen&&this.options.onopen.call(this),this.support.transition&&this.options.displayTransition?this.container.on(this.support.transition.end,i):this.handleOpen(),this.options.hidePageScrollbars&&(this.bodyOverflowStyle=document.body.style.overflowX,document.body.style.overflowX="hidden"),this.container[0].style.display="block",this.initSlides(),void this.container.addClass(this.options.displayClass)):(this.console.log("blueimp Gallery: Slides container not found.",this.options.slidesContainer),!1)):(this.console.log("blueimp Gallery: Widget container not found.",this.options.container),!1)},initOptions:function(t){this.options=n.extend({},this.options);(t&&t.carousel||this.options.carousel&&(!t||t.carousel!==!1))&&n.extend(this.options,this.carouselOptions);n.extend(this.options,t);this.num<3&&(this.options.continuous=this.options.continuous?null:!1);this.support.transition||(this.options.emulateTouchEvents=!1);this.options.event&&this.preventDefault(this.options.event)}}),t}),function(n){"use strict";"function"==typeof define&&define.amd?define(["./blueimp-helper","./blueimp-gallery"],n):n(window.blueimp.helper||window.jQuery,window.blueimp.Gallery)}(function(n,t){"use strict";n.extend(t.prototype.options,{fullScreen:!1});var i=t.prototype.initialize,r=t.prototype.close;return n.extend(t.prototype,{getFullScreenElement:function(){return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement},requestFullScreen:function(n){n.requestFullscreen?n.requestFullscreen():n.webkitRequestFullscreen?n.webkitRequestFullscreen():n.mozRequestFullScreen?n.mozRequestFullScreen():n.msRequestFullscreen&&n.msRequestFullscreen()},exitFullScreen:function(){document.exitFullscreen?document.exitFullscreen():document.webkitCancelFullScreen?document.webkitCancelFullScreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.msExitFullscreen&&document.msExitFullscreen()},initialize:function(){i.call(this);this.options.fullScreen&&!this.getFullScreenElement()&&this.requestFullScreen(this.container[0])},close:function(){this.getFullScreenElement()===this.container[0]&&this.exitFullScreen();r.call(this)}}),t}),function(n){"use strict";"function"==typeof define&&define.amd?define(["./blueimp-helper","./blueimp-gallery"],n):n(window.blueimp.helper||window.jQuery,window.blueimp.Gallery)}(function(n,t){"use strict";n.extend(t.prototype.options,{indicatorContainer:"ol",activeIndicatorClass:"active",thumbnailProperty:"thumbnail",thumbnailIndicators:!0});var i=t.prototype.initSlides,r=t.prototype.addSlide,u=t.prototype.resetSlides,f=t.prototype.handleClick,e=t.prototype.handleSlide,o=t.prototype.handleClose;return n.extend(t.prototype,{createIndicator:function(t){var i,r,u=this.indicatorPrototype.cloneNode(!1),f=this.getItemProperty(t,this.options.titleProperty),e=this.options.thumbnailProperty;return this.options.thumbnailIndicators&&(r=t.getElementsByTagName&&n(t).find("img")[0],r?i=r.src:e&&(i=this.getItemProperty(t,e)),i&&(u.style.backgroundImage='url("'+i+'")')),f&&(u.title=f),u},addIndicator:function(n){if(this.indicatorContainer.length){var t=this.createIndicator(this.list[n]);t.setAttribute("data-index",n);this.indicatorContainer[0].appendChild(t);this.indicators.push(t)}},setActiveIndicator:function(t){this.indicators&&(this.activeIndicator&&this.activeIndicator.removeClass(this.options.activeIndicatorClass),this.activeIndicator=n(this.indicators[t]),this.activeIndicator.addClass(this.options.activeIndicatorClass))},initSlides:function(n){n||(this.indicatorContainer=this.container.find(this.options.indicatorContainer),this.indicatorContainer.length&&(this.indicatorPrototype=document.createElement("li"),this.indicators=this.indicatorContainer[0].children));i.call(this,n)},addSlide:function(n){r.call(this,n);this.addIndicator(n)},resetSlides:function(){u.call(this);this.indicatorContainer.empty();this.indicators=[]},handleClick:function(n){var i=n.target||n.srcElement,t=i.parentNode;if(t===this.indicatorContainer[0])this.preventDefault(n),this.slide(this.getNodeIndex(i));else{if(t.parentNode!==this.indicatorContainer[0])return f.call(this,n);this.preventDefault(n);this.slide(this.getNodeIndex(t))}},handleSlide:function(n){e.call(this,n);this.setActiveIndicator(n)},handleClose:function(){this.activeIndicator&&this.activeIndicator.removeClass(this.options.activeIndicatorClass);o.call(this)}}),t}),function(n){"use strict";"function"==typeof define&&define.amd?define(["./blueimp-helper","./blueimp-gallery"],n):n(window.blueimp.helper||window.jQuery,window.blueimp.Gallery)}(function(n,t){"use strict";n.extend(t.prototype.options,{videoContentClass:"video-content",videoLoadingClass:"video-loading",videoPlayingClass:"video-playing",videoPosterProperty:"poster",videoSourcesProperty:"sources"});var i=t.prototype.handleSlide;return n.extend(t.prototype,{handleSlide:function(n){i.call(this,n);this.playingVideo&&this.playingVideo.pause()},videoFactory:function(t,i,r){var c,y,s,a,p,u=this,e=this.options,o=this.elementPrototype.cloneNode(!1),v=n(o),d=[{type:"error",target:o}],f=r||document.createElement("video"),h=this.getItemProperty(t,e.urlProperty),l=this.getItemProperty(t,e.typeProperty),w=this.getItemProperty(t,e.titleProperty),b=this.getItemProperty(t,e.videoPosterProperty),k=this.getItemProperty(t,e.videoSourcesProperty);if(v.addClass(e.videoContentClass),w&&(o.title=w),f.canPlayType)if(h&&l&&f.canPlayType(l))f.src=h;else for(;k&&k.length;)if(y=k.shift(),h=this.getItemProperty(y,e.urlProperty),l=this.getItemProperty(y,e.typeProperty),h&&l&&f.canPlayType(l)){f.src=h;break}return b&&(f.poster=b,c=this.imagePrototype.cloneNode(!1),n(c).addClass(e.toggleClass),c.src=b,c.draggable=!1,o.appendChild(c)),s=document.createElement("a"),s.setAttribute("target","_blank"),r||s.setAttribute("download",w),s.href=h,f.src&&(f.controls=!0,(r||n(f)).on("error",function(){u.setTimeout(i,d)}).on("pause",function(){a=!1;v.removeClass(u.options.videoLoadingClass).removeClass(u.options.videoPlayingClass);p&&u.container.addClass(u.options.controlsClass);delete u.playingVideo;u.interval&&u.play()}).on("playing",function(){a=!1;v.removeClass(u.options.videoLoadingClass).addClass(u.options.videoPlayingClass);u.container.hasClass(u.options.controlsClass)?(p=!0,u.container.removeClass(u.options.controlsClass)):p=!1}).on("play",function(){window.clearTimeout(u.timeout);a=!0;v.addClass(u.options.videoLoadingClass);u.playingVideo=f}),n(s).on("click",function(n){u.preventDefault(n);a?f.pause():f.play()}),o.appendChild(r&&r.element||f)),o.appendChild(s),this.setTimeout(i,[{type:"load",target:o}]),o}}),t}),function(n){"use strict";"function"==typeof define&&define.amd?define(["./blueimp-helper","./blueimp-gallery-video"],n):n(window.blueimp.helper||window.jQuery,window.blueimp.Gallery)}(function(n,t){"use strict";if(!window.postMessage)return t;n.extend(t.prototype.options,{vimeoVideoIdProperty:"vimeo",vimeoPlayerUrl:"//player.vimeo.com/video/VIDEO_ID?api=1&player_id=PLAYER_ID",vimeoPlayerIdPrefix:"vimeo-player-",vimeoClickToPlay:!0});var u=t.prototype.textFactory||t.prototype.imageFactory,i=function(n,t,i,r){this.url=n;this.videoId=t;this.playerId=i;this.clickToPlay=r;this.element=document.createElement("div");this.listeners={}},r=0;return n.extend(i.prototype,{canPlayType:function(){return!0},on:function(n,t){return this.listeners[n]=t,this},loadAPI:function(){for(var t,u,f=this,e="//"+("https"===location.protocol?"secure-":"")+"a.vimeocdn.com/js/froogaloop2.min.js",i=document.getElementsByTagName("script"),r=i.length,o=function(){!u&&f.playOnReady&&f.play();u=!0};r;)if(r-=1,i[r].src===e){t=i[r];break}t||(t=document.createElement("script"),t.src=e);n(t).on("load",o);i[0].parentNode.insertBefore(t,i[0]);/loaded|complete/.test(t.readyState)&&o()},onReady:function(){var n=this;this.ready=!0;this.player.addEvent("play",function(){n.hasPlayed=!0;n.onPlaying()});this.player.addEvent("pause",function(){n.onPause()});this.player.addEvent("finish",function(){n.onPause()});this.playOnReady&&this.play()},onPlaying:function(){this.playStatus<2&&(this.listeners.playing(),this.playStatus=2)},onPause:function(){this.listeners.pause();delete this.playStatus},insertIframe:function(){var n=document.createElement("iframe");n.src=this.url.replace("VIDEO_ID",this.videoId).replace("PLAYER_ID",this.playerId);n.id=this.playerId;this.element.parentNode.replaceChild(n,this.element);this.element=n},play:function(){var n=this;this.playStatus||(this.listeners.play(),this.playStatus=1);this.ready?!this.hasPlayed&&(this.clickToPlay||window.navigator&&/iP(hone|od|ad)/.test(window.navigator.platform))?this.onPlaying():this.player.api("play"):(this.playOnReady=!0,window.$f?this.player||(this.insertIframe(),this.player=$f(this.element),this.player.addEvent("ready",function(){n.onReady()})):this.loadAPI())},pause:function(){this.ready?this.player.api("pause"):this.playStatus&&(delete this.playOnReady,this.listeners.pause(),delete this.playStatus)}}),n.extend(t.prototype,{VimeoPlayer:i,textFactory:function(n,t){var f=this.options,e=this.getItemProperty(n,f.vimeoVideoIdProperty);return e?(void 0===this.getItemProperty(n,f.urlProperty)&&(n[f.urlProperty]="//vimeo.com/"+e),r+=1,this.videoFactory(n,t,new i(f.vimeoPlayerUrl,e,f.vimeoPlayerIdPrefix+r,f.vimeoClickToPlay))):u.call(this,n,t)}}),t}),function(n){"use strict";"function"==typeof define&&define.amd?define(["./blueimp-helper","./blueimp-gallery-video"],n):n(window.blueimp.helper||window.jQuery,window.blueimp.Gallery)}(function(n,t){"use strict";if(!window.postMessage)return t;n.extend(t.prototype.options,{youTubeVideoIdProperty:"youtube",youTubePlayerVars:{wmode:"transparent"},youTubeClickToPlay:!0});var r=t.prototype.textFactory||t.prototype.imageFactory,i=function(n,t,i){this.videoId=n;this.playerVars=t;this.clickToPlay=i;this.element=document.createElement("div");this.listeners={}};return n.extend(i.prototype,{canPlayType:function(){return!0},on:function(n,t){return this.listeners[n]=t,this},loadAPI:function(){var t,r=this,u=window.onYouTubeIframeAPIReady,f="//www.youtube.com/iframe_api",n=document.getElementsByTagName("script"),i=n.length;for(window.onYouTubeIframeAPIReady=function(){u&&u.apply(this);r.playOnReady&&r.play()};i;)if(i-=1,n[i].src===f)return;t=document.createElement("script");t.src=f;n[0].parentNode.insertBefore(t,n[0])},onReady:function(){this.ready=!0;this.playOnReady&&this.play()},onPlaying:function(){this.playStatus<2&&(this.listeners.playing(),this.playStatus=2)},onPause:function(){t.prototype.setTimeout.call(this,this.checkSeek,null,2e3)},checkSeek:function(){(this.stateChange===YT.PlayerState.PAUSED||this.stateChange===YT.PlayerState.ENDED)&&(this.listeners.pause(),delete this.playStatus)},onStateChange:function(n){switch(n.data){case YT.PlayerState.PLAYING:this.hasPlayed=!0;this.onPlaying();break;case YT.PlayerState.PAUSED:case YT.PlayerState.ENDED:this.onPause()}this.stateChange=n.data},onError:function(n){this.listeners.error(n)},play:function(){var n=this;this.playStatus||(this.listeners.play(),this.playStatus=1);this.ready?!this.hasPlayed&&(this.clickToPlay||window.navigator&&/iP(hone|od|ad)/.test(window.navigator.platform))?this.onPlaying():this.player.playVideo():(this.playOnReady=!0,window.YT&&YT.Player?this.player||(this.player=new YT.Player(this.element,{videoId:this.videoId,playerVars:this.playerVars,events:{onReady:function(){n.onReady()},onStateChange:function(t){n.onStateChange(t)},onError:function(t){n.onError(t)}}})):this.loadAPI())},pause:function(){this.ready?this.player.pauseVideo():this.playStatus&&(delete this.playOnReady,this.listeners.pause(),delete this.playStatus)}}),n.extend(t.prototype,{YouTubePlayer:i,textFactory:function(n,t){var u=this.options,f=this.getItemProperty(n,u.youTubeVideoIdProperty);return f?(void 0===this.getItemProperty(n,u.urlProperty)&&(n[u.urlProperty]="//www.youtube.com/watch?v="+f),void 0===this.getItemProperty(n,u.videoPosterProperty)&&(n[u.videoPosterProperty]="//img.youtube.com/vi/"+f+"/maxresdefault.jpg"),this.videoFactory(n,t,new i(f,u.youTubePlayerVars,u.youTubeClickToPlay))):r.call(this,n,t)}}),t}),function(n){"use strict";"function"==typeof define&&define.amd?define(["jquery","./blueimp-gallery"],n):n(window.jQuery,window.blueimp.Gallery)}(function(n,t){"use strict";n(document).on("click","[data-gallery]",function(i){var e=n(this).data("gallery"),o=n(e),r=o.length&&o||n(t.prototype.options.container),s={onopen:function(){r.data("gallery",this).trigger("open")},onopened:function(){r.trigger("opened")},onslide:function(){r.trigger("slide",arguments)},onslideend:function(){r.trigger("slideend",arguments)},onslidecomplete:function(){r.trigger("slidecomplete",arguments)},onclose:function(){r.trigger("close")},onclosed:function(){r.trigger("closed").removeData("gallery")}},u=n.extend(r.data(),{container:r[0],index:this,slidesContainer:"div",titleElement:"h3",displayClass:"blueimp-gallery-display",toggleClass:"toggle",prevClass:"prev",nextClass:"next",closeClass:"close",playPauseClass:"play-pause",typeProperty:"type",titleProperty:"title",urlProperty:"href",displayTransition:!0,clearSlides:!0,stretchImages:!1,toggleControlsOnReturn:!0,toggleSlideshowOnSpace:!0,enableKeyboardNavigation:!0,continuous:!0,event:i},s),f=n('[data-gallery="'+e+'"]');return u.filter&&(f=f.filter(u.filter)),new t(f,u)});n(document).on("click","[data-gallery-item]",function(i){var e=n(this).data("gallery-item"),o=n(e),r=o.length&&o||n(t.prototype.options.container),s={onopen:function(){r.data("gallery-item",this).trigger("open")},onopened:function(){r.trigger("opened")},onslide:function(){r.trigger("slide",arguments)},onslideend:function(){r.trigger("slideend",arguments)},onslidecomplete:function(){r.trigger("slidecomplete",arguments)},onclose:function(){r.trigger("close")},onclosed:function(){r.trigger("closed").removeData("gallery-item")}},u=n.extend(r.data(),{container:r[0],index:this,slidesContainer:"div",titleElement:"h3",displayClass:"blueimp-gallery-display2",continuous:!1,displayTransition:!0,clearSlides:!0,stretchImages:!1,prevClass:"prev2",nextClass:"next2",closeClass:"close",toggleControlsOnReturn:!1,toggleSlideshowOnSpace:!1,enableKeyboardNavigation:!1,closeOnEscape:!0,closeOnSlideClick:!0,closeOnSwipeUpOrDown:!0,emulateTouchEvents:!1,stopTouchEventsPropagation:!1,hidePageScrollbars:!1,disableScroll:!1,carousel:!1,unloadElements:!0,startSlideshow:!1,slideshowInterval:5e3,preloadRange:0,transitionSpeed:400,onclose:void 0,indicatorContainer:"none",event:i},s),f=n('[data-gallery-item="'+e+'"]');return u.filter&&(f=f.filter(u.filter)),new t(f,u)})}),function(n){"use strict";typeof define=="function"&&define.amd?define(["jquery","./blueimp-gallery"],n):n(window.jQuery,window.blueimp.Gallery)}(function(n,t){"use strict";n.extend(t.prototype.options,{useBootstrapModal:!0});var i=t.prototype.close,r=t.prototype.imageFactory,u=t.prototype.videoFactory,f=t.prototype.textFactory;n.extend(t.prototype,{modalFactory:function(n,t,i,r){if(!this.options.useBootstrapModal||i)return r.call(this,n,t,i);var e=this,o=this.container.children(".modal"),u=o.clone().show().on("click",function(n){(n.target===u[0]||n.target===u.children()[0])&&(n.preventDefault(),n.stopPropagation(),e.close())}),f=r.call(this,n,function(n){t({type:n.type,target:u[0]});u.addClass("in")},i);return u.find(".modal-title").text(f.title||String.fromCharCode(160)),u.find(".modal-body").append(f),u[0]},imageFactory:function(n,t,i){return this.modalFactory(n,t,i,r)},videoFactory:function(n,t,i){return this.modalFactory(n,t,i,u)},textFactory:function(n,t,i){return this.modalFactory(n,t,i,f)},close:function(){this.container.find(".modal").removeClass("in");i.call(this)}})});angular.module("ui.bootstrap",["ui.bootstrap.tpls","ui.bootstrap.transition","ui.bootstrap.collapse","ui.bootstrap.accordion","ui.bootstrap.alert","ui.bootstrap.bindHtml","ui.bootstrap.buttons","ui.bootstrap.carousel","ui.bootstrap.position","ui.bootstrap.datepicker","ui.bootstrap.dropdownToggle","ui.bootstrap.modal","ui.bootstrap.pagination","ui.bootstrap.tooltip","ui.bootstrap.popover","ui.bootstrap.progressbar","ui.bootstrap.rating","ui.bootstrap.tabs","ui.bootstrap.timepicker","ui.bootstrap.typeahead"]);angular.module("ui.bootstrap.tpls",["template/accordion/accordion-group.html","template/accordion/accordion.html","template/alert/alert.html","template/carousel/carousel.html","template/carousel/slide.html","template/datepicker/datepicker.html","template/datepicker/popup.html","template/modal/backdrop.html","template/modal/window.html","template/pagination/pager.html","template/pagination/pagination.html","template/tooltip/tooltip-html-unsafe-popup.html","template/tooltip/tooltip-popup.html","template/popover/popover.html","template/progressbar/bar.html","template/progressbar/progress.html","template/rating/rating.html","template/tabs/tab.html","template/tabs/tabset-titles.html","template/tabs/tabset.html","template/timepicker/timepicker.html","template/typeahead/typeahead-match.html","template/typeahead/typeahead-popup.html"]);angular.module("ui.bootstrap.transition",[]).factory("$transition",["$q","$timeout","$rootScope",function(n,t,i){function u(n){for(var t in n)if(f.style[t]!==undefined)return n[t]}var r=function(u,f,e){e=e||{};var s=n.defer(),o=r[e.animation?"animationEndEventName":"transitionEndEventName"],h=function(){i.$apply(function(){u.unbind(o,h);s.resolve(u)})};return o&&u.bind(o,h),t(function(){angular.isString(f)?u.addClass(f):angular.isFunction(f)?f(u):angular.isObject(f)&&u.css(f);o||s.resolve(u)}),s.promise.cancel=function(){o&&u.unbind(o,h);s.reject("Transition cancelled")},s.promise},f=document.createElement("trans");return r.transitionEndEventName=u({WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",transition:"transitionend"}),r.animationEndEventName=u({WebkitTransition:"webkitAnimationEnd",MozTransition:"animationend",OTransition:"oAnimationEnd",transition:"animationend"}),r}]);angular.module("ui.bootstrap.collapse",["ui.bootstrap.transition"]).directive("collapse",["$transition",function(n){var t=function(n,t,i){t.removeClass("collapse");t.css({height:i});var r=t[0].offsetWidth;t.addClass("collapse")};return{link:function(i,r,u){var e,o=!0;i.$watch(function(){return r[0].scrollHeight},function(){r[0].scrollHeight!==0&&(e||(o?t(i,r,r[0].scrollHeight+"px"):t(i,r,"auto")))});i.$watch(u.collapse,function(n){n?c():h()});var f,s=function(t){return f&&f.cancel(),f=n(r,t),f.then(function(){f=undefined},function(){f=undefined}),f},h=function(){o?(o=!1,e||t(i,r,"auto")):s({height:r[0].scrollHeight+"px"}).then(function(){e||t(i,r,"auto")});e=!1},c=function(){e=!0;o?(o=!1,t(i,r,0)):(t(i,r,r[0].scrollHeight+"px"),s({height:"0"}))}}}}]);angular.module("ui.bootstrap.accordion",["ui.bootstrap.collapse"]).constant("accordionConfig",{closeOthers:!0}).controller("AccordionController",["$scope","$attrs","accordionConfig",function(n,t,i){this.groups=[];this.closeOthers=function(r){var u=angular.isDefined(t.closeOthers)?n.$eval(t.closeOthers):i.closeOthers;u&&angular.forEach(this.groups,function(n){n!==r&&(n.isOpen=!1)})};this.addGroup=function(n){var t=this;this.groups.push(n);n.$on("$destroy",function(){t.removeGroup(n)})};this.removeGroup=function(n){var t=this.groups.indexOf(n);t!==-1&&this.groups.splice(this.groups.indexOf(n),1)}}]).directive("accordion",function(){return{restrict:"EA",controller:"AccordionController",transclude:!0,replace:!1,templateUrl:"template/accordion/accordion.html"}}).directive("accordionGroup",["$parse","$transition","$timeout",function(n){return{require:"^accordion",restrict:"EA",transclude:!0,replace:!0,templateUrl:"template/accordion/accordion-group.html",scope:{heading:"@"},controller:["$scope",function(){this.setHeading=function(n){this.heading=n}}],link:function(t,i,r,u){var f,e;u.addGroup(t);t.isOpen=!1;r.isOpen&&(f=n(r.isOpen),e=f.assign,t.$watch(function(){return f(t.$parent)},function(n){t.isOpen=n}),t.isOpen=f?f(t.$parent):!1);t.$watch("isOpen",function(n){n&&u.closeOthers(t);e&&e(t.$parent,n)})}}}]).directive("accordionHeading",function(){return{restrict:"EA",transclude:!0,template:"",replace:!0,require:"^accordionGroup",compile:function(n,t,i){return function(n,t,r,u){u.setHeading(i(n,function(){}))}}}}).directive("accordionTransclude",function(){return{require:"^accordionGroup",link:function(n,t,i,r){n.$watch(function(){return r[i.accordionTransclude]},function(n){n&&(t.html(""),t.append(n))})}}});angular.module("ui.bootstrap.alert",[]).directive("alert",function(){return{restrict:"EA",templateUrl:"template/alert/alert.html",transclude:!0,replace:!0,scope:{type:"=",close:"&"},link:function(n,t,i){n.closeable="close"in i}}});angular.module("ui.bootstrap.bindHtml",[]).directive("bindHtmlUnsafe",function(){return function(n,t,i){t.addClass("ng-binding").data("$binding",i.bindHtmlUnsafe);n.$watch(i.bindHtmlUnsafe,function(n){t.html(n||"")})}});angular.module("ui.bootstrap.buttons",[]).constant("buttonConfig",{activeClass:"active",toggleEvent:"click"}).directive("btnRadio",["buttonConfig",function(n){var t=n.activeClass||"active",i=n.toggleEvent||"click";return{require:"ngModel",link:function(n,r,u,f){f.$render=function(){r.toggleClass(t,angular.equals(f.$modelValue,n.$eval(u.btnRadio)))};r.bind(i,function(){r.hasClass(t)||n.$apply(function(){f.$setViewValue(n.$eval(u.btnRadio));f.$render()})})}}}]).directive("btnCheckbox",["buttonConfig",function(n){var t=n.activeClass||"active",i=n.toggleEvent||"click";return{require:"ngModel",link:function(n,r,u,f){function e(){var t=n.$eval(u.btnCheckboxTrue);return angular.isDefined(t)?t:!0}function o(){var t=n.$eval(u.btnCheckboxFalse);return angular.isDefined(t)?t:!1}f.$render=function(){r.toggleClass(t,angular.equals(f.$modelValue,e()))};r.bind(i,function(){n.$apply(function(){f.$setViewValue(r.hasClass(t)?o():e());f.$render()})})}}}]);angular.module("ui.bootstrap.carousel",["ui.bootstrap.transition"]).controller("CarouselController",["$scope","$timeout","$transition","$q",function(n,t,i){function s(){function r(){o?(n.next(),s()):n.pause()}e&&t.cancel(e);var i=+n.interval;!isNaN(i)&&i>=0&&(e=t(r,i))}var r=this,u=r.slides=[],f=-1,e,o;r.currentSlide=null;r.select=function(e,o){function l(){if(r.currentSlide&&angular.isString(o)&&!n.noTransition&&e.$element){e.$element.addClass(o);var t=e.$element[0].offsetWidth;angular.forEach(u,function(n){angular.extend(n,{direction:"",entering:!1,leaving:!1,active:!1})});angular.extend(e,{direction:o,active:!0,entering:!0});angular.extend(r.currentSlide||{},{direction:o,leaving:!0});n.$currentTransition=i(e.$element,{}),function(t,i){n.$currentTransition.then(function(){h(t,i)},function(){h(t,i)})}(e,r.currentSlide)}else h(e,r.currentSlide);r.currentSlide=e;f=c;s()}function h(t,i){angular.extend(t,{direction:"",active:!0,leaving:!1,entering:!1});angular.extend(i||{},{direction:"",active:!1,leaving:!1,entering:!1});n.$currentTransition=null}var c=u.indexOf(e);o===undefined&&(o=c>f?"next":"prev");e&&e!==r.currentSlide&&(n.$currentTransition?(n.$currentTransition.cancel(),t(l)):l())};r.indexOfSlide=function(n){return u.indexOf(n)};n.next=function(){var t=(f+1)%u.length;if(!n.$currentTransition)return r.select(u[t],"next")};n.prev=function(){var t=f-1<0?u.length-1:f-1;if(!n.$currentTransition)return r.select(u[t],"prev")};n.select=function(n){r.select(n)};n.isActive=function(n){return r.currentSlide===n};n.slides=function(){return u};n.$watch("interval",s);n.play=function(){o||(o=!0,s())};n.pause=function(){n.noPause||(o=!1,e&&t.cancel(e))};r.addSlide=function(t,i){t.$element=i;u.push(t);u.length===1||t.active?(r.select(u[u.length-1]),u.length==1&&n.play()):t.active=!1};r.removeSlide=function(n){var t=u.indexOf(n);u.splice(t,1);u.length>0&&n.active?t>=u.length?r.select(u[t-1]):r.select(u[t]):f>t&&f--}}]).directive("carousel",[function(){return{restrict:"EA",transclude:!0,replace:!0,controller:"CarouselController",require:"carousel",templateUrl:"template/carousel/carousel.html",scope:{interval:"=",noTransition:"=",noPause:"="}}}]).directive("slide",["$parse",function(n){return{require:"^carousel",restrict:"EA",transclude:!0,replace:!0,templateUrl:"template/carousel/slide.html",scope:{},link:function(t,i,r,u){if(r.active){var f=n(r.active),o=f.assign,e=t.active=f(t.$parent);t.$watch(function(){var n=f(t.$parent);return n!==t.active&&(n!==e?e=t.active=n:o(t.$parent,n=e=t.active)),n})}u.addSlide(t,i);t.$on("$destroy",function(){u.removeSlide(t)});t.$watch("active",function(n){n&&u.select(t)})}}}]);angular.module("ui.bootstrap.position",[]).factory("$position",["$document","$window",function(n,t){function i(n,i){return n.currentStyle?n.currentStyle[i]:t.getComputedStyle?t.getComputedStyle(n)[i]:n.style[i]}function r(n){return(i(n,"position")||"static")==="static"}var u=function(t){for(var u=n[0],i=t.offsetParent||u;i&&i!==u&&r(i);)i=i.offsetParent;return i||u};return{position:function(t){var f=this.offset(t),r={top:0,left:0},i=u(t[0]);return i!=n[0]&&(r=this.offset(angular.element(i)),r.top+=i.clientTop-i.scrollTop,r.left+=i.clientLeft-i.scrollLeft),{width:t.prop("offsetWidth"),height:t.prop("offsetHeight"),top:f.top-r.top,left:f.left-r.left}},offset:function(i){var r=i[0].getBoundingClientRect();return{width:i.prop("offsetWidth"),height:i.prop("offsetHeight"),top:r.top+(t.pageYOffset||n[0].body.scrollTop||n[0].documentElement.scrollTop),left:r.left+(t.pageXOffset||n[0].body.scrollLeft||n[0].documentElement.scrollLeft)}}}}]);angular.module("ui.bootstrap.datepicker",["ui.bootstrap.position"]).constant("datepickerConfig",{dayFormat:"dd",monthFormat:"MMMM",yearFormat:"yyyy",dayHeaderFormat:"EEE",dayTitleFormat:"MMMM yyyy",monthTitleFormat:"yyyy",showWeeks:!0,startingDay:0,yearRange:20,minDate:null,maxDate:null}).controller("DatepickerController",["$scope","$attrs","dateFilter","datepickerConfig",function(n,t,i,r){function u(t,i){return angular.isDefined(t)?n.$parent.$eval(t):i}function h(n,t){return new Date(n,t,0).getDate()}function c(n,t){for(var r=new Array(t),i=n,u=0;u<t;)r[u++]=new Date(i),i.setDate(i.getDate()+1);return r}function o(n,t,r,u){return{date:n,label:i(n,t),selected:!!r,secondary:!!u}}var f={day:u(t.dayFormat,r.dayFormat),month:u(t.monthFormat,r.monthFormat),year:u(t.yearFormat,r.yearFormat),dayHeader:u(t.dayHeaderFormat,r.dayHeaderFormat),dayTitle:u(t.dayTitleFormat,r.dayTitleFormat),monthTitle:u(t.monthTitleFormat,r.monthTitleFormat)},s=u(t.startingDay,r.startingDay),e=u(t.yearRange,r.yearRange);this.minDate=r.minDate?new Date(r.minDate):null;this.maxDate=r.maxDate?new Date(r.maxDate):null;this.modes=[{name:"day",getVisibleDates:function(n,t){var b=n.getFullYear(),v=n.getMonth(),k=new Date(b,v,1),y=s-k.getDay(),p=y>0?7-y:-y,d=new Date(k),r=0,e,w,l,u,a;for(p>0&&(d.setDate(-p+1),r+=p),r+=h(b,v+1),r+=(7-r%7)%7,e=c(d,r),w=new Array(7),l=0;l<r;l++)u=new Date(e[l]),e[l]=o(u,f.day,t&&t.getDate()===u.getDate()&&t.getMonth()===u.getMonth()&&t.getFullYear()===u.getFullYear(),u.getMonth()!==v);for(a=0;a<7;a++)w[a]=i(e[a].date,f.dayHeader);return{objects:e,title:i(n,f.dayTitle),labels:w}},compare:function(n,t){return new Date(n.getFullYear(),n.getMonth(),n.getDate())-new Date(t.getFullYear(),t.getMonth(),t.getDate())},split:7,step:{months:1}},{name:"month",getVisibleDates:function(n,t){for(var s,u=new Array(12),e=n.getFullYear(),r=0;r<12;r++)s=new Date(e,r,1),u[r]=o(s,f.month,t&&t.getMonth()===r&&t.getFullYear()===e);return{objects:u,title:i(n,f.monthTitle)}},compare:function(n,t){return new Date(n.getFullYear(),n.getMonth())-new Date(t.getFullYear(),t.getMonth())},split:3,step:{years:1}},{name:"year",getVisibleDates:function(n,t){for(var u,i=new Array(e),s=n.getFullYear(),h=parseInt((s-1)/e,10)*e+1,r=0;r<e;r++)u=new Date(h+r,0,1),i[r]=o(u,f.year,t&&t.getFullYear()===u.getFullYear());return{objects:i,title:[i[0].label,i[e-1].label].join(" - ")}},compare:function(n,t){return n.getFullYear()-t.getFullYear()},split:5,step:{years:e}}];this.isDisabled=function(t,i){var r=this.modes[i||0];return this.minDate&&r.compare(t,this.minDate)<0||this.maxDate&&r.compare(t,this.maxDate)>0||n.dateDisabled&&n.dateDisabled({date:t,mode:r.name})}}]).directive("datepicker",["dateFilter","$parse","datepickerConfig","$log",function(n,t,i,r){return{restrict:"EA",replace:!0,templateUrl:"template/datepicker/datepicker.html",scope:{dateDisabled:"&"},require:["datepicker","?^ngModel"],controller:"DatepickerController",link:function(n,u,f,e){function a(){n.showWeekNumbers=o===0&&v}function p(n,t){for(var i=[];n.length>0;)i.push(n.splice(0,t));return i}function l(t){var i=null,e=!0,f,u;s.$modelValue&&(i=new Date(s.$modelValue),isNaN(i)?(e=!1,r.error('Datepicker directive: "ng-model" value must be a Date object, a number of milliseconds since 01.01.1970 or a string representing an RFC2822 or ISO 8601 date.')):t&&(c=i));s.$setValidity("date",e);f=h.modes[o];u=f.getVisibleDates(c,i);angular.forEach(u.objects,function(n){n.disabled=h.isDisabled(n.date,o)});s.$setValidity("date-disabled",!i||!h.isDisabled(i));n.rows=p(u.objects,f.split);n.labels=u.labels||[];n.title=u.title}function y(n){o=n;a();l()}function w(n){var t=new Date(n),i;return t.setDate(t.getDate()+4-(t.getDay()||7)),i=t.getTime(),t.setMonth(0),t.setDate(1),Math.floor(Math.round((i-t)/864e5)/7)+1}var h=e[0],s=e[1];if(s){var o=0,c=new Date,v=i.showWeeks;f.showWeeks?n.$parent.$watch(t(f.showWeeks),function(n){v=!!n;a()}):a();f.min&&n.$parent.$watch(t(f.min),function(n){h.minDate=n?new Date(n):null;l()});f.max&&n.$parent.$watch(t(f.max),function(n){h.maxDate=n?new Date(n):null;l()});s.$render=function(){l(!0)};n.select=function(n){if(o===0){var t=new Date(s.$modelValue);t.setFullYear(n.getFullYear(),n.getMonth(),n.getDate());s.$setViewValue(t);l(!0)}else c=n,y(o-1)};n.move=function(n){var t=h.modes[o].step;c.setMonth(c.getMonth()+n*(t.months||0));c.setFullYear(c.getFullYear()+n*(t.years||0));l()};n.toggleMode=function(){y((o+1)%h.modes.length)};n.getWeekNumber=function(t){return o===0&&n.showWeekNumbers&&t.length===7?w(t[0].date):null}}}}}]).constant("datepickerPopupConfig",{dateFormat:"yyyy-MM-dd",closeOnDateSelection:!0}).directive("datepickerPopup",["$compile","$parse","$document","$position","dateFilter","datepickerPopupConfig",function(n,t,i,r,u,f){return{restrict:"EA",require:"ngModel",link:function(e,o,s,h){function y(n){a?a(e,!!n):c.isOpen=!!n}function ft(n){if(n){if(angular.isDate(n))return h.$setValidity("date",!0),n;if(angular.isString(n)){var t=new Date(n);return isNaN(t)?(h.$setValidity("date",!1),undefined):(h.$setValidity("date",!0),t)}return h.$setValidity("date",!1),undefined}return h.$setValidity("date",!0),null}function tt(){c.date=h.$modelValue;it()}function w(n,i,r){n&&(e.$watch(t(n),function(n){c[i]=n}),v.attr(r||i,i))}function it(){c.position=r.position(o);c.position.top=c.position.top+o.prop("offsetHeight")}var rt=angular.isDefined(s.closeOnDateSelection)?c.$eval(s.closeOnDateSelection):f.closeOnDateSelection,ut=s.datepickerPopup||f.dateFormat,c=e.$new(),l,a,v,b,k,d;e.$on("$destroy",function(){c.$destroy()});s.isOpen&&(l=t(s.isOpen),a=l.assign,e.$watch(l,function(n){c.isOpen=!!n}));c.isOpen=l?l(e):!1;var g=function(n){c.isOpen&&n.target!==o[0]&&c.$apply(function(){y(!1)})},nt=function(){c.$apply(function(){y(!0)})},p=angular.element("<datepicker-popup-wrap><datepicker><\/datepicker><\/datepicker-popup-wrap>");p.attr({"ng-model":"date","ng-change":"dateSelection()"});v=p.find("datepicker");s.datepickerOptions&&v.attr(angular.extend({},e.$eval(s.datepickerOptions)));h.$parsers.unshift(ft);c.dateSelection=function(){h.$setViewValue(c.date);h.$render();rt&&y(!1)};o.bind("input change keyup",function(){c.$apply(function(){tt()})});h.$render=function(){var n=h.$viewValue?u(h.$viewValue,ut):"";o.val(n);tt()};w(s.min,"min");w(s.max,"max");s.showWeeks?w(s.showWeeks,"showWeeks","show-weeks"):(c.showWeeks=!0,v.attr("show-weeks","showWeeks"));s.dateDisabled&&v.attr("date-disabled",s.dateDisabled);b=!1;k=!1;c.$watch("isOpen",function(n){n?(it(),i.bind("click",g),k&&o.unbind("focus",nt),o[0].focus(),b=!0):(b&&i.unbind("click",g),o.bind("focus",nt),k=!0);a&&a(e,n)});d=t(s.ngModel).assign;c.today=function(){d(e,new Date)};c.clear=function(){d(e,null)};o.after(n(p)(c))}}}]).directive("datepickerPopupWrap",[function(){return{restrict:"E",replace:!0,transclude:!0,templateUrl:"template/datepicker/popup.html",link:function(n,t){t.bind("click",function(n){n.preventDefault();n.stopPropagation()})}}}]);angular.module("ui.bootstrap.dropdownToggle",[]).directive("dropdownToggle",["$document","$location",function(n){var i=null,t=angular.noop;return{restrict:"CA",link:function(r,u){r.$watch("$location.path",function(){t()});u.parent().bind("click",function(){t()});u.bind("click",function(r){var f=u===i;r.preventDefault();r.stopPropagation();!i||t();f||(u.parent().addClass("open"),i=u,t=function(r){r&&(r.preventDefault(),r.stopPropagation());n.unbind("click",t);u.parent().removeClass("open");t=angular.noop;i=null},n.bind("click",t))})}}}]);angular.module("ui.bootstrap.modal",[]).factory("$$stackedMap",function(){return{createNew:function(){var n=[];return{add:function(t,i){n.push({key:t,value:i})},get:function(t){for(var i=0;i<n.length;i++)if(t==n[i].key)return n[i]},keys:function(){for(var i=[],t=0;t<n.length;t++)i.push(n[t].key);return i},top:function(){return n[n.length-1]},remove:function(t){for(var r=-1,i=0;i<n.length;i++)if(t==n[i].key){r=i;break}return n.splice(r,1)[0]},removeTop:function(){return n.splice(n.length-1,1)[0]},length:function(){return n.length}}}}}).directive("modalBackdrop",["$modalStack","$timeout",function(n,t){return{restrict:"EA",replace:!0,templateUrl:"template/modal/backdrop.html",link:function(i){t(function(){i.animate=!0});i.close=function(t){var i=n.getTop();i&&i.value.backdrop&&i.value.backdrop!="static"&&(t.preventDefault(),t.stopPropagation(),n.dismiss(i.key,"backdrop click"))}}}}]).directive("modalWindow",["$timeout",function(n){return{restrict:"EA",scope:{index:"@"},replace:!0,transclude:!0,templateUrl:"template/modal/window.html",link:function(t,i,r){t.windowClass=r.windowClass||"";n(function(){t.animate=!0})}}}]).factory("$modalStack",["$document","$compile","$rootScope","$$stackedMap",function(n,t,i,r){function o(){for(var t=-1,i=u.keys(),n=0;n<i.length;n++)u.get(i[n]).value.backdrop&&(t=n);return t}function l(n){var t=u.get(n).value;u.remove(n);t.modalDomEl.remove();o()==-1&&(e.remove(),e=undefined);t.modalScope.$destroy()}var s,e,h=i.$new(!0),c=n.find("body").eq(0),u=r.createNew(),f={};return i.$watch(o,function(n){h.index=n}),n.bind("keydown",function(n){var t;n.which===27&&(t=u.top(),t&&t.value.keyboard&&i.$apply(function(){f.dismiss(t.key)}))}),f.open=function(n,i){var r,f;u.add(n,{deferred:i.deferred,modalScope:i.scope,backdrop:i.backdrop,keyboard:i.keyboard});r=angular.element("<div modal-window><\/div>");r.attr("window-class",i.windowClass);r.attr("index",u.length()-1);r.html(i.content);f=t(r)(i.scope);u.top().value.modalDomEl=f;c.append(f);o()>=0&&!e&&(s=angular.element("<div modal-backdrop><\/div>"),e=t(s)(h),c.append(e))},f.close=function(n,t){var i=u.get(n);i&&(i.value.deferred.resolve(t),l(n))},f.dismiss=function(n,t){var i=u.get(n).value;i&&(i.deferred.reject(t),l(n))},f.getTop=function(){return u.top()},f}]).provider("$modal",function(){var n={options:{backdrop:!0,keyboard:!0},$get:["$injector","$rootScope","$q","$http","$templateCache","$controller","$modalStack",function(t,i,r,u,f,e,o){function h(n){return n.template?r.when(n.template):u.get(n.templateUrl,{cache:f}).then(function(n){return n.data})}function c(n){var i=[];return angular.forEach(n,function(n){(angular.isFunction(n)||angular.isArray(n))&&i.push(r.when(t.invoke(n)))}),i}var s={};return s.open=function(t){var f=r.defer(),s=r.defer(),u={result:f.promise,opened:s.promise,close:function(n){o.close(u,n)},dismiss:function(n){o.dismiss(u,n)}},l;if(t=angular.extend({},n.options,t),t.resolve=t.resolve||{},!t.template&&!t.templateUrl)throw new Error("One of template or templateUrl options is required.");return l=r.all([h(t)].concat(c(t.resolve))),l.then(function(n){var s=(t.scope||i).$new(),c,r,h;s.$close=u.close;s.$dismiss=u.dismiss;r={};h=1;t.controller&&(r.$scope=s,r.$modalInstance=u,angular.forEach(t.resolve,function(t,i){r[i]=n[h++]}),c=e(t.controller,r));o.open(u,{scope:s,deferred:f,content:n[0],backdrop:t.backdrop,keyboard:t.keyboard,windowClass:t.windowClass})},function(n){f.reject(n)}),l.then(function(){s.resolve(!0)},function(){s.reject(!1)}),u},s}]};return n});angular.module("ui.bootstrap.pagination",[]).controller("PaginationController",["$scope","$attrs","$parse","$interpolate",function(n,t,i,r){var u=this;this.init=function(r){t.itemsPerPage?n.$parent.$watch(i(t.itemsPerPage),function(t){u.itemsPerPage=parseInt(t,10);n.totalPages=u.calculateTotalPages()}):this.itemsPerPage=r};this.noPrevious=function(){return this.page===1};this.noNext=function(){return this.page===n.totalPages};this.isActive=function(n){return this.page===n};this.calculateTotalPages=function(){return this.itemsPerPage<1?1:Math.ceil(n.totalItems/this.itemsPerPage)};this.getAttributeValue=function(t,i,u){return angular.isDefined(t)?u?r(t)(n.$parent):n.$parent.$eval(t):i};this.render=function(){this.page=parseInt(n.page,10)||1;n.pages=this.getPages(this.page,n.totalPages)};n.selectPage=function(t){if(!u.isActive(t)&&t>0&&t<=n.totalPages){n.page=t;n.onSelectPage({page:t})}};n.$watch("totalItems",function(){n.totalPages=u.calculateTotalPages()});n.$watch("totalPages",function(i){t.numPages&&(n.numPages=i);u.page>i?n.selectPage(i):u.render()});n.$watch("page",function(){u.render()})}]).constant("paginationConfig",{itemsPerPage:10,boundaryLinks:!1,directionLinks:!0,firstText:"First",previousText:"Previous",nextText:"Next",lastText:"Last",rotate:!0}).directive("pagination",["$parse","paginationConfig",function(n,t){return{restrict:"EA",scope:{page:"=",totalItems:"=",onSelectPage:" &",numPages:"="},controller:"PaginationController",templateUrl:"template/pagination/pagination.html",replace:!0,link:function(i,r,u,f){function o(n,t,i,r){return{number:n,text:t,active:i,disabled:r}}var e,h=f.getAttributeValue(u.boundaryLinks,t.boundaryLinks),c=f.getAttributeValue(u.directionLinks,t.directionLinks),l=f.getAttributeValue(u.firstText,t.firstText,!0),a=f.getAttributeValue(u.previousText,t.previousText,!0),v=f.getAttributeValue(u.nextText,t.nextText,!0),y=f.getAttributeValue(u.lastText,t.lastText,!0),s=f.getAttributeValue(u.rotate,t.rotate);f.init(t.itemsPerPage);u.maxSize&&i.$parent.$watch(n(u.maxSize),function(n){e=parseInt(n,10);f.render()});f.getPages=function(n,t){var i=[],r=1,u=t,w=angular.isDefined(e)&&e<t,p,b,k,d,g,nt,tt,it;for(w&&(s?(r=Math.max(n-Math.floor(e/2),1),u=r+e-1,u>t&&(u=t,r=u-e+1)):(r=(Math.ceil(n/e)-1)*e+1,u=Math.min(r+e-1,t))),p=r;p<=u;p++)b=o(p,p,f.isActive(p),!1),i.push(b);return w&&!s&&(r>1&&(k=o(r-1,"...",!1,!1),i.unshift(k)),u<t&&(d=o(u+1,"...",!1,!1),i.push(d))),c&&(g=o(n-1,a,!1,f.noPrevious()),i.unshift(g),nt=o(n+1,v,!1,f.noNext()),i.push(nt)),h&&(tt=o(1,l,!1,f.noPrevious()),i.unshift(tt),it=o(t,y,!1,f.noNext()),i.push(it)),i}}}}]).constant("pagerConfig",{itemsPerPage:10,previousText:"« Previous",nextText:"Next »",align:!0}).directive("pager",["pagerConfig",function(n){return{restrict:"EA",scope:{page:"=",totalItems:"=",onSelectPage:" &",numPages:"="},controller:"PaginationController",templateUrl:"template/pagination/pager.html",replace:!0,link:function(t,i,r,u){function e(n,t,i,r,u){return{number:n,text:t,disabled:i,previous:f&&r,next:f&&u}}var o=u.getAttributeValue(r.previousText,n.previousText,!0),s=u.getAttributeValue(r.nextText,n.nextText,!0),f=u.getAttributeValue(r.align,n.align);u.init(n.itemsPerPage);u.getPages=function(n){return[e(n-1,o,u.noPrevious(),!0,!1),e(n+1,s,u.noNext(),!1,!0)]}}}}]);angular.module("ui.bootstrap.tooltip",["ui.bootstrap.position","ui.bootstrap.bindHtml"]).provider("$tooltip",function(){function r(n){var t="-";return n.replace(/[A-Z]/g,function(n,i){return(i?t:"")+n.toLowerCase()})}var i={placement:"top",animation:!0,popupDelay:0},n={mouseenter:"mouseleave",click:"click",focus:"blur"},t={};this.options=function(n){angular.extend(t,n)};this.setTriggers=function(t){angular.extend(n,t)};this.$get=["$window","$compile","$timeout","$parse","$document","$position","$interpolate",function(u,f,e,o,s,h,c){return function(u,l,a){function w(t){var i=t||v.trigger||a,r=n[i]||i;return{show:i,hide:r}}var v=angular.extend({},i,t),b=r(u),y=c.startSymbol(),p=c.endSymbol(),k="<"+b+'-popup title="'+y+"tt_title"+p+'" content="'+y+"tt_content"+p+'" placement="'+y+"tt_placement"+p+'" animation="tt_animation()" is-open="tt_isOpen"><\/'+b+"-popup>";return{restrict:"EA",scope:!0,link:function(n,t,i){function rt(){n.tt_isOpen?d():b()}function b(){n.tt_popupDelay?nt=e(it,n.tt_popupDelay):n.$apply(it)}function d(){n.$apply(function(){g()})}function it(){var i,f,o,u;if(n.tt_content){y&&e.cancel(y);r.css({top:0,left:0,display:"block"});a?(p=p||s.find("body"),p.append(r)):t.after(r);i=a?h.offset(t):h.position(t);f=r.prop("offsetWidth");o=r.prop("offsetHeight");switch(n.tt_placement){case"right":u={top:i.top+i.height/2-o/2,left:i.left+i.width};break;case"bottom":u={top:i.top+i.height,left:i.left+i.width/2-f/2};break;case"left":u={top:i.top+i.height/2-o/2,left:i.left-f};break;default:u={top:i.top-o,left:i.left+i.width/2-f/2}}u.top+="px";u.left+="px";r.css(u);n.tt_isOpen=!0}}function g(){n.tt_isOpen=!1;e.cancel(nt);angular.isDefined(n.tt_animation)&&n.tt_animation()?y=e(function(){r.remove()},500):r.remove()}var r=f(k)(n),y,nt,p,a=angular.isDefined(v.appendToBody)?v.appendToBody:!1,c=w(undefined),tt=!1;n.tt_isOpen=!1;i.$observe(u,function(t){n.tt_content=t});i.$observe(l+"Title",function(t){n.tt_title=t});i.$observe(l+"Placement",function(t){n.tt_placement=angular.isDefined(t)?t:v.placement});i.$observe(l+"Animation",function(t){n.tt_animation=angular.isDefined(t)?o(t):function(){return v.animation}});i.$observe(l+"PopupDelay",function(t){var i=parseInt(t,10);n.tt_popupDelay=isNaN(i)?v.popupDelay:i});i.$observe(l+"Trigger",function(n){tt&&(t.unbind(c.show,b),t.unbind(c.hide,d));c=w(n);c.show===c.hide?t.bind(c.show,rt):(t.bind(c.show,b),t.bind(c.hide,d));tt=!0});i.$observe(l+"AppendToBody",function(t){a=angular.isDefined(t)?o(t)(n):a});a&&n.$on("$locationChangeSuccess",function(){n.tt_isOpen&&g()});n.$on("$destroy",function(){n.tt_isOpen?g():r.remove()})}}}}]}).directive("tooltipPopup",function(){return{restrict:"E",replace:!0,scope:{content:"@",placement:"@",animation:"&",isOpen:"&"},templateUrl:"template/tooltip/tooltip-popup.html"}}).directive("tooltip",["$tooltip",function(n){return n("tooltip","tooltip","mouseenter")}]).directive("tooltipHtmlUnsafePopup",function(){return{restrict:"E",replace:!0,scope:{content:"@",placement:"@",animation:"&",isOpen:"&"},templateUrl:"template/tooltip/tooltip-html-unsafe-popup.html"}}).directive("tooltipHtmlUnsafe",["$tooltip",function(n){return n("tooltipHtmlUnsafe","tooltip","mouseenter")}]);angular.module("ui.bootstrap.popover",["ui.bootstrap.tooltip"]).directive("popoverPopup",function(){return{restrict:"EA",replace:!0,scope:{title:"@",content:"@",placement:"@",animation:"&",isOpen:"&"},templateUrl:"template/popover/popover.html"}}).directive("popover",["$compile","$timeout","$parse","$window","$tooltip",function(n,t,i,r,u){return u("popover","popover","click")}]);angular.module("ui.bootstrap.progressbar",["ui.bootstrap.transition"]).constant("progressConfig",{animate:!0,autoType:!1,stackedTypes:["success","info","warning","danger"]}).controller("ProgressBarController",["$scope","$attrs","progressConfig",function(n,t,i){function e(n){return f[n]}var r=angular.isDefined(t.animate)?n.$eval(t.animate):i.animate,u=angular.isDefined(t.autoType)?n.$eval(t.autoType):i.autoType,f=angular.isDefined(t.stackedTypes)?n.$eval("["+t.stackedTypes+"]"):i.stackedTypes;this.makeBar=function(n,t,i){var f=angular.isObject(n)?n.value:n||0,o=angular.isObject(t)?t.value:t||0,s=angular.isObject(n)&&angular.isDefined(n.type)?n.type:u?e(i||0):null;return{from:o,to:f,type:s,animate:r}};this.addBar=function(t){n.bars.push(t);n.totalPercent+=t.to};this.clearBars=function(){n.bars=[];n.totalPercent=0};this.clearBars()}]).directive("progress",function(){return{restrict:"EA",replace:!0,controller:"ProgressBarController",scope:{value:"=percent",onFull:"&",onEmpty:"&"},templateUrl:"template/progressbar/progress.html",link:function(n,t,i,r){n.$watch("value",function(n,t){if(r.clearBars(),angular.isArray(n))for(var i=0,u=n.length;i<u;i++)r.addBar(r.makeBar(n[i],t[i],i));else r.addBar(r.makeBar(n,t))},!0);n.$watch("totalPercent",function(t){t>=100?n.onFull():t<=0&&n.onEmpty()},!0)}}}).directive("progressbar",["$transition",function(n){return{restrict:"EA",replace:!0,scope:{width:"=",old:"=",type:"=",animate:"="},templateUrl:"template/progressbar/bar.html",link:function(t,i){t.$watch("width",function(r){t.animate?(i.css("width",t.old+"%"),n(i,{width:r+"%"})):i.css("width",r+"%")})}}}]);angular.module("ui.bootstrap.rating",[]).constant("ratingConfig",{max:5,stateOn:null,stateOff:null}).controller("RatingController",["$scope","$attrs","$parse","ratingConfig",function(n,t,i,r){this.maxRange=angular.isDefined(t.max)?n.$parent.$eval(t.max):r.max;this.stateOn=angular.isDefined(t.stateOn)?n.$parent.$eval(t.stateOn):r.stateOn;this.stateOff=angular.isDefined(t.stateOff)?n.$parent.$eval(t.stateOff):r.stateOff;this.createDefaultRange=function(n){for(var r={stateOn:this.stateOn,stateOff:this.stateOff},i=new Array(n),t=0;t<n;t++)i[t]=r;return i};this.normalizeRange=function(n){for(var t=0,i=n.length;t<i;t++)n[t].stateOn=n[t].stateOn||this.stateOn,n[t].stateOff=n[t].stateOff||this.stateOff;return n};n.range=angular.isDefined(t.ratingStates)?this.normalizeRange(angular.copy(n.$parent.$eval(t.ratingStates))):this.createDefaultRange(this.maxRange);n.rate=function(t){n.readonly||n.value===t||(n.value=t)};n.enter=function(t){n.readonly||(n.val=t);n.onHover({value:t})};n.reset=function(){n.val=angular.copy(n.value);n.onLeave()};n.$watch("value",function(t){n.val=t});n.readonly=!1;t.readonly&&n.$parent.$watch(i(t.readonly),function(t){n.readonly=!!t})}]).directive("rating",function(){return{restrict:"EA",scope:{value:"=",onHover:"&",onLeave:"&"},controller:"RatingController",templateUrl:"template/rating/rating.html",replace:!0}});angular.module("ui.bootstrap.tabs",[]).directive("tabs",function(){return function(){throw new Error("The `tabs` directive is deprecated, please migrate to `tabset`. Instructions can be found at http://github.com/angular-ui/bootstrap/tree/master/CHANGELOG.md");}}).controller("TabsetController",["$scope","$element",function(n){var i=this,t=i.tabs=n.tabs=[];i.select=function(n){angular.forEach(t,function(n){n.active=!1});n.active=!0};i.addTab=function(n){t.push(n);n.active&&i.select(n)};i.removeTab=function(n){var r=t.indexOf(n),u;n.active&&t.length>1&&(u=r==t.length-1?r-1:r+1,i.select(t[u]));t.splice(r,1)}}]).directive("tabset",function(){return{restrict:"EA",transclude:!0,replace:!0,require:"^tabset",scope:{},controller:"TabsetController",templateUrl:"template/tabs/tabset.html",compile:function(n,t,i){return function(n,t,r,u){n.vertical=angular.isDefined(r.vertical)?n.$parent.$eval(r.vertical):!1;n.type=angular.isDefined(r.type)?n.$parent.$eval(r.type):"tabs";n.direction=angular.isDefined(r.direction)?n.$parent.$eval(r.direction):"top";n.tabsAbove=n.direction!="below";u.$scope=n;u.$transcludeFn=i}}}}).directive("tab",["$parse","$http","$templateCache","$compile",function(n){return{require:"^tabset",restrict:"EA",replace:!0,templateUrl:"template/tabs/tab.html",transclude:!0,scope:{tabtype:"@",glyphicon:"@",heading:"@",onSelect:"&select",onDeselect:"&deselect"},controller:function(){},compile:function(t,i,r){return function(t,i,u,f){var e,o;u.active?(e=n(u.active),o=e.assign,t.$parent.$watch(e,function(n){t.active=!!n}),t.active=e(t.$parent)):o=e=angular.noop;t.$watch("active",function(n){o(t.$parent,n);n?(f.select(t),t.onSelect()):t.onDeselect()});t.disabled=!1;u.disabled&&t.$parent.$watch(n(u.disabled),function(n){t.disabled=!!n});t.select=function(){t.disabled||(t.active=!0)};f.addTab(t);t.$on("$destroy",function(){f.removeTab(t)});t.active&&o(t.$parent,!0);t.$transcludeFn=r}}}}]).directive("tabHeadingTransclude",[function(){return{restrict:"A",require:"^tab",link:function(n,t){n.$watch("headingElement",function(n){n&&(t.html(""),t.append(n))})}}}]).directive("tabContentTransclude",["$compile","$parse",function(){function n(n){return n.tagName&&(n.hasAttribute("tab-heading")||n.hasAttribute("data-tab-heading")||n.tagName.toLowerCase()==="tab-heading"||n.tagName.toLowerCase()==="data-tab-heading")}return{restrict:"A",require:"^tabset",link:function(t,i,r){var u=t.$eval(r.tabContentTransclude);u.$transcludeFn(u.$parent,function(t){angular.forEach(t,function(t){n(t)?u.headingElement=t:i.append(t)})})}}}]).directive("tabsetTitles",["$http",function(){return{restrict:"A",require:"^tabset",templateUrl:"template/tabs/tabset-titles.html",replace:!0,link:function(n,t,i,r){n.$eval(i.tabsetTitles)?r.$transcludeFn(r.$scope.$parent,function(n){t.append(n)}):t.remove()}}}]);angular.module("ui.bootstrap.timepicker",[]).constant("timepickerConfig",{hourStep:1,minuteStep:1,showMeridian:!0,meridians:["AM","PM"],readonlyInput:!1,mousewheel:!0}).directive("timepicker",["$parse","$log","timepickerConfig",function(n,t,i){return{restrict:"EA",require:"?^ngModel",replace:!0,scope:{},templateUrl:"template/timepicker/timepicker.html",link:function(r,u,f,e){function b(){var n=parseInt(r.hours,10),t=r.showMeridian?n>0&&n<13:n>=0&&n<24;return t?(r.showMeridian&&(n===12&&(n=0),r.meridian===a[1]&&(n=n+12)),n):undefined}function k(){var n=parseInt(r.minutes,10);return n>=0&&n<60?n:undefined}function c(n){return angular.isDefined(n)&&n.toString().length<2?"0"+n:n}function l(n){tt();e.$setViewValue(new Date(o));w(n)}function tt(){e.$setValidity("time",!0);r.invalidHours=!1;r.invalidMinutes=!1}function w(n){var t=o.getHours(),i=o.getMinutes();r.showMeridian&&(t=t===0||t===12?12:t%12);r.hours=n==="h"?t:c(t);r.minutes=n==="m"?i:c(i);r.meridian=o.getHours()<12?a[0]:a[1]}function s(n){var t=new Date(o.getTime()+n*6e4);o.setHours(t.getHours(),t.getMinutes());l()}var h,y,p;if(e){var o=new Date,a=i.meridians,v=i.hourStep;f.hourStep&&r.$parent.$watch(n(f.hourStep),function(n){v=parseInt(n,10)});h=i.minuteStep;f.minuteStep&&r.$parent.$watch(n(f.minuteStep),function(n){h=parseInt(n,10)});r.showMeridian=i.showMeridian;f.showMeridian&&r.$parent.$watch(n(f.showMeridian),function(n){if(r.showMeridian=!!n,e.$error.time){var t=b(),i=k();angular.isDefined(t)&&angular.isDefined(i)&&(o.setHours(t),l())}else w()});var d=u.find("input"),g=d.eq(0),nt=d.eq(1),it=angular.isDefined(f.mousewheel)?r.$eval(f.mousewheel):i.mousewheel;it&&(y=function(n){n.originalEvent&&(n=n.originalEvent);var t=n.wheelDelta?n.wheelDelta:-n.deltaY;return n.detail||t>0},g.bind("mousewheel wheel",function(n){r.$apply(y(n)?r.incrementHours():r.decrementHours());n.preventDefault()}),nt.bind("mousewheel wheel",function(n){r.$apply(y(n)?r.incrementMinutes():r.decrementMinutes());n.preventDefault()}));r.readonlyInput=angular.isDefined(f.readonlyInput)?r.$eval(f.readonlyInput):i.readonlyInput;r.readonlyInput?(r.updateHours=angular.noop,r.updateMinutes=angular.noop):(p=function(n,t){e.$setViewValue(null);e.$setValidity("time",!1);angular.isDefined(n)&&(r.invalidHours=n);angular.isDefined(t)&&(r.invalidMinutes=t)},r.updateHours=function(){var n=b();angular.isDefined(n)?(o.setHours(n),l("h")):p(!0)},g.bind("blur",function(){!r.validHours&&r.hours<10&&r.$apply(function(){r.hours=c(r.hours)})}),r.updateMinutes=function(){var n=k();angular.isDefined(n)?(o.setMinutes(n),l("m")):p(undefined,!0)},nt.bind("blur",function(){!r.invalidMinutes&&r.minutes<10&&r.$apply(function(){r.minutes=c(r.minutes)})}));e.$render=function(){var n=e.$modelValue?new Date(e.$modelValue):null;isNaN(n)?(e.$setValidity("time",!1),t.error('Timepicker directive: "ng-model" value must be a Date object, a number of milliseconds since 01.01.1970 or a string representing an RFC2822 or ISO 8601 date.')):(n&&(o=n),tt(),w())};r.incrementHours=function(){s(v*60)};r.decrementHours=function(){s(-v*60)};r.incrementMinutes=function(){s(h)};r.decrementMinutes=function(){s(-h)};r.toggleMeridian=function(){s(720*(o.getHours()<12?1:-1))}}}}}]);angular.module("ui.bootstrap.typeahead",["ui.bootstrap.position","ui.bootstrap.bindHtml"]).factory("typeaheadParser",["$parse",function(n){var t=/^\s*(.*?)(?:\s+as\s+(.*?))?\s+for\s+(?:([\$\w][\$\w\d]*))\s+in\s+(.*)$/;return{parse:function(i){var r=i.match(t);if(!r)throw new Error("Expected typeahead specification in form of '_modelValue_ (as _label_)? for _item_ in _collection_' but got '"+i+"'.");return{itemName:r[3],source:n(r[4]),viewMapper:n(r[2]||r[1]),modelMapper:n(r[1])}}}}]).directive("typeahead",["$compile","$parse","$q","$timeout","$document","$position","typeaheadParser",function(n,t,i,r,u,f,e){var o=[9,13,27,38,40];return{require:"ngModel",link:function(s,h,c,l){var tt=s.$eval(c.typeaheadMinLength)||1,g=s.$eval(c.typeaheadWaitMs)||0,it=s.$eval(c.typeaheadEditable)!==!1,p=t(c.typeaheadLoading).assign||angular.noop,rt=t(c.typeaheadOnSelect),nt=c.typeaheadInputFormatter?t(c.typeaheadInputFormatter):undefined,ut=t(c.ngModel).assign,v=e.parse(c.typeahead),w=angular.element("<typeahead-popup><\/typeahead-popup>"),a,y,b,k,d;w.attr({matches:"matches",active:"activeIdx",select:"select(activeIdx)",query:"query",position:"position"});angular.isDefined(c.typeaheadTemplateUrl)&&w.attr("template-url",c.typeaheadTemplateUrl);a=s.$new();s.$on("$destroy",function(){a.$destroy()});y=function(){a.matches=[];a.activeIdx=-1};b=function(n){var t={$viewValue:n};p(s,!0);i.when(v.source(a,t)).then(function(i){if(n===l.$viewValue){if(i.length>0){a.activeIdx=0;a.matches.length=0;for(var r=0;r<i.length;r++)t[v.itemName]=i[r],a.matches.push({label:v.viewMapper(a,t),model:i[r]});a.query=n;a.position=f.position(h);a.position.top=a.position.top+h.prop("offsetHeight")}else y();p(s,!1)}},function(){y();p(s,!1)})};y();a.query=undefined;l.$parsers.unshift(function(n){return y(),n&&n.length>=tt&&(g>0?(k&&r.cancel(k),k=r(function(){b(n)},g)):b(n)),it?n:(l.$setValidity("editable",!1),undefined)});l.$formatters.push(function(n){var i,r,t={};return nt?(t.$model=n,nt(s,t)):(t[v.itemName]=n,i=v.viewMapper(s,t),t[v.itemName]=undefined,r=v.viewMapper(s,t),i!==r?i:n)});a.select=function(n){var t={},i,r;t[v.itemName]=r=a.matches[n].model;i=v.modelMapper(s,t);ut(s,i);l.$setValidity("editable",!0);rt(s,{$item:r,$model:i,$label:v.viewMapper(s,t)});y();h[0].focus()};h.bind("keydown",function(n){a.matches.length!==0&&o.indexOf(n.which)!==-1&&(n.preventDefault(),n.which===40?(a.activeIdx=(a.activeIdx+1)%a.matches.length,a.$digest()):n.which===38?(a.activeIdx=(a.activeIdx?a.activeIdx:a.matches.length)-1,a.$digest()):n.which===13||n.which===9?a.$apply(function(){a.select(a.activeIdx)}):n.which===27&&(n.stopPropagation(),y(),a.$digest()))});d=function(n){h[0]!==n.target&&(y(),a.$digest())};u.bind("click",d);s.$on("$destroy",function(){u.unbind("click",d)});h.after(n(w)(a))}}}]).directive("typeaheadPopup",function(){return{restrict:"E",scope:{matches:"=",query:"=",active:"=",position:"=",select:"&"},replace:!0,templateUrl:"template/typeahead/typeahead-popup.html",link:function(n,t,i){n.templateUrl=i.templateUrl;n.isOpen=function(){return n.matches.length>0};n.isActive=function(t){return n.active==t};n.selectActive=function(t){n.active=t};n.selectMatch=function(t){n.select({activeIdx:t})}}}}).directive("typeaheadMatch",["$http","$templateCache","$compile","$parse",function(n,t,i,r){return{restrict:"E",scope:{index:"=",match:"=",query:"="},link:function(u,f,e){var o=r(e.templateUrl)(u.$parent)||"template/typeahead/typeahead-match.html";n.get(o,{cache:t}).success(function(n){f.replaceWith(i(n.trim())(u))})}}}]).filter("typeaheadHighlight",function(){function n(n){return n.replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")}return function(t,i){return i?t.replace(new RegExp(n(i),"gi"),"<strong>$&<\/strong>"):t}});angular.module("template/accordion/accordion-group.html",[]).run(["$templateCache",function(n){n.put("template/accordion/accordion-group.html",'<div class="accordion-group">\n  <div class="accordion-heading" ><a class="accordion-toggle" ng-click="isOpen = !isOpen" accordion-transclude="heading">{{heading}}<\/a><\/div>\n  <div class="accordion-body" collapse="!isOpen">\n    <div class="accordion-inner" ng-transclude><\/div>  <\/div>\n<\/div>')}]);angular.module("template/accordion/accordion.html",[]).run(["$templateCache",function(n){n.put("template/accordion/accordion.html",'<div class="accordion" ng-transclude><\/div>')}]);angular.module("template/alert/alert.html",[]).run(["$templateCache",function(n){n.put("template/alert/alert.html","<div class='alert' ng-class='type && \"alert-\" + type'>\n    <button ng-show='closeable' type='button' class='close' ng-click='close()'>&times;<\/button>\n    <div ng-transclude><\/div>\n<\/div>\n")}]);angular.module("template/carousel/carousel.html",[]).run(["$templateCache",function(n){n.put("template/carousel/carousel.html",'<div ng-mouseenter="pause()" ng-mouseleave="play()" class="carousel">\n    <ol class="carousel-indicators" ng-show="slides().length > 1">\n        <li ng-repeat="slide in slides()" ng-class="{active: isActive(slide)}" ng-click="select(slide)"><\/li>\n    <\/ol>\n    <div class="carousel-inner" ng-transclude><\/div>\n    <a ng-click="prev()" class="carousel-control left" ng-show="slides().length > 1">&lsaquo;<\/a>\n    <a ng-click="next()" class="carousel-control right" ng-show="slides().length > 1">&rsaquo;<\/a>\n<\/div>\n')}]);angular.module("template/carousel/slide.html",[]).run(["$templateCache",function(n){n.put("template/carousel/slide.html","<div ng-class=\"{\n    'active': leaving || (active && !entering),\n    'prev': (next || active) && direction=='prev',\n    'next': (next || active) && direction=='next',\n    'right': direction=='prev',\n    'left': direction=='next'\n  }\" class=\"item\" ng-transclude><\/div>\n")}]);angular.module("template/datepicker/datepicker.html",[]).run(["$templateCache",function(n){n.put("template/datepicker/datepicker.html",'<table>\n  <thead>\n    <tr class="text-center">\n      <th><button type="button" class="btn pull-left" ng-click="move(-1)"><i class="icon-chevron-left"><\/i><\/button><\/th>\n      <th colspan="{{rows[0].length - 2 + showWeekNumbers}}"><button type="button" class="btn btn-block" ng-click="toggleMode()"><strong>{{title}}<\/strong><\/button><\/th>\n      <th><button type="button" class="btn pull-right" ng-click="move(1)"><i class="icon-chevron-right"><\/i><\/button><\/th>\n    <\/tr>\n    <tr class="text-center" ng-show="labels.length > 0">\n      <th ng-show="showWeekNumbers">#<\/th>\n      <th ng-repeat="label in labels">{{label}}<\/th>\n    <\/tr>\n  <\/thead>\n  <tbody>\n    <tr ng-repeat="row in rows">\n      <td ng-show="showWeekNumbers" class="text-center"><em>{{ getWeekNumber(row) }}<\/em><\/td>\n      <td ng-repeat="dt in row" class="text-center">\n        <button type="button" style="width:100%;" class="btn" ng-class="{\'btn-info\': dt.selected}" ng-click="select(dt.date)" ng-disabled="dt.disabled"><span ng-class="{muted: dt.secondary}">{{dt.label}}<\/span><\/button>\n      <\/td>\n    <\/tr>\n  <\/tbody>\n<\/table>\n')}]);angular.module("template/datepicker/popup.html",[]).run(["$templateCache",function(n){n.put("template/datepicker/popup.html",'<ul class="dropdown-menu" ng-style="{display: (isOpen && \'block\') || \'none\', top: position.top+\'px\', left: position.left+\'px\'}" class="dropdown-menu">\n\t<li ng-transclude><\/li>\n\t<li class="divider"><\/li>\n\t<li style="padding: 9px;">\n\t\t<span class="btn-group">\n\t\t\t<button class="btn btn-small btn-inverse" ng-click="today()">Today<\/button>\n\t\t\t<button class="btn btn-small btn-info" ng-click="showWeeks = ! showWeeks" ng-class="{active: showWeeks}">Weeks<\/button>\n\t\t\t<button class="btn btn-small btn-danger" ng-click="clear()">Clear<\/button>\n\t\t<\/span>\n\t\t<button class="btn btn-small btn-success pull-right" ng-click="isOpen = false">Close<\/button>\n\t<\/li>\n<\/ul>')}]);angular.module("template/modal/backdrop.html",[]).run(["$templateCache",function(n){n.put("template/modal/backdrop.html",'<div class="modal-backdrop fade" ng-class="{in: animate}" ng-style="{\'z-index\': 1040 + index*10}" ng-click="close($event)"><\/div>')}]);angular.module("template/modal/window.html",[]).run(["$templateCache",function(n){n.put("template/modal/window.html",'<div class="modal fade {{ windowClass }}" ng-class="{in: animate}" ng-style="{\'z-index\': 1049 + index*10}" ng-transclude><\/div>')}]);angular.module("template/pagination/pager.html",[]).run(["$templateCache",function(n){n.put("template/pagination/pager.html",'<div class="pager">\n  <ul>\n    <li ng-repeat="page in pages" ng-class="{disabled: page.disabled, previous: page.previous, next: page.next}"><a ng-click="selectPage(page.number)">{{page.text}}<\/a><\/li>\n  <\/ul>\n<\/div>\n')}]);angular.module("template/pagination/pagination.html",[]).run(["$templateCache",function(n){n.put("template/pagination/pagination.html",'<div class="pagination"><ul>\n  <li ng-repeat="page in pages" ng-class="{active: page.active, disabled: page.disabled}"><a ng-click="selectPage(page.number)">{{page.text}}<\/a><\/li>\n  <\/ul>\n<\/div>\n')}]);angular.module("template/tooltip/tooltip-html-unsafe-popup.html",[]).run(["$templateCache",function(n){n.put("template/tooltip/tooltip-html-unsafe-popup.html",'<div class="tooltip {{placement}}" ng-class="{ in: isOpen(), fade: animation() }">\n  <div class="tooltip-arrow"><\/div>\n  <div class="tooltip-inner" ng-bind-html-unsafe="content"><\/div>\n<\/div>\n')}]);angular.module("template/tooltip/tooltip-popup.html",[]).run(["$templateCache",function(n){n.put("template/tooltip/tooltip-popup.html",'<div class="tooltip {{placement}}" ng-class="{ in: isOpen(), fade: animation() }">\n  <div class="tooltip-arrow"><\/div>\n  <div class="tooltip-inner" ng-bind="content"><\/div>\n<\/div>\n')}]);angular.module("template/popover/popover.html",[]).run(["$templateCache",function(n){n.put("template/popover/popover.html",'<div class="popover {{placement}}" ng-class="{ in: isOpen(), fade: animation() }">\n  <div class="arrow"><\/div>\n\n  <div class="popover-inner">\n      <h3 class="popover-title" ng-bind="title" ng-show="title"><\/h3>\n      <div class="popover-content" ng-bind="content"><\/div>\n  <\/div>\n<\/div>\n')}]);angular.module("template/progressbar/bar.html",[]).run(["$templateCache",function(n){n.put("template/progressbar/bar.html",'<div class="bar" ng-class=\'type && "bar-" + type\'><\/div>')}]);angular.module("template/progressbar/progress.html",[]).run(["$templateCache",function(n){n.put("template/progressbar/progress.html",'<div class="progress"><progressbar ng-repeat="bar in bars" width="bar.to" old="bar.from" animate="bar.animate" type="bar.type"><\/progressbar><\/div>')}]);angular.module("template/rating/rating.html",[]).run(["$templateCache",function(n){n.put("template/rating/rating.html",'<span ng-mouseleave="reset()">\n\t<i ng-repeat="r in range" ng-mouseenter="enter($index + 1)" ng-click="rate($index + 1)" ng-class="$index < val && (r.stateOn || \'icon-star\') || (r.stateOff || \'icon-star-empty\')"><\/i>\n<\/span>')}]);angular.module("template/tabs/pane.html",[]).run(["$templateCache",function(n){n.put("template/tabs/pane.html",'<div class="tab-pane" ng-class="{active: selected}" ng-show="selected" ng-transclude><\/div>\n')}]);angular.module("template/tabs/tab.html",[]).run(["$templateCache",function(n){n.put("template/tabs/tab.html",'<li ng-class="{active: active, disabled: disabled}" class="col-md-2">\n  <a ng-click="select()" id="tabType{{tabtype}}" class="glyphicons {{glyphicon}}" tab-heading-transclude><i><\/i><span>{{heading}}<\/span><\/a>\n<\/li>\n')}]);angular.module("template/tabs/tabs.html",[]).run(["$templateCache",function(n){n.put("template/tabs/tabs.html",'<div class="tabbable">\n  <ul class="nav nav-tabs">\n    <li ng-repeat="pane in panes" ng-class="{active:pane.selected}">\n      <a ng-click="select(pane)">{{pane.heading}}<\/a>\n    <\/li>\n  <\/ul>\n  <div class="tab-content" ng-transclude><\/div>\n<\/div>\n')}]);angular.module("template/tabs/tabset-titles.html",[]).run(["$templateCache",function(n){n.put("template/tabs/tabset-titles.html","<ul ng-class=\"{'nav-stacked': vertical}\">\n<\/ul>\n")}]);angular.module("template/tabs/tabset.html",[]).run(["$templateCache",function(n){n.put("template/tabs/tabset.html",'\n<div class="widget widget-tabs widget-tabs-double-2 widget-tabs-gray productTab col-xs-12  col-sm-12 col-md-8 tabbable" ng-class="{\'tabs-right\': direction == \'right\', \'tabs-left\': direction == \'left\', \'tabs-below\': direction == \'below\'}">\n  <div class="widget-head"><div tabset-titles="tabsAbove"><\/div><\/div>\n  <div class="tab-content">\n    <div class="tab-pane widget-body-regular" \n         ng-repeat="tab in tabs" \n         ng-class="{active: tab.active}"\n         tab-content-transclude="tab">\n    <\/div>\n  <\/div>\n  <div tabset-titles="!tabsAbove"><\/div>\n<\/div>\n')}]);angular.module("template/timepicker/timepicker.html",[]).run(["$templateCache",function(n){n.put("template/timepicker/timepicker.html",'<table class="form-inline">\n\t<tr class="text-center">\n\t\t<td><a ng-click="incrementHours()" class="btn btn-link"><i class="icon-chevron-up"><\/i><\/a><\/td>\n\t\t<td>&nbsp;<\/td>\n\t\t<td><a ng-click="incrementMinutes()" class="btn btn-link"><i class="icon-chevron-up"><\/i><\/a><\/td>\n\t\t<td ng-show="showMeridian"><\/td>\n\t<\/tr>\n\t<tr>\n\t\t<td class="control-group" ng-class="{\'error\': invalidHours}"><input type="text" ng-model="hours" ng-change="updateHours()" class="span1 text-center" ng-mousewheel="incrementHours()" ng-readonly="readonlyInput" maxlength="2" /><\/td>\n\t\t<td>:<\/td>\n\t\t<td class="control-group" ng-class="{\'error\': invalidMinutes}"><input type="text" ng-model="minutes" ng-change="updateMinutes()" class="span1 text-center" ng-readonly="readonlyInput" maxlength="2"><\/td>\n\t\t<td ng-show="showMeridian"><button type="button" ng-click="toggleMeridian()" class="btn text-center">{{meridian}}<\/button><\/td>\n\t<\/tr>\n\t<tr class="text-center">\n\t\t<td><a ng-click="decrementHours()" class="btn btn-link"><i class="icon-chevron-down"><\/i><\/a><\/td>\n\t\t<td>&nbsp;<\/td>\n\t\t<td><a ng-click="decrementMinutes()" class="btn btn-link"><i class="icon-chevron-down"><\/i><\/a><\/td>\n\t\t<td ng-show="showMeridian"><\/td>\n\t<\/tr>\n<\/table>')}]);angular.module("template/typeahead/typeahead-match.html",[]).run(["$templateCache",function(n){n.put("template/typeahead/typeahead-match.html",'<a tabindex="-1" bind-html-unsafe="match.label | typeaheadHighlight:query"><\/a>')}]);angular.module("template/typeahead/typeahead-popup.html",[]).run(["$templateCache",function(n){n.put("template/typeahead/typeahead-popup.html",'<ul class="typeahead dropdown-menu" ng-style="{display: isOpen()&&\'block\' || \'none\', top: position.top+\'px\', left: position.left+\'px\'}">\n    <li ng-repeat="match in matches" ng-class="{active: isActive($index) }" ng-mouseenter="selectActive($index)" ng-click="selectMatch($index)">\n        <typeahead-match index="$index" match="match" query="query" template-url="templateUrl"><\/typeahead-match>\n    <\/li>\n<\/ul>')}]);angular.module("template/typeahead/typeahead.html",[]).run(["$templateCache",function(n){n.put("template/typeahead/typeahead.html",'<ul class="typeahead dropdown-menu" ng-style="{display: isOpen()&&\'block\' || \'none\', top: position.top+\'px\', left: position.left+\'px\'}">\n    <li ng-repeat="match in matches" ng-class="{active: isActive($index) }" ng-mouseenter="selectActive($index)">\n        <a tabindex="-1" ng-click="selectMatch($index)" ng-bind-html-unsafe="match.label | typeaheadHighlight:query"><\/a>\n    <\/li>\n<\/ul>')}]);+function(n){"use strict";var t=function(t,i){this.$element=n(t);this.$indicators=this.$element.find(".carousel-indicators");this.options=i;this.paused=this.sliding=this.interval=this.$active=this.$items=null;this.options.pause=="hover"&&this.$element.on("mouseenter",n.proxy(this.pause,this)).on("mouseleave",n.proxy(this.cycle,this));var r=this;this.loading=this.$element.find(".loading");this.lazy_elements1=this.$element.find(".item .mob[lazy-src]");this.lazy_elements2=this.$element.find(".item .mob2[lazy-src]");this.lazy_elements1.load(function(){var t=n(this);t.attr("lazy-load","success");r.$element.trigger("slid.bs.load.success");r.resume(t)});this.lazy_elements2.load(function(){var t=n(this);t.attr("lazy-load","success");r.$element.trigger("slid.bs.load.success");r.resume(t)}).error(function(){var t=n(this);t.attr("lazy-load","error");r.$element.trigger("slid.bs.load.error");r.resume(t)})},i;t.DEFAULTS={interval:5e3,pause:"hover",wrap:!0};t.prototype.cycle=function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(n.proxy(this.next,this),this.options.interval)),this};t.prototype.getActiveIndex=function(){return this.$active=this.$element.find(".item.active"),this.$items=this.$active.parent().children(),this.$items.index(this.$active)};t.prototype.to=function(t){var r=this,i=this.getActiveIndex();if(!(t>this.$items.length-1)&&!(t<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){r.to(t)}):i==t?this.pause().cycle():this.slide(t>i?"next":"prev",n(this.$items[t]))};t.prototype.pause=function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&n.support.transition.end&&(this.$element.trigger(n.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this};t.prototype.next=function(){if(!this.sliding)return this.slide("next")};t.prototype.prev=function(){if(!this.sliding)return this.slide("prev")};t.prototype.load=function(n){this.sliding=!1;this.loading.removeClass("hide");n.attr("src",n.attr("lazy-src"));n.removeAttr("lazy-src");n.attr("lazy-load","loading");this.$element.trigger("slid.bs.load")};t.prototype.resume=function(n){var t=n.parents(".item"),i=t.parents(".carousel-inner").children(),r=i.index(t);this.loading.addClass("hide");this.to(r);this.options.interval&&this.cycle()};t.prototype.slide=function(t,i){var u=this.$element.find(".item.active"),r=i||u[t](),c=this.interval,f=t=="next"?"left":"right",l=t=="next"?"first":"last",o=this,e,s,h;if(!r.length){if(!this.options.wrap)return;r=this.$element.find(".item")[l]()}if(this.sliding=!0,c&&this.pause(),e=n.Event("slide.bs.carousel",{relatedTarget:r[0],direction:f}),!r.hasClass("active")){if(s=r.find("img.mob[lazy-src]"),h=r.find("img.mob2[lazy-src]"),s.length&&this.load(s),h.length&&this.load(h),this.$indicators.length){this.$indicators.find(".active").removeClass("active");this.$element.one("slid.bs.carousel",function(){var t=n(o.$indicators.children()[o.getActiveIndex()]);t&&t.addClass("active")})}if(n.support.transition&&this.$element.hasClass("slide")){if(this.$element.trigger(e),e.isDefaultPrevented())return;r.addClass(t);r[0].offsetWidth;u.addClass(f);r.addClass(f);u.one(n.support.transition.end,function(){r.removeClass([t,f].join(" ")).addClass("active");u.removeClass(["active",f].join(" "));o.sliding=!1;setTimeout(function(){o.$element.trigger("slid.bs.carousel")},0)}).emulateTransitionEnd(600)}else{if(this.$element.trigger(e),e.isDefaultPrevented())return;u.removeClass("active");r.addClass("active");this.sliding=!1;this.$element.trigger("slid.bs.carousel")}return c&&this.cycle(),this}};i=n.fn.carousel;n.fn.carousel=function(i){return this.each(function(){var u=n(this),r=u.data("bs.carousel"),f=n.extend({},t.DEFAULTS,u.data(),typeof i=="object"&&i),e=typeof i=="string"?i:f.slide;r||u.data("bs.carousel",r=new t(this,f));typeof i=="number"?r.to(i):e?r[e]():f.interval&&r.pause().cycle()})};n.fn.carousel.Constructor=t;n.fn.carousel.noConflict=function(){return n.fn.carousel=i,this};n(document).on("click.bs.carousel.data-api","[data-slide], [data-slide-to]",function(t){var i=n(this),f,r=n(i.attr("data-target")||(f=i.attr("href"))&&f.replace(/.*(?=#[^\s]+$)/,"")),e=n.extend({},r.data(),i.data()),u=i.attr("data-slide-to");u&&(e.interval=!1);r.carousel(e);(u=i.attr("data-slide-to"))&&r.data("bs.carousel").to(u);t.preventDefault()});n(window).on("load",function(){n('[data-ride="carousel"]').each(function(){var t=n(this);t.carousel(t.data())})})}(jQuery),function(n,t){var i=n();n.fn.dropdownHover=function(r){return"ontouchstart"in document?this:(i=i.add(this.parent()),this.each(function(){var u=n(this),f=u.parent(),h={delay:n(this).data("delay"),instantlyCloseOthers:n(this).data("close-others")},s="show.bs.dropdown",c="hide.bs.dropdown",e=n.extend(!0,{},{delay:500,instantlyCloseOthers:!0},r,h),o;f.hover(function(n){if(!f.hasClass("open")&&!u.is(n.target))return!0;i.find(":focus").blur();e.instantlyCloseOthers===!0&&i.removeClass("open");t.clearTimeout(o);f.addClass("open");u.trigger(s)},function(){o=t.setTimeout(function(){f.removeClass("open");u.trigger(c)},e.delay)});u.hover(function(){i.find(":focus").blur();e.instantlyCloseOthers===!0&&i.removeClass("open");t.clearTimeout(o);f.addClass("open");u.trigger(s)});f.find(".dropdown-submenu").each(function(){var i=n(this),r;i.hover(function(){t.clearTimeout(r);i.children(".dropdown-menu").show();i.siblings().children(".dropdown-menu").hide()},function(){var n=i.children(".dropdown-menu");r=t.setTimeout(function(){n.hide()},e.delay)})})}))};n(document).ready(function(){n('[data-hover="dropdown"]').dropdownHover()})}(jQuery,this),function(){var n;n=jQuery;n.bootstrapGrowl=function(t,i){var r,f,u;i=n.extend({},n.bootstrapGrowl.default_options,i);r=n("<div>");r.attr("class","bootstrap-growl alert");i.type&&r.addClass("alert-"+i.type);i.allow_dismiss&&(r.addClass("alert-dismissible"),r.append('<button class="close" data-dismiss="alert" type="button"><span aria-hidden="true">&times;<\/span><span class="sr-only">Close<\/span><\/button>'));r.append(t);i.top_offset&&(i.offset={from:"top",amount:i.top_offset});u=i.offset.amount;n(".bootstrap-growl").each(function(){return u=Math.max(u,parseInt(n(this).css(i.offset.from))+n(this).outerHeight()+i.stackup_spacing)});f={position:"body"===i.ele?"fixed":"absolute",margin:"50","z-index":"999999100",display:"none"};f[i.offset.from]=u+"px";r.css(f);"auto"!==i.width&&r.css("width",i.width+"px");n(i.ele).append(r);switch(i.align){case"center":r.css({left:"50%","margin-left":"-"+r.outerWidth()/2+"px"});break;case"left":r.css("left","20px");break;default:r.css("right","20px")}return r.fadeIn(),0<i.delay&&r.delay(i.delay).fadeOut(function(){return n(this).alert("close")}),r};n.bootstrapGrowl.default_options={ele:"body",type:"info",offset:{from:"top",amount:100},align:"right",width:250,delay:4e3,allow_dismiss:!0,stackup_spacing:10}}.call(this),function(n,t){var a,h,v,y,c,p=window.Sizzle||null,i,s,e,w,o,f=n[t],u="undefined",b=!1,k=typeof jQuery!==u,l=typeof sessionStorage==u,r=window.document;(o={smoothScroll:!0,scrollDuration:1e3,scrollTopMargin:200,showCloseButton:!0,showPrevButton:!0,showNextButton:!0,bubbleWidth:280,bubblePadding:15,arrowWidth:20,skipIfNoElement:!1,cookieName:"hopscotch.tour.state"},f)||(Array.isArray||(Array.isArray=function(n){return Object.prototype.toString.call(n)==="[object Array]"}),w=function(){b&&f.startTour()},i={addClass:function(n,t){var r,u,i,f;if(n.className){for(u=t.split(/\s+/),r=" "+n.className+" ",i=0,f=u.length;i<f;++i)r.indexOf(" "+u[i]+" ")<0&&(r+=u[i]+" ");n.className=r.replace(/^\s+|\s+$/g,"")}else n.className=t},removeClass:function(n,t){var i,u,r,f;for(u=t.split(/\s+/),i=" "+n.className+" ",r=0,f=u.length;r<f;++r)i=i.replace(" "+u[r]+" "," ");n.className=i.replace(/^\s+|\s+$/g,"")},getPixelValue:function(n){var t=typeof n;return t==="number"?n:t==="string"?parseInt(n,10):0},valOrDefault:function(n,t){return typeof n!==u?n:t},invokeCallbackArrayHelper:function(n){var t;if(Array.isArray(n)&&(t=e[n[0]],typeof t=="function"))return t.apply(this,n.slice(1))},invokeCallbackArray:function(n){var t,r;if(Array.isArray(n)){if(typeof n[0]=="string")return i.invokeCallbackArrayHelper(n);for(t=0,r=n.length;t<r;++t)i.invokeCallback(n[t])}},invokeCallback:function(n){return typeof n=="function"?n():typeof n=="string"&&e[n]?e[n]():i.invokeCallbackArray(n)},invokeEventCallbacks:function(n,t){var r=s[n],i,u;if(t)return this.invokeCallback(t);for(i=0,u=r.length;i<u;++i)this.invokeCallback(r[i].cb)},getScrollTop:function(){return typeof pageYOffset!==u?window.pageYOffset:r.documentElement.scrollTop},getScrollLeft:function(){return typeof pageXOffset!==u?window.pageXOffset:r.documentElement.scrollLeft},getWindowHeight:function(){return window.innerHeight||r.documentElement.clientHeight},getWindowWidth:function(){return window.innerWidth||r.documentElement.clientWidth},addEvtListener:function(n,t,i){return n.addEventListener?n.addEventListener(t,i,!1):n.attachEvent("on"+t,i)},removeEvtListener:function(n,t,i){return n.removeEventListener?n.removeEventListener(t,i,!1):n.detachEvent("on"+t,i)},documentIsReady:function(){return r.readyState==="complete"||r.readyState==="interactive"},evtPreventDefault:function(n){n.preventDefault?n.preventDefault():event&&(event.returnValue=!1)},extend:function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])},getStepTargetHelper:function(n){var t;return/^[#\.]/.test(n)?r.querySelector?r.querySelector(n):k?(t=jQuery(n),t.length?t[0]:null):p?(t=new p(n),t.length?t[0]:null):/^#[a-zA-Z][\w-_:.]*$/.test(n)?r.getElementById(n.substring(1)):null:r.getElementById(n)},getStepTarget:function(n){var r,t,u;if(!n||!n.target)return null;if(typeof n.target=="string")return n.target=i.getStepTargetHelper(n.target),n.target;if(Array.isArray(n.target)){for(t=0,u=n.target.length;t<u;t++)if(typeof n.target[t]=="string"&&(r=i.getStepTargetHelper(n.target[t]),r))return n.target=r,r;return null}return n.target},getI18NString:function(n){return c[n]||y[n]},setState:function(n,t,i){var f="",u;l?sessionStorage.setItem(n,t):(i&&(u=new Date,u.setTime(u.getTime()+i*864e5),f="; expires="+u.toGMTString()),r.cookie=n+"="+t+f+"; path=/")},getState:function(n){var f=n+"=",e=r.cookie.split(";"),i,t,u;if(l)u=sessionStorage.getItem(n);else for(i=0;i<e.length;i++){for(t=e[i];t.charAt(0)===" ";)t=t.substring(1,t.length);if(t.indexOf(f)===0){u=t.substring(f.length,t.length);break}}return u},clearState:function(n){l&&sessionStorage.removeItem(n)}},i.addEvtListener(window,"load",w),s={next:[],prev:[],start:[],end:[],show:[],error:[],close:[]},e={},y={stepNums:null,nextBtn:">",prevBtn:"<",doneBtn:"X",skipBtn:"Schovat",closeTooltip:"X"},c={},h=function(n){this.init(n)},h.prototype={isShowing:!1,currStep:undefined,_createButton:function(n,t){var u=r.createElement("button"),f="hopscotch-nav-button";return u.id=n,t&&(u.innerHTML=t),f+=n.indexOf("prev")>=0?" prev":" next",i.addClass(u,f),u},setPosition:function(n){var c,u,s,t,f,e,h,l=i.getStepTarget(n),o=this.element,r=this.arrowEl;c=i.getPixelValue(n.width)||this.opt.bubbleWidth;s=i.valOrDefault(n.padding,this.opt.bubblePadding);i.removeClass(o,"fade-in-down fade-in-up fade-in-left fade-in-right");!n.placement&&n.orientation&&(n.placement=n.orientation);t=l.getBoundingClientRect();n.placement==="top"?(u=o.offsetHeight,f=t.top-u-this.opt.arrowWidth,e=t.left):n.placement==="bottom"?(f=t.bottom+this.opt.arrowWidth,e=t.left):n.placement==="left"?(f=t.top,e=t.left-c-2*s-12-this.opt.arrowWidth):n.placement==="right"&&(f=t.top,e=t.right+this.opt.arrowWidth);h=n.arrowOffset!=="center"?i.getPixelValue(n.arrowOffset):n.arrowOffset;h?n.placement==="top"||n.placement==="bottom"?(r.style.top="",r.style.left=h==="center"?c/2+s-r.offsetWidth/2+"px":h+"px"):(n.placement==="left"||n.placement==="right")&&(r.style.left="",h==="center"?(u=u||o.offsetHeight,r.style.top=u/2+s-r.offsetHeight/2+"px"):r.style.top=h+"px"):(r.style.top="",r.style.left="");n.xOffset==="center"?e=t.left+l.offsetWidth/2-c/2-s:e+=i.getPixelValue(n.xOffset);n.yOffset==="center"?(u=u||o.offsetHeight,f=t.top+l.offsetHeight/2-u/2-s):f+=i.getPixelValue(n.yOffset);n.fixedElement||(f+=i.getScrollTop(),e+=i.getScrollLeft());o.style.position=n.fixedElement?"fixed":"absolute";o.style.top=f+"px";o.style.left=e+"px"},_initNavButtons:function(){var n=r.createElement("div");return this.prevBtnEl=this._createButton("hopscotch-prev",i.getI18NString("prevBtn")),this.nextBtnEl=this._createButton("hopscotch-next",i.getI18NString("nextBtn")),this.doneBtnEl=this._createButton("hopscotch-done",i.getI18NString("doneBtn")),this.ctaBtnEl=this._createButton("hopscotch-cta"),i.addClass(this.doneBtnEl,"hide"),n.appendChild(this.prevBtnEl),n.appendChild(this.ctaBtnEl),n.appendChild(this.nextBtnEl),n.appendChild(this.doneBtnEl),i.addEvtListener(this.prevBtnEl,"click",function(){f.prevStep(!0)}),i.addEvtListener(this.nextBtnEl,"click",function(){f.nextStep(!0)}),i.addEvtListener(this.doneBtnEl,"click",function(){f.endTour()}),n.className="hopscotch-actions",this.buttonsEl=n,this.containerEl.appendChild(n),this},_getCloseFn:function(){var n=this;return this.closeFn||(this.closeFn=function(t){n.opt.onClose&&i.invokeCallback(n.opt.onClose);n.opt.id&&!n.opt.isTourBubble?f.getCalloutManager().removeCallout(n.opt.id):n.destroy();i.evtPreventDefault(t)}),this.closeFn},initCloseButton:function(){var n=r.createElement("a");return n.className="hopscotch-bubble-close",n.href="#",n.title=i.getI18NString("closeTooltip"),n.innerHTML=i.getI18NString("closeTooltip"),this.opt.isTourBubble?i.addEvtListener(n,"click",function(n){var t=f.getCurrStepNum(),r=f.getCurrTour(),u=t===r.steps.length-1;i.invokeEventCallbacks("close");f.endTour(!0,u);n.preventDefault?n.preventDefault():event&&(event.returnValue=!1)}):i.addEvtListener(n,"click",this._getCloseFn()),i.valOrDefault(this.opt.showCloseButton,!0)||i.addClass(n,"show"),this.closeBtnEl=n,this.containerEl.appendChild(n),this},_initArrow:function(){var n,t;return this.arrowEl=r.createElement("div"),this.arrowEl.className="hopscotch-bubble-arrow-container",t=r.createElement("div"),t.className="hopscotch-bubble-arrow-border",n=r.createElement("div"),n.className="hopscotch-bubble-arrow",this.arrowEl.appendChild(t),this.arrowEl.appendChild(n),this.element.appendChild(this.arrowEl),this},_setupCTAButton:function(n){var t=this;this._showButton(this.ctaBtnEl,!!n.showCTAButton);n.showCTAButton&&n.ctaLabel&&(this.ctaBtnEl.innerHTML=n.ctaLabel,this._ctaFn=function(){t.opt.isTourBubble||f.getCalloutManager().removeCallout(n.id);n.onCTA&&typeof n.onCTA=="function"&&n.onCTA()},i.addEvtListener(this.ctaBtnEl,"click",this._ctaFn))},_removeCTACallback:function(){this.ctaBtnEl&&this._ctaFn&&(i.removeEvtListener(this.ctaBtnEl,"click",this._ctaFn),this._ctaFn=null)},render:function(n,t,r,u){var f=this.element,e,o,s,h;return n?this.currStep=n:this.currStep&&(n=this.currStep),!n.placement&&n.orientation&&(n.placement=n.orientation),e=i.valOrDefault(n.showNextButton,this.opt.showNextButton),o=i.valOrDefault(n.showPrevButton,this.opt.showPrevButton),this.setTitle(n.title||""),this.setContent(n.content||""),this.opt.isTourBubble&&this.setNum(t),this.placement=n.placement,this.showPrevButton(this.prevBtnEl&&o&&t>0),this.showNextButton(this.nextBtnEl&&e&&!r),this.nextBtnEl.innerHTML=n.showSkip?i.getI18NString("skipBtn"):i.getI18NString("nextBtn"),r?i.removeClass(this.doneBtnEl,"hide"):i.addClass(this.doneBtnEl,"hide"),this._setupCTAButton(n),this._setArrow(n.placement),s=i.getPixelValue(n.width)||this.opt.bubbleWidth,h=i.valOrDefault(n.padding,this.opt.bubblePadding),this.containerEl.style.width=s+"px",this.containerEl.style.padding=h+"px",f.style.zIndex=n.zindex||"",n.placement==="top"?(f.style.top="-9999px",f.style.left="-9999px",i.removeClass(f,"hide"),this.setPosition(n),i.addClass(f,"hide")):this.setPosition(n),u&&u(!n.fixedElement),this},setTitle:function(n){return n?(this.titleEl.innerHTML=n,i.removeClass(this.titleEl,"hide")):i.addClass(this.titleEl,"hide"),this},setContent:function(n){return n?(this.contentEl.innerHTML=n,i.removeClass(this.contentEl,"hide")):i.addClass(this.contentEl,"hide"),this},setNum:function(n){var t=i.getI18NString("stepNums");n=t&&n<t.length?t[n]:n+1;this.numberEl.innerHTML=n+"/"+hopscotch.getCurrTour().steps.length},_setArrow:function(n){i.removeClass(this.arrowEl,"down up right left");n==="top"?i.addClass(this.arrowEl,"down"):n==="bottom"?i.addClass(this.arrowEl,"up"):n==="left"?i.addClass(this.arrowEl,"right"):n==="right"&&i.addClass(this.arrowEl,"left")},_getArrowDirection:function(){return this.placement==="top"?"down":this.placement==="bottom"?"up":this.placement==="left"?"right":this.placement==="right"?"left":void 0},show:function(){var n=this,t="fade-in-"+this._getArrowDirection();return i.removeClass(this.element,"hide"),i.addClass(this.element,t),setTimeout(function(){i.removeClass(n.element,"invisible")},50),setTimeout(function(){i.removeClass(n.element,t)},1e3),this.isShowing=!0,this},hide:function(n){var t=this.element;return n=i.valOrDefault(n,!0),t.style.top="",t.style.left="",n?(i.addClass(t,"hide"),i.removeClass(t,"invisible")):(i.removeClass(t,"hide"),i.addClass(t,"invisible")),i.removeClass(t,"animate fade-in-up fade-in-down fade-in-right fade-in-left"),this.isShowing=!1,this},_showButton:function(n,t,r){var f="hide";r&&(f="hide-all");typeof t===u&&(t=!0);t?i.removeClass(n,f):i.addClass(n,f)},showPrevButton:function(n){this._showButton(this.prevBtnEl,n)},showNextButton:function(n){this._showButton(this.nextBtnEl,n)},showCloseButton:function(n){this._showButton(this.closeBtnEl,n)},destroy:function(){var n=this.element;n&&n.parentNode.removeChild(n);this.closeBtnEl&&i.removeEvtListener(this.closeBtnEl,"click",this._getCloseFn());this.ctaBtnEl&&this.onCTA&&this._removeCTACallback()},updateButtons:function(){this.showPrevButton(this.opt.showPrevButton);this.showNextButton(this.opt.showNextButton);this.showCloseButton(this.opt.showCloseButton);this.prevBtnEl.innerHTML=i.getI18NString("prevBtn");this.nextBtnEl.innerHTML=i.getI18NString("nextBtn");this.doneBtnEl.innerHTML=i.getI18NString("doneBtn")},init:function(n){var f=r.createElement("div"),e=r.createElement("div"),h=r.createElement("div"),c=this,l=!1,a,t,s;this.element=f;this.containerEl=e;this.titleEl=r.createElement("h3");this.contentEl=r.createElement("div");i.addClass(this.titleEl,"hopscotch-title");i.addClass(this.contentEl,"hopscotch-content");s={showPrevButton:o.showPrevButton,showNextButton:o.showNextButton,bubbleWidth:o.bubbleWidth,bubblePadding:o.bubblePadding,arrowWidth:o.arrowWidth,showNumber:!0,isTourBubble:!0};n=typeof n===u?{}:n;i.extend(s,n);this.opt=s;f.className="hopscotch-bubble animated";e.className="hopscotch-bubble-container";s.isTourBubble||(f.className+=" hopscotch-callout");s.isTourBubble?(this.numberEl=r.createElement("span"),this.numberEl.className="hopscotch-bubble-number",e.appendChild(this.numberEl)):i.addClass(f,"no-number");h.appendChild(this.titleEl);h.appendChild(this.contentEl);h.className="hopscotch-bubble-content";e.appendChild(h);f.appendChild(e);this._initNavButtons();this.initCloseButton();this._initArrow();a=function(){!l&&c.isShowing&&(l=!0,setTimeout(function(){c.setPosition(c.currStep);l=!1},100))};i.addEvtListener(window,"resize",a);this.hide();i.documentIsReady()?r.body.appendChild(f):(r.addEventListener?(t=function(){r.removeEventListener("DOMContentLoaded",t);window.removeEventListener("load",t);r.body.appendChild(f)},r.addEventListener("DOMContentLoaded",t,!1)):(t=function(){r.readyState==="complete"&&(r.detachEvent("onreadystatechange",t),window.detachEvent("onload",t),r.body.appendChild(f))},r.attachEvent("onreadystatechange",t)),i.addEvtListener(window,"load",t))}},v=function(){var n={};this.createCallout=function(t){var i;if(t.id){if(n[t.id])throw"Callout by that id already exists. Please choose a unique id.";t.showNextButton=t.showPrevButton=!1;t.isTourBubble=!1;i=new h(t);n[t.id]=i;t.target&&i.render(t,null,null,function(){i.show()})}else throw"Must specify a callout id.";return i};this.getCallout=function(t){return n[t]};this.removeAllCallouts=function(){var t;for(t in n)n.hasOwnProperty(t)&&this.removeCallout(t)};this.removeCallout=function(t){var i=n[t];(n[t]=null,i)&&i.destroy()}},a=function(n){var et=this,d,g,a,l,t,it,p,nt,w=function(n){return d||(d=new h(a)),n&&(i.extend(d.opt,{bubblePadding:f("bubblePadding"),bubbleWidth:f("bubbleWidth"),showNextButton:f("showNextButton"),showPrevButton:f("showPrevButton"),showCloseButton:f("showCloseButton"),arrowWidth:f("arrowWidth")}),d.updateButtons()),d},f=function(n){return typeof a=="undefined"?o[n]:i.valOrDefault(a[n],o[n])},y=function(){return t<0||t>=l.steps.length?null:l.steps[t]},rt=function(){et.nextStep()},ot=function(n){var it=w(),a=it.element,h=i.getPixelValue(a.style.top),v=h+i.getPixelValue(a.offsetHeight),rt=i.getStepTarget(y()),p=rt.getBoundingClientRect(),b=p.top+i.getScrollTop(),d=p.bottom+i.getScrollTop(),o=h<b?h:b,ut=v>d?v:d,e=i.getScrollTop(),ft=e+i.getWindowHeight(),t=o-f("scrollTopMargin"),g,c,nt,s,tt,l;o>=e&&(o<=e+f("scrollTopMargin")||ut<=ft)?n&&n():f("smoothScroll")?typeof YAHOO!==u&&typeof YAHOO.env!==u&&typeof YAHOO.env.ua!==u&&typeof YAHOO.util!==u&&typeof YAHOO.util.Scroll!==u?(g=YAHOO.env.ua.webkit?r.body:r.documentElement,nt=YAHOO.util.Easing?YAHOO.util.Easing.easeOut:undefined,c=new YAHOO.util.Scroll(g,{scroll:{to:[0,t]}},f("scrollDuration")/1e3,nt),c.onComplete.subscribe(n),c.animate()):k?jQuery("body, html").animate({scrollTop:t},f("scrollDuration"),n):(t<0&&(t=0),s=e>o?-1:1,tt=Math.abs(e-t)/(f("scrollDuration")/10),l=function(){var u=i.getScrollTop(),r=u+s*tt;if(s>0&&r>=t||s<0&&r<=t){r=t;n&&n();window.scrollTo(0,r);return}if(window.scrollTo(0,r),i.getScrollTop()===u){n&&n();return}setTimeout(l,10)},l()):(window.scrollTo(0,t),n&&n())},tt=function(n,r){var e,u,f;t+n>=0&&t+n<l.steps.length?(t+=n,u=y(),f=function(){e=i.getStepTarget(u);e?r(t):(i.invokeEventCallbacks("error"),tt(n,r))},u.delay?setTimeout(f,u.delay):f()):r(-1)},ut=function(n,r){var h=w(),c=this,u,e,o,s;if(h.hide()._removeCTACallback(),n=i.valOrDefault(n,!0),u=y(),e=u,o=r>0?e.multipage:t>0&&l.steps[t-1].multipage,s=function(u){var s;if(u===-1)return this.endTour(!0);if(n&&(s=r>0?i.invokeEventCallbacks("next",e.onNext):i.invokeEventCallbacks("prev",e.onPrev)),o){i.setState(f("cookieName"),l.id+":"+t,1);return}s=i.valOrDefault(s,!0);s?this.showStep(u):this.endTour(!1)},!o&&f("skipIfNoElement"))tt(r,function(n){s.call(c,n)});else if(t+r>=0&&t+r<l.steps.length){if(t+=r,u=y(),!i.getStepTarget(u)&&!o)return i.invokeEventCallbacks("error"),this.endTour(!0,!1);s.call(this,t)}return this},st=function(n){var e={},t,r,u;for(t in n)n.hasOwnProperty(t)&&t!=="id"&&t!=="steps"&&(e[t]=n[t]);return nt.call(this,e,!0),r=i.getState(f("cookieName")),r&&(u=r.split(":"),it=u[0],p=u[1],p=parseInt(p,10)),this},ht=function(n,r){var e,u;if(t=n||0,e=y(),u=i.getStepTarget(e),u){r(t);return}if(!u){if(i.invokeEventCallbacks("error"),f("skipIfNoElement")){tt(1,r);return}t=-1;r(t)}},ft=function(n){var r=l.steps[n],s=l.steps,h=s.length,c=l.id+":"+n,u=w(),a=i.getStepTarget(r),o,e;e=function(){u.show();i.invokeEventCallbacks("show",r.onShow)};t=n;u.hide(!1);o=n===h-1;u.render(r,n,o,function(n){n?ot(e):e();r.nextOnTargetClick&&i.addEvtListener(a,"click",rt)});i.setState(f("cookieName"),c,1)},ct=function(n){n&&this.configure(n)};this.getCalloutManager=function(){return typeof g===u&&(g=new v),g};this.startTour=function(n,r){var o,e=this;if(l||(l=n,st.call(this,n)),typeof r!==u){if(r>=l.steps.length)throw"Specified step number out of bounds.";t=r}return i.documentIsReady()?(t||l.id!==it||typeof p===u?t||(t=0):t=p,ht(t,function(n){var t=n!==-1&&i.getStepTarget(l.steps[n]);if(!t){e.endTour(!1,!1);return}i.invokeEventCallbacks("start");o=w();o.hide(!1);e.isActive=!0;i.getStepTarget(y())?e.showStep(n):(i.invokeEventCallbacks("error"),f("skipIfNoElement")&&e.nextStep(!1))}),this):(b=!0,this)};this.showStep=function(n){var t=l.steps[n];return t.delay?setTimeout(function(){ft(n)},t.delay):ft(n),this};this.prevStep=function(n){return ut.call(this,n,-1),this};this.nextStep=function(n){var t=y(),r=i.getStepTarget(t);return t.nextOnTargetClick&&i.removeEvtListener(r,"click",rt),ut.call(this,n,1),this};this.endTour=function(n,r){var u=w();return n=i.valOrDefault(n,!0),r=i.valOrDefault(r,!0),t=0,p=undefined,u.hide(),n&&i.clearState(f("cookieName")),this.isActive&&(this.isActive=!1,l&&r&&i.invokeEventCallbacks("end")),this.removeCallbacks(null,!0),this.resetDefaultOptions(),l=null,this};this.getCurrTour=function(){return l};this.getCurrStepNum=function(){return t};this.listen=function(n,t,i){return n&&s[n].push({cb:t,fromTour:i}),this};this.unlisten=function(n,t){for(var r=s[n],i=0,u=r.length;i<u;++i)r[i]===t&&r.splice(i,1);return this};this.removeCallbacks=function(n,t){var r,i,u;for(var f in s)if(!n||n===f)if(t)for(r=s[f],i=0,u=r.length;i<u;++i)r[i].fromTour&&(r.splice(i--,1),--u);else s[f]=[];return this};this.registerHelper=function(n,t){typeof n=="string"&&typeof t=="function"&&(e[n]=t)};this.unregisterHelper=function(n){e[n]=null};this.invokeHelper=function(n){for(var i=[],t=1,r=arguments.length;t<r;++t)i.push(arguments[t]);e[n]&&e[n].call(null,i)};this.setCookieName=function(n){return a.cookieName=n,this};this.resetDefaultOptions=function(){return a={},this};this.resetDefaultI18N=function(){return c={},this};this.getState=function(){return i.getState(f("cookieName"))};nt=function(n,t){var o,u=["next","prev","start","end","show","error","close"],f,r,e;for(a||this.resetDefaultOptions(),i.extend(a,n),n&&i.extend(c,n.i18n),r=0,e=u.length;r<e;++r)f="on"+u[r].charAt(0).toUpperCase()+u[r].substring(1),n[f]&&this.listen(u[r],n[f],t);return o=w(!0),this};this.configure=function(n){return nt.call(this,n,!1)};ct.call(this,n)},f=new a,n[t]=f)}(window,"hopscotch");AK.TourGuide={tourMob:{id:"hello-hopscotch",i18n:{nextBtn:"Další",prevBtn:"Předchozí"},steps:[{target:document.querySelector(".prihlaseni2"),title:"Můj účet a Historie",content:"Po kliknutí zde najdete:<br>- historii Vašich objednávek<br>- historii procházení<br>- nastavení účtu",placement:"bottom",arrowOffset:-1,xOffset:-180,arrowOffset:220,yOffset:0,zindex:999999999},{target:document.querySelector(".top_search.form-inline"),title:"Plnohodnotné vyhledávání",content:"Nyní vše v jednom poli:<br>- kód ELIT,<br>- kód OE<br>- název produktu",placement:"bottom",arrowOffset:150,xOffset:-150},{target:document.querySelector(".topline button"),title:"Nová struktura katalogu",content:"Přehlednější uspořádání sortimentu",placement:"bottom",xOffset:7,arrowOffset:-1,zindex:999999999}],smoothScroll:!1,scrollDuration:1e3,scrollTopMargin:200,showCloseButton:!0,showPrevButton:!0,showNextButton:!0,bubbleWidth:300,bubblePadding:15,arrowWidth:20,cookieName:"tutorialmob",skipIfNoElement:!0,onEnd:function(){var n=hopscotch.getCurrTour();AK.System.EraseCookie(n.cookieName);AK.System.CreateCookie(n.cookieName,"closed",365)},onClose:function(){var n=hopscotch.getCurrTour();AK.System.EraseCookie(n.cookieName);AK.System.CreateCookie(n.cookieName,"closed",365)}},tour:{id:"hello-hopscotch",i18n:{nextBtn:"Další",prevBtn:"Předchozí"},steps:[{target:"yournavigation",title:"Můj účet a Historie",content:"Po kliknutí zde najdete:<br>- historii Vašich objednávek<br>- historii procházení<br>- nastavení účtu",placement:"bottom",arrowOffset:90,xOffset:-50},{target:document.querySelector(".top_search.form-inline"),title:"Plnohodnotné vyhledávání",content:"Nyní vše v jednom poli:<br>- kód ELIT,<br>- kód OE<br>- název produktu",placement:"bottom",arrowOffset:50,xOffset:-50},{target:document.querySelector("#CatalogMenuUl"),title:"Nová struktura katalogu",content:"Přehlednější uspořádání sortimentu",placement:"right",xOffset:-5,zindex:9999999}],smoothScroll:!1,scrollDuration:1e3,scrollTopMargin:200,showCloseButton:!0,showPrevButton:!0,showNextButton:!0,bubbleWidth:300,bubblePadding:15,arrowWidth:20,cookieName:"tutorial",skipIfNoElement:!0,onEnd:function(){var n=hopscotch.getCurrTour();AK.System.EraseCookie(n.cookieName);AK.System.CreateCookie(n.cookieName,"closed",365)},onClose:function(){var n=hopscotch.getCurrTour();AK.System.EraseCookie(n.cookieName);AK.System.CreateCookie(n.cookieName,"closed",365)}},addClickListener:function(n,t){n.addEventListener?n.addEventListener("click",t,!1):n.attachEvent("onclick",t)},initTour:function(){var i=hopscotch.getCalloutManager(),t=hopscotch.getState(),n;t&&t.indexOf("hello-hopscotch:")===0?(n=AK.System.ReadCookie("tutorial"),n!="closed"&&setTimeout(function(){$(window).width()>767?hopscotch.startTour(AK.TourGuide.tour):hopscotch.startTour(AK.TourGuide.tourMob)},2e3)):(n=AK.System.ReadCookie("tutorial"),n!="closed"&&setTimeout(function(){$(window).width()>767?hopscotch.startTour(AK.TourGuide.tour):hopscotch.startTour(AK.TourGuide.tourMob)},2e3))},show:function(n){AK.TourGuide.initTour(n)}};$(function(){$(".click-fade").click(function(){$(this).addClass("hide")})});$(".active-face").mouseleave(function(){$(this).find(".click-fade").removeClass("hide")});$(document).ready(function(){(function(n){typeof define=="function"&&define.amd?define(["jquery"],n):typeof module=="object"&&module.exports?module.exports=n(require("jquery")):n(jQuery)})(function(n){var e=Array.prototype.slice,h=Array.prototype.splice,u={topSpacing:0,bottomSpacing:0,className:"is-sticky",wrapperClassName:"sticky-wrapper",center:!1,getWidthFrom:"",widthFromWrapper:!0,responsiveWidth:!1,zIndex:"inherit"},f=n(window),c=n(document),i=[],o=f.height(),r=function(){for(var r,u,h,y,e=f.scrollTop(),l=c.height(),a=l-o,v=e>a?a-e:0,s=0,p=i.length;s<p;s++){var t=i[s],w=t.stickyWrapper.offset().top,b=w-t.topSpacing-v;t.stickyWrapper.css("height",t.stickyElement.outerHeight());e<=b?t.currentTop!==null&&(t.stickyElement.css({width:"",position:"",top:"","z-index":""}),t.stickyElement.parent().removeClass(t.className),t.stickyElement.trigger("sticky-end",[t]),t.currentTop=null):(r=l-t.stickyElement.outerHeight()-t.topSpacing-t.bottomSpacing-e-v,r=r<0?r+t.topSpacing:t.topSpacing,t.currentTop!==r&&(t.getWidthFrom?(padding=t.stickyElement.innerWidth()-t.stickyElement.width(),u=n(t.getWidthFrom).width()-padding||null):t.widthFromWrapper&&(u=t.stickyWrapper.width()),u==null&&(u=t.stickyElement.width()),t.stickyElement.css("width",u).css("position","fixed").css("top",r).css("z-index",t.zIndex),t.stickyElement.parent().addClass(t.className),t.currentTop===null?t.stickyElement.trigger("sticky-start",[t]):t.stickyElement.trigger("sticky-update",[t]),t.currentTop===t.topSpacing&&t.currentTop>r||t.currentTop===null&&r<t.topSpacing?t.stickyElement.trigger("sticky-bottom-reached",[t]):t.currentTop!==null&&r===t.topSpacing&&t.currentTop<r&&t.stickyElement.trigger("sticky-bottom-unreached",[t]),t.currentTop=r),h=t.stickyWrapper.parent(),y=t.stickyElement.offset().top+t.stickyElement.outerHeight()>=h.offset().top+h.outerHeight()&&t.stickyElement.offset().top<=t.topSpacing,y?t.stickyElement.css("position","absolute").css("top","").css("bottom",0).css("z-index",""):t.stickyElement.css("position","fixed").css("top",r).css("bottom","").css("z-index",t.zIndex))}},s=function(){var u,e,t,r;for(o=f.height(),u=0,e=i.length;u<e;u++)t=i[u],r=null,t.getWidthFrom?t.responsiveWidth&&(r=n(t.getWidthFrom).width()):t.widthFromWrapper&&(r=t.stickyWrapper.width()),r!=null&&t.stickyElement.css("width",r)},t={init:function(r){return this.each(function(){var e=n.extend({},u,r),f=n(this),s=f.attr("id"),h=s?s+"-"+u.wrapperClassName:u.wrapperClassName,c=n("<div><\/div>").attr("id",h).addClass(e.wrapperClassName),o;f.wrapAll(function(){if(n(this).parent("#"+h).length==0)return c});o=f.parent();e.center&&o.css({width:f.outerWidth(),marginLeft:"auto",marginRight:"auto"});f.css("float")==="right"&&f.css({float:"none"}).parent().css({float:"right"});e.stickyElement=f;e.stickyWrapper=o;e.currentTop=null;i.push(e);t.setWrapperHeight(this);t.setupChangeListeners(this)})},setWrapperHeight:function(t){var i=n(t),r=i.parent();r&&r.css("height",i.outerHeight())},setupChangeListeners:function(n){if(window.MutationObserver){var i=new window.MutationObserver(function(i){(i[0].addedNodes.length||i[0].removedNodes.length)&&t.setWrapperHeight(n)});i.observe(n,{subtree:!0,childList:!0})}else window.addEventListener?(n.addEventListener("DOMNodeInserted",function(){t.setWrapperHeight(n)},!1),n.addEventListener("DOMNodeRemoved",function(){t.setWrapperHeight(n)},!1)):window.attachEvent&&(n.attachEvent("onDOMNodeInserted",function(){t.setWrapperHeight(n)}),n.attachEvent("onDOMNodeRemoved",function(){t.setWrapperHeight(n)}))},update:r,unstick:function(){return this.each(function(){for(var r=this,u=n(r),f=-1,t=i.length;t-->0;)i[t].stickyElement.get(0)===r&&(h.call(i,t,1),f=t);f!==-1&&(u.unwrap(),u.css({width:"",position:"",top:"",float:"","z-index":""}))})}};window.addEventListener?(window.addEventListener("scroll",r,!1),window.addEventListener("resize",s,!1)):window.attachEvent&&(window.attachEvent("onscroll",r),window.attachEvent("onresize",s));n.fn.sticky=function(i){if(t[i])return t[i].apply(this,e.call(arguments,1));if(typeof i!="object"&&i)n.error("Method "+i+" does not exist on jQuery.sticky");else return t.init.apply(this,arguments)};n.fn.unstick=function(i){if(t[i])return t[i].apply(this,e.call(arguments,1));if(typeof i!="object"&&i)n.error("Method "+i+" does not exist on jQuery.sticky");else return t.unstick.apply(this,arguments)};n(function(){setTimeout(r,0)})});$("#package_sum").sticky({topSpacing:35})});Sticky=function(){function n(){var i=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"",t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};_classCallCheck(this,n);this.selector=i;this.elements=[];this.version="1.2.2";this.vp=this.getViewportSize();this.body=document.querySelector("body");this.options={wrap:t.wrap||!1,marginTop:t.marginTop||0,stickyFor:t.stickyFor||0,stickyClass:t.stickyClass||null,stickyContainer:t.stickyContainer||"body"};this.updateScrollTopPosition=this.updateScrollTopPosition.bind(this);this.updateScrollTopPosition();window.addEventListener("load",this.updateScrollTopPosition);window.addEventListener("scroll",this.updateScrollTopPosition);this.run()}return _createClass(n,[{key:"run",value:function(){var n=this,t=setInterval(function(){if(document.readyState==="complete"){clearInterval(t);var i=document.querySelectorAll(n.selector);n.forEach(i,function(t){return n.renderElement(t)})}},10)}},{key:"renderElement",value:function(n){var t=this;n.sticky={};n.sticky.active=!1;n.sticky.marginTop=parseInt(n.getAttribute("data-margin-top"))||this.options.marginTop;n.sticky.stickyFor=parseInt(n.getAttribute("data-sticky-for"))||this.options.stickyFor;n.sticky.stickyClass=n.getAttribute("data-sticky-class")||this.options.stickyClass;n.sticky.wrap=n.hasAttribute("data-sticky-wrap")?!0:this.options.wrap;n.sticky.stickyContainer=this.options.stickyContainer;n.sticky.container=this.getStickyContainer(n);n.sticky.container.rect=this.getRectangle(n.sticky.container);n.sticky.rect=this.getRectangle(n);n.tagName.toLowerCase()==="img"&&(n.onload=function(){return n.sticky.rect=t.getRectangle(n)});n.sticky.wrap&&this.wrapElement(n);this.activate(n)}},{key:"wrapElement",value:function(n){n.insertAdjacentHTML("beforebegin","<span><\/span>");n.previousSibling.appendChild(n)}},{key:"activate",value:function(n){n.sticky.rect.top+n.sticky.rect.height<n.sticky.container.rect.top+n.sticky.container.rect.height&&n.sticky.stickyFor<this.vp.width&&!n.sticky.active&&(n.sticky.active=!0);this.elements.indexOf(n)<0&&this.elements.push(n);n.sticky.resizeEvent||(this.initResizeEvents(n),n.sticky.resizeEvent=!0);n.sticky.scrollEvent||(this.initScrollEvents(n),n.sticky.scrollEvent=!0);this.setPosition(n)}},{key:"initResizeEvents",value:function(n){var t=this;n.sticky.resizeListener=function(){return t.onResizeEvents(n)};window.addEventListener("resize",n.sticky.resizeListener)}},{key:"destroyResizeEvents",value:function(n){window.removeEventListener("resize",n.sticky.resizeListener)}},{key:"onResizeEvents",value:function(n){this.vp=this.getViewportSize();n.sticky.rect=this.getRectangle(n);n.sticky.container.rect=this.getRectangle(n.sticky.container);n.sticky.rect.top+n.sticky.rect.height<n.sticky.container.rect.top+n.sticky.container.rect.height&&n.sticky.stickyFor<this.vp.width&&!n.sticky.active?n.sticky.active=!0:(n.sticky.rect.top+n.sticky.rect.height>=n.sticky.container.rect.top+n.sticky.container.rect.height||n.sticky.stickyFor>=this.vp.width&&n.sticky.active)&&(n.sticky.active=!1);this.setPosition(n)}},{key:"initScrollEvents",value:function(n){var t=this;n.sticky.scrollListener=function(){return t.onScrollEvents(n)};window.addEventListener("scroll",n.sticky.scrollListener)}},{key:"destroyScrollEvents",value:function(n){window.removeEventListener("scroll",n.sticky.scrollListener)}},{key:"onScrollEvents",value:function(n){n.sticky.active&&this.setPosition(n)}},{key:"setPosition",value:function(n){(this.css(n,{position:"",width:"",top:"",left:""}),this.vp.height<n.sticky.rect.height||!n.sticky.active)||(n.sticky.rect.width||(n.sticky.rect=this.getRectangle(n)),n.sticky.wrap&&this.css(n.parentNode,{display:"block",width:n.sticky.rect.width+"px",height:n.sticky.rect.height+"px"}),n.sticky.rect.top===0&&n.sticky.container===this.body?this.css(n,{position:"fixed",top:n.sticky.rect.top+"px",left:n.sticky.rect.left+"px",width:n.sticky.rect.width+"px"}):this.scrollTop>n.sticky.rect.top-n.sticky.marginTop?(this.css(n,{position:"fixed",width:n.sticky.rect.width+"px",left:n.sticky.rect.left+"px"}),this.scrollTop+n.sticky.rect.height+n.sticky.marginTop>n.sticky.container.rect.top+n.sticky.container.offsetHeight?(n.sticky.stickyClass&&n.classList.remove(n.sticky.stickyClass),this.css(n,{top:n.sticky.container.rect.top+n.sticky.container.offsetHeight-(this.scrollTop+n.sticky.rect.height)+"px"})):(n.sticky.stickyClass&&n.classList.add(n.sticky.stickyClass),this.css(n,{top:n.sticky.marginTop+"px"}))):(n.sticky.stickyClass&&n.classList.remove(n.sticky.stickyClass),this.css(n,{position:"",width:"",top:"",left:""}),n.sticky.wrap&&this.css(n.parentNode,{display:"",width:"",height:""})))}},{key:"update",value:function(){var n=this;this.forEach(this.elements,function(t){t.sticky.rect=n.getRectangle(t);t.sticky.container.rect=n.getRectangle(t.sticky.container);n.activate(t);n.setPosition(t)})}},{key:"destroy",value:function(){var n=this;window.removeEventListener("load",this.updateScrollTopPosition);window.removeEventListener("scroll",this.updateScrollTopPosition);this.forEach(this.elements,function(t){n.destroyResizeEvents(t);n.destroyScrollEvents(t);delete t.sticky})}},{key:"getStickyContainer",value:function(n){for(var t=n.parentNode;!t.hasAttribute("data-sticky-container")&&!t.parentNode.querySelector(n.sticky.stickyContainer)&&t!==this.body;)t=t.parentNode;return t}},{key:"getRectangle",value:function(n){this.css(n,{position:"",width:"",top:"",left:""});var r=Math.max(n.offsetWidth,n.clientWidth,n.scrollWidth),u=Math.max(n.offsetHeight,n.clientHeight,n.scrollHeight),t=0,i=0;do t+=n.offsetTop||0,i+=n.offsetLeft||0,n=n.offsetParent;while(n);return{top:t,left:i,width:r,height:u}}},{key:"getViewportSize",value:function(){return{width:Math.max(document.documentElement.clientWidth,window.innerWidth||0),height:Math.max(document.documentElement.clientHeight,window.innerHeight||0)}}},{key:"updateScrollTopPosition",value:function(){this.scrollTop=(window.pageYOffset||document.scrollTop)-(document.clientTop||0)||0}},{key:"forEach",value:function(n,t){for(var i=0,r=n.length;i<r;i++)t(n[i])}},{key:"css",value:function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n.style[i]=t[i])}}]),n}(),function(n,t){typeof exports!="undefined"?module.exports=t:typeof define=="function"&&define.amd?define([],function(){return t}):n.Sticky=t}(this,Sticky);$(document).ready(function(){function t(){var t=$("#orig_table_head"),i=$("#clone_table_head"),f=t.children(),r,u;f.length&&t.length&&(r=t.clone(),r.attr("id","itisclone"),u=t.offset().top,r.children().width(function(n){return f.eq(n).width()}),r.appendTo("#clone_table_head"),$(window).bind("scroll",function(){if($(window).width()>1170){var n=$(this).scrollTop();n>=u&&i.is(":hidden")?i.show():n<u&&i.hide()}else i.hide()}),$("#clone_table_head").scrollToFixed({marginTop:$("#origin_table_head").outerHeight()+35}));n=!0}var n=!1;if(window.addEventListener("resize",function(){n&&$("#clone_table_head").children().children().width(function(n){return $("#orig_table_head").children().eq(n).width()})}),setTimeout(function(){t()},5e3),!($(".GraphicScheme_IFrameContainer")==="undefined"))$(window).on("resize",function(){var n=$("#GraphicScheme_IFrame").width();$("#GraphicScheme_IFrame").height(n*.5625)});if(!($("#HPRootMenuContainer")==="undefined"))$(window).on("resize",function(){$(this).width()<=750&&!$("#HPRootMenuContainer").hasClass("mobile-ready")?$("#HPRootMenuContainer").addClass("mobile-ready"):$(this).width()>750&&$("#HPRootMenuContainer").hasClass("mobile-ready")&&$("#HPRootMenuContainer").removeClass("mobile-ready")});$.browser.safari&&$("body").addClass("safari");$(".buttonTopA").click(function(){$("html, body").animate({scrollTop:0},500)})});!function(n){"use strict";function t(n){return function(t){if(t&&this===t.target)return n.apply(this,arguments)}}var r=function(n,t){this.init(n,t)},i;r.prototype={constructor:r,init:function(t,i){if(this.$element=n(t),this.options=n.extend({},n.fn.modalmanager.defaults,this.$element.data(),typeof i=="object"&&i),this.stack=[],this.backdropCount=0,this.options.resize){var r,u=this;n(window).on("resize.modal",function(){r&&clearTimeout(r);r=setTimeout(function(){for(var n=0;n<u.stack.length;n++)u.stack[n].isShown&&u.stack[n].layout()},10)})}},createModal:function(t,i){n(t).modal(n.extend({manager:this},i))},appendModal:function(i){this.stack.push(i);var r=this;i.$element.on("show.modalmanager",t(function(){var t=function(){i.isShown=!0;var t=n.support.transition&&i.$element.hasClass("fade");r.$element.toggleClass("modal-open",r.hasOpenModal()).toggleClass("page-overflow",n(window).height()<r.$element.height());i.$parent=i.$element.parent();i.$container=r.createContainer(i);i.$element.appendTo(i.$container);r.backdrop(i,function(){i.$element.show();t&&i.$element[0].offsetWidth;i.layout();i.$element.addClass("in").attr("aria-hidden",!1);var u=function(){r.setFocus();i.$element.trigger("shown")};t?i.$element.one(n.support.transition.end,u):u()})};i.options.replace?r.replace(t):t()}));i.$element.on("hidden.modalmanager",t(function(){if(r.backdrop(i),i.$element.parent().length)if(i.$backdrop){var t=n.support.transition&&i.$element.hasClass("fade");t&&i.$element[0].offsetWidth;n.support.transition&&i.$element.hasClass("fade")?i.$backdrop.one(n.support.transition.end,function(){i.destroy()}):i.destroy()}else i.destroy();else r.destroyModal(i)}));i.$element.on("destroyed.modalmanager",t(function(){r.destroyModal(i)}))},getOpenModals:function(){for(var t=[],n=0;n<this.stack.length;n++)this.stack[n].isShown&&t.push(this.stack[n]);return t},hasOpenModal:function(){return this.getOpenModals().length>0},setFocus:function(){for(var t,n=0;n<this.stack.length;n++)this.stack[n].isShown&&(t=this.stack[n]);t&&t.focus()},destroyModal:function(n){n.$element.off(".modalmanager");n.$backdrop&&this.removeBackdrop(n);this.stack.splice(this.getIndexOfModal(n),1);var t=this.hasOpenModal();this.$element.toggleClass("modal-open",t);t||this.$element.removeClass("page-overflow");this.removeContainer(n);this.setFocus()},getModalAt:function(n){return this.stack[n]},getIndexOfModal:function(n){for(var t=0;t<this.stack.length;t++)if(n===this.stack[t])return t},replace:function(i){for(var r,u=0;u<this.stack.length;u++)this.stack[u].isShown&&(r=this.stack[u]);r?(this.$backdropHandle=r.$backdrop,r.$backdrop=null,i&&r.$element.one("hidden",t(n.proxy(i,this))),r.hide()):i&&i()},removeBackdrop:function(n){n.$backdrop.remove();n.$backdrop=null},createBackdrop:function(t,i){var r;return this.$backdropHandle?(r=this.$backdropHandle,r.off(".modalmanager"),this.$backdropHandle=null,this.isLoading&&this.removeSpinner()):r=n(i).addClass(t).appendTo(this.$element),r},removeContainer:function(n){n.$container.remove();n.$container=null},createContainer:function(r){var u;if(u=n('<div class="modal-scrollable">').css("z-index",i("modal",this.getOpenModals().length)).appendTo(this.$element),r&&r.options.backdrop!="static")u.on("click.modal",t(function(){r.hide()}));else if(r)u.on("click.modal",t(function(){r.attention()}));return u},backdrop:function(t,r){var e=t.$element.hasClass("fade")?"fade":"",o=t.options.backdrop&&this.backdropCount<this.options.backdropLimit,u,f;t.isShown&&o?(u=n.support.transition&&e&&!this.$backdropHandle,t.$backdrop=this.createBackdrop(e,t.options.backdropTemplate),t.$backdrop.css("z-index",i("backdrop",this.getOpenModals().length)),u&&t.$backdrop[0].offsetWidth,t.$backdrop.addClass("in"),this.backdropCount+=1,u?t.$backdrop.one(n.support.transition.end,r):r()):!t.isShown&&t.$backdrop?(t.$backdrop.removeClass("in"),this.backdropCount-=1,f=this,n.support.transition&&t.$element.hasClass("fade")?t.$backdrop.one(n.support.transition.end,function(){f.removeBackdrop(t)}):f.removeBackdrop(t)):r&&r()},removeSpinner:function(){this.$spinner&&this.$spinner.remove();this.$spinner=null;this.isLoading=!1},removeLoading:function(){this.$backdropHandle&&this.$backdropHandle.remove();this.$backdropHandle=null;this.removeSpinner()},loading:function(t){var r,f,u;t=t||function(){};this.$element.toggleClass("modal-open",!this.isLoading||this.hasOpenModal()).toggleClass("page-overflow",n(window).height()<this.$element.height());this.isLoading?this.isLoading&&this.$backdropHandle?(this.$backdropHandle.removeClass("in"),u=this,n.support.transition?this.$backdropHandle.one(n.support.transition.end,function(){u.removeLoading()}):u.removeLoading()):t&&t(this.isLoading):(this.$backdropHandle=this.createBackdrop("fade",this.options.backdropTemplate),this.$backdropHandle[0].offsetWidth,r=this.getOpenModals(),this.$backdropHandle.css("z-index",i("backdrop",r.length+1)).addClass("in"),f=n(this.options.spinner).css("z-index",i("modal",r.length+1)).appendTo(this.$element).addClass("in"),this.$spinner=n(this.createContainer()).append(f).on("click.modalmanager",n.proxy(this.loading,this)),this.isLoading=!0,n.support.transition?this.$backdropHandle.one(n.support.transition.end,t):t())}};i=function(){var i,t={};return function(r,u){if(typeof i=="undefined"){var f=n('<div class="modal hide" />').appendTo("body"),e=n('<div class="modal-backdrop hide" />').appendTo("body");t.modal=+f.css("z-index");t.backdrop=+e.css("z-index");i=t.modal-t.backdrop;f.remove();e.remove();e=f=null}return t[r]+i*u}}();n.fn.modalmanager=function(t,i){return this.each(function(){var f=n(this),u=f.data("modalmanager");u||f.data("modalmanager",u=new r(this,t));typeof t=="string"&&u[t].apply(u,[].concat(i))})};n.fn.modalmanager.defaults={backdropLimit:999,resize:!0,spinner:'<div class="loading-spinner fade" style="width: 200px; margin-left: -100px;"><div class="progress progress-striped active"><div class="bar" style="width: 100%;"><\/div><\/div><\/div>',backdropTemplate:'<div class="modal-backdrop" />'};n.fn.modalmanager.Constructor=r;n(function(){n(document).off("show.bs.modal").off("hidden.bs.modal")})}(jQuery);!function(n){"use strict";var t=function(n,t){this.init(n,t)};t.prototype={constructor:t,init:function(t,i){var u=this,r;this.options=i;this.$element=n(t).delegate('[data-dismiss="modal"]',"click.dismiss.modal",n.proxy(this.hide,this));this.options.remote&&this.$element.find(".modal-body").load(this.options.remote,function(){var t=n.Event("loaded");u.$element.trigger(t)});r=typeof this.options.manager=="function"?this.options.manager.call(this):this.options.manager;r=r.appendModal?r:n(r).modalmanager().data("modalmanager");r.appendModal(this)},toggle:function(){return this[this.isShown?"hide":"show"]()},show:function(){var t=n.Event("show");this.isShown||(this.$element.trigger(t),t.isDefaultPrevented())||(this.escape(),this.tab(),this.options.loading&&this.loading())},hide:function(t){(t&&t.preventDefault(),t=n.Event("hide"),this.$element.trigger(t),this.isShown&&!t.isDefaultPrevented())&&(this.isShown=!1,this.escape(),this.tab(),this.isLoading&&this.loading(),n(document).off("focusin.modal"),this.$element.removeClass("in").removeClass("animated").removeClass(this.options.attentionAnimation).removeClass("modal-overflow").attr("aria-hidden",!0),n.support.transition&&this.$element.hasClass("fade")?this.hideWithTransition():this.hideModal())},layout:function(){var i=this.options.height?"height":"max-height",r=this.options.height||this.options.maxHeight,t,u;this.options.width?(this.$element.css("width",this.options.width),t=this,this.$element.css("margin-left",function(){return/%/ig.test(t.options.width)?-(parseInt(t.options.width)/2)+"%":-(n(this).width()/2)+"px"})):(this.$element.css("width",""),this.$element.css("margin-left",""));this.$element.find(".modal-body").css("overflow","").css(i,"");r&&this.$element.find(".modal-body").css("overflow","auto").css(i,r);u=n(window).height()-10<this.$element.height();u||this.options.modalOverflow?this.$element.css("margin-top",0).addClass("modal-overflow"):this.$element.css("margin-top",0-this.$element.height()/2).removeClass("modal-overflow")},tab:function(){var t=this;if(this.isShown&&this.options.consumeTab)this.$element.on("keydown.tabindex.modal","[data-tabindex]",function(i){var r,f,u;i.keyCode&&i.keyCode==9&&(r=[],f=Number(n(this).data("tabindex")),t.$element.find("[data-tabindex]:enabled:visible:not([readonly])").each(function(){r.push(Number(n(this).data("tabindex")))}),r.sort(function(n,t){return n-t}),u=n.inArray(f,r),i.shiftKey?u==0?t.$element.find("[data-tabindex="+r[r.length-1]+"]").focus():t.$element.find("[data-tabindex="+r[u-1]+"]").focus():u<r.length-1?t.$element.find("[data-tabindex="+r[u+1]+"]").focus():t.$element.find("[data-tabindex="+r[0]+"]").focus(),i.preventDefault())});else this.isShown||this.$element.off("keydown.tabindex.modal")},escape:function(){var n=this;if(this.isShown&&this.options.keyboard){this.$element.attr("tabindex")||this.$element.attr("tabindex",-1);this.$element.on("keyup.dismiss.modal",function(t){t.which==27&&n.hide()})}else this.isShown||this.$element.off("keyup.dismiss.modal")},hideWithTransition:function(){var t=this,i=setTimeout(function(){t.$element.off(n.support.transition.end);t.hideModal()},500);this.$element.one(n.support.transition.end,function(){clearTimeout(i);t.hideModal()})},hideModal:function(){var n=this.options.height?"height":"max-height",t=this.options.height||this.options.maxHeight;t&&this.$element.find(".modal-body").css("overflow","").css(n,"");this.$element.hide().trigger("hidden")},removeLoading:function(){this.$loading.remove();this.$loading=null;this.isLoading=!1},loading:function(t){var i,r,u;t=t||function(){};i=this.$element.hasClass("fade")?"fade":"";this.isLoading?this.isLoading&&this.$loading?(this.$loading.removeClass("in"),u=this,n.support.transition&&this.$element.hasClass("fade")?this.$loading.one(n.support.transition.end,function(){u.removeLoading()}):u.removeLoading()):t&&t(this.isLoading):(r=n.support.transition&&i,this.$loading=n('<div class="loading-mask '+i+'">').append(this.options.spinner).appendTo(this.$element),r&&this.$loading[0].offsetWidth,this.$loading.addClass("in"),this.isLoading=!0,r?this.$loading.one(n.support.transition.end,t):t())},focus:function(){var n=this.$element.find(this.options.focusOn);n=n.length?n:this.$element;n.focus()},attention:function(){if(this.options.attentionAnimation){this.$element.removeClass("animated").removeClass(this.options.attentionAnimation);var n=this;setTimeout(function(){n.$element.addClass("animated").addClass(n.options.attentionAnimation)},0)}this.focus()},destroy:function(){var t=n.Event("destroy");(this.$element.trigger(t),t.isDefaultPrevented())||(this.$element.off(".modal").removeData("modal").removeClass("in").attr("aria-hidden",!0),this.$parent!==this.$element.parent()?this.$element.appendTo(this.$parent):this.$parent.length||(this.$element.remove(),this.$element=null),this.$element.trigger("destroyed"))}};n.fn.modal=function(i,r){return this.each(function(){var f=n(this),u=f.data("modal"),e=n.extend({},n.fn.modal.defaults,f.data(),typeof i=="object"&&i);u||f.data("modal",u=new t(this,e));typeof i=="string"?u[i].apply(u,[].concat(r)):e.show&&u.show()})};n.fn.modal.defaults={keyboard:!0,backdrop:!0,loading:!1,show:!0,width:null,height:null,maxHeight:null,modalOverflow:!1,consumeTab:!0,focusOn:null,replace:!1,resize:!1,attentionAnimation:"shake",manager:"body",spinner:'<div class="loading-spinner" style="width: 200px; margin-left: -100px;"><div class="progress progress-striped active"><div class="bar" style="width: 100%;"><\/div><\/div><\/div>',backdropTemplate:'<div class="modal-backdrop" />'};n.fn.modal.Constructor=t;n(function(){n(document).off("click.modal").on("click.modal.data-api",'[data-toggle="modal"]',function(t){var i=n(this),r=i.attr("href"),u=n(i.attr("data-target")||r&&r.replace(/.*(?=#[^\s]+$)/,"")),f=u.data("modal")?"toggle":n.extend({remote:!/#/.test(r)&&r},u.data(),i.data());t.preventDefault();u.modal(f).one("hide",function(){i.focus()})})})}(window.jQuery);QuickSidebar=function(){$(".dropdown-quick-sidebar-toggler").ready(function(){$("body").hasClass("filter-parameters-open")?$("body").removeClass("filter-parameters-open"):$("body").addClass("filter-parameters-open")})};$(document).ready(function(){$("#AKLoginDialog").popover({html:!0,trigger:"manual",delay:{show:"500",hide:"100"},template:'<div class="popover app-popover-fw"><div class="arrow"><\/div><h3 class="popover-title"><\/h3><div class="close">×<\/div><i class="infoPopup glyphicon icon-info"><\/i><div class="popover-content"><\/div><\/div>'}).show(function(){$(this).popover("toggle")});$("#AKLoginDialog").popover({}).click(function(){$(this).popover("hide")});$(".nic").click(function(){}).toggle(function(){$(this).text("SKRÝT POPIS")},function(){$(this).text("ZOBRAZIT POPIS")})}),function(n,t){function u(t){n(t).length&&n("html,body").animate({scrollTop:n(t).offset().top},"slow")}function i(t){if(typeof t=="undefined")var t=!1;n("html.content-transitions").length||n("html").addClass("content-transitions");(!n("html.sidebar-width-mini").length||t)&&n("html.sidebar-width-mini").length||n(".container-fluid:first").toggleClass("menu-hidden sidebar-hidden-phone")}!Modernizr.touch&&n('[href="#template-options"][data-auto-open]').length&&n("#template-options").collapse("show");t.randNum=function(){return Math.floor(Math.random()*21)+20};t.equalHeight=function(i,r){var r,u;(typeof r=="undefined"&&(r=0),i.height("auto"),parseInt(n(t).width())<=400)||(u=Math.max.apply(Math,i.map(function(){return n(this).height()-r}).get()),i.height(u))};t.beautify=function(n){var t={};return t.preserve_newlines=!1,html_beautify(n,t)};t.mt_rand=function(n,t){var i=arguments.length;if(i===0)n=0,t=2147483647;else if(i===1)throw new Error("Warning: mt_rand() expects exactly 2 parameters, 1 given");else n=parseInt(n,10),t=parseInt(t,10);return Math.floor(Math.random()*(t-n+1))+n};n("html.sidebar .container-fluid").on("movestart",function(n){(n.distX>n.distY&&n.distX<-n.distY||n.distX<n.distY&&n.distX>-n.distY)&&n.preventDefault()});n("#HPCarousel").on("swiperight",function(){n(this).carousel("prev")});n("#HPCarousel").on("swipeleft",function(){n(this).carousel("next")});n(".navbar.main .btn-navbar, #menu .btn-navbar").on("click",function(){catalogMenuNavBarClick()});if(catalogMenuNavBarClick=function(){n(this).parents(".menu-hidden").length&&i(!0);n("#ChangeLogo").attr("src")==="/Images/"+gImagePath+"/AKLogo.png"?n("#ChangeLogo").attr({src:"/Images/"+gImagePath+"/AKLogoSmall.png"}):n("#ChangeLogo").attr({src:"/Images/"+gImagePath+"/AKLogo.png"});n("#ChangeLogo").toggleClass("smalllogo");i()},n("html.sidebar-collapsible").length)n("#menu .collapse").on("show.bs.collapse",function(t){t.stopPropagation();n(this).parents(".hasSubmenu:first").addClass("active");n("html.sidebar-collapsible .container-fluid:first").is(".menu-hidden")&&i()}).on("hidden.bs.collapse",function(t){t.stopPropagation();n(this).parents(".hasSubmenu:first").removeClass("active")});var r=!1;n("#menu").click("mouseenter",function(){r=!0}).live("mouseleave",function(){r=!1});n(".submenu").hover(function(){n(this).children("ul").removeClass("submenu-hide").addClass("submenu-show")},function(){n(this).children("ul").removeClass("submenu-show").addClass("submenu-hide")});n("body").tooltip({selector:'[data-toggle="tooltip"]'});n('[data-toggle="popover"]').popover();n('[data-toggle*="btn-loading"]').click(function(){var t=n(this);t.button("loading");setTimeout(function(){t.button("reset")},3e3)});n('[data-toggle*="button-loading"]').click(function(){var t=n(this);t.button("loading")});n('[data-toggle="print"]').click(function(n){n.preventDefault();t.print()});n(".carousel").carousel();n(".prettyprint").length&&typeof prettyPrint!="undefined"&&prettyPrint();n(".btn-source-toggle").click(function(t){t.preventDefault();n(".code:not(.show)").toggleClass("hide")});n('[data-toggle="hide"]').click(function(){n(this).is(".bootboxTarget")?bootbox.alert(n(n(this).attr("data-target")).html()):(n(n(this).attr("data-target")).toggleClass("hide"),n(this).is(".scrollTarget")&&!n(n(this).attr("data-target")).is(".hide")&&u(n(this).attr("data-target")))});(typeof n.cookie=="undefined"||!n.cookie("menuHidden")||n.cookie("menuHidden")!="true")&&(n(".container-fluid").is(".menu-hidden")||n("#menu").is(":visible"))||i(!0);n("#content .slim-scroll").each(function(){var t=n(this).attr("data-scroll-size")?n(this).attr("data-scroll-size"):"7px";n(this).slimScroll({height:n(this).attr("data-scroll-height"),allowPageScroll:!1,railVisible:!0,railDraggable:n.fn.draggable?!0:!1})})}(jQuery,window),function(n){"use strict";function f(n){return new RegExp("(^|\\s+)"+n+"(\\s+|$)")}function e(n,u){var f=t(n,u)?r:i;f(n,u)}var t,i,r,u;"classList"in document.documentElement?(t=function(n,t){return n.classList.contains(t)},i=function(n,t){n.classList.add(t)},r=function(n,t){n.classList.remove(t)}):(t=function(n,t){return f(t).test(n.className)},i=function(n,i){t(n,i)||(n.className=n.className+" "+i)},r=function(n,t){n.className=n.className.replace(f(t)," ")});u={hasClass:t,addClass:i,removeClass:r,toggleClass:e,has:t,add:i,remove:r,toggle:e};typeof define=="function"&&define.amd?define(u):typeof exports=="object"?module.exports=u:n.classie=u}(window);cbpAnimatedHeader=function(){function o(){window.addEventListener("scroll",function(){t||(t=!0,setTimeout(s,105))},!1)}function s(){var f=h();f>=e?$(window).width()>767&&(classie.add(i,"na2"),classie.add(r,"na3"),classie.add(u,"top50"),n&&classie.add(n,"hide")):(classie.remove(i,"na2"),classie.remove(r,"na3"),classie.remove(u,"top50"),n&&classie.remove(n,"hide"));t=!1}function h(){return window.pageYOffset||f.scrollTop}var f=document.documentElement,i=document.querySelector(".TopLine"),r=document.querySelector(".navbar.main.hl"),u=document.querySelector("#content"),n=document.querySelector(".kusy"),c=document.querySelector(".buttonTopA"),t=!1,e=50;o()};$(document).ready(function(){cbpAnimatedHeader();setTimeout(function(){footerAccordeon()},2e3)}),function(n){n.cookie={setCookie:function(n,t,i){var r,u;i?(r=new Date,r.setTime(r.getTime()+i*864e5),u="; expires="+r.toGMTString()):u="";document.cookie=n+"="+t+u+"; path=/"},getCookie:function(n){for(var t,r=n+"=",u=document.cookie.split(";"),i=0;i<u.length;i++){for(t=u[i];t.charAt(0)==" ";)t=t.substring(1,t.length);if(t.indexOf(r)==0)return t.substring(r.length,t.length)}return null},removeCookie:function(n){createCookie(n,"",-1)}}}(jQuery),function(n){n.settings={serverUrl:window.__tmp="https://provider-netium.autokelly.cz",url_getCar:window.__tmp+"/configurator/model/get-car-by-guid/{guid}?jsoncallback=?",url_getWheel:window.__tmp+"/configurator/model/get-wheel/{hash}?jsoncallback=?",url_largePreview:"configurator_canvas_large.html?mode=large",default_car_color:"000000",BRAKES_DATA:{left:{image_path:window.__tmp+"/images/brake/left_brake_1.png?2011092601",image_height:55,image_width:55,offset_left:1,offset_top:-1,big_image_path:window.__tmp+"/images/brake/left_brake_1.big.png?2011092601",big_image_height:67,big_image_width:67,big_offset_left:-2,big_offset_top:0},right:{image_path:window.__tmp+"/images/brake/right_brake_1.png?2011092601",image_height:55,image_width:55,offset_left:1,offset_top:-1,big_image_path:window.__tmp+"/images/brake/right_brake_1.big.png?2011092601",big_image_height:67,big_image_width:67,big_offset_left:2,big_offset_top:0}}}}(jQuery),function(n){n.car={brakesData:n.settings.BRAKES_DATA,data:{car:null,image_fragments:null},activeWheel:null,setData:function(t,i){var r,u,f;if(i==null&&(i=!1),n.car.setWheels(null),t==null)n.car.data.car=null,n.car.data.image_fragments=null;else{if(n.car.data.car=t.car,t.image_fragments)for(r in t.image_fragments)t.image_fragments[r].image_path=n.settings.serverUrl+t.image_fragments[r].image_path;n.car.data.image_fragments=t.image_fragments}if(i||n.car.renderCar(),t&&t.image_fragments&&n.car.isAnonymous()==!1)for(r in t.image_fragments)u=new Image,f=new RegExp(".png([^/\\\\]|$)","ig"),u.src=t.image_fragments[r].image_path.replace(f,".big.png$1")},setCarByGuid:function(t){if(t==null){n.car.setData(null);return}var i=n.settings.url_getCar.replace("{guid}",t);try{n.getJSON(i,{format:"json"},function(t){n.car.setData(t)})}catch(r){}},setWheels:function(t){n.car.activeWheel=t;var i=n.configurator.getCurrentCanvasName();frame=top.frames[i];typeof frame.setWheels!="undefined"&&frame.setWheels(t)},setWheelsByParams:function(t,i,r){var u=t+"|"+i+"|"+r,f=n.settings.url_getWheel.replace("{hash}",u);n.getJSON(f,{format:"json"},function(t){var t=t?t.data:null;if(t&&(t.image_path=n.settings.serverUrl+t.image_path,t.big_image_path=n.settings.serverUrl+t.big_image_path),n.configurator.onCanvasStateChangeListener)n.configurator.onCanvasStateChangeListener("before-wheels-rendered",t);if(n.car.setWheels(t),n.configurator.onCanvasStateChangeListener)n.configurator.onCanvasStateChangeListener("after-wheels-rendered",t)})},getActiveWheel:function(){return n.car.activeWheel},hasLargePreview:function(){return!n.car.data||!n.car.data.car?null:n.car.data.car.has_big_image},isAnonymous:function(){return!n.car.data||!n.car.data.car?null:n.car.data.car.is_anonymous},exists:function(){return!n.car.data||!n.car.data.car?null:n.car.data.car.found},renderCar:function(){if(n.configurator.onCanvasStateChangeListener)n.configurator.onCanvasStateChangeListener("before-car-rendered",n.car.data);var t=n.configurator.getCurrentCanvasName(),i=n.car.data.image_fragments;n.car.preload.onStart(!0,!1);if(top.frames[t].setWheelsVisibility(!1),i==null){n.car.preload.onCarLoadFinish(!1);return}if(i.length<n.settings.CAR_FRAGMENTS_COUNT){n.car.preload.onCarLoadFinish(!1);return}top.frames[t].setWheelPositions(n.car.data.car);top.frames[t].renderFragments(i,function(){n.car.preload.onCarLoadFinish(!0)});top.frames[t].setBrakes(n.car.brakesData);n.car.setWheels(n.car.getActiveWheel())},rotateWheels:function(){if(n.car.getActiveWheel()){var t=n.configurator.getCurrentCanvasName();window.frames[t].rotateWheels()}},showLargePreview:function(){if(!n.car.hasLargePreview()){alert(_("unavailable_car_preview"));return}return n.settings.url_largePreview},setColor:function(t){var i=n.configurator.getCurrentCanvasName();n("#table",top.frames[i].document).css("background","#"+t)},setCarNote:function(t){var i=n.configurator.getCurrentCanvasName();window.frames[i].setCarNote(t)},setWheelsNote:function(t){var i=n.configurator.getCurrentCanvasName();window.frames[i].setWheelsNote(t)}}}(jQuery),function(n){n.configurator={onCanvasStateChangeListener:null,_onCanvasLoadedCalled:!1,onCanvasLoaded:function(){if(!n.configurator._onCanvasLoadedCalled&&(n.configurator._onCanvasLoadedCalled=!0,n.configurator.onCanvasStateChangeListener))n.configurator.onCanvasStateChangeListener("loaded",null)},onLargeCanvasLoaded:function(){if(n.configurator.onCanvasStateChangeListener)n.configurator.onCanvasStateChangeListener("loaded",null);n.car.renderCar();return},myActualCanvasMode:null,_normalCanvasName:"canvas",_largeCanvasName:"canvas2",getCurrentCanvasName:function(){return n.configurator.myActualCanvasMode===null?(n.configurator.myActualCanvasMode="normal","canvas"):n.configurator.myActualCanvasMode=="normal"?"canvas":"canvas2"}}}(jQuery),function(n){n.car.preload={isCarLoaded:!1,isCarLoadActive:!1,isWheelsLoaded:!1,isWheelsLoadActive:!1,onStart:function(n,t){this.isCarLoadActive&&this.isWheelsLoadActive||(n&&(this.isCarLoadActive=!0,this.isCarLoaded=!1),t&&(this.isWheelsLoadActive=!0,this.isWheelsLoaded=!1),this.refreshProgressBar())},onCarLoadFinish:function(t){if(this.isCarLoadActive=!1,this.isCarLoaded=t,this.refreshProgressBar(),n.configurator.onCanvasStateChangeListener)n.configurator.onCanvasStateChangeListener("after-car-rendered",{is_car_loaded:t})},onWheelsLoadFinish:function(n){this.isWheelsLoadActive=!1;this.isWheelsLoaded=n;this.refreshProgressBar()},setIsCarLoaded:function(n){this.isCarLoaded=n},setIsWheelsLoaded:function(n){this.isWheelsLoaded=n},refreshProgressBar:function(){var t=!1,i=!1,r;this.isCarLoaded||this.isCarLoadActive?this.isCarLoadActive?(this._showInstructions(_("loading_data")),t=!0,i=!0):this.isCarLoaded&&(t=!1,i=!1,this._showInstructions("")):(this._showInstructions(_("choose_car")),t=!0);r=n.configurator.getCurrentCanvasName();n("#overlay",top.frames[r].document).css("display",t?"block":"none");n("#ajaxIcon",top.frames[r].document).css("display",i?"block":"none")},_showInstructions:function(t){var i=n.configurator.getCurrentCanvasName();n("#instructions",top.frames[i].document).html(t)}}}(jQuery);window.dictionary={anonymous_car_note:"Omlouváme se, obrázek Vašeho vozu není momentálně k dispozici.",anonymous_wheel_note:"K této kombinaci vozidla a disku bohužel není k dispozici náhled.",unavailable_car_preview:"K tomuto vozu bohužel nemáme zvětšený náhled.",easybox_close_label:"Náhled zavřete kliknutím na obrázek auta.",choose_car:"Vyberte auto",loading_data:"Nahrávám data"},function(n){n.loc={dict:window.dictionary,translate:function(){var t=arguments[0];return n.loc.dict[t]&&(t=n.loc.dict[t]),arguments[0]=t,n.loc.subst(arguments)},subst:function(){var r=[],n=arguments,t,u,f,e;n=n?n.length==1?n[0]:n:n;string=n[0];var s=0,o=/%s/,i=[];for(t=o.exec(string);t;t=o.exec(string))i.push(string.substr(0,t[0][0]==="%"?t.index:t.index)),i.push("%s"),string=string.substr(t.index+t[0].length);for(i.push(string),u=0;u<i.length;++u)f=i[u],f&&f=="%s"?(e=n[++s],e==undefined?r.push("%s"):r.push(e)):r.push(f);return r.join("")}}}(window.jQuery);window._=$.loc.translate;$.configurator.onCanvasStateChangeListener=function(n,t){var r,i;switch(n){case"loaded":alert;$.configurator.getCurrentCanvasName()=="canvas";break;case"before-car-rendered":r=document.getElementById("carLargePreviewButton");r&&(r.disabled=!$.car.hasLargePreview());$.car.getActiveWheel()||$("#rotateWheelsButton").attr("disabled","disabled");break;case"after-car-rendered":i=$.fn.getActiveColor();i||(i=$.cookie.getCookie("car_color"));i||(i=$.settings.default_car_color);$.car.setColor(i);$.car.isAnonymous()&&$.car.setCarNote(_("anonymous_car_note"));break;case"after-wheels-rendered":t||$.car.setWheelsNote(_("anonymous_wheel_note"));$.car.getActiveWheel()&&$("#rotateWheelsButton").removeAttr("disabled");break;case"car-color-changed":$.cookie.setCookie("car_color",t)}};$.fn._activeColor=null;$.fn.getActiveColor=function(){return $.fn._activeColor},function(n,t,i){"use strict";function e(t){if(r.webkit&&!t)return{height:0,width:0};if(!r.data.outer){var i={border:"none","box-sizing":"content-box",height:"200px",margin:"0",padding:"0",width:"200px"};r.data.inner=n("<div>").css(n.extend({},i));r.data.outer=n("<div>").css(n.extend({left:"-1000px",overflow:"scroll",position:"absolute",top:"-1000px"},i)).append(r.data.inner).appendTo("body")}return r.data.outer.scrollLeft(1e3).scrollTop(1e3),{height:Math.ceil(r.data.outer.offset().top-r.data.inner.offset().top||0),width:Math.ceil(r.data.outer.offset().left-r.data.inner.offset().left||0)}}function h(i,r){n(t).on({"blur.scrollbar":function(){n(t).add("body").off(".scrollbar");i&&i()},"dragstart.scrollbar":function(n){return n.preventDefault(),!1},"mouseup.scrollbar":function(){n(t).add("body").off(".scrollbar");i&&i()}});n("body").on({"selectstart.scrollbar":function(n){return n.preventDefault(),!1}});return r&&r.preventDefault(),!1}function p(){var n=e(!0);return!(n.height||n.width)}function o(n){var t=n.originalEvent;return t.axis&&t.axis===t.HORIZONTAL_AXIS?!1:t.wheelDeltaX?!1:!0}var s=!1,c=1,u="px",r={data:{},macosx:i.navigator.platform.toLowerCase().indexOf("mac")!==-1,mobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(i.navigator.userAgent),overlay:null,scroll:null,scrolls:[],webkit:/WebKit/.test(i.navigator.userAgent),log:s?function(t,r){var u=t;r&&typeof t!="string"&&(u=[],n.each(t,function(n,t){u.push('"'+n+'": '+t)}),u=u.join(", "));i.console&&i.console.log?i.console.log(u):alert(u)}:function(){}},l={autoScrollSize:!0,autoUpdate:!0,debug:!1,disableBodyScroll:!1,duration:200,ignoreMobile:!0,ignoreOverlay:!0,scrollStep:30,showArrows:!1,stepScrolling:!0,type:"simple",scrollx:null,scrolly:null,onDestroy:null,onInit:null,onScroll:null,onUpdate:null},a=function(t,u){r.scroll||(r.log("Init jQuery Scrollbar v0.2.5"),r.overlay=p(),r.scroll=e(),f(),n(i).resize(function(){var t=!1,n;r.scroll&&(r.scroll.height||r.scroll.width)&&(n=e(),(n.height!=r.scroll.height||n.width!=r.scroll.width)&&(r.scroll=n,t=!0));f(t)}));this.container=t;this.options=n.extend({},l,i.jQueryScrollbarOptions||{});this.scrollTo=null;this.scrollx={};this.scrolly={};this.init(u)};a.prototype={destroy:function(){if(this.wrapper){var i=this.container.scrollLeft(),r=this.container.scrollTop();this.container.insertBefore(this.wrapper).css({height:"",margin:""}).removeClass("scroll-content").removeClass("scroll-scrollx_visible").removeClass("scroll-scrolly_visible").off(".scrollbar").scrollLeft(i).scrollTop(r);this.scrollx.scrollbar.removeClass("scroll-scrollx_visible").find("div").andSelf().off(".scrollbar");this.scrolly.scrollbar.removeClass("scroll-scrolly_visible").find("div").andSelf().off(".scrollbar");this.wrapper.remove();n(t).add("body").off(".scrollbar");n.isFunction(this.options.onDestroy)&&this.options.onDestroy.apply(this,[this.container])}},getScrollbar:function(t){var i=this.options["scroll"+t],r={advanced:'<div class="scroll-element_corner"><\/div><div class="scroll-arrow scroll-arrow_less"><\/div><div class="scroll-arrow scroll-arrow_more"><\/div><div class="scroll-element_outer">    <div class="scroll-element_size"><\/div>    <div class="scroll-element_inner-wrapper">        <div class="scroll-element_inner scroll-element_track">            <div class="scroll-element_inner-bottom"><\/div>        <\/div>    <\/div>    <div class="scroll-bar">        <div class="scroll-bar_body">            <div class="scroll-bar_body-inner"><\/div>        <\/div>        <div class="scroll-bar_bottom"><\/div>        <div class="scroll-bar_center"><\/div>    <\/div><\/div>',simple:'<div class="scroll-element_outer">    <div class="scroll-element_size"><\/div>    <div class="scroll-element_track"><\/div>    <div class="scroll-bar"><\/div><\/div>'},u=r[this.options.type]?this.options.type:"advanced";return i=i?typeof i=="string"?n(i).appendTo(this.wrapper):n(i):n("<div>").addClass("scroll-element").html(r[u]).appendTo(this.wrapper),this.options.showArrows&&i.addClass("scroll-element_arrows_visible"),i.addClass("scroll-"+t)},init:function(i){var l=this,f=this.container,v=this.containerWrapper||f,s=n.extend(this.options,i||{}),e={x:this.scrollx,y:this.scrolly},a=this.wrapper,w={scrollLeft:f.scrollLeft(),scrollTop:f.scrollTop()},y,p;if(r.mobile&&s.ignoreMobile||r.overlay&&s.ignoreOverlay||r.macosx&&!r.webkit)return!1;if(a)v.css({height:"","margin-bottom":r.scroll.height*-1+u,"margin-right":r.scroll.width*-1+u});else{this.wrapper=a=n("<div>").addClass("scroll-wrapper").addClass(f.attr("class")).css("position",f.css("position")=="absolute"?"absolute":"relative").insertBefore(f).append(f);f.is("textarea")&&(this.containerWrapper=v=n("<div>").insertBefore(f).append(f),a.addClass("scroll-textarea"));v.addClass("scroll-content").css({height:"","margin-bottom":r.scroll.height*-1+u,"margin-right":r.scroll.width*-1+u});f.on("scroll.scrollbar",function(){n.isFunction(s.onScroll)&&s.onScroll.call(l,{maxScroll:e.y.maxScrollOffset,scroll:f.scrollTop(),size:e.y.size,visible:e.y.visible},{maxScroll:e.x.maxScrollOffset,scroll:f.scrollLeft(),size:e.x.size,visible:e.x.visible});e.x.isVisible&&e.x.scroller.css("left",f.scrollLeft()*e.x.kx+u);e.y.isVisible&&e.y.scroller.css("top",f.scrollTop()*e.y.kx+u)});a.on("scroll",function(){a.scrollTop(0).scrollLeft(0)});if(s.disableBodyScroll){y=function(n){o(n)?e.y.isVisible&&e.y.mousewheel(n):e.x.isVisible&&e.x.mousewheel(n)};a.on({"MozMousePixelScroll.scrollbar":y,"mousewheel.scrollbar":y});if(r.mobile)a.on("touchstart.scrollbar",function(i){var r=i.originalEvent.touches&&i.originalEvent.touches[0]||i,u={pageX:r.pageX,pageY:r.pageY},e={left:f.scrollLeft(),top:f.scrollTop()};n(t).on({"touchmove.scrollbar":function(n){var t=n.originalEvent.targetTouches&&n.originalEvent.targetTouches[0]||n;f.scrollLeft(e.left+u.pageX-t.pageX);f.scrollTop(e.top+u.pageY-t.pageY);n.preventDefault()},"touchend.scrollbar":function(){n(t).off(".scrollbar")}})})}n.isFunction(s.onInit)&&s.onInit.apply(this,[f])}n.each(e,function(i,r){var p=null,v=1,a=i=="x"?"scrollLeft":"scrollTop",y=s.scrollStep,w=function(){var n=f[a]();f[a](n+y);v==1&&n+y>=u&&(n=f[a]());v==-1&&n+y<=u&&(n=f[a]());f[a]()==n&&p&&p()},u=0;if(!r.scrollbar){r.scrollbar=l.getScrollbar(i);r.scroller=r.scrollbar.find(".scroll-bar");r.mousewheel=function(n){if(!r.isVisible||i=="x"&&o(n))return!0;if(i=="y"&&!o(n))return e.x.mousewheel(n),!0;var t=n.originalEvent.wheelDelta*-1||n.originalEvent.detail,s=r.size-r.visible-r.offset;return u<=0&&t<0||u>=s&&t>0||(u=u+t,u<0&&(u=0),u>s&&(u=s),l.scrollTo=l.scrollTo||{},l.scrollTo[a]=u,setTimeout(function(){l.scrollTo&&(f.stop().animate(l.scrollTo,240,"linear",function(){u=f[a]()}),l.scrollTo=null)},1)),n.preventDefault(),!1};r.scrollbar.on({"MozMousePixelScroll.scrollbar":r.mousewheel,"mousewheel.scrollbar":r.mousewheel,"mouseenter.scrollbar":function(){u=f[a]()}});r.scrollbar.find(".scroll-arrow, .scroll-element_track").on("mousedown.scrollbar",function(t){if(t.which!=c)return!0;v=1;var e={eventOffset:t[i=="x"?"pageX":"pageY"],maxScrollValue:r.size-r.visible-r.offset,scrollbarOffset:r.scroller.offset()[i=="x"?"left":"top"],scrollbarSize:r.scroller[i=="x"?"outerWidth":"outerHeight"]()},o=0,b=0;return n(this).hasClass("scroll-arrow")?(v=n(this).hasClass("scroll-arrow_more")?1:-1,y=s.scrollStep*v,u=v>0?e.maxScrollValue:0):(v=e.eventOffset>e.scrollbarOffset+e.scrollbarSize?1:e.eventOffset<e.scrollbarOffset?-1:0,y=Math.round(r.visible*.75)*v,u=e.eventOffset-e.scrollbarOffset-(s.stepScrolling?v==1?e.scrollbarSize:0:Math.round(e.scrollbarSize/2)),u=f[a]()+u/r.kx),l.scrollTo=l.scrollTo||{},l.scrollTo[a]=s.stepScrolling?f[a]()+y:u,s.stepScrolling&&(p=function(){u=f[a]();clearInterval(b);clearTimeout(o);o=0;b=0},o=setTimeout(function(){b=setInterval(w,40)},s.duration+100)),setTimeout(function(){l.scrollTo&&(f.animate(l.scrollTo,s.duration),l.scrollTo=null)},1),h(p,t)});r.scroller.on("mousedown.scrollbar",function(e){if(e.which!=c)return!0;var o=e[i=="x"?"pageX":"pageY"],s=f[a]();r.scrollbar.addClass("scroll-draggable");n(t).on("mousemove.scrollbar",function(n){var t=parseInt((n[i=="x"?"pageX":"pageY"]-o)/r.kx,10);f[a](s+t)});return h(function(){r.scrollbar.removeClass("scroll-draggable");u=f[a]()},e)})}});n.each(e,function(n,t){var i="scroll-scroll"+n+"_visible",r=n=="x"?e.y:e.x;t.scrollbar.removeClass(i);r.scrollbar.removeClass(i);v.removeClass(i)});n.each(e,function(t,i){n.extend(i,t=="x"?{offset:parseInt(f.css("left"),10)||0,size:f.prop("scrollWidth"),visible:a.width()}:{offset:parseInt(f.css("top"),10)||0,size:f.prop("scrollHeight"),visible:a.height()})});p=function(t,i){var o="scroll-scroll"+t+"_visible",s=t=="x"?e.y:e.x,c=parseInt(f.css(t=="x"?"left":"top"),10)||0,l=i.size,h=i.visible+c;i.isVisible=l-h>1;i.isVisible?(i.scrollbar.addClass(o),s.scrollbar.addClass(o),v.addClass(o)):(i.scrollbar.removeClass(o),s.scrollbar.removeClass(o),v.removeClass(o));t=="y"&&(i.isVisible||i.size<i.visible)&&v.css("height",h+r.scroll.height+u);(e.x.size!=f.prop("scrollWidth")||e.y.size!=f.prop("scrollHeight")||e.x.visible!=a.width()||e.y.visible!=a.height()||e.x.offset!=(parseInt(f.css("left"),10)||0)||e.y.offset!=(parseInt(f.css("top"),10)||0))&&(n.each(e,function(t,i){n.extend(i,t=="x"?{offset:parseInt(f.css("left"),10)||0,size:f.prop("scrollWidth"),visible:a.width()}:{offset:parseInt(f.css("top"),10)||0,size:f.prop("scrollHeight"),visible:a.height()})}),p(t=="x"?"y":"x",s))};n.each(e,p);n.isFunction(s.onUpdate)&&s.onUpdate.apply(this,[f]);n.each(e,function(n,t){var o=n=="x"?"left":"top",h=n=="x"?"outerWidth":"outerHeight",c=n=="x"?"width":"height",l=parseInt(f.css(o),10)||0,r=t.size,e=t.visible+l,i=t.scrollbar.find(".scroll-element_size");i=i[h]()+(parseInt(i.css(o),10)||0);s.autoScrollSize&&(t.scrollbarSize=parseInt(i*e/r,10),t.scroller.css(c,t.scrollbarSize+u));t.scrollbarSize=t.scroller[h]();t.kx=(i-t.scrollbarSize)/(r-e)||1;t.maxScrollOffset=r-e});f.scrollLeft(w.scrollLeft).scrollTop(w.scrollTop).trigger("scroll")}};n.fn.scrollbar=function(t,i){var u=this;return t==="get"&&(u=null),this.each(function(){var e=n(this),f,o;if(e.hasClass("scroll-wrapper")||e.get(0).nodeName=="body")return!0;if(f=e.data("scrollbar"),f){if(t==="get")return u=f,!1;if(o=typeof t=="string"&&f[t]?t:"init",f[o].apply(f,n.isArray(i)?i:[]),t==="destroy")for(e.removeData("scrollbar");n.inArray(f,r.scrolls)>=0;)r.scrolls.splice(n.inArray(f,r.scrolls),1)}else typeof t!="string"&&(f=new a(e,t),e.data("scrollbar",f),r.scrolls.push(f));return!0}),u};n.fn.scrollbar.options=l;i.angular&&function(n){var t=n.module("jQueryScrollbar",[]);t.directive("jqueryScrollbar",function(){return{link:function(n,t){t.scrollbar(n.options).on("$destroy",function(){t.scrollbar("destroy")})},restring:"AC",scope:{options:"=jqueryScrollbar"}}})}(i.angular);var v=0,y=0,f=function(n){for(var u,c,t,i,o,h,e=0;e<r.scrolls.length;e++)t=r.scrolls[e],u=t.container,c=t.options,i=t.wrapper,o=t.scrollx,h=t.scrolly,(n||c.autoUpdate&&i&&i.is(":visible")&&(u.prop("scrollWidth")!=o.size||u.prop("scrollHeight")!=h.size||i.width()!=o.visible||i.height()!=h.visible))&&(t.init(),s&&(r.log({scrollHeight:u.prop("scrollHeight")+":"+t.scrolly.size,scrollWidth:u.prop("scrollWidth")+":"+t.scrollx.size,visibleHeight:i.height()+":"+t.scrolly.visible,visibleWidth:i.width()+":"+t.scrollx.visible},!0),y++));s&&y>10?(r.log("Scroll updates exceed 10"),f=function(){}):(clearTimeout(v),v=setTimeout(f,300))}}(jQuery,document,window);!function(n){"use strict";n.module("vcRecaptcha",[])}(angular),function(n){"use strict";function t(){throw new Error('You need to set the "key" attribute to your public reCaptcha key. If you don\'t have a key, please get one from https://www.google.com/recaptcha/admin/create');}n.module("vcRecaptcha").provider("vcRecaptchaService",function(){var r=this,i={};r.onLoadFunctionName="vcRecaptchaApiLoaded";r.setDefaults=function(t){n.copy(t,i)};r.setSiteKey=function(n){i.key=n};r.setTheme=function(n){i.theme=n};r.setStoken=function(n){i.stoken=n};r.setSize=function(n){i.size=n};r.setType=function(n){i.type=n};r.setLang=function(n){i.lang=n};r.setBadge=function(n){i.badge=n};r.setOnLoadFunctionName=function(n){r.onLoadFunctionName=n};r.$get=["$rootScope","$window","$q","$document","$interval",function(u,f,e,o,s){function b(){return h?e.when(h):k}function v(){if(!h)throw new Error("reCaptcha has not been loaded yet.");}function y(){return n.isFunction((f.grecaptcha||{}).render)}var h,p=e.defer(),k=p.promise,l={},a,w,c;return f.vcRecaptchaApiLoadedCallback=f.vcRecaptchaApiLoadedCallback||[],a=function(){h=f.grecaptcha;p.resolve(h)},(f.vcRecaptchaApiLoadedCallback.push(a),f[r.onLoadFunctionName]=function(){f.vcRecaptchaApiLoadedCallback.forEach(function(n){n()})},y())?a():f.document.querySelector('script[src^="https://www.google.com/recaptcha/api.js"]')?w=s(function(){y()&&(s.cancel(w),a())},25):(c=f.document.createElement("script"),c.async=!0,c.defer=!0,c.src="https://www.google.com/recaptcha/api.js?onload="+r.onLoadFunctionName+"&render=explicit",o.find("body")[0].appendChild(c)),{create:function(n,r){return r.sitekey=r.key||i.key,r.theme=r.theme||i.theme,r.stoken=r.stoken||i.stoken,r.size=r.size||i.size,r.type=r.type||i.type,r.hl=r.lang||i.lang,r.badge=r.badge||i.badge,r.sitekey||t(),b().then(function(t){var i=t.render(n,r);return l[i]=n,i})},reload:function(n){v();h.reset(n);u.$broadcast("reCaptchaReset",n)},execute:function(n){v();h.execute(n)},useLang:function(n,t){var u=l[n],i,r;if(!u)throw new Error("reCaptcha Widget ID not exists",n);if(i=u.querySelector("iframe"),!t)return i&&i.src&&/[?&]hl=\w+/.test(i.src)?i.src.replace(/.+[?&]hl=(\w+)([^\w].+)?/,"$1"):null;i&&i.src&&(r=i.src,/[?&]hl=/.test(r)?r=r.replace(/([?&]hl=)\w+/,"$1"+t):r+=(-1===r.indexOf("?")?"?":"&")+"hl="+t,i.src=r)},getResponse:function(n){return v(),h.getResponse(n)},getInstance:function(n){return l[n]},destroy:function(n){delete l[n]}}}]})}(angular),function(n){"use strict";n.module("vcRecaptcha").directive("vcRecaptcha",["$document","$timeout","vcRecaptchaService",function(t,i,r){return{restrict:"A",require:"?^^form",scope:{response:"=?ngModel",key:"=?",stoken:"=?",theme:"=?",size:"=?",type:"=?",lang:"=?",badge:"=?",tabindex:"=?",required:"=?",onCreate:"&",onSuccess:"&",onExpire:"&",onError:"&"},link:function(u,f,e,o){function h(){o&&o.$setValidity("recaptcha",null);a()}function c(){i(function(){u.response="";s();u.onExpire({widgetId:u.widgetId})})}function l(){var n=arguments;i(function(){u.response="";s();u.onError({widgetId:u.widgetId,arguments:n})})}function s(){o&&o.$setValidity("recaptcha",!1===u.required?null:Boolean(u.response))}function a(){r.destroy(u.widgetId);n.element(t[0].querySelectorAll(".pls-container")).parent().remove()}u.widgetId=null;o&&n.isDefined(e.required)&&u.$watch("required",s);var v=u.$watch("key",function(t){var o=function(n){i(function(){u.response=n;s();u.onSuccess({response:n,widgetId:u.widgetId})})};r.create(f[0],{callback:o,key:t,stoken:u.stoken||e.stoken||null,theme:u.theme||e.theme||null,type:u.type||e.type||null,lang:u.lang||e.lang||null,tabindex:u.tabindex||e.tabindex||null,size:u.size||e.size||null,badge:u.badge||e.badge||null,"expired-callback":c,"error-callback":e.onError?l:void 0}).then(function(t){s();u.widgetId=t;u.onCreate({widgetId:t});u.$on("$destroy",h);u.$on("reCaptchaReset",function(i,r){(n.isUndefined(r)||t===r)&&(u.response="",s())})});v()})}}}])}(angular);!function(n){function r(){return new Date(Date.UTC.apply(Date,arguments))}var u=function(r,u){var o=this,f,e;for(this.element=n(r),this.container=u.container||"body",this.language=u.language||this.element.data("date-language")||"en",this.language=(this.language in i)?this.language:"en",this.isRTL=i[this.language].rtl||!1,this.formatType=u.formatType||this.element.data("format-type")||"standard",this.format=t.parseFormat(u.format||this.element.data("date-format")||i[this.language].format||t.getDefaultFormat(this.formatType,"input"),this.formatType),this.isInline=!1,this.isVisible=!1,this.isInput=this.element.is("input"),this.fontAwesome=u.fontAwesome||this.element.data("font-awesome")||!1,this.bootcssVer=u.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")?this.bootcssVer==3?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():!1,this.componentReset=this.element.is(".date")?this.bootcssVer==3?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():!1,this.hasInput=this.component&&this.element.find("input").length,this.component&&this.component.length===0&&(this.component=!1),this.linkField=u.linkField||this.element.data("link-field")||!1,this.linkFormat=t.parseFormat(u.linkFormat||this.element.data("link-format")||t.getDefaultFormat(this.formatType,"link"),this.formatType),this.minuteStep=u.minuteStep||this.element.data("minute-step")||5,this.pickerPosition=u.pickerPosition||this.element.data("picker-position")||"bottom-right",this.showMeridian=u.showMeridian||this.element.data("show-meridian")||!1,this.initialDate=u.initialDate||new Date,this.zIndex=u.zIndex||this.element.data("z-index")||undefined,this.icons={leftArrow:this.fontAwesome?"fa-arrow-left":this.bootcssVer===3?"glyphicon-arrow-left":"icon-arrow-left",rightArrow:this.fontAwesome?"fa-arrow-right":this.bootcssVer===3?"glyphicon-arrow-right":"icon-arrow-right"},this.icontype=this.fontAwesome?"fa":"glyphicon",this._attachEvents(),this.formatViewType="datetime",("formatViewType"in u)?this.formatViewType=u.formatViewType:("formatViewType"in this.element.data())&&(this.formatViewType=this.element.data("formatViewType")),this.minView=0,("minView"in u)?this.minView=u.minView:("minView"in this.element.data())&&(this.minView=this.element.data("min-view")),this.minView=t.convertViewMode(this.minView),this.maxView=t.modes.length-1,("maxView"in u)?this.maxView=u.maxView:("maxView"in this.element.data())&&(this.maxView=this.element.data("max-view")),this.maxView=t.convertViewMode(this.maxView),this.wheelViewModeNavigation=!1,("wheelViewModeNavigation"in u)?this.wheelViewModeNavigation=u.wheelViewModeNavigation:("wheelViewModeNavigation"in this.element.data())&&(this.wheelViewModeNavigation=this.element.data("view-mode-wheel-navigation")),this.wheelViewModeNavigationInverseDirection=!1,("wheelViewModeNavigationInverseDirection"in u)?this.wheelViewModeNavigationInverseDirection=u.wheelViewModeNavigationInverseDirection:("wheelViewModeNavigationInverseDirection"in this.element.data())&&(this.wheelViewModeNavigationInverseDirection=this.element.data("view-mode-wheel-navigation-inverse-dir")),this.wheelViewModeNavigationDelay=100,("wheelViewModeNavigationDelay"in u)?this.wheelViewModeNavigationDelay=u.wheelViewModeNavigationDelay:("wheelViewModeNavigationDelay"in this.element.data())&&(this.wheelViewModeNavigationDelay=this.element.data("view-mode-wheel-navigation-delay")),this.startViewMode=2,("startView"in u)?this.startViewMode=u.startView:("startView"in this.element.data())&&(this.startViewMode=this.element.data("start-view")),this.startViewMode=t.convertViewMode(this.startViewMode),this.viewMode=this.startViewMode,this.viewSelect=this.minView,("viewSelect"in u)?this.viewSelect=u.viewSelect:("viewSelect"in this.element.data())&&(this.viewSelect=this.element.data("view-select")),this.viewSelect=t.convertViewMode(this.viewSelect),this.forceParse=!0,("forceParse"in u)?this.forceParse=u.forceParse:("dateForceParse"in this.element.data())&&(this.forceParse=this.element.data("date-force-parse")),f=this.bootcssVer===3?t.templateV3:t.template;f.indexOf("{iconType}")!==-1;)f=f.replace("{iconType}",this.icontype);while(f.indexOf("{leftArrow}")!==-1)f=f.replace("{leftArrow}",this.icons.leftArrow);while(f.indexOf("{rightArrow}")!==-1)f=f.replace("{rightArrow}",this.icons.rightArrow);if(this.picker=n(f).appendTo(this.isInline?this.element:this.container).on({click:n.proxy(this.click,this),mousedown:n.proxy(this.mousedown,this)}),this.wheelViewModeNavigation)if(n.fn.mousewheel)this.picker.on({mousewheel:n.proxy(this.mousewheel,this)});else console.log("Mouse Wheel event is not supported. Please include the jQuery Mouse Wheel plugin before enabling this option");this.isInline?this.picker.addClass("datetimepicker-inline"):this.picker.addClass("datetimepicker-dropdown-"+this.pickerPosition+" dropdown-menu");this.isRTL&&(this.picker.addClass("datetimepicker-rtl"),e=this.bootcssVer===3?".prev span, .next span":".prev i, .next i",this.picker.find(e).toggleClass(this.icons.leftArrow+" "+this.icons.rightArrow));n(document).on("mousedown",function(t){n(t.target).closest(".datetimepicker").length===0&&o.hide()});this.autoclose=!1;"autoclose"in u?this.autoclose=u.autoclose:"dateAutoclose"in this.element.data()&&(this.autoclose=this.element.data("date-autoclose"));this.keyboardNavigation=!0;"keyboardNavigation"in u?this.keyboardNavigation=u.keyboardNavigation:"dateKeyboardNavigation"in this.element.data()&&(this.keyboardNavigation=this.element.data("date-keyboard-navigation"));this.todayBtn=u.todayBtn||this.element.data("date-today-btn")||!1;this.todayHighlight=u.todayHighlight||this.element.data("date-today-highlight")||!1;this.weekStart=(u.weekStart||this.element.data("date-weekstart")||i[this.language].weekStart||0)%7;this.weekEnd=(this.weekStart+6)%7;this.startDate=-Infinity;this.endDate=Infinity;this.daysOfWeekDisabled=[];this.setStartDate(u.startDate||this.element.data("date-startdate"));this.setEndDate(u.endDate||this.element.data("date-enddate"));this.setDaysOfWeekDisabled(u.daysOfWeekDisabled||this.element.data("date-days-of-week-disabled"));this.setMinutesDisabled(u.minutesDisabled||this.element.data("date-minute-disabled"));this.setHoursDisabled(u.hoursDisabled||this.element.data("date-hour-disabled"));this.fillDow();this.fillMonths();this.update();this.showMode();this.isInline&&this.show()},f,i,t;u.prototype={constructor:u,_events:[],_attachEvents:function(){this._detachEvents();this.isInput?this._events=[[this.element,{focus:n.proxy(this.show,this),keyup:n.proxy(this.update,this),keydown:n.proxy(this.keydown,this)}]]:this.component&&this.hasInput?(this._events=[[this.element.find("input"),{focus:n.proxy(this.show,this),keyup:n.proxy(this.update,this),keydown:n.proxy(this.keydown,this)}],[this.component,{click:n.proxy(this.show,this)}]],this.componentReset&&this._events.push([this.componentReset,{click:n.proxy(this.reset,this)}])):this.element.is("div")?this.isInline=!0:this._events=[[this.element,{click:n.proxy(this.show,this)}]];for(var t=0,i,r;t<this._events.length;t++){i=this._events[t][0];r=this._events[t][1];i.on(r)}},_detachEvents:function(){for(var n=0,t,i;n<this._events.length;n++)t=this._events[n][0],i=this._events[n][1],t.off(i);this._events=[]},show:function(t){this.picker.show();this.height=this.component?this.component.outerHeight():this.element.outerHeight();this.forceParse&&this.update();this.place();n(window).on("resize",n.proxy(this.place,this));t&&(t.stopPropagation(),t.preventDefault());this.isVisible=!0;this.element.trigger({type:"show",date:this.date})},hide:function(){this.isVisible&&(this.isInline||(this.picker.hide(),n(window).off("resize",this.place),this.viewMode=this.startViewMode,this.showMode(),this.isInput||n(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 n=this.getUTCDate();return new Date(n.getTime()+n.getTimezoneOffset()*6e4)},getUTCDate:function(){return this.date},setDate:function(n){this.setUTCDate(new Date(n.getTime()-n.getTimezoneOffset()*6e4))},setUTCDate:function(n){n>=this.startDate&&n<=this.endDate?(this.date=n,this.setValue(),this.viewDate=this.date,this.fill()):this.element.trigger({type:"outOfRange",date:n,startDate:this.startDate,endDate:this.endDate})},setFormat:function(n){this.format=t.parseFormat(n,this.formatType);var i;this.isInput?i=this.element:this.component&&(i=this.element.find("input"));i&&i.val()&&this.setValue()},setValue:function(){var t=this.getFormattedDate();this.isInput?this.element.val(t):(this.component&&this.element.find("input").val(t),this.element.data("date",t));this.linkField&&n("#"+this.linkField).val(this.getFormattedDate(this.linkFormat))},getFormattedDate:function(n){return n==undefined&&(n=this.format),t.formatDate(this.date,n,this.language,this.formatType)},setStartDate:function(n){this.startDate=n||-Infinity;this.startDate!==-Infinity&&(this.startDate=t.parseDate(this.startDate,this.format,this.language,this.formatType));this.update();this.updateNavArrows()},setEndDate:function(n){this.endDate=n||Infinity;this.endDate!==Infinity&&(this.endDate=t.parseDate(this.endDate,this.format,this.language,this.formatType));this.update();this.updateNavArrows()},setDaysOfWeekDisabled:function(t){this.daysOfWeekDisabled=t||[];n.isArray(this.daysOfWeekDisabled)||(this.daysOfWeekDisabled=this.daysOfWeekDisabled.split(/,\s*/));this.daysOfWeekDisabled=n.map(this.daysOfWeekDisabled,function(n){return parseInt(n,10)});this.update();this.updateNavArrows()},setMinutesDisabled:function(t){this.minutesDisabled=t||[];n.isArray(this.minutesDisabled)||(this.minutesDisabled=this.minutesDisabled.split(/,\s*/));this.minutesDisabled=n.map(this.minutesDisabled,function(n){return parseInt(n,10)});this.update();this.updateNavArrows()},setHoursDisabled:function(t){this.hoursDisabled=t||[];n.isArray(this.hoursDisabled)||(this.hoursDisabled=this.hoursDisabled.split(/,\s*/));this.hoursDisabled=n.map(this.hoursDisabled,function(n){return parseInt(n,10)});this.update();this.updateNavArrows()},place:function(){var u,i,r,t,f;this.isInline||(this.zIndex||(u=0,n("div").each(function(){var t=parseInt(n(this).css("zIndex"),10);t>u&&(u=t)}),this.zIndex=u+10),f=this.container instanceof n?this.container.offset():n(this.container).offset(),this.component?(i=this.component.offset(),t=i.left,(this.pickerPosition=="bottom-left"||this.pickerPosition=="top-left")&&(t+=this.component.outerWidth()-this.picker.outerWidth())):(i=this.element.offset(),t=i.left),t+220>document.body.clientWidth&&(t=document.body.clientWidth-220),r=this.pickerPosition=="top-left"||this.pickerPosition=="top-right"?i.top-this.picker.outerHeight():i.top+this.height,r=r-f.top,t=t-f.left,this.container!="body"&&(r=r+document.body.scrollTop),this.picker.css({top:r,left:t,zIndex:this.zIndex}))},update:function(){var n,i=!1;arguments&&arguments.length&&(typeof arguments[0]=="string"||arguments[0]instanceof Date)?(n=arguments[0],i=!0):(n=(this.isInput?this.element.val():this.element.find("input").val())||this.element.data("date")||this.initialDate,(typeof n=="string"||n instanceof String)&&(n=n.replace(/^\s+|\s+$/g,"")));n||(n=new Date,i=!1);this.date=t.parseDate(n,this.format,this.language,this.formatType);i&&this.setValue();this.viewDate=this.date<this.startDate?new Date(this.startDate):this.date>this.endDate?new Date(this.endDate):new Date(this.date);this.fill()},fillDow:function(){for(var t=this.weekStart,n="<tr>";t<this.weekStart+7;)n+='<th class="dow">'+i[this.language].daysMin[t++%7]+"<\/th>";n+="<\/tr>";this.picker.find(".datetimepicker-days thead").append(n)},fillMonths:function(){for(var n="",t=0;t<12;)n+='<span class="month">'+i[this.language].monthsShort[t++]+"<\/span>";this.picker.find(".datetimepicker-months td").html(n)},fill:function(){var tt,e,it,y,o,s,ut,p,rt,b,ft,u;if(this.date!=null&&this.viewDate!=null){var w=new Date(this.viewDate),f=w.getUTCFullYear(),c=w.getUTCMonth(),k=w.getUTCDate(),v=w.getUTCHours(),et=w.getUTCMinutes(),d=this.startDate!==-Infinity?this.startDate.getUTCFullYear():-Infinity,ot=this.startDate!==-Infinity?this.startDate.getUTCMonth()+1:-Infinity,g=this.endDate!==Infinity?this.endDate.getUTCFullYear():Infinity,st=this.endDate!==Infinity?this.endDate.getUTCMonth()+1:Infinity,ht=new r(this.date.getUTCFullYear(),this.date.getUTCMonth(),this.date.getUTCDate()).valueOf(),nt=new Date;for(this.picker.find(".datetimepicker-days thead th:eq(1)").text(i[this.language].months[c]+" "+f),this.formatViewType=="time"?(tt=this.getFormattedDate(),this.picker.find(".datetimepicker-hours thead th:eq(1)").text(tt),this.picker.find(".datetimepicker-minutes thead th:eq(1)").text(tt)):(this.picker.find(".datetimepicker-hours thead th:eq(1)").text(k+" "+i[this.language].months[c]+" "+f),this.picker.find(".datetimepicker-minutes thead th:eq(1)").text(k+" "+i[this.language].months[c]+" "+f)),this.picker.find("tfoot th.today").text(i[this.language].today).toggle(this.todayBtn!==!1),this.updateNavArrows(),this.fillMonths(),e=r(f,c-1,28,0,0,0,0),it=t.getDaysInMonth(e.getUTCFullYear(),e.getUTCMonth()),e.setUTCDate(it),e.setUTCDate(it-(e.getUTCDay()-this.weekStart+7)%7),y=new Date(e),y.setUTCDate(y.getUTCDate()+42),y=y.valueOf(),o=[];e.valueOf()<y;)e.getUTCDay()==this.weekStart&&o.push("<tr>"),s="",e.getUTCFullYear()<f||e.getUTCFullYear()==f&&e.getUTCMonth()<c?s+=" old":(e.getUTCFullYear()>f||e.getUTCFullYear()==f&&e.getUTCMonth()>c)&&(s+=" new"),this.todayHighlight&&e.getUTCFullYear()==nt.getFullYear()&&e.getUTCMonth()==nt.getMonth()&&e.getUTCDate()==nt.getDate()&&(s+=" today"),e.valueOf()==ht&&(s+=" active"),(e.valueOf()+864e5<=this.startDate||e.valueOf()>this.endDate||n.inArray(e.getUTCDay(),this.daysOfWeekDisabled)!==-1)&&(s+=" disabled"),o.push('<td class="day'+s+'">'+e.getUTCDate()+"<\/td>"),e.getUTCDay()==this.weekEnd&&o.push("<\/tr>"),e.setUTCDate(e.getUTCDate()+1);this.picker.find(".datetimepicker-days tbody").empty().append(o.join(""));o=[];var l="",h="",a="",ct=this.hoursDisabled||[];for(u=0;u<24;u++)ct.indexOf(u)===-1&&(p=r(f,c,k,u),s="",p.valueOf()+36e5<=this.startDate||p.valueOf()>this.endDate?s+=" disabled":v==u&&(s+=" active"),this.showMeridian&&i[this.language].meridiem.length==2?(h=u<12?i[this.language].meridiem[0]:i[this.language].meridiem[1],h!=a&&(a!=""&&o.push("<\/fieldset>"),o.push('<fieldset class="hour"><legend>'+h.toUpperCase()+"<\/legend>")),a=h,l=u%12?u%12:12,o.push('<span class="hour'+s+" hour_"+(u<12?"am":"pm")+'">'+l+"<\/span>"),u==23&&o.push("<\/fieldset>")):(l=u+":00",o.push('<span class="hour'+s+'">'+l+"<\/span>")));for(this.picker.find(".datetimepicker-hours td").html(o.join("")),o=[],l="",h="",a="",ut=this.minutesDisabled||[],u=0;u<60;u+=this.minuteStep)ut.indexOf(u)===-1&&(p=r(f,c,k,v,u,0),s="",p.valueOf()<this.startDate||p.valueOf()>this.endDate?s+=" disabled":Math.floor(et/this.minuteStep)==Math.floor(u/this.minuteStep)&&(s+=" active"),this.showMeridian&&i[this.language].meridiem.length==2?(h=v<12?i[this.language].meridiem[0]:i[this.language].meridiem[1],h!=a&&(a!=""&&o.push("<\/fieldset>"),o.push('<fieldset class="minute"><legend>'+h.toUpperCase()+"<\/legend>")),a=h,l=v%12?v%12:12,o.push('<span class="minute'+s+'">'+l+":"+(u<10?"0"+u:u)+"<\/span>"),u==59&&o.push("<\/fieldset>")):(l=u+":00",o.push('<span class="minute'+s+'">'+v+":"+(u<10?"0"+u:u)+"<\/span>")));for(this.picker.find(".datetimepicker-minutes td").html(o.join("")),rt=this.date.getUTCFullYear(),b=this.picker.find(".datetimepicker-months").find("th:eq(1)").text(f).end().find("span").removeClass("active"),rt==f&&b.eq(this.date.getUTCMonth()+2).addClass("active"),(f<d||f>g)&&b.addClass("disabled"),f==d&&b.slice(0,ot+1).addClass("disabled"),f==g&&b.slice(st).addClass("disabled"),o="",f=parseInt(f/10,10)*10,ft=this.picker.find(".datetimepicker-years").find("th:eq(1)").text(f+"-"+(f+9)).end().find("td"),f-=1,u=-1;u<11;u++)o+='<span class="year'+(u==-1||u==10?" old":"")+(rt==f?" active":"")+(f<d||f>g?" disabled":"")+'">'+f+"<\/span>",f+=1;ft.html(o);this.place()}},updateNavArrows:function(){var i=new Date(this.viewDate),n=i.getUTCFullYear(),t=i.getUTCMonth(),r=i.getUTCDate(),u=i.getUTCHours();switch(this.viewMode){case 0:this.startDate!==-Infinity&&n<=this.startDate.getUTCFullYear()&&t<=this.startDate.getUTCMonth()&&r<=this.startDate.getUTCDate()&&u<=this.startDate.getUTCHours()?this.picker.find(".prev").css({visibility:"hidden"}):this.picker.find(".prev").css({visibility:"visible"});this.endDate!==Infinity&&n>=this.endDate.getUTCFullYear()&&t>=this.endDate.getUTCMonth()&&r>=this.endDate.getUTCDate()&&u>=this.endDate.getUTCHours()?this.picker.find(".next").css({visibility:"hidden"}):this.picker.find(".next").css({visibility:"visible"});break;case 1:this.startDate!==-Infinity&&n<=this.startDate.getUTCFullYear()&&t<=this.startDate.getUTCMonth()&&r<=this.startDate.getUTCDate()?this.picker.find(".prev").css({visibility:"hidden"}):this.picker.find(".prev").css({visibility:"visible"});this.endDate!==Infinity&&n>=this.endDate.getUTCFullYear()&&t>=this.endDate.getUTCMonth()&&r>=this.endDate.getUTCDate()?this.picker.find(".next").css({visibility:"hidden"}):this.picker.find(".next").css({visibility:"visible"});break;case 2:this.startDate!==-Infinity&&n<=this.startDate.getUTCFullYear()&&t<=this.startDate.getUTCMonth()?this.picker.find(".prev").css({visibility:"hidden"}):this.picker.find(".prev").css({visibility:"visible"});this.endDate!==Infinity&&n>=this.endDate.getUTCFullYear()&&t>=this.endDate.getUTCMonth()?this.picker.find(".next").css({visibility:"hidden"}):this.picker.find(".next").css({visibility:"visible"});break;case 3:case 4:this.startDate!==-Infinity&&n<=this.startDate.getUTCFullYear()?this.picker.find(".prev").css({visibility:"hidden"}):this.picker.find(".prev").css({visibility:"visible"});this.endDate!==Infinity&&n>=this.endDate.getUTCFullYear()?this.picker.find(".next").css({visibility:"hidden"}):this.picker.find(".next").css({visibility:"visible"})}},mousewheel:function(t){if(t.preventDefault(),t.stopPropagation(),!this.wheelPause){this.wheelPause=!0;var u=t.originalEvent,r=u.wheelDelta,i=r>0?1:r===0?0:-1;this.wheelViewModeNavigationInverseDirection&&(i=-i);this.showMode(i);setTimeout(n.proxy(function(){this.wheelPause=!1},this),this.wheelViewModeNavigationDelay)}},click:function(i){var u,l,y,e,v;if(i.stopPropagation(),i.preventDefault(),u=n(i.target).closest("span, td, th, legend"),u.is("."+this.icontype)&&(u=n(u).parent().closest("span, td, th, legend")),u.length==1){if(u.is(".disabled")){this.element.trigger({type:"outOfRange",date:this.viewDate,startDate:this.startDate,endDate:this.endDate});return}switch(u[0].nodeName.toLowerCase()){case"th":switch(u[0].className){case"switch":this.showMode(1);break;case"prev":case"next":l=t.modes[this.viewMode].navStep*(u[0].className=="prev"?-1:1);switch(this.viewMode){case 0:this.viewDate=this.moveHour(this.viewDate,l);break;case 1:this.viewDate=this.moveDate(this.viewDate,l);break;case 2:this.viewDate=this.moveMonth(this.viewDate,l);break;case 3:case 4:this.viewDate=this.moveYear(this.viewDate,l)}this.fill();this.element.trigger({type:u[0].className+":"+this.convertViewModeText(this.viewMode),date:this.viewDate,startDate:this.startDate,endDate:this.endDate});break;case"today":y=new Date;e=this;$.get(AK.System.url+"/system/time",function(n){var t=JSON.parse(n),r=new Date(t.year,t.month,t.date,t.hour,t.minute,t.second),i=new Date(r.getTime()-r.getTimezoneOffset()*6e4);i<e.startDate?i=e.startDate:i>e.endDate&&(i=e.endDate);e.viewMode=e.startViewMode;e.showMode(0);e._setDate(i);e.fill();e.autoclose&&e.hide()},"html")}break;case"span":if(!u.is(".disabled")){var s=this.viewDate.getUTCFullYear(),f=this.viewDate.getUTCMonth(),h=this.viewDate.getUTCDate(),o=this.viewDate.getUTCHours(),c=this.viewDate.getUTCMinutes(),a=this.viewDate.getUTCSeconds();u.is(".month")?(this.viewDate.setUTCDate(1),f=u.parent().find("span").index(u),h=this.viewDate.getUTCDate(),this.viewDate.setUTCMonth(f),this.element.trigger({type:"changeMonth",date:this.viewDate}),this.viewSelect>=3&&this._setDate(r(s,f,h,o,c,a,0))):u.is(".year")?(this.viewDate.setUTCDate(1),s=parseInt(u.text(),10)||0,this.viewDate.setUTCFullYear(s),this.element.trigger({type:"changeYear",date:this.viewDate}),this.viewSelect>=4&&this._setDate(r(s,f,h,o,c,a,0))):u.is(".hour")?(o=parseInt(u.text(),10)||0,(u.hasClass("hour_am")||u.hasClass("hour_pm"))&&(o==12&&u.hasClass("hour_am")?o=0:o!=12&&u.hasClass("hour_pm")&&(o+=12)),this.viewDate.setUTCHours(o),this.element.trigger({type:"changeHour",date:this.viewDate}),this.viewSelect>=1&&this._setDate(r(s,f,h,o,c,a,0))):u.is(".minute")&&(c=parseInt(u.text().substr(u.text().indexOf(":")+1),10)||0,this.viewDate.setUTCMinutes(c),this.element.trigger({type:"changeMinute",date:this.viewDate}),this.viewSelect>=0&&this._setDate(r(s,f,h,o,c,a,0)));this.viewMode!=0?(v=this.viewMode,this.showMode(-1),this.fill(),v==this.viewMode&&this.autoclose&&this.hide()):(this.fill(),this.autoclose&&this.hide())}break;case"td":if(u.is(".day")&&!u.is(".disabled")){var h=parseInt(u.text(),10)||1,s=this.viewDate.getUTCFullYear(),f=this.viewDate.getUTCMonth(),o=this.viewDate.getUTCHours(),c=this.viewDate.getUTCMinutes(),a=this.viewDate.getUTCSeconds();u.is(".old")?f===0?(f=11,s-=1):f-=1:u.is(".new")&&(f==11?(f=0,s+=1):f+=1);this.viewDate.setUTCFullYear(s);this.viewDate.setUTCMonth(f,h);this.element.trigger({type:"changeDay",date:this.viewDate});this.viewSelect>=2&&this._setDate(r(s,f,h,o,c,a,0))}v=this.viewMode;this.showMode(-1);this.fill();v==this.viewMode&&this.autoclose&&this.hide()}}},_setDate:function(n,t){t&&t!="date"||(this.date=n);t&&t!="view"||(this.viewDate=n);this.fill();this.setValue();var i;this.isInput?i=this.element:this.component&&(i=this.element.find("input"));i&&(i.change(),this.autoclose&&(!t||t=="date"));this.element.trigger({type:"changeDate",date:this.date})},moveMinute:function(n,t){if(!t)return n;var i=new Date(n.valueOf());return i.setUTCMinutes(i.getUTCMinutes()+t*this.minuteStep),i},moveHour:function(n,t){if(!t)return n;var i=new Date(n.valueOf());return i.setUTCHours(i.getUTCHours()+t),i},moveDate:function(n,t){if(!t)return n;var i=new Date(n.valueOf());return i.setUTCDate(i.getUTCDate()+t),i},moveMonth:function(n,t){var f;if(!t)return n;var i=new Date(n.valueOf()),e=i.getUTCDate(),o=i.getUTCMonth(),s=Math.abs(t),r,u;if(t=t>0?1:-1,s==1)u=t==-1?function(){return i.getUTCMonth()==o}:function(){return i.getUTCMonth()!=r},r=o+t,i.setUTCMonth(r),(r<0||r>11)&&(r=(r+12)%12);else{for(f=0;f<s;f++)i=this.moveMonth(i,t);r=i.getUTCMonth();i.setUTCDate(e);u=function(){return r!=i.getUTCMonth()}}while(u())i.setUTCDate(--e),i.setUTCMonth(r);return i},moveYear:function(n,t){return this.moveMonth(n,t*12)},dateWithinRange:function(n){return n>=this.startDate&&n<=this.endDate},keydown:function(n){var u,t,i,r,e,f;if(this.picker.is(":not(:visible)")){n.keyCode==27&&this.show();return}u=!1;switch(n.keyCode){case 27:this.hide();n.preventDefault();break;case 37:case 39:if(!this.keyboardNavigation)break;t=n.keyCode==37?-1:1;viewMode=this.viewMode;n.ctrlKey?viewMode+=2:n.shiftKey&&(viewMode+=1);viewMode==4?(i=this.moveYear(this.date,t),r=this.moveYear(this.viewDate,t)):viewMode==3?(i=this.moveMonth(this.date,t),r=this.moveMonth(this.viewDate,t)):viewMode==2?(i=this.moveDate(this.date,t),r=this.moveDate(this.viewDate,t)):viewMode==1?(i=this.moveHour(this.date,t),r=this.moveHour(this.viewDate,t)):viewMode==0&&(i=this.moveMinute(this.date,t),r=this.moveMinute(this.viewDate,t));this.dateWithinRange(i)&&(this.date=i,this.viewDate=r,this.setValue(),this.update(),n.preventDefault(),u=!0);break;case 38:case 40:if(!this.keyboardNavigation)break;t=n.keyCode==38?-1:1;viewMode=this.viewMode;n.ctrlKey?viewMode+=2:n.shiftKey&&(viewMode+=1);viewMode==4?(i=this.moveYear(this.date,t),r=this.moveYear(this.viewDate,t)):viewMode==3?(i=this.moveMonth(this.date,t),r=this.moveMonth(this.viewDate,t)):viewMode==2?(i=this.moveDate(this.date,t*7),r=this.moveDate(this.viewDate,t*7)):viewMode==1?this.showMeridian?(i=this.moveHour(this.date,t*6),r=this.moveHour(this.viewDate,t*6)):(i=this.moveHour(this.date,t*4),r=this.moveHour(this.viewDate,t*4)):viewMode==0&&(i=this.moveMinute(this.date,t*4),r=this.moveMinute(this.viewDate,t*4));this.dateWithinRange(i)&&(this.date=i,this.viewDate=r,this.setValue(),this.update(),n.preventDefault(),u=!0);break;case 13:this.viewMode!=0?(e=this.viewMode,this.showMode(-1),this.fill(),e==this.viewMode&&this.autoclose&&this.hide()):(this.fill(),this.autoclose&&this.hide());n.preventDefault();break;case 9:this.hide()}u&&(this.isInput?f=this.element:this.component&&(f=this.element.find("input")),f&&f.change(),this.element.trigger({type:"changeDate",date:this.date}))},showMode:function(n){if(n){var i=Math.max(0,Math.min(t.modes.length-1,this.viewMode+n));i>=this.minView&&i<=this.maxView&&(this.element.trigger({type:"changeMode",date:this.viewDate,oldViewMode:this.viewMode,newViewMode:i}),this.viewMode=i)}this.picker.find(">div").hide().filter(".datetimepicker-"+t.modes[this.viewMode].clsName).css("display","block");this.updateNavArrows()},reset:function(){this._setDate(null,"date")},convertViewModeText:function(n){switch(n){case 4:return"decade";case 3:return"year";case 2:return"month";case 1:return"day";case 0:return"hour"}}};f=n.fn.datetimepicker;n.fn.datetimepicker=function(t){var r=Array.apply(null,arguments),i;return r.shift(),this.each(function(){var e=n(this),f=e.data("datetimepicker"),o=typeof t=="object"&&t;return f||e.data("datetimepicker",f=new u(this,n.extend({},n.fn.datetimepicker.defaults,o))),typeof t=="string"&&typeof f[t]=="function"&&(i=f[t].apply(f,r),i!==undefined)?!1:void 0}),i!==undefined?i:this};n.fn.datetimepicker.defaults={};n.fn.datetimepicker.Constructor=u;i=n.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"}};t={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(n){return n%4==0&&n%100!=0||n%400==0},getDaysInMonth:function(n,i){return[31,t.isLeapYear(n)?29:28,31,30,31,30,31,31,30,31,30,31][i]},getDefaultFormat:function(n,t){if(n=="standard")return t=="input"?"yyyy-mm-dd hh:ii":"yyyy-mm-dd hh:ii:ss";if(n=="php")return t=="input"?"Y-m-d H:i":"Y-m-d H:i:s";throw new Error("Invalid format type.");},validParts:function(n){if(n=="standard")return/hh?|HH?|p|P|ii?|ss?|dd?|DD?|mm?|MM?|yy(?:yy)?/g;if(n=="php")return/[dDjlNwzFmMnStyYaABgGhHis]/g;throw new Error("Invalid format type.");},nonpunctuation:/[^ -\/:-@\[-`{-~\t\n\rTZ]+/g,parseFormat:function(n,t){var i=n.replace(this.validParts(t),"\0").split("\0"),r=n.match(this.validParts(t));if(!i||!i.length||!r||r.length==0)throw new Error("Invalid date format.");return{separators:i,parts:r}},parseDate:function(t,f,e,o){var b,k,h,l,v,g,s,y;if(t instanceof Date)return b=new Date(t.valueOf()-t.getTimezoneOffset()*6e4),b.setMilliseconds(0),b;if(/^\d{4}\-\d{1,2}\-\d{1,2}$/.test(t)&&(f=this.parseFormat("yyyy-mm-dd",o)),/^\d{4}\-\d{1,2}\-\d{1,2}[T ]\d{1,2}\:\d{1,2}$/.test(t)&&(f=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(t)&&(f=this.parseFormat("yyyy-mm-dd hh:ii:ss",o)),/^[-+]\d+[dmwy]([\s,]+[-+]\d+[dmwy])*$/.test(t)){for(k=/([-+]\d+)([dmwy])/,h=t.match(/([-+]\d+)([dmwy])/g),t=new Date,s=0;s<h.length;s++){l=k.exec(h[s]);v=parseInt(l[1]);switch(l[2]){case"d":t.setUTCDate(t.getUTCDate()+v);break;case"m":t=u.prototype.moveMonth.call(u.prototype,t,v);break;case"w":t.setUTCDate(t.getUTCDate()+v*7);break;case"y":t=u.prototype.moveYear.call(u.prototype,t,v)}}return r(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),0)}var h=t&&t.toString().match(this.nonpunctuation)||[],t=new Date(0,0,0,0,0,0,0),p={},d=["hh","h","ii","i","ss","s","yyyy","yy","M","MM","m","mm","D","DD","d","dd","H","HH","p","P"],c={hh:function(n,t){return n.setUTCHours(t)},h:function(n,t){return n.setUTCHours(t)},HH:function(n,t){return n.setUTCHours(t==12?0:t)},H:function(n,t){return n.setUTCHours(t==12?0:t)},ii:function(n,t){return n.setUTCMinutes(t)},i:function(n,t){return n.setUTCMinutes(t)},ss:function(n,t){return n.setUTCSeconds(t)},s:function(n,t){return n.setUTCSeconds(t)},yyyy:function(n,t){return n.setUTCFullYear(t)},yy:function(n,t){return n.setUTCFullYear(2e3+t)},m:function(n,t){for(t-=1;t<0;)t+=12;for(t%=12,n.setUTCMonth(t);n.getUTCMonth()!=t;){if(isNaN(n.getUTCMonth()))return n;n.setUTCDate(n.getUTCDate()-1)}return n},d:function(n,t){return n.setUTCDate(t)},p:function(n,t){return n.setUTCHours(t==1?n.getUTCHours()+12:n.getUTCHours())}},a,w,l;if(c.M=c.MM=c.mm=c.m,c.dd=c.d,c.P=c.p,t=r(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds()),h.length==f.parts.length){for(s=0,g=f.parts.length;s<g;s++){if(a=parseInt(h[s],10),l=f.parts[s],isNaN(a))switch(l){case"MM":w=n(i[e].months).filter(function(){var n=this.slice(0,h[s].length),t=h[s].slice(0,n.length);return n==t});a=n.inArray(w[0],i[e].months)+1;break;case"M":w=n(i[e].monthsShort).filter(function(){var n=this.slice(0,h[s].length),t=h[s].slice(0,n.length);return n.toLowerCase()==t.toLowerCase()});a=n.inArray(w[0],i[e].monthsShort)+1;break;case"p":case"P":a=n.inArray(h[s].toLowerCase(),i[e].meridiem)}p[l]=a}for(s=0;s<d.length;s++)y=d[s],y in p&&!isNaN(p[y])&&c[y](t,p[y])}return t},formatDate:function(r,u,f,e){var o,r,s,h,c;if(r==null)return"";if(e=="standard")o={yy:r.getUTCFullYear().toString().substring(2),yyyy:r.getUTCFullYear(),m:r.getUTCMonth()+1,M:i[f].monthsShort[r.getUTCMonth()],MM:i[f].months[r.getUTCMonth()],d:r.getUTCDate(),D:i[f].daysShort[r.getUTCDay()],DD:i[f].days[r.getUTCDay()],p:i[f].meridiem.length==2?i[f].meridiem[r.getUTCHours()<12?0:1]:"",h:r.getUTCHours(),i:r.getUTCMinutes(),s:r.getUTCSeconds()},o.H=i[f].meridiem.length==2?o.h%12==0?12:o.h%12: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(e=="php")o={y:r.getUTCFullYear().toString().substring(2),Y:r.getUTCFullYear(),F:i[f].months[r.getUTCMonth()],M:i[f].monthsShort[r.getUTCMonth()],n:r.getUTCMonth()+1,t:t.getDaysInMonth(r.getUTCFullYear(),r.getUTCMonth()),j:r.getUTCDate(),l:i[f].days[r.getUTCDay()],D:i[f].daysShort[r.getUTCDay()],w:r.getUTCDay(),N:r.getUTCDay()==0?7:r.getUTCDay(),S:r.getUTCDate()%10<=i[f].suffix.length?i[f].suffix[r.getUTCDate()%10-1]:"",a:i[f].meridiem.length==2?i[f].meridiem[r.getUTCHours()<12?0:1]:"",g:r.getUTCHours()%12==0?12:r.getUTCHours()%12,G:r.getUTCHours(),i:r.getUTCMinutes(),s:r.getUTCSeconds()},o.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;else throw new Error("Invalid format type.");for(r=[],s=n.extend([],u.separators),h=0,c=u.parts.length;h<c;h++)s.length&&r.push(s.shift()),r.push(o[u.parts[h]]);return s.length&&r.push(s.shift()),r.join("")},convertViewMode:function(n){switch(n){case 4:case"decade":n=4;break;case 3:case"year":n=3;break;case 2:case"month":n=2;break;case 1:case"day":n=1;break;case 0:case"hour":n=0}return n},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} glyphicons icon-chevron-left"><i><\/i><\/span> <\/th><th colspan="5" class="switch"><\/th><th class="next"><span class="{iconType} {rightArrow} glyphicons icon-chevron-right"><i><\/i><\/span> <\/th><\/tr><\/thead>',contTemplate:'<tbody><tr><td colspan="7"><\/td><\/tr><\/tbody>',footTemplate:'<tfoot><tr><th colspan="7" class="today"><\/th><\/tr><\/tfoot>'};t.template='<div class="datetimepicker"><div class="datetimepicker-minutes"><table class=" table-condensed">'+t.headTemplate+t.contTemplate+t.footTemplate+'<\/table><\/div><div class="datetimepicker-hours"><table class=" table-condensed">'+t.headTemplate+t.contTemplate+t.footTemplate+'<\/table><\/div><div class="datetimepicker-days"><table class=" table-condensed">'+t.headTemplate+"<tbody><\/tbody>"+t.footTemplate+'<\/table><\/div><div class="datetimepicker-months"><table class="table-condensed">'+t.headTemplate+t.contTemplate+t.footTemplate+'<\/table><\/div><div class="datetimepicker-years"><table class="table-condensed">'+t.headTemplate+t.contTemplate+t.footTemplate+"<\/table><\/div><\/div>";t.templateV3='<div class="datetimepicker"><div class="datetimepicker-minutes"><table class=" table-condensed">'+t.headTemplateV3+t.contTemplate+t.footTemplate+'<\/table><\/div><div class="datetimepicker-hours"><table class=" table-condensed">'+t.headTemplateV3+t.contTemplate+t.footTemplate+'<\/table><\/div><div class="datetimepicker-days"><table class=" table-condensed">'+t.headTemplateV3+"<tbody><\/tbody>"+t.footTemplate+'<\/table><\/div><div class="datetimepicker-months"><table class="table-condensed">'+t.headTemplateV3+t.contTemplate+t.footTemplate+'<\/table><\/div><div class="datetimepicker-years"><table class="table-condensed">'+t.headTemplateV3+t.contTemplate+t.footTemplate+"<\/table><\/div><\/div>";n.fn.datetimepicker.DPGlobal=t;n.fn.datetimepicker.noConflict=function(){return n.fn.datetimepicker=f,this};n(document).on("focus.datetimepicker.data-api click.datetimepicker.data-api",'[data-provide="datetimepicker"]',function(t){var i=n(this);i.data("datetimepicker")||(t.preventDefault(),i.datetimepicker("show"))});n(function(){n('[data-provide="datetimepicker-inline"]').datetimepicker()})}(window.jQuery),function(n){n.fn.datetimepicker.dates.cs={days:["Neděle","Pondělí","Úterý","Středa","Čtvrtek","Pátek","Sobota","Neděle"],daysShort:["Ned","Pon","Úte","Stř","Čtv","Pát","Sob","Ned"],daysMin:["Ne","Po","Út","St","Čt","Pá","So","Ne"],months:["Leden","Únor","Březen","Duben","Květen","Červen","Červenec","Srpen","Září","Říjen","Listopad","Prosinec"],monthsShort:["Led","Úno","Bře","Dub","Kvě","Čer","Čnc","Srp","Zář","Říj","Lis","Pro"],today:"Dnes",suffix:[],meridiem:[],weekStart:1,format:"dd.mm.yyyy"}}(jQuery),function(n){n.fn.datetimepicker.dates.sk={days:["Nedeľa","Pondelok","Utorok","Streda","Štvrtok","Piatok","Sobota","Nedeľa"],daysShort:["Ned","Pon","Uto","Str","Štv","Pia","Sob","Ned"],daysMin:["Ne","Po","Ut","St","Št","Pia","So","Ne"],months:["Január","Február","Marec","Apríl","Máj","Jún","Júl","August","September","Október","November","December"],monthsShort:["Jan","Feb","Mar","Apr","Máj","Jún","Júl","Aug","Sep","Okt","Nov","Dec"],today:"Dnes",suffix:[],meridiem:[]}}(jQuery),function(n){n.fn.datetimepicker.dates.bg={days:["Неделя","Понеделник","Вторник","Сряда","Четвъртък","Петък","Събота","Неделя"],daysShort:["Нед","Пон","Вто","Сря","Чет","Пет","Съб","Нед"],daysMin:["Н","П","В","С","Ч","П","С","Н"],months:["Януари","Февруари","Март","Април","Май","Юни","Юли","Август","Септември","Октомври","Ноември","Декември"],monthsShort:["Ян","Фев","Мар","Апр","Май","Юни","Юли","Авг","Сеп","Окт","Ное","Дек"],today:"днес",suffix:[],meridiem:[]}}(jQuery),function(n){n.fn.datetimepicker.dates.de={days:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag","Sonntag"],daysShort:["Son","Mon","Die","Mit","Don","Fre","Sam","Son"],daysMin:["So","Mo","Di","Mi","Do","Fr","Sa","So"],months:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],monthsShort:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],today:"Heute",suffix:[],meridiem:[],weekStart:1,format:"dd.mm.yyyy"}}(jQuery),function(n){n.fn.datetimepicker.dates.hr={days:["Nedjelja","Ponedjelja","Utorak","Srijeda","Četrtak","Petak","Subota","Nedjelja"],daysShort:["Ned","Pon","Uto","Srr","Čet","Pet","Sub","Ned"],daysMin:["Ne","Po","Ut","Sr","Če","Pe","Su","Ne"],months:["Siječanj","Veljača","Ožujak","Travanj","Svibanj","Lipanj","Srpanj","Kolovoz","Rujan","Listopad","Studeni","Prosinac"],monthsShort:["Sije","Velj","Ožu","Tra","Svi","Lip","Jul","Kol","Ruj","Lis","Stu","Pro"],today:"Danas",suffix:[],meridiem:[]}}(jQuery),function(n){n.fn.datetimepicker.dates.hu={days:["Vasárnap","Hétfő","Kedd","Szerda","Csütörtök","Péntek","Szombat","Vasárnap"],daysShort:["Vas","Hét","Ked","Sze","Csü","Pén","Szo","Vas"],daysMin:["V","H","K","Sze","Cs","P","Szo","V"],months:["Január","Február","Március","Április","Május","Június","Július","Augusztus","Szeptember","Október","November","December"],monthsShort:["Jan","Feb","Már","Ápr","Máj","Jún","Júl","Aug","Sze","Okt","Nov","Dec"],today:"Ma",suffix:[],meridiem:[],weekStart:1}}(jQuery),function(n){n.fn.datetimepicker.dates.ro={days:["Duminică","Luni","Marţi","Miercuri","Joi","Vineri","Sâmbătă","Duminică"],daysShort:["Dum","Lun","Mar","Mie","Joi","Vin","Sâm","Dum"],daysMin:["Du","Lu","Ma","Mi","Jo","Vi","Sâ","Du"],months:["Ianuarie","Februarie","Martie","Aprilie","Mai","Iunie","Iulie","August","Septembrie","Octombrie","Noiembrie","Decembrie"],monthsShort:["Ian","Feb","Mar","Apr","Mai","Iun","Iul","Aug","Sep","Oct","Nov","Dec"],today:"Astăzi",suffix:[],meridiem:[],weekStart:1}}(jQuery);!function(n,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("moment"),require("jquery")):"function"==typeof define&&define.amd?define(["moment","jquery"],t):"object"==typeof exports?exports.FullCalendar=t(require("moment"),require("jquery")):n.FullCalendar=t(n.moment,n.jQuery)}("undefined"!=typeof self?self:this,function(n,t){return function(n){function t(r){if(i[r])return i[r].exports;var u=i[r]={i:r,l:!1,exports:{}};return n[r].call(u.exports,u,u.exports,t),u.l=!0,u.exports}var i={};return t.m=n,t.c=i,t.d=function(n,i,r){t.o(n,i)||Object.defineProperty(n,i,{configurable:!1,enumerable:!0,get:r})},t.n=function(n){var i=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(i,"a",i),i},t.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},t.p="",t(t.s=236)}([function(t){t.exports=n},,function(n,t){var i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};t.__extends=function(n,t){function r(){this.constructor=n}i(n,t);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}},function(n){n.exports=t},function(n,t,i){function nt(n,t){t.left&&n.css({"border-left-width":1,"margin-left":t.left-1});t.right&&n.css({"border-right-width":1,"margin-right":t.right-1})}function tt(n){n.css({"margin-left":"","margin-right":"","border-left-width":"","border-right-width":""})}function it(){r("body").addClass("fc-not-allowed")}function rt(){r("body").removeClass("fc-not-allowed")}function ut(n,t,i){var u=Math.floor(t/n.length),e=Math.floor(t-u*(n.length-1)),f=[],o=[],s=[],h=0;c(n);n.each(function(t,i){var l=t===n.length-1?e:u,c=r(i).outerHeight(!0);c<l?(f.push(i),o.push(c),s.push(r(i).height())):h+=c});i&&(t-=h,u=Math.floor(t/f.length),e=Math.floor(t-u*(f.length-1)));r(f).each(function(n,t){var i=n===f.length-1?e:u,h=o[n],c=s[n],l=i-(h-c);h<i&&r(t).height(l)})}function c(n){n.height("")}function ft(n){var t=0;return n.find("> *").each(function(n,i){var u=r(i).outerWidth();u>t&&(t=u)}),t++,n.width(t),t}function et(n,t){var i,r=n.add(t);return r.css({position:"relative",left:-1}),i=n.outerHeight()-t.outerHeight(),r.css({position:"",left:""}),i}function ot(n){var i=n.css("position"),t=n.parents().filter(function(){var n=r(this);return/(auto|scroll)/.test(n.css("overflow")+n.css("overflow-y")+n.css("overflow-x"))}).eq(0);return"fixed"!==i&&t.length?t:r(n[0].ownerDocument||document)}function st(n,t){var i=n.offset(),r=i.left-(t?t.left:0),u=i.top-(t?t.top:0);return{left:r,right:r+n.outerWidth(),top:u,bottom:u+n.outerHeight()}}function ht(n,t){var i=n.offset(),r=l(n),u=i.left+f(n,"border-left-width")+r.left-(t?t.left:0),e=i.top+f(n,"border-top-width")+r.top-(t?t.top:0);return{left:u,right:u+n[0].clientWidth,top:e,bottom:e+n[0].clientHeight}}function ct(n,t){var i=n.offset(),r=i.left+f(n,"border-left-width")+f(n,"padding-left")-(t?t.left:0),u=i.top+f(n,"border-top-width")+f(n,"padding-top")-(t?t.top:0);return{left:r,right:r+n.width(),top:u,bottom:u+n.height()}}function l(n){var t,i=n[0].offsetWidth-n[0].clientWidth,r=n[0].offsetHeight-n[0].clientHeight;return i=a(i),r=a(r),t={left:0,right:0,top:0,bottom:r},lt()&&"rtl"===n.css("direction")?t.left=i:t.right=i,t}function a(n){return n=Math.max(0,n),n=Math.round(n)}function lt(){return null===s&&(s=at()),s}function at(){var n=r("<div><div/><\/div>").css({position:"absolute",top:-1e3,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"}).appendTo("body"),t=n.children(),i=t.offset().left>n.offset().left;return n.remove(),i}function f(n,t){return parseFloat(n.css(t))||0}function vt(n){return 1===n.which&&!n.ctrlKey}function yt(n){var t=n.originalEvent.touches;return t&&t.length?t[0].pageX:n.pageX}function pt(n){var t=n.originalEvent.touches;return t&&t.length?t[0].pageY:n.pageY}function wt(n){return/^touch/.test(n.type)}function bt(n){n.addClass("fc-unselectable").on("selectstart",h)}function kt(n){n.removeClass("fc-unselectable").off("selectstart",h)}function h(n){n.preventDefault()}function dt(n,t){var i={left:Math.max(n.left,t.left),right:Math.min(n.right,t.right),top:Math.max(n.top,t.top),bottom:Math.min(n.bottom,t.bottom)};return i.left<i.right&&i.top<i.bottom&&i}function gt(n,t){return{left:Math.min(Math.max(n.left,t.left),t.right),top:Math.min(Math.max(n.top,t.top),t.bottom)}}function ni(n){return{left:(n.left+n.right)/2,top:(n.top+n.bottom)/2}}function ti(n,t){return{left:n.left-t.left,top:n.top-t.top}}function ii(n){var u,t,f=[],i=[];for("string"==typeof n?i=n.split(/\s*,\s*/):"function"==typeof n?i=[n]:r.isArray(n)&&(i=n),u=0;u<i.length;u++)t=i[u],"string"==typeof t?f.push("-"===t.charAt(0)?{field:t.substring(1),order:-1}:{field:t,order:1}):"function"==typeof t&&f.push({func:t});return f}function ri(n,t,i,r,u){for(var e,f=0;f<i.length;f++)if(e=v(n,t,i[f],r,u))return e;return 0}function v(n,t,i,r,u){if(i.func)return i.func(n,t);var f=n[i.field],e=t[i.field];return null==f&&r&&(f=r[i.field]),null==e&&u&&(e=u[i.field]),y(f,e)*(i.order||1)}function y(n,t){return n||t?null==t?-1:null==n?1:"string"===r.type(n)||"string"===r.type(t)?String(n).localeCompare(String(t)):n-t:0}function ui(n,t){return u.duration({days:n.clone().stripTime().diff(t.clone().stripTime(),"days"),ms:n.time()-t.time()})}function fi(n,t){return u.duration({days:n.clone().stripTime().diff(t.clone().stripTime(),"days")})}function ei(n,t,i){return u.duration(Math.round(n.diff(t,i,!0)),i)}function p(n,i){for(var u,f,r=0;r<t.unitsDesc.length&&(u=t.unitsDesc[r],!((f=si(u,n,i))>=1&&e(f)));r++);return u}function oi(n,t){var i=p(n);return"week"===i&&"object"==typeof t&&t.days&&(i="day"),i}function si(n,t,i){return null!=i?i.diff(t,n,!0):u.isDuration(t)?t.as(n):t.end.diff(t.start,n,!0)}function hi(n,t,i){var r;return o(i)?(t-n)/i:(r=i.asMonths(),Math.abs(r)>=1&&e(r)?t.diff(n,"months",!0)/r:t.diff(n,"days",!0)/i.asDays())}function ci(n,t){var i,r;return o(n)||o(t)?n/t:(i=n.asMonths(),r=t.asMonths(),Math.abs(i)>=1&&e(i)&&Math.abs(r)>=1&&e(r)?i/r:n.asDays()/t.asDays())}function li(n,t){var i;return o(n)?u.duration(n*t):(i=n.asMonths(),Math.abs(i)>=1&&e(i)?u.duration({months:i*t}):u.duration({days:n.asDays()*t}))}function o(n){return Boolean(n.hours()||n.minutes()||n.seconds()||n.milliseconds())}function ai(n){return"[object Date]"===Object.prototype.toString.call(n)||n instanceof Date}function vi(n){return"string"==typeof n&&/^\d+\:\d+(?:\:\d+\.?(?:\d{3})?)?$/.test(n)}function w(){for(var t,i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];return t=window.console,t&&t.log?t.log.apply(t,i):void 0}function yi(){for(var t,i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];return t=window.console,t&&t.warn?t.warn.apply(t,i):w.apply(null,i)}function b(n,t){var i,r,f,e,o,s,u={};if(t)for(i=0;i<t.length;i++){for(r=t[i],f=[],e=n.length-1;e>=0;e--)if("object"==typeof(o=n[e][r]))f.unshift(o);else if(void 0!==o){u[r]=o;break}f.length&&(u[r]=b(f))}for(i=n.length-1;i>=0;i--){s=n[i];for(r in s)r in u||(u[r]=s[r])}return u}function pi(n,t){for(var i in n)k(n,i)&&(t[i]=n[i])}function k(n,t){return g.call(n,t)}function wi(n,t,i){if(r.isFunction(n)&&(n=[n]),n){for(var u=void 0,f=void 0,u=0;u<n.length;u++)f=n[u].apply(t,i)||f;return f}}function bi(n,t){for(var r=0,i=0;i<n.length;)t(n[i])?(n.splice(i,1),r++):i++;return r}function ki(n,t){for(var r=0,i=0;i<n.length;)n[i]===t?(n.splice(i,1),r++):i++;return r}function di(n,t){var i,r=n.length;if(null==r||r!==t.length)return!1;for(i=0;i<r;i++)if(n[i]!==t[i])return!1;return!0}function gi(){for(var i,n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];for(i=0;i<n.length;i++)if(void 0!==n[i])return n[i]}function d(n){return(n+"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/'/g,"&#039;").replace(/"/g,"&quot;").replace(/\n/g,"<br />")}function nr(n){return n.replace(/&.*?;/g,"")}function tr(n){var t=[];return r.each(n,function(n,i){null!=i&&t.push(n+":"+i)}),t.join(";")}function ir(n){var t=[];return r.each(n,function(n,i){null!=i&&t.push(n+'="'+d(i)+'"')}),t.join(" ")}function rr(n){return n.charAt(0).toUpperCase()+n.slice(1)}function ur(n,t){return n-t}function e(n){return n%1==0}function fr(n,t){var i=n[t];return function(){return i.apply(n,arguments)}}function er(n,t,i){void 0===i&&(i=!1);var r,u,f,o,e,s=function(){var h=+new Date-o;h<t?r=setTimeout(s,t-h):(r=null,i||(e=n.apply(f,u),f=u=null))};return function(){f=this;u=arguments;o=+new Date;var h=i&&!r;return r||(r=setTimeout(s,t)),h&&(e=n.apply(f,u),f=u=null),e}}var u,r,s,g;Object.defineProperty(t,"__esModule",{value:!0});u=i(0);r=i(3);t.compensateScroll=nt;t.uncompensateScroll=tt;t.disableCursor=it;t.enableCursor=rt;t.distributeHeight=ut;t.undistributeHeight=c;t.matchCellWidths=ft;t.subtractInnerElHeight=et;t.getScrollParent=ot;t.getOuterRect=st;t.getClientRect=ht;t.getContentRect=ct;t.getScrollbarWidths=l;s=null;t.isPrimaryMouseButton=vt;t.getEvX=yt;t.getEvY=pt;t.getEvIsTouch=wt;t.preventSelection=bt;t.allowSelection=kt;t.preventDefault=h;t.intersectRects=dt;t.constrainPoint=gt;t.getRectCenter=ni;t.diffPoints=ti;t.parseFieldSpecs=ii;t.compareByFieldSpecs=ri;t.compareByFieldSpec=v;t.flexibleCompare=y;t.dayIDs=["sun","mon","tue","wed","thu","fri","sat"];t.unitsDesc=["year","month","week","day","hour","minute","second","millisecond"];t.diffDayTime=ui;t.diffDay=fi;t.diffByUnit=ei;t.computeGreatestUnit=p;t.computeDurationGreatestUnit=oi;t.divideRangeByDuration=hi;t.divideDurationByDuration=ci;t.multiplyDuration=li;t.durationHasTime=o;t.isNativeDate=ai;t.isTimeString=vi;t.log=w;t.warn=yi;g={}.hasOwnProperty;t.mergeProps=b;t.copyOwnProps=pi;t.hasOwnProp=k;t.applyAll=wi;t.removeMatching=bi;t.removeExact=ki;t.isArraysEqual=di;t.firstDefined=gi;t.htmlEscape=d;t.stripHtmlEntities=nr;t.cssToStr=tr;t.attrsToStr=ir;t.capitaliseFirstLetter=rr;t.compareNumbers=ur;t.isInt=e;t.proxy=fr;t.debounce=er},function(n,t,i){function f(n,t){return n.startMs-t.startMs}Object.defineProperty(t,"__esModule",{value:!0});var r=i(0),u=i(10),e=function(){function n(n,t){this.isStart=!0;this.isEnd=!0;r.isMoment(n)&&(n=n.clone().stripZone());r.isMoment(t)&&(t=t.clone().stripZone());n&&(this.startMs=n.valueOf());t&&(this.endMs=t.valueOf())}return n.invertRanges=function(t,i){var e,u,o=[],r=i.startMs;for(t.sort(f),e=0;e<t.length;e++)u=t[e],u.startMs>r&&o.push(new n(r,u.startMs)),u.endMs>r&&(r=u.endMs);return r<i.endMs&&o.push(new n(r,i.endMs)),o},n.prototype.intersect=function(t){var i=this.startMs,r=this.endMs,u=null;return null!=t.startMs&&(i=null==i?t.startMs:Math.max(i,t.startMs)),null!=t.endMs&&(r=null==r?t.endMs:Math.min(r,t.endMs)),(null==i||null==r||i<r)&&(u=new n(i,r),u.isStart=this.isStart&&i===this.startMs,u.isEnd=this.isEnd&&r===this.endMs),u},n.prototype.intersectsWith=function(n){return(null==this.endMs||null==n.startMs||this.endMs>n.startMs)&&(null==this.startMs||null==n.endMs||this.startMs<n.endMs)},n.prototype.containsRange=function(n){return(null==this.startMs||null!=n.startMs&&n.startMs>=this.startMs)&&(null==this.endMs||null!=n.endMs&&n.endMs<=this.endMs)},n.prototype.containsDate=function(n){var t=n.valueOf();return(null==this.startMs||t>=this.startMs)&&(null==this.endMs||t<this.endMs)},n.prototype.constrainDate=function(n){var t=n.valueOf();return null!=this.startMs&&t<this.startMs&&(t=this.startMs),null!=this.endMs&&t>=this.endMs&&(t=this.endMs-1),t},n.prototype.equals=function(n){return this.startMs===n.startMs&&this.endMs===n.endMs},n.prototype.clone=function(){var t=new n(this.startMs,this.endMs);return t.isStart=this.isStart,t.isEnd=this.isEnd,t},n.prototype.getStart=function(){return null!=this.startMs?u.default.utc(this.startMs).stripZone():null},n.prototype.getEnd=function(){return null!=this.endMs?u.default.utc(this.endMs).stripZone():null},n.prototype.as=function(n){return r.utc(this.endMs).diff(r.utc(this.startMs),n,!0)},n}();t.default=e},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var f=i(2),e=i(3),r=i(208),o=i(33),s=i(49),u=function(n){function t(i){var r=n.call(this)||this;return r.calendar=i,r.className=[],r.uid=String(t.uuid++),r}return f.__extends(t,n),t.parse=function(n,t){var i=new this(t);return!("object"!=typeof n||!i.applyProps(n))&&i},t.normalizeId=function(n){return n?String(n):null},t.prototype.fetch=function(){},t.prototype.removeEventDefsById=function(){},t.prototype.removeAllEventDefs=function(){},t.prototype.getPrimitive=function(){},t.prototype.parseEventDefs=function(n){for(var i,r=[],t=0;t<n.length;t++)(i=this.parseEventDef(n[t]))&&r.push(i);return r},t.prototype.parseEventDef=function(n){var t=this.calendar.opt("eventDataTransform"),i=this.eventDataTransform;return t&&(n=t(n,this.calendar)),i&&(n=i(n,this.calendar)),s.default.parse(n,this)},t.prototype.applyManualStandardProps=function(n){return null!=n.id&&(this.id=t.normalizeId(n.id)),e.isArray(n.className)?this.className=n.className:"string"==typeof n.className&&(this.className=n.className.split(/\s+/)),!0},t.uuid=0,t.defineStandardProps=r.default.defineStandardProps,t.copyVerbatimStandardProps=r.default.copyVerbatimStandardProps,t}(o.default);t.default=u;r.default.mixInto(u);u.defineStandardProps({id:!1,className:!1,color:!0,backgroundColor:!0,borderColor:!0,textColor:!0,editable:!0,startEditable:!0,durationEditable:!0,rendering:!0,overlap:!0,constraint:!0,allDayDefault:!0,eventDataTransform:!0})},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(2),u=i(3),f=i(14),e=0,o=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return r.__extends(t,n),t.prototype.listenTo=function(n,t,i){if("object"==typeof t)for(var r in t)t.hasOwnProperty(r)&&this.listenTo(n,r,t[r]);else"string"==typeof t&&n.on(t+"."+this.getListenerNamespace(),u.proxy(i,this))},t.prototype.stopListeningTo=function(n,t){n.off((t||"")+"."+this.getListenerNamespace())},t.prototype.getListenerNamespace=function(){return null==this.listenerId&&(this.listenerId=e++),"_listener"+this.listenerId},t}(f.default);t.default=o},,,function(n,t,i){function c(n,t){return f.format.call(n,t)}function s(n,t,i){void 0===t&&(t=!1);void 0===i&&(i=!1);var e,o,s,f,u=n[0],c=1===n.length&&"string"==typeof u;return r.isMoment(u)||l.isNativeDate(u)||void 0===u?f=r.apply(null,n):(e=!1,o=!1,c?a.test(u)?(u+="-01",n=[u],e=!0,o=!0):(s=v.exec(u))&&(e=!s[5],o=!0):h.isArray(u)&&(o=!0),f=t||e?r.utc.apply(r,n):r.apply(null,n),e?(f._ambigTime=!0,f._ambigZone=!0):i&&(o?f._ambigZone=!0:c&&f.utcOffset(u))),f._fullCalendar=!0,f}var f,e,o;Object.defineProperty(t,"__esModule",{value:!0});var r=i(0),h=i(3),l=i(4),a=/^\s*\d{4}-\d\d$/,v=/^\s*\d{4}-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?)?$/,u=r.fn;t.newMomentProto=u;f=h.extend({},u);t.oldMomentProto=f;e=r.momentProperties;e.push("_fullCalendar");e.push("_ambigTime");e.push("_ambigZone");t.oldMomentFormat=c;o=function(){return s(arguments)};t.default=o;o.utc=function(){var n=s(arguments,!0);return n.hasTime()&&n.utc(),n};o.parseZone=function(){return s(arguments,!0,!0)};u.week=u.weeks=function(n){var t=this._locale._fullCalendar_weekCalc;return null==n&&"function"==typeof t?t(this):"ISO"===t?f.isoWeek.apply(this,arguments):f.week.apply(this,arguments)};u.time=function(n){if(!this._fullCalendar)return f.time.apply(this,arguments);if(null==n)return r.duration({hours:this.hours(),minutes:this.minutes(),seconds:this.seconds(),milliseconds:this.milliseconds()});this._ambigTime=!1;r.isDuration(n)||r.isMoment(n)||(n=r.duration(n));var t=0;return r.isDuration(n)&&(t=24*Math.floor(n.asDays())),this.hours(t+n.hours()).minutes(n.minutes()).seconds(n.seconds()).milliseconds(n.milliseconds())};u.stripTime=function(){return this._ambigTime||(this.utc(!0),this.set({hours:0,minutes:0,seconds:0,ms:0}),this._ambigTime=!0,this._ambigZone=!0),this};u.hasTime=function(){return!this._ambigTime};u.stripZone=function(){var n;return this._ambigZone||(n=this._ambigTime,this.utc(!0),this._ambigTime=n||!1,this._ambigZone=!0),this};u.hasZone=function(){return!this._ambigZone};u.local=function(n){return f.local.call(this,this._ambigZone||n),this._ambigTime=!1,this._ambigZone=!1,this};u.utc=function(n){return f.utc.call(this,n),this._ambigTime=!1,this._ambigZone=!1,this};u.utcOffset=function(n){return null!=n&&(this._ambigTime=!1,this._ambigZone=!1),f.utcOffset.apply(this,arguments)}},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var u=i(2),r=i(3),f=i(14),e=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return u.__extends(t,n),t.prototype.on=function(n,t){return r(this).on(n,this._prepareIntercept(t)),this},t.prototype.one=function(n,t){return r(this).one(n,this._prepareIntercept(t)),this},t.prototype._prepareIntercept=function(n){var t=function(t,i){return n.apply(i.context||this,i.args||[])};return n.guid||(n.guid=r.guid++),t.guid=n.guid,t},t.prototype.off=function(n,t){return r(this).off(n,t),this},t.prototype.trigger=function(n){for(var i=[],t=1;t<arguments.length;t++)i[t-1]=arguments[t];return r(this).triggerHandler(n,{args:i}),this},t.prototype.triggerWith=function(n,t,i){return r(this).triggerHandler(n,{context:t,args:i}),this},t.prototype.hasHandlers=function(n){var t=r._data(this,"events");return t&&t[n]&&t[n].length>0},t}(f.default);t.default=e},function(n,t){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function n(n,t){this.isAllDay=!1;this.unzonedRange=n;this.isAllDay=t}return n.prototype.toLegacy=function(n){return{start:n.msToMoment(this.unzonedRange.startMs,this.isAllDay),end:n.msToMoment(this.unzonedRange.endMs,this.isAllDay)}},n}();t.default=i},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var f=i(2),e=i(34),o=i(209),r=i(17),u=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return f.__extends(t,n),t.prototype.buildInstances=function(){return[this.buildInstance()]},t.prototype.buildInstance=function(){return new o.default(this,this.dateProfile)},t.prototype.isAllDay=function(){return this.dateProfile.isAllDay()},t.prototype.clone=function(){var t=n.prototype.clone.call(this);return t.dateProfile=this.dateProfile,t},t.prototype.rezone=function(){var n=this.source.calendar,t=this.dateProfile;this.dateProfile=new r.default(n.moment(t.start),t.end?n.moment(t.end):null,n)},t.prototype.applyManualStandardProps=function(t){var u=n.prototype.applyManualStandardProps.call(this,t),i=r.default.parse(t,this.source);return!!i&&(this.dateProfile=i,null!=t.date&&(this.miscProps.date=t.date),u)},t}(e.default);t.default=u;u.defineStandardProps({start:!1,date:!1,end:!1,allDay:!1})},function(n,t){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function n(){}return n.mixInto=function(n){var t=this;Object.getOwnPropertyNames(this.prototype).forEach(function(i){n.prototype[i]||(n.prototype[i]=t.prototype[i])})},n.mixOver=function(n){var t=this;Object.getOwnPropertyNames(this.prototype).forEach(function(i){n.prototype[i]=t.prototype[i]})},n}();t.default=i},function(n,t){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function n(n){this.view=n._getView();this.component=n}return n.prototype.opt=function(n){return this.view.opt(n)},n.prototype.end=function(){},n}();t.default=i},function(n,t,i){var r,u,f,o,s,h,c,l,a,v,y,p,w,b,k,d,g,nt,tt,it,rt,ut,ft,et,ot,st,ht,ct,lt,at,vt,yt,pt,wt,e,bt,kt,dt,gt,ni,ti,ii,ri,ui,fi,ei,oi,si,hi,ci,li,ai;Object.defineProperty(t,"__esModule",{value:!0});t.version="3.9.0";t.internalApiVersion=12;r=i(4);t.applyAll=r.applyAll;t.debounce=r.debounce;t.isInt=r.isInt;t.htmlEscape=r.htmlEscape;t.cssToStr=r.cssToStr;t.proxy=r.proxy;t.capitaliseFirstLetter=r.capitaliseFirstLetter;t.getOuterRect=r.getOuterRect;t.getClientRect=r.getClientRect;t.getContentRect=r.getContentRect;t.getScrollbarWidths=r.getScrollbarWidths;t.preventDefault=r.preventDefault;t.parseFieldSpecs=r.parseFieldSpecs;t.compareByFieldSpecs=r.compareByFieldSpecs;t.compareByFieldSpec=r.compareByFieldSpec;t.flexibleCompare=r.flexibleCompare;t.computeGreatestUnit=r.computeGreatestUnit;t.divideRangeByDuration=r.divideRangeByDuration;t.divideDurationByDuration=r.divideDurationByDuration;t.multiplyDuration=r.multiplyDuration;t.durationHasTime=r.durationHasTime;t.log=r.log;t.warn=r.warn;t.removeExact=r.removeExact;t.intersectRects=r.intersectRects;u=i(47);t.formatDate=u.formatDate;t.formatRange=u.formatRange;t.queryMostGranularFormatUnit=u.queryMostGranularFormatUnit;f=i(31);t.datepickerLocale=f.datepickerLocale;t.locale=f.locale;o=i(10);t.moment=o.default;s=i(11);t.EmitterMixin=s.default;h=i(7);t.ListenerMixin=h.default;c=i(48);t.Model=c.default;l=i(207);t.Constraints=l.default;a=i(5);t.UnzonedRange=a.default;v=i(12);t.ComponentFootprint=v.default;y=i(212);t.BusinessHourGenerator=y.default;p=i(34);t.EventDef=p.default;w=i(37);t.EventDefMutation=w.default;b=i(38);t.EventSourceParser=b.default;k=i(6);t.EventSource=k.default;d=i(51);t.defineThemeSystem=d.defineThemeSystem;g=i(18);t.EventInstanceGroup=g.default;nt=i(52);t.ArrayEventSource=nt.default;tt=i(215);t.FuncEventSource=tt.default;it=i(216);t.JsonFeedEventSource=it.default;rt=i(36);t.EventFootprint=rt.default;ut=i(33);t.Class=ut.default;ft=i(14);t.Mixin=ft.default;et=i(53);t.CoordCache=et.default;ot=i(54);t.DragListener=ot.default;st=i(20);t.Promise=st.default;ht=i(217);t.TaskQueue=ht.default;ct=i(218);t.RenderQueue=ct.default;lt=i(39);t.Scroller=lt.default;at=i(19);t.Theme=at.default;vt=i(219);t.DateComponent=vt.default;yt=i(40);t.InteractiveDateComponent=yt.default;pt=i(220);t.Calendar=pt.default;wt=i(41);t.View=wt.default;e=i(22);t.defineView=e.defineView;t.getViewConfig=e.getViewConfig;bt=i(55);t.DayTableMixin=bt.default;kt=i(56);t.BusinessHourRenderer=kt.default;dt=i(42);t.EventRenderer=dt.default;gt=i(57);t.FillRenderer=gt.default;ni=i(58);t.HelperRenderer=ni.default;ti=i(222);t.ExternalDropping=ti.default;ii=i(223);t.EventResizing=ii.default;ri=i(59);t.EventPointing=ri.default;ui=i(224);t.EventDragging=ui.default;fi=i(225);t.DateSelecting=fi.default;ei=i(60);t.StandardInteractionsMixin=ei.default;oi=i(226);t.AgendaView=oi.default;si=i(227);t.TimeGrid=si.default;hi=i(61);t.DayGrid=hi.default;ci=i(62);t.BasicView=ci.default;li=i(229);t.MonthView=li.default;ai=i(230);t.ListView=ai.default},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(5),u=function(){function n(n,t,i){this.start=n;this.end=t||null;this.unzonedRange=this.buildUnzonedRange(i)}return n.parse=function(t,i){var o=t.start||t.date,s=t.end;if(!o)return!1;var f=i.calendar,u=f.moment(o),r=s?f.moment(s):null,e=t.allDay,h=f.opt("forceEventDuration");return!!u.isValid()&&(!r||r.isValid()&&r.isAfter(u)||(r=null),null==e&&null==(e=i.allDayDefault)&&(e=f.opt("allDayDefault")),!0===e?(u.stripTime(),r&&r.stripTime()):!1===e&&(u.hasTime()||u.time(0),r&&!r.hasTime()&&r.time(0)),!r&&h&&(r=f.getDefaultEventEnd(!u.hasTime(),u)),new n(u,r,f))},n.isStandardProp=function(n){return"start"===n||"date"===n||"end"===n||"allDay"===n},n.prototype.isAllDay=function(){return!(this.start.hasTime()||this.end&&this.end.hasTime())},n.prototype.buildUnzonedRange=function(n){var t=this.start.clone().stripZone().valueOf(),i=this.getEnd(n).stripZone().valueOf();return new r.default(t,i)},n.prototype.getEnd=function(n){return this.end?this.end.clone():n.getDefaultEventEnd(this.isAllDay(),this.start)},n}();t.default=u},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var f=i(5),r=i(35),u=i(211),e=function(){function n(n){this.eventInstances=n||[]}return n.prototype.getAllEventRanges=function(n){return n?this.sliceNormalRenderRanges(n):this.eventInstances.map(r.eventInstanceToEventRange)},n.prototype.sliceRenderRanges=function(n){return this.isInverse()?this.sliceInverseRenderRanges(n):this.sliceNormalRenderRanges(n)},n.prototype.sliceNormalRenderRanges=function(n){for(var i,r,f=this.eventInstances,e=[],t=0;t<f.length;t++)i=f[t],(r=i.dateProfile.unzonedRange.intersect(n))&&e.push(new u.default(r,i.def,i));return e},n.prototype.sliceInverseRenderRanges=function(n){var t=this.eventInstances.map(r.eventInstanceToUnzonedRange),i=this.getEventDef();return t=f.default.invertRanges(t,n),t.map(function(n){return new u.default(n,i)})},n.prototype.isInverse=function(){return this.getEventDef().hasInverseRendering()},n.prototype.getEventDef=function(){return this.explicitEventDef||this.eventInstances[0].def},n}();t.default=e},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var u=i(3),r=function(){function n(n){this.optionsManager=n;this.processIconOverride()}return n.prototype.processIconOverride=function(){this.iconOverrideOption&&this.setIconOverride(this.optionsManager.get(this.iconOverrideOption))},n.prototype.setIconOverride=function(n){var t,i;if(u.isPlainObject(n)){t=u.extend({},this.iconClasses);for(i in n)t[i]=this.applyIconOverridePrefix(n[i]);this.iconClasses=t}else!1===n&&(this.iconClasses={})},n.prototype.applyIconOverridePrefix=function(n){var t=this.iconOverridePrefix;return t&&0!==n.indexOf(t)&&(n=t+n),n},n.prototype.getClass=function(n){return this.classes[n]||""},n.prototype.getIconClass=function(n){var t=this.iconClasses[n];return t?this.baseIconClass+" "+t:""},n.prototype.getCustomButtonIconClass=function(n){var t;return this.iconOverrideCustomButtonOption&&(t=n[this.iconOverrideCustomButtonOption])?this.baseIconClass+" "+this.applyIconOverridePrefix(t):""},n}();t.default=r;r.prototype.classes={};r.prototype.iconClasses={};r.prototype.baseIconClass="";r.prototype.iconOverridePrefix=""},function(n,t,i){function u(n,t){n.then=function(i){return"function"==typeof i?e.resolve(i(t)):n}}function f(n){n.then=function(t,i){return"function"==typeof i&&i(),n}}Object.defineProperty(t,"__esModule",{value:!0});var r=i(3),e={construct:function(n){var t=r.Deferred(),i=t.promise();return"function"==typeof n&&n(function(n){t.resolve(n);u(i,n)},function(){t.reject();f(i)}),i},resolve:function(n){var i=r.Deferred().resolve(n),t=i.promise();return u(t,n),t},reject:function(){var t=r.Deferred().reject(),n=t.promise();return f(n),n}};t.default=e},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var u=i(3),e=i(16),s=i(11),h=i(7);e.touchMouseIgnoreWait=500;var r=null,o=0,f=function(){function n(){this.isTouching=!1;this.mouseIgnoreDepth=0}return n.get=function(){return r||(r=new n,r.bind()),r},n.needed=function(){n.get();o++},n.unneeded=function(){--o||(r.unbind(),r=null)},n.prototype.bind=function(){var n=this;this.listenTo(u(document),{touchstart:this.handleTouchStart,touchcancel:this.handleTouchCancel,touchend:this.handleTouchEnd,mousedown:this.handleMouseDown,mousemove:this.handleMouseMove,mouseup:this.handleMouseUp,click:this.handleClick,selectstart:this.handleSelectStart,contextmenu:this.handleContextMenu});window.addEventListener("touchmove",this.handleTouchMoveProxy=function(t){n.handleTouchMove(u.Event(t))},{passive:!1});window.addEventListener("scroll",this.handleScrollProxy=function(t){n.handleScroll(u.Event(t))},!0)},n.prototype.unbind=function(){this.stopListeningTo(u(document));window.removeEventListener("touchmove",this.handleTouchMoveProxy);window.removeEventListener("scroll",this.handleScrollProxy,!0)},n.prototype.handleTouchStart=function(n){this.stopTouch(n,!0);this.isTouching=!0;this.trigger("touchstart",n)},n.prototype.handleTouchMove=function(n){this.isTouching&&this.trigger("touchmove",n)},n.prototype.handleTouchCancel=function(n){this.isTouching&&(this.trigger("touchcancel",n),this.stopTouch(n))},n.prototype.handleTouchEnd=function(n){this.stopTouch(n)},n.prototype.handleMouseDown=function(n){this.shouldIgnoreMouse()||this.trigger("mousedown",n)},n.prototype.handleMouseMove=function(n){this.shouldIgnoreMouse()||this.trigger("mousemove",n)},n.prototype.handleMouseUp=function(n){this.shouldIgnoreMouse()||this.trigger("mouseup",n)},n.prototype.handleClick=function(n){this.shouldIgnoreMouse()||this.trigger("click",n)},n.prototype.handleSelectStart=function(n){this.trigger("selectstart",n)},n.prototype.handleContextMenu=function(n){this.trigger("contextmenu",n)},n.prototype.handleScroll=function(n){this.trigger("scroll",n)},n.prototype.stopTouch=function(n,t){void 0===t&&(t=!1);this.isTouching&&(this.isTouching=!1,this.trigger("touchend",n),t||this.startTouchMouseIgnore())},n.prototype.startTouchMouseIgnore=function(){var t=this,n=e.touchMouseIgnoreWait;n&&(this.mouseIgnoreDepth++,setTimeout(function(){t.mouseIgnoreDepth--},n))},n.prototype.shouldIgnoreMouse=function(){return this.isTouching||Boolean(this.mouseIgnoreDepth)},n}();t.default=f;h.default.mixInto(f);s.default.mixInto(f)},function(n,t,i){function r(n,i){t.viewHash[n]=i}function u(n){return t.viewHash[n]}Object.defineProperty(t,"__esModule",{value:!0});var f=i(16);t.viewHash={};f.views=t.viewHash;t.defineView=r;t.getViewConfig=u},function(n,t,i){function u(n,t){return!n&&!t||!(!n||!t)&&n.component===t.component&&f(n,t)&&f(t,n)}function f(n,t){for(var i in n)if(!/^(component|left|right|top|bottom)$/.test(i)&&n[i]!==t[i])return!1;return!0}Object.defineProperty(t,"__esModule",{value:!0});var e=i(2),r=i(4),o=i(54),s=function(n){function t(t,i){var r=n.call(this,i)||this;return r.component=t,r}return e.__extends(t,n),t.prototype.handleInteractionStart=function(t){var u,f,i,e=this.subjectEl;this.component.hitsNeeded();this.computeScrollBounds();t?(f={left:r.getEvX(t),top:r.getEvY(t)},i=f,e&&(u=r.getOuterRect(e),i=r.constrainPoint(i,u)),this.origHit=this.queryHit(i.left,i.top),e&&this.options.subjectCenter&&(this.origHit&&(u=r.intersectRects(this.origHit,u)||u),i=r.getRectCenter(u)),this.coordAdjust=r.diffPoints(i,f)):(this.origHit=null,this.coordAdjust=null);n.prototype.handleInteractionStart.call(this,t)},t.prototype.handleDragStart=function(t){var i;n.prototype.handleDragStart.call(this,t);(i=this.queryHit(r.getEvX(t),r.getEvY(t)))&&this.handleHitOver(i)},t.prototype.handleDrag=function(t,i,f){var e;n.prototype.handleDrag.call(this,t,i,f);e=this.queryHit(r.getEvX(f),r.getEvY(f));u(e,this.hit)||(this.hit&&this.handleHitOut(),e&&this.handleHitOver(e))},t.prototype.handleDragEnd=function(t){this.handleHitDone();n.prototype.handleDragEnd.call(this,t)},t.prototype.handleHitOver=function(n){var t=u(n,this.origHit);this.hit=n;this.trigger("hitOver",this.hit,t,this.origHit)},t.prototype.handleHitOut=function(){this.hit&&(this.trigger("hitOut",this.hit),this.handleHitDone(),this.hit=null)},t.prototype.handleHitDone=function(){this.hit&&this.trigger("hitDone",this.hit)},t.prototype.handleInteractionEnd=function(t,i){n.prototype.handleInteractionEnd.call(this,t,i);this.origHit=null;this.hit=null;this.component.hitsNotNeeded()},t.prototype.handleScrollEnd=function(){n.prototype.handleScrollEnd.call(this);this.isDragging&&(this.component.releaseHits(),this.component.prepareHits())},t.prototype.queryHit=function(n,t){return this.coordAdjust&&(n+=this.coordAdjust.left,t+=this.coordAdjust.top),this.component.queryHit(n,t)},t}(o.default);t.default=s},,,,,,,,function(n,t,i){function h(n){r.each(y,function(t,i){null==n[t]&&(n[t]=i(n))})}function c(n,i,u){var e=t.localeOptionHash[n]||(t.localeOptionHash[n]={}),f;e.isRTL=u.isRTL;e.weekNumberTitle=u.weekHeader;r.each(a,function(n,t){e[n]=t(u)});f=r.datepicker;f&&(f.regional[i]=f.regional[n]=u,f.regional.en=f.regional[""],f.setDefaults(u))}function e(n,i){var f,e;f=t.localeOptionHash[n]||(t.localeOptionHash[n]={});i&&(f=t.localeOptionHash[n]=u.mergeOptions([f,i]));e=o(n);r.each(v,function(n,t){null==f[n]&&(f[n]=t(e,f))});u.globalDefaults.locale=n}function o(n){return s.localeData(n)||s.localeData("en")}Object.defineProperty(t,"__esModule",{value:!0});var r=i(3),s=i(0),l=i(16),u=i(32),f=i(4);t.localeOptionHash={};l.locales=t.localeOptionHash;var a={buttonText:function(n){return{prev:f.stripHtmlEntities(n.prevText),next:f.stripHtmlEntities(n.nextText),today:f.stripHtmlEntities(n.currentText)}},monthYearFormat:function(n){return n.showMonthAfterYear?"YYYY["+n.yearSuffix+"] MMMM":"MMMM YYYY["+n.yearSuffix+"]"}},v={dayOfMonthFormat:function(n,t){var i=n.longDateFormat("l");return i=i.replace(/^Y+[^\w\s]*|[^\w\s]*Y+$/g,""),t.isRTL?i+=" ddd":i="ddd "+i,i},mediumTimeFormat:function(n){return n.longDateFormat("LT").replace(/\s*a$/i,"a")},smallTimeFormat:function(n){return n.longDateFormat("LT").replace(":mm","(:mm)").replace(/(\Wmm)$/,"($1)").replace(/\s*a$/i,"a")},extraSmallTimeFormat:function(n){return n.longDateFormat("LT").replace(":mm","(:mm)").replace(/(\Wmm)$/,"($1)").replace(/\s*a$/i,"t")},hourFormat:function(n){return n.longDateFormat("LT").replace(":mm","").replace(/(\Wmm)$/,"").replace(/\s*a$/i,"a")},noMeridiemTimeFormat:function(n){return n.longDateFormat("LT").replace(/\s*a$/i,"")}},y={smallDayDateFormat:function(n){return n.isRTL?"D dd":"dd D"},weekFormat:function(n){return n.isRTL?"w[ "+n.weekNumberTitle+"]":"["+n.weekNumberTitle+" ]w"},smallWeekFormat:function(n){return n.isRTL?"w["+n.weekNumberTitle+"]":"["+n.weekNumberTitle+"]w"}};t.populateInstanceComputableOptions=h;t.datepickerLocale=c;t.locale=e;t.getMomentLocaleData=o;e("en",u.englishDefaults)},function(n,t,i){function f(n){return r.mergeProps(n,u)}var r,u;Object.defineProperty(t,"__esModule",{value:!0});r=i(4);t.globalDefaults={titleRangeSeparator:" – ",monthYearFormat:"MMMM YYYY",defaultTimedEventDuration:"02:00:00",defaultAllDayEventDuration:{days:1},forceEventDuration:!1,nextDayThreshold:"09:00:00",columnHeader:!0,defaultView:"month",aspectRatio:1.35,header:{left:"title",center:"",right:"today prev,next"},weekends:!0,weekNumbers:!1,weekNumberTitle:"W",weekNumberCalculation:"local",scrollTime:"06:00:00",minTime:"00:00:00",maxTime:"24:00:00",showNonCurrentDates:!0,lazyFetching:!0,startParam:"start",endParam:"end",timezoneParam:"timezone",timezone:!1,locale:null,isRTL:!1,buttonText:{prev:"prev",next:"next",prevYear:"prev year",nextYear:"next year",year:"year",today:"today",month:"month",week:"week",day:"day"},allDayText:"all-day",agendaEventMinHeight:0,theme:!1,dragOpacity:.75,dragRevertDuration:500,dragScroll:!0,unselectAuto:!0,dropAccept:"*",eventOrder:"title",eventLimit:!1,eventLimitText:"more",eventLimitClick:"popover",dayPopoverFormat:"LL",handleWindowResize:!0,windowResizeDelay:100,longPressDelay:1e3};t.englishDefaults={dayPopoverFormat:"dddd, MMMM D"};t.rtlDefaults={header:{left:"next,prev today",center:"",right:"title"},buttonIcons:{prev:"right-single-arrow",next:"left-single-arrow",prevYear:"right-double-arrow",nextYear:"left-double-arrow"},themeButtonIcons:{prev:"circle-triangle-e",next:"circle-triangle-w",nextYear:"seek-prev",prevYear:"seek-next"}};u=["header","footer","buttonText","buttonIcons","themeButtonIcons"];t.mergeOptions=f},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var u=i(2),r=i(4),f=function(){function n(){}return n.extend=function(n){var t=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return u.__extends(t,n),t}(this);return r.copyOwnProps(n,t.prototype),t},n.mixin=function(n){r.copyOwnProps(n,this.prototype)},n}();t.default=f},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(3),u=i(208),f=function(){function n(n){this.source=n;this.className=[];this.miscProps={}}return n.parse=function(n,t){var i=new this(t);return!!i.applyProps(n)&&i},n.normalizeId=function(n){return String(n)},n.generateId=function(){return"_fc"+n.uuid++},n.prototype.clone=function(){var t=new this.constructor(this.source);return t.id=this.id,t.rawId=this.rawId,t.uid=this.uid,n.copyVerbatimStandardProps(this,t),t.className=this.className.slice(),t.miscProps=r.extend({},this.miscProps),t},n.prototype.hasInverseRendering=function(){return"inverse-background"===this.getRendering()},n.prototype.hasBgRendering=function(){var n=this.getRendering();return"inverse-background"===n||"background"===n},n.prototype.getRendering=function(){return null!=this.rendering?this.rendering:this.source.rendering},n.prototype.getConstraint=function(){return null!=this.constraint?this.constraint:null!=this.source.constraint?this.source.constraint:this.source.calendar.opt("eventConstraint")},n.prototype.getOverlap=function(){return null!=this.overlap?this.overlap:null!=this.source.overlap?this.source.overlap:this.source.calendar.opt("eventOverlap")},n.prototype.isStartExplicitlyEditable=function(){return null!=this.startEditable?this.startEditable:this.source.startEditable},n.prototype.isDurationExplicitlyEditable=function(){return null!=this.durationEditable?this.durationEditable:this.source.durationEditable},n.prototype.isExplicitlyEditable=function(){return null!=this.editable?this.editable:this.source.editable},n.prototype.toLegacy=function(){var t=r.extend({},this.miscProps);return t._id=this.uid,t.source=this.source,t.className=this.className.slice(),t.allDay=this.isAllDay(),null!=this.rawId&&(t.id=this.rawId),n.copyVerbatimStandardProps(this,t),t},n.prototype.applyManualStandardProps=function(t){return this.id=null!=t.id?n.normalizeId(this.rawId=t.id):n.generateId(),this.uid=null!=t._id?String(t._id):n.generateId(),r.isArray(t.className)&&(this.className=t.className),"string"==typeof t.className&&(this.className=t.className.split(/\s+/)),!0},n.prototype.applyMiscProps=function(n){r.extend(this.miscProps,n)},n.uuid=0,n.defineStandardProps=u.default.defineStandardProps,n.copyVerbatimStandardProps=u.default.copyVerbatimStandardProps,n}();t.default=f;u.default.mixInto(f);f.defineStandardProps({_id:!1,id:!1,className:!1,source:!1,title:!0,url:!0,rendering:!0,constraint:!0,overlap:!0,editable:!0,startEditable:!0,durationEditable:!0,color:!0,backgroundColor:!0,borderColor:!0,textColor:!0})},function(n,t,i){function r(n,t){for(var r=[],i=0;i<n.length;i++)r.push.apply(r,n[i].buildInstances(t));return r}function u(n){return new s.default(n.dateProfile.unzonedRange,n.def,n)}function f(n){return new h.default(new c.default(n.unzonedRange,n.eventDef.isAllDay()),n.eventDef,n.eventInstance)}function e(n){return n.dateProfile.unzonedRange}function o(n){return n.componentFootprint}Object.defineProperty(t,"__esModule",{value:!0});var s=i(211),h=i(36),c=i(12);t.eventDefsToEventInstances=r;t.eventInstanceToEventRange=u;t.eventRangeToEventFootprint=f;t.eventInstanceToUnzonedRange=e;t.eventFootprintToComponentFootprint=o},function(n,t){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function n(n,t,i){this.componentFootprint=n;this.eventDef=t;i&&(this.eventInstance=i)}return n.prototype.getEventLegacy=function(){return(this.eventInstance||this.eventDef).toLegacy()},n}();t.default=i},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var f=i(4),r=i(17),u=i(34),e=i(50),o=i(13),s=function(){function n(){}return n.createFromRawProps=function(t,i,o){var s,a,v,h,l=t.def,y={},c={},p={},w={},b=null,k=null;for(s in i)r.default.isStandardProp(s)?y[s]=i[s]:l.isStandardProp(s)?c[s]=i[s]:l.miscProps[s]!==i[s]&&(p[s]=i[s]);return a=r.default.parse(y,l.source),a&&(v=e.default.createFromDiff(t.dateProfile,a,o)),c.id!==l.id&&(b=c.id),f.isArraysEqual(c.className,l.className)||(k=c.className),u.default.copyVerbatimStandardProps(c,w),h=new n,h.eventDefId=b,h.className=k,h.verbatimStandardProps=w,h.miscProps=p,v&&(h.dateMutation=v),h},n.prototype.mutateSingle=function(n){var t;return this.dateMutation&&(t=n.dateProfile,n.dateProfile=this.dateMutation.buildNewDateProfile(t,n.source.calendar)),null!=this.eventDefId&&(n.id=u.default.normalizeId(n.rawId=this.eventDefId)),this.className&&(n.className=this.className),this.verbatimStandardProps&&o.default.copyVerbatimStandardProps(this.verbatimStandardProps,n),this.miscProps&&n.applyMiscProps(this.miscProps),t?function(){n.dateProfile=t}:function(){}},n.prototype.setDateMutation=function(n){this.dateMutation=n&&!n.isEmpty()?n:null},n.prototype.isEmpty=function(){return!this.dateMutation},n}();t.default=s},function(n,t){Object.defineProperty(t,"__esModule",{value:!0});t.default={sourceClasses:[],registerClass:function(n){this.sourceClasses.unshift(n)},parse:function(n,t){for(var r,u=this.sourceClasses,i=0;i<u.length;i++)if(r=u[i].parse(n,t))return r}}},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(2),u=i(3),f=i(4),e=i(33),o=function(n){function t(t){var i=n.call(this)||this;return t=t||{},i.overflowX=t.overflowX||t.overflow||"auto",i.overflowY=t.overflowY||t.overflow||"auto",i}return r.__extends(t,n),t.prototype.render=function(){this.el=this.renderEl();this.applyOverflow()},t.prototype.renderEl=function(){return this.scrollEl=u('<div class="fc-scroller"><\/div>')},t.prototype.clear=function(){this.setHeight("auto");this.applyOverflow()},t.prototype.destroy=function(){this.el.remove()},t.prototype.applyOverflow=function(){this.scrollEl.css({"overflow-x":this.overflowX,"overflow-y":this.overflowY})},t.prototype.lockOverflow=function(n){var t=this.overflowX,i=this.overflowY;n=n||this.getScrollbarWidths();"auto"===t&&(t=n.top||n.bottom||this.scrollEl[0].scrollWidth-1>this.scrollEl[0].clientWidth?"scroll":"hidden");"auto"===i&&(i=n.left||n.right||this.scrollEl[0].scrollHeight-1>this.scrollEl[0].clientHeight?"scroll":"hidden");this.scrollEl.css({"overflow-x":t,"overflow-y":i})},t.prototype.setHeight=function(n){this.scrollEl.height(n)},t.prototype.getScrollTop=function(){return this.scrollEl.scrollTop()},t.prototype.setScrollTop=function(n){this.scrollEl.scrollTop(n)},t.prototype.getClientWidth=function(){return this.scrollEl[0].clientWidth},t.prototype.getClientHeight=function(){return this.scrollEl[0].clientHeight},t.prototype.getScrollbarWidths=function(){return f.getScrollbarWidths(this.scrollEl)},t}(e.default);t.default=o},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var f=i(2),u=i(3),r=i(4),e=i(219),o=i(21),s=function(n){function t(t,i){var r=n.call(this,t,i)||this;return r.segSelector=".fc-event-container > *",r.dateSelectingClass&&(r.dateClicking=new r.dateClickingClass(r)),r.dateSelectingClass&&(r.dateSelecting=new r.dateSelectingClass(r)),r.eventPointingClass&&(r.eventPointing=new r.eventPointingClass(r)),r.eventDraggingClass&&r.eventPointing&&(r.eventDragging=new r.eventDraggingClass(r,r.eventPointing)),r.eventResizingClass&&r.eventPointing&&(r.eventResizing=new r.eventResizingClass(r,r.eventPointing)),r.externalDroppingClass&&(r.externalDropping=new r.externalDroppingClass(r)),r}return f.__extends(t,n),t.prototype.setElement=function(t){n.prototype.setElement.call(this,t);this.dateClicking&&this.dateClicking.bindToEl(t);this.dateSelecting&&this.dateSelecting.bindToEl(t);this.bindAllSegHandlersToEl(t)},t.prototype.removeElement=function(){this.endInteractions();n.prototype.removeElement.call(this)},t.prototype.executeEventUnrender=function(){this.endInteractions();n.prototype.executeEventUnrender.call(this)},t.prototype.bindGlobalHandlers=function(){n.prototype.bindGlobalHandlers.call(this);this.externalDropping&&this.externalDropping.bindToDocument()},t.prototype.unbindGlobalHandlers=function(){n.prototype.unbindGlobalHandlers.call(this);this.externalDropping&&this.externalDropping.unbindFromDocument()},t.prototype.bindDateHandlerToEl=function(n,t,i){var r=this;this.el.on(t,function(n){if(!u(n.target).is(r.segSelector+":not(.fc-helper),"+r.segSelector+":not(.fc-helper) *,.fc-more,a[data-goto]"))return i.call(r,n)})},t.prototype.bindAllSegHandlersToEl=function(n){[this.eventPointing,this.eventDragging,this.eventResizing].forEach(function(t){t&&t.bindToEl(n)})},t.prototype.bindSegHandlerToEl=function(n,t,i){var r=this;n.on(t,this.segSelector,function(n){var f=u(n.currentTarget),t;if(!f.is(".fc-helper")&&(t=f.data("fc-seg"),t&&!r.shouldIgnoreEventPointing()))return i.call(r,t,n)})},t.prototype.shouldIgnoreMouse=function(){return o.default.get().shouldIgnoreMouse()},t.prototype.shouldIgnoreTouch=function(){var n=this._getView();return n.isSelected||n.selectedEvent},t.prototype.shouldIgnoreEventPointing=function(){return this.eventDragging&&this.eventDragging.isDragging||this.eventResizing&&this.eventResizing.isResizing},t.prototype.canStartSelection=function(n,t){return r.getEvIsTouch(t)&&!this.canStartResize(n,t)&&(this.isEventDefDraggable(n.footprint.eventDef)||this.isEventDefResizable(n.footprint.eventDef))},t.prototype.canStartDrag=function(n,t){return!this.canStartResize(n,t)&&this.isEventDefDraggable(n.footprint.eventDef)},t.prototype.canStartResize=function(n,t){var f=this._getView(),i=n.footprint.eventDef;return(!r.getEvIsTouch(t)||f.isEventDefSelected(i))&&this.isEventDefResizable(i)&&u(t.target).is(".fc-resizer")},t.prototype.endInteractions=function(){[this.dateClicking,this.dateSelecting,this.eventPointing,this.eventDragging,this.eventResizing].forEach(function(n){n&&n.end()})},t.prototype.isEventDefDraggable=function(n){return this.isEventDefStartEditable(n)},t.prototype.isEventDefStartEditable=function(n){var t=n.isStartExplicitlyEditable();return null==t&&null==(t=this.opt("eventStartEditable"))&&(t=this.isEventDefGenerallyEditable(n)),t},t.prototype.isEventDefGenerallyEditable=function(n){var t=n.isExplicitlyEditable();return null==t&&(t=this.opt("editable")),t},t.prototype.isEventDefResizableFromStart=function(n){return this.opt("eventResizableFromStart")&&this.isEventDefResizable(n)},t.prototype.isEventDefResizableFromEnd=function(n){return this.isEventDefResizable(n)},t.prototype.isEventDefResizable=function(n){var t=n.isDurationExplicitlyEditable();return null==t&&null==(t=this.opt("eventDurationEditable"))&&(t=this.isEventDefGenerallyEditable(n)),t},t.prototype.diffDates=function(n,t){return this.largeUnit?r.diffByUnit(n,t,this.largeUnit):r.diffDayTime(n,t)},t.prototype.isEventInstanceGroupAllowed=function(n){for(var r=this._getView(),u=this.dateProfile,i=this.eventRangesToEventFootprints(n.getAllEventRanges()),t=0;t<i.length;t++)if(!u.validUnzonedRange.containsRange(i[t].componentFootprint.unzonedRange))return!1;return r.calendar.constraints.isEventInstanceGroupAllowed(n)},t.prototype.isExternalInstanceGroupAllowed=function(n){for(var r=this._getView(),u=this.dateProfile,i=this.eventRangesToEventFootprints(n.getAllEventRanges()),t=0;t<i.length;t++)if(!u.validUnzonedRange.containsRange(i[t].componentFootprint.unzonedRange))return!1;for(t=0;t<i.length;t++)if(!r.calendar.constraints.isSelectionFootprintAllowed(i[t].componentFootprint))return!1;return!0},t}(e.default);t.default=s},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var s=i(2),u=i(3),f=i(0),e=i(4),h=i(218),c=i(221),l=i(40),o=i(21),a=i(5),r=function(n){function t(t,i){var r=n.call(this,null,i.options)||this;return r.batchRenderDepth=0,r.isSelected=!1,r.calendar=t,r.viewSpec=i,r.type=i.type,r.name=r.type,r.initRenderQueue(),r.initHiddenDays(),r.dateProfileGenerator=new r.dateProfileGeneratorClass(r),r.bindBaseRenderHandlers(),r.eventOrderSpecs=e.parseFieldSpecs(r.opt("eventOrder")),r.initialize&&r.initialize(),r}return s.__extends(t,n),t.prototype._getView=function(){return this},t.prototype.opt=function(n){return this.options[n]},t.prototype.initRenderQueue=function(){this.renderQueue=new h.default({event:this.opt("eventRenderWait")});this.renderQueue.on("start",this.onRenderQueueStart.bind(this));this.renderQueue.on("stop",this.onRenderQueueStop.bind(this));this.on("before:change",this.startBatchRender);this.on("change",this.stopBatchRender)},t.prototype.onRenderQueueStart=function(){this.calendar.freezeContentHeight();this.addScroll(this.queryScroll())},t.prototype.onRenderQueueStop=function(){this.calendar.updateViewSize()&&this.popScroll();this.calendar.thawContentHeight()},t.prototype.startBatchRender=function(){this.batchRenderDepth++||this.renderQueue.pause()},t.prototype.stopBatchRender=function(){--this.batchRenderDepth||this.renderQueue.resume()},t.prototype.requestRender=function(n,t,i){this.renderQueue.queue(n,t,i)},t.prototype.whenSizeUpdated=function(n){this.renderQueue.isRunning?this.renderQueue.one("stop",n.bind(this)):n.call(this)},t.prototype.computeTitle=function(n){var t;return t=/^(year|month)$/.test(n.currentRangeUnit)?n.currentUnzonedRange:n.activeUnzonedRange,this.formatRange({start:this.calendar.msToMoment(t.startMs,n.isRangeAllDay),end:this.calendar.msToMoment(t.endMs,n.isRangeAllDay)},n.isRangeAllDay,this.opt("titleFormat")||this.computeTitleFormat(n),this.opt("titleRangeSeparator"))},t.prototype.computeTitleFormat=function(n){var t=n.currentRangeUnit;return"year"===t?"YYYY":"month"===t?this.opt("monthYearFormat"):n.currentUnzonedRange.as("days")>1?"ll":"LL"},t.prototype.setDate=function(n){var t=this.get("dateProfile"),i=this.dateProfileGenerator.build(n,void 0,!0);t&&t.activeUnzonedRange.equals(i.activeUnzonedRange)||this.set("dateProfile",i)},t.prototype.unsetDate=function(){this.unset("dateProfile")},t.prototype.fetchInitialEvents=function(n){var t=this.calendar,i=n.isRangeAllDay&&!this.usesMinMaxTime;return t.requestEvents(t.msToMoment(n.activeUnzonedRange.startMs,i),t.msToMoment(n.activeUnzonedRange.endMs,i))},t.prototype.bindEventChanges=function(){this.listenTo(this.calendar,"eventsReset",this.resetEvents)},t.prototype.unbindEventChanges=function(){this.stopListeningTo(this.calendar,"eventsReset")},t.prototype.setEvents=function(n){this.set("currentEvents",n);this.set("hasEvents",!0)},t.prototype.unsetEvents=function(){this.unset("currentEvents");this.unset("hasEvents")},t.prototype.resetEvents=function(n){this.startBatchRender();this.unsetEvents();this.setEvents(n);this.stopBatchRender()},t.prototype.requestDateRender=function(n){var t=this;this.requestRender(function(){t.executeDateRender(n)},"date","init")},t.prototype.requestDateUnrender=function(){var n=this;this.requestRender(function(){n.executeDateUnrender()},"date","destroy")},t.prototype.executeDateRender=function(t){n.prototype.executeDateRender.call(this,t);this.render&&this.render();this.trigger("datesRendered");this.addScroll({isDateInit:!0});this.startNowIndicator()},t.prototype.executeDateUnrender=function(){this.unselect();this.stopNowIndicator();this.trigger("before:datesUnrendered");this.destroy&&this.destroy();n.prototype.executeDateUnrender.call(this)},t.prototype.bindBaseRenderHandlers=function(){var n=this;this.on("datesRendered",function(){n.whenSizeUpdated(n.triggerViewRender)});this.on("before:datesUnrendered",function(){n.triggerViewDestroy()})},t.prototype.triggerViewRender=function(){this.publiclyTrigger("viewRender",{context:this,args:[this,this.el]})},t.prototype.triggerViewDestroy=function(){this.publiclyTrigger("viewDestroy",{context:this,args:[this,this.el]})},t.prototype.requestEventsRender=function(n){var t=this;this.requestRender(function(){t.executeEventRender(n);t.whenSizeUpdated(t.triggerAfterEventsRendered)},"event","init")},t.prototype.requestEventsUnrender=function(){var n=this;this.requestRender(function(){n.triggerBeforeEventsDestroyed();n.executeEventUnrender()},"event","destroy")},t.prototype.requestBusinessHoursRender=function(n){var t=this;this.requestRender(function(){t.renderBusinessHours(n)},"businessHours","init")},t.prototype.requestBusinessHoursUnrender=function(){var n=this;this.requestRender(function(){n.unrenderBusinessHours()},"businessHours","destroy")},t.prototype.bindGlobalHandlers=function(){n.prototype.bindGlobalHandlers.call(this);this.listenTo(o.default.get(),{touchstart:this.processUnselect,mousedown:this.handleDocumentMousedown})},t.prototype.unbindGlobalHandlers=function(){n.prototype.unbindGlobalHandlers.call(this);this.stopListeningTo(o.default.get())},t.prototype.startNowIndicator=function(){var t,i,n,r=this;this.opt("nowIndicator")&&(t=this.getNowIndicatorUnit())&&(i=e.proxy(this,"updateNowIndicator"),this.initialNowDate=this.calendar.getNow(),this.initialNowQueriedMs=(new Date).valueOf(),n=this.initialNowDate.clone().startOf(t).add(1,t).valueOf()-this.initialNowDate.valueOf(),this.nowIndicatorTimeoutID=setTimeout(function(){r.nowIndicatorTimeoutID=null;i();n=+f.duration(1,t);n=Math.max(100,n);r.nowIndicatorIntervalID=setInterval(i,n)},n))},t.prototype.updateNowIndicator=function(){this.isDatesRendered&&this.initialNowDate&&(this.unrenderNowIndicator(),this.renderNowIndicator(this.initialNowDate.clone().add((new Date).valueOf()-this.initialNowQueriedMs)),this.isNowIndicatorRendered=!0)},t.prototype.stopNowIndicator=function(){this.isNowIndicatorRendered&&(this.nowIndicatorTimeoutID&&(clearTimeout(this.nowIndicatorTimeoutID),this.nowIndicatorTimeoutID=null),this.nowIndicatorIntervalID&&(clearInterval(this.nowIndicatorIntervalID),this.nowIndicatorIntervalID=null),this.unrenderNowIndicator(),this.isNowIndicatorRendered=!1)},t.prototype.updateSize=function(t,i,r){this.setHeight?this.setHeight(t,i):n.prototype.updateSize.call(this,t,i,r);this.updateNowIndicator()},t.prototype.addScroll=function(n){var t=this.queuedScroll||(this.queuedScroll={});u.extend(t,n)},t.prototype.popScroll=function(){this.applyQueuedScroll();this.queuedScroll=null},t.prototype.applyQueuedScroll=function(){this.queuedScroll&&this.applyScroll(this.queuedScroll)},t.prototype.queryScroll=function(){var n={};return this.isDatesRendered&&u.extend(n,this.queryDateScroll()),n},t.prototype.applyScroll=function(n){n.isDateInit&&this.isDatesRendered&&u.extend(n,this.computeInitialDateScroll());this.isDatesRendered&&this.applyDateScroll(n)},t.prototype.computeInitialDateScroll=function(){return{}},t.prototype.queryDateScroll=function(){return{}},t.prototype.applyDateScroll=function(){},t.prototype.reportEventDrop=function(n,t,i,r){var e=this.calendar.eventManager,o=e.mutateEventsWithId(n.def.id,t),u=t.dateMutation;u&&(n.dateProfile=u.buildNewDateProfile(n.dateProfile,this.calendar));this.triggerEventDrop(n,u&&u.dateDelta||f.duration(),o,i,r)},t.prototype.triggerEventDrop=function(n,t,i,r,u){this.publiclyTrigger("eventDrop",{context:r[0],args:[n.toLegacy(),t,i,u,{},this]})},t.prototype.reportExternalDrop=function(n,t,i,r,u,f){t&&this.calendar.eventManager.addEventDef(n,i);this.triggerExternalDrop(n,t,r,u,f)},t.prototype.triggerExternalDrop=function(n,t,i,r,u){this.publiclyTrigger("drop",{context:i[0],args:[n.dateProfile.start.clone(),r,u,this]});t&&this.publiclyTrigger("eventReceive",{context:this,args:[n.buildInstance().toLegacy(),this]})},t.prototype.reportEventResize=function(n,t,i,r){var u=this.calendar.eventManager,f=u.mutateEventsWithId(n.def.id,t);n.dateProfile=t.dateMutation.buildNewDateProfile(n.dateProfile,this.calendar);this.triggerEventResize(n,t.dateMutation.endDelta,f,i,r)},t.prototype.triggerEventResize=function(n,t,i,r,u){this.publiclyTrigger("eventResize",{context:r[0],args:[n.toLegacy(),t,i,u,{},this]})},t.prototype.select=function(n,t){this.unselect(t);this.renderSelectionFootprint(n);this.reportSelection(n,t)},t.prototype.renderSelectionFootprint=function(t){this.renderSelection?this.renderSelection(t.toLegacy(this.calendar)):n.prototype.renderSelectionFootprint.call(this,t)},t.prototype.reportSelection=function(n,t){this.isSelected=!0;this.triggerSelect(n,t)},t.prototype.triggerSelect=function(n,t){var i=this.calendar.footprintToDateProfile(n);this.publiclyTrigger("select",{context:this,args:[i.start,i.end,t,this]})},t.prototype.unselect=function(n){this.isSelected&&(this.isSelected=!1,this.destroySelection&&this.destroySelection(),this.unrenderSelection(),this.publiclyTrigger("unselect",{context:this,args:[n,this]}))},t.prototype.selectEventInstance=function(n){this.selectedEventInstance&&this.selectedEventInstance===n||(this.unselectEventInstance(),this.getEventSegs().forEach(function(t){t.footprint.eventInstance===n&&t.el&&t.el.addClass("fc-selected")}),this.selectedEventInstance=n)},t.prototype.unselectEventInstance=function(){this.selectedEventInstance&&(this.getEventSegs().forEach(function(n){n.el&&n.el.removeClass("fc-selected")}),this.selectedEventInstance=null)},t.prototype.isEventDefSelected=function(n){return this.selectedEventInstance&&this.selectedEventInstance.def.id===n.id},t.prototype.handleDocumentMousedown=function(n){e.isPrimaryMouseButton(n)&&this.processUnselect(n)},t.prototype.processUnselect=function(n){this.processRangeUnselect(n);this.processEventUnselect(n)},t.prototype.processRangeUnselect=function(n){var t;this.isSelected&&this.opt("unselectAuto")&&((t=this.opt("unselectCancel"))&&u(n.target).closest(t).length||this.unselect(n))},t.prototype.processEventUnselect=function(n){this.selectedEventInstance&&(u(n.target).closest(".fc-selected").length||this.unselectEventInstance())},t.prototype.triggerBaseRendered=function(){this.publiclyTrigger("viewRender",{context:this,args:[this,this.el]})},t.prototype.triggerBaseUnrendered=function(){this.publiclyTrigger("viewDestroy",{context:this,args:[this,this.el]})},t.prototype.triggerDayClick=function(n,t,i){var r=this.calendar.footprintToDateProfile(n);this.publiclyTrigger("dayClick",{context:t,args:[r.start,i,this]})},t.prototype.isDateInOtherMonth=function(){return!1},t.prototype.getUnzonedRangeOption=function(n){var t=this.opt(n);if("function"==typeof t&&(t=t.apply(null,Array.prototype.slice.call(arguments,1))),t)return this.calendar.parseUnzonedRange(t)},t.prototype.initHiddenDays=function(){var n,t=this.opt("hiddenDays")||[],i=[],r=0;for(!1===this.opt("weekends")&&t.push(0,6),n=0;n<7;n++)(i[n]=-1!==u.inArray(n,t))||r++;if(!r)throw new Error("invalid hiddenDays");this.isHiddenDayHash=i},t.prototype.trimHiddenDays=function(n){var t=n.getStart(),i=n.getEnd();return t&&(t=this.skipHiddenDays(t)),i&&(i=this.skipHiddenDays(i,-1,!0)),null===t||null===i||t<i?new a.default(t,i):null},t.prototype.isHiddenDay=function(n){return f.isMoment(n)&&(n=n.day()),this.isHiddenDayHash[n]},t.prototype.skipHiddenDays=function(n,t,i){void 0===t&&(t=1);void 0===i&&(i=!1);for(var r=n.clone();this.isHiddenDayHash[(r.day()+(i?t:0)+7)%7];)r.add(t,"days");return r},t}(l.default);t.default=r;r.prototype.usesMinMaxTime=!1;r.prototype.dateProfileGeneratorClass=c.default;r.watch("displayingDates",["isInDom","dateProfile"],function(n){this.requestDateRender(n.dateProfile)},function(){this.requestDateUnrender()});r.watch("displayingBusinessHours",["displayingDates","businessHourGenerator"],function(n){this.requestBusinessHoursRender(n.businessHourGenerator)},function(){this.requestBusinessHoursUnrender()});r.watch("initialEvents",["dateProfile"],function(n){return this.fetchInitialEvents(n.dateProfile)});r.watch("bindingEvents",["initialEvents"],function(n){this.setEvents(n.initialEvents);this.bindEventChanges()},function(){this.unbindEventChanges();this.unsetEvents()});r.watch("displayingEvents",["displayingDates","hasEvents"],function(){this.requestEventsRender(this.get("currentEvents"))},function(){this.requestEventsUnrender()});r.watch("title",["dateProfile"],function(n){return this.title=this.computeTitle(n.dateProfile)});r.watch("legacyDateProps",["dateProfile"],function(n){var i=this.calendar,t=n.dateProfile;this.start=i.msToMoment(t.activeUnzonedRange.startMs,t.isRangeAllDay);this.end=i.msToMoment(t.activeUnzonedRange.endMs,t.isRangeAllDay);this.intervalStart=i.msToMoment(t.currentUnzonedRange.startMs,t.isRangeAllDay);this.intervalEnd=i.msToMoment(t.currentUnzonedRange.endMs,t.isRangeAllDay)})},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(3),u=i(4),f=function(){function n(n,t){this.view=n._getView();this.component=n;this.fillRenderer=t}return n.prototype.opt=function(n){return this.view.opt(n)},n.prototype.rangeUpdated=function(){var n,t;this.eventTimeFormat=this.opt("eventTimeFormat")||this.opt("timeFormat")||this.computeEventTimeFormat();n=this.opt("displayEventTime");null==n&&(n=this.computeDisplayEventTime());t=this.opt("displayEventEnd");null==t&&(t=this.computeDisplayEventEnd());this.displayEventTime=n;this.displayEventEnd=t},n.prototype.render=function(n){var f,t,i,e=this.component._getDateProfile(),r=[],u=[];for(f in n)t=n[f],i=t.sliceRenderRanges(e.activeUnzonedRange),t.getEventDef().hasBgRendering()?r.push.apply(r,i):u.push.apply(u,i);this.renderBgRanges(r);this.renderFgRanges(u)},n.prototype.unrender=function(){this.unrenderBgRanges();this.unrenderFgRanges()},n.prototype.renderFgRanges=function(n){var i=this.component.eventRangesToEventFootprints(n),t=this.component.eventFootprintsToSegs(i);t=this.renderFgSegEls(t);!1!==this.renderFgSegs(t)&&(this.fgSegs=t)},n.prototype.unrenderFgRanges=function(){this.unrenderFgSegs(this.fgSegs||[]);this.fgSegs=null},n.prototype.renderBgRanges=function(n){var i=this.component.eventRangesToEventFootprints(n),t=this.component.eventFootprintsToSegs(i);!1!==this.renderBgSegs(t)&&(this.bgSegs=t)},n.prototype.unrenderBgRanges=function(){this.unrenderBgSegs();this.bgSegs=null},n.prototype.getSegs=function(){return(this.bgSegs||[]).concat(this.fgSegs||[])},n.prototype.renderFgSegs=function(){return!1},n.prototype.unrenderFgSegs=function(){},n.prototype.renderBgSegs=function(n){var t=this;if(!this.fillRenderer)return!1;this.fillRenderer.renderSegs("bgEvent",n,{getClasses:function(n){return t.getBgClasses(n.footprint.eventDef)},getCss:function(n){return{"background-color":t.getBgColor(n.footprint.eventDef)}},filterEl:function(n,i){return t.filterEventRenderEl(n.footprint,i)}})},n.prototype.unrenderBgSegs=function(){this.fillRenderer&&this.fillRenderer.unrender("bgEvent")},n.prototype.renderFgSegEls=function(n,t){var e=this;void 0===t&&(t=!1);var i,o=this.view.hasPublicHandlers("eventRender"),u="",f=[];if(n.length){for(i=0;i<n.length;i++)this.beforeFgSegHtml(n[i]),u+=this.fgSegHtml(n[i],t);r(u).each(function(t,i){var s=n[t],u=r(i);o&&(u=e.filterEventRenderEl(s.footprint,u));u&&(u.data("fc-seg",s),s.el=u,f.push(s))})}return f},n.prototype.beforeFgSegHtml=function(){},n.prototype.fgSegHtml=function(){},n.prototype.getSegClasses=function(n,t,i){var r=["fc-event",n.isStart?"fc-start":"fc-not-start",n.isEnd?"fc-end":"fc-not-end"].concat(this.getClasses(n.footprint.eventDef));return t&&r.push("fc-draggable"),i&&r.push("fc-resizable"),this.view.isEventDefSelected(n.footprint.eventDef)&&r.push("fc-selected"),r},n.prototype.filterEventRenderEl=function(n,t){var u=n.getEventLegacy(),i=this.view.publiclyTrigger("eventRender",{context:u,args:[u,t,this.view]});return!1===i?t=null:i&&!0!==i&&(t=r(i)),t},n.prototype.getTimeText=function(n,t,i){return this._getTimeText(n.eventInstance.dateProfile.start,n.eventInstance.dateProfile.end,n.componentFootprint.isAllDay,t,i)},n.prototype._getTimeText=function(n,t,i,r,u){return null==r&&(r=this.eventTimeFormat),null==u&&(u=this.displayEventEnd),this.displayEventTime&&!i?u&&t?this.view.formatRange({start:n,end:t},!1,r):n.format(r):""},n.prototype.computeEventTimeFormat=function(){return this.opt("smallTimeFormat")},n.prototype.computeDisplayEventTime=function(){return!0},n.prototype.computeDisplayEventEnd=function(){return!0},n.prototype.getBgClasses=function(n){var t=this.getClasses(n);return t.push("fc-bgevent"),t},n.prototype.getClasses=function(n){for(var i=this.getStylingObjs(n),r=[],t=0;t<i.length;t++)r.push.apply(r,i[t].eventClassName||i[t].className||[]);return r},n.prototype.getSkinCss=function(n){return{"background-color":this.getBgColor(n),"border-color":this.getBorderColor(n),color:this.getTextColor(n)}},n.prototype.getBgColor=function(n){for(var i,r=this.getStylingObjs(n),t=0;t<r.length&&!i;t++)i=r[t].eventBackgroundColor||r[t].eventColor||r[t].backgroundColor||r[t].color;return i||(i=this.opt("eventBackgroundColor")||this.opt("eventColor")),i},n.prototype.getBorderColor=function(n){for(var i,r=this.getStylingObjs(n),t=0;t<r.length&&!i;t++)i=r[t].eventBorderColor||r[t].eventColor||r[t].borderColor||r[t].color;return i||(i=this.opt("eventBorderColor")||this.opt("eventColor")),i},n.prototype.getTextColor=function(n){for(var i,r=this.getStylingObjs(n),t=0;t<r.length&&!i;t++)i=r[t].eventTextColor||r[t].textColor;return i||(i=this.opt("eventTextColor")),i},n.prototype.getStylingObjs=function(n){var t=this.getFallbackStylingObjs(n);return t.unshift(n),t},n.prototype.getFallbackStylingObjs=function(n){return[n.source]},n.prototype.sortEventSegs=function(n){n.sort(u.proxy(this,"compareEventSegs"))},n.prototype.compareEventSegs=function(n,t){var i=n.footprint,r=t.footprint,o=i.componentFootprint,s=r.componentFootprint,f=o.unzonedRange,e=s.unzonedRange;return f.startMs-e.startMs||e.endMs-e.startMs-(f.endMs-f.startMs)||s.isAllDay-o.isAllDay||u.compareByFieldSpecs(i.eventDef,r.eventDef,this.view.eventOrderSpecs,i.eventDef.miscProps,r.eventDef.miscProps)},n}();t.default=f},,,,,function(n,t,i){function u(n){return"en"!==n.locale()?n.clone().locale("en"):n}function h(n,t){return tt(c(t).fakeFormatString,n)}function d(n,t,i,u,f){var e;return n=r.default.parseZone(n),t=r.default.parseZone(t),e=n.localeData(),i=e.longDateFormat(i)||i,g(c(i),n,t,u||" - ",f)}function g(n,t,i,r,u){for(var e,h,s=n.sameUnits,p=t.clone().stripZone(),w=i.clone().stripZone(),c=o(n.fakeFormatString,t),d=o(n.fakeFormatString,i),b="",v="",l="",a="",k="",f=0;f<s.length&&(!s[f]||p.isSame(w,s[f]));f++)b+=c[f];for(e=s.length-1;e>f&&(!s[e]||p.isSame(w,s[e]))&&(e-1!==f||"."!==c[e]);e--)v=c[e]+v;for(h=f;h<=e;h++)l+=c[h],a+=d[h];return(l||a)&&(k=u?a+r+l:l+r+a),y(b+k+v)}function c(n){return s[n]||(s[n]=nt(n))}function nt(n){var t=e(n);return{fakeFormatString:a(t),sameUnits:v(t)}}function e(n){for(var t,i=[],r=/\[([^\]]*)\]|\(([^\)]*)\)|(LTS|LT|(\w)\4*o?)|([^\w\[\(]+)/g;t=r.exec(n);)t[1]?i.push.apply(i,l(t[1])):t[2]?i.push({maybe:e(t[2])}):t[3]?i.push({token:t[3]}):t[5]&&i.push.apply(i,l(t[5]));return i}function l(n){return". "===n?["."," "]:[n]}function a(n){for(var t,i=[],r=0;r<n.length;r++)t=n[r],"string"==typeof t?i.push("["+t+"]"):t.token?t.token in b?i.push(w+"["+t.token+"]"):i.push(t.token):t.maybe&&i.push(f+a(t.maybe)+f);return i.join(p)}function v(n){for(var t,u,i=[],r=0;r<n.length;r++)t=n[r],t.token?(u=k[t.token.charAt(0)],i.push(u?u.unit:"second")):t.maybe?i.push.apply(i,v(t.maybe)):i.push(null);return i}function tt(n,t){return y(o(n,t).join(""))}function o(n,t){for(var u,f=[],o=r.oldMomentFormat(t,n),e=o.split(p),i=0;i<e.length;i++)u=e[i],u.charAt(0)===w?f.push(b[u.substring(1)](t)):f.push(u);return f}function y(n){return n.replace(rt,function(n,t){return t.match(/[1-9]/)?t:""})}function it(n){for(var r,u,t,f=e(n),i=0;i<f.length;i++)r=f[i],r.token&&(u=k[r.token.charAt(0)])&&(!t||u.value>t.value)&&(t=u);return t?t.unit:null}var r,s;Object.defineProperty(t,"__esModule",{value:!0});r=i(10);r.newMomentProto.format=function(){return this._fullCalendar&&arguments[0]?h(this,arguments[0]):this._ambigTime?r.oldMomentFormat(u(this),"YYYY-MM-DD"):this._ambigZone?r.oldMomentFormat(u(this),"YYYY-MM-DD[T]HH:mm:ss"):this._fullCalendar?r.oldMomentFormat(u(this)):r.oldMomentProto.format.apply(this,arguments)};r.newMomentProto.toISOString=function(){return this._ambigTime?r.oldMomentFormat(u(this),"YYYY-MM-DD"):this._ambigZone?r.oldMomentFormat(u(this),"YYYY-MM-DD[T]HH:mm:ss"):this._fullCalendar?r.oldMomentProto.toISOString.apply(u(this),arguments):r.oldMomentProto.toISOString.apply(this,arguments)};var p="\v",w="\x1f",f="\x1e",rt=new RegExp(f+"([^"+f+"]*)"+f,"g"),b={t:function(n){return r.oldMomentFormat(n,"a").charAt(0)},T:function(n){return r.oldMomentFormat(n,"A").charAt(0)}},k={Y:{value:1,unit:"year"},M:{value:2,unit:"month"},W:{value:3,unit:"week"},w:{value:3,unit:"week"},D:{value:4,unit:"day"},d:{value:4,unit:"day"}};t.formatDate=h;t.formatRange=d;s={};t.queryMostGranularFormatUnit=it},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var u=i(2),f=i(33),e=i(11),o=i(7),r=function(n){function t(){var t=n.call(this)||this;return t._watchers={},t._props={},t.applyGlobalWatchers(),t.constructed(),t}return u.__extends(t,n),t.watch=function(n){for(var i=[],t=1;t<arguments.length;t++)i[t-1]=arguments[t];this.prototype.hasOwnProperty("_globalWatchArgs")||(this.prototype._globalWatchArgs=Object.create(this.prototype._globalWatchArgs));this.prototype._globalWatchArgs[n]=i},t.prototype.constructed=function(){},t.prototype.applyGlobalWatchers=function(){var n,t=this._globalWatchArgs;for(n in t)this.watch.apply(this,[n].concat(t[n]))},t.prototype.has=function(n){return n in this._props},t.prototype.get=function(n){return void 0===n?this._props:this._props[n]},t.prototype.set=function(n,t){var i;"string"==typeof n?(i={},i[n]=void 0===t?null:t):i=n;this.setProps(i)},t.prototype.reset=function(n){var t,r=this._props,i={};for(t in r)i[t]=void 0;for(t in n)i[t]=n[t];this.setProps(i)},t.prototype.unset=function(n){for(var r={},i="string"==typeof n?[n]:n,t=0;t<i.length;t++)r[i[t]]=void 0;this.setProps(r)},t.prototype.setProps=function(n){var t,i,r={},u=0;for(t in n)"object"!=typeof(i=n[t])&&i===this._props[t]||(r[t]=i,u++);if(u){this.trigger("before:batchChange",r);for(t in r)i=r[t],this.trigger("before:change",t,i),this.trigger("before:change:"+t,i);for(t in r)i=r[t],void 0===i?delete this._props[t]:this._props[t]=i,this.trigger("change:"+t,i),this.trigger("change",t,i);this.trigger("batchChange",r)}},t.prototype.watch=function(n,t,i,r){var u=this;this.unwatch(n);this._watchers[n]=this._watchDeps(t,function(t){var r=i.call(u,t);r&&r.then?(u.unset(n),r.then(function(t){u.set(n,t)})):u.set(n,r)},function(t){u.unset(n);r&&r.call(u,t)})},t.prototype.unwatch=function(n){var t=this._watchers[n];t&&(delete this._watchers[n],t.teardown())},t.prototype._watchDeps=function(n,t,i){var o=this,h=0,f=n.length,r=0,u={},e=[],s=!1,l=function(){1==++h&&r===f&&(s=!0,i(u),s=!1)},a=function(n,i,e){void 0===i?(e||void 0===u[n]||r--,delete u[n]):(e||void 0!==u[n]||r++,u[n]=i);--h||r===f&&(s||t(u))},c=function(n,t){o.on(n,t);e.push([n,t])};return n.forEach(function(n){var t=!1;"?"===n.charAt(0)&&(n=n.substring(1),t=!0);c("before:change:"+n,function(){l()});c("change:"+n,function(i){a(n,i,t)})}),n.forEach(function(n){var t=!1;"?"===n.charAt(0)&&(n=n.substring(1),t=!0);o.has(n)?(u[n]=o.get(n),r++):t&&r++}),r===f&&t(u),{teardown:function(){for(var n=0;n<e.length;n++)o.off(e[n][0],e[n][1]);e=null;r===f&&i()},flash:function(){r===f&&(i(),t(u))}}},t.prototype.flash=function(n){var t=this._watchers[n];t&&t.flash()},t}(f.default);t.default=r;r.prototype._globalWatchArgs={};e.default.mixInto(r);o.default.mixInto(r)},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(0),u=i(4),f=i(13),e=i(210);t.default={parse:function(n,t){return u.isTimeString(n.start)||r.isDuration(n.start)||u.isTimeString(n.end)||r.isDuration(n.end)?e.default.parse(n,t):f.default.parse(n,t)}}},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(4),u=i(17),f=function(){function n(){this.clearEnd=!1;this.forceTimed=!1;this.forceAllDay=!1}return n.createFromDiff=function(t,i,u){function o(n,t){return u?r.diffByUnit(n,t,u):i.isAllDay()?r.diffDay(n,t):r.diffDayTime(n,t)}var e,s,h,f,c=t.end&&!i.end,l=t.isAllDay()&&!i.isAllDay(),a=!t.isAllDay()&&i.isAllDay();return e=o(i.start,t.start),i.end&&(s=o(i.unzonedRange.getEnd(),t.unzonedRange.getEnd()),h=s.subtract(e)),f=new n,f.clearEnd=c,f.forceTimed=l,f.forceAllDay=a,f.setDateDelta(e),f.setEndDelta(h),f},n.prototype.buildNewDateProfile=function(n,t){var r=n.start.clone(),i=null,f=!1;return n.end&&!this.clearEnd?i=n.end.clone():this.endDelta&&!i&&(i=t.getDefaultEventEnd(n.isAllDay(),r)),this.forceTimed?(f=!0,r.hasTime()||r.time(0),i&&!i.hasTime()&&i.time(0)):this.forceAllDay&&(r.hasTime()&&r.stripTime(),i&&i.hasTime()&&i.stripTime()),this.dateDelta&&(f=!0,r.add(this.dateDelta),i&&i.add(this.dateDelta)),this.endDelta&&(f=!0,i.add(this.endDelta)),this.startDelta&&(f=!0,r.add(this.startDelta)),f&&(r=t.applyTimezone(r),i&&(i=t.applyTimezone(i))),!i&&t.opt("forceEventDuration")&&(i=t.getDefaultEventEnd(n.isAllDay(),r)),new u.default(r,i,t)},n.prototype.setDateDelta=function(n){this.dateDelta=n&&n.valueOf()?n:null},n.prototype.setStartDelta=function(n){this.startDelta=n&&n.valueOf()?n:null},n.prototype.setEndDelta=function(n){this.endDelta=n&&n.valueOf()?n:null},n.prototype.isEmpty=function(){return!(this.clearEnd||this.forceTimed||this.forceAllDay||this.dateDelta||this.startDelta||this.endDelta)},n}();t.default=f},function(n,t,i){function u(n,t){r[n]=t}function f(n){return n?!0===n?o.default:r[n]:e.default}Object.defineProperty(t,"__esModule",{value:!0});var e=i(213),o=i(214),r={};t.defineThemeSystem=u;t.getThemeSystemClass=f},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var e=i(2),r=i(3),o=i(4),s=i(20),u=i(6),h=i(13),f=function(n){function t(t){var i=n.call(this,t)||this;return i.eventDefs=[],i}return e.__extends(t,n),t.parse=function(n,t){var i;return r.isArray(n.events)?i=n:r.isArray(n)&&(i={events:n}),!!i&&u.default.parse.call(this,i,t)},t.prototype.setRawEventDefs=function(n){this.rawEventDefs=n;this.eventDefs=this.parseEventDefs(n)},t.prototype.fetch=function(n,t,i){var r,u=this.eventDefs;if(null!=this.currentTimezone&&this.currentTimezone!==i)for(r=0;r<u.length;r++)u[r]instanceof h.default&&u[r].rezone();return this.currentTimezone=i,s.default.resolve(u)},t.prototype.addEventDef=function(n){this.eventDefs.push(n)},t.prototype.removeEventDefsById=function(n){return o.removeMatching(this.eventDefs,function(t){return t.id===n})},t.prototype.removeAllEventDefs=function(){this.eventDefs=[]},t.prototype.getPrimitive=function(){return this.rawEventDefs},t.prototype.applyManualStandardProps=function(t){var i=n.prototype.applyManualStandardProps.call(this,t);return this.setRawEventDefs(t.events),i},t}(u.default);t.default=f;f.defineStandardProps({events:!1})},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(3),u=i(4),f=function(){function n(n){this.isHorizontal=!1;this.isVertical=!1;this.els=r(n.els);this.isHorizontal=n.isHorizontal;this.isVertical=n.isVertical;this.forcedOffsetParentEl=n.offsetParent?r(n.offsetParent):null}return n.prototype.build=function(){var n=this.forcedOffsetParentEl;!n&&this.els.length>0&&(n=this.els.eq(0).offsetParent());this.origin=n?n.offset():null;this.boundingRect=this.queryBoundingRect();this.isHorizontal&&this.buildElHorizontals();this.isVertical&&this.buildElVerticals()},n.prototype.clear=function(){this.origin=null;this.boundingRect=null;this.lefts=null;this.rights=null;this.tops=null;this.bottoms=null},n.prototype.ensureBuilt=function(){this.origin||this.build()},n.prototype.buildElHorizontals=function(){var n=[],t=[];this.els.each(function(i,u){var f=r(u),e=f.offset().left,o=f.outerWidth();n.push(e);t.push(e+o)});this.lefts=n;this.rights=t},n.prototype.buildElVerticals=function(){var n=[],t=[];this.els.each(function(i,u){var f=r(u),e=f.offset().top,o=f.outerHeight();n.push(e);t.push(e+o)});this.tops=n;this.bottoms=t},n.prototype.getHorizontalIndex=function(n){this.ensureBuilt();for(var i=this.lefts,r=this.rights,u=i.length,t=0;t<u;t++)if(n>=i[t]&&n<r[t])return t},n.prototype.getVerticalIndex=function(n){this.ensureBuilt();for(var i=this.tops,r=this.bottoms,u=i.length,t=0;t<u;t++)if(n>=i[t]&&n<r[t])return t},n.prototype.getLeftOffset=function(n){return this.ensureBuilt(),this.lefts[n]},n.prototype.getLeftPosition=function(n){return this.ensureBuilt(),this.lefts[n]-this.origin.left},n.prototype.getRightOffset=function(n){return this.ensureBuilt(),this.rights[n]},n.prototype.getRightPosition=function(n){return this.ensureBuilt(),this.rights[n]-this.origin.left},n.prototype.getWidth=function(n){return this.ensureBuilt(),this.rights[n]-this.lefts[n]},n.prototype.getTopOffset=function(n){return this.ensureBuilt(),this.tops[n]},n.prototype.getTopPosition=function(n){return this.ensureBuilt(),this.tops[n]-this.origin.top},n.prototype.getBottomOffset=function(n){return this.ensureBuilt(),this.bottoms[n]},n.prototype.getBottomPosition=function(n){return this.ensureBuilt(),this.bottoms[n]-this.origin.top},n.prototype.getHeight=function(n){return this.ensureBuilt(),this.bottoms[n]-this.tops[n]},n.prototype.queryBoundingRect=function(){var n;return this.els.length>0&&(n=u.getScrollParent(this.els.eq(0)),!n.is(document))?u.getClientRect(n):null},n.prototype.isPointInBounds=function(n,t){return this.isLeftInBounds(n)&&this.isTopInBounds(t)},n.prototype.isLeftInBounds=function(n){return!this.boundingRect||n>=this.boundingRect.left&&n<this.boundingRect.right},n.prototype.isTopInBounds=function(n){return!this.boundingRect||n>=this.boundingRect.top&&n<this.boundingRect.bottom},n}();t.default=f},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var u=i(3),r=i(4),o=i(7),f=i(21),e=function(){function n(n){this.isInteracting=!1;this.isDistanceSurpassed=!1;this.isDelayEnded=!1;this.isDragging=!1;this.isTouch=!1;this.isGeneric=!1;this.shouldCancelTouchScroll=!0;this.scrollAlwaysKills=!1;this.isAutoScroll=!1;this.scrollSensitivity=30;this.scrollSpeed=200;this.scrollIntervalMs=50;this.options=n||{}}return n.prototype.startInteraction=function(n,t){if(void 0===t&&(t={}),"mousedown"===n.type){if(f.default.get().shouldIgnoreMouse())return;if(!r.isPrimaryMouseButton(n))return;n.preventDefault()}this.isInteracting||(this.delay=r.firstDefined(t.delay,this.options.delay,0),this.minDistance=r.firstDefined(t.distance,this.options.distance,0),this.subjectEl=this.options.subjectEl,r.preventSelection(u("body")),this.isInteracting=!0,this.isTouch=r.getEvIsTouch(n),this.isGeneric="dragstart"===n.type,this.isDelayEnded=!1,this.isDistanceSurpassed=!1,this.originX=r.getEvX(n),this.originY=r.getEvY(n),this.scrollEl=r.getScrollParent(u(n.target)),this.bindHandlers(),this.initAutoScroll(),this.handleInteractionStart(n),this.startDelay(n),this.minDistance||this.handleDistanceSurpassed(n))},n.prototype.handleInteractionStart=function(n){this.trigger("interactionStart",n)},n.prototype.endInteraction=function(n,t){this.isInteracting&&(this.endDrag(n),this.delayTimeoutId&&(clearTimeout(this.delayTimeoutId),this.delayTimeoutId=null),this.destroyAutoScroll(),this.unbindHandlers(),this.isInteracting=!1,this.handleInteractionEnd(n,t),r.allowSelection(u("body")))},n.prototype.handleInteractionEnd=function(n,t){this.trigger("interactionEnd",n,t||!1)},n.prototype.bindHandlers=function(){var n=f.default.get();this.isGeneric?this.listenTo(u(document),{drag:this.handleMove,dragstop:this.endInteraction}):this.isTouch?this.listenTo(n,{touchmove:this.handleTouchMove,touchend:this.endInteraction,scroll:this.handleTouchScroll}):this.listenTo(n,{mousemove:this.handleMouseMove,mouseup:this.endInteraction});this.listenTo(n,{selectstart:r.preventDefault,contextmenu:r.preventDefault})},n.prototype.unbindHandlers=function(){this.stopListeningTo(f.default.get());this.stopListeningTo(u(document))},n.prototype.startDrag=function(n,t){this.startInteraction(n,t);this.isDragging||(this.isDragging=!0,this.handleDragStart(n))},n.prototype.handleDragStart=function(n){this.trigger("dragStart",n)},n.prototype.handleMove=function(n){var t=r.getEvX(n)-this.originX,i=r.getEvY(n)-this.originY,u=this.minDistance;this.isDistanceSurpassed||t*t+i*i>=u*u&&this.handleDistanceSurpassed(n);this.isDragging&&this.handleDrag(t,i,n)},n.prototype.handleDrag=function(n,t,i){this.trigger("drag",n,t,i);this.updateAutoScroll(i)},n.prototype.endDrag=function(n){this.isDragging&&(this.isDragging=!1,this.handleDragEnd(n))},n.prototype.handleDragEnd=function(n){this.trigger("dragEnd",n)},n.prototype.startDelay=function(n){var t=this;this.delay?this.delayTimeoutId=setTimeout(function(){t.handleDelayEnd(n)},this.delay):this.handleDelayEnd(n)},n.prototype.handleDelayEnd=function(n){this.isDelayEnded=!0;this.isDistanceSurpassed&&this.startDrag(n)},n.prototype.handleDistanceSurpassed=function(n){this.isDistanceSurpassed=!0;this.isDelayEnded&&this.startDrag(n)},n.prototype.handleTouchMove=function(n){this.isDragging&&this.shouldCancelTouchScroll&&n.preventDefault();this.handleMove(n)},n.prototype.handleMouseMove=function(n){this.handleMove(n)},n.prototype.handleTouchScroll=function(n){this.isDragging&&!this.scrollAlwaysKills||this.endInteraction(n,!0)},n.prototype.trigger=function(n){for(var i=[],t=1;t<arguments.length;t++)i[t-1]=arguments[t];this.options[n]&&this.options[n].apply(this,i);this["_"+n]&&this["_"+n].apply(this,i)},n.prototype.initAutoScroll=function(){var n=this.scrollEl;this.isAutoScroll=this.options.scroll&&n&&!n.is(window)&&!n.is(document);this.isAutoScroll&&this.listenTo(n,"scroll",r.debounce(this.handleDebouncedScroll,100))},n.prototype.destroyAutoScroll=function(){this.endAutoScroll();this.isAutoScroll&&this.stopListeningTo(this.scrollEl,"scroll")},n.prototype.computeScrollBounds=function(){this.isAutoScroll&&(this.scrollBounds=r.getOuterRect(this.scrollEl))},n.prototype.updateAutoScroll=function(n){var u,f,e,o,t=this.scrollSensitivity,i=this.scrollBounds,s=0,h=0;i&&(u=(t-(r.getEvY(n)-i.top))/t,f=(t-(i.bottom-r.getEvY(n)))/t,e=(t-(r.getEvX(n)-i.left))/t,o=(t-(i.right-r.getEvX(n)))/t,u>=0&&u<=1?s=u*this.scrollSpeed*-1:f>=0&&f<=1&&(s=f*this.scrollSpeed),e>=0&&e<=1?h=e*this.scrollSpeed*-1:o>=0&&o<=1&&(h=o*this.scrollSpeed));this.setScrollVel(s,h)},n.prototype.setScrollVel=function(n,t){this.scrollTopVel=n;this.scrollLeftVel=t;this.constrainScrollVel();!this.scrollTopVel&&!this.scrollLeftVel||this.scrollIntervalId||(this.scrollIntervalId=setInterval(r.proxy(this,"scrollIntervalFunc"),this.scrollIntervalMs))},n.prototype.constrainScrollVel=function(){var n=this.scrollEl;this.scrollTopVel<0?n.scrollTop()<=0&&(this.scrollTopVel=0):this.scrollTopVel>0&&n.scrollTop()+n[0].clientHeight>=n[0].scrollHeight&&(this.scrollTopVel=0);this.scrollLeftVel<0?n.scrollLeft()<=0&&(this.scrollLeftVel=0):this.scrollLeftVel>0&&n.scrollLeft()+n[0].clientWidth>=n[0].scrollWidth&&(this.scrollLeftVel=0)},n.prototype.scrollIntervalFunc=function(){var n=this.scrollEl,t=this.scrollIntervalMs/1e3;this.scrollTopVel&&n.scrollTop(n.scrollTop()+this.scrollTopVel*t);this.scrollLeftVel&&n.scrollLeft(n.scrollLeft()+this.scrollLeftVel*t);this.constrainScrollVel();this.scrollTopVel||this.scrollLeftVel||this.endAutoScroll()},n.prototype.endAutoScroll=function(){this.scrollIntervalId&&(clearInterval(this.scrollIntervalId),this.scrollIntervalId=null,this.handleScrollEnd())},n.prototype.handleDebouncedScroll=function(){this.scrollIntervalId||this.handleScrollEnd()},n.prototype.handleScrollEnd=function(){},n}();t.default=e;o.default.mixInto(e)},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var u=i(2),r=i(4),f=i(14),e=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return u.__extends(t,n),t.prototype.updateDayTable=function(){for(var n,o,r,u=this,s=u.view,h=s.calendar,i=h.msToUtcMoment(u.dateProfile.renderUnzonedRange.startMs,!0),c=h.msToUtcMoment(u.dateProfile.renderUnzonedRange.endMs,!0),f=-1,e=[],t=[];i.isBefore(c);)s.isHiddenDay(i)?e.push(f+.5):(f++,e.push(f),t.push(i.clone())),i.add(1,"days");if(this.breakOnWeeks){for(o=t[0].day(),n=1;n<t.length&&t[n].day()!==o;n++);r=Math.ceil(t.length/n)}else r=1,n=t.length;this.dayDates=t;this.dayIndices=e;this.daysPerRow=n;this.rowCnt=r;this.updateDayTableCols()},t.prototype.updateDayTableCols=function(){this.colCnt=this.computeColCnt();this.colHeadFormat=this.opt("columnHeaderFormat")||this.opt("columnFormat")||this.computeColHeadFormat()},t.prototype.computeColCnt=function(){return this.daysPerRow},t.prototype.getCellDate=function(n,t){return this.dayDates[this.getCellDayIndex(n,t)].clone()},t.prototype.getCellRange=function(n,t){var i=this.getCellDate(n,t);return{start:i,end:i.clone().add(1,"days")}},t.prototype.getCellDayIndex=function(n,t){return n*this.daysPerRow+this.getColDayIndex(t)},t.prototype.getColDayIndex=function(n){return this.isRTL?this.colCnt-1-n:n},t.prototype.getDateDayIndex=function(n){var t=this.dayIndices,i=n.diff(this.dayDates[0],"days");return i<0?t[0]-1:i>=t.length?t[t.length-1]+1:t[i]},t.prototype.computeColHeadFormat=function(){return this.rowCnt>1||this.colCnt>10?"ddd":this.colCnt>1?this.opt("dayOfMonthFormat"):"dddd"},t.prototype.sliceRangeByRow=function(n){for(var u,f,t,i,e=this.daysPerRow,o=this.view.computeDayRange(n),s=this.getDateDayIndex(o.start),h=this.getDateDayIndex(o.end.clone().subtract(1,"days")),c=[],r=0;r<this.rowCnt;r++)u=r*e,f=u+e-1,t=Math.max(s,u),i=Math.min(h,f),t=Math.ceil(t),i=Math.floor(i),t<=i&&c.push({row:r,firstRowDayIndex:t-u,lastRowDayIndex:i-u,isStart:t===s,isEnd:i===h});return c},t.prototype.sliceRangeByDay=function(n){for(var u,e,f,t,i,o=this.daysPerRow,s=this.view.computeDayRange(n),h=this.getDateDayIndex(s.start),c=this.getDateDayIndex(s.end.clone().subtract(1,"days")),l=[],r=0;r<this.rowCnt;r++)for(u=r*o,e=u+o-1,f=u;f<=e;f++)t=Math.max(h,f),i=Math.min(c,f),t=Math.ceil(t),i=Math.floor(i),t<=i&&l.push({row:r,firstRowDayIndex:t-u,lastRowDayIndex:i-u,isStart:t===h,isEnd:i===c});return l},t.prototype.renderHeadHtml=function(){var n=this.view.calendar.theme;return'<div class="fc-row '+n.getClass("headerRow")+'"><table class="'+n.getClass("tableGrid")+'"><thead>'+this.renderHeadTrHtml()+"<\/thead><\/table><\/div>"},t.prototype.renderHeadIntroHtml=function(){return this.renderIntroHtml()},t.prototype.renderHeadTrHtml=function(){return"<tr>"+(this.isRTL?"":this.renderHeadIntroHtml())+this.renderHeadDateCellsHtml()+(this.isRTL?this.renderHeadIntroHtml():"")+"<\/tr>"},t.prototype.renderHeadDateCellsHtml=function(){for(var t,i=[],n=0;n<this.colCnt;n++)t=this.getCellDate(0,n),i.push(this.renderHeadDateCellHtml(t));return i.join("")},t.prototype.renderHeadDateCellHtml=function(n,t,i){var e,u=this,o=u.view,s=u.dateProfile.activeUnzonedRange.containsDate(n),f=["fc-day-header",o.calendar.theme.getClass("widgetHeader")];return e="function"==typeof u.opt("columnHeaderHtml")?u.opt("columnHeaderHtml")(n):"function"==typeof u.opt("columnHeaderText")?r.htmlEscape(u.opt("columnHeaderText")(n)):r.htmlEscape(n.format(u.colHeadFormat)),1===u.rowCnt?f=f.concat(u.getDayClasses(n,!0)):f.push("fc-"+r.dayIDs[n.day()]),'<th class="'+f.join(" ")+'"'+(1===(s&&u.rowCnt)?' data-date="'+n.format("YYYY-MM-DD")+'"':"")+(t>1?' colspan="'+t+'"':"")+(i?" "+i:"")+">"+(s?o.buildGotoAnchorHtml({date:n,forceOff:u.rowCnt>1||1===u.colCnt},e):e)+"<\/th>"},t.prototype.renderBgTrHtml=function(n){return"<tr>"+(this.isRTL?"":this.renderBgIntroHtml(n))+this.renderBgCellsHtml(n)+(this.isRTL?this.renderBgIntroHtml(n):"")+"<\/tr>"},t.prototype.renderBgIntroHtml=function(){return this.renderIntroHtml()},t.prototype.renderBgCellsHtml=function(n){for(var i,r=[],t=0;t<this.colCnt;t++)i=this.getCellDate(n,t),r.push(this.renderBgCellHtml(i));return r.join("")},t.prototype.renderBgCellHtml=function(n,t){var i=this,u=i.view,f=i.dateProfile.activeUnzonedRange.containsDate(n),r=i.getDayClasses(n);return r.unshift("fc-day",u.calendar.theme.getClass("widgetContent")),'<td class="'+r.join(" ")+'"'+(f?' data-date="'+n.format("YYYY-MM-DD")+'"':"")+(t?" "+t:"")+"><\/td>"},t.prototype.renderIntroHtml=function(){},t.prototype.bookendCells=function(n){var t=this.renderIntroHtml();t&&(this.isRTL?n.append(t):n.prepend(t))},t}(f.default);t.default=e},function(n,t){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function n(n,t){this.component=n;this.fillRenderer=t}return n.prototype.render=function(n){var t=this.component,i=t._getDateProfile().activeUnzonedRange,r=n.buildEventInstanceGroup(t.hasAllDayBusinessHours,i),u=r?t.eventRangesToEventFootprints(r.sliceRenderRanges(i)):[];this.renderEventFootprints(u)},n.prototype.renderEventFootprints=function(n){var t=this.component.eventFootprintsToSegs(n);this.renderSegs(t);this.segs=t},n.prototype.renderSegs=function(n){this.fillRenderer&&this.fillRenderer.renderSegs("businessHours",n,{getClasses:function(){return["fc-nonbusiness","fc-bgevent"]}})},n.prototype.unrender=function(){this.fillRenderer&&this.fillRenderer.unrender("businessHours");this.segs=null},n.prototype.getSegs=function(){return this.segs||[]},n}();t.default=i},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(3),u=i(4),f=function(){function n(n){this.fillSegTag="div";this.component=n;this.elsByFill={}}return n.prototype.renderFootprint=function(n,t,i){this.renderSegs(n,this.component.componentFootprintToSegs(t),i)},n.prototype.renderSegs=function(n,t,i){var r;return t=this.buildSegEls(n,t,i),r=this.attachSegEls(n,t),r&&this.reportEls(n,r),t},n.prototype.unrender=function(n){var t=this.elsByFill[n];t&&(t.remove(),delete this.elsByFill[n])},n.prototype.buildSegEls=function(n,t,i){var u,o=this,f="",e=[];if(t.length){for(u=0;u<t.length;u++)f+=this.buildSegHtml(n,t[u],i);r(f).each(function(n,u){var s=t[n],f=r(u);i.filterEl&&(f=i.filterEl(s,f));f&&(f=r(f),f.is(o.fillSegTag)&&(s.el=f,e.push(s)))})}return e},n.prototype.buildSegHtml=function(n,t,i){var r=i.getClasses?i.getClasses(t):[],f=u.cssToStr(i.getCss?i.getCss(t):{});return"<"+this.fillSegTag+(r.length?' class="'+r.join(" ")+'"':"")+(f?' style="'+f+'"':"")+" />"},n.prototype.attachSegEls=function(){},n.prototype.reportEls=function(n,t){this.elsByFill[n]=this.elsByFill[n]?this.elsByFill[n].add(t):r(t)},n}();t.default=f},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(13),u=i(36),f=i(6),e=function(){function n(n,t){this.view=n._getView();this.component=n;this.eventRenderer=t}return n.prototype.renderComponentFootprint=function(n){this.renderEventFootprints([this.fabricateEventFootprint(n)])},n.prototype.renderEventDraggingFootprints=function(n,t,i){this.renderEventFootprints(n,t,"fc-dragging",i?null:this.view.opt("dragOpacity"))},n.prototype.renderEventResizingFootprints=function(n,t){this.renderEventFootprints(n,t,"fc-resizing")},n.prototype.renderEventFootprints=function(n,t,i,r){for(var f=this.component.eventFootprintsToSegs(n),e="fc-helper "+(i||""),f=this.eventRenderer.renderFgSegEls(f),u=0;u<f.length;u++)f[u].el.addClass(e);if(null!=r)for(u=0;u<f.length;u++)f[u].el.css("opacity",r);this.helperEls=this.renderSegs(f,t)},n.prototype.renderSegs=function(){},n.prototype.unrender=function(){this.helperEls&&(this.helperEls.remove(),this.helperEls=null)},n.prototype.fabricateEventFootprint=function(n){var i,e=this.view.calendar,o=e.footprintToDateProfile(n),t=new r.default(new f.default(e));return t.dateProfile=o,i=t.buildInstance(),new u.default(n,t,i)},n}();t.default=e},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(2),u=i(21),f=i(15),e=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return r.__extends(t,n),t.prototype.bindToEl=function(n){var t=this.component;t.bindSegHandlerToEl(n,"click",this.handleClick.bind(this));t.bindSegHandlerToEl(n,"mouseenter",this.handleMouseover.bind(this));t.bindSegHandlerToEl(n,"mouseleave",this.handleMouseout.bind(this))},t.prototype.handleClick=function(n,t){!1===this.component.publiclyTrigger("eventClick",{context:n.el[0],args:[n.footprint.getEventLegacy(),t,this.view]})&&t.preventDefault()},t.prototype.handleMouseover=function(n,t){u.default.get().shouldIgnoreMouse()||this.mousedOverSeg||(this.mousedOverSeg=n,this.view.isEventDefResizable(n.footprint.eventDef)&&n.el.addClass("fc-allow-mouse-resize"),this.component.publiclyTrigger("eventMouseover",{context:n.el[0],args:[n.footprint.getEventLegacy(),t,this.view]}))},t.prototype.handleMouseout=function(n,t){this.mousedOverSeg&&(this.mousedOverSeg=null,this.view.isEventDefResizable(n.footprint.eventDef)&&n.el.removeClass("fc-allow-mouse-resize"),this.component.publiclyTrigger("eventMouseout",{context:n.el[0],args:[n.footprint.getEventLegacy(),t||{},this.view]}))},t.prototype.end=function(){this.mousedOverSeg&&this.handleMouseout(this.mousedOverSeg)},t}(f.default);t.default=e},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var u=i(2),f=i(14),e=i(245),o=i(225),s=i(59),h=i(224),c=i(223),l=i(222),r=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return u.__extends(t,n),t}(f.default);t.default=r;r.prototype.dateClickingClass=e.default;r.prototype.dateSelectingClass=o.default;r.prototype.eventPointingClass=s.default;r.prototype.eventDraggingClass=h.default;r.prototype.eventResizingClass=c.default;r.prototype.externalDroppingClass=l.default},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var s=i(2),r=i(3),h=i(4),f=i(53),c=i(249),e=i(5),o=i(12),l=i(36),a=i(56),v=i(60),y=i(40),p=i(55),w=i(250),b=i(251),k=i(252),u=function(n){function t(t){var i=n.call(this,t)||this;return i.cellWeekNumbersVisible=!1,i.bottomCoordPadding=0,i.isRigid=!1,i.hasAllDayBusinessHours=!0,i}return s.__extends(t,n),t.prototype.componentFootprintToSegs=function(n){for(var t,r=this.sliceRangeByRow(n.unzonedRange),i=0;i<r.length;i++)t=r[i],this.isRTL?(t.leftCol=this.daysPerRow-1-t.lastRowDayIndex,t.rightCol=this.daysPerRow-1-t.firstRowDayIndex):(t.leftCol=t.firstRowDayIndex,t.rightCol=t.lastRowDayIndex);return r},t.prototype.renderDates=function(n){this.dateProfile=n;this.updateDayTable();this.renderGrid()},t.prototype.unrenderDates=function(){this.removeSegPopover()},t.prototype.renderGrid=function(){var n,t,i=this.view,r=this.rowCnt,e=this.colCnt,u="";for(this.headContainerEl&&this.headContainerEl.html(this.renderHeadHtml()),n=0;n<r;n++)u+=this.renderDayRowHtml(n,this.isRigid);for(this.el.html(u),this.rowEls=this.el.find(".fc-row"),this.cellEls=this.el.find(".fc-day, .fc-disabled-day"),this.rowCoordCache=new f.default({els:this.rowEls,isVertical:!0}),this.colCoordCache=new f.default({els:this.cellEls.slice(0,this.colCnt),isHorizontal:!0}),n=0;n<r;n++)for(t=0;t<e;t++)this.publiclyTrigger("dayRender",{context:i,args:[this.getCellDate(n,t),this.getCellEl(n,t),i]})},t.prototype.renderDayRowHtml=function(n,t){var i=this.view.calendar.theme,r=["fc-row","fc-week",i.getClass("dayRow")];return t&&r.push("fc-rigid"),'<div class="'+r.join(" ")+'"><div class="fc-bg"><table class="'+i.getClass("tableGrid")+'">'+this.renderBgTrHtml(n)+'<\/table><\/div><div class="fc-content-skeleton"><table>'+(this.getIsNumbersVisible()?"<thead>"+this.renderNumberTrHtml(n)+"<\/thead>":"")+"<\/table><\/div><\/div>"},t.prototype.getIsNumbersVisible=function(){return this.getIsDayNumbersVisible()||this.cellWeekNumbersVisible},t.prototype.getIsDayNumbersVisible=function(){return this.rowCnt>1},t.prototype.renderNumberTrHtml=function(n){return"<tr>"+(this.isRTL?"":this.renderNumberIntroHtml(n))+this.renderNumberCellsHtml(n)+(this.isRTL?this.renderNumberIntroHtml(n):"")+"<\/tr>"},t.prototype.renderNumberIntroHtml=function(){return this.renderIntroHtml()},t.prototype.renderNumberCellsHtml=function(n){for(var i,r=[],t=0;t<this.colCnt;t++)i=this.getCellDate(n,t),r.push(this.renderNumberCellHtml(i));return r.join("")},t.prototype.renderNumberCellHtml=function(n){var i,r,u=this.view,t="",f=this.dateProfile.activeUnzonedRange.containsDate(n),e=this.getIsDayNumbersVisible()&&f;return e||this.cellWeekNumbersVisible?(i=this.getDayClasses(n),i.unshift("fc-day-top"),this.cellWeekNumbersVisible&&(r="ISO"===n._locale._fullCalendar_weekCalc?1:n._locale.firstDayOfWeek()),t+='<td class="'+i.join(" ")+'"'+(f?' data-date="'+n.format()+'"':"")+">",this.cellWeekNumbersVisible&&n.day()===r&&(t+=u.buildGotoAnchorHtml({date:n,type:"week"},{"class":"fc-week-number"},n.format("w"))),e&&(t+=u.buildGotoAnchorHtml(n,{"class":"fc-day-number"},n.format("D"))),t+="<\/td>"):"<td/>"},t.prototype.prepareHits=function(){this.colCoordCache.build();this.rowCoordCache.build();this.rowCoordCache.bottoms[this.rowCnt-1]+=this.bottomCoordPadding},t.prototype.releaseHits=function(){this.colCoordCache.clear();this.rowCoordCache.clear()},t.prototype.queryHit=function(n,t){if(this.colCoordCache.isLeftInBounds(n)&&this.rowCoordCache.isTopInBounds(t)){var i=this.colCoordCache.getHorizontalIndex(n),r=this.rowCoordCache.getVerticalIndex(t);if(null!=r&&null!=i)return this.getCellHit(r,i)}},t.prototype.getHitFootprint=function(n){var t=this.getCellRange(n.row,n.col);return new o.default(new e.default(t.start,t.end),!0)},t.prototype.getHitEl=function(n){return this.getCellEl(n.row,n.col)},t.prototype.getCellHit=function(n,t){return{row:n,col:t,component:this,left:this.colCoordCache.getLeftOffset(t),right:this.colCoordCache.getRightOffset(t),top:this.rowCoordCache.getTopOffset(n),bottom:this.rowCoordCache.getBottomOffset(n)}},t.prototype.getCellEl=function(n,t){return this.cellEls.eq(n*this.colCnt+t)},t.prototype.executeEventUnrender=function(){this.removeSegPopover();n.prototype.executeEventUnrender.call(this)},t.prototype.getOwnEventSegs=function(){return n.prototype.getOwnEventSegs.call(this).concat(this.popoverSegs||[])},t.prototype.renderDrag=function(n,t,i){for(var r=0;r<n.length;r++)this.renderHighlight(n[r].componentFootprint);if(n.length&&t&&t.component!==this)return this.helperRenderer.renderEventDraggingFootprints(n,t,i),!0},t.prototype.unrenderDrag=function(){this.unrenderHighlight();this.helperRenderer.unrender()},t.prototype.renderEventResize=function(n,t,i){for(var r=0;r<n.length;r++)this.renderHighlight(n[r].componentFootprint);this.helperRenderer.renderEventResizingFootprints(n,t,i)},t.prototype.unrenderEventResize=function(){this.unrenderHighlight();this.helperRenderer.unrender()},t.prototype.removeSegPopover=function(){this.segPopover&&this.segPopover.hide()},t.prototype.limitRows=function(n){for(var i,r=this.eventRenderer.rowStructs||[],t=0;t<r.length;t++)this.unlimitRow(t),!1!==(i=!!n&&("number"==typeof n?n:this.computeRowLevelLimit(t)))&&this.limitRow(t,i)},t.prototype.computeRowLevelLimit=function(n){function e(n,t){i=Math.max(i,r(t).outerHeight())}for(var u,i,o=this.rowEls.eq(n),s=o.height(),f=this.eventRenderer.rowStructs[n].tbodyEl.children(),t=0;t<f.length;t++)if(u=f.eq(t).removeClass("fc-limited"),i=0,u.find("> td > :first-child").each(e),u.position().top+i>s)return t;return!1},t.prototype.limitRow=function(n,t){var y,p,w,c,f,i,b,l,e,g,k,s,a,h,v,nt=this,o=this.eventRenderer.rowStructs[n],d=[],u=0,tt=function(f){for(;u<f;)i=nt.getCellSegs(n,u,t),i.length&&(e=p[t-1][u],v=nt.renderMoreLink(n,u,i),h=r("<div/>").append(v),e.append(h),d.push(h[0])),u++};if(t&&t<o.segLevels.length){for(y=o.segLevels[t-1],p=o.cellMatrix,w=o.tbodyEl.children().slice(t).addClass("fc-limited").get(),c=0;c<y.length;c++){for(f=y[c],tt(f.leftCol),l=[],b=0;u<=f.rightCol;)i=this.getCellSegs(n,u,t),l.push(i),b+=i.length,u++;if(b){for(e=p[t-1][f.leftCol],g=e.attr("rowspan")||1,k=[],s=0;s<l.length;s++)a=r('<td class="fc-more-cell"/>').attr("rowspan",g),i=l[s],v=this.renderMoreLink(n,f.leftCol+s,[f].concat(i)),h=r("<div/>").append(v),a.append(h),k.push(a[0]),d.push(a[0]);e.addClass("fc-limited").after(r(k));w.push(e[0])}}tt(this.colCnt);o.moreEls=r(d);o.limitedEls=r(w)}},t.prototype.unlimitRow=function(n){var t=this.eventRenderer.rowStructs[n];t.moreEls&&(t.moreEls.remove(),t.moreEls=null);t.limitedEls&&(t.limitedEls.removeClass("fc-limited"),t.limitedEls=null)},t.prototype.renderMoreLink=function(n,t,i){var u=this,f=this.view;return r('<a class="fc-more"/>').text(this.getMoreLinkText(i.length)).on("click",function(e){var o=u.opt("eventLimitClick"),s=u.getCellDate(n,t),h=r(e.currentTarget),l=u.getCellEl(n,t),a=u.getCellSegs(n,t),c=u.resliceDaySegs(a,s),v=u.resliceDaySegs(i,s);"function"==typeof o&&(o=u.publiclyTrigger("eventLimitClick",{context:f,args:[{date:s.clone(),dayEl:l,moreEl:h,segs:c,hiddenSegs:v},e,f]}));"popover"===o?u.showSegPopover(n,t,h,c):"string"==typeof o&&f.calendar.zoomTo(s,o)})},t.prototype.showSegPopover=function(n,t,i,r){var s,f,u=this,e=this.view,o=i.parent();s=1===this.rowCnt?e.el:this.rowEls.eq(n);f={className:"fc-more-popover "+e.calendar.theme.getClass("popover"),content:this.renderSegPopoverContent(n,t,r),parentEl:e.el,top:s.offset().top,autoHide:!0,viewportConstrain:this.opt("popoverViewportConstrain"),hide:function(){u.popoverSegs&&u.triggerBeforeEventSegsDestroyed(u.popoverSegs);u.segPopover.removeElement();u.segPopover=null;u.popoverSegs=null}};this.isRTL?f.right=o.offset().left+o.outerWidth()+1:f.left=o.offset().left-1;this.segPopover=new c.default(f);this.segPopover.show();this.bindAllSegHandlersToEl(this.segPopover.el);this.triggerAfterEventSegsRendered(r)},t.prototype.renderSegPopoverContent=function(n,t,i){var u,o=this.view,f=o.calendar.theme,s=this.getCellDate(n,t).format(this.opt("dayPopoverFormat")),e=r('<div class="fc-header '+f.getClass("popoverHeader")+'"><span class="fc-close '+f.getIconClass("close")+'"><\/span><span class="fc-title">'+h.htmlEscape(s)+'<\/span><div class="fc-clear"/><\/div><div class="fc-body '+f.getClass("popoverContent")+'"><div class="fc-event-container"><\/div><\/div>'),c=e.find(".fc-event-container");for(i=this.eventRenderer.renderFgSegEls(i,!0),this.popoverSegs=i,u=0;u<i.length;u++)this.hitsNeeded(),i[u].hit=this.getCellHit(n,t),this.hitsNotNeeded(),c.append(i[u].el);return e},t.prototype.resliceDaySegs=function(n,t){for(var i,f,h=t.clone(),c=h.clone().add(1,"days"),a=new e.default(h,c),s=[],u=0;u<n.length;u++)i=n[u],(f=i.footprint.componentFootprint.unzonedRange.intersect(a))&&s.push(r.extend({},i,{footprint:new l.default(new o.default(f,i.footprint.componentFootprint.isAllDay),i.footprint.eventDef,i.footprint.eventInstance),isStart:i.isStart&&f.isStart,isEnd:i.isEnd&&f.isEnd}));return this.eventRenderer.sortEventSegs(s),s},t.prototype.getMoreLinkText=function(n){var t=this.opt("eventLimitText");return"function"==typeof t?t(n):"+"+n+" "+t},t.prototype.getCellSegs=function(n,t,i){for(var r,f=this.eventRenderer.rowStructs[n].segMatrix,u=i||0,e=[];u<f.length;)r=f[u][t],r&&e.push(r),u++;return e},t}(y.default);t.default=u;u.prototype.eventRendererClass=w.default;u.prototype.businessHourRendererClass=a.default;u.prototype.helperRendererClass=b.default;u.prototype.fillRendererClass=k.default;v.default.mixInto(u);p.default.mixInto(u)},function(n,t,i){function o(n){return function(n){function t(){var t=null!==n&&n.apply(this,arguments)||this;return t.colWeekNumbersVisible=!1,t}return f.__extends(t,n),t.prototype.renderHeadIntroHtml=function(){var n=this.view;return this.colWeekNumbersVisible?'<th class="fc-week-number '+n.calendar.theme.getClass("widgetHeader")+'" '+n.weekNumberStyleAttr()+"><span>"+r.htmlEscape(this.opt("weekNumberTitle"))+"<\/span><\/th>":""},t.prototype.renderNumberIntroHtml=function(n){var t=this.view,i=this.getCellDate(n,0);return this.colWeekNumbersVisible?'<td class="fc-week-number" '+t.weekNumberStyleAttr()+">"+t.buildGotoAnchorHtml({date:i,type:"week",forceOff:1===this.colCnt},i.format("w"))+"<\/td>":""},t.prototype.renderBgIntroHtml=function(){var n=this.view;return this.colWeekNumbersVisible?'<td class="fc-week-number '+n.calendar.theme.getClass("widgetContent")+'" '+n.weekNumberStyleAttr()+"><\/td>":""},t.prototype.renderIntroHtml=function(){var n=this.view;return this.colWeekNumbersVisible?'<td class="fc-week-number" '+n.weekNumberStyleAttr()+"><\/td>":""},t.prototype.getIsNumbersVisible=function(){return e.default.prototype.getIsNumbersVisible.apply(this,arguments)||this.colWeekNumbersVisible},t}(n)}Object.defineProperty(t,"__esModule",{value:!0});var f=i(2),s=i(3),r=i(4),h=i(39),c=i(41),l=i(228),e=i(61),u=function(n){function t(t,i){var r=n.call(this,t,i)||this;return r.dayGrid=r.instantiateDayGrid(),r.dayGrid.isRigid=r.hasRigidRows(),r.opt("weekNumbers")&&(r.opt("weekNumbersWithinDays")?(r.dayGrid.cellWeekNumbersVisible=!0,r.dayGrid.colWeekNumbersVisible=!1):(r.dayGrid.cellWeekNumbersVisible=!1,r.dayGrid.colWeekNumbersVisible=!0)),r.addChild(r.dayGrid),r.scroller=new h.default({overflowX:"hidden",overflowY:"auto"}),r}return f.__extends(t,n),t.prototype.instantiateDayGrid=function(){return new(o(this.dayGridClass))(this)},t.prototype.executeDateRender=function(t){this.dayGrid.breakOnWeeks=/year|month|week/.test(t.currentRangeUnit);n.prototype.executeDateRender.call(this,t)},t.prototype.renderSkeleton=function(){var n,t;this.el.addClass("fc-basic-view").html(this.renderSkeletonHtml());this.scroller.render();n=this.scroller.el.addClass("fc-day-grid-container");t=s('<div class="fc-day-grid" />').appendTo(n);this.el.find(".fc-body > tr > td").append(n);this.dayGrid.headContainerEl=this.el.find(".fc-head-container");this.dayGrid.setElement(t)},t.prototype.unrenderSkeleton=function(){this.dayGrid.removeElement();this.scroller.destroy()},t.prototype.renderSkeletonHtml=function(){var n=this.calendar.theme;return'<table class="'+n.getClass("tableGrid")+'">'+(this.opt("columnHeader")?'<thead class="fc-head"><tr><td class="fc-head-container '+n.getClass("widgetHeader")+'">&nbsp;<\/td><\/tr><\/thead>':"")+'<tbody class="fc-body"><tr><td class="'+n.getClass("widgetContent")+'"><\/td><\/tr><\/tbody><\/table>'},t.prototype.weekNumberStyleAttr=function(){return null!=this.weekNumberWidth?'style="width:'+this.weekNumberWidth+'px"':""},t.prototype.hasRigidRows=function(){var n=this.opt("eventLimit");return n&&"number"!=typeof n},t.prototype.updateSize=function(t,i,u){var f,o,e=this.opt("eventLimit"),s=this.dayGrid.headContainerEl.find(".fc-row");if(!this.dayGrid.rowEls)return void(i||(f=this.computeScrollerHeight(t),this.scroller.setHeight(f)));n.prototype.updateSize.call(this,t,i,u);this.dayGrid.colWeekNumbersVisible&&(this.weekNumberWidth=r.matchCellWidths(this.el.find(".fc-week-number")));this.scroller.clear();r.uncompensateScroll(s);this.dayGrid.removeSegPopover();e&&"number"==typeof e&&this.dayGrid.limitRows(e);f=this.computeScrollerHeight(t);this.setGridHeight(f,i);e&&"number"!=typeof e&&this.dayGrid.limitRows(e);i||(this.scroller.setHeight(f),o=this.scroller.getScrollbarWidths(),(o.left||o.right)&&(r.compensateScroll(s,o),f=this.computeScrollerHeight(t),this.scroller.setHeight(f)),this.scroller.lockOverflow(o))},t.prototype.computeScrollerHeight=function(n){return n-r.subtractInnerElHeight(this.el,this.scroller.el)},t.prototype.setGridHeight=function(n,t){t?r.undistributeHeight(this.dayGrid.rowEls):r.distributeHeight(this.dayGrid.rowEls,n,!0)},t.prototype.computeInitialDateScroll=function(){return{top:0}},t.prototype.queryDateScroll=function(){return{top:this.scroller.getScrollTop()}},t.prototype.applyDateScroll=function(n){void 0!==n.top&&this.scroller.setScrollTop(n.top)},t}(c.default);t.default=u;u.prototype.dateProfileGeneratorClass=l.default;u.prototype.dayGridClass=e.default},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(n,t,i){function u(n,t,i){for(var r=0;r<n.length;r++)if(!t(n[r].eventInstance.toLegacy(),i?i.toLegacy():null))return!1;return!0}function f(n,t){for(var r,f,u,e=t.toLegacy(),i=0;i<n.length;i++)if((r=n[i].eventInstance,f=r.def,!1===(u=f.getOverlap()))||"function"==typeof u&&!u(r.toLegacy(),e))return!1;return!0}Object.defineProperty(t,"__esModule",{value:!0});var e=i(5),o=i(12),s=i(49),h=i(6),r=i(35),c=function(){function n(n,t){this.eventManager=n;this._calendar=t}return n.prototype.opt=function(n){return this._calendar.opt(n)},n.prototype.isEventInstanceGroupAllowed=function(n){for(var u=n.getEventDef(),i=this.eventRangesToEventFootprints(n.getAllEventRanges()),e=this.getPeerEventInstances(u),o=e.map(r.eventInstanceToEventRange),s=this.eventRangesToEventFootprints(o),h=u.getConstraint(),c=u.getOverlap(),f=this.opt("eventAllow"),t=0;t<i.length;t++)if(!this.isFootprintAllowed(i[t].componentFootprint,s,h,c,i[t].eventInstance))return!1;if(f)for(t=0;t<i.length;t++)if(!1===f(i[t].componentFootprint.toLegacy(this._calendar),i[t].getEventLegacy()))return!1;return!0},n.prototype.getPeerEventInstances=function(n){return this.eventManager.getEventInstancesWithoutId(n.id)},n.prototype.isSelectionFootprintAllowed=function(n){var t,i=this.eventManager.getEventInstances(),u=i.map(r.eventInstanceToEventRange),f=this.eventRangesToEventFootprints(u);return!!this.isFootprintAllowed(n,f,this.opt("selectConstraint"),this.opt("selectOverlap"))&&(!(t=this.opt("selectAllow"))||!1!==t(n.toLegacy(this._calendar)))},n.prototype.isFootprintAllowed=function(n,t,i,r,e){var s,o;if(null!=i&&(s=this.constraintValToFootprints(i,n.isAllDay),!this.isFootprintWithinConstraints(n,s)))return!1;if(o=this.collectOverlapEventFootprints(t,n),!1===r){if(o.length)return!1}else if("function"==typeof r&&!u(o,r,e))return!1;return!(e&&!f(o,e))},n.prototype.isFootprintWithinConstraints=function(n,t){for(var i=0;i<t.length;i++)if(this.footprintContainsFootprint(t[i],n))return!0;return!1},n.prototype.constraintValToFootprints=function(n,t){var i;return"businessHours"===n?this.buildCurrentBusinessFootprints(t):"object"==typeof n?(i=this.parseEventDefToInstances(n),i?this.eventInstancesToFootprints(i):this.parseFootprints(n)):null!=n?(i=this.eventManager.getEventInstancesWithId(n),this.eventInstancesToFootprints(i)):void 0},n.prototype.buildCurrentBusinessFootprints=function(n){var t=this._calendar.view,r=t.get("businessHourGenerator"),u=t.dateProfile.activeUnzonedRange,i=r.buildEventInstanceGroup(n,u);return i?this.eventInstancesToFootprints(i.eventInstances):[]},n.prototype.eventInstancesToFootprints=function(n){var t=n.map(r.eventInstanceToEventRange);return this.eventRangesToEventFootprints(t).map(r.eventFootprintToComponentFootprint)},n.prototype.collectOverlapEventFootprints=function(n,t){for(var r=[],i=0;i<n.length;i++)this.footprintsIntersect(t,n[i].componentFootprint)&&r.push(n[i]);return r},n.prototype.parseEventDefToInstances=function(n){var i=this.eventManager,t=s.default.parse(n,new h.default(this._calendar));return!!t&&t.buildInstances(i.currentPeriod.unzonedRange)},n.prototype.eventRangesToEventFootprints=function(n){for(var i=[],t=0;t<n.length;t++)i.push.apply(i,this.eventRangeToEventFootprints(n[t]));return i},n.prototype.eventRangeToEventFootprints=function(n){return[r.eventRangeToEventFootprint(n)]},n.prototype.parseFootprints=function(n){var t,i;return n.start&&(t=this._calendar.moment(n.start),t.isValid()||(t=null)),n.end&&(i=this._calendar.moment(n.end),i.isValid()||(i=null)),[new o.default(new e.default(t,i),t&&!t.hasTime()||i&&!i.hasTime())]},n.prototype.footprintContainsFootprint=function(n,t){return n.unzonedRange.containsRange(t.unzonedRange)},n.prototype.footprintsIntersect=function(n,t){return n.unzonedRange.intersectsWith(t.unzonedRange)},n}();t.default=c},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var u=i(2),f=i(4),e=i(14),r=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return u.__extends(t,n),t.defineStandardProps=function(n){var t=this.prototype;t.hasOwnProperty("standardPropMap")||(t.standardPropMap=Object.create(t.standardPropMap));f.copyOwnProps(n,t.standardPropMap)},t.copyVerbatimStandardProps=function(n,t){var i,r=this.prototype.standardPropMap;for(i in r)null!=n[i]&&!0===r[i]&&(t[i]=n[i])},t.prototype.applyProps=function(n){var t,i=this.standardPropMap,r={},u={};for(t in n)!0===i[t]?this[t]=n[t]:!1===i[t]?r[t]=n[t]:u[t]=n[t];return this.applyMiscProps(u),this.applyManualStandardProps(r)},t.prototype.applyManualStandardProps=function(){return!0},t.prototype.applyMiscProps=function(){},t.prototype.isStandardProp=function(n){return n in this.standardPropMap},t}(e.default);t.default=r;r.prototype.standardPropMap={}},function(n,t){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function n(n,t){this.def=n;this.dateProfile=t}return n.prototype.toLegacy=function(){var n=this.dateProfile,t=this.def.toLegacy();return t.start=n.start.clone(),t.end=n.end?n.end.clone():null,t},n}();t.default=i},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var e=i(2),o=i(3),r=i(0),f=i(34),s=i(209),h=i(17),u=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return e.__extends(t,n),t.prototype.isAllDay=function(){return!this.startTime&&!this.endTime},t.prototype.buildInstances=function(n){for(var r,t,u,f=this.source.calendar,i=n.getStart(),o=n.getEnd(),e=[];i.isBefore(o);)this.dowHash&&!this.dowHash[i.day()]||(r=f.applyTimezone(i),t=r.clone(),u=null,this.startTime?t.time(this.startTime):t.stripTime(),this.endTime&&(u=r.clone().time(this.endTime)),e.push(new s.default(this,new h.default(t,u,f)))),i.add(1,"days");return e},t.prototype.setDow=function(n){this.dowHash||(this.dowHash={});for(var t=0;t<n.length;t++)this.dowHash[n[t]]=!0},t.prototype.clone=function(){var t=n.prototype.clone.call(this);return t.startTime&&(t.startTime=r.duration(this.startTime)),t.endTime&&(t.endTime=r.duration(this.endTime)),this.dowHash&&(t.dowHash=o.extend({},this.dowHash)),t},t}(f.default);t.default=u;u.prototype.applyProps=function(n){var t=f.default.prototype.applyProps.call(this,n);return n.start&&(this.startTime=r.duration(n.start)),n.end&&(this.endTime=r.duration(n.end)),n.dow&&this.setDow(n.dow),t};u.defineStandardProps({start:!1,end:!1,dow:!1})},function(n,t){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function n(n,t,i){this.unzonedRange=n;this.eventDef=t;i&&(this.eventInstance=i)}return n}();t.default=i},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(3),u=i(35),f=i(18),e=i(210),o=i(6),s={start:"09:00",end:"17:00",dow:[1,2,3,4,5],rendering:"inverse-background"},h=function(){function n(n,t){this.rawComplexDef=n;this.calendar=t}return n.prototype.buildEventInstanceGroup=function(n,t){var i,r=this.buildEventDefs(n);if(r.length)return i=new f.default(u.eventDefsToEventInstances(r,t)),i.explicitEventDef=r[0],i},n.prototype.buildEventDefs=function(n){var i,u=this.rawComplexDef,t=[],f=!1,e=[];for(!0===u?t=[{}]:r.isPlainObject(u)?t=[u]:r.isArray(u)&&(t=u,f=!0),i=0;i<t.length;i++)f&&!t[i].dow||e.push(this.buildEventDef(n,t[i]));return e},n.prototype.buildEventDef=function(n,t){var i=r.extend({},s,t);return n&&(i.start=null,i.end=null),e.default.parse(i,new o.default(this.calendar))},n}();t.default=h},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var u=i(2),f=i(19),r=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return u.__extends(t,n),t}(f.default);t.default=r;r.prototype.classes={widget:"fc-unthemed",widgetHeader:"fc-widget-header",widgetContent:"fc-widget-content",buttonGroup:"fc-button-group",button:"fc-button",cornerLeft:"fc-corner-left",cornerRight:"fc-corner-right",stateDefault:"fc-state-default",stateActive:"fc-state-active",stateDisabled:"fc-state-disabled",stateHover:"fc-state-hover",stateDown:"fc-state-down",popoverHeader:"fc-widget-header",popoverContent:"fc-widget-content",headerRow:"fc-widget-header",dayRow:"fc-widget-content",listView:"fc-widget-content"};r.prototype.baseIconClass="fc-icon";r.prototype.iconClasses={close:"fc-icon-x",prev:"fc-icon-left-single-arrow",next:"fc-icon-right-single-arrow",prevYear:"fc-icon-left-double-arrow",nextYear:"fc-icon-right-double-arrow"};r.prototype.iconOverrideOption="buttonIcons";r.prototype.iconOverrideCustomButtonOption="icon";r.prototype.iconOverridePrefix="fc-icon-"},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var u=i(2),f=i(19),r=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return u.__extends(t,n),t}(f.default);t.default=r;r.prototype.classes={widget:"ui-widget",widgetHeader:"ui-widget-header",widgetContent:"ui-widget-content",buttonGroup:"fc-button-group",button:"ui-button",cornerLeft:"ui-corner-left",cornerRight:"ui-corner-right",stateDefault:"ui-state-default",stateActive:"ui-state-active",stateDisabled:"ui-state-disabled",stateHover:"ui-state-hover",stateDown:"ui-state-down",today:"ui-state-highlight",popoverHeader:"ui-widget-header",popoverContent:"ui-widget-content",headerRow:"ui-widget-header",dayRow:"ui-widget-content",listView:"ui-widget-content"};r.prototype.baseIconClass="ui-icon";r.prototype.iconClasses={close:"ui-icon-closethick",prev:"ui-icon-circle-triangle-w",next:"ui-icon-circle-triangle-e",prevYear:"ui-icon-seek-prev",nextYear:"ui-icon-seek-next"};r.prototype.iconOverrideOption="themeButtonIcons";r.prototype.iconOverrideCustomButtonOption="themeIcon";r.prototype.iconOverridePrefix="ui-icon-"},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var e=i(2),r=i(3),o=i(20),u=i(6),f=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return e.__extends(t,n),t.parse=function(n,t){var i;return r.isFunction(n.events)?i=n:r.isFunction(n)&&(i={events:n}),!!i&&u.default.parse.call(this,i,t)},t.prototype.fetch=function(n,t,i){var r=this;return this.calendar.pushLoading(),o.default.construct(function(u){r.func.call(r.calendar,n.clone(),t.clone(),i,function(n){r.calendar.popLoading();u(r.parseEventDefs(n))})})},t.prototype.getPrimitive=function(){return this.func},t.prototype.applyManualStandardProps=function(t){var i=n.prototype.applyManualStandardProps.call(this,t);return this.func=t.events,i},t}(u.default);t.default=f;f.defineStandardProps({events:!1})},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var o=i(2),r=i(3),u=i(4),s=i(20),f=i(6),e=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return o.__extends(t,n),t.parse=function(n,t){var i;return"string"==typeof n.url?i=n:"string"==typeof n&&(i={url:n}),!!i&&f.default.parse.call(this,i,t)},t.prototype.fetch=function(n,i,f){var e=this,o=this.ajaxSettings,h=o.success,c=o.error,l=this.buildRequestParams(n,i,f);return this.calendar.pushLoading(),s.default.construct(function(n,i){r.ajax(r.extend({},t.AJAX_DEFAULTS,o,{url:e.url,data:l,success:function(t,f,o){var s;e.calendar.popLoading();t?(s=u.applyAll(h,e,[t,f,o]),r.isArray(s)&&(t=s),n(e.parseEventDefs(t))):i()},error:function(n,t,r){e.calendar.popLoading();u.applyAll(c,e,[n,t,r]);i()}}))})},t.prototype.buildRequestParams=function(n,t,i){var f,e,o,c,s=this.calendar,h=this.ajaxSettings,u={};return f=this.startParam,null==f&&(f=s.opt("startParam")),e=this.endParam,null==e&&(e=s.opt("endParam")),o=this.timezoneParam,null==o&&(o=s.opt("timezoneParam")),c=r.isFunction(h.data)?h.data():h.data||{},r.extend(u,c),u[f]=n.format(),u[e]=t.format(),i&&"local"!==i&&(u[o]=i),u},t.prototype.getPrimitive=function(){return this.url},t.prototype.applyMiscProps=function(n){this.ajaxSettings=n},t.AJAX_DEFAULTS={dataType:"json",cache:!1},t}(f.default);t.default=e;e.defineStandardProps({url:!0,startParam:!0,endParam:!0,timezoneParam:!0})},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var u=i(11),r=function(){function n(){this.q=[];this.isPaused=!1;this.isRunning=!1}return n.prototype.queue=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this.q.push.apply(this.q,t);this.tryStart()},n.prototype.pause=function(){this.isPaused=!0},n.prototype.resume=function(){this.isPaused=!1;this.tryStart()},n.prototype.getIsIdle=function(){return!this.isRunning&&!this.isPaused},n.prototype.tryStart=function(){!this.isRunning&&this.canRunNext()&&(this.isRunning=!0,this.trigger("start"),this.runRemaining())},n.prototype.canRunNext=function(){return!this.isPaused&&this.q.length},n.prototype.runRemaining=function(){var t,n,i=this;do if(t=this.q.shift(),(n=this.runTask(t))&&n.then)return void n.then(function(){i.canRunNext()&&i.runRemaining()});while(this.canRunNext());this.trigger("stop");this.isRunning=!1;this.tryStart()},n.prototype.runTask=function(n){return n()},n}();t.default=r;u.default.mixInto(r)},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(2),u=i(217),f=function(n){function t(t){var i=n.call(this)||this;return i.waitsByNamespace=t||{},i}return r.__extends(t,n),t.prototype.queue=function(n,t,i){var r,u={func:n,namespace:t,type:i};t&&(r=this.waitsByNamespace[t]);this.waitNamespace&&(t===this.waitNamespace&&null!=r?this.delayWait(r):(this.clearWait(),this.tryStart()));this.compoundTask(u)&&(this.waitNamespace||null==r?this.tryStart():this.startWait(t,r))},t.prototype.startWait=function(n,t){this.waitNamespace=n;this.spawnWait(t)},t.prototype.delayWait=function(n){clearTimeout(this.waitId);this.spawnWait(n)},t.prototype.spawnWait=function(n){var t=this;this.waitId=setTimeout(function(){t.waitNamespace=null;t.tryStart()},n)},t.prototype.clearWait=function(){this.waitNamespace&&(clearTimeout(this.waitId),this.waitId=null,this.waitNamespace=null)},t.prototype.canRunNext=function(){if(!n.prototype.canRunNext.call(this))return!1;if(this.waitNamespace){for(var i=this.q,t=0;t<i.length;t++)if(i[t].namespace!==this.waitNamespace)return!0;return!1}return!0},t.prototype.runTask=function(n){n.func()},t.prototype.compoundTask=function(n){var t,u,i=this.q,r=!0;if(n.namespace&&"destroy"===n.type)for(t=i.length-1;t>=0;t--)switch(u=i[t],u.type){case"init":r=!1;case"add":case"remove":i.splice(t,1)}return r&&i.push(n),r},t}(u.default);t.default=f},function(n,t,i){function u(n){var r,i,t,u=[];for(r in n)for(i=n[r].eventInstances,t=0;t<i.length;t++)u.push(i[t].toLegacy());return u}Object.defineProperty(t,"__esModule",{value:!0});var f=i(2),e=i(3),o=i(0),r=i(4),s=i(10),h=i(47),c=i(237),l=i(35),a=function(n){function t(i,r){var u=n.call(this)||this;return u.isRTL=!1,u.hitsNeededDepth=0,u.hasAllDayBusinessHours=!1,u.isDatesRendered=!1,i&&(u.view=i),r&&(u.options=r),u.uid=String(t.guid++),u.childrenByUid={},u.nextDayThreshold=o.duration(u.opt("nextDayThreshold")),u.isRTL=u.opt("isRTL"),u.fillRendererClass&&(u.fillRenderer=new u.fillRendererClass(u)),u.eventRendererClass&&(u.eventRenderer=new u.eventRendererClass(u,u.fillRenderer)),u.helperRendererClass&&u.eventRenderer&&(u.helperRenderer=new u.helperRendererClass(u,u.eventRenderer)),u.businessHourRendererClass&&u.fillRenderer&&(u.businessHourRenderer=new u.businessHourRendererClass(u,u.fillRenderer)),u}return f.__extends(t,n),t.prototype.addChild=function(n){return!this.childrenByUid[n.uid]&&(this.childrenByUid[n.uid]=n,!0)},t.prototype.removeChild=function(n){return!!this.childrenByUid[n.uid]&&(delete this.childrenByUid[n.uid],!0)},t.prototype.updateSize=function(){this.callChildren("updateSize",arguments)},t.prototype.opt=function(n){return this._getView().opt(n)},t.prototype.publiclyTrigger=function(){for(var i,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return i=this._getCalendar(),i.publiclyTrigger.apply(i,t)},t.prototype.hasPublicHandlers=function(){for(var i,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return i=this._getCalendar(),i.hasPublicHandlers.apply(i,t)},t.prototype.executeDateRender=function(n){this.dateProfile=n;this.renderDates(n);this.isDatesRendered=!0;this.callChildren("executeDateRender",arguments)},t.prototype.executeDateUnrender=function(){this.callChildren("executeDateUnrender",arguments);this.dateProfile=null;this.unrenderDates();this.isDatesRendered=!1},t.prototype.renderDates=function(){},t.prototype.unrenderDates=function(){},t.prototype.getNowIndicatorUnit=function(){},t.prototype.renderNowIndicator=function(){this.callChildren("renderNowIndicator",arguments)},t.prototype.unrenderNowIndicator=function(){this.callChildren("unrenderNowIndicator",arguments)},t.prototype.renderBusinessHours=function(n){this.businessHourRenderer&&this.businessHourRenderer.render(n);this.callChildren("renderBusinessHours",arguments)},t.prototype.unrenderBusinessHours=function(){this.callChildren("unrenderBusinessHours",arguments);this.businessHourRenderer&&this.businessHourRenderer.unrender()},t.prototype.executeEventRender=function(n){this.eventRenderer?(this.eventRenderer.rangeUpdated(),this.eventRenderer.render(n)):this.renderEvents&&this.renderEvents(u(n));this.callChildren("executeEventRender",arguments)},t.prototype.executeEventUnrender=function(){this.callChildren("executeEventUnrender",arguments);this.eventRenderer?this.eventRenderer.unrender():this.destroyEvents&&this.destroyEvents()},t.prototype.getBusinessHourSegs=function(){var n=this.getOwnBusinessHourSegs();return this.iterChildren(function(t){n.push.apply(n,t.getBusinessHourSegs())}),n},t.prototype.getOwnBusinessHourSegs=function(){return this.businessHourRenderer?this.businessHourRenderer.getSegs():[]},t.prototype.getEventSegs=function(){var n=this.getOwnEventSegs();return this.iterChildren(function(t){n.push.apply(n,t.getEventSegs())}),n},t.prototype.getOwnEventSegs=function(){return this.eventRenderer?this.eventRenderer.getSegs():[]},t.prototype.triggerAfterEventsRendered=function(){this.triggerAfterEventSegsRendered(this.getEventSegs());this.publiclyTrigger("eventAfterAllRender",{context:this,args:[this]})},t.prototype.triggerAfterEventSegsRendered=function(n){var t=this;this.hasPublicHandlers("eventAfterRender")&&n.forEach(function(n){var i;n.el&&(i=n.footprint.getEventLegacy(),t.publiclyTrigger("eventAfterRender",{context:i,args:[i,n.el,t]}))})},t.prototype.triggerBeforeEventsDestroyed=function(){this.triggerBeforeEventSegsDestroyed(this.getEventSegs())},t.prototype.triggerBeforeEventSegsDestroyed=function(n){var t=this;this.hasPublicHandlers("eventDestroy")&&n.forEach(function(n){var i;n.el&&(i=n.footprint.getEventLegacy(),t.publiclyTrigger("eventDestroy",{context:i,args:[i,n.el,t]}))})},t.prototype.showEventsWithId=function(n){this.getEventSegs().forEach(function(t){t.footprint.eventDef.id===n&&t.el&&t.el.css("visibility","")});this.callChildren("showEventsWithId",arguments)},t.prototype.hideEventsWithId=function(n){this.getEventSegs().forEach(function(t){t.footprint.eventDef.id===n&&t.el&&t.el.css("visibility","hidden")});this.callChildren("hideEventsWithId",arguments)},t.prototype.renderDrag=function(n,t,i){var r=!1;return this.iterChildren(function(u){u.renderDrag(n,t,i)&&(r=!0)}),r},t.prototype.unrenderDrag=function(){this.callChildren("unrenderDrag",arguments)},t.prototype.renderEventResize=function(){this.callChildren("renderEventResize",arguments)},t.prototype.unrenderEventResize=function(){this.callChildren("unrenderEventResize",arguments)},t.prototype.renderSelectionFootprint=function(n){this.renderHighlight(n);this.callChildren("renderSelectionFootprint",arguments)},t.prototype.unrenderSelection=function(){this.unrenderHighlight();this.callChildren("unrenderSelection",arguments)},t.prototype.renderHighlight=function(n){this.fillRenderer&&this.fillRenderer.renderFootprint("highlight",n,{getClasses:function(){return["fc-highlight"]}});this.callChildren("renderHighlight",arguments)},t.prototype.unrenderHighlight=function(){this.fillRenderer&&this.fillRenderer.unrender("highlight");this.callChildren("unrenderHighlight",arguments)},t.prototype.hitsNeeded=function(){this.hitsNeededDepth++||this.prepareHits();this.callChildren("hitsNeeded",arguments)},t.prototype.hitsNotNeeded=function(){this.hitsNeededDepth&&!--this.hitsNeededDepth&&this.releaseHits();this.callChildren("hitsNotNeeded",arguments)},t.prototype.prepareHits=function(){},t.prototype.releaseHits=function(){},t.prototype.queryHit=function(n,t){var i,r,u=this.childrenByUid;for(i in u)if(r=u[i].queryHit(n,t))break;return r},t.prototype.getSafeHitFootprint=function(n){var t=this.getHitFootprint(n);return this.dateProfile.activeUnzonedRange.containsRange(t.unzonedRange)?t:null},t.prototype.getHitFootprint=function(){},t.prototype.getHitEl=function(){},t.prototype.eventRangesToEventFootprints=function(n){for(var i=[],t=0;t<n.length;t++)i.push.apply(i,this.eventRangeToEventFootprints(n[t]));return i},t.prototype.eventRangeToEventFootprints=function(n){return[l.eventRangeToEventFootprint(n)]},t.prototype.eventFootprintsToSegs=function(n){for(var i=[],t=0;t<n.length;t++)i.push.apply(i,this.eventFootprintToSegs(n[t]));return i},t.prototype.eventFootprintToSegs=function(n){for(var r,u=n.componentFootprint.unzonedRange,t=this.componentFootprintToSegs(n.componentFootprint),i=0;i<t.length;i++)r=t[i],u.isStart||(r.isStart=!1),u.isEnd||(r.isEnd=!1),r.footprint=n;return t},t.prototype.componentFootprintToSegs=function(){return[]},t.prototype.callChildren=function(n,t){this.iterChildren(function(i){i[n].apply(i,t)})},t.prototype.iterChildren=function(n){var t,i=this.childrenByUid;for(t in i)n(i[t])},t.prototype._getCalendar=function(){var n=this;return n.calendar||n.view.calendar},t.prototype._getView=function(){return this.view},t.prototype._getDateProfile=function(){return this._getView().get("dateProfile")},t.prototype.buildGotoAnchorHtml=function(n,t,i){var u,f,o,h;return e.isPlainObject(n)?(u=n.date,f=n.type,o=n.forceOff):u=n,u=s.default(u),h={date:u.format("YYYY-MM-DD"),type:f||"day"},"string"==typeof t&&(i=t,t=null),t=t?" "+r.attrsToStr(t):"",i=i||"",!o&&this.opt("navLinks")?"<a"+t+' data-goto="'+r.htmlEscape(JSON.stringify(h))+'">'+i+"<\/a>":"<span"+t+">"+i+"<\/span>"},t.prototype.getAllDayHtml=function(){return this.opt("allDayHtml")||r.htmlEscape(this.opt("allDayText"))},t.prototype.getDayClasses=function(n,t){var u,f=this._getView(),i=[];return this.dateProfile.activeUnzonedRange.containsDate(n)?(i.push("fc-"+r.dayIDs[n.day()]),f.isDateInOtherMonth(n,this.dateProfile)&&i.push("fc-other-month"),u=f.calendar.getNow(),n.isSame(u,"day")?(i.push("fc-today"),!0!==t&&i.push(f.calendar.theme.getClass("today"))):n<u?i.push("fc-past"):i.push("fc-future")):i.push("fc-disabled-day"),i},t.prototype.formatRange=function(n,t,i,r){var u=n.end;return t&&(u=u.clone().subtract(1)),h.formatRange(n.start,u,i,r,this.isRTL)},t.prototype.currentRangeAs=function(n){return this._getDateProfile().currentUnzonedRange.as(n)},t.prototype.computeDayRange=function(n){var r=this._getCalendar(),i=r.msToUtcMoment(n.startMs,!0),u=r.msToUtcMoment(n.endMs),f=+u.time(),t=u.clone().stripTime();return f&&f>=this.nextDayThreshold&&t.add(1,"days"),t<=i&&(t=i.clone().add(1,"days")),{start:i,end:t}},t.prototype.isMultiDayRange=function(n){var t=this.computeDayRange(n);return t.end.diff(t.start,"days")>1},t.guid=0,t}(c.default);t.default=a},function(n,t,i){function s(n,t){return null==t?n:r.isFunction(t)?n.filter(t):(t+="",n.filter(function(n){return n.id==t||n._id===t}))}Object.defineProperty(t,"__esModule",{value:!0});var r=i(3),f=i(0),h=i(4),e=i(32),y=i(238),c=i(21),p=i(11),w=i(7),l=i(239),b=i(240),k=i(241),d=i(207),g=i(31),u=i(10),a=i(5),nt=i(12),tt=i(17),it=i(242),rt=i(212),v=i(38),ut=i(49),ft=i(13),et=i(37),ot=i(6),st=i(51),o=function(){function n(n,t){this.loadingLevel=0;this.ignoreUpdateViewSize=0;this.freezeContentHeightDepth=0;c.default.needed();this.el=n;this.viewsByType={};this.optionsManager=new b.default(this,t);this.viewSpecManager=new k.default(this.optionsManager,this);this.initMomentInternals();this.initCurrentDate();this.initEventManager();this.constraints=new d.default(this.eventManager,this);this.constructed()}return n.prototype.constructed=function(){},n.prototype.getView=function(){return this.view},n.prototype.publiclyTrigger=function(n,t){var u,i,f=this.opt(n);if(r.isPlainObject(t)?(u=t.context,i=t.args):r.isArray(t)&&(i=t),null==u&&(u=this.el[0]),i||(i=[]),this.triggerWith(n,u,i),f)return f.apply(u,i)},n.prototype.hasPublicHandlers=function(n){return this.hasHandlers(n)||this.opt(n)},n.prototype.option=function(n,t){var i;if("string"==typeof n){if(void 0===t)return this.optionsManager.get(n);i={};i[n]=t;this.optionsManager.add(i)}else"object"==typeof n&&this.optionsManager.add(n)},n.prototype.opt=function(n){return this.optionsManager.get(n)},n.prototype.instantiateView=function(n){var t=this.viewSpecManager.getViewSpec(n);if(!t)throw new Error('View type "'+n+'" is not valid');return new t.class(this,t)},n.prototype.isValidViewType=function(n){return Boolean(this.viewSpecManager.getViewSpec(n))},n.prototype.changeView=function(n,t){t&&(t.start&&t.end?this.optionsManager.recordOverrides({visibleRange:t}):this.currentDate=this.moment(t).stripZone());this.renderView(n)},n.prototype.zoomTo=function(n,t){var i;t=t||"day";i=this.viewSpecManager.getViewSpec(t)||this.viewSpecManager.getUnitViewSpec(t);this.currentDate=n.clone();this.renderView(i?i.type:null)},n.prototype.initCurrentDate=function(){var n=this.opt("defaultDate");this.currentDate=null!=n?this.moment(n).stripZone():this.getNow()},n.prototype.prev=function(){var n=this.view,t=n.dateProfileGenerator.buildPrev(n.get("dateProfile"));t.isValid&&(this.currentDate=t.date,this.renderView())},n.prototype.next=function(){var n=this.view,t=n.dateProfileGenerator.buildNext(n.get("dateProfile"));t.isValid&&(this.currentDate=t.date,this.renderView())},n.prototype.prevYear=function(){this.currentDate.add(-1,"years");this.renderView()},n.prototype.nextYear=function(){this.currentDate.add(1,"years");this.renderView()},n.prototype.today=function(){this.currentDate=this.getNow();this.renderView()},n.prototype.gotoDate=function(n){this.currentDate=this.moment(n).stripZone();this.renderView()},n.prototype.incrementDate=function(n){this.currentDate.add(f.duration(n));this.renderView()},n.prototype.getDate=function(){return this.applyTimezone(this.currentDate)},n.prototype.pushLoading=function(){this.loadingLevel++||this.publiclyTrigger("loading",[!0,this.view])},n.prototype.popLoading=function(){--this.loadingLevel||this.publiclyTrigger("loading",[!1,this.view])},n.prototype.render=function(){this.contentEl?this.elementVisible()&&(this.calcSize(),this.updateViewSize()):this.initialRender()},n.prototype.initialRender=function(){var n=this,t=this.el;t.addClass("fc");t.on("click.fc","a[data-goto]",function(t){var o=r(t.currentTarget),f=o.data("goto"),e=n.moment(f.date),u=f.type,i=n.view.opt("navLink"+h.capitaliseFirstLetter(u)+"Click");"function"==typeof i?i(e,t):("string"==typeof i&&(u=i),n.zoomTo(e,u))});this.optionsManager.watch("settingTheme",["?theme","?themeSystem"],function(i){var f=st.getThemeSystemClass(i.themeSystem||i.theme),r=new f(n.optionsManager),u=r.getClass("widget");n.theme=r;u&&t.addClass(u)},function(){var i=n.theme.getClass("widget");n.theme=null;i&&t.removeClass(i)});this.optionsManager.watch("settingBusinessHourGenerator",["?businessHours"],function(t){n.businessHourGenerator=new rt.default(t.businessHours,n);n.view&&n.view.set("businessHourGenerator",n.businessHourGenerator)},function(){n.businessHourGenerator=null});this.optionsManager.watch("applyingDirClasses",["?isRTL","?locale"],function(n){t.toggleClass("fc-ltr",!n.isRTL);t.toggleClass("fc-rtl",n.isRTL)});this.contentEl=r("<div class='fc-view-container'/>").prependTo(t);this.initToolbars();this.renderHeader();this.renderFooter();this.renderView(this.opt("defaultView"));this.opt("handleWindowResize")&&r(window).resize(this.windowResizeProxy=h.debounce(this.windowResize.bind(this),this.opt("windowResizeDelay")))},n.prototype.destroy=function(){this.view&&this.clearView();this.toolbarsManager.proxyCall("removeElement");this.contentEl.remove();this.el.removeClass("fc fc-ltr fc-rtl");this.optionsManager.unwatch("settingTheme");this.optionsManager.unwatch("settingBusinessHourGenerator");this.el.off(".fc");this.windowResizeProxy&&(r(window).unbind("resize",this.windowResizeProxy),this.windowResizeProxy=null);c.default.unneeded()},n.prototype.elementVisible=function(){return this.el.is(":visible")},n.prototype.bindViewHandlers=function(n){var t=this;n.watch("titleForCalendar",["title"],function(i){n===t.view&&t.setToolbarsTitle(i.title)});n.watch("dateProfileForCalendar",["dateProfile"],function(i){n===t.view&&(t.currentDate=i.dateProfile.date,t.updateToolbarButtons(i.dateProfile))})},n.prototype.unbindViewHandlers=function(n){n.unwatch("titleForCalendar");n.unwatch("dateProfileForCalendar")},n.prototype.renderView=function(n){var t,i=this.view;this.freezeContentHeight();i&&n&&i.type!==n&&this.clearView();!this.view&&n&&(t=this.view=this.viewsByType[n]||(this.viewsByType[n]=this.instantiateView(n)),this.bindViewHandlers(t),t.startBatchRender(),t.setElement(r("<div class='fc-view fc-"+n+"-view' />").appendTo(this.contentEl)),this.toolbarsManager.proxyCall("activateButton",n));this.view&&(this.view.get("businessHourGenerator")!==this.businessHourGenerator&&this.view.set("businessHourGenerator",this.businessHourGenerator),this.view.setDate(this.currentDate),t&&t.stopBatchRender());this.thawContentHeight()},n.prototype.clearView=function(){var n=this.view;this.toolbarsManager.proxyCall("deactivateButton",n.type);this.unbindViewHandlers(n);n.removeElement();n.unsetDate();this.view=null},n.prototype.reinitView=function(){var n=this.view,t=n.queryScroll();this.freezeContentHeight();this.clearView();this.calcSize();this.renderView(n.type);this.view.applyScroll(t);this.thawContentHeight()},n.prototype.getSuggestedViewHeight=function(){return null==this.suggestedViewHeight&&this.calcSize(),this.suggestedViewHeight},n.prototype.isHeightAuto=function(){return"auto"===this.opt("contentHeight")||"auto"===this.opt("height")},n.prototype.updateViewSize=function(n){void 0===n&&(n=!1);var i,t=this.view;if(!this.ignoreUpdateViewSize&&t)return n&&(this.calcSize(),i=t.queryScroll()),this.ignoreUpdateViewSize++,t.updateSize(this.getSuggestedViewHeight(),this.isHeightAuto(),n),this.ignoreUpdateViewSize--,n&&t.applyScroll(i),!0},n.prototype.calcSize=function(){this.elementVisible()&&this._calcSize()},n.prototype._calcSize=function(){var t=this.opt("contentHeight"),n=this.opt("height");this.suggestedViewHeight="number"==typeof t?t:"function"==typeof t?t():"number"==typeof n?n-this.queryToolbarsHeight():"function"==typeof n?n()-this.queryToolbarsHeight():"parent"===n?this.el.parent().height()-this.queryToolbarsHeight():Math.round(this.contentEl.width()/Math.max(this.opt("aspectRatio"),.5))},n.prototype.windowResize=function(n){n.target===window&&this.view&&this.view.isDatesRendered&&this.updateViewSize(!0)&&this.publiclyTrigger("windowResize",[this.view])},n.prototype.freezeContentHeight=function(){this.freezeContentHeightDepth++||this.forceFreezeContentHeight()},n.prototype.forceFreezeContentHeight=function(){this.contentEl.css({width:"100%",height:this.contentEl.height(),overflow:"hidden"})},n.prototype.thawContentHeight=function(){this.freezeContentHeightDepth--;this.contentEl.css({width:"",height:"",overflow:""});this.freezeContentHeightDepth&&this.forceFreezeContentHeight()},n.prototype.initToolbars=function(){this.header=new l.default(this,this.computeHeaderOptions());this.footer=new l.default(this,this.computeFooterOptions());this.toolbarsManager=new y.default([this.header,this.footer])},n.prototype.computeHeaderOptions=function(){return{extraClasses:"fc-header-toolbar",layout:this.opt("header")}},n.prototype.computeFooterOptions=function(){return{extraClasses:"fc-footer-toolbar",layout:this.opt("footer")}},n.prototype.renderHeader=function(){var n=this.header;n.setToolbarOptions(this.computeHeaderOptions());n.render();n.el&&this.el.prepend(n.el)},n.prototype.renderFooter=function(){var n=this.footer;n.setToolbarOptions(this.computeFooterOptions());n.render();n.el&&this.el.append(n.el)},n.prototype.setToolbarsTitle=function(n){this.toolbarsManager.proxyCall("updateTitle",n)},n.prototype.updateToolbarButtons=function(n){var i=this.getNow(),t=this.view,r=t.dateProfileGenerator.build(i),u=t.dateProfileGenerator.buildPrev(t.get("dateProfile")),f=t.dateProfileGenerator.buildNext(t.get("dateProfile"));this.toolbarsManager.proxyCall(r.isValid&&!n.currentUnzonedRange.containsDate(i)?"enableButton":"disableButton","today");this.toolbarsManager.proxyCall(u.isValid?"enableButton":"disableButton","prev");this.toolbarsManager.proxyCall(f.isValid?"enableButton":"disableButton","next")},n.prototype.queryToolbarsHeight=function(){return this.toolbarsManager.items.reduce(function(n,t){return n+(t.el?t.el.outerHeight(!0):0)},0)},n.prototype.select=function(){this.view.select(this.buildSelectFootprint.apply(this,arguments))},n.prototype.unselect=function(){this.view&&this.view.unselect()},n.prototype.buildSelectFootprint=function(n,t){var r,i=this.moment(n).stripZone();return r=t?this.moment(t).stripZone():i.hasTime()?i.clone().add(this.defaultTimedEventDuration):i.clone().add(this.defaultAllDayEventDuration),new nt.default(new a.default(i,r),!i.hasTime())},n.prototype.initMomentInternals=function(){var n=this;this.defaultAllDayEventDuration=f.duration(this.opt("defaultAllDayEventDuration"));this.defaultTimedEventDuration=f.duration(this.opt("defaultTimedEventDuration"));this.optionsManager.watch("buildingMomentLocale",["?locale","?monthNames","?monthNamesShort","?dayNames","?dayNamesShort","?firstDay","?weekNumberCalculation"],function(t){var f,r=t.weekNumberCalculation,u=t.firstDay,i;"iso"===r&&(r="ISO");i=Object.create(g.getMomentLocaleData(t.locale));t.monthNames&&(i._months=t.monthNames);t.monthNamesShort&&(i._monthsShort=t.monthNamesShort);t.dayNames&&(i._weekdays=t.dayNames);t.dayNamesShort&&(i._weekdaysShort=t.dayNamesShort);null==u&&"ISO"===r&&(u=1);null!=u&&(f=Object.create(i._week),f.dow=u,i._week=f);"ISO"!==r&&"local"!==r&&"function"!=typeof r||(i._fullCalendar_weekCalc=r);n.localeData=i;n.currentDate&&n.localizeMoment(n.currentDate)})},n.prototype.moment=function(){for(var n,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return"local"===this.opt("timezone")?(n=u.default.apply(null,t),n.hasTime()&&n.local()):n="UTC"===this.opt("timezone")?u.default.utc.apply(null,t):u.default.parseZone.apply(null,t),this.localizeMoment(n),n},n.prototype.msToMoment=function(n,t){var i=u.default.utc(n);return t?i.stripTime():i=this.applyTimezone(i),this.localizeMoment(i),i},n.prototype.msToUtcMoment=function(n,t){var i=u.default.utc(n);return t&&i.stripTime(),this.localizeMoment(i),i},n.prototype.localizeMoment=function(n){n._locale=this.localeData},n.prototype.getIsAmbigTimezone=function(){return"local"!==this.opt("timezone")&&"UTC"!==this.opt("timezone")},n.prototype.applyTimezone=function(n){if(!n.hasTime())return n.clone();var i,t=this.moment(n.toArray()),r=n.time().asMilliseconds()-t.time().asMilliseconds();return r&&(i=t.clone().add(r),n.time().asMilliseconds()-i.time().asMilliseconds()==0&&(t=i)),t},n.prototype.footprintToDateProfile=function(n,t){void 0===t&&(t=!1);var i,r=u.default.utc(n.unzonedRange.startMs);return t||(i=u.default.utc(n.unzonedRange.endMs)),n.isAllDay?(r.stripTime(),i&&i.stripTime()):(r=this.applyTimezone(r),i&&(i=this.applyTimezone(i))),new tt.default(r,i,this)},n.prototype.getNow=function(){var n=this.opt("now");return"function"==typeof n&&(n=n()),this.moment(n).stripZone()},n.prototype.humanizeDuration=function(n){return n.locale(this.opt("locale")).humanize()},n.prototype.parseUnzonedRange=function(n){var t=null,i=null;return n.start&&(t=this.moment(n.start).stripZone()),n.end&&(i=this.moment(n.end).stripZone()),t||i?t&&i&&i.isBefore(t)?null:new a.default(t,i):null},n.prototype.initEventManager=function(){var t=this,n=new it.default(this),i=this.opt("eventSources")||[],r=this.opt("events");this.eventManager=n;r&&i.unshift(r);n.on("release",function(n){t.trigger("eventsReset",n)});n.freeze();i.forEach(function(i){var r=v.default.parse(i,t);r&&n.addSource(r)});n.thaw()},n.prototype.requestEvents=function(n,t){return this.eventManager.requestEvents(n,t,this.opt("timezone"),!this.opt("lazyFetching"))},n.prototype.getEventEnd=function(n){return n.end?n.end.clone():this.getDefaultEventEnd(n.allDay,n.start)},n.prototype.getDefaultEventEnd=function(n,t){var i=t.clone();return n?i.stripTime().add(this.defaultAllDayEventDuration):i.add(this.defaultTimedEventDuration),this.getIsAmbigTimezone()&&i.stripZone(),i},n.prototype.rerenderEvents=function(){this.view.flash("displayingEvents")},n.prototype.refetchEvents=function(){this.eventManager.refetchAllSources()},n.prototype.renderEvents=function(n,t){this.eventManager.freeze();for(var i=0;i<n.length;i++)this.renderEvent(n[i],t);this.eventManager.thaw()},n.prototype.renderEvent=function(n,t){void 0===t&&(t=!1);var i=this.eventManager,r=ut.default.parse(n,n.source||i.stickySource);r&&i.addEventDef(r,t)},n.prototype.removeEvents=function(n){var u,t,i=this.eventManager,r=[],f={};if(null==n)i.removeAllEventDefs();else{for(i.getEventInstances().forEach(function(n){r.push(n.toLegacy())}),r=s(r,n),t=0;t<r.length;t++)u=this.eventManager.getEventDefByUid(r[t]._id),f[u.id]=!0;i.freeze();for(t in f)i.removeEventDefsById(t);i.thaw()}},n.prototype.clientEvents=function(n){var t=[];return this.eventManager.getEventInstances().forEach(function(n){t.push(n.toLegacy())}),s(t,n)},n.prototype.updateEvents=function(n){this.eventManager.freeze();for(var t=0;t<n.length;t++)this.updateEvent(n[t]);this.eventManager.thaw()},n.prototype.updateEvent=function(n){var i,r,t=this.eventManager.getEventDefByUid(n._id);t instanceof ft.default&&(i=t.buildInstance(),r=et.default.createFromRawProps(i,n,null),this.eventManager.mutateEventsWithId(t.id,r))},n.prototype.getEventSources=function(){return this.eventManager.otherSources.slice()},n.prototype.getEventSourceById=function(n){return this.eventManager.getSourceById(ot.default.normalizeId(n))},n.prototype.addEventSource=function(n){var t=v.default.parse(n,this);t&&this.eventManager.addSource(t)},n.prototype.removeEventSources=function(n){var r,t,i=this.eventManager;if(null==n)this.eventManager.removeAllSources();else{for(r=i.multiQuerySources(n),i.freeze(),t=0;t<r.length;t++)i.removeSource(r[t]);i.thaw()}},n.prototype.removeEventSource=function(n){var t,i=this.eventManager,r=i.querySources(n);for(i.freeze(),t=0;t<r.length;t++)i.removeSource(r[t]);i.thaw()},n.prototype.refetchEventSources=function(n){var t,i=this.eventManager,r=i.multiQuerySources(n);for(i.freeze(),t=0;t<r.length;t++)i.refetchSource(r[t]);i.thaw()},n.defaults=e.globalDefaults,n.englishDefaults=e.englishDefaults,n.rtlDefaults=e.rtlDefaults,n}();t.default=o;p.default.mixInto(o);w.default.mixInto(o)},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(0),f=i(4),u=i(5),e=function(){function n(n){this._view=n}return n.prototype.opt=function(n){return this._view.opt(n)},n.prototype.trimHiddenDays=function(n){return this._view.trimHiddenDays(n)},n.prototype.msToUtcMoment=function(n,t){return this._view.calendar.msToUtcMoment(n,t)},n.prototype.buildPrev=function(n){var t=n.date.clone().startOf(n.currentRangeUnit).subtract(n.dateIncrement);return this.build(t,-1)},n.prototype.buildNext=function(n){var t=n.date.clone().startOf(n.currentRangeUnit).add(n.dateIncrement);return this.build(t,1)},n.prototype.build=function(n,t,i){void 0===i&&(i=!1);var e,f,s,o,u,l,a=!n.hasTime(),h=null,c=null;return e=this.buildValidRange(),e=this.trimHiddenDays(e),i&&(n=this.msToUtcMoment(e.constrainDate(n),a)),f=this.buildCurrentRangeInfo(n,t),s=/^(year|month|week|day)$/.test(f.unit),o=this.buildRenderRange(this.trimHiddenDays(f.unzonedRange),f.unit,s),o=this.trimHiddenDays(o),u=o.clone(),this.opt("showNonCurrentDates")||(u=u.intersect(f.unzonedRange)),h=r.duration(this.opt("minTime")),c=r.duration(this.opt("maxTime")),u=this.adjustActiveRange(u,h,c),u=u.intersect(e),u&&(n=this.msToUtcMoment(u.constrainDate(n),a)),l=f.unzonedRange.intersectsWith(e),{validUnzonedRange:e,currentUnzonedRange:f.unzonedRange,currentRangeUnit:f.unit,isRangeAllDay:s,activeUnzonedRange:u,renderUnzonedRange:o,minTime:h,maxTime:c,isValid:l,date:n,dateIncrement:this.buildDateIncrement(f.duration)}},n.prototype.buildValidRange=function(){return this._view.getUnzonedRangeOption("validRange",this._view.calendar.getNow())||new u.default},n.prototype.buildCurrentRangeInfo=function(n,t){var o,e=this._view.viewSpec,u=null,i=null,r=null;return e.duration?(u=e.duration,i=e.durationUnit,r=this.buildRangeFromDuration(n,t,u,i)):(o=this.opt("dayCount"))?(i="day",r=this.buildRangeFromDayCount(n,t,o)):(r=this.buildCustomVisibleRange(n))?i=f.computeGreatestUnit(r.getStart(),r.getEnd()):(u=this.getFallbackDuration(),i=f.computeGreatestUnit(u),r=this.buildRangeFromDuration(n,t,u,i)),{duration:u,unit:i,unzonedRange:r}},n.prototype.getFallbackDuration=function(){return r.duration({days:1})},n.prototype.adjustActiveRange=function(n,t,i){var r=n.getStart(),f=n.getEnd();return this._view.usesMinMaxTime&&(t<0&&r.time(0).add(t),i>864e5&&f.time(i-864e5)),new u.default(r,f)},n.prototype.buildRangeFromDuration=function(n,t,i,e){function a(){o=n.clone().startOf(h);v=o.clone().add(i);l=new u.default(o,v)}var s,c,o,v,l,h=this.opt("dateAlignment");return h||(s=this.opt("dateIncrement"),s?(c=r.duration(s),h=c<i?f.computeDurationGreatestUnit(c,s):e):h=e),i.as("days")<=1&&this._view.isHiddenDay(o)&&(o=this._view.skipHiddenDays(o,t),o.startOf("day")),a(),this.trimHiddenDays(l)||(n=this._view.skipHiddenDays(n,t),a()),l},n.prototype.buildRangeFromDayCount=function(n,t,i){var f,e=this.opt("dateAlignment"),o=0,r=n.clone();e&&r.startOf(e);r.startOf("day");r=this._view.skipHiddenDays(r,t);f=r.clone();do f.add(1,"day"),this._view.isHiddenDay(f)||o++;while(o<i);return new u.default(r,f)},n.prototype.buildCustomVisibleRange=function(n){var t=this._view.getUnzonedRangeOption("visibleRange",this._view.calendar.applyTimezone(n));return!t||null!=t.startMs&&null!=t.endMs?t:null},n.prototype.buildRenderRange=function(n){return n.clone()},n.prototype.buildDateIncrement=function(n){var t,i=this.opt("dateIncrement");return i?r.duration(i):(t=this.opt("dateAlignment"))?r.duration(1,t):n||r.duration({days:1})},n}();t.default=e},function(n,t,i){function s(n){var t,i,e,s,o=f.dataAttrPrefix;return o&&(o+="-"),t=n.data(o+"event")||null,t&&(t="object"==typeof t?r.extend({},t):{},i=t.start,null==i&&(i=t.time),e=t.duration,s=t.stick,delete t.start,delete t.time,delete t.duration,delete t.stick),null==i&&(i=n.data(o+"start")),null==i&&(i=n.data(o+"time")),null==e&&(e=n.data(o+"duration")),null==s&&(s=n.data(o+"stick")),i=null!=i?u.duration(i):null,e=null!=e?u.duration(e):null,s=Boolean(s),{eventProps:t,startTime:i,duration:e,stick:s}}Object.defineProperty(t,"__esModule",{value:!0});var h=i(2),r=i(3),u=i(0),f=i(16),e=i(4),c=i(10),l=i(7),a=i(23),v=i(13),y=i(18),p=i(6),w=i(15),o=function(n){function t(){var t=null!==n&&n.apply(this,arguments)||this;return t.isDragging=!1,t}return h.__extends(t,n),t.prototype.end=function(){this.dragListener&&this.dragListener.endInteraction()},t.prototype.bindToDocument=function(){this.listenTo(r(document),{dragstart:this.handleDragStart,sortstart:this.handleDragStart})},t.prototype.unbindFromDocument=function(){this.stopListeningTo(r(document))},t.prototype.handleDragStart=function(n,t){var i,u;this.opt("droppable")&&(i=r((t?t.item:null)||n.target),u=this.opt("dropAccept"),(r.isFunction(u)?u.call(i[0],i):i.is(u))&&(this.isDragging||this.listenToExternalDrag(i,n,t)))},t.prototype.listenToExternalDrag=function(n,t,i){var r,f=this,u=this.component,h=this.view,o=s(n);(this.dragListener=new a.default(u,{interactionStart:function(){f.isDragging=!0},hitOver:function(n){var t,i=!0,s=n.component.getSafeHitFootprint(n);s?(r=f.computeExternalDrop(s,o),r?(t=new y.default(r.buildInstances()),i=o.eventProps?u.isEventInstanceGroupAllowed(t):u.isExternalInstanceGroupAllowed(t)):i=!1):i=!1;i||(r=null,e.disableCursor());r&&u.renderDrag(u.eventRangesToEventFootprints(t.sliceRenderRanges(u.dateProfile.renderUnzonedRange,h.calendar)))},hitOut:function(){r=null},hitDone:function(){e.enableCursor();u.unrenderDrag()},interactionEnd:function(t){r&&h.reportExternalDrop(r,Boolean(o.eventProps),Boolean(o.stick),n,t,i);f.isDragging=!1;f.dragListener=null}})).startDrag(t)},t.prototype.computeExternalDrop=function(n,t){var u,f=this.view.calendar,i=c.default.utc(n.unzonedRange.startMs).stripZone();return n.isAllDay&&(t.startTime?i.time(t.startTime):i.stripTime()),t.duration&&(u=i.clone().add(t.duration)),i=f.applyTimezone(i),u&&(u=f.applyTimezone(u)),v.default.parse(r.extend({},t.eventProps,{start:i,end:u}),new p.default(f))},t}(w.default);t.default=o;l.default.mixInto(o);f.dataAttrPrefix=""},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var o=i(2),r=i(3),u=i(4),f=i(37),e=i(50),s=i(23),h=i(15),c=function(n){function t(t,i){var r=n.call(this,t)||this;return r.isResizing=!1,r.eventPointing=i,r}return o.__extends(t,n),t.prototype.end=function(){this.dragListener&&this.dragListener.endInteraction()},t.prototype.bindToEl=function(n){var t=this.component;t.bindSegHandlerToEl(n,"mousedown",this.handleMouseDown.bind(this));t.bindSegHandlerToEl(n,"touchstart",this.handleTouchStart.bind(this))},t.prototype.handleMouseDown=function(n,t){this.component.canStartResize(n,t)&&this.buildDragListener(n,r(t.target).is(".fc-start-resizer")).startInteraction(t,{distance:5})},t.prototype.handleTouchStart=function(n,t){this.component.canStartResize(n,t)&&this.buildDragListener(n,r(t.target).is(".fc-start-resizer")).startInteraction(t)},t.prototype.buildDragListener=function(n,t){var o,i,r=this,f=this.component,e=this.view,h=e.calendar,l=h.eventManager,c=n.el,a=n.footprint.eventDef,v=n.footprint.eventInstance;return this.dragListener=new s.default(f,{scroll:this.opt("dragScroll"),subjectEl:c,interactionStart:function(){o=!1},dragStart:function(t){o=!0;r.eventPointing.handleMouseout(n,t);r.segResizeStart(n,t)},hitOver:function(o,s,c){var y,v=!0,p=f.getSafeHitFootprint(c),w=f.getSafeHitFootprint(o);p&&w?(i=t?r.computeEventStartResizeMutation(p,w,n.footprint):r.computeEventEndResizeMutation(p,w,n.footprint),i?(y=l.buildMutatedEventInstanceGroup(a.id,i),v=f.isEventInstanceGroupAllowed(y)):v=!1):v=!1;v?i.isEmpty()&&(i=null):(i=null,u.disableCursor());i&&(e.hideEventsWithId(n.footprint.eventDef.id),e.renderEventResize(f.eventRangesToEventFootprints(y.sliceRenderRanges(f.dateProfile.renderUnzonedRange,h)),n))},hitOut:function(){i=null},hitDone:function(){e.unrenderEventResize(n);e.showEventsWithId(n.footprint.eventDef.id);u.enableCursor()},interactionEnd:function(t){o&&r.segResizeStop(n,t);i&&e.reportEventResize(v,i,c,t);r.dragListener=null}})},t.prototype.segResizeStart=function(n,t){this.isResizing=!0;this.component.publiclyTrigger("eventResizeStart",{context:n.el[0],args:[n.footprint.getEventLegacy(),t,{},this.view]})},t.prototype.segResizeStop=function(n,t){this.isResizing=!1;this.component.publiclyTrigger("eventResizeStop",{context:n.el[0],args:[n.footprint.getEventLegacy(),t,{},this.view]})},t.prototype.computeEventStartResizeMutation=function(n,t,i){var r,u,o=i.componentFootprint.unzonedRange,s=this.component.diffDates(t.unzonedRange.getStart(),n.unzonedRange.getStart());return o.getStart().add(s)<o.getEnd()&&(r=new e.default,r.setStartDelta(s),u=new f.default,u.setDateMutation(r),u)},t.prototype.computeEventEndResizeMutation=function(n,t,i){var r,u,o=i.componentFootprint.unzonedRange,s=this.component.diffDates(t.unzonedRange.getEnd(),n.unzonedRange.getEnd());return o.getEnd().add(s)>o.getStart()&&(r=new e.default,r.setEndDelta(s),u=new f.default,u.setDateMutation(r),u)},t}(h.default);t.default=c},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var u=i(2),r=i(4),f=i(37),e=i(50),o=i(54),s=i(23),h=i(244),c=i(15),l=function(n){function t(t,i){var r=n.call(this,t)||this;return r.isDragging=!1,r.eventPointing=i,r}return u.__extends(t,n),t.prototype.end=function(){this.dragListener&&this.dragListener.endInteraction()},t.prototype.getSelectionDelay=function(){var n=this.opt("eventLongPressDelay");return null==n&&(n=this.opt("longPressDelay")),n},t.prototype.bindToEl=function(n){var t=this.component;t.bindSegHandlerToEl(n,"mousedown",this.handleMousedown.bind(this));t.bindSegHandlerToEl(n,"touchstart",this.handleTouchStart.bind(this))},t.prototype.handleMousedown=function(n,t){!this.component.shouldIgnoreMouse()&&this.component.canStartDrag(n,t)&&this.buildDragListener(n).startInteraction(t,{distance:5})},t.prototype.handleTouchStart=function(n,t){var i=this.component,r={delay:this.view.isEventDefSelected(n.footprint.eventDef)?0:this.getSelectionDelay()};i.canStartDrag(n,t)?this.buildDragListener(n).startInteraction(t,r):i.canStartSelection(n,t)&&this.buildSelectListener(n).startInteraction(t,r)},t.prototype.buildSelectListener=function(n){var u=this,t=this.view,f=n.footprint.eventDef,i=n.footprint.eventInstance,r;return this.dragListener?this.dragListener:r=this.dragListener=new o.default({dragStart:function(){r.isTouch&&!t.isEventDefSelected(f)&&i&&t.selectEventInstance(i)},interactionEnd:function(){u.dragListener=null}})},t.prototype.buildDragListener=function(n){var c,u,i,f=this,e=this.component,t=this.view,v=t.calendar,p=v.eventManager,y=n.el,l=n.footprint.eventDef,a=n.footprint.eventInstance,o;return this.dragListener?this.dragListener:o=this.dragListener=new s.default(t,{scroll:this.opt("dragScroll"),subjectEl:y,subjectCenter:!0,interactionStart:function(i){n.component=e;c=!1;u=new h.default(n.el,{additionalClass:"fc-dragging",parentEl:t.el,opacity:o.isTouch?null:f.opt("dragOpacity"),revertDuration:f.opt("dragRevertDuration"),zIndex:2});u.hide();u.start(i)},dragStart:function(i){o.isTouch&&!t.isEventDefSelected(l)&&a&&t.selectEventInstance(a);c=!0;f.eventPointing.handleMouseout(n,i);f.segDragStart(n,i);t.hideEventsWithId(n.footprint.eventDef.id)},hitOver:function(s,h,c){var y,w,b,a=!0;n.hit&&(c=n.hit);y=c.component.getSafeHitFootprint(c);w=s.component.getSafeHitFootprint(s);y&&w?(i=f.computeEventDropMutation(y,w,l),i?(b=p.buildMutatedEventInstanceGroup(l.id,i),a=e.isEventInstanceGroupAllowed(b)):a=!1):a=!1;a||(i=null,r.disableCursor());i&&t.renderDrag(e.eventRangesToEventFootprints(b.sliceRenderRanges(e.dateProfile.renderUnzonedRange,v)),n,o.isTouch)?u.hide():u.show();h&&(i=null)},hitOut:function(){t.unrenderDrag(n);u.show();i=null},hitDone:function(){r.enableCursor()},interactionEnd:function(r){delete n.component;u.stop(!i,function(){c&&(t.unrenderDrag(n),f.segDragStop(n,r));t.showEventsWithId(n.footprint.eventDef.id);i&&t.reportEventDrop(a,i,y,r)});f.dragListener=null}})},t.prototype.segDragStart=function(n,t){this.isDragging=!0;this.component.publiclyTrigger("eventDragStart",{context:n.el[0],args:[n.footprint.getEventLegacy(),t,{},this.view]})},t.prototype.segDragStop=function(n,t){this.isDragging=!1;this.component.publiclyTrigger("eventDragStop",{context:n.el[0],args:[n.footprint.getEventLegacy(),t,{},this.view]})},t.prototype.computeEventDropMutation=function(n,t){var i=new f.default;return i.setDateMutation(this.computeEventDateMutation(n,t)),i},t.prototype.computeEventDateMutation=function(n,t){var r,i,u=n.unzonedRange.getStart(),h=t.unzonedRange.getStart(),f=!1,o=!1,s=!1;return n.isAllDay!==t.isAllDay&&(f=!0,t.isAllDay?(s=!0,u.stripTime()):o=!0),r=this.component.diffDates(h,u),i=new e.default,i.clearEnd=f,i.forceTimed=o,i.forceAllDay=s,i.setDateDelta(r),i},t}(c.default);t.default=l},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var u=i(2),r=i(4),f=i(23),e=i(12),o=i(5),s=i(15),h=function(n){function t(t){var i=n.call(this,t)||this;return i.dragListener=i.buildDragListener(),i}return u.__extends(t,n),t.prototype.end=function(){this.dragListener.endInteraction()},t.prototype.getDelay=function(){var n=this.opt("selectLongPressDelay");return null==n&&(n=this.opt("longPressDelay")),n},t.prototype.bindToEl=function(n){var t=this,i=this.component,u=this.dragListener;i.bindDateHandlerToEl(n,"mousedown",function(n){t.opt("selectable")&&!i.shouldIgnoreMouse()&&u.startInteraction(n,{distance:t.opt("selectMinDistance")})});i.bindDateHandlerToEl(n,"touchstart",function(n){t.opt("selectable")&&!i.shouldIgnoreTouch()&&u.startInteraction(n,{delay:t.getDelay()})});r.preventSelection(n)},t.prototype.buildDragListener=function(){var n,i=this,t=this.component;return new f.default(t,{scroll:this.opt("dragScroll"),interactionStart:function(){n=null},dragStart:function(n){i.view.unselect(n)},hitOver:function(u,f,e){var o,s;e&&(o=t.getSafeHitFootprint(e),s=t.getSafeHitFootprint(u),n=o&&s?i.computeSelection(o,s):null,n?t.renderSelectionFootprint(n):!1===n&&r.disableCursor())},hitOut:function(){n=null;t.unrenderSelection()},hitDone:function(){r.enableCursor()},interactionEnd:function(t,r){!r&&n&&i.view.reportSelection(n,t)}})},t.prototype.computeSelection=function(n,t){var i=this.computeSelectionFootprint(n,t);return!(i&&!this.isSelectionFootprintAllowed(i))&&i},t.prototype.computeSelectionFootprint=function(n,t){var i=[n.unzonedRange.startMs,n.unzonedRange.endMs,t.unzonedRange.startMs,t.unzonedRange.endMs];return i.sort(r.compareNumbers),new e.default(new o.default(i[0],i[3]),n.isAllDay)},t.prototype.isSelectionFootprintAllowed=function(n){return this.component.dateProfile.validUnzonedRange.containsRange(n.unzonedRange)&&this.view.calendar.constraints.isSelectionFootprintAllowed(n)},t}(s.default);t.default=h},function(n,t,i){function f(n){for(var i=[],r=[],t=0;t<n.length;t++)n[t].componentFootprint.isAllDay?i.push(n[t]):r.push(n[t]);return{allDay:i,timed:r}}Object.defineProperty(t,"__esModule",{value:!0});var e,o,s=i(2),h=i(0),c=i(3),r=i(4),l=i(39),a=i(41),v=i(227),y=i(61),u=function(n){function t(t,i){var r=n.call(this,t,i)||this;return r.usesMinMaxTime=!0,r.timeGrid=r.instantiateTimeGrid(),r.addChild(r.timeGrid),r.opt("allDaySlot")&&(r.dayGrid=r.instantiateDayGrid(),r.addChild(r.dayGrid)),r.scroller=new l.default({overflowX:"hidden",overflowY:"auto"}),r}return s.__extends(t,n),t.prototype.instantiateTimeGrid=function(){var n=new this.timeGridClass(this);return r.copyOwnProps(e,n),n},t.prototype.instantiateDayGrid=function(){var n=new this.dayGridClass(this);return r.copyOwnProps(o,n),n},t.prototype.renderSkeleton=function(){var n,t;this.el.addClass("fc-agenda-view").html(this.renderSkeletonHtml());this.scroller.render();n=this.scroller.el.addClass("fc-time-grid-container");t=c('<div class="fc-time-grid" />').appendTo(n);this.el.find(".fc-body > tr > td").append(n);this.timeGrid.headContainerEl=this.el.find(".fc-head-container");this.timeGrid.setElement(t);this.dayGrid&&(this.dayGrid.setElement(this.el.find(".fc-day-grid")),this.dayGrid.bottomCoordPadding=this.dayGrid.el.next("hr").outerHeight())},t.prototype.unrenderSkeleton=function(){this.timeGrid.removeElement();this.dayGrid&&this.dayGrid.removeElement();this.scroller.destroy()},t.prototype.renderSkeletonHtml=function(){var n=this.calendar.theme;return'<table class="'+n.getClass("tableGrid")+'">'+(this.opt("columnHeader")?'<thead class="fc-head"><tr><td class="fc-head-container '+n.getClass("widgetHeader")+'">&nbsp;<\/td><\/tr><\/thead>':"")+'<tbody class="fc-body"><tr><td class="'+n.getClass("widgetContent")+'">'+(this.dayGrid?'<div class="fc-day-grid"/><hr class="fc-divider '+n.getClass("widgetHeader")+'"/>':"")+"<\/td><\/tr><\/tbody><\/table>"},t.prototype.axisStyleAttr=function(){return null!=this.axisWidth?'style="width:'+this.axisWidth+'px"':""},t.prototype.getNowIndicatorUnit=function(){return this.timeGrid.getNowIndicatorUnit()},t.prototype.updateSize=function(t,i,u){var e,f,o,s;if(n.prototype.updateSize.call(this,t,i,u),this.axisWidth=r.matchCellWidths(this.el.find(".fc-axis")),!this.timeGrid.colEls)return void(i||(f=this.computeScrollerHeight(t),this.scroller.setHeight(f)));s=this.el.find(".fc-row:not(.fc-scroller *)");this.timeGrid.bottomRuleEl.hide();this.scroller.clear();r.uncompensateScroll(s);this.dayGrid&&(this.dayGrid.removeSegPopover(),e=this.opt("eventLimit"),e&&"number"!=typeof e&&(e=5),e&&this.dayGrid.limitRows(e));i||(f=this.computeScrollerHeight(t),this.scroller.setHeight(f),o=this.scroller.getScrollbarWidths(),(o.left||o.right)&&(r.compensateScroll(s,o),f=this.computeScrollerHeight(t),this.scroller.setHeight(f)),this.scroller.lockOverflow(o),this.timeGrid.getTotalSlatHeight()<f&&this.timeGrid.bottomRuleEl.show())},t.prototype.computeScrollerHeight=function(n){return n-r.subtractInnerElHeight(this.el,this.scroller.el)},t.prototype.computeInitialDateScroll=function(){var t=h.duration(this.opt("scrollTime")),n=this.timeGrid.computeTimeTop(t);return n=Math.ceil(n),n&&n++,{top:n}},t.prototype.queryDateScroll=function(){return{top:this.scroller.getScrollTop()}},t.prototype.applyDateScroll=function(n){void 0!==n.top&&this.scroller.setScrollTop(n.top)},t.prototype.getHitFootprint=function(n){return n.component.getHitFootprint(n)},t.prototype.getHitEl=function(n){return n.component.getHitEl(n)},t.prototype.executeEventRender=function(n){var t,i,r={},u={};for(t in n)i=n[t],i.getEventDef().isAllDay()?r[t]=i:u[t]=i;this.timeGrid.executeEventRender(u);this.dayGrid&&this.dayGrid.executeEventRender(r)},t.prototype.renderDrag=function(n,t,i){var u=f(n),r=!1;return r=this.timeGrid.renderDrag(u.timed,t,i),this.dayGrid&&(r=this.dayGrid.renderDrag(u.allDay,t,i)||r),r},t.prototype.renderEventResize=function(n,t,i){var r=f(n);this.timeGrid.renderEventResize(r.timed,t,i);this.dayGrid&&this.dayGrid.renderEventResize(r.allDay,t,i)},t.prototype.renderSelectionFootprint=function(n){n.isAllDay?this.dayGrid&&this.dayGrid.renderSelectionFootprint(n):this.timeGrid.renderSelectionFootprint(n)},t}(a.default);t.default=u;u.prototype.timeGridClass=v.default;u.prototype.dayGridClass=y.default;e={renderHeadIntroHtml:function(){var i,n=this.view,t=n.calendar,u=t.msToUtcMoment(this.dateProfile.renderUnzonedRange.startMs,!0);return this.opt("weekNumbers")?(i=u.format(this.opt("smallWeekFormat")),'<th class="fc-axis fc-week-number '+t.theme.getClass("widgetHeader")+'" '+n.axisStyleAttr()+">"+n.buildGotoAnchorHtml({date:u,type:"week",forceOff:this.colCnt>1},r.htmlEscape(i))+"<\/th>"):'<th class="fc-axis '+t.theme.getClass("widgetHeader")+'" '+n.axisStyleAttr()+"><\/th>"},renderBgIntroHtml:function(){var n=this.view;return'<td class="fc-axis '+n.calendar.theme.getClass("widgetContent")+'" '+n.axisStyleAttr()+"><\/td>"},renderIntroHtml:function(){return'<td class="fc-axis" '+this.view.axisStyleAttr()+"><\/td>"}};o={renderBgIntroHtml:function(){var n=this.view;return'<td class="fc-axis '+n.calendar.theme.getClass("widgetContent")+'" '+n.axisStyleAttr()+"><span>"+n.getAllDayHtml()+"<\/span><\/td>"},renderIntroHtml:function(){return'<td class="fc-axis" '+this.view.axisStyleAttr()+"><\/td>"}}},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var l=i(2),f=i(3),r=i(0),e=i(4),a=i(40),v=i(56),y=i(60),p=i(55),s=i(53),o=i(5),h=i(12),w=i(246),b=i(247),k=i(248),c=[{hours:1},{minutes:30},{minutes:15},{seconds:30},{seconds:15}],u=function(n){function t(t){var i=n.call(this,t)||this;return i.processOptions(),i}return l.__extends(t,n),t.prototype.componentFootprintToSegs=function(n){for(var i=this.sliceRangeByTimes(n.unzonedRange),t=0;t<i.length;t++)i[t].col=this.isRTL?this.daysPerRow-1-i[t].dayIndex:i[t].dayIndex;return i},t.prototype.sliceRangeByTimes=function(n){for(var t,r=[],i=0;i<this.daysPerRow;i++)(t=n.intersect(this.dayRanges[i]))&&r.push({startMs:t.startMs,endMs:t.endMs,isStart:t.isStart,isEnd:t.isEnd,dayIndex:i});return r},t.prototype.processOptions=function(){var n,t=this.opt("slotDuration"),i=this.opt("snapDuration");t=r.duration(t);i=i?r.duration(i):t;this.slotDuration=t;this.snapDuration=i;this.snapsPerSlot=t/i;n=this.opt("slotLabelFormat");f.isArray(n)&&(n=n[n.length-1]);this.labelFormat=n||this.opt("smallTimeFormat");n=this.opt("slotLabelInterval");this.labelInterval=n?r.duration(n):this.computeLabelInterval(t)},t.prototype.computeLabelInterval=function(n){for(var i,u,t=c.length-1;t>=0;t--)if(i=r.duration(c[t]),u=e.divideDurationByDuration(i,n),e.isInt(u)&&u>1)return i;return r.duration(n)},t.prototype.renderDates=function(n){this.dateProfile=n;this.updateDayTable();this.renderSlats();this.renderColumns()},t.prototype.unrenderDates=function(){this.unrenderColumns()},t.prototype.renderSkeleton=function(){var n=this.view.calendar.theme;this.el.html('<div class="fc-bg"><\/div><div class="fc-slats"><\/div><hr class="fc-divider '+n.getClass("widgetHeader")+'" style="display:none" />');this.bottomRuleEl=this.el.find("hr")},t.prototype.renderSlats=function(){var n=this.view.calendar.theme;this.slatContainerEl=this.el.find("> .fc-slats").html('<table class="'+n.getClass("tableGrid")+'">'+this.renderSlatRowHtml()+"<\/table>");this.slatEls=this.slatContainerEl.find("tr");this.slatCoordCache=new s.default({els:this.slatEls,isVertical:!0})},t.prototype.renderSlatRowHtml=function(){for(var n,t,i,o=this.view,s=o.calendar,h=s.theme,c=this.isRTL,u=this.dateProfile,l="",f=r.duration(+u.minTime),a=r.duration(0);f<u.maxTime;)n=s.msToUtcMoment(u.renderUnzonedRange.startMs).time(f),t=e.isInt(e.divideDurationByDuration(a,this.labelInterval)),i='<td class="fc-axis fc-time '+h.getClass("widgetContent")+'" '+o.axisStyleAttr()+">"+(t?"<span>"+e.htmlEscape(n.format(this.labelFormat))+"<\/span>":"")+"<\/td>",l+='<tr data-time="'+n.format("HH:mm:ss")+'"'+(t?"":' class="fc-minor"')+">"+(c?"":i)+'<td class="'+h.getClass("widgetContent")+'"/>'+(c?i:"")+"<\/tr>",f.add(this.slotDuration),a.add(this.slotDuration);return l},t.prototype.renderColumns=function(){var n=this.dateProfile,t=this.view.calendar.theme;this.dayRanges=this.dayDates.map(function(t){return new o.default(t.clone().add(n.minTime),t.clone().add(n.maxTime))});this.headContainerEl&&this.headContainerEl.html(this.renderHeadHtml());this.el.find("> .fc-bg").html('<table class="'+t.getClass("tableGrid")+'">'+this.renderBgTrHtml(0)+"<\/table>");this.colEls=this.el.find(".fc-day, .fc-disabled-day");this.colCoordCache=new s.default({els:this.colEls,isHorizontal:!0});this.renderContentSkeleton()},t.prototype.unrenderColumns=function(){this.unrenderContentSkeleton()},t.prototype.renderContentSkeleton=function(){for(var n,i="",t=0;t<this.colCnt;t++)i+='<td><div class="fc-content-col"><div class="fc-event-container fc-helper-container"><\/div><div class="fc-event-container"><\/div><div class="fc-highlight-container"><\/div><div class="fc-bgevent-container"><\/div><div class="fc-business-container"><\/div><\/div><\/td>';n=this.contentSkeletonEl=f('<div class="fc-content-skeleton"><table><tr>'+i+"<\/tr><\/table><\/div>");this.colContainerEls=n.find(".fc-content-col");this.helperContainerEls=n.find(".fc-helper-container");this.fgContainerEls=n.find(".fc-event-container:not(.fc-helper-container)");this.bgContainerEls=n.find(".fc-bgevent-container");this.highlightContainerEls=n.find(".fc-highlight-container");this.businessContainerEls=n.find(".fc-business-container");this.bookendCells(n.find("tr"));this.el.append(n)},t.prototype.unrenderContentSkeleton=function(){this.contentSkeletonEl&&(this.contentSkeletonEl.remove(),this.contentSkeletonEl=null,this.colContainerEls=null,this.helperContainerEls=null,this.fgContainerEls=null,this.bgContainerEls=null,this.highlightContainerEls=null,this.businessContainerEls=null)},t.prototype.groupSegsByCol=function(n){for(var i=[],t=0;t<this.colCnt;t++)i.push([]);for(t=0;t<n.length;t++)i[n[t].col].push(n[t]);return i},t.prototype.attachSegsByCol=function(n,t){for(var u,r,i=0;i<this.colCnt;i++)for(u=n[i],r=0;r<u.length;r++)t.eq(i).append(u[r].el)},t.prototype.getNowIndicatorUnit=function(){return"minute"},t.prototype.renderNowIndicator=function(n){if(this.colContainerEls){for(var i=this.componentFootprintToSegs(new h.default(new o.default(n,n.valueOf()+1),!1)),u=this.computeDateTop(n,n),r=[],t=0;t<i.length;t++)r.push(f('<div class="fc-now-indicator fc-now-indicator-line"><\/div>').css("top",u).appendTo(this.colContainerEls.eq(i[t].col))[0]);i.length>0&&r.push(f('<div class="fc-now-indicator fc-now-indicator-arrow"><\/div>').css("top",u).appendTo(this.el.find(".fc-content-skeleton"))[0]);this.nowIndicatorEls=f(r)}},t.prototype.unrenderNowIndicator=function(){this.nowIndicatorEls&&(this.nowIndicatorEls.remove(),this.nowIndicatorEls=null)},t.prototype.updateSize=function(t,i,r){n.prototype.updateSize.call(this,t,i,r);this.slatCoordCache.build();r&&this.updateSegVerticals([].concat(this.eventRenderer.getSegs(),this.businessSegs||[]))},t.prototype.getTotalSlatHeight=function(){return this.slatContainerEl.outerHeight()},t.prototype.computeDateTop=function(n,t){return this.computeTimeTop(r.duration(n-t.clone().stripTime()))},t.prototype.computeTimeTop=function(n){var t,r,u=this.slatEls.length,f=this.dateProfile,i=(n-f.minTime)/this.slotDuration;return i=Math.max(0,i),i=Math.min(u,i),t=Math.floor(i),t=Math.min(t,u-1),r=i-t,this.slatCoordCache.getTopPosition(t)+this.slatCoordCache.getHeight(t)*r},t.prototype.updateSegVerticals=function(n){this.computeSegVerticals(n);this.assignSegVerticals(n)},t.prototype.computeSegVerticals=function(n){for(var t,r,u=this.opt("agendaEventMinHeight"),i=0;i<n.length;i++)t=n[i],r=this.dayDates[t.dayIndex],t.top=this.computeDateTop(t.startMs,r),t.bottom=Math.max(t.top+u,this.computeDateTop(t.endMs,r))},t.prototype.assignSegVerticals=function(n){for(var i,t=0;t<n.length;t++)i=n[t],i.el.css(this.generateSegVerticalCss(i))},t.prototype.generateSegVerticalCss=function(n){return{top:n.top,bottom:-n.bottom}},t.prototype.prepareHits=function(){this.colCoordCache.build();this.slatCoordCache.build()},t.prototype.releaseHits=function(){this.colCoordCache.clear()},t.prototype.queryHit=function(n,t){var u=this.snapsPerSlot,f=this.colCoordCache,e=this.slatCoordCache,i,r;if(f.isLeftInBounds(n)&&e.isTopInBounds(t)&&(i=f.getHorizontalIndex(n),r=e.getVerticalIndex(t),null!=i&&null!=r)){var o=e.getTopOffset(r),s=e.getHeight(r),c=(t-o)/s,h=Math.floor(c*u),l=r*u+h,a=o+h/u*s,v=o+(h+1)/u*s;return{col:i,snap:l,component:this,left:f.getLeftOffset(i),right:f.getRightOffset(i),top:a,bottom:v}}},t.prototype.getHitFootprint=function(n){var i,t=this.getCellDate(0,n.col),r=this.computeSnapTime(n.snap);return t.time(r),i=t.clone().add(this.snapDuration),new h.default(new o.default(t,i),!1)},t.prototype.computeSnapTime=function(n){return r.duration(this.dateProfile.minTime+this.snapDuration*n)},t.prototype.getHitEl=function(n){return this.colEls.eq(n.col)},t.prototype.renderDrag=function(n,t,i){var r;if(t){if(n.length)return this.helperRenderer.renderEventDraggingFootprints(n,t,i),!0}else for(r=0;r<n.length;r++)this.renderHighlight(n[r].componentFootprint)},t.prototype.unrenderDrag=function(){this.unrenderHighlight();this.helperRenderer.unrender()},t.prototype.renderEventResize=function(n,t,i){this.helperRenderer.renderEventResizingFootprints(n,t,i)},t.prototype.unrenderEventResize=function(){this.helperRenderer.unrender()},t.prototype.renderSelectionFootprint=function(n){this.opt("selectHelper")?this.helperRenderer.renderComponentFootprint(n):this.renderHighlight(n)},t.prototype.unrenderSelection=function(){this.helperRenderer.unrender();this.unrenderHighlight()},t}(a.default);t.default=u;u.prototype.eventRendererClass=w.default;u.prototype.businessHourRendererClass=v.default;u.prototype.helperRendererClass=b.default;u.prototype.fillRendererClass=k.default;y.default.mixInto(u);p.default.mixInto(u)},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(2),u=i(5),f=i(221),e=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return r.__extends(t,n),t.prototype.buildRenderRange=function(t,i,r){var e=n.prototype.buildRenderRange.call(this,t,i,r),o=this.msToUtcMoment(e.startMs,r),f=this.msToUtcMoment(e.endMs,r);return/^(year|month)$/.test(i)&&(o.startOf("week"),f.weekday()&&f.add(1,"week").startOf("week")),new u.default(o,f)},t}(f.default);t.default=e},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var u=i(2),f=i(0),e=i(4),o=i(62),s=i(253),r=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return u.__extends(t,n),t.prototype.setGridHeight=function(n,t){t&&(n*=this.dayGrid.rowCnt/6);e.distributeHeight(this.dayGrid.rowEls,n,!t)},t.prototype.isDateInOtherMonth=function(n,t){return n.month()!==f.utc(t.currentUnzonedRange.startMs).month()},t}(o.default);t.default=r;r.prototype.dateProfileGeneratorClass=s.default},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var f=i(2),e=i(3),r=i(4),o=i(5),s=i(41),h=i(39),c=i(254),l=i(255),u=function(n){function t(t,i){var r=n.call(this,t,i)||this;return r.segSelector=".fc-list-item",r.scroller=new h.default({overflowX:"hidden",overflowY:"auto"}),r}return f.__extends(t,n),t.prototype.renderSkeleton=function(){this.el.addClass("fc-list-view "+this.calendar.theme.getClass("listView"));this.scroller.render();this.scroller.el.appendTo(this.el);this.contentEl=this.scroller.scrollEl},t.prototype.unrenderSkeleton=function(){this.scroller.destroy()},t.prototype.updateSize=function(t,i,r){n.prototype.updateSize.call(this,t,i,r);this.scroller.clear();i||this.scroller.setHeight(this.computeScrollerHeight(t))},t.prototype.computeScrollerHeight=function(n){return n-r.subtractInnerElHeight(this.el,this.scroller.el)},t.prototype.renderDates=function(n){for(var i=this.calendar,t=i.msToUtcMoment(n.renderUnzonedRange.startMs,!0),f=i.msToUtcMoment(n.renderUnzonedRange.endMs,!0),r=[],u=[];t<f;)r.push(t.clone()),u.push(new o.default(t,t.clone().add(1,"day"))),t.add(1,"day");this.dayDates=r;this.dayRanges=u},t.prototype.componentFootprintToSegs=function(n){for(var i,r,u=this.dayRanges,f=[],t=0;t<u.length;t++)if((i=n.unzonedRange.intersect(u[t]))&&(r={startMs:i.startMs,endMs:i.endMs,isStart:i.isStart,isEnd:i.isEnd,dayIndex:t},f.push(r),!r.isEnd&&!n.isAllDay&&t+1<u.length&&n.unzonedRange.endMs<u[t+1].startMs+this.nextDayThreshold)){r.endMs=n.unzonedRange.endMs;r.isEnd=!0;break}return f},t.prototype.renderEmptyMessage=function(){this.contentEl.html('<div class="fc-list-empty-wrap2"><div class="fc-list-empty-wrap1"><div class="fc-list-empty">'+r.htmlEscape(this.opt("noEventsMessage"))+"<\/div><\/div><\/div>")},t.prototype.renderSegList=function(n){for(var i,r,u=this.groupSegsByDay(n),f=e('<table class="fc-list-table '+this.calendar.theme.getClass("tableList")+'"><tbody/><\/table>'),o=f.find("tbody"),t=0;t<u.length;t++)if(i=u[t])for(o.append(this.dayHeaderHtml(this.dayDates[t])),this.eventRenderer.sortEventSegs(i),r=0;r<i.length;r++)o.append(i[r].el);this.contentEl.empty().append(f)},t.prototype.groupSegsByDay=function(n){for(var i,r=[],t=0;t<n.length;t++)i=n[t],(r[i.dayIndex]||(r[i.dayIndex]=[])).push(i);return r},t.prototype.dayHeaderHtml=function(n){var t=this.opt("listDayFormat"),i=this.opt("listDayAltFormat");return'<tr class="fc-list-heading" data-date="'+n.format("YYYY-MM-DD")+'"><td class="'+(this.calendar.theme.getClass("tableListHeading")||this.calendar.theme.getClass("widgetHeader"))+'" colspan="3">'+(t?this.buildGotoAnchorHtml(n,{"class":"fc-list-heading-main"},r.htmlEscape(n.format(t))):"")+(i?this.buildGotoAnchorHtml(n,{"class":"fc-list-heading-alt"},r.htmlEscape(n.format(i))):"")+"<\/td><\/tr>"},t}(s.default);t.default=u;u.prototype.eventRendererClass=c.default;u.prototype.eventPointingClass=l.default},,,,,,function(n,t,i){var r=i(3),u=i(16),f=i(4),e=i(220);i(10);i(47);i(256);i(257);i(260);i(261);i(262);i(263);r.fullCalendar=u;r.fn.fullCalendar=function(n){var i=Array.prototype.slice.call(arguments,1),t=this;return this.each(function(u,o){var c,h=r(o),s=h.data("fullCalendar");"string"==typeof n?"getCalendar"===n?u||(t=s):"destroy"===n?s&&(s.destroy(),h.removeData("fullCalendar")):s?r.isFunction(s[n])?(c=s[n].apply(s,i),u||(t=c),"destroy"===n&&h.removeData("fullCalendar")):f.warn("'"+n+"' is an unknown FullCalendar method."):f.warn("Attempting to call a FullCalendar method on an element with no calendar."):s||(s=new e.default(h,n),h.data("fullCalendar",s),s.render())}),t};n.exports=u},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(2),u=i(48),f=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return r.__extends(t,n),t.prototype.setElement=function(n){this.el=n;this.bindGlobalHandlers();this.renderSkeleton();this.set("isInDom",!0)},t.prototype.removeElement=function(){this.unset("isInDom");this.unrenderSkeleton();this.unbindGlobalHandlers();this.el.remove()},t.prototype.bindGlobalHandlers=function(){},t.prototype.unbindGlobalHandlers=function(){},t.prototype.renderSkeleton=function(){},t.prototype.unrenderSkeleton=function(){},t}(u.default);t.default=f},function(n,t){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function n(n){this.items=n||[]}return n.prototype.proxyCall=function(n){for(var r,i=[],t=1;t<arguments.length;t++)i[t-1]=arguments[t];return r=[],this.items.forEach(function(t){r.push(t[n].apply(t,i))}),r},n}();t.default=i},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(3),u=i(4),f=function(){function n(n,t){this.el=null;this.viewsWithButtons=[];this.calendar=n;this.toolbarOptions=t}return n.prototype.setToolbarOptions=function(n){this.toolbarOptions=n},n.prototype.render=function(){var t=this.toolbarOptions.layout,n=this.el;t?(n?n.empty():n=this.el=r("<div class='fc-toolbar "+this.toolbarOptions.extraClasses+"'/>"),n.append(this.renderSection("left")).append(this.renderSection("right")).append(this.renderSection("center")).append('<div class="fc-clear"/>')):this.removeElement()},n.prototype.removeElement=function(){this.el&&(this.el.remove(),this.el=null)},n.prototype.renderSection=function(n){var s=this,i=this.calendar,t=i.theme,f=i.optionsManager,h=i.viewSpecManager,e=r('<div class="fc-'+n+'"/>'),o=this.toolbarOptions.layout[n],c=f.get("customButtons")||{},l=f.overrides.buttonText||{},a=f.get("buttonText")||{};return o&&r.each(o.split(" "),function(n,f){var v,o=r(),y=!0;r.each(f.split(","),function(n,f){var w,k,b,p,v,d,nt,e,g;"title"===f?(o=o.add(r("<h2>&nbsp;<\/h2>")),y=!1):((w=c[f])?(b=function(n){w.click&&w.click.call(e[0],n)},(p=t.getCustomButtonIconClass(w))||(p=t.getIconClass(f))||(v=w.text)):(k=h.getViewSpec(f))?(s.viewsWithButtons.push(f),b=function(){i.changeView(f)},(v=k.buttonTextOverride)||(p=t.getIconClass(f))||(v=k.buttonTextDefault)):i[f]&&(b=function(){i[f]()},(v=l[f])||(p=t.getIconClass(f))||(v=a[f])),b&&(nt=["fc-"+f+"-button",t.getClass("button"),t.getClass("stateDefault")],v?(d=u.htmlEscape(v),g=""):p&&(d="<span class='"+p+"'><\/span>",g=' aria-label="'+f+'"'),e=r('<button type="button" class="'+nt.join(" ")+'"'+g+">"+d+"<\/button>").click(function(n){e.hasClass(t.getClass("stateDisabled"))||(b(n),(e.hasClass(t.getClass("stateActive"))||e.hasClass(t.getClass("stateDisabled")))&&e.removeClass(t.getClass("stateHover")))}).mousedown(function(){e.not("."+t.getClass("stateActive")).not("."+t.getClass("stateDisabled")).addClass(t.getClass("stateDown"))}).mouseup(function(){e.removeClass(t.getClass("stateDown"))}).hover(function(){e.not("."+t.getClass("stateActive")).not("."+t.getClass("stateDisabled")).addClass(t.getClass("stateHover"))},function(){e.removeClass(t.getClass("stateHover")).removeClass(t.getClass("stateDown"))}),o=o.add(e)))});y&&o.first().addClass(t.getClass("cornerLeft")).end().last().addClass(t.getClass("cornerRight")).end();o.length>1?(v=r("<div/>"),y&&v.addClass(t.getClass("buttonGroup")),v.append(o),e.append(v)):e.append(o)}),e},n.prototype.updateTitle=function(n){this.el&&this.el.find("h2").text(n)},n.prototype.activateButton=function(n){this.el&&this.el.find(".fc-"+n+"-button").addClass(this.calendar.theme.getClass("stateActive"))},n.prototype.deactivateButton=function(n){this.el&&this.el.find(".fc-"+n+"-button").removeClass(this.calendar.theme.getClass("stateActive"))},n.prototype.disableButton=function(n){this.el&&this.el.find(".fc-"+n+"-button").prop("disabled",!0).addClass(this.calendar.theme.getClass("stateDisabled"))},n.prototype.enableButton=function(n){this.el&&this.el.find(".fc-"+n+"-button").prop("disabled",!1).removeClass(this.calendar.theme.getClass("stateDisabled"))},n.prototype.getViewsWithButtons=function(){return this.viewsWithButtons},n}();t.default=f},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var e=i(2),o=i(3),f=i(4),r=i(32),u=i(31),s=i(48),h=function(n){function t(t,i){var r=n.call(this)||this;return r._calendar=t,r.overrides=o.extend({},i),r.dynamicOverrides={},r.compute(),r}return e.__extends(t,n),t.prototype.add=function(n){var t,i=0;this.recordOverrides(n);for(t in n)i++;if(1===i){if("height"===t||"contentHeight"===t||"aspectRatio"===t)return void this._calendar.updateViewSize(!0);if("defaultDate"===t)return;if("businessHours"===t)return;if(/^(event|select)(Overlap|Constraint|Allow)$/.test(t))return;if("timezone"===t)return void this._calendar.view.flash("initialEvents")}this._calendar.renderHeader();this._calendar.renderFooter();this._calendar.viewsByType={};this._calendar.reinitView()},t.prototype.compute=function(){var t,n,o,i,e;t=f.firstDefined(this.dynamicOverrides.locale,this.overrides.locale);n=u.localeOptionHash[t];n||(t=r.globalDefaults.locale,n=u.localeOptionHash[t]||{});o=f.firstDefined(this.dynamicOverrides.isRTL,this.overrides.isRTL,n.isRTL,r.globalDefaults.isRTL);i=o?r.rtlDefaults:{};this.dirDefaults=i;this.localeDefaults=n;e=r.mergeOptions([r.globalDefaults,i,n,this.overrides,this.dynamicOverrides]);u.populateInstanceComputableOptions(e);this.reset(e)},t.prototype.recordOverrides=function(n){for(var t in n)this.dynamicOverrides[t]=n[t];this._calendar.viewSpecManager.clearCache();this.compute()},t}(s.default);t.default=h},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var o=i(0),f=i(3),e=i(22),u=i(4),r=i(32),s=i(31),h=function(){function n(n,t){this.optionsManager=n;this._calendar=t;this.clearCache()}return n.prototype.clearCache=function(){this.viewSpecCache={}},n.prototype.getViewSpec=function(n){var t=this.viewSpecCache;return t[n]||(t[n]=this.buildViewSpec(n))},n.prototype.getUnitViewSpec=function(n){var t,i,r;if(-1!==f.inArray(n,u.unitsDesc))for(t=this._calendar.header.getViewsWithButtons(),f.each(e.viewHash,function(n){t.push(n)}),i=0;i<t.length;i++)if((r=this.getViewSpec(t[i]))&&r.singleUnit===n)return r},n.prototype.buildViewSpec=function(n){for(var t,s,i,h,c,a=this.optionsManager.overrides.views||{},v=[],y=[],l=[],f=n;f;)t=e.viewHash[f],s=a[f],f=null,"function"==typeof t&&(t={"class":t}),t&&(v.unshift(t),y.unshift(t.defaults||{}),i=i||t.duration,f=f||t.type),s&&(l.unshift(s),i=i||s.duration,f=f||s.type);return t=u.mergeProps(v),t.type=n,!!t.class&&(i=i||this.optionsManager.dynamicOverrides.duration||this.optionsManager.overrides.duration,i&&(h=o.duration(i),h.valueOf()&&(c=u.computeDurationGreatestUnit(h,i),t.duration=h,t.durationUnit=c,1===h.as(c)&&(t.singleUnit=c,l.unshift(a[c]||{})))),t.defaults=r.mergeOptions(y),t.overrides=r.mergeOptions(l),this.buildViewSpecOptions(t),this.buildViewSpecButtonText(t,n),t)},n.prototype.buildViewSpecOptions=function(n){var t=this.optionsManager;n.options=r.mergeOptions([r.globalDefaults,n.defaults,t.dirDefaults,t.localeDefaults,t.overrides,n.overrides,t.dynamicOverrides]);s.populateInstanceComputableOptions(n.options)},n.prototype.buildViewSpecButtonText=function(n,t){function i(i){var r=i.buttonText||{};return r[t]||(n.buttonTextKey?r[n.buttonTextKey]:null)||(n.singleUnit?r[n.singleUnit]:null)}var u=this.optionsManager;n.buttonTextOverride=i(u.dynamicOverrides)||i(u.overrides)||n.overrides.buttonText;n.buttonTextDefault=i(u.localeDefaults)||i(u.dirDefaults)||n.defaults.buttonText||i(r.globalDefaults)||(n.duration?this._calendar.humanizeDuration(n.duration):null)||t},n}();t.default=h},function(n,t,i){function f(n,t){return n.getPrimitive()===t.getPrimitive()}Object.defineProperty(t,"__esModule",{value:!0});var r=i(3),e=i(4),o=i(243),s=i(52),h=i(6),c=i(38),l=i(13),a=i(18),v=i(11),y=i(7),u=function(){function n(n){this.calendar=n;this.stickySource=new s.default(n);this.otherSources=[]}return n.prototype.requestEvents=function(n,t,i,r){return!r&&this.currentPeriod&&this.currentPeriod.isWithinRange(n,t)&&i===this.currentPeriod.timezone||this.setPeriod(new o.default(n,t,i)),this.currentPeriod.whenReleased()},n.prototype.addSource=function(n){this.otherSources.push(n);this.currentPeriod&&this.currentPeriod.requestSource(n)},n.prototype.removeSource=function(n){e.removeExact(this.otherSources,n);this.currentPeriod&&this.currentPeriod.purgeSource(n)},n.prototype.removeAllSources=function(){this.otherSources=[];this.currentPeriod&&this.currentPeriod.purgeAllSources()},n.prototype.refetchSource=function(n){var t=this.currentPeriod;t&&(t.freeze(),t.purgeSource(n),t.requestSource(n),t.thaw())},n.prototype.refetchAllSources=function(){var n=this.currentPeriod;n&&(n.freeze(),n.purgeAllSources(),n.requestSources(this.getSources()),n.thaw())},n.prototype.getSources=function(){return[this.stickySource].concat(this.otherSources)},n.prototype.multiQuerySources=function(n){n?r.isArray(n)||(n=[n]):n=[];for(var i=[],t=0;t<n.length;t++)i.push.apply(i,this.querySources(n[t]));return i},n.prototype.querySources=function(n){for(var i,u=this.otherSources,t=0;t<u.length;t++)if((i=u[t])===n)return[i];return(i=this.getSourceById(h.default.normalizeId(n)))?[i]:(n=c.default.parse(n,this.calendar),n?r.grep(u,function(t){return f(n,t)}):void 0)},n.prototype.getSourceById=function(n){return r.grep(this.otherSources,function(t){return t.id&&t.id===n})[0]},n.prototype.setPeriod=function(n){this.currentPeriod&&(this.unbindPeriod(this.currentPeriod),this.currentPeriod=null);this.currentPeriod=n;this.bindPeriod(n);n.requestSources(this.getSources())},n.prototype.bindPeriod=function(n){this.listenTo(n,"release",function(n){this.trigger("release",n)})},n.prototype.unbindPeriod=function(n){this.stopListeningTo(n)},n.prototype.getEventDefByUid=function(n){if(this.currentPeriod)return this.currentPeriod.getEventDefByUid(n)},n.prototype.addEventDef=function(n,t){t&&this.stickySource.addEventDef(n);this.currentPeriod&&this.currentPeriod.addEventDef(n)},n.prototype.removeEventDefsById=function(n){this.getSources().forEach(function(t){t.removeEventDefsById(n)});this.currentPeriod&&this.currentPeriod.removeEventDefsById(n)},n.prototype.removeAllEventDefs=function(){this.getSources().forEach(function(n){n.removeAllEventDefs()});this.currentPeriod&&this.currentPeriod.removeAllEventDefs()},n.prototype.mutateEventsWithId=function(n,t){var r,i=this.currentPeriod,u=[];return i?(i.freeze(),r=i.getEventDefsById(n),r.forEach(function(n){i.removeEventDef(n);u.push(t.mutateSingle(n));i.addEventDef(n)}),i.thaw(),function(){i.freeze();for(var n=0;n<r.length;n++)i.removeEventDef(r[n]),u[n](),i.addEventDef(r[n]);i.thaw()}):function(){}},n.prototype.buildMutatedEventInstanceGroup=function(n,t){for(var r,f=this.getEventDefsById(n),u=[],i=0;i<f.length;i++)(r=f[i].clone())instanceof l.default&&(t.mutateSingle(r),u.push.apply(u,r.buildInstances()));return new a.default(u)},n.prototype.freeze=function(){this.currentPeriod&&this.currentPeriod.freeze()},n.prototype.thaw=function(){this.currentPeriod&&this.currentPeriod.thaw()},n.prototype.getEventDefsById=function(n){return this.currentPeriod.getEventDefsById(n)},n.prototype.getEventInstances=function(){return this.currentPeriod.getEventInstances()},n.prototype.getEventInstancesWithId=function(n){return this.currentPeriod.getEventInstancesWithId(n)},n.prototype.getEventInstancesWithoutId=function(n){return this.currentPeriod.getEventInstancesWithoutId(n)},n}();t.default=u;v.default.mixInto(u);y.default.mixInto(u)},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var e=i(3),r=i(4),u=i(20),o=i(11),s=i(5),h=i(18),f=function(){function n(n,t,i){this.pendingCnt=0;this.freezeDepth=0;this.stuntedReleaseCnt=0;this.releaseCnt=0;this.start=n;this.end=t;this.timezone=i;this.unzonedRange=new s.default(n.clone().stripZone(),t.clone().stripZone());this.requestsByUid={};this.eventDefsByUid={};this.eventDefsById={};this.eventInstanceGroupsById={}}return n.prototype.isWithinRange=function(n,t){return!n.isBefore(this.start)&&!t.isAfter(this.end)},n.prototype.requestSources=function(n){this.freeze();for(var t=0;t<n.length;t++)this.requestSource(n[t]);this.thaw()},n.prototype.requestSource=function(n){var i=this,t={source:n,status:"pending",eventDefs:null};this.requestsByUid[n.uid]=t;this.pendingCnt+=1;n.fetch(this.start,this.end,this.timezone).then(function(n){"cancelled"!==t.status&&(t.status="completed",t.eventDefs=n,i.addEventDefs(n),i.pendingCnt--,i.tryRelease())},function(){"cancelled"!==t.status&&(t.status="failed",i.pendingCnt--,i.tryRelease())})},n.prototype.purgeSource=function(n){var t=this.requestsByUid[n.uid];t&&(delete this.requestsByUid[n.uid],"pending"===t.status?(t.status="cancelled",this.pendingCnt--,this.tryRelease()):"completed"===t.status&&t.eventDefs.forEach(this.removeEventDef.bind(this)))},n.prototype.purgeAllSources=function(){var t,n,i=this.requestsByUid,r=0;for(t in i)n=i[t],"pending"===n.status?n.status="cancelled":"completed"===n.status&&r++;this.requestsByUid={};this.pendingCnt=0;r&&this.removeAllEventDefs()},n.prototype.getEventDefByUid=function(n){return this.eventDefsByUid[n]},n.prototype.getEventDefsById=function(n){var t=this.eventDefsById[n];return t?t.slice():[]},n.prototype.addEventDefs=function(n){for(var t=0;t<n.length;t++)this.addEventDef(n[t])},n.prototype.addEventDef=function(n){var t,r=this.eventDefsById,i=n.id,f=r[i]||(r[i]=[]),u=n.buildInstances(this.unzonedRange);for(f.push(n),this.eventDefsByUid[n.uid]=n,t=0;t<u.length;t++)this.addEventInstance(u[t],i)},n.prototype.removeEventDefsById=function(n){var t=this;this.getEventDefsById(n).forEach(function(n){t.removeEventDef(n)})},n.prototype.removeAllEventDefs=function(){var n=e.isEmptyObject(this.eventDefsByUid);this.eventDefsByUid={};this.eventDefsById={};this.eventInstanceGroupsById={};n||this.tryRelease()},n.prototype.removeEventDef=function(n){var i=this.eventDefsById,t=i[n.id];delete this.eventDefsByUid[n.uid];t&&(r.removeExact(t,n),t.length||delete i[n.id],this.removeEventInstancesForDef(n))},n.prototype.getEventInstances=function(){var t,i=this.eventInstanceGroupsById,n=[];for(t in i)n.push.apply(n,i[t].eventInstances);return n},n.prototype.getEventInstancesWithId=function(n){var t=this.eventInstanceGroupsById[n];return t?t.eventInstances.slice():[]},n.prototype.getEventInstancesWithoutId=function(n){var t,r=this.eventInstanceGroupsById,i=[];for(t in r)t!==n&&i.push.apply(i,r[t].eventInstances);return i},n.prototype.addEventInstance=function(n,t){var i=this.eventInstanceGroupsById;(i[t]||(i[t]=new h.default)).eventInstances.push(n);this.tryRelease()},n.prototype.removeEventInstancesForDef=function(n){var i,u=this.eventInstanceGroupsById,t=u[n.id];t&&(i=r.removeMatching(t.eventInstances,function(t){return t.def===n}),t.eventInstances.length||delete u[n.id],i&&this.tryRelease())},n.prototype.tryRelease=function(){this.pendingCnt||(this.freezeDepth?this.stuntedReleaseCnt++:this.release())},n.prototype.release=function(){this.releaseCnt++;this.trigger("release",this.eventInstanceGroupsById)},n.prototype.whenReleased=function(){var n=this;return this.releaseCnt?u.default.resolve(this.eventInstanceGroupsById):u.default.construct(function(t){n.one("release",t)})},n.prototype.freeze=function(){this.freezeDepth++||(this.stuntedReleaseCnt=0)},n.prototype.thaw=function(){--this.freezeDepth||!this.stuntedReleaseCnt||this.pendingCnt||this.release()},n}();t.default=f;o.default.mixInto(f)},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var u=i(3),r=i(4),e=i(7),f=function(){function n(n,t){this.isFollowing=!1;this.isHidden=!1;this.isAnimating=!1;this.options=t=t||{};this.sourceEl=n;this.parentEl=t.parentEl?u(t.parentEl):n.parent()}return n.prototype.start=function(n){this.isFollowing||(this.isFollowing=!0,this.y0=r.getEvY(n),this.x0=r.getEvX(n),this.topDelta=0,this.leftDelta=0,this.isHidden||this.updatePosition(),r.getEvIsTouch(n)?this.listenTo(u(document),"touchmove",this.handleMove):this.listenTo(u(document),"mousemove",this.handleMove))},n.prototype.stop=function(n,t){var i=this,r=this.options.revertDuration,f=function(){i.isAnimating=!1;i.removeElement();i.top0=i.left0=null;t&&t()};this.isFollowing&&!this.isAnimating&&(this.isFollowing=!1,this.stopListeningTo(u(document)),n&&r&&!this.isHidden?(this.isAnimating=!0,this.el.animate({top:this.top0,left:this.left0},{duration:r,complete:f})):f())},n.prototype.getEl=function(){var n=this.el;return n||(n=this.el=this.sourceEl.clone().addClass(this.options.additionalClass||"").css({position:"absolute",visibility:"",display:this.isHidden?"none":"",margin:0,right:"auto",bottom:"auto",width:this.sourceEl.width(),height:this.sourceEl.height(),opacity:this.options.opacity||"",zIndex:this.options.zIndex}),n.addClass("fc-unselectable"),n.appendTo(this.parentEl)),n},n.prototype.removeElement=function(){this.el&&(this.el.remove(),this.el=null)},n.prototype.updatePosition=function(){var n,t;this.getEl();null==this.top0&&(n=this.sourceEl.offset(),t=this.el.offsetParent().offset(),this.top0=n.top-t.top,this.left0=n.left-t.left);this.el.css({top:this.top0+this.topDelta,left:this.left0+this.leftDelta})},n.prototype.handleMove=function(n){this.topDelta=r.getEvY(n)-this.y0;this.leftDelta=r.getEvX(n)-this.x0;this.isHidden||this.updatePosition()},n.prototype.hide=function(){this.isHidden||(this.isHidden=!0,this.el&&this.el.hide())},n.prototype.show=function(){this.isHidden&&(this.isHidden=!1,this.updatePosition(),this.getEl().show())},n}();t.default=f;e.default.mixInto(f)},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(2),u=i(23),f=i(15),e=function(n){function t(t){var i=n.call(this,t)||this;return i.dragListener=i.buildDragListener(),i}return r.__extends(t,n),t.prototype.end=function(){this.dragListener.endInteraction()},t.prototype.bindToEl=function(n){var t=this.component,i=this.dragListener;t.bindDateHandlerToEl(n,"mousedown",function(n){t.shouldIgnoreMouse()||i.startInteraction(n)});t.bindDateHandlerToEl(n,"touchstart",function(n){t.shouldIgnoreTouch()||i.startInteraction(n)})},t.prototype.buildDragListener=function(){var n,r=this,i=this.component,t=new u.default(i,{scroll:this.opt("dragScroll"),interactionStart:function(){n=t.origHit},hitOver:function(t,i){i||(n=null)},hitOut:function(){n=null},interactionEnd:function(t,u){var f;!u&&n&&(f=i.getSafeHitFootprint(n))&&r.view.triggerDayClick(f,i.getHitEl(n),t)}});return t.shouldCancelTouchScroll=!1,t.scrollAlwaysKills=!0,t},t}(f.default);t.default=e},function(n,t,i){function e(n){for(var u,t,i=[],r=0;r<n.length;r++){for(u=n[r],t=0;t<i.length&&f(u,i[t]).length;t++);u.level=t;(i[t]||(i[t]=[])).push(u)}return i}function o(n){for(var e,i,r,u,t=0;t<n.length;t++)for(e=n[t],i=0;i<e.length;i++)for(r=e[i],r.forwardSegs=[],u=t+1;u<n.length;u++)f(r,n[u],r.forwardSegs)}function u(n){var t,i,f=n.forwardSegs,r=0;if(void 0===n.forwardPressure){for(t=0;t<f.length;t++)i=f[t],u(i),r=Math.max(r,1+i.forwardPressure);n.forwardPressure=r}}function f(n,t,i){void 0===i&&(i=[]);for(var r=0;r<t.length;r++)s(n,t[r])&&i.push(t[r]);return i}function s(n,t){return n.bottom>t.top&&n.top<t.bottom}Object.defineProperty(t,"__esModule",{value:!0});var h=i(2),r=i(4),c=i(42),l=function(n){function t(t,i){var r=n.call(this,t,i)||this;return r.timeGrid=t,r}return h.__extends(t,n),t.prototype.renderFgSegs=function(n){this.renderFgSegsIntoContainers(n,this.timeGrid.fgContainerEls)},t.prototype.renderFgSegsIntoContainers=function(n,t){for(var r=this.timeGrid.groupSegsByCol(n),i=0;i<this.timeGrid.colCnt;i++)this.updateFgSegCoords(r[i]);this.timeGrid.attachSegsByCol(r,t)},t.prototype.unrenderFgSegs=function(){this.fgSegs&&this.fgSegs.forEach(function(n){n.el.remove()})},t.prototype.computeEventTimeFormat=function(){return this.opt("noMeridiemTimeFormat")},t.prototype.computeDisplayEventEnd=function(){return!0},t.prototype.fgSegHtml=function(n,t){var f,s,h,u=this.view,l=u.calendar,a=n.footprint.componentFootprint,c=a.isAllDay,i=n.footprint.eventDef,w=u.isEventDefDraggable(i),b=!t&&n.isStart&&u.isEventDefResizableFromStart(i),v=!t&&n.isEnd&&u.isEventDefResizableFromEnd(i),y=this.getSegClasses(n,w,b||v),p=r.cssToStr(this.getSkinCss(i)),e,o;return(y.unshift("fc-time-grid-event","fc-v-event"),u.isMultiDayRange(a.unzonedRange))?(n.isStart||n.isEnd)&&(e=l.msToMoment(n.startMs),o=l.msToMoment(n.endMs),f=this._getTimeText(e,o,c),s=this._getTimeText(e,o,c,"LT"),h=this._getTimeText(e,o,c,null,!1)):(f=this.getTimeText(n.footprint),s=this.getTimeText(n.footprint,"LT"),h=this.getTimeText(n.footprint,null,!1)),'<a class="'+y.join(" ")+'"'+(i.url?' href="'+r.htmlEscape(i.url)+'"':"")+(p?' style="'+p+'"':"")+'><div class="fc-content">'+(f?'<div class="fc-time" data-start="'+r.htmlEscape(h)+'" data-full="'+r.htmlEscape(s)+'"><span>'+r.htmlEscape(f)+"<\/span><\/div>":"")+(i.title?'<div class="fc-title">'+r.htmlEscape(i.title)+"<\/div>":"")+'<\/div><div class="fc-bg"/>'+(v?'<div class="fc-resizer fc-end-resizer" />':"")+"<\/a>"},t.prototype.updateFgSegCoords=function(n){this.timeGrid.computeSegVerticals(n);this.computeFgSegHorizontals(n);this.timeGrid.assignSegVerticals(n);this.assignFgSegHorizontals(n)},t.prototype.computeFgSegHorizontals=function(n){var r,i,t;if(this.sortEventSegs(n),r=e(n),o(r),i=r[0]){for(t=0;t<i.length;t++)u(i[t]);for(t=0;t<i.length;t++)this.computeFgSegForwardBack(i[t],0,0)}},t.prototype.computeFgSegForwardBack=function(n,t,i){var u,r=n.forwardSegs;if(void 0===n.forwardCoord)for(r.length?(this.sortForwardSegs(r),this.computeFgSegForwardBack(r[0],t+1,i),n.forwardCoord=r[0].backwardCoord):n.forwardCoord=1,n.backwardCoord=n.forwardCoord-(n.forwardCoord-i)/(t+1),u=0;u<r.length;u++)this.computeFgSegForwardBack(r[u],0,n.forwardCoord)},t.prototype.sortForwardSegs=function(n){n.sort(r.proxy(this,"compareForwardSegs"))},t.prototype.compareForwardSegs=function(n,t){return t.forwardPressure-n.forwardPressure||(n.backwardCoord||0)-(t.backwardCoord||0)||this.compareEventSegs(n,t)},t.prototype.assignFgSegHorizontals=function(n){for(var t,i=0;i<n.length;i++)t=n[i],t.el.css(this.generateFgSegHorizontalCss(t)),t.bottom-t.top<30&&t.el.addClass("fc-short")},t.prototype.generateFgSegHorizontalCss=function(n){var u,f,e=this.opt("slotEventOverlap"),i=n.backwardCoord,r=n.forwardCoord,t=this.timeGrid.generateSegVerticalCss(n),o=this.timeGrid.isRTL;return e&&(r=Math.min(1,i+2*(r-i))),o?(u=1-r,f=i):(u=i,f=1-r),t.zIndex=n.level+1,t.left=100*u+"%",t.right=100*f+"%",e&&n.forwardPressure&&(t[o?"marginLeft":"marginRight"]=20),t},t}(c.default);t.default=l},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(2),u=i(3),f=i(58),e=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return r.__extends(t,n),t.prototype.renderSegs=function(n,t){var r,f,i,e=[];for(this.eventRenderer.renderFgSegsIntoContainers(n,this.component.helperContainerEls),r=0;r<n.length;r++)f=n[r],t&&t.col===f.col&&(i=t.el,f.el.css({left:i.css("left"),right:i.css("right"),"margin-left":i.css("margin-left"),"margin-right":i.css("margin-right")})),e.push(f.el[0]);return u(e)},t}(f.default);t.default=e},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(2),u=i(57),f=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return r.__extends(t,n),t.prototype.attachSegEls=function(n,t){var r,i=this.component;return"bgEvent"===n?r=i.bgContainerEls:"businessHours"===n?r=i.businessContainerEls:"highlight"===n&&(r=i.highlightContainerEls),i.updateSegVerticals(t),i.attachSegsByCol(i.groupSegsByCol(t),r),t.map(function(n){return n.el[0]})},t}(u.default);t.default=f},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(3),f=i(4),e=i(7),u=function(){function n(n){this.isHidden=!0;this.margin=10;this.options=n||{}}return n.prototype.show=function(){this.isHidden&&(this.el||this.render(),this.el.show(),this.position(),this.isHidden=!1,this.trigger("show"))},n.prototype.hide=function(){this.isHidden||(this.el.hide(),this.isHidden=!0,this.trigger("hide"))},n.prototype.render=function(){var t=this,n=this.options;this.el=r('<div class="fc-popover"/>').addClass(n.className||"").css({top:0,left:0}).append(n.content).appendTo(n.parentEl);this.el.on("click",".fc-close",function(){t.hide()});n.autoHide&&this.listenTo(r(document),"mousedown",this.documentMousedown)},n.prototype.documentMousedown=function(n){this.el&&!r(n.target).closest(this.el).length&&this.hide()},n.prototype.removeElement=function(){this.hide();this.el&&(this.el.remove(),this.el=null);this.stopListeningTo(r(document),"mousedown")},n.prototype.position=function(){var e,o,s,n,t,i=this.options,c=this.el.offsetParent().offset(),l=this.el.outerWidth(),a=this.el.outerHeight(),h=r(window),u=f.getScrollParent(this.el);n=i.top||0;t=void 0!==i.left?i.left:void 0!==i.right?i.right-l:0;u.is(window)||u.is(document)?(u=h,e=0,o=0):(s=u.offset(),e=s.top,o=s.left);e+=h.scrollTop();o+=h.scrollLeft();!1!==i.viewportConstrain&&(n=Math.min(n,e+u.outerHeight()-a-this.margin),n=Math.max(n,e+this.margin),t=Math.min(t,o+u.outerWidth()-l-this.margin),t=Math.max(t,o+this.margin));this.el.css({top:n-c.top,left:t-c.left})},n.prototype.trigger=function(n){this.options[n]&&this.options[n].apply(this,Array.prototype.slice.call(arguments,1))},n}();t.default=u;e.default.mixInto(u)},function(n,t,i){function f(n,t){for(var r,i=0;i<t.length;i++)if(r=t[i],r.leftCol<=n.rightCol&&r.rightCol>=n.leftCol)return!0;return!1}function e(n,t){return n.leftCol-t.leftCol}Object.defineProperty(t,"__esModule",{value:!0});var o=i(2),r=i(3),u=i(4),s=i(42),h=function(n){function t(t,i){var r=n.call(this,t,i)||this;return r.dayGrid=t,r}return o.__extends(t,n),t.prototype.renderBgRanges=function(t){t=r.grep(t,function(n){return n.eventDef.isAllDay()});n.prototype.renderBgRanges.call(this,t)},t.prototype.renderFgSegs=function(n){var t=this.rowStructs=this.renderSegRows(n);this.dayGrid.rowEls.each(function(n,i){r(i).find(".fc-content-skeleton > table").append(t[n].tbodyEl)})},t.prototype.unrenderFgSegs=function(){for(var n,t=this.rowStructs||[];n=t.pop();)n.tbodyEl.remove();this.rowStructs=null},t.prototype.renderSegRows=function(n){for(var r=[],i=this.groupSegRows(n),t=0;t<i.length;t++)r.push(this.renderSegRow(t,i[t]));return r},t.prototype.renderSegRow=function(n,t){function y(n){for(;u<n;)i=(l[f-1]||[])[u],i?i.attr("rowspan",parseInt(i.attr("rowspan")||1,10)+1):(i=r("<td/>"),o.append(i)),c[f][u]=i,l[f][u]=i,u++}for(var s,u,o,h,e,i,w=this.dayGrid.colCnt,a=this.buildSegLevels(t),b=Math.max(1,a.length),p=r("<tbody/>"),v=[],c=[],l=[],f=0;f<b;f++){if(s=a[f],u=0,o=r("<tr/>"),v.push([]),c.push([]),l.push([]),s)for(h=0;h<s.length;h++){for(e=s[h],y(e.leftCol),i=r('<td class="fc-event-container"/>').append(e.el),e.leftCol!==e.rightCol?i.attr("colspan",e.rightCol-e.leftCol+1):l[f][u]=i;u<=e.rightCol;)c[f][u]=i,v[f][u]=e,u++;o.append(i)}y(w);this.dayGrid.bookendCells(o);p.append(o)}return{row:n,tbodyEl:p,cellMatrix:c,segMatrix:v,segLevels:a,segs:t}},t.prototype.buildSegLevels=function(n){var r,u,t,i=[];for(this.sortEventSegs(n),r=0;r<n.length;r++){for(u=n[r],t=0;t<i.length&&f(u,i[t]);t++);u.level=t;(i[t]||(i[t]=[])).push(u)}for(t=0;t<i.length;t++)i[t].sort(e);return i},t.prototype.groupSegRows=function(n){for(var i=[],t=0;t<this.dayGrid.rowCnt;t++)i.push([]);for(t=0;t<n.length;t++)i[n[t].row].push(n[t]);return i},t.prototype.computeEventTimeFormat=function(){return this.opt("extraSmallTimeFormat")},t.prototype.computeDisplayEventEnd=function(){return 1===this.dayGrid.colCnt},t.prototype.fgSegHtml=function(n,t){var o,r,f=this.view,i=n.footprint.eventDef,s=n.footprint.componentFootprint.isAllDay,v=f.isEventDefDraggable(i),h=!t&&s&&n.isStart&&f.isEventDefResizableFromStart(i),c=!t&&s&&n.isEnd&&f.isEventDefResizableFromEnd(i),l=this.getSegClasses(n,v,h||c),a=u.cssToStr(this.getSkinCss(i)),e="";return l.unshift("fc-day-grid-event","fc-h-event"),n.isStart&&(o=this.getTimeText(n.footprint))&&(e='<span class="fc-time">'+u.htmlEscape(o)+"<\/span>"),r='<span class="fc-title">'+(u.htmlEscape(i.title||"")||"&nbsp;")+"<\/span>",'<a class="'+l.join(" ")+'"'+(i.url?' href="'+u.htmlEscape(i.url)+'"':"")+(a?' style="'+a+'"':"")+'><div class="fc-content">'+(this.dayGrid.isRTL?r+" "+e:e+" "+r)+"<\/div>"+(h?'<div class="fc-resizer fc-start-resizer" />':"")+(c?'<div class="fc-resizer fc-end-resizer" />':"")+"<\/a>"},t}(s.default);t.default=h},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var u=i(2),r=i(3),f=i(58),e=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return u.__extends(t,n),t.prototype.renderSegs=function(n,t){var i,u=[];return i=this.eventRenderer.renderSegRows(n),this.component.rowEls.each(function(n,f){var e,o,s=r(f),h=r('<div class="fc-helper-skeleton"><table/><\/div>');t&&t.row===n?o=t.el.position().top:(e=s.find(".fc-content-skeleton tbody"),e.length||(e=s.find(".fc-content-skeleton table")),o=e.position().top);h.css("top",o).find("table").append(i[n].tbodyEl);s.append(h);u.push(h[0])}),r(u)},t}(f.default);t.default=e},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(2),u=i(3),f=i(57),e=function(n){function t(){var t=null!==n&&n.apply(this,arguments)||this;return t.fillSegTag="td",t}return r.__extends(t,n),t.prototype.attachSegEls=function(n,t){for(var r,u,f=[],i=0;i<t.length;i++)r=t[i],u=this.renderFillRow(n,r),this.component.rowEls.eq(r.row).append(u),f.push(u[0]);return f},t.prototype.renderFillRow=function(n,t){var o,r,i,s=this.component.colCnt,f=t.leftCol,e=t.rightCol+1;return o="businessHours"===n?"bgevent":n.toLowerCase(),r=u('<div class="fc-'+o+'-skeleton"><table><tr/><\/table><\/div>'),i=r.find("tr"),f>0&&i.append('<td colspan="'+f+'"/>'),i.append(t.el.attr("colspan",e-f)),e<s&&i.append('<td colspan="'+(s-e)+'"/>'),this.component.bookendCells(i),r},t}(f.default);t.default=e},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(2),u=i(228),f=i(5),e=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return r.__extends(t,n),t.prototype.buildRenderRange=function(t,i,r){var e,o=n.prototype.buildRenderRange.call(this,t,i,r),s=this.msToUtcMoment(o.startMs,r),u=this.msToUtcMoment(o.endMs,r);return this.opt("fixedWeekCount")&&(e=Math.ceil(u.diff(s,"weeks",!0)),u.add(6-e,"weeks")),new f.default(s,u)},t}(u.default);t.default=e},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var u=i(2),r=i(4),f=i(42),e=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return u.__extends(t,n),t.prototype.renderFgSegs=function(n){n.length?this.component.renderSegList(n):this.component.renderEmptyMessage()},t.prototype.fgSegHtml=function(n){var h,t=this.view,u=t.calendar,f=u.theme,e=n.footprint,i=e.eventDef,o=e.componentFootprint,s=i.url,c=["fc-list-item"].concat(this.getClasses(i)),l=this.getBgColor(i);return h=o.isAllDay?t.getAllDayHtml():t.isMultiDayRange(o.unzonedRange)?n.isStart||n.isEnd?r.htmlEscape(this._getTimeText(u.msToMoment(n.startMs),u.msToMoment(n.endMs),o.isAllDay)):t.getAllDayHtml():r.htmlEscape(this.getTimeText(e)),s&&c.push("fc-has-url"),'<tr class="'+c.join(" ")+'">'+(this.displayEventTime?'<td class="fc-list-item-time '+f.getClass("widgetContent")+'">'+(h||"")+"<\/td>":"")+'<td class="fc-list-item-marker '+f.getClass("widgetContent")+'"><span class="fc-event-dot"'+(l?' style="background-color:'+l+'"':"")+'><\/span><\/td><td class="fc-list-item-title '+f.getClass("widgetContent")+'"><a'+(s?' href="'+r.htmlEscape(s)+'"':"")+">"+r.htmlEscape(i.title||"")+"<\/a><\/td><\/tr>"},t.prototype.computeEventTimeFormat=function(){return this.opt("mediumTimeFormat")},t}(f.default);t.default=e},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(2),u=i(3),f=i(59),e=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return r.__extends(t,n),t.prototype.handleClick=function(t,i){var r;n.prototype.handleClick.call(this,t,i);u(i.target).closest("a[href]").length||(r=t.footprint.eventDef.url)&&!i.isDefaultPrevented()&&(window.location.href=r)},t}(f.default);t.default=e},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(38),u=i(52),f=i(215),e=i(216);r.default.registerClass(u.default);r.default.registerClass(f.default);r.default.registerClass(e.default)},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(51),u=i(213),f=i(214),e=i(258),o=i(259);r.defineThemeSystem("standard",u.default);r.defineThemeSystem("jquery-ui",f.default);r.defineThemeSystem("bootstrap3",e.default);r.defineThemeSystem("bootstrap4",o.default)},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var u=i(2),f=i(19),r=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return u.__extends(t,n),t}(f.default);t.default=r;r.prototype.classes={widget:"fc-bootstrap3",tableGrid:"table-bordered",tableList:"table",tableListHeading:"active",buttonGroup:"btn-group",button:"btn btn-default",stateActive:"active",stateDisabled:"disabled",today:"alert alert-info",popover:"panel panel-default",popoverHeader:"panel-heading",popoverContent:"panel-body",headerRow:"panel-default",dayRow:"panel-default",listView:"panel panel-default"};r.prototype.baseIconClass="glyphicon";r.prototype.iconClasses={close:"glyphicon-remove",prev:"glyphicon-chevron-left",next:"glyphicon-chevron-right",prevYear:"glyphicon-backward",nextYear:"glyphicon-forward"};r.prototype.iconOverrideOption="bootstrapGlyphicons";r.prototype.iconOverrideCustomButtonOption="bootstrapGlyphicon";r.prototype.iconOverridePrefix="glyphicon-"},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var u=i(2),f=i(19),r=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return u.__extends(t,n),t}(f.default);t.default=r;r.prototype.classes={widget:"fc-bootstrap4",tableGrid:"table-bordered",tableList:"table",tableListHeading:"table-active",buttonGroup:"btn-group",button:"btn btn-primary",stateActive:"active",stateDisabled:"disabled",today:"alert alert-info",popover:"card card-primary",popoverHeader:"card-header",popoverContent:"card-body",headerRow:"table-bordered",dayRow:"table-bordered",listView:"card card-primary"};r.prototype.baseIconClass="fa";r.prototype.iconClasses={close:"fa-times",prev:"fa-chevron-left",next:"fa-chevron-right",prevYear:"fa-angle-double-left",nextYear:"fa-angle-double-right"};r.prototype.iconOverrideOption="bootstrapFontAwesome";r.prototype.iconOverrideCustomButtonOption="bootstrapFontAwesome";r.prototype.iconOverridePrefix="fa-"},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(22),u=i(62),f=i(229);r.defineView("basic",{"class":u.default});r.defineView("basicDay",{type:"basic",duration:{days:1}});r.defineView("basicWeek",{type:"basic",duration:{weeks:1}});r.defineView("month",{"class":f.default,duration:{months:1},defaults:{fixedWeekCount:!0}})},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(22),u=i(226);r.defineView("agenda",{"class":u.default,defaults:{allDaySlot:!0,slotDuration:"00:30:00",slotEventOverlap:!0}});r.defineView("agendaDay",{type:"agenda",duration:{days:1}});r.defineView("agendaWeek",{type:"agenda",duration:{weeks:1}})},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(22),u=i(230);r.defineView("list",{"class":u.default,buttonTextKey:"list",defaults:{buttonText:"list",listDayFormat:"LL",noEventsMessage:"No events to display"}});r.defineView("listDay",{type:"list",duration:{days:1},defaults:{listDayFormat:"dddd"}});r.defineView("listWeek",{type:"list",duration:{weeks:1},defaults:{listDayFormat:"dddd",listDayAltFormat:"LL"}});r.defineView("listMonth",{type:"list",duration:{month:1},defaults:{listDayAltFormat:"dddd"}});r.defineView("listYear",{type:"list",duration:{year:1},defaults:{listDayAltFormat:"dddd"}})},function(n,t){Object.defineProperty(t,"__esModule",{value:!0})}])})