function validateForm(n,t,i){var r=!0,u="",t=$(n).find(t);return i!=undefined&&i!=null&&(t=t.not(i)),t.each(function(){var t,n,i;$(this).is(":visible")&&(t=$(this),n=getValidator(t),n!=null&&n!=undefined?(i=n.validate(),i||(r=!1,u+="\n"+t.attr("id"))):(n=t.igValidator(),n!=null&&n!=undefined&&(i=t.igValidator("validate"),i||(r=!1,u+="\n"+t.attr("id")))))}),r}function resetValidators(n,t,i){var t=$(n).find(t);i!=undefined&&i!=null&&(t=t.not(i));t.each(function(){if($(this).is(":visible")){var n=getValidator($(this));n!=null?n.hide():(n=$(this).igValidator(),n!=null&&n!=undefined&&$(this).igValidator("hide"))}})}function getValidator(n){var t=null;try{if(t=n.igEditor("validator"),t!=null)return t}catch(i){}try{if(t=n.igTextEditor("validator"),t!=null)return t}catch(i){}try{if(t=n.igDatePicker("validator"),t!=null)return t}catch(i){}try{if(t=n.igDateEditor("validator"),t!=null)return t}catch(i){}try{if(t=n.igNumericEditor("validator"),t!=null)return t}catch(i){}try{if(t=n.igCurrencyEditor("validator"),t!=null)return t}catch(i){}try{if(t=n.igPercentEditor("validator"),t!=null)return t}catch(i){}try{if(t=n.igMaskEditor("validator"),t!=null)return t}catch(i){}try{if(t=n.igCombo("validator"),t!=null)return t}catch(i){}}function validateIG(n){var t=getValidator($(n));t!=null&&t.validate()}function loadScript(n,t){var i,r;$('script[src*="'+n+'"]').length==0?(i=document.createElement("script"),i.type="text/javascript",i.src=n,i.src+=n.indexOf("?")==-1?"?":"&",i.src+="v="+(new Date).getTime(),r=!1,i.onload=i.onreadystatechange=function(){r||this.readyState&&this.readyState!="loaded"&&this.readyState!="complete"||(r=!0,t&&t(),i.onload=i.onreadystatechange=null)},document.documentElement.appendChild(i)):t&&t()}function loadCss(n){if($('link[href*="'+n+'"]').length==0){var t=document.createElement("link");t.rel="stylesheet";t.href=n;t.href+=t.href.indexOf("?")==-1?"?":"&";t.href+="v="+(new Date).getTime();document.documentElement.appendChild(t)}}function formatPhoneNumber(n){return n.replace(/(\d{3})(\d{3})(\d{4})/,"($1) $2-$3")}function findKOCMItem(n,t){var i,t;if(isNaN(t)){for(i=0;i<n.length;i++)if(n[i].Description===t)return n[i]}else for(i=0;i<n.length;i++)if(n[i].CodeMasterId===t)return n[i];return t={},t.CodeMasterId=0,t.Description="",t}function findKOComboItem(n,t,i,r){var f,e,u;if(n==null||n.length==0)return null;for(f=ko.isObservable(n[0][i]),e="",u=0;u<n.length;u++)if(e=f?n[u][i]():n[u][i],t!=null&&e==t.toString())return r==null?f?n[u]():n[u]:f?n[u][r]():n[u][r]}function numberWithCommas(n){var t=n.toString().split("."),i=t[0].replace(/\B(?=(\d{3})+(?!\d))/g,",");return t.length==1?i:i+"."+t[1]}function getQSByName(n){n=n.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var i=new RegExp("[\\?&]"+n+"=([^&#]*)"),t=i.exec(location.search);return t==null?"":decodeURIComponent(t[1].replace(/\+/g," "))}function validateEmail(n){return/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(n)}function rgb2hex(n){return n=n.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/),"#"+("0"+parseInt(n[1],10).toString(16)).slice(-2)+("0"+parseInt(n[2],10).toString(16)).slice(-2)+("0"+parseInt(n[3],10).toString(16)).slice(-2)}function getAbsoluteUrl(n){return n.replace(/^(?:\/\/|[^\/]+)*\//,"")}function getPdfViewerUrl(n){var t=new Date,i;return isMobile.iOS()?(n=n.replace("?","&"),"/pdfjs/viewer.html?file="+n+"&d="+t.getTime()):(i=n.indexOf("?"),i==-1?n+"?d="+t.getTime():n+"&d="+t.getTime())}function setPdfDocument(n){PDFJS.getDocument(n).then(function(){alert("done")})}function isNullOrZero(n){return n==null||n===undefined||n==0?!0:!1}function getTransactions(n){var u=$(n).igGrid("allTransactions"),o=$(n).igGrid("option","primaryKey"),e=[],f,t,i,r;if(u!=null&&u.length>0)for(f=0;f<u.length;f++)t=u[f],r=e.filter(function(){return r[o]==t.rowId}),r==null||r.length==0?(i={},i[o]=t.rowId,e.push(i)):i=r[0],i[t.col]=t.value;return e}function validateDate(n){var u;if(!/^\d{1,2}\/\d{1,2}\/\d{4}$/.test(n))return!1;var i=n.split("/"),f=parseInt(i[1],10),r=parseInt(i[0],10),t=parseInt(i[2],10);return t<1e3||t>3e3||r==0||r>12?!1:(u=[31,28,31,30,31,30,31,31,30,31,30,31],(t%400==0||t%100!=0&&t%4==0)&&(u[1]=29),f>0&&f<=u[r-1])}function setupCharactersLeft(n){$(n).each(function(){var t=$(this),n=t.attr("data-maxlength"),i=t.attr("data-cutoffText");if(n){n=parseInt(n);updateCharactersLeftLabel(t);t.on("keyup",function(){if(updateCharactersLeftLabel($(this)),i=="true"){var t=$(this).val();t.length>n&&($(this).val(t.substring(0,n)),updateCharactersLeftLabel($(this)))}});t.on("change",function(){if(updateCharactersLeftLabel($(this)),i=="true"){var t=$(this).val();t.length>n&&($(this).val(t.substring(0,n)),updateCharactersLeftLabel($(this)))}})}})}function updateCharactersLeftLabel(n){var r=n.attr("id"),i=$('label[for="'+r+'"]'),t=i.find("span.count");t.length==0&&(t=$("<span>").addClass("count"),i.append(t));var u=n.val().length,f=parseInt(n.attr("data-maxlength")),e="( "+u+" out of "+f+" )";t.text(e)}function mapFormToFormData(n,t){var t=ko.utils.unwrapObservable(t),i=new FormData,r,u,f;for(r in t)u=ko.utils.unwrapObservable(t[r]),i.append(r,u);return f=$(n).find(":file"),f.each(function(){var n=$(this).attr("name");n==""&&(n=file);i.append(n,$(this).prop("files")[0])}),i}function getIGComboBinding(n,t){var i=n.attr("data-bind").replace("igCombo:",""),r,u,e,f;return(i=i.replace(/(?:\r\n|\r|\n)/g,""),i=i.replace(/ /g,""),r=i.indexOf(t+":"),r!=-1&&(u=i.indexOf(",",r),u==-1&&(u=i.indexOf("}",r)),u!=-1&&(e=i.substring(r,u),f=e.split(":"),f.length>1)))?f[1]:null}function setIGComboFromKO(n){var u=ko.dataFor(n[0]),t=getIGComboBinding(n,"value"),c=getIGComboBinding(n,"text"),f=t!=null?t:c,l=t!=null?"valueKey":"textKey",s=null,h=n.igCombo("option",l),e,i,o,r;if(s=ko.isObservable(u[f])?u[f]():u[f],e=n.igCombo("items"),e!=null&&(i=e.filter(function(n){return ko.utils.unwrapObservable(n.data[h])==s}),i.length>0)){for(o=[],r=0;r<i.length;r++)o.push(ko.utils.unwrapObservable(i[r].data[h]));n.igCombo(t!=null?"value":"text",o)}}function setKOFromIGCombo(n){var i=getIGComboBinding(n,"value"),e=getIGComboBinding(n,"text"),r;if(i!=null||e!=null){n.addClass("kvu");var u=n.igCombo("selectedItems"),f=i!=null?i:e,o=i!=null?"valueKey":"textKey",t=null,s=n.igCombo("option",o);o=="valueKey"?u!=null&&u.length>0&&(t=u[0].data[s]):t=n.find(".ui-igcombo-field").val();t!=null&&(r=ko.dataFor(n[0]),t=ko.utils.unwrapObservable(t),ko.isObservable(r[f])?r[f](t):r[f]=t);n.removeClass("kvu")}}function mapIgniteKOBindings(n){if(typeof ko=="undefined"){setTimeout(function(){mapIgniteKOBindings(n)},100);return}var t=ko.contextFor(n);if(t==null){setTimeout(function(){mapIgniteKOBindings(n)},100);return}$(n).find('[data-bind*="igCombo"]').mapIGComboForKO()}function addIGEditorContainerIds(n){var t="igTextEditor,igDatePicker,igDateEditor,igNumericEditor,igCurrencyEditor,igPercentEditor,igMaskEditor",u,i,r,f;for(t=t.split(","),u=$(n),i=0;i<t.length;i++)r=t[i],console.log(r),f=u.find('[data-bind*="'+r+'"]'),f.each(function(){var n=$(this),t,i;n.is(":visible")&&(t=n.attr("id"),t!=undefined&&(i=getEditorContainer(n,r),i!=null&&i.attr("id",t+"_container")))})}function getEditorContainer(n,t){switch(t){case"igTextEditor":return n.igTextEditor("editorContainer");case"igDatePicker":return n.igDatePicker("editorContainer");case"igDateEditor":return n.igDateEditor("editorContainer");case"igNumericEditor":return n.igNumericEditor("editorContainer");case"igCurrencyEditor":return n.igCurrencyEditor("editorContainer");case"igPercentEditor":return n.igPercentEditor("editorContainer");case"igMaskEditor":return n.igMaskEditor("editorContainer")}return null}function fixCheckboxesForGrid(n){$(document).delegate(n,"iggridcellclick",function(n,t){var i=$(t.owner.element),f=i.igGrid("columnByKey",t.colKey),r,u;if(f.dataType=="bool")return r=i.igGrid("getCellValue",t.rowKey,t.colKey),u={},u[t.colKey]=!r,i.igGridUpdating("updateRow",t.rowKey,u),t.value=!r,t.columnKey=t.colKey,t.rowID=t.rowKey,i.trigger("fixedCheckboxesForGrid",[t]),!1})}function objectsEqual(n,t){var r=Object.getOwnPropertyNames(n),f=Object.getOwnPropertyNames(t),i,u;if(r.length!=f.length)return!1;for(i=0;i<r.length;i++)if(u=r[i],n[u]!==t[u])return!1;return!0}function arraysEqual(n,t){if(n.length!==t.length)return!1;for(var i=n.length;i--;)if(!objectsEqual(n[i],t[i]))return!1;return!0}var JSON,moment,dateFormat,isMobile,getAcrobatInfo,site,nav;JSON||(JSON={}),function(){"use strict";function i(n){return n<10?"0"+n:n}function f(n){return o.lastIndex=0,o.test(n)?'"'+n.replace(o,function(n){var t=s[n];return typeof t=="string"?t:"\\u"+("0000"+n.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+n+'"'}function r(i,e){var s,l,h,a,v=n,c,o=e[i];o&&typeof o=="object"&&typeof o.toJSON=="function"&&(o=o.toJSON(i));typeof t=="function"&&(o=t.call(e,i,o));switch(typeof o){case"string":return f(o);case"number":return isFinite(o)?String(o):"null";case"boolean":case"null":return String(o);case"object":if(!o)return"null";if(n+=u,c=[],Object.prototype.toString.apply(o)==="[object Array]"){for(a=o.length,s=0;s<a;s+=1)c[s]=r(s,o)||"null";return h=c.length===0?"[]":n?"[\n"+n+c.join(",\n"+n)+"\n"+v+"]":"["+c.join(",")+"]",n=v,h}if(t&&typeof t=="object")for(a=t.length,s=0;s<a;s+=1)typeof t[s]=="string"&&(l=t[s],h=r(l,o),h&&c.push(f(l)+(n?": ":":")+h));else for(l in o)Object.prototype.hasOwnProperty.call(o,l)&&(h=r(l,o),h&&c.push(f(l)+(n?": ":":")+h));return h=c.length===0?"{}":n?"{\n"+n+c.join(",\n"+n)+"\n"+v+"}":"{"+c.join(",")+"}",n=v,h}}typeof Date.prototype.toJSON!="function"&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+i(this.getUTCMonth()+1)+"-"+i(this.getUTCDate())+"T"+i(this.getUTCHours())+":"+i(this.getUTCMinutes())+":"+i(this.getUTCSeconds())+"Z":null},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(){return this.valueOf()});var e=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,o=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,n,u,s={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},t;typeof JSON.stringify!="function"&&(JSON.stringify=function(i,f,e){var o;if(n="",u="",typeof e=="number")for(o=0;o<e;o+=1)u+=" ";else typeof e=="string"&&(u=e);if(t=f,f&&typeof f!="function"&&(typeof f!="object"||typeof f.length!="number"))throw new Error("JSON.stringify");return r("",{"":i})});typeof JSON.parse!="function"&&(JSON.parse=function(n,t){function r(n,i){var f,e,u=n[i];if(u&&typeof u=="object")for(f in u)Object.prototype.hasOwnProperty.call(u,f)&&(e=r(u,f),e!==undefined?u[f]=e:delete u[f]);return t.call(n,i,u)}var i;if(n=String(n),e.lastIndex=0,e.test(n)&&(n=n.replace(e,function(n){return"\\u"+("0000"+n.charCodeAt(0).toString(16)).slice(-4)})),/^[\],:{}\s]*$/.test(n.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return i=eval("("+n+")"),typeof t=="function"?r({"":i},""):i;throw new SyntaxError("JSON.parse");})}();eval(function(n,t,i,r,u,f){if(u=function(n){return(n<t?"":u(parseInt(n/t)))+((n=n%t)>35?String.fromCharCode(n+29):n.toString(36))},!"".replace(/^/,String)){while(i--)f[u(i)]=r[i]||u(i);r=[function(n){return f[n]}];u=function(){return"\\w+"};i=1}while(i--)r[i]&&(n=n.replace(new RegExp("\\b"+u(i)+"\\b","g"),r[i]));return n}('(2($){$.c.f=2(p){p=$.d({g:"!@#$%^&*()+=[]\\\\\\\';,/{}|\\":<>?~`.- ",4:"",9:""},p);7 3.b(2(){5(p.G)p.4+="Q";5(p.w)p.4+="n";s=p.9.z(\'\');x(i=0;i<s.y;i++)5(p.g.h(s[i])!=-1)s[i]="\\\\"+s[i];p.9=s.O(\'|\');6 l=N M(p.9,\'E\');6 a=p.g+p.4;a=a.H(l,\'\');$(3).J(2(e){5(!e.r)k=o.q(e.K);L k=o.q(e.r);5(a.h(k)!=-1)e.j();5(e.u&&k==\'v\')e.j()});$(3).B(\'D\',2(){7 F})})};$.c.I=2(p){6 8="n";8+=8.P();p=$.d({4:8},p);7 3.b(2(){$(3).f(p)})};$.c.t=2(p){6 m="A";p=$.d({4:m},p);7 3.b(2(){$(3).f(p)})}})(C);',53,53,"||function|this|nchars|if|var|return|az|allow|ch|each|fn|extend||alphanumeric|ichars|indexOf||preventDefault||reg|nm|abcdefghijklmnopqrstuvwxyz|String||fromCharCode|charCode||alpha|ctrlKey||allcaps|for|length|split|1234567890|bind|jQuery|contextmenu|gi|false|nocaps|replace|numeric|keypress|which|else|RegExp|new|join|toUpperCase|ABCDEFGHIJKLMNOPQRSTUVWXYZ".split("|"),0,{})),function(n,t){var i=function(){if(t.innerWidth!=undefined)return[t.innerWidth,t.innerHeight];var n=document.body,i=document.documentElement;return[Math.max(i.clientWidth,n.clientWidth),Math.max(i.clientHeight,n.clientHeight)]};n.fn.center=function(r){var f=n(t),u=f.scrollTop();return this.each(function(){var t=n(this),e=n.extend({against:"window",top:!1,topPercentage:.5,resize:!0},r),o=function(){var f=e.against,r,n,s,o;f==="window"?r=i():f==="parent"?(n=t.parent(),r=[n.width(),n.height()],u=0):(n=t.parents(f),r=[n.width(),n.height()],u=0);s=(r[0]-t.outerWidth())*.5;o=(r[1]-t.outerHeight())*e.topPercentage+u;e.top&&(o=e.top+u);t.css({left:s,top:o})};o();e.resize===!0&&f.resize(o)})}}(jQuery,window);!function(n){n(["jquery"],function(n){return function(){function v(n,t,r){return u({type:f.error,iconClass:i().iconClasses.error,message:n,optionsOverride:r,title:t})}function r(r,u){return r||(r=i()),t=n("#"+r.containerId),t.length?t:(u&&(t=nt(r)),t)}function y(n,t,r){return u({type:f.info,iconClass:i().iconClasses.info,message:n,optionsOverride:r,title:t})}function p(n){o=n}function w(n,t,r){return u({type:f.success,iconClass:i().iconClasses.success,message:n,optionsOverride:r,title:t})}function b(n,t,r){return u({type:f.warning,iconClass:i().iconClasses.warning,message:n,optionsOverride:r,title:t})}function k(n){var u=i();t||r(u);h(n,u)||g(u)}function d(u){var f=i();return t||r(f),u&&0===n(":focus",u).length?void e(u):void(t.children().length&&t.remove())}function g(i){for(var u=t.children(),r=u.length-1;r>=0;r--)h(n(u[r]),i)}function h(t,i){return t&&0===n(":focus",t).length?(t[i.hideMethod]({duration:i.hideDuration,easing:i.hideEasing,complete:function(){e(t)}}),!0):!1}function nt(i){return t=n("<div/>").attr("id",i.containerId).addClass(i.positionClass).attr("aria-live","polite").attr("role","alert"),t.appendTo(n(i.target)),t}function tt(){return{tapToDismiss:!0,toastClass:"toast",containerId:"toast-container",debug:!1,showMethod:"fadeIn",showDuration:300,showEasing:"swing",onShown:void 0,hideMethod:"fadeOut",hideDuration:1e3,hideEasing:"swing",onHidden:void 0,extendedTimeOut:1e3,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},iconClass:"toast-info",positionClass:"toast-top-right",timeOut:5e3,titleClass:"toast-title",messageClass:"toast-message",target:"body",closeHtml:'<button type="button">&times;<\/button>',newestOnTop:!0,preventDuplicates:!1,progressBar:!1}}function c(n){o&&o(n)}function u(u){function v(t){if(!n(":focus",o).length||t)return(clearTimeout(h.intervalId),o[f.hideMethod]({duration:f.hideDuration,easing:f.hideEasing,complete:function(){e(o);f.onHidden&&"hidden"!==a.state&&f.onHidden();a.state="hidden";a.endTime=new Date;c(a)}}))}function g(){(f.timeOut>0||f.extendedTimeOut>0)&&(w=setTimeout(v,f.extendedTimeOut),h.maxHideTime=parseFloat(f.extendedTimeOut),h.hideEta=(new Date).getTime()+h.maxHideTime)}function nt(){clearTimeout(w);h.hideEta=0;o.stop(!0,!0)[f.showMethod]({duration:f.showDuration,easing:f.showEasing})}function tt(){var n=(h.hideEta-(new Date).getTime())/h.maxHideTime*100;b.width(n+"%")}var f=i(),p=u.iconClass||f.iconClass;if("undefined"!=typeof u.optionsOverride&&(f=n.extend(f,u.optionsOverride),p=u.optionsOverride.iconClass||p),f.preventDuplicates){if(u.message===s)return;s=u.message}l++;t=r(f,!0);var w=null,o=n("<div/>"),k=n("<div/>"),d=n("<div/>"),b=n("<div/>"),y=n(f.closeHtml),h={intervalId:null,hideEta:null,maxHideTime:null},a={toastId:l,state:"visible",startTime:new Date,options:f,map:u};return u.iconClass&&o.addClass(f.toastClass).addClass(p),u.title&&(k.append(u.title).addClass(f.titleClass),o.append(k)),u.message&&(d.append(u.message).addClass(f.messageClass),o.append(d)),f.closeButton&&(y.addClass("toast-close-button").attr("role","button"),o.prepend(y)),f.progressBar&&(b.addClass("toast-progress"),o.prepend(b)),o.hide(),f.newestOnTop?t.prepend(o):t.append(o),o[f.showMethod]({duration:f.showDuration,easing:f.showEasing,complete:f.onShown}),f.timeOut>0&&(w=setTimeout(v,f.timeOut),h.maxHideTime=parseFloat(f.timeOut),h.hideEta=(new Date).getTime()+h.maxHideTime,f.progressBar&&(h.intervalId=setInterval(tt,10))),o.hover(nt,g),!f.onclick&&f.tapToDismiss&&o.click(v),f.closeButton&&y&&y.click(function(n){n.stopPropagation?n.stopPropagation():void 0!==n.cancelBubble&&n.cancelBubble!==!0&&(n.cancelBubble=!0);v(!0)}),f.onclick&&o.click(function(){f.onclick();v()}),c(a),f.debug&&console&&console.log(a),o}function i(){return n.extend({},tt(),a.options)}function e(n){t||(t=r());n.is(":visible")||(n.remove(),n=null,0===t.children().length&&(t.remove(),s=void 0))}var t,o,s,l=0,f={error:"error",info:"info",success:"success",warning:"warning"},a={clear:k,remove:d,error:v,getContainer:r,info:y,options:{},subscribe:p,success:w,version:"2.1.0",warning:b};return a}()})}("function"==typeof define&&define.amd?define:function(n,t){"undefined"!=typeof module&&module.exports?module.exports=t(require("jquery")):window.toastr=t(window.jQuery)}),function(n){"use strict";function e(){if(!t.READY){t.event.determineEventTypes();for(var n in t.gestures)t.gestures.hasOwnProperty(n)&&t.detection.register(t.gestures[n]);t.event.onTouch(document,t.EVENT_MOVE,t.detection.detect);t.event.onTouch(document,t.EVENT_END,t.detection.endDetect);t.READY=!0}}var t=function(n,i){return new t.Instance(n,i||{})},f;t.defaults={stop_browser_behavior:{userSelect:"none",touchCallout:"none",touchAction:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};t.HAS_POINTEREVENTS=navigator.msPointerEnabled;t.HAS_TOUCHEVENTS="ontouchstart"in n;t.EVENT_TYPES={};t.DIRECTION_DOWN="down";t.DIRECTION_LEFT="left";t.DIRECTION_UP="up";t.DIRECTION_RIGHT="right";t.POINTER_MOUSE="mouse";t.POINTER_TOUCH="touch";t.EVENT_START="start";t.EVENT_MOVE="move";t.EVENT_END="end";f=navigator.userAgent;t.STOP_MOUSEEVENTS=t.HAS_TOUCHEVENTS&&f.match(/(like mac os x.*mobile.*safari)|android|blackberry/i);t.plugins={};t.READY=!1;t.Instance=function(n,i){var r=this;return e(),this.element=n,this.enabled=!0,this.options=t.utils.extend(t.utils.extend({},t.defaults),i||{}),this.options.stop_browser_behavior&&t.utils.stopDefaultBrowserBehavior(this),t.event.onTouch(n,t.EVENT_START,function(n){r.enabled&&t.detection.startDetect(r,n)}),this};t.Instance.prototype={on:function(n,t){for(var r=n.split(" "),i=0;r.length>i;i++)this.element.addEventListener(r[i],t,!1);return this},off:function(n,t){for(var r=n.split(" "),i=0;r.length>i;i++)this.element.removeEventListener(r[i],t,!1);return this},trigger:function(n,t){var i=document.createEvent("Event");return i.initEvent(n,!0,!0),i.gesture=t,this.element.dispatchEvent(i),this},enable:function(n){return this.enabled=n,this}};var i=null,r=!1,u=!1;t.event={bindDom:function(n,t,i){for(var u=t.split(" "),r=0;u.length>r;r++)n.addEventListener(u[r],i,!1)},onTouch:function(n,f,e){var o=this;this.bindDom(n,t.EVENT_TYPES[f],function(s){var h=s.type.toLowerCase();h.match(/mouse/)&&t.STOP_MOUSEEVENTS||(h.match(/start|down|move/)&&(1===s.which||h.match(/touch/)||s.pointerType&&s.pointerType==s.MSPOINTER_TYPE_TOUCH)&&(r=!0),h.match(/touch|pointer/)&&(u=!0),!r||u&&h.match(/mouse/)||(t.HAS_POINTEREVENTS&&f!=t.EVENT_END&&t.PointerEvent.updatePointer(f,s),f===t.EVENT_END&&null!==i?s=i:i=s,e.call(t.detection,o.collectEventData(n,f,s)),t.HAS_POINTEREVENTS&&f==t.EVENT_END&&t.PointerEvent.updatePointer(f,s)),h.match(/up|cancel|end/)&&(r=!1,u=!1,i=null,t.PointerEvent.reset()))})},determineEventTypes:function(){var n;n=t.HAS_POINTEREVENTS?["MSPointerDown","MSPointerMove","MSPointerUp MSPointerCancel"]:["touchstart mousedown","touchmove mousemove","touchend touchcancel mouseup"];t.EVENT_TYPES[t.EVENT_START]=n[0];t.EVENT_TYPES[t.EVENT_MOVE]=n[1];t.EVENT_TYPES[t.EVENT_END]=n[2]},getTouchList:function(n){return t.HAS_POINTEREVENTS?t.PointerEvent.getTouchList():n.touches?n.touches:[{identifier:1,pageX:n.pageX,pageY:n.pageY,target:n.target}]},collectEventData:function(n,i,r){var u=this.getTouchList(r,i),f=t.POINTER_TOUCH;return(r.type.match(/mouse/)||r.poinerType&&r.pointerType===r.MSPOINTER_TYPE_MOUSE)&&(f=t.POINTER_MOUSE),{center:t.utils.getCenter(u),timestamp:r.timestamp||(new Date).getTime(),target:r.target,touches:u,eventType:i,pointerType:f,srcEvent:r,preventDefault:function(){this.srcEvent.preventManipulation&&this.srcEvent.preventManipulation();this.srcEvent.preventDefault&&this.srcEvent.preventDefault()},stopPropagation:function(){this.srcEvent.stopPropagation()},stopDetect:function(){return t.detection.stopDetect()}}}};t.PointerEvent={pointers:{},getTouchList:function(){var n=this.pointers,t=[];return Object.keys(n).sort().forEach(function(i){t.push(n[i])}),t},updatePointer:function(n,i){n==t.EVENT_END?delete this.pointers[i.pointerId]:(i.identifier=i.pointerId,this.pointers[i.pointerId]=i)},reset:function(){this.pointers={}}};t.utils={extend:function(n,t){for(var i in t)n[i]=t[i];return n},getCenter:function(n){for(var i=[],r=[],t=0,u=n.length;u>t;t++)i.push(n[t].pageX),r.push(n[t].pageY);return{pageX:(Math.min.apply(Math,i)+Math.max.apply(Math,i))/2,pageY:(Math.min.apply(Math,r)+Math.max.apply(Math,r))/2}},getVelocity:function(n,t,i){return{x:Math.abs(t/n)||0,y:Math.abs(i/n)||0}},getAngle:function(n,t){var i=t.pageY-n.pageY,r=t.pageX-n.pageX;return 180*Math.atan2(i,r)/Math.PI},getDirection:function(n,i){var r=Math.abs(n.pageX-i.pageX),u=Math.abs(n.pageY-i.pageY);return r>=u?n.pageX-i.pageX>0?t.DIRECTION_LEFT:t.DIRECTION_RIGHT:n.pageY-i.pageY>0?t.DIRECTION_UP:t.DIRECTION_DOWN},getDistance:function(n,t){var i=t.pageX-n.pageX,r=t.pageY-n.pageY;return Math.sqrt(i*i+r*r)},getScale:function(n,t){return n.length>=2&&t.length>=2?this.getDistance(t[0],t[1])/this.getDistance(n[0],n[1]):1},getRotation:function(n,t){return n.length>=2&&t.length>=2?this.getAngle(t[1],t[0])-this.getAngle(n[1],n[0]):0},isVertical:function(n){return n==t.DIRECTION_UP||n==t.DIRECTION_DOWN},stopDefaultBrowserBehavior:function(n){var t,f=["webkit","khtml","moz","ms","o",""],i=n.options.stop_browser_behavior,e=n.element,r,u;if(i&&e.style){for(r=0;f.length>r;r++)for(u in i)i.hasOwnProperty(u)&&(t=u,f[r]&&(t=f[r]+t.substring(0,1).toUpperCase()+t.substring(1)),e.style[t]=i[u]);"none"==i.userSelect&&(e.onselectstart=function(){return!1})}}};t.detection={gestures:[],current:null,previous:null,stopped:!1,startDetect:function(n,i){this.current||(this.stopped=!1,this.current={inst:n,startEvent:t.utils.extend({},i),lastEvent:!1,name:""},this.detect(i))},detect:function(n){var t;if(this.current&&!this.stopped){n=this.extendEventData(n);for(var r=this.current.inst.options,i=0,u=this.gestures.length;u>i;i++)if(t=this.gestures[i],!this.stopped&&r[t.name]!==!1&&t.handler.call(t,n,this.current.inst)===!1){this.stopDetect();break}this.current&&(this.current.lastEvent=n)}},endDetect:function(n){this.detect(n);this.stopDetect()},stopDetect:function(){this.previous=t.utils.extend({},this.current);this.current=null;this.stopped=!0},extendEventData:function(n){var i=this.current.startEvent,r,u;if(i&&(n.touches.length!=i.touches.length||n.touches===i.touches))for(i.touches=[],r=0,u=n.touches.length;u>r;r++)i.touches.push(t.utils.extend({},n.touches[r]));var f=n.timestamp-i.timestamp,e=n.center.pageX-i.center.pageX,o=n.center.pageY-i.center.pageY,s=t.utils.getVelocity(f,e,o);return t.utils.extend(n,{deltaTime:f,deltaX:e,deltaY:o,velocityX:s.x,velocityY:s.y,distance:t.utils.getDistance(i.center,n.center),angle:t.utils.getAngle(i.center,n.center),direction:t.utils.getDirection(i.center,n.center),scale:t.utils.getScale(i.touches,n.touches),rotation:t.utils.getRotation(i.touches,n.touches),startEvent:i}),n},register:function(n){var i=n.defaults||{};return i[n.name]===void 0&&(i[n.name]=!0),t.utils.extend(t.defaults,i),n.index=n.index||1e3,this.gestures.push(n),this.gestures.sort(function(n,t){return n.index<t.index?-1:n.index>t.index?1:0}),this.gestures}};t.gestures=t.gestures||{};t.gestures.Hold={name:"hold",index:10,defaults:{hold_timeout:500,hold_threshold:1},timer:null,handler:function(n,i){switch(n.eventType){case t.EVENT_START:clearTimeout(this.timer);t.detection.current.name=this.name;this.timer=setTimeout(function(){"hold"==t.detection.current.name&&i.trigger("hold",n)},i.options.hold_timeout);break;case t.EVENT_MOVE:n.distance>i.options.hold_threshold&&clearTimeout(this.timer);break;case t.EVENT_END:clearTimeout(this.timer)}}};t.gestures.Tap={name:"tap",index:100,defaults:{tap_max_touchtime:250,tap_max_distance:10,doubletap_distance:20,doubletap_interval:300},handler:function(n,i){if(n.eventType==t.EVENT_END){var r=t.detection.previous;if(n.deltaTime>i.options.tap_max_touchtime||n.distance>i.options.tap_max_distance)return;t.detection.current.name=r&&"tap"==r.name&&n.timestamp-r.lastEvent.timestamp<i.options.doubletap_interval&&n.distance<i.options.doubletap_distance?"doubletap":"tap";i.trigger(t.detection.current.name,n)}}};t.gestures.Swipe={name:"swipe",index:40,defaults:{swipe_max_touches:1,swipe_velocity:.7},handler:function(n,i){if(n.eventType==t.EVENT_END){if(i.options.swipe_max_touches>0&&n.touches.length>i.options.swipe_max_touches)return;(n.velocityX>i.options.swipe_velocity||n.velocityY>i.options.swipe_velocity)&&(i.trigger(this.name,n),i.trigger(this.name+n.direction,n))}}};t.gestures.Drag={name:"drag",index:50,defaults:{drag_min_distance:10,drag_max_touches:1,drag_block_horizontal:!1,drag_block_vertical:!1,drag_lock_to_axis:!1},triggered:!1,handler:function(n,i){if(t.detection.current.name!=this.name&&this.triggered)return i.trigger(this.name+"end",n),this.triggered=!1,void 0;if(!(i.options.drag_max_touches>0&&n.touches.length>i.options.drag_max_touches))switch(n.eventType){case t.EVENT_START:this.triggered=!1;break;case t.EVENT_MOVE:if(n.distance<i.options.drag_min_distance&&t.detection.current.name!=this.name)return;t.detection.current.name=this.name;var r=t.detection.current.lastEvent.direction;i.options.drag_lock_to_axis&&r!==n.direction&&(n.direction=t.utils.isVertical(r)?0>n.deltaY?t.DIRECTION_UP:t.DIRECTION_DOWN:0>n.deltaX?t.DIRECTION_LEFT:t.DIRECTION_RIGHT);this.triggered||(i.trigger(this.name+"start",n),this.triggered=!0);i.trigger(this.name,n);i.trigger(this.name+n.direction,n);(i.options.drag_block_vertical&&t.utils.isVertical(n.direction)||i.options.drag_block_horizontal&&!t.utils.isVertical(n.direction))&&n.preventDefault();break;case t.EVENT_END:this.triggered&&i.trigger(this.name+"end",n);this.triggered=!1}}};t.gestures.Transform={name:"transform",index:45,defaults:{transform_min_scale:.01,transform_min_rotation:1,transform_always_block:!1},triggered:!1,handler:function(n,i){if(t.detection.current.name!=this.name&&this.triggered)return i.trigger(this.name+"end",n),this.triggered=!1,void 0;if(!(2>n.touches.length))switch(i.options.transform_always_block&&n.preventDefault(),n.eventType){case t.EVENT_START:this.triggered=!1;break;case t.EVENT_MOVE:var r=Math.abs(1-n.scale),u=Math.abs(n.rotation);if(i.options.transform_min_scale>r&&i.options.transform_min_rotation>u)return;t.detection.current.name=this.name;this.triggered||(i.trigger(this.name+"start",n),this.triggered=!0);i.trigger(this.name,n);u>i.options.transform_min_rotation&&i.trigger("rotate",n);r>i.options.transform_min_scale&&(i.trigger("pinch",n),i.trigger("pinch"+(1>n.scale?"in":"out"),n));break;case t.EVENT_END:this.triggered&&i.trigger(this.name+"end",n);this.triggered=!1}}};t.gestures.Touch={name:"touch",index:-1/0,defaults:{prevent_default:!1},handler:function(n,i){i.options.prevent_default&&n.preventDefault();n.eventType==t.EVENT_START&&i.trigger(this.name,n)}};t.gestures.Release={name:"release",index:1/0,handler:function(n,i){n.eventType==t.EVENT_END&&i.trigger(this.name,n)}};n.Hammer=t;"function"==typeof n.define&&n.define.amd&&n.define("hammer",[],function(){return t})}(window),function(n){Hammer.event.bindDom=function(t,i,r){n(t).on(i,function(n){var t=n.originalEvent;t.pageX||(t.pageX=n.pageX,t.pageY=n.pageY);t.target||(t.target=n.target);t.button&&(t.which=t.button);t.preventDefault||(t.preventDefault=n.preventDefault);t.stopPropagation||(t.stopPropagation=n.stopPropagation);r.call(this,t)})};Hammer.Instance.prototype.on=function(t,i){return n(this.element).on(t,i)};Hammer.Instance.prototype.off=function(t,i){return n(this.element).off(t,i)};Hammer.Instance.prototype.trigger=function(t,i){return n(i.srcEvent.target).trigger({type:t,gesture:i})};n.fn.hammer=function(t){return this.each(function(){var r=n(this),i=r.data("hammer");i?i&&t&&Hammer.utils.extend(i.options,t):r.data("hammer",Hammer(this,t||{}))})}}(jQuery),function(n){function u(){var r=n(this),i=n(".dropdown_container, .dropdown_fullwidth",r),u=r.children(".dropdown_flyout_level");i=n(i).add(u);switch(t.menu_effect){case"hover_fade":n(i).fadeIn(t.menu_speed_show);break;case"click_fade":r.click(function(){n(i).fadeIn(t.menu_speed_show)})}}function f(){var i=n(this),r=n(".dropdown_container, .dropdown_fullwidth, .dropdown_flyout_level",i);switch(t.menu_effect){case"hover_fade":case"click_fade":n(r).fadeOut(t.menu_speed_hide)}}function r(){n(window).width()<768&&t.menu_responsive===1?(n(".dropdown_container, .dropdown_fullwidth").css({left:"-1px",top:"auto"}).hide(),n(".dropdown_first").css({left:"0"}).hide(),n(".dropdown_flyout_level, .dropdown_flyout_level_left").css({left:"0",top:"0"}).hide(),n(".megamenu").children("li").hide(0),n(".megamenu_button").show(0)):(n(".dropdown_container").css({left:"auto",top:"auto"}).hide(),n(".dropdown_fullwidth").css({left:"-1px",top:"auto"}).hide(),n(".dropdown_flyout_level").css({left:"95%",top:"-21px"}).hide(),n(".dropdown_flyout_level_left").css({left:"-108%",right:"100%"}).hide(),n(".megamenu").children("li").show(0),n(".megamenu_button").hide(0))}var t={menu_speed_show:300,menu_speed_hide:200,menu_speed_delay:200,menu_effect:"hover_fade",menu_click_outside:0,menu_show_onload:0,menu_responsive:1,hoverIntentConfig:{sensitivity:2,interval:100,over:u,timeout:200,out:f}},i={init:function(i){return t=n.extend(1,t,i),this.each(function(){var s=n(this),i=n(s).children("li"),l=n(i).children(".megamenu_drop"),f=n(i).find(".dropdown_container, .dropdown_fullwidth"),u=n(i).find(".dropdown_parent"),a=n(u).children("a"),e=n(u).find(".dropdown_flyout_level"),o=n(".megamenu_button"),h,c;if(menuItemElement=n(i).add(u),menuDropDownElement=n(f).add(e),"ontouchstart"in document.documentElement&&t.menu_responsive===1){n(window).width()<768?(n(f).css({left:"-1px",top:"auto"}).hide(),n(e).css({left:"0",top:"0"}).hide(),n(i).hide(0),n(o).show(0)):r();n(o).children("a").hammer().on("tap",function(){n(o).toggleClass("megamenu_button_active");n(i).not(":eq(0)").toggle(0)});n(menuItemElement).toggleClass("noactive");n(l).hammer().on("tap",function(){var t=n(this);return t.parent(i).toggleClass("active noactive").find(f).toggle(0),t.parent(i).siblings().addClass("noactive").removeClass("active").find(f).hide(0),!1});n(a).hammer().on("tap",function(){var t=n(this);return t.parent(u).toggleClass("active noactive").find(e).first().toggle(0),t.parent(u).siblings().addClass("noactive").removeClass("active").find(e).hide(0),t.parent(u).siblings().find(u).addClass("noactive").removeClass("active"),!1});n(document).hammer().on("tap",function(){n(menuItemElement).addClass("noactive");n(menuDropDownElement).hide(0)});n(s).hammer().on("tap",function(n){n.stopPropagation()});n(window).bind("orientationchange",function(){n(menuItemElement).addClass("noactive");n(menuDropDownElement).hide(0)});return}r();n(window).resize(function(){r()});n(o).children("a").click(function(){n(o).toggleClass("megamenu_button_active");n(i).not(":eq(0)").toggle(0)});t.menu_click_outside===1&&(n(document).click(function(){n(menuItemElement).removeClass("active");n(menuDropDownElement).hide(0)}),n(s).click(function(n){n.stopPropagation()}));switch(t.menu_effect){case"open_close_fade":h="fadeToggle";c="fadeOut"}switch(t.menu_effect){case"hover_fade":case"click_fade":n(i).hoverIntent(t.hoverIntentConfig);n(u).hoverIntent(t.hoverIntentConfig);break;case"open_close_fade":n(".megamenu > li:nth-child("+t.menu_show_onload+")").find(f).show().closest(i).toggleClass("active");n(i).unbind("mouseenter mouseleave").click(function(){var i=n(this);i.siblings().removeClass("active").find(f)[c](t.menu_speed_hide);i.toggleClass("active").find(f).first().delay(t.menu_speed_delay)[h](t.menu_speed_show).click(function(n){n.stopPropagation()})});n(u).unbind("mouseenter mouseleave").click(function(){var i=n(this);i.siblings().removeClass("active").find(e)[c](t.menu_speed_hide);i.siblings().find("li").removeClass("active");i.toggleClass("active").find(e).first().delay(t.menu_speed_delay)[h](t.menu_speed_show).click(function(n){n.stopPropagation()})})}})},update:function(i){t=n.extend(1,t,i)}};n.fn.megaMenuCompleteSet=function(t){if(i[t])return i[t].apply(this,Array.prototype.slice.call(arguments,1));if(typeof t!="object"&&t)n.error("No found method "+t);else return i.init.apply(this,arguments)}}(jQuery);!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):n.moment=t()}(this,function(){"use strict";function t(){return ke.apply(null,arguments)}function tt(n){return n instanceof Array||"[object Array]"===Object.prototype.toString.call(n)}function hi(n){return null!=n&&"[object Object]"===Object.prototype.toString.call(n)}function ns(n){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(n).length;for(var t in n)if(n.hasOwnProperty(t))return!1;return!0}function p(n){return void 0===n}function dt(n){return"number"==typeof n||"[object Number]"===Object.prototype.toString.call(n)}function di(n){return n instanceof Date||"[object Date]"===Object.prototype.toString.call(n)}function ef(n,t){for(var r=[],i=0;i<n.length;++i)r.push(t(n[i],i));return r}function l(n,t){return Object.prototype.hasOwnProperty.call(n,t)}function vt(n,t){for(var i in t)l(t,i)&&(n[i]=t[i]);return l(t,"toString")&&(n.toString=t.toString),l(t,"valueOf")&&(n.valueOf=t.valueOf),n}function ft(n,t,i,r){return re(n,t,i,r,!0).utc()}function ts(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function u(n){return null==n._pf&&(n._pf=ts()),n._pf}function wr(n){if(null==n._isValid){var t=u(n),r=de.call(t.parsedDateParts,function(n){return null!=n}),i=!isNaN(n._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r);if(n._strict&&(i=i&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(n))return i;n._isValid=i}return n._isValid}function gi(n){var t=ft(NaN);return null!=n?vt(u(t),n):u(t).userInvalidated=!0,t}function br(n,t){var i,r,f;if(p(t._isAMomentObject)||(n._isAMomentObject=t._isAMomentObject),p(t._i)||(n._i=t._i),p(t._f)||(n._f=t._f),p(t._l)||(n._l=t._l),p(t._strict)||(n._strict=t._strict),p(t._tzm)||(n._tzm=t._tzm),p(t._isUTC)||(n._isUTC=t._isUTC),p(t._offset)||(n._offset=t._offset),p(t._pf)||(n._pf=u(t)),p(t._locale)||(n._locale=t._locale),yu.length>0)for(i=0;i<yu.length;i++)p(f=t[r=yu[i]])||(n[r]=f);return n}function ci(n){br(this,n);this._d=new Date(null!=n._d?n._d.getTime():NaN);this.isValid()||(this._d=new Date(NaN));!1===pu&&(pu=!0,t.updateOffset(this),pu=!1)}function yt(n){return n instanceof ci||null!=n&&null!=n._isAMomentObject}function d(n){return n<0?Math.ceil(n)||0:Math.floor(n)}function f(n){var t=+n,i=0;return 0!==t&&isFinite(t)&&(i=d(t)),i}function of(n,t,i){for(var e=Math.min(n.length,t.length),o=Math.abs(n.length-t.length),u=0,r=0;r<e;r++)(i&&n[r]!==t[r]||!i&&f(n[r])!==f(t[r]))&&u++;return u+o}function sf(n){!1===t.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+n)}function g(n,i){var r=!0;return vt(function(){var u,e,f,o;if(null!=t.deprecationHandler&&t.deprecationHandler(null,n),r){for(e=[],f=0;f<arguments.length;f++){if(u="","object"==typeof arguments[f]){u+="\n["+f+"] ";for(o in arguments[0])u+=o+": "+arguments[0][o]+", ";u=u.slice(0,-2)}else u=arguments[f];e.push(u)}sf(n+"\nArguments: "+Array.prototype.slice.call(e).join("")+"\n"+(new Error).stack);r=!1}return i.apply(this,arguments)},i)}function hf(n,i){null!=t.deprecationHandler&&t.deprecationHandler(n,i);ge[n]||(sf(i),ge[n]=!0)}function et(n){return n instanceof Function||"[object Function]"===Object.prototype.toString.call(n)}function cf(n,t){var i,r=vt({},n);for(i in t)l(t,i)&&(hi(n[i])&&hi(t[i])?(r[i]={},vt(r[i],n[i]),vt(r[i],t[i])):null!=t[i]?r[i]=t[i]:delete r[i]);for(i in n)l(n,i)&&!l(t,i)&&hi(n[i])&&(r[i]=vt({},r[i]));return r}function kr(n){null!=n&&this.set(n)}function w(n,t){var i=n.toLowerCase();pi[i]=pi[i+"s"]=pi[t]=n}function nt(n){if("string"==typeof n)return pi[n]||pi[n.toLowerCase()]}function dr(n){var i,t,r={};for(t in n)l(n,t)&&(i=nt(t))&&(r[i]=n[t]);return r}function b(n,t){to[n]=t}function is(n){var t=[];for(var i in n)t.push({unit:i,priority:to[i]});return t.sort(function(n,t){return n.priority-t.priority}),t}function ht(n,t,i){var r=""+Math.abs(n),u=t-r.length;return(n>=0?i?"+":"":"-")+Math.pow(10,Math.max(0,u)).toString().substr(1)+r}function r(n,t,i,r){var u=r;"string"==typeof r&&(u=function(){return this[r]()});n&&(si[n]=u);t&&(si[t[0]]=function(){return ht(u.apply(this,arguments),t[1],t[2])});i&&(si[i]=function(){return this.localeData().ordinal(u.apply(this,arguments),n)})}function rs(n){return n.match(/\[[\s\S]/)?n.replace(/^\[|\]$/g,""):n.replace(/\\/g,"")}function us(n){for(var t=n.match(io),i=0,r=t.length;i<r;i++)t[i]=si[t[i]]?si[t[i]]:rs(t[i]);return function(i){for(var f="",u=0;u<r;u++)f+=et(t[u])?t[u].call(i,n):t[u];return f}}function gr(n,t){return n.isValid()?(t=lf(t,n.localeData()),wu[t]=wu[t]||us(t),wu[t](n)):n.localeData().invalidDate()}function lf(n,t){var i=5;for(sr.lastIndex=0;i>=0&&sr.test(n);)n=n.replace(sr,function(n){return t.longDateFormat(n)||n}),sr.lastIndex=0,i-=1;return n}function i(n,t,i){du[n]=et(t)?t:function(n){return n&&i?i:t}}function fs(n,t){return l(du,n)?du[n](t._strict,t._locale):new RegExp(es(n))}function es(n){return gt(n.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(n,t,i,r,u){return t||i||r||u}))}function gt(n){return n.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function s(n,t){var i,r=t;for("string"==typeof n&&(n=[n]),dt(t)&&(r=function(n,i){i[t]=f(n)}),i=0;i<n.length;i++)gu[n[i]]=r}function li(n,t){s(n,function(n,i,r,u){r._w=r._w||{};t(n,r._w,r,u)})}function os(n,t,i){null!=t&&l(gu,n)&&gu[n](t,i._a,i,n)}function ai(n){return nr(n)?366:365}function nr(n){return n%4==0&&n%100!=0||n%400==0}function ui(n,i){return function(r){return null!=r?(af(this,n,r),t.updateOffset(this,i),this):tr(this,n)}}function tr(n,t){return n.isValid()?n._d["get"+(n._isUTC?"UTC":"")+t]():NaN}function af(n,t,i){n.isValid()&&!isNaN(i)&&("FullYear"===t&&nr(n.year())?n._d["set"+(n._isUTC?"UTC":"")+t](i,n.month(),ir(i,n.month())):n._d["set"+(n._isUTC?"UTC":"")+t](i))}function ss(n,t){return(n%t+t)%t}function ir(n,t){if(isNaN(n)||isNaN(t))return NaN;var i=ss(t,12);return n+=(t-i)/12,1===i?nr(n)?29:28:31-i%7%2}function hs(n,t,i){var u,r,e,f=n.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],u=0;u<12;++u)e=ft([2e3,u]),this._shortMonthsParse[u]=this.monthsShort(e,"").toLocaleLowerCase(),this._longMonthsParse[u]=this.months(e,"").toLocaleLowerCase();return i?"MMM"===t?-1!==(r=v.call(this._shortMonthsParse,f))?r:null:-1!==(r=v.call(this._longMonthsParse,f))?r:null:"MMM"===t?-1!==(r=v.call(this._shortMonthsParse,f))?r:-1!==(r=v.call(this._longMonthsParse,f))?r:null:-1!==(r=v.call(this._longMonthsParse,f))?r:-1!==(r=v.call(this._shortMonthsParse,f))?r:null}function vf(n,t){var i;if(!n.isValid())return n;if("string"==typeof t)if(/^\d+$/.test(t))t=f(t);else if(t=n.localeData().monthsParse(t),!dt(t))return n;return i=Math.min(n.date(),ir(n.year(),t)),n._d["set"+(n._isUTC?"UTC":"")+"Month"](t,i),n}function yf(n){return null!=n?(vf(this,n),t.updateOffset(this,!0),this):tr(this,"Month")}function pf(){function f(n,t){return t.length-n.length}for(var i,r=[],u=[],t=[],n=0;n<12;n++)i=ft([2e3,n]),r.push(this.monthsShort(i,"")),u.push(this.months(i,"")),t.push(this.months(i,"")),t.push(this.monthsShort(i,""));for(r.sort(f),u.sort(f),t.sort(f),n=0;n<12;n++)r[n]=gt(r[n]),u[n]=gt(u[n]);for(n=0;n<24;n++)t[n]=gt(t[n]);this._monthsRegex=new RegExp("^("+t.join("|")+")","i");this._monthsShortRegex=this._monthsRegex;this._monthsStrictRegex=new RegExp("^("+u.join("|")+")","i");this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function cs(n,t,i,r,u,f,e){var o=new Date(n,t,i,r,u,f,e);return n<100&&n>=0&&isFinite(o.getFullYear())&&o.setFullYear(n),o}function vi(n){var t=new Date(Date.UTC.apply(null,arguments));return n<100&&n>=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(n),t}function rr(n,t,i){var r=7+t-i;return-((7+vi(n,0,r).getUTCDay()-t)%7)+r-1}function wf(n,t,i,r,u){var e,o,f=1+7*(t-1)+(7+i-r)%7+rr(n,r,u);return f<=0?o=ai(e=n-1)+f:f>ai(n)?(e=n+1,o=f-ai(n)):(e=n,o=f),{year:e,dayOfYear:o}}function yi(n,t,i){var u,f,e=rr(n.year(),t,i),r=Math.floor((n.dayOfYear()-e-1)/7)+1;return r<1?u=r+ni(f=n.year()-1,t,i):r>ni(n.year(),t,i)?(u=r-ni(n.year(),t,i),f=n.year()+1):(f=n.year(),u=r),{week:u,year:f}}function ni(n,t,i){var r=rr(n,t,i),u=rr(n+1,t,i);return(ai(n)-r+u)/7}function ls(n,t){return"string"!=typeof n?n:isNaN(n)?"number"==typeof(n=t.weekdaysParse(n))?n:null:parseInt(n,10)}function as(n,t){return"string"==typeof n?t.weekdaysParse(n)%7||7:isNaN(n)?null:n}function vs(n,t,i){var f,r,e,u=n.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],f=0;f<7;++f)e=ft([2e3,1]).day(f),this._minWeekdaysParse[f]=this.weekdaysMin(e,"").toLocaleLowerCase(),this._shortWeekdaysParse[f]=this.weekdaysShort(e,"").toLocaleLowerCase(),this._weekdaysParse[f]=this.weekdays(e,"").toLocaleLowerCase();return i?"dddd"===t?-1!==(r=v.call(this._weekdaysParse,u))?r:null:"ddd"===t?-1!==(r=v.call(this._shortWeekdaysParse,u))?r:null:-1!==(r=v.call(this._minWeekdaysParse,u))?r:null:"dddd"===t?-1!==(r=v.call(this._weekdaysParse,u))?r:-1!==(r=v.call(this._shortWeekdaysParse,u))?r:-1!==(r=v.call(this._minWeekdaysParse,u))?r:null:"ddd"===t?-1!==(r=v.call(this._shortWeekdaysParse,u))?r:-1!==(r=v.call(this._weekdaysParse,u))?r:-1!==(r=v.call(this._minWeekdaysParse,u))?r:null:-1!==(r=v.call(this._minWeekdaysParse,u))?r:-1!==(r=v.call(this._weekdaysParse,u))?r:-1!==(r=v.call(this._shortWeekdaysParse,u))?r:null}function nu(){function u(n,t){return t.length-n.length}for(var f,e,o,s,h=[],i=[],r=[],t=[],n=0;n<7;n++)f=ft([2e3,1]).day(n),e=this.weekdaysMin(f,""),o=this.weekdaysShort(f,""),s=this.weekdays(f,""),h.push(e),i.push(o),r.push(s),t.push(e),t.push(o),t.push(s);for(h.sort(u),i.sort(u),r.sort(u),t.sort(u),n=0;n<7;n++)i[n]=gt(i[n]),r[n]=gt(r[n]),t[n]=gt(t[n]);this._weekdaysRegex=new RegExp("^("+t.join("|")+")","i");this._weekdaysShortRegex=this._weekdaysRegex;this._weekdaysMinRegex=this._weekdaysRegex;this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i");this._weekdaysShortStrictRegex=new RegExp("^("+i.join("|")+")","i");this._weekdaysMinStrictRegex=new RegExp("^("+h.join("|")+")","i")}function tu(){return this.hours()%12||12}function bf(n,t){r(n,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function kf(n,t){return t._meridiemParse}function df(n){return n?n.toLowerCase().replace("_","-"):n}function ys(n){for(var t,i,f,u,r=0;r<n.length;){for(t=(u=df(n[r]).split("-")).length,i=(i=df(n[r+1]))?i.split("-"):null;t>0;){if(f=gf(u.slice(0,t).join("-")))return f;if(i&&i.length>=t&&of(u,i,!0)>=t-1)break;t--}r++}return null}function gf(n){var t=null;if(!a[n]&&"undefined"!=typeof module&&module&&module.exports)try{t=yr._abbr;require("./locale/"+n);fi(t)}catch(n){}return a[n]}function fi(n,t){var i;return n&&(i=p(t)?pt(n):iu(n,t))&&(yr=i),yr._abbr}function iu(n,t){if(null!==t){var i=lo;if(t.abbr=n,null!=a[n])hf("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=a[n]._config;else if(null!=t.parentLocale){if(null==a[t.parentLocale])return bi[t.parentLocale]||(bi[t.parentLocale]=[]),bi[t.parentLocale].push({name:n,config:t}),null;i=a[t.parentLocale]._config}return a[n]=new kr(cf(i,t)),bi[n]&&bi[n].forEach(function(n){iu(n.name,n.config)}),fi(n),a[n]}return delete a[n],null}function pt(n){var t;if(n&&n._locale&&n._locale._abbr&&(n=n._locale._abbr),!n)return yr;if(!tt(n)){if(t=gf(n))return t;n=[n]}return ys(n)}function ru(n){var i,t=n._a;return t&&-2===u(n).overflow&&(i=t[ct]<0||t[ct]>11?ct:t[ot]<1||t[ot]>ir(t[rt],t[ct])?ot:t[y]<0||t[y]>24||24===t[y]&&(0!==t[ut]||0!==t[lt]||0!==t[ri])?y:t[ut]<0||t[ut]>59?ut:t[lt]<0||t[lt]>59?lt:t[ri]<0||t[ri]>999?ri:-1,u(n)._overflowDayOfYear&&(i<rt||i>ot)&&(i=ot),u(n)._overflowWeeks&&-1===i&&(i=vh),u(n)._overflowWeekday&&-1===i&&(i=yh),u(n).overflow=i),n}function ei(n,t,i){return null!=n?n:null!=t?t:i}function ps(n){var i=new Date(t.now());return n._useUTC?[i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()]:[i.getFullYear(),i.getMonth(),i.getDate()]}function uu(n){var t,i,r,f,e=[];if(!n._d){for(r=ps(n),n._w&&null==n._a[ot]&&null==n._a[ct]&&ws(n),null!=n._dayOfYear&&(f=ei(n._a[rt],r[rt]),(n._dayOfYear>ai(f)||0===n._dayOfYear)&&(u(n)._overflowDayOfYear=!0),i=vi(f,0,n._dayOfYear),n._a[ct]=i.getUTCMonth(),n._a[ot]=i.getUTCDate()),t=0;t<3&&null==n._a[t];++t)n._a[t]=e[t]=r[t];for(;t<7;t++)n._a[t]=e[t]=null==n._a[t]?2===t?1:0:n._a[t];24===n._a[y]&&0===n._a[ut]&&0===n._a[lt]&&0===n._a[ri]&&(n._nextDay=!0,n._a[y]=0);n._d=(n._useUTC?vi:cs).apply(null,e);null!=n._tzm&&n._d.setUTCMinutes(n._d.getUTCMinutes()-n._tzm);n._nextDay&&(n._a[y]=24);n._w&&void 0!==n._w.d&&n._w.d!==n._d.getDay()&&(u(n).weekdayMismatch=!0)}}function ws(n){var t,o,f,i,r,e,h,s,l;null!=(t=n._w).GG||null!=t.W||null!=t.E?(r=1,e=4,o=ei(t.GG,n._a[rt],yi(c(),1,4).year),f=ei(t.W,1),((i=ei(t.E,1))<1||i>7)&&(s=!0)):(r=n._locale._week.dow,e=n._locale._week.doy,l=yi(c(),r,e),o=ei(t.gg,n._a[rt],l.year),f=ei(t.w,l.week),null!=t.d?((i=t.d)<0||i>6)&&(s=!0):null!=t.e?(i=t.e+r,(t.e<0||t.e>6)&&(s=!0)):i=r);f<1||f>ni(o,r,e)?u(n)._overflowWeeks=!0:null!=s?u(n)._overflowWeekday=!0:(h=wf(o,f,i,r,e),n._a[rt]=h.year,n._dayOfYear=h.dayOfYear)}function ne(n){var t,r,o,e,f,s,h=n._i,i=rc.exec(h)||uc.exec(h);if(i){for(u(n).iso=!0,t=0,r=pr.length;t<r;t++)if(pr[t][1].exec(i[1])){e=pr[t][0];o=!1!==pr[t][2];break}if(null==e)return void(n._isValid=!1);if(i[3]){for(t=0,r=tf.length;t<r;t++)if(tf[t][1].exec(i[3])){f=(i[2]||" ")+tf[t][0];break}if(null==f)return void(n._isValid=!1)}if(!o&&null!=f)return void(n._isValid=!1);if(i[4]){if(!fc.exec(i[4]))return void(n._isValid=!1);s="Z"}n._f=e+(f||"")+(s||"");fu(n)}else n._isValid=!1}function bs(n,t,i,r,u,f){var e=[ks(n),so.indexOf(t),parseInt(i,10),parseInt(r,10),parseInt(u,10)];return f&&e.push(parseInt(f,10)),e}function ks(n){var t=parseInt(n,10);return t<=49?2e3+t:t<=999?1900+t:t}function ds(n){return n.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}function gs(n,t,i){return!n||co.indexOf(n)===new Date(t[0],t[1],t[2]).getDay()||(u(i).weekdayMismatch=!0,i._isValid=!1,!1)}function nh(n,t,i){if(n)return sc[n];if(t)return 0;var r=parseInt(i,10),u=r%100;return 60*((r-u)/100)+u}function te(n){var t=oc.exec(ds(n._i)),i;if(t){if(i=bs(t[4],t[3],t[2],t[5],t[6],t[7]),!gs(t[1],i,n))return;n._a=i;n._tzm=nh(t[8],t[9],t[10]);n._d=vi.apply(null,n._a);n._d.setUTCMinutes(n._d.getUTCMinutes()-n._tzm);u(n).rfc2822=!0}else n._isValid=!1}function th(n){var i=ec.exec(n._i);null===i?(ne(n),!1===n._isValid&&(delete n._isValid,te(n),!1===n._isValid&&(delete n._isValid,t.createFromInputFallback(n)))):n._d=new Date(+i[1])}function fu(n){if(n._f!==t.ISO_8601)if(n._f!==t.RFC_2822){n._a=[];u(n).empty=!0;for(var r,f,s,i=""+n._i,c=i.length,h=0,o=lf(n._f,n._locale).match(io)||[],e=0;e<o.length;e++)f=o[e],(r=(i.match(fs(f,n))||[])[0])&&((s=i.substr(0,i.indexOf(r))).length>0&&u(n).unusedInput.push(s),i=i.slice(i.indexOf(r)+r.length),h+=r.length),si[f]?(r?u(n).empty=!1:u(n).unusedTokens.push(f),os(f,r,n)):n._strict&&!r&&u(n).unusedTokens.push(f);u(n).charsLeftOver=c-h;i.length>0&&u(n).unusedInput.push(i);n._a[y]<=12&&!0===u(n).bigHour&&n._a[y]>0&&(u(n).bigHour=void 0);u(n).parsedDateParts=n._a.slice(0);u(n).meridiem=n._meridiem;n._a[y]=ih(n._locale,n._a[y],n._meridiem);uu(n);ru(n)}else te(n);else ne(n)}function ih(n,t,i){var r;return null==i?t:null!=n.meridiemHour?n.meridiemHour(t,i):null!=n.isPM?((r=n.isPM(i))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}function rh(n){var t,e,f,r,i;if(0===n._f.length)return u(n).invalidFormat=!0,void(n._d=new Date(NaN));for(r=0;r<n._f.length;r++)i=0,t=br({},n),null!=n._useUTC&&(t._useUTC=n._useUTC),t._f=n._f[r],fu(t),wr(t)&&(i+=u(t).charsLeftOver,i+=10*u(t).unusedTokens.length,u(t).score=i,(null==f||i<f)&&(f=i,e=t));vt(n,e||t)}function uh(n){if(!n._d){var t=dr(n._i);n._a=ef([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],function(n){return n&&parseInt(n,10)});uu(n)}}function fh(n){var t=new ci(ru(ie(n)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function ie(n){var t=n._i,i=n._f;return n._locale=n._locale||pt(n._l),null===t||void 0===i&&""===t?gi({nullInput:!0}):("string"==typeof t&&(n._i=t=n._locale.preparse(t)),yt(t)?new ci(ru(t)):(di(t)?n._d=t:tt(i)?rh(n):i?fu(n):eh(n),wr(n)||(n._d=null),n))}function eh(n){var i=n._i;p(i)?n._d=new Date(t.now()):di(i)?n._d=new Date(i.valueOf()):"string"==typeof i?th(n):tt(i)?(n._a=ef(i.slice(0),function(n){return parseInt(n,10)}),uu(n)):hi(i)?uh(n):dt(i)?n._d=new Date(i):t.createFromInputFallback(n)}function re(n,t,i,r,u){var f={};return!0!==i&&!1!==i||(r=i,i=void 0),(hi(n)&&ns(n)||tt(n)&&0===n.length)&&(n=void 0),f._isAMomentObject=!0,f._useUTC=f._isUTC=u,f._l=i,f._i=n,f._f=t,f._strict=r,fh(f)}function c(n,t,i,r){return re(n,t,i,r,!1)}function ue(n,t){var r,i;if(1===t.length&&tt(t[0])&&(t=t[0]),!t.length)return c();for(r=t[0],i=1;i<t.length;++i)t[i].isValid()&&!t[i][n](r)||(r=t[i]);return r}function oh(n){var i,r,t;for(i in n)if(-1===v.call(ki,i)||null!=n[i]&&isNaN(n[i]))return!1;for(r=!1,t=0;t<ki.length;++t)if(n[ki[t]]){if(r)return!1;parseFloat(n[ki[t]])!==f(n[ki[t]])&&(r=!0)}return!0}function ur(n){var t=dr(n),i=t.year||0,r=t.quarter||0,u=t.month||0,f=t.week||0,e=t.day||0,o=t.hour||0,s=t.minute||0,h=t.second||0,c=t.millisecond||0;this._isValid=oh(t);this._milliseconds=+c+1e3*h+6e4*s+36e5*o;this._days=+e+7*f;this._months=+u+3*r+12*i;this._data={};this._locale=pt();this._bubble()}function eu(n){return n instanceof ur}function ou(n){return n<0?-1*Math.round(-1*n):Math.round(n)}function fe(n,t){r(n,0,0,function(){var n=this.utcOffset(),i="+";return n<0&&(n=-n,i="-"),i+ht(~~(n/60),2)+t+ht(~~n%60,2)})}function su(n,t){var u=(t||"").match(n),i,r;return null===u?null:(i=((u[u.length-1]||[])+"").match(ao)||["-",0,0],r=60*i[1]+f(i[2]),0===r?0:"+"===i[0]?r:-r)}function hu(n,i){var r,u;return i._isUTC?(r=i.clone(),u=(yt(n)||di(n)?n.valueOf():c(n).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+u),t.updateOffset(r,!1),r):c(n).local()}function cu(n){return 15*-Math.round(n._d.getTimezoneOffset()/15)}function ee(){return!!this.isValid()&&this._isUTC&&0===this._offset}function it(n,t){var u,e,o,r=n,i=null;return eu(n)?r={ms:n._milliseconds,d:n._days,M:n._months}:dt(n)?(r={},t?r[t]=n:r.milliseconds=n):(i=vo.exec(n))?(u="-"===i[1]?-1:1,r={y:0,d:f(i[ot])*u,h:f(i[y])*u,m:f(i[ut])*u,s:f(i[lt])*u,ms:f(ou(1e3*i[ri]))*u}):(i=yo.exec(n))?(u="-"===i[1]?-1:(i[1],1),r={y:ti(i[2],u),M:ti(i[3],u),w:ti(i[4],u),d:ti(i[5],u),h:ti(i[6],u),m:ti(i[7],u),s:ti(i[8],u)}):null==r?r={}:"object"==typeof r&&("from"in r||"to"in r)&&(o=sh(c(r.from),c(r.to)),(r={}).ms=o.milliseconds,r.M=o.months),e=new ur(r),eu(n)&&l(n,"_locale")&&(e._locale=n._locale),e}function ti(n,t){var i=n&&parseFloat(n.replace(",","."));return(isNaN(i)?0:i)*t}function oe(n,t){var i={milliseconds:0,months:0};return i.months=t.month()-n.month()+12*(t.year()-n.year()),n.clone().add(i.months,"M").isAfter(t)&&--i.months,i.milliseconds=+t-+n.clone().add(i.months,"M"),i}function sh(n,t){var i;return n.isValid()&&t.isValid()?(t=hu(t,n),n.isBefore(t)?i=oe(n,t):((i=oe(t,n)).milliseconds=-i.milliseconds,i.months=-i.months),i):{milliseconds:0,months:0}}function se(n,t){return function(i,r){var u,f;return null===r||isNaN(+r)||(hf(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),f=i,i=r,r=f),i="string"==typeof i?+i:i,u=it(i,r),he(this,u,n),this}}function he(n,i,r,u){var o=i._milliseconds,f=ou(i._days),e=ou(i._months);n.isValid()&&(u=null==u||u,e&&vf(n,tr(n,"Month")+e*r),f&&af(n,"Date",tr(n,"Date")+f*r),o&&n._d.setTime(n._d.valueOf()+o*r),u&&t.updateOffset(n,f||e))}function lu(n,t){var u,r=12*(t.year()-n.year())+(t.month()-n.month()),i=n.clone().add(r,"months");return u=t-i<0?(t-i)/(i-n.clone().add(r-1,"months")):(t-i)/(n.clone().add(r+1,"months")-i),-(r+u)||0}function ce(n){var t;return void 0===n?this._locale._abbr:(null!=(t=pt(n))&&(this._locale=t),this)}function le(){return this._locale}function fr(n,t){r(0,[n,n.length],0,t)}function ae(n,t,i,r,u){var f;return null==n?yi(this,r,u).year:(f=ni(n,r,u),t>f&&(t=f),hh.call(this,n,t,i,r,u))}function hh(n,t,i,r,u){var e=wf(n,t,i,r,u),f=vi(e.year,0,e.dayOfYear);return this.year(f.getUTCFullYear()),this.month(f.getUTCMonth()),this.date(f.getUTCDate()),this}function ve(n){return n}function er(n,t,i,r){var u=pt(),f=ft().set(r,t);return u[i](f,n)}function ye(n,t,i){if(dt(n)&&(t=n,n=void 0),n=n||"",null!=t)return er(n,t,i,"month");for(var u=[],r=0;r<12;r++)u[r]=er(n,r,i,"month");return u}function au(n,t,i,r){var o,f,u,e;if("boolean"==typeof n?(dt(t)&&(i=t,t=void 0),t=t||""):(i=t=n,n=!1,dt(t)&&(i=t,t=void 0),t=t||""),o=pt(),f=n?o._week.dow:0,null!=i)return er(t,(i+f)%7,r,"day");for(e=[],u=0;u<7;u++)e[u]=er(t,(u+f)%7,r,"day");return e}function pe(n,t,i,r){var u=it(t,i);return n._milliseconds+=r*u._milliseconds,n._days+=r*u._days,n._months+=r*u._months,n._bubble()}function we(n){return n<0?Math.floor(n):Math.ceil(n)}function be(n){return 4800*n/146097}function vu(n){return 146097*n/4800}function wt(n){return function(){return this.as(n)}}function ii(n){return function(){return this.isValid()?this._data[n]:NaN}}function ch(n,t,i,r,u){return u.relativeTime(t||1,!!i,n,r)}function lh(n,t,i){var r=it(n).abs(),u=kt(r.as("s")),e=kt(r.as("m")),o=kt(r.as("h")),s=kt(r.as("d")),h=kt(r.as("M")),c=kt(r.as("y")),f=u<=st.ss&&["s",u]||u<st.s&&["ss",u]||e<=1&&["m"]||e<st.m&&["mm",e]||o<=1&&["h"]||o<st.h&&["hh",o]||s<=1&&["d"]||s<st.d&&["dd",s]||h<=1&&["M"]||h<st.M&&["MM",h]||c<=1&&["y"]||["yy",c];return f[2]=t,f[3]=+n>0,f[4]=i,ch.apply(null,f)}function oi(n){return(n>0)-(n<0)||+n}function or(){if(!this.isValid())return this.localeData().invalidDate();var i,o,v,t=ff(this._milliseconds)/1e3,y=ff(this._days),s=ff(this._months);o=d((i=d(t/60))/60);t%=60;i%=60;var h=v=d(s/12),c=s%=12,l=y,r=o,u=i,f=t?t.toFixed(3).replace(/\.?0+$/,""):"",n=this.asSeconds();if(!n)return"P0D";var p=n<0?"-":"",a=oi(this._months)!==oi(n)?"-":"",w=oi(this._days)!==oi(n)?"-":"",e=oi(this._milliseconds)!==oi(n)?"-":"";return p+"P"+(h?a+h+"Y":"")+(c?a+c+"M":"")+(l?w+l+"D":"")+(r||u||f?"T":"")+(r?e+r+"H":"")+(u?e+u+"M":"")+(f?e+f+"S":"")}var ke,de,no,v,nf,ho,ao,vo,yo,po,wo,rf,uf,bo,ko,bt,go,n,o;de=Array.prototype.some?Array.prototype.some:function(n){for(var i=Object(this),r=i.length>>>0,t=0;t<r;t++)if(t in i&&n.call(this,i[t],t,i))return!0;return!1};var yu=t.momentProperties=[],pu=!1,ge={};t.suppressDeprecationWarnings=!1;t.deprecationHandler=null;no=Object.keys?Object.keys:function(n){var t,i=[];for(t in n)l(n,t)&&i.push(t);return i};var pi={},to={},io=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,sr=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,wu={},si={},ro=/\d/,k=/\d\d/,uo=/\d{3}/,bu=/\d{4}/,hr=/[+-]?\d{6}/,h=/\d\d?/,fo=/\d\d\d\d?/,eo=/\d\d\d\d\d\d?/,cr=/\d{1,3}/,ku=/\d{1,4}/,lr=/[+-]?\d{1,6}/,ar=/[+-]?\d+/,ah=/Z|[+-]\d\d:?\d\d/gi,vr=/Z|[+-]\d\d(?::?\d\d)?/gi,wi=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,du={},gu={},rt=0,ct=1,ot=2,y=3,ut=4,lt=5,ri=6,vh=7,yh=8;r("Y",0,0,function(){var n=this.year();return n<=9999?""+n:"+"+n});r(0,["YY",2],0,function(){return this.year()%100});r(0,["YYYY",4],0,"year");r(0,["YYYYY",5],0,"year");r(0,["YYYYYY",6,!0],0,"year");w("year","y");b("year",1);i("Y",ar);i("YY",h,k);i("YYYY",ku,bu);i("YYYYY",lr,hr);i("YYYYYY",lr,hr);s(["YYYYY","YYYYYY"],rt);s("YYYY",function(n,i){i[rt]=2===n.length?t.parseTwoDigitYear(n):f(n)});s("YY",function(n,i){i[rt]=t.parseTwoDigitYear(n)});s("Y",function(n,t){t[rt]=parseInt(n,10)});t.parseTwoDigitYear=function(n){return f(n)+(f(n)>68?1900:2e3)};nf=ui("FullYear",!0);v=Array.prototype.indexOf?Array.prototype.indexOf:function(n){for(var t=0;t<this.length;++t)if(this[t]===n)return t;return-1};r("M",["MM",2],"Mo",function(){return this.month()+1});r("MMM",0,0,function(n){return this.localeData().monthsShort(this,n)});r("MMMM",0,0,function(n){return this.localeData().months(this,n)});w("month","M");b("month",8);i("M",h);i("MM",h,k);i("MMM",function(n,t){return t.monthsShortRegex(n)});i("MMMM",function(n,t){return t.monthsRegex(n)});s(["M","MM"],function(n,t){t[ct]=f(n)-1});s(["MMM","MMMM"],function(n,t,i,r){var f=i._locale.monthsParse(n,r,i._strict);null!=f?t[ct]=f:u(i).invalidMonth=n});var oo=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,ph="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),so="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),wh=wi,bh=wi;r("w",["ww",2],"wo","week");r("W",["WW",2],"Wo","isoWeek");w("week","w");w("isoWeek","W");b("week",5);b("isoWeek",5);i("w",h);i("ww",h,k);i("W",h);i("WW",h,k);li(["w","ww","W","WW"],function(n,t,i,r){t[r.substr(0,1)]=f(n)});ho={dow:0,doy:6};r("d",0,"do","day");r("dd",0,0,function(n){return this.localeData().weekdaysMin(this,n)});r("ddd",0,0,function(n){return this.localeData().weekdaysShort(this,n)});r("dddd",0,0,function(n){return this.localeData().weekdays(this,n)});r("e",0,0,"weekday");r("E",0,0,"isoWeekday");w("day","d");w("weekday","e");w("isoWeekday","E");b("day",11);b("weekday",11);b("isoWeekday",11);i("d",h);i("e",h);i("E",h);i("dd",function(n,t){return t.weekdaysMinRegex(n)});i("ddd",function(n,t){return t.weekdaysShortRegex(n)});i("dddd",function(n,t){return t.weekdaysRegex(n)});li(["dd","ddd","dddd"],function(n,t,i,r){var f=i._locale.weekdaysParse(n,r,i._strict);null!=f?t.d=f:u(i).invalidWeekday=n});li(["d","e","E"],function(n,t,i,r){t[r]=f(n)});var kh="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),co="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),dh="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),gh=wi,nc=wi,tc=wi;r("H",["HH",2],0,"hour");r("h",["hh",2],0,tu);r("k",["kk",2],0,function(){return this.hours()||24});r("hmm",0,0,function(){return""+tu.apply(this)+ht(this.minutes(),2)});r("hmmss",0,0,function(){return""+tu.apply(this)+ht(this.minutes(),2)+ht(this.seconds(),2)});r("Hmm",0,0,function(){return""+this.hours()+ht(this.minutes(),2)});r("Hmmss",0,0,function(){return""+this.hours()+ht(this.minutes(),2)+ht(this.seconds(),2)});bf("a",!0);bf("A",!1);w("hour","h");b("hour",13);i("a",kf);i("A",kf);i("H",h);i("h",h);i("k",h);i("HH",h,k);i("hh",h,k);i("kk",h,k);i("hmm",fo);i("hmmss",eo);i("Hmm",fo);i("Hmmss",eo);s(["H","HH"],y);s(["k","kk"],function(n,t){var i=f(n);t[y]=24===i?0:i});s(["a","A"],function(n,t,i){i._isPm=i._locale.isPM(n);i._meridiem=n});s(["h","hh"],function(n,t,i){t[y]=f(n);u(i).bigHour=!0});s("hmm",function(n,t,i){var r=n.length-2;t[y]=f(n.substr(0,r));t[ut]=f(n.substr(r));u(i).bigHour=!0});s("hmmss",function(n,t,i){var r=n.length-4,e=n.length-2;t[y]=f(n.substr(0,r));t[ut]=f(n.substr(r,2));t[lt]=f(n.substr(e));u(i).bigHour=!0});s("Hmm",function(n,t){var i=n.length-2;t[y]=f(n.substr(0,i));t[ut]=f(n.substr(i))});s("Hmmss",function(n,t){var i=n.length-4,r=n.length-2;t[y]=f(n.substr(0,i));t[ut]=f(n.substr(i,2));t[lt]=f(n.substr(r))});var yr,ic=ui("Hours",!0),lo={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:ph,monthsShort:so,week:ho,weekdays:kh,weekdaysMin:dh,weekdaysShort:co,meridiemParse:/[ap]\.?m?\.?/i},a={},bi={},rc=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,uc=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,fc=/Z|[+-]\d\d(?::?\d\d)?/,pr=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],tf=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],ec=/^\/?Date\((\-?\d+)/i,oc=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,sc={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};t.createFromInputFallback=g("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(n){n._d=new Date(n._i+(n._useUTC?" UTC":""))});t.ISO_8601=function(){};t.RFC_2822=function(){};var hc=g("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var n=c.apply(null,arguments);return this.isValid()&&n.isValid()?n<this?this:n:gi()}),cc=g("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var n=c.apply(null,arguments);return this.isValid()&&n.isValid()?n>this?this:n:gi()}),ki=["year","quarter","month","week","day","hour","minute","second","millisecond"];for(fe("Z",":"),fe("ZZ",""),i("Z",vr),i("ZZ",vr),s(["Z","ZZ"],function(n,t,i){i._useUTC=!0;i._tzm=su(vr,n)}),ao=/([\+\-]|\d\d)/gi,t.updateOffset=function(){},vo=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,yo=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,it.fn=ur.prototype,it.invalid=function(){return it(NaN)},po=se(1,"add"),wo=se(-1,"subtract"),t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",t.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]",rf=g("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(n){return void 0===n?this.localeData():this.locale(n)}),r(0,["gg",2],0,function(){return this.weekYear()%100}),r(0,["GG",2],0,function(){return this.isoWeekYear()%100}),fr("gggg","weekYear"),fr("ggggg","weekYear"),fr("GGGG","isoWeekYear"),fr("GGGGG","isoWeekYear"),w("weekYear","gg"),w("isoWeekYear","GG"),b("weekYear",1),b("isoWeekYear",1),i("G",ar),i("g",ar),i("GG",h,k),i("gg",h,k),i("GGGG",ku,bu),i("gggg",ku,bu),i("GGGGG",lr,hr),i("ggggg",lr,hr),li(["gggg","ggggg","GGGG","GGGGG"],function(n,t,i,r){t[r.substr(0,2)]=f(n)}),li(["gg","GG"],function(n,i,r,u){i[u]=t.parseTwoDigitYear(n)}),r("Q",0,"Qo","quarter"),w("quarter","Q"),b("quarter",7),i("Q",ro),s("Q",function(n,t){t[ct]=3*(f(n)-1)}),r("D",["DD",2],"Do","date"),w("date","D"),b("date",9),i("D",h),i("DD",h,k),i("Do",function(n,t){return n?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),s(["D","DD"],ot),s("Do",function(n,t){t[ot]=f(n.match(h)[0],10)}),uf=ui("Date",!0),r("DDD",["DDDD",3],"DDDo","dayOfYear"),w("dayOfYear","DDD"),b("dayOfYear",4),i("DDD",cr),i("DDDD",uo),s(["DDD","DDDD"],function(n,t,i){i._dayOfYear=f(n)}),r("m",["mm",2],0,"minute"),w("minute","m"),b("minute",14),i("m",h),i("mm",h,k),s(["m","mm"],ut),bo=ui("Minutes",!1),r("s",["ss",2],0,"second"),w("second","s"),b("second",15),i("s",h),i("ss",h,k),s(["s","ss"],lt),ko=ui("Seconds",!1),r("S",0,0,function(){return~~(this.millisecond()/100)}),r(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),r(0,["SSS",3],0,"millisecond"),r(0,["SSSS",4],0,function(){return 10*this.millisecond()}),r(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),r(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),r(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),r(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),r(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),w("millisecond","ms"),b("millisecond",16),i("S",cr,ro),i("SS",cr,k),i("SSS",cr,uo),bt="SSSS";bt.length<=9;bt+="S")i(bt,/\d+/);for(bt="S";bt.length<=9;bt+="S")s(bt,function(n,t){t[ri]=f(1e3*("0."+n))});go=ui("Milliseconds",!1);r("z",0,0,"zoneAbbr");r("zz",0,0,"zoneName");n=ci.prototype;n.add=po;n.calendar=function(n,i){var u=n||c(),f=hu(u,this).startOf("day"),r=t.calendarFormat(this,f)||"sameElse",e=i&&(et(i[r])?i[r].call(this,u):i[r]);return this.format(e||this.localeData().calendar(r,this,c(u)))};n.clone=function(){return new ci(this)};n.diff=function(n,t,i){var r,f,u;if(!this.isValid())return NaN;if(!(r=hu(n,this)).isValid())return NaN;switch(f=6e4*(r.utcOffset()-this.utcOffset()),t=nt(t)){case"year":u=lu(this,r)/12;break;case"month":u=lu(this,r);break;case"quarter":u=lu(this,r)/3;break;case"second":u=(this-r)/1e3;break;case"minute":u=(this-r)/6e4;break;case"hour":u=(this-r)/36e5;break;case"day":u=(this-r-f)/864e5;break;case"week":u=(this-r-f)/6048e5;break;default:u=this-r}return i?u:d(u)};n.endOf=function(n){return void 0===(n=nt(n))||"millisecond"===n?this:("date"===n&&(n="day"),this.startOf(n).add(1,"isoWeek"===n?"week":n).subtract(1,"ms"))};n.format=function(n){n||(n=this.isUtc()?t.defaultFormatUtc:t.defaultFormat);var i=gr(this,n);return this.localeData().postformat(i)};n.from=function(n,t){return this.isValid()&&(yt(n)&&n.isValid()||c(n).isValid())?it({to:this,from:n}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()};n.fromNow=function(n){return this.from(c(),n)};n.to=function(n,t){return this.isValid()&&(yt(n)&&n.isValid()||c(n).isValid())?it({from:this,to:n}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()};n.toNow=function(n){return this.to(c(),n)};n.get=function(n){return n=nt(n),et(this[n])?this[n]():this};n.invalidAt=function(){return u(this).overflow};n.isAfter=function(n,t){var i=yt(n)?n:c(n);return!(!this.isValid()||!i.isValid())&&("millisecond"===(t=nt(p(t)?"millisecond":t))?this.valueOf()>i.valueOf():i.valueOf()<this.clone().startOf(t).valueOf())};n.isBefore=function(n,t){var i=yt(n)?n:c(n);return!(!this.isValid()||!i.isValid())&&("millisecond"===(t=nt(p(t)?"millisecond":t))?this.valueOf()<i.valueOf():this.clone().endOf(t).valueOf()<i.valueOf())};n.isBetween=function(n,t,i,r){return("("===(r=r||"()")[0]?this.isAfter(n,i):!this.isBefore(n,i))&&(")"===r[1]?this.isBefore(t,i):!this.isAfter(t,i))};n.isSame=function(n,t){var i,r=yt(n)?n:c(n);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=nt(t||"millisecond"))?this.valueOf()===r.valueOf():(i=r.valueOf(),this.clone().startOf(t).valueOf()<=i&&i<=this.clone().endOf(t).valueOf()))};n.isSameOrAfter=function(n,t){return this.isSame(n,t)||this.isAfter(n,t)};n.isSameOrBefore=function(n,t){return this.isSame(n,t)||this.isBefore(n,t)};n.isValid=function(){return wr(this)};n.lang=rf;n.locale=ce;n.localeData=le;n.max=cc;n.min=hc;n.parsingFlags=function(){return vt({},u(this))};n.set=function(n,t){if("object"==typeof n)for(var r=is(n=dr(n)),i=0;i<r.length;i++)this[r[i].unit](n[r[i].unit]);else if(n=nt(n),et(this[n]))return this[n](t);return this};n.startOf=function(n){switch(n=nt(n)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===n&&this.weekday(0),"isoWeek"===n&&this.isoWeekday(1),"quarter"===n&&this.month(3*Math.floor(this.month()/3)),this};n.subtract=wo;n.toArray=function(){var n=this;return[n.year(),n.month(),n.date(),n.hour(),n.minute(),n.second(),n.millisecond()]};n.toObject=function(){var n=this;return{years:n.year(),months:n.month(),date:n.date(),hours:n.hours(),minutes:n.minutes(),seconds:n.seconds(),milliseconds:n.milliseconds()}};n.toDate=function(){return new Date(this.valueOf())};n.toISOString=function(){if(!this.isValid())return null;var n=this.clone().utc();return n.year()<0||n.year()>9999?gr(n,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):et(Date.prototype.toISOString)?this.toDate().toISOString():gr(n,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]")};n.inspect=function(){var n,t;if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";n="moment";t="";this.isLocal()||(n=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var i="["+n+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",u=t+'[")]';return this.format(i+r+"-MM-DD[T]HH:mm:ss.SSS"+u)};n.toJSON=function(){return this.isValid()?this.toISOString():null};n.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")};n.unix=function(){return Math.floor(this.valueOf()/1e3)};n.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)};n.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}};n.year=nf;n.isLeapYear=function(){return nr(this.year())};n.weekYear=function(n){return ae.call(this,n,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)};n.isoWeekYear=function(n){return ae.call(this,n,this.isoWeek(),this.isoWeekday(),1,4)};n.quarter=n.quarters=function(n){return null==n?Math.ceil((this.month()+1)/3):this.month(3*(n-1)+this.month()%3)};n.month=yf;n.daysInMonth=function(){return ir(this.year(),this.month())};n.week=n.weeks=function(n){var t=this.localeData().week(this);return null==n?t:this.add(7*(n-t),"d")};n.isoWeek=n.isoWeeks=function(n){var t=yi(this,1,4).week;return null==n?t:this.add(7*(n-t),"d")};n.weeksInYear=function(){var n=this.localeData()._week;return ni(this.year(),n.dow,n.doy)};n.isoWeeksInYear=function(){return ni(this.year(),1,4)};n.date=uf;n.day=n.days=function(n){if(!this.isValid())return null!=n?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=n?(n=ls(n,this.localeData()),this.add(n-t,"d")):t};n.weekday=function(n){if(!this.isValid())return null!=n?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==n?t:this.add(n-t,"d")};n.isoWeekday=function(n){if(!this.isValid())return null!=n?this:NaN;if(null!=n){var t=as(n,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7};n.dayOfYear=function(n){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==n?t:this.add(n-t,"d")};n.hour=n.hours=ic;n.minute=n.minutes=bo;n.second=n.seconds=ko;n.millisecond=n.milliseconds=go;n.utcOffset=function(n,i,r){var u,f=this._offset||0;if(!this.isValid())return null!=n?this:NaN;if(null!=n){if("string"==typeof n){if(null===(n=su(vr,n)))return this}else Math.abs(n)<16&&!r&&(n*=60);return!this._isUTC&&i&&(u=cu(this)),this._offset=n,this._isUTC=!0,null!=u&&this.add(u,"m"),f!==n&&(!i||this._changeInProgress?he(this,it(n-f,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?f:cu(this)};n.utc=function(n){return this.utcOffset(0,n)};n.local=function(n){return this._isUTC&&(this.utcOffset(0,n),this._isUTC=!1,n&&this.subtract(cu(this),"m")),this};n.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var n=su(ah,this._i);null!=n?this.utcOffset(n):this.utcOffset(0,!0)}return this};n.hasAlignedHourOffset=function(n){return!!this.isValid()&&(n=n?c(n).utcOffset():0,(this.utcOffset()-n)%60==0)};n.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()};n.isLocal=function(){return!!this.isValid()&&!this._isUTC};n.isUtcOffset=function(){return!!this.isValid()&&this._isUTC};n.isUtc=ee;n.isUTC=ee;n.zoneAbbr=function(){return this._isUTC?"UTC":""};n.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""};n.dates=g("dates accessor is deprecated. Use date instead.",uf);n.months=g("months accessor is deprecated. Use month instead",yf);n.years=g("years accessor is deprecated. Use year instead",nf);n.zone=g("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(n,t){return null!=n?("string"!=typeof n&&(n=-n),this.utcOffset(n,t),this):-this.utcOffset()});n.isDSTShifted=g("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){var n,t;return p(this._isDSTShifted)?(n={},(br(n,this),(n=ie(n))._a)?(t=n._isUTC?ft(n._a):c(n._a),this._isDSTShifted=this.isValid()&&of(n._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted):this._isDSTShifted});o=kr.prototype;o.calendar=function(n,t,i){var r=this._calendar[n]||this._calendar.sameElse;return et(r)?r.call(t,i):r};o.longDateFormat=function(n){var t=this._longDateFormat[n],i=this._longDateFormat[n.toUpperCase()];return t||!i?t:(this._longDateFormat[n]=i.replace(/MMMM|MM|DD|dddd/g,function(n){return n.slice(1)}),this._longDateFormat[n])};o.invalidDate=function(){return this._invalidDate};o.ordinal=function(n){return this._ordinal.replace("%d",n)};o.preparse=ve;o.postformat=ve;o.relativeTime=function(n,t,i,r){var u=this._relativeTime[i];return et(u)?u(n,t,i,r):u.replace(/%d/i,n)};o.pastFuture=function(n,t){var i=this._relativeTime[n>0?"future":"past"];return et(i)?i(t):i.replace(/%s/i,t)};o.set=function(n){var t;for(var i in n)et(t=n[i])?this[i]=t:this["_"+i]=t;this._config=n;this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)};o.months=function(n,t){return n?tt(this._months)?this._months[n.month()]:this._months[(this._months.isFormat||oo).test(t)?"format":"standalone"][n.month()]:tt(this._months)?this._months:this._months.standalone};o.monthsShort=function(n,t){return n?tt(this._monthsShort)?this._monthsShort[n.month()]:this._monthsShort[oo.test(t)?"format":"standalone"][n.month()]:tt(this._monthsShort)?this._monthsShort:this._monthsShort.standalone};o.monthsParse=function(n,t,i){var r,u,f;if(this._monthsParseExact)return hs.call(this,n,t,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++)if((u=ft([2e3,r]),i&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(u,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(u,"").replace(".","")+"$","i")),i||this._monthsParse[r]||(f="^"+this.months(u,"")+"|^"+this.monthsShort(u,""),this._monthsParse[r]=new RegExp(f.replace(".",""),"i")),i&&"MMMM"===t&&this._longMonthsParse[r].test(n))||i&&"MMM"===t&&this._shortMonthsParse[r].test(n)||!i&&this._monthsParse[r].test(n))return r};o.monthsRegex=function(n){return this._monthsParseExact?(l(this,"_monthsRegex")||pf.call(this),n?this._monthsStrictRegex:this._monthsRegex):(l(this,"_monthsRegex")||(this._monthsRegex=bh),this._monthsStrictRegex&&n?this._monthsStrictRegex:this._monthsRegex)};o.monthsShortRegex=function(n){return this._monthsParseExact?(l(this,"_monthsRegex")||pf.call(this),n?this._monthsShortStrictRegex:this._monthsShortRegex):(l(this,"_monthsShortRegex")||(this._monthsShortRegex=wh),this._monthsShortStrictRegex&&n?this._monthsShortStrictRegex:this._monthsShortRegex)};o.week=function(n){return yi(n,this._week.dow,this._week.doy).week};o.firstDayOfYear=function(){return this._week.doy};o.firstDayOfWeek=function(){return this._week.dow};o.weekdays=function(n,t){return n?tt(this._weekdays)?this._weekdays[n.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][n.day()]:tt(this._weekdays)?this._weekdays:this._weekdays.standalone};o.weekdaysMin=function(n){return n?this._weekdaysMin[n.day()]:this._weekdaysMin};o.weekdaysShort=function(n){return n?this._weekdaysShort[n.day()]:this._weekdaysShort};o.weekdaysParse=function(n,t,i){var r,u,f;if(this._weekdaysParseExact)return vs.call(this,n,t,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++)if((u=ft([2e3,1]).day(r),i&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(u,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(u,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(u,"").replace(".",".?")+"$","i")),this._weekdaysParse[r]||(f="^"+this.weekdays(u,"")+"|^"+this.weekdaysShort(u,"")+"|^"+this.weekdaysMin(u,""),this._weekdaysParse[r]=new RegExp(f.replace(".",""),"i")),i&&"dddd"===t&&this._fullWeekdaysParse[r].test(n))||i&&"ddd"===t&&this._shortWeekdaysParse[r].test(n)||i&&"dd"===t&&this._minWeekdaysParse[r].test(n)||!i&&this._weekdaysParse[r].test(n))return r};o.weekdaysRegex=function(n){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||nu.call(this),n?this._weekdaysStrictRegex:this._weekdaysRegex):(l(this,"_weekdaysRegex")||(this._weekdaysRegex=gh),this._weekdaysStrictRegex&&n?this._weekdaysStrictRegex:this._weekdaysRegex)};o.weekdaysShortRegex=function(n){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||nu.call(this),n?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(l(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=nc),this._weekdaysShortStrictRegex&&n?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)};o.weekdaysMinRegex=function(n){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||nu.call(this),n?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(l(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=tc),this._weekdaysMinStrictRegex&&n?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)};o.isPM=function(n){return"p"===(n+"").toLowerCase().charAt(0)};o.meridiem=function(n,t,i){return n>11?i?"pm":"PM":i?"am":"AM"};fi("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(n){var t=n%10;return n+(1===f(n%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}});t.lang=g("moment.lang is deprecated. Use moment.locale instead.",fi);t.langData=g("moment.langData is deprecated. Use moment.localeData instead.",pt);var at=Math.abs,lc=wt("ms"),ac=wt("s"),vc=wt("m"),yc=wt("h"),pc=wt("d"),wc=wt("w"),bc=wt("M"),kc=wt("y"),dc=ii("milliseconds"),gc=ii("seconds"),nl=ii("minutes"),tl=ii("hours"),il=ii("days"),rl=ii("months"),ul=ii("years"),kt=Math.round,st={ss:44,s:45,m:45,h:22,d:26,M:11},ff=Math.abs,e=ur.prototype;return e.isValid=function(){return this._isValid},e.abs=function(){var n=this._data;return this._milliseconds=at(this._milliseconds),this._days=at(this._days),this._months=at(this._months),n.milliseconds=at(n.milliseconds),n.seconds=at(n.seconds),n.minutes=at(n.minutes),n.hours=at(n.hours),n.months=at(n.months),n.years=at(n.years),this},e.add=function(n,t){return pe(this,n,t,1)},e.subtract=function(n,t){return pe(this,n,t,-1)},e.as=function(n){if(!this.isValid())return NaN;var t,r,i=this._milliseconds;if("month"===(n=nt(n))||"year"===n)return t=this._days+i/864e5,r=this._months+be(t),"month"===n?r:r/12;switch(t=this._days+Math.round(vu(this._months)),n){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return 24*t+i/36e5;case"minute":return 1440*t+i/6e4;case"second":return 86400*t+i/1e3;case"millisecond":return Math.floor(864e5*t)+i;default:throw new Error("Unknown unit "+n);}},e.asMilliseconds=lc,e.asSeconds=ac,e.asMinutes=vc,e.asHours=yc,e.asDays=pc,e.asWeeks=wc,e.asMonths=bc,e.asYears=kc,e.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*f(this._months/12):NaN},e._bubble=function(){var u,f,e,s,o,r=this._milliseconds,n=this._days,t=this._months,i=this._data;return r>=0&&n>=0&&t>=0||r<=0&&n<=0&&t<=0||(r+=864e5*we(vu(t)+n),n=0,t=0),i.milliseconds=r%1e3,u=d(r/1e3),i.seconds=u%60,f=d(u/60),i.minutes=f%60,e=d(f/60),i.hours=e%24,n+=d(e/24),o=d(be(n)),t+=o,n-=we(vu(o)),s=d(t/12),t%=12,i.days=n,i.months=t,i.years=s,this},e.clone=function(){return it(this)},e.get=function(n){return n=nt(n),this.isValid()?this[n+"s"]():NaN},e.milliseconds=dc,e.seconds=gc,e.minutes=nl,e.hours=tl,e.days=il,e.weeks=function(){return d(this.days()/7)},e.months=rl,e.years=ul,e.humanize=function(n){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),i=lh(this,!n,t);return n&&(i=t.pastFuture(+this,i)),t.postformat(i)},e.toISOString=or,e.toString=or,e.toJSON=or,e.locale=ce,e.localeData=le,e.toIsoString=g("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",or),e.lang=rf,r("X",0,0,"unix"),r("x",0,0,"valueOf"),i("x",ar),i("X",/[+-]?\d+(\.\d{1,3})?/),s("X",function(n,t,i){i._d=new Date(1e3*parseFloat(n,10))}),s("x",function(n,t,i){i._d=new Date(f(n))}),t.version="2.19.1",function(n){ke=n}(c),t.fn=n,t.min=function(){return ue("isBefore",[].slice.call(arguments,0))},t.max=function(){return ue("isAfter",[].slice.call(arguments,0))},t.now=function(){return Date.now?Date.now():+new Date},t.utc=ft,t.unix=function(n){return c(1e3*n)},t.months=function(n,t){return ye(n,t,"months")},t.isDate=di,t.locale=fi,t.invalid=gi,t.duration=it,t.isMoment=yt,t.weekdays=function(n,t,i){return au(n,t,i,"weekdays")},t.parseZone=function(){return c.apply(null,arguments).parseZone()},t.localeData=pt,t.isDuration=eu,t.monthsShort=function(n,t){return ye(n,t,"monthsShort")},t.weekdaysMin=function(n,t,i){return au(n,t,i,"weekdaysMin")},t.defineLocale=iu,t.updateLocale=function(n,t){if(null!=t){var i,r=lo;null!=a[n]&&(r=a[n]._config);(i=new kr(t=cf(r,t))).parentLocale=a[n];a[n]=i;fi(n)}else null!=a[n]&&(null!=a[n].parentLocale?a[n]=a[n].parentLocale:null!=a[n]&&delete a[n]);return a[n]},t.locales=function(){return no(a)},t.weekdaysShort=function(n,t,i){return au(n,t,i,"weekdaysShort")},t.normalizeUnits=nt,t.relativeTimeRounding=function(n){return void 0===n?kt:"function"==typeof n&&(kt=n,!0)},t.relativeTimeThreshold=function(n,t){return void 0!==st[n]&&(void 0===t?st[n]:(st[n]=t,"s"===n&&(st.ss=t-1),!0))},t.calendarFormat=function(n,t){var i=n.diff(t,"days",!0);return i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse"},t.prototype=n,t});typeof moment=="undefined"&&typeof require=="function"&&(moment=require("moment")),function(n){function t(n,t){return n+" "+i[t+(n===1?"":"s")]}function u(n,r,u,f,e,o){var s=[];return n&&s.push(t(n,"year")),r&&s.push(t(r,"month")),u&&s.push(t(u,"day")),f&&s.push(t(f,"hour")),e&&s.push(t(e,"minute")),o&&s.push(t(o,"second")),s.join(i.delimiter)}function r(n,t,i,r,u,f,e){return{years:n,months:t,days:i,hours:r,minutes:u,seconds:f,firstDateWasLater:e}}var i={nodiff:"",year:"year",years:"years",month:"month",months:"months",day:"day",days:"days",hour:"hour",hours:"hours",minute:"minute",minutes:"minutes",second:"second",seconds:"seconds",delimiter:" "};n.fn.preciseDiff=function(t,i){return n.preciseDiff(this,t,i)};n.preciseDiff=function(t,f,e){var o=n(t),s=n(f),p,b,y;if(o.add(s.utcOffset()-o.utcOffset(),"minutes"),o.isSame(s))return e?r(0,0,0,0,0,0,!1):i.nodiff;o.isAfter(s)?(b=o,o=s,s=b,p=!0):p=!1;var w=s.year()-o.year(),c=s.month()-o.month(),h=s.date()-o.date(),l=s.hour()-o.hour(),a=s.minute()-o.minute(),v=s.second()-o.second();return v<0&&(v=60+v,a--),a<0&&(a=60+a,l--),l<0&&(l=24+l,h--),h<0&&(y=n(s.year()+"-"+(s.month()+1),"YYYY-MM").subtract(1,"M").daysInMonth(),h=y<o.date()?y+h+(o.date()-y):y+h,c--),c<0&&(c=12+c,w--),e?r(w,c,h,l,a,v,p):u(w,c,h,l,a,v)}}(moment),function(){function t(n,t){if(t)for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);return n}function s(n,t){var r=[];for(var i in n)n.hasOwnProperty(i)&&(r[i]=t(n[i]));return r}function h(u,e,o){if(n.isSupported(e.version))u.innerHTML=n.getHTML(e,o);else if(e.expressInstall&&n.isSupported([6,65]))u.innerHTML=n.getHTML(t(e,{src:e.expressInstall}),{MMredirectURL:location.href,MMplayerType:"PlugIn",MMdoctitle:document.title});else if(u.innerHTML.replace(/\s/g,"")||(u.innerHTML="<h2>Flash version "+e.version+" or greater is required<\/h2><h3>"+(i[0]>0?"Your version is "+i:"You have no flash plugin installed")+"<\/h3>"+(u.tagName=="A"?"<p>Click here to download latest version<\/p>":"<p>Download latest version from <a href='"+f+"'>here<\/a><\/p>"),u.tagName=="A"&&(u.onclick=function(){location.href=f})),e.onFail){var s=e.onFail.call(this);typeof s=="string"&&(u.innerHTML=s)}r&&(window[e.id]=document.getElementById(e.id));t(this,{getRoot:function(){return u},getOptions:function(){return e},getConf:function(){return o},getApi:function(){return u.firstChild}})}var r=document.all,f="http://www.adobe.com/go/getflashplayer",e=typeof jQuery=="function",o=/(\d+)[^\d]+(\d+)[^\d]*(\d*)/,u={width:"100%",height:"100%",id:"_"+(""+Math.random()).slice(9),allowfullscreen:!0,allowscriptaccess:"always",quality:"high",version:[3,0],onFail:null,expressInstall:null,w3c:!1,cachebusting:!1},n,i;window.attachEvent&&window.attachEvent("onbeforeunload",function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){}});window.flashembed=function(n,i,r){return typeof n=="string"&&(n=document.getElementById(n.replace("#",""))),n?(typeof i=="string"&&(i={src:i}),new h(n,t(t({},u),i),r)):void 0};n=t(window.flashembed,{conf:u,getVersion:function(){var t,n;try{n=navigator.plugins["Shockwave Flash"].description.slice(16)}catch(i){try{t=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");n=t&&t.GetVariable("$version")}catch(r){try{t=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");n=t&&t.GetVariable("$version")}catch(u){}}}return n=o.exec(n),n?[n[1],n[3]]:[0,0]},asString:function(t){var i,u,r;if(t===null||t===undefined)return null;i=typeof t;i=="object"&&t.push&&(i="array");switch(i){case"string":return t=t.replace(new RegExp('(["\\\\])',"g"),"\\$1"),t=t.replace(/^\s?(\d+\.?\d*)%/,"$1pct"),'"'+t+'"';case"array":return"["+s(t,function(t){return n.asString(t)}).join(",")+"]";case"function":return'"function()"';case"object":u=[];for(r in t)t.hasOwnProperty(r)&&u.push('"'+r+'":'+n.asString(t[r]));return"{"+u.join(",")+"}"}return String(t).replace(/\s/g," ").replace(/\'/g,'"')},getHTML:function(i,u){var f,o,e,s,h;i=t({},i);f='<object width="'+i.width+'" height="'+i.height+'" id="'+i.id+'" name="'+i.id+'"';i.cachebusting&&(i.src+=(i.src.indexOf("?")!=-1?"&":"?")+Math.random());f+=i.w3c||!r?' data="'+i.src+'" type="application/x-shockwave-flash"':' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"';f+=">";(i.w3c||r)&&(f+='<param name="movie" value="'+i.src+'" />');i.width=i.height=i.id=i.w3c=i.src=null;i.onFail=i.version=i.expressInstall=null;for(o in i)i[o]&&(f+='<param name="'+o+'" value="'+i[o]+'" />');if(e="",u){for(s in u)u[s]&&(h=u[s],e+=s+"="+encodeURIComponent(/function|object/.test(typeof h)?n.asString(h):h)+"&");e=e.slice(0,-1);f+='<param name="flashvars" value=\''+e+"' />"}return f+"<\/object>"},isSupported:function(n){return i[0]>n[0]||i[0]==n[0]&&i[1]>=n[1]}});i=n.getVersion();e&&(jQuery.tools=jQuery.tools||{version:"v1.2.7"},jQuery.tools.flashembed={conf:u},jQuery.fn.flashembed=function(n,t){return this.each(function(){jQuery(this).data("flashembed",flashembed(this,n,t))})})}();!function(n){jQuery.fn.embedVideo=function(t){return navigator.userAgent.toLowerCase().indexOf("chrome"),this.each(function(){var i=n(this);i.removeClass("unsupported");i.html("");var u=i.attr("id"),f={nativeControlsForTouch:!1,autoplay:t.autoPlay,controls:!0,width:t.width||"100%",height:t.height||i.parent().height()||"100%",poster:t.poster,logo:{enabled:!1}},r=amp(u,f,function(){this.addEventListener("loadstart",function(t){n(document).trigger("video_loadstart",t)});this.addEventListener("progress",function(t){n(document).trigger("video_progress",t)});this.addEventListener("suspend",function(t){n(document).trigger("video_suspend",t)});this.addEventListener("abort",function(t){n(document).trigger("video_abort",t)});this.addEventListener("error",function(t){n(document).trigger("video_error",t)});this.addEventListener("emptied",function(t){n(document).trigger("video_emptied",t)});this.addEventListener("stalled",function(t){n(document).trigger("video_stalled",t)});this.addEventListener("loadedmetadata",function(t){n(document).trigger("video_loadedmetadata",t)});this.addEventListener("loadeddata",function(t){n(document).trigger("video_loadeddata",t)});this.addEventListener("canplay",function(t){n(document).trigger("video_canplay",t)});this.addEventListener("canplaythrough",function(t){n(document).trigger("video_canplaythrough",t)});this.addEventListener("playing",function(t){n(document).trigger("video_playing",t)});this.addEventListener("waiting",function(t){n(document).trigger("video_waiting",t)});this.addEventListener("seeking",function(t){n(document).trigger("video_seeking",t)});this.addEventListener("seeked",function(t){n(document).trigger("video_seeked",t)});this.addEventListener("ended",function(t){n(document).trigger("video_ended",t)});this.addEventListener("durationchange",function(t){n(document).trigger("video_durationchange",t)});this.addEventListener("timeupdate",function(t){n(document).trigger("video_timeupdate",t)});this.addEventListener("play",function(t){n(document).trigger("video_play",t)});this.addEventListener("pause",function(t){n(document).trigger("video_pause",t)});this.addEventListener("ratechange",function(t){n(document).trigger("video_ratechange",t)});this.addEventListener("resize",function(t){n(document).trigger("video_resize",t)});this.addEventListener("volumechange",function(t){n(document).trigger("video_volumechange",t)})});return null!=t.streamingUrl&&""!=t.streamingUrl?r.src([{src:t.streamingUrl,type:"application/vnd.ms-sstr+xml"}]):r.src([{src:t.broadbandUrl,type:"video/mp4"}]),r})}}(jQuery);$.extend($.fn,{validate:function(){var n=$(this)[0];if(n!=undefined&&n.tagName=="FORM")return validateForm(n,'[data-bind*="igEditor"],[data-bind*="igTextEditor"],[data-bind*="igDatePicker"],[data-bind*="igDateEditor"],[data-bind*="igNumericEditor"],[data-bind*="igCurrencyEditor"],[data-bind*="igPercentEditor"],[data-bind*="igMaskEditor"],[data-bind*="igCombo"]',null)},resetValidation:function(){var t='input[type="text"], input[type="password"], input:not([type]),input[type="checkbox"]',n,i;(t='input[type="checkbox"]',n=$(this)[0],n.tagName=="FORM")&&(i=resetValidators(n,'[data-bind*="igEditor"],[data-bind*="igTextEditor"],[data-bind*="igDatePicker"],[data-bind*="igDateEditor"],[data-bind*="igNumericEditor"],[data-bind*="igCurrencyEditor"],[data-bind*="igPercentEditor"],[data-bind*="igMaskEditor"],[data-bind*="igCombo"]',null))}});!function(n,t){typeof module!="undefined"&&module.exports?module.exports.browser=t():typeof define=="function"?define(t):this[n]=t()}("bowser",function(){function t(t){function r(n){var i=t.match(n);return i&&i.length>1&&i[1]||""}var e=r(/(ipod|iphone|ipad)/i).toLowerCase(),l=/like android/i.test(t),o=!l&&/android/i.test(t),f=r(/version\/(\d+(\.\d+)?)/i),h=/tablet/i.test(t),c=!h&&/[^-]mobi/i.test(t),i,u,s;return/opera|opr/i.test(t)?i={name:"Opera",opera:n,version:f||r(/(?:opera|opr)[\s\/](\d+(\.\d+)?)/i)}:/windows phone/i.test(t)?i={name:"Windows Phone",windowsphone:n,msie:n,version:r(/iemobile\/(\d+(\.\d+)?)/i)}:/msie|trident/i.test(t)?i={name:"Internet Explorer",msie:n,version:r(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:/chrome|crios|crmo/i.test(t)?i={name:"Chrome",chrome:n,version:r(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:e?(i={name:e=="iphone"?"iPhone":e=="ipad"?"iPad":"iPod"},f&&(i.version=f)):/sailfish/i.test(t)?i={name:"Sailfish",sailfish:n,version:r(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(t)?i={name:"SeaMonkey",seamonkey:n,version:r(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel/i.test(t)?(i={name:"Firefox",firefox:n,version:r(/(?:firefox|iceweasel)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(t)&&(i.firefoxos=n)):/silk/i.test(t)?i={name:"Amazon Silk",silk:n,version:r(/silk\/(\d+(\.\d+)?)/i)}:o?i={name:"Android",version:f}:/phantom/i.test(t)?i={name:"PhantomJS",phantom:n,version:r(/phantomjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(t)||/rim\stablet/i.test(t)?i={name:"BlackBerry",blackberry:n,version:f||r(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:/(web|hpw)os/i.test(t)?(i={name:"WebOS",webos:n,version:f||r(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(t)&&(i.touchpad=n)):i=/bada/i.test(t)?{name:"Bada",bada:n,version:r(/dolfin\/(\d+(\.\d+)?)/i)}:/tizen/i.test(t)?{name:"Tizen",tizen:n,version:r(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||f}:/safari/i.test(t)?{name:"Safari",safari:n,version:f}:{},/(apple)?webkit/i.test(t)?(i.name=i.name||"Webkit",i.webkit=n,!i.version&&f&&(i.version=f)):!i.opera&&/gecko\//i.test(t)&&(i.name=i.name||"Gecko",i.gecko=n,i.version=i.version||r(/gecko\/(\d+(\.\d+)?)/i)),o||i.silk?i.android=n:e&&(i[e]=n,i.ios=n),u="",e?(u=r(/os (\d+([_\s]\d+)*) like mac os x/i),u=u.replace(/[_\s]/g,".")):o?u=r(/android[ \/-](\d+(\.\d+)*)/i):i.windowsphone?u=r(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):i.webos?u=r(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):i.blackberry?u=r(/rim\stablet\sos\s(\d+(\.\d+)*)/i):i.bada?u=r(/bada\/(\d+(\.\d+)*)/i):i.tizen&&(u=r(/tizen[\/\s](\d+(\.\d+)*)/i)),u&&(i.osversion=u),s=u.split(".")[0],h||e=="ipad"||o&&(s==3||s==4&&!c)||i.silk?i.tablet=n:(c||e=="iphone"||e=="ipod"||o||i.blackberry||i.webos||i.bada)&&(i.mobile=n),i.msie&&i.version>=10||i.chrome&&i.version>=20||i.firefox&&i.version>=20||i.safari&&i.version>=6||i.opera&&i.version>=10||i.ios&&i.osversion&&i.osversion.split(".")[0]>=6?i.a=n:i.msie&&i.version<10||i.chrome&&i.version<20||i.firefox&&i.version<20||i.safari&&i.version<6||i.opera&&i.version<10||i.ios&&i.osversion&&i.osversion.split(".")[0]<6?i.c=n:i.x=n,i}var n=!0,i=t(typeof navigator!="undefined"?navigator.userAgent:"");return i._detect=t,i});$.fn.copyHtmlAttributes=function(n){var t=/^data-/;return this.each(function(){var i=$(this),r=i.find(n);$.each(this.attributes,function(n,i){i.specified&&t.test(i.name)&&(r.attr(i.name,i.value),F)})})};$.fn.numericOnly=function(){return this.each(function(){$(this).keydown(function(n){var t=n.charCode||n.keyCode||0;return t==8||t==9||t==13||t==46||t>=37&&t<=40||t>=48&&t<=57||t>=96&&t<=105})})};ko.oneTimeDirtyFlag=function(n){var t;return ko.computed(function(){return t?!0:(ko.toJS(n),t=!0,!1)})};ko.dirtyFlag=function(n,t){var i=function(){},r=ko.observable(ko.toJSON(n)),u=ko.observable(t);return i.isDirty=ko.computed(function(){return u()||r()!==ko.toJSON(n)}),i.reset=function(){r(ko.toJSON(n));u(!1)},i};ko.protectedObservable=function(n){var t=n,i=ko.observable(n),r=ko.dependentObservable({read:i,write:function(n){t=n}});return r.commit=function(){t!==i()&&i(t)},r.reset=function(){i.valueHasMutated();t=i()},r.currentValue=function(){return t},r};dateFormat=function(){var t=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g,i=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,r=/[^-+\dA-Z]/g,n=function(n,t){for(n=String(n),t=t||2;n.length<t;)n="0"+n;return n};return function(u,f,e){var h=dateFormat;if(arguments.length!=1||Object.prototype.toString.call(u)!="[object String]"||/\d/.test(u)||(f=u,u=undefined),u=u?new Date(u):new Date,isNaN(u))throw SyntaxError("invalid date");f=String(h.masks[f]||f||h.masks["default"]);f.slice(0,4)=="UTC:"&&(f=f.slice(4),e=!0);var o=e?"getUTC":"get",c=u[o+"Date"](),y=u[o+"Day"](),l=u[o+"Month"](),p=u[o+"FullYear"](),s=u[o+"Hours"](),w=u[o+"Minutes"](),b=u[o+"Seconds"](),a=u[o+"Milliseconds"](),v=e?0:u.getTimezoneOffset(),k={d:c,dd:n(c),ddd:h.i18n.dayNames[y],dddd:h.i18n.dayNames[y+7],m:l+1,mm:n(l+1),mmm:h.i18n.monthNames[l],mmmm:h.i18n.monthNames[l+12],yy:String(p).slice(2),yyyy:p,h:s%12||12,hh:n(s%12||12),H:s,HH:n(s),M:w,MM:n(w),s:b,ss:n(b),l:n(a,3),L:n(a>99?Math.round(a/10):a),t:s<12?"a":"p",tt:s<12?"am":"pm",T:s<12?"A":"P",TT:s<12?"AM":"PM",Z:e?"UTC":(String(u).match(i)||[""]).pop().replace(r,""),o:(v>0?"-":"+")+n(Math.floor(Math.abs(v)/60)*100+Math.abs(v)%60,4),S:["th","st","nd","rd"][c%10>3?0:(c%100-c%10!=10)*c%10]};return f.replace(t,function(n){return n in k?k[n]:n.slice(1,n.length-1)})}}();dateFormat.masks={"default":"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:ss",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"};dateFormat.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]};Date.prototype.format=function(n,t){return dateFormat(this,n,t)};String.prototype.formatString=function(){for(var n=this,t=arguments.length;t--;)n=n.replace(new RegExp("\\{"+t+"\\}","gm"),arguments[t]);return n};String.prototype.toNumber=function(){var n=this;return Number(n.replace(/[^0-9\.]+/g,""))};$.fn.equalHeights=function(){var n=0,t=$(this);return t.each(function(){var t=$(this).innerHeight();t>n&&(n=t)}),t.css("height",n)};$.fn.equalWidths=function(){var n=0,t=$(this);return t.each(function(){var t=$(this).innerWidth();t>n&&(n=t)}),t.css("width",n)};isMobile={Android:function(){return navigator.userAgent.match(/Android/i)},BlackBerry:function(){return navigator.userAgent.match(/BlackBerry/i)},iOS:function(){return navigator.userAgent.match(/iPhone|iPad|iPod/i)},Opera:function(){return navigator.userAgent.match(/Opera Mini/i)},Windows:function(){return navigator.userAgent.match(/IEMobile/i)},any:function(){return isMobile.Android()||isMobile.BlackBerry()||isMobile.iOS()||isMobile.Opera()||isMobile.Windows()}};ko.bindingHandlers.ckeditor={init:function(n,t,i){var r=$(n).attr("id"),u=i().ckeditorOptions||{},f=t();ko.utils.domNodeDisposal.addDisposeCallback(n,function(){CKEDITOR.instances[r]&&CKEDITOR.remove(CKEDITOR.instances[r])});$(n).ckeditor(u);CKEDITOR.instances[r].on("change",function(){var i=t();i($(n).val())})},update:function(n,t){var i=ko.utils.unwrapObservable(t());$(n).html(i)}};ko.bindingHandlers.date={update:function(n,t,i){var u=t(),r,f;if(u=="")return"";r=ko.utils.unwrapObservable(u);r&&typeof r=="string"&&r.indexOf("/Date")>-1&&(r=new Date(r.match(/\d+/)[0]*1));f=i.get("dateFormat")||"mm/dd/yyyy";$(n).text(dateFormat(r,f,!0))}};ko.bindingHandlers.number={init:function(n,t,i){var f=0,e=i.get("decimalPlaces"),u=2,r;e!=null&&(u=parseInt(e));$(n).text(f.toFixed(u));r=parseFloat(f).toFixed(u);r=numberWithCommas(r);$(n).text(r)},update:function(n,t,i){var r=t(),u;if(r==undefined||r==null||r=="")return"";var o=ko.utils.unwrapObservable(r),f=i.get("decimalPlaces"),e=2;f!=null&&(e=parseInt(f));u=parseFloat(o).toFixed(e);u=numberWithCommas(u);$(n).text(u)}};ko.bindingHandlers.currency={init:function(n,t,i){var r=i.get("decimalPlaces"),u=2;r!=null&&(u=parseInt(r));$(n).text("$"+0..toFixed(u))},update:function(n,t,i){var u=t(),r;if(u=="")return"";var o=ko.utils.unwrapObservable(u),f=i.get("decimalPlaces"),e=2;f!=null&&(e=parseInt(f));r=parseFloat(o).toFixed(e);r=numberWithCommas(r);$(n).text("$"+r)}};ko.bindingHandlers.checkedRadioToBool={init:function(n,t){var i=t(),r=ko.computed({read:function(){var n=ko.utils.unwrapObservable(i);return n.toString()},write:function(t){var r=$(n);ko.isObservable(i)?r.val()=="true"?i(t==="true"):r.val()=="false"&&i(!(t==="false")):r.val()=="true"?i=t==="true":r.val()=="false"&&(i=!(t==="false"))},owner:this});ko.applyBindingsToNode(n,{checked:r})}};ko.bindingHandlers.checkedNullRadioToBool={init:function(n,t){var i=t(),r=ko.computed({read:function(){var n=ko.utils.unwrapObservable(i);return n==null?"":n.toString()},write:function(t){var r=$(n);ko.isObservable(i)?r.val()=="true"?i(t==="true"):r.val()=="false"?i(!(t==="false")):i(null):i=r.val()=="true"?t==="true":r.val()=="false"?!(t==="false"):null},owner:this});ko.applyBindingsToNode(n,{checked:r})}};getAcrobatInfo=function(){var n=function(){return function(){var n=navigator?navigator.userAgent.toLowerCase():"other";return n.indexOf("chrome")>-1?"chrome":n.indexOf("safari")>-1?"safari":n.indexOf("msie")>-1||n.indexOf("trident")>-1?"ie":n.indexOf("firefox")>-1?"firefox":n}()},t=function(n){try{return new ActiveXObject(n)}catch(t){}},r=function(n){for(key in navigator.plugins){var t=navigator.plugins[key];if(t.name==n)return t}},i=function(){return this.plugin=this.plugin||function(){return n()=="ie"?t("AcroPDF.PDF")||t("PDF.PdfCtrl"):r("Adobe Acrobat")}()},u=function(){return!!i()},f=function(){var t,r,u;try{return(t=i(),n()=="ie")?(r=t.GetVersions().split(","),u=r[0].split("="),parseFloat(u[1])):t.version?parseInt(t.version):t.name}catch(f){return null}};return{browser:n(),installed:u()?!0:!1,version:f()}};$.fn.mapIGComboForKO=function(){return this.each(function(){var n=$(this);setIGComboFromKO(n);$(document).delegate("#"+n.attr("id"),"igcomboselectionchanged",function(n,t){t.items!=t.oldItems&&setKOFromIGCombo(t.owner.element)});$(document).on("change","#"+n.attr("id")+" .ui-igcombo-field",function(){setKOFromIGCombo(n)})})};site=function(){function r(){var n=getQSByName("ReturnUrl")+window.location.hash;$("#returnUrl").val(n)}function u(){$("#loginForm input").on("keypress",function(n){n.which==13&&$("#loginForm").submit()})}function t(){return}function f(){window.onerror=function(n,i,r){i!=""&&r>0&&t(n,i,r)};$(document).ajaxError(function(n,i,r){if(i.status!=200){var u="Ajax Error\n";u+="Status: "+i.status+"\n";u+="Status Text: "+i.statusText+"\n";u+="Response Text: "+i.responseText+"\n";t(u,r.url)}});$(".logoText").click(function(n){n.preventDefault();location.href="/"});$(".numeric").numericOnly();$(".accordion").accordion({active:!1,collapsible:!0});$(document).on("click",".search-security .search img",function(n){n.preventDefault();$("#searchForm").submit()})}function e(){o();s();a()}function o(){$(document).on("click",'[data-federated-video="true"]',function(t){t.preventDefault();var r=$(this),u=r.attr("data-video-embed")=="true",f=r.attr("data-video-streaming-url"),e=r.attr("data-video-autoplay")=="true",o=r.attr("data-video-title"),s=r.attr("data-video-poster");if(u)n(r);else{var h=window.open("/video-player","Video Player","width=800,height=600,toolbar=0,resizable=1,scrollbars=0");i(h,f,o,s,e)}})}function i(n,t,r,u,f){n&&n.playVideo?n.playVideo(t,r,u,f):window.setTimeout(function(){i(n,t,r,u,f)},1e3)}function n(n){var i=n.attr("data-video-target"),u=n.attr("data-video-streaming-url"),f=n.attr("data-video-broadband-url"),e=n.attr("data-video-autoplay")=="true",o=n.attr("data-video-title"),s=n.attr("data-video-poster"),t=null;if(i!=null)t=$(i);else{var h=(new Date).getUTCMilliseconds(),r="videoPlayer_"+h.toString(),c='<video id="'+r+'" class="azuremediaplayer amp-default-skin amp-big-play-centered"><\/video>';n.html(c);t=$("#"+r)}t.embedVideo({azure:!0,autoPlay:e,streamingUrl:u,broadbandUrl:f,title:o,poster:s});n.attr("data-video-loaded","true");n.removeAttr("data-federated-video");n.removeAttr("data-video-embed");n.removeAttr("data-video-target");n.removeAttr("data-video-target");n.removeAttr("data-video-streaming-url");n.removeAttr("data-video-autoPlay");n.removeAttr("data-video-title");n.removeAttr("data-video-poster")}function s(){$('[data-federated-video="true"]').each(function(){var t=$(this),i=t.attr("data-video-embed");i!=undefined&&i.toLowerCase()=="true"&&n(t)})}function h(){$('[data-federated-gallery="true"]').each(function(){Galleria.run("#"+$(this).attr("id"))})}function c(){Modernizr.inputtypes.date||$('.datePicker, [type="date"]').datepicker({constrainInput:!0,showButtonPanel:!0})}function l(){var n=-1,t,i;navigator.appName=="Microsoft Internet Explorer"&&(t=navigator.userAgent,i=new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})"),i.exec(t)!=null&&(n=parseFloat(RegExp.$1),n<=7&&toastr.warning("The browser you are using is not compatible with some of the pages on this site.  Please consider upgrading","",{target:"#toastr-main-container",positionClass:"toast-top-full-width",timeOut:0})))}function a(){$(document).on("DOMNodeInserted",function(t){$(t.target).attr("data-federated-video")!=null&&n($(t.target))})}return init=function(n){n&&!n.loggedIn&&u();f();e();h();r();c();nav.init();l()},{init:init}}();nav=function(){function t(){$("#bookmarkPage").click(function(n){if(n.preventDefault(),$(this).hasClass("on")){var t=confirm("Are you sure you want to remove this bookmark?");t&&r()}else i()});$("#bookmarkModal").length>0&&$("#bookmarkModal").modal({keyboard:!1,show:!1})}function i(){n==null&&(n=new u,ko.applyBindings(n,$("#bookmarkModal")[0]));n.Title(document.title.substring(0,100));n.Url(location.pathname);$("#bookmarkModal").modal("show")}function r(){$.post("/member/bookmarks-remove-url/",{url:location.pathname},function(n){n.success?$("#bookmarkPage").removeClass("on"):toastr.error("There was an error removing this bookmark")})}function u(){var n=this;n.Title=ko.observable("");n.Url=ko.observable("");n.add=function(){$.ajax({url:"/member/bookmarks-add",type:"POST",dataType:"json",data:{title:n.Title(),url:n.Url()},async:!0,cache:!1}).done(function(n){n.success?(toastr.success("The current page was added to your favorites."),$("#bookmarkModal").modal("hide"),$("#bookmarkPage").addClass("on")):toastr.error("There was an error adding your bookmark")}).fail(function(){toastr.error("There was an error adding your bookmark")})}}var n=null;return init=function(){t()},{init:init}}()