locastyle-rails 1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +5 -0
  3. data/.ruby-version +1 -0
  4. data/Gemfile +3 -0
  5. data/README.md +32 -0
  6. data/Rakefile +1 -0
  7. data/lib/generators/locastyle/install_generator.rb +26 -0
  8. data/lib/generators/locastyle/templates/application.html.erb +28 -0
  9. data/lib/generators/locastyle/templates/shared/_sidebar.html.erb +26 -0
  10. data/lib/generators/locastyle/templates/shared/_sidebar_notifications.html.erb +46 -0
  11. data/lib/generators/locastyle/templates/shared/_topbar.html.erb +45 -0
  12. data/lib/locastyle/rails/engine.rb +7 -0
  13. data/lib/locastyle/rails/version.rb +5 -0
  14. data/lib/locastyle/rails.rb +2 -0
  15. data/lib/locastyle-rails.rb +1 -0
  16. data/locastyle.gemspec +28 -0
  17. data/spec/features/generator_spec.rb +8 -0
  18. data/spec/spec_helper.rb +15 -0
  19. data/spec/support/helpers.rb +9 -0
  20. data/vendor/assets/images/locastyle/logo-locaweb.jpg +0 -0
  21. data/vendor/assets/javascripts/locastyle.js +73 -0
  22. data/vendor/assets/javascripts/templates.js +1 -0
  23. data/vendor/assets/stylesheets/locastyle/_locastyle.css +5 -0
  24. data/vendor/assets/stylesheets/locastyle/fonts/locastyle-docs.eot +0 -0
  25. data/vendor/assets/stylesheets/locastyle/fonts/locastyle-docs.json +116 -0
  26. data/vendor/assets/stylesheets/locastyle/fonts/locastyle-docs.svg +13 -0
  27. data/vendor/assets/stylesheets/locastyle/fonts/locastyle-docs.ttf +0 -0
  28. data/vendor/assets/stylesheets/locastyle/fonts/locastyle-docs.woff +0 -0
  29. data/vendor/assets/stylesheets/locastyle/fonts/locastyle-panel-icons.eot +0 -0
  30. data/vendor/assets/stylesheets/locastyle/fonts/locastyle-panel-icons.json +301 -0
  31. data/vendor/assets/stylesheets/locastyle/fonts/locastyle-panel-icons.svg +18 -0
  32. data/vendor/assets/stylesheets/locastyle/fonts/locastyle-panel-icons.ttf +0 -0
  33. data/vendor/assets/stylesheets/locastyle/fonts/locastyle-panel-icons.woff +0 -0
  34. data/vendor/assets/stylesheets/locastyle/fonts/locastyle.eot +0 -0
  35. data/vendor/assets/stylesheets/locastyle/fonts/locastyle.svg +127 -0
  36. data/vendor/assets/stylesheets/locastyle/fonts/locastyle.ttf +0 -0
  37. data/vendor/assets/stylesheets/locastyle/fonts/locastyle.woff +0 -0
  38. data/vendor/assets/stylesheets/locastyle/fonts/selection.json +2844 -0
  39. metadata +176 -0
