From 0aa0a92510897b103e5b3ef8fc6b917509c86960 Mon Sep 17 00:00:00 2001 From: Samuel De Backer Date: Mon, 16 Mar 2015 18:11:13 +0100 Subject: [PATCH] js public --- public/js/admin/components.min.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 public/js/admin/components.min.js diff --git a/public/js/admin/components.min.js b/public/js/admin/components.min.js new file mode 100644 index 00000000..6063d27d --- /dev/null +++ b/public/js/admin/components.min.js @@ -0,0 +1,15 @@ +function normalize(e){return e=e.toLowerCase(),e=e.replace(/\\s/g,""),e=e.replace(/[àáâãäå]/g,"a"),e=e.replace(/æ/g,"ae"),e=e.replace(/’/g,"'"),e=e.replace(/[“”«»]/g,""),e=e.replace(/ç/g,"c"),e=e.replace(/[èéêë]/g,"e"),e=e.replace(/[ìíîï]/g,"i"),e=e.replace(/ñ/g,"n"),e=e.replace(/[òóôõö]/g,"o"),e=e.replace(/œ/g,"oe"),e=e.replace(/[ùúûü]/g,"u"),e=e.replace(/[ýÿ]/g,"y"),e=e.replace(/\\W/g,""),e.trim()}!function(e,t){"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){function n(e){var t=e.length,n=it.type(e);return"function"===n||it.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e}function r(e,t,n){if(it.isFunction(t))return it.grep(e,function(e,r){return!!t.call(e,r,e)!==n});if(t.nodeType)return it.grep(e,function(e){return e===t!==n});if("string"==typeof t){if(pt.test(t))return it.filter(t,e,n);t=it.filter(t,e)}return it.grep(e,function(e){return it.inArray(e,t)>=0!==n})}function i(e,t){do e=e[t];while(e&&1!==e.nodeType);return e}function o(e){var t=bt[e]={};return it.each(e.match($t)||[],function(e,n){t[n]=!0}),t}function a(){ht.addEventListener?(ht.removeEventListener("DOMContentLoaded",s,!1),e.removeEventListener("load",s,!1)):(ht.detachEvent("onreadystatechange",s),e.detachEvent("onload",s))}function s(){(ht.addEventListener||"load"===event.type||"complete"===ht.readyState)&&(a(),it.ready())}function l(e,t,n){if(void 0===n&&1===e.nodeType){var r="data-"+t.replace(Tt,"-$1").toLowerCase();if(n=e.getAttribute(r),"string"==typeof n){try{n="true"===n?!0:"false"===n?!1:"null"===n?null:+n+""===n?+n:St.test(n)?it.parseJSON(n):n}catch(i){}it.data(e,t,n)}else n=void 0}return n}function u(e){var t;for(t in e)if(("data"!==t||!it.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}function c(e,t,n,r){if(it.acceptData(e)){var i,o,a=it.expando,s=e.nodeType,l=s?it.cache:e,u=s?e[a]:e[a]&&a;if(u&&l[u]&&(r||l[u].data)||void 0!==n||"string"!=typeof t)return u||(u=s?e[a]=X.pop()||it.guid++:a),l[u]||(l[u]=s?{}:{toJSON:it.noop}),("object"==typeof t||"function"==typeof t)&&(r?l[u]=it.extend(l[u],t):l[u].data=it.extend(l[u].data,t)),o=l[u],r||(o.data||(o.data={}),o=o.data),void 0!==n&&(o[it.camelCase(t)]=n),"string"==typeof t?(i=o[t],null==i&&(i=o[it.camelCase(t)])):i=o,i}}function d(e,t,n){if(it.acceptData(e)){var r,i,o=e.nodeType,a=o?it.cache:e,s=o?e[it.expando]:it.expando;if(a[s]){if(t&&(r=n?a[s]:a[s].data)){it.isArray(t)?t=t.concat(it.map(t,it.camelCase)):t in r?t=[t]:(t=it.camelCase(t),t=t in r?[t]:t.split(" ")),i=t.length;for(;i--;)delete r[t[i]];if(n?!u(r):!it.isEmptyObject(r))return}(n||(delete a[s].data,u(a[s])))&&(o?it.cleanData([e],!0):nt.deleteExpando||a!=a.window?delete a[s]:a[s]=null)}}}function p(){return!0}function f(){return!1}function h(){try{return ht.activeElement}catch(e){}}function m(e){var t=_t.split("|"),n=e.createDocumentFragment();if(n.createElement)for(;t.length;)n.createElement(t.pop());return n}function g(e,t){var n,r,i=0,o=typeof e.getElementsByTagName!==Ct?e.getElementsByTagName(t||"*"):typeof e.querySelectorAll!==Ct?e.querySelectorAll(t||"*"):void 0;if(!o)for(o=[],n=e.childNodes||e;null!=(r=n[i]);i++)!t||it.nodeName(r,t)?o.push(r):it.merge(o,g(r,t));return void 0===t||t&&it.nodeName(e,t)?it.merge([e],o):o}function v(e){Dt.test(e.type)&&(e.defaultChecked=e.checked)}function y(e,t){return it.nodeName(e,"table")&&it.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function $(e){return e.type=(null!==it.find.attr(e,"type"))+"/"+e.type,e}function b(e){var t=Gt.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function w(e,t){for(var n,r=0;null!=(n=e[r]);r++)it._data(n,"globalEval",!t||it._data(t[r],"globalEval"))}function x(e,t){if(1===t.nodeType&&it.hasData(e)){var n,r,i,o=it._data(e),a=it._data(t,o),s=o.events;if(s){delete a.handle,a.events={};for(n in s)for(r=0,i=s[n].length;i>r;r++)it.event.add(t,n,s[n][r])}a.data&&(a.data=it.extend({},a.data))}}function C(e,t){var n,r,i;if(1===t.nodeType){if(n=t.nodeName.toLowerCase(),!nt.noCloneEvent&&t[it.expando]){i=it._data(t);for(r in i.events)it.removeEvent(t,r,i.handle);t.removeAttribute(it.expando)}"script"===n&&t.text!==e.text?($(t).text=e.text,b(t)):"object"===n?(t.parentNode&&(t.outerHTML=e.outerHTML),nt.html5Clone&&e.innerHTML&&!it.trim(t.innerHTML)&&(t.innerHTML=e.innerHTML)):"input"===n&&Dt.test(e.type)?(t.defaultChecked=t.checked=e.checked,t.value!==e.value&&(t.value=e.value)):"option"===n?t.defaultSelected=t.selected=e.defaultSelected:("input"===n||"textarea"===n)&&(t.defaultValue=e.defaultValue)}}function S(t,n){var r,i=it(n.createElement(t)).appendTo(n.body),o=e.getDefaultComputedStyle&&(r=e.getDefaultComputedStyle(i[0]))?r.display:it.css(i[0],"display");return i.detach(),o}function T(e){var t=ht,n=Zt[e];return n||(n=S(e,t),"none"!==n&&n||(Jt=(Jt||it("",error:'

The requested content cannot be loaded.
Please try again later.

',closeBtn:'',next:'',prev:''},openEffect:"fade",openSpeed:250,openEasing:"swing",openOpacity:!0,openMethod:"zoomIn",closeEffect:"fade",closeSpeed:250,closeEasing:"swing",closeOpacity:!0,closeMethod:"zoomOut",nextEffect:"elastic",nextSpeed:250,nextEasing:"swing",nextMethod:"changeIn",prevEffect:"elastic",prevSpeed:250,prevEasing:"swing",prevMethod:"changeOut",helpers:{overlay:!0,title:!0},onCancel:n.noop,beforeLoad:n.noop,afterLoad:n.noop,beforeShow:n.noop,afterShow:n.noop,beforeChange:n.noop,beforeClose:n.noop,afterClose:n.noop},group:{},opts:{},previous:null,coming:null,current:null,isActive:!1,isOpen:!1,isOpened:!1,wrap:null,skin:null,outer:null,inner:null,player:{timer:null,isActive:!1},ajaxLoad:null,imgPreload:null,transitions:{},helpers:{},open:function(e,t){return e&&(n.isPlainObject(t)||(t={}),!1!==s.close(!0))?(n.isArray(e)||(e=d(e)?n(e).get():[e]),n.each(e,function(i,o){var a,l,u,c,f,h,m,g={};"object"===n.type(o)&&(o.nodeType&&(o=n(o)),d(o)?(g={href:o.data("fancybox-href")||o.attr("href"),title:o.data("fancybox-title")||o.attr("title"),isDom:!0,element:o},n.metadata&&n.extend(!0,g,o.metadata())):g=o),a=t.href||g.href||(p(o)?o:null),l=t.title!==r?t.title:g.title||"",u=t.content||g.content,c=u?"html":t.type||g.type,!c&&g.isDom&&(c=o.data("fancybox-type"),c||(f=o.prop("class").match(/fancybox\.(\w+)/),c=f?f[1]:null)),p(a)&&(c||(s.isImage(a)?c="image":s.isSWF(a)?c="swf":"#"===a.charAt(0)?c="inline":p(o)&&(c="html",u=o)),"ajax"===c&&(h=a.split(/\s+/,2),a=h.shift(),m=h.shift())),u||("inline"===c?a?u=n(p(a)?a.replace(/.*(?=#[^\s]+$)/,""):a):g.isDom&&(u=o):"html"===c?u=a:c||a||!g.isDom||(c="inline",u=o)),n.extend(g,{href:a,type:c,content:u,title:l,selector:m}),e[i]=g}),s.opts=n.extend(!0,{},s.defaults,t),t.keys!==r&&(s.opts.keys=t.keys?n.extend({},s.defaults.keys,t.keys):!1),s.group=e,s._start(s.opts.index)):void 0},cancel:function(){var e=s.coming;e&&!1!==s.trigger("onCancel")&&(s.hideLoading(),s.ajaxLoad&&s.ajaxLoad.abort(),s.ajaxLoad=null,s.imgPreload&&(s.imgPreload.onload=s.imgPreload.onerror=null),e.wrap&&e.wrap.stop(!0,!0).trigger("onReset").remove(),s.coming=null,s.current||s._afterZoomOut(e))},close:function(e){s.cancel(),!1!==s.trigger("beforeClose")&&(s.unbindEvents(),s.isActive&&(s.isOpen&&e!==!0?(s.isOpen=s.isOpened=!1,s.isClosing=!0,n(".fancybox-item, .fancybox-nav").remove(),s.wrap.stop(!0,!0).removeClass("fancybox-opened"),s.transitions[s.current.closeMethod]()):(n(".fancybox-wrap").stop(!0).trigger("onReset").remove(),s._afterZoomOut())))},play:function(e){var t=function(){clearTimeout(s.player.timer)},n=function(){t(),s.current&&s.player.isActive&&(s.player.timer=setTimeout(s.next,s.current.playSpeed))},r=function(){t(),a.unbind(".player"),s.player.isActive=!1,s.trigger("onPlayEnd")},i=function(){s.current&&(s.current.loop||s.current.index=i.index?"next":"prev"],s.router=n||"jumpto",i.loop&&(0>e&&(e=i.group.length+e%i.group.length),e%=i.group.length),i.group[e]!==r&&(s.cancel(),s._start(e)))},reposition:function(e,t){var r,i=s.current,o=i?i.wrap:null;o&&(r=s._getPosition(t),e&&"scroll"===e.type?(delete r.position,o.stop(!0,!0).animate(r,200)):(o.css(r),i.pos=n.extend({},i.dim,r)))},update:function(e){var t=e&&e.type,n=!t||"orientationchange"===t;n&&(clearTimeout(u),u=null),s.isOpen&&!u&&(u=setTimeout(function(){var r=s.current;r&&!s.isClosing&&(s.wrap.removeClass("fancybox-tmp"),(n||"load"===t||"resize"===t&&r.autoResize)&&s._setDimension(),"scroll"===t&&r.canShrink||s.reposition(e),s.trigger("onUpdate"),u=null)},n&&!c?0:300))},toggle:function(e){s.isOpen&&(s.current.fitToView="boolean"===n.type(e)?e:!s.current.fitToView,c&&(s.wrap.removeAttr("style").addClass("fancybox-tmp"),s.trigger("onUpdate")),s.update())},hideLoading:function(){a.unbind(".loading"),n("#fancybox-loading").remove()},showLoading:function(){var e,t;s.hideLoading(),e=n('
').click(s.cancel).appendTo("body"),a.bind("keydown.loading",function(e){27===(e.which||e.keyCode)&&(e.preventDefault(),s.cancel())}),s.defaults.fixed||(t=s.getViewport(),e.css({position:"absolute",top:.5*t.h+t.y,left:.5*t.w+t.x}))},getViewport:function(){var t=s.current&&s.current.locked||!1,n={x:o.scrollLeft(),y:o.scrollTop()};return t?(n.w=t[0].clientWidth,n.h=t[0].clientHeight):(n.w=c&&e.innerWidth?e.innerWidth:o.width(),n.h=c&&e.innerHeight?e.innerHeight:o.height()),n},unbindEvents:function(){s.wrap&&d(s.wrap)&&s.wrap.unbind(".fb"),a.unbind(".fb"),o.unbind(".fb")},bindEvents:function(){var e,t=s.current;t&&(o.bind("orientationchange.fb"+(c?"":" resize.fb")+(t.autoCenter&&!t.locked?" scroll.fb":""),s.update),e=t.keys,e&&a.bind("keydown.fb",function(i){var o=i.which||i.keyCode,a=i.target||i.srcElement;return 27===o&&s.coming?!1:void(i.ctrlKey||i.altKey||i.shiftKey||i.metaKey||a&&(a.type||n(a).is("[contenteditable]"))||n.each(e,function(e,a){return t.group.length>1&&a[o]!==r?(s[e](a[o]),i.preventDefault(),!1):n.inArray(o,a)>-1?(s[e](),i.preventDefault(),!1):void 0}))}),n.fn.mousewheel&&t.mouseWheel&&s.wrap.bind("mousewheel.fb",function(e,r,i,o){for(var a=e.target||null,l=n(a),u=!1;l.length&&!(u||l.is(".fancybox-skin")||l.is(".fancybox-wrap"));)u=h(l[0]),l=n(l).parent();0===r||u||s.group.length>1&&!t.canShrink&&(o>0||i>0?s.prev(o>0?"down":"left"):(0>o||0>i)&&s.next(0>o?"up":"right"),e.preventDefault())}))},trigger:function(e,t){var r,i=t||s.coming||s.current;if(i){if(n.isFunction(i[e])&&(r=i[e].apply(i,Array.prototype.slice.call(arguments,1))),r===!1)return!1;i.helpers&&n.each(i.helpers,function(t,r){r&&s.helpers[t]&&n.isFunction(s.helpers[t][e])&&s.helpers[t][e](n.extend(!0,{},s.helpers[t].defaults,r),i)}),a.trigger(e)}},isImage:function(e){return p(e)&&e.match(/(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg)((\?|#).*)?$)/i)},isSWF:function(e){return p(e)&&e.match(/\.(swf)((\?|#).*)?$/i)},_start:function(e){var t,r,i,o,a,l={};if(e=m(e),t=s.group[e]||null,!t)return!1;if(l=n.extend(!0,{},s.opts,t),o=l.margin,a=l.padding,"number"===n.type(o)&&(l.margin=[o,o,o,o]),"number"===n.type(a)&&(l.padding=[a,a,a,a]),l.modal&&n.extend(!0,l,{closeBtn:!1,closeClick:!1,nextClick:!1,arrows:!1,mouseWheel:!1,keys:null,helpers:{overlay:{closeClick:!1}}}),l.autoSize&&(l.autoWidth=l.autoHeight=!0),"auto"===l.width&&(l.autoWidth=!0),"auto"===l.height&&(l.autoHeight=!0),l.group=s.group,l.index=e,s.coming=l,!1===s.trigger("beforeLoad"))return void(s.coming=null);if(i=l.type,r=l.href,!i)return s.coming=null,s.current&&s.router&&"jumpto"!==s.router?(s.current.index=e,s[s.router](s.direction)):!1;if(s.isActive=!0,("image"===i||"swf"===i)&&(l.autoHeight=l.autoWidth=!1,l.scrolling="visible"),"image"===i&&(l.aspectRatio=!0),"iframe"===i&&c&&(l.scrolling="scroll"),l.wrap=n(l.tpl.wrap).addClass("fancybox-"+(c?"mobile":"desktop")+" fancybox-type-"+i+" fancybox-tmp "+l.wrapCSS).appendTo(l.parent||"body"),n.extend(l,{skin:n(".fancybox-skin",l.wrap),outer:n(".fancybox-outer",l.wrap),inner:n(".fancybox-inner",l.wrap)}),n.each(["Top","Right","Bottom","Left"],function(e,t){l.skin.css("padding"+t,g(l.padding[e]))}),s.trigger("onReady"),"inline"===i||"html"===i){if(!l.content||!l.content.length)return s._error("content")}else if(!r)return s._error("href");"image"===i?s._loadImage():"ajax"===i?s._loadAjax():"iframe"===i?s._loadIframe():s._afterLoad()},_error:function(e){n.extend(s.coming,{type:"html",autoWidth:!0,autoHeight:!0,minWidth:0,minHeight:0,scrolling:"no",hasError:e,content:s.coming.tpl.error}),s._afterLoad()},_loadImage:function(){var e=s.imgPreload=new Image;e.onload=function(){this.onload=this.onerror=null,s.coming.width=this.width/s.opts.pixelRatio,s.coming.height=this.height/s.opts.pixelRatio,s._afterLoad()},e.onerror=function(){this.onload=this.onerror=null,s._error("image")},e.src=s.coming.href,e.complete!==!0&&s.showLoading()},_loadAjax:function(){var e=s.coming;s.showLoading(),s.ajaxLoad=n.ajax(n.extend({},e.ajax,{url:e.href,error:function(e,t){s.coming&&"abort"!==t?s._error("ajax",e):s.hideLoading()},success:function(t,n){"success"===n&&(e.content=t,s._afterLoad())}}))},_loadIframe:function(){var e=s.coming,t=n(e.tpl.iframe.replace(/\{rnd\}/g,(new Date).getTime())).attr("scrolling",c?"auto":e.iframe.scrolling).attr("src",e.href);n(e.wrap).bind("onReset",function(){try{n(this).find("iframe").hide().attr("src","//about:blank").end().empty()}catch(e){}}),e.iframe.preload&&(s.showLoading(),t.one("load",function(){n(this).data("ready",1),c||n(this).bind("load.fb",s.update),n(this).parents(".fancybox-wrap").width("100%").removeClass("fancybox-tmp").show(),s._afterLoad()})),e.content=t.appendTo(e.inner),e.iframe.preload||s._afterLoad()},_preloadImages:function(){var e,t,n=s.group,r=s.current,i=n.length,o=r.preload?Math.min(r.preload,i-1):0;for(t=1;o>=t;t+=1)e=n[(r.index+t)%i],"image"===e.type&&e.href&&((new Image).src=e.href)},_afterLoad:function(){var e,t,r,i,o,a,l=s.coming,u=s.current,c="fancybox-placeholder";if(s.hideLoading(),l&&s.isActive!==!1){if(!1===s.trigger("afterLoad",l,u))return l.wrap.stop(!0).trigger("onReset").remove(),void(s.coming=null);switch(u&&(s.trigger("beforeChange",u),u.wrap.stop(!0).removeClass("fancybox-opened").find(".fancybox-item, .fancybox-nav").remove()),s.unbindEvents(),e=l,t=l.content,r=l.type,i=l.scrolling,n.extend(s,{wrap:e.wrap,skin:e.skin,outer:e.outer,inner:e.inner,current:e,previous:u}),o=e.href,r){case"inline":case"ajax":case"html":e.selector?t=n("
").html(t).find(e.selector):d(t)&&(t.data(c)||t.data(c,n('
').insertAfter(t).hide()),t=t.show().detach(),e.wrap.bind("onReset",function(){n(this).find(t).length&&t.hide().replaceAll(t.data(c)).data(c,!1)}));break;case"image":t=e.tpl.image.replace("{href}",o);break;case"swf":t='',a="",n.each(e.swf,function(e,n){t+='',a+=" "+e+'="'+n+'"'}),t+='"}d(t)&&t.parent().is(e.inner)||e.inner.append(t),s.trigger("beforeShow"),e.inner.css("overflow","yes"===i?"scroll":"no"===i?"hidden":i),s._setDimension(),s.reposition(),s.isOpen=!1,s.coming=null,s.bindEvents(),s.isOpened?u.prevMethod&&s.transitions[u.prevMethod]():n(".fancybox-wrap").not(e.wrap).stop(!0).trigger("onReset").remove(),s.transitions[s.isOpened?e.nextMethod:e.openMethod](),s._preloadImages()}},_setDimension:function(){var e,t,r,i,o,a,l,u,c,d,p,h,v,y,$,b=s.getViewport(),w=0,x=!1,C=!1,S=s.wrap,T=s.skin,k=s.inner,E=s.current,A=E.width,O=E.height,D=E.minWidth,N=E.minHeight,M=E.maxWidth,P=E.maxHeight,F=E.scrolling,I=E.scrollOutside?E.scrollbarWidth:0,_=E.margin,L=m(_[1]+_[3]),j=m(_[0]+_[2]);if(S.add(T).add(k).width("auto").height("auto").removeClass("fancybox-tmp"),e=m(T.outerWidth(!0)-T.width()),t=m(T.outerHeight(!0)-T.height()),r=L+e,i=j+t,o=f(A)?(b.w-r)*m(A)/100:A,a=f(O)?(b.h-i)*m(O)/100:O,"iframe"===E.type){if(y=E.content,E.autoHeight&&1===y.data("ready"))try{y[0].contentWindow.document.location&&(k.width(o).height(9999),$=y.contents().find("body"),I&&$.css("overflow-x","hidden"),a=$.outerHeight(!0)) +}catch(z){}}else(E.autoWidth||E.autoHeight)&&(k.addClass("fancybox-tmp"),E.autoWidth||k.width(o),E.autoHeight||k.height(a),E.autoWidth&&(o=k.width()),E.autoHeight&&(a=k.height()),k.removeClass("fancybox-tmp"));if(A=m(o),O=m(a),c=o/a,D=m(f(D)?m(D,"w")-r:D),M=m(f(M)?m(M,"w")-r:M),N=m(f(N)?m(N,"h")-i:N),P=m(f(P)?m(P,"h")-i:P),l=M,u=P,E.fitToView&&(M=Math.min(b.w-r,M),P=Math.min(b.h-i,P)),h=b.w-L,v=b.h-j,E.aspectRatio?(A>M&&(A=M,O=m(A/c)),O>P&&(O=P,A=m(O*c)),D>A&&(A=D,O=m(A/c)),N>O&&(O=N,A=m(O*c))):(A=Math.max(D,Math.min(A,M)),E.autoHeight&&"iframe"!==E.type&&(k.width(A),O=k.height()),O=Math.max(N,Math.min(O,P))),E.fitToView)if(k.width(A).height(O),S.width(A+e),d=S.width(),p=S.height(),E.aspectRatio)for(;(d>h||p>v)&&A>D&&O>N&&!(w++>19);)O=Math.max(N,Math.min(P,O-10)),A=m(O*c),D>A&&(A=D,O=m(A/c)),A>M&&(A=M,O=m(A/c)),k.width(A).height(O),S.width(A+e),d=S.width(),p=S.height();else A=Math.max(D,Math.min(A,A-(d-h))),O=Math.max(N,Math.min(O,O-(p-v)));I&&"auto"===F&&a>O&&h>A+e+I&&(A+=I),k.width(A).height(O),S.width(A+e),d=S.width(),p=S.height(),x=(d>h||p>v)&&A>D&&O>N,C=E.aspectRatio?l>A&&u>O&&o>A&&a>O:(l>A||u>O)&&(o>A||a>O),n.extend(E,{dim:{width:g(d),height:g(p)},origWidth:o,origHeight:a,canShrink:x,canExpand:C,wPadding:e,hPadding:t,wrapSpace:p-T.outerHeight(!0),skinSpace:T.height()-O}),!y&&E.autoHeight&&O>N&&P>O&&!C&&k.height("auto")},_getPosition:function(e){var t=s.current,n=s.getViewport(),r=t.margin,i=s.wrap.width()+r[1]+r[3],o=s.wrap.height()+r[0]+r[2],a={position:"absolute",top:r[0],left:r[3]};return t.autoCenter&&t.fixed&&!e&&o<=n.h&&i<=n.w?a.position="fixed":t.locked||(a.top+=n.y,a.left+=n.x),a.top=g(Math.max(a.top,a.top+(n.h-o)*t.topRatio)),a.left=g(Math.max(a.left,a.left+(n.w-i)*t.leftRatio)),a},_afterZoomIn:function(){var e=s.current;e&&(s.isOpen=s.isOpened=!0,s.wrap.css("overflow","visible").addClass("fancybox-opened"),s.update(),(e.closeClick||e.nextClick&&s.group.length>1)&&s.inner.css("cursor","pointer").bind("click.fb",function(t){n(t.target).is("a")||n(t.target).parent().is("a")||(t.preventDefault(),s[e.closeClick?"close":"next"]())}),e.closeBtn&&n(e.tpl.closeBtn).appendTo(s.skin).bind("click.fb",function(e){e.preventDefault(),s.close()}),e.arrows&&s.group.length>1&&((e.loop||e.index>0)&&n(e.tpl.prev).appendTo(s.outer).bind("click.fb",s.prev),(e.loop||e.index
').appendTo(s.coming?s.coming.parent:e.parent),this.fixed=!1,e.fixed&&s.defaults.fixed&&(this.overlay.addClass("fancybox-overlay-fixed"),this.fixed=!0)},open:function(e){var t=this;e=n.extend({},this.defaults,e),this.overlay?this.overlay.unbind(".overlay").width("auto").height("auto"):this.create(e),this.fixed||(o.bind("resize.overlay",n.proxy(this.update,this)),this.update()),e.closeClick&&this.overlay.bind("click.overlay",function(e){return n(e.target).hasClass("fancybox-overlay")?(s.isActive?s.close():t.close(),!1):void 0}),this.overlay.css(e.css).show()},close:function(){var e,t;o.unbind("resize.overlay"),this.el.hasClass("fancybox-lock")&&(n(".fancybox-margin").removeClass("fancybox-margin"),e=o.scrollTop(),t=o.scrollLeft(),this.el.removeClass("fancybox-lock"),o.scrollTop(e).scrollLeft(t)),n(".fancybox-overlay").remove().hide(),n.extend(this,{overlay:null,fixed:!1})},update:function(){var e,n="100%";this.overlay.width(n).height("100%"),l?(e=Math.max(t.documentElement.offsetWidth,t.body.offsetWidth),a.width()>e&&(n=a.width())):a.width()>o.width()&&(n=a.width()),this.overlay.width(n).height(a.height())},onReady:function(e,t){var r=this.overlay;n(".fancybox-overlay").stop(!0,!0),r||this.create(e),e.locked&&this.fixed&&t.fixed&&(r||(this.margin=a.height()>o.height()?n("html").css("margin-right").replace("px",""):!1),t.locked=this.overlay.append(t.wrap),t.fixed=!1),e.showEarly===!0&&this.beforeShow.apply(this,arguments)},beforeShow:function(e,t){var r,i;t.locked&&(this.margin!==!1&&(n("*").filter(function(){return"fixed"===n(this).css("position")&&!n(this).hasClass("fancybox-overlay")&&!n(this).hasClass("fancybox-wrap")}).addClass("fancybox-margin"),this.el.addClass("fancybox-margin")),r=o.scrollTop(),i=o.scrollLeft(),this.el.addClass("fancybox-lock"),o.scrollTop(r).scrollLeft(i)),this.open(e)},onUpdate:function(){this.fixed||this.update()},afterClose:function(e){this.overlay&&!s.coming&&this.overlay.fadeOut(e.speedOut,n.proxy(this.close,this))}},s.helpers.title={defaults:{type:"float",position:"bottom"},beforeShow:function(e){var t,r,i=s.current,o=i.title,a=e.type;if(n.isFunction(o)&&(o=o.call(i.element,i)),p(o)&&""!==n.trim(o)){switch(t=n('
'+o+"
"),a){case"inside":r=s.skin;break;case"outside":r=s.wrap;break;case"over":r=s.inner;break;default:r=s.skin,t.appendTo("body"),l&&t.width(t.width()),t.wrapInner(''),s.current.margin[2]+=Math.abs(m(t.css("margin-bottom")))}t["top"===e.position?"prependTo":"appendTo"](r)}}},n.fn.fancybox=function(e){var t,r=n(this),i=this.selector||"",o=function(o){var a,l,u=n(this).blur(),c=t;o.ctrlKey||o.altKey||o.shiftKey||o.metaKey||u.is(".fancybox-wrap")||(a=e.groupAttr||"data-fancybox-group",l=u.attr(a),l||(a="rel",l=u.get(0)[a]),l&&""!==l&&"nofollow"!==l&&(u=i.length?n(i):r,u=u.filter("["+a+'="'+l+'"]'),c=u.index(this)),e.index=c,s.open(u,e)!==!1&&o.preventDefault())};return e=e||{},t=e.index||0,i&&e.live!==!1?a.undelegate(i,"click.fb-start").delegate(i+":not('.fancybox-item, .fancybox-nav')","click.fb-start",o):r.unbind("click.fb-start").bind("click.fb-start",o),this.filter("[data-fancybox-start=1]").trigger("click"),this},a.ready(function(){var t,o;n.scrollbarWidth===r&&(n.scrollbarWidth=function(){var e=n('
').appendTo("body"),t=e.children(),r=t.innerWidth()-t.height(99).innerWidth();return e.remove(),r}),n.support.fixedPosition===r&&(n.support.fixedPosition=function(){var e=n('
').appendTo("body"),t=20===e[0].offsetTop||15===e[0].offsetTop;return e.remove(),t}()),n.extend(s.defaults,{scrollbarWidth:n.scrollbarWidth(),fixed:n.support.fixedPosition,parent:n("body")}),t=n(e).width(),i.addClass("fancybox-lock-test"),o=n(e).width(),i.removeClass("fancybox-lock-test"),n("").appendTo("head")})}(window,document,jQuery),function(e,t){"function"==typeof define&&define.amd?define(t):"object"==typeof exports?module.exports=t():e.Sifter=t()}(this,function(){var e=function(e,t){this.items=e,this.settings=t||{diacritics:!0}};e.prototype.tokenize=function(e){if(e=r(String(e||"").toLowerCase()),!e||!e.length)return[];var t,n,o,s,l=[],u=e.split(/ +/);for(t=0,n=u.length;n>t;t++){if(o=i(u[t]),this.settings.diacritics)for(s in a)a.hasOwnProperty(s)&&(o=o.replace(new RegExp(s,"g"),a[s]));l.push({string:u[t],regex:new RegExp(o,"i")})}return l},e.prototype.iterator=function(e,t){var n;n=o(e)?Array.prototype.forEach||function(e){for(var t=0,n=this.length;n>t;t++)e(this[t],t,this)}:function(e){for(var t in this)this.hasOwnProperty(t)&&e(this[t],t,this)},n.apply(e,[t])},e.prototype.getScoreFunction=function(e,t){var n,r,i,o;n=this,e=n.prepareSearch(e,t),i=e.tokens,r=e.options.fields,o=i.length;var a=function(e,t){var n,r;return e?(e=String(e||""),r=e.search(t.regex),-1===r?0:(n=t.string.length/e.length,0===r&&(n+=.5),n)):0},s=function(){var e=r.length;return e?1===e?function(e,t){return a(t[r[0]],e)}:function(t,n){for(var i=0,o=0;e>i;i++)o+=a(n[r[i]],t);return o/e}:function(){return 0}}();return o?1===o?function(e){return s(i[0],e)}:"and"===e.options.conjunction?function(e){for(var t,n=0,r=0;o>n;n++){if(t=s(i[n],e),0>=t)return 0;r+=t}return r/o}:function(e){for(var t=0,n=0;o>t;t++)n+=s(i[t],e);return n/o}:function(){return 0}},e.prototype.getSortFunction=function(e,n){var r,i,o,a,s,l,u,c,d,p,f;if(o=this,e=o.prepareSearch(e,n),f=!e.query&&n.sort_empty||n.sort,d=function(e,t){return"$score"===e?t.score:o.items[t.id][e]},s=[],f)for(r=0,i=f.length;i>r;r++)(e.query||"$score"!==f[r].field)&&s.push(f[r]);if(e.query){for(p=!0,r=0,i=s.length;i>r;r++)if("$score"===s[r].field){p=!1;break}p&&s.unshift({field:"$score",direction:"desc"})}else for(r=0,i=s.length;i>r;r++)if("$score"===s[r].field){s.splice(r,1);break}for(c=[],r=0,i=s.length;i>r;r++)c.push("desc"===s[r].direction?-1:1);return l=s.length,l?1===l?(a=s[0].field,u=c[0],function(e,n){return u*t(d(a,e),d(a,n))}):function(e,n){var r,i,o;for(r=0;l>r;r++)if(o=s[r].field,i=c[r]*t(d(o,e),d(o,n)))return i;return 0}:null},e.prototype.prepareSearch=function(e,t){if("object"==typeof e)return e;t=n({},t);var r=t.fields,i=t.sort,a=t.sort_empty;return r&&!o(r)&&(t.fields=[r]),i&&!o(i)&&(t.sort=[i]),a&&!o(a)&&(t.sort_empty=[a]),{options:t,query:String(e||"").toLowerCase(),tokens:this.tokenize(e),total:0,items:[]}},e.prototype.search=function(e,t){var n,r,i,o,a=this;return r=this.prepareSearch(e,t),t=r.options,e=r.query,o=t.score||a.getScoreFunction(r),e.length?a.iterator(a.items,function(e,i){n=o(e),(t.filter===!1||n>0)&&r.items.push({score:n,id:i})}):a.iterator(a.items,function(e,t){r.items.push({score:1,id:t})}),i=a.getSortFunction(r,t),i&&r.items.sort(i),r.total=r.items.length,"number"==typeof t.limit&&(r.items=r.items.slice(0,t.limit)),r};var t=function(e,t){return"number"==typeof e&&"number"==typeof t?e>t?1:t>e?-1:0:(e=s(String(e||"")),t=s(String(t||"")),e>t?1:t>e?-1:0)},n=function(e){var t,n,r,i;for(t=1,n=arguments.length;n>t;t++)if(i=arguments[t])for(r in i)i.hasOwnProperty(r)&&(e[r]=i[r]);return e},r=function(e){return(e+"").replace(/^\s+|\s+$|/g,"")},i=function(e){return(e+"").replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")},o=Array.isArray||$&&$.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},a={a:"[aÀÁÂÃÄÅàáâãäåĀāąĄ]",c:"[cÇçćĆčČ]",d:"[dđĐďĎ]",e:"[eÈÉÊËèéêëěĚĒēęĘ]",i:"[iÌÍÎÏìíîïĪī]",l:"[lłŁ]",n:"[nÑñňŇńŃ]",o:"[oÒÓÔÕÕÖØòóôõöøŌō]",r:"[rřŘ]",s:"[sŠšśŚ]",t:"[tťŤ]",u:"[uÙÚÛÜùúûüůŮŪū]",y:"[yŸÿýÝ]",z:"[zŽžżŻźŹ]"},s=function(){var e,t,n,r,i="",o={};for(n in a)if(a.hasOwnProperty(n))for(r=a[n].substring(2,a[n].length-1),i+=r,e=0,t=r.length;t>e;e++)o[r.charAt(e)]=n;var s=new RegExp("["+i+"]","g");return function(e){return e.replace(s,function(e){return o[e]}).toLowerCase()}}();return e}),function(e,t){"function"==typeof define&&define.amd?define(t):"object"==typeof exports?module.exports=t():e.MicroPlugin=t()}(this,function(){var e={};e.mixin=function(e){e.plugins={},e.prototype.initializePlugins=function(e){var n,r,i,o=this,a=[];if(o.plugins={names:[],settings:{},requested:{},loaded:{}},t.isArray(e))for(n=0,r=e.length;r>n;n++)"string"==typeof e[n]?a.push(e[n]):(o.plugins.settings[e[n].name]=e[n].options,a.push(e[n].name));else if(e)for(i in e)e.hasOwnProperty(i)&&(o.plugins.settings[i]=e[i],a.push(i));for(;a.length;)o.require(a.shift())},e.prototype.loadPlugin=function(t){var n=this,r=n.plugins,i=e.plugins[t];if(!e.plugins.hasOwnProperty(t))throw new Error('Unable to find "'+t+'" plugin');r.requested[t]=!0,r.loaded[t]=i.fn.apply(n,[n.plugins.settings[t]||{}]),r.names.push(t)},e.prototype.require=function(e){var t=this,n=t.plugins;if(!t.plugins.loaded.hasOwnProperty(e)){if(n.requested[e])throw new Error('Plugin has circular dependency ("'+e+'")');t.loadPlugin(e)}return n.loaded[e]},e.define=function(t,n){e.plugins[t]={name:t,fn:n}}};var t={isArray:Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}};return e}),function(e){"function"==typeof define&&define.amd?define("picker",["jquery"],e):"object"==typeof exports?module.exports=e(require("jquery")):this.Picker=e(jQuery)}(function(e){function t(o,a,s,c){function d(){return t._.node("div",t._.node("div",t._.node("div",t._.node("div",x.component.nodes(v.open),$.box),$.wrap),$.frame),$.holder)}function p(){b.data(a,x).addClass($.input).val(b.data("value")?x.get("select",y.format):o.value).on("focus."+v.id+" click."+v.id,m),y.editable||b.on("keydown."+v.id,function(e){var t=e.keyCode,n=/^(8|46)$/.test(t);return 27==t?(x.close(),!1):void((32==t||n||!v.open&&x.component.key[t])&&(e.preventDefault(),e.stopPropagation(),n?x.clear().close():x.open()))}),i(o,{haspopup:!0,expanded:!1,readonly:!1,owns:o.id+"_root"+(x._hidden?" "+x._hidden.id:"")})}function f(){x.$root.on({focusin:function(e){x.$root.removeClass($.focused),e.stopPropagation()},"mousedown click":function(t){var n=t.target;n!=x.$root.children()[0]&&(t.stopPropagation(),"mousedown"!=t.type||e(n).is(":input")||"OPTION"==n.nodeName||(t.preventDefault(),o.focus()))}}).on("click","[data-pick], [data-nav], [data-clear], [data-close]",function(){var t=e(this),n=t.data(),r=t.hasClass($.navDisabled)||t.hasClass($.disabled),i=document.activeElement;i=i&&(i.type||i.href)&&i,(r||i&&!e.contains(x.$root[0],i))&&o.focus(),!r&&n.nav?x.set("highlight",x.component.item.highlight,{nav:n.nav}):!r&&"pick"in n?x.set("select",n.pick).close(!0):n.clear?x.clear().close(!0):n.close&&x.close(!0)}),i(x.$root[0],"hidden",!0)}function h(){var t;y.hiddenName===!0?(t=o.name,o.name=""):(t=["string"==typeof y.hiddenPrefix?y.hiddenPrefix:"","string"==typeof y.hiddenSuffix?y.hiddenSuffix:"_submit"],t=t[0]+o.name+t[1]),x._hidden=e('")[0],b.on("change."+v.id,function(){x._hidden.value=o.value?x.get("select",y.formatSubmit):""}).after(x._hidden)}function m(e){e.stopPropagation(),"focus"==e.type&&x.$root.addClass($.focused),x.open()}if(!o)return t;var g=!1,v={id:o.id||"P"+Math.abs(~~(Math.random()*new Date))},y=s?e.extend(!0,{},s.defaults,c):c||{},$=e.extend({},t.klasses(),y.klass),b=e(o),w=function(){return this.start()},x=w.prototype={constructor:w,$node:b,start:function(){return v&&v.start?x:(v.methods={},v.start=!0,v.open=!1,v.type=o.type,o.autofocus=o==document.activeElement,o.readOnly=!y.editable,o.id=o.id||v.id,"text"!=o.type&&(o.type="text"),x.component=new s(x,y),x.$root=e(t._.node("div",d(),$.picker,'id="'+o.id+'_root"')),f(),y.formatSubmit&&h(),p(),y.container?e(y.container).append(x.$root):b.after(x.$root),x.on({start:x.component.onStart,render:x.component.onRender,stop:x.component.onStop,open:x.component.onOpen,close:x.component.onClose,set:x.component.onSet}).on({start:y.onStart,render:y.onRender,stop:y.onStop,open:y.onOpen,close:y.onClose,set:y.onSet}),g=n(x.$root.children()[0]),o.autofocus&&x.open(),x.trigger("start").trigger("render"))},render:function(e){return e?x.$root.html(d()):x.$root.find("."+$.box).html(x.component.nodes(v.open)),x.trigger("render")},stop:function(){return v.start?(x.close(),x._hidden&&x._hidden.parentNode.removeChild(x._hidden),x.$root.remove(),b.removeClass($.input).removeData(a),setTimeout(function(){b.off("."+v.id)},0),o.type=v.type,o.readOnly=!1,x.trigger("stop"),v.methods={},v.start=!1,x):x},open:function(n){return v.open?x:(b.addClass($.active),i(o,"expanded",!0),setTimeout(function(){x.$root.addClass($.opened),i(x.$root[0],"hidden",!1)},0),n!==!1&&(v.open=!0,g&&u.css("overflow","hidden").css("padding-right","+="+r()),b.trigger("focus"),l.on("click."+v.id+" focusin."+v.id,function(e){var t=e.target;t!=o&&t!=document&&3!=e.which&&x.close(t===x.$root.children()[0])}).on("keydown."+v.id,function(n){var r=n.keyCode,i=x.component.key[r],a=n.target;27==r?x.close(!0):a!=o||!i&&13!=r?e.contains(x.$root[0],a)&&13==r&&(n.preventDefault(),a.click()):(n.preventDefault(),i?t._.trigger(x.component.key.go,x,[t._.trigger(i)]):x.$root.find("."+$.highlighted).hasClass($.disabled)||x.set("select",x.component.item.highlight).close())})),x.trigger("open"))},close:function(e){return e&&(b.off("focus."+v.id).trigger("focus"),setTimeout(function(){b.on("focus."+v.id,m)},0)),b.removeClass($.active),i(o,"expanded",!1),setTimeout(function(){x.$root.removeClass($.opened+" "+$.focused),i(x.$root[0],"hidden",!0)},0),v.open?(v.open=!1,g&&u.css("overflow","").css("padding-right","-="+r()),l.off("."+v.id),x.trigger("close")):x},clear:function(e){return x.set("clear",null,e)},set:function(t,n,r){var i,o,a=e.isPlainObject(t),s=a?t:{};if(r=a&&e.isPlainObject(n)?n:r||{},t){a||(s[t]=n);for(i in s)o=s[i],i in x.component.item&&(void 0===o&&(o=null),x.component.set(i,o,r)),("select"==i||"clear"==i)&&b.val("clear"==i?"":x.get(i,y.format)).trigger("change");x.render()}return r.muted?x:x.trigger("set",s)},get:function(e,n){if(e=e||"value",null!=v[e])return v[e];if("value"==e)return o.value;if(e in x.component.item){if("string"==typeof n){var r=x.component.get(e);return r?t._.trigger(x.component.formats.toString,x.component,[n,r]):""}return x.component.get(e)}},on:function(t,n,r){var i,o,a=e.isPlainObject(t),s=a?t:{};if(t){a||(s[t]=n);for(i in s)o=s[i],r&&(i="_"+i),v.methods[i]=v.methods[i]||[],v.methods[i].push(o)}return x},off:function(){var e,t,n=arguments;for(e=0,namesCount=n.length;e').appendTo("body"),n=t[0].offsetWidth;t.css("overflow","scroll");var r=e('
').appendTo(t),i=r[0].offsetWidth;return t.remove(),n-i}function i(t,n,r){if(e.isPlainObject(n))for(var i in n)o(t,i,n[i]);else o(t,n,r)}function o(e,t,n){e.setAttribute(("role"==t?"":"aria-")+t,n)}function a(t,n){e.isPlainObject(t)||(t={attribute:n}),n="";for(var r in t){var i=("role"==r?"":"aria-")+r,o=t[r];n+=null==o?"":i+'="'+t[r]+'"'}return n}var s=e(window),l=e(document),u=e(document.documentElement);return t.klasses=function(e){return e=e||"picker",{picker:e,opened:e+"--opened",focused:e+"--focused",input:e+"__input",active:e+"__input--active",holder:e+"__holder",frame:e+"__frame",wrap:e+"__wrap",box:e+"__box"}},t._={group:function(e){for(var n,r="",i=t._.trigger(e.min,e);i<=t._.trigger(e.max,e,[i]);i+=e.i)n=t._.trigger(e.item,e,[i]),r+=t._.node(e.node,n[0],n[1],n[2]);return r},node:function(t,n,r,i){return n?(n=e.isArray(n)?n.join(""):n,r=r?' class="'+r+'"':"",i=i?" "+i:"","<"+t+r+i+">"+n+""):""},lead:function(e){return(10>e?"0":"")+e},trigger:function(e,t,n){return"function"==typeof e?e.apply(t,n||[]):e},digits:function(e){return/\d/.test(e[1])?2:1},isDate:function(e){return{}.toString.call(e).indexOf("Date")>-1&&this.isInteger(e.getUTCDate())},isInteger:function(e){return{}.toString.call(e).indexOf("Number")>-1&&e%1===0},ariaAttr:a},t.extend=function(n,r){e.fn[n]=function(i,o){var a=this.data(n);return"picker"==i?a:a&&"string"==typeof i?t._.trigger(a[i],a,[o]):this.each(function(){var o=e(this);o.data(n)||new t(this,n,r,i)})},e.fn[n].defaults=r.defaults},t}),function(e){"function"==typeof define&&define.amd?define(["picker","jquery"],e):"object"==typeof exports?module.exports=e(require("./picker.js"),require("jquery")):e(Picker,jQuery)}(function(e,t){function n(e,t){var n=this,r=e.$node[0],i=r.value,o=e.$node.data("value"),a=o||i,s=o?t.formatSubmit:t.format,l=function(){return r.currentStyle?"rtl"==r.currentStyle.direction:"rtl"==getComputedStyle(e.$root[0]).direction};n.settings=t,n.$node=e.$node,n.queue={min:"measure create",max:"measure create",now:"now create",select:"parse create validate",highlight:"parse navigate create validate",view:"parse create validate viewset",disable:"deactivate",enable:"activate"},n.item={},n.item.clear=null,n.item.disable=(t.disable||[]).slice(0),n.item.enable=-function(e){return e[0]===!0?e.shift():-1}(n.item.disable),n.set("min",t.min).set("max",t.max).set("now"),a?n.set("select",a,{format:s}):n.set("select",null).set("highlight",n.item.now),n.key={40:7,38:-7,39:function(){return l()?-1:1},37:function(){return l()?1:-1},go:function(e){var t=n.item.highlight,r=new Date(Date.UTC(t.year,t.month,t.date+e));n.set("highlight",r,{interval:e}),this.render()}},e.on("render",function(){e.$root.find("."+t.klass.selectMonth).on("change",function(){var n=this.value;n&&(e.set("highlight",[e.get("view").year,n,e.get("highlight").date]),e.$root.find("."+t.klass.selectMonth).trigger("focus"))}),e.$root.find("."+t.klass.selectYear).on("change",function(){var n=this.value;n&&(e.set("highlight",[n,e.get("view").month,e.get("highlight").date]),e.$root.find("."+t.klass.selectYear).trigger("focus"))})},1).on("open",function(){var r="";n.disabled(n.get("now"))&&(r=":not(."+t.klass.buttonToday+")"),e.$root.find("button"+r+", select").attr("disabled",!1)},1).on("close",function(){e.$root.find("button, select").attr("disabled",!0)},1)}var r=7,i=6,o=e._;n.prototype.set=function(e,t,n){var r=this,i=r.item;return null===t?("clear"==e&&(e="select"),i[e]=t,r):(i["enable"==e?"disable":"flip"==e?"enable":e]=r.queue[e].split(" ").map(function(i){return t=r[i](e,t,n)}).pop(),"select"==e?r.set("highlight",i.select,n):"highlight"==e?r.set("view",i.highlight,n):e.match(/^(flip|min|max|disable|enable)$/)&&(i.select&&r.disabled(i.select)&&r.set("select",i.select,n),i.highlight&&r.disabled(i.highlight)&&r.set("highlight",i.highlight,n)),r)},n.prototype.get=function(e){return this.item[e]},n.prototype.create=function(e,n,r){var i,a=this;return n=void 0===n?e:n,n==-1/0||1/0==n?i=n:t.isPlainObject(n)&&o.isInteger(n.pick)?n=n.obj:t.isArray(n)?(n=new Date(Date.UTC(n[0],n[1],n[2])),n=o.isDate(n)?n:a.create().obj):n=o.isInteger(n)?a.normalize(new Date(n),r):o.isDate(n)?a.normalize(n,r):a.now(e,n,r),{year:i||n.getUTCFullYear(),month:i||n.getUTCMonth(),date:i||n.getUTCDate(),day:i||n.getUTCDay(),obj:i||n,pick:i||n.getTime()}},n.prototype.createRange=function(e,n){var r=this,i=function(e){return e===!0||t.isArray(e)||o.isDate(e)?r.create(e):e};return o.isInteger(e)||(e=i(e)),o.isInteger(n)||(n=i(n)),o.isInteger(e)&&t.isPlainObject(n)?e=[n.year,n.month,n.date+e]:o.isInteger(n)&&t.isPlainObject(e)&&(n=[e.year,e.month,e.date+n]),{from:i(e),to:i(n)}},n.prototype.withinRange=function(e,t){return e=this.createRange(e.from,e.to),t.pick>=e.from.pick&&t.pick<=e.to.pick},n.prototype.overlapRanges=function(e,t){var n=this;return e=n.createRange(e.from,e.to),t=n.createRange(t.from,t.to),n.withinRange(e,t.from)||n.withinRange(e,t.to)||n.withinRange(t,e.from)||n.withinRange(t,e.to)},n.prototype.now=function(e,t,n){return t=new Date,n&&n.rel&&t.setUTCDate(t.getUTCDate()+n.rel),this.normalize(t,n)},n.prototype.navigate=function(e,n,r){var i,o,a,s,l=t.isArray(n),u=t.isPlainObject(n),c=this.item.view;if(l||u){for(u?(o=n.year,a=n.month,s=n.date):(o=+n[0],a=+n[1],s=+n[2]),r&&r.nav&&c&&c.month!==a&&(o=c.year,a=c.month),i=new Date(Date.UTC(o,a+(r&&r.nav?r.nav:0),1)),o=i.getUTCFullYear(),a=i.getUTCMonth();new Date(Date.UTC(o,a,s)).getUTCMonth()!==a;)s-=1;n=[o,a,s]}return n},n.prototype.normalize=function(e){return e.setUTCHours(0,0,0,0),e},n.prototype.measure=function(e,t){var n=this;return t?"string"==typeof t?t=n.parse(e,t):o.isInteger(t)&&(t=n.now(e,t,{rel:t})):t="min"==e?-1/0:1/0,t},n.prototype.viewset=function(e,t){return this.create([t.year,t.month,1])},n.prototype.validate=function(e,n,r){var i,a,s,l,u=this,c=n,d=r&&r.interval?r.interval:1,p=-1===u.item.enable,f=u.item.min,h=u.item.max,m=p&&u.item.disable.filter(function(e){if(t.isArray(e)){var r=u.create(e).pick;rn.pick&&(a=!0)}return o.isInteger(e)}).length;if((!r||!r.nav)&&(!p&&u.disabled(n)||p&&u.disabled(n)&&(m||i||a)||!p&&(n.pick<=f.pick||n.pick>=h.pick)))for(p&&!m&&(!a&&d>0||!i&&0>d)&&(d*=-1);u.disabled(n)&&(Math.abs(d)>1&&(n.monthc.month)&&(n=c,d=d>0?1:-1),n.pick<=f.pick?(s=!0,d=1,n=u.create([f.year,f.month,f.date+(n.pick===f.pick?0:-1)])):n.pick>=h.pick&&(l=!0,d=-1,n=u.create([h.year,h.month,h.date+(n.pick===h.pick?0:1)])),!s||!l);)n=u.create([n.year,n.month,n.date+d]);return n},n.prototype.disabled=function(e){var n=this,r=n.item.disable.filter(function(r){return o.isInteger(r)?e.day===(n.settings.firstDay?r:r-1)%7:t.isArray(r)||o.isDate(r)?e.pick===n.create(r).pick:t.isPlainObject(r)?n.withinRange(r,e):void 0});return r=r.length&&!r.filter(function(e){return t.isArray(e)&&"inverted"==e[3]||t.isPlainObject(e)&&e.inverted}).length,-1===n.item.enable?!r:r||e.pickn.item.max.pick},n.prototype.parse=function(e,t,n){var r=this,i={};return t&&"string"==typeof t?(n&&n.format||(n=n||{},n.format=r.settings.format),r.formats.toArray(n.format).map(function(e){var n=r.formats[e],a=n?o.trigger(n,r,[t,i]):e.replace(/^!/,"").length;n&&(i[e]=t.substr(0,a)),t=t.substr(a)}),[i.yyyy||i.yy,+(i.mm||i.m)-1,i.dd||i.d]):t},n.prototype.formats=function(){function e(e,t,n){var r=e.match(/\w+/)[0];return n.mm||n.m||(n.m=t.indexOf(r)+1),r.length}function t(e){return e.match(/\w+/)[0].length}return{d:function(e,t){return e?o.digits(e):t.date},dd:function(e,t){return e?2:o.lead(t.date)},ddd:function(e,n){return e?t(e):this.settings.weekdaysShort[n.day]},dddd:function(e,n){return e?t(e):this.settings.weekdaysFull[n.day]},m:function(e,t){return e?o.digits(e):t.month+1},mm:function(e,t){return e?2:o.lead(t.month+1)},mmm:function(t,n){var r=this.settings.monthsShort;return t?e(t,r,n):r[n.month]},mmmm:function(t,n){var r=this.settings.monthsFull;return t?e(t,r,n):r[n.month]},yy:function(e,t){return e?2:(""+t.year).slice(2)},yyyy:function(e,t){return e?4:t.year},toArray:function(e){return e.split(/(d{1,4}|m{1,4}|y{4}|yy|!.)/g)},toString:function(e,t){var n=this;return n.formats.toArray(e).map(function(e){return o.trigger(n.formats[e],n,[0,t])||e.replace(/^!/,"")}).join("")}}}(),n.prototype.isDateExact=function(e,n){var r=this;return o.isInteger(e)&&o.isInteger(n)||"boolean"==typeof e&&"boolean"==typeof n?e===n:(o.isDate(e)||t.isArray(e))&&(o.isDate(n)||t.isArray(n))?r.create(e).pick===r.create(n).pick:t.isPlainObject(e)&&t.isPlainObject(n)?r.isDateExact(e.from,n.from)&&r.isDateExact(e.to,n.to):!1},n.prototype.isDateOverlap=function(e,n){var r=this,i=r.settings.firstDay?1:0;return o.isInteger(e)&&(o.isDate(n)||t.isArray(n))?(e=e%7+i,e===r.create(n).day+1):o.isInteger(n)&&(o.isDate(e)||t.isArray(e))?(n=n%7+i,n===r.create(e).day+1):t.isPlainObject(e)&&t.isPlainObject(n)?r.overlapRanges(e,n):!1},n.prototype.flipEnable=function(e){var t=this.item;t.enable=e||(-1==t.enable?1:-1)},n.prototype.deactivate=function(e,n){var r=this,i=r.item.disable.slice(0);return"flip"==n?r.flipEnable():n===!1?(r.flipEnable(1),i=[]):n===!0?(r.flipEnable(-1),i=[]):n.map(function(e){for(var n,a=0;al;l+=1){if(s=i[l],r.isDateExact(s,e)){n=i[l]=null,u=!0;break}if(r.isDateOverlap(s,e)){t.isPlainObject(e)?(e.inverted=!0,n=e):t.isArray(e)?(n=e,n[3]||n.push("inverted")):o.isDate(e)&&(n=[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),"inverted"]);break}}if(n)for(l=0;a>l;l+=1)if(r.isDateExact(i[l],e)){i[l]=null;break}if(u)for(l=0;a>l;l+=1)if(r.isDateOverlap(i[l],e)){i[l]=null;break}n&&i.push(n)}),i.filter(function(e){return null!=e})},n.prototype.nodes=function(e){var t=this,n=t.settings,a=t.item,s=a.now,l=a.select,u=a.highlight,c=a.view,d=a.disable,p=a.min,f=a.max,h=function(e,t){return n.firstDay&&(e.push(e.shift()),t.push(t.shift())),o.node("thead",o.node("tr",o.group({min:0,max:r-1,i:1,node:"th",item:function(r){return[e[r],n.klass.weekdays,'scope=col title="'+t[r]+'"']}})))}((n.showWeekdaysFull?n.weekdaysFull:n.weekdaysShort).slice(0),n.weekdaysFull.slice(0)),m=function(e){return o.node("div"," ",n.klass["nav"+(e?"Next":"Prev")]+(e&&c.year>=f.year&&c.month>=f.month||!e&&c.year<=p.year&&c.month<=p.month?" "+n.klass.navDisabled:""),"data-nav="+(e||-1)+" "+o.ariaAttr({role:"button",controls:t.$node[0].id+"_table"})+' title="'+(e?n.labelMonthNext:n.labelMonthPrev)+'"')},g=function(){var r=n.showMonthsShort?n.monthsShort:n.monthsFull;return n.selectMonths?o.node("select",o.group({min:0,max:11,i:1,node:"option",item:function(e){return[r[e],0,"value="+e+(c.month==e?" selected":"")+(c.year==p.year&&ef.month?" disabled":"")]}}),n.klass.selectMonth,(e?"":"disabled")+" "+o.ariaAttr({controls:t.$node[0].id+"_table"})+' title="'+n.labelMonthSelect+'"'):o.node("div",r[c.month],n.klass.month)},v=function(){var r=c.year,i=n.selectYears===!0?5:~~(n.selectYears/2);if(i){var a=p.year,s=f.year,l=r-i,u=r+i;if(a>l&&(u+=a-l,l=a),u>s){var d=l-a,h=u-s;l-=d>h?h:d,u=s}return o.node("select",o.group({min:l,max:u,i:1,node:"option",item:function(e){return[e,0,"value="+e+(r==e?" selected":"")]}}),n.klass.selectYear,(e?"":"disabled")+" "+o.ariaAttr({controls:t.$node[0].id+"_table"})+' title="'+n.labelYearSelect+'"')}return o.node("div",r,n.klass.year)};return o.node("div",(n.selectYears?v()+g():g()+v())+m()+m(1),n.klass.header)+o.node("table",h+o.node("tbody",o.group({min:0,max:i-1,i:1,node:"tr",item:function(e){var i=n.firstDay&&0===t.create([c.year,c.month,1]).day?-7:0;return[o.group({min:r*e-c.day+i+1,max:function(){return this.min+r-1},i:1,node:"td",item:function(e){e=t.create([c.year,c.month,e+(n.firstDay?1:0)]); +var r=l&&l.pick==e.pick,i=u&&u.pick==e.pick,a=d&&t.disabled(e)||e.pickf.pick;return[o.node("div",e.date,function(t){return t.push(c.month==e.month?n.klass.infocus:n.klass.outfocus),s.pick==e.pick&&t.push(n.klass.now),r&&t.push(n.klass.selected),i&&t.push(n.klass.highlighted),a&&t.push(n.klass.disabled),t.join(" ")}([n.klass.day]),"data-pick="+e.pick+" "+o.ariaAttr({role:"gridcell",selected:r&&t.$node.val()===o.trigger(t.formats.toString,t,[n.format,e])?!0:null,activedescendant:i?!0:null,disabled:a?!0:null})),"",o.ariaAttr({role:"presentation"})]}})]}})),n.klass.table,'id="'+t.$node[0].id+'_table" '+o.ariaAttr({role:"grid",controls:t.$node[0].id,readonly:!0}))+o.node("div",o.node("button",n.today,n.klass.buttonToday,"type=button data-pick="+s.pick+(e&&!t.disabled(s)?"":" disabled")+" "+o.ariaAttr({controls:t.$node[0].id}))+o.node("button",n.clear,n.klass.buttonClear,"type=button data-clear=1"+(e?"":" disabled")+" "+o.ariaAttr({controls:t.$node[0].id}))+o.node("button",n.close,n.klass.buttonClose,"type=button data-close=true "+(e?"":" disabled")+" "+o.ariaAttr({controls:t.$node[0].id})),n.klass.footer)},n.defaults=function(e){return{labelMonthNext:"Next month",labelMonthPrev:"Previous month",labelMonthSelect:"Select a month",labelYearSelect:"Select a year",monthsFull:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekdaysFull:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],today:"Today",clear:"Clear",close:"Close",format:"d mmmm, yyyy",klass:{table:e+"table",header:e+"header",navPrev:e+"nav--prev",navNext:e+"nav--next",navDisabled:e+"nav--disabled",month:e+"month",year:e+"year",selectMonth:e+"select--month",selectYear:e+"select--year",weekdays:e+"weekday",day:e+"day",disabled:e+"day--disabled",selected:e+"day--selected",highlighted:e+"day--highlighted",now:e+"day--today",infocus:e+"day--infocus",outfocus:e+"day--outfocus",footer:e+"footer",buttonClear:e+"button--clear",buttonToday:e+"button--today",buttonClose:e+"button--close"}}}(e.klasses().picker+"__"),e.extend("pickadate",n)}),function(e){"function"==typeof define&&define.amd?define(["picker","jquery"],e):"object"==typeof exports?module.exports=e(require("./picker.js"),require("jquery")):e(Picker,jQuery)}(function(e,t){function n(e,t){var n=this,r=e.$node[0].value,i=e.$node.data("value"),o=i||r,a=i?t.formatSubmit:t.format;n.settings=t,n.$node=e.$node,n.queue={interval:"i",min:"measure create",max:"measure create",now:"now create",select:"parse create validate",highlight:"parse create validate",view:"parse create validate",disable:"deactivate",enable:"activate"},n.item={},n.item.clear=null,n.item.interval=t.interval||30,n.item.disable=(t.disable||[]).slice(0),n.item.enable=-function(e){return e[0]===!0?e.shift():-1}(n.item.disable),n.set("min",t.min).set("max",t.max).set("now"),o?n.set("select",o,{format:a,fromValue:!!r}):n.set("select",null).set("highlight",n.item.now),n.key={40:1,38:-1,39:1,37:-1,go:function(e){n.set("highlight",n.item.highlight.pick+e*n.item.interval,{interval:e*n.item.interval}),this.render()}},e.on("render",function(){var n=e.$root.children(),r=n.find("."+t.klass.viewset),i=function(e){return["webkit","moz","ms","o",""].map(function(t){return(t?"-"+t+"-":"")+e})},o=function(e,t){i("transform").map(function(n){e.css(n,t)}),i("transition").map(function(n){e.css(n,t)})};r.length&&(o(n,"none"),n[0].scrollTop=~~r.position().top-2*r[0].clientHeight,o(n,""))},1).on("open",function(){e.$root.find("button").attr("disabled",!1)},1).on("close",function(){e.$root.find("button").attr("disabled",!0)},1)}var r=24,i=60,o=12,a=r*i,s=e._;n.prototype.set=function(e,t,n){var r=this,i=r.item;return null===t?("clear"==e&&(e="select"),i[e]=t,r):(i["enable"==e?"disable":"flip"==e?"enable":e]=r.queue[e].split(" ").map(function(i){return t=r[i](e,t,n)}).pop(),"select"==e?r.set("highlight",i.select,n):"highlight"==e?r.set("view",i.highlight,n):"interval"==e?r.set("min",i.min,n).set("max",i.max,n):e.match(/^(flip|min|max|disable|enable)$/)&&("min"==e&&r.set("max",i.max,n),i.select&&r.disabled(i.select)&&r.set("select",i.select,n),i.highlight&&r.disabled(i.highlight)&&r.set("highlight",i.highlight,n)),r)},n.prototype.get=function(e){return this.item[e]},n.prototype.create=function(e,n,o){var l=this;return n=void 0===n?e:n,s.isDate(n)&&(n=[n.getHours(),n.getMinutes()]),t.isPlainObject(n)&&s.isInteger(n.pick)?n=n.pick:t.isArray(n)?n=+n[0]*i+ +n[1]:s.isInteger(n)||(n=l.now(e,n,o)),"max"==e&&n=e.from.pick&&t.pick<=e.to.pick},n.prototype.overlapRanges=function(e,t){var n=this;return e=n.createRange(e.from,e.to),t=n.createRange(t.from,t.to),n.withinRange(e,t.from)||n.withinRange(e,t.to)||n.withinRange(t,e.from)||n.withinRange(t,e.to)},n.prototype.now=function(e,t){var n,r=this.item.interval,o=new Date,a=o.getHours()*i+o.getMinutes(),l=s.isInteger(t);return a-=a%r,n=0>t&&-r>=r*t+a,a+="min"==e&&n?0:r,l&&(a+=r*(n&&"max"!=e?t+1:t)),a},n.prototype.normalize=function(e,t){var n=this.item.interval,r=this.item.min&&this.item.min.pick||0;return t-="min"==e?0:(t-r)%n},n.prototype.measure=function(e,n,o){var a=this;return n||(n="min"==e?[0,0]:[r-1,i-1]),"string"==typeof n?n=a.parse(e,n):n===!0||s.isInteger(n)?n=a.now(e,n,o):t.isPlainObject(n)&&s.isInteger(n.pick)&&(n=a.normalize(e,n.pick,o)),n},n.prototype.validate=function(e,t,n){var r=this,i=n&&n.interval?n.interval:r.item.interval;return r.disabled(t)&&(t=r.shift(t,i)),t=r.scope(t),r.disabled(t)&&(t=r.shift(t,-1*i)),t},n.prototype.disabled=function(e){var n=this,r=n.item.disable.filter(function(r){return s.isInteger(r)?e.hour==r:t.isArray(r)||s.isDate(r)?e.pick==n.create(r).pick:t.isPlainObject(r)?n.withinRange(r,e):void 0});return r=r.length&&!r.filter(function(e){return t.isArray(e)&&"inverted"==e[2]||t.isPlainObject(e)&&e.inverted}).length,-1===n.item.enable?!r:r||e.pickn.item.max.pick},n.prototype.shift=function(e,t){var n=this,r=n.item.min.pick,i=n.item.max.pick;for(t=t||n.item.interval;n.disabled(e)&&(e=n.create(e.pick+=t),!(e.pick<=r||e.pick>=i)););return e},n.prototype.scope=function(e){var t=this.item.min.pick,n=this.item.max.pick;return this.create(e.pick>n?n:e.pickt.time%a?"a.m.":"p.m."},A:function(e,t){return e?2:a/2>t.time%a?"AM":"PM"},toArray:function(e){return e.split(/(h{1,2}|H{1,2}|i|a|A|!.)/g)},toString:function(e,t){var n=this;return n.formats.toArray(e).map(function(e){return s.trigger(n.formats[e],n,[0,t])||e.replace(/^!/,"")}).join("")}},n.prototype.isTimeExact=function(e,n){var r=this;return s.isInteger(e)&&s.isInteger(n)||"boolean"==typeof e&&"boolean"==typeof n?e===n:(s.isDate(e)||t.isArray(e))&&(s.isDate(n)||t.isArray(n))?r.create(e).pick===r.create(n).pick:t.isPlainObject(e)&&t.isPlainObject(n)?r.isTimeExact(e.from,n.from)&&r.isTimeExact(e.to,n.to):!1},n.prototype.isTimeOverlap=function(e,n){var r=this;return s.isInteger(e)&&(s.isDate(n)||t.isArray(n))?e===r.create(n).hour:s.isInteger(n)&&(s.isDate(e)||t.isArray(e))?n===r.create(e).hour:t.isPlainObject(e)&&t.isPlainObject(n)?r.overlapRanges(e,n):!1},n.prototype.flipEnable=function(e){var t=this.item;t.enable=e||(-1==t.enable?1:-1)},n.prototype.deactivate=function(e,n){var r=this,i=r.item.disable.slice(0);return"flip"==n?r.flipEnable():n===!1?(r.flipEnable(1),i=[]):n===!0?(r.flipEnable(-1),i=[]):n.map(function(e){for(var n,o=0;ol;l+=1){if(a=i[l],r.isTimeExact(a,e)){n=i[l]=null,u=!0;break}if(r.isTimeOverlap(a,e)){t.isPlainObject(e)?(e.inverted=!0,n=e):t.isArray(e)?(n=e,n[2]||n.push("inverted")):s.isDate(e)&&(n=[e.getFullYear(),e.getMonth(),e.getDate(),"inverted"]);break}}if(n)for(l=0;o>l;l+=1)if(r.isTimeExact(i[l],e)){i[l]=null;break}if(u)for(l=0;o>l;l+=1)if(r.isTimeOverlap(i[l],e)){i[l]=null;break}n&&i.push(n)}),i.filter(function(e){return null!=e})},n.prototype.i=function(e,t){return s.isInteger(t)&&t>0?t:this.item.interval},n.prototype.nodes=function(e){var t=this,n=t.settings,r=t.item.select,i=t.item.highlight,o=t.item.view,a=t.item.disable;return s.node("ul",s.group({min:t.item.min.pick,max:t.item.max.pick,i:t.item.interval,node:"li",item:function(e){e=t.create(e);var l=e.pick,u=r&&r.pick==l,c=i&&i.pick==l,d=a&&t.disabled(e);return[s.trigger(t.formats.toString,t,[s.trigger(n.formatLabel,t,[e])||n.format,e]),function(e){return u&&e.push(n.klass.selected),c&&e.push(n.klass.highlighted),o&&o.pick==l&&e.push(n.klass.viewset),d&&e.push(n.klass.disabled),e.join(" ")}([n.klass.listItem]),"data-pick="+e.pick+" "+s.ariaAttr({role:"option",selected:u&&t.$node.val()===s.trigger(t.formats.toString,t,[n.format,e])?!0:null,activedescendant:c?!0:null,disabled:d?!0:null})]}})+s.node("li",s.node("button",n.clear,n.klass.buttonClear,"type=button data-clear=1"+(e?"":" disabled")+" "+s.ariaAttr({controls:t.$node[0].id})),"",s.ariaAttr({role:"presentation"})),n.klass.list,s.ariaAttr({role:"listbox",controls:t.$node[0].id}))},n.defaults=function(e){return{clear:"Clear",format:"h:i A",interval:30,klass:{picker:e+" "+e+"--time",holder:e+"__holder",list:e+"__list",listItem:e+"__list-item",disabled:e+"__list-item--disabled",selected:e+"__list-item--selected",highlighted:e+"__list-item--highlighted",viewset:e+"__list-item--viewset",now:e+"__list-item--now",buttonClear:e+"__button--clear"}}}(e.klasses().picker),e.extend("pickatime",n)}),function(){"use strict";function e(t,r){function i(e,t){return function(){return e.apply(t,arguments)}}var o;if(r=r||{},this.trackingClick=!1,this.trackingClickStart=0,this.targetElement=null,this.touchStartX=0,this.touchStartY=0,this.lastTouchIdentifier=0,this.touchBoundary=r.touchBoundary||10,this.layer=t,this.tapDelay=r.tapDelay||200,this.tapTimeout=r.tapTimeout||700,!e.notNeeded(t)){for(var a=["onMouse","onClick","onTouchStart","onTouchMove","onTouchEnd","onTouchCancel"],s=this,l=0,u=a.length;u>l;l++)s[a[l]]=i(s[a[l]],s);n&&(t.addEventListener("mouseover",this.onMouse,!0),t.addEventListener("mousedown",this.onMouse,!0),t.addEventListener("mouseup",this.onMouse,!0)),t.addEventListener("click",this.onClick,!0),t.addEventListener("touchstart",this.onTouchStart,!1),t.addEventListener("touchmove",this.onTouchMove,!1),t.addEventListener("touchend",this.onTouchEnd,!1),t.addEventListener("touchcancel",this.onTouchCancel,!1),Event.prototype.stopImmediatePropagation||(t.removeEventListener=function(e,n,r){var i=Node.prototype.removeEventListener;"click"===e?i.call(t,e,n.hijacked||n,r):i.call(t,e,n,r)},t.addEventListener=function(e,n,r){var i=Node.prototype.addEventListener;"click"===e?i.call(t,e,n.hijacked||(n.hijacked=function(e){e.propagationStopped||n(e)}),r):i.call(t,e,n,r)}),"function"==typeof t.onclick&&(o=t.onclick,t.addEventListener("click",function(e){o(e)},!1),t.onclick=null)}}var t=navigator.userAgent.indexOf("Windows Phone")>=0,n=navigator.userAgent.indexOf("Android")>0&&!t,r=/iP(ad|hone|od)/.test(navigator.userAgent)&&!t,i=r&&/OS 4_\d(_\d)?/.test(navigator.userAgent),o=r&&/OS [6-7]_\d/.test(navigator.userAgent),a=navigator.userAgent.indexOf("BB10")>0;e.prototype.needsClick=function(e){switch(e.nodeName.toLowerCase()){case"button":case"select":case"textarea":if(e.disabled)return!0;break;case"input":if(r&&"file"===e.type||e.disabled)return!0;break;case"label":case"iframe":case"video":return!0}return/\bneedsclick\b/.test(e.className)},e.prototype.needsFocus=function(e){switch(e.nodeName.toLowerCase()){case"textarea":return!0;case"select":return!n;case"input":switch(e.type){case"button":case"checkbox":case"file":case"image":case"radio":case"submit":return!1}return!e.disabled&&!e.readOnly;default:return/\bneedsfocus\b/.test(e.className)}},e.prototype.sendClick=function(e,t){var n,r;document.activeElement&&document.activeElement!==e&&document.activeElement.blur(),r=t.changedTouches[0],n=document.createEvent("MouseEvents"),n.initMouseEvent(this.determineEventType(e),!0,!0,window,1,r.screenX,r.screenY,r.clientX,r.clientY,!1,!1,!1,!1,0,null),n.forwardedTouchEvent=!0,e.dispatchEvent(n)},e.prototype.determineEventType=function(e){return n&&"select"===e.tagName.toLowerCase()?"mousedown":"click"},e.prototype.focus=function(e){var t;r&&e.setSelectionRange&&0!==e.type.indexOf("date")&&"time"!==e.type&&"month"!==e.type?(t=e.value.length,e.setSelectionRange(t,t)):e.focus()},e.prototype.updateScrollParent=function(e){var t,n;if(t=e.fastClickScrollParent,!t||!t.contains(e)){n=e;do{if(n.scrollHeight>n.offsetHeight){t=n,e.fastClickScrollParent=n;break}n=n.parentElement}while(n)}t&&(t.fastClickLastScrollTop=t.scrollTop)},e.prototype.getTargetElementFromEventTarget=function(e){return e.nodeType===Node.TEXT_NODE?e.parentNode:e},e.prototype.onTouchStart=function(e){var t,n,o;if(e.targetTouches.length>1)return!0;if(t=this.getTargetElementFromEventTarget(e.target),n=e.targetTouches[0],r){if(o=window.getSelection(),o.rangeCount&&!o.isCollapsed)return!0;if(!i){if(n.identifier&&n.identifier===this.lastTouchIdentifier)return e.preventDefault(),!1;this.lastTouchIdentifier=n.identifier,this.updateScrollParent(t)}}return this.trackingClick=!0,this.trackingClickStart=e.timeStamp,this.targetElement=t,this.touchStartX=n.pageX,this.touchStartY=n.pageY,e.timeStamp-this.lastClickTimen||Math.abs(t.pageY-this.touchStartY)>n?!0:!1},e.prototype.onTouchMove=function(e){return this.trackingClick?((this.targetElement!==this.getTargetElementFromEventTarget(e.target)||this.touchHasMoved(e))&&(this.trackingClick=!1,this.targetElement=null),!0):!0},e.prototype.findControl=function(e){return void 0!==e.control?e.control:e.htmlFor?document.getElementById(e.htmlFor):e.querySelector("button, input:not([type=hidden]), keygen, meter, output, progress, select, textarea")},e.prototype.onTouchEnd=function(e){var t,a,s,l,u,c=this.targetElement;if(!this.trackingClick)return!0;if(e.timeStamp-this.lastClickTimethis.tapTimeout)return!0;if(this.cancelNextClick=!1,this.lastClickTime=e.timeStamp,a=this.trackingClickStart,this.trackingClick=!1,this.trackingClickStart=0,o&&(u=e.changedTouches[0],c=document.elementFromPoint(u.pageX-window.pageXOffset,u.pageY-window.pageYOffset)||c,c.fastClickScrollParent=this.targetElement.fastClickScrollParent),s=c.tagName.toLowerCase(),"label"===s){if(t=this.findControl(c)){if(this.focus(c),n)return!1;c=t}}else if(this.needsFocus(c))return e.timeStamp-a>100||r&&window.top!==window&&"input"===s?(this.targetElement=null,!1):(this.focus(c),this.sendClick(c,e),r&&"select"===s||(this.targetElement=null,e.preventDefault()),!1);return r&&!i&&(l=c.fastClickScrollParent,l&&l.fastClickLastScrollTop!==l.scrollTop)?!0:(this.needsClick(c)||(e.preventDefault(),this.sendClick(c,e)),!1)},e.prototype.onTouchCancel=function(){this.trackingClick=!1,this.targetElement=null},e.prototype.onMouse=function(e){return this.targetElement?e.forwardedTouchEvent?!0:e.cancelable&&(!this.needsClick(this.targetElement)||this.cancelNextClick)?(e.stopImmediatePropagation?e.stopImmediatePropagation():e.propagationStopped=!0,e.stopPropagation(),e.preventDefault(),!1):!0:!0},e.prototype.onClick=function(e){var t;return this.trackingClick?(this.targetElement=null,this.trackingClick=!1,!0):"submit"===e.target.type&&0===e.detail?!0:(t=this.onMouse(e),t||(this.targetElement=null),t)},e.prototype.destroy=function(){var e=this.layer;n&&(e.removeEventListener("mouseover",this.onMouse,!0),e.removeEventListener("mousedown",this.onMouse,!0),e.removeEventListener("mouseup",this.onMouse,!0)),e.removeEventListener("click",this.onClick,!0),e.removeEventListener("touchstart",this.onTouchStart,!1),e.removeEventListener("touchmove",this.onTouchMove,!1),e.removeEventListener("touchend",this.onTouchEnd,!1),e.removeEventListener("touchcancel",this.onTouchCancel,!1)},e.notNeeded=function(e){var t,r,i,o;if("undefined"==typeof window.ontouchstart)return!0;if(r=+(/Chrome\/([0-9]+)/.exec(navigator.userAgent)||[,0])[1]){if(!n)return!0;if(t=document.querySelector("meta[name=viewport]")){if(-1!==t.content.indexOf("user-scalable=no"))return!0;if(r>31&&document.documentElement.scrollWidth<=window.outerWidth)return!0}}if(a&&(i=navigator.userAgent.match(/Version\/([0-9]*)\.([0-9]*)/),i[1]>=10&&i[2]>=3&&(t=document.querySelector("meta[name=viewport]")))){if(-1!==t.content.indexOf("user-scalable=no"))return!0;if(document.documentElement.scrollWidth<=window.outerWidth)return!0}return"none"===e.style.msTouchAction||"manipulation"===e.style.touchAction?!0:(o=+(/Firefox\/([0-9]+)/.exec(navigator.userAgent)||[,0])[1],o>=27&&(t=document.querySelector("meta[name=viewport]"),t&&(-1!==t.content.indexOf("user-scalable=no")||document.documentElement.scrollWidth<=window.outerWidth))?!0:"none"===e.style.touchAction||"manipulation"===e.style.touchAction?!0:!1)},e.attach=function(t,n){return new e(t,n)},"function"==typeof define&&"object"==typeof define.amd&&define.amd?define(function(){return e}):"undefined"!=typeof module&&module.exports?(module.exports=e.attach,module.exports.FastClick=e):window.FastClick=e}();var Url=function(){"use strict";var e={protocol:"protocol",host:"hostname",port:"port",path:"pathname",query:"search",hash:"hash"},t={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443},n=function(n,r){var o=document,a=o.createElement("a"),r=r||o.location.href,s=r.match(/\/\/(.*?)(?::(.*?))?@/)||[];a.href=r;for(var l in e)n[l]=a[e[l]]||"";if(n.protocol=n.protocol.replace(/:$/,""),n.query=n.query.replace(/^\?/,""),n.hash=n.hash.replace(/^#/,""),n.user=s[1]||"",n.pass=s[2]||"",n.port=t[n.protocol]==n.port||0==n.port?"":n.port,n.protocol||/^([a-z]+:)?\/\//.test(r))n.path=n.path.replace(/^\/?/,"/");else{var u=new Url(o.location.href.match(/(.*\/)/)[0]),c=u.path.split("/"),d=n.path.split("/");c.pop();for(var l=0,p=["protocol","user","pass","host","port"],f=p.length;f>l;l++)n[p[l]]=u[p[l]];for(;".."==d[0];)c.pop(),d.shift();n.path=("/"!=r.substring(0,1)?c.join("/"):"")+"/"+d.join("/")}i(n)},r=function(e){return e=e.replace(/\+/g," "),e=e.replace(/%([ef][0-9a-f])%([89ab][0-9a-f])%([89ab][0-9a-f])/gi,function(e,t,n,r){var i=parseInt(t,16)-224,o=parseInt(n,16)-128;if(0==i&&32>o)return e;var a=parseInt(r,16)-128,s=(i<<12)+(o<<6)+a;return s>65535?e:String.fromCharCode(s)}),e=e.replace(/%([cd][0-9a-f])%([89ab][0-9a-f])/gi,function(e,t,n){var r=parseInt(t,16)-192;if(2>r)return e;var i=parseInt(n,16)-128;return String.fromCharCode((r<<6)+i)}),e=e.replace(/%([0-7][0-9a-f])/gi,function(e,t){return String.fromCharCode(parseInt(t,16))})},i=function(e){var t=e.query;e.query=new function(e){for(var t,n=/([^=&]+)(=([^&]*))?/g;t=n.exec(e);){var i=decodeURIComponent(t[1].replace(/\+/g," ")),o=t[3]?r(t[3]):"";null!=this[i]?(this[i]instanceof Array||(this[i]=[this[i]]),this[i].push(o)):this[i]=o}this.clear=function(){for(i in this)this[i]instanceof Function||delete this[i]},this.toString=function(){var e="",t=encodeURIComponent;for(var n in this)if(!(this[n]instanceof Function))if(this[n]instanceof Array){var r=this[n].length;if(r)for(var i=0;r>i;i++)e+=e?"&":"",e+=t(n)+"="+t(this[n][i]);else e+=(e?"&":"")+t(n)+"="}else e+=e?"&":"",e+=t(n)+"="+t(this[n]);return e}}(t)};return function(e){this.toString=function(){return(this.protocol&&this.protocol+"://")+(this.user&&this.user+(this.pass&&":"+this.pass)+"@")+(this.host&&this.host)+(this.port&&":"+this.port)+(this.path&&this.path)+(this.query.toString()&&"?"+this.query)+(this.hash&&"#"+this.hash)},n(this,e)}}();!function(){"use strict";function e(e){e.fn.swiper=function(t){var n;return e(this).each(function(){var e=new Swiper(this,t);n||(n=e)}),n}}window.Swiper=function(e,n){function r(){return"horizontal"===h.params.direction}function i(e){var t,n,r=function(){"undefined"!=typeof h&&null!==h&&(void 0!==h.imagesLoaded&&h.imagesLoaded++,h.imagesLoaded===h.imagesToLoad.length&&(h.update(),h.params.onImagesReady&&h.params.onImagesReady(h)))};e.complete?r():(n=e.currentSrc||e.getAttribute("src"),n?(t=new Image,t.onload=r,t.onerror=r,t.src=n):r())}function o(){h.autoplayTimeoutId=setTimeout(function(){h.params.loop?(h.fixLoop(),h._slideNext()):h.isEnd?n.autoplayStopOnLast?h.stopAutoplay():h._slideTo(0):h._slideNext()},h.params.autoplay)}function a(e,t){var n=m(e.target);if(!n.is(t))if("string"==typeof t)n=n.parents(t);else if(t.nodeType){var r;return n.parents().each(function(e,n){n===t&&(r=t)}),r?t:void 0}return 0===n.length?void 0:n[0]}function s(e,t){t=t||{};var n=window.MutationObserver||window.WebkitMutationObserver,r=new n(function(e){e.forEach(function(){h.onResize()})});r.observe(e,{attributes:"undefined"==typeof t.attributes?!0:t.attributes,childList:"undefined"==typeof t.childList?!0:t.childList,characterData:"undefined"==typeof t.characterData?!0:t.characterData}),h.observers.push(r)}function l(e){e.originalEvent&&(e=e.originalEvent);var t=e.keyCode||e.charCode;if(!(e.shiftKey||e.altKey||e.ctrlKey||e.metaKey)){if(document.activeElement&&document.activeElement.nodeName&&("input"===document.activeElement.nodeName.toLowerCase()||"textarea"===document.activeElement.nodeName.toLowerCase()))return!1;if(37===t||39===t||38===t||40===t){var n=!1;if(h.container.parents(".swiper-slide").length>0&&0===h.container.parents(".swiper-slide-active").length)return;for(var i={left:window.pageXOffset,top:window.pageYOffset},o=window.innerWidth,a=window.innerHeight,s=h.container.offset(),l=[[s.left,s.top],[s.left+h.width,s.top],[s.left,s.top+h.height],[s.left+h.width,s.top+h.height]],u=0;u=i.left&&c[0]<=i.left+o&&c[1]>=i.top&&c[1]<=i.top+a&&(n=!0)}if(!n)return}r()?((37===t||39===t)&&(e.preventDefault?e.preventDefault():e.returnValue=!1),39===t&&h.slideNext(),37===t&&h.slidePrev()):((38===t||40===t)&&(e.preventDefault?e.preventDefault():e.returnValue=!1),40===t&&h.slideNext(),38===t&&h.slidePrev())}}function u(e){e.originalEvent&&(e=e.originalEvent);var t=h._wheelEvent,n=0;if(e.detail)n=-e.detail;else if("mousewheel"===t)if(h.params.mousewheelForceToAxis)if(r()){if(!(Math.abs(e.wheelDeltaX)>Math.abs(e.wheelDeltaY)))return;n=e.wheelDeltaX}else{if(!(Math.abs(e.wheelDeltaY)>Math.abs(e.wheelDeltaX)))return;n=e.wheelDeltaY}else n=e.wheelDelta;else if("DOMMouseScroll"===t)n=-e.detail;else if("wheel"===t)if(h.params.mousewheelForceToAxis)if(r()){if(!(Math.abs(e.deltaX)>Math.abs(e.deltaY)))return;n=-e.deltaX}else{if(!(Math.abs(e.deltaY)>Math.abs(e.deltaX)))return;n=-e.deltaY}else n=Math.abs(e.deltaX)>Math.abs(e.deltaY)?-e.deltaX:-e.deltaY;if(h.params.freeMode){var i=h.getWrapperTranslate()+n;if(i>0&&(i=0),i60&&(0>n?h.slideNext():h.slidePrev()),h._lastWheelScrollTime=(new Date).getTime();return h.params.autoplay&&h.stopAutoplay(),e.preventDefault?e.preventDefault():e.returnValue=!1,!1}function c(e,t){e=m(e);var n,i,o,a,s;n=e.attr("data-swiper-parallax"),i=e.attr("data-swiper-parallax-x"),o=e.attr("data-swiper-parallax-y"),i||o||!n?(i=i?i:"0",o=o?o:"0"):r()?(i=n,o="0"):(o=n,i="0"),i=i.indexOf("%")>=0?parseInt(i,10)*t+"%":i*t+"px",o=o.indexOf("%")>=0?parseInt(o,10)*t+"%":o*t+"px",a=i,s=o,e.transform("translate3d("+a+", "+s+",0px)")}var d={direction:"horizontal",touchEventsTarget:"container",initialSlide:0,speed:300,autoplay:!1,autoplayDisableOnInteraction:!0,freeMode:!1,freeModeMomentum:!0,freeModeMomentumRatio:1,freeModeMomentumBounce:!0,freeModeMomentumBounceRatio:1,effect:"slide",coverflow:{rotate:50,stretch:0,depth:100,modifier:1,slideShadows:!0},cube:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94},fade:{crossFade:!1},parallax:!1,scrollbar:null,scrollbarHide:!0,keyboardControl:!1,mousewheelControl:!1,mousewheelForceToAxis:!1,hashnav:!1,spaceBetween:0,slidesPerView:1,slidesPerColumn:1,slidesPerColumnFill:"column",slidesPerGroup:1,centeredSlides:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,onlyExternal:!1,threshold:0,touchMoveStopPropagation:!0,pagination:null,paginationClickable:!1,paginationHide:!1,resistance:!0,resistanceRatio:.85,nextButton:null,prevButton:null,watchSlidesProgress:!1,watchVisibility:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,releaseFormElements:!0,slideToClickedSlide:!1,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,control:void 0,controlInverse:!1,allowSwipeToPrev:!0,allowSwipeToNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",slideClass:"swiper-slide",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",bulletClass:"swiper-pagination-bullet",bulletActiveClass:"swiper-pagination-bullet-active",buttonDisabledClass:"swiper-button-disabled",paginationHiddenClass:"swiper-pagination-hidden",observer:!1,observeParents:!1,runCallbacksOnInit:!0};n=n||{};for(var p in d)if("undefined"==typeof n[p])n[p]=d[p];else if("object"==typeof n[p])for(var f in d[p])"undefined"==typeof n[p][f]&&(n[p][f]=d[p][f]);var h=this;h.params=n;var m;if(m="undefined"==typeof t?window.Dom7||window.Zepto||window.jQuery:t,m&&(h.container=m(e),0!==h.container.length)){if(h.container.length>1)return void h.container.each(function(){new Swiper(this,n)});h.container[0].swiper=h,h.container.data("swiper",h),h.container.addClass("swiper-container-"+h.params.direction),h.params.freeMode&&h.container.addClass("swiper-container-free-mode"),(h.params.parallax||h.params.watchVisibility)&&(h.params.watchSlidesProgress=!0),["cube","coverflow"].indexOf(h.params.effect)>=0&&(h.support.transforms3d?(h.params.watchSlidesProgress=!0,h.container.addClass("swiper-container-3d")):h.params.effect="slide"),"slide"!==h.params.effect&&h.container.addClass("swiper-container-"+h.params.effect),"cube"===h.params.effect&&(h.params.resistanceRatio=0,h.params.slidesPerView=1,h.params.slidesPerColumn=1,h.params.slidesPerGroup=1,h.params.centeredSlides=!1,h.params.spaceBetween=0),"fade"===h.params.effect&&(h.params.watchSlidesProgress=!0,h.params.spaceBetween=0),h.params.grabCursor&&h.support.touch&&(h.params.grabCursor=!1),h.wrapper=h.container.children("."+h.params.wrapperClass),h.params.pagination&&(h.paginationContainer=m(h.params.pagination),h.params.paginationClickable&&h.paginationContainer.addClass("swiper-pagination-clickable")),h.rtl=r()&&("rtl"===h.container[0].dir.toLowerCase()||"rtl"===h.container.css("direction")),h.rtl&&h.container.addClass("swiper-container-rtl"),h.rtl&&(h.wrongRTL="-webkit-box"===h.wrapper.css("display")),h.translate=0,h.progress=0,h.velocity=0,h.lockSwipeToNext=function(){h.params.allowSwipeToNext=!1},h.lockSwipeToPrev=function(){h.params.allowSwipeToPrev=!1},h.lockSwipes=function(){h.params.allowSwipeToNext=h.params.allowSwipeToPrev=!1},h.unlockSwipeToNext=function(){h.params.allowSwipeToNext=!0},h.unlockSwipeToPrev=function(){h.params.allowSwipeToPrev=!0},h.unlockSwipes=function(){h.params.allowSwipeToNext=h.params.allowSwipeToPrev=!0},h.params.slidesPerColumn>1&&h.container.addClass("swiper-container-multirow"),h.params.grabCursor&&(h.container[0].style.cursor="move",h.container[0].style.cursor="-webkit-grab",h.container[0].style.cursor="-moz-grab",h.container[0].style.cursor="grab"),h.imagesToLoad=[],h.imagesLoaded=0,h.preloadImages=function(){h.imagesToLoad=h.container.find("img");for(var e=0;e=0&&(t=parseFloat(t.replace("%",""))/100*h.size),h.virtualWidth=-t,h.slides.css(h.rtl?{marginLeft:"",marginTop:""}:{marginRight:"",marginBottom:""});var a;h.params.slidesPerColumn>1&&(a=Math.floor(h.slides.length/h.params.slidesPerColumn)===h.slides.length/h.params.slidesPerColumn?h.slides.length:Math.ceil(h.slides.length/h.params.slidesPerColumn)*h.params.slidesPerColumn);var s;for(e=0;e1){var u,c,d,p,f=h.params.slidesPerColumn;"column"===h.params.slidesPerColumnFill?(c=Math.floor(e/f),d=e-c*f,u=c+d*a/f,l.css({"-webkit-box-ordinal-group":u,"-moz-box-ordinal-group":u,"-ms-flex-order":u,"-webkit-order":u,order:u})):(p=a/f,d=Math.floor(e/p),c=e-d*p),l.css({"margin-top":0!==d&&h.params.spaceBetween&&h.params.spaceBetween+"px"}).attr("data-swiper-column",c).attr("data-swiper-row",d)}"none"!==l.css("display")&&("auto"===h.params.slidesPerView?s=r()?l.outerWidth(!0):l.outerHeight(!0):(s=(h.size-(h.params.slidesPerView-1)*t)/h.params.slidesPerView,r()?h.slides[e].style.width=s+"px":h.slides[e].style.height=s+"px"),h.slides[e].swiperSlideSize=s,h.slidesSizesGrid.push(s),h.params.centeredSlides?(n=n+s/2+i/2+t,0===e&&(n=n-h.size/2-t),Math.abs(n)<.001&&(n=0),o%h.params.slidesPerGroup===0&&h.snapGrid.push(n),h.slidesGrid.push(n)):(o%h.params.slidesPerGroup===0&&h.snapGrid.push(n),h.slidesGrid.push(n),n=n+s+t),h.virtualWidth+=s+t,i=s,o++) +}h.virtualWidth=Math.max(h.virtualWidth,h.size);var m;if(h.rtl&&h.wrongRTL&&("slide"===h.params.effect||"coverflow"===h.params.effect)&&h.wrapper.css({width:h.virtualWidth+h.params.spaceBetween+"px"}),h.params.slidesPerColumn>1&&(h.virtualWidth=(s+h.params.spaceBetween)*a,h.virtualWidth=Math.ceil(h.virtualWidth/h.params.slidesPerColumn)-h.params.spaceBetween,h.wrapper.css({width:h.virtualWidth+h.params.spaceBetween+"px"}),h.params.centeredSlides)){for(m=[],e=0;eMath.floor(h.snapGrid[h.snapGrid.length-1])&&h.snapGrid.push(h.virtualWidth-h.size)}0===h.snapGrid.length&&(h.snapGrid=[0]),0!==h.params.spaceBetween&&h.slides.css(r()?h.rtl?{marginLeft:t+"px"}:{marginRight:t+"px"}:{marginBottom:t+"px"}),h.params.watchSlidesProgress&&h.updateSlidesOffset()},h.updateSlidesOffset=function(){for(var e=0;e=0&&s0&&l<=h.size||0>=s&&l>=h.size;u&&h.slides.eq(n).addClass(h.params.slideVisibleClass)}i.progress=h.rtl?-a:a}}},h.updateProgress=function(e){"undefined"==typeof e&&(e=h.translate||0);var t=h.maxTranslate()-h.minTranslate();0===t?(h.progress=0,h.isBeginning=h.isEnd=!0):(h.progress=(e-h.minTranslate())/t,h.isBeginning=h.progress<=0,h.isEnd=h.progress>=1),h.isBeginning&&h.params.onReachBeginning&&h.params.onReachBeginning(h),h.isEnd&&h.params.onReachEnd&&h.params.onReachEnd(h),h.params.watchSlidesProgress&&h.updateSlidesProgress(e),h.params.onProgress&&h.params.onProgress(h,h.progress)},h.updateActiveIndex=function(){var e,t,n,r=h.rtl?h.translate:-h.translate;for(t=0;t=h.slidesGrid[t]&&r=h.slidesGrid[t]&&r=h.slidesGrid[t]&&(e=t);(0>e||"undefined"==typeof e)&&(e=0),n=Math.floor(e/h.params.slidesPerGroup),n>=h.snapGrid.length&&(n=h.snapGrid.length-1),e!==h.activeIndex&&(h.snapIndex=n,h.previousIndex=h.activeIndex,h.activeIndex=e,h.updateClasses())},h.updateClasses=function(){h.slides.removeClass(h.params.slideActiveClass+" "+h.params.slideNextClass+" "+h.params.slidePrevClass);var e=h.slides.eq(h.activeIndex);if(e.addClass(h.params.slideActiveClass),e.next("."+h.params.slideClass).addClass(h.params.slideNextClass),e.prev("."+h.params.slideClass).addClass(h.params.slidePrevClass),h.bullets&&h.bullets.length>0){h.bullets.removeClass(h.params.bulletActiveClass);var t;h.params.loop?(t=h.activeIndex-h.loopedSlides,t>h.slides.length-1-2*h.loopedSlides&&(t-=h.slides.length-2*h.loopedSlides)):t="undefined"!=typeof h.snapIndex?h.snapIndex:h.activeIndex||0,h.bullets.eq(t).addClass(h.params.bulletActiveClass)}h.params.loop||(h.params.prevButton&&(h.isBeginning?m(h.params.prevButton).addClass(h.params.buttonDisabledClass):m(h.params.prevButton).removeClass(h.params.buttonDisabledClass)),h.params.nextButton&&(h.isEnd?m(h.params.nextButton).addClass(h.params.buttonDisabledClass):m(h.params.nextButton).removeClass(h.params.buttonDisabledClass)))},h.updatePagination=function(){if(h.params.pagination&&h.paginationContainer&&h.paginationContainer.length>0){for(var e="",t=h.params.loop?h.slides.length-2*h.loopedSlides:h.snapGrid.length,n=0;t>n;n++)e+='';h.paginationContainer.html(e),h.bullets=h.paginationContainer.find("."+h.params.bulletClass)}},h.update=function(e){function t(){r=Math.min(Math.max(h.translate,h.maxTranslate()),h.minTranslate()),h.setWrapperTranslate(r),h.updateActiveIndex(),h.updateClasses()}if(h.updateContainerSize(),h.updateSlidesSize(),h.updateProgress(),h.updatePagination(),h.updateClasses(),h.params.scrollbar&&h.scrollbar&&h.scrollbar.set(),e){var n,r;h.params.freeMode?t():(n="auto"===h.params.slidesPerView&&h.isEnd&&!h.params.centeredSlides?h.slideTo(h.slides.length-1,0,!1,!0):h.slideTo(h.activeIndex,0,!1,!0),n||t())}},h.onResize=function(){if(h.updateContainerSize(),h.updateSlidesSize(),h.updateProgress(),("auto"===h.params.slidesPerView||h.params.freeMode)&&h.updatePagination(),h.params.scrollbar&&h.scrollbar&&h.scrollbar.set(),h.params.freeMode){var e=Math.min(Math.max(h.translate,h.maxTranslate()),h.minTranslate());h.setWrapperTranslate(e),h.updateActiveIndex(),h.updateClasses()}else h.updateClasses(),"auto"===h.params.slidesPerView&&h.isEnd&&!h.params.centeredSlides?h.slideTo(h.slides.length-1,0,!1,!0):h.slideTo(h.activeIndex,0,!1,!0)};var g=["mousedown","mousemove","mouseup"];window.navigator.pointerEnabled?g=["pointerdown","pointermove","pointerup"]:window.navigator.msPointerEnabled&&(g=["MSPointerDown","MSPointerMove","MSPointerUp"]),h.touchEvents={start:h.support.touch||!h.params.simulateTouch?"touchstart":g[0],move:h.support.touch||!h.params.simulateTouch?"touchmove":g[1],end:h.support.touch||!h.params.simulateTouch?"touchend":g[2]},(window.navigator.pointerEnabled||window.navigator.msPointerEnabled)&&("container"===h.params.touchEventsTarget?h.container:h.wrapper).addClass("swiper-wp8-"+h.params.direction),h.events=function(e){var t=e?"off":"on",r=e?"removeEventListener":"addEventListener",i="container"===h.params.touchEventsTarget?h.container[0]:h.wrapper[0],o=h.support.touch?i:document,a=h.params.nested?!0:!1;h.browser.ie?(i[r](h.touchEvents.start,h.onTouchStart,!1),o[r](h.touchEvents.move,h.onTouchMove,a),o[r](h.touchEvents.end,h.onTouchEnd,!1)):(h.support.touch&&(i[r](h.touchEvents.start,h.onTouchStart,!1),i[r](h.touchEvents.move,h.onTouchMove,a),i[r](h.touchEvents.end,h.onTouchEnd,!1)),!n.simulateTouch||h.device.ios||h.device.android||(i[r]("mousedown",h.onTouchStart,!1),o[r]("mousemove",h.onTouchMove,a),o[r]("mouseup",h.onTouchEnd,!1))),window[r]("resize",h.onResize),h.params.nextButton&&m(h.params.nextButton)[t]("click",h.onClickNext),h.params.prevButton&&m(h.params.prevButton)[t]("click",h.onClickPrev),h.params.pagination&&h.params.paginationClickable&&m(h.paginationContainer)[t]("click","."+h.params.bulletClass,h.onClickIndex),(h.params.preventClicks||h.params.preventClicksPropagation)&&i[r]("click",h.preventClicks,!0)},h.attachEvents=function(){h.events()},h.detachEvents=function(){h.events(!0)},h.allowClick=!0,h.preventClicks=function(e){h.allowClick||(h.params.preventClicks&&e.preventDefault(),h.params.preventClicksPropagation&&(e.stopPropagation(),e.stopImmediatePropagation()))},h.onClickNext=function(e){e.preventDefault(),h.slideNext()},h.onClickPrev=function(e){e.preventDefault(),h.slidePrev()},h.onClickIndex=function(e){e.preventDefault();var t=m(this).index()*h.params.slidesPerGroup;h.params.loop&&(t+=h.loopedSlides),h.slideTo(t)},h.updateClickedSlide=function(e){var t=a(e,"."+h.params.slideClass);if(!t)return h.clickedSlide=void 0,void(h.clickedIndex=void 0);if(h.clickedSlide=t,h.clickedIndex=m(t).index(),h.params.slideToClickedSlide&&void 0!==h.clickedIndex&&h.clickedIndex!==h.activeIndex){var n,r=h.clickedIndex;if(h.params.loop)if(n=m(h.clickedSlide).attr("data-swiper-slide-index"),r>h.slides.length-h.params.slidesPerView)h.fixLoop(),r=h.wrapper.children("."+h.params.slideClass+'[data-swiper-slide-index="'+n+'"]').eq(0).index(),setTimeout(function(){h.slideTo(r)},0);else if(r0&&(C=!1),"touchstart"!==e.type){var t=!0;m(e.target).is(k)&&(t=!1),document.activeElement&&m(document.activeElement).is(k)&&document.activeElement.blur(),t&&e.preventDefault()}h.params.onTouchStart&&h.params.onTouchStart(h,e)}}},h.onTouchMove=function(e){if(e.originalEvent&&(e=e.originalEvent),!(O&&"mousemove"===e.type||e.preventedByNestedSwiper)){if(h.params.onlyExternal)return y=!0,void(h.allowClick=!1);if(h.params.onTouchMove&&h.params.onTouchMove(h,e),h.allowClick=!1,!(e.targetTouches&&e.targetTouches.length>1)){if(h.touches.currentX="touchmove"===e.type?e.targetTouches[0].pageX:e.pageX,h.touches.currentY="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY,"undefined"==typeof b){var t=180*Math.atan2(Math.abs(h.touches.currentY-h.touches.startY),Math.abs(h.touches.currentX-h.touches.startX))/Math.PI;b=r()?t>h.params.touchAngle:90-t>h.params.touchAngle}if(b&&h.params.onTouchMoveOpposite&&h.params.onTouchMoveOpposite(h,e),v){if(b)return void(v=!1);h.params.onSliderMove&&h.params.onSliderMove(h,e),e.preventDefault(),h.params.touchMoveStopPropagation&&!h.params.nested&&e.stopPropagation(),y||(n.loop&&h.fixLoop(),x="cube"===h.params.effect?(h.rtl?-h.translate:h.translate)||0:h.getWrapperTranslate(),h.setWrapperTransition(0),h.animating&&h.wrapper.trigger("webkitTransitionEnd transitionend oTransitionEnd MSTransitionEnd msTransitionEnd"),h.params.autoplay&&h.autoplaying&&(h.params.autoplayDisableOnInteraction?h.stopAutoplay():h.pauseAutoplay()),T=!1,h.params.grabCursor&&(h.container[0].style.cursor="move",h.container[0].style.cursor="-webkit-grabbing",h.container[0].style.cursor="-moz-grabbin",h.container[0].style.cursor="grabbing")),y=!0;var i=h.touches.diff=r()?h.touches.currentX-h.touches.startX:h.touches.currentY-h.touches.startY;i*=h.params.touchRatio,h.rtl&&(i=-i),h.swipeDirection=i>0?"prev":"next",w=i+x;var o=!0;if(i>0&&w>h.minTranslate()?(o=!1,h.params.resistance&&(w=h.minTranslate()-1+Math.pow(-h.minTranslate()+x+i,h.params.resistanceRatio))):0>i&&ww&&(w=x),!h.params.allowSwipeToPrev&&"prev"===h.swipeDirection&&w>x&&(w=x),h.params.followFinger){if(h.params.threshold>0){if(!(Math.abs(i)>h.params.threshold||C))return void(w=x);if(!C)return C=!0,h.touches.startX=h.touches.currentX,h.touches.startY=h.touches.currentY,w=x,void(h.touches.diff=r()?h.touches.currentX-h.touches.startX:h.touches.currentY-h.touches.startY)}(h.params.freeMode||h.params.watchSlidesProgress)&&h.updateActiveIndex(),h.params.freeMode&&(0===A.length&&A.push({position:h.touches[r()?"startX":"startY"],time:$}),A.push({position:h.touches[r()?"currentX":"currentY"],time:(new Date).getTime()})),h.updateProgress(w),h.setWrapperTranslate(w)}}}}},h.onTouchEnd=function(e){if(e.originalEvent&&(e=e.originalEvent),h.params.onTouchEnd&&h.params.onTouchEnd(h,e),v){h.params.grabCursor&&y&&v&&(h.container[0].style.cursor="move",h.container[0].style.cursor="-webkit-grab",h.container[0].style.cursor="-moz-grab",h.container[0].style.cursor="grab");var t=Date.now(),n=t-$;if(h.allowClick&&(h.updateClickedSlide(e),h.params.onTap&&h.params.onTap(h,e),300>n&&t-E>300&&(S&&clearTimeout(S),S=setTimeout(function(){h&&(h.params.paginationHide&&h.paginationContainer.length>0&&!m(e.target).hasClass(h.params.bulletClass)&&h.paginationContainer.toggleClass(h.params.paginationHiddenClass),h.params.onClick&&h.params.onClick(h,e))},300)),300>n&&300>t-E&&(S&&clearTimeout(S),h.params.onDoubleTap&&h.params.onDoubleTap(h,e))),E=Date.now(),setTimeout(function(){h&&h.allowClick&&(h.allowClick=!0)},0),!v||!y||!h.swipeDirection||0===h.touches.diff||w===x)return void(v=y=!1);v=y=!1;var r;if(r=h.params.followFinger?h.rtl?h.translate:-h.translate:-w,h.params.freeMode){if(r<-h.minTranslate())return void h.slideTo(h.activeIndex);if(r>-h.maxTranslate())return void h.slideTo(h.slides.length-1);if(h.params.freeModeMomentum){if(A.length>1){var i=A.pop(),o=A.pop(),a=i.position-o.position,s=i.time-o.time;h.velocity=a/s,h.velocity=h.velocity/2,Math.abs(h.velocity)<.02&&(h.velocity=0),(s>150||(new Date).getTime()-i.time>300)&&(h.velocity=0)}else h.velocity=0;A.length=0;var l=1e3*h.params.freeModeMomentumRatio,u=h.velocity*l,c=h.translate+u;h.rtl&&(c=-c);var d,p=!1,f=20*Math.abs(h.velocity)*h.params.freeModeMomentumBounceRatio;ch.minTranslate()&&(h.params.freeModeMomentumBounce?(c-h.minTranslate()>f&&(c=h.minTranslate()+f),d=h.minTranslate(),p=!0,T=!0):c=h.minTranslate()),0!==h.velocity&&(l=Math.abs(h.rtl?(-c-h.translate)/h.velocity:(c-h.translate)/h.velocity)),h.params.freeModeMomentumBounce&&p?(h.updateProgress(d),h.setWrapperTransition(l),h.setWrapperTranslate(c),h.onTransitionStart(),h.animating=!0,h.wrapper.transitionEnd(function(){T&&(h.params.onMomentumBounce&&h.params.onMomentumBounce(h),h.setWrapperTransition(h.params.speed),h.setWrapperTranslate(d),h.wrapper.transitionEnd(function(){h.onTransitionEnd()}))})):h.velocity?(h.updateProgress(c),h.setWrapperTransition(l),h.setWrapperTranslate(c),h.onTransitionStart(),h.animating||(h.animating=!0,h.wrapper.transitionEnd(function(){h.onTransitionEnd()}))):h.updateProgress(c),h.updateActiveIndex()}return void((!h.params.freeModeMomentum||n>=h.params.longSwipesMs)&&(h.updateProgress(),h.updateActiveIndex()))}var g,b=0,C=h.slidesSizesGrid[0];for(g=0;g=h.slidesGrid[g]&&r=h.slidesGrid[g]&&(b=g,C=h.slidesGrid[h.slidesGrid.length-1]-h.slidesGrid[h.slidesGrid.length-2]);var k=(r-h.slidesGrid[b])/C;if(n>h.params.longSwipesMs){if(!h.params.longSwipes)return void h.slideTo(h.activeIndex);"next"===h.swipeDirection&&h.slideTo(k>=h.params.longSwipesRatio?b+h.params.slidesPerGroup:b),"prev"===h.swipeDirection&&h.slideTo(k>1-h.params.longSwipesRatio?b+h.params.slidesPerGroup:b)}else{if(!h.params.shortSwipes)return void h.slideTo(h.activeIndex);"next"===h.swipeDirection&&h.slideTo(b+h.params.slidesPerGroup),"prev"===h.swipeDirection&&h.slideTo(b)}}},h._slideTo=function(e,t){return h.slideTo(e,t,!0,!0)},h.slideTo=function(e,t,n,i){"undefined"==typeof n&&(n=!0),"undefined"==typeof e&&(e=0),0>e&&(e=0),h.snapIndex=Math.floor(e/h.params.slidesPerGroup),h.snapIndex>=h.snapGrid.length&&(h.snapIndex=h.snapGrid.length-1);var o=-h.snapGrid[h.snapIndex];h.params.autoplay&&h.autoplaying&&(i||!h.params.autoplayDisableOnInteraction?h.pauseAutoplay(t):h.stopAutoplay()),h.updateProgress(o);for(var a=0;a=h.slidesGrid[a]&&(e=a);if("undefined"==typeof t&&(t=h.params.speed),h.previousIndex=h.activeIndex||0,h.activeIndex=e,o===h.translate)return h.updateClasses(),!1;h.onTransitionStart(n);r()?o:0,r()?0:o;return 0===t?(h.setWrapperTransition(0),h.setWrapperTranslate(o),h.onTransitionEnd(n)):(h.setWrapperTransition(t),h.setWrapperTranslate(o),h.animating||(h.animating=!0,h.wrapper.transitionEnd(function(){h.onTransitionEnd(n)}))),h.updateClasses(),!0},h.onTransitionStart=function(e){"undefined"==typeof e&&(e=!0),e&&(h.params.onTransitionStart&&h.params.onTransitionStart(h),h.params.onSlideChangeStart&&h.activeIndex!==h.previousIndex&&h.params.onSlideChangeStart(h))},h.onTransitionEnd=function(e){h.animating=!1,h.setWrapperTransition(0),"undefined"==typeof e&&(e=!0),e&&(h.params.onTransitionEnd&&h.params.onTransitionEnd(h),h.params.onSlideChangeEnd&&h.activeIndex!==h.previousIndex&&h.params.onSlideChangeEnd(h))},h.slideNext=function(e,t,n){if(h.params.loop){if(h.animating)return!1;h.fixLoop();{h.container[0].clientLeft}return h.slideTo(h.activeIndex+h.params.slidesPerGroup,t,e,n)}return h.slideTo(h.activeIndex+h.params.slidesPerGroup,t,e,n)},h._slideNext=function(e){return h.slideNext(!0,e,!0)},h.slidePrev=function(e,t,n){if(h.params.loop){if(h.animating)return!1;h.fixLoop();{h.container[0].clientLeft}return h.slideTo(h.activeIndex-1,t,e,n)}return h.slideTo(h.activeIndex-1,t,e,n)},h._slidePrev=function(e){return h.slidePrev(!0,e,!0)},h.slideReset=function(e,t){return h.slideTo(h.activeIndex,t,e)},h.setWrapperTransition=function(e,t){h.wrapper.transition(e),h.params.onSetTransition&&h.params.onSetTransition(h,e),"slide"!==h.params.effect&&h.effects[h.params.effect]&&h.effects[h.params.effect].setTransition(e),h.params.parallax&&h.parallax&&h.parallax.setTransition(e),h.params.scrollbar&&h.scrollbar&&h.scrollbar.setTransition(e),h.params.control&&h.controller&&h.controller.setTransition(e,t)},h.setWrapperTranslate=function(e,t,n){var i=0,o=0,a=0;r()?i=h.rtl?-e:e:o=e,h.wrapper.transform(h.support.transforms3d?"translate3d("+i+"px, "+o+"px, "+a+"px)":"translate("+i+"px, "+o+"px)"),h.translate=r()?i:o,t&&h.updateActiveIndex(),"slide"!==h.params.effect&&h.effects[h.params.effect]&&h.effects[h.params.effect].setTranslate(h.translate),h.params.parallax&&h.parallax&&h.parallax.setTranslate(h.translate),h.params.scrollbar&&h.scrollbar&&h.scrollbar.setTranslate(h.translate),h.params.control&&h.controller&&h.controller.setTranslate(h.translate,n),h.params.hashnav&&h.hashnav&&h.hashnav.setHash(),h.params.onSetTranslate&&h.params.onSetTranslate(h,h.translate)},h.getTranslate=function(e,t){var n,r,i,o;return"undefined"==typeof t&&(t="x"),i=window.getComputedStyle(e,null),window.WebKitCSSMatrix?o=new WebKitCSSMatrix("none"===i.webkitTransform?"":i.webkitTransform):(o=i.MozTransform||i.OTransform||i.MsTransform||i.msTransform||i.transform||i.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),n=o.toString().split(",")),"x"===t&&(r=window.WebKitCSSMatrix?o.m41:parseFloat(16===n.length?n[12]:n[4])),"y"===t&&(r=window.WebKitCSSMatrix?o.m42:parseFloat(16===n.length?n[13]:n[5])),h.rtl&&r&&(r=-r),r||0},h.getWrapperTranslate=function(e){return"undefined"==typeof e&&(e=r()?"x":"y"),h.getTranslate(h.wrapper[0],e)},h.observers=[],h.initObservers=function(){if(h.params.observeParents)for(var e=h.container.parents(),t=0;te.length&&(h.loopedSlides=e.length);var t,n=[],r=[];for(e.each(function(t,i){var o=m(this);t=e.length-h.loopedSlides&&n.push(i),o.attr("data-swiper-slide-index",t)}),t=0;t=0;t--)h.wrapper.prepend(m(n[t].cloneNode(!0)).addClass(h.params.slideDuplicateClass))},h.destroyLoop=function(){h.wrapper.children("."+h.params.slideClass+"."+h.params.slideDuplicateClass).remove()},h.fixLoop=function(){var e;h.activeIndex=2*h.loopedSlides||h.activeIndex>h.slides.length-2*h.params.slidesPerView)&&(e=-h.slides.length+h.activeIndex+h.loopedSlides,e+=h.loopedSlides,h.slideTo(e,0,!1,!0))},h.appendSlide=function(e){if(h.params.loop&&h.destroyLoop(),"object"==typeof e&&e.length)for(var t=0;tt&&n--;n=Math.max(n,0)}else t=e,h.slides[t]&&h.slides.eq(t).remove(),n>t&&n--,n=Math.max(n,0);h.params.observer&&h.support.observer||h.update(!0),h.slideTo(n,0,!1)},h.removeAllSlides=function(){for(var e=[],t=0;t
'),h.wrapper.append(e)),e.css({height:h.width+"px"})):(e=h.container.find(".swiper-cube-shadow"),0===e.length&&(e=m('
'),h.container.append(e))));for(var n=0;n=s&&s>-1&&(t=90*n+90*s,h.rtl&&(t=90*-n-90*s)),i.transform(d),h.params.cube.slideShadows){var p=i.find(r()?".swiper-slide-shadow-left":".swiper-slide-shadow-top"),f=i.find(r()?".swiper-slide-shadow-right":".swiper-slide-shadow-bottom");0===p.length&&(p=m('
'),i.append(p)),0===f.length&&(f=m('
'),i.append(f));{i[0].progress}p.length&&(p[0].style.opacity=-i[0].progress),f.length&&(f[0].style.opacity=i[0].progress)}}if(h.wrapper.css({"-webkit-transform-origin":"50% 50% -"+h.size/2+"px","-moz-transform-origin":"50% 50% -"+h.size/2+"px","-ms-transform-origin":"50% 50% -"+h.size/2+"px","transform-origin":"50% 50% -"+h.size/2+"px"}),h.params.cube.shadow)if(r())e.transform("translate3d(0px, "+(h.width/2+h.params.cube.shadowOffset)+"px, "+-h.width/2+"px) rotateX(90deg) rotateZ(0deg) scale("+h.params.cube.shadowScale+")");else{var g=Math.abs(t)-90*Math.floor(Math.abs(t)/90),v=1.5-(Math.sin(2*g*Math.PI/360)/2+Math.cos(2*g*Math.PI/360)/2),y=h.params.cube.shadowScale,$=h.params.cube.shadowScale/v,b=h.params.cube.shadowOffset;e.transform("scale3d("+y+", 1, "+$+") translate3d(0px, "+(h.height/2+b)+"px, "+-h.height/2/$+"px) rotateX(-90deg)")}var w=h.isSafari||h.isUiWebView?-h.size/2:0;h.wrapper.transform("translate3d(0px,0,"+w+"px) rotateX("+(r()?0:t)+"deg) rotateY("+(r()?-t:0)+"deg)")},setTransition:function(e){h.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),h.params.cube.shadow&&!r()&&h.container.find(".swiper-cube-shadow").transition(e)}},coverflow:{setTranslate:function(){for(var e=h.translate,t=r()?-e+h.width/2:-e+h.height/2,n=r()?h.params.coverflow.rotate:-h.params.coverflow.rotate,i=h.params.coverflow.depth,o=0,a=h.slides.length;a>o;o++){var s=h.slides.eq(o),l=h.slidesSizesGrid[o],u=s[0].swiperSlideOffset,c=(t-u-l/2)/l*h.params.coverflow.modifier,d=r()?n*c:0,p=r()?0:n*c,f=-i*Math.abs(c),g=r()?0:h.params.coverflow.stretch*c,v=r()?h.params.coverflow.stretch*c:0;Math.abs(v)<.001&&(v=0),Math.abs(g)<.001&&(g=0),Math.abs(f)<.001&&(f=0),Math.abs(d)<.001&&(d=0),Math.abs(p)<.001&&(p=0);var y="translate3d("+v+"px,"+g+"px,"+f+"px) rotateX("+p+"deg) rotateY("+d+"deg)";if(s.transform(y),s[0].style.zIndex=-Math.abs(Math.round(c))+1,h.params.coverflow.slideShadows){var $=s.find(r()?".swiper-slide-shadow-left":".swiper-slide-shadow-top"),b=s.find(r()?".swiper-slide-shadow-right":".swiper-slide-shadow-bottom");0===$.length&&($=m('
'),s.append($)),0===b.length&&(b=m('
'),s.append(b)),$.length&&($[0].style.opacity=c>0?c:0),b.length&&(b[0].style.opacity=-c>0?-c:0)}}if(window.navigator.pointerEnabled||window.navigator.msPointerEnabled){var w=h.wrapper.style;w.perspectiveOrigin=t+"px 50%"}},setTransition:function(e){h.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e)}}},h.scrollbar={set:function(){if(h.params.scrollbar){var e=h.scrollbar;e.track=m(h.params.scrollbar),e.drag=e.track.find(".swiper-scrollbar-drag"),0===e.drag.length&&(e.drag=m('
'),e.track.append(e.drag)),e.drag[0].style.width="",e.drag[0].style.height="",e.trackSize=r()?e.track[0].offsetWidth:e.track[0].offsetHeight,e.divider=h.size/h.virtualWidth,e.moveDivider=e.divider*(e.trackSize/h.size),e.dragSize=e.trackSize*e.divider,r()?e.drag[0].style.width=e.dragSize+"px":e.drag[0].style.height=e.dragSize+"px",e.track[0].style.display=e.divider>=1?"none":"",h.params.scrollbarHide&&(e.track[0].style.opacity=0)}},setTranslate:function(){if(h.params.scrollbar){var e,t=h.scrollbar,n=(h.translate||0,t.dragSize);e=(t.trackSize-t.dragSize)*h.progress,h.rtl&&r()?(e=-e,e>0?(n=t.dragSize-e,e=0):-e+t.dragSize>t.trackSize&&(n=t.trackSize+e)):0>e?(n=t.dragSize+e,e=0):e+t.dragSize>t.trackSize&&(n=t.trackSize-e),r()?(t.drag.transform("translate3d("+e+"px, 0, 0)"),t.drag[0].style.width=n+"px"):(t.drag.transform("translate3d(0px, "+e+"px, 0)"),t.drag[0].style.height=n+"px"),h.params.scrollbarHide&&(clearTimeout(t.timeout),t.track[0].style.opacity=1,t.timeout=setTimeout(function(){t.track[0].style.opacity=0,t.track.transition(400)},1e3))}},setTransition:function(e){h.params.scrollbar&&h.scrollbar.drag.transition(e)}},h.controller={setTranslate:function(e,t){var n,r,i=h.params.control;if(h.isArray(i))for(var o=0;on;n++){var i=h.slides.eq(n),o=i.attr("data-hash");if(o===e&&!i.hasClass(h.params.slideDuplicateClass)){var a=i.index();h._slideTo(a,t)}}}},setHash:function(){h.hashnav.initialized&&h.params.hashnav&&(document.location.hash=h.slides.eq(h.activeIndex).attr("data-hash")||"")}},h.disableKeyboardControl=function(){m(document).off("keydown",l)},h.enableKeyboardControl=function(){m(document).on("keydown",l)},h._wheelEvent=!1,h._lastWheelScrollTime=(new Date).getTime(),h.params.mousewheelControl){if(void 0!==document.onmousewheel&&(h._wheelEvent="mousewheel"),!h._wheelEvent)try{new WheelEvent("wheel"),h._wheelEvent="wheel"}catch(D){}h._wheelEvent||(h._wheelEvent="DOMMouseScroll")}return h.disableMousewheelControl=function(){return h._wheelEvent?(h.container.off(h._wheelEvent,u),!0):!1},h.enableMousewheelControl=function(){return h._wheelEvent?(h.container.on(h._wheelEvent,u),!0):!1},h.parallax={setTranslate:function(){h.container.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(){c(this,h.progress)}),h.slides.each(function(){var e=m(this);e.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(){var t=Math.min(Math.max(e[0].progress,-1),1);c(this,t)})})},setTransition:function(e){"undefined"==typeof e&&(e=h.params.speed),h.container.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(){var t=m(this),n=parseInt(t.attr("data-swiper-parallax-duration"),10)||e;0===e&&(n=0),t.transition(n)})}},h.init=function(){h.params.loop&&h.createLoop(),h.updateContainerSize(),h.updateSlidesSize(),h.updatePagination(),h.params.scrollbar&&h.scrollbar&&h.scrollbar.set(),"slide"!==h.params.effect&&h.effects[h.params.effect]&&(h.params.loop||h.updateProgress(),h.effects[h.params.effect].setTranslate()),h.params.loop?h.slideTo(h.params.initialSlide+h.loopedSlides,0,h.params.runCallbacksOnInit):(h.slideTo(h.params.initialSlide,0,h.params.runCallbacksOnInit),0===h.params.initialSlide&&h.parallax&&h.params.parallax&&h.parallax.setTranslate()),h.attachEvents(),h.params.observer&&h.support.observer&&h.initObservers(),h.params.updateOnImagesReady&&h.preloadImages(),h.params.autoplay&&h.startAutoplay(),h.params.keyboardControl&&h.enableKeyboardControl&&h.enableKeyboardControl(),h.params.mousewheelControl&&h.enableMousewheelControl&&h.enableMousewheelControl(),h.params.hashnav&&h.hashnav&&h.hashnav.init(),h.params.onInit&&h.params.onInit(h)},h.destroy=function(e){h.detachEvents(),h.disconnectObservers(),h.params.keyboardControl&&h.disableKeyboardControl&&h.disableKeyboardControl(),h.params.mousewheelControl&&h.disableMousewheelControl&&h.disableMousewheelControl(),h.params.onDestroy&&h.params.onDestroy(),e!==!1&&(h=null)},h.init(),h}},Swiper.prototype={isSafari:function(){var e=navigator.userAgent.toLowerCase();return e.indexOf("safari")>=0&&e.indexOf("chrome")<0&&e.indexOf("android")<0}(),isUiWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(navigator.userAgent),isArray:function(e){return"[object Array]"===Object.prototype.toString.apply(e)},browser:{ie:window.navigator.pointerEnabled||window.navigator.msPointerEnabled},device:function(){var e=navigator.userAgent,t=e.match(/(Android);?[\s\/]+([\d.]+)?/),n=e.match(/(iPad).*OS\s([\d_]+)/),r=(e.match(/(iPod)(.*OS\s([\d_]+))?/),!n&&e.match(/(iPhone\sOS)\s([\d_]+)/));return{ios:n||r||n,android:t}}(),support:{touch:window.Modernizr&&Modernizr.touch===!0||function(){return!!("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch) +}(),transforms3d:window.Modernizr&&Modernizr.csstransforms3d===!0||function(){var e=document.createElement("div").style;return"webkitPerspective"in e||"MozPerspective"in e||"OPerspective"in e||"MsPerspective"in e||"perspective"in e}(),flexbox:function(){for(var e=document.createElement("div").style,t="WebkitBox msFlexbox MsFlexbox WebkitFlex MozBox flex".split(" "),n=0;n=0&&s.indexOf(">")>=0){var l="div";for(0===s.indexOf(":~]/)?(n||document).querySelectorAll(t):[document.getElementById(t.split("#")[1])],i=0;i0&&t[0].nodeType)for(i=0;i0?parseFloat(this.css("width")):null},outerWidth:function(e){return this.length>0?e?this[0].offsetWidth+parseFloat(this.css("margin-right"))+parseFloat(this.css("margin-left")):this[0].offsetWidth:null},height:function(){return this[0]===window?window.innerHeight:this.length>0?parseFloat(this.css("height")):null},outerHeight:function(e){return this.length>0?e?this[0].offsetHeight+parseFloat(this.css("margin-top"))+parseFloat(this.css("margin-bottom")):this[0].offsetHeight:null},offset:function(){if(this.length>0){var e=this[0],t=e.getBoundingClientRect(),n=document.body,r=e.clientTop||n.clientTop||0,i=e.clientLeft||n.clientLeft||0,o=window.pageYOffset||e.scrollTop,a=window.pageXOffset||e.scrollLeft;return{top:t.top+o-r,left:t.left+a-i}}return null},css:function(e,t){var n;if(1===arguments.length){if("string"!=typeof e){for(n=0;nr-1?new e([]):0>t?(n=r+t,new e(0>n?[]:[this[n]])):new e([this[t]])},append:function(t){var n,r;for(n=0;n=0;r--)this[n].insertBefore(i.childNodes[r],this[n].childNodes[0])}else if(t instanceof e)for(r=0;r1)for(var i=0;i1)for(var i=0;i0?n?this[0].nextElementSibling&&t(this[0].nextElementSibling).is(n)?[this[0].nextElementSibling]:[]:this[0].nextElementSibling?[this[0].nextElementSibling]:[]:[])},nextAll:function(n){var r=[],i=this[0];if(!i)return new e([]);for(;i.nextElementSibling;){var o=i.nextElementSibling;n?t(o).is(n)&&r.push(o):r.push(o),i=o}return new e(r)},prev:function(n){return new e(this.length>0?n?this[0].previousElementSibling&&t(this[0].previousElementSibling).is(n)?[this[0].previousElementSibling]:[]:this[0].previousElementSibling?[this[0].previousElementSibling]:[]:[])},prevAll:function(n){var r=[],i=this[0];if(!i)return new e([]);for(;i.previousElementSibling;){var o=i.previousElementSibling;n?t(o).is(n)&&r.push(o):r.push(o),i=o}return new e(r)},parent:function(e){for(var n=[],r=0;r0&&t-1 in e}function o(e,t,n){var r,a;if(e)if(C(e))for(r in e)"prototype"==r||"length"==r||"name"==r||e.hasOwnProperty&&!e.hasOwnProperty(r)||t.call(n,e[r],r,e);else if(ci(e)||i(e)){var s="object"!=typeof e;for(r=0,a=e.length;a>r;r++)(s||r in e)&&t.call(n,e[r],r,e)}else if(e.forEach&&e.forEach!==o)e.forEach(t,n,e);else for(r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r,e);return e}function a(e){return Object.keys(e).sort()}function s(e,t,n){for(var r=a(e),i=0;in;n++){var i=arguments[n];if(i)for(var o=Object.keys(i),a=0,s=o.length;s>a;a++){var l=o[a];e[l]=i[l]}}return c(e,t),e}function p(e){return parseInt(e,10)}function f(e,t){return d(Object.create(e),t)}function h(){}function m(e){return e}function g(e){return function(){return e}}function v(e){return"undefined"==typeof e}function y(e){return"undefined"!=typeof e}function $(e){return null!==e&&"object"==typeof e}function b(e){return"string"==typeof e}function w(e){return"number"==typeof e}function x(e){return"[object Date]"===oi.call(e)}function C(e){return"function"==typeof e}function S(e){return"[object RegExp]"===oi.call(e)}function T(e){return e&&e.window===e}function k(e){return e&&e.$evalAsync&&e.$watch}function E(e){return"[object File]"===oi.call(e)}function A(e){return"[object FormData]"===oi.call(e)}function O(e){return"[object Blob]"===oi.call(e)}function D(e){return"boolean"==typeof e}function N(e){return e&&C(e.then)}function M(e){return!(!e||!(e.nodeName||e.prop&&e.attr&&e.find))}function P(e){var t,n={},r=e.split(",");for(t=0;t=0&&e.splice(n,1),t}function _(e,t,n,r){if(T(e)||k(e))throw ai("cpws","Can't copy! Making copies of Window or Scope instances is not supported.");if(t){if(e===t)throw ai("cpi","Can't copy! Source and destination are identical.");if(n=n||[],r=r||[],$(e)){var i=n.indexOf(e);if(-1!==i)return r[i];n.push(e),r.push(t)}var a;if(ci(e)){t.length=0;for(var s=0;sn;n++)t[n]=e[n]}else if($(e)){t=t||{};for(var i in e)("$"!==i.charAt(0)||"$"!==i.charAt(1))&&(t[i]=e[i])}return t||e}function j(e,t){if(e===t)return!0;if(null===e||null===t)return!1;if(e!==e&&t!==t)return!0;var r,i,o,a=typeof e,s=typeof t;if(a==s&&"object"==a){if(!ci(e)){if(x(e))return x(t)?j(e.getTime(),t.getTime()):!1;if(S(e)&&S(t))return e.toString()==t.toString();if(k(e)||k(t)||T(e)||T(t)||ci(t))return!1;o={};for(i in e)if("$"!==i.charAt(0)&&!C(e[i])){if(!j(e[i],t[i]))return!1;o[i]=!0}for(i in t)if(!o.hasOwnProperty(i)&&"$"!==i.charAt(0)&&t[i]!==n&&!C(t[i]))return!1;return!0}if(!ci(t))return!1;if((r=e.length)==t.length){for(i=0;r>i;i++)if(!j(e[i],t[i]))return!1;return!0}}return!1}function z(e,t,n){return e.concat(ni.call(t,n))}function R(e,t){return ni.call(e,t||0)}function H(e,t){var n=arguments.length>2?R(arguments,2):[];return!C(t)||t instanceof RegExp?t:n.length?function(){return arguments.length?t.apply(e,z(n,arguments,0)):t.apply(e,n)}:function(){return arguments.length?t.apply(e,arguments):t.call(e)}}function q(e,r){var i=r;return"string"==typeof e&&"$"===e.charAt(0)&&"$"===e.charAt(1)?i=n:T(r)?i="$WINDOW":r&&t===r?i="$DOCUMENT":k(r)&&(i="$SCOPE"),i}function B(e,t){return"undefined"==typeof e?n:(w(t)||(t=t?2:null),JSON.stringify(e,q,t))}function V(e){return b(e)?JSON.parse(e):e}function W(e){e=Zr(e).clone();try{e.empty()}catch(t){}var n=Zr("
").append(e).html();try{return e[0].nodeType===yi?Gr(n):n.match(/^(<[^>]+>)/)[1].replace(/^<([\w\-]+)/,function(e,t){return"<"+Gr(t)})}catch(t){return Gr(n)}}function U(e){try{return decodeURIComponent(e)}catch(t){}}function G(e){var t,n,r={};return o((e||"").split("&"),function(e){if(e&&(t=e.replace(/\+/g,"%20").split("="),n=U(t[0]),y(n))){var i=y(t[1])?U(t[1]):!0;Xr.call(r,n)?ci(r[n])?r[n].push(i):r[n]=[r[n],i]:r[n]=i}}),r}function X(e){var t=[];return o(e,function(e,n){ci(e)?o(e,function(e){t.push(K(n,!0)+(e===!0?"":"="+K(e,!0)))}):t.push(K(n,!0)+(e===!0?"":"="+K(e,!0)))}),t.length?t.join("&"):""}function Y(e){return K(e,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function K(e,t){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%20/g,t?"%20":"+")}function Q(e,t){var n,r,i=hi.length;for(e=Zr(e),r=0;i>r;++r)if(n=hi[r]+t,b(n=e.attr(n)))return n;return null}function J(e,t){var n,r,i={};o(hi,function(t){var i=t+"app";!n&&e.hasAttribute&&e.hasAttribute(i)&&(n=e,r=e.getAttribute(i))}),o(hi,function(t){var i,o=t+"app";!n&&(i=e.querySelector("["+o.replace(":","\\:")+"]"))&&(n=i,r=i.getAttribute(o))}),n&&(i.strictDi=null!==Q(n,"strict-di"),t(n,r?[r]:[],i))}function Z(n,r,i){$(i)||(i={});var a={strictDi:!1};i=d(a,i);var s=function(){if(n=Zr(n),n.injector()){var e=n[0]===t?"document":W(n);throw ai("btstrpd","App Already Bootstrapped with this Element '{0}'",e.replace(//,">"))}r=r||[],r.unshift(["$provide",function(e){e.value("$rootElement",n)}]),i.debugInfoEnabled&&r.push(["$compileProvider",function(e){e.debugInfoEnabled(!0)}]),r.unshift("ng");var o=Vt(r,i.strictDi);return o.invoke(["$rootScope","$rootElement","$compile","$injector",function(e,t,n,r){e.$apply(function(){t.data("$injector",r),n(t)(e)})}]),o},l=/^NG_ENABLE_DEBUG_INFO!/,u=/^NG_DEFER_BOOTSTRAP!/;return e&&l.test(e.name)&&(i.debugInfoEnabled=!0,e.name=e.name.replace(l,"")),e&&!u.test(e.name)?s():(e.name=e.name.replace(u,""),si.resumeBootstrap=function(e){return o(e,function(e){r.push(e)}),s()},void(C(si.resumeDeferredBootstrap)&&si.resumeDeferredBootstrap()))}function et(){e.name="NG_ENABLE_DEBUG_INFO!"+e.name,e.location.reload()}function tt(e){var t=si.element(e).injector();if(!t)throw ai("test","no injector found for element argument to getTestability");return t.get("$$testability")}function nt(e,t){return t=t||"_",e.replace(mi,function(e,n){return(n?t:"")+e.toLowerCase()})}function rt(){var t;gi||(ei=e.jQuery,ei&&ei.fn.on?(Zr=ei,d(ei.fn,{scope:_i.scope,isolateScope:_i.isolateScope,controller:_i.controller,injector:_i.injector,inheritedData:_i.inheritedData}),t=ei.cleanData,ei.cleanData=function(e){var n;if(ui)ui=!1;else for(var r,i=0;null!=(r=e[i]);i++)n=ei._data(r,"events"),n&&n.$destroy&&ei(r).triggerHandler("$destroy");t(e)}):Zr=bt,si.element=Zr,gi=!0)}function it(e,t,n){if(!e)throw ai("areq","Argument '{0}' is {1}",t||"?",n||"required");return e}function ot(e,t,n){return n&&ci(e)&&(e=e[e.length-1]),it(C(e),t,"not a function, got "+(e&&"object"==typeof e?e.constructor.name||"Object":typeof e)),e}function at(e,t){if("hasOwnProperty"===e)throw ai("badname","hasOwnProperty is not a valid {0} name",t)}function st(e,t,n){if(!t)return e;for(var r,i=t.split("."),o=e,a=i.length,s=0;a>s;s++)r=i[s],e&&(e=(o=e)[r]);return!n&&C(e)?H(o,e):e}function lt(e){var t=e[0],n=e[e.length-1],r=[t];do{if(t=t.nextSibling,!t)break;r.push(t)}while(t!==n);return Zr(r)}function ut(){return Object.create(null)}function ct(e){function t(e,t,n){return e[t]||(e[t]=n())}var n=r("$injector"),i=r("ng"),o=t(e,"angular",Object);return o.$$minErr=o.$$minErr||r,t(o,"module",function(){var e={};return function(r,o,a){var s=function(e,t){if("hasOwnProperty"===e)throw i("badname","hasOwnProperty is not a valid {0} name",t)};return s(r,"module"),o&&e.hasOwnProperty(r)&&(e[r]=null),t(e,r,function(){function e(e,n,r,i){return i||(i=t),function(){return i[r||"push"]([e,n,arguments]),u}}if(!o)throw n("nomod","Module '{0}' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.",r);var t=[],i=[],s=[],l=e("$injector","invoke","push",i),u={_invokeQueue:t,_configBlocks:i,_runBlocks:s,requires:o,name:r,provider:e("$provide","provider"),factory:e("$provide","factory"),service:e("$provide","service"),value:e("$provide","value"),constant:e("$provide","constant","unshift"),animation:e("$animateProvider","register"),filter:e("$filterProvider","register"),controller:e("$controllerProvider","register"),directive:e("$compileProvider","directive"),config:l,run:function(e){return s.push(e),this}};return a&&l(a),u})}})}function dt(e){var t=[];return JSON.stringify(e,function(e,n){if(n=q(e,n),$(n)){if(t.indexOf(n)>=0)return"<>";t.push(n)}return n})}function pt(e){return"function"==typeof e?e.toString().replace(/ \{[\s\S]*$/,""):"undefined"==typeof e?"undefined":"string"!=typeof e?dt(e):e}function ft(t){d(t,{bootstrap:Z,copy:_,extend:d,equals:j,element:Zr,forEach:o,injector:Vt,noop:h,bind:H,toJson:B,fromJson:V,identity:m,isUndefined:v,isDefined:y,isString:b,isFunction:C,isObject:$,isNumber:w,isElement:M,isArray:ci,version:xi,isDate:x,lowercase:Gr,uppercase:Yr,callbacks:{counter:0},getTestability:tt,$$minErr:r,$$csp:fi,reloadWithDebugInfo:et}),ti=ct(e);try{ti("ngLocale")}catch(n){ti("ngLocale",[]).provider("$locale",vn)}ti("ng",["ngLocale"],["$provide",function(e){e.provider({$$sanitizeUri:Yn}),e.provider("$compile",Qt).directive({a:Oo,input:Uo,textarea:Uo,form:Fo,script:Ia,select:ja,style:Ra,option:za,ngBind:Yo,ngBindHtml:Qo,ngBindTemplate:Ko,ngClass:Zo,ngClassEven:ta,ngClassOdd:ea,ngCloak:na,ngController:ra,ngForm:Io,ngHide:Oa,ngIf:aa,ngInclude:sa,ngInit:ua,ngNonBindable:Ca,ngPluralize:Sa,ngRepeat:Ta,ngShow:Aa,ngStyle:Da,ngSwitch:Na,ngSwitchWhen:Ma,ngSwitchDefault:Pa,ngOptions:La,ngTransclude:Fa,ngModel:ba,ngList:ca,ngChange:Jo,pattern:qa,ngPattern:qa,required:Ha,ngRequired:Ha,minlength:Va,ngMinlength:Va,maxlength:Ba,ngMaxlength:Ba,ngValue:Xo,ngModelOptions:xa}).directive({ngInclude:la}).directive(Do).directive(ia),e.provider({$anchorScroll:Wt,$animate:Ui,$browser:Xt,$cacheFactory:Yt,$controller:tn,$document:nn,$exceptionHandler:rn,$filter:sr,$interpolate:mn,$interval:gn,$http:dn,$httpBackend:fn,$location:Nn,$log:Mn,$parse:Bn,$rootScope:Xn,$q:Vn,$$q:Wn,$sce:Zn,$sceDelegate:Jn,$sniffer:er,$templateCache:Kt,$templateRequest:tr,$$testability:nr,$timeout:rr,$window:ar,$$rAF:Gn,$$asyncCallback:Ut,$$jqLite:zt})}])}function ht(){return++Si}function mt(e){return e.replace(Ei,function(e,t,n,r){return r?n.toUpperCase():n}).replace(Ai,"Moz$1")}function gt(e){return!Mi.test(e)}function vt(e){var t=e.nodeType;return t===vi||!t||t===bi}function yt(e,t){var n,r,i,a,s=t.createDocumentFragment(),l=[];if(gt(e))l.push(t.createTextNode(e));else{for(n=n||s.appendChild(t.createElement("div")),r=(Pi.exec(e)||["",""])[1].toLowerCase(),i=Ii[r]||Ii._default,n.innerHTML=i[1]+e.replace(Fi,"<$1>")+i[2],a=i[0];a--;)n=n.lastChild;l=z(l,n.childNodes),n=s.firstChild,n.textContent=""}return s.textContent="",s.innerHTML="",o(l,function(e){s.appendChild(e)}),s}function $t(e,n){n=n||t;var r;return(r=Ni.exec(e))?[n.createElement(r[1])]:(r=yt(e,n))?r.childNodes:[]}function bt(e){if(e instanceof bt)return e;var t;if(b(e)&&(e=di(e),t=!0),!(this instanceof bt)){if(t&&"<"!=e.charAt(0))throw Di("nosel","Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element");return new bt(e)}t?Dt(this,$t(e)):Dt(this,e)}function wt(e){return e.cloneNode(!0)}function xt(e,t){if(t||St(e),e.querySelectorAll)for(var n=e.querySelectorAll("*"),r=0,i=n.length;i>r;r++)St(n[r])}function Ct(e,t,n,r){if(y(r))throw Di("offargs","jqLite#off() does not support the `selector` argument");var i=Tt(e),a=i&&i.events,s=i&&i.handle;if(s)if(t)o(t.split(" "),function(t){if(y(n)){var r=a[t];if(I(r||[],n),r&&r.length>0)return}ki(e,t,s),delete a[t]});else for(t in a)"$destroy"!==t&&ki(e,t,s),delete a[t]}function St(e,t){var r=e.ng339,i=r&&Ci[r];if(i){if(t)return void delete i.data[t];i.handle&&(i.events.$destroy&&i.handle({},"$destroy"),Ct(e)),delete Ci[r],e.ng339=n}}function Tt(e,t){var r=e.ng339,i=r&&Ci[r];return t&&!i&&(e.ng339=r=ht(),i=Ci[r]={events:{},data:{},handle:n}),i}function kt(e,t,n){if(vt(e)){var r=y(n),i=!r&&t&&!$(t),o=!t,a=Tt(e,!i),s=a&&a.data;if(r)s[t]=n;else{if(o)return s;if(i)return s&&s[t];d(s,t)}}}function Et(e,t){return e.getAttribute?(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+t+" ")>-1:!1}function At(e,t){t&&e.setAttribute&&o(t.split(" "),function(t){e.setAttribute("class",di((" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").replace(" "+di(t)+" "," ")))})}function Ot(e,t){if(t&&e.setAttribute){var n=(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ");o(t.split(" "),function(e){e=di(e),-1===n.indexOf(" "+e+" ")&&(n+=e+" ")}),e.setAttribute("class",di(n))}}function Dt(e,t){if(t)if(t.nodeType)e[e.length++]=t;else{var n=t.length;if("number"==typeof n&&t.window!==t){if(n)for(var r=0;n>r;r++)e[e.length++]=t[r]}else e[e.length++]=t}}function Nt(e,t){return Mt(e,"$"+(t||"ngController")+"Controller")}function Mt(e,t,r){e.nodeType==bi&&(e=e.documentElement);for(var i=ci(t)?t:[t];e;){for(var o=0,a=i.length;a>o;o++)if((r=Zr.data(e,i[o]))!==n)return r;e=e.parentNode||e.nodeType===wi&&e.host}}function Pt(e){for(xt(e,!0);e.firstChild;)e.removeChild(e.firstChild)}function Ft(e,t){t||xt(e);var n=e.parentNode;n&&n.removeChild(e)}function It(t,n){n=n||e,"complete"===n.document.readyState?n.setTimeout(t):Zr(n).on("load",t)}function _t(e,t){var n=Li[t.toLowerCase()];return n&&ji[F(e)]&&n}function Lt(e,t){var n=e.nodeName;return("INPUT"===n||"TEXTAREA"===n)&&zi[t]}function jt(e,t){var n=function(n,r){n.isDefaultPrevented=function(){return n.defaultPrevented};var i=t[r||n.type],o=i?i.length:0;if(o){if(v(n.immediatePropagationStopped)){var a=n.stopImmediatePropagation;n.stopImmediatePropagation=function(){n.immediatePropagationStopped=!0,n.stopPropagation&&n.stopPropagation(),a&&a.call(n)}}n.isImmediatePropagationStopped=function(){return n.immediatePropagationStopped===!0},o>1&&(i=L(i));for(var s=0;o>s;s++)n.isImmediatePropagationStopped()||i[s].call(e,n)}};return n.elem=e,n}function zt(){this.$get=function(){return d(bt,{hasClass:function(e,t){return e.attr&&(e=e[0]),Et(e,t)},addClass:function(e,t){return e.attr&&(e=e[0]),Ot(e,t)},removeClass:function(e,t){return e.attr&&(e=e[0]),At(e,t)}})}}function Rt(e,t){var n=e&&e.$$hashKey;if(n)return"function"==typeof n&&(n=e.$$hashKey()),n;var r=typeof e;return n="function"==r||"object"==r&&null!==e?e.$$hashKey=r+":"+(t||u)():r+":"+e}function Ht(e,t){if(t){var n=0;this.nextUid=function(){return++n}}o(e,this.put,this)}function qt(e){var t=e.toString().replace(Bi,""),n=t.match(Ri);return n?"function("+(n[1]||"").replace(/[\s\r\n]+/," ")+")":"fn"}function Bt(e,t,n){var r,i,a,s;if("function"==typeof e){if(!(r=e.$inject)){if(r=[],e.length){if(t)throw b(n)&&n||(n=e.name||qt(e)),Vi("strictdi","{0} is not using explicit annotation and cannot be invoked in strict mode",n);i=e.toString().replace(Bi,""),a=i.match(Ri),o(a[1].split(Hi),function(e){e.replace(qi,function(e,t,n){r.push(n)})})}e.$inject=r}}else ci(e)?(s=e.length-1,ot(e[s],"fn"),r=e.slice(0,s)):ot(e,"fn",!0);return r}function Vt(e,t){function r(e){return function(t,n){return $(t)?void o(t,l(e)):e(t,n)}}function i(e,t){if(at(e,"service"),(C(t)||ci(t))&&(t=k.instantiate(t)),!t.$get)throw Vi("pget","Provider '{0}' must define $get factory method.",e);return T[e+w]=t}function a(e,t){return function(){var n=A.invoke(t,this);if(v(n))throw Vi("undef","Provider '{0}' must return a value from $get factory method.",e);return n}}function s(e,t,n){return i(e,{$get:n!==!1?a(e,t):t})}function u(e,t){return s(e,["$injector",function(e){return e.instantiate(t)}])}function c(e,t){return s(e,g(t),!1)}function d(e,t){at(e,"constant"),T[e]=t,E[e]=t}function p(e,t){var n=k.get(e+w),r=n.$get;n.$get=function(){var e=A.invoke(r,n);return A.invoke(t,null,{$delegate:e})}}function f(e){var t,n=[];return o(e,function(e){function r(e){var t,n;for(t=0,n=e.length;n>t;t++){var r=e[t],i=k.get(r[0]);i[r[1]].apply(i,r[2])}}if(!S.get(e)){S.put(e,!0);try{b(e)?(t=ti(e),n=n.concat(f(t.requires)).concat(t._runBlocks),r(t._invokeQueue),r(t._configBlocks)):C(e)?n.push(k.invoke(e)):ci(e)?n.push(k.invoke(e)):ot(e,"module")}catch(i){throw ci(e)&&(e=e[e.length-1]),i.message&&i.stack&&-1==i.stack.indexOf(i.message)&&(i=i.message+"\n"+i.stack),Vi("modulerr","Failed to instantiate module {0} due to:\n{1}",e,i.stack||i.message||i)}}}),n}function m(e,n){function r(t,r){if(e.hasOwnProperty(t)){if(e[t]===y)throw Vi("cdep","Circular dependency found: {0}",t+" <- "+x.join(" <- "));return e[t]}try{return x.unshift(t),e[t]=y,e[t]=n(t,r)}catch(i){throw e[t]===y&&delete e[t],i}finally{x.shift()}}function i(e,n,i,o){"string"==typeof i&&(o=i,i=null);var a,s,l,u=[],c=Vt.$$annotate(e,t,o);for(s=0,a=c.length;a>s;s++){if(l=c[s],"string"!=typeof l)throw Vi("itkn","Incorrect injection token! Expected service name as string, got {0}",l);u.push(i&&i.hasOwnProperty(l)?i[l]:r(l,o))}return ci(e)&&(e=e[a]),e.apply(n,u)}function o(e,t,n){var r=Object.create((ci(e)?e[e.length-1]:e).prototype||null),o=i(e,r,t,n);return $(o)||C(o)?o:r}return{invoke:i,instantiate:o,get:r,annotate:Vt.$$annotate,has:function(t){return T.hasOwnProperty(t+w)||e.hasOwnProperty(t)}}}t=t===!0;var y={},w="Provider",x=[],S=new Ht([],!0),T={$provide:{provider:r(i),factory:r(s),service:r(u),value:r(c),constant:r(d),decorator:p}},k=T.$injector=m(T,function(e,t){throw si.isString(t)&&x.push(t),Vi("unpr","Unknown provider: {0}",x.join(" <- "))}),E={},A=E.$injector=m(E,function(e,t){var r=k.get(e+w,t);return A.invoke(r.$get,r,n,e)});return o(f(e),function(e){A.invoke(e||h)}),A}function Wt(){var e=!0;this.disableAutoScrolling=function(){e=!1},this.$get=["$window","$location","$rootScope",function(t,n,r){function i(e){var t=null;return Array.prototype.some.call(e,function(e){return"a"===F(e)?(t=e,!0):void 0}),t}function o(){var e=s.yOffset;if(C(e))e=e();else if(M(e)){var n=e[0],r=t.getComputedStyle(n);e="fixed"!==r.position?0:n.getBoundingClientRect().bottom}else w(e)||(e=0);return e}function a(e){if(e){e.scrollIntoView();var n=o();if(n){var r=e.getBoundingClientRect().top;t.scrollBy(0,r-n)}}else t.scrollTo(0,0)}function s(){var e,t=n.hash();t?(e=l.getElementById(t))?a(e):(e=i(l.getElementsByName(t)))?a(e):"top"===t&&a(null):a(null)}var l=t.document;return e&&r.$watch(function(){return n.hash()},function(e,t){(e!==t||""!==e)&&It(function(){r.$evalAsync(s)})}),s}]}function Ut(){this.$get=["$$rAF","$timeout",function(e,t){return e.supported?function(t){return e(t)}:function(e){return t(e,0,!1)}}]}function Gt(e,t,r,i){function a(e){try{e.apply(null,R(arguments,1))}finally{if(C--,0===C)for(;S.length;)try{S.pop()()}catch(t){r.error(t)}}}function s(e){var t=e.indexOf("#");return-1===t?"":e.substr(t+1)}function l(e,t){!function n(){o(k,function(e){e()}),T=t(n,e)}()}function u(){c(),d()}function c(){E=e.history.state,E=v(E)?null:E,j(E,F)&&(E=F),F=E}function d(){(O!==f.url()||A!==E)&&(O=f.url(),A=E,o(M,function(e){e(f.url(),E)}))}function p(e){try{return decodeURIComponent(e)}catch(t){return e}}var f=this,m=t[0],g=e.location,y=e.history,$=e.setTimeout,w=e.clearTimeout,x={};f.isMock=!1;var C=0,S=[];f.$$completeOutstandingRequest=a,f.$$incOutstandingRequestCount=function(){C++},f.notifyWhenNoOutstandingRequests=function(e){o(k,function(e){e()}),0===C?e():S.push(e)};var T,k=[];f.addPollFn=function(e){return v(T)&&l(100,$),k.push(e),e};var E,A,O=g.href,D=t.find("base"),N=null;c(),A=E,f.url=function(t,n,r){if(v(r)&&(r=null),g!==e.location&&(g=e.location),y!==e.history&&(y=e.history),t){var o=A===r;if(O===t&&(!i.history||o))return f;var a=O&&xn(O)===xn(t);return O=t,A=r,!i.history||a&&o?(a||(N=t),n?g.replace(t):a?g.hash=s(t):g.href=t):(y[n?"replaceState":"pushState"](r,"",t),c(),A=E),f}return N||g.href.replace(/%27/g,"'")},f.state=function(){return E};var M=[],P=!1,F=null;f.onUrlChange=function(t){return P||(i.history&&Zr(e).on("popstate",u),Zr(e).on("hashchange",u),P=!0),M.push(t),t +},f.$$checkUrlChange=d,f.baseHref=function(){var e=D.attr("href");return e?e.replace(/^(https?\:)?\/\/[^\/]*/,""):""};var I={},_="",L=f.baseHref();f.cookies=function(e,t){var i,o,a,s,l;if(!e){if(m.cookie!==_)for(_=m.cookie,o=_.split("; "),I={},s=0;s0&&(e=p(a.substring(0,l)),I[e]===n&&(I[e]=p(a.substring(l+1))));return I}t===n?m.cookie=encodeURIComponent(e)+"=;path="+L+";expires=Thu, 01 Jan 1970 00:00:00 GMT":b(t)&&(i=(m.cookie=encodeURIComponent(e)+"="+encodeURIComponent(t)+";path="+L).length+1,i>4096&&r.warn("Cookie '"+e+"' possibly not set or overflowed because it was too large ("+i+" > 4096 bytes)!"))},f.defer=function(e,t){var n;return C++,n=$(function(){delete x[n],a(e)},t||0),x[n]=!0,n},f.defer.cancel=function(e){return x[e]?(delete x[e],w(e),a(h),!0):!1}}function Xt(){this.$get=["$window","$log","$sniffer","$document",function(e,t,n,r){return new Gt(e,r,t,n)}]}function Yt(){this.$get=function(){function e(e,n){function i(e){e!=p&&(f?f==e&&(f=e.n):f=e,o(e.n,e.p),o(e,p),p=e,p.n=null)}function o(e,t){e!=t&&(e&&(e.p=t),t&&(t.n=e))}if(e in t)throw r("$cacheFactory")("iid","CacheId '{0}' is already taken!",e);var a=0,s=d({},n,{id:e}),l={},u=n&&n.capacity||Number.MAX_VALUE,c={},p=null,f=null;return t[e]={put:function(e,t){if(uu&&this.remove(f.key),t},get:function(e){if(u").parent()[0])});var a=P(e,t,e,n,r,i);N.$$addScopeClass(e);var s=null;return function(t,n,r){it(t,"scope"),r=r||{};var i=r.parentBoundTranscludeFn,o=r.transcludeControllers,l=r.futureParentElement;i&&i.$$boundTransclude&&(i=i.$$boundTransclude),s||(s=M(l));var u;if(u="html"!==s?Zr(J(s,Zr("
").append(e).html())):n?_i.clone.call(e):e,o)for(var c in o)u.data("$"+c+"Controller",o[c].instance);return N.$$addScopeInfo(u,t),n&&n(u,t),a&&a(t,u,u,i),u}}function M(e){var t=e&&e[0];return t&&"foreignobject"!==F(t)&&t.toString().match(/SVG/)?"svg":"html"}function P(e,t,r,i,o,a){function s(e,r,i,o){var a,s,l,u,c,d,p,f,g;if(h){var v=r.length;for(g=new Array(v),c=0;cc;)l=g[m[c++]],a=m[c++],s=m[c++],a?(a.scope?(u=e.$new(),N.$$addScopeInfo(Zr(l),u)):u=e,f=a.transcludeOnThisElement?_(e,a.transclude,o,a.elementTranscludeOnThisElement):!a.templateOnThisElement&&o?o:!o&&t?_(e,t):null,a(s,u,l,i,f)):s&&s(e,l.childNodes,n,o)}for(var l,u,c,d,p,f,h,m=[],g=0;gy;y++){var x=!1,C=!1;d=v[y],p=d.name,m=di(d.value),h=Jt(p),(g=dt.test(h))&&(p=p.replace(Xi,"").substr(8).replace(/_(.)/g,function(e,t){return t.toUpperCase()}));var S=h.replace(/(Start|End)$/,"");U(S)&&h===S+"Start"&&(x=p,C=p.substr(0,p.length-5)+"end",p=p.substr(0,p.length-6)),f=Jt(p.toLowerCase()),l[f]=p,(g||!n.hasOwnProperty(f))&&(n[f]=m,_t(e,f)&&(n[f]=!0)),et(e,t,m,f,g),V(t,f,"A",r,i,x,C)}if(a=e.className,$(a)&&(a=a.animVal),b(a)&&""!==a)for(;o=c.exec(a);)f=Jt(o[2]),V(t,f,"C",r,i)&&(n[f]=di(o[3])),a=a.substr(o.index+o[0].length);break;case yi:Q(t,e.nodeValue);break;case $i:try{o=u.exec(e.nodeValue),o&&(f=Jt(o[1]),V(t,f,"M",r,i)&&(n[f]=di(o[2])))}catch(T){}}return t.sort(Y),t}function z(e,t,n){var r=[],i=0;if(t&&e.hasAttribute&&e.hasAttribute(t)){do{if(!e)throw Gi("uterdir","Unterminated attribute, found '{0}' but no matching '{1}' found.",t,n);e.nodeType==vi&&(e.hasAttribute(t)&&i++,e.hasAttribute(n)&&i--),r.push(e),e=e.nextSibling}while(i>0)}else r.push(e);return Zr(r)}function H(e,t,n){return function(r,i,o,a,s){return i=z(i[0],t,n),e(r,i,o,a,s)}}function q(e,a,s,l,u,c,d,p,f){function h(e,t,n,r){e&&(n&&(e=H(e,n,r)),e.require=T.require,e.directiveName=E,(F===T||T.$$isolateScope)&&(e=rt(e,{isolateScope:!0})),d.push(e)),t&&(n&&(t=H(t,n,r)),t.require=T.require,t.directiveName=E,(F===T||T.$$isolateScope)&&(t=rt(t,{isolateScope:!0})),p.push(t))}function m(e,t,n,r){var i,a,s="data",l=!1,u=n;if(b(t)){if(a=t.match(v),t=t.substring(a[0].length),a[3]&&(a[1]?a[3]=null:a[1]=a[3]),"^"===a[1]?s="inheritedData":"^^"===a[1]&&(s="inheritedData",u=n.parent()),"?"===a[2]&&(l=!0),i=null,r&&"data"===s&&(i=r[t])&&(i=i.instance),i=i||u[s]("$"+t+"Controller"),!i&&!l)throw Gi("ctreq","Controller '{0}', required by directive '{1}', can't be found!",t,e);return i||null}return ci(t)&&(i=[],o(t,function(t){i.push(m(e,t,n,r))})),i}function w(e,t,i,l,u){function c(e,t,r){var i;return k(e)||(r=t,t=e,e=n),U&&(i=w),r||(r=U?C.parent():C),u(e,t,i,r,O)}var f,h,v,$,b,w,x,C,T;if(a===i?(T=s,C=s.$$element):(C=Zr(i),T=new at(C,s)),F&&(b=t.$new(!0)),u&&(x=c,x.$$boundTransclude=u),P&&(S={},w={},o(P,function(e){var n,r={$scope:e===F||e.$$isolateScope?b:t,$element:C,$attrs:T,$transclude:x};$=e.controller,"@"==$&&($=T[e.name]),n=y($,r,!0,e.controllerAs),w[e.name]=n,U||C.data("$"+e.name+"Controller",n.instance),S[e.name]=n})),F){N.$$addScopeInfo(C,b,!0,!(I&&(I===F||I===F.$$originalDirective))),N.$$addScopeClass(C,!0);var E=S&&S[F.name],A=b;E&&E.identifier&&F.bindToController===!0&&(A=E.instance),o(b.$$isolateBindings=F.$$isolateBindings,function(e,n){var i,o,a,s,l=e.attrName,u=e.optional,c=e.mode;switch(c){case"@":T.$observe(l,function(e){A[n]=e}),T.$$observers[l].$$scope=t,T[l]&&(A[n]=r(T[l])(t));break;case"=":if(u&&!T[l])return;o=g(T[l]),s=o.literal?j:function(e,t){return e===t||e!==e&&t!==t},a=o.assign||function(){throw i=A[n]=o(t),Gi("nonassign","Expression '{0}' used with directive '{1}' is non-assignable!",T[l],F.name)},i=A[n]=o(t);var d=function(e){return s(e,A[n])||(s(e,i)?a(t,e=A[n]):A[n]=e),i=e};d.$stateful=!0;var p;p=e.collection?t.$watchCollection(T[l],d):t.$watch(g(T[l],d),null,o.literal),b.$on("$destroy",p);break;case"&":o=g(T[l]),A[n]=function(e){return o(t,e)}}})}for(S&&(o(S,function(e){e()}),S=null),f=0,h=d.length;h>f;f++)v=d[f],ot(v,v.isolateScope?b:t,C,T,v.require&&m(v.directiveName,v.require,C,w),x);var O=t;for(F&&(F.template||null===F.templateUrl)&&(O=b),e&&e(O,i.childNodes,n,u),f=p.length-1;f>=0;f--)v=p[f],ot(v,v.isolateScope?b:t,C,T,v.require&&m(v.directiveName,v.require,C,w),x)}f=f||{};for(var x,S,T,E,A,O,D,M=-Number.MAX_VALUE,P=f.controllerDirectives,F=f.newIsolateScopeDirective,I=f.templateDirective,_=f.nonTlbTranscludeDirective,q=!1,V=!1,U=f.hasElementTranscludeDirective,Y=s.$$element=Zr(a),Q=c,Z=l,et=0,nt=e.length;nt>et;et++){T=e[et];var it=T.$$start,st=T.$$end;if(it&&(Y=z(a,it,st)),A=n,M>T.priority)break;if((D=T.scope)&&(T.templateUrl||($(D)?(K("new/isolated scope",F||x,T,Y),F=T):K("new/isolated scope",F,T,Y)),x=x||T),E=T.name,!T.templateUrl&&T.controller&&(D=T.controller,P=P||{},K("'"+E+"' controller",P[E],T,Y),P[E]=T),(D=T.transclude)&&(q=!0,T.$$tlb||(K("transclusion",_,T,Y),_=T),"element"==D?(U=!0,M=T.priority,A=Y,Y=s.$$element=Zr(t.createComment(" "+E+": "+s[E]+" ")),a=Y[0],tt(u,R(A),a),Z=N(A,l,M,Q&&Q.name,{nonTlbTranscludeDirective:_})):(A=Zr(wt(a)).contents(),Y.empty(),Z=N(A,l))),T.template)if(V=!0,K("template",I,T,Y),I=T,D=C(T.template)?T.template(Y,s):T.template,D=ct(D),T.replace){if(Q=T,A=gt(D)?[]:en(J(T.templateNamespace,di(D))),a=A[0],1!=A.length||a.nodeType!==vi)throw Gi("tplrt","Template for directive '{0}' must have exactly one root element. {1}",E,"");tt(u,Y,a);var lt={$attr:{}},ut=L(a,[],lt),dt=e.splice(et+1,e.length-(et+1));F&&B(ut),e=e.concat(ut).concat(dt),G(s,lt),nt=e.length}else Y.html(D);if(T.templateUrl)V=!0,K("template",I,T,Y),I=T,T.replace&&(Q=T),w=X(e.splice(et,e.length-et),Y,s,u,q&&Z,d,p,{controllerDirectives:P,newIsolateScopeDirective:F,templateDirective:I,nonTlbTranscludeDirective:_}),nt=e.length;else if(T.compile)try{O=T.compile(Y,s,Z),C(O)?h(null,O,it,st):O&&h(O.pre,O.post,it,st)}catch(pt){i(pt,W(Y))}T.terminal&&(w.terminal=!0,M=Math.max(M,T.priority))}return w.scope=x&&x.scope===!0,w.transcludeOnThisElement=q,w.elementTranscludeOnThisElement=U,w.templateOnThisElement=V,w.transclude=Z,f.hasElementTranscludeDirective=U,w}function B(e){for(var t=0,n=e.length;n>t;t++)e[t]=f(e[t],{$$isolateScope:!0})}function V(t,r,o,l,u,c,d){if(r===u)return null;var p=null;if(a.hasOwnProperty(r))for(var h,m=e.get(r+s),g=0,v=m.length;v>g;g++)try{h=m[g],(l===n||l>h.priority)&&-1!=h.restrict.indexOf(o)&&(c&&(h=f(h,{$$start:c,$$end:d})),t.push(h),p=h)}catch(y){i(y)}return p}function U(t){if(a.hasOwnProperty(t))for(var n,r=e.get(t+s),i=0,o=r.length;o>i;i++)if(n=r[i],n.multiElement)return!0;return!1}function G(e,t){var n=t.$attr,r=e.$attr,i=e.$$element;o(e,function(r,i){"$"!=i.charAt(0)&&(t[i]&&t[i]!==r&&(r+=("style"===i?";":" ")+t[i]),e.$set(i,r,!0,n[i]))}),o(t,function(t,o){"class"==o?(D(i,t),e["class"]=(e["class"]?e["class"]+" ":"")+t):"style"==o?(i.attr("style",i.attr("style")+";"+t),e.style=(e.style?e.style+";":"")+t):"$"==o.charAt(0)||e.hasOwnProperty(o)||(e[o]=t,r[o]=n[o])})}function X(e,t,n,r,i,a,s,u){var c,d,p=[],h=t[0],m=e.shift(),g=f(m,{templateUrl:null,transclude:null,replace:null,$$originalDirective:m}),v=C(m.templateUrl)?m.templateUrl(t,n):m.templateUrl,y=m.templateNamespace;return t.empty(),l(E.getTrustedResourceUrl(v)).then(function(l){var f,b,w,x;if(l=ct(l),m.replace){if(w=gt(l)?[]:en(J(y,di(l))),f=w[0],1!=w.length||f.nodeType!==vi)throw Gi("tplrt","Template for directive '{0}' must have exactly one root element. {1}",m.name,v);b={$attr:{}},tt(r,t,f);var C=L(f,[],b);$(m.scope)&&B(C),e=C.concat(e),G(n,b)}else f=h,t.html(l);for(e.unshift(g),c=q(e,f,n,i,t,m,a,s,u),o(r,function(e,n){e==f&&(r[n]=t[0])}),d=P(t[0].childNodes,i);p.length;){var S=p.shift(),T=p.shift(),k=p.shift(),E=p.shift(),A=t[0];if(!S.$$destroyed){if(T!==h){var O=T.className;u.hasElementTranscludeDirective&&m.replace||(A=wt(f)),tt(k,Zr(T),A),D(Zr(A),O)}x=c.transcludeOnThisElement?_(S,c.transclude,E):E,c(d,S,A,r,x)}}p=null}),function(e,t,n,r,i){var o=i;t.$$destroyed||(p?p.push(t,n,r,o):(c.transcludeOnThisElement&&(o=_(t,c.transclude,i)),c(d,t,n,r,o)))}}function Y(e,t){var n=t.priority-e.priority;return 0!==n?n:e.name!==t.name?e.name"+n+"",r.childNodes[0].childNodes;default:return n}}function Z(e,t){if("srcdoc"==t)return E.HTML;var n=F(e);return"xlinkHref"==t||"form"==n&&"action"==t||"img"!=n&&("src"==t||"ngSrc"==t)?E.RESOURCE_URL:void 0}function et(e,t,n,i,o){var a=Z(e,i);o=p[i]||o;var s=r(n,!0,a,o);if(s){if("multiple"===i&&"select"===F(e))throw Gi("selmulti","Binding to the 'multiple' attribute is not supported. Element: {0}",W(e));t.push({priority:100,compile:function(){return{pre:function(e,t,l){var u=l.$$observers||(l.$$observers={});if(w.test(i))throw Gi("nodomevents","Interpolations for HTML DOM event attributes are disallowed. Please use the ng- versions (such as ng-click instead of onclick) instead.");var c=l[i];c!==n&&(s=c&&r(c,!0,a,o),n=c),s&&(l[i]=s(e),(u[i]||(u[i]=[])).$$inter=!0,(l.$$observers&&l.$$observers[i].$$scope||e).$watch(s,function(e,t){"class"===i&&e!=t?l.$updateClass(e,t):l.$set(i,e)}))}}}})}}function tt(e,n,r){var i,o,a=n[0],s=n.length,l=a.parentNode;if(e)for(i=0,o=e.length;o>i;i++)if(e[i]==a){e[i++]=r;for(var u=i,c=u+s-1,d=e.length;d>u;u++,c++)d>c?e[u]=e[c]:delete e[u];e.length-=s-1,e.context===a&&(e.context=r);break}l&&l.replaceChild(r,a);var p=t.createDocumentFragment();p.appendChild(a),Zr(r).data(Zr(a).data()),ei?(ui=!0,ei.cleanData([a])):delete Zr.cache[a[Zr.expando]];for(var f=1,h=n.length;h>f;f++){var m=n[f];Zr(m).remove(),p.appendChild(m),delete n[f]}n[0]=r,n.length=1}function rt(e,t){return d(function(){return e.apply(null,arguments)},e,t)}function ot(e,t,n,r,o,a){try{e(t,n,r,o,a)}catch(s){i(s,W(n))}}var at=function(e,t){if(t){var n,r,i,o=Object.keys(t);for(n=0,r=o.length;r>n;n++)i=o[n],this[i]=t[i]}else this.$attr={};this.$$element=e};at.prototype={$normalize:Jt,$addClass:function(e){e&&e.length>0&&A.addClass(this.$$element,e)},$removeClass:function(e){e&&e.length>0&&A.removeClass(this.$$element,e)},$updateClass:function(e,t){var n=Zt(e,t);n&&n.length&&A.addClass(this.$$element,n);var r=Zt(t,e);r&&r.length&&A.removeClass(this.$$element,r)},$set:function(e,t,r,a){var s,l=this.$$element[0],u=_t(l,e),c=Lt(l,e),d=e;if(u?(this.$$element.prop(e,t),a=u):c&&(this[c]=t,d=c),this[e]=t,a?this.$attr[e]=a:(a=this.$attr[e],a||(this.$attr[e]=a=nt(e,"-"))),s=F(this.$$element),"a"===s&&"href"===e||"img"===s&&"src"===e)this[e]=t=O(t,"src"===e);else if("img"===s&&"srcset"===e){for(var p="",f=di(t),h=/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/,m=/\s/.test(f)?h:/(,)/,g=f.split(m),v=Math.floor(g.length/2),y=0;v>y;y++){var $=2*y;p+=O(di(g[$]),!0),p+=" "+di(g[$+1])}var b=di(g[2*y]).split(/\s/);p+=O(di(b[0]),!0),2===b.length&&(p+=" "+di(b[1])),this[e]=t=p}r!==!1&&(null===t||t===n?this.$$element.removeAttr(a):this.$$element.attr(a,t));var w=this.$$observers;w&&o(w[d],function(e){try{e(t)}catch(n){i(n)}})},$observe:function(e,t){var n=this,r=n.$$observers||(n.$$observers=ut()),i=r[e]||(r[e]=[]);return i.push(t),S.$evalAsync(function(){!i.$$inter&&n.hasOwnProperty(e)&&t(n[e])}),function(){I(i,t)}}};var st=r.startSymbol(),lt=r.endSymbol(),ct="{{"==st||"}}"==lt?m:function(e){return e.replace(/\{\{/g,st).replace(/}}/g,lt)},dt=/^ngAttr[A-Z]/;return N.$$addBindingInfo=x?function(e,t){var n=e.data("$binding")||[];ci(t)?n=n.concat(t):n.push(t),e.data("$binding",n)}:h,N.$$addBindingClass=x?function(e){D(e,"ng-binding")}:h,N.$$addScopeInfo=x?function(e,t,n,r){var i=n?r?"$isolateScopeNoTemplate":"$isolateScope":"$scope";e.data(i,t)}:h,N.$$addScopeClass=x?function(e,t){D(e,t?"ng-isolate-scope":"ng-scope")}:h,N}]}function Jt(e){return mt(e.replace(Xi,""))}function Zt(e,t){var n="",r=e.split(/\s+/),i=t.split(/\s+/);e:for(var o=0;o0?" ":"")+a}return n}function en(e){e=Zr(e);var t=e.length;if(1>=t)return e;for(;t--;){var n=e[t];n.nodeType===$i&&ri.call(e,t,1)}return e}function tn(){var e={},t=!1,i=/^(\S+)(\s+as\s+(\w+))?$/;this.register=function(t,n){at(t,"controller"),$(t)?d(e,t):e[t]=n},this.allowGlobals=function(){t=!0},this.$get=["$injector","$window",function(o,a){function s(e,t,n,i){if(!e||!$(e.$scope))throw r("$controller")("noscp","Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",i,t);e.$scope[t]=n}return function(r,l,u,c){var p,f,h,m;if(u=u===!0,c&&b(c)&&(m=c),b(r)){if(f=r.match(i),!f)throw Yi("ctrlfmt","Badly formed controller string '{0}'. Must match `__name__ as __id__` or `__name__`.",r);h=f[1],m=m||f[3],r=e.hasOwnProperty(h)?e[h]:st(l.$scope,h,!0)||(t?st(a,h,!0):n),ot(r,h,!0)}if(u){var g=(ci(r)?r[r.length-1]:r).prototype;return p=Object.create(g||null),m&&s(l,m,p,h||r.name),d(function(){return o.invoke(r,p,l,h),p},{instance:p,identifier:m})}return p=o.instantiate(r,l,h),m&&s(l,m,p,h||r.name),p}}]}function nn(){this.$get=["$window",function(e){return Zr(e.document)}]}function rn(){this.$get=["$log",function(e){return function(){e.error.apply(e,arguments)}}]}function on(e,t){if(b(e)){var n=e.replace(eo,"").trim();if(n){var r=t("Content-Type");(r&&0===r.indexOf(Ki)||an(n))&&(e=V(n))}}return e}function an(e){var t=e.match(Ji);return t&&Zi[t[0]].test(e)}function sn(e){var t,n,r,i=ut();return e?(o(e.split("\n"),function(e){r=e.indexOf(":"),t=Gr(di(e.substr(0,r))),n=di(e.substr(r+1)),t&&(i[t]=i[t]?i[t]+", "+n:n)}),i):i}function ln(e){var t=$(e)?e:n;return function(n){if(t||(t=sn(e)),n){var r=t[Gr(n)];return void 0===r&&(r=null),r}return t}}function un(e,t,n,r){return C(r)?r(e,t,n):(o(r,function(r){e=r(e,t,n)}),e)}function cn(e){return e>=200&&300>e}function dn(){var e=this.defaults={transformResponse:[on],transformRequest:[function(e){return!$(e)||E(e)||O(e)||A(e)?e:B(e)}],headers:{common:{Accept:"application/json, text/plain, */*"},post:L(Qi),put:L(Qi),patch:L(Qi)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN"},t=!1;this.useApplyAsync=function(e){return y(e)?(t=!!e,this):t};var i=this.interceptors=[];this.$get=["$httpBackend","$browser","$cacheFactory","$rootScope","$q","$injector",function(a,l,u,c,p,f){function h(t){function i(e){var t=d({},e);return t.data=e.data?un(e.data,e.headers,e.status,l.transformResponse):e.data,cn(e.status)?t:p.reject(t)}function a(e){var t,n={};return o(e,function(e,r){C(e)?(t=e(),null!=t&&(n[r]=t)):n[r]=e}),n}function s(t){var n,r,i,o=e.headers,s=d({},t.headers);o=d({},o.common,o[Gr(t.method)]);e:for(n in o){r=Gr(n);for(i in s)if(Gr(i)===r)continue e;s[n]=o[n]}return a(s)}if(!si.isObject(t))throw r("$http")("badreq","Http request configuration must be an object. Received: {0}",t);var l=d({method:"get",transformRequest:e.transformRequest,transformResponse:e.transformResponse},t);l.headers=s(t),l.method=Yr(l.method);var u=function(t){var r=t.headers,a=un(t.data,ln(r),n,t.transformRequest);return v(a)&&o(r,function(e,t){"content-type"===Gr(t)&&delete r[t]}),v(t.withCredentials)&&!v(e.withCredentials)&&(t.withCredentials=e.withCredentials),w(t,a).then(i,i)},c=[u,n],f=p.when(l);for(o(k,function(e){(e.request||e.requestError)&&c.unshift(e.request,e.requestError),(e.response||e.responseError)&&c.push(e.response,e.responseError)});c.length;){var h=c.shift(),m=c.shift();f=f.then(h,m)}return f.success=function(e){return f.then(function(t){e(t.data,t.status,t.headers,l)}),f},f.error=function(e){return f.then(null,function(t){e(t.data,t.status,t.headers,l)}),f},f}function m(){o(arguments,function(e){h[e]=function(t,n){return h(d(n||{},{method:e,url:t}))}})}function g(){o(arguments,function(e){h[e]=function(t,n,r){return h(d(r||{},{method:e,url:t,data:n}))}})}function w(r,i){function o(e,n,r,i){function o(){s(n,e,r,i)}f&&(cn(e)?f.put(x,[e,n,sn(r),i]):f.remove(x)),t?c.$applyAsync(o):(o(),c.$$phase||c.$apply())}function s(e,t,n,i){t=Math.max(t,0),(cn(t)?g.resolve:g.reject)({data:e,status:t,headers:ln(n),config:r,statusText:i})}function u(e){s(e.data,e.status,L(e.headers()),e.statusText)}function d(){var e=h.pendingRequests.indexOf(r);-1!==e&&h.pendingRequests.splice(e,1)}var f,m,g=p.defer(),b=g.promise,w=r.headers,x=S(r.url,r.params);if(h.pendingRequests.push(r),b.then(d,d),!r.cache&&!e.cache||r.cache===!1||"GET"!==r.method&&"JSONP"!==r.method||(f=$(r.cache)?r.cache:$(e.cache)?e.cache:T),f&&(m=f.get(x),y(m)?N(m)?m.then(u,u):ci(m)?s(m[1],m[0],L(m[2]),m[3]):s(m,200,{},"OK"):f.put(x,b)),v(m)){var C=or(r.url)?l.cookies()[r.xsrfCookieName||e.xsrfCookieName]:n;C&&(w[r.xsrfHeaderName||e.xsrfHeaderName]=C),a(r.method,x,i,o,w,r.timeout,r.withCredentials,r.responseType)}return b}function S(e,t){if(!t)return e;var n=[];return s(t,function(e,t){null===e||v(e)||(ci(e)||(e=[e]),o(e,function(e){$(e)&&(e=x(e)?e.toISOString():B(e)),n.push(K(t)+"="+K(e))}))}),n.length>0&&(e+=(-1==e.indexOf("?")?"?":"&")+n.join("&")),e}var T=u("$http"),k=[];return o(i,function(e){k.unshift(b(e)?f.get(e):f.invoke(e))}),h.pendingRequests=[],m("get","delete","head","jsonp"),g("post","put","patch"),h.defaults=e,h}]}function pn(){return new e.XMLHttpRequest}function fn(){this.$get=["$browser","$window","$document",function(e,t,n){return hn(e,pn,e.defer,t.angular.callbacks,n[0])}]}function hn(e,t,r,i,a){function s(e,t,n){var r=a.createElement("script"),o=null;return r.type="text/javascript",r.src=e,r.async=!0,o=function(e){ki(r,"load",o),ki(r,"error",o),a.body.removeChild(r),r=null;var s=-1,l="unknown";e&&("load"!==e.type||i[t].called||(e={type:"error"}),l=e.type,s="error"===e.type?404:200),n&&n(s,l)},Ti(r,"load",o),Ti(r,"error",o),a.body.appendChild(r),o}return function(a,l,u,c,d,p,f,m){function g(){b&&b(),w&&w.abort()}function v(t,i,o,a,s){S!==n&&r.cancel(S),b=w=null,t(i,o,a,s),e.$$completeOutstandingRequest(h)}if(e.$$incOutstandingRequestCount(),l=l||e.url(),"jsonp"==Gr(a)){var $="_"+(i.counter++).toString(36);i[$]=function(e){i[$].data=e,i[$].called=!0};var b=s(l.replace("JSON_CALLBACK","angular.callbacks."+$),$,function(e,t){v(c,e,i[$].data,"",t),i[$]=h})}else{var w=t();w.open(a,l,!0),o(d,function(e,t){y(e)&&w.setRequestHeader(t,e)}),w.onload=function(){var e=w.statusText||"",t="response"in w?w.response:w.responseText,n=1223===w.status?204:w.status;0===n&&(n=t?200:"file"==ir(l).protocol?404:0),v(c,n,t,w.getAllResponseHeaders(),e)};var x=function(){v(c,-1,null,null,"")};if(w.onerror=x,w.onabort=x,f&&(w.withCredentials=!0),m)try{w.responseType=m}catch(C){if("json"!==m)throw C}w.send(u||null)}if(p>0)var S=r(g,p);else N(p)&&p.then(g)}}function mn(){var e="{{",t="}}";this.startSymbol=function(t){return t?(e=t,this):e},this.endSymbol=function(e){return e?(t=e,this):t},this.$get=["$parse","$exceptionHandler","$sce",function(n,r,i){function o(e){return"\\\\\\"+e}function a(o,a,p,f){function h(n){return n.replace(u,e).replace(c,t)}function m(e){try{return e=O(e),f&&!y(e)?e:D(e)}catch(t){var n=to("interr","Can't interpolate: {0}\n{1}",o,t.toString());r(n)}}f=!!f;for(var g,$,b,w=0,x=[],S=[],T=o.length,k=[],E=[];T>w;){if(-1==(g=o.indexOf(e,w))||-1==($=o.indexOf(t,g+s))){w!==T&&k.push(h(o.substring(w)));break}w!==g&&k.push(h(o.substring(w,g))),b=o.substring(g+s,$),x.push(b),S.push(n(b,m)),w=$+l,E.push(k.length),k.push("")}if(p&&k.length>1)throw to("noconcat","Error while interpolating: {0}\nStrict Contextual Escaping disallows interpolations that concatenate multiple expressions when a trusted value is required. See http://docs.angularjs.org/api/ng.$sce",o);if(!a||x.length){var A=function(e){for(var t=0,n=x.length;n>t;t++){if(f&&v(e[t]))return;k[E[t]]=e[t]}return k.join("")},O=function(e){return p?i.getTrusted(p,e):i.valueOf(e)},D=function(e){if(null==e)return"";switch(typeof e){case"string":break;case"number":e=""+e;break;default:e=B(e)}return e};return d(function(e){var t=0,n=x.length,i=new Array(n);try{for(;n>t;t++)i[t]=S[t](e);return A(i)}catch(a){var s=to("interr","Can't interpolate: {0}\n{1}",o,a.toString());r(s)}},{exp:o,expressions:x,$$watchDelegate:function(e,t,n){var r;return e.$watchGroup(S,function(n,i){var o=A(n);C(t)&&t.call(this,o,n!==i?r:o,e),r=o},n)}})}}var s=e.length,l=t.length,u=new RegExp(e.replace(/./g,o),"g"),c=new RegExp(t.replace(/./g,o),"g");return a.startSymbol=function(){return e},a.endSymbol=function(){return t},a}]}function gn(){this.$get=["$rootScope","$window","$q","$$q",function(e,t,n,r){function i(i,a,s,l){var u=t.setInterval,c=t.clearInterval,d=0,p=y(l)&&!l,f=(p?r:n).defer(),h=f.promise;return s=y(s)?s:0,h.then(null,null,i),h.$$intervalId=u(function(){f.notify(d++),s>0&&d>=s&&(f.resolve(d),c(h.$$intervalId),delete o[h.$$intervalId]),p||e.$apply()},a),o[h.$$intervalId]=f,h}var o={};return i.cancel=function(e){return e&&e.$$intervalId in o?(o[e.$$intervalId].reject("canceled"),t.clearInterval(e.$$intervalId),delete o[e.$$intervalId],!0):!1},i}]}function vn(){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(e){return 1===e?"one":"other"}}}}function yn(e){for(var t=e.split("/"),n=t.length;n--;)t[n]=Y(t[n]);return t.join("/")}function $n(e,t){var n=ir(e);t.$$protocol=n.protocol,t.$$host=n.hostname,t.$$port=p(n.port)||ro[n.protocol]||null}function bn(e,t){var n="/"!==e.charAt(0);n&&(e="/"+e);var r=ir(e);t.$$path=decodeURIComponent(n&&"/"===r.pathname.charAt(0)?r.pathname.substring(1):r.pathname),t.$$search=G(r.search),t.$$hash=decodeURIComponent(r.hash),t.$$path&&"/"!=t.$$path.charAt(0)&&(t.$$path="/"+t.$$path)}function wn(e,t){return 0===t.indexOf(e)?t.substr(e.length):void 0}function xn(e){var t=e.indexOf("#");return-1==t?e:e.substr(0,t)}function Cn(e){return e.replace(/(#.+)|#$/,"$1")}function Sn(e){return e.substr(0,xn(e).lastIndexOf("/")+1)}function Tn(e){return e.substring(0,e.indexOf("/",e.indexOf("//")+2))}function kn(e,t){this.$$html5=!0,t=t||"";var r=Sn(e);$n(e,this),this.$$parse=function(e){var t=wn(r,e);if(!b(t))throw io("ipthprfx",'Invalid url "{0}", missing path prefix "{1}".',e,r);bn(t,this),this.$$path||(this.$$path="/"),this.$$compose()},this.$$compose=function(){var e=X(this.$$search),t=this.$$hash?"#"+Y(this.$$hash):"";this.$$url=yn(this.$$path)+(e?"?"+e:"")+t,this.$$absUrl=r+this.$$url.substr(1)},this.$$parseLinkUrl=function(i,o){if(o&&"#"===o[0])return this.hash(o.slice(1)),!0;var a,s,l;return(a=wn(e,i))!==n?(s=a,l=(a=wn(t,a))!==n?r+(wn("/",a)||a):e+s):(a=wn(r,i))!==n?l=r+a:r==i+"/"&&(l=r),l&&this.$$parse(l),!!l}}function En(e,t){var n=Sn(e);$n(e,this),this.$$parse=function(r){function i(e,t,n){var r,i=/^\/[A-Z]:(\/.*)/;return 0===t.indexOf(n)&&(t=t.replace(n,"")),i.exec(t)?e:(r=i.exec(e),r?r[1]:e)}var o,a=wn(e,r)||wn(n,r);"#"===a.charAt(0)?(o=wn(t,a),v(o)&&(o=a)):o=this.$$html5?a:"",bn(o,this),this.$$path=i(this.$$path,o,e),this.$$compose()},this.$$compose=function(){var n=X(this.$$search),r=this.$$hash?"#"+Y(this.$$hash):"";this.$$url=yn(this.$$path)+(n?"?"+n:"")+r,this.$$absUrl=e+(this.$$url?t+this.$$url:"")},this.$$parseLinkUrl=function(t){return xn(e)==xn(t)?(this.$$parse(t),!0):!1}}function An(e,t){this.$$html5=!0,En.apply(this,arguments);var n=Sn(e);this.$$parseLinkUrl=function(r,i){if(i&&"#"===i[0])return this.hash(i.slice(1)),!0;var o,a;return e==xn(r)?o=r:(a=wn(n,r))?o=e+t+a:n===r+"/"&&(o=n),o&&this.$$parse(o),!!o},this.$$compose=function(){var n=X(this.$$search),r=this.$$hash?"#"+Y(this.$$hash):"";this.$$url=yn(this.$$path)+(n?"?"+n:"")+r,this.$$absUrl=e+t+this.$$url}}function On(e){return function(){return this[e]}}function Dn(e,t){return function(n){return v(n)?this[e]:(this[e]=t(n),this.$$compose(),this)}}function Nn(){var e="",t={enabled:!1,requireBase:!0,rewriteLinks:!0};this.hashPrefix=function(t){return y(t)?(e=t,this):e},this.html5Mode=function(e){return D(e)?(t.enabled=e,this):$(e)?(D(e.enabled)&&(t.enabled=e.enabled),D(e.requireBase)&&(t.requireBase=e.requireBase),D(e.rewriteLinks)&&(t.rewriteLinks=e.rewriteLinks),this):t},this.$get=["$rootScope","$browser","$sniffer","$rootElement","$window",function(n,r,i,o,a){function s(e,t,n){var i=u.url(),o=u.$$state;try{r.url(e,t,n),u.$$state=r.state()}catch(a){throw u.url(i),u.$$state=o,a}}function l(e,t){n.$broadcast("$locationChangeSuccess",u.absUrl(),e,u.$$state,t)}var u,c,d,p=r.baseHref(),f=r.url();if(t.enabled){if(!p&&t.requireBase)throw io("nobase","$location in HTML5 mode requires a tag to be present!");d=Tn(f)+(p||"/"),c=i.history?kn:An}else d=xn(f),c=En;u=new c(d,"#"+e),u.$$parseLinkUrl(f,f),u.$$state=r.state();var h=/^\s*(javascript|mailto):/i;o.on("click",function(e){if(t.rewriteLinks&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey&&2!=e.which&&2!=e.button){for(var i=Zr(e.target);"a"!==F(i[0]);)if(i[0]===o[0]||!(i=i.parent())[0])return;var s=i.prop("href"),l=i.attr("href")||i.attr("xlink:href");$(s)&&"[object SVGAnimatedString]"===s.toString()&&(s=ir(s.animVal).href),h.test(s)||!s||i.attr("target")||e.isDefaultPrevented()||u.$$parseLinkUrl(s,l)&&(e.preventDefault(),u.absUrl()!=r.url()&&(n.$apply(),a.angular["ff-684208-preventDefault"]=!0))}}),Cn(u.absUrl())!=Cn(f)&&r.url(u.absUrl(),!0);var m=!0;return r.onUrlChange(function(e,t){n.$evalAsync(function(){var r,i=u.absUrl(),o=u.$$state;u.$$parse(e),u.$$state=t,r=n.$broadcast("$locationChangeStart",e,i,t,o).defaultPrevented,u.absUrl()===e&&(r?(u.$$parse(i),u.$$state=o,s(i,!1,o)):(m=!1,l(i,o)))}),n.$$phase||n.$digest()}),n.$watch(function(){var e=Cn(r.url()),t=Cn(u.absUrl()),o=r.state(),a=u.$$replace,c=e!==t||u.$$html5&&i.history&&o!==u.$$state;(m||c)&&(m=!1,n.$evalAsync(function(){var t=u.absUrl(),r=n.$broadcast("$locationChangeStart",t,e,u.$$state,o).defaultPrevented;u.absUrl()===t&&(r?(u.$$parse(e),u.$$state=o):(c&&s(t,a,o===u.$$state?null:u.$$state),l(e,o)))})),u.$$replace=!1}),u}]}function Mn(){var e=!0,t=this;this.debugEnabled=function(t){return y(t)?(e=t,this):e},this.$get=["$window",function(n){function r(e){return e instanceof Error&&(e.stack?e=e.message&&-1===e.stack.indexOf(e.message)?"Error: "+e.message+"\n"+e.stack:e.stack:e.sourceURL&&(e=e.message+"\n"+e.sourceURL+":"+e.line)),e}function i(e){var t=n.console||{},i=t[e]||t.log||h,a=!1;try{a=!!i.apply}catch(s){}return a?function(){var e=[];return o(arguments,function(t){e.push(r(t))}),i.apply(t,e)}:function(e,t){i(e,null==t?"":t)}}return{log:i("log"),info:i("info"),warn:i("warn"),error:i("error"),debug:function(){var n=i("debug");return function(){e&&n.apply(t,arguments)}}()}}]}function Pn(e,t){if("__defineGetter__"===e||"__defineSetter__"===e||"__lookupGetter__"===e||"__lookupSetter__"===e||"__proto__"===e)throw ao("isecfld","Attempting to access a disallowed field in Angular expressions! Expression: {0}",t); +return e}function Fn(e,t){if(e){if(e.constructor===e)throw ao("isecfn","Referencing Function in Angular expressions is disallowed! Expression: {0}",t);if(e.window===e)throw ao("isecwindow","Referencing the Window in Angular expressions is disallowed! Expression: {0}",t);if(e.children&&(e.nodeName||e.prop&&e.attr&&e.find))throw ao("isecdom","Referencing DOM nodes in Angular expressions is disallowed! Expression: {0}",t);if(e===Object)throw ao("isecobj","Referencing Object in Angular expressions is disallowed! Expression: {0}",t)}return e}function In(e,t){if(e){if(e.constructor===e)throw ao("isecfn","Referencing Function in Angular expressions is disallowed! Expression: {0}",t);if(e===so||e===lo||e===uo)throw ao("isecff","Referencing call, apply or bind in Angular expressions is disallowed! Expression: {0}",t)}}function _n(e){return e.constant}function Ln(e,t,n,r,i){Fn(e,i),Fn(t,i);for(var o,a=n.split("."),s=0;a.length>1;s++){o=Pn(a.shift(),i);var l=0===s&&t&&t[o]||e[o];l||(l={},e[o]=l),e=Fn(l,i)}return o=Pn(a.shift(),i),Fn(e[o],i),e[o]=r,r}function jn(e){return"constructor"==e}function zn(e,t,r,i,o,a,s){Pn(e,a),Pn(t,a),Pn(r,a),Pn(i,a),Pn(o,a);var l=function(e){return Fn(e,a)},u=s||jn(e)?l:m,c=s||jn(t)?l:m,d=s||jn(r)?l:m,p=s||jn(i)?l:m,f=s||jn(o)?l:m;return function(a,s){var l=s&&s.hasOwnProperty(e)?s:a;return null==l?l:(l=u(l[e]),t?null==l?n:(l=c(l[t]),r?null==l?n:(l=d(l[r]),i?null==l?n:(l=p(l[i]),o?null==l?n:l=f(l[o]):l):l):l):l)}}function Rn(e,t){return function(n,r){return e(n,r,Fn,t)}}function Hn(e,t,r){var i=t.expensiveChecks,a=i?vo:go,s=a[e];if(s)return s;var l=e.split("."),u=l.length;if(t.csp)s=6>u?zn(l[0],l[1],l[2],l[3],l[4],r,i):function(e,t){var o,a=0;do o=zn(l[a++],l[a++],l[a++],l[a++],l[a++],r,i)(e,t),t=n,e=o;while(u>a);return o};else{var c="";i&&(c+="s = eso(s, fe);\nl = eso(l, fe);\n");var d=i;o(l,function(e,t){Pn(e,r);var n=(t?"s":'((l&&l.hasOwnProperty("'+e+'"))?l:s)')+"."+e;(i||jn(e))&&(n="eso("+n+", fe)",d=!0),c+="if(s == null) return undefined;\ns="+n+";\n"}),c+="return s;";var p=new Function("s","l","eso","fe",c);p.toString=g(c),d&&(p=Rn(p,r)),s=p}return s.sharedGetter=!0,s.assign=function(t,n,r){return Ln(t,r,e,n,e)},a[e]=s,s}function qn(e){return C(e.valueOf)?e.valueOf():yo.call(e)}function Bn(){var e=ut(),t=ut();this.$get=["$filter","$sniffer",function(n,r){function i(e){var t=e;return e.sharedGetter&&(t=function(t,n){return e(t,n)},t.literal=e.literal,t.constant=e.constant,t.assign=e.assign),t}function a(e,t){for(var n=0,r=e.length;r>n;n++){var i=e[n];i.constant||(i.inputs?a(i.inputs,t):-1===t.indexOf(i)&&t.push(i))}return t}function s(e,t){return null==e||null==t?e===t:"object"==typeof e&&(e=qn(e),"object"==typeof e)?!1:e===t||e!==e&&t!==t}function l(e,t,n,r){var i,o=r.$$inputs||(r.$$inputs=a(r.inputs,[]));if(1===o.length){var l=s;return o=o[0],e.$watch(function(e){var t=o(e);return s(t,l)||(i=r(e),l=t&&qn(t)),i},t,n)}for(var u=[],c=0,d=o.length;d>c;c++)u[c]=s;return e.$watch(function(e){for(var t=!1,n=0,a=o.length;a>n;n++){var l=o[n](e);(t||(t=!s(l,u[n])))&&(u[n]=l&&qn(l))}return t&&(i=r(e)),i},t,n)}function u(e,t,n,r){var i,o;return i=e.$watch(function(e){return r(e)},function(e,n,r){o=e,C(t)&&t.apply(this,arguments),y(e)&&r.$$postDigest(function(){y(o)&&i()})},n)}function c(e,t,n,r){function i(e){var t=!0;return o(e,function(e){y(e)||(t=!1)}),t}var a,s;return a=e.$watch(function(e){return r(e)},function(e,n,r){s=e,C(t)&&t.call(this,e,n,r),i(e)&&r.$$postDigest(function(){i(s)&&a()})},n)}function d(e,t,n,r){var i;return i=e.$watch(function(e){return r(e)},function(){C(t)&&t.apply(this,arguments),i()},n)}function p(e,t){if(!t)return e;var n=e.$$watchDelegate,r=n!==c&&n!==u,i=r?function(n,r){var i=e(n,r);return t(i,n,r)}:function(n,r){var i=e(n,r),o=t(i,n,r);return y(i)?o:i};return e.$$watchDelegate&&e.$$watchDelegate!==l?i.$$watchDelegate=e.$$watchDelegate:t.$stateful||(i.$$watchDelegate=l,i.inputs=[e]),i}var f={csp:r.csp,expensiveChecks:!1},m={csp:r.csp,expensiveChecks:!0};return function(r,o,a){var s,g,v;switch(typeof r){case"string":v=r=r.trim();var y=a?t:e;if(s=y[v],!s){":"===r.charAt(0)&&":"===r.charAt(1)&&(g=!0,r=r.substring(2));var $=a?m:f,b=new ho($),w=new mo(b,n,$);s=w.parse(r),s.constant?s.$$watchDelegate=d:g?(s=i(s),s.$$watchDelegate=s.literal?c:u):s.inputs&&(s.$$watchDelegate=l),y[v]=s}return p(s,o);case"function":return p(r,o);default:return p(h,o)}}}]}function Vn(){this.$get=["$rootScope","$exceptionHandler",function(e,t){return Un(function(t){e.$evalAsync(t)},t)}]}function Wn(){this.$get=["$browser","$exceptionHandler",function(e,t){return Un(function(t){e.defer(t)},t)}]}function Un(e,t){function i(e,t,n){function r(t){return function(n){i||(i=!0,t.call(e,n))}}var i=!1;return[r(t),r(n)]}function a(){this.$$state={status:0}}function s(e,t){return function(n){t.call(e,n)}}function l(e){var r,i,o;o=e.pending,e.processScheduled=!1,e.pending=n;for(var a=0,s=o.length;s>a;++a){i=o[a][0],r=o[a][e.status];try{C(r)?i.resolve(r(e.value)):1===e.status?i.resolve(e.value):i.reject(e.value)}catch(l){i.reject(l),t(l)}}}function u(t){!t.processScheduled&&t.pending&&(t.processScheduled=!0,e(function(){l(t)}))}function c(){this.promise=new a,this.resolve=s(this,this.resolve),this.reject=s(this,this.reject),this.notify=s(this,this.notify)}function d(e){var t=new c,n=0,r=ci(e)?[]:{};return o(e,function(e,i){n++,v(e).then(function(e){r.hasOwnProperty(i)||(r[i]=e,--n||t.resolve(r))},function(e){r.hasOwnProperty(i)||t.reject(e)})}),0===n&&t.resolve(r),t.promise}var p=r("$q",TypeError),f=function(){return new c};a.prototype={then:function(e,t,n){var r=new c;return this.$$state.pending=this.$$state.pending||[],this.$$state.pending.push([r,e,t,n]),this.$$state.status>0&&u(this.$$state),r.promise},"catch":function(e){return this.then(null,e)},"finally":function(e,t){return this.then(function(t){return g(t,!0,e)},function(t){return g(t,!1,e)},t)}},c.prototype={resolve:function(e){this.promise.$$state.status||(e===this.promise?this.$$reject(p("qcycle","Expected promise to be resolved with value other than itself '{0}'",e)):this.$$resolve(e))},$$resolve:function(e){var n,r;r=i(this,this.$$resolve,this.$$reject);try{($(e)||C(e))&&(n=e&&e.then),C(n)?(this.promise.$$state.status=-1,n.call(e,r[0],r[1],this.notify)):(this.promise.$$state.value=e,this.promise.$$state.status=1,u(this.promise.$$state))}catch(o){r[1](o),t(o)}},reject:function(e){this.promise.$$state.status||this.$$reject(e)},$$reject:function(e){this.promise.$$state.value=e,this.promise.$$state.status=2,u(this.promise.$$state)},notify:function(n){var r=this.promise.$$state.pending;this.promise.$$state.status<=0&&r&&r.length&&e(function(){for(var e,i,o=0,a=r.length;a>o;o++){i=r[o][0],e=r[o][3];try{i.notify(C(e)?e(n):n)}catch(s){t(s)}}})}};var h=function(e){var t=new c;return t.reject(e),t.promise},m=function(e,t){var n=new c;return t?n.resolve(e):n.reject(e),n.promise},g=function(e,t,n){var r=null;try{C(n)&&(r=n())}catch(i){return m(i,!1)}return N(r)?r.then(function(){return m(e,t)},function(e){return m(e,!1)}):m(e,t)},v=function(e,t,n,r){var i=new c;return i.resolve(e),i.promise.then(t,n,r)},y=function b(e){function t(e){r.resolve(e)}function n(e){r.reject(e)}if(!C(e))throw p("norslvr","Expected resolverFn, got '{0}'",e);if(!(this instanceof b))return new b(e);var r=new c;return e(t,n),r.promise};return y.defer=f,y.reject=h,y.when=v,y.all=d,y}function Gn(){this.$get=["$window","$timeout",function(e,t){var n=e.requestAnimationFrame||e.webkitRequestAnimationFrame,r=e.cancelAnimationFrame||e.webkitCancelAnimationFrame||e.webkitCancelRequestAnimationFrame,i=!!n,o=i?function(e){var t=n(e);return function(){r(t)}}:function(e){var n=t(e,16.66,!1);return function(){t.cancel(n)}};return o.supported=i,o}]}function Xn(){var e=10,t=r("$rootScope"),n=null,a=null;this.digestTtl=function(t){return arguments.length&&(e=t),e},this.$get=["$injector","$exceptionHandler","$parse","$browser",function(r,s,l,c){function d(){this.$id=u(),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 p(e){if(w.$$phase)throw t("inprog","{0} already in progress",w.$$phase);w.$$phase=e}function f(){w.$$phase=null}function m(e,t,n){do e.$$listenerCount[n]-=t,0===e.$$listenerCount[n]&&delete e.$$listenerCount[n];while(e=e.$parent)}function g(){}function y(){for(;T.length;)try{T.shift()()}catch(e){s(e)}a=null}function b(){null===a&&(a=c.defer(function(){w.$apply(y)}))}d.prototype={constructor:d,$new:function(e,t){function n(){r.$$destroyed=!0}var r;return t=t||this,e?(r=new d,r.$root=this.$root):(this.$$ChildScope||(this.$$ChildScope=function(){this.$$watchers=this.$$nextSibling=this.$$childHead=this.$$childTail=null,this.$$listeners={},this.$$listenerCount={},this.$id=u(),this.$$ChildScope=null},this.$$ChildScope.prototype=this),r=new this.$$ChildScope),r.$parent=t,r.$$prevSibling=t.$$childTail,t.$$childHead?(t.$$childTail.$$nextSibling=r,t.$$childTail=r):t.$$childHead=t.$$childTail=r,(e||t!=this)&&r.$on("$destroy",n),r},$watch:function(e,t,r){var i=l(e);if(i.$$watchDelegate)return i.$$watchDelegate(this,t,r,i);var o=this,a=o.$$watchers,s={fn:t,last:g,get:i,exp:e,eq:!!r};return n=null,C(t)||(s.fn=h),a||(a=o.$$watchers=[]),a.unshift(s),function(){I(a,s),n=null}},$watchGroup:function(e,t){function n(){l=!1,u?(u=!1,t(i,i,s)):t(i,r,s)}var r=new Array(e.length),i=new Array(e.length),a=[],s=this,l=!1,u=!0;if(!e.length){var c=!0;return s.$evalAsync(function(){c&&t(i,i,s)}),function(){c=!1}}return 1===e.length?this.$watch(e[0],function(e,n,o){i[0]=e,r[0]=n,t(i,e===n?i:r,o)}):(o(e,function(e,t){var o=s.$watch(e,function(e,o){i[t]=e,r[t]=o,l||(l=!0,s.$evalAsync(n))});a.push(o)}),function(){for(;a.length;)a.shift()()})},$watchCollection:function(e,t){function n(e){o=e;var t,n,r,s,l;if(!v(o)){if($(o))if(i(o)){a!==f&&(a=f,g=a.length=0,d++),t=o.length,g!==t&&(d++,a.length=g=t);for(var u=0;t>u;u++)l=a[u],s=o[u],r=l!==l&&s!==s,r||l===s||(d++,a[u]=s)}else{a!==h&&(a=h={},g=0,d++),t=0;for(n in o)o.hasOwnProperty(n)&&(t++,s=o[n],l=a[n],n in a?(r=l!==l&&s!==s,r||l===s||(d++,a[n]=s)):(g++,a[n]=s,d++));if(g>t){d++;for(n in a)o.hasOwnProperty(n)||(g--,delete a[n])}}else a!==o&&(a=o,d++);return d}}function r(){if(m?(m=!1,t(o,o,u)):t(o,s,u),c)if($(o))if(i(o)){s=new Array(o.length);for(var e=0;e1,d=0,p=l(e,n),f=[],h={},m=!0,g=0;return this.$watch(p,r)},$digest:function(){var r,i,o,l,u,d,h,m,v,$,b=e,T=this,k=[];p("$digest"),c.$$checkUrlChange(),this===w&&null!==a&&(c.defer.cancel(a),y()),n=null;do{for(d=!1,m=T;x.length;){try{$=x.shift(),$.scope.$eval($.expression,$.locals)}catch(E){s(E)}n=null}e:do{if(l=m.$$watchers)for(u=l.length;u--;)try{if(r=l[u])if((i=r.get(m))===(o=r.last)||(r.eq?j(i,o):"number"==typeof i&&"number"==typeof o&&isNaN(i)&&isNaN(o))){if(r===n){d=!1;break e}}else d=!0,n=r,r.last=r.eq?_(i,null):i,r.fn(i,o===g?i:o,m),5>b&&(v=4-b,k[v]||(k[v]=[]),k[v].push({msg:C(r.exp)?"fn: "+(r.exp.name||r.exp.toString()):r.exp,newVal:i,oldVal:o}))}catch(E){s(E)}if(!(h=m.$$childHead||m!==T&&m.$$nextSibling))for(;m!==T&&!(h=m.$$nextSibling);)m=m.$parent}while(m=h);if((d||x.length)&&!b--)throw f(),t("infdig","{0} $digest() iterations reached. Aborting!\nWatchers fired in the last 5 iterations: {1}",e,k)}while(d||x.length);for(f();S.length;)try{S.shift()()}catch(E){s(E)}},$destroy:function(){if(!this.$$destroyed){var e=this.$parent;if(this.$broadcast("$destroy"),this.$$destroyed=!0,this!==w){for(var t in this.$$listenerCount)m(this,this.$$listenerCount[t],t);e.$$childHead==this&&(e.$$childHead=this.$$nextSibling),e.$$childTail==this&&(e.$$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=h,this.$on=this.$watch=this.$watchGroup=function(){return h},this.$$listeners={},this.$parent=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=this.$root=this.$$watchers=null}}},$eval:function(e,t){return l(e)(this,t)},$evalAsync:function(e,t){w.$$phase||x.length||c.defer(function(){x.length&&w.$digest()}),x.push({scope:this,expression:e,locals:t})},$$postDigest:function(e){S.push(e)},$apply:function(e){try{return p("$apply"),this.$eval(e)}catch(t){s(t)}finally{f();try{w.$digest()}catch(t){throw s(t),t}}},$applyAsync:function(e){function t(){n.$eval(e)}var n=this;e&&T.push(t),b()},$on:function(e,t){var n=this.$$listeners[e];n||(this.$$listeners[e]=n=[]),n.push(t);var r=this;do r.$$listenerCount[e]||(r.$$listenerCount[e]=0),r.$$listenerCount[e]++;while(r=r.$parent);var i=this;return function(){var r=n.indexOf(t);-1!==r&&(n[r]=null,m(i,1,e))}},$emit:function(e){var t,n,r,i=[],o=this,a=!1,l={name:e,targetScope:o,stopPropagation:function(){a=!0},preventDefault:function(){l.defaultPrevented=!0},defaultPrevented:!1},u=z([l],arguments,1);do{for(t=o.$$listeners[e]||i,l.currentScope=o,n=0,r=t.length;r>n;n++)if(t[n])try{t[n].apply(null,u)}catch(c){s(c)}else t.splice(n,1),n--,r--;if(a)return l.currentScope=null,l;o=o.$parent}while(o);return l.currentScope=null,l},$broadcast:function(e){var t=this,n=t,r=t,i={name:e,targetScope:t,preventDefault:function(){i.defaultPrevented=!0},defaultPrevented:!1};if(!t.$$listenerCount[e])return i;for(var o,a,l,u=z([i],arguments,1);n=r;){for(i.currentScope=n,o=n.$$listeners[e]||[],a=0,l=o.length;l>a;a++)if(o[a])try{o[a].apply(null,u)}catch(c){s(c)}else o.splice(a,1),a--,l--;if(!(r=n.$$listenerCount[e]&&n.$$childHead||n!==t&&n.$$nextSibling))for(;n!==t&&!(r=n.$$nextSibling);)n=n.$parent}return i.currentScope=null,i}};var w=new d,x=w.$$asyncQueue=[],S=w.$$postDigestQueue=[],T=w.$$applyAsyncQueue=[];return w}]}function Yn(){var e=/^\s*(https?|ftp|mailto|tel|file):/,t=/^\s*((https?|ftp|file|blob):|data:image\/)/;this.aHrefSanitizationWhitelist=function(t){return y(t)?(e=t,this):e},this.imgSrcSanitizationWhitelist=function(e){return y(e)?(t=e,this):t},this.$get=function(){return function(n,r){var i,o=r?t:e;return i=ir(n).href,""===i||i.match(o)?n:"unsafe:"+i}}}function Kn(e){if("self"===e)return e;if(b(e)){if(e.indexOf("***")>-1)throw $o("iwcard","Illegal sequence *** in string matcher. String: {0}",e);return e=pi(e).replace("\\*\\*",".*").replace("\\*","[^:/.?&;]*"),new RegExp("^"+e+"$")}if(S(e))return new RegExp("^"+e.source+"$");throw $o("imatcher",'Matchers may only be "self", string patterns or RegExp objects')}function Qn(e){var t=[];return y(e)&&o(e,function(e){t.push(Kn(e))}),t}function Jn(){this.SCE_CONTEXTS=bo;var e=["self"],t=[];this.resourceUrlWhitelist=function(t){return arguments.length&&(e=Qn(t)),e},this.resourceUrlBlacklist=function(e){return arguments.length&&(t=Qn(e)),t},this.$get=["$injector",function(r){function i(e,t){return"self"===e?or(t):!!e.exec(t.href)}function o(n){var r,o,a=ir(n.toString()),s=!1;for(r=0,o=e.length;o>r;r++)if(i(e[r],a)){s=!0;break}if(s)for(r=0,o=t.length;o>r;r++)if(i(t[r],a)){s=!1;break}return s}function a(e){var t=function(e){this.$$unwrapTrustedValue=function(){return e}};return e&&(t.prototype=new e),t.prototype.valueOf=function(){return this.$$unwrapTrustedValue()},t.prototype.toString=function(){return this.$$unwrapTrustedValue().toString()},t}function s(e,t){var r=p.hasOwnProperty(e)?p[e]:null;if(!r)throw $o("icontext","Attempted to trust a value in invalid context. Context: {0}; Value: {1}",e,t);if(null===t||t===n||""===t)return t;if("string"!=typeof t)throw $o("itype","Attempted to trust a non-string value in a content requiring a string: Context: {0}",e);return new r(t)}function l(e){return e instanceof d?e.$$unwrapTrustedValue():e}function u(e,t){if(null===t||t===n||""===t)return t;var r=p.hasOwnProperty(e)?p[e]:null;if(r&&t instanceof r)return t.$$unwrapTrustedValue();if(e===bo.RESOURCE_URL){if(o(t))return t;throw $o("insecurl","Blocked loading resource from url not allowed by $sceDelegate policy. URL: {0}",t.toString())}if(e===bo.HTML)return c(t);throw $o("unsafe","Attempting to use an unsafe value in a safe context.")}var c=function(){throw $o("unsafe","Attempting to use an unsafe value in a safe context.")};r.has("$sanitize")&&(c=r.get("$sanitize"));var d=a(),p={};return p[bo.HTML]=a(d),p[bo.CSS]=a(d),p[bo.URL]=a(d),p[bo.JS]=a(d),p[bo.RESOURCE_URL]=a(p[bo.URL]),{trustAs:s,getTrusted:u,valueOf:l}}]}function Zn(){var e=!0;this.enabled=function(t){return arguments.length&&(e=!!t),e},this.$get=["$parse","$sceDelegate",function(t,n){if(e&&8>Jr)throw $o("iequirks","Strict Contextual Escaping does not support Internet Explorer version < 11 in quirks mode. You can fix this by adding the text to the top of your HTML document. See http://docs.angularjs.org/api/ng.$sce for more information.");var r=L(bo);r.isEnabled=function(){return e},r.trustAs=n.trustAs,r.getTrusted=n.getTrusted,r.valueOf=n.valueOf,e||(r.trustAs=r.getTrusted=function(e,t){return t},r.valueOf=m),r.parseAs=function(e,n){var i=t(n);return i.literal&&i.constant?i:t(n,function(t){return r.getTrusted(e,t)})};var i=r.parseAs,a=r.getTrusted,s=r.trustAs;return o(bo,function(e,t){var n=Gr(t);r[mt("parse_as_"+n)]=function(t){return i(e,t)},r[mt("get_trusted_"+n)]=function(t){return a(e,t)},r[mt("trust_as_"+n)]=function(t){return s(e,t)}}),r}]}function er(){this.$get=["$window","$document",function(e,t){var n,r,i={},o=p((/android (\d+)/.exec(Gr((e.navigator||{}).userAgent))||[])[1]),a=/Boxee/i.test((e.navigator||{}).userAgent),s=t[0]||{},l=/^(Moz|webkit|ms)(?=[A-Z])/,u=s.body&&s.body.style,c=!1,d=!1;if(u){for(var f in u)if(r=l.exec(f)){n=r[0],n=n.substr(0,1).toUpperCase()+n.substr(1);break}n||(n="WebkitOpacity"in u&&"webkit"),c=!!("transition"in u||n+"Transition"in u),d=!!("animation"in u||n+"Animation"in u),!o||c&&d||(c=b(s.body.style.webkitTransition),d=b(s.body.style.webkitAnimation))}return{history:!(!e.history||!e.history.pushState||4>o||a),hasEvent:function(e){if("input"===e&&11>=Jr)return!1;if(v(i[e])){var t=s.createElement("div");i[e]="on"+e in t}return i[e]},csp:fi(),vendorPrefix:n,transitions:c,animations:d,android:o}}]}function tr(){this.$get=["$templateCache","$http","$q",function(e,t,n){function r(i,o){function a(e){if(!o)throw Gi("tpload","Failed to load template: {0}",i);return n.reject(e)}r.totalPendingRequests++;var s=t.defaults&&t.defaults.transformResponse;ci(s)?s=s.filter(function(e){return e!==on}):s===on&&(s=null);var l={cache:e,transformResponse:s};return t.get(i,l)["finally"](function(){r.totalPendingRequests--}).then(function(e){return e.data},a)}return r.totalPendingRequests=0,r}]}function nr(){this.$get=["$rootScope","$browser","$location",function(e,t,n){var r={};return r.findBindings=function(e,t,n){var r=e.getElementsByClassName("ng-binding"),i=[];return o(r,function(e){var r=si.element(e).data("$binding");r&&o(r,function(r){if(n){var o=new RegExp("(^|\\s)"+pi(t)+"(\\s|\\||$)");o.test(r)&&i.push(e)}else-1!=r.indexOf(t)&&i.push(e)})}),i},r.findModels=function(e,t,n){for(var r=["ng-","data-ng-","ng\\:"],i=0;ie;e=Math.abs(e);var a=e+"",s="",l=[],u=!1;if(-1!==a.indexOf("e")){var c=a.match(/([\d\.]+)e(-?)(\d+)/);c&&"-"==c[2]&&c[3]>i+1?e=0:(s=a,u=!0)}if(u)i>0&&1>e&&(s=e.toFixed(i),e=parseFloat(s));else{var d=(a.split(Co)[1]||"").length;v(i)&&(i=Math.min(Math.max(t.minFrac,d),t.maxFrac)),e=+(Math.round(+(e.toString()+"e"+i)).toString()+"e"+-i);var p=(""+e).split(Co),f=p[0];p=p[1]||"";var h,m=0,g=t.lgSize,y=t.gSize;if(f.length>=g+y)for(m=f.length-g,h=0;m>h;h++)(m-h)%y===0&&0!==h&&(s+=n),s+=f.charAt(h);for(h=m;he&&(r="-",e=-e),e=""+e;e.length0||o>-n)&&(o+=n),0===o&&-12==n&&(o=12),hr(o,t,r)}}function gr(e,t){return function(n,r){var i=n["get"+e](),o=Yr(t?"SHORT"+e:e);return r[o][i]}}function vr(e){var t=-1*e.getTimezoneOffset(),n=t>=0?"+":"";return n+=hr(Math[t>0?"floor":"ceil"](t/60),2)+hr(Math.abs(t%60),2)}function yr(e){var t=new Date(e,0,1).getDay();return new Date(e,0,(4>=t?5:12)-t)}function $r(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate()+(4-e.getDay()))}function br(e){return function(t){var n=yr(t.getFullYear()),r=$r(t),i=+r-+n,o=1+Math.round(i/6048e5);return hr(o,e)}}function wr(e,t){return e.getHours()<12?t.AMPMS[0]:t.AMPMS[1]}function xr(e){function t(e){var t;if(t=e.match(n)){var r=new Date(0),i=0,o=0,a=t[8]?r.setUTCFullYear:r.setFullYear,s=t[8]?r.setUTCHours:r.setHours;t[9]&&(i=p(t[9]+t[10]),o=p(t[9]+t[11])),a.call(r,p(t[1]),p(t[2])-1,p(t[3]));var l=p(t[4]||0)-i,u=p(t[5]||0)-o,c=p(t[6]||0),d=Math.round(1e3*parseFloat("0."+(t[7]||0)));return s.call(r,l,u,c,d),r}return e}var n=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;return function(n,r,i){var a,s,l="",u=[];if(r=r||"mediumDate",r=e.DATETIME_FORMATS[r]||r,b(n)&&(n=ko.test(n)?p(n):t(n)),w(n)&&(n=new Date(n)),!x(n))return n;for(;r;)s=To.exec(r),s?(u=z(u,s,1),r=u.pop()):(u.push(r),r=null);return i&&"UTC"===i&&(n=new Date(n.getTime()),n.setMinutes(n.getMinutes()+n.getTimezoneOffset())),o(u,function(t){a=So[t],l+=a?a(n,e.DATETIME_FORMATS):t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}}function Cr(){return function(e,t){return v(t)&&(t=2),B(e,t)}}function Sr(){return function(e,t){return w(e)&&(e=e.toString()),ci(e)||b(e)?(t=1/0===Math.abs(Number(t))?Number(t):p(t),t?t>0?e.slice(0,t):e.slice(t):b(e)?"":[]):e}}function Tr(e){return function(t,n,r){function o(e,t){for(var r=0;re?-1:1):r>n?-1:1}return i(t)?(n=ci(n)?n:[n],0===n.length&&(n=["+"]),n=n.map(function(t){var n=!1,r=t||m;if(b(t)){if(("+"==t.charAt(0)||"-"==t.charAt(0))&&(n="-"==t.charAt(0),t=t.substring(1)),""===t)return a(u,n);if(r=e(t),r.constant){var i=r();return a(function(e,t){return u(e[i],t[i])},n)}}return a(function(e,t){return u(r(e),r(t))},n)}),ni.call(t).sort(a(o,r))):t}}function kr(e){return C(e)&&(e={link:e}),e.restrict=e.restrict||"AC",g(e)}function Er(e,t){e.$name=t}function Ar(e,t,r,i,a){var s=this,l=[],u=s.$$parentForm=e.parent().controller("form")||No;s.$error={},s.$$success={},s.$pending=n,s.$name=a(t.name||t.ngForm||"")(r),s.$dirty=!1,s.$pristine=!0,s.$valid=!0,s.$invalid=!1,s.$submitted=!1,u.$addControl(s),s.$rollbackViewValue=function(){o(l,function(e){e.$rollbackViewValue()})},s.$commitViewValue=function(){o(l,function(e){e.$commitViewValue()})},s.$addControl=function(e){at(e.$name,"input"),l.push(e),e.$name&&(s[e.$name]=e)},s.$$renameControl=function(e,t){var n=e.$name;s[n]===e&&delete s[n],s[t]=e,e.$name=t},s.$removeControl=function(e){e.$name&&s[e.$name]===e&&delete s[e.$name],o(s.$pending,function(t,n){s.$setValidity(n,null,e)}),o(s.$error,function(t,n){s.$setValidity(n,null,e)}),o(s.$$success,function(t,n){s.$setValidity(n,null,e)}),I(l,e)},Br({ctrl:this,$element:e,set:function(e,t,n){var r=e[t];if(r){var i=r.indexOf(n);-1===i&&r.push(n)}else e[t]=[n]},unset:function(e,t,n){var r=e[t];r&&(I(r,n),0===r.length&&delete e[t])},parentForm:u,$animate:i}),s.$setDirty=function(){i.removeClass(e,fa),i.addClass(e,ha),s.$dirty=!0,s.$pristine=!1,u.$setDirty()},s.$setPristine=function(){i.setClass(e,fa,ha+" "+Mo),s.$dirty=!1,s.$pristine=!0,s.$submitted=!1,o(l,function(e){e.$setPristine()})},s.$setUntouched=function(){o(l,function(e){e.$setUntouched()})},s.$setSubmitted=function(){i.addClass(e,Mo),s.$submitted=!0,u.$setSubmitted()}}function Or(e){e.$formatters.push(function(t){return e.$isEmpty(t)?t:t.toString()})}function Dr(e,t,n,r,i,o){Nr(e,t,n,r,i,o),Or(r)}function Nr(e,t,n,r,i,o){var a=Gr(t[0].type);if(!i.android){var s=!1;t.on("compositionstart",function(){s=!0}),t.on("compositionend",function(){s=!1,l()})}var l=function(e){if(u&&(o.defer.cancel(u),u=null),!s){var i=t.val(),l=e&&e.type;"password"===a||n.ngTrim&&"false"===n.ngTrim||(i=di(i)),(r.$viewValue!==i||""===i&&r.$$hasNativeValidators)&&r.$setViewValue(i,l)}};if(i.hasEvent("input"))t.on("input",l);else{var u,c=function(e,t,n){u||(u=o.defer(function(){u=null,t&&t.value===n||l(e)}))};t.on("keydown",function(e){var t=e.keyCode;91===t||t>15&&19>t||t>=37&&40>=t||c(e,this,this.value)}),i.hasEvent("paste")&&t.on("paste cut",c)}t.on("change",l),r.$render=function(){t.val(r.$isEmpty(r.$viewValue)?"":r.$viewValue)}}function Mr(e,t){if(x(e))return e;if(b(e)){qo.lastIndex=0;var n=qo.exec(e);if(n){var r=+n[1],i=+n[2],o=0,a=0,s=0,l=0,u=yr(r),c=7*(i-1);return t&&(o=t.getHours(),a=t.getMinutes(),s=t.getSeconds(),l=t.getMilliseconds()),new Date(r,0,u.getDate()+c,o,a,s,l)}}return 0/0}function Pr(e,t){return function(n,r){var i,a;if(x(n))return n;if(b(n)){if('"'==n.charAt(0)&&'"'==n.charAt(n.length-1)&&(n=n.substring(1,n.length-1)),_o.test(n))return new Date(n);if(e.lastIndex=0,i=e.exec(n))return i.shift(),a=r?{yyyy:r.getFullYear(),MM:r.getMonth()+1,dd:r.getDate(),HH:r.getHours(),mm:r.getMinutes(),ss:r.getSeconds(),sss:r.getMilliseconds()/1e3}:{yyyy:1970,MM:1,dd:1,HH:0,mm:0,ss:0,sss:0},o(i,function(e,n){n=g},s.$observe("min",function(e){g=f(e),l.$validate()})}if(y(s.max)||s.ngMax){var $;l.$validators.max=function(e){return!p(e)||v($)||r(e)<=$},s.$observe("max",function(e){$=f(e),l.$validate()})}}}function Ir(e,t,r,i){var o=t[0],a=i.$$hasNativeValidators=$(o.validity);a&&i.$parsers.push(function(e){var r=t.prop(Ur)||{};return r.badInput&&!r.typeMismatch?n:e})}function _r(e,t,r,i,o,a){if(Ir(e,t,r,i),Nr(e,t,r,i,o,a),i.$$parserName="number",i.$parsers.push(function(e){return i.$isEmpty(e)?null:zo.test(e)?parseFloat(e):n}),i.$formatters.push(function(e){if(!i.$isEmpty(e)){if(!w(e))throw ya("numfmt","Expected `{0}` to be a number",e);e=e.toString()}return e}),y(r.min)||r.ngMin){var s;i.$validators.min=function(e){return i.$isEmpty(e)||v(s)||e>=s},r.$observe("min",function(e){y(e)&&!w(e)&&(e=parseFloat(e,10)),s=w(e)&&!isNaN(e)?e:n,i.$validate()})}if(y(r.max)||r.ngMax){var l;i.$validators.max=function(e){return i.$isEmpty(e)||v(l)||l>=e},r.$observe("max",function(e){y(e)&&!w(e)&&(e=parseFloat(e,10)),l=w(e)&&!isNaN(e)?e:n,i.$validate()})}}function Lr(e,t,n,r,i,o){Nr(e,t,n,r,i,o),Or(r),r.$$parserName="url",r.$validators.url=function(e,t){var n=e||t;return r.$isEmpty(n)||Lo.test(n)}}function jr(e,t,n,r,i,o){Nr(e,t,n,r,i,o),Or(r),r.$$parserName="email",r.$validators.email=function(e,t){var n=e||t;return r.$isEmpty(n)||jo.test(n)}}function zr(e,t,n,r){v(n.name)&&t.attr("name",u());var i=function(e){t[0].checked&&r.$setViewValue(n.value,e&&e.type)};t.on("click",i),r.$render=function(){var e=n.value;t[0].checked=e==r.$viewValue},n.$observe("value",r.$render)}function Rr(e,t,n,i,o){var a;if(y(i)){if(a=e(i),!a.constant)throw r("ngModel")("constexpr","Expected constant expression for `{0}`, but saw `{1}`.",n,i);return a(t)}return o}function Hr(e,t,n,r,i,o,a,s){var l=Rr(s,e,"ngTrueValue",n.ngTrueValue,!0),u=Rr(s,e,"ngFalseValue",n.ngFalseValue,!1),c=function(e){r.$setViewValue(t[0].checked,e&&e.type)};t.on("click",c),r.$render=function(){t[0].checked=r.$viewValue},r.$isEmpty=function(e){return e===!1},r.$formatters.push(function(e){return j(e,l)}),r.$parsers.push(function(e){return e?l:u})}function qr(e,t){return e="ngClass"+e,["$animate",function(n){function r(e,t){var n=[];e:for(var r=0;r0||n[e])&&(n[e]=(n[e]||0)+t,n[e]===+(t>0)&&r.push(e))}),s.data("$classCounts",n),r.join(" ")}function p(e,t){var i=r(t,e),o=r(e,t);i=d(i,1),o=d(o,-1),i&&i.length&&n.addClass(s,i),o&&o.length&&n.removeClass(s,o)}function f(e){if(t===!0||a.$index%2===t){var n=i(e||[]);if(h){if(!j(e,h)){var r=i(h);p(r,n)}}else u(n)}h=L(e)}var h;a.$watch(l[e],f,!0),l.$observe("class",function(){f(a.$eval(l[e]))}),"ngClass"!==e&&a.$watch("$index",function(n,r){var o=1&n;if(o!==(1&r)){var s=i(a.$eval(l[e]));o===t?u(s):c(s)}})}}}]}function Br(e){function t(e,t,l){t===n?r("$pending",e,l):i("$pending",e,l),D(t)?t?(d(s.$error,e,l),c(s.$$success,e,l)):(c(s.$error,e,l),d(s.$$success,e,l)):(d(s.$error,e,l),d(s.$$success,e,l)),s.$pending?(o(va,!0),s.$valid=s.$invalid=n,a("",null)):(o(va,!1),s.$valid=Vr(s.$error),s.$invalid=!s.$valid,a("",s.$valid));var u;u=s.$pending&&s.$pending[e]?n:s.$error[e]?!1:s.$$success[e]?!0:null,a(e,u),p.$setValidity(e,u,s)}function r(e,t,n){s[e]||(s[e]={}),c(s[e],t,n)}function i(e,t,r){s[e]&&d(s[e],t,r),Vr(s[e])&&(s[e]=n)}function o(e,t){t&&!u[e]?(f.addClass(l,e),u[e]=!0):!t&&u[e]&&(f.removeClass(l,e),u[e]=!1)}function a(e,t){e=e?"-"+nt(e,"-"):"",o(da+e,t===!0),o(pa+e,t===!1)}var s=e.ctrl,l=e.$element,u={},c=e.set,d=e.unset,p=e.parentForm,f=e.$animate;u[pa]=!(u[da]=l.hasClass(da)),s.$setValidity=t}function Vr(e){if(e)for(var t in e)return!1;return!0}var Wr=/^\/(.+)\/([a-z]*)$/,Ur="validity",Gr=function(e){return b(e)?e.toLowerCase():e},Xr=Object.prototype.hasOwnProperty,Yr=function(e){return b(e)?e.toUpperCase():e},Kr=function(e){return b(e)?e.replace(/[A-Z]/g,function(e){return String.fromCharCode(32|e.charCodeAt(0))}):e},Qr=function(e){return b(e)?e.replace(/[a-z]/g,function(e){return String.fromCharCode(-33&e.charCodeAt(0))}):e};"i"!=="I".toLowerCase()&&(Gr=Kr,Yr=Qr);var Jr,Zr,ei,ti,ni=[].slice,ri=[].splice,ii=[].push,oi=Object.prototype.toString,ai=r("ng"),si=e.angular||(e.angular={}),li=0;Jr=t.documentMode,h.$inject=[],m.$inject=[];var ui,ci=Array.isArray,di=function(e){return b(e)?e.trim():e},pi=function(e){return e.replace(/([-()\[\]{}+?*.$\^|,:#(?:<\/\1>|)$/,Mi=/<|&#?\w+;/,Pi=/<([\w:]+)/,Fi=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,Ii={option:[1,'"],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};Ii.optgroup=Ii.option,Ii.tbody=Ii.tfoot=Ii.colgroup=Ii.caption=Ii.thead,Ii.th=Ii.td;var _i=bt.prototype={ready:function(n){function r(){i||(i=!0,n())}var i=!1;"complete"===t.readyState?setTimeout(r):(this.on("DOMContentLoaded",r),bt(e).on("load",r))},toString:function(){var e=[];return o(this,function(t){e.push(""+t)}),"["+e.join(", ")+"]"},eq:function(e){return Zr(e>=0?this[e]:this[this.length+e])},length:0,push:ii,sort:[].sort,splice:[].splice},Li={};o("multiple,selected,checked,disabled,readOnly,required,open".split(","),function(e){Li[Gr(e)]=e});var ji={};o("input,select,option,textarea,button,form,details".split(","),function(e){ji[e]=!0});var zi={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern"};o({data:kt,removeData:St},function(e,t){bt[t]=e}),o({data:kt,inheritedData:Mt,scope:function(e){return Zr.data(e,"$scope")||Mt(e.parentNode||e,["$isolateScope","$scope"])},isolateScope:function(e){return Zr.data(e,"$isolateScope")||Zr.data(e,"$isolateScopeNoTemplate")},controller:Nt,injector:function(e){return Mt(e,"$injector")},removeAttr:function(e,t){e.removeAttribute(t)},hasClass:Et,css:function(e,t,n){return t=mt(t),y(n)?void(e.style[t]=n):e.style[t]},attr:function(e,t,r){var i=Gr(t);if(Li[i]){if(!y(r))return e[t]||(e.attributes.getNamedItem(t)||h).specified?i:n;r?(e[t]=!0,e.setAttribute(t,i)):(e[t]=!1,e.removeAttribute(i))}else if(y(r))e.setAttribute(t,r);else if(e.getAttribute){var o=e.getAttribute(t,2);return null===o?n:o}},prop:function(e,t,n){return y(n)?void(e[t]=n):e[t]},text:function(){function e(e,t){if(v(t)){var n=e.nodeType;return n===vi||n===yi?e.textContent:""}e.textContent=t}return e.$dv="",e}(),val:function(e,t){if(v(t)){if(e.multiple&&"select"===F(e)){var n=[];return o(e.options,function(e){e.selected&&n.push(e.value||e.text)}),0===n.length?null:n}return e.value}e.value=t},html:function(e,t){return v(t)?e.innerHTML:(xt(e,!0),void(e.innerHTML=t))},empty:Pt},function(e,t){bt.prototype[t]=function(t,r){var i,o,a=this.length;if(e!==Pt&&(2==e.length&&e!==Et&&e!==Nt?t:r)===n){if($(t)){for(i=0;a>i;i++)if(e===kt)e(this[i],t);else for(o in t)e(this[i],o,t[o]);return this}for(var s=e.$dv,l=s===n?Math.min(a,1):a,u=0;l>u;u++){var c=e(this[u],t,r);s=s?s+c:c}return s}for(i=0;a>i;i++)e(this[i],t,r);return this}}),o({removeData:St,on:function Wa(e,t,n,r){if(y(r))throw Di("onargs","jqLite#on() does not support the `selector` or `eventData` parameters");if(vt(e)){var i=Tt(e,!0),o=i.events,a=i.handle;a||(a=i.handle=jt(e,o));for(var s=t.indexOf(" ")>=0?t.split(" "):[t],l=s.length;l--;){t=s[l];var u=o[t];u||(o[t]=[],"mouseenter"===t||"mouseleave"===t?Wa(e,Oi[t],function(e){var n=this,r=e.relatedTarget;(!r||r!==n&&!n.contains(r))&&a(e,t)}):"$destroy"!==t&&Ti(e,t,a),u=o[t]),u.push(n)}}},off:Ct,one:function(e,t,n){e=Zr(e),e.on(t,function r(){e.off(t,n),e.off(t,r)}),e.on(t,n)},replaceWith:function(e,t){var n,r=e.parentNode;xt(e),o(new bt(t),function(t){n?r.insertBefore(t,n.nextSibling):r.replaceChild(t,e),n=t})},children:function(e){var t=[];return o(e.childNodes,function(e){e.nodeType===vi&&t.push(e)}),t},contents:function(e){return e.contentDocument||e.childNodes||[]},append:function(e,t){var n=e.nodeType;if(n===vi||n===wi){t=new bt(t);for(var r=0,i=t.length;i>r;r++){var o=t[r];e.appendChild(o)}}},prepend:function(e,t){if(e.nodeType===vi){var n=e.firstChild;o(new bt(t),function(t){e.insertBefore(t,n)})}},wrap:function(e,t){t=Zr(t).eq(0).clone()[0];var n=e.parentNode;n&&n.replaceChild(t,e),t.appendChild(e)},remove:Ft,detach:function(e){Ft(e,!0)},after:function(e,t){var n=e,r=e.parentNode;t=new bt(t);for(var i=0,o=t.length;o>i;i++){var a=t[i];r.insertBefore(a,n.nextSibling),n=a}},addClass:Ot,removeClass:At,toggleClass:function(e,t,n){t&&o(t.split(" "),function(t){var r=n;v(r)&&(r=!Et(e,t)),(r?Ot:At)(e,t)})},parent:function(e){var t=e.parentNode;return t&&t.nodeType!==wi?t:null},next:function(e){return e.nextElementSibling},find:function(e,t){return e.getElementsByTagName?e.getElementsByTagName(t):[]},clone:wt,triggerHandler:function(e,t,n){var r,i,a,s=t.type||t,l=Tt(e),u=l&&l.events,c=u&&u[s];c&&(r={preventDefault:function(){this.defaultPrevented=!0},isDefaultPrevented:function(){return this.defaultPrevented===!0},stopImmediatePropagation:function(){this.immediatePropagationStopped=!0},isImmediatePropagationStopped:function(){return this.immediatePropagationStopped===!0},stopPropagation:h,type:s,target:e},t.type&&(r=d(r,t)),i=L(c),a=n?[r].concat(n):[r],o(i,function(t){r.isImmediatePropagationStopped()||t.apply(e,a)}))}},function(e,t){bt.prototype[t]=function(t,n,r){for(var i,o=0,a=this.length;a>o;o++)v(i)?(i=e(this[o],t,n,r),y(i)&&(i=Zr(i))):Dt(i,e(this[o],t,n,r));return y(i)?i:this},bt.prototype.bind=bt.prototype.on,bt.prototype.unbind=bt.prototype.off}),Ht.prototype={put:function(e,t){this[Rt(e,this.nextUid)]=t},get:function(e){return this[Rt(e,this.nextUid)]},remove:function(e){var t=this[e=Rt(e,this.nextUid)];return delete this[e],t}};var Ri=/^function\s*[^\(]*\(\s*([^\)]*)\)/m,Hi=/,/,qi=/^\s*(_?)(\S+?)\1\s*$/,Bi=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,Vi=r("$injector");Vt.$$annotate=Bt;var Wi=r("$animate"),Ui=["$provide",function(e){this.$$selectors={},this.register=function(t,n){var r=t+"-animation";if(t&&"."!=t.charAt(0))throw Wi("notcsel","Expecting class selector starting with '.' got '{0}'.",t);this.$$selectors[t.substr(1)]=r,e.factory(r,n)},this.classNameFilter=function(e){return 1===arguments.length&&(this.$$classNameFilter=e instanceof RegExp?e:null),this.$$classNameFilter},this.$get=["$$q","$$asyncCallback","$rootScope",function(e,t,n){function r(t){var r,i=e.defer();return i.promise.$$cancelFn=function(){r&&r()},n.$$postDigest(function(){r=t(function(){i.resolve()})}),i.promise}function i(e,t){var n=[],r=[],i=ut();return o((e.attr("class")||"").split(/\s+/),function(e){i[e]=!0}),o(t,function(e,t){var o=i[t];e===!1&&o?r.push(t):e!==!0||o||n.push(t)}),n.length+r.length>0&&[n.length?n:null,r.length?r:null]}function a(e,t,n){for(var r=0,i=t.length;i>r;++r){var o=t[r];e[o]=n}}function s(){return u||(u=e.defer(),t(function(){u.resolve(),u=null})),u.promise}function l(e,t){if(si.isObject(t)){var n=d(t.from||{},t.to||{});e.css(n)}}var u;return{animate:function(e,t,n){return l(e,{from:t,to:n}),s()},enter:function(e,t,n,r){return l(e,r),n?n.after(e):t.prepend(e),s()},leave:function(e){return e.remove(),s()},move:function(e,t,n,r){return this.enter(e,t,n,r)},addClass:function(e,t,n){return this.setClass(e,t,[],n)},$$addClassImmediately:function(e,t,n){return e=Zr(e),t=b(t)?t:ci(t)?t.join(" "):"",o(e,function(e){Ot(e,t)}),l(e,n),s()},removeClass:function(e,t,n){return this.setClass(e,[],t,n)},$$removeClassImmediately:function(e,t,n){return e=Zr(e),t=b(t)?t:ci(t)?t.join(" "):"",o(e,function(e){At(e,t)}),l(e,n),s()},setClass:function(e,t,n,o){var s=this,l="$$animateClasses",u=!1;e=Zr(e);var c=e.data(l);c?o&&c.options&&(c.options=si.extend(c.options||{},o)):(c={classes:{},options:o},u=!0);var d=c.classes;return t=ci(t)?t:t.split(" "),n=ci(n)?n:n.split(" "),a(d,t,!0),a(d,n,!1),u&&(c.promise=r(function(t){var n=e.data(l);if(e.removeData(l),n){var r=i(e,n.classes);r&&s.$$setClassImmediately(e,r[0],r[1],n.options)}t()}),e.data(l,c)),c.promise},$$setClassImmediately:function(e,t,n,r){return t&&this.$$addClassImmediately(e,t),n&&this.$$removeClassImmediately(e,n),l(e,r),s()},enabled:h,cancel:h}}]}],Gi=r("$compile");Qt.$inject=["$provide","$$sanitizeUriProvider"];var Xi=/^((?:x|data)[\:\-_])/i,Yi=r("$controller"),Ki="application/json",Qi={"Content-Type":Ki+";charset=utf-8"},Ji=/^\[|^\{(?!\{)/,Zi={"[":/]$/,"{":/}$/},eo=/^\)\]\}',?\n/,to=r("$interpolate"),no=/^([^\?#]*)(\?([^#]*))?(#(.*))?$/,ro={http:80,https:443,ftp:21},io=r("$location"),oo={$$html5:!1,$$replace:!1,absUrl:On("$$absUrl"),url:function(e){if(v(e))return this.$$url;var t=no.exec(e);return(t[1]||""===e)&&this.path(decodeURIComponent(t[1])),(t[2]||t[1]||""===e)&&this.search(t[3]||""),this.hash(t[5]||""),this},protocol:On("$$protocol"),host:On("$$host"),port:On("$$port"),path:Dn("$$path",function(e){return e=null!==e?e.toString():"","/"==e.charAt(0)?e:"/"+e}),search:function(e,t){switch(arguments.length){case 0:return this.$$search;case 1:if(b(e)||w(e))e=e.toString(),this.$$search=G(e);else{if(!$(e))throw io("isrcharg","The first argument of the `$location#search()` call must be a string or an object.");e=_(e,{}),o(e,function(t,n){null==t&&delete e[n]}),this.$$search=e}break;default:v(t)||null===t?delete this.$$search[e]:this.$$search[e]=t}return this.$$compose(),this},hash:Dn("$$hash",function(e){return null!==e?e.toString():""}),replace:function(){return this.$$replace=!0,this}};o([An,En,kn],function(e){e.prototype=Object.create(oo),e.prototype.state=function(t){if(!arguments.length)return this.$$state;if(e!==kn||!this.$$html5)throw io("nostate","History API state support is available only in HTML5 mode and only in browsers supporting HTML5 History API");return this.$$state=v(t)?null:t,this}});var ao=r("$parse"),so=Function.prototype.call,lo=Function.prototype.apply,uo=Function.prototype.bind,co=ut();o({"null":function(){return null},"true":function(){return!0},"false":function(){return!1},undefined:function(){}},function(e,t){e.constant=e.literal=e.sharedGetter=!0,co[t]=e}),co["this"]=function(e){return e},co["this"].sharedGetter=!0;var po=d(ut(),{"+":function(e,t,r,i){return r=r(e,t),i=i(e,t),y(r)?y(i)?r+i:r:y(i)?i:n},"-":function(e,t,n,r){return n=n(e,t),r=r(e,t),(y(n)?n:0)-(y(r)?r:0)},"*":function(e,t,n,r){return n(e,t)*r(e,t)},"/":function(e,t,n,r){return n(e,t)/r(e,t)},"%":function(e,t,n,r){return n(e,t)%r(e,t)},"===":function(e,t,n,r){return n(e,t)===r(e,t)},"!==":function(e,t,n,r){return n(e,t)!==r(e,t)},"==":function(e,t,n,r){return n(e,t)==r(e,t)},"!=":function(e,t,n,r){return n(e,t)!=r(e,t)},"<":function(e,t,n,r){return n(e,t)":function(e,t,n,r){return n(e,t)>r(e,t)},"<=":function(e,t,n,r){return n(e,t)<=r(e,t)},">=":function(e,t,n,r){return n(e,t)>=r(e,t)},"&&":function(e,t,n,r){return n(e,t)&&r(e,t)},"||":function(e,t,n,r){return n(e,t)||r(e,t)},"!":function(e,t,n){return!n(e,t)},"=":!0,"|":!0}),fo={n:"\n",f:"\f",r:"\r",t:" ",v:" ","'":"'",'"':'"'},ho=function(e){this.options=e};ho.prototype={constructor:ho,lex:function(e){for(this.text=e,this.index=0,this.tokens=[];this.index="0"&&"9">=e&&"string"==typeof e},isWhitespace:function(e){return" "===e||"\r"===e||" "===e||"\n"===e||" "===e||" "===e},isIdent:function(e){return e>="a"&&"z">=e||e>="A"&&"Z">=e||"_"===e||"$"===e},isExpOperator:function(e){return"-"===e||"+"===e||this.isNumber(e)},throwError:function(e,t,n){n=n||this.index;var r=y(t)?"s "+t+"-"+this.index+" ["+this.text.substring(t,n)+"]":" "+n;throw ao("lexerr","Lexer Error: {0} at column{1} in expression [{2}].",e,r,this.text)},readNumber:function(){for(var e="",t=this.index;this.indexe){var o=this.tokens[e],a=o.text;if(a===t||a===n||a===r||a===i||!t&&!n&&!r&&!i)return o}return!1},expect:function(e,t,n,r){var i=this.peek(e,t,n,r);return i?(this.tokens.shift(),i):!1},consume:function(e){if(0===this.tokens.length)throw ao("ueoe","Unexpected end of expression: {0}",this.text);var t=this.expect(e);return t||this.throwError("is unexpected, expecting ["+e+"]",this.peek()),t},unaryFn:function(e,t){var n=po[e];return d(function(e,r){return n(e,r,t)},{constant:t.constant,inputs:[t]})},binaryFn:function(e,t,n,r){var i=po[t];return d(function(t,r){return i(t,r,e,n)},{constant:e.constant&&n.constant,inputs:!r&&[e,n]})},identifier:function(){for(var e=this.consume().text;this.peek(".")&&this.peekAhead(1).identifier&&!this.peekAhead(2,"(");)e+=this.consume().text+this.consume().text;return Hn(e,this.options,this.text)},constant:function(){var e=this.consume().value;return d(function(){return e},{constant:!0,literal:!0})},statements:function(){for(var e=[];;)if(this.tokens.length>0&&!this.peek("}",")",";","]")&&e.push(this.filterChain()),!this.expect(";"))return 1===e.length?e[0]:function(t,n){for(var r,i=0,o=e.length;o>i;i++)r=e[i](t,n);return r}},filterChain:function(){for(var e,t=this.expression();e=this.expect("|");)t=this.filter(t);return t},filter:function(e){var t,r,i=this.$filter(this.consume().text);if(this.peek(":"))for(t=[],r=[];this.expect(":");)t.push(this.expression());var o=[e].concat(t||[]);return d(function(o,a){var s=e(o,a);if(r){r[0]=s;for(var l=t.length;l--;)r[l+1]=t[l](o,a);return i.apply(n,r)}return i(s)},{constant:!i.$stateful&&o.every(_n),inputs:!i.$stateful&&o})},expression:function(){return this.assignment()},assignment:function(){var e,t,n=this.ternary();return(t=this.expect("="))?(n.assign||this.throwError("implies assignment but ["+this.text.substring(0,t.index)+"] can not be assigned to",t),e=this.ternary(),d(function(t,r){return n.assign(t,e(t,r),r)},{inputs:[n,e]})):n},ternary:function(){var e,t,n=this.logicalOR();if((t=this.expect("?"))&&(e=this.assignment(),this.consume(":"))){var r=this.assignment();return d(function(t,i){return n(t,i)?e(t,i):r(t,i)},{constant:n.constant&&e.constant&&r.constant})}return n},logicalOR:function(){for(var e,t=this.logicalAND();e=this.expect("||");)t=this.binaryFn(t,e.text,this.logicalAND(),!0);return t},logicalAND:function(){for(var e,t=this.equality();e=this.expect("&&");)t=this.binaryFn(t,e.text,this.equality(),!0);return t},equality:function(){for(var e,t=this.relational();e=this.expect("==","!=","===","!==");)t=this.binaryFn(t,e.text,this.relational());return t},relational:function(){for(var e,t=this.additive();e=this.expect("<",">","<=",">=");)t=this.binaryFn(t,e.text,this.additive());return t},additive:function(){for(var e,t=this.multiplicative();e=this.expect("+","-");)t=this.binaryFn(t,e.text,this.multiplicative());return t},multiplicative:function(){for(var e,t=this.unary();e=this.expect("*","/","%");)t=this.binaryFn(t,e.text,this.unary());return t},unary:function(){var e;return this.expect("+")?this.primary():(e=this.expect("-"))?this.binaryFn(mo.ZERO,e.text,this.unary()):(e=this.expect("!"))?this.unaryFn(e.text,this.unary()):this.primary()},fieldAccess:function(e){var t=this.identifier();return d(function(r,i,o){var a=o||e(r,i);return null==a?n:t(a)},{assign:function(n,r,i){var o=e(n,i);return o||e.assign(n,o={},i),t.assign(o,r)}})},objectIndex:function(e){var t=this.text,r=this.expression();return this.consume("]"),d(function(i,o){var a,s=e(i,o),l=r(i,o);return Pn(l,t),s?a=Fn(s[l],t):n},{assign:function(n,i,o){var a=Pn(r(n,o),t),s=Fn(e(n,o),t);return s||e.assign(n,s={},o),s[a]=i}})},functionCall:function(e,t){var r=[];if(")"!==this.peekToken().text)do r.push(this.expression());while(this.expect(","));this.consume(")");var i=this.text,o=r.length?[]:null;return function(a,s){var l=t?t(a,s):y(t)?n:a,u=e(a,s,l)||h;if(o)for(var c=r.length;c--;)o[c]=Fn(r[c](a,s),i);Fn(l,i),In(u,i);var d=u.apply?u.apply(l,o):u(o[0],o[1],o[2],o[3],o[4]);return o&&(o.length=0),Fn(d,i)}},arrayDeclaration:function(){var e=[];if("]"!==this.peekToken().text)do{if(this.peek("]"))break;e.push(this.expression())}while(this.expect(","));return this.consume("]"),d(function(t,n){for(var r=[],i=0,o=e.length;o>i;i++)r.push(e[i](t,n));return r},{literal:!0,constant:e.every(_n),inputs:e})},object:function(){var e=[],t=[];if("}"!==this.peekToken().text)do{if(this.peek("}"))break;var n=this.consume();n.constant?e.push(n.value):n.identifier?e.push(n.text):this.throwError("invalid key",n),this.consume(":"),t.push(this.expression())}while(this.expect(","));return this.consume("}"),d(function(n,r){for(var i={},o=0,a=t.length;a>o;o++)i[e[o]]=t[o](n,r);return i},{literal:!0,constant:t.every(_n),inputs:t})}};var go=ut(),vo=ut(),yo=Object.prototype.valueOf,$o=r("$sce"),bo={HTML:"html",CSS:"css",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"},Gi=r("$compile"),wo=t.createElement("a"),xo=ir(e.location.href);sr.$inject=["$provide"],dr.$inject=["$locale"],pr.$inject=["$locale"];var Co=".",So={yyyy:mr("FullYear",4),yy:mr("FullYear",2,0,!0),y:mr("FullYear",1),MMMM:gr("Month"),MMM:gr("Month",!0),MM:mr("Month",2,1),M:mr("Month",1,1),dd:mr("Date",2),d:mr("Date",1),HH:mr("Hours",2),H:mr("Hours",1),hh:mr("Hours",2,-12),h:mr("Hours",1,-12),mm:mr("Minutes",2),m:mr("Minutes",1),ss:mr("Seconds",2),s:mr("Seconds",1),sss:mr("Milliseconds",3),EEEE:gr("Day"),EEE:gr("Day",!0),a:wr,Z:vr,ww:br(2),w:br(1)},To=/((?:[^yMdHhmsaZEw']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|d+|H+|h+|m+|s+|a|Z|w+))(.*)/,ko=/^\-?\d+$/;xr.$inject=["$locale"];var Eo=g(Gr),Ao=g(Yr);Tr.$inject=["$parse"];var Oo=g({restrict:"E",compile:function(e,t){return t.href||t.xlinkHref||t.name?void 0:function(e,t){if("a"===t[0].nodeName.toLowerCase()){var n="[object SVGAnimatedString]"===oi.call(t.prop("href"))?"xlink:href":"href";t.on("click",function(e){t.attr(n)||e.preventDefault()})}}}}),Do={};o(Li,function(e,t){if("multiple"!=e){var n=Jt("ng-"+t);Do[n]=function(){return{restrict:"A",priority:100,link:function(e,r,i){e.$watch(i[n],function(e){i.$set(t,!!e)})}}}}}),o(zi,function(e,t){Do[t]=function(){return{priority:100,link:function(e,n,r){if("ngPattern"===t&&"/"==r.ngPattern.charAt(0)){var i=r.ngPattern.match(Wr);if(i)return void r.$set("ngPattern",new RegExp(i[1],i[2]))}e.$watch(r[t],function(e){r.$set(t,e)})}}}}),o(["src","srcset","href"],function(e){var t=Jt("ng-"+e);Do[t]=function(){return{priority:99,link:function(n,r,i){var o=e,a=e;"href"===e&&"[object SVGAnimatedString]"===oi.call(r.prop("href"))&&(a="xlinkHref",i.$attr[a]="xlink:href",o=null),i.$observe(t,function(t){return t?(i.$set(a,t),void(Jr&&o&&r.prop(o,i[a]))):void("href"===e&&i.$set(a,null))})}}}});var No={$addControl:h,$$renameControl:Er,$removeControl:h,$setValidity:h,$setDirty:h,$setPristine:h,$setSubmitted:h},Mo="ng-submitted";Ar.$inject=["$element","$attrs","$scope","$animate","$interpolate"];var Po=function(e){return["$timeout",function(t){var r={name:"form",restrict:e?"EAC":"E",controller:Ar,compile:function(e){return e.addClass(fa).addClass(da),{pre:function(e,r,i,o){if(!("action"in i)){var a=function(t){e.$apply(function(){o.$commitViewValue(),o.$setSubmitted()}),t.preventDefault()};Ti(r[0],"submit",a),r.on("$destroy",function(){t(function(){ki(r[0],"submit",a)},0,!1)})}var s=o.$$parentForm,l=o.$name;l&&(Ln(e,null,l,o,l),i.$observe(i.name?"name":"ngForm",function(t){l!==t&&(Ln(e,null,l,n,l),l=t,Ln(e,null,l,o,l),s.$$renameControl(o,l))})),r.on("$destroy",function(){s.$removeControl(o),l&&Ln(e,null,l,n,l),d(o,No)})}}}};return r}]},Fo=Po(),Io=Po(!0),_o=/\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z)/,Lo=/^(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?$/,jo=/^[a-z0-9!#$%&'*+\/=?^_`{|}~.-]+@[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*$/i,zo=/^\s*(\-|\+)?(\d+|(\d*(\.\d*)))\s*$/,Ro=/^(\d{4})-(\d{2})-(\d{2})$/,Ho=/^(\d{4})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,qo=/^(\d{4})-W(\d\d)$/,Bo=/^(\d{4})-(\d\d)$/,Vo=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Wo={text:Dr,date:Fr("date",Ro,Pr(Ro,["yyyy","MM","dd"]),"yyyy-MM-dd"),"datetime-local":Fr("datetimelocal",Ho,Pr(Ho,["yyyy","MM","dd","HH","mm","ss","sss"]),"yyyy-MM-ddTHH:mm:ss.sss"),time:Fr("time",Vo,Pr(Vo,["HH","mm","ss","sss"]),"HH:mm:ss.sss"),week:Fr("week",qo,Mr,"yyyy-Www"),month:Fr("month",Bo,Pr(Bo,["yyyy","MM"]),"yyyy-MM"),number:_r,url:Lr,email:jr,radio:zr,checkbox:Hr,hidden:h,button:h,submit:h,reset:h,file:h},Uo=["$browser","$sniffer","$filter","$parse",function(e,t,n,r){return{restrict:"E",require:["?ngModel"],link:{pre:function(i,o,a,s){s[0]&&(Wo[Gr(a.type)]||Wo.text)(i,o,a,s[0],t,e,n,r)}}}}],Go=/^(true|false|\d+)$/,Xo=function(){return{restrict:"A",priority:100,compile:function(e,t){return Go.test(t.ngValue)?function(e,t,n){n.$set("value",e.$eval(n.ngValue))}:function(e,t,n){e.$watch(n.ngValue,function(e){n.$set("value",e)})}}}},Yo=["$compile",function(e){return{restrict:"AC",compile:function(t){return e.$$addBindingClass(t),function(t,r,i){e.$$addBindingInfo(r,i.ngBind),r=r[0],t.$watch(i.ngBind,function(e){r.textContent=e===n?"":e})}}}}],Ko=["$interpolate","$compile",function(e,t){return{compile:function(r){return t.$$addBindingClass(r),function(r,i,o){var a=e(i.attr(o.$attr.ngBindTemplate));t.$$addBindingInfo(i,a.expressions),i=i[0],o.$observe("ngBindTemplate",function(e){i.textContent=e===n?"":e})}}}}],Qo=["$sce","$parse","$compile",function(e,t,n){return{restrict:"A",compile:function(r,i){var o=t(i.ngBindHtml),a=t(i.ngBindHtml,function(e){return(e||"").toString()});return n.$$addBindingClass(r),function(t,r,i){n.$$addBindingInfo(r,i.ngBindHtml),t.$watch(a,function(){r.html(e.getTrustedHtml(o(t))||"")})}}}}],Jo=g({restrict:"A",require:"ngModel",link:function(e,t,n,r){r.$viewChangeListeners.push(function(){e.$eval(n.ngChange)})}}),Zo=qr("",!0),ea=qr("Odd",0),ta=qr("Even",1),na=kr({compile:function(e,t){t.$set("ngCloak",n),e.removeClass("ng-cloak")}}),ra=[function(){return{restrict:"A",scope:!0,controller:"@",priority:500}}],ia={},oa={blur:!0,focus:!0};o("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),function(e){var t=Jt("ng-"+e);ia[t]=["$parse","$rootScope",function(n,r){return{restrict:"A",compile:function(i,o){var a=n(o[t],null,!0);return function(t,n){n.on(e,function(n){var i=function(){a(t,{$event:n})};oa[e]&&r.$$phase?t.$evalAsync(i):t.$apply(i)})}}}}]});var aa=["$animate",function(e){return{multiElement:!0,transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link:function(n,r,i,o,a){var s,l,u;n.$watch(i.ngIf,function(n){n?l||a(function(n,o){l=o,n[n.length++]=t.createComment(" end ngIf: "+i.ngIf+" "),s={clone:n},e.enter(n,r.parent(),r)}):(u&&(u.remove(),u=null),l&&(l.$destroy(),l=null),s&&(u=lt(s.clone),e.leave(u).then(function(){u=null}),s=null))})}}}],sa=["$templateRequest","$anchorScroll","$animate","$sce",function(e,t,n,r){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:si.noop,compile:function(i,o){var a=o.ngInclude||o.src,s=o.onload||"",l=o.autoscroll;return function(i,o,u,c,d){var p,f,h,m=0,g=function(){f&&(f.remove(),f=null),p&&(p.$destroy(),p=null),h&&(n.leave(h).then(function(){f=null}),f=h,h=null)};i.$watch(r.parseAsResourceUrl(a),function(r){var a=function(){!y(l)||l&&!i.$eval(l)||t()},u=++m;r?(e(r,!0).then(function(e){if(u===m){var t=i.$new();c.template=e;var l=d(t,function(e){g(),n.enter(e,null,o).then(a)});p=t,h=l,p.$emit("$includeContentLoaded",r),i.$eval(s)}},function(){u===m&&(g(),i.$emit("$includeContentError",r))}),i.$emit("$includeContentRequested",r)):(g(),c.template=null)})}}}}],la=["$compile",function(e){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(n,r,i,o){return/SVG/.test(r[0].toString())?(r.empty(),void e(yt(o.template,t).childNodes)(n,function(e){r.append(e)},{futureParentElement:r})):(r.html(o.template),void e(r.contents())(n))}}}],ua=kr({priority:450,compile:function(){return{pre:function(e,t,n){e.$eval(n.ngInit)}}}}),ca=function(){return{restrict:"A",priority:100,require:"ngModel",link:function(e,t,r,i){var a=t.attr(r.$attr.ngList)||", ",s="false"!==r.ngTrim,l=s?di(a):a,u=function(e){if(!v(e)){var t=[];return e&&o(e.split(l),function(e){e&&t.push(s?di(e):e)}),t}};i.$parsers.push(u),i.$formatters.push(function(e){return ci(e)?e.join(a):n}),i.$isEmpty=function(e){return!e||!e.length}}}},da="ng-valid",pa="ng-invalid",fa="ng-pristine",ha="ng-dirty",ma="ng-untouched",ga="ng-touched",va="ng-pending",ya=new r("ngModel"),$a=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate","$timeout","$rootScope","$q","$interpolate",function(e,t,r,i,a,s,l,u,c,d){this.$viewValue=Number.NaN,this.$modelValue=Number.NaN,this.$$rawModelValue=n,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=n,this.$name=d(r.name||"",!1)(e);var p,f=a(r.ngModel),m=f.assign,g=f,$=m,b=null,x=this;this.$$setOptions=function(e){if(x.$options=e,e&&e.getterSetter){var t=a(r.ngModel+"()"),n=a(r.ngModel+"($$$p)");g=function(e){var n=f(e);return C(n)&&(n=t(e)),n},$=function(e){C(f(e))?n(e,{$$$p:x.$modelValue}):m(e,x.$modelValue)}}else if(!f.assign)throw ya("nonassign","Expression '{0}' is non-assignable. Element: {1}",r.ngModel,W(i))},this.$render=h,this.$isEmpty=function(e){return v(e)||""===e||null===e||e!==e};var S=i.inheritedData("$formController")||No,T=0;Br({ctrl:this,$element:i,set:function(e,t){e[t]=!0},unset:function(e,t){delete e[t]},parentForm:S,$animate:s}),this.$setPristine=function(){x.$dirty=!1,x.$pristine=!0,s.removeClass(i,ha),s.addClass(i,fa)},this.$setDirty=function(){x.$dirty=!0,x.$pristine=!1,s.removeClass(i,fa),s.addClass(i,ha),S.$setDirty()},this.$setUntouched=function(){x.$touched=!1,x.$untouched=!0,s.setClass(i,ma,ga)},this.$setTouched=function(){x.$touched=!0,x.$untouched=!1,s.setClass(i,ga,ma)},this.$rollbackViewValue=function(){l.cancel(b),x.$viewValue=x.$$lastCommittedViewValue,x.$render()},this.$validate=function(){if(!w(x.$modelValue)||!isNaN(x.$modelValue)){var e=x.$$lastCommittedViewValue,t=x.$$rawModelValue,r=x.$valid,i=x.$modelValue,o=x.$options&&x.$options.allowInvalid;x.$$runValidators(t,e,function(e){o||r===e||(x.$modelValue=e?t:n,x.$modelValue!==i&&x.$$writeModelToScope())})}},this.$$runValidators=function(e,t,r){function i(){var e=x.$$parserName||"parse"; +return p!==n?(p||(o(x.$validators,function(e,t){l(t,null)}),o(x.$asyncValidators,function(e,t){l(t,null)})),l(e,p),p):(l(e,null),!0)}function a(){var n=!0;return o(x.$validators,function(r,i){var o=r(e,t);n=n&&o,l(i,o)}),n?!0:(o(x.$asyncValidators,function(e,t){l(t,null)}),!1)}function s(){var r=[],i=!0;o(x.$asyncValidators,function(o,a){var s=o(e,t);if(!N(s))throw ya("$asyncValidators","Expected asynchronous validator to return a promise but got '{0}' instead.",s);l(a,n),r.push(s.then(function(){l(a,!0)},function(){i=!1,l(a,!1)}))}),r.length?c.all(r).then(function(){u(i)},h):u(!0)}function l(e,t){d===T&&x.$setValidity(e,t)}function u(e){d===T&&r(e)}T++;var d=T;return i()&&a()?void s():void u(!1)},this.$commitViewValue=function(){var e=x.$viewValue;l.cancel(b),(x.$$lastCommittedViewValue!==e||""===e&&x.$$hasNativeValidators)&&(x.$$lastCommittedViewValue=e,x.$pristine&&this.$setDirty(),this.$$parseAndValidate())},this.$$parseAndValidate=function(){function t(){x.$modelValue!==a&&x.$$writeModelToScope()}var r=x.$$lastCommittedViewValue,i=r;if(p=v(i)?n:!0)for(var o=0;op;p++)if(k=r===D?p:D[p],E=r[k],A=O(k,E,p),g[A])N=g[A],delete g[A],I[A]=N,M[p]=N;else{if(I[A])throw o(M,function(e){e&&e.scope&&(g[e.id]=e)}),l("dupes","Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys. Repeater: {0}, Duplicate key: {1}, Duplicate value: {2}",f,A,E);M[p]={id:A,scope:n,clone:n},I[A]=!0}for(var L in g){if(N=g[L],P=lt(N.clone),a.leave(P),P[0].parentNode)for(p=0,v=P.length;v>p;p++)P[p][s]=!0;N.scope.$destroy()}for(p=0;x>p;p++)if(k=r===D?p:D[p],E=r[k],N=M[p],N.scope){$=F;do $=$.nextSibling;while($&&$[s]);c(N)!=$&&a.move(lt(N.clone),null,Zr(F)),F=d(N),u(N.scope,p,b,E,w,k,x)}else m(function(e,t){N.scope=t;var n=h.cloneNode(!1);e[e.length++]=n,a.enter(e,null,Zr(F)),F=n,N.clone=e,I[N.id]=N,u(N.scope,p,b,E,w,k,x)});g=I})}}}}],ka="ng-hide",Ea="ng-hide-animate",Aa=["$animate",function(e){return{restrict:"A",multiElement:!0,link:function(t,n,r){t.$watch(r.ngShow,function(t){e[t?"removeClass":"addClass"](n,ka,{tempClasses:Ea})})}}}],Oa=["$animate",function(e){return{restrict:"A",multiElement:!0,link:function(t,n,r){t.$watch(r.ngHide,function(t){e[t?"addClass":"removeClass"](n,ka,{tempClasses:Ea})})}}}],Da=kr(function(e,t,n){e.$watchCollection(n.ngStyle,function(e,n){n&&e!==n&&o(n,function(e,n){t.css(n,"")}),e&&t.css(e)})}),Na=["$animate",function(e){return{restrict:"EA",require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(n,r,i,a){var s=i.ngSwitch||i.on,l=[],u=[],c=[],d=[],p=function(e,t){return function(){e.splice(t,1)}};n.$watch(s,function(n){var r,i;for(r=0,i=c.length;i>r;++r)e.cancel(c[r]);for(c.length=0,r=0,i=d.length;i>r;++r){var s=lt(u[r].clone);d[r].$destroy();var f=c[r]=e.leave(s);f.then(p(c,r))}u.length=0,d.length=0,(l=a.cases["!"+n]||a.cases["?"])&&o(l,function(n){n.transclude(function(r,i){d.push(i);var o=n.element;r[r.length++]=t.createComment(" end ngSwitchWhen: ");var a={clone:r};u.push(a),e.enter(r,o.parent(),o)})})})}}}],Ma=kr({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(e,t,n,r,i){r.cases["!"+n.ngSwitchWhen]=r.cases["!"+n.ngSwitchWhen]||[],r.cases["!"+n.ngSwitchWhen].push({transclude:i,element:t})}}),Pa=kr({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(e,t,n,r,i){r.cases["?"]=r.cases["?"]||[],r.cases["?"].push({transclude:i,element:t})}}),Fa=kr({restrict:"EAC",link:function(e,t,n,i,o){if(!o)throw r("ngTransclude")("orphan","Illegal use of ngTransclude directive in the template! No parent directive that requires a transclusion found. Element: {0}",W(t));o(function(e){t.empty(),t.append(e)})}}),Ia=["$templateCache",function(e){return{restrict:"E",terminal:!0,compile:function(t,n){if("text/ng-template"==n.type){var r=n.id,i=t[0].text;e.put(r,i)}}}}],_a=r("ngOptions"),La=g({restrict:"A",terminal:!0}),ja=["$compile","$parse",function(e,r){var i=/^\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]+?))?$/,s={$setViewValue:h};return{restrict:"E",require:["select","?ngModel"],controller:["$element","$scope","$attrs",function(e,t,n){var r,i,o=this,a={},l=s;o.databound=n.ngModel,o.init=function(e,t,n){l=e,r=t,i=n},o.addOption=function(t,n){at(t,'"option value"'),a[t]=!0,l.$viewValue==t&&(e.val(t),i.parent()&&i.remove()),n&&n[0].hasAttribute("selected")&&(n[0].selected=!0)},o.removeOption=function(e){this.hasOption(e)&&(delete a[e],l.$viewValue===e&&this.renderUnknownOption(e))},o.renderUnknownOption=function(t){var n="? "+Rt(t)+" ?";i.val(n),e.prepend(i),e.val(n),i.prop("selected",!0)},o.hasOption=function(e){return a.hasOwnProperty(e)},t.$on("$destroy",function(){o.renderUnknownOption=h})}],link:function(s,l,u,c){function d(e,t,n,r){n.$render=function(){var e=n.$viewValue;r.hasOption(e)?(T.parent()&&T.remove(),t.val(e),""===e&&h.prop("selected",!0)):v(e)&&h?t.val(""):r.renderUnknownOption(e)},t.on("change",function(){e.$apply(function(){T.parent()&&T.remove(),n.$setViewValue(t.val())})})}function p(e,t,n){var r;n.$render=function(){var e=new Ht(n.$viewValue);o(t.find("option"),function(t){t.selected=y(e.get(t.value))})},e.$watch(function(){j(r,n.$viewValue)||(r=L(n.$viewValue),n.$render())}),t.on("change",function(){e.$apply(function(){var e=[];o(t.find("option"),function(t){t.selected&&e.push(t.value)}),n.$setViewValue(e)})})}function f(t,s,l){function u(e,n,r){return j[E]=r,D&&(j[D]=n),e(t,j)}function c(){t.$apply(function(){var e,n=P(t)||[];if($)e=[],o(s.val(),function(t){t=I?_[t]:t,e.push(d(t,n[t]))});else{var r=I?_[s.val()]:s.val();e=d(r,n[r])}l.$setViewValue(e),v()})}function d(e,t){if("?"===e)return n;if(""===e)return null;var r=O?O:M;return u(r,e,t)}function p(){var e,n=P(t);if(n&&ci(n)){e=new Array(n.length);for(var r=0,i=n.length;i>r;r++)e[r]=u(k,r,n[r]);return e}if(n){e={};for(var o in n)n.hasOwnProperty(o)&&(e[o]=u(k,o,n[o]))}return e}function f(e){var t;if($)if(I&&ci(e)){t=new Ht([]);for(var n=0;nE;E++)p=E,D&&(p=V[E],"$"===p.charAt(0))||(h=B[p],e=u(N,p,h)||"",(n=R[e])||(n=R[e]=[],H.push(e)),A=U(p,h),G=G||A,F=u(k,p,h),F=y(F)?F:"",z=I?I(t,j):D?V[E]:E,I&&(_[z]=p),n.push({id:z,label:F,selected:A}));for($||(w||null===q?R[""].unshift({id:"",label:"",selected:!G}):G||R[""].unshift({id:"?",label:"",selected:!0})),T=0,v=H.length;v>T;T++){for(e=H[T],n=R[e],L.length<=T?(i={element:S.clone().attr("label",e),label:n.label},c=[i],L.push(c),s.append(i.element)):(c=L[T],i=c[0],i.label!=e&&i.element.attr("label",i.label=e)),O=null,E=0,b=n.length;b>E;E++)r=n[E],(d=c[E+1])?(O=d.element,d.label!==r.label&&(g(W,d.label,!1),g(W,r.label,!0),O.text(d.label=r.label),O.prop("label",d.label)),d.id!==r.id&&O.val(d.id=r.id),O[0].selected!==r.selected&&(O.prop("selected",d.selected=r.selected),Jr&&O.prop("selected",d.selected))):(""===r.id&&w?M=w:(M=C.clone()).val(r.id).prop("selected",r.selected).attr("selected",r.selected).prop("label",r.label).text(r.label),c.push(d={element:M,label:r.label,id:r.id,selected:r.selected}),g(W,r.label,!0),O?O.after(M):i.element.append(M),O=M);for(E++;c.length>E;)r=c.pop(),g(W,r.label,!1),r.element.remove()}for(;L.length>T;){for(n=L.pop(),E=1;E0?m.addOption(t):0>e&&m.removeOption(t)})}var T;if(!(T=b.match(i)))throw _a("iexp","Expected expression in form of '_select_ (as _label_)? for (_key_,)?_value_ in _collection_' but got '{0}'. Element: {1}",b,W(s));var k=r(T[2]||T[1]),E=T[4]||T[6],A=/ as /.test(T[0])&&T[1],O=A?r(A):null,D=T[5],N=r(T[3]||""),M=r(T[2]?T[1]:E),P=r(T[7]),F=T[8],I=F?r(T[8]):null,_={},L=[[{element:s,label:""}]],j={};w&&(e(w)(t),w.removeClass("ng-scope"),w.remove()),s.empty(),s.on("change",c),l.$render=v,t.$watchCollection(P,h),t.$watchCollection(p,h),$&&t.$watchCollection(function(){return l.$modelValue},h)}if(c[1]){for(var h,m=c[0],g=c[1],$=u.multiple,b=u.ngOptions,w=!1,x=!1,C=Zr(t.createElement("option")),S=Zr(t.createElement("optgroup")),T=C.clone(),k=0,E=l.children(),A=E.length;A>k;k++)if(""===E[k].value){h=w=E.eq(k);break}m.init(g,w,T),$&&(g.$isEmpty=function(e){return!e||0===e.length}),b?f(s,l,g):$?p(s,l,g):d(s,l,g,m)}}}}],za=["$interpolate",function(e){var t={addOption:h,removeOption:h};return{restrict:"E",priority:100,compile:function(n,r){if(v(r.value)){var i=e(n.text(),!0);i||r.$set("value",n.text())}return function(e,n,r){var o="$selectController",a=n.parent(),s=a.data(o)||a.parent().data(o);s&&s.databound||(s=t),i?e.$watch(i,function(e,t){r.$set("value",e),t!==e&&s.removeOption(t),s.addOption(e,n)}):s.addOption(r.value,n),n.on("$destroy",function(){s.removeOption(r.value)})}}}}],Ra=g({restrict:"E",terminal:!1}),Ha=function(){return{restrict:"A",require:"?ngModel",link:function(e,t,n,r){r&&(n.required=!0,r.$validators.required=function(e,t){return!n.required||!r.$isEmpty(t)},n.$observe("required",function(){r.$validate()}))}}},qa=function(){return{restrict:"A",require:"?ngModel",link:function(e,t,i,o){if(o){var a,s=i.ngPattern||i.pattern;i.$observe("pattern",function(e){if(b(e)&&e.length>0&&(e=new RegExp("^"+e+"$")),e&&!e.test)throw r("ngPattern")("noregexp","Expected {0} to be a RegExp but was {1}. Element: {2}",s,e,W(t));a=e||n,o.$validate()}),o.$validators.pattern=function(e){return o.$isEmpty(e)||v(a)||a.test(e)}}}}},Ba=function(){return{restrict:"A",require:"?ngModel",link:function(e,t,n,r){if(r){var i=-1;n.$observe("maxlength",function(e){var t=p(e);i=isNaN(t)?-1:t,r.$validate()}),r.$validators.maxlength=function(e,t){return 0>i||r.$isEmpty(t)||t.length<=i}}}}},Va=function(){return{restrict:"A",require:"?ngModel",link:function(e,t,n,r){if(r){var i=0;n.$observe("minlength",function(e){i=p(e)||0,r.$validate()}),r.$validators.minlength=function(e,t){return r.$isEmpty(t)||t.length>=i}}}}};return e.angular.bootstrap?void console.log("WARNING: Tried to load angular more than once."):(rt(),ft(si),void Zr(t).ready(function(){J(t,Z)}))}(window,document),!window.angular.$$csp()&&window.angular.element(document).find("head").prepend(''),function(e,t,n){"use strict";function r(e){return null!=e&&""!==e&&"hasOwnProperty"!==e&&s.test("."+e)}function i(e,t){if(!r(t))throw a("badmember",'Dotted member path "@{0}" is invalid.',t);for(var i=t.split("."),o=0,s=i.length;s>o&&e!==n;o++){var l=i[o];e=null!==e?e[l]:n}return e}function o(e,n){n=n||{},t.forEach(n,function(e,t){delete n[t]});for(var r in e)!e.hasOwnProperty(r)||"$"===r.charAt(0)&&"$"===r.charAt(1)||(n[r]=e[r]);return n}var a=t.$$minErr("$resource"),s=/^(\.[a-zA-Z_$][0-9a-zA-Z_$]*)+$/;t.module("ngResource",["ng"]).provider("$resource",function(){var e=this;this.defaults={stripTrailingSlashes:!0,actions:{get:{method:"GET"},save:{method:"POST"},query:{method:"GET",isArray:!0},remove:{method:"DELETE"},"delete":{method:"DELETE"}}},this.$get=["$http","$q",function(r,s){function l(e){return u(e,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function u(e,t){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,t?"%20":"+")}function c(t,n){this.template=t,this.defaults=h({},e.defaults,n),this.urlParams={}}function d(l,u,v,y){function $(e,t){var n={};return t=h({},u,t),f(t,function(t,r){g(t)&&(t=t()),n[r]=t&&t.charAt&&"@"==t.charAt(0)?i(e,t.substr(1)):t}),n}function b(e){return e.resource}function w(e){o(e||{},this)}var x=new c(l,y);return v=h({},e.defaults.actions,v),w.prototype.toJSON=function(){var e=h({},this);return delete e.$promise,delete e.$resolved,e},f(v,function(e,i){var l=/^(POST|PUT|PATCH)$/i.test(e.method);w[i]=function(u,c,d,v){var y,C,S,T={};switch(arguments.length){case 4:S=v,C=d;case 3:case 2:if(!g(c)){T=u,y=c,C=d;break}if(g(u)){C=u,S=c;break}C=c,S=d;case 1:g(u)?C=u:l?y=u:T=u;break;case 0:break;default:throw a("badargs","Expected up to 4 arguments [params, data, success, error], got {0} arguments",arguments.length)}var k=this instanceof w,E=k?y:e.isArray?[]:new w(y),A={},O=e.interceptor&&e.interceptor.response||b,D=e.interceptor&&e.interceptor.responseError||n;f(e,function(e,t){"params"!=t&&"isArray"!=t&&"interceptor"!=t&&(A[t]=m(e))}),l&&(A.data=y),x.setUrlParams(A,h({},$(y,e.params||{}),T),e.url);var N=r(A).then(function(n){var r=n.data,s=E.$promise;if(r){if(t.isArray(r)!==!!e.isArray)throw a("badcfg","Error in resource configuration for action `{0}`. Expected response to contain an {1} but got an {2}",i,e.isArray?"array":"object",t.isArray(r)?"array":"object");e.isArray?(E.length=0,f(r,function(e){E.push("object"==typeof e?new w(e):e)})):(o(r,E),E.$promise=s)}return E.$resolved=!0,n.resource=E,n},function(e){return E.$resolved=!0,(S||p)(e),s.reject(e)});return N=N.then(function(e){var t=O(e);return(C||p)(t,e.headers),t},D),k?N:(E.$promise=N,E.$resolved=!1,E)},w.prototype["$"+i]=function(e,t,n){g(e)&&(n=t,t=e,e={});var r=w[i].call(this,e,this,t,n);return r.$promise||r}}),w.bind=function(e){return d(l,h({},u,e),v)},w}var p=t.noop,f=t.forEach,h=t.extend,m=t.copy,g=t.isFunction;return c.prototype={setUrlParams:function(e,n,r){var i,o,s=this,u=r||s.template,c=s.urlParams={};f(u.split(/\W/),function(e){if("hasOwnProperty"===e)throw a("badname","hasOwnProperty is not a valid parameter name.");!new RegExp("^\\d+$").test(e)&&e&&new RegExp("(^|[^\\\\]):"+e+"(\\W|$)").test(u)&&(c[e]=!0)}),u=u.replace(/\\:/g,":"),n=n||{},f(s.urlParams,function(e,r){i=n.hasOwnProperty(r)?n[r]:s.defaults[r],t.isDefined(i)&&null!==i?(o=l(i),u=u.replace(new RegExp(":"+r+"(\\W|$)","g"),function(e,t){return o+t})):u=u.replace(new RegExp("(/?):"+r+"(\\W|$)","g"),function(e,t,n){return"/"==n.charAt(0)?n:t+n})}),s.defaults.stripTrailingSlashes&&(u=u.replace(/\/+$/,"")||"/"),u=u.replace(/\/\.(?=\w+($|\?))/,"."),e.url=u.replace(/\/\\\./,"/."),f(n,function(t,n){s.urlParams[n]||(e.params=e.params||{},e.params[n]=t)})}},d}]})}(window,window.angular),function(e,t){"use strict";e.module("smart-table",[]).run(["$templateCache",function(e){e.put("template/smart-table/pagination.html",'')}]),e.module("smart-table").controller("stTableController",["$scope","$parse","$filter","$attrs",function(n,r,i,o){function a(e){return e?[].concat(e):[]}function s(){m=a(l(n)),v===!0&&y.pipe()}var l,u,c=o.stTable,d=r(c),p=d.assign,f=i("orderBy"),h=i("filter"),m=a(d(n)),g={sort:{},search:{},pagination:{start:0}},v=!0,y=this;o.stSafeSrc&&(l=r(o.stSafeSrc),n.$watch(function(){var e=l(n);return e?e.length:0},function(e){e!==m.length&&s()}),n.$watch(function(){return l(n)},function(e,t){e!==t&&s()})),this.sortBy=function(t,n){return g.sort.predicate=t,g.sort.reverse=n===!0,e.isFunction(t)?g.sort.functionName=t.name:delete g.sort.functionName,g.pagination.start=0,this.pipe()},this.search=function(t,n){var r=g.search.predicateObject||{},i=n?n:"$";return t=e.isString(t)?t.trim():t,r[i]=t,t||delete r[i],g.search.predicateObject=r,g.pagination.start=0,this.pipe()},this.pipe=function(){var e=g.pagination,r=g.search.predicateObject?h(m,g.search.predicateObject):m;g.sort.predicate&&(r=f(r,g.sort.predicate,g.sort.reverse)),e.number!==t&&(e.numberOfPages=r.length>0?Math.ceil(r.length/e.number):1,e.start=e.start>=r.length?(e.numberOfPages-1)*e.number:e.start,r=r.slice(e.start,e.start+parseInt(e.number))),p(n,r)},this.select=function(e,n){var r=m,i=r.indexOf(e);-1!==i&&("single"===n?(e.isSelected=e.isSelected!==!0,u&&(u.isSelected=!1),u=e.isSelected===!0?e:t):r[i].isSelected=!r[i].isSelected)},this.slice=function(e,t){return g.pagination.start=e,g.pagination.number=t,this.pipe()},this.tableState=function(){return g},this.setFilterFunction=function(e){h=i(e)},this.setSortFunction=function(e){f=i(e)},this.preventPipeOnWatch=function(){v=!1}}]).directive("stTable",function(){return{restrict:"A",controller:"stTableController",link:function(e,t,n,r){n.stSetFilter&&r.setFilterFunction(n.stSetFilter),n.stSetSort&&r.setSortFunction(n.stSetSort)}}}),e.module("smart-table").directive("stSearch",["$timeout",function(e){return{require:"^stTable",scope:{predicate:"=?stSearch"},link:function(t,n,r,i){var o=i,a=null,s=r.stDelay||400;t.$watch("predicate",function(e,t){e!==t&&(i.tableState().search={},o.search(n[0].value||"",e))}),t.$watch(function(){return i.tableState().search},function(e){var r=t.predicate||"$";e.predicateObject&&e.predicateObject[r]!==n[0].value&&(n[0].value=e.predicateObject[r]||"")},!0),n.bind("input",function(n){n=n.originalEvent||n,null!==a&&e.cancel(a),a=e(function(){o.search(n.target.value,t.predicate||""),a=null},s)})}}}]),e.module("smart-table").directive("stSelectRow",function(){return{restrict:"A",require:"^stTable",scope:{row:"=stSelectRow"},link:function(e,t,n,r){var i=n.stSelectMode||"single";t.bind("click",function(){e.$apply(function(){r.select(e.row,i)})}),e.$watch("row.isSelected",function(e){e===!0?t.addClass("st-selected"):t.removeClass("st-selected")})}}}),e.module("smart-table").directive("stSort",["$parse",function(n){return{restrict:"A",require:"^stTable",link:function(r,i,o,a){function s(){d++,u=e.isFunction(c(r))?c(r):o.stSort,d%3===0&&o.stSkipNatural===t?(d=0,a.tableState().sort={},a.tableState().pagination.start=0,a.pipe()):a.sortBy(u,d%2===0)}var l,u=o.stSort,c=n(u),d=0,p=o.stClassAscent||"st-sort-ascent",f=o.stClassDescent||"st-sort-descent",h=[p,f];o.stSortDefault&&(l=r.$eval(o.stSortDefault)!==t?r.$eval(o.stSortDefault):o.stSortDefault),i.bind("click",function(){u&&r.$apply(s)}),l&&(d="reverse"===o.stSortDefault?1:0,s()),r.$watch(function(){return a.tableState().sort},function(e){e.predicate!==u?(d=0,i.removeClass(p).removeClass(f)):(d=e.reverse===!0?2:1,i.removeClass(h[d%2]).addClass(h[d-1]))},!0)}}}]),e.module("smart-table").directive("stPagination",function(){return{restrict:"EA",require:"^stTable",scope:{stItemsByPage:"=?",stDisplayedPages:"=?",stPageChange:"&"},templateUrl:function(e,t){return t.stTemplate?t.stTemplate:"template/smart-table/pagination.html"},link:function(e,t,n,r){function i(){var t,n,i=r.tableState().pagination,o=1,a=e.currentPage;for(e.currentPage=Math.floor(i.start/i.number)+1,o=Math.max(o,e.currentPage-Math.abs(Math.floor(e.stDisplayedPages/2))),t=o+e.stDisplayedPages,t>i.numberOfPages&&(t=i.numberOfPages+1,o=Math.max(1,t-e.stDisplayedPages)),e.pages=[],e.numPages=i.numberOfPages,n=o;t>n;n++)e.pages.push(n);a!==e.currentPage&&e.stPageChange({newPage:e.currentPage})}e.stItemsByPage=e.stItemsByPage?+e.stItemsByPage:10,e.stDisplayedPages=e.stDisplayedPages?+e.stDisplayedPages:5,e.currentPage=1,e.pages=[],e.$watch(function(){return r.tableState().pagination},i,!0),e.$watch("stItemsByPage",function(t,n){t!==n&&e.selectPage(1)}),e.$watch("stDisplayedPages",i),e.selectPage=function(t){t>0&&t<=e.numPages&&r.slice((t-1)*e.stItemsByPage,e.stItemsByPage)},r.tableState().pagination.number||r.slice(0,e.stItemsByPage)}}}),e.module("smart-table").directive("stPipe",function(){return{require:"stTable",scope:{stPipe:"="},link:{pre:function(t,n,r,i){e.isFunction(t.stPipe)&&(i.preventPipeOnWatch(),i.pipe=function(){return t.stPipe(i.tableState(),i)})},post:function(e,t,n,r){r.pipe()}}}})}(angular),angular.module("gettext",[]),angular.module("gettext").constant("gettext",function(e){return e}),angular.module("gettext").factory("gettextCatalog",["gettextPlurals","$http","$cacheFactory","$interpolate","$rootScope",function(e,t,n,r,i){function o(){i.$broadcast("gettextLanguageChanged")}var a,s=function(e){return a.debug&&a.currentLanguage!==a.baseLanguage?a.debugPrefix+e:e},l=function(e){return a.showTranslatedMarkers?a.translatedMarkerPrefix+e+a.translatedMarkerSuffix:e};return a={debug:!1,debugPrefix:"[MISSING]: ",showTranslatedMarkers:!1,translatedMarkerPrefix:"[",translatedMarkerSuffix:"]",strings:{},baseLanguage:"en",currentLanguage:"en",cache:n("strings"),setCurrentLanguage:function(e){this.currentLanguage=e,o()},setStrings:function(e,t){this.strings[e]||(this.strings[e]={});for(var n in t){var r=t[n];this.strings[e][n]="string"==typeof r?[r]:r}o()},getStringForm:function(e,t){var n=this.strings[this.currentLanguage]||{},r=n[e]||[];return r[t]},getString:function(e,t){return e=this.getStringForm(e,0)||s(e),e=t?r(e)(t):e,l(e)},getPlural:function(t,n,i,o){var a=e(this.currentLanguage,t);return n=this.getStringForm(n,a)||s(1===t?n:i),n=o?r(n)(o):n,l(n)},loadRemote:function(e){return t({method:"GET",url:e,cache:a.cache}).success(function(e){for(var t in e)a.setStrings(t,e[t])})}}}]),angular.module("gettext").directive("translate",["gettextCatalog","$parse","$animate","$compile",function(e,t,n,r){function i(e,t,n){if(!e)throw new Error("You should add a "+t+" attribute whenever you add a "+n+" attribute.")}var o=function(){return String.prototype.trim?function(e){return"string"==typeof e?e.trim():e}:function(e){return"string"==typeof e?e.replace(/^\s*/,"").replace(/\s*$/,""):e}}();return{restrict:"A",terminal:!0,compile:function(a,s){i(!s.translatePlural||s.translateN,"translate-n","translate-plural"),i(!s.translateN||s.translatePlural,"translate-plural","translate-n");var l=o(a.html()),u=s.translatePlural;return{post:function(i,o,a){function s(){var t;u?(i=d||(d=i.$new()),i.$count=c(i),t=e.getPlural(i.$count,l,u)):t=e.getString(l);var a=angular.element(""+t+"");r(a.contents())(i);var s=o.contents(),p=a.contents();n.enter(p,o),n.leave(s)}var c=t(a.translateN),d=null;a.translateN&&i.$watch(a.translateN,s),i.$on("gettextLanguageChanged",s),s()}}}}}]),angular.module("gettext").filter("translate",["gettextCatalog",function(e){function t(t){return e.getString(t)}return t.$stateful=!0,t}]),angular.module("gettext").factory("gettextPlurals",function(){return function(e,t){switch(e){case"ay":case"bo":case"cgg":case"dz":case"fa":case"id":case"ja":case"jbo":case"ka":case"kk":case"km":case"ko":case"ky":case"lo":case"ms":case"my":case"sah":case"su":case"th":case"tt":case"ug":case"vi":case"wo":case"zh":return 0;case"is":return t%10!=1||t%100==11?1:0;case"jv":return 0!=t?1:0;case"mk":return 1==t||t%10==1?0:1;case"ach":case"ak":case"am":case"arn":case"br":case"fil":case"fr":case"gun":case"ln":case"mfe":case"mg":case"mi":case"oc":case"pt_BR":case"tg":case"ti":case"tr":case"uz":case"wa":case"zh":return t>1?1:0;case"lv":return t%10==1&&t%100!=11?0:0!=t?1:2;case"lt":return t%10==1&&t%100!=11?0:t%10>=2&&(10>t%100||t%100>=20)?1:2;case"be":case"bs":case"hr":case"ru":case"sr":case"uk":return t%10==1&&t%100!=11?0:t%10>=2&&4>=t%10&&(10>t%100||t%100>=20)?1:2;case"mnk":return 0==t?0:1==t?1:2;case"ro":return 1==t?0:0==t||t%100>0&&20>t%100?1:2;case"pl":return 1==t?0:t%10>=2&&4>=t%10&&(10>t%100||t%100>=20)?1:2;case"cs":case"sk":return 1==t?0:t>=2&&4>=t?1:2;case"sl":return t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0;case"mt":return 1==t?0:0==t||t%100>1&&11>t%100?1:t%100>10&&20>t%100?2:3;case"gd":return 1==t||11==t?0:2==t||12==t?1:t>2&&20>t?2:3;case"cy":return 1==t?0:2==t?1:8!=t&&11!=t?2:3;case"kw":return 1==t?0:2==t?1:3==t?2:3;case"ga":return 1==t?0:2==t?1:7>t?2:11>t?3:4;case"ar":return 0==t?0:1==t?1:2==t?2:t%100>=3&&10>=t%100?3:t%100>=11?4:5;default:return 1!=t?1:0}}}),function(e,t){"function"==typeof define&&define.amd?define(["jquery","sifter","microplugin"],t):"object"==typeof exports?module.exports=t(require("jquery"),require("sifter"),require("microplugin")):e.Selectize=t(e.jQuery,e.Sifter,e.MicroPlugin)}(this,function(e,t,n){"use strict";var r=function(e,t){if("string"!=typeof t||t.length){var n="string"==typeof t?new RegExp(t,"i"):t,r=function(e){var t=0;if(3===e.nodeType){var i=e.data.search(n);if(i>=0&&e.data.length>0){var o=e.data.match(n),a=document.createElement("span");a.className="highlight";var s=e.splitText(i),l=(s.splitText(o[0].length),s.cloneNode(!0));a.appendChild(l),s.parentNode.replaceChild(a,s),t=1}}else if(1===e.nodeType&&e.childNodes&&!/(script|style)/i.test(e.tagName))for(var u=0;u/g,">").replace(/"/g,""")},E=function(e){return(e+"").replace(/\$/g,"$$$$")},A={};A.before=function(e,t,n){var r=e[t];e[t]=function(){return n.apply(e,arguments),r.apply(e,arguments)}},A.after=function(e,t,n){var r=e[t];e[t]=function(){var t=r.apply(e,arguments);return n.apply(e,arguments),t}};var O=function(e){var t=!1;return function(){t||(t=!0,e.apply(this,arguments))}},D=function(e,t){var n;return function(){var r=this,i=arguments;window.clearTimeout(n),n=window.setTimeout(function(){e.apply(r,i)},t)}},N=function(e,t,n){var r,i=e.trigger,o={};e.trigger=function(){var n=arguments[0];return-1===t.indexOf(n)?i.apply(e,arguments):void(o[n]=arguments)},n.apply(e,[]),e.trigger=i;for(r in o)o.hasOwnProperty(r)&&i.apply(e,o[r])},M=function(e,t,n,r){e.on(t,n,function(t){for(var n=t.target;n&&n.parentNode!==e[0];)n=n.parentNode;return t.currentTarget=n,r.apply(this,[t])})},P=function(e){var t={};if("selectionStart"in e)t.start=e.selectionStart,t.length=e.selectionEnd-t.start;else if(document.selection){e.focus();var n=document.selection.createRange(),r=document.selection.createRange().text.length;n.moveStart("character",-e.value.length),t.start=n.text.length-r,t.length=r}return t},F=function(e,t,n){var r,i,o={};if(n)for(r=0,i=n.length;i>r;r++)o[n[r]]=e.css(n[r]);else o=e.css();t.css(o)},I=function(t,n){if(!t)return 0;var r=e("").css({position:"absolute",top:-99999,left:-99999,width:"auto",padding:0,whiteSpace:"pre"}).text(t).appendTo("body");F(n,r,["letterSpacing","fontSize","fontFamily","fontWeight","textTransform"]);var i=r.width();return r.remove(),i},_=function(e){var t=null,n=function(n,r){var i,o,a,s,l,u,c,d;n=n||window.event||{},r=r||{},n.metaKey||n.altKey||(r.force||e.data("grow")!==!1)&&(i=e.val(),n.type&&"keydown"===n.type.toLowerCase()&&(o=n.keyCode,a=o>=97&&122>=o||o>=65&&90>=o||o>=48&&57>=o||32===o,o===g||o===m?(d=P(e[0]),d.length?i=i.substring(0,d.start)+i.substring(d.start+d.length):o===m&&d.start?i=i.substring(0,d.start-1)+i.substring(d.start+1):o===g&&"undefined"!=typeof d.start&&(i=i.substring(0,d.start)+i.substring(d.start+1))):a&&(u=n.shiftKey,c=String.fromCharCode(n.keyCode),c=u?c.toUpperCase():c.toLowerCase(),i+=c)),s=e.attr("placeholder"),!i&&s&&(i=s),l=I(i,e)+4,l!==t&&(t=l,e.width(l),e.triggerHandler("resize"))) +};e.on("keydown keyup update blur",n),n()},L=function(n,r){var i,o,a,s,l=this;s=n[0],s.selectize=l;var u=window.getComputedStyle&&window.getComputedStyle(s,null);if(a=u?u.getPropertyValue("direction"):s.currentStyle&&s.currentStyle.direction,a=a||n.parents("[dir]:first").attr("dir")||"",e.extend(l,{order:0,settings:r,$input:n,tabIndex:n.attr("tabindex")||"",tagType:"select"===s.tagName.toLowerCase()?w:x,rtl:/rtl/i.test(a),eventNS:".selectize"+ ++L.count,highlightedValue:null,isOpen:!1,isDisabled:!1,isRequired:n.is("[required]"),isInvalid:!1,isLocked:!1,isFocused:!1,isInputHidden:!1,isSetup:!1,isShiftDown:!1,isCmdDown:!1,isCtrlDown:!1,ignoreFocus:!1,ignoreBlur:!1,ignoreHover:!1,hasOptions:!1,currentResults:null,lastValue:"",caretPos:0,loading:0,loadedSearches:{},$activeOption:null,$activeItems:[],optgroups:{},options:{},userOptions:{},items:[],renderCache:{},onSearchChange:null===r.loadThrottle?l.onSearchChange:D(l.onSearchChange,r.loadThrottle)}),l.sifter=new t(this.options,{diacritics:r.diacritics}),l.settings.options){for(i=0,o=l.settings.options.length;o>i;i++)l.registerOption(l.settings.options[i]);delete l.settings.options}if(l.settings.optgroups){for(i=0,o=l.settings.optgroups.length;o>i;i++)l.registerOptionGroup(l.settings.optgroups[i]);delete l.settings.optgroups}l.settings.mode=l.settings.mode||(1===l.settings.maxItems?"single":"multi"),"boolean"!=typeof l.settings.hideSelected&&(l.settings.hideSelected="multi"===l.settings.mode),l.initializePlugins(l.settings.plugins),l.setupCallbacks(),l.setupTemplates(),l.setup()};return i.mixin(L),n.mixin(L),e.extend(L.prototype,{setup:function(){var t,n,r,i,a,s,l,u,c,d=this,p=d.settings,f=d.eventNS,h=e(window),m=e(document),g=d.$input;if(l=d.settings.mode,u=g.attr("class")||"",t=e("
").addClass(p.wrapperClass).addClass(u).addClass(l),n=e("
").addClass(p.inputClass).addClass("items").appendTo(t),r=e('').appendTo(n).attr("tabindex",g.is(":disabled")?"-1":d.tabIndex),s=e(p.dropdownParent||t),i=e("
").addClass(p.dropdownClass).addClass(l).hide().appendTo(s),a=e("
").addClass(p.dropdownContentClass).appendTo(i),d.settings.copyClassesToDropdown&&i.addClass(u),t.css({width:g[0].style.width}),d.plugins.names.length&&(c="plugin-"+d.plugins.names.join(" plugin-"),t.addClass(c),i.addClass(c)),(null===p.maxItems||p.maxItems>1)&&d.tagType===w&&g.attr("multiple","multiple"),d.settings.placeholder&&r.attr("placeholder",p.placeholder),!d.settings.splitOn&&d.settings.delimiter){var b=d.settings.delimiter.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");d.settings.splitOn=new RegExp("\\s*"+b+"+\\s*")}g.attr("autocorrect")&&r.attr("autocorrect",g.attr("autocorrect")),g.attr("autocapitalize")&&r.attr("autocapitalize",g.attr("autocapitalize")),d.$wrapper=t,d.$control=n,d.$control_input=r,d.$dropdown=i,d.$dropdown_content=a,i.on("mouseenter","[data-selectable]",function(){return d.onOptionHover.apply(d,arguments)}),i.on("mousedown click","[data-selectable]",function(){return d.onOptionSelect.apply(d,arguments)}),M(n,"mousedown","*:not(input)",function(){return d.onItemSelect.apply(d,arguments)}),_(r),n.on({mousedown:function(){return d.onMouseDown.apply(d,arguments)},click:function(){return d.onClick.apply(d,arguments)}}),r.on({mousedown:function(e){e.stopPropagation()},keydown:function(){return d.onKeyDown.apply(d,arguments)},keyup:function(){return d.onKeyUp.apply(d,arguments)},keypress:function(){return d.onKeyPress.apply(d,arguments)},resize:function(){d.positionDropdown.apply(d,[])},blur:function(){return d.onBlur.apply(d,arguments)},focus:function(){return d.ignoreBlur=!1,d.onFocus.apply(d,arguments)},paste:function(){return d.onPaste.apply(d,arguments)}}),m.on("keydown"+f,function(e){d.isCmdDown=e[o?"metaKey":"ctrlKey"],d.isCtrlDown=e[o?"altKey":"ctrlKey"],d.isShiftDown=e.shiftKey}),m.on("keyup"+f,function(e){e.keyCode===$&&(d.isCtrlDown=!1),e.keyCode===v&&(d.isShiftDown=!1),e.keyCode===y&&(d.isCmdDown=!1)}),m.on("mousedown"+f,function(e){if(d.isFocused){if(e.target===d.$dropdown[0]||e.target.parentNode===d.$dropdown[0])return!1;d.$control.has(e.target).length||e.target===d.$control[0]||d.blur(e.target)}}),h.on(["scroll"+f,"resize"+f].join(" "),function(){d.isOpen&&d.positionDropdown.apply(d,arguments)}),h.on("mousemove"+f,function(){d.ignoreHover=!1}),this.revertSettings={$children:g.children().detach(),tabindex:g.attr("tabindex")},g.attr("tabindex",-1).hide().after(d.$wrapper),e.isArray(p.items)&&(d.setValue(p.items),delete p.items),C&&g.on("invalid"+f,function(e){e.preventDefault(),d.isInvalid=!0,d.refreshState()}),d.updateOriginalInput(),d.refreshItems(),d.refreshState(),d.updatePlaceholder(),d.isSetup=!0,g.is(":disabled")&&d.disable(),d.on("change",this.onChange),g.data("selectize",d),g.addClass("selectized"),d.trigger("initialize"),p.preload===!0&&d.onSearchChange("")},setupTemplates:function(){var t=this,n=t.settings.labelField,r=t.settings.optgroupLabelField,i={optgroup:function(e){return'
'+e.html+"
"},optgroup_header:function(e,t){return'
'+t(e[r])+"
"},option:function(e,t){return'
'+t(e[n])+"
"},item:function(e,t){return'
'+t(e[n])+"
"},option_create:function(e,t){return'
Add '+t(e.input)+"
"}};t.settings.render=e.extend({},i,t.settings.render)},setupCallbacks:function(){var e,t,n={initialize:"onInitialize",change:"onChange",item_add:"onItemAdd",item_remove:"onItemRemove",clear:"onClear",option_add:"onOptionAdd",option_remove:"onOptionRemove",option_clear:"onOptionClear",optgroup_add:"onOptionGroupAdd",optgroup_remove:"onOptionGroupRemove",optgroup_clear:"onOptionGroupClear",dropdown_open:"onDropdownOpen",dropdown_close:"onDropdownClose",type:"onType",load:"onLoad",focus:"onFocus",blur:"onBlur"};for(e in n)n.hasOwnProperty(e)&&(t=this.settings[n[e]],t&&this.on(e,t))},onClick:function(e){var t=this;t.isFocused||(t.focus(),e.preventDefault())},onMouseDown:function(t){{var n=this,r=t.isDefaultPrevented();e(t.target)}if(n.isFocused){if(t.target!==n.$control_input[0])return"single"===n.settings.mode?n.isOpen?n.close():n.open():r||n.setActiveItem(null),!1}else r||window.setTimeout(function(){n.focus()},0)},onChange:function(){this.$input.trigger("change")},onPaste:function(t){var n=this;n.isFull()||n.isInputHidden||n.isLocked?t.preventDefault():n.settings.splitOn&&setTimeout(function(){for(var t=e.trim(n.$control_input.val()||"").split(n.settings.splitOn),r=0,i=t.length;i>r;r++)n.createItem(t[r])},0)},onKeyPress:function(e){if(this.isLocked)return e&&e.preventDefault();var t=String.fromCharCode(e.keyCode||e.which);return this.settings.create&&"multi"===this.settings.mode&&t===this.settings.delimiter?(this.createItem(),e.preventDefault(),!1):void 0},onKeyDown:function(e){var t=(e.target===this.$control_input[0],this);if(t.isLocked)return void(e.keyCode!==b&&e.preventDefault());switch(e.keyCode){case a:if(t.isCmdDown)return void t.selectAll();break;case l:return void(t.isOpen&&(e.preventDefault(),e.stopPropagation(),t.close()));case h:if(!e.ctrlKey||e.altKey)break;case f:if(!t.isOpen&&t.hasOptions)t.open();else if(t.$activeOption){t.ignoreHover=!0;var n=t.getAdjacentOption(t.$activeOption,1);n.length&&t.setActiveOption(n,!0,!0)}return void e.preventDefault();case d:if(!e.ctrlKey||e.altKey)break;case c:if(t.$activeOption){t.ignoreHover=!0;var r=t.getAdjacentOption(t.$activeOption,-1);r.length&&t.setActiveOption(r,!0,!0)}return void e.preventDefault();case s:return void(t.isOpen&&t.$activeOption&&(t.onOptionSelect({currentTarget:t.$activeOption}),e.preventDefault()));case u:return void t.advanceSelection(-1,e);case p:return void t.advanceSelection(1,e);case b:return t.settings.selectOnTab&&t.isOpen&&t.$activeOption&&(t.onOptionSelect({currentTarget:t.$activeOption}),t.isFull()||e.preventDefault()),void(t.settings.create&&t.createItem()&&e.preventDefault());case m:case g:return void t.deleteSelection(e)}return!t.isFull()&&!t.isInputHidden||(o?e.metaKey:e.ctrlKey)?void 0:void e.preventDefault()},onKeyUp:function(e){var t=this;if(t.isLocked)return e&&e.preventDefault();var n=t.$control_input.val()||"";t.lastValue!==n&&(t.lastValue=n,t.onSearchChange(n),t.refreshOptions(),t.trigger("type",n))},onSearchChange:function(e){var t=this,n=t.settings.load;n&&(t.loadedSearches.hasOwnProperty(e)||(t.loadedSearches[e]=!0,t.load(function(r){n.apply(t,[e,r])})))},onFocus:function(e){var t=this,n=t.isFocused;return t.isDisabled?(t.blur(),e&&e.preventDefault(),!1):void(t.ignoreFocus||(t.isFocused=!0,"focus"===t.settings.preload&&t.onSearchChange(""),n||t.trigger("focus"),t.$activeItems.length||(t.showInput(),t.setActiveItem(null),t.refreshOptions(!!t.settings.openOnFocus)),t.refreshState()))},onBlur:function(e,t){var n=this;if(n.isFocused&&(n.isFocused=!1,!n.ignoreFocus)){if(!n.ignoreBlur&&document.activeElement===n.$dropdown_content[0])return n.ignoreBlur=!0,void n.onFocus(e);var r=function(){n.close(),n.setTextboxValue(""),n.setActiveItem(null),n.setActiveOption(null),n.setCaret(n.items.length),n.refreshState(),(t||document.body).focus(),n.ignoreFocus=!1,n.trigger("blur")};n.ignoreFocus=!0,n.settings.create&&n.settings.createOnBlur?n.createItem(null,!1,r):r()}},onOptionHover:function(e){this.ignoreHover||this.setActiveOption(e.currentTarget,!1)},onOptionSelect:function(t){var n,r,i=this;t.preventDefault&&(t.preventDefault(),t.stopPropagation()),r=e(t.currentTarget),r.hasClass("create")?i.createItem(null,function(){i.settings.closeAfterSelect&&i.close()}):(n=r.attr("data-value"),"undefined"!=typeof n&&(i.lastQuery=null,i.setTextboxValue(""),i.addItem(n),i.settings.closeAfterSelect?i.close():!i.settings.hideSelected&&t.type&&/mouse/.test(t.type)&&i.setActiveOption(i.getOption(n))))},onItemSelect:function(e){var t=this;t.isLocked||"multi"===t.settings.mode&&(e.preventDefault(),t.setActiveItem(e.currentTarget,e))},load:function(e){var t=this,n=t.$wrapper.addClass(t.settings.loadingClass);t.loading++,e.apply(t,[function(e){t.loading=Math.max(t.loading-1,0),e&&e.length&&(t.addOption(e),t.refreshOptions(t.isFocused&&!t.isInputHidden)),t.loading||n.removeClass(t.settings.loadingClass),t.trigger("load",e)}])},setTextboxValue:function(e){var t=this.$control_input,n=t.val()!==e;n&&(t.val(e).triggerHandler("update"),this.lastValue=e)},getValue:function(){return this.tagType===w&&this.$input.attr("multiple")?this.items:this.items.join(this.settings.delimiter)},setValue:function(e,t){var n=t?[]:["change"];N(this,n,function(){this.clear(),this.addItems(e,t)})},setActiveItem:function(t,n){var r,i,o,a,s,l,u,c,d=this;if("single"!==d.settings.mode){if(t=e(t),!t.length)return e(d.$activeItems).removeClass("active"),d.$activeItems=[],void(d.isFocused&&d.showInput());if(r=n&&n.type.toLowerCase(),"mousedown"===r&&d.isShiftDown&&d.$activeItems.length){for(c=d.$control.children(".active:last"),a=Array.prototype.indexOf.apply(d.$control[0].childNodes,[c[0]]),s=Array.prototype.indexOf.apply(d.$control[0].childNodes,[t[0]]),a>s&&(u=a,a=s,s=u),i=a;s>=i;i++)l=d.$control[0].childNodes[i],-1===d.$activeItems.indexOf(l)&&(e(l).addClass("active"),d.$activeItems.push(l));n.preventDefault()}else"mousedown"===r&&d.isCtrlDown||"keydown"===r&&this.isShiftDown?t.hasClass("active")?(o=d.$activeItems.indexOf(t[0]),d.$activeItems.splice(o,1),t.removeClass("active")):d.$activeItems.push(t.addClass("active")[0]):(e(d.$activeItems).removeClass("active"),d.$activeItems=[t.addClass("active")[0]]);d.hideInput(),this.isFocused||d.focus()}},setActiveOption:function(t,n,r){var i,o,a,s,l,u=this;u.$activeOption&&u.$activeOption.removeClass("active"),u.$activeOption=null,t=e(t),t.length&&(u.$activeOption=t.addClass("active"),(n||!S(n))&&(i=u.$dropdown_content.height(),o=u.$activeOption.outerHeight(!0),n=u.$dropdown_content.scrollTop()||0,a=u.$activeOption.offset().top-u.$dropdown_content.offset().top+n,s=a,l=a-i+o,a+o>i+n?u.$dropdown_content.stop().animate({scrollTop:l},r?u.settings.scrollDuration:0):n>a&&u.$dropdown_content.stop().animate({scrollTop:s},r?u.settings.scrollDuration:0)))},selectAll:function(){var e=this;"single"!==e.settings.mode&&(e.$activeItems=Array.prototype.slice.apply(e.$control.children(":not(input)").addClass("active")),e.$activeItems.length&&(e.hideInput(),e.close()),e.focus())},hideInput:function(){var e=this;e.setTextboxValue(""),e.$control_input.css({opacity:0,position:"absolute",left:e.rtl?1e4:-1e4}),e.isInputHidden=!0},showInput:function(){this.$control_input.css({opacity:1,position:"relative",left:0}),this.isInputHidden=!1},focus:function(){var e=this;e.isDisabled||(e.ignoreFocus=!0,e.$control_input[0].focus(),window.setTimeout(function(){e.ignoreFocus=!1,e.onFocus()},0))},blur:function(e){this.$control_input[0].blur(),this.onBlur(null,e)},getScoreFunction:function(e){return this.sifter.getScoreFunction(e,this.getSearchOptions())},getSearchOptions:function(){var e=this.settings,t=e.sortField;return"string"==typeof t&&(t=[{field:t}]),{fields:e.searchField,conjunction:e.searchConjunction,sort:t}},search:function(t){var n,r,i,o=this,a=o.settings,s=this.getSearchOptions();if(a.score&&(i=o.settings.score.apply(this,[t]),"function"!=typeof i))throw new Error('Selectize "score" setting must be a function that returns a function');if(t!==o.lastQuery?(o.lastQuery=t,r=o.sifter.search(t,e.extend(s,{score:i})),o.currentResults=r):r=e.extend(!0,{},o.currentResults),a.hideSelected)for(n=r.items.length-1;n>=0;n--)-1!==o.items.indexOf(T(r.items[n].id))&&r.items.splice(n,1);return r},refreshOptions:function(t){var n,i,o,a,s,l,u,c,d,p,f,h,m,g,v,y;"undefined"==typeof t&&(t=!0);var $=this,b=e.trim($.$control_input.val()),w=$.search(b),x=$.$dropdown_content,C=$.$activeOption&&T($.$activeOption.attr("data-value"));for(a=w.items.length,"number"==typeof $.settings.maxOptions&&(a=Math.min(a,$.settings.maxOptions)),s={},l=[],n=0;a>n;n++)for(u=$.options[w.items[n].id],c=$.render("option",u),d=u[$.settings.optgroupField]||"",p=e.isArray(d)?d:[d],i=0,o=p&&p.length;o>i;i++)d=p[i],$.optgroups.hasOwnProperty(d)||(d=""),s.hasOwnProperty(d)||(s[d]=[],l.push(d)),s[d].push(c);for(this.settings.lockOptgroupOrder&&l.sort(function(e,t){var n=$.optgroups[e].$order||0,r=$.optgroups[t].$order||0;return n-r}),f=[],n=0,a=l.length;a>n;n++)d=l[n],$.optgroups.hasOwnProperty(d)&&s[d].length?(h=$.render("optgroup_header",$.optgroups[d])||"",h+=s[d].join(""),f.push($.render("optgroup",e.extend({},$.optgroups[d],{html:h})))):f.push(s[d].join(""));if(x.html(f.join("")),$.settings.highlight&&w.query.length&&w.tokens.length)for(n=0,a=w.tokens.length;a>n;n++)r(x,w.tokens[n].regex);if(!$.settings.hideSelected)for(n=0,a=$.items.length;a>n;n++)$.getOption($.items[n]).addClass("selected");m=$.canCreate(b),m&&(x.prepend($.render("option_create",{input:b})),y=e(x[0].childNodes[0])),$.hasOptions=w.items.length>0||m,$.hasOptions?(w.items.length>0?(v=C&&$.getOption(C),v&&v.length?g=v:"single"===$.settings.mode&&$.items.length&&(g=$.getOption($.items[0])),g&&g.length||(g=y&&!$.settings.addPrecedence?$.getAdjacentOption(y,1):x.find("[data-selectable]:first"))):g=y,$.setActiveOption(g),t&&!$.isOpen&&$.open()):($.setActiveOption(null),t&&$.isOpen&&$.close())},addOption:function(t){var n,r,i,o=this;if(e.isArray(t))for(n=0,r=t.length;r>n;n++)o.addOption(t[n]);else(i=o.registerOption(t))&&(o.userOptions[i]=!0,o.lastQuery=null,o.trigger("option_add",i,t))},registerOption:function(e){var t=T(e[this.settings.valueField]);return!t||this.options.hasOwnProperty(t)?!1:(e.$order=e.$order||++this.order,this.options[t]=e,t)},registerOptionGroup:function(e){var t=T(e[this.settings.optgroupValueField]);return t?(e.$order=e.$order||++this.order,this.optgroups[t]=e,t):!1},addOptionGroup:function(e,t){t[this.settings.optgroupValueField]=e,(e=this.registerOptionGroup(t))&&this.trigger("optgroup_add",e,t)},removeOptionGroup:function(e){this.optgroups.hasOwnProperty(e)&&(delete this.optgroups[e],this.renderCache={},this.trigger("optgroup_remove",e))},clearOptionGroups:function(){this.optgroups={},this.renderCache={},this.trigger("optgroup_clear")},updateOption:function(t,n){var r,i,o,a,s,l,u,c=this;if(t=T(t),o=T(n[c.settings.valueField]),null!==t&&c.options.hasOwnProperty(t)){if("string"!=typeof o)throw new Error("Value must be set in option data");u=c.options[t].$order,o!==t&&(delete c.options[t],a=c.items.indexOf(t),-1!==a&&c.items.splice(a,1,o)),n.$order=n.$order||u,c.options[o]=n,s=c.renderCache.item,l=c.renderCache.option,s&&(delete s[t],delete s[o]),l&&(delete l[t],delete l[o]),-1!==c.items.indexOf(o)&&(r=c.getItem(t),i=e(c.render("item",n)),r.hasClass("active")&&i.addClass("active"),r.replaceWith(i)),c.lastQuery=null,c.isOpen&&c.refreshOptions(!1)}},removeOption:function(e,t){var n=this;e=T(e);var r=n.renderCache.item,i=n.renderCache.option;r&&delete r[e],i&&delete i[e],delete n.userOptions[e],delete n.options[e],n.lastQuery=null,n.trigger("option_remove",e),n.removeItem(e,t)},clearOptions:function(){var e=this;e.loadedSearches={},e.userOptions={},e.renderCache={},e.options=e.sifter.items={},e.lastQuery=null,e.trigger("option_clear"),e.clear()},getOption:function(e){return this.getElementWithValue(e,this.$dropdown_content.find("[data-selectable]"))},getAdjacentOption:function(t,n){var r=this.$dropdown.find("[data-selectable]"),i=r.index(t)+n;return i>=0&&ir;r++)if(n[r].getAttribute("data-value")===t)return e(n[r]);return e()},getItem:function(e){return this.getElementWithValue(e,this.$control.children())},addItems:function(t,n){for(var r=e.isArray(t)?t:[t],i=0,o=r.length;o>i;i++)this.isPending=o-1>i,this.addItem(r[i],n)},addItem:function(t,n){var r=n?[]:["change"];N(this,r,function(){var r,i,o,a,s,l=this,u=l.settings.mode;return t=T(t),-1!==l.items.indexOf(t)?void("single"===u&&l.close()):void(l.options.hasOwnProperty(t)&&("single"===u&&l.clear(),"multi"===u&&l.isFull()||(r=e(l.render("item",l.options[t])),s=l.isFull(),l.items.splice(l.caretPos,0,t),l.insertAtCaret(r),(!l.isPending||!s&&l.isFull())&&l.refreshState(),l.isSetup&&(o=l.$dropdown_content.find("[data-selectable]"),l.isPending||(i=l.getOption(t),a=l.getAdjacentOption(i,1).attr("data-value"),l.refreshOptions(l.isFocused&&"single"!==u),a&&l.setActiveOption(l.getOption(a))),!o.length||l.isFull()?l.close():l.positionDropdown(),l.updatePlaceholder(),l.trigger("item_add",t,r),l.updateOriginalInput({silent:n})))))})},removeItem:function(e,t){var n,r,i,o=this;n="object"==typeof e?e:o.getItem(e),e=T(n.attr("data-value")),r=o.items.indexOf(e),-1!==r&&(n.remove(),n.hasClass("active")&&(i=o.$activeItems.indexOf(n[0]),o.$activeItems.splice(i,1)),o.items.splice(r,1),o.lastQuery=null,!o.settings.persist&&o.userOptions.hasOwnProperty(e)&&o.removeOption(e,t),r0),t.$control_input.data("grow",!n&&!r)},isFull:function(){return null!==this.settings.maxItems&&this.items.length>=this.settings.maxItems},updateOriginalInput:function(e){var t,n,r,i,o=this;if(e=e||{},o.tagType===w){for(r=[],t=0,n=o.items.length;n>t;t++)i=o.options[o.items[t]][o.settings.labelField]||"",r.push('");r.length||this.$input.attr("multiple")||r.push(''),o.$input.html(r.join(""))}else o.$input.val(o.getValue()),o.$input.attr("value",o.$input.val());o.isSetup&&(e.silent||o.trigger("change",o.$input.val()))},updatePlaceholder:function(){if(this.settings.placeholder){var e=this.$control_input;this.items.length?e.removeAttr("placeholder"):e.attr("placeholder",this.settings.placeholder),e.triggerHandler("update",{force:!0})}},open:function(){var e=this;e.isLocked||e.isOpen||"multi"===e.settings.mode&&e.isFull()||(e.focus(),e.isOpen=!0,e.refreshState(),e.$dropdown.css({visibility:"hidden",display:"block"}),e.positionDropdown(),e.$dropdown.css({visibility:"visible"}),e.trigger("dropdown_open",e.$dropdown))},close:function(){var e=this,t=e.isOpen;"single"===e.settings.mode&&e.items.length&&e.hideInput(),e.isOpen=!1,e.$dropdown.hide(),e.setActiveOption(null),e.refreshState(),t&&e.trigger("dropdown_close",e.$dropdown)},positionDropdown:function(){var e=this.$control,t="body"===this.settings.dropdownParent?e.offset():e.position();t.top+=e.outerHeight(!0),this.$dropdown.css({width:e.outerWidth(),top:t.top,left:t.left})},clear:function(e){var t=this;t.items.length&&(t.$control.children(":not(input)").remove(),t.items=[],t.lastQuery=null,t.setCaret(0),t.setActiveItem(null),t.updatePlaceholder(),t.updateOriginalInput({silent:e}),t.refreshState(),t.showInput(),t.trigger("clear"))},insertAtCaret:function(t){var n=Math.min(this.caretPos,this.items.length);0===n?this.$control.prepend(t):e(this.$control[0].childNodes[n]).before(t),this.setCaret(n+1)},deleteSelection:function(t){var n,r,i,o,a,s,l,u,c,d=this;if(i=t&&t.keyCode===m?-1:1,o=P(d.$control_input[0]),d.$activeOption&&!d.settings.hideSelected&&(l=d.getAdjacentOption(d.$activeOption,-1).attr("data-value")),a=[],d.$activeItems.length){for(c=d.$control.children(".active:"+(i>0?"last":"first")),s=d.$control.children(":not(input)").index(c),i>0&&s++,n=0,r=d.$activeItems.length;r>n;n++)a.push(e(d.$activeItems[n]).attr("data-value"));t&&(t.preventDefault(),t.stopPropagation())}else(d.isFocused||"single"===d.settings.mode)&&d.items.length&&(0>i&&0===o.start&&0===o.length?a.push(d.items[d.caretPos-1]):i>0&&o.start===d.$control_input.val().length&&a.push(d.items[d.caretPos]));if(!a.length||"function"==typeof d.settings.onDelete&&d.settings.onDelete.apply(d,[a])===!1)return!1;for("undefined"!=typeof s&&d.setCaret(s);a.length;)d.removeItem(a.pop());return d.showInput(),d.positionDropdown(),d.refreshOptions(!0),l&&(u=d.getOption(l),u.length&&d.setActiveOption(u)),!0},advanceSelection:function(e,t){var n,r,i,o,a,s,l=this;0!==e&&(l.rtl&&(e*=-1),n=e>0?"last":"first",r=P(l.$control_input[0]),l.isFocused&&!l.isInputHidden?(o=l.$control_input.val().length,a=0>e?0===r.start&&0===r.length:r.start===o,a&&!o&&l.advanceCaret(e,t)):(s=l.$control.children(".active:"+n),s.length&&(i=l.$control.children(":not(input)").index(s),l.setActiveItem(null),l.setCaret(e>0?i+1:i))))},advanceCaret:function(e,t){var n,r,i=this;0!==e&&(n=e>0?"next":"prev",i.isShiftDown?(r=i.$control_input[n](),r.length&&(i.hideInput(),i.setActiveItem(r),t&&t.preventDefault())):i.setCaret(i.caretPos+e))},setCaret:function(t){var n=this;if(t="single"===n.settings.mode?n.items.length:Math.max(0,Math.min(n.items.length,t)),!n.isPending){var r,i,o,a;for(o=n.$control.children(":not(input)"),r=0,i=o.length;i>r;r++)a=e(o[r]).detach(),t>r?n.$control_input.before(a):n.$control.append(a)}n.caretPos=t},lock:function(){this.close(),this.isLocked=!0,this.refreshState()},unlock:function(){this.isLocked=!1,this.refreshState()},disable:function(){var e=this;e.$input.prop("disabled",!0),e.$control_input.prop("disabled",!0).prop("tabindex",-1),e.isDisabled=!0,e.lock()},enable:function(){var e=this;e.$input.prop("disabled",!1),e.$control_input.prop("disabled",!1).prop("tabindex",e.tabIndex),e.isDisabled=!1,e.unlock()},destroy:function(){var t=this,n=t.eventNS,r=t.revertSettings;t.trigger("destroy"),t.off(),t.$wrapper.remove(),t.$dropdown.remove(),t.$input.html("").append(r.$children).removeAttr("tabindex").removeClass("selectized").attr({tabindex:r.tabindex}).show(),t.$control_input.removeData("grow"),t.$input.removeData("selectize"),e(window).off(n),e(document).off(n),e(document.body).off(n),delete t.$input[0].selectize},render:function(e,t){var n,r,i="",o=!1,a=this,s=/^[\t \r\n]*<([a-z][a-z0-9\-_]*(?:\:[a-z][a-z0-9\-_]*)?)/i;return("option"===e||"item"===e)&&(n=T(t[a.settings.valueField]),o=!!n),o&&(S(a.renderCache[e])||(a.renderCache[e]={}),a.renderCache[e].hasOwnProperty(n))?a.renderCache[e][n]:(i=a.settings.render[e].apply(this,[t,k]),("option"===e||"option_create"===e)&&(i=i.replace(s,"<$1 data-selectable")),"optgroup"===e&&(r=t[a.settings.optgroupValueField]||"",i=i.replace(s,'<$1 data-group="'+E(k(r))+'"')),("option"===e||"item"===e)&&(i=i.replace(s,'<$1 data-value="'+E(k(n||""))+'"')),o&&(a.renderCache[e][n]=i),i)},clearCache:function(e){var t=this;"undefined"==typeof e?t.renderCache={}:delete t.renderCache[e]},canCreate:function(e){var t=this;if(!t.settings.create)return!1;var n=t.settings.createFilter;return!(!e.length||"function"==typeof n&&!n.apply(t,[e])||"string"==typeof n&&!new RegExp(n).test(e)||n instanceof RegExp&&!n.test(e))}}),L.count=0,L.defaults={options:[],optgroups:[],plugins:[],delimiter:",",splitOn:null,persist:!0,diacritics:!0,create:!1,createOnBlur:!1,createFilter:null,highlight:!0,openOnFocus:!0,maxOptions:1e3,maxItems:null,hideSelected:null,addPrecedence:!1,selectOnTab:!1,preload:!1,allowEmptyOption:!1,closeAfterSelect:!1,scrollDuration:60,loadThrottle:300,loadingClass:"loading",dataAttr:"data-data",optgroupField:"optgroup",valueField:"value",labelField:"text",optgroupLabelField:"label",optgroupValueField:"value",lockOptgroupOrder:!1,sortField:"$order",searchField:["text"],searchConjunction:"and",mode:null,wrapperClass:"selectize-control",inputClass:"selectize-input",dropdownClass:"selectize-dropdown",dropdownContentClass:"selectize-dropdown-content",dropdownParent:null,copyClassesToDropdown:!0,render:{}},e.fn.selectize=function(t){var n=e.fn.selectize.defaults,r=e.extend({},n,t),i=r.dataAttr,o=r.labelField,a=r.valueField,s=r.optgroupField,l=r.optgroupLabelField,u=r.optgroupValueField,c={},d=function(t,n){var s,l,u,c,d=t.attr(i);if(d)for(n.options=JSON.parse(d),s=0,l=n.options.length;l>s;s++)n.items.push(n.options[s][a]);else{var p=e.trim(t.val()||"");if(!r.allowEmptyOption&&!p.length)return;for(u=p.split(r.delimiter),s=0,l=u.length;l>s;s++)c={},c[o]=u[s],c[a]=u[s],n.options.push(c);n.items=u}},p=function(t,n){var d,p,f,h,m=n.options,g=function(e){var t=i&&e.attr(i);return"string"==typeof t&&t.length?JSON.parse(t):null},v=function(t,i){t=e(t);var l=T(t.attr("value"));if(l||r.allowEmptyOption)if(c.hasOwnProperty(l)){if(i){var u=c[l][s];u?e.isArray(u)?u.push(i):c[l][s]=[u,i]:c[l][s]=i}}else{var d=g(t)||{};d[o]=d[o]||t.text(),d[a]=d[a]||l,d[s]=d[s]||i,c[l]=d,m.push(d),t.is(":selected")&&n.items.push(l)}},y=function(t){var r,i,o,a,s;for(t=e(t),o=t.attr("label"),o&&(a=g(t)||{},a[l]=o,a[u]=o,n.optgroups.push(a)),s=e("option",t),r=0,i=s.length;i>r;r++)v(s[r],o)};for(n.maxItems=t.attr("multiple")?null:1,h=t.children(),d=0,p=h.length;p>d;d++)f=h[d].tagName.toLowerCase(),"optgroup"===f?y(h[d]):"option"===f&&v(h[d])};return this.each(function(){if(!this.selectize){var i,o=e(this),a=this.tagName.toLowerCase(),s=o.attr("placeholder")||o.attr("data-placeholder");s||r.allowEmptyOption||(s=o.children('option[value=""]').text());var l={placeholder:s,options:[],optgroups:[],items:[]};"select"===a?p(o,l):d(o,l),i=new L(o,e.extend(!0,{},n,l,t))}})},e.fn.selectize.defaults=L.defaults,e.fn.selectize.support={validity:C},L.define("drag_drop",function(){if(!e.fn.sortable)throw new Error('The "drag_drop" plugin requires jQuery UI "sortable".');if("multi"===this.settings.mode){var t=this;t.lock=function(){var e=t.lock;return function(){var n=t.$control.data("sortable");return n&&n.disable(),e.apply(t,arguments)}}(),t.unlock=function(){var e=t.unlock;return function(){var n=t.$control.data("sortable");return n&&n.enable(),e.apply(t,arguments)}}(),t.setup=function(){var n=t.setup;return function(){n.apply(this,arguments);var r=t.$control.sortable({items:"[data-value]",forcePlaceholderSize:!0,disabled:t.isLocked,start:function(e,t){t.placeholder.css("width",t.helper.css("width")),r.css({overflow:"visible"})},stop:function(){r.css({overflow:"hidden"});var n=t.$activeItems?t.$activeItems.slice():null,i=[];r.children("[data-value]").each(function(){i.push(e(this).attr("data-value"))}),t.setValue(i),t.setActiveItem(n)}})}}()}}),L.define("dropdown_header",function(t){var n=this;t=e.extend({title:"Untitled",headerClass:"selectize-dropdown-header",titleRowClass:"selectize-dropdown-header-title",labelClass:"selectize-dropdown-header-label",closeClass:"selectize-dropdown-header-close",html:function(e){return'
'+e.title+'×
'}},t),n.setup=function(){var r=n.setup;return function(){r.apply(n,arguments),n.$dropdown_header=e(t.html(t)),n.$dropdown.prepend(n.$dropdown_header)}}()}),L.define("optgroup_columns",function(t){var n=this;t=e.extend({equalizeWidth:!0,equalizeHeight:!0},t),this.getAdjacentOption=function(t,n){var r=t.closest("[data-group]").find("[data-selectable]"),i=r.index(t)+n;return i>=0&&i
',e=e.firstChild,n.body.appendChild(e),t=r.width=e.offsetWidth-e.clientWidth,n.body.removeChild(e)),t},i=function(){var i,o,a,s,l,u,c;if(c=e("[data-group]",n.$dropdown_content),o=c.length,o&&n.$dropdown_content.width()){if(t.equalizeHeight){for(a=0,i=0;o>i;i++)a=Math.max(a,c.eq(i).height());c.css({height:a})}t.equalizeWidth&&(u=n.$dropdown_content.innerWidth()-r(),s=Math.round(u/o),c.css({width:s}),o>1&&(l=u-s*(o-1),c.eq(o-1).css({width:l})))}};(t.equalizeHeight||t.equalizeWidth)&&(A.after(this,"positionDropdown",i),A.after(this,"refreshOptions",i))}),L.define("remove_button",function(t){if("single"!==this.settings.mode){t=e.extend({label:"×",title:"Remove",className:"remove",append:!0},t);var n=this,r=''+t.label+"",i=function(e,t){var n=e.search(/(<\/[^>]+>\s*)$/);return e.substring(0,n)+t+e.substring(n)};this.setup=function(){var o=n.setup;return function(){if(t.append){var a=n.settings.render.item; +n.settings.render.item=function(){return i(a.apply(this,arguments),r)}}o.apply(this,arguments),this.$control.on("click","."+t.className,function(t){if(t.preventDefault(),!n.isLocked){var r=e(t.currentTarget).parent();n.setActiveItem(r),n.deleteSelection()&&n.setCaret(n.items.length)}})}}()}}),L.define("restore_on_backspace",function(e){var t=this;e.text=e.text||function(e){return e[this.settings.labelField]},this.onKeyDown=function(){var n=t.onKeyDown;return function(t){var r,i;return t.keyCode===m&&""===this.$control_input.val()&&!this.$activeItems.length&&(r=this.caretPos-1,r>=0&&r-1&&(this.siblings.splice(r,1),this.source.index()0?this.siblings[this.index-1]:null},next:function(){return this.index0?1:-1,t.dirY=0===t.distY?0:t.distY>0?1:-1;var r=Math.abs(t.distX)>Math.abs(t.distY)?1:0;return n?(t.dirAx=r,void(t.moving=!0)):(t.dirAx!==r?(t.distAxX=0,t.distAxY=0):(t.distAxX+=Math.abs(t.distX),0!==t.dirX&&t.dirX!==t.lastDirX&&(t.distAxX=0),t.distAxY+=Math.abs(t.distY),0!==t.dirY&&t.dirY!==t.lastDirY&&(t.distAxY=0)),void(t.dirAx=r))}}}])}(),function(){"use strict";angular.module("ui.tree").controller("TreeController",["$scope","$element","$attrs","treeConfig",function(e,t){this.scope=e,e.$element=t,e.$nodesScope=null,e.$type="uiTree",e.$emptyElm=null,e.$callbacks=null,e.dragEnabled=!0,e.emptyPlaceHolderEnabled=!0,e.maxDepth=0,e.dragDelay=0,e.isEmpty=function(){return e.$nodesScope&&e.$nodesScope.$modelValue&&0===e.$nodesScope.$modelValue.length},e.place=function(t){e.$nodesScope.$element.append(t),e.$emptyElm.remove()},e.resetEmptyElement=function(){0===e.$nodesScope.$modelValue.length&&e.emptyPlaceHolderEnabled?t.append(e.$emptyElm):e.$emptyElm.remove()};var n=function(e,t){for(var r=e.childNodes(),i=0;i0},e.safeApply=function(e){var t=this.$root.$$phase;"$apply"==t||"$digest"==t?e&&"function"==typeof e&&e():this.$apply(e)},e.removeNode=function(t){var n=e.$modelValue.indexOf(t.$modelValue);return n>-1?(e.safeApply(function(){e.$modelValue.splice(n,1)[0]}),t):null},e.insertNode=function(t,n){e.safeApply(function(){e.$modelValue.splice(t,0,n)})},e.childNodes=function(){var t=[];if(e.$modelValue)for(var n=0;n0?e.depth()+t.maxSubDepth()+1>n:!1}}])}(),function(){"use strict";angular.module("ui.tree").controller("TreeNodeController",["$scope","$element","$attrs","treeConfig",function(e,t){this.scope=e,e.$element=t,e.$modelValue=null,e.$parentNodeScope=null,e.$childNodesScope=null,e.$parentNodesScope=null,e.$treeScope=null,e.$handleScope=null,e.$type="uiTreeNode",e.$$apply=!1,e.collapsed=!1,e.init=function(n){var r=n[0];e.$treeScope=n[1]?n[1].scope:null,e.$parentNodeScope=r.scope.$nodeScope,e.$modelValue=r.scope.$modelValue[e.$index],e.$parentNodesScope=r.scope,r.scope.initSubNode(e),t.on("$destroy",function(){r.scope.destroySubNode(e)})},e.index=function(){return e.$parentNodesScope.$modelValue.indexOf(e.$modelValue)},e.dragEnabled=function(){return!(e.$treeScope&&!e.$treeScope.dragEnabled)},e.isSibling=function(t){return e.$parentNodesScope==t.$parentNodesScope},e.isChild=function(t){var n=e.childNodes();return n&&n.indexOf(t)>-1},e.prev=function(){var t=e.index();return t>0?e.siblings()[t-1]:null},e.siblings=function(){return e.$parentNodesScope.childNodes()},e.childNodesCount=function(){return e.childNodes()?e.childNodes().length:0},e.hasChild=function(){return e.childNodesCount()>0},e.childNodes=function(){return e.$childNodesScope&&e.$childNodesScope.$modelValue?e.$childNodesScope.childNodes():null},e.accept=function(t,n){return e.$childNodesScope&&e.$childNodesScope.$modelValue&&e.$childNodesScope.accept(t,n)},e.removeNode=function(){var t=e.remove();return e.$callbacks.removed(t),t},e.remove=function(){return e.$parentNodesScope.removeNode(e)},e.toggle=function(){e.collapsed=!e.collapsed},e.collapse=function(){e.collapsed=!0},e.expand=function(){e.collapsed=!1},e.depth=function(){var t=e.$parentNodeScope;return t?t.depth()+1:1};var n=0,r=function(e){for(var t=0,i=e.childNodes(),o=0;oi&&(i=0),0>a&&(a=0),a+10>v&&(a=v-10),i+10>y&&(i=y-10),m.css({left:i+"px",top:a+"px"});var l=window.pageYOffset||n.document.documentElement.scrollTop,h=l+(window.innerHeight||n.document.clientHeight||n.document.clientHeight);if(h=h&&window.scrollBy(0,10),l>s.pageY&&window.scrollBy(0,-10),t.positionMoved(e,p,c),c)return void(c=!1);if(p.dirAx&&p.distAxX>=u.levelThreshold&&(p.distAxX=0,p.distX>0&&(r=d.prev(),r&&!r.collapsed&&r.accept(o,r.childNodesCount())&&(r.$childNodesScope.$element.append(f),d.moveTo(r.$childNodesScope,r.childNodes(),r.childNodesCount()))),p.distX<0)){var $=d.next();if(!$){var C=d.parentNode();C&&C.$parentNodesScope.accept(o,C.index()+1)&&(C.$element.after(f),d.moveTo(C.$parentNodesScope,C.siblings(),C.index()+1))}}var S,T=(t.offset(m).left-t.offset(f).left>=u.threshold,s.pageX-n.document.body.scrollLeft),k=s.pageY-(window.pageYOffset||n.document.documentElement.scrollTop);angular.isFunction(m.hide)?m.hide():(S=m[0].style.display,m[0].style.display="none"),n.document.elementFromPoint(T,k);var E=angular.element(n.document.elementFromPoint(T,k));if(angular.isFunction(m.show)?m.show():m[0].style.display=S,!p.dirAx){var A,O;O=E.scope();var D=!1;if(!O)return;if("uiTree"==O.$type&&O.dragEnabled&&(D=O.isEmpty()),"uiTreeHandle"==O.$type&&(O=O.$nodeScope),"uiTreeNode"!=O.$type&&!D)return;if(b&&f.parent()[0]!=b.$element[0]&&(b.resetEmptyElement(),b=null),D)b=O,O.$nodesScope.accept(o,0)&&(O.place(f),d.moveTo(O.$nodesScope,O.$nodesScope.childNodes(),0));else if(O.dragEnabled()){E=O.$element;var N=t.offset(E);A=O.horizontal?s.pageXo;o++)n=n.replace(new RegExp(r.charAt(o),"g"),i.charAt(o));return n=e.trim(n),n=n.toLowerCase().replace(/[^\w ]+/g,"").replace(/ +/g,"-")}};e.fn.slug=function(t){return n[t]?n[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof t&&t?void e.error("Method "+t+" does not exist on jQuery.slug"):n.init.apply(this,arguments)}}(jQuery),$(function(){$('[data-toggle="offcanvas"]').click(function(){$(".row-offcanvas").toggleClass("active")})}),$(function(){function e(e,t){var n={};n[e]=t,$.ajax({type:"POST",url:"/admin/users/current/updatepreferences",data:n}).fail(function(){alertify.error("User preference couldn’t be set.")})}$(".panel-collapse").on("hide.bs.collapse",function(){e("menus_"+$(this).attr("id")+"_collapsed","true")}),$(".panel-collapse").on("show.bs.collapse",function(){e("menus_"+$(this).attr("id")+"_collapsed","")})}),$(function(){$(".btn-preview").fancybox({width:1200,type:"iframe"})}),function(e){"use strict";var t=$("html").attr("lang");e.module("typicms",["ngResource","smart-table","gettext","ui.tree"],["$locationProvider",function(){}]),e.module("typicms").run(["gettextCatalog",function(e){e.setCurrentLanguage(t),e.loadRemote("/languages/"+t+".json")}]),e.module("typicms").factory("$api",["$location","$resource",function(e,t){var n=e.absUrl().split("?")[0],r=n.split("/")[4];return"galleries"===r&&"edit"===n.split("/")[6]&&(r="files"),"menus"===r&&"edit"===n.split("/")[6]&&(r="menulinks"),r||(r="history"),t("/api/"+r+"/:id",null,{update:{method:"PUT"}})}])}(angular),angular.module("typicms").filter("dateFromMySQL",["dateFilter",function(e){return function(t,n){return t?(t=new Date(t.replace(/-/g,"/")),e(t,n)):void 0}}]),function(e){"use strict";e.module("typicms").controller("ListController",["$http","$scope","$location","$api",function(t,n,r,i){n.itemsByPage=25;var o=r.absUrl().split("?")[0],a=o.split("/")[4],s=o.split("/").pop(),l={};n.url=o,n.parentId=n.url.split("/")[5]||0,"galleries"===a&&"edit"===s&&(n.url="/admin/files"),"menus"===a&&"edit"===s&&(n.url=o.slice(0,o.lastIndexOf("/"))+"/menulinks"),n.TypiCMS=TypiCMS,"galleries"===a&&o.split("/")[5]&&(l.gallery_id=o.split("/")[5]),"menus"===a&&o.split("/")[5]&&(l.menu_id=o.split("/")[5],a="menulinks"),i.query(l).$promise.then(function(e){n.models=e,n.displayedModels=[].concat(n.models)}),n.toggleStatus=function(e){var t=Math.abs(e.status-1),n=["offline","online"];e.status=t,i.update({id:e.id},e).$promise.then(function(){alertify.success("Item is "+n[t]+".")},function(e){alertify.error("Error "+e.status+" "+e.statusText)})},n.toggleHomepage=function(e){e.homepage=Math.abs(e.homepage-1),i.update({id:e.id},e).$promise.then(function(){},function(e){alertify.error("Error "+e.status+" "+e.statusText)})},n.update=function(e){i.update({id:e.id},e).$promise.then(function(){},function(e){alertify.error("Error "+e.status+" "+e.statusText)})},n.selectAndClose=function(e){var t=top.tinymce.activeEditor.windowManager;t.getParams().oninsert(e),t.close()},n["delete"]=function(e,t){if(t||(t=e.title),!window.confirm("Supprimer « "+t+" » ?"))return!1;var r=n.models.indexOf(e);i["delete"]({id:e.id},function(){-1!==r&&n.models.splice(r,1)},function(e){alertify.error(e.data.message)})},n.deleteFromNested=function(e,t){return t||(t=e.model.title),e.hasChild()?(alertify.error("Cannot delete item because it has children."),!1):window.confirm("Supprimer « "+t+" » ?")?void i["delete"]({id:e.model.id},function(){e.remove()}):!1},n.treeOptions={dragThreshold:0,dropped:function(n){var r=n.source.nodeScope.model,i=null,o={},s=n.dest.nodesScope,l=s.$modelValue;return n.dest.nodesScope.$nodeScope&&(i=s.$nodeScope.model.id),n.dest.index===n.source.index&&r.parent_id===i?!1:(o.moved=r.id,o.item=[],r.position=n.dest.index+1,r.parent_id=i,e.forEach(l,function(e){o.item.push({id:e.id,parent_id:e.parent_id})}),void t.post("/admin/"+a+"/sort",o).success(function(e){alertify.success(e.message)}).error(function(e){alertify.error(e.error.message)}))}}}])}(angular),angular.module("typicms").filter("betterFilter",["filterFilter",function(e){return function(t,n,r){for(var i in n)n[i]=normalize(n[i]);for(var o=angular.copy(t),a=0;a
',n=["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.openxmlformats-officedocument.presentationml.presentation","application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/vnd.openxmlformats-officedocument.presentationml.slide","application/msword","application/vnd.ms-powerpoint","application/vnd.ms-excel","application/pdf","application/zip","image/jpeg","image/gif","image/png"],Dropzone.options.dropzone={url:"/api/files",paramName:"filename",clickable:!0,maxFilesize:60,acceptedFiles:n.join(),previewTemplate:t,thumbnailWidth:130,thumbnailHeight:130,init:function(){this.on("success",function(t,n){var r=this;window.setTimeout(function(){$(t.previewElement).fadeOut("fast",function(){r.removeFile(t),e.$apply(function(){e.models.push(n.model)})})},1e3)}),this.on("sending",function(e,t,n){n.append("gallery_id",r);for(var o=i.length-1;o>=0;o--)n.append(i[o]["short"]+"[description]",""),n.append(i[o]["short"]+"[alt_attribute]",""),n.append(i[o]["short"]+"[keywords]",""),n.append(i[o]["short"]+"[status]",1)})}}}}),angular.module("smart-table").directive("stFilter",["$timeout",function(){return{require:"^stTable",link:{pre:function(e,t,n,r){r.setFilterFunction("betterFilter")}}}}]),angular.module("smart-table").directive("stOrder",["$parse",function(){return{require:"^stTable",link:{pre:function(e,t,n,r){r.setSortFunction("betterOrderBy")}}}}]),angular.module("typicms").directive("typiBtnDelete",function(){return{restrict:"E",templateUrl:"/views/partials/btnDelete.html"}}),angular.module("typicms").directive("typiBtnEdit",function(){return{templateUrl:"/views/partials/btnEdit.html"}}),angular.module("typicms").directive("typiBtnFiles",function(){return{templateUrl:"/views/partials/btnFiles.html"}}),angular.module("typicms").directive("typiBtnStatus",function(){return{templateUrl:"/views/partials/btnStatus.html"}}),angular.module("typicms").directive("typiPagination",function(){return{templateUrl:"/views/partials/pagination.html"}}),angular.module("typicms").directive("typiThumbListItem",function(){return{templateUrl:"/views/partials/thumbListItem.html"}}); \ No newline at end of file