@@ -0,0 +1,73 @@
1
+ /*! Locastyle version: 3.8.2*/ /**
2
+ *
3
+ * Copyright 2013 LinkedIn Corp. All rights reserved.
4
+
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ !function(t,e){var n,a,s,i,o,r,l,c,u,d,h=window.Sizzle||null,f=t[e],p="undefined",g=!1,m=typeof window.jQuery!==p,v=!1,y=window.document;try{v=typeof window.sessionStorage!==p}catch(b){}d={smoothScroll:!0,scrollDuration:1e3,scrollTopMargin:200,showCloseButton:!0,showPrevButton:!1,showNextButton:!0,bubbleWidth:280,bubblePadding:15,arrowWidth:20,skipIfNoElement:!0,cookieName:"hopscotch.tour.state"},f||(Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),u=function(){g&&f.startTour()},r={addClass:function(t,e){var n,a,s,i;if(t.className){for(a=e.split(/\s+/),n=" "+t.className+" ",s=0,i=a.length;i>s;++s)n.indexOf(" "+a[s]+" ")<0&&(n+=a[s]+" ");t.className=n.replace(/^\s+|\s+$/g,"")}else t.className=e},removeClass:function(t,e){var n,a,s,i;for(a=e.split(/\s+/),n=" "+t.className+" ",s=0,i=a.length;i>s;++s)n=n.replace(" "+a[s]+" "," ");t.className=n.replace(/^\s+|\s+$/g,"")},getPixelValue:function(t){var e=typeof t;return"number"===e?t:"string"===e?parseInt(t,10):0},valOrDefault:function(t,e){return typeof t!==p?t:e},invokeCallbackArrayHelper:function(t){var e;return Array.isArray(t)&&(e=c[t[0]],"function"==typeof e)?e.apply(this,t.slice(1)):void 0},invokeCallbackArray:function(t){var e,n;if(Array.isArray(t)){if("string"==typeof t[0])return r.invokeCallbackArrayHelper(t);for(e=0,n=t.length;n>e;++e)r.invokeCallback(t[e])}},invokeCallback:function(t){return"function"==typeof t?t():"string"==typeof t&&c[t]?c[t]():r.invokeCallbackArray(t)},invokeEventCallbacks:function(t,e){var n,a,s=l[t];if(e)return this.invokeCallback(e);for(n=0,a=s.length;a>n;++n)this.invokeCallback(s[n].cb)},getScrollTop:function(){var t;return t=typeof window.pageYOffset!==p?window.pageYOffset:y.documentElement.scrollTop},getScrollLeft:function(){var t;return t=typeof window.pageXOffset!==p?window.pageXOffset:y.documentElement.scrollLeft},getWindowHeight:function(){return window.innerHeight||y.documentElement.clientHeight},getWindowWidth:function(){return window.innerWidth||y.documentElement.clientWidth},addEvtListener:function(t,e,n){return t.addEventListener?t.addEventListener(e,n,!1):t.attachEvent("on"+e,n)},removeEvtListener:function(t,e,n){return t.removeEventListener?t.removeEventListener(e,n,!1):t.detachEvent("on"+e,n)},documentIsReady:function(){return"complete"===y.readyState||"interactive"===y.readyState},evtPreventDefault:function(t){t.preventDefault?t.preventDefault():event&&(event.returnValue=!1)},extend:function(t,e){var n;for(n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},getStepTargetHelper:function(t){var e;return/^[#\.]/.test(t)?y.querySelector?y.querySelector(t):m?(e=jQuery(t),e.length?e[0]:null):h?(e=new h(t),e.length?e[0]:null):/^#[a-zA-Z][\w-_:.]*$/.test(t)?y.getElementById(t.substring(1)):null:y.getElementById(t)},getStepTarget:function(t){var e;if(!t||!t.target)return null;if("string"==typeof t.target)return t.target=r.getStepTargetHelper(t.target),t.target;if(Array.isArray(t.target)){var n,a;for(n=0,a=t.target.length;a>n;n++)if("string"==typeof t.target[n]&&(e=r.getStepTargetHelper(t.target[n])))return t.target=e,e;return null}return t.target},getI18NString:function(t){return o[t]||i[t]},setState:function(t,e,n){var a,s="";v?sessionStorage.setItem(t,e):(n&&(a=new Date,a.setTime(a.getTime()+24*n*60*60*1e3),s="; expires="+a.toGMTString()),y.cookie=t+"="+e+s+"; path=/")},getState:function(t){var e,n,a,s=t+"=",i=y.cookie.split(";");if(v)a=sessionStorage.getItem(t);else for(e=0;e<i.length;e++){for(n=i[e];" "===n.charAt(0);)n=n.substring(1,n.length);if(0===n.indexOf(s)){a=n.substring(s.length,n.length);break}}return a},clearState:function(t){v?sessionStorage.removeItem(t):this.setState(t,"",-1)}},r.addEvtListener(window,"load",u),l={next:[],prev:[],start:[],end:[],show:[],error:[],close:[]},c={},i={stepNums:null,nextBtn:"Next",prevBtn:"Back",doneBtn:"Done",skipBtn:"Skip",closeTooltip:"Close"},o={},a=function(t){this.init(t)},a.prototype={isShowing:!1,currStep:void 0,_createButton:function(t,e){var n=y.createElement("button"),a="hopscotch-nav-button";return n.id=t,e&&(n.innerHTML=e),a+=t.indexOf("prev")>=0?" prev":" next",r.addClass(n,a),n},setPosition:function(t){var e,n,a,s,i,o,l,c=6,u=r.getStepTarget(t),d=this.element,h=this.arrowEl;e=r.getPixelValue(t.width)||this.opt.bubbleWidth,a=r.valOrDefault(t.padding,this.opt.bubblePadding),r.removeClass(d,"fade-in-down fade-in-up fade-in-left fade-in-right"),!t.placement&&t.orientation&&(t.placement=t.orientation),s=u.getBoundingClientRect(),"top"===t.placement?(n=d.offsetHeight,i=s.top-n-this.opt.arrowWidth,o=s.left):"bottom"===t.placement?(i=s.bottom+this.opt.arrowWidth,o=s.left):"left"===t.placement?(i=s.top,o=s.left-e-2*a-2*c-this.opt.arrowWidth):"right"===t.placement&&(i=s.top,o=s.right+this.opt.arrowWidth),l="center"!==t.arrowOffset?r.getPixelValue(t.arrowOffset):t.arrowOffset,l?"top"===t.placement||"bottom"===t.placement?(h.style.top="","center"===l?h.style.left=e/2+a-h.offsetWidth/2+"px":h.style.left=l+"px"):("left"===t.placement||"right"===t.placement)&&(h.style.left="","center"===l?(n=n||d.offsetHeight,h.style.top=n/2+a-h.offsetHeight/2+"px"):h.style.top=l+"px"):(h.style.top="",h.style.left=""),"center"===t.xOffset?o=s.left+u.offsetWidth/2-e/2-a:o+=r.getPixelValue(t.xOffset),"center"===t.yOffset?(n=n||d.offsetHeight,i=s.top+u.offsetHeight/2-n/2-a):i+=r.getPixelValue(t.yOffset),t.fixedElement||(i+=r.getScrollTop(),o+=r.getScrollLeft()),d.style.position=t.fixedElement?"fixed":"absolute",d.style.top=i+"px",d.style.left=o+"px"},_initNavButtons:function(){var t=y.createElement("div");return this.prevBtnEl=this._createButton("hopscotch-prev",r.getI18NString("prevBtn")),this.nextBtnEl=this._createButton("hopscotch-next",r.getI18NString("nextBtn")),this.doneBtnEl=this._createButton("hopscotch-done",r.getI18NString("doneBtn")),this.ctaBtnEl=this._createButton("hopscotch-cta"),r.addClass(this.doneBtnEl,"hide"),t.appendChild(this.prevBtnEl),t.appendChild(this.ctaBtnEl),t.appendChild(this.nextBtnEl),t.appendChild(this.doneBtnEl),r.addEvtListener(this.prevBtnEl,"click",function(t){f.prevStep(!0)}),r.addEvtListener(this.nextBtnEl,"click",function(t){f.nextStep(!0)}),r.addEvtListener(this.doneBtnEl,"click",function(t){f.endTour()}),t.className="hopscotch-actions",this.buttonsEl=t,this.containerEl.appendChild(t),this},_getCloseFn:function(){var t=this;return this.closeFn||(this.closeFn=function(e){t.opt.onClose&&r.invokeCallback(t.opt.onClose),t.opt.id&&!t.opt.isTourBubble?f.getCalloutManager().removeCallout(t.opt.id):t.destroy(),r.evtPreventDefault(e)}),this.closeFn},initCloseButton:function(){var t=y.createElement("a");return t.className="hopscotch-bubble-close",t.href="#",t.title=r.getI18NString("closeTooltip"),t.innerHTML=r.getI18NString("closeTooltip"),this.opt.isTourBubble?r.addEvtListener(t,"click",function(t){var e=f.getCurrStepNum(),n=f.getCurrTour(),a=e===n.steps.length-1;r.invokeEventCallbacks("close"),f.endTour(!0,a),t.preventDefault?t.preventDefault():event&&(event.returnValue=!1)}):r.addEvtListener(t,"click",this._getCloseFn()),r.valOrDefault(this.opt.showCloseButton,!0)||r.addClass(t,"hide"),this.closeBtnEl=t,this.containerEl.appendChild(t),this},_initArrow:function(){var t,e;return this.arrowEl=y.createElement("div"),this.arrowEl.className="hopscotch-bubble-arrow-container",e=y.createElement("div"),e.className="hopscotch-bubble-arrow-border",t=y.createElement("div"),t.className="hopscotch-bubble-arrow",this.arrowEl.appendChild(e),this.arrowEl.appendChild(t),this.element.appendChild(this.arrowEl),this},_setupCTAButton:function(t){var e=this;this._showButton(this.ctaBtnEl,!!t.showCTAButton),t.showCTAButton&&t.ctaLabel&&(this.ctaBtnEl.innerHTML=t.ctaLabel,this._ctaFn=function(){e.opt.isTourBubble||f.getCalloutManager().removeCallout(t.id),t.onCTA&&"function"==typeof t.onCTA&&t.onCTA()},r.addEvtListener(this.ctaBtnEl,"click",this._ctaFn))},_removeCTACallback:function(){this.ctaBtnEl&&this._ctaFn&&(r.removeEvtListener(this.ctaBtnEl,"click",this._ctaFn),this._ctaFn=null)},render:function(t,e,n,a){var s,i,o,l,c=this.element;return t?this.currStep=t:this.currStep&&(t=this.currStep),!t.placement&&t.orientation&&(t.placement=t.orientation),s=r.valOrDefault(t.showNextButton,this.opt.showNextButton),i=r.valOrDefault(t.showPrevButton,this.opt.showPrevButton),this.setTitle(t.title||""),this.setContent(t.content||""),this.opt.isTourBubble&&this.setNum(e),this.placement=t.placement,this.showPrevButton(this.prevBtnEl&&i&&e>0),this.showNextButton(this.nextBtnEl&&s&&!n),this.nextBtnEl.innerHTML=t.showSkip?r.getI18NString("skipBtn"):r.getI18NString("nextBtn"),n?r.removeClass(this.doneBtnEl,"hide"):r.addClass(this.doneBtnEl,"hide"),this._setupCTAButton(t),this._setArrow(t.placement),o=r.getPixelValue(t.width)||this.opt.bubbleWidth,l=r.valOrDefault(t.padding,this.opt.bubblePadding),this.containerEl.style.width=o+"px",this.containerEl.style.padding=l+"px",c.style.zIndex=t.zindex||"","top"===t.placement?(c.style.top="-9999px",c.style.left="-9999px",r.removeClass(c,"hide"),this.setPosition(t),r.addClass(c,"hide")):this.setPosition(t),a&&a(!t.fixedElement),this},setTitle:function(t){return t?(this.titleEl.innerHTML=t,r.removeClass(this.titleEl,"hide")):r.addClass(this.titleEl,"hide"),this},setContent:function(t){return t?(this.contentEl.innerHTML=t,r.removeClass(this.contentEl,"hide")):r.addClass(this.contentEl,"hide"),this},setNum:function(t){var e=r.getI18NString("stepNums");e&&t<e.length?t=e[t]:t+=1,this.numberEl.innerHTML=t},_setArrow:function(t){r.removeClass(this.arrowEl,"down up right left"),"top"===t?r.addClass(this.arrowEl,"down"):"bottom"===t?r.addClass(this.arrowEl,"up"):"left"===t?r.addClass(this.arrowEl,"right"):"right"===t&&r.addClass(this.arrowEl,"left")},_getArrowDirection:function(){return"top"===this.placement?"down":"bottom"===this.placement?"up":"left"===this.placement?"right":"right"===this.placement?"left":void 0},show:function(){var t=this,e="fade-in-"+this._getArrowDirection(),n=1e3;return r.removeClass(this.element,"hide"),r.addClass(this.element,e),setTimeout(function(){r.removeClass(t.element,"invisible")},50),setTimeout(function(){r.removeClass(t.element,e)},n),this.isShowing=!0,this},hide:function(t){var e=this.element;return t=r.valOrDefault(t,!0),e.style.top="",e.style.left="",t?(r.addClass(e,"hide"),r.removeClass(e,"invisible")):(r.removeClass(e,"hide"),r.addClass(e,"invisible")),r.removeClass(e,"animate fade-in-up fade-in-down fade-in-right fade-in-left"),this.isShowing=!1,this},_showButton:function(t,e,n){var a="hide";n&&(a="hide-all"),typeof e===p&&(e=!0),e?r.removeClass(t,a):r.addClass(t,a)},showPrevButton:function(t){this._showButton(this.prevBtnEl,t)},showNextButton:function(t){this._showButton(this.nextBtnEl,t)},showCloseButton:function(t){this._showButton(this.closeBtnEl,t)},destroy:function(){var t=this.element;t&&t.parentNode.removeChild(t),this.closeBtnEl&&r.removeEvtListener(this.closeBtnEl,"click",this._getCloseFn()),this.ctaBtnEl&&this.onCTA&&this._removeCTACallback()},updateButtons:function(){this.showPrevButton(this.opt.showPrevButton),this.showNextButton(this.opt.showNextButton),this.showCloseButton(this.opt.showCloseButton),this.prevBtnEl.innerHTML=r.getI18NString("prevBtn"),this.nextBtnEl.innerHTML=r.getI18NString("nextBtn"),this.doneBtnEl.innerHTML=r.getI18NString("doneBtn")},init:function(t){var e,n,a,s=y.createElement("div"),i=y.createElement("div"),o=y.createElement("div"),l=this,c=!1;this.element=s,this.containerEl=i,this.titleEl=y.createElement("h3"),this.contentEl=y.createElement("div"),r.addClass(this.titleEl,"hopscotch-title"),r.addClass(this.contentEl,"hopscotch-content"),a={showPrevButton:d.showPrevButton,showNextButton:d.showNextButton,bubbleWidth:d.bubbleWidth,bubblePadding:d.bubblePadding,arrowWidth:d.arrowWidth,showNumber:!0,isTourBubble:!0},t=typeof t===p?{}:t,r.extend(a,t),this.opt=a,s.className="hopscotch-bubble animated",i.className="hopscotch-bubble-container",a.isTourBubble||(s.className+=" hopscotch-callout"),a.isTourBubble?(this.numberEl=y.createElement("span"),this.numberEl.className="hopscotch-bubble-number",i.appendChild(this.numberEl)):r.addClass(s,"no-number"),o.appendChild(this.titleEl),o.appendChild(this.contentEl),o.className="hopscotch-bubble-content",i.appendChild(o),s.appendChild(i),this._initNavButtons(),this.initCloseButton(),this._initArrow(),e=function(){!c&&l.isShowing&&(c=!0,setTimeout(function(){l.setPosition(l.currStep),c=!1},100))},r.addEvtListener(window,"resize",e),this.hide(),r.documentIsReady()?y.body.appendChild(s):(y.addEventListener?(n=function(){y.removeEventListener("DOMContentLoaded",n),window.removeEventListener("load",n),y.body.appendChild(s)},y.addEventListener("DOMContentLoaded",n,!1)):(n=function(){"complete"===y.readyState&&(y.detachEvent("onreadystatechange",n),window.detachEvent("onload",n),y.body.appendChild(s))},y.attachEvent("onreadystatechange",n)),r.addEvtListener(window,"load",n))}},s=function(){var t={};this.createCallout=function(e){var n;if(!e.id)throw"Must specify a callout id.";if(t[e.id])throw"Callout by that id already exists. Please choose a unique id.";return e.showNextButton=e.showPrevButton=!1,e.isTourBubble=!1,n=new a(e),t[e.id]=n,e.target&&n.render(e,null,null,function(){n.show()}),n},this.getCallout=function(e){return t[e]},this.removeAllCallouts=function(){var e;for(e in t)t.hasOwnProperty(e)&&this.removeCallout(e)},this.removeCallout=function(e){var n=t[e];t[e]=null,n&&n.destroy()}},n=function(t){var e,n,i,u,h,f,v,b,w=this,_=function(t){return e||(e=new a(i)),t&&(r.extend(e.opt,{bubblePadding:k("bubblePadding"),bubbleWidth:k("bubbleWidth"),showNextButton:k("showNextButton"),showPrevButton:k("showPrevButton"),showCloseButton:k("showCloseButton"),arrowWidth:k("arrowWidth")}),e.updateButtons()),e},k=function(t){return"undefined"==typeof i?d[t]:r.valOrDefault(i[t],d[t])},$=function(){var t;return t=0>h||h>=u.steps.length?null:u.steps[h]},C=function(){w.nextStep()},D=function(t){var e,n,a,s,i,o,l=_(),c=l.element,u=r.getPixelValue(c.style.top),d=u+r.getPixelValue(c.offsetHeight),h=r.getStepTarget($()),f=h.getBoundingClientRect(),g=f.top+r.getScrollTop(),v=f.bottom+r.getScrollTop(),b=g>u?u:g,w=d>v?d:v,C=r.getScrollTop(),D=C+r.getWindowHeight(),x=b-k("scrollTopMargin");b>=C&&(b<=C+k("scrollTopMargin")||D>=w)?t&&t():k("smoothScroll")?typeof YAHOO!==p&&typeof YAHOO.env!==p&&typeof YAHOO.env.ua!==p&&typeof YAHOO.util!==p&&typeof YAHOO.util.Scroll!==p?(e=YAHOO.env.ua.webkit?y.body:y.documentElement,a=YAHOO.util.Easing?YAHOO.util.Easing.easeOut:void 0,n=new YAHOO.util.Scroll(e,{scroll:{to:[0,x]}},k("scrollDuration")/1e3,a),n.onComplete.subscribe(t),n.animate()):m?jQuery("body, html").animate({scrollTop:x},k("scrollDuration"),t):(0>x&&(x=0),s=C>b?-1:1,i=Math.abs(C-x)/(k("scrollDuration")/10),(o=function(){var e=r.getScrollTop(),n=e+s*i;return s>0&&n>=x||0>s&&x>=n?(n=x,t&&t(),void window.scrollTo(0,n)):(window.scrollTo(0,n),r.getScrollTop()===e?void(t&&t()):void setTimeout(o,10))})()):(window.scrollTo(0,x),t&&t())},x=function(t,e){var n,a,s;h+t>=0&&h+t<u.steps.length?(h+=t,a=$(),s=function(){n=r.getStepTarget(a),n?e(h):(r.invokeEventCallbacks("error"),x(t,e))},a.delay?setTimeout(s,a.delay):s()):e(-1)},M=function(t,e){var n,a,s,i,o=_(),l=this;if(o.hide()._removeCTACallback(),t=r.valOrDefault(t,!0),n=$(),a=n,s=e>0?a.multipage:h>0&&u.steps[h-1].multipage,i=function(n){var i;return-1===n?this.endTour(!0):(t&&(i=e>0?r.invokeEventCallbacks("next",a.onNext):r.invokeEventCallbacks("prev",a.onPrev)),s?void r.setState(k("cookieName"),u.id+":"+h,1):(i=r.valOrDefault(i,!0),void(i?this.showStep(n):this.endTour(!1))))},!s&&k("skipIfNoElement"))x(e,function(t){i.call(l,t)});else if(h+e>=0&&h+e<u.steps.length){if(h+=e,n=$(),!r.getStepTarget(n)&&!s)return r.invokeEventCallbacks("error"),this.endTour(!0,!1);i.call(this,h)}return this},T=function(t){var e,n,a,s={};for(e in t)t.hasOwnProperty(e)&&"id"!==e&&"steps"!==e&&(s[e]=t[e]);return b.call(this,s,!0),n=r.getState(k("cookieName")),n&&(a=n.split(":"),f=a[0],v=a[1],v=parseInt(v,10)),this},S=function(t,e){var n,a;if(h=t||0,n=$(),a=r.getStepTarget(n))return void e(h);if(!a){if(r.invokeEventCallbacks("error"),k("skipIfNoElement"))return void x(1,e);h=-1,e(h)}},Y=function(t){var e,n,a=u.steps[t],s=u.steps,i=s.length,o=u.id+":"+t,l=_(),c=r.getStepTarget(a);n=function(){l.show(),r.invokeEventCallbacks("show",a.onShow)},h=t,l.hide(!1),e=t===i-1,l.render(a,t,e,function(t){t?D(n):n(),a.nextOnTargetClick&&r.addEvtListener(c,"click",C)}),r.setState(k("cookieName"),o,1)},E=function(t){t&&this.configure(t)};this.getCalloutManager=function(){return typeof n===p&&(n=new s),n},this.startTour=function(t,e){var n,a=this;if(u||(u=t,T.call(this,t)),typeof e!==p){if(e>=u.steps.length)throw"Specified step number out of bounds.";h=e}return r.documentIsReady()?(h||u.id!==f||typeof v===p?h||(h=0):h=v,S(h,function(t){var e=-1!==t&&r.getStepTarget(u.steps[t]);return e?(r.invokeEventCallbacks("start"),n=_(),n.hide(!1),a.isActive=!0,void(r.getStepTarget($())?a.showStep(t):(r.invokeEventCallbacks("error"),k("skipIfNoElement")&&a.nextStep(!1)))):void a.endTour(!1,!1)}),this):(g=!0,this)},this.showStep=function(t){var e=u.steps[t];return e.delay?setTimeout(function(){Y(t)},e.delay):Y(t),this},this.prevStep=function(t){return M.call(this,t,-1),this},this.nextStep=function(t){var e=$(),n=r.getStepTarget(e);return e.nextOnTargetClick&&r.removeEvtListener(n,"click",C),M.call(this,t,1),this},this.endTour=function(t,e){var n=_();return t=r.valOrDefault(t,!0),e=r.valOrDefault(e,!0),h=0,v=void 0,n.hide(),t&&r.clearState(k("cookieName")),this.isActive&&(this.isActive=!1,u&&e&&r.invokeEventCallbacks("end")),this.removeCallbacks(null,!0),this.resetDefaultOptions(),u=null,this},this.getCurrTour=function(){return u},this.getCurrTarget=function(){return r.getStepTarget($())},this.getCurrStepNum=function(){return h},this.listen=function(t,e,n){return t&&l[t].push({cb:e,fromTour:n}),this},this.unlisten=function(t,e){var n,a,s=l[t];for(n=0,a=s.length;a>n;++n)s[n]===e&&s.splice(n,1);return this},this.removeCallbacks=function(t,e){var n,a,s,i;for(i in l)if(!t||t===i)if(e)for(n=l[i],a=0,s=n.length;s>a;++a)n[a].fromTour&&(n.splice(a--,1),--s);else l[i]=[];return this},this.registerHelper=function(t,e){"string"==typeof t&&"function"==typeof e&&(c[t]=e)},this.unregisterHelper=function(t){c[t]=null},this.invokeHelper=function(t){var e,n,a=[];for(e=1,n=arguments.length;n>e;++e)a.push(arguments[e]);c[t]&&c[t].call(null,a)},this.setCookieName=function(t){return i.cookieName=t,this},this.resetDefaultOptions=function(){return i={},this},this.resetDefaultI18N=function(){return o={},this},this.getState=function(){return r.getState(k("cookieName"))},b=function(t,e){var n,a,s,l,c=["next","prev","start","end","show","error","close"];for(i||this.resetDefaultOptions(),r.extend(i,t),t&&r.extend(o,t.i18n),s=0,l=c.length;l>s;++s)a="on"+c[s].charAt(0).toUpperCase()+c[s].substring(1),t[a]&&this.listen(c[s],t[a],e);return n=_(!0),this},this.configure=function(t){return b.call(this,t,!1)},E.call(this,t)},f=new n,t[e]=f)}(window,"hopscotch"),/*!
18
+ * jQuery Cookie Plugin v1.4.0
19
+ * https://github.com/carhartl/jquery-cookie
20
+ *
21
+ * Copyright 2013 Klaus Hartl
22
+ * Released under the MIT license
23
+ */
24
+ function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(t){function e(t){return r.raw?t:encodeURIComponent(t)}function n(t){return r.raw?t:decodeURIComponent(t)}function a(t){return e(r.json?JSON.stringify(t):String(t))}function s(t){0===t.indexOf('"')&&(t=t.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return t=decodeURIComponent(t.replace(o," ")),r.json?JSON.parse(t):t}catch(e){}}function i(e,n){var a=r.raw?e:s(e);return t.isFunction(n)?n(a):a}var o=/\+/g,r=t.cookie=function(s,o,l){if(void 0!==o&&!t.isFunction(o)){if(l=t.extend({},r.defaults,l),"number"==typeof l.expires){var c=l.expires,u=l.expires=new Date;u.setTime(+u+864e5*c)}return document.cookie=[e(s),"=",a(o),l.expires?"; expires="+l.expires.toUTCString():"",l.path?"; path="+l.path:"",l.domain?"; domain="+l.domain:"",l.secure?"; secure":""].join("")}for(var d=s?void 0:{},h=document.cookie?document.cookie.split("; "):[],f=0,p=h.length;p>f;f++){var g=h[f].split("="),m=n(g.shift()),v=g.join("=");if(s&&s===m){d=i(v,o);break}s||void 0===(v=i(v))||(d[m]=v)}return d};r.defaults={},t.removeCookie=function(e,n){return void 0===t.cookie(e)?!1:(t.cookie(e,"",t.extend({},n,{expires:-1})),!t.cookie(e))}}),/**
25
+ * jquery.mask.js
26
+ * @version: v1.6.4
27
+ * @author: Igor Escobar
28
+ *
29
+ * Created by Igor Escobar on 2012-03-10. Please report any bug at http://blog.igorescobar.com
30
+ *
31
+ * Copyright (c) 2012 Igor Escobar http://blog.igorescobar.com
32
+ *
33
+ * The MIT License (http://www.opensource.org/licenses/mit-license.php)
34
+ *
35
+ * Permission is hereby granted, free of charge, to any person
36
+ * obtaining a copy of this software and associated documentation
37
+ * files (the "Software"), to deal in the Software without
38
+ * restriction, including without limitation the rights to use,
39
+ * copy, modify, merge, publish, distribute, sublicense, and/or sell
40
+ * copies of the Software, and to permit persons to whom the
41
+ * Software is furnished to do so, subject to the following
42
+ * conditions:
43
+ *
44
+ * The above copyright notice and this permission notice shall be
45
+ * included in all copies or substantial portions of the Software.
46
+ *
47
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
48
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
49
+ * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
50
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
51
+ * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
52
+ * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
53
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
54
+ * OTHER DEALINGS IN THE SOFTWARE.
55
+ */
56
+ function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t(window.jQuery||window.Zepto)}(function(t){"use strict";var e=function(e,n,a){var s,i=this;e=t(e),n="function"==typeof n?n(e.val(),void 0,e,a):n,i.init=function(){a=a||{},i.byPassKeys=[9,16,17,18,36,37,38,39,40,91],i.translation={0:{pattern:/\d/},9:{pattern:/\d/,optional:!0},"#":{pattern:/\d/,recursive:!0},A:{pattern:/[a-zA-Z0-9]/},S:{pattern:/[a-zA-Z]/}},i.translation=t.extend({},i.translation,a.translation),i=t.extend(!0,{},i,a),e.each(function(){a.maxlength!==!1&&e.attr("maxlength",n.length),a.placeholder&&e.attr("placeholder",a.placeholder),e.attr("autocomplete","off"),o.destroyEvents(),o.events();var t=o.getCaret();o.val(o.getMasked()),o.setCaret(t+o.getMaskCharactersBeforeCount(t,!0))})};var o={getCaret:function(){var t,n=0,a=e.get(0),s=document.selection,i=a.selectionStart;return s&&!~navigator.appVersion.indexOf("MSIE 10")?(t=s.createRange(),t.moveStart("character",e.is("input")?-e.val().length:-e.text().length),n=t.text.length):(i||"0"===i)&&(n=i),n},setCaret:function(t){if(e.is(":focus")){var n,a=e.get(0);a.setSelectionRange?a.setSelectionRange(t,t):a.createTextRange&&(n=a.createTextRange(),n.collapse(!0),n.moveEnd("character",t),n.moveStart("character",t),n.select())}},events:function(){e.on("keydown.mask",function(){s=o.val()}),e.on("keyup.mask",o.behaviour),e.on("paste.mask drop.mask",function(){setTimeout(function(){e.keydown().keyup()},100)}),e.on("change.mask",function(){e.data("changeCalled",!0)}),e.on("blur.mask",function(e){var n=t(e.target);n.prop("defaultValue")!==n.val()&&(n.prop("defaultValue",n.val()),n.data("changeCalled")||n.trigger("change")),n.data("changeCalled",!1)}),e.on("focusout.mask",function(){a.clearIfNotMatch&&o.val().length<n.length&&o.val("")})},destroyEvents:function(){e.off("keydown.mask keyup.mask paste.mask drop.mask change.mask blur.mask focusout.mask").removeData("changeCalled")},val:function(t){var n=e.is("input");return arguments.length>0?n?e.val(t):e.text(t):n?e.val():e.text()},getMaskCharactersBeforeCount:function(t,e){for(var a=0,s=0,o=n.length;o>s&&t>s;s++)i.translation[n.charAt(s)]||(t=e?t+1:t,a++);return a},determineCaretPos:function(t,e,a,s){var r=i.translation[n.charAt(Math.min(t-1,n.length-1))];return r?Math.min(t+a-e-s,a):o.determineCaretPos(t+1,e,a,s)},behaviour:function(e){e=e||window.event;var n=e.keyCode||e.which;if(-1===t.inArray(n,i.byPassKeys)){var a=o.getCaret(),s=o.val(),r=s.length,l=r>a,c=o.getMasked(),u=c.length,d=o.getMaskCharactersBeforeCount(u-1)-o.getMaskCharactersBeforeCount(r-1);return c!==s&&o.val(c),!l||65===n&&e.ctrlKey||(8!==n&&46!==n&&(a=o.determineCaretPos(a,r,u,d)),o.setCaret(a)),o.callbacks(e)}},getMasked:function(t){var e,s,r=[],l=o.val(),c=0,u=n.length,d=0,h=l.length,f=1,p="push",g=-1;for(a.reverse?(p="unshift",f=-1,e=0,c=u-1,d=h-1,s=function(){return c>-1&&d>-1}):(e=u-1,s=function(){return u>c&&h>d});s();){var m=n.charAt(c),v=l.charAt(d),y=i.translation[m];y?(v.match(y.pattern)?(r[p](v),y.recursive&&(-1===g?g=c:c===e&&(c=g-f),e===g&&(c-=f)),c+=f):y.optional&&(c+=f,d-=f),d+=f):(t||r[p](m),v===m&&(d+=f),c+=f)}var b=n.charAt(e);return u!==h+1||i.translation[b]||r.push(b),r.join("")},callbacks:function(t){var i=o.val(),r=o.val()!==s;r===!0&&"function"==typeof a.onChange&&a.onChange(i,t,e,a),r===!0&&"function"==typeof a.onKeyPress&&a.onKeyPress(i,t,e,a),"function"==typeof a.onComplete&&i.length===n.length&&a.onComplete(i,t,e,a)}};i.remove=function(){var t=o.getCaret(),e=o.getMaskCharactersBeforeCount(t);o.destroyEvents(),o.val(i.getCleanVal()).removeAttr("maxlength"),o.setCaret(t-e)},i.getCleanVal=function(){return o.getMasked(!0)},i.init()};t.fn.mask=function(n,a){return this.unmask(),this.each(function(){t(this).data("mask",new e(this,n,a))})},t.fn.unmask=function(){return this.each(function(){try{t(this).data("mask").remove()}catch(e){}})},t.fn.cleanVal=function(){return t(this).data("mask").getCleanVal()},t("*[data-mask]").each(function(){var e=t(this),n={},a="data-mask-";"true"===e.attr(a+"reverse")&&(n.reverse=!0),"false"===e.attr(a+"maxlength")&&(n.maxlength=!1),"true"===e.attr(a+"clearifnotmatch")&&(n.clearIfNotMatch=!0),e.mask(e.attr("data-mask"),n)})}),
57
+ //! moment.js
58
+ //! version : 2.5.1
59
+ //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
60
+ //! license : MIT
61
+ //! momentjs.com
62
+ function(t){function e(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1}}function n(t,e){return function(n){return u(t.call(this,n),e)}}function a(t,e){return function(n){return this.lang().ordinal(t.call(this,n),e)}}function s(){}function i(t){k(t),r(this,t)}function o(t){var e=m(t),n=e.year||0,a=e.month||0,s=e.week||0,i=e.day||0,o=e.hour||0,r=e.minute||0,l=e.second||0,c=e.millisecond||0;this._milliseconds=+c+1e3*l+6e4*r+36e5*o,this._days=+i+7*s,this._months=+a+12*n,this._data={},this._bubble()}function r(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return e.hasOwnProperty("toString")&&(t.toString=e.toString),e.hasOwnProperty("valueOf")&&(t.valueOf=e.valueOf),t}function l(t){var e,n={};for(e in t)t.hasOwnProperty(e)&&mt.hasOwnProperty(e)&&(n[e]=t[e]);return n}function c(t){return 0>t?Math.ceil(t):Math.floor(t)}function u(t,e,n){for(var a=""+Math.abs(t),s=t>=0;a.length<e;)a="0"+a;return(s?n?"+":"":"-")+a}function d(t,e,n,a){var s,i,o=e._milliseconds,r=e._days,l=e._months;o&&t._d.setTime(+t._d+o*n),(r||l)&&(s=t.minute(),i=t.hour()),r&&t.date(t.date()+r*n),l&&t.month(t.month()+l*n),o&&!a&&at.updateOffset(t),(r||l)&&(t.minute(s),t.hour(i))}function h(t){return"[object Array]"===Object.prototype.toString.call(t)}function f(t){return"[object Date]"===Object.prototype.toString.call(t)||t instanceof Date}function p(t,e,n){var a,s=Math.min(t.length,e.length),i=Math.abs(t.length-e.length),o=0;for(a=0;s>a;a++)(n&&t[a]!==e[a]||!n&&y(t[a])!==y(e[a]))&&o++;return o+i}function g(t){if(t){var e=t.toLowerCase().replace(/(.)s$/,"$1");t=Gt[t]||Ut[e]||e}return t}function m(t){var e,n,a={};for(n in t)t.hasOwnProperty(n)&&(e=g(n),e&&(a[e]=t[n]));return a}function v(e){var n,a;if(0===e.indexOf("week"))n=7,a="day";else{if(0!==e.indexOf("month"))return;n=12,a="month"}at[e]=function(s,i){var o,r,l=at.fn._lang[e],c=[];if("number"==typeof s&&(i=s,s=t),r=function(t){var e=at().utc().set(a,t);return l.call(at.fn._lang,e,s||"")},null!=i)return r(i);for(o=0;n>o;o++)c.push(r(o));return c}}function y(t){var e=+t,n=0;return 0!==e&&isFinite(e)&&(n=e>=0?Math.floor(e):Math.ceil(e)),n}function b(t,e){return new Date(Date.UTC(t,e+1,0)).getUTCDate()}function w(t){return _(t)?366:365}function _(t){return t%4===0&&t%100!==0||t%400===0}function k(t){var e;t._a&&-2===t._pf.overflow&&(e=t._a[ct]<0||t._a[ct]>11?ct:t._a[ut]<1||t._a[ut]>b(t._a[lt],t._a[ct])?ut:t._a[dt]<0||t._a[dt]>23?dt:t._a[ht]<0||t._a[ht]>59?ht:t._a[ft]<0||t._a[ft]>59?ft:t._a[pt]<0||t._a[pt]>999?pt:-1,t._pf._overflowDayOfYear&&(lt>e||e>ut)&&(e=ut),t._pf.overflow=e)}function $(t){return null==t._isValid&&(t._isValid=!isNaN(t._d.getTime())&&t._pf.overflow<0&&!t._pf.empty&&!t._pf.invalidMonth&&!t._pf.nullInput&&!t._pf.invalidFormat&&!t._pf.userInvalidated,t._strict&&(t._isValid=t._isValid&&0===t._pf.charsLeftOver&&0===t._pf.unusedTokens.length)),t._isValid}function C(t){return t?t.toLowerCase().replace("_","-"):t}function D(t,e){return e._isUTC?at(t).zone(e._offset||0):at(t).local()}function x(t,e){return e.abbr=t,gt[t]||(gt[t]=new s),gt[t].set(e),gt[t]}function M(t){delete gt[t]}function T(t){var e,n,a,s,i=0,o=function(t){if(!gt[t]&&vt)try{require("./lang/"+t)}catch(e){}return gt[t]};if(!t)return at.fn._lang;if(!h(t)){if(n=o(t))return n;t=[t]}for(;i<t.length;){for(s=C(t[i]).split("-"),e=s.length,a=C(t[i+1]),a=a?a.split("-"):null;e>0;){if(n=o(s.slice(0,e).join("-")))return n;if(a&&a.length>=e&&p(s,a,!0)>=e-1)break;e--}i++}return at.fn._lang}function S(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function Y(t){var e,n,a=t.match(_t);for(e=0,n=a.length;n>e;e++)a[e]=qt[a[e]]?qt[a[e]]:S(a[e]);return function(s){var i="";for(e=0;n>e;e++)i+=a[e]instanceof Function?a[e].call(s,t):a[e];return i}}function E(t,e){return t.isValid()?(e=O(e,t.lang()),Vt[e]||(Vt[e]=Y(e)),Vt[e](t)):t.lang().invalidDate()}function O(t,e){function n(t){return e.longDateFormat(t)||t}var a=5;for(kt.lastIndex=0;a>=0&&kt.test(t);)t=t.replace(kt,n),kt.lastIndex=0,a-=1;return t}function B(t,e){var n,a=e._strict;switch(t){case"DDDD":return Nt;case"YYYY":case"GGGG":case"gggg":return a?At:Dt;case"Y":case"G":case"g":return Lt;case"YYYYYY":case"YYYYY":case"GGGGG":case"ggggg":return a?Pt:xt;case"S":if(a)return Ot;case"SS":if(a)return Bt;case"SSS":if(a)return Nt;case"DDD":return Ct;case"MMM":case"MMMM":case"dd":case"ddd":case"dddd":return Tt;case"a":case"A":return T(e._l)._meridiemParse;case"X":return Et;case"Z":case"ZZ":return St;case"T":return Yt;case"SSSS":return Mt;case"MM":case"DD":case"YY":case"GG":case"gg":case"HH":case"hh":case"mm":case"ss":case"ww":case"WW":return a?Bt:$t;case"M":case"D":case"d":case"H":case"h":case"m":case"s":case"w":case"W":case"e":case"E":return $t;default:return n=new RegExp(H(j(t.replace("\\","")),"i"))}}function N(t){t=t||"";var e=t.match(St)||[],n=e[e.length-1]||[],a=(n+"").match(Ft)||["-",0,0],s=+(60*a[1])+y(a[2]);return"+"===a[0]?-s:s}function A(t,e,n){var a,s=n._a;switch(t){case"M":case"MM":null!=e&&(s[ct]=y(e)-1);break;case"MMM":case"MMMM":a=T(n._l).monthsParse(e),null!=a?s[ct]=a:n._pf.invalidMonth=e;break;case"D":case"DD":null!=e&&(s[ut]=y(e));break;case"DDD":case"DDDD":null!=e&&(n._dayOfYear=y(e));break;case"YY":s[lt]=y(e)+(y(e)>68?1900:2e3);break;case"YYYY":case"YYYYY":case"YYYYYY":s[lt]=y(e);break;case"a":case"A":n._isPm=T(n._l).isPM(e);break;case"H":case"HH":case"h":case"hh":s[dt]=y(e);break;case"m":case"mm":s[ht]=y(e);break;case"s":case"ss":s[ft]=y(e);break;case"S":case"SS":case"SSS":case"SSSS":s[pt]=y(1e3*("0."+e));break;case"X":n._d=new Date(1e3*parseFloat(e));break;case"Z":case"ZZ":n._useUTC=!0,n._tzm=N(e);break;case"w":case"ww":case"W":case"WW":case"d":case"dd":case"ddd":case"dddd":case"e":case"E":t=t.substr(0,1);case"gg":case"gggg":case"GG":case"GGGG":case"GGGGG":t=t.substr(0,2),e&&(n._w=n._w||{},n._w[t]=e)}}function P(t){var e,n,a,s,i,o,r,l,c,u,d=[];if(!t._d){for(a=I(t),t._w&&null==t._a[ut]&&null==t._a[ct]&&(i=function(e){var n=parseInt(e,10);return e?e.length<3?n>68?1900+n:2e3+n:n:null==t._a[lt]?at().weekYear():t._a[lt]},o=t._w,null!=o.GG||null!=o.W||null!=o.E?r=Q(i(o.GG),o.W||1,o.E,4,1):(l=T(t._l),c=null!=o.d?V(o.d,l):null!=o.e?parseInt(o.e,10)+l._week.dow:0,u=parseInt(o.w,10)||1,null!=o.d&&c<l._week.dow&&u++,r=Q(i(o.gg),u,c,l._week.doy,l._week.dow)),t._a[lt]=r.year,t._dayOfYear=r.dayOfYear),t._dayOfYear&&(s=null==t._a[lt]?a[lt]:t._a[lt],t._dayOfYear>w(s)&&(t._pf._overflowDayOfYear=!0),n=U(s,0,t._dayOfYear),t._a[ct]=n.getUTCMonth(),t._a[ut]=n.getUTCDate()),e=0;3>e&&null==t._a[e];++e)t._a[e]=d[e]=a[e];for(;7>e;e++)t._a[e]=d[e]=null==t._a[e]?2===e?1:0:t._a[e];d[dt]+=y((t._tzm||0)/60),d[ht]+=y((t._tzm||0)%60),t._d=(t._useUTC?U:G).apply(null,d)}}function L(t){var e;t._d||(e=m(t._i),t._a=[e.year,e.month,e.day,e.hour,e.minute,e.second,e.millisecond],P(t))}function I(t){var e=new Date;return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}function W(t){t._a=[],t._pf.empty=!0;var e,n,a,s,i,o=T(t._l),r=""+t._i,l=r.length,c=0;for(a=O(t._f,o).match(_t)||[],e=0;e<a.length;e++)s=a[e],n=(r.match(B(s,t))||[])[0],n&&(i=r.substr(0,r.indexOf(n)),i.length>0&&t._pf.unusedInput.push(i),r=r.slice(r.indexOf(n)+n.length),c+=n.length),qt[s]?(n?t._pf.empty=!1:t._pf.unusedTokens.push(s),A(s,n,t)):t._strict&&!n&&t._pf.unusedTokens.push(s);t._pf.charsLeftOver=l-c,r.length>0&&t._pf.unusedInput.push(r),t._isPm&&t._a[dt]<12&&(t._a[dt]+=12),t._isPm===!1&&12===t._a[dt]&&(t._a[dt]=0),P(t),k(t)}function j(t){return t.replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,n,a,s){return e||n||a||s})}function H(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function F(t){var n,a,s,i,o;if(0===t._f.length)return t._pf.invalidFormat=!0,void(t._d=new Date(NaN));for(i=0;i<t._f.length;i++)o=0,n=r({},t),n._pf=e(),n._f=t._f[i],W(n),$(n)&&(o+=n._pf.charsLeftOver,o+=10*n._pf.unusedTokens.length,n._pf.score=o,(null==s||s>o)&&(s=o,a=n));r(t,a||n)}function R(t){var e,n,a=t._i,s=It.exec(a);if(s){for(t._pf.iso=!0,e=0,n=jt.length;n>e;e++)if(jt[e][1].exec(a)){t._f=jt[e][0]+(s[6]||" ");break}for(e=0,n=Ht.length;n>e;e++)if(Ht[e][1].exec(a)){t._f+=Ht[e][0];break}a.match(St)&&(t._f+="Z"),W(t)}else t._d=new Date(a)}function z(e){var n=e._i,a=yt.exec(n);n===t?e._d=new Date:a?e._d=new Date(+a[1]):"string"==typeof n?R(e):h(n)?(e._a=n.slice(0),P(e)):f(n)?e._d=new Date(+n):"object"==typeof n?L(e):e._d=new Date(n)}function G(t,e,n,a,s,i,o){var r=new Date(t,e,n,a,s,i,o);return 1970>t&&r.setFullYear(t),r}function U(t){var e=new Date(Date.UTC.apply(null,arguments));return 1970>t&&e.setUTCFullYear(t),e}function V(t,e){if("string"==typeof t)if(isNaN(t)){if(t=e.weekdaysParse(t),"number"!=typeof t)return null}else t=parseInt(t,10);return t}function Z(t,e,n,a,s){return s.relativeTime(e||1,!!n,t,a)}function J(t,e,n){var a=rt(Math.abs(t)/1e3),s=rt(a/60),i=rt(s/60),o=rt(i/24),r=rt(o/365),l=45>a&&["s",a]||1===s&&["m"]||45>s&&["mm",s]||1===i&&["h"]||22>i&&["hh",i]||1===o&&["d"]||25>=o&&["dd",o]||45>=o&&["M"]||345>o&&["MM",rt(o/30)]||1===r&&["y"]||["yy",r];return l[2]=e,l[3]=t>0,l[4]=n,Z.apply({},l)}function q(t,e,n){var a,s=n-e,i=n-t.day();return i>s&&(i-=7),s-7>i&&(i+=7),a=at(t).add("d",i),{week:Math.ceil(a.dayOfYear()/7),year:a.year()}}function Q(t,e,n,a,s){var i,o,r=U(t,0,1).getUTCDay();return n=null!=n?n:s,i=s-r+(r>a?7:0)-(s>r?7:0),o=7*(e-1)+(n-s)+i+1,{year:o>0?t:t-1,dayOfYear:o>0?o:w(t-1)+o}}function X(t){var e=t._i,n=t._f;return null===e?at.invalid({nullInput:!0}):("string"==typeof e&&(t._i=e=T().preparse(e)),at.isMoment(e)?(t=l(e),t._d=new Date(+e._d)):n?h(n)?F(t):W(t):z(t),new i(t))}function K(t,e){at.fn[t]=at.fn[t+"s"]=function(t){var n=this._isUTC?"UTC":"";return null!=t?(this._d["set"+n+e](t),at.updateOffset(this),this):this._d["get"+n+e]()}}function tt(t){at.duration.fn[t]=function(){return this._data[t]}}function et(t,e){at.duration.fn["as"+t]=function(){return+this/e}}function nt(t){var e=!1,n=at;"undefined"==typeof ender&&(t?(ot.moment=function(){return!e&&console&&console.warn&&(e=!0,console.warn("Accessing Moment through the global scope is deprecated, and will be removed in an upcoming release.")),n.apply(null,arguments)},r(ot.moment,n)):ot.moment=at)}for(var at,st,it="2.5.1",ot=this,rt=Math.round,lt=0,ct=1,ut=2,dt=3,ht=4,ft=5,pt=6,gt={},mt={_isAMomentObject:null,_i:null,_f:null,_l:null,_strict:null,_isUTC:null,_offset:null,_pf:null,_lang:null},vt="undefined"!=typeof module&&module.exports&&"undefined"!=typeof require,yt=/^\/?Date\((\-?\d+)/i,bt=/(\-)?(?:(\d*)\.)?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?)?/,wt=/^(-)?P(?:(?:([0-9,.]*)Y)?(?:([0-9,.]*)M)?(?:([0-9,.]*)D)?(?:T(?:([0-9,.]*)H)?(?:([0-9,.]*)M)?(?:([0-9,.]*)S)?)?|([0-9,.]*)W)$/,_t=/(\[[^\[]*\])|(\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|mm?|ss?|S{1,4}|X|zz?|ZZ?|.)/g,kt=/(\[[^\[]*\])|(\\)?(LT|LL?L?L?|l{1,4})/g,$t=/\d\d?/,Ct=/\d{1,3}/,Dt=/\d{1,4}/,xt=/[+\-]?\d{1,6}/,Mt=/\d+/,Tt=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,St=/Z|[\+\-]\d\d:?\d\d/gi,Yt=/T/i,Et=/[\+\-]?\d+(\.\d{1,3})?/,Ot=/\d/,Bt=/\d\d/,Nt=/\d{3}/,At=/\d{4}/,Pt=/[+-]?\d{6}/,Lt=/[+-]?\d+/,It=/^\s*(?:[+-]\d{6}|\d{4})-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Wt="YYYY-MM-DDTHH:mm:ssZ",jt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d{2}-\d{2}/],["YYYY-MM-DD",/\d{4}-\d{2}-\d{2}/],["GGGG-[W]WW-E",/\d{4}-W\d{2}-\d/],["GGGG-[W]WW",/\d{4}-W\d{2}/],["YYYY-DDD",/\d{4}-\d{3}/]],Ht=[["HH:mm:ss.SSSS",/(T| )\d\d:\d\d:\d\d\.\d{1,3}/],["HH:mm:ss",/(T| )\d\d:\d\d:\d\d/],["HH:mm",/(T| )\d\d:\d\d/],["HH",/(T| )\d\d/]],Ft=/([\+\-]|\d\d)/gi,Rt="Date|Hours|Minutes|Seconds|Milliseconds".split("|"),zt={Milliseconds:1,Seconds:1e3,Minutes:6e4,Hours:36e5,Days:864e5,Months:2592e6,Years:31536e6},Gt={ms:"millisecond",s:"second",m:"minute",h:"hour",d:"day",D:"date",w:"week",W:"isoWeek",M:"month",y:"year",DDD:"dayOfYear",e:"weekday",E:"isoWeekday",gg:"weekYear",GG:"isoWeekYear"},Ut={dayofyear:"dayOfYear",isoweekday:"isoWeekday",isoweek:"isoWeek",weekyear:"weekYear",isoweekyear:"isoWeekYear"},Vt={},Zt="DDD w W M D d".split(" "),Jt="M D H h m s w W".split(" "),qt={M:function(){return this.month()+1},MMM:function(t){return this.lang().monthsShort(this,t)},MMMM:function(t){return this.lang().months(this,t)},D:function(){return this.date()},DDD:function(){return this.dayOfYear()},d:function(){return this.day()},dd:function(t){return this.lang().weekdaysMin(this,t)},ddd:function(t){return this.lang().weekdaysShort(this,t)},dddd:function(t){return this.lang().weekdays(this,t)},w:function(){return this.week()},W:function(){return this.isoWeek()},YY:function(){return u(this.year()%100,2)},YYYY:function(){return u(this.year(),4)},YYYYY:function(){return u(this.year(),5)},YYYYYY:function(){var t=this.year(),e=t>=0?"+":"-";return e+u(Math.abs(t),6)},gg:function(){return u(this.weekYear()%100,2)},gggg:function(){return u(this.weekYear(),4)},ggggg:function(){return u(this.weekYear(),5)},GG:function(){return u(this.isoWeekYear()%100,2)},GGGG:function(){return u(this.isoWeekYear(),4)},GGGGG:function(){return u(this.isoWeekYear(),5)},e:function(){return this.weekday()},E:function(){return this.isoWeekday()},a:function(){return this.lang().meridiem(this.hours(),this.minutes(),!0)},A:function(){return this.lang().meridiem(this.hours(),this.minutes(),!1)},H:function(){return this.hours()},h:function(){return this.hours()%12||12},m:function(){return this.minutes()},s:function(){return this.seconds()},S:function(){return y(this.milliseconds()/100)},SS:function(){return u(y(this.milliseconds()/10),2)},SSS:function(){return u(this.milliseconds(),3)},SSSS:function(){return u(this.milliseconds(),3)},Z:function(){var t=-this.zone(),e="+";return 0>t&&(t=-t,e="-"),e+u(y(t/60),2)+":"+u(y(t)%60,2)},ZZ:function(){var t=-this.zone(),e="+";return 0>t&&(t=-t,e="-"),e+u(y(t/60),2)+u(y(t)%60,2)},z:function(){return this.zoneAbbr()},zz:function(){return this.zoneName()},X:function(){return this.unix()},Q:function(){return this.quarter()}},Qt=["months","monthsShort","weekdays","weekdaysShort","weekdaysMin"];Zt.length;)st=Zt.pop(),qt[st+"o"]=a(qt[st],st);for(;Jt.length;)st=Jt.pop(),qt[st+st]=n(qt[st],2);for(qt.DDDD=n(qt.DDD,3),r(s.prototype,{set:function(t){var e,n;for(n in t)e=t[n],"function"==typeof e?this[n]=e:this["_"+n]=e},_months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),months:function(t){return this._months[t.month()]},_monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),monthsShort:function(t){return this._monthsShort[t.month()]},monthsParse:function(t){var e,n,a;for(this._monthsParse||(this._monthsParse=[]),e=0;12>e;e++)if(this._monthsParse[e]||(n=at.utc([2e3,e]),a="^"+this.months(n,"")+"|^"+this.monthsShort(n,""),this._monthsParse[e]=new RegExp(a.replace(".",""),"i")),this._monthsParse[e].test(t))return e},_weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdays:function(t){return this._weekdays[t.day()]},_weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysShort:function(t){return this._weekdaysShort[t.day()]},_weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),weekdaysMin:function(t){return this._weekdaysMin[t.day()]},weekdaysParse:function(t){var e,n,a;for(this._weekdaysParse||(this._weekdaysParse=[]),e=0;7>e;e++)if(this._weekdaysParse[e]||(n=at([2e3,1]).day(e),a="^"+this.weekdays(n,"")+"|^"+this.weekdaysShort(n,"")+"|^"+this.weekdaysMin(n,""),this._weekdaysParse[e]=new RegExp(a.replace(".",""),"i")),this._weekdaysParse[e].test(t))return e},_longDateFormat:{LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D YYYY",LLL:"MMMM D YYYY LT",LLLL:"dddd, MMMM D YYYY LT"},longDateFormat:function(t){var e=this._longDateFormat[t];return!e&&this._longDateFormat[t.toUpperCase()]&&(e=this._longDateFormat[t.toUpperCase()].replace(/MMMM|MM|DD|dddd/g,function(t){return t.slice(1)}),this._longDateFormat[t]=e),e},isPM:function(t){return"p"===(t+"").toLowerCase().charAt(0)},_meridiemParse:/[ap]\.?m?\.?/i,meridiem:function(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"},_calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},calendar:function(t,e){var n=this._calendar[t];return"function"==typeof n?n.apply(e):n},_relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},relativeTime:function(t,e,n,a){var s=this._relativeTime[n];return"function"==typeof s?s(t,e,n,a):s.replace(/%d/i,t)},pastFuture:function(t,e){var n=this._relativeTime[t>0?"future":"past"];return"function"==typeof n?n(e):n.replace(/%s/i,e)},ordinal:function(t){return this._ordinal.replace("%d",t)},_ordinal:"%d",preparse:function(t){return t},postformat:function(t){return t},week:function(t){return q(t,this._week.dow,this._week.doy).week},_week:{dow:0,doy:6},_invalidDate:"Invalid date",invalidDate:function(){return this._invalidDate}}),at=function(n,a,s,i){var o;return"boolean"==typeof s&&(i=s,s=t),o={},o._isAMomentObject=!0,o._i=n,o._f=a,o._l=s,o._strict=i,o._isUTC=!1,o._pf=e(),X(o)},at.utc=function(n,a,s,i){var o;return"boolean"==typeof s&&(i=s,s=t),o={},o._isAMomentObject=!0,o._useUTC=!0,o._isUTC=!0,o._l=s,o._i=n,o._f=a,o._strict=i,o._pf=e(),X(o).utc()},at.unix=function(t){return at(1e3*t)},at.duration=function(t,e){var n,a,s,i=t,r=null;return at.isDuration(t)?i={ms:t._milliseconds,d:t._days,M:t._months}:"number"==typeof t?(i={},e?i[e]=t:i.milliseconds=t):(r=bt.exec(t))?(n="-"===r[1]?-1:1,i={y:0,d:y(r[ut])*n,h:y(r[dt])*n,m:y(r[ht])*n,s:y(r[ft])*n,ms:y(r[pt])*n}):(r=wt.exec(t))&&(n="-"===r[1]?-1:1,s=function(t){var e=t&&parseFloat(t.replace(",","."));return(isNaN(e)?0:e)*n},i={y:s(r[2]),M:s(r[3]),d:s(r[4]),h:s(r[5]),m:s(r[6]),s:s(r[7]),w:s(r[8])}),a=new o(i),at.isDuration(t)&&t.hasOwnProperty("_lang")&&(a._lang=t._lang),a},at.version=it,at.defaultFormat=Wt,at.updateOffset=function(){},at.lang=function(t,e){var n;return t?(e?x(C(t),e):null===e?(M(t),t="en"):gt[t]||T(t),n=at.duration.fn._lang=at.fn._lang=T(t),n._abbr):at.fn._lang._abbr},at.langData=function(t){return t&&t._lang&&t._lang._abbr&&(t=t._lang._abbr),T(t)},at.isMoment=function(t){return t instanceof i||null!=t&&t.hasOwnProperty("_isAMomentObject")},at.isDuration=function(t){return t instanceof o},st=Qt.length-1;st>=0;--st)v(Qt[st]);for(at.normalizeUnits=function(t){return g(t)},at.invalid=function(t){var e=at.utc(NaN);return null!=t?r(e._pf,t):e._pf.userInvalidated=!0,e},at.parseZone=function(t){return at(t).parseZone()},r(at.fn=i.prototype,{clone:function(){return at(this)},valueOf:function(){return+this._d+6e4*(this._offset||0)},unix:function(){return Math.floor(+this/1e3)},toString:function(){return this.clone().lang("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},toDate:function(){return this._offset?new Date(+this):this._d},toISOString:function(){var t=at(this).utc();return 0<t.year()&&t.year()<=9999?E(t,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):E(t,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")},toArray:function(){var t=this;return[t.year(),t.month(),t.date(),t.hours(),t.minutes(),t.seconds(),t.milliseconds()]},isValid:function(){return $(this)},isDSTShifted:function(){return this._a?this.isValid()&&p(this._a,(this._isUTC?at.utc(this._a):at(this._a)).toArray())>0:!1},parsingFlags:function(){return r({},this._pf)},invalidAt:function(){return this._pf.overflow},utc:function(){return this.zone(0)},local:function(){return this.zone(0),this._isUTC=!1,this},format:function(t){var e=E(this,t||at.defaultFormat);return this.lang().postformat(e)},add:function(t,e){var n;return n="string"==typeof t?at.duration(+e,t):at.duration(t,e),d(this,n,1),this},subtract:function(t,e){var n;return n="string"==typeof t?at.duration(+e,t):at.duration(t,e),d(this,n,-1),this},diff:function(t,e,n){var a,s,i=D(t,this),o=6e4*(this.zone()-i.zone());return e=g(e),"year"===e||"month"===e?(a=432e5*(this.daysInMonth()+i.daysInMonth()),s=12*(this.year()-i.year())+(this.month()-i.month()),s+=(this-at(this).startOf("month")-(i-at(i).startOf("month")))/a,s-=6e4*(this.zone()-at(this).startOf("month").zone()-(i.zone()-at(i).startOf("month").zone()))/a,"year"===e&&(s/=12)):(a=this-i,s="second"===e?a/1e3:"minute"===e?a/6e4:"hour"===e?a/36e5:"day"===e?(a-o)/864e5:"week"===e?(a-o)/6048e5:a),n?s:c(s)},from:function(t,e){return at.duration(this.diff(t)).lang(this.lang()._abbr).humanize(!e)},fromNow:function(t){return this.from(at(),t)},calendar:function(){var t=D(at(),this).startOf("day"),e=this.diff(t,"days",!0),n=-6>e?"sameElse":-1>e?"lastWeek":0>e?"lastDay":1>e?"sameDay":2>e?"nextDay":7>e?"nextWeek":"sameElse";return this.format(this.lang().calendar(n,this))},isLeapYear:function(){return _(this.year())},isDST:function(){return this.zone()<this.clone().month(0).zone()||this.zone()<this.clone().month(5).zone()},day:function(t){var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=V(t,this.lang()),this.add({d:t-e})):e},month:function(t){var e,n=this._isUTC?"UTC":"";return null!=t?"string"==typeof t&&(t=this.lang().monthsParse(t),"number"!=typeof t)?this:(e=this.date(),this.date(1),this._d["set"+n+"Month"](t),this.date(Math.min(e,this.daysInMonth())),at.updateOffset(this),this):this._d["get"+n+"Month"]()},startOf:function(t){switch(t=g(t)){case"year":this.month(0);case"month":this.date(1);case"week":case"isoWeek":case"day":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===t?this.weekday(0):"isoWeek"===t&&this.isoWeekday(1),this},endOf:function(t){return t=g(t),this.startOf(t).add("isoWeek"===t?"week":t,1).subtract("ms",1)},isAfter:function(t,e){return e="undefined"!=typeof e?e:"millisecond",+this.clone().startOf(e)>+at(t).startOf(e)},isBefore:function(t,e){return e="undefined"!=typeof e?e:"millisecond",+this.clone().startOf(e)<+at(t).startOf(e)},isSame:function(t,e){return e=e||"ms",+this.clone().startOf(e)===+D(t,this).startOf(e)},min:function(t){return t=at.apply(null,arguments),this>t?this:t},max:function(t){return t=at.apply(null,arguments),t>this?this:t},zone:function(t){var e=this._offset||0;return null==t?this._isUTC?e:this._d.getTimezoneOffset():("string"==typeof t&&(t=N(t)),Math.abs(t)<16&&(t=60*t),this._offset=t,this._isUTC=!0,e!==t&&d(this,at.duration(e-t,"m"),1,!0),this)},zoneAbbr:function(){return this._isUTC?"UTC":""},zoneName:function(){return this._isUTC?"Coordinated Universal Time":""},parseZone:function(){return this._tzm?this.zone(this._tzm):"string"==typeof this._i&&this.zone(this._i),this},hasAlignedHourOffset:function(t){return t=t?at(t).zone():0,(this.zone()-t)%60===0},daysInMonth:function(){return b(this.year(),this.month())},dayOfYear:function(t){var e=rt((at(this).startOf("day")-at(this).startOf("year"))/864e5)+1;return null==t?e:this.add("d",t-e)},quarter:function(){return Math.ceil((this.month()+1)/3)},weekYear:function(t){var e=q(this,this.lang()._week.dow,this.lang()._week.doy).year;return null==t?e:this.add("y",t-e)},isoWeekYear:function(t){var e=q(this,1,4).year;return null==t?e:this.add("y",t-e)},week:function(t){var e=this.lang().week(this);return null==t?e:this.add("d",7*(t-e))},isoWeek:function(t){var e=q(this,1,4).week;return null==t?e:this.add("d",7*(t-e))},weekday:function(t){var e=(this.day()+7-this.lang()._week.dow)%7;return null==t?e:this.add("d",t-e)},isoWeekday:function(t){return null==t?this.day()||7:this.day(this.day()%7?t:t-7)},get:function(t){return t=g(t),this[t]()},set:function(t,e){return t=g(t),"function"==typeof this[t]&&this[t](e),this},lang:function(e){return e===t?this._lang:(this._lang=T(e),this)}}),st=0;st<Rt.length;st++)K(Rt[st].toLowerCase().replace(/s$/,""),Rt[st]);K("year","FullYear"),at.fn.days=at.fn.day,at.fn.months=at.fn.month,at.fn.weeks=at.fn.week,at.fn.isoWeeks=at.fn.isoWeek,at.fn.toJSON=at.fn.toISOString,r(at.duration.fn=o.prototype,{_bubble:function(){var t,e,n,a,s=this._milliseconds,i=this._days,o=this._months,r=this._data;r.milliseconds=s%1e3,t=c(s/1e3),r.seconds=t%60,e=c(t/60),r.minutes=e%60,n=c(e/60),r.hours=n%24,i+=c(n/24),r.days=i%30,o+=c(i/30),r.months=o%12,a=c(o/12),r.years=a},weeks:function(){return c(this.days()/7)},valueOf:function(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*y(this._months/12)},humanize:function(t){var e=+this,n=J(e,!t,this.lang());return t&&(n=this.lang().pastFuture(e,n)),this.lang().postformat(n)},add:function(t,e){var n=at.duration(t,e);return this._milliseconds+=n._milliseconds,this._days+=n._days,this._months+=n._months,this._bubble(),this},subtract:function(t,e){var n=at.duration(t,e);return this._milliseconds-=n._milliseconds,this._days-=n._days,this._months-=n._months,this._bubble(),this},get:function(t){return t=g(t),this[t.toLowerCase()+"s"]()},as:function(t){return t=g(t),this["as"+t.charAt(0).toUpperCase()+t.slice(1)+"s"]()},lang:at.fn.lang,toIsoString:function(){var t=Math.abs(this.years()),e=Math.abs(this.months()),n=Math.abs(this.days()),a=Math.abs(this.hours()),s=Math.abs(this.minutes()),i=Math.abs(this.seconds()+this.milliseconds()/1e3);return this.asSeconds()?(this.asSeconds()<0?"-":"")+"P"+(t?t+"Y":"")+(e?e+"M":"")+(n?n+"D":"")+(a||s||i?"T":"")+(a?a+"H":"")+(s?s+"M":"")+(i?i+"S":""):"P0D"}});for(st in zt)zt.hasOwnProperty(st)&&(et(st,zt[st]),tt(st.toLowerCase()));et("Weeks",6048e5),at.duration.fn.asMonths=function(){return(+this-31536e6*this.years())/2592e6+12*this.years()},at.lang("en",{ordinal:function(t){var e=t%10,n=1===y(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th";return t+n}}),vt?(module.exports=at,nt(!0)):"function"==typeof define&&define.amd?define("moment",function(e,n,a){return a.config&&a.config()&&a.config().noGlobal!==!0&&nt(a.config().noGlobal===t),at}):nt()}.call(this),/*!
63
+ * Pikaday
64
+ *
65
+ * Copyright © 2014 David Bushell | BSD & MIT license | https://github.com/dbushell/Pikaday
66
+ */
67
+ function(t,e){"use strict";var n;if("object"==typeof exports){try{n=require("moment")}catch(a){}module.exports=e(n)}else"function"==typeof define&&define.amd?define(function(t){var a="moment";return n=t.defined&&t.defined(a)?t(a):void 0,e(n)}):t.Pikaday=e(t.moment)}(this,function(t){"use strict";var e="function"==typeof t,n=!!window.addEventListener,a=window.document,s=window.setTimeout,i=function(t,e,a,s){n?t.addEventListener(e,a,!!s):t.attachEvent("on"+e,a)},o=function(t,e,a,s){n?t.removeEventListener(e,a,!!s):t.detachEvent("on"+e,a)},r=function(t,e,n){var s;a.createEvent?(s=a.createEvent("HTMLEvents"),s.initEvent(e,!0,!1),s=y(s,n),t.dispatchEvent(s)):a.createEventObject&&(s=a.createEventObject(),s=y(s,n),t.fireEvent("on"+e,s))},l=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")},c=function(t,e){return-1!==(" "+t.className+" ").indexOf(" "+e+" ")},u=function(t,e){c(t,e)||(t.className=""===t.className?e:t.className+" "+e)},d=function(t,e){t.className=l((" "+t.className+" ").replace(" "+e+" "," "))},h=function(t){return/Array/.test(Object.prototype.toString.call(t))},f=function(t){return/Date/.test(Object.prototype.toString.call(t))&&!isNaN(t.getTime())},p=function(t){return t%4===0&&t%100!==0||t%400===0},g=function(t,e){return[31,p(t)?29:28,31,30,31,30,31,31,30,31,30,31][e]},m=function(t){f(t)&&t.setHours(0,0,0,0)},v=function(t,e){return t.getTime()===e.getTime()},y=function(t,e,n){var a,s;for(a in e)s=void 0!==t[a],s&&"object"==typeof e[a]&&void 0===e[a].nodeName?f(e[a])?n&&(t[a]=new Date(e[a].getTime())):h(e[a])?n&&(t[a]=e[a].slice(0)):t[a]=y({},e[a],n):(n||!s)&&(t[a]=e[a]);return t},b=function(t){return t.month<0&&(t.year-=Math.ceil(Math.abs(t.month)/12),t.month+=12),t.month>11&&(t.year+=Math.floor(Math.abs(t.month)/12),t.month-=12),t},w={field:null,bound:void 0,position:"bottom left",format:"YYYY-MM-DD",defaultDate:null,setDefaultDate:!1,firstDay:0,minDate:null,maxDate:null,yearRange:10,minYear:0,maxYear:9999,minMonth:void 0,maxMonth:void 0,isRTL:!1,yearSuffix:"",showMonthAfterYear:!1,numberOfMonths:1,mainCalendar:"left",i18n:{previousMonth:"Previous Month",nextMonth:"Next Month",months:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},onSelect:null,onOpen:null,onClose:null,onDraw:null},_=function(t,e,n){for(e+=t.firstDay;e>=7;)e-=7;return n?t.i18n.weekdaysShort[e]:t.i18n.weekdays[e]},k=function(t,e,n,a,s,i,o){if(o)return'<td class="is-empty"></td>';var r=[];return i&&r.push("is-disabled"),s&&r.push("is-today"),a&&r.push("is-selected"),'<td data-day="'+t+'" class="'+r.join(" ")+'"><button class="pika-button pika-day" type="button" data-pika-year="'+n+'" data-pika-month="'+e+'" data-pika-day="'+t+'">'+t+"</button></td>"},$=function(t,e){return"<tr>"+(e?t.reverse():t).join("")+"</tr>"},C=function(t){return"<tbody>"+t.join("")+"</tbody>"},D=function(t){var e,n=[];for(e=0;7>e;e++)n.push('<th scope="col"><abbr title="'+_(t,e)+'">'+_(t,e,!0)+"</abbr></th>");return"<thead>"+(t.isRTL?n.reverse():n).join("")+"</thead>"},x=function(t,e,n,a,s){var i,o,r,l,c,u=t._o,d=n===u.minYear,f=n===u.maxYear,p='<div class="pika-title">',g=!0,m=!0;for(r=[],i=0;12>i;i++)r.push('<option value="'+(n===s?i-e:12+i-e)+'"'+(i===a?" selected":"")+(d&&i<u.minMonth||f&&i>u.maxMonth?"disabled":"")+">"+u.i18n.months[i]+"</option>");for(l='<div class="pika-label">'+u.i18n.months[a]+'<select class="pika-select pika-select-month">'+r.join("")+"</select></div>",h(u.yearRange)?(i=u.yearRange[0],o=u.yearRange[1]+1):(i=n-u.yearRange,o=1+n+u.yearRange),r=[];o>i&&i<=u.maxYear;i++)i>=u.minYear&&r.push('<option value="'+i+'"'+(i===n?" selected":"")+">"+i+"</option>");return c='<div class="pika-label">'+n+u.yearSuffix+'<select class="pika-select pika-select-year">'+r.join("")+"</select></div>",p+=u.showMonthAfterYear?c+l:l+c,d&&(0===a||u.minMonth>=a)&&(g=!1),f&&(11===a||u.maxMonth<=a)&&(m=!1),0===e&&(p+='<button class="pika-prev'+(g?"":" is-disabled")+'" type="button">'+u.i18n.previousMonth+"</button>"),e===t._o.numberOfMonths-1&&(p+='<button class="pika-next'+(m?"":" is-disabled")+'" type="button">'+u.i18n.nextMonth+"</button>"),p+="</div>"},M=function(t,e){return'<table cellpadding="0" cellspacing="0" class="pika-table">'+D(t)+C(e)+"</table>"},T=function(o){var r=this,l=r.config(o);r._onMouseDown=function(t){if(r._v){t=t||window.event;var e=t.target||t.srcElement;if(e){if(!c(e,"is-disabled")){if(c(e,"pika-button")&&!c(e,"is-empty"))return r.setDate(new Date(e.getAttribute("data-pika-year"),e.getAttribute("data-pika-month"),e.getAttribute("data-pika-day"))),void(l.bound&&s(function(){r.hide()},100));c(e,"pika-prev")?r.prevMonth():c(e,"pika-next")&&r.nextMonth()}if(c(e,"pika-select"))r._c=!0;else{if(!t.preventDefault)return t.returnValue=!1,!1;t.preventDefault()}}}},r._onChange=function(t){t=t||window.event;var e=t.target||t.srcElement;e&&(c(e,"pika-select-month")?r.gotoMonth(e.value):c(e,"pika-select-year")&&r.gotoYear(e.value))},r._onInputChange=function(n){var a;n.firedBy!==r&&(e?(a=t(l.field.value,l.format),a=a&&a.isValid()?a.toDate():null):a=new Date(Date.parse(l.field.value)),r.setDate(f(a)?a:null),r._v||r.show())},r._onInputFocus=function(){r.show()},r._onInputClick=function(){r.show()},r._onInputBlur=function(){r._c||(r._b=s(function(){r.hide()},50)),r._c=!1},r._onClick=function(t){t=t||window.event;var e=t.target||t.srcElement,a=e;if(e){!n&&c(e,"pika-select")&&(e.onchange||(e.setAttribute("onchange","return;"),i(e,"change",r._onChange)));do if(c(a,"pika-single"))return;while(a=a.parentNode);r._v&&e!==l.trigger&&r.hide()}},r.el=a.createElement("div"),r.el.className="pika-single"+(l.isRTL?" is-rtl":""),i(r.el,"mousedown",r._onMouseDown,!0),i(r.el,"change",r._onChange),l.field&&(l.bound?a.body.appendChild(r.el):l.field.parentNode.insertBefore(r.el,l.field.nextSibling),i(l.field,"change",r._onInputChange),l.defaultDate||(e&&l.field.value?l.defaultDate=t(l.field.value,l.format).toDate():l.defaultDate=new Date(Date.parse(l.field.value)),l.setDefaultDate=!0));var u=l.defaultDate;f(u)?l.setDefaultDate?r.setDate(u,!0):r.gotoDate(u):r.gotoDate(new Date),l.bound?(this.hide(),r.el.className+=" is-bound",i(l.trigger,"click",r._onInputClick),i(l.trigger,"focus",r._onInputFocus),i(l.trigger,"blur",r._onInputBlur)):this.show()};return T.prototype={config:function(t){this._o||(this._o=y({},w,!0));var e=y(this._o,t,!0);e.isRTL=!!e.isRTL,e.field=e.field&&e.field.nodeName?e.field:null,e.bound=!!(void 0!==e.bound?e.field&&e.bound:e.field),e.trigger=e.trigger&&e.trigger.nodeName?e.trigger:e.field;var n=parseInt(e.numberOfMonths,10)||1;if(e.numberOfMonths=n>4?4:n,f(e.minDate)||(e.minDate=!1),f(e.maxDate)||(e.maxDate=!1),e.minDate&&e.maxDate&&e.maxDate<e.minDate&&(e.maxDate=e.minDate=!1),e.minDate&&(m(e.minDate),e.minYear=e.minDate.getFullYear(),e.minMonth=e.minDate.getMonth()),e.maxDate&&(m(e.maxDate),e.maxYear=e.maxDate.getFullYear(),e.maxMonth=e.maxDate.getMonth()),h(e.yearRange)){var a=(new Date).getFullYear()-10;e.yearRange[0]=parseInt(e.yearRange[0],10)||a,e.yearRange[1]=parseInt(e.yearRange[1],10)||a}else e.yearRange=Math.abs(parseInt(e.yearRange,10))||w.yearRange,e.yearRange>100&&(e.yearRange=100);return e},toString:function(n){return f(this._d)?e?t(this._d).format(n||this._o.format):this._d.toDateString():""},getMoment:function(){return e?t(this._d):null},setMoment:function(n,a){e&&t.isMoment(n)&&this.setDate(n.toDate(),a)},getDate:function(){return f(this._d)?new Date(this._d.getTime()):null},setDate:function(t,e){if(!t)return this._d=null,this.draw();if("string"==typeof t&&(t=new Date(Date.parse(t))),f(t)){var n=this._o.minDate,a=this._o.maxDate;f(n)&&n>t?t=n:f(a)&&t>a&&(t=a),this._d=new Date(t.getTime()),m(this._d),this.gotoDate(this._d),this._o.field&&(this._o.field.value=this.toString(),r(this._o.field,"change",{firedBy:this})),e||"function"!=typeof this._o.onSelect||this._o.onSelect.call(this,this.getDate())}},gotoDate:function(t){var e=!0;if(f(t)){if(this.calendars){var n=new Date(this.calendars[0].year,this.calendars[0].month,1),a=new Date(this.calendars[this.calendars.length-1].year,this.calendars[this.calendars.length-1].month,1),s=t.getTime();a.setMonth(a.getMonth()+1),a.setDate(a.getDate()-1),e=s<n.getTime()||a.getTime()<s}e&&(this.calendars=[{month:t.getMonth(),year:t.getFullYear()}],"right"===this._o.mainCalendar&&(this.calendars[0].month+=1-this._o.numberOfMonths)),this.adjustCalendars()}},adjustCalendars:function(){this.calendars[0]=b(this.calendars[0]);for(var t=1;t<this._o.numberOfMonths;t++)this.calendars[t]=b({month:this.calendars[0].month+t,year:this.calendars[0].year});this.draw()},gotoToday:function(){this.gotoDate(new Date)},gotoMonth:function(t){isNaN(t)||(this.calendars[0].month=parseInt(t,10),this.adjustCalendars())},nextMonth:function(){this.calendars[0].month++,this.adjustCalendars()},prevMonth:function(){this.calendars[0].month--,this.adjustCalendars()},gotoYear:function(t){isNaN(t)||(this.calendars[0].year=parseInt(t,10),this.adjustCalendars())},setMinDate:function(t){this._o.minDate=t},setMaxDate:function(t){this._o.maxDate=t},draw:function(t){if(this._v||t){var e=this._o,n=e.minYear,a=e.maxYear,i=e.minMonth,o=e.maxMonth,r="";this._y<=n&&(this._y=n,!isNaN(i)&&this._m<i&&(this._m=i)),this._y>=a&&(this._y=a,!isNaN(o)&&this._m>o&&(this._m=o));for(var l=0;l<e.numberOfMonths;l++)r+='<div class="pika-lendar">'+x(this,l,this.calendars[l].year,this.calendars[l].month,this.calendars[0].year)+this.render(this.calendars[l].year,this.calendars[l].month)+"</div>";if(this.el.innerHTML=r,e.bound&&"hidden"!==e.field.type&&s(function(){e.trigger.focus()},1),"function"==typeof this._o.onDraw){var c=this;s(function(){c._o.onDraw.call(c)},0)}}},adjustPosition:function(){var t,e,n,s=this._o.trigger,i=s,o=this.el.offsetWidth,r=this.el.offsetHeight,l=window.innerWidth||a.documentElement.clientWidth,c=window.innerHeight||a.documentElement.clientHeight,u=window.pageYOffset||a.body.scrollTop||a.documentElement.scrollTop;if("function"==typeof s.getBoundingClientRect)n=s.getBoundingClientRect(),t=n.left+window.pageXOffset,e=n.bottom+window.pageYOffset;else for(t=i.offsetLeft,e=i.offsetTop+i.offsetHeight;i=i.offsetParent;)t+=i.offsetLeft,e+=i.offsetTop;(t+o>l||this._o.position.indexOf("right")>-1&&t-o+s.offsetWidth>0)&&(t=t-o+s.offsetWidth),(e+r>c+u||this._o.position.indexOf("top")>-1&&e-r-s.offsetHeight>0)&&(e=e-r-s.offsetHeight),this.el.style.cssText=["position: absolute","left: "+t+"px","top: "+e+"px"].join(";")},render:function(t,e){var n=this._o,a=new Date,s=g(t,e),i=new Date(t,e,1).getDay(),o=[],r=[];m(a),n.firstDay>0&&(i-=n.firstDay,0>i&&(i+=7));for(var l=s+i,c=l;c>7;)c-=7;l+=7-c;for(var u=0,d=0;l>u;u++){var h=new Date(t,e,1+(u-i)),p=n.minDate&&h<n.minDate||n.maxDate&&h>n.maxDate,y=f(this._d)?v(h,this._d):!1,b=v(h,a),w=i>u||u>=s+i;r.push(k(1+(u-i),e,t,y,b,p,w)),7===++d&&(o.push($(r,n.isRTL)),r=[],d=0)}return M(n,o)},isVisible:function(){return this._v},show:function(){this._v||(d(this.el,"is-hidden"),this._v=!0,this.draw(),this._o.bound&&(i(a,"click",this._onClick),this.adjustPosition()),"function"==typeof this._o.onOpen&&this._o.onOpen.call(this))},hide:function(){var t=this._v;t!==!1&&(this._o.bound&&o(a,"click",this._onClick),this.el.style.cssText="",u(this.el,"is-hidden"),this._v=!1,void 0!==t&&"function"==typeof this._o.onClose&&this._o.onClose.call(this))},destroy:function(){this.hide(),o(this.el,"mousedown",this._onMouseDown,!0),o(this.el,"change",this._onChange),this._o.field&&(o(this._o.field,"change",this._onInputChange),this._o.bound&&(o(this._o.trigger,"click",this._onInputClick),o(this._o.trigger,"focus",this._onInputFocus),o(this._o.trigger,"blur",this._onInputBlur))),this.el.parentNode&&this.el.parentNode.removeChild(this.el)}},T}),/*!
68
+ * Pikaday jQuery plugin.
69
+ *
70
+ * Copyright © 2013 David Bushell | BSD & MIT license | https://github.com/dbushell/Pikaday
71
+ */
72
+ function(t,e){"use strict";"object"==typeof exports?e(require("jquery"),require("../pikaday")):"function"==typeof define&&define.amd?define(["jquery","pikaday"],e):e(t.jQuery,t.Pikaday)}(this,function(t,e){"use strict";t.fn.pikaday=function(){var n=arguments;return n&&n.length||(n=[{}]),this.each(function(){var a=t(this),s=a.data("pikaday");if(s instanceof e)"string"==typeof n[0]&&"function"==typeof s[n[0]]&&s[n[0]].apply(s,Array.prototype.slice.call(n,1));else if("object"==typeof n[0]){var i=t.extend({},n[0]);i.field=a[0],a.data("pikaday",new e(i))}})}}),function(){this.JST||(this.JST={}),this.JST["locastyle/templates/_popover"]=function(t){t||(t={});var e,n=[],a=function(t){return t&&t.ecoSafe?t:"undefined"!=typeof t&&null!=t?i(t):""},s=t.safe,i=t.escape;return e=t.safe=function(t){if(t&&t.ecoSafe)return t;("undefined"==typeof t||null==t)&&(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}),function(){(function(){n.push('<div id="ls-popover-'),n.push(a(this.index)),n.push('" class="ls-popover ls-popover-'),n.push(a(this.placement||"top")),n.push(" "),n.push(a(this.customClasses)),n.push('">\n '),this.title&&(n.push('\n <div class="ls-popover-header">\n <h3 class="title-3"> '),n.push(a(this.title)),n.push(" </h3>\n </div>\n ")),n.push("\n "),this.content&&n.push("\n "),n.push('\n <div class="ls-popover-content"> '),n.push(this.content),n.push(" </div>\n</div>\n")}).call(this)}.call(t),t.safe=s,t.escape=i,n.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["locastyle/templates/_modal"]=function(t){t||(t={});var e,n=[],a=function(t){return t&&t.ecoSafe?t:"undefined"!=typeof t&&null!=t?i(t):""},s=t.safe,i=t.escape;return e=t.safe=function(t){if(t&&t.ecoSafe)return t;("undefined"==typeof t||null==t)&&(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}),function(){(function(){n.push('<div class="ls-modal ls-modal-template '),n.push(a(this.lsModule)),n.push('" tabindex="-1" aria-labelledby="lsModal" role="dialog">\n '),"link"!==this.actionType?(n.push('\n <form action="'),n.push(a(this.action)),n.push('" class="ls-modal-box ls-form" method="post">\n ')):n.push('\n <div class="ls-modal-box">\n '),n.push('\n <div class="ls-modal-header">\n <button type="button" data-dismiss="modal" class="close">&times;</button>\n <h4 class="ls-modal-title" id="lsModal">'),n.push(a(this.title)),n.push('</h4>\n </div>\n <div class="ls-modal-body">\n <p>'),n.push(this.content),n.push('</p>\n </div>\n <div class="ls-modal-footer">\n <button type="button" class="ls-btn ls-float-right" data-dismiss="modal">\n '),n.push(a(this.close)),n.push("\n </button>\n "),"link"!==this.actionType?(n.push("\n <button "),n.push(a(this.customAttrs)),n.push(' type="submit" class=" ls-btn '),n.push(a(this["class"])),n.push('">'),n.push(a(this.save)),n.push("</button>\n ")):(n.push('\n <a href="'),n.push(a(this.action)),n.push('" '),n.push(a(this.customAttrs)),n.push(' class=" ls-btn '),n.push(a(this["class"])),n.push('">'),n.push(a(this.save)),n.push("</a>\n ")),n.push("\n </div>\n "),"link"!==this.actionType?n.push("\n </form>\n "):n.push("\n </div>\n "),n.push("\n</div>\n")}).call(this)}.call(t),t.safe=s,t.escape=i,n.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["locastyle/templates/_dropdown"]=function(t){t||(t={});var e,n=[],a=t.safe,s=t.escape;return e=t.safe=function(t){if(t&&t.ecoSafe)return t;("undefined"==typeof t||null==t)&&(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}),function(){(function(){var t,e,a,s;for(n.push('<div data-ls-module="dropdown" class="ls-dropdown">\n <a href="#" class="ls-btn"></a>\n <ul class="ls-dropdown-nav">\n '),s=this.elements,e=0,a=s.length;a>e;e++)t=s[e],n.push("\n "),""!==t.text&&(n.push("\n <li>"),n.push(t.outerHTML),n.push("</li>\n ")),n.push("\n ");n.push("\n </ul>\n</div>\n")}).call(this)}.call(t),t.safe=a,t.escape=s,n.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["locastyle/templates/_browser-unsupported-bar"]=function(t){t||(t={});var e,n=[],a=t.safe,s=t.escape;return e=t.safe=function(t){if(t&&t.ecoSafe)return t;("undefined"==typeof t||null==t)&&(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}),function(){(function(){n.push('<div class="ls-unsupported-bar ls-alert-blocker ls-alert-warning ls-alert-fixed-top">\n <span class="ls-dismiss" data-ls-module="dismiss">&times</span>\n <strong>Atualize seu navegador!</strong><br>Baixe a vers\xe3o mais recente:<br>\n <a href="//www.mozilla.org/en-US/firefox" target="_blank">Firefox</a>, <a href="//www.google.com/intl/en-BR/chrome/browser/" target="_blank">Chrome</a>,\n <a href="//windows.microsoft.com/en-us/internet-explorer/download-ie" class="hidden-sm hidden-xs" target="_blank">Internet Explorer</a> ou\n <a href="//www.apple.com/safari/" target="_blank">Safari</a>\n</div>\n')}).call(this)}.call(t),t.safe=a,t.escape=s,n.join("")}}.call(this);var locastyle=function(){"use strict";function t(){locastyle.sidebarToggle.init(),locastyle.sidebars.init()}function e(){locastyle.breakpoints.init(),n(),locastyle.general.init(),locastyle.btnGroup.init(),locastyle.alert.init(),locastyle.datepicker.init(),locastyle.form.togglePasswordField(),locastyle.form.triggerCalendar(),a(),locastyle.browserDetect.init()}function n(){var t=s();for(var e in t)t.hasOwnProperty(e)&&(locastyle[t[e]].init(),console.info("Locastyle: module ["+t[e]+"] successfully initialized."),$.event.trigger(t[e]+":ready"))}function a(){$("html").hasClass("ls-trackevent-on")&&locastyle.trackEvents.init()}function s(){var t=[];return $("[data-ls-module]").each(function(){var e=$(this).data("ls-module");-1===t.indexOf(e)&&t.push(e)}),t}return{init:e,fastInit:t}}(),ls=locastyle;$(window).load(function(){"use strict";ls.init()}),$(document).ready(function(){"use strict";ls.fastInit()});var locastyle=locastyle||{};locastyle.breakpoints=function(){"use strict";function t(t){s.html=$("html"),e(t),n(t),a()}function e(t){var e;e=t?t.documentWidth:$(document).width(),e<s.sm?(s.html.addClass("ls-window-xs"),locastyle.breakpointClass="ls-window-xs"):e>=s.sm&&e<s.md?(s.html.addClass("ls-window-sm").removeClass("ls-sidebar-visible ls-notifications-visible "),locastyle.breakpointClass="ls-window-sm"):e>=s.md&&e<s.lg?(s.html.addClass("ls-window-md").removeClass("ls-sidebar-visible ls-notifications-visible "),locastyle.breakpointClass="ls-window-md"):(s.html.addClass("ls-window-lg").removeClass("ls-sidebar-visible ls-notifications-visible "),locastyle.breakpointClass="ls-window-lg")}function n(t){var e;e=t?t.documentWidth:screen.width,e<s.sm?(s.html.addClass("ls-screen-xs"),locastyle.breakpointScreenClass="ls-screen-xs"):e>=s.sm&&e<s.md?(s.html.addClass("ls-screen-sm"),locastyle.breakpointScreenClass="ls-screen-sm"):e>=s.md&&e<s.lg?(s.html.addClass("ls-screen-md"),locastyle.breakpointScreenClass="ls-screen-md"):(s.html.addClass("ls-screen-lg"),locastyle.breakpointScreenClass="ls-screen-lg")}function a(){var t;$(window).resize(function(){clearTimeout(t),t=setTimeout(function(){var t=s.html.attr("class").replace(/(^|\s)(ls-window-\S+)|(ls-screen-\S+)/g,"");s.html.attr("class",$.trim(t)),e(),n(),$.event.trigger("breakpoint-updated")},300)})}var s={sm:"768",md:"992",lg:"1200",html:null};return{init:t}}();var locastyle=locastyle||{};locastyle.sidebars=function(){"use strict";function t(){m(),o(),e(),n(),i(),r(),l(),d(),h(),f(),p(),g()}function e(){$(".ls-show-sidebar").on("touchstart.ls click.ls",function(t){t.preventDefault(),a()})}function n(){$(".ls-show-notifications").on("touchstart.ls click.ls",function(t){t.preventDefault(),s()})}function a(){$("html").toggleClass("ls-sidebar-visible")}function s(){$("html").toggleClass("ls-notifications-visible")}function i(){1===$(".ls-sidebar .ls-area-account").length&&$(".ls-sidebar").addClass("ls-area-account-active")}function o(){1===$(".ls-notification").length&&0===$(".ls-show-notifications").length&&$(".ls-topbar").append('<span class="ls-show-notifications ls-ico-question"/>')}function r(){var t=$(".ls-menu").find("ul li ul");$(t).each(function(){$(this).addClass("ls-submenu"),$(this).parent("li").addClass("ls-submenu-parent"),$(this).find("a").addClass("ls-submenu-item")})}function l(){$(".ls-submenu-parent").on("click","> a",function(t){t.preventDefault(),$(this).parents(".ls-submenu-parent").hasClass("ls-active")?u($(this)):c($(this))})}function c(t){var e=$(t).parents(".ls-submenu-parent");$(".ls-submenu-parent").removeClass("ls-active"),e.addClass("ls-active"),g(e)}function u(t){var e=$(t).parents(".ls-submenu-parent");e.removeClass("ls-active"),g(e)}function d(){$(".ls-sidebar-toggled").length||$(".ls-submenu li.ls-active").each(function(){c($(this))})}function h(){$(window).on("sidebar-minimize",function(){$(".ls-submenu li").each(function(){u($(this))})}),$(window).on("sidebar-maximize",function(){$(".ls-submenu li.ls-active").each(function(){c($(this))})})}function f(){$(document).on("click",function(t){var e=$(t.target);$(".ls-sidebar-toggled").length&&$(".ls-submenu-parent.ls-active").length&&(e.is(".ls-submenu-parent.ls-active *")||u($(".ls-submenu-parent.ls-active > a")))})}function p(){var t=$(".ls-menu");t.attr({role:"navigation"}),t.find("ul").attr({role:"menu"}),t.find("a").attr({role:"menuitem"}),$(".ls-submenu-parent").each(function(t,e){g(e)})}function g(t){$(t).hasClass("ls-active")?$(t).attr({"aria-expanded":"true","aria-hidden":"false"}):$(t).attr({"aria-expanded":"false","aria-hidden":"true"})}function m(){$(".ls-show-sidebar").off("touchstart.ls click.ls"),$(".ls-show-notifications").off("touchstart.ls click.ls"),$(".ls-submenu-parent > a").off("click.ls")}return{init:t,unbind:m}}();var locastyle=locastyle||{};locastyle.sidebarToggle=function(){"use strict";function t(){r(),n(),e(),a(),n(),o()}function e(){$(".ls-sidebar").length&&$(".ls-sidebar").append('<span class="ls-sidebar-toggle ls-ico-shaft-left"></span>')}function n(){var t=localStorage.getItem("stateSidebar");t||$("html").hasClass("ls-sidebar-toggled")?s():i()}function a(){$(".ls-sidebar-toggle").on("click",function(){$("html").hasClass("ls-sidebar-toggled")?i():s()})}function s(){$("html").addClass("ls-sidebar-toggled"),$(".ls-sidebar-toggle").addClass("ls-active"),localStorage.setItem("stateSidebar","minimized"),$.event.trigger("sidebar-minimize")}function i(){$("html").removeClass("ls-sidebar-toggled"),$(".ls-sidebar-toggle").removeClass("ls-active"),localStorage.removeItem("stateSidebar"),$.event.trigger("sidebar-maximize")}function o(){$(window).on("breakpoint-updated",function(){$(".ls-window-xs").length&&i()})}function r(){$(".ls-sidebar-toggle").off("click")}return{init:t}}();var locastyle=locastyle||{};locastyle.collapse=function(){"use strict";function t(){$(i.classes.header).each(function(){s($(this))}),e()}function e(){$(i.trigger).each(function(t,e){$(e).hasClass(i.classes.alwaysOpened)||($(e).on("click.ls",function(){n($(this));var t=$(this).data("target");s($(this)),a($(this),t)}),$(i.classes.content).on("click.ls",function(t){t.stopPropagation()}))})}function n(t){var e=t.parents(i.classes.groupContainer);e[0]&&e.find(i.trigger).not(t).removeClass(i.classes.opened).find(i.classes.content).slideUp()}function a(t,e){$(e).parent().hasClass(i.classes.opened)?($(e).parent().removeClass(i.classes.opened),t.trigger("collapse:closed")):($(e).parent().addClass(i.classes.opened),t.trigger("collapse:opened"))}function s(t){$(t).hasClass(i.classes.open)?($(i.classes.header).attr({"aria-expanded":!0}),$(i.classes.content).attr({"aria-hidden":!1})):($(i.classes.header).attr({"aria-expanded":!1}),$(i.classes.content).attr({"aria-hidden":!0}))}var i={trigger:'[data-ls-module="collapse"]',classes:{header:".ls-collapse-header",content:".ls-collapse-body",groupContainer:".ls-collapse-group",open:"ls-collapse-open",close:"ls-collapse-close",opened:"ls-collapse-opened",alwaysOpened:"ls-collapse-opened-always"}};return{init:t}}();var locastyle=locastyle||{};locastyle.modal=function(){"use strict";function t(){n(),a()}function e(){$(document).off("keyup.ls-esc"),$(c.close.classes+", "+c.close.trigger).off("click.ls")}function n(){$(c.open.trigger).off("click.ls"),e()}function a(){$(c.open.trigger).on("click.ls",function(){locastyle.modal.open($(this))}),$(".ls-opened").length>0&&r("#"+$(".ls-opened").attr("id"))}function s(){$(document).one("keyup.ls-esc",function(t){27===t.keyCode&&$(".ls-opened")&&locastyle.modal.close()}),$(c.close.classes+", "+c.close.trigger).on("click.ls",function(t){return t.target!==t.currentTarget?!0:void locastyle.modal.close()})}function i(t){var e=null;$("body").addClass(c.classes.open),$(t).data("target")||"object"!=typeof t?e=$(t).data("target")?$(t.data("target")):$(t):(e=$(locastyle.templates.modal(t.data())),$("body").append(e),$(".ls-modal-template").focus(),s()),e.addClass("ls-opened"),e.trigger(c.open.triggerOpened,t),l(t),r(t)}function o(){var t=$(".ls-modal.ls-opened");$("body").removeClass(c.classes.open),t.attr("aria-hidden",!0),t.removeClass("ls-opened"),e(),t.trigger(c.close.triggerClosed),t.hasClass("ls-modal-template")&&t.remove()}function r(t){var e=$(t).data("target")?$(t.data("target")):$(t);e.each(function(t,e){void 0!==$(e).data("modal-blocked")?$('[data-dismiss="modal"]').remove():s()})}function l(t){var e=$(t).data("target")?$(t.data("target")):$(t),n=e.find(".ls-modal-title").attr("id")||"lsModal"+c.lsModal++;e.find(".ls-modal-title").attr("id",n),e.attr({role:"dialog","aria-hidden":!1,"aria-labelledby":n,tabindex:"-1"}).focus()}var c={open:{trigger:'[data-ls-module="modal"]',triggerOpened:"modal:opened"},close:{classes:".ls-modal",trigger:'[data-dismiss="modal"]',triggerClosed:"modal:closed"},classes:{open:"ls-overflow-hidden"},lsModal:0};return{init:t,open:i,close:o,unbind:n}}();var locastyle=locastyle||{};locastyle.alert=function(){"use strict";function t(){e()}function e(){$('[class*="ls-alert"]').attr({role:"alert"})}return{init:t}}();var locastyle=locastyle||{};locastyle.dismiss=function(){"use strict";function t(){e(),n()}function e(){$(i.trigger).off("click.ls")}function n(){$(i.trigger).on("click.ls",function(){a(this),locastyle.topbarCurtain.updateStatusCounter()})}function a(t){var e=$(t).parents(".ls-dismissable");$(t).data("target")&&(e=$(t).data("target")),s(e)}function s(t){$(t).addClass("ls-dismissed"),$(t).trigger(i.triggerClose)}var i={trigger:"[data-ls-module=dismiss]",triggerClose:"dismiss:close"};return{init:t,unbind:e}}();var locastyle=locastyle||{};locastyle.popover=function(){"use strict";function t(){r(),e(),l()}function e(){$(c.module).each(function(t,e){var o="hover"===$(e).attr("data-trigger")?"mouseover":c.trigger;$(e).attr("data-target",c.idPopover+t);var l=$(e).data("target");$(e).on(o,function(u){u.preventDefault(),u.stopPropagation(),$(l).hasClass("ls-active")?i(l):($(c.idPopover+t).length||n(t,e),s(l),r(l)),"mouseover"===o&&$(e).on("mouseout",function(){i(l)}),a(e)}),$(window).on("breakpoint-updated",function(){a(e)})})}function n(t,e){var n={index:t,title:$(e).data("title"),content:$(e).data("content"),placement:$(e).data("placement"),customClasses:$(e).data("custom-class")};$("body").append(locastyle.templates.popover(n))}function a(t){var e={target:$(t).data("target"),top:$(t).offset().top,left:$(t).offset().left,width:$(t).outerWidth(),height:$(t).outerHeight(),placement:$(t).data("placement")};switch(e.placement){case"right":$(e.target).css({top:e.top+=e.height/2-2,left:e.left+=e.width+12});break;case"bottom":$(e.target).css({top:e.top+=e.height+12,left:e.left+=e.width/2+4});break;case"left":$(e.target).css({top:e.top+=e.height/2-2,left:e.left-=12});break;default:case"top":$(e.target).css({top:e.top-=12,left:e.left+=e.width/2+4})}}function s(t){$(t).addClass("ls-active"),$(t).off(c.events.closed).trigger(c.events.opened)}function i(t){$(t||".ls-popover.ls-active").removeClass("ls-active"),$(t).trigger(c.events.closed).off(c.events.opened),$(".ls-popover.ls-active").length||$(document).off(c.events.clickAnywhere)}function o(){$(c.popoverClass).remove(),$.each(c.events,function(t,e){$(document).unbind(e)}),$(document).trigger(c.events.destroyed)}function r(t){$(document).on(c.events.clickAnywhere,function(e){$(e.target).parents(".ls-popover").length||i(t)})}function l(){$(c.module+'[data-ls-popover="open"]').each(function(){s($(this).data("target"))})}var c={module:'[data-ls-module="popover"]',idPopover:"#ls-popover-",popoverClass:".ls-popover",trigger:"click",events:{clickAnywhere:"click.clickanywhere",opened:"popover:opened",closed:"popover:closed",destroyed:"popover:destroyed"}};return{init:t,show:s,hide:i,destroy:o}}();var locastyle=locastyle||{};locastyle.dropdown=function(){"use strict";function t(){e(),n(),a(),l(c.dropdown)}function e(){$(c.firstLink).off("click.ls"),$(c.area).off("click.ls")}function n(){$(c.firstLink).on("click.ls",function(t){t.preventDefault();var e=$($(this).parents(c.module));locastyle.dropdown.toggleDropdown(e),r(e),t.stopPropagation()})}function a(){$(c.area).on("click.ls",function(){locastyle.dropdown.closeDropdown(),l(c.dropdown)})}function s(t){t.find(c.button).first().hasClass("ls-disabled")||(o(t),t.toggleClass("ls-active"),l(t),locastyle.topbarCurtain.hideCurtains(),i(t))}function i(t){$(t).hasClass("ls-active")?$(t).trigger("dropdown:opened"):$(t).trigger("dropdown:closed")}function o(t){$(c.module).not(t).removeClass("ls-active")}function r(t){var e=$(c.area);e.get(0).scrollWidth>e.width()&&$(t).addClass("ls-pos-right")}function l(t){$(c.button).attr({"aria-expanded":"false"}),$(c.nav).attr({"aria-hidden":"true"}),$(t).each(function(){$(c.nav).find("a").attr({role:"option"}),$(c.button,$(this)).attr({role:"combobox"}),$(this).hasClass("ls-active")?($(c.button,$(this)).attr({"aria-expanded":"true"}),$(c.nav,$(this)).attr({"aria-hidden":"false"})):($(c.button,$(this)).attr({"aria-expanded":"false"}),$(c.nav,$(this)).attr({"aria-hidden":"true"}))})}var c={area:"body",dropdown:".ls-dropdown",module:'[data-ls-module="dropdown"]',button:'[class*="ls-btn"]',firstLink:'[data-ls-module="dropdown"] > [class*="ls-btn"]:first-child, .ls-dropdown.ls-user-account > a:first-child',nav:".ls-dropdown-nav"};return{init:t,unbind:e,toggleDropdown:s,closeDropdown:o}}();var locastyle=locastyle||{};locastyle.tabs=function(){"use strict";function t(){c(),e(),n(),s(),u()}function e(){$('[data-ls-module="tabs"]').on("click.ls",function(t){t.preventDefault();var e=$($(this).attr("href")||$(this).data("target")),n=$(this).closest(".ls-tabs-nav");l(this,e),r(this,e),a(n)&&i(n)})}function n(){$(window).on("breakpoint-updated",function(){locastyle.tabs.checkBreakpoint()})}function a(t){return $(t).hasClass("in-dropdown")}function s(){("ls-window-sm"===locastyle.breakpointClass||"ls-window-xs"===locastyle.breakpointClass)&&$(".ls-tabs-nav").each(function(t,e){a(e)||o(e)})}function i(t){t.closest(".ls-dropdown-tabs").find("> a").text(t.find("li.ls-active > a").text())}function o(t){var e=$(t);e.addClass("in-dropdown ls-dropdown-nav").wrap('<div data-ls-module="dropdown" class="ls-dropdown-tabs">'),e.find(".ls-dropdown-nav").each(function(){e.append($(this).html()),$(this).closest("li").remove()}),e.parent(".ls-dropdown-tabs").prepend('<a data-ls-module="tabs" class="ls-btn">'+e.find("li.ls-active > a").text()+"</a>"),locastyle.tabs.init(),locastyle.dropdown.init()}function r(t,e){$(t).parents("li").addClass("ls-active"),$(t).trigger("tab:activated"),e.addClass("ls-active"),$(t).attr("aria-selected",!0)}function l(t,e){$(t).parents("li").siblings().removeClass("ls-active"),$(t).trigger("tab:deactivated"),e.siblings().removeClass("ls-active"),$(t).parents("li").siblings().find("a").attr("aria-selected",!1)}function c(){$("[data-ls-module=tabs]").off("click.ls")}function u(){$(d.tab).attr("role","tablist"),$(d.tabLink).attr("role","tab"),$(d.tabListActive).attr("aria-selected","true"),$(d.tabContent).attr("role","tabpanel")}var d={tab:".ls-tabs-nav",tabLink:".ls-tabs-nav a",tabListActive:".ls-tabs-nav li.ls-active a",tabContent:".ls-tab-content"};return{init:t,unbind:c,checkBreakpoint:s}}();var locastyle=locastyle||{};locastyle.templates=function(){"use strict";function t(){}function e(t){return JST[i+"popover"](t)}function n(t){return JST[i+"modal"](t)}function a(t){return JST[i+"dropdown"]({elements:t})}function s(){return JST[i+"browser-unsupported-bar"]()}var i="locastyle/templates/_";return{init:t,popover:e,modal:n,dropdown:a,browserUnsupportedBar:s}}();var locastyle=locastyle||{};locastyle.general=function(){"use strict";function t(){c(),n(),e(),o(),r(),l(),a()}function e(){$.each(u,function(t,e){var n=t.split("|");$(n[0]).off(n[1],n[2]),$(n[0]).on(n[1],n[2],function(t){var n=$(this);e(t,n)})})}function n(){var t=window.location.hash.replace("!/#","");""!==t&&$('[data-target="'+t+'"], a[href="'+t+'"]').trigger("click")}function a(){$("[data-ls-fields-enable]").on("click.ls",function(t){t.preventDefault();var e=$(this),n=$(e.data("ls-fields-enable")),a=n.data("form-text")?"ls-form-text":"";n.toggleClass("ls-form-disable ls-active "+a).find(":input").each(function(t,e){var n=$(e);n.toggleAttr("disabled").toggleClass(a).val(n.data("original-value"))})})}function s(t,e){var n=e.data("target")?$(e.data("target")):e,a=e.data("toggle-class");/(radio)|(checkbox)/.test(e.attr("type"))?(n.toggleClass(a,!e.prop("checked")),$('[name="'+e.attr("name")+'"]').not(e).each(function(){var t=$(this),n=t.data("target")?$(t.data("target")):t,a=t.data("toggle-class");n.toggleClass(a,e.prop("checked"))})):(t.preventDefault(),n.toggleClass(a))}function i(t,e){t.preventDefault();var n=$(e.attr("href"));n[0]&&$("html,body").animate({scrollTop:n.offset().top-70},1e3)}function o(){$(".ls-disabled, [disabled='disabled']").on("click",function(t){return $(this).hasClass("ls-disabled")||"disabled"===$(this).attr("disabled")?(t.stopImmediatePropagation(),t.preventDefault(),t.stopPropagation(),!1):void 0})}function r(t){$("a",t).on("click.lsPreventDefault",function(t){(""===$(this).attr("href")||"#"===$(this).attr("href"))&&t.preventDefault()})}function l(){$(".ls-group-active [class*='ls-btn']").on("click",function(){$(this).siblings().removeClass("ls-active"),$(this).addClass("ls-active")})}function c(){$("[data-ls-fields-enable]").off("click.ls"),$(".ls-disabled, [disabled='disabled']").off("click")}var u={"[data-toggle-class]|click":s,".ls-link-smooth|click":i};return jQuery.fn.toggleAttr=function(t){return this.each(function(){var e=$(this);return e.attr(t)?e.removeAttr(t):e.attr(t,t)})},{init:t}}();var locastyle=locastyle||{};locastyle.progressBar=function(){"use strict";function t(){e()}function e(){$("[data-ls-module='progressBar']").each(function(t,e){var a=$(e).attr("aria-valuenow");$(e).append("<span aria-valuenow='"+a+"%'>");var s=$(e).find("span");n(s,a)})}function n(t,e){$(t).css("width",e+"%")}return{init:t}}();var locastyle=locastyle||{};locastyle.form=function(){"use strict";function t(){i(),o(),s(),n(),e(),c(),a(),l()}function e(){"ls-window-xs"===locastyle.breakpointClass?($(".ls-label-text-sufix").parents(".ls-label").addClass("ls-label-text-has-sufix"),$(".ls-label-text-prefix").parents(".ls-label").addClass("ls-label-text-has-prefix")):$(".ls-label-text-sufix").prev('[class*="col-"]').addClass("ls-no-padding-right").find(":input").addClass("ls-no-right-radius ls-border")}function n(){$("textarea.ls-textarea-autoresize",".ls-label").each(function(t,e){var n=$(e);n.keyup(function(){if(!n.prop("scrollTop")){var t;do{t=n.prop("scrollHeight");var e=n.height();n.height(e-5)}while(t&&t!==n.prop("scrollHeight"))}n.height(n.prop("scrollHeight"))})})}function a(){$("textarea").each(function(t,e){var n=$(e).val(),a=n.split(/\r|\r\n|\n/),s=a.length,i=18*s;$(e).height(i+"px")})}function s(){$(".ls-mask-date").mask("00/00/0000"),$(".ls-mask-time").mask("00:00:00"),$(".ls-mask-date_time").mask("00/00/0000 00:00:00"),$(".ls-mask-cep").mask("00000-000"),$(".ls-mask-phone8").mask("0000-0000"),$(".ls-mask-phone9").mask("00009-0000"),$(".ls-mask-phone8_with_ddd").mask("(00) 0000-0000"),$(".ls-mask-phone9_with_ddd").mask("(00) 00009-0000"),$(".ls-mask-cpf").mask("000.000.000-00",{reverse:!0}),$(".ls-mask-cnpj").mask("00.000.000/0000-00",{reverse:!0}),$(".ls-mask-money").mask("#.##0,00",{reverse:!0,maxlength:!1}),$(".ls-mask-number").mask("#.##0",{reverse:!0,maxlength:!1}),$(".ls-mask-ip_address").mask("0ZZ.0ZZ.0ZZ.0ZZ",{translation:{Z:{pattern:/[0-9]/,optional:!0}}}),$(".ls-mask-percent").mask("##0,00%",{reverse:!0})}function i(){$(u.selectors.disable).each(function(t,e){var n=$(e);n.find(":input").each(function(t,e){var n=$(e);n.attr("disabled","disabled"),n.data("original-value",n.val())})})}function o(){$(u.selectors.text).each(function(t,e){$(e).find(":input").each(function(t,e){$(e).addClass("ls-form-text")}),$(e).data("form-text",!0)})}function r(t){if(void 0!==$(t).data("toggle-class")){var e=$(t).data("toggle-class").split(",");$(t).toggleClass(e[0]).toggleClass(e[1])}}function l(){$("[data-trigger-calendar]").on("click.ls",function(t){var e=$(this).data("trigger-calendar");$(e).trigger("click.ls")})}function c(){$(".ls-toggle-pass").on("click",function(t){t.preventDefault();var e=$(this).data("target");r($(this)),"password"===$(e).attr("type")?$(e).removeAttr("attr").prop("type","text"):$(e).removeAttr("attr").prop("type","password")})}var u={selectors:{disable:".ls-form-disable",text:".ls-form-text"}};return{init:t,togglePasswordField:c,triggerCalendar:l}}();var locastyle=locastyle||{};locastyle.guidedTour=function(){"use strict";function t(t){e(t)}function e(t){t&&t.selectors&&hopscotch&&($.each(l.selectors,function(e){t.selectors[e]=t.selectors[e]||l.selectors[e]}),n(t),o())}function n(t){r=t,$(l.selectors.init).on({click:s})}function a(t){return $(l.selectors.tour).trigger("click"),$(l.selectors.init).focus().attr("tabindex","-1"),t?t.preventDefault():null}function s(){locastyle.topbarCurtain.hideCurtains(),hopscotch.endTour(),hopscotch.startTour(r,0),i()}function i(){var t=39,e=37,n=27,a=hopscotch.getCurrTour().steps.length;$("body").off("keyup").on("keyup",function(s){var i=s.keyCode;hopscotch.getCurrStepNum()<a&&hopscotch.getState()&&(i===t&&hopscotch.nextStep(),i===e&&hopscotch.prevStep()),i===n&&hopscotch.endTour()})}function o(){"true"!==$.cookie("cookie_tour")&&($(l.selectors.tour).trigger("click"),$(l.selectors.init).focus().attr("tabindex","-1"),$.cookie("cookie_tour","true"))}var r,l={selectors:{init:".ls-btn-tour",tour:".ls-alerts-list .ls-ico-question"}};return{init:t,openWelcomeTour:a}}();var locastyle=locastyle||{};locastyle.topbarCurtain=function(){"use strict";function t(){e(),a(),i(),s(),c(),n(),u()}function e(){$(d.module).off("click.ls, ls.toggleTopCurtain"),$(".ls-notification-list").off("click.ls"),$("body").off("click.lsTopCurtain")}function n(){$(d.module).each(function(t,e){var n=$(e).data("target"),a=$(n+" .ls-dismissable:not(.ls-dismissed)").length;0!==a&&$('[data-target="'+n+'"]').attr("data-counter",a),0===a&&($('[data-target="'+n+'"]').removeAttr("data-counter"),$(n+" .ls-no-notification-message").addClass("active"))})}function a(){$(d.module).each(function(t,e){var n=$(e).position().left,a=11,s=$($(e).data("target")).width()/2,i=window.navigator.userAgent,r=i.indexOf("MSIE "),l=i.indexOf("Trident/");r>0||l>0?$($(e).data("target")).css({left:n+a-s+"px",top:"60px"}):$($(e).data("target")).css({left:n+a+s+"px"}),o(e)})}function s(){$(".ls-notification-list").on("click.ls",function(t){t.stopPropagation()})}function i(){$("body").on("click.lsTopCurtain",function(){l()})}function o(t){$(t).on("click.ls, ls.toggleTopCurtain",function(e){e.stopPropagation();var n=$($(t).data("target")).hasClass("ls-active");l(),n||($(t).addClass("ls-active"),r($(t).data("target")))})}function r(t){$(t).addClass("ls-active"),locastyle.dropdown.closeDropdown()}function l(){$("[data-ls-module='topbarCurtain']").removeClass("ls-active"),$(".ls-notification-list").removeClass("ls-active")}function c(){var t;$(window).resize(function(){clearTimeout(t),t=setTimeout(function(){e(),a(),i(),s()},300)})}function u(){var t=$(".ls-topbar .ls-user-account");$(".ls-sidebar .ls-user-account").length||t.clone().prependTo(".ls-sidebar")}var d={module:'[data-ls-module="topbarCurtain"]'};return{init:t,hideCurtains:l,unbind:e,updateStatusCounter:n}}();var locastyle=locastyle||{};locastyle.btnGroup=function(){"use strict";function t(){a(),n()}function e(){$(document).off("breakpoint-updated")}function n(){e(),$(document).on("breakpoint-updated",function(){a()})}function a(){("ls-window-sm"===locastyle.breakpointClass||"ls-window-xs"===locastyle.breakpointClass)&&($(".ls-regroup").each(function(t,e){s($(e).find("a, button"))}),locastyle.dropdown.init(),locastyle.modal.init(),locastyle.general.init())}function s(t){var e=$(t).wrap('<li class="hidden-xs hidden-sm">');t.parents(".ls-regroup").find('a[class*="ls-btn"]').removeClass(),t.parents(".ls-regroup").html(locastyle.templates.dropdown(e))}return{init:t}}();var locastyle=locastyle||{};locastyle.datepicker=function(){"use strict";function t(){$(s.selector).each(function(){$(this).hasClass("ls-daterange")||e($(this))}),$(s.rangeSelector).each(function(){n($(this))})}function e(t){t.pikaday(s.pikaday)}function n(t){var e=null,n=null,a={field:t[0],onSelect:function(){n.setMinDate(this.getDate())}},i={field:$(t.data("ls-daterange"))[0],onSelect:function(){e.setMaxDate(this.getDate())}};e=new Pikaday($.extend(a,s.pikaday)),n=new Pikaday($.extend(i,s.pikaday))}function a(t){e($(t))}var s={selector:".datepicker",rangeSelector:"[data-ls-daterange]",pikaday:{firstDay:1,minDate:new Date("2000-01-01"),maxDate:new Date("2020-12-31"),format:"DD/MM/YYYY",yearRange:[2e3,2020],i18n:{previousMonth:"Anterior",nextMonth:"Pr\xf3ximo",months:["Janeiro","Fevereiro","Mar\xe7o","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],weekdays:["Domingo","Segunda","Ter\xe7a","Quarta","Quinta","Sexta","S\xe1bado"],weekdaysShort:["Dom","Seg","Ter","Qua","Qui","Sex","S\xe1b"]}}};return{init:t,newDatepicker:a,createWithRange:n}}();var locastyle=locastyle||{};locastyle.charCounter=function(){"use strict";function t(){e()}function e(){$('[data-ls-module="charCounter"]').each(function(t,e){var a=$(e).attr("maxlength");$(e).removeAttr("maxlength").data().maxlength=a,$(e).after('<p class="ls-help-inline"><small><strong class="ls-char-count ls-number-counter-'+t+'">'+a+"</strong> caracteres restantes</small></p>"),$(e).keyup(function(){var e=$(this).val().length,a=$(this).data().maxlength;e>a?($(this).val($(this).val().substring(0,a)),n(t,0)):n(t,a-e)}),$(e).trigger("keyup")})}function n(t,e){$(".ls-number-counter-"+t).text(e)}return{init:t}}();var locastyle=locastyle||{};locastyle.browserDetect=function(){"use strict";function t(){a()}function e(){return s=i.match(/(firefox)/)?i.match(/(firefox)/)[1]:i.match(/(msie|phantomjs|chrome|version|rv)/)[1]}function n(){return parseInt((i.match(/.+(?:firefox|phantomjs|msie|chrome|version|rv)[\/: ]([\d.]+)/)||[0,0])[1].split(".")[0],10)}function a(){$("html").addClass("ls-browser-"+e())}var s,i=navigator.userAgent.toLowerCase();return{init:t,browserName:e,browserVersion:n}}();var locastyle=locastyle||{};locastyle.browserUnsupportedBar=function(){"use strict";function t(){e(),a()}function e(){var t=locastyle.browserDetect.browserVersion(),e=locastyle.browserDetect.browserName(),a={chrome:34,firefox:29,version:5,msie:8};$.cookie("hideBrowserUnsupportedAlert")||t<=a[e]&&n()}function n(){$("html").addClass("ls-browser-unsupported"),$("body").prepend(locastyle.templates.browserUnsupportedBar())}function a(){$(".ls-dismiss[data-ls-module=dismiss]").on("click",function(){$("html").removeClass("ls-browser-unsupported"),$("html .ls-unsupported-bar").remove(),$.cookie("hideBrowserUnsupportedAlert",!0,{expires:1})})}return{init:t}}();var locastyle=locastyle||{};locastyle.trackEvents=function(){"use strict";function t(){window.ga?(locastyle.trackEvents.gaPresent=!0,e(locastyle.trackEvents),n()):locastyle.trackEvents.gaPresent=!1}function e(t){t.eventCategory=$("body").attr("data-ls-te-category")||window.location.pathname}function n(){a(),s(),i(),o(),u()}function a(){var t=$("a");$(t).each(function(t,e){var n={};if(n.category=$(e).data("ls-te-category")?$(e).data("ls-te-category"):null,n.action=$(e).data("ls-te-action")?$(e).data("ls-te-action"):"open_link_#"+$(e).attr("href"),
73
+ n.label=$(e).data("ls-te-label")?$(e).data("ls-te-label"):$(e).text(),$(e).attr("href")&&0===$(e).attr("href").indexOf("#")&&(n.action=$(e).data("ls-te-action")?$(e).data("ls-te-action"):"on_page_link_"+$(e).attr("href")),"tabs"===$(e).attr("data-ls-module")&&(n.action="tab_navigation"),"dropdown"===$(e).parent().attr("data-ls-module")&&($(e).parents(".ls-topbar").length>0?(n.action="top_bar_action",n.label="Toggle user dropdown"):n.action="dropdown_toggle"),"modal"===$(e).attr("data-ls-module")){var a=$(e).data("target")?$(e).data("target"):$(e).attr("href");n.action="open_modal_"+a}"collapse"===$(e).parent().attr("data-ls-module")&&(n.type="collapse"),"topbarCurtain"===$(e).attr("data-ls-module")&&(n.action="top_bar_action"),r(e,n)})}function s(){var t=$("button");$(t).each(function(t,e){var n={};n.category=$(e).data("ls-te-category")?$(e).data("ls-te-category"):null,n.action=$(e).data("ls-te-action")?$(e).data("ls-te-action"):"on_page_button_#",n.label=$(e).data("ls-te-label")?$(e).data("ls-te-label"):$(e).text();var a;"modal"===$(e).attr("data-ls-module")&&(a=$(e).data("target")?$(e).data("target"):$(e).attr("href"),n.action="open_modal_"+a),"modal"===$(e).attr("data-dismiss")&&(a=$($(e).parents(".ls-modal")).attr("id"),n.action="close_modal_#"+a),r(e,n)})}function i(){var t=$("form");$(t).each(function(t,e){var n={};$(e).parents(".ls-modal").length?n.action="submit_form_#"+($(e).data("action")||$(e).attr("id")||$(e).attr("action"))+"#inside_modal#"+$(e).parents(".ls-modal").attr("id"):n.action="submit_form_#"+($(e).data("action")||$(e).attr("id")||$(e).attr("action")),n.label=$(e).find(":submit[type=submit]").val()||$(e).find(":submit[type=submit]").text(),l(e,n)})}function o(){var t=$("select");$(t).each(function(t,e){var n={};n.category=$(e).data("ls-te-category")?$(e).data("ls-te-category"):null,n.action="select_change_#"+($(e).attr("id")||$(e).attr("name")),n.label="option",c(e,n)})}function r(t,e){$(t).off("click.lsTrackEvent"),$(t).on("click.lsTrackEvent",function(){if("collapse"===e.type){var n=$(t).parent().attr("id");$("#"+n).hasClass("ls-collapse-open")?(e.action="close_collapse_#"+n,e.label="Close collapse"):(e.action="open_collapse_#"+n,e.label="Open collapse")}ga("send","event",e.category||locastyle.trackEvents.eventCategory,e.action,e.label)})}function l(t,e){$(t).find(":submit[type=submit]").off("click.lsTrackEvent"),$(t).off("submit.ls"),$(t).on("submit.ls",function(){ga("send","event",locastyle.trackEvents.eventCategory,e.action,e.label)})}function c(t,e){$(t).off("change.ls"),$(t).on("change.ls",function(){e.label=$(this).val(),ga("send","event",e.category||locastyle.trackEvents.eventCategory,e.action,e.label)})}function u(){$("body").off("click.lsTrackEvents"),$("body").on("click.lsTrackEvents",".hopscotch-bubble .hopscotch-nav-button",function(){var t=$(this).parents(".hopscotch-bubble").find(".hopscotch-bubble-number").text();ga("send","event",locastyle.trackEvents.eventCategory,"go_to_tour_step["+t+"]",$(this).text())})}return{init:t}}();var locastyle=locastyle||{};locastyle.steps=function(){"use strict";function t(){e(),n(),a(),o(),r(),s(),l(),i(),c(),u()}function e(){$(b.selectors.nav).off("click.steps"),$(b.actions.next).off("click.steps"),$(b.actions.prev).off("click.steps")}function n(){$(".ls-steps-nav li").prepend('<span class="ls-steps-arrow" />')}function a(){$(b.selectors.nav).attr("role","tablist"),$(b.selectors.nav).find(b.selectors.button).attr("aria-selected","false"),$(b.selectors.nav).find(".ls-active .ls-steps-btn").attr("aria-selected","true"),$(b.selectors.button).attr("role","tab"),$(b.selectors.container).attr({"aria-hidden":!0,role:"tabpanel"})}function s(){var t=$(b.selectors.nav).find("li");t.each(function(e){$(this).hasClass(b.status.active)&&$(b.selectors.mobile).attr({"data-index":e+1+" de "+t.length,"data-title":$(this).find(b.selectors.button).attr("title")})})}function i(){$(b.selectors.mobile).on("click.steps",function(){$(b.selectors.steps).toggleClass(b.status.active)})}function o(){for(var t=$(b.selectors.button),e=t.length,n=0;e>n;n++){var a=$(t[n]).attr("title");$(t[n]).attr({"aria-label":a})}}function r(){var t=$(b.selectors.nav).find(b.classes.active).index();-1===t?$(b.selectors.nav).each(function(){var t=$(this).find("li:first").find(b.selectors.button),e=t.data("target");m(t,$(e))}):(p(t),$(b.selectors.nav).find("li:lt("+t+")").addClass(b.status.actived));var e=$(b.selectors.moduleVisible).height();f(e)}function l(){$(b.selectors.nav).on("click.steps",b.selectors.moduleActive,function(t){t.preventDefault(),g($(this))})}function c(){$(b.actions.next).on("click.steps",function(t){t.preventDefault(),d()})}function u(){$(b.actions.prev).on("click.steps",function(t){t.preventDefault(),h()})}function d(){var t=jQuery.Event("NextStepEvent");$(document).trigger(t);var e=jQuery.Event("BeforeNextStep");if($(document).trigger(e),!t.isDefaultPrevented()&&!e.isDefaultPrevented()){var n=$(b.selectors.nav).find(b.classes.active).next("li").addClass(b.status.active).find(b.selectors.button);g(n),$(document).trigger(jQuery.Event("AfterNextStep"))}}function h(){var t=jQuery.Event("PrevStepEvent");$(document).trigger(t);var e=jQuery.Event("BeforePrevStep");if($(document).trigger(e),!t.isDefaultPrevented()&&!e.isDefaultPrevented()){var n=$(b.selectors.nav).find(b.classes.active).prev("li").find(b.selectors.button);g(n),$(document).trigger(jQuery.Event("AfterPrevStep"))}}function f(t){var e=$(b.selectors.nav),n=e.offset(),a=$(b.selectors.nav).height();$(window).scroll(function(){if(!($(window).width()<768))if($(window).scrollTop()>n.top){var s=parseInt($(window).scrollTop()-a,10);e.stop().animate({marginTop:$(window).scrollTop()-n.top+20}),s+a>=t&&e.stop().animate({marginTop:0})}else e.stop().animate({marginTop:0})})}function p(t){$(b.selectors.container).eq(t).addClass(b.status.active)}function g(t){var e=$(t.attr("href")||t.data("target"));m(t,e),v(t,e),y(),s(),$("html").hasClass("ls-screen-xs")&&$(b.selectors.nav).hasClass(b.status.active)&&$(b.selectors.mobile).trigger("click")}function m(t,e){$(t).parents("li").addClass(b.status.active),$(t).parents("li").prev("li").addClass(b.status.actived),e.addClass(b.status.active).attr({"aria-hidden":!1}),$(t).attr("aria-selected",!0)}function v(t,e){$(t).parents("li").siblings().removeClass(b.status.active),e.siblings().removeClass(b.status.active).attr({"aria-hidden":!0}),$(t).parents("li").siblings().find(b.selectors.button).attr("aria-selected",!1)}function y(){$("html, body").stop().animate({scrollTop:$(".ls-steps").offset().top-60},300);var t=$(b.selectors.moduleVisible).height();f(t)}var b={selectors:{moduleActive:'.ls-actived [data-ls-module="steps"]',nav:".ls-steps-nav",button:".ls-steps-btn",container:".ls-steps-content",steps:".ls-steps",moduleVisible:".ls-steps-content:visible",mobile:".ls-steps-mobile"},status:{active:"ls-active",actived:"ls-actived"},classes:{active:".ls-active"},actions:{next:'.ls-steps-content [data-action="next"]',prev:'.ls-steps-content [data-action="prev"]'}};return{init:t,unbind:e,nextStep:d,prevStep:h}}();var locastyle=locastyle||{};locastyle.button=function(){"use strict";function t(){e(),i(),n(),l()}function e(){$("[data-ls-module=button]").off("click.button")}function n(){$('[data-ls-module="button"]').on("click.button",function(t){t.preventDefault();var e=$($(this).attr("href")||$(this).data("target")),n="[data-ls-module=button]";r(this,e,n),o(this,e),a(),$(this).find("input").prop("checked",!0)})}function a(){$('[data-ls-module="button"] input[type="radio"]').each(function(t,e){$(e).removeAttr("checked")})}function s(t){$(t).each(function(t,e){$(e).attr("checked","checked")})}function i(){$(".ls-tabs-btn-nav li.ls-active").each(function(){if($(this).hasClass("ls-active")===!0){var t=$(this).find('[data-ls-module="button"]'),e=t.attr("href")||t.data("target"),n="[data-ls-module=button]";s($(this).find('[data-ls-module="button"] input[type="radio"]')),r(t,e,n),o(t,e)}})}function o(t,e){$(t).parents("li").addClass("ls-active"),$(e).addClass("ls-active"),$(t).attr("aria-selected",!0)}function r(t,e,n){$(t).parents("li").siblings().removeClass("ls-active"),$(e).siblings().removeClass("ls-active"),$(t).parents("li").siblings().find(n).attr("aria-selected",!1)}function l(){$(".ls-tabs-btn-nav").attr("role","tablist"),$(".ls-tabs-btn-nav .ls-btn").attr("role","tab"),$(".ls-tabs-btn-nav .ls-active .ls-btn").attr("aria-selected","true"),$(".ls-tabs-btn .ls-tab-content").attr("role","tabpanel")}return{init:t,unbind:e}}();var locastyle=locastyle||{};locastyle.switchButton=function(){"use strict";function t(){e(),s()}function e(){$(i.switchButton).on("click.ls",function(t){0===$(this).find("a").length&&(a($(this)),n($(this)),t.stopPropagation())})}function n(t){t.find("input[type=checkbox]").prop("checked")?t.trigger("switchButton:activated"):t.trigger("switchButton:deactivated")}function a(t){t.toggleClass(i.openedClass)}function s(){$(i.switchButton).find("input[type=checkbox]").each(function(){$(this).prop("checked")&&$(this).closest(i.switchButton).addClass(i.openedClass)})}var i={switchButton:"[data-ls-module=switchButton]",openedClass:"ls-switch-btn-active"};return{init:t}}();var locastyle=locastyle||{};locastyle.toggleText=function(){"use strict";function t(t,e,n){t.trigger(i.triggerChange,[e,n])}function e(e){var n=e.data("target-text")?$(e.data("target-text")):e,a=e.data("toggle-text"),s=n.text();e.data("toggle-text",s),n.text(a),t(e,n,a)}function n(){$(i.trigger).on("click.ls",function(t){t.preventDefault(),e($(this)),t.stopPropagation()})}function a(){$(i.trigger).off("click.ls")}function s(){a(),n()}var i={trigger:"[data-ls-module=toggleText]",triggerChange:"toggleText:change"};return{init:s}}();var locastyle=locastyle||{};locastyle.checkboxToggle=function(){"use strict";function t(t){t.prop("checked",!1).removeClass("ls-checked")}function e(t){t.prop("checked",!0).addClass("ls-checked")}function n(t){if(t.data("toggleText")){var e=t.data("toggleText"),n=t.text();t.data("toggleText",n).text(e)}}function a(t,e){for(var a=0;a<e.length;a++)if(!e[a].checked)return t.hasClass("ls-triggered")&&n(t),t.prop("checked",!1).removeClass("ls-triggered"),!1;t.prop("checked",!0).addClass("ls-triggered"),n(t)}function s(t){t.hasClass("ls-triggered")?t.trigger("checkboxToggle:activated"):t.trigger("checkboxToggle:deactivated")}function i(i,o){i.on("click.ls",function(){$(this).hasClass("ls-triggered")?t(o):e(o),$(this).toggleClass("ls-triggered"),s($(this)),n($(this))}),o.each(function(){$(this).on("click.ls",function(){$(this).toggleClass("ls-checked"),a(i,o)})})}function o(){$(r.selector.module).each(function(){var t=$(this),e=$('[data-checkbox-toggle="'+t.data("checkboxTarget")+'"]');t.off("click.ls"),e.off("click.ls"),i(t,e)})}var r={selector:{module:'[data-ls-module="checkboxToggle"]'}};return{init:o}}();
@@ -0,0 +1 @@
1
+ (function(){this.JST||(this.JST={}),this.JST["locastyle/templates/_popover"]=function(t){t||(t={});var e,n=[],a=function(t){return t&&t.ecoSafe?t:"undefined"!=typeof t&&null!=t?o(t):""},s=t.safe,o=t.escape;return e=t.safe=function(t){if(t&&t.ecoSafe)return t;("undefined"==typeof t||null==t)&&(t="");var e=new String(t);return e.ecoSafe=!0,e},o||(o=t.escape=function(t){return(""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}),function(){(function(){n.push('<div id="ls-popover-'),n.push(a(this.uniqueId)),n.push('" class="ls-popover ls-popover-'),n.push(a(this.placement)),n.push(" "),n.push(a(this.customClasses)),n.push('" style="top:'),n.push(a(this.position.top)),n.push("px; left:"),n.push(a(this.position.left)),n.push("px;"),"open"===this.lsPopover&&n.push("display: block;"),n.push('">\n '),this.title&&(n.push('\n <div class="ls-popover-header">\n <h3 class="title-3"> '),n.push(a(this.title)),n.push(" </h3>\n </div>\n ")),n.push("\n "),this.content&&n.push("\n "),n.push('\n <div class="ls-popover-content"> '),n.push(this.content),n.push(" </div>\n</div>\n")}).call(this)}.call(t),t.safe=s,t.escape=o,n.join("")}}).call(this),function(){this.JST||(this.JST={}),this.JST["locastyle/templates/_dropdown"]=function(t){t||(t={});var e,n=[],a=t.safe,s=t.escape;return e=t.safe=function(t){if(t&&t.ecoSafe)return t;("undefined"==typeof t||null==t)&&(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}),function(){(function(){var t,e,a,s;for(n.push('<div data-ls-module="dropdown" class="ls-dropdown">\n <a href="#" class="ls-btn"></a>\n <ul class="ls-dropdown-nav">\n '),s=this.elements,e=0,a=s.length;a>e;e++)t=s[e],n.push("\n "),""!==t.text&&(n.push("\n <li>"),n.push(t.outerHTML),n.push("</li>\n ")),n.push("\n ");n.push("\n </ul>\n</div>\n")}).call(this)}.call(t),t.safe=a,t.escape=s,n.join("")}}.call(this);