var XSLTProcessor,NBP;if(function(n,t){typeof define=="function"&&define.amd?define(t):typeof exports=="object"?module.exports=t():n.Blazy=t()}(this,function(){"use strict";function a(n){var t=n._util;t.elements=rt(n.options);t.count=t.elements.length;t.destroyed&&(t.destroyed=!1,n.options.container&&i(n.options.container,function(n){r(n,"scroll",t.validateT)}),r(window,"resize",t.saveViewportOffsetT),r(window,"resize",t.validateT),r(window,"scroll",t.validateT));v(n)}function v(n){for(var r,t=n._util,i=0;i<t.count;i++)r=t.elements[i],(it(r,n.options)||h(r,n.options.successClass))&&(n.load(r),t.elements.splice(i,1),t.count--,i--);t.count===0&&n.destroy()}function it(t,i){var f=t.getBoundingClientRect(),u,r;if(i.container&&nt&&(u=t.closest(i.containerClass),u)){if(r=u.getBoundingClientRect(),e(r,n)){var o=r.top-i.offset,s=r.right+i.offset,h=r.bottom+i.offset,c=r.left-i.offset,l={top:o>n.top?o:n.top,right:s<n.right?s:n.right,bottom:h<n.bottom?h:n.bottom,left:c>n.left?c:n.left};return e(f,l)}return!1}return e(f,n)}function e(n,t){return n.right>=t.left&&n.bottom>=t.top&&n.left<=t.right&&n.top<=t.bottom}function y(n,f,e){var y;if(!h(n,e.successClass)&&(f||e.loadInvisible||n.offsetWidth>0&&n.offsetHeight>0))if(y=u(n,l)||u(n,e.src),y){var nt=y.split(e.separator),v=nt[g&&nt.length>1?1:0],it=u(n,e.srcset),rt=s(n,"img"),b=n.parentNode,ft=b&&s(b,"picture");if(rt||n.src===undefined){var a=new Image,k=function(){e.error&&e.error(n,"invalid");c(n,e.errorClass);t(a,"error",k);t(a,"load",d)},d=function(){rt?ft||w(n,v,it):n.style.backgroundImage='url("'+v+'")';o(n,e);t(a,"load",d);t(a,"error",k)};ft&&(a=n,i(b.getElementsByTagName("source"),function(n){p(n,tt,e.srcset)}));r(a,"error",k);r(a,"load",d);w(a,v,it)}else n.src=v,o(n,e)}else s(n,"video")?(i(n.getElementsByTagName("source"),function(n){p(n,ut,e.src)}),n.load(),o(n,e)):(e.error&&e.error(n,"missing"),c(n,e.errorClass))}function o(n,t){c(n,t.successClass);t.success&&t.success(n);f(n,t.src);f(n,t.srcset);i(t.breakpoints,function(t){f(n,t.src)})}function p(n,t,i){var r=u(n,i);r&&(b(n,t,r),f(n,i))}function w(n,t,i){i&&b(n,tt,i);n.src=t}function b(n,t,i){n.setAttribute(t,i)}function u(n,t){return n.getAttribute(t)}function f(n,t){n.removeAttribute(t)}function s(n,t){return n.nodeName.toLowerCase()===t}function h(n,t){return(" "+n.className+" ").indexOf(" "+t+" ")!==-1}function c(n,t){h(n,t)||(n.className+=" "+t)}function rt(n){for(var t=[],i=n.root.querySelectorAll(n.selector),r=i.length;r--;t.unshift(i[r]));return t}function k(t){n.bottom=(window.innerHeight||document.documentElement.clientHeight)+t;n.right=(window.innerWidth||document.documentElement.clientWidth)+t}function r(n,t,i){n.attachEvent?n.attachEvent&&n.attachEvent("on"+t,i):n.addEventListener(t,i,{capture:!1,passive:!0})}function t(n,t,i){n.detachEvent?n.detachEvent&&n.detachEvent("on"+t,i):n.removeEventListener(t,i,{capture:!1,passive:!0})}function i(n,t){var r,i;if(n&&t)for(r=n.length,i=0;i<r&&t(n[i],i)!==!1;i++);}function d(n,t,i){var r=0;return function(){var u=+new Date;u-r<t||(r=u,n.apply(i,arguments))}}var l,n,g,nt,ut="src",tt="srcset";return function(r){var e,u,f;document.querySelectorAll||(e=document.createStyleSheet(),document.querySelectorAll=function(n,t,i,r,u){for(u=document.all,t=[],n=n.replace(/\[for\b/gi,"[htmlFor").split(","),i=n.length;i--;){for(e.addRule(n[i],"k:v"),r=u.length;r--;)u[r].currentStyle.k&&t.push(u[r]);e.removeRule(0)}return t});u=this;f=u._util={};f.elements=[];f.destroyed=!0;u.options=r||{};u.options.error=u.options.error||!1;u.options.offset=u.options.offset||100;u.options.root=u.options.root||document;u.options.success=u.options.success||!1;u.options.selector=u.options.selector||".b-lazy";u.options.separator=u.options.separator||"|";u.options.containerClass=u.options.container;u.options.container=u.options.containerClass?document.querySelectorAll(u.options.containerClass):!1;u.options.errorClass=u.options.errorClass||"b-error";u.options.breakpoints=u.options.breakpoints||!1;u.options.loadInvisible=u.options.loadInvisible||!1;u.options.successClass=u.options.successClass||"b-loaded";u.options.validateDelay=u.options.validateDelay||25;u.options.saveViewportOffsetDelay=u.options.saveViewportOffsetDelay||50;u.options.srcset=u.options.srcset||"data-srcset";u.options.src=l=u.options.src||"data-src";nt=Element.prototype.closest;g=window.devicePixelRatio>1;n={};n.top=0-u.options.offset;n.left=0-u.options.offset;u.revalidate=function(){a(u)};u.load=function(n,t){var r=this.options;n&&n.length===undefined?y(n,t,r):i(n,function(n){y(n,t,r)})};u.destroy=function(){var n=u._util;u.options.container&&i(u.options.container,function(i){t(i,"scroll",n.validateT)});t(window,"scroll",n.validateT);t(window,"resize",n.validateT);t(window,"resize",n.saveViewportOffsetT);n.count=0;n.elements.length=0;n.destroyed=!0};f.validateT=d(function(){v(u)},u.options.validateDelay,u);f.saveViewportOffsetT=d(function(){k(u.options.offset)},u.options.saveViewportOffsetDelay,u);k(u.options.offset);i(u.options.breakpoints,function(n){if(n.width>=window.screen.width)return l=n.src,!1});setTimeout(function(){a(u)})}}),function(n){var r=n.event,t,i;t=r.special.debouncedresize={setup:function(){n(this).on("resize",t.handler)},teardown:function(){n(this).off("resize",t.handler)},handler:function(n,u){var e=this,o=arguments,f=function(){n.type="debouncedresize";r.dispatch.apply(e,o)};i&&clearTimeout(i);u?f():i=setTimeout(f,t.threshold)},threshold:150}}(jQuery),function(n){typeof define=="function"&&define.amd?define(["jquery","./jquery.validate"],n):typeof module=="object"&&module.exports?module.exports=n(require("jquery")):n(jQuery)}(function(n){return function(){function t(n){return n.replace(/<.[^<>]*?>/g," ").replace(/&nbsp;|&#160;/gi," ").replace(/[.(),;:!?%#$'\"_+=\/\-“”’]*/g,"")}n.validator.addMethod("maxWords",function(n,i,r){return this.optional(i)||t(n).match(/\b\w+\b/g).length<=r},n.validator.format("Please enter {0} words or less."));n.validator.addMethod("minWords",function(n,i,r){return this.optional(i)||t(n).match(/\b\w+\b/g).length>=r},n.validator.format("Please enter at least {0} words."));n.validator.addMethod("rangeWords",function(n,i,r){var u=t(n),f=/\b\w+\b/g;return this.optional(i)||u.match(f).length>=r[0]&&u.match(f).length<=r[1]},n.validator.format("Please enter between {0} and {1} words."))}(),n.validator.addMethod("accept",function(t,i,r){var f=typeof r=="string"?r.replace(/\s/g,""):"image/*",e=this.optional(i),u,o,s;if(e)return e;if(n(i).attr("type")==="file"&&(f=f.replace(/[\-\[\]\/\{\}\(\)\+\?\.\\\^\$\|]/g,"\\$&").replace(/,/g,"|").replace(/\/\*/g,"/.*"),i.files&&i.files.length))for(s=new RegExp(".?("+f+")$","i"),u=0;u<i.files.length;u++)if(o=i.files[u],!o.type.match(s))return!1;return!0},n.validator.format("Please enter a value with a valid mimetype.")),n.validator.addMethod("alphanumeric",function(n,t){return this.optional(t)||/^\w+$/i.test(n)},"Letters, numbers, and underscores only please"),n.validator.addMethod("bankaccountNL",function(n,t){if(this.optional(t))return!0;if(!/^[0-9]{9}|([0-9]{2} ){3}[0-9]{3}$/.test(n))return!1;for(var u=n.replace(/ /g,""),r=0,f=u.length,e,o,i=0;i<f;i++)e=f-i,o=u.substring(i,i+1),r=r+e*o;return r%11==0},"Please specify a valid bank account number"),n.validator.addMethod("bankorgiroaccountNL",function(t,i){return this.optional(i)||n.validator.methods.bankaccountNL.call(this,t,i)||n.validator.methods.giroaccountNL.call(this,t,i)},"Please specify a valid bank or giro account number"),n.validator.addMethod("bic",function(n,t){return this.optional(t)||/^([A-Z]{6}[A-Z2-9][A-NP-Z1-9])(X{3}|[A-WY-Z0-9][A-Z0-9]{2})?$/.test(n.toUpperCase())},"Please specify a valid BIC code"),n.validator.addMethod("cifES",function(n,t){"use strict";function a(n){return n%2==0}if(this.optional(t))return!0;var v=new RegExp(/^([ABCDEFGHJKLMNPQRSUVW])(\d{7})([0-9A-J])$/gi),o=n.substring(0,1),s=n.substring(1,8),f=n.substring(8,9),h=0,c=0,l=0,u,r,i,e;if(n.length!==9||!v.test(n))return!1;for(u=0;u<s.length;u++)r=parseInt(s[u],10),a(u)?(r*=2,l+=r<10?r:r-9):c+=r;return(h=c+l,i=(10-h.toString().substr(-1)).toString(),i=parseInt(i,10)>9?"0":i,e="JABCDEFGHI".substr(i,1).toString(),o.match(/[ABEH]/))?f===i:o.match(/[KPQS]/)?f===e:f===i||f===e},"Please specify a valid CIF number."),n.validator.addMethod("cpfBR",function(n){if(n=n.replace(/([~!@#$%^&*()_+=`{}\[\]\-|\\:;'<>,.\/? ])+/g,""),n.length!==11)return!1;var i=0,u,f,r,t;if(u=parseInt(n.substring(9,10),10),f=parseInt(n.substring(10,11),10),r=function(n,t){var i=n*10%11;return(i===10||i===11)&&(i=0),i===t},n===""||n==="00000000000"||n==="11111111111"||n==="22222222222"||n==="33333333333"||n==="44444444444"||n==="55555555555"||n==="66666666666"||n==="77777777777"||n==="88888888888"||n==="99999999999")return!1;for(t=1;t<=9;t++)i=i+parseInt(n.substring(t-1,t),10)*(11-t);if(r(i,u)){for(i=0,t=1;t<=10;t++)i=i+parseInt(n.substring(t-1,t),10)*(12-t);return r(i,f)}return!1},"Please specify a valid CPF number"),n.validator.addMethod("creditcard",function(n,t){if(this.optional(t))return"dependency-mismatch";if(/[^0-9 \-]+/.test(n))return!1;var f=0,i=0,u=!1,r,e;if(n=n.replace(/\D/g,""),n.length<13||n.length>19)return!1;for(r=n.length-1;r>=0;r--)e=n.charAt(r),i=parseInt(e,10),u&&(i*=2)>9&&(i-=9),f+=i,u=!u;return f%10==0},"Please enter a valid credit card number."),n.validator.addMethod("creditcardtypes",function(n,t,i){if(/[^0-9\-]+/.test(n))return!1;n=n.replace(/\D/g,"");var r=0;return(i.mastercard&&(r|=1),i.visa&&(r|=2),i.amex&&(r|=4),i.dinersclub&&(r|=8),i.enroute&&(r|=16),i.discover&&(r|=32),i.jcb&&(r|=64),i.unknown&&(r|=128),i.all&&(r=255),r&1&&/^(5[12345])/.test(n))?n.length===16:r&2&&/^(4)/.test(n)?n.length===16:r&4&&/^(3[47])/.test(n)?n.length===15:r&8&&/^(3(0[012345]|[68]))/.test(n)?n.length===14:r&16&&/^(2(014|149))/.test(n)?n.length===15:r&32&&/^(6011)/.test(n)?n.length===16:r&64&&/^(3)/.test(n)?n.length===16:r&64&&/^(2131|1800)/.test(n)?n.length===15:r&128?!0:!1},"Please enter a valid credit card number."),n.validator.addMethod("currency",function(n,t,i){var f=typeof i=="string",r=f?i:i[0],e=f?!0:i[1],u;return r=r.replace(/,/g,""),r=e?r+"]":r+"]?",u="^["+r+"([1-9]{1}[0-9]{0,2}(\\,[0-9]{3})*(\\.[0-9]{0,2})?|[1-9]{1}[0-9]{0,}(\\.[0-9]{0,2})?|0(\\.[0-9]{0,2})?|(\\.[0-9]{1,2})?)$",u=new RegExp(u),this.optional(t)||u.test(n)},"Please specify a valid currency"),n.validator.addMethod("dateFA",function(n,t){return this.optional(t)||/^[1-4]\d{3}\/((0?[1-6]\/((3[0-1])|([1-2][0-9])|(0?[1-9])))|((1[0-2]|(0?[7-9]))\/(30|([1-2][0-9])|(0?[1-9]))))$/.test(n)},n.validator.messages.date),n.validator.addMethod("dateITA",function(n,t){var u=!1,i,f,e,o,r;return/^\d{1,2}\/\d{1,2}\/\d{4}$/.test(n)?(i=n.split("/"),f=parseInt(i[0],10),e=parseInt(i[1],10),o=parseInt(i[2],10),r=new Date(Date.UTC(o,e-1,f,12,0,0,0)),u=r.getUTCFullYear()===o&&r.getUTCMonth()===e-1&&r.getUTCDate()===f?!0:!1):u=!1,this.optional(t)||u},n.validator.messages.date),n.validator.addMethod("dateNL",function(n,t){return this.optional(t)||/^(0?[1-9]|[12]\d|3[01])[\.\/\-](0?[1-9]|1[012])[\.\/\-]([12]\d)?(\d\d)$/.test(n)},n.validator.messages.date),n.validator.addMethod("extension",function(n,t,i){return i=typeof i=="string"?i.replace(/,/g,"|"):"png|jpe?g|gif",this.optional(t)||n.match(new RegExp("\\.("+i+")$","i"))},n.validator.format("Please enter a value with a valid extension.")),n.validator.addMethod("giroaccountNL",function(n,t){return this.optional(t)||/^[0-9]{1,7}$/.test(n)},"Please specify a valid giro account number"),n.validator.addMethod("iban",function(n,t){if(this.optional(t))return!0;var i=n.replace(/ /g,"").toUpperCase(),f="",c=!0,e="",l="",a,o,s,v,h,y,p,r,u;if(i.length<5||(a=i.substring(0,2),y={AL:"\\d{8}[\\dA-Z]{16}",AD:"\\d{8}[\\dA-Z]{12}",AT:"\\d{16}",AZ:"[\\dA-Z]{4}\\d{20}",BE:"\\d{12}",BH:"[A-Z]{4}[\\dA-Z]{14}",BA:"\\d{16}",BR:"\\d{23}[A-Z][\\dA-Z]",BG:"[A-Z]{4}\\d{6}[\\dA-Z]{8}",CR:"\\d{17}",HR:"\\d{17}",CY:"\\d{8}[\\dA-Z]{16}",CZ:"\\d{20}",DK:"\\d{14}",DO:"[A-Z]{4}\\d{20}",EE:"\\d{16}",FO:"\\d{14}",FI:"\\d{14}",FR:"\\d{10}[\\dA-Z]{11}\\d{2}",GE:"[\\dA-Z]{2}\\d{16}",DE:"\\d{18}",GI:"[A-Z]{4}[\\dA-Z]{15}",GR:"\\d{7}[\\dA-Z]{16}",GL:"\\d{14}",GT:"[\\dA-Z]{4}[\\dA-Z]{20}",HU:"\\d{24}",IS:"\\d{22}",IE:"[\\dA-Z]{4}\\d{14}",IL:"\\d{19}",IT:"[A-Z]\\d{10}[\\dA-Z]{12}",KZ:"\\d{3}[\\dA-Z]{13}",KW:"[A-Z]{4}[\\dA-Z]{22}",LV:"[A-Z]{4}[\\dA-Z]{13}",LB:"\\d{4}[\\dA-Z]{20}",LI:"\\d{5}[\\dA-Z]{12}",LT:"\\d{16}",LU:"\\d{3}[\\dA-Z]{13}",MK:"\\d{3}[\\dA-Z]{10}\\d{2}",MT:"[A-Z]{4}\\d{5}[\\dA-Z]{18}",MR:"\\d{23}",MU:"[A-Z]{4}\\d{19}[A-Z]{3}",MC:"\\d{10}[\\dA-Z]{11}\\d{2}",MD:"[\\dA-Z]{2}\\d{18}",ME:"\\d{18}",NL:"[A-Z]{4}\\d{10}",NO:"\\d{11}",PK:"[\\dA-Z]{4}\\d{16}",PS:"[\\dA-Z]{4}\\d{21}",PL:"\\d{24}",PT:"\\d{21}",RO:"[A-Z]{4}[\\dA-Z]{16}",SM:"[A-Z]\\d{10}[\\dA-Z]{12}",SA:"\\d{2}[\\dA-Z]{18}",RS:"\\d{18}",SK:"\\d{20}",SI:"\\d{15}",ES:"\\d{20}",SE:"\\d{20}",CH:"\\d{5}[\\dA-Z]{12}",TN:"\\d{20}",TR:"\\d{5}[\\dA-Z]{17}",AE:"\\d{3}\\d{16}",GB:"[A-Z]{4}\\d{14}",VG:"[\\dA-Z]{4}\\d{16}"},h=y[a],typeof h!="undefined"&&(p=new RegExp("^[A-Z]{2}\\d{2}"+h+"$",""),!p.test(i))))return!1;for(o=i.substring(4,i.length)+i.substring(0,4),r=0;r<o.length;r++)s=o.charAt(r),s!=="0"&&(c=!1),c||(f+="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ".indexOf(s));for(u=0;u<f.length;u++)v=f.charAt(u),l=""+e+""+v,e=l%97;return e===1},"Please specify a valid IBAN"),n.validator.addMethod("integer",function(n,t){return this.optional(t)||/^-?\d+$/.test(n)},"A positive or negative non-decimal number please"),n.validator.addMethod("ipv4",function(n,t){return this.optional(t)||/^(25[0-5]|2[0-4]\d|[01]?\d\d?)\.(25[0-5]|2[0-4]\d|[01]?\d\d?)\.(25[0-5]|2[0-4]\d|[01]?\d\d?)\.(25[0-5]|2[0-4]\d|[01]?\d\d?)$/i.test(n)},"Please enter a valid IP v4 address."),n.validator.addMethod("ipv6",function(n,t){return this.optional(t)||/^((([0-9A-Fa-f]{1,4}:){7}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){6}:[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){5}:([0-9A-Fa-f]{1,4}:)?[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){4}:([0-9A-Fa-f]{1,4}:){0,2}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){3}:([0-9A-Fa-f]{1,4}:){0,3}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){2}:([0-9A-Fa-f]{1,4}:){0,4}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){6}((\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b)\.){3}(\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b))|(([0-9A-Fa-f]{1,4}:){0,5}:((\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b)\.){3}(\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b))|(::([0-9A-Fa-f]{1,4}:){0,5}((\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b)\.){3}(\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b))|([0-9A-Fa-f]{1,4}::([0-9A-Fa-f]{1,4}:){0,5}[0-9A-Fa-f]{1,4})|(::([0-9A-Fa-f]{1,4}:){0,6}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){1,7}:))$/i.test(n)},"Please enter a valid IP v6 address."),n.validator.addMethod("lettersonly",function(n,t){return this.optional(t)||/^[a-z]+$/i.test(n)},"Letters only please"),n.validator.addMethod("letterswithbasicpunc",function(n,t){return this.optional(t)||/^[a-z\-.,()'"\s]+$/i.test(n)},"Letters or punctuation only please"),n.validator.addMethod("mobileNL",function(n,t){return this.optional(t)||/^((\+|00(\s|\s?\-\s?)?)31(\s|\s?\-\s?)?(\(0\)[\-\s]?)?|0)6((\s|\s?\-\s?)?[0-9]){8}$/.test(n)},"Please specify a valid mobile number"),n.validator.addMethod("mobileUK",function(n,t){return n=n.replace(/\(|\)|\s+|-/g,""),this.optional(t)||n.length>9&&n.match(/^(?:(?:(?:00\s?|\+)44\s?|0)7(?:[1345789]\d{2}|624)\s?\d{3}\s?\d{3})$/)},"Please specify a valid mobile number"),n.validator.addMethod("netmask",function(n,t){return this.optional(t)||/^(254|252|248|240|224|192|128)\.0\.0\.0|255\.(254|252|248|240|224|192|128|0)\.0\.0|255\.255\.(254|252|248|240|224|192|128|0)\.0|255\.255\.255\.(254|252|248|240|224|192|128|0)/i.test(n)},"Please enter a valid netmask."),n.validator.addMethod("nieES",function(n,t){"use strict";if(this.optional(t))return!0;var r=new RegExp(/^[MXYZ]{1}[0-9]{7,8}[TRWAGMYFPDXBNJZSQVHLCKET]{1}$/gi),u=n.substr(n.length-1).toUpperCase(),i;return(n=n.toString().toUpperCase(),n.length>10||n.length<9||!r.test(n))?!1:(n=n.replace(/^[X]/,"0").replace(/^[Y]/,"1").replace(/^[Z]/,"2"),i=n.length===9?n.substr(0,8):n.substr(0,9),"TRWAGMYFPDXBNJZSQVHLCKET".charAt(parseInt(i,10)%23)===u)},"Please specify a valid NIE number."),n.validator.addMethod("nifES",function(n,t){"use strict";return this.optional(t)?!0:(n=n.toUpperCase(),!n.match("((^[A-Z]{1}[0-9]{7}[A-Z0-9]{1}$|^[T]{1}[A-Z0-9]{8}$)|^[0-9]{8}[A-Z]{1}$)"))?!1:/^[0-9]{8}[A-Z]{1}$/.test(n)?"TRWAGMYFPDXBNJZSQVHLCKE".charAt(n.substring(8,0)%23)===n.charAt(8):/^[KLM]{1}/.test(n)?n[8]==="TRWAGMYFPDXBNJZSQVHLCKE".charAt(n.substring(8,1)%23):!1},"Please specify a valid NIF number."),n.validator.addMethod("nipPL",function(n){"use strict";var u,i,t,r,f;if(n=n.replace(/[^0-9]/g,""),n.length!==10)return!1;for(u=[6,5,7,2,3,4,5,6,7],i=0,t=0;t<9;t++)i+=u[t]*n[t];return r=i%11,f=r===10?0:r,f===parseInt(n[9],10)},"Please specify a valid NIP number."),n.validator.addMethod("notEqualTo",function(t,i,r){return this.optional(i)||!n.validator.methods.equalTo.call(this,t,i,r)},"Please enter a different value, values must not be the same."),n.validator.addMethod("nowhitespace",function(n,t){return this.optional(t)||/^\S+$/i.test(n)},"No white space please"),n.validator.addMethod("pattern",function(n,t,i){return this.optional(t)?!0:(typeof i=="string"&&(i=new RegExp("^(?:"+i+")$")),i.test(n))},"Invalid format."),n.validator.addMethod("phoneNL",function(n,t){return this.optional(t)||/^((\+|00(\s|\s?\-\s?)?)31(\s|\s?\-\s?)?(\(0\)[\-\s]?)?|0)[1-9]((\s|\s?\-\s?)?[0-9]){8}$/.test(n)},"Please specify a valid phone number."),n.validator.addMethod("phonesUK",function(n,t){return n=n.replace(/\(|\)|\s+|-/g,""),this.optional(t)||n.length>9&&n.match(/^(?:(?:(?:00\s?|\+)44\s?|0)(?:1\d{8,9}|[23]\d{9}|7(?:[1345789]\d{8}|624\d{6})))$/)},"Please specify a valid uk phone number"),n.validator.addMethod("phoneUK",function(n,t){return n=n.replace(/\(|\)|\s+|-/g,""),this.optional(t)||n.length>9&&n.match(/^(?:(?:(?:00\s?|\+)44\s?)|(?:\(?0))(?:\d{2}\)?\s?\d{4}\s?\d{4}|\d{3}\)?\s?\d{3}\s?\d{3,4}|\d{4}\)?\s?(?:\d{5}|\d{3}\s?\d{3})|\d{5}\)?\s?\d{4,5})$/)},"Please specify a valid phone number"),n.validator.addMethod("phoneUS",function(n,t){return n=n.replace(/\s+/g,""),this.optional(t)||n.length>9&&n.match(/^(\+?1-?)?(\([2-9]([02-9]\d|1[02-9])\)|[2-9]([02-9]\d|1[02-9]))-?[2-9]([02-9]\d|1[02-9])-?\d{4}$/)},"Please specify a valid phone number"),n.validator.addMethod("postalcodeBR",function(n,t){return this.optional(t)||/^\d{2}.\d{3}-\d{3}?$|^\d{5}-?\d{3}?$/.test(n)},"Informe um CEP válido."),n.validator.addMethod("postalCodeCA",function(n,t){return this.optional(t)||/^[ABCEGHJKLMNPRSTVXY]\d[ABCEGHJKLMNPRSTVWXYZ] *\d[ABCEGHJKLMNPRSTVWXYZ]\d$/i.test(n)},"Please specify a valid postal code"),n.validator.addMethod("postalcodeIT",function(n,t){return this.optional(t)||/^\d{5}$/.test(n)},"Please specify a valid postal code"),n.validator.addMethod("postalcodeNL",function(n,t){return this.optional(t)||/^[1-9][0-9]{3}\s?[a-zA-Z]{2}$/.test(n)},"Please specify a valid postal code"),n.validator.addMethod("postcodeUK",function(n,t){return this.optional(t)||/^((([A-PR-UWYZ][0-9])|([A-PR-UWYZ][0-9][0-9])|([A-PR-UWYZ][A-HK-Y][0-9])|([A-PR-UWYZ][A-HK-Y][0-9][0-9])|([A-PR-UWYZ][0-9][A-HJKSTUW])|([A-PR-UWYZ][A-HK-Y][0-9][ABEHMNPRVWXY]))\s?([0-9][ABD-HJLNP-UW-Z]{2})|(GIR)\s?(0AA))$/i.test(n)},"Please specify a valid UK postcode"),n.validator.addMethod("require_from_group",function(t,i,r){var u=n(r[1],i.form),f=u.eq(0),e=f.data("valid_req_grp")?f.data("valid_req_grp"):n.extend({},this),o=u.filter(function(){return e.elementValue(this)}).length>=r[0];return f.data("valid_req_grp",e),n(i).data("being_validated")||(u.data("being_validated",!0),u.each(function(){e.element(this)}),u.data("being_validated",!1)),o},n.validator.format("Please fill at least {0} of these fields.")),n.validator.addMethod("skip_or_fill_minimum",function(t,i,r){var u=n(r[1],i.form),f=u.eq(0),e=f.data("valid_skip")?f.data("valid_skip"):n.extend({},this),o=u.filter(function(){return e.elementValue(this)}).length,s=o===0||o>=r[0];return f.data("valid_skip",e),n(i).data("being_validated")||(u.data("being_validated",!0),u.each(function(){e.element(this)}),u.data("being_validated",!1)),s},n.validator.format("Please either skip these fields or fill at least {0} of them.")),n.validator.addMethod("stateUS",function(n,t,i){var u=typeof i=="undefined",o=u||typeof i.caseSensitive=="undefined"?!1:i.caseSensitive,f=u||typeof i.includeTerritories=="undefined"?!1:i.includeTerritories,e=u||typeof i.includeMilitary=="undefined"?!1:i.includeMilitary,r;return r=f||e?f&&e?"^(A[AEKLPRSZ]|C[AOT]|D[CE]|FL|G[AU]|HI|I[ADLN]|K[SY]|LA|M[ADEINOPST]|N[CDEHJMVY]|O[HKR]|P[AR]|RI|S[CD]|T[NX]|UT|V[AIT]|W[AIVY])$":f?"^(A[KLRSZ]|C[AOT]|D[CE]|FL|G[AU]|HI|I[ADLN]|K[SY]|LA|M[ADEINOPST]|N[CDEHJMVY]|O[HKR]|P[AR]|RI|S[CD]|T[NX]|UT|V[AIT]|W[AIVY])$":"^(A[AEKLPRZ]|C[AOT]|D[CE]|FL|GA|HI|I[ADLN]|K[SY]|LA|M[ADEINOST]|N[CDEHJMVY]|O[HKR]|PA|RI|S[CD]|T[NX]|UT|V[AT]|W[AIVY])$":"^(A[KLRZ]|C[AOT]|D[CE]|FL|GA|HI|I[ADLN]|K[SY]|LA|M[ADEINOST]|N[CDEHJMVY]|O[HKR]|PA|RI|S[CD]|T[NX]|UT|V[AT]|W[AIVY])$",r=o?new RegExp(r):new RegExp(r,"i"),this.optional(t)||r.test(n)},"Please specify a valid state"),n.validator.addMethod("strippedminlength",function(t,i,r){return n(t).text().length>=r},n.validator.format("Please enter at least {0} characters")),n.validator.addMethod("time",function(n,t){return this.optional(t)||/^([01]\d|2[0-3]|[0-9])(:[0-5]\d){1,2}$/.test(n)},"Please enter a valid time, between 00:00 and 23:59"),n.validator.addMethod("time12h",function(n,t){return this.optional(t)||/^((0?[1-9]|1[012])(:[0-5]\d){1,2}(\ ?[AP]M))$/i.test(n)},"Please enter a valid time in 12-hour am/pm format"),n.validator.addMethod("url2",function(n,t){return this.optional(t)||/^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)*(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(n)},n.validator.messages.url),n.validator.addMethod("vinUS",function(n){if(n.length!==17)return!1;for(var e=["A","B","C","D","E","F","G","H","J","K","L","M","N","P","R","S","T","U","V","W","X","Y","Z"],h=[1,2,3,4,5,6,7,8,1,2,3,4,5,7,9,2,3,4,5,6,7,8,9],c=[8,7,6,5,4,3,2,10,0,9,8,7,6,5,4,3,2],s=0,i,t,o,u,f,r=0;r<17;r++){if(o=c[r],t=n.slice(r,r+1),r===8&&(f=t),isNaN(t)){for(i=0;i<e.length;i++)if(t.toUpperCase()===e[i]){t=h[i];t*=o;isNaN(f)&&i===8&&(f=e[i]);break}}else t*=o;s+=t}return(u=s%11,u===10&&(u="X"),u===f)?!0:!1},"The specified vehicle identification number (VIN) is invalid."),n.validator.addMethod("zipcodeUS",function(n,t){return this.optional(t)||/^\d{5}(-\d{4})?$/.test(n)},"The specified US ZIP Code is invalid"),n.validator.addMethod("ziprange",function(n,t){return this.optional(t)||/^90[2-5]\d\{2\}-\d{4}$/.test(n)},"Your ZIP-code must be in the range 902xx-xxxx to 905xx-xxxx"),n}),window.Modernizr=function(n,t,i){function l(n){c.cssText=n}function at(n,t){return l(y.join(n+";")+(t||""))}function h(n,t){return typeof n===t}function v(n,t){return!!~(""+n).indexOf(t)}function ut(n,t){var u,r;for(u in n)if(r=n[u],!v(r,"-")&&c[r]!==i)return t=="pfx"?r:!0;return!1}function vt(n,t,r){var f,u;for(f in n)if(u=t[n[f]],u!==i)return r===!1?n[f]:h(u,"function")?u.bind(r||t):u;return!1}function f(n,t,i){var r=n.charAt(0).toUpperCase()+n.slice(1),u=(n+" "+st.join(r+" ")+r).split(" ");return h(t,"string")||h(t,"undefined")?ut(u,t):(u=(n+" "+ht.join(r+" ")+r).split(" "),vt(u,t,i))}function yt(){u.input=function(i){for(var r=0,u=i.length;r<u;r++)w[i[r]]=!!(i[r]in o);return w.list&&(w.list=!!(t.createElement("datalist")&&n.HTMLDataListElement)),w}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" "));u.inputtypes=function(n){for(var u=0,r,f,e,h=n.length;u<h;u++)o.setAttribute("type",f=n[u]),r=o.type!=="text",r&&(o.value=g,o.style.cssText="position:absolute;visibility:hidden;",/^range$/.test(f)&&o.style.WebkitAppearance!==i?(s.appendChild(o),e=t.defaultView,r=e.getComputedStyle&&e.getComputedStyle(o,null).WebkitAppearance!=="textfield"&&o.offsetHeight!==0,s.removeChild(o)):/^(search|tel)$/.test(f)||(r=/^(url|email)$/.test(f)?o.checkValidity&&o.checkValidity()===!1:o.value!=g)),ct[n[u]]=!!r;return ct}("search tel url email datetime date month week time datetime-local number range color".split(" "))}var u={},d=!0,s=t.documentElement,e="modernizr",ft=t.createElement(e),c=ft.style,o=t.createElement("input"),g=":)",et={}.toString,y=" -webkit- -moz- -o- -ms- ".split(" "),ot="Webkit Moz O ms",st=ot.split(" "),ht=ot.toLowerCase().split(" "),p={svg:"http://www.w3.org/2000/svg"},r={},ct={},w={},nt=[],tt=nt.slice,b,a=function(n,i,r,u){var l,a,c,v,f=t.createElement("div"),h=t.body,o=h||t.createElement("body");if(parseInt(r,10))while(r--)c=t.createElement("div"),c.id=u?u[r]:e+(r+1),f.appendChild(c);return l=["&#173;",'<style id="s',e,'">',n,"<\/style>"].join(""),f.id=e,(h?f:o).innerHTML+=l,o.appendChild(f),h||(o.style.background="",o.style.overflow="hidden",v=s.style.overflow,s.style.overflow="hidden",s.appendChild(o)),a=i(f,n),h?f.parentNode.removeChild(f):(o.parentNode.removeChild(o),s.style.overflow=v),!!a},pt=function(t){var i=n.matchMedia||n.msMatchMedia,r;return i?i(t)&&i(t).matches||!1:(a("@media "+t+" { #"+e+" { position: absolute; } }",function(t){r=(n.getComputedStyle?getComputedStyle(t,null):t.currentStyle).position=="absolute"}),r)},lt=function(){function n(n,u){u=u||t.createElement(r[n]||"div");n="on"+n;var f=n in u;return f||(u.setAttribute||(u=t.createElement("div")),u.setAttribute&&u.removeAttribute&&(u.setAttribute(n,""),f=h(u[n],"function"),h(u[n],"undefined")||(u[n]=i),u.removeAttribute(n))),u=null,f}var r={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return n}(),it={}.hasOwnProperty,rt,k;rt=h(it,"undefined")||h(it.call,"undefined")?function(n,t){return t in n&&h(n.constructor.prototype[t],"undefined")}:function(n,t){return it.call(n,t)};Function.prototype.bind||(Function.prototype.bind=function(n){var t=this,i,r;if(typeof t!="function")throw new TypeError;return i=tt.call(arguments,1),r=function(){var f,e,u;return this instanceof r?(f=function(){},f.prototype=t.prototype,e=new f,u=t.apply(e,i.concat(tt.call(arguments))),Object(u)===u)?u:e:t.apply(n,i.concat(tt.call(arguments)))},r});r.flexbox=function(){return f("flexWrap")};r.flexboxlegacy=function(){return f("boxDirection")};r.canvas=function(){var n=t.createElement("canvas");return!!(n.getContext&&n.getContext("2d"))};r.canvastext=function(){return!!(u.canvas&&h(t.createElement("canvas").getContext("2d").fillText,"function"))};r.webgl=function(){return!!n.WebGLRenderingContext};r.touch=function(){var i;return"ontouchstart"in n||n.DocumentTouch&&t instanceof DocumentTouch?i=!0:a(["@media (",y.join("touch-enabled),("),e,")","{#modernizr{top:9px;position:absolute}}"].join(""),function(n){i=n.offsetTop===9}),i};r.geolocation=function(){return"geolocation"in navigator};r.postmessage=function(){return!!n.postMessage};r.websqldatabase=function(){return!!n.openDatabase};r.indexedDB=function(){return!!f("indexedDB",n)};r.hashchange=function(){return lt("hashchange",n)&&(t.documentMode===i||t.documentMode>7)};r.history=function(){return!!(n.history&&history.pushState)};r.draganddrop=function(){var n=t.createElement("div");return"draggable"in n||"ondragstart"in n&&"ondrop"in n};r.websockets=function(){return"WebSocket"in n||"MozWebSocket"in n};r.rgba=function(){return l("background-color:rgba(150,255,150,.5)"),v(c.backgroundColor,"rgba")};r.hsla=function(){return l("background-color:hsla(120,40%,100%,.5)"),v(c.backgroundColor,"rgba")||v(c.backgroundColor,"hsla")};r.multiplebgs=function(){return l("background:url(https://),url(https://),red url(https://)"),/(url\s*\(.*?){3}/.test(c.background)};r.backgroundsize=function(){return f("backgroundSize")};r.borderimage=function(){return f("borderImage")};r.borderradius=function(){return f("borderRadius")};r.boxshadow=function(){return f("boxShadow")};r.textshadow=function(){return t.createElement("div").style.textShadow===""};r.opacity=function(){return at("opacity:.55"),/^0.55$/.test(c.opacity)};r.cssanimations=function(){return f("animationName")};r.csscolumns=function(){return f("columnCount")};r.cssgradients=function(){var n="background-image:";return l((n+"-webkit- ".split(" ").join("gradient(linear,left top,right bottom,from(#9f9),to(white));"+n)+y.join("linear-gradient(left top,#9f9, white);"+n)).slice(0,-n.length)),v(c.backgroundImage,"gradient")};r.cssreflections=function(){return f("boxReflect")};r.csstransforms=function(){return!!f("transform")};r.csstransforms3d=function(){var n=!!f("perspective");return n&&"webkitPerspective"in s.style&&a("@media (transform-3d),(-webkit-transform-3d){#modernizr{left:9px;position:absolute;height:3px;}}",function(t){n=t.offsetLeft===9&&t.offsetHeight===3}),n};r.csstransitions=function(){return f("transition")};r.fontface=function(){var n;return a('@font-face {font-family:"font";src:url("https://")}',function(i,r){var f=t.getElementById("smodernizr"),u=f.sheet||f.styleSheet,e=u?u.cssRules&&u.cssRules[0]?u.cssRules[0].cssText:u.cssText||"":"";n=/src/i.test(e)&&e.indexOf(r.split(" ")[0])===0}),n};r.generatedcontent=function(){var n;return a(["#",e,"{font:0/0 a}#",e,':after{content:"',g,'";visibility:hidden;font:3px/1 a}'].join(""),function(t){n=t.offsetHeight>=3}),n};r.video=function(){var i=t.createElement("video"),n=!1;try{(n=!!i.canPlayType)&&(n=new Boolean(n),n.ogg=i.canPlayType('video/ogg; codecs="theora"').replace(/^no$/,""),n.h264=i.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,""),n.webm=i.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,""))}catch(r){}return n};r.audio=function(){var i=t.createElement("audio"),n=!1;try{(n=!!i.canPlayType)&&(n=new Boolean(n),n.ogg=i.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),n.mp3=i.canPlayType("audio/mpeg;").replace(/^no$/,""),n.wav=i.canPlayType('audio/wav; codecs="1"').replace(/^no$/,""),n.m4a=(i.canPlayType("audio/x-m4a;")||i.canPlayType("audio/aac;")).replace(/^no$/,""))}catch(r){}return n};r.localstorage=function(){try{return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch(n){return!1}};r.sessionstorage=function(){try{return sessionStorage.setItem(e,e),sessionStorage.removeItem(e),!0}catch(n){return!1}};r.webworkers=function(){return!!n.Worker};r.applicationcache=function(){return!!n.applicationCache};r.svg=function(){return!!t.createElementNS&&!!t.createElementNS(p.svg,"svg").createSVGRect};r.inlinesvg=function(){var n=t.createElement("div");return n.innerHTML="<svg/>",(n.firstChild&&n.firstChild.namespaceURI)==p.svg};r.smil=function(){return!!t.createElementNS&&/SVGAnimate/.test(et.call(t.createElementNS(p.svg,"animate")))};r.svgclippaths=function(){return!!t.createElementNS&&/SVGClipPath/.test(et.call(t.createElementNS(p.svg,"clipPath")))};for(k in r)rt(r,k)&&(b=k.toLowerCase(),u[b]=r[k](),nt.push((u[b]?"":"no-")+b));return u.input||yt(),u.addTest=function(n,t){if(typeof n=="object")for(var r in n)rt(n,r)&&u.addTest(r,n[r]);else{if(n=n.toLowerCase(),u[n]!==i)return u;t=typeof t=="function"?t():t;typeof d!="undefined"&&d&&(s.className+=" "+(t?"":"no-")+n);u[n]=t}return u},l(""),ft=o=null,function(n,t){function v(n,t){var i=n.createElement("p"),r=n.getElementsByTagName("head")[0]||n.documentElement;return i.innerHTML="x<style>"+t+"<\/style>",r.insertBefore(i.lastChild,r.firstChild)}function s(){var n=r.elements;return typeof n=="string"?n.split(" "):n}function u(n){var t=a[n[l]];return t||(t={},o++,n[l]=o,a[o]=t),t}function h(n,r,f){if(r||(r=t),i)return r.createElement(n);f||(f=u(r));var e;return e=f.cache[n]?f.cache[n].cloneNode():b.test(n)?(f.cache[n]=f.createElem(n)).cloneNode():f.createElem(n),e.canHaveChildren&&!w.test(n)&&!e.tagUrn?f.frag.appendChild(e):e}function y(n,r){if(n||(n=t),i)return n.createDocumentFragment();r=r||u(n);for(var e=r.frag.cloneNode(),f=0,o=s(),h=o.length;f<h;f++)e.createElement(o[f]);return e}function p(n,t){t.cache||(t.cache={},t.createElem=n.createElement,t.createFrag=n.createDocumentFragment,t.frag=t.createFrag());n.createElement=function(i){return r.shivMethods?h(i,n,t):t.createElem(i)};n.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+s().join().replace(/[\w\-]+/g,function(n){return t.createElem(n),t.frag.createElement(n),'c("'+n+'")'})+");return n}")(r,t.frag)}function c(n){n||(n=t);var f=u(n);return!r.shivCSS||e||f.hasCSS||(f.hasCSS=!!v(n,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),i||p(n,f),n}var f=n.html5||{},w=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,b=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,e,l="_html5shiv",o=0,a={},i,r;(function(){try{var n=t.createElement("a");n.innerHTML="<xyz><\/xyz>";e="hidden"in n;i=n.childNodes.length==1||function(){t.createElement("a");var n=t.createDocumentFragment();return typeof n.cloneNode=="undefined"||typeof n.createDocumentFragment=="undefined"||typeof n.createElement=="undefined"}()}catch(r){e=!0;i=!0}})();r={elements:f.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output progress section summary template time video",version:"3.7.0",shivCSS:f.shivCSS!==!1,supportsUnknownElements:i,shivMethods:f.shivMethods!==!1,type:"default",shivDocument:c,createElement:h,createDocumentFragment:y};n.html5=r;c(t)}(this,t),u._version="2.8.3",u._prefixes=y,u._domPrefixes=ht,u._cssomPrefixes=st,u.mq=pt,u.hasEvent=lt,u.testProp=function(n){return ut([n])},u.testAllProps=f,u.testStyles=a,u.prefixed=function(n,t,i){return t?f(n,t,i):f(n,"pfx")},s.className=s.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(d?" js "+nt.join(" "):""),u}(this,this.document),function(n,t){typeof exports=="object"&&typeof module!="undefined"?t(exports,require("jquery")):typeof define=="function"&&define.amd?define(["exports","jquery"],t):t(n.bootstrap={},n.jQuery)}(this,function(n,t){"use strict";function ht(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}function f(n,t,i){return t&&ht(n.prototype,t),i&&ht(n,i),n}function r(){return r=Object.assign||function(n){for(var t,i,r=1;r<arguments.length;r++){t=arguments[r];for(i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])}return n},r.apply(this,arguments)}function ci(n,t){n.prototype=Object.create(t.prototype);n.prototype.constructor=n;n.__proto__=t}function li(n){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1;n()}))}}function ai(n){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1;n()},hi))}}function ct(n){return n&&{}.toString.call(n)==="[object Function]"}function s(n,t){if(n.nodeType!==1)return[];var i=getComputedStyle(n,null);return t?i[t]:i}function tt(n){return n.nodeName==="HTML"?n:n.parentNode||n.host}function a(n){if(!n)return document.body;switch(n.nodeName){case"HTML":case"BODY":return n.ownerDocument.body;case"#document":return n.body}var t=s(n),i=t.overflow,r=t.overflowX,u=t.overflowY;return/(auto|scroll)/.test(i+u+r)?n:a(tt(n))}function h(n){var t=n&&n.offsetParent,i=t&&t.nodeName;return!i||i==="BODY"||i==="HTML"?n?n.ownerDocument.documentElement:document.documentElement:["TD","TABLE"].indexOf(t.nodeName)!==-1&&s(t,"position")==="static"?h(t):t}function vi(n){var t=n.nodeName;return t==="BODY"?!1:t==="HTML"||h(n.firstElementChild)===n}function it(n){return n.parentNode!==null?it(n.parentNode):n}function p(n,t){var i,r;if(!n||!n.nodeType||!t||!t.nodeType)return document.documentElement;var f=n.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,e=f?n:t,o=f?t:n,u=document.createRange();return(u.setStart(e,0),u.setEnd(o,0),i=u.commonAncestorContainer,n!==i&&t!==i||e.contains(o))?vi(i)?i:h(i):(r=it(n),r.host?p(r.host,t):p(n,it(t).host))}function c(n){var f=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"top",t=f==="top"?"scrollTop":"scrollLeft",i=n.nodeName,r,u;return i==="BODY"||i==="HTML"?(r=n.ownerDocument.documentElement,u=n.ownerDocument.scrollingElement||r,u[t]):n[t]}function yi(n,t){var f=arguments.length>2&&arguments[2]!==undefined?arguments[2]:!1,r=c(t,"top"),u=c(t,"left"),i=f?-1:1;return n.top+=r*i,n.bottom+=r*i,n.left+=u*i,n.right+=u*i,n}function lt(n,t){var i=t==="x"?"Left":"Top",r=i==="Left"?"Right":"Bottom";return parseFloat(n["border"+i+"Width"],10)+parseFloat(n["border"+r+"Width"],10)}function at(n,t,i,r){return Math.max(t["offset"+n],t["scroll"+n],i["client"+n],i["offset"+n],i["scroll"+n],y()?i["offset"+n]+r["margin"+(n==="Height"?"Top":"Left")]+r["margin"+(n==="Height"?"Bottom":"Right")]:0)}function vt(){var t=document.body,n=document.documentElement,i=y()&&getComputedStyle(n);return{height:at("Height",t,n,i),width:at("Width",t,n,i)}}function o(n){return u({},n,{right:n.left+n.width,bottom:n.top+n.height})}function rt(n){var t={},r,u,f;if(y())try{t=n.getBoundingClientRect();r=c(n,"top");u=c(n,"left");t.top+=r;t.left+=u;t.bottom+=r;t.right+=u}catch(p){}else t=n.getBoundingClientRect();var i={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},l=n.nodeName==="HTML"?vt():{},a=l.width||n.clientWidth||i.right-i.left,v=l.height||n.clientHeight||i.bottom-i.top,e=n.offsetWidth-a,h=n.offsetHeight-v;return(e||h)&&(f=s(n),e-=lt(f,"x"),h-=lt(f,"y"),i.width-=e,i.height-=h),o(i)}function ut(n,t){var v=y(),w=t.nodeName==="HTML",r=rt(n),p=rt(t),h=a(n),u=s(t),c=parseFloat(u.borderTopWidth,10),l=parseFloat(u.borderLeftWidth,10),i=o({top:r.top-p.top-c,left:r.left-p.left-l,width:r.width,height:r.height}),f,e;return i.marginTop=0,i.marginLeft=0,!v&&w&&(f=parseFloat(u.marginTop,10),e=parseFloat(u.marginLeft,10),i.top-=c-f,i.bottom-=c-f,i.left-=l-e,i.right-=l-e,i.marginTop=f,i.marginLeft=e),(v?t.contains(h):t===h&&h.nodeName!=="BODY")&&(i=yi(i,t)),i}function pi(n){var t=n.ownerDocument.documentElement,i=ut(n,t),r=Math.max(t.clientWidth,window.innerWidth||0),u=Math.max(t.clientHeight,window.innerHeight||0),f=c(t),e=c(t,"left"),s={top:f-i.top+i.marginTop,left:e-i.left+i.marginLeft,width:r,height:u};return o(s)}function yt(n){var t=n.nodeName;return t==="BODY"||t==="HTML"?!1:s(n,"position")==="fixed"?!0:yt(tt(n))}function ft(n,t,i,r){var u={top:0,left:0},o=p(n,t),e,f;if(r==="viewport")u=pi(o);else if(e=void 0,r==="scrollParent"?(e=a(tt(t)),e.nodeName==="BODY"&&(e=n.ownerDocument.documentElement)):e=r==="window"?n.ownerDocument.documentElement:r,f=ut(e,o),e.nodeName!=="HTML"||yt(o))u=f;else{var s=vt(),h=s.height,c=s.width;u.top+=f.top-f.marginTop;u.bottom=h+f.top;u.left+=f.left-f.marginLeft;u.right=c+f.left}return u.left+=i,u.top+=i,u.right-=i,u.bottom-=i,u}function wi(n){var t=n.width,i=n.height;return t*i}function pt(n,t,i,r,f){var l=arguments.length>5&&arguments[5]!==undefined?arguments[5]:0;if(n.indexOf("auto")===-1)return n;var e=ft(i,r,l,f),o={top:{width:e.width,height:t.top-e.top},right:{width:e.right-t.right,height:e.height},bottom:{width:e.width,height:e.bottom-t.bottom},left:{width:t.left-e.left,height:e.height}},s=Object.keys(o).map(function(n){return u({key:n},o[n],{area:wi(o[n])})}).sort(function(n,t){return t.area-n.area}),h=s.filter(function(n){var t=n.width,r=n.height;return t>=i.clientWidth&&r>=i.clientHeight}),a=h.length>0?h[0].key:s[0].key,c=n.split("-")[1];return a+(c?"-"+c:"")}function wt(n,t,i){var r=p(t,i);return ut(i,r)}function bt(n){var t=getComputedStyle(n),i=parseFloat(t.marginTop)+parseFloat(t.marginBottom),r=parseFloat(t.marginLeft)+parseFloat(t.marginRight);return{width:n.offsetWidth+r,height:n.offsetHeight+i}}function w(n){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return n.replace(/left|right|bottom|top/g,function(n){return t[n]})}function kt(n,t,i){i=i.split("-")[0];var r=bt(n),e={width:r.width,height:r.height},u=["right","left"].indexOf(i)!==-1,o=u?"top":"left",f=u?"left":"top",s=u?"height":"width",h=u?"width":"height";return e[o]=t[o]+t[s]/2-r[s]/2,e[f]=i===f?t[f]-r[h]:t[w(f)],e}function v(n,t){return Array.prototype.find?n.find(t):n.filter(t)[0]}function bi(n,t,i){if(Array.prototype.findIndex)return n.findIndex(function(n){return n[t]===i});var r=v(n,function(n){return n[t]===i});return n.indexOf(r)}function dt(n,t,i){var r=i===undefined?n:n.slice(0,bi(n,"name",i));return r.forEach(function(n){n["function"]&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var i=n["function"]||n.fn;n.enabled&&ct(i)&&(t.offsets.popper=o(t.offsets.popper),t.offsets.reference=o(t.offsets.reference),t=i(t,n))}),t}function ki(){if(!this.state.isDestroyed){var n={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};if(n.offsets.reference=wt(this.state,this.popper,this.reference),n.placement=pt(this.options.placement,n.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),n.originalPlacement=n.placement,n.offsets.popper=kt(this.popper,n.offsets.reference,n.placement),n.offsets.popper.position="absolute",n=dt(this.modifiers,n),this.state.isCreated)this.options.onUpdate(n);else{this.state.isCreated=!0;this.options.onCreate(n)}}}function gt(n,t){return n.some(function(n){var i=n.name,r=n.enabled;return r&&i===t})}function ni(n){for(var t,i,u=[!1,"ms","Webkit","Moz","O"],f=n.charAt(0).toUpperCase()+n.slice(1),r=0;r<u.length-1;r++)if(t=u[r],i=t?""+t+f:n,typeof document.body.style[i]!="undefined")return i;return null}function di(){return this.state.isDestroyed=!0,gt(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.left="",this.popper.style.position="",this.popper.style.top="",this.popper.style[ni("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function ti(n){var t=n.ownerDocument;return t?t.defaultView:window}function ii(n,t,i,r){var f=n.nodeName==="BODY",u=f?n.ownerDocument.defaultView:n;u.addEventListener(t,i,{passive:!0});f||ii(a(u.parentNode),t,i,r);r.push(u)}function gi(n,t,i,r){i.updateBound=r;ti(n).addEventListener("resize",i.updateBound,{passive:!0});var u=a(n);return ii(u,"scroll",i.updateBound,i.scrollParents),i.scrollElement=u,i.eventsEnabled=!0,i}function nr(){this.state.eventsEnabled||(this.state=gi(this.reference,this.options,this.state,this.scheduleUpdate))}function tr(n,t){return ti(n).removeEventListener("resize",t.updateBound),t.scrollParents.forEach(function(n){n.removeEventListener("scroll",t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}function ir(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=tr(this.reference,this.state))}function et(n){return n!==""&&!isNaN(parseFloat(n))&&isFinite(n)}function ot(n,t){Object.keys(t).forEach(function(i){var r="";["width","height","top","right","bottom","left"].indexOf(i)!==-1&&et(t[i])&&(r="px");n.style[i]=t[i]+r})}function rr(n,t){Object.keys(t).forEach(function(i){var r=t[i];r!==!1?n.setAttribute(i,t[i]):n.removeAttribute(i)})}function ur(n){return ot(n.instance.popper,n.styles),rr(n.instance.popper,n.attributes),n.arrowElement&&Object.keys(n.arrowStyles).length&&ot(n.arrowElement,n.arrowStyles),n}function fr(n,t,i,r,u){var f=wt(u,t,n),e=pt(i.placement,f,t,n,i.modifiers.flip.boundariesElement,i.modifiers.flip.padding);return t.setAttribute("x-placement",e),ot(t,{position:"absolute"}),i}function er(n,t){var k=t.x,d=t.y,r=n.offsets.popper,s=v(n.instance.modifiers,function(n){return n.name==="applyStyle"}).gpuAcceleration,a,y,p;s!==undefined&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var g=s!==undefined?s:t.gpuAcceleration,nt=h(n.instance.popper),w=rt(nt),i={position:r.position},o={left:Math.floor(r.left),top:Math.floor(r.top),bottom:Math.floor(r.bottom),right:Math.floor(r.right)},f=k==="bottom"?"top":"bottom",e=d==="right"?"left":"right",b=ni("transform"),c=void 0,l=void 0;return l=f==="bottom"?-w.height+o.bottom:o.top,c=e==="right"?-w.width+o.right:o.left,g&&b?(i[b]="translate3d("+c+"px, "+l+"px, 0)",i[f]=0,i[e]=0,i.willChange="transform"):(a=f==="bottom"?-1:1,y=e==="right"?-1:1,i[f]=l*a,i[e]=c*y,i.willChange=f+", "+e),p={"x-placement":n.placement},n.attributes=u({},p,n.attributes),n.styles=u({},i,n.styles),n.arrowStyles=u({},n.offsets.arrow,n.arrowStyles),n}function ri(n,t,i){var u=v(n,function(n){var i=n.name;return i===t}),f=!!u&&n.some(function(n){return n.name===i&&n.enabled&&n.order<u.order}),r,e;return f||(r="`"+t+"`",e="`"+i+"`",console.warn(e+" modifier is required by "+r+" modifier in order to work, be sure to include it before "+r+"!")),f}function or(n,t){var h,r;if(!ri(n.instance.modifiers,"arrow","keepTogether"))return n;if(r=t.element,typeof r=="string"){if(r=n.instance.popper.querySelector(r),!r)return n}else if(!n.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),n;var k=n.placement.split("-")[0],w=n.offsets,e=w.popper,u=w.reference,c=["left","right"].indexOf(k)!==-1,v=c?"height":"width",y=c?"Top":"Left",i=y.toLowerCase(),d=c?"left":"top",a=c?"bottom":"right",f=bt(r)[v];u[a]-f<e[i]&&(n.offsets.popper[i]-=e[i]-(u[a]-f));u[i]+f>e[a]&&(n.offsets.popper[i]+=u[i]+f-e[a]);n.offsets.popper=o(n.offsets.popper);var g=u[i]+u[v]/2-f/2,b=s(n.instance.popper),nt=parseFloat(b["margin"+y],10),tt=parseFloat(b["border"+y+"Width"],10),p=g-n.offsets.popper[i]-nt-tt;return p=Math.max(Math.min(e[v]-f,p),0),n.arrowElement=r,n.offsets.arrow=(h={},l(h,i,Math.round(p)),l(h,d,""),h),n}function sr(n){return n==="end"?"start":n==="start"?"end":n}function ui(n){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:!1,t=d.indexOf(n),i=d.slice(t+1).concat(d.slice(0,t));return r?i.reverse():i}function hr(n,t){if(gt(n.instance.modifiers,"inner")||n.flipped&&n.placement===n.originalPlacement)return n;var e=ft(n.instance.popper,n.instance.reference,t.padding,t.boundariesElement),i=n.placement.split("-")[0],o=w(i),r=n.placement.split("-")[1]||"",f=[];switch(t.behavior){case g.FLIP:f=[i,o];break;case g.CLOCKWISE:f=ui(i);break;case g.COUNTERCLOCKWISE:f=ui(i,!0);break;default:f=t.behavior}return f.forEach(function(s,h){if(i!==s||f.length===h+1)return n;i=n.placement.split("-")[0];o=w(i);var l=n.offsets.popper,a=n.offsets.reference,c=Math.floor,y=i==="left"&&c(l.right)>c(a.left)||i==="right"&&c(l.left)<c(a.right)||i==="top"&&c(l.bottom)>c(a.top)||i==="bottom"&&c(l.top)<c(a.bottom),p=c(l.left)<c(e.left),b=c(l.right)>c(e.right),k=c(l.top)<c(e.top),d=c(l.bottom)>c(e.bottom),g=i==="left"&&p||i==="right"&&b||i==="top"&&k||i==="bottom"&&d,v=["top","bottom"].indexOf(i)!==-1,nt=!!t.flipVariations&&(v&&r==="start"&&p||v&&r==="end"&&b||!v&&r==="start"&&k||!v&&r==="end"&&d);(y||g||nt)&&(n.flipped=!0,(y||g)&&(i=f[h+1]),nt&&(r=sr(r)),n.placement=i+(r?"-"+r:""),n.offsets.popper=u({},n.offsets.popper,kt(n.instance.popper,n.offsets.reference,n.placement)),n=dt(n.instance.modifiers,n,"flip"))}),n}function cr(n){var o=n.offsets,u=o.popper,i=o.reference,s=n.placement.split("-")[0],r=Math.floor,f=["top","bottom"].indexOf(s)!==-1,e=f?"right":"bottom",t=f?"left":"top",h=f?"width":"height";return u[e]<r(i[t])&&(n.offsets.popper[t]=r(i[t])-u[h]),u[t]>r(i[e])&&(n.offsets.popper[t]=r(i[e])),n}function lr(n,t,i,r){var h=n.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),f=+h[1],u=h[2],e,c,s;if(!f)return n;if(u.indexOf("%")===0){e=void 0;switch(u){case"%p":e=i;break;case"%":case"%r":default:e=r}return c=o(e),c[t]/100*f}return u==="vh"||u==="vw"?(s=void 0,s=u==="vh"?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0),s/100*f):f}function ar(n,t,i,r){var s=[0,0],h=["right","left"].indexOf(r)!==-1,u=n.split(/(\+|\-)/).map(function(n){return n.trim()}),f=u.indexOf(v(u,function(n){return n.search(/,|\s/)!==-1})),o,e;return u[f]&&u[f].indexOf(",")===-1&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead."),o=/\s*,\s*|\s+/,e=f!==-1?[u.slice(0,f).concat([u[f].split(o)[0]]),[u[f].split(o)[1]].concat(u.slice(f+1))]:[u],e=e.map(function(n,r){var f=(r===1?!h:h)?"height":"width",u=!1;return n.reduce(function(n,t){return n[n.length-1]===""&&["+","-"].indexOf(t)!==-1?(n[n.length-1]=t,u=!0,n):u?(n[n.length-1]+=t,u=!1,n):n.concat(t)},[]).map(function(n){return lr(n,f,t,i)})}),e.forEach(function(n,t){n.forEach(function(i,r){et(i)&&(s[t]+=i*(n[r-1]==="-"?-1:1))})}),s}function vr(n,t){var f=t.offset,o=n.placement,e=n.offsets,i=e.popper,s=e.reference,u=o.split("-")[0],r=void 0;return r=et(+f)?[+f,0]:ar(f,i,s,u),u==="left"?(i.top+=r[0],i.left-=r[1]):u==="right"?(i.top+=r[0],i.left+=r[1]):u==="top"?(i.left+=r[0],i.top-=r[1]):u==="bottom"&&(i.left+=r[0],i.top+=r[1]),n.popper=i,n}function yr(n,t){var f=t.boundariesElement||h(n.instance.popper),r;n.instance.reference===f&&(f=h(f));r=ft(n.instance.popper,n.instance.reference,t.padding,f);t.boundaries=r;var e=t.priority,i=n.offsets.popper,o={primary:function(n){var u=i[n];return i[n]<r[n]&&!t.escapeWithReference&&(u=Math.max(i[n],r[n])),l({},n,u)},secondary:function(n){var u=n==="right"?"left":"top",f=i[u];return i[n]>r[n]&&!t.escapeWithReference&&(f=Math.min(i[u],r[n]-(n==="right"?i.width:i.height))),l({},u,f)}};return e.forEach(function(n){var t=["left","top"].indexOf(n)!==-1?"primary":"secondary";i=u({},i,o[t](n))}),n.offsets.popper=i,n}function pr(n){var r=n.placement,c=r.split("-")[0],f=r.split("-")[1];if(f){var e=n.offsets,i=e.reference,o=e.popper,s=["bottom","top"].indexOf(c)!==-1,t=s?"left":"top",h=s?"width":"height",a={start:l({},t,i[t]),end:l({},t,i[t]+i[h]-o[h])};n.offsets.popper=u({},o,a[f])}return n}function wr(n){if(!ri(n.instance.modifiers,"hide","preventOverflow"))return n;var t=n.offsets.reference,i=v(n.instance.modifiers,function(n){return n.name==="preventOverflow"}).boundaries;if(t.bottom<i.top||t.left>i.right||t.top>i.bottom||t.right<i.left){if(n.hide===!0)return n;n.hide=!0;n.attributes["x-out-of-boundaries"]=""}else{if(n.hide===!1)return n;n.hide=!1;n.attributes["x-out-of-boundaries"]=!1}return n}function br(n){var r=n.placement,t=r.split("-")[0],u=n.offsets,i=u.popper,e=u.reference,f=["left","right"].indexOf(t)!==-1,s=["top","left"].indexOf(t)===-1;return i[f?"left":"top"]=e[t]-(s?i[f?"width":"height"]:0),n.placement=w(r),n.offsets.popper=o(i),n}var b,fi,ei,k,y,st,d,g;t=t&&t.hasOwnProperty("default")?t["default"]:t;var i=function(n){function r(n){return{}.toString.call(n).match(/\s([a-zA-Z]+)/)[1].toLowerCase()}function u(){return{bindType:i.end,delegateType:i.end,handle:function(t){return n(t.target).is(this)?t.handleObj.handler.apply(this,arguments):undefined}}}function f(){return typeof window!="undefined"&&window.QUnit?!1:{end:"transitionend"}}function e(i){var u=this,r=!1;n(this).one(t.TRANSITION_END,function(){r=!0});return setTimeout(function(){r||t.triggerTransitionEnd(u)},i),this}function o(){i=f();n.fn.emulateTransitionEnd=e;t.supportsTransitionEnd()&&(n.event.special[t.TRANSITION_END]=u())}function s(t){return typeof n.escapeSelector=="function"?n.escapeSelector(t).substr(1):t.replace(/(:|\.|\[|\]|,|=|@)/g,"\\$1")}var i=!1,h=1e6,t={TRANSITION_END:"bsTransitionEnd",getUID:function(n){do n+=~~(Math.random()*h);while(document.getElementById(n));return n},getSelectorFromElement:function(t){var i=t.getAttribute("data-target"),r;i&&i!=="#"||(i=t.getAttribute("href")||"");i.charAt(0)==="#"&&(i=s(i));try{return r=n(document).find(i),r.length>0?i:null}catch(u){return null}},reflow:function(n){return n.offsetHeight},triggerTransitionEnd:function(t){n(t).trigger(i.end)},supportsTransitionEnd:function(){return Boolean(i)},isElement:function(n){return(n[0]||n).nodeType},typeCheckConfig:function(n,i,u){for(var f in u)if(Object.prototype.hasOwnProperty.call(u,f)){var o=u[f],e=i[f],s=e&&t.isElement(e)?"element":r(e);if(!new RegExp(o).test(s))throw new Error(n.toUpperCase()+": "+('Option "'+f+'" provided type "'+s+'" ')+('but expected type "'+o+'".'));}}};return o(),t}(t),kr=function(n){var r="alert",h="4.0.0",u="bs.alert",e="."+u,c=n.fn[r],l=150,o={CLOSE:"close"+e,CLOSED:"closed"+e,CLICK_DATA_API:"click"+e+".data-api"},s={ALERT:"alert",FADE:"fade",SHOW:"show"},t=function(){function t(n){this._element=n}var r=t.prototype;return r.close=function(n){n=n||this._element;var t=this._getRootElement(n),i=this._triggerCloseEvent(t);i.isDefaultPrevented()||this._removeElement(t)},r.dispose=function(){n.removeData(this._element,u);this._element=null},r._getRootElement=function(t){var u=i.getSelectorFromElement(t),r=!1;return u&&(r=n(u)[0]),r||(r=n(t).closest("."+s.ALERT)[0]),r},r._triggerCloseEvent=function(t){var i=n.Event(o.CLOSE);return n(t).trigger(i),i},r._removeElement=function(t){var r=this;if(n(t).removeClass(s.SHOW),!i.supportsTransitionEnd()||!n(t).hasClass(s.FADE)){this._destroyElement(t);return}n(t).one(i.TRANSITION_END,function(n){return r._destroyElement(t,n)}).emulateTransitionEnd(l)},r._destroyElement=function(t){n(t).detach().trigger(o.CLOSED).remove()},t._jQueryInterface=function(i){return this.each(function(){var f=n(this),r=f.data(u);r||(r=new t(this),f.data(u,r));i==="close"&&r[i](this)})},t._handleDismiss=function(n){return function(t){t&&t.preventDefault();n.close(this)}},f(t,null,[{key:"VERSION",get:function(){return h}}]),t}();n(document).on(o.CLICK_DATA_API,{DISMISS:'[data-dismiss="alert"]'}.DISMISS,t._handleDismiss(new t));return n.fn[r]=t._jQueryInterface,n.fn[r].Constructor=t,n.fn[r].noConflict=function(){return n.fn[r]=c,t._jQueryInterface},t}(t),dr=function(n){var r="button",c="4.0.0",e="bs.button",o="."+e,s=".data-api",l=n.fn[r],t={ACTIVE:"active",BUTTON:"btn",FOCUS:"focus"},i={DATA_TOGGLE_CARROT:'[data-toggle^="button"]',DATA_TOGGLE:'[data-toggle="buttons"]',INPUT:"input",ACTIVE:".active",BUTTON:".btn"},h={CLICK_DATA_API:"click"+o+s,FOCUS_BLUR_DATA_API:"focus"+o+s+" "+("blur"+o+s)},u=function(){function r(n){this._element=n}var u=r.prototype;return u.toggle=function(){var f=!0,o=!0,u=n(this._element).closest(i.DATA_TOGGLE)[0],r,e;if(u&&(r=n(this._element).find(i.INPUT)[0],r)){if(r.type==="radio"&&(r.checked&&n(this._element).hasClass(t.ACTIVE)?f=!1:(e=n(u).find(i.ACTIVE)[0],e&&n(e).removeClass(t.ACTIVE))),f){if(r.hasAttribute("disabled")||u.hasAttribute("disabled")||r.classList.contains("disabled")||u.classList.contains("disabled"))return;r.checked=!n(this._element).hasClass(t.ACTIVE);n(r).trigger("change")}r.focus();o=!1}o&&this._element.setAttribute("aria-pressed",!n(this._element).hasClass(t.ACTIVE));f&&n(this._element).toggleClass(t.ACTIVE)},u.dispose=function(){n.removeData(this._element,e);this._element=null},r._jQueryInterface=function(t){return this.each(function(){var i=n(this).data(e);i||(i=new r(this),n(this).data(e,i));t==="toggle"&&i[t]()})},f(r,null,[{key:"VERSION",get:function(){return c}}]),r}();n(document).on(h.CLICK_DATA_API,i.DATA_TOGGLE_CARROT,function(r){r.preventDefault();var f=r.target;n(f).hasClass(t.BUTTON)||(f=n(f).closest(i.BUTTON));u._jQueryInterface.call(n(f),"toggle")}).on(h.FOCUS_BLUR_DATA_API,i.DATA_TOGGLE_CARROT,function(r){var u=n(r.target).closest(i.BUTTON)[0];n(u).toggleClass(t.FOCUS,/^focus(in)?$/.test(r.type))});return n.fn[r]=u._jQueryInterface,n.fn[r].Constructor=u,n.fn[r].noConflict=function(){return n.fn[r]=l,u._jQueryInterface},u}(t),gr=function(n){var h="carousel",y="4.0.0",l="bs.carousel",e="."+l,v=".data-api",p=n.fn[h],w=600,b=37,k=39,d=500,a={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0},g={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean"},u={NEXT:"next",PREV:"prev",LEFT:"left",RIGHT:"right"},o={SLIDE:"slide"+e,SLID:"slid"+e,KEYDOWN:"keydown"+e,MOUSEENTER:"mouseenter"+e,MOUSELEAVE:"mouseleave"+e,TOUCHEND:"touchend"+e,LOAD_DATA_API:"load"+e+v,CLICK_DATA_API:"click"+e+v},t={CAROUSEL:"carousel",ACTIVE:"active",SLIDE:"slide",RIGHT:"carousel-item-right",LEFT:"carousel-item-left",NEXT:"carousel-item-next",PREV:"carousel-item-prev",ITEM:"carousel-item"},s={ACTIVE:".active",ACTIVE_ITEM:".active.carousel-item",ITEM:".carousel-item",NEXT_PREV:".carousel-item-next, .carousel-item-prev",INDICATORS:".carousel-indicators",DATA_SLIDE:"[data-slide], [data-slide-to]",DATA_RIDE:'[data-ride="carousel"]'},c=function(){function v(t,i){this._items=null;this._interval=null;this._activeElement=null;this._isPaused=!1;this._isSliding=!1;this.touchTimeout=null;this._config=this._getConfig(i);this._element=n(t)[0];this._indicatorsElement=n(this._element).find(s.INDICATORS)[0];this._addEventListeners()}var c=v.prototype;return c.next=function(){this._isSliding||this._slide(u.NEXT)},c.nextWhenVisible=function(){!document.hidden&&n(this._element).is(":visible")&&n(this._element).css("visibility")!=="hidden"&&this.next()},c.prev=function(){this._isSliding||this._slide(u.PREV)},c.pause=function(t){t||(this._isPaused=!0);n(this._element).find(s.NEXT_PREV)[0]&&i.supportsTransitionEnd()&&(i.triggerTransitionEnd(this._element),this.cycle(!0));clearInterval(this._interval);this._interval=null},c.cycle=function(n){n||(this._isPaused=!1);this._interval&&(clearInterval(this._interval),this._interval=null);this._config.interval&&!this._isPaused&&(this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},c.to=function(t){var f=this,i,r;if(this._activeElement=n(this._element).find(s.ACTIVE_ITEM)[0],i=this._getItemIndex(this._activeElement),!(t>this._items.length-1)&&!(t<0)){if(this._isSliding){n(this._element).one(o.SLID,function(){return f.to(t)});return}if(i===t){this.pause();this.cycle();return}r=t>i?u.NEXT:u.PREV;this._slide(r,this._items[t])}},c.dispose=function(){n(this._element).off(e);n.removeData(this._element,l);this._items=null;this._config=null;this._element=null;this._interval=null;this._isPaused=null;this._isSliding=null;this._activeElement=null;this._indicatorsElement=null},c._getConfig=function(n){return n=r({},a,n),i.typeCheckConfig(h,n,g),n},c._addEventListeners=function(){var t=this;if(this._config.keyboard)n(this._element).on(o.KEYDOWN,function(n){return t._keydown(n)});if(this._config.pause==="hover"){n(this._element).on(o.MOUSEENTER,function(n){return t.pause(n)}).on(o.MOUSELEAVE,function(n){return t.cycle(n)});if("ontouchstart"in document.documentElement)n(this._element).on(o.TOUCHEND,function(){t.pause();t.touchTimeout&&clearTimeout(t.touchTimeout);t.touchTimeout=setTimeout(function(n){return t.cycle(n)},d+t._config.interval)})}},c._keydown=function(n){if(!/input|textarea/i.test(n.target.tagName))switch(n.which){case b:n.preventDefault();this.prev();break;case k:n.preventDefault();this.next()}},c._getItemIndex=function(t){return this._items=n.makeArray(n(t).parent().find(s.ITEM)),this._items.indexOf(t)},c._getItemByDirection=function(n,t){var e=n===u.NEXT,o=n===u.PREV,i=this._getItemIndex(t),s=this._items.length-1,h=o&&i===0||e&&i===s,f,r;return h&&!this._config.wrap?t:(f=n===u.PREV?-1:1,r=(i+f)%this._items.length,r===-1?this._items[this._items.length-1]:this._items[r])},c._triggerSlideEvent=function(t,i){var u=this._getItemIndex(t),f=this._getItemIndex(n(this._element).find(s.ACTIVE_ITEM)[0]),r=n.Event(o.SLIDE,{relatedTarget:t,direction:i,from:f,to:u});return n(this._element).trigger(r),r},c._setActiveIndicatorElement=function(i){if(this._indicatorsElement){n(this._indicatorsElement).find(s.ACTIVE).removeClass(t.ACTIVE);var r=this._indicatorsElement.children[this._getItemIndex(i)];r&&n(r).addClass(t.ACTIVE)}},c._slide=function(r,f){var y=this,h=n(this._element).find(s.ACTIVE_ITEM)[0],k=this._getItemIndex(h),e=f||h&&this._getItemByDirection(r,h),d=this._getItemIndex(e),p=Boolean(this._interval),c,l,a,b,v;if(r===u.NEXT?(c=t.LEFT,l=t.NEXT,a=u.LEFT):(c=t.RIGHT,l=t.PREV,a=u.RIGHT),e&&n(e).hasClass(t.ACTIVE)){this._isSliding=!1;return}(b=this._triggerSlideEvent(e,a),b.isDefaultPrevented())||h&&e&&(this._isSliding=!0,p&&this.pause(),this._setActiveIndicatorElement(e),v=n.Event(o.SLID,{relatedTarget:e,direction:a,from:k,to:d}),i.supportsTransitionEnd()&&n(this._element).hasClass(t.SLIDE)?(n(e).addClass(l),i.reflow(e),n(h).addClass(c),n(e).addClass(c),n(h).one(i.TRANSITION_END,function(){n(e).removeClass(c+" "+l).addClass(t.ACTIVE);n(h).removeClass(t.ACTIVE+" "+l+" "+c);y._isSliding=!1;setTimeout(function(){return n(y._element).trigger(v)},0)}).emulateTransitionEnd(w)):(n(h).removeClass(t.ACTIVE),n(e).addClass(t.ACTIVE),this._isSliding=!1,n(this._element).trigger(v)),p&&this.cycle())},v._jQueryInterface=function(t){return this.each(function(){var i=n(this).data(l),u=r({},a,n(this).data()),f;if(typeof t=="object"&&(u=r({},u,t)),f=typeof t=="string"?t:u.slide,i||(i=new v(this,u),n(this).data(l,i)),typeof t=="number")i.to(t);else if(typeof f=="string"){if(typeof i[f]=="undefined")throw new TypeError('No method named "'+f+'"');i[f]()}else u.interval&&(i.pause(),i.cycle())})},v._dataApiClickHandler=function(u){var s=i.getSelectorFromElement(this),f,o,e;s&&(f=n(s)[0],f&&n(f).hasClass(t.CAROUSEL))&&(o=r({},n(f).data(),n(this).data()),e=this.getAttribute("data-slide-to"),e&&(o.interval=!1),v._jQueryInterface.call(n(f),o),e&&n(f).data(l).to(e),u.preventDefault())},f(v,null,[{key:"VERSION",get:function(){return y}},{key:"Default",get:function(){return a}}]),v}();n(document).on(o.CLICK_DATA_API,s.DATA_SLIDE,c._dataApiClickHandler);n(window).on(o.LOAD_DATA_API,function(){n(s.DATA_RIDE).each(function(){var t=n(this);c._jQueryInterface.call(t,t.data())})});return n.fn[h]=c._jQueryInterface,n.fn[h].Constructor=c,n.fn[h].noConflict=function(){return n.fn[h]=p,c._jQueryInterface},c}(t),nu=function(n){var e="collapse",y="4.0.0",u="bs.collapse",o="."+u,p=n.fn[e],v=600,c={toggle:!0,parent:""},w={toggle:"boolean",parent:"(string|element)"},s={SHOW:"show"+o,SHOWN:"shown"+o,HIDE:"hide"+o,HIDDEN:"hidden"+o,CLICK_DATA_API:"click"+o+".data-api"},t={SHOW:"show",COLLAPSE:"collapse",COLLAPSING:"collapsing",COLLAPSED:"collapsed"},l={WIDTH:"width",HEIGHT:"height"},a={ACTIVES:".show, .collapsing",DATA_TOGGLE:'[data-toggle="collapse"]'},h=function(){function h(t,r){var e,u,o,f;for(this._isTransitioning=!1,this._element=t,this._config=this._getConfig(r),this._triggerArray=n.makeArray(n('[data-toggle="collapse"][href="#'+t.id+'"],'+('[data-toggle="collapse"][data-target="#'+t.id+'"]'))),e=n(a.DATA_TOGGLE),u=0;u<e.length;u++)o=e[u],f=i.getSelectorFromElement(o),f!==null&&n(f).filter(t).length>0&&(this._selector=f,this._triggerArray.push(o));this._parent=this._config.parent?this._getParent():null;this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray);this._config.toggle&&this.toggle()}var o=h.prototype;return o.toggle=function(){n(this._element).hasClass(t.SHOW)?this.hide():this.show()},o.show=function(){var e=this,r,o,c,f,l,y,p;if(!this._isTransitioning&&!n(this._element).hasClass(t.SHOW)&&(this._parent&&(r=n.makeArray(n(this._parent).find(a.ACTIVES).filter('[data-parent="'+this._config.parent+'"]')),r.length===0&&(r=null)),!r||(o=n(r).not(this._selector).data(u),!o||!o._isTransitioning))&&(c=n.Event(s.SHOW),n(this._element).trigger(c),!c.isDefaultPrevented())){if(r&&(h._jQueryInterface.call(n(r).not(this._selector),"hide"),o||n(r).data(u,null)),f=this._getDimension(),n(this._element).removeClass(t.COLLAPSE).addClass(t.COLLAPSING),this._element.style[f]=0,this._triggerArray.length>0&&n(this._triggerArray).removeClass(t.COLLAPSED).attr("aria-expanded",!0),this.setTransitioning(!0),l=function(){n(e._element).removeClass(t.COLLAPSING).addClass(t.COLLAPSE).addClass(t.SHOW);e._element.style[f]="";e.setTransitioning(!1);n(e._element).trigger(s.SHOWN)},!i.supportsTransitionEnd()){l();return}y=f[0].toUpperCase()+f.slice(1);p="scroll"+y;n(this._element).one(i.TRANSITION_END,l).emulateTransitionEnd(v);this._element.style[f]=this._element[p]+"px"}},o.hide=function(){var c=this,f,r,u,e,o,l,h;if(!this._isTransitioning&&n(this._element).hasClass(t.SHOW)&&(f=n.Event(s.HIDE),n(this._element).trigger(f),!f.isDefaultPrevented())){if(r=this._getDimension(),this._element.style[r]=this._element.getBoundingClientRect()[r]+"px",i.reflow(this._element),n(this._element).addClass(t.COLLAPSING).removeClass(t.COLLAPSE).removeClass(t.SHOW),this._triggerArray.length>0)for(u=0;u<this._triggerArray.length;u++)e=this._triggerArray[u],o=i.getSelectorFromElement(e),o!==null&&(l=n(o),l.hasClass(t.SHOW)||n(e).addClass(t.COLLAPSED).attr("aria-expanded",!1));if(this.setTransitioning(!0),h=function(){c.setTransitioning(!1);n(c._element).removeClass(t.COLLAPSING).addClass(t.COLLAPSE).trigger(s.HIDDEN)},this._element.style[r]="",!i.supportsTransitionEnd()){h();return}n(this._element).one(i.TRANSITION_END,h).emulateTransitionEnd(v)}},o.setTransitioning=function(n){this._isTransitioning=n},o.dispose=function(){n.removeData(this._element,u);this._config=null;this._parent=null;this._element=null;this._triggerArray=null;this._isTransitioning=null},o._getConfig=function(n){return n=r({},c,n),n.toggle=Boolean(n.toggle),i.typeCheckConfig(e,n,w),n},o._getDimension=function(){var t=n(this._element).hasClass(l.WIDTH);return t?l.WIDTH:l.HEIGHT},o._getParent=function(){var u=this,t=null,r;return i.isElement(this._config.parent)?(t=this._config.parent,typeof this._config.parent.jquery!="undefined"&&(t=this._config.parent[0])):t=n(this._config.parent)[0],r='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]',n(t).find(r).each(function(n,t){u._addAriaAndCollapsedClass(h._getTargetFromElement(t),[t])}),t},o._addAriaAndCollapsedClass=function(i,r){if(i){var u=n(i).hasClass(t.SHOW);r.length>0&&n(r).toggleClass(t.COLLAPSED,!u).attr("aria-expanded",u)}},h._getTargetFromElement=function(t){var r=i.getSelectorFromElement(t);return r?n(r)[0]:null},h._jQueryInterface=function(t){return this.each(function(){var f=n(this),i=f.data(u),e=r({},c,f.data(),typeof t=="object"&&t);if(!i&&e.toggle&&/show|hide/.test(t)&&(e.toggle=!1),i||(i=new h(this,e),f.data(u,i)),typeof t=="string"){if(typeof i[t]=="undefined")throw new TypeError('No method named "'+t+'"');i[t]()}})},f(h,null,[{key:"VERSION",get:function(){return y}},{key:"Default",get:function(){return c}}]),h}();n(document).on(s.CLICK_DATA_API,a.DATA_TOGGLE,function(t){t.currentTarget.tagName==="A"&&t.preventDefault();var r=n(this),f=i.getSelectorFromElement(this);n(f).each(function(){var t=n(this),i=t.data(u),f=i?"toggle":r.data();h._jQueryInterface.call(t,f)})});return n.fn[e]=h._jQueryInterface,n.fn[e].Constructor=h,n.fn[e].noConflict=function(){return n.fn[e]=p,h._jQueryInterface},h}(t),oi=typeof window!="undefined"&&typeof document!="undefined",si=["Edge","Trident","Firefox"],hi=0;for(b=0;b<si.length;b+=1)if(oi&&navigator.userAgent.indexOf(si[b])>=0){hi=1;break}fi=oi&&window.Promise;ei=fi?li:ai;k=undefined;y=function(){return k===undefined&&(k=navigator.appVersion.indexOf("MSIE 10")!==-1),k};var tu=function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");},iu=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),l=function(n,t,i){return t in n?Object.defineProperty(n,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[t]=i,n},u=Object.assign||function(n){for(var t,i,r=1;r<arguments.length;r++){t=arguments[r];for(i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])}return n};st=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"];d=st.slice(3);g={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};var ru={shift:{order:100,enabled:!0,fn:pr},offset:{order:200,enabled:!0,fn:vr,offset:0},preventOverflow:{order:300,enabled:!0,fn:yr,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:cr},arrow:{order:500,enabled:!0,fn:or,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:hr,behavior:"flip",padding:5,boundariesElement:"viewport"},inner:{order:700,enabled:!1,fn:br},hide:{order:800,enabled:!0,fn:wr},computeStyle:{order:850,enabled:!0,fn:er,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:ur,onLoad:fr,gpuAcceleration:undefined}},uu={placement:"bottom",eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:ru},e=function(){function n(t,i){var r=this,f=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{},e;tu(this,n);this.scheduleUpdate=function(){return requestAnimationFrame(r.update)};this.update=ei(this.update.bind(this));this.options=u({},n.Defaults,f);this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]};this.reference=t&&t.jquery?t[0]:t;this.popper=i&&i.jquery?i[0]:i;this.options.modifiers={};Object.keys(u({},n.Defaults.modifiers,f.modifiers)).forEach(function(t){r.options.modifiers[t]=u({},n.Defaults.modifiers[t]||{},f.modifiers?f.modifiers[t]:{})});this.modifiers=Object.keys(this.options.modifiers).map(function(n){return u({name:n},r.options.modifiers[n])}).sort(function(n,t){return n.order-t.order});this.modifiers.forEach(function(n){if(n.enabled&&ct(n.onLoad))n.onLoad(r.reference,r.popper,r.options,n,r.state)});this.update();e=this.options.eventsEnabled;e&&this.enableEventListeners();this.state.eventsEnabled=e}return iu(n,[{key:"update",value:function(){return ki.call(this)}},{key:"destroy",value:function(){return di.call(this)}},{key:"enableEventListeners",value:function(){return nr.call(this)}},{key:"disableEventListeners",value:function(){return ir.call(this)}}]),n}();e.Utils=(typeof window!="undefined"?window:global).PopperUtils;e.placements=st;e.Defaults=uu;var fu=function(n){var c="dropdown",d="4.0.0",a="bs.dropdown",s="."+a,y=".data-api",g=n.fn[c],v=27,p=32,k=9,w=38,b=40,nt=3,tt=new RegExp(w+"|"+b+"|"+v),u={HIDE:"hide"+s,HIDDEN:"hidden"+s,SHOW:"show"+s,SHOWN:"shown"+s,CLICK:"click"+s,CLICK_DATA_API:"click"+s+y,KEYDOWN_DATA_API:"keydown"+s+y,KEYUP_DATA_API:"keyup"+s+y},t={DISABLED:"disabled",SHOW:"show",DROPUP:"dropup",DROPRIGHT:"dropright",DROPLEFT:"dropleft",MENURIGHT:"dropdown-menu-right",MENULEFT:"dropdown-menu-left",POSITION_STATIC:"position-static"},o={DATA_TOGGLE:'[data-toggle="dropdown"]',FORM_CHILD:".dropdown form",MENU:".dropdown-menu",NAVBAR_NAV:".navbar-nav",VISIBLE_ITEMS:".dropdown-menu .dropdown-item:not(.disabled)"},l={TOP:"top-start",TOPEND:"top-end",BOTTOM:"bottom-start",BOTTOMEND:"bottom-end",RIGHT:"right-start",RIGHTEND:"right-end",LEFT:"left-start",LEFTEND:"left-end"},it={offset:0,flip:!0,boundary:"scrollParent"},rt={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)"},h=function(){function h(n,t){this._element=n;this._popper=null;this._config=this._getConfig(t);this._menu=this._getMenuElement();this._inNavbar=this._detectNavbar();this._addEventListeners()}var y=h.prototype;return y.toggle=function(){var i,c,r,f,s;if(!this._element.disabled&&!n(this._element).hasClass(t.DISABLED)&&(i=h._getParentFromElement(this._element),c=n(this._menu).hasClass(t.SHOW),h._clearMenus(),!c)&&(r={relatedTarget:this._element},f=n.Event(u.SHOW,r),n(i).trigger(f),!f.isDefaultPrevented())){if(!this._inNavbar){if(typeof e=="undefined")throw new TypeError("Bootstrap dropdown require Popper.js (https://popper.js.org)");s=this._element;n(i).hasClass(t.DROPUP)&&(n(this._menu).hasClass(t.MENULEFT)||n(this._menu).hasClass(t.MENURIGHT))&&(s=i);this._config.boundary!=="scrollParent"&&n(i).addClass(t.POSITION_STATIC);this._popper=new e(s,this._menu,this._getPopperConfig())}if("ontouchstart"in document.documentElement&&n(i).closest(o.NAVBAR_NAV).length===0)n("body").children().on("mouseover",null,n.noop);this._element.focus();this._element.setAttribute("aria-expanded",!0);n(this._menu).toggleClass(t.SHOW);n(i).toggleClass(t.SHOW).trigger(n.Event(u.SHOWN,r))}},y.dispose=function(){n.removeData(this._element,a);n(this._element).off(s);this._element=null;this._menu=null;this._popper!==null&&(this._popper.destroy(),this._popper=null)},y.update=function(){this._inNavbar=this._detectNavbar();this._popper!==null&&this._popper.scheduleUpdate()},y._addEventListeners=function(){var t=this;n(this._element).on(u.CLICK,function(n){n.preventDefault();n.stopPropagation();t.toggle()})},y._getConfig=function(t){return t=r({},this.constructor.Default,n(this._element).data(),t),i.typeCheckConfig(c,t,this.constructor.DefaultType),t},y._getMenuElement=function(){if(!this._menu){var t=h._getParentFromElement(this._element);this._menu=n(t).find(o.MENU)[0]}return this._menu},y._getPlacement=function(){var r=n(this._element).parent(),i=l.BOTTOM;return r.hasClass(t.DROPUP)?(i=l.TOP,n(this._menu).hasClass(t.MENURIGHT)&&(i=l.TOPEND)):r.hasClass(t.DROPRIGHT)?i=l.RIGHT:r.hasClass(t.DROPLEFT)?i=l.LEFT:n(this._menu).hasClass(t.MENURIGHT)&&(i=l.BOTTOMEND),i},y._detectNavbar=function(){return n(this._element).closest(".navbar").length>0},y._getPopperConfig=function(){var t=this,n={};return typeof this._config.offset=="function"?n.fn=function(n){return n.offsets=r({},n.offsets,t._config.offset(n.offsets)||{}),n}:n.offset=this._config.offset,{placement:this._getPlacement(),modifiers:{offset:n,flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}}},h._jQueryInterface=function(t){return this.each(function(){var i=n(this).data(a),r=typeof t=="object"?t:null;if(i||(i=new h(this,r),n(this).data(a,i)),typeof t=="string"){if(typeof i[t]=="undefined")throw new TypeError('No method named "'+t+'"');i[t]()}})},h._clearMenus=function(i){var f,r,c,s;if(!i||i.which!==nt&&(i.type!=="keyup"||i.which===k))for(f=n.makeArray(n(o.DATA_TOGGLE)),r=0;r<f.length;r++){var e=h._getParentFromElement(f[r]),l=n(f[r]).data(a),v={relatedTarget:f[r]};l&&(c=l._menu,n(e).hasClass(t.SHOW))&&(i&&(i.type==="click"&&/input|textarea/i.test(i.target.tagName)||i.type==="keyup"&&i.which===k)&&n.contains(e,i.target)||(s=n.Event(u.HIDE,v),n(e).trigger(s),s.isDefaultPrevented())||("ontouchstart"in document.documentElement&&n("body").children().off("mouseover",null,n.noop),f[r].setAttribute("aria-expanded","false"),n(c).removeClass(t.SHOW),n(e).removeClass(t.SHOW).trigger(n.Event(u.HIDDEN,v))))}},h._getParentFromElement=function(t){var r,u=i.getSelectorFromElement(t);return u&&(r=n(u)[0]),r||t.parentNode},h._dataApiKeydownHandler=function(i){var f,e,s,u,r;if((/input|textarea/i.test(i.target.tagName)?i.which!==p&&(i.which===v||(i.which===b||i.which===w)&&!n(i.target).closest(o.MENU).length):tt.test(i.which))&&(i.preventDefault(),i.stopPropagation(),!this.disabled&&!n(this).hasClass(t.DISABLED))){if(f=h._getParentFromElement(this),e=n(f).hasClass(t.SHOW),!e&&(i.which!==v||i.which!==p)||e&&(i.which===v||i.which===p)){i.which===v&&(s=n(f).find(o.DATA_TOGGLE)[0],n(s).trigger("focus"));n(this).trigger("click");return}(u=n(f).find(o.VISIBLE_ITEMS).get(),u.length!==0)&&(r=u.indexOf(i.target),i.which===w&&r>0&&r--,i.which===b&&r<u.length-1&&r++,r<0&&(r=0),u[r].focus())}},f(h,null,[{key:"VERSION",get:function(){return d}},{key:"Default",get:function(){return it}},{key:"DefaultType",get:function(){return rt}}]),h}();n(document).on(u.KEYDOWN_DATA_API,o.DATA_TOGGLE,h._dataApiKeydownHandler).on(u.KEYDOWN_DATA_API,o.MENU,h._dataApiKeydownHandler).on(u.CLICK_DATA_API+" "+u.KEYUP_DATA_API,h._clearMenus).on(u.CLICK_DATA_API,o.DATA_TOGGLE,function(t){t.preventDefault();t.stopPropagation();h._jQueryInterface.call(n(this),"toggle")}).on(u.CLICK_DATA_API,o.FORM_CHILD,function(n){n.stopPropagation()});return n.fn[c]=h._jQueryInterface,n.fn[c].Constructor=h,n.fn[c].noConflict=function(){return n.fn[c]=g,h._jQueryInterface},h}(t,e),eu=function(n){var s="modal",y="4.0.0",h="bs.modal",e="."+h,p=n.fn[s],l=300,a=150,w=27,v={backdrop:!0,keyboard:!0,focus:!0,show:!0},b={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},t={HIDE:"hide"+e,HIDDEN:"hidden"+e,SHOW:"show"+e,SHOWN:"shown"+e,FOCUSIN:"focusin"+e,RESIZE:"resize"+e,CLICK_DISMISS:"click.dismiss"+e,KEYDOWN_DISMISS:"keydown.dismiss"+e,MOUSEUP_DISMISS:"mouseup.dismiss"+e,MOUSEDOWN_DISMISS:"mousedown.dismiss"+e,CLICK_DATA_API:"click"+e+".data-api"},u={SCROLLBAR_MEASURER:"modal-scrollbar-measure",BACKDROP:"modal-backdrop",OPEN:"modal-open",FADE:"fade",SHOW:"show"},o={DIALOG:".modal-dialog",DATA_TOGGLE:'[data-toggle="modal"]',DATA_DISMISS:'[data-dismiss="modal"]',FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"},c=function(){function p(t,i){this._config=this._getConfig(i);this._element=t;this._dialog=n(t).find(o.DIALOG)[0];this._backdrop=null;this._isShown=!1;this._isBodyOverflowing=!1;this._ignoreBackdropClick=!1;this._originalBodyPadding=0;this._scrollbarWidth=0}var c=p.prototype;return c.toggle=function(n){return this._isShown?this.hide():this.show(n)},c.show=function(r){var f=this,e;if(!this._isTransitioning&&!this._isShown&&(i.supportsTransitionEnd()&&n(this._element).hasClass(u.FADE)&&(this._isTransitioning=!0),e=n.Event(t.SHOW,{relatedTarget:r}),n(this._element).trigger(e),!this._isShown&&!e.isDefaultPrevented())){this._isShown=!0;this._checkScrollbar();this._setScrollbar();this._adjustDialog();n(document.body).addClass(u.OPEN);this._setEscapeEvent();this._setResizeEvent();n(this._element).on(t.CLICK_DISMISS,o.DATA_DISMISS,function(n){return f.hide(n)});n(this._dialog).on(t.MOUSEDOWN_DISMISS,function(){n(f._element).one(t.MOUSEUP_DISMISS,function(t){n(t.target).is(f._element)&&(f._ignoreBackdropClick=!0)})});this._showBackdrop(function(){return f._showElement(r)})}},c.hide=function(r){var o=this,f,e;(r&&r.preventDefault(),!this._isTransitioning&&this._isShown)&&(f=n.Event(t.HIDE),n(this._element).trigger(f),this._isShown&&!f.isDefaultPrevented())&&(this._isShown=!1,e=i.supportsTransitionEnd()&&n(this._element).hasClass(u.FADE),e&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),n(document).off(t.FOCUSIN),n(this._element).removeClass(u.SHOW),n(this._element).off(t.CLICK_DISMISS),n(this._dialog).off(t.MOUSEDOWN_DISMISS),e?n(this._element).one(i.TRANSITION_END,function(n){return o._hideModal(n)}).emulateTransitionEnd(l):this._hideModal())},c.dispose=function(){n.removeData(this._element,h);n(window,document,this._element,this._backdrop).off(e);this._config=null;this._element=null;this._dialog=null;this._backdrop=null;this._isShown=null;this._isBodyOverflowing=null;this._ignoreBackdropClick=null;this._scrollbarWidth=null},c.handleUpdate=function(){this._adjustDialog()},c._getConfig=function(n){return n=r({},v,n),i.typeCheckConfig(s,n,b),n},c._showElement=function(r){var f=this,o=i.supportsTransitionEnd()&&n(this._element).hasClass(u.FADE),s,e;this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element);this._element.style.display="block";this._element.removeAttribute("aria-hidden");this._element.scrollTop=0;o&&i.reflow(this._element);n(this._element).addClass(u.SHOW);this._config.focus&&this._enforceFocus();s=n.Event(t.SHOWN,{relatedTarget:r});e=function(){f._config.focus&&f._element.focus();f._isTransitioning=!1;n(f._element).trigger(s)};o?n(this._dialog).one(i.TRANSITION_END,e).emulateTransitionEnd(l):e()},c._enforceFocus=function(){var i=this;n(document).off(t.FOCUSIN).on(t.FOCUSIN,function(t){document!==t.target&&i._element!==t.target&&n(i._element).has(t.target).length===0&&i._element.focus()})},c._setEscapeEvent=function(){var i=this;if(this._isShown&&this._config.keyboard)n(this._element).on(t.KEYDOWN_DISMISS,function(n){n.which===w&&(n.preventDefault(),i.hide())});else this._isShown||n(this._element).off(t.KEYDOWN_DISMISS)},c._setResizeEvent=function(){var i=this;if(this._isShown)n(window).on(t.RESIZE,function(n){return i.handleUpdate(n)});else n(window).off(t.RESIZE)},c._hideModal=function(){var i=this;this._element.style.display="none";this._element.setAttribute("aria-hidden",!0);this._isTransitioning=!1;this._showBackdrop(function(){n(document.body).removeClass(u.OPEN);i._resetAdjustments();i._resetScrollbar();n(i._element).trigger(t.HIDDEN)})},c._removeBackdrop=function(){this._backdrop&&(n(this._backdrop).remove(),this._backdrop=null)},c._showBackdrop=function(r){var f=this,e=n(this._element).hasClass(u.FADE)?u.FADE:"",o,s;if(this._isShown&&this._config.backdrop){o=i.supportsTransitionEnd()&&e;this._backdrop=document.createElement("div");this._backdrop.className=u.BACKDROP;e&&n(this._backdrop).addClass(e);n(this._backdrop).appendTo(document.body);n(this._element).on(t.CLICK_DISMISS,function(n){if(f._ignoreBackdropClick){f._ignoreBackdropClick=!1;return}n.target===n.currentTarget&&(f._config.backdrop==="static"?f._element.focus():f.hide())});if(o&&i.reflow(this._backdrop),n(this._backdrop).addClass(u.SHOW),!r)return;if(!o){r();return}n(this._backdrop).one(i.TRANSITION_END,r).emulateTransitionEnd(a)}else!this._isShown&&this._backdrop?(n(this._backdrop).removeClass(u.SHOW),s=function(){f._removeBackdrop();r&&r()},i.supportsTransitionEnd()&&n(this._element).hasClass(u.FADE)?n(this._backdrop).one(i.TRANSITION_END,s).emulateTransitionEnd(a):s()):r&&r()},c._adjustDialog=function(){var n=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&n&&(this._element.style.paddingLeft=this._scrollbarWidth+"px");this._isBodyOverflowing&&!n&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},c._resetAdjustments=function(){this._element.style.paddingLeft="";this._element.style.paddingRight=""},c._checkScrollbar=function(){var n=document.body.getBoundingClientRect();this._isBodyOverflowing=n.left+n.right<window.innerWidth;this._scrollbarWidth=this._getScrollbarWidth()},c._setScrollbar=function(){var t=this,i,r;this._isBodyOverflowing&&(n(o.FIXED_CONTENT).each(function(i,r){var u=n(r)[0].style.paddingRight,f=n(r).css("padding-right");n(r).data("padding-right",u).css("padding-right",parseFloat(f)+t._scrollbarWidth+"px")}),n(o.STICKY_CONTENT).each(function(i,r){var u=n(r)[0].style.marginRight,f=n(r).css("margin-right");n(r).data("margin-right",u).css("margin-right",parseFloat(f)-t._scrollbarWidth+"px")}),n(o.NAVBAR_TOGGLER).each(function(i,r){var u=n(r)[0].style.marginRight,f=n(r).css("margin-right");n(r).data("margin-right",u).css("margin-right",parseFloat(f)+t._scrollbarWidth+"px")}),i=document.body.style.paddingRight,r=n("body").css("padding-right"),n("body").data("padding-right",i).css("padding-right",parseFloat(r)+this._scrollbarWidth+"px"))},c._resetScrollbar=function(){n(o.FIXED_CONTENT).each(function(t,i){var r=n(i).data("padding-right");typeof r!="undefined"&&n(i).css("padding-right",r).removeData("padding-right")});n(o.STICKY_CONTENT+", "+o.NAVBAR_TOGGLER).each(function(t,i){var r=n(i).data("margin-right");typeof r!="undefined"&&n(i).css("margin-right",r).removeData("margin-right")});var t=n("body").data("padding-right");typeof t!="undefined"&&n("body").css("padding-right",t).removeData("padding-right")},c._getScrollbarWidth=function(){var n=document.createElement("div"),t;return n.className=u.SCROLLBAR_MEASURER,document.body.appendChild(n),t=n.getBoundingClientRect().width-n.clientWidth,document.body.removeChild(n),t},p._jQueryInterface=function(t,i){return this.each(function(){var u=n(this).data(h),f=r({},p.Default,n(this).data(),typeof t=="object"&&t);if(u||(u=new p(this,f),n(this).data(h,u)),typeof t=="string"){if(typeof u[t]=="undefined")throw new TypeError('No method named "'+t+'"');u[t](i)}else f.show&&u.show(i)})},f(p,null,[{key:"VERSION",get:function(){return y}},{key:"Default",get:function(){return v}}]),p}();n(document).on(t.CLICK_DATA_API,o.DATA_TOGGLE,function(u){var e=this,f,o=i.getSelectorFromElement(this),s,l;o&&(f=n(o)[0]);s=n(f).data(h)?"toggle":r({},n(f).data(),n(this).data());(this.tagName==="A"||this.tagName==="AREA")&&u.preventDefault();l=n(f).one(t.SHOW,function(i){if(!i.isDefaultPrevented())l.one(t.HIDDEN,function(){n(e).is(":visible")&&e.focus()})});c._jQueryInterface.call(n(f),s,this)});return n.fn[s]=c._jQueryInterface,n.fn[s].Constructor=c,n.fn[s].noConflict=function(){return n.fn[s]=p,c._jQueryInterface},c}(t),nt=function(n){var h="tooltip",y="4.0.0",c="bs.tooltip",t="."+c,p=n.fn[h],w=150,a="bs-tooltip",b=new RegExp("(^|\\s)"+a+"\\S+","g"),k={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)"},d={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},g={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="arrow"><\/div><div class="tooltip-inner"><\/div><\/div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent"},s={SHOW:"show",OUT:"out"},nt={HIDE:"hide"+t,HIDDEN:"hidden"+t,SHOW:"show"+t,SHOWN:"shown"+t,INSERTED:"inserted"+t,CLICK:"click"+t,FOCUSIN:"focusin"+t,FOCUSOUT:"focusout"+t,MOUSEENTER:"mouseenter"+t,MOUSELEAVE:"mouseleave"+t},u={FADE:"fade",SHOW:"show"},v={TOOLTIP:".tooltip",TOOLTIP_INNER:".tooltip-inner",ARROW:".arrow"},o={HOVER:"hover",FOCUS:"focus",CLICK:"click",MANUAL:"manual"},l=function(){function p(n,t){if(typeof e=="undefined")throw new TypeError("Bootstrap tooltips require Popper.js (https://popper.js.org)");this._isEnabled=!0;this._timeout=0;this._hoverState="";this._activeTrigger={};this._popper=null;this.element=n;this.config=this._getConfig(t);this.tip=null;this._setListeners()}var l=p.prototype;return l.enable=function(){this._isEnabled=!0},l.disable=function(){this._isEnabled=!1},l.toggleEnabled=function(){this._isEnabled=!this._isEnabled},l.toggle=function(t){if(this._isEnabled)if(t){var r=this.constructor.DATA_KEY,i=n(t.currentTarget).data(r);i||(i=new this.constructor(t.currentTarget,this._getDelegateConfig()),n(t.currentTarget).data(r,i));i._activeTrigger.click=!i._activeTrigger.click;i._isWithActiveTrigger()?i._enter(null,i):i._leave(null,i)}else{if(n(this.getTipElement()).hasClass(u.SHOW)){this._leave(null,this);return}this._enter(null,this)}},l.dispose=function(){clearTimeout(this._timeout);n.removeData(this.element,this.constructor.DATA_KEY);n(this.element).off(this.constructor.EVENT_KEY);n(this.element).closest(".modal").off("hide.bs.modal");this.tip&&n(this.tip).remove();this._isEnabled=null;this._timeout=null;this._hoverState=null;this._activeTrigger=null;this._popper!==null&&this._popper.destroy();this._popper=null;this.element=null;this.config=null;this.tip=null},l.show=function(){var t=this,f,l,r,o,a,h,y,c;if(n(this.element).css("display")==="none")throw new Error("Please use show on visible elements");if(f=n.Event(this.constructor.Event.SHOW),this.isWithContent()&&this._isEnabled){if(n(this.element).trigger(f),l=n.contains(this.element.ownerDocument.documentElement,this.element),f.isDefaultPrevented()||!l)return;if(r=this.getTipElement(),o=i.getUID(this.constructor.NAME),r.setAttribute("id",o),this.element.setAttribute("aria-describedby",o),this.setContent(),this.config.animation&&n(r).addClass(u.FADE),a=typeof this.config.placement=="function"?this.config.placement.call(this,r,this.element):this.config.placement,h=this._getAttachment(a),this.addAttachmentClass(h),y=this.config.container===!1?document.body:n(this.config.container),n(r).data(this.constructor.DATA_KEY,this),n.contains(this.element.ownerDocument.documentElement,this.tip)||n(r).appendTo(y),n(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new e(this.element,r,{placement:h,modifiers:{offset:{offset:this.config.offset},flip:{behavior:this.config.fallbackPlacement},arrow:{element:v.ARROW},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(n){n.originalPlacement!==n.placement&&t._handlePopperPlacementChange(n)},onUpdate:function(n){t._handlePopperPlacementChange(n)}}),n(r).addClass(u.SHOW),"ontouchstart"in document.documentElement)n("body").children().on("mouseover",null,n.noop);c=function(){t.config.animation&&t._fixTransition();var i=t._hoverState;t._hoverState=null;n(t.element).trigger(t.constructor.Event.SHOWN);i===s.OUT&&t._leave(null,t)};i.supportsTransitionEnd()&&n(this.tip).hasClass(u.FADE)?n(this.tip).one(i.TRANSITION_END,c).emulateTransitionEnd(p._TRANSITION_DURATION):c()}},l.hide=function(t){var r=this,f=this.getTipElement(),e=n.Event(this.constructor.Event.HIDE),h=function(){r._hoverState!==s.SHOW&&f.parentNode&&f.parentNode.removeChild(f);r._cleanTipClass();r.element.removeAttribute("aria-describedby");n(r.element).trigger(r.constructor.Event.HIDDEN);r._popper!==null&&r._popper.destroy();t&&t()};(n(this.element).trigger(e),e.isDefaultPrevented())||(n(f).removeClass(u.SHOW),"ontouchstart"in document.documentElement&&n("body").children().off("mouseover",null,n.noop),this._activeTrigger[o.CLICK]=!1,this._activeTrigger[o.FOCUS]=!1,this._activeTrigger[o.HOVER]=!1,i.supportsTransitionEnd()&&n(this.tip).hasClass(u.FADE)?n(f).one(i.TRANSITION_END,h).emulateTransitionEnd(w):h(),this._hoverState="")},l.update=function(){this._popper!==null&&this._popper.scheduleUpdate()},l.isWithContent=function(){return Boolean(this.getTitle())},l.addAttachmentClass=function(t){n(this.getTipElement()).addClass(a+"-"+t)},l.getTipElement=function(){return this.tip=this.tip||n(this.config.template)[0],this.tip},l.setContent=function(){var t=n(this.getTipElement());this.setElementContent(t.find(v.TOOLTIP_INNER),this.getTitle());t.removeClass(u.FADE+" "+u.SHOW)},l.setElementContent=function(t,i){var r=this.config.html;typeof i=="object"&&(i.nodeType||i.jquery)?r?n(i).parent().is(t)||t.empty().append(i):t.text(n(i).text()):t[r?"html":"text"](i)},l.getTitle=function(){var n=this.element.getAttribute("data-original-title");return n||(n=typeof this.config.title=="function"?this.config.title.call(this.element):this.config.title),n},l._getAttachment=function(n){return d[n.toUpperCase()]},l._setListeners=function(){var t=this,i=this.config.trigger.split(" ");i.forEach(function(i){if(i==="click")n(t.element).on(t.constructor.Event.CLICK,t.config.selector,function(n){return t.toggle(n)});else if(i!==o.MANUAL){var r=i===o.HOVER?t.constructor.Event.MOUSEENTER:t.constructor.Event.FOCUSIN,u=i===o.HOVER?t.constructor.Event.MOUSELEAVE:t.constructor.Event.FOCUSOUT;n(t.element).on(r,t.config.selector,function(n){return t._enter(n)}).on(u,t.config.selector,function(n){return t._leave(n)})}n(t.element).closest(".modal").on("hide.bs.modal",function(){return t.hide()})});this.config.selector?this.config=r({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},l._fixTitle=function(){var n=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||n!=="string")&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},l._enter=function(t,i){var r=this.constructor.DATA_KEY;if(i=i||n(t.currentTarget).data(r),i||(i=new this.constructor(t.currentTarget,this._getDelegateConfig()),n(t.currentTarget).data(r,i)),t&&(i._activeTrigger[t.type==="focusin"?o.FOCUS:o.HOVER]=!0),n(i.getTipElement()).hasClass(u.SHOW)||i._hoverState===s.SHOW){i._hoverState=s.SHOW;return}if(clearTimeout(i._timeout),i._hoverState=s.SHOW,!i.config.delay||!i.config.delay.show){i.show();return}i._timeout=setTimeout(function(){i._hoverState===s.SHOW&&i.show()},i.config.delay.show)},l._leave=function(t,i){var r=this.constructor.DATA_KEY;if(i=i||n(t.currentTarget).data(r),i||(i=new this.constructor(t.currentTarget,this._getDelegateConfig()),n(t.currentTarget).data(r,i)),t&&(i._activeTrigger[t.type==="focusout"?o.FOCUS:o.HOVER]=!1),!i._isWithActiveTrigger()){if(clearTimeout(i._timeout),i._hoverState=s.OUT,!i.config.delay||!i.config.delay.hide){i.hide();return}i._timeout=setTimeout(function(){i._hoverState===s.OUT&&i.hide()},i.config.delay.hide)}},l._isWithActiveTrigger=function(){for(var n in this._activeTrigger)if(this._activeTrigger[n])return!0;return!1},l._getConfig=function(t){return t=r({},this.constructor.Default,n(this.element).data(),t),typeof t.delay=="number"&&(t.delay={show:t.delay,hide:t.delay}),typeof t.title=="number"&&(t.title=t.title.toString()),typeof t.content=="number"&&(t.content=t.content.toString()),i.typeCheckConfig(h,t,this.constructor.DefaultType),t},l._getDelegateConfig=function(){var t={},n;if(this.config)for(n in this.config)this.constructor.Default[n]!==this.config[n]&&(t[n]=this.config[n]);return t},l._cleanTipClass=function(){var i=n(this.getTipElement()),t=i.attr("class").match(b);t!==null&&t.length>0&&i.removeClass(t.join(""))},l._handlePopperPlacementChange=function(n){this._cleanTipClass();this.addAttachmentClass(this._getAttachment(n.placement))},l._fixTransition=function(){var t=this.getTipElement(),i=this.config.animation;t.getAttribute("x-placement")===null&&(n(t).removeClass(u.FADE),this.config.animation=!1,this.hide(),this.show(),this.config.animation=i)},p._jQueryInterface=function(t){return this.each(function(){var i=n(this).data(c),r=typeof t=="object"&&t;if((i||!/dispose|hide/.test(t))&&(i||(i=new p(this,r),n(this).data(c,i)),typeof t=="string")){if(typeof i[t]=="undefined")throw new TypeError('No method named "'+t+'"');i[t]()}})},f(p,null,[{key:"VERSION",get:function(){return y}},{key:"Default",get:function(){return g}},{key:"NAME",get:function(){return h}},{key:"DATA_KEY",get:function(){return c}},{key:"Event",get:function(){return nt}},{key:"EVENT_KEY",get:function(){return t}},{key:"DefaultType",get:function(){return k}}]),p}();return n.fn[h]=l._jQueryInterface,n.fn[h].Constructor=l,n.fn[h].noConflict=function(){return n.fn[h]=p,l._jQueryInterface},l}(t,e),ou=function(n){var i="popover",c="4.0.0",u="bs.popover",t="."+u,l=n.fn[i],o="bs-popover",a=new RegExp("(^|\\s)"+o+"\\S+","g"),v=r({},nt.Default,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"><\/div><h3 class="popover-header"><\/h3><div class="popover-body"><\/div><\/div>'}),y=r({},nt.DefaultType,{content:"(string|element|function)"}),s={FADE:"fade",SHOW:"show"},h={TITLE:".popover-header",CONTENT:".popover-body"},p={HIDE:"hide"+t,HIDDEN:"hidden"+t,SHOW:"show"+t,SHOWN:"shown"+t,INSERTED:"inserted"+t,CLICK:"click"+t,FOCUSIN:"focusin"+t,FOCUSOUT:"focusout"+t,MOUSEENTER:"mouseenter"+t,MOUSELEAVE:"mouseleave"+t},e=function(r){function e(){return r.apply(this,arguments)||this}ci(e,r);var l=e.prototype;return l.isWithContent=function(){return this.getTitle()||this._getContent()},l.addAttachmentClass=function(t){n(this.getTipElement()).addClass(o+"-"+t)},l.getTipElement=function(){return this.tip=this.tip||n(this.config.template)[0],this.tip},l.setContent=function(){var i=n(this.getTipElement()),t;this.setElementContent(i.find(h.TITLE),this.getTitle());t=this._getContent();typeof t=="function"&&(t=t.call(this.element));this.setElementContent(i.find(h.CONTENT),t);i.removeClass(s.FADE+" "+s.SHOW)},l._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},l._cleanTipClass=function(){var i=n(this.getTipElement()),t=i.attr("class").match(a);t!==null&&t.length>0&&i.removeClass(t.join(""))},e._jQueryInterface=function(t){return this.each(function(){var i=n(this).data(u),r=typeof t=="object"?t:null;if((i||!/destroy|hide/.test(t))&&(i||(i=new e(this,r),n(this).data(u,i)),typeof t=="string")){if(typeof i[t]=="undefined")throw new TypeError('No method named "'+t+'"');i[t]()}})},f(e,null,[{key:"VERSION",get:function(){return c}},{key:"Default",get:function(){return v}},{key:"NAME",get:function(){return i}},{key:"DATA_KEY",get:function(){return u}},{key:"Event",get:function(){return p}},{key:"EVENT_KEY",get:function(){return t}},{key:"DefaultType",get:function(){return y}}]),e}(nt);return n.fn[i]=e._jQueryInterface,n.fn[i].Constructor=e,n.fn[i].noConflict=function(){return n.fn[i]=l,e._jQueryInterface},e}(t),su=function(n){var u="scrollspy",v="4.0.0",s="bs.scrollspy",h="."+s,y=n.fn[u],a={offset:10,method:"auto",target:""},p={offset:"number",method:"string",target:"(string|element)"},c={ACTIVATE:"activate"+h,SCROLL:"scroll"+h,LOAD_DATA_API:"load"+h+".data-api"},e={DROPDOWN_ITEM:"dropdown-item",DROPDOWN_MENU:"dropdown-menu",ACTIVE:"active"},t={DATA_SPY:'[data-spy="scroll"]',ACTIVE:".active",NAV_LIST_GROUP:".nav, .list-group",NAV_LINKS:".nav-link",NAV_ITEMS:".nav-item",LIST_ITEMS:".list-group-item",DROPDOWN:".dropdown",DROPDOWN_ITEMS:".dropdown-item",DROPDOWN_TOGGLE:".dropdown-toggle"},l={OFFSET:"offset",POSITION:"position"},o=function(){function y(i,r){var u=this;this._element=i;this._scrollElement=i.tagName==="BODY"?window:i;this._config=this._getConfig(r);this._selector=this._config.target+" "+t.NAV_LINKS+","+(this._config.target+" "+t.LIST_ITEMS+",")+(this._config.target+" "+t.DROPDOWN_ITEMS);this._offsets=[];this._targets=[];this._activeTarget=null;this._scrollHeight=0;n(this._scrollElement).on(c.SCROLL,function(n){return u._process(n)});this.refresh();this._process()}var o=y.prototype;return o.refresh=function(){var t=this,f=this._scrollElement===this._scrollElement.window?l.OFFSET:l.POSITION,r=this._config.method==="auto"?f:this._config.method,e=r===l.POSITION?this._getScrollTop():0,u;this._offsets=[];this._targets=[];this._scrollHeight=this._getScrollHeight();u=n.makeArray(n(this._selector));u.map(function(t){var u,f=i.getSelectorFromElement(t),o;return(f&&(u=n(f)[0]),u&&(o=u.getBoundingClientRect(),o.width||o.height))?[n(u)[r]().top+e,f]:null}).filter(function(n){return n}).sort(function(n,t){return n[0]-t[0]}).forEach(function(n){t._offsets.push(n[0]);t._targets.push(n[1])})},o.dispose=function(){n.removeData(this._element,s);n(this._scrollElement).off(h);this._element=null;this._scrollElement=null;this._config=null;this._selector=null;this._offsets=null;this._targets=null;this._activeTarget=null;this._scrollHeight=null},o._getConfig=function(t){if(t=r({},a,t),typeof t.target!="string"){var f=n(t.target).attr("id");f||(f=i.getUID(u),n(t.target).attr("id",f));t.target="#"+f}return i.typeCheckConfig(u,t,p),t},o._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},o._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},o._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},o._process=function(){var t=this._getScrollTop()+this._config.offset,r=this._getScrollHeight(),f=this._config.offset+r-this._getOffsetHeight(),i,n,u;if(this._scrollHeight!==r&&this.refresh(),t>=f){i=this._targets[this._targets.length-1];this._activeTarget!==i&&this._activate(i);return}if(this._activeTarget&&t<this._offsets[0]&&this._offsets[0]>0){this._activeTarget=null;this._clear();return}for(n=this._offsets.length;n--;)u=this._activeTarget!==this._targets[n]&&t>=this._offsets[n]&&(typeof this._offsets[n+1]=="undefined"||t<this._offsets[n+1]),u&&this._activate(this._targets[n])},o._activate=function(i){var u,r;this._activeTarget=i;this._clear();u=this._selector.split(",");u=u.map(function(n){return n+'[data-target="'+i+'"],'+(n+'[href="'+i+'"]')});r=n(u.join(","));r.hasClass(e.DROPDOWN_ITEM)?(r.closest(t.DROPDOWN).find(t.DROPDOWN_TOGGLE).addClass(e.ACTIVE),r.addClass(e.ACTIVE)):(r.addClass(e.ACTIVE),r.parents(t.NAV_LIST_GROUP).prev(t.NAV_LINKS+", "+t.LIST_ITEMS).addClass(e.ACTIVE),r.parents(t.NAV_LIST_GROUP).prev(t.NAV_ITEMS).children(t.NAV_LINKS).addClass(e.ACTIVE));n(this._scrollElement).trigger(c.ACTIVATE,{relatedTarget:i})},o._clear=function(){n(this._selector).filter(t.ACTIVE).removeClass(e.ACTIVE)},y._jQueryInterface=function(t){return this.each(function(){var i=n(this).data(s),r=typeof t=="object"&&t;if(i||(i=new y(this,r),n(this).data(s,i)),typeof t=="string"){if(typeof i[t]=="undefined")throw new TypeError('No method named "'+t+'"');i[t]()}})},f(y,null,[{key:"VERSION",get:function(){return v}},{key:"Default",get:function(){return a}}]),y}();n(window).on(c.LOAD_DATA_API,function(){for(var i,r=n.makeArray(n(t.DATA_SPY)),u=r.length;u--;)i=n(r[u]),o._jQueryInterface.call(i,i.data())});return n.fn[u]=o._jQueryInterface,n.fn[u].Constructor=o,n.fn[u].noConflict=function(){return n.fn[u]=y,o._jQueryInterface},o}(t),hu=function(n){var u="tab",c="4.0.0",h="bs.tab",e="."+h,l=n.fn[u],a=150,o={HIDE:"hide"+e,HIDDEN:"hidden"+e,SHOW:"show"+e,SHOWN:"shown"+e,CLICK_DATA_API:"click"+e+".data-api"},t={DROPDOWN_MENU:"dropdown-menu",ACTIVE:"active",DISABLED:"disabled",FADE:"fade",SHOW:"show"},r={DROPDOWN:".dropdown",NAV_LIST_GROUP:".nav, .list-group",ACTIVE:".active",ACTIVE_UL:"> li > .active",DATA_TOGGLE:'[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',DROPDOWN_TOGGLE:".dropdown-toggle",DROPDOWN_ACTIVE_CHILD:"> .dropdown-menu .active"},s=function(){function u(n){this._element=n}var e=u.prototype;return e.show=function(){var a=this,e,u,f,s,v,h,c,l;this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&n(this._element).hasClass(t.ACTIVE)||n(this._element).hasClass(t.DISABLED)||(f=n(this._element).closest(r.NAV_LIST_GROUP)[0],s=i.getSelectorFromElement(this._element),f&&(v=f.nodeName==="UL"?r.ACTIVE_UL:r.ACTIVE,u=n.makeArray(n(f).find(v)),u=u[u.length-1]),h=n.Event(o.HIDE,{relatedTarget:this._element}),c=n.Event(o.SHOW,{relatedTarget:u}),u&&n(u).trigger(h),n(this._element).trigger(c),c.isDefaultPrevented()||h.isDefaultPrevented())||(s&&(e=n(s)[0]),this._activate(this._element,f),l=function(){var t=n.Event(o.HIDDEN,{relatedTarget:a._element}),i=n.Event(o.SHOWN,{relatedTarget:u});n(u).trigger(t);n(a._element).trigger(i)},e?this._activate(e,e.parentNode,l):l())},e.dispose=function(){n.removeData(this._element,h);this._element=null},e._activate=function(u,f,e){var h=this,c=f.nodeName==="UL"?n(f).find(r.ACTIVE_UL):n(f).children(r.ACTIVE),o=c[0],l=e&&i.supportsTransitionEnd()&&o&&n(o).hasClass(t.FADE),s=function(){return h._transitionComplete(u,o,e)};o&&l?n(o).one(i.TRANSITION_END,s).emulateTransitionEnd(a):s()},e._transitionComplete=function(u,f,e){var o,s;f&&(n(f).removeClass(t.SHOW+" "+t.ACTIVE),o=n(f.parentNode).find(r.DROPDOWN_ACTIVE_CHILD)[0],o&&n(o).removeClass(t.ACTIVE),f.getAttribute("role")==="tab"&&f.setAttribute("aria-selected",!1));n(u).addClass(t.ACTIVE);u.getAttribute("role")==="tab"&&u.setAttribute("aria-selected",!0);i.reflow(u);n(u).addClass(t.SHOW);u.parentNode&&n(u.parentNode).hasClass(t.DROPDOWN_MENU)&&(s=n(u).closest(r.DROPDOWN)[0],s&&n(s).find(r.DROPDOWN_TOGGLE).addClass(t.ACTIVE),u.setAttribute("aria-expanded",!0));e&&e()},u._jQueryInterface=function(t){return this.each(function(){var r=n(this),i=r.data(h);if(i||(i=new u(this),r.data(h,i)),typeof t=="string"){if(typeof i[t]=="undefined")throw new TypeError('No method named "'+t+'"');i[t]()}})},f(u,null,[{key:"VERSION",get:function(){return c}}]),u}();n(document).on(o.CLICK_DATA_API,r.DATA_TOGGLE,function(t){t.preventDefault();s._jQueryInterface.call(n(this),"show")});return n.fn[u]=s._jQueryInterface,n.fn[u].Constructor=s,n.fn[u].noConflict=function(){return n.fn[u]=l,s._jQueryInterface},s}(t);(function(n){if(typeof n=="undefined")throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var t=n.fn.jquery.split(" ")[0].split("."),i=9;if(t[0]<2&&t[1]<i||t[0]===1&&t[1]===i&&t[2]<1||t[0]>=4)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0");})(t);n.Util=i;n.Alert=kr;n.Button=dr;n.Carousel=gr;n.Collapse=nu;n.Dropdown=fu;n.Modal=eu;n.Popover=ou;n.Scrollspy=su;n.Tab=hu;n.Tooltip=nt;Object.defineProperty(n,"__esModule",{value:!0})}),!function(n,t,i){typeof module!="undefined"&&module.exports?module.exports=i():typeof define=="function"&&define.amd?define(t,i):n[t]=i()}(this,"bowser",function(){function i(t){function r(n){var i=t.match(n);return i&&i.length>1&&i[1]||""}function k(n){var i=t.match(n);return i&&i.length>1&&i[2]||""}var e=r(/(ipod|iphone|ipad)/i).toLowerCase(),d=/like android/i.test(t),o=!d&&/android/i.test(t),c=/nexus\s*[0-6]\s*/i.test(t),g=!c&&/nexus\s*[0-9]+/i.test(t),nt=/CrOS/.test(t),l=/silk/i.test(t),a=/sailfish/i.test(t),v=/tizen/i.test(t),y=/(web|hpw)os/i.test(t),p=/windows phone/i.test(t),ft=/SamsungBrowser/i.test(t),tt=!p&&/windows/i.test(t),it=!e&&!l&&/macintosh/i.test(t),rt=!o&&!a&&!v&&!y&&/linux/i.test(t),s=r(/edge\/(\d+(\.\d+)?)/i),u=r(/version\/(\d+(\.\d+)?)/i),w=/tablet/i.test(t),b=!w&&/[^-]mobi/i.test(t),ut=/xbox/i.test(t),i,f,h;return/opera/i.test(t)?i={name:"Opera",opera:n,version:u||r(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr|opios/i.test(t)?i={name:"Opera",opera:n,version:r(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||u}:/SamsungBrowser/i.test(t)?i={name:"Samsung Internet for Android",samsungBrowser:n,version:u||r(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/coast/i.test(t)?i={name:"Opera Coast",coast:n,version:u||r(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/yabrowser/i.test(t)?i={name:"Yandex Browser",yandexbrowser:n,version:u||r(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(t)?i={name:"UC Browser",ucbrowser:n,version:r(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(t)?i={name:"Maxthon",maxthon:n,version:r(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(t)?i={name:"Epiphany",epiphany:n,version:r(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(t)?i={name:"Puffin",puffin:n,version:r(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(t)?i={name:"Sleipnir",sleipnir:n,version:r(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(t)?i={name:"K-Meleon",kMeleon:n,version:r(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:p?(i={name:"Windows Phone",windowsphone:n},s?(i.msedge=n,i.version=s):(i.msie=n,i.version=r(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(t)?i={name:"Internet Explorer",msie:n,version:r(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:nt?i={name:"Chrome",chromeos:n,chromeBook:n,chrome:n,version:r(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/chrome.+? edge/i.test(t)?i={name:"Microsoft Edge",msedge:n,version:s}:/vivaldi/i.test(t)?i={name:"Vivaldi",vivaldi:n,version:r(/vivaldi\/(\d+(\.\d+)?)/i)||u}:a?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|fxios/i.test(t)?(i={name:"Firefox",firefox:n,version:r(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(t)&&(i.firefoxos=n)):l?i={name:"Amazon Silk",silk:n,version:r(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(t)?i={name:"PhantomJS",phantom:n,version:r(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(t)?i={name:"SlimerJS",slimer:n,version:r(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(t)||/rim\stablet/i.test(t)?i={name:"BlackBerry",blackberry:n,version:u||r(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:y?(i={name:"WebOS",webos:n,version:u||r(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(t)&&(i.touchpad=n)):/bada/i.test(t)?i={name:"Bada",bada:n,version:r(/dolfin\/(\d+(\.\d+)?)/i)}:v?i={name:"Tizen",tizen:n,version:r(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||u}:/qupzilla/i.test(t)?i={name:"QupZilla",qupzilla:n,version:r(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||u}:/chromium/i.test(t)?i={name:"Chromium",chromium:n,version:r(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||u}:/chrome|crios|crmo/i.test(t)?i={name:"Chrome",chrome:n,version:r(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:o?i={name:"Android",version:u}:/safari|applewebkit/i.test(t)?(i={name:"Safari",safari:n},u&&(i.version=u)):e?(i={name:e=="iphone"?"iPhone":e=="ipad"?"iPad":"iPod"},u&&(i.version=u)):i=/googlebot/i.test(t)?{name:"Googlebot",googlebot:n,version:r(/googlebot\/(\d+(\.\d+))/i)||u}:{name:r(/^(.*)\/(.*) /),version:k(/^(.*)\/(.*) /)},!i.msedge&&/(apple)?webkit/i.test(t)?(/(apple)?webkit\/537\.36/i.test(t)?(i.name=i.name||"Blink",i.blink=n):(i.name=i.name||"Webkit",i.webkit=n),!i.version&&u&&(i.version=u)):!i.opera&&/gecko\//i.test(t)&&(i.name=i.name||"Gecko",i.gecko=n,i.version=i.version||r(/gecko\/(\d+(\.\d+)?)/i)),i.windowsphone||i.msedge||!(o||i.silk)?i.windowsphone||i.msedge||!e?it?i.mac=n:ut?i.xbox=n:tt?i.windows=n:rt&&(i.linux=n):(i[e]=n,i.ios=n):i.android=n,f="",i.windowsphone?f=r(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):e?(f=r(/os (\d+([_\s]\d+)*) like mac os x/i),f=f.replace(/[_\s]/g,".")):o?f=r(/android[ \/-](\d+(\.\d+)*)/i):i.webos?f=r(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):i.blackberry?f=r(/rim\stablet\sos\s(\d+(\.\d+)*)/i):i.bada?f=r(/bada\/(\d+(\.\d+)*)/i):i.tizen&&(f=r(/tizen[\/\s](\d+(\.\d+)*)/i)),f&&(i.osversion=f),h=f.split(".")[0],w||g||e=="ipad"||o&&(h==3||h>=4&&!b)||i.silk?i.tablet=n:(b||e=="iphone"||e=="ipod"||o||c||i.blackberry||i.webos||i.bada)&&(i.mobile=n),i.msedge||i.msie&&i.version>=10||i.yandexbrowser&&i.version>=15||i.vivaldi&&i.version>=1||i.chrome&&i.version>=20||i.samsungBrowser&&i.version>=4||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.blackberry&&i.version>=10.1||i.chromium&&i.version>=20?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.chromium&&i.version<20?i.c=n:i.x=n,i}function r(n){return n.split(".").length}function u(n,t){var r=[],i;if(Array.prototype.map)return Array.prototype.map.call(n,t);for(i=0;i<n.length;i++)r.push(t(n[i]));return r}function f(n){for(var t=Math.max(r(n[0]),r(n[1])),i=u(n,function(n){var i=t-r(n);return n=n+new Array(i+1).join(".0"),u(n.split("."),function(n){return new Array(20-n.length).join("0")+n}).reverse()});--t>=0;){if(i[0][t]>i[1][t])return 1;if(i[0][t]===i[1][t]){if(t===0)return 0}else return-1}}function e(n,r,u){var o=t,s,e;typeof r=="string"&&(u=r,r=void 0);r===void 0&&(r=!1);u&&(o=i(u));s=""+o.version;for(e in n)if(n.hasOwnProperty(e)&&o[e]){if(typeof n[e]!="string")throw new Error("Browser version in the minVersion map should be a string: "+e+": "+String(n));return f([s,n[e]])<0}return r}function o(n,t,i){return!e(n,t,i)}var n=!0,t=i(typeof navigator!="undefined"?navigator.userAgent||"":"");return t.test=function(n){for(var i,r=0;r<n.length;++r)if(i=n[r],typeof i=="string"&&i in t)return!0;return!1},t.isUnsupportedBrowser=e,t.compareVersions=f,t.check=o,t._detect=i,t}),function(n,t){"use strict";var i={is_ie:/(msie|trident)/i.test(navigator.userAgent),is_safari:/safari/i.test(navigator.userAgent),env:"production",xml_decl:'<?xml version="1.0" encoding="utf-8"?>',namespace:'xmlns:d="defiant-namespace"',tabsize:4,render:function(n,t){var h=new XSLTProcessor,f=document.createElement("span"),i={match:"/"},e,o,s,r,u,c;switch(typeof n){case"object":this.extend(i,n);i.data||(i.data=t);break;case"string":i.template=n;i.data=t;break;default:throw"error";}if(i.data=JSON.toXML(i.data),e='//xsl:template[@name="'+i.template+'"]',this.xsl_template||this.gatherTemplates(),i.sorter&&(r=this.node.selectSingleNode(this.xsl_template,e+"//xsl:for-each//xsl:sort"),r&&(i.sorter.order&&r.setAttribute("order",i.sorter.order),i.sorter.select&&r.setAttribute("select",i.sorter.select),r.setAttribute("data-type",i.sorter.type||"text"))),s=this.node.selectSingleNode(this.xsl_template,e),s.setAttribute("match",i.match),h.importStylesheet(this.xsl_template),f.appendChild(h.transformToFragment(i.data,document)),s.removeAttribute("match"),this.is_safari)for(o=f.getElementsByTagName("script"),u=0,c=o.length;u<c;u++)o[u].defer=!0;return f.innerHTML},gatherTemplates:function(){for(var t=document.getElementsByTagName("script"),i="",n=0,r=t.length;n<r;n++)t[n].type==="defiant/xsl-template"&&(i+=t[n].innerHTML);this.xsl_template=this.xmlFromString('<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" '+this.namespace+">"+i.replace(/defiant:(\w+)/g,"$1")+"<\/xsl:stylesheet>")},getSnapshot:function(n,t){return JSON.toXML(n,t||!0)},xmlFromString:function(n){var i,t;return n=n.replace(/>\s{1,}</g,"><"),n.trim().match(/<\?xml/)===null&&(n=this.xml_decl+n),typeof ActiveXObject!="undefined"?(t=new ActiveXObject("Msxml2.DOMDocument"),t.loadXML(n),n.indexOf("xsl:stylesheet")===-1&&t.setProperty("SelectionLanguage","XPath")):(i=new DOMParser,t=i.parseFromString(n,"text/xml")),t},extend:function(n,t){for(var i in t)n[i]&&typeof t[i]=="object"?this.extend(n[i],t[i]):n[i]=t[i];return n},node:{}};n.Defiant=t.exports=i}(typeof window!="undefined"?window:{},typeof module!="undefined"?module:{}),typeof XSLTProcessor=="undefined")XSLTProcessor=function(){},XSLTProcessor.prototype={importStylesheet:function(n){this.xsldoc=n},transformToFragment:function(n){var i=n.transformNode(this.xsldoc),t=document.createElement("span");return t.innerHTML=i,t}};else if(typeof XSLTProcessor!="function"&&!XSLTProcessor)throw"XSLTProcessor transformNode not implemented";String.prototype.fill||(String.prototype.fill=function(n,t){var i=this;for(t=t||" ";i.length<n;i+=t);return i});String.prototype.trim||(String.prototype.trim=function(){return this.replace(/^\s+|\s+$/gm,"")});String.prototype.xTransform||(String.prototype.xTransform=function(){var n=this;return this.indexOf("translate(")===-1&&(n=this.replace(/contains\(([^,]+),([^\\)]+)\)/g,function(n,t,i){var r="abcdefghijklmnopqrstuvwxyz";return"contains(translate("+t+', "'+r.toUpperCase()+'", "'+r+'"),'+i.toLowerCase()+")"})),n.toString()});typeof JSON=="undefined"&&(window.JSON={parse:function(n){return eval("("+n+")")},stringify:function(n){var t,i,r;if(n instanceof Object){if(t="",n.constructor===Array){for(i=0;i<n.length;t+=this.stringify(n[i])+",",i++);return"["+t.substr(0,t.length-1)+"]"}if(n.toString!==Object.prototype.toString)return'"'+n.toString().replace(/"/g,"\\$&")+'"';for(r in n)t+='"'+r.replace(/"/g,"\\$&")+'":'+this.stringify(n[r])+",";return"{"+t.substr(0,t.length-1)+"}"}return typeof n=="string"?'"'+n.replace(/"/g,"\\$&")+'"':String(n)}});JSON.toXML||(JSON.toXML=function(n,t){"use strict";var r={map:[],rx_validate_name:/^(?!xml)[a-z_][\w\d.:]*$/i,rx_node:/<(.+?)( .*?)>/,rx_constructor:/<(.+?)( d:contr=".*?")>/,rx_namespace:/ xmlns\:d="defiant\-namespace"/,rx_data:/(<.+?>)(.*?)(<\/d:data>)/i,rx_function:/function (\w+)/i,namespace:'xmlns:d="defiant-namespace"',to_xml_str:function(n){return{str:this.hash_to_xml(null,n),map:this.map}},hash_to_xml:function(n,t,i){var w=t.constructor===Array,f=this,s=[],e=[],a,r,c,v,u,l,h,o,y,p=function(t,a){if(r=a[t],(r===null||r===undefined||r.toString()==="NaN")&&(r=null),v=t.slice(0,1)==="@",u=i?n:t,u==+u&&a.constructor!==Object&&(u="d:item"),r===null?(l=null,h=!1):(l=r.constructor,h=l.toString().match(f.rx_function)[1]),v)e.push(u.slice(1)+'="'+f.escape_xml(r)+'"'),h!=="String"&&e.push("d:"+u.slice(1)+'="'+h+'"');else if(r===null)s.push(f.scalar_to_xml(u,r));else switch(l){case Function:throw"JSON data should not contain functions. Please check your structure.";case Object:s.push(f.hash_to_xml(u,r));break;case Array:if(t===u){if(c=r.constructor===Array,c)for(o=r.length;o--;)r[o]!==null&&r[o]&&r[o].constructor!==Array||(c=!0),c||r[o].constructor!==Object||(c=!0);s.push(f.scalar_to_xml(u,r,c));break}case String:if(typeof r=="string"&&(r=r.toString().replace(/\&/g,"&amp;").replace(/\r|\n/g,"&#13;")),u==="#text"){f.map.push(a);e.push('d:mi="'+f.map.length+'"');e.push('d:constr="'+h+'"');s.push(f.escape_xml(r));break}case Number:case Boolean:if(u==="#text"&&h!=="String"){f.map.push(a);e.push('d:mi="'+f.map.length+'"');e.push('d:constr="'+h+'"');s.push(f.escape_xml(r));break}s.push(f.scalar_to_xml(u,r))}};if(t.constructor===Array)for(o=0,y=t.length;o<y;o++)p(o.toString(),t);else for(a in t)p(a,t);return(n||(n="d:data",e.push(this.namespace),w&&e.push('d:constr="Array"')),n.match(this.rx_validate_name)===null&&(e.push('d:name="'+n+'"'),n="d:name"),i)?s.join(""):(this.map.push(t),e.push('d:mi="'+this.map.length+'"'),"<"+n+(e.length?" "+e.join(" "):"")+(s.length?">"+s.join("")+"<\/"+n+">":"/>"))},scalar_to_xml:function(n,t,i){var e="",r,o,s,u,f;return(n.match(this.rx_validate_name)===null&&(e+=' d:name="'+n+'"',n="d:name",i=!1),(t===null||t.toString()==="NaN")&&(t=null),t===null)?"<"+n+' d:constr="null"/>':t.length===1&&t.constructor===Array&&!t[0]?"<"+n+' d:constr="null" d:type="ArrayItem"/>':t.length===1&&t[0].constructor===Object?(r=this.hash_to_xml(!1,t[0]),u=r.match(this.rx_node),f=r.match(this.rx_constructor),u=u!==null?u[2].replace(this.rx_namespace,"").replace(/>/,"").replace(/"\/$/,'"'):"",f=f!==null?f[2]:"",r=r.match(this.rx_data),r=r!==null?r[2]:"","<"+n+u+" "+f+' d:type="ArrayItem">'+r+"<\/"+n+">"):t.length===0&&t.constructor===Array?"<"+n+' d:constr="Array"/>':i?this.hash_to_xml(n,t,!0):(o=t.constructor,s=o.toString().match(this.rx_function)[1],r=o===Array?this.hash_to_xml("d:item",t,!0):this.escape_xml(t),e+=' d:constr="'+s+'"',this.map.push(t),e+=' d:mi="'+this.map.length+'"',n==="#text"?this.escape_xml(t):"<"+n+e+">"+r+"<\/"+n+">")},escape_xml:function(n){return String(n).replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/&nbsp;/g,"&#160;")}},i,u,f;switch(typeof t){case"function":f=x10.compile(r);f.to_xml_str(n,function(i){t({doc:Defiant.xmlFromString(i.str),src:n,map:i.map})});return;case"boolean":return i=r.to_xml_str.call(r,n),{doc:Defiant.xmlFromString(i.str),src:n,map:i.map};default:return i=r.to_xml_str.call(r,n),u=Defiant.xmlFromString(i.str),this.search.map=i.map,u}});JSON.search||(JSON.search=function(n,t,i){"use strict";var e=n.doc&&n.doc.nodeType,s=e?n.doc:JSON.toXML(n),h=e?n.map:this.search.map,c=e?n.src:n,r=Defiant.node[i?"selectSingleNode":"selectNodes"](s,t.xTransform()),f=[],o,u;for(i&&(r=[r]),u=r.length;u--;)switch(r[u].nodeType){case 2:case 3:f.unshift(r[u].nodeValue);break;default:o=+r[u].getAttribute("d:mi");f.unshift(h[o-1])}return Defiant.env==="development"&&(this.trace=JSON.mtrace(c,f,r)),f});JSON.mtrace||(JSON.mtrace=function(n,t,i){"use strict";for(var h=window,c=JSON.stringify,o=c(n,null,"\t").replace(/\t/g,""),l=[],r=0,a=i.length,p=a?i[r].ownerDocument.documentElement:!1,w=this.search.map,u,f,v=0,e,y,s;r<a;r++){switch(i[r].nodeType){case 2:f=i[r].ownerElement?i[r].ownerElement.getAttribute("d:"+i[r].nodeName):"String";u='"@'+i[r].nodeName+'": '+h[f](t[r]);e=o.indexOf(u);s=0;break;case 3:f=i[r].parentNode.getAttribute("d:constr");u=h[f](t[r]);u='"'+i[r].parentNode.nodeName+'": '+(u==="Number"?u:'"'+u+'"');e=o.indexOf(u);s=0;break;default:if(i[r]===p)continue;i[r].getAttribute("d:constr")==="String"||i[r].getAttribute("d:constr")==="Number"?(f=i[r].getAttribute("d:constr"),u=h[f](t[r]),e=o.indexOf(u,v),u='"'+i[r].nodeName+'": '+(f==="Number"?u:'"'+u+'"'),s=0,v=e+1):(u=c(t[r],null,"\t").replace(/\t/g,""),e=o.indexOf(u),s=u.match(/\n/g).length)}y=o.substring(0,e).match(/\n/g).length+1;l.push([y,s])}return l});Defiant.node.selectNodes=function(n,t){if(n.evaluate){for(var f=n.createNSResolver(n.documentElement),r=n.evaluate(t,n,f,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null),u=[],i=0,e=r.snapshotLength;i<e;i++)u.push(r.snapshotItem(i));return u}return n.selectNodes(t)};Defiant.node.selectSingleNode=function(n,t){if(n.evaluate){var i=this.selectNodes(n,t);return i.length>0?i[0]:null}return n.selectSingleNode(t)};Defiant.node.prettyPrint=function(n){var f=Defiant,h=f.tabsize,c=f.xml_decl.toLowerCase(),s,r;f.is_ie?r=n.xml:(s=new XMLSerializer,r=s.serializeToString(n));f.env!=="development"&&(r=r.replace(/ \w+\:d=".*?"| d\:\w+=".*?"/g,""));for(var l=r.trim().replace(/(>)\s*(<)(\/*)/g,"$1\n$2$3"),i=l.split("\n"),e=-1,t=0,a=i.length,u,o;t<a;t++)(t!==0||i[t].toLowerCase()!==c)&&(u=i[t].match(/<[A-Za-z_\:]+.*?>/g)!==null,o=i[t].match(/<\/[\w\:]+>/g)!==null,i[t].match(/<.*?\/>/g)!==null&&(u=o=!0),u&&e++,i[t]=String().fill(e,"\t")+i[t],u&&o&&e--,!u&&o&&e--);return i.join("\n").replace(/\t/g,String().fill(h," "))};Defiant.node.toJSON=function(n,t){"use strict";var i=function(n){var t={},h=window,c,v,f,u,r,e,l,o,a,s;switch(n.nodeType){case 1:for(r=n.getAttribute("d:constr"),r==="Array"?t=[]:r==="String"&&n.textContent===""&&(t=""),c=n.attributes,o=0,a=c.length;o<a;o++)(s=c.item(o),s.nodeName.match(/\:d|d\:/g)===null)&&(r=n.getAttribute("d:"+s.nodeName),e=r&&r!=="undefined"?s.nodeValue==="null"?null:h[r](s.nodeValue==="false"?"":s.nodeValue):s.nodeValue,t["@"+s.nodeName]=e);break;case 3:v=n.parentNode.getAttribute("d:type");e=v?h[v](n.nodeValue==="false"?"":n.nodeValue):n.nodeValue;t=e}if(n.hasChildNodes())for(o=0,a=n.childNodes.length;o<a;o++)if(f=n.childNodes.item(o),u=f.nodeName,c=n.attributes,u==="d:name"&&(u=f.getAttribute("d:name")),u==="#text")r=n.getAttribute("d:constr"),r==="undefined"&&(r=undefined),l=f.textContent||f.text,e=r==="Boolean"&&l==="false"?"":l,r||c.length?r&&a===1?t=h[r](e):n.hasChildNodes()?c.length<3?t=r?h[r](e):e:t[u]=r?h[r](e):e:t[u]=r?h[r](e):e:t=e;else{if(f.getAttribute("d:constr")==="null"){t[u]&&t[u].push?t[u].push(null):t[u]=f.getAttribute("d:type")==="ArrayItem"?[t[u]]:null;continue}if(t[u]){t[u].push?t[u].push(i(f)):t[u]=[t[u],i(f)];continue}r=f.getAttribute("d:constr");switch(r){case"null":t.push?t.push(null):t[u]=null;break;case"Array":f.parentNode.firstChild===f&&r==="Array"&&u!=="d:item"?u==="d:item"||r==="Array"?(e=i(f),t[u]=e.length?[e]:e):t[u]=i(f):t.push?t.push(i(f)):t[u]=i(f);break;case"String":case"Number":case"Boolean":l=f.textContent||f.text;e=r==="Boolean"&&l==="false"?"":l;t.push?t.push(h[r](e)):t[u]=i(f);break;default:t.push?t.push(i(f)):t[u]=i(f)}}return n.nodeType===1&&n.getAttribute("d:type")==="ArrayItem"&&(t=[t]),t},r=n.nodeType===9?n.documentElement:n,u=i(r),f=u[r.nodeName];return r===r.ownerDocument.documentElement&&f&&f.constructor===Array&&(u=f),t&&t.toString()==="true"&&(t="\t"),t?JSON.stringify(u,null,t):u};typeof jQuery!="undefined"&&function(n){"use strict";n.fn.defiant=function(n,t){return this.html(Defiant.render(n,t)),this}}(jQuery),function(n){typeof define=="function"&&define.amd?define(["jquery"],n):typeof exports=="object"?module.exports=n(require("jquery")):n(jQuery)}(function(n){function i(n){return t.raw?n:encodeURIComponent(n)}function u(n){return t.raw?n:decodeURIComponent(n)}function f(n){return i(t.json?JSON.stringify(n):String(n))}function e(n){n.indexOf('"')===0&&(n=n.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return n=decodeURIComponent(n.replace(o," ")),t.json?JSON.parse(n):n}catch(i){}}function r(i,r){var u=t.raw?i:e(i);return n.isFunction(r)?r(u):u}var o=/\+/g,t=n.cookie=function(e,o,s){var v,c;if(arguments.length>1&&!n.isFunction(o))return s=n.extend({},t.defaults,s),typeof s.expires=="number"&&(v=s.expires,c=s.expires=new Date,c.setMilliseconds(c.getMilliseconds()+v*864e5)),document.cookie=[i(e),"=",f(o),s.expires?"; expires="+s.expires.toUTCString():"",s.path?"; path="+s.path:"",s.domain?"; domain="+s.domain:"",s.secure?"; secure":""].join("");for(var l=e?undefined:{},y=document.cookie?document.cookie.split("; "):[],a=0,b=y.length;a<b;a++){var p=y[a].split("="),w=u(p.shift()),h=p.join("=");if(e===w){l=r(h,o);break}e||(h=r(h))===undefined||(l[w]=h)}return l};t.defaults={};n.removeCookie=function(t,i){return n.cookie(t,"",n.extend({},i,{expires:-1})),!n.cookie(t)}}),function(n,t){function v(n,t,r){var e=n.children(),o=!1,u,s,f;for(n.empty(),u=0,s=e.length;u<s;u++)if(f=e.eq(u),n.append(f),r&&n.append(r),i(n,t)){f.remove();o=!0;break}else r&&r.detach();return o}function f(t,r,u,e,o){var s=!1,h="a, table, thead, tbody, tfoot, tr, col, colgroup, object, embed, param, ol, ul, dl, blockquote, select, optgroup, option, textarea, script, style",c="script, .dotdotdot-keep";return t.contents().detach().each(function(){var a=this,l=n(a);if(typeof a=="undefined")return!0;if(l.is(c))t.append(l);else{if(s)return!0;t.append(l);!o||l.is(e.after)||l.find(e.after).length||t[t.is(h)?"after":"append"](o);i(u,e)&&(s=a.nodeType==3?y(l,r,u,e,o):f(l,r,u,e,o));s||o&&o.detach()}}),r.addClass("is-truncated"),s}function y(t,f,o,h,c){var l=t[0],nt,k,d,tt;if(!l)return!1;var y=s(l),it=y.indexOf(" ")!==-1?" ":"　",p=h.wrap=="letter"?"":it,a=y.split(p),g=-1,w=-1,b=0,v=a.length-1;for(h.fallbackToLetter&&b==0&&v==0&&(p="",a=y.split(p),v=a.length-1);b<=v&&!(b==0&&v==0);){if(nt=Math.floor((b+v)/2),nt==w)break;w=nt;u(l,a.slice(0,w+1).join(p)+h.ellipsis);o.children().each(function(){n(this).toggle().toggle()});i(o,h)?(v=w,h.fallbackToLetter&&b==0&&v==0&&(p="",a=a[0].split(p),g=-1,w=-1,b=0,v=a.length-1)):(g=w,b=w)}return g==-1||a.length==1&&a[0].length==0?(k=t.parent(),t.detach(),d=c&&c.closest(k).length?c.length:0,k.contents().length>d?l=r(k.contents().eq(-1-d),f):(l=r(k,f,!0),d||k.detach()),l&&(y=e(s(l),h),u(l,y),d&&c&&(tt=c.parent(),n(l).parent().append(c),n.trim(tt.html())||tt.remove()))):(y=e(a.slice(0,g+1).join(p),h),u(l,y)),!0}function i(n,t){return n.innerHeight()>t.maxHeight}function e(t,i){while(n.inArray(t.slice(-1),i.lastCharacter.remove)>-1)t=t.slice(0,-1);return n.inArray(t.slice(-1),i.lastCharacter.noEllipsis)<0&&(t+=i.ellipsis),t}function o(n){return{width:n.innerWidth(),height:n.innerHeight()}}function u(n,t){n.innerText?n.innerText=t:n.nodeValue?n.nodeValue=t:n.textContent&&(n.textContent=t)}function s(n){return n.innerText?n.innerText:n.nodeValue?n.nodeValue:n.textContent?n.textContent:""}function h(n){do n=n.previousSibling;while(n&&n.nodeType!==1&&n.nodeType!==3);return n}function r(t,i,u){var e=t&&t[0],f;if(e){if(!u){if(e.nodeType===3)return e;if(n.trim(t.text()))return r(t.contents().last(),i)}for(f=h(e);!f;){if(t=t.parent(),t.is(i)||!t.length)return!1;f=h(t[0])}if(f)return r(n(f),i)}return!1}function p(t,i){return t?typeof t=="string"?(t=n(t,i),t.length?t:!1):t.jquery?t:!1:!1}function w(n){for(var t,r=n.innerHeight(),u=["paddingTop","paddingBottom"],i=0,f=u.length;i<f;i++)t=parseInt(n.css(u[i]),10),isNaN(t)&&(t=0),r-=t;return r}var c,l,a;n.fn.dotdotdot||(n.fn.dotdotdot=function(t){var r,h;if(this.length==0)return n.fn.dotdotdot.debug('No element found for "'+this.selector+'".'),this;if(this.length>1)return this.each(function(){n(this).dotdotdot(t)});r=this;h=r.contents();r.data("dotdotdot")&&r.trigger("destroy.dot");r.data("dotdotdot-style",r.attr("style")||"");r.css("word-wrap","break-word");r.css("white-space")==="nowrap"&&r.css("white-space","normal");r.bind_events=function(){return r.bind("update.dot",function(t,o){r.removeClass("is-truncated");t.preventDefault();t.stopPropagation();switch(typeof u.height){case"number":u.maxHeight=u.height;break;case"function":u.maxHeight=u.height.call(r[0]);break;default:u.maxHeight=w(r)}u.maxHeight+=u.tolerance;typeof o!="undefined"&&((typeof o=="string"||"nodeType"in o&&o.nodeType===1)&&(o=n("<div />").append(o).contents()),o instanceof n&&(h=o));s=r.wrapInner('<div class="dotdotdot" />').children();s.contents().detach().end().append(h.clone(!0)).find("br").replaceWith("  <br />  ").end().css({height:"auto",width:"auto",border:"none",padding:0,margin:0});var c=!1,l=!1;return e.afterElement&&(c=e.afterElement.clone(!0),c.show(),e.afterElement.detach()),i(s,u)&&(l=u.wrap=="children"?v(s,u,c):f(s,r,s,u,c)),s.replaceWith(s.contents()),s=null,n.isFunction(u.callback)&&u.callback.call(r[0],l,h),e.isTruncated=l,l}).bind("isTruncated.dot",function(n,t){return n.preventDefault(),n.stopPropagation(),typeof t=="function"&&t.call(r[0],e.isTruncated),e.isTruncated}).bind("originalContent.dot",function(n,t){return n.preventDefault(),n.stopPropagation(),typeof t=="function"&&t.call(r[0],h),h}).bind("destroy.dot",function(n){n.preventDefault();n.stopPropagation();r.unwatch().unbind_events().contents().detach().end().append(h).attr("style",r.data("dotdotdot-style")||"").removeClass("is-truncated").data("dotdotdot",!1)}),r};r.unbind_events=function(){return r.unbind(".dot"),r};r.watch=function(){if(r.unwatch(),u.watch=="window"){var t=n(window),i=t.width(),f=t.height();t.bind("resize.dot"+e.dotId,function(){i==t.width()&&f==t.height()&&u.windowResizeFix||(i=t.width(),f=t.height(),l&&clearInterval(l),l=setTimeout(function(){r.trigger("update.dot")},100))})}else a=o(r),l=setInterval(function(){if(r.is(":visible")){var n=o(r);(a.width!=n.width||a.height!=n.height)&&(r.trigger("update.dot"),a=n)}},500);return r};r.unwatch=function(){return n(window).unbind("resize.dot"+e.dotId),l&&clearInterval(l),r};var u=n.extend(!0,{},n.fn.dotdotdot.defaults,t),e={},a={},l=null,s=null;return u.lastCharacter.remove instanceof Array||(u.lastCharacter.remove=n.fn.dotdotdot.defaultArrays.lastCharacter.remove),u.lastCharacter.noEllipsis instanceof Array||(u.lastCharacter.noEllipsis=n.fn.dotdotdot.defaultArrays.lastCharacter.noEllipsis),e.afterElement=p(u.after,r),e.isTruncated=!1,e.dotId=c++,r.data("dotdotdot",!0).bind_events().trigger("update.dot"),u.watch&&r.watch(),r},n.fn.dotdotdot.defaults={ellipsis:"... ",wrap:"word",fallbackToLetter:!0,lastCharacter:{},tolerance:0,callback:null,after:null,height:null,watch:!1,windowResizeFix:!0},n.fn.dotdotdot.defaultArrays={lastCharacter:{remove:[" ","　",",",";",".","!","?"],noEllipsis:[]}},n.fn.dotdotdot.debug=function(){},c=1,l=n.fn.html,n.fn.html=function(i){return i!=t&&!n.isFunction(i)&&this.data("dotdotdot")?this.trigger("update",[i]):l.apply(this,arguments)},a=n.fn.text,n.fn.text=function(i){return i!=t&&!n.isFunction(i)&&this.data("dotdotdot")?(i=n("<div />").text(i).html(),this.trigger("update",[i])):a.apply(this,arguments)})}(jQuery);jQuery(document).ready(function(n){n(".dot-ellipsis").each(function(){var r=n(this).hasClass("dot-resize-update"),u=n(this).hasClass("dot-timer-update"),i=0,f=n(this).attr("class").split(/\s+/),t;n.each(f,function(n,t){var r=t.match(/^dot-height-(\d+)$/);r!==null&&(i=Number(r[1]))});t={};u&&(t.watch=!0);r&&(t.watch="window");i>0&&(t.height=i);n(this).dotdotdot(t)})});jQuery(window).on("load",function(){jQuery(".dot-ellipsis.dot-load-update").trigger("update.dot")});(function(n){n.fn.headroom=function(t){return this.each(function(){var r=n(this),i=r.data("headroom"),u=typeof t=="object"&&t;u=n.extend(!0,{},Headroom.options,u);i||(i=new Headroom(this,u),i.init(),r.data("headroom",i));typeof t=="string"&&(i[t](),t==="destroy"&&r.removeData("headroom"))})};n("[data-headroom]").each(function(){var t=n(this);t.headroom(t.data())})})(window.Zepto||window.jQuery);!function(n){"function"==typeof define&&define.amd?define(["jquery"],n):"object"==typeof exports?module.exports=n:n(jQuery)}(function(n){function u(r){var u=r||window.event,w=c.call(arguments,1),l=0,s=0,e=0,a=0,b=0,k=0,v,y,p;if(r=n.event.fix(u),r.type="mousewheel","detail"in u&&(e=-1*u.detail),"wheelDelta"in u&&(e=u.wheelDelta),"wheelDeltaY"in u&&(e=u.wheelDeltaY),"wheelDeltaX"in u&&(s=-1*u.wheelDeltaX),"axis"in u&&u.axis===u.HORIZONTAL_AXIS&&(s=-1*e,e=0),l=0===e?s:e,"deltaY"in u&&(e=-1*u.deltaY,l=e),"deltaX"in u&&(s=u.deltaX,0===e&&(l=-1*s)),0!==e||0!==s)return 1===u.deltaMode?(v=n.data(this,"mousewheel-line-height"),l*=v,e*=v,s*=v):2===u.deltaMode&&(y=n.data(this,"mousewheel-page-height"),l*=y,e*=y,s*=y),(a=Math.max(Math.abs(e),Math.abs(s)),(!t||t>a)&&(t=a,o(u,a)&&(t/=40)),o(u,a)&&(l/=40,s/=40,e/=40),l=Math[l>=1?"floor":"ceil"](l/t),s=Math[s>=1?"floor":"ceil"](s/t),e=Math[e>=1?"floor":"ceil"](e/t),i.settings.normalizeOffset&&this.getBoundingClientRect)&&(p=this.getBoundingClientRect(),b=r.clientX-p.left,k=r.clientY-p.top),r.deltaX=s,r.deltaY=e,r.deltaFactor=t,r.offsetX=b,r.offsetY=k,r.deltaMode=0,w.unshift(r,l,s,e),f&&clearTimeout(f),f=setTimeout(h,200),(n.event.dispatch||n.event.handle).apply(this,w)}function h(){t=null}function o(n,t){return i.settings.adjustOldDeltas&&"mousewheel"===n.type&&t%120==0}var f,t,s=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],r="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],c=Array.prototype.slice,e,i;if(n.event.fixHooks)for(e=s.length;e;)n.event.fixHooks[s[--e]]=n.event.mouseHooks;i=n.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var t=r.length;t;)this.addEventListener(r[--t],u,!1);else this.onmousewheel=u;n.data(this,"mousewheel-line-height",i.getLineHeight(this));n.data(this,"mousewheel-page-height",i.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var t=r.length;t;)this.removeEventListener(r[--t],u,!1);else this.onmousewheel=null;n.removeData(this,"mousewheel-line-height");n.removeData(this,"mousewheel-page-height")},getLineHeight:function(t){var r=n(t),i=r["offsetParent"in n.fn?"offsetParent":"parent"]();return i.length||(i=n("body")),parseInt(i.css("fontSize"),10)||parseInt(r.css("fontSize"),10)||16},getPageHeight:function(t){return n(t).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};n.fn.extend({mousewheel:function(n){return n?this.bind("mousewheel",n):this.trigger("mousewheel")},unmousewheel:function(n){return this.unbind("mousewheel",n)}})});!function(n){"function"==typeof define&&define.amd?define(["jquery"],n):"object"==typeof exports?module.exports=n:n(jQuery)}(function(n){function u(r){var u=r||window.event,w=c.call(arguments,1),l=0,s=0,e=0,a=0,b=0,k=0,v,y,p;if(r=n.event.fix(u),r.type="mousewheel","detail"in u&&(e=-1*u.detail),"wheelDelta"in u&&(e=u.wheelDelta),"wheelDeltaY"in u&&(e=u.wheelDeltaY),"wheelDeltaX"in u&&(s=-1*u.wheelDeltaX),"axis"in u&&u.axis===u.HORIZONTAL_AXIS&&(s=-1*e,e=0),l=0===e?s:e,"deltaY"in u&&(e=-1*u.deltaY,l=e),"deltaX"in u&&(s=u.deltaX,0===e&&(l=-1*s)),0!==e||0!==s)return 1===u.deltaMode?(v=n.data(this,"mousewheel-line-height"),l*=v,e*=v,s*=v):2===u.deltaMode&&(y=n.data(this,"mousewheel-page-height"),l*=y,e*=y,s*=y),(a=Math.max(Math.abs(e),Math.abs(s)),(!t||t>a)&&(t=a,o(u,a)&&(t/=40)),o(u,a)&&(l/=40,s/=40,e/=40),l=Math[l>=1?"floor":"ceil"](l/t),s=Math[s>=1?"floor":"ceil"](s/t),e=Math[e>=1?"floor":"ceil"](e/t),i.settings.normalizeOffset&&this.getBoundingClientRect)&&(p=this.getBoundingClientRect(),b=r.clientX-p.left,k=r.clientY-p.top),r.deltaX=s,r.deltaY=e,r.deltaFactor=t,r.offsetX=b,r.offsetY=k,r.deltaMode=0,w.unshift(r,l,s,e),f&&clearTimeout(f),f=setTimeout(h,200),(n.event.dispatch||n.event.handle).apply(this,w)}function h(){t=null}function o(n,t){return i.settings.adjustOldDeltas&&"mousewheel"===n.type&&t%120==0}var f,t,s=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],r="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],c=Array.prototype.slice,e,i;if(n.event.fixHooks)for(e=s.length;e;)n.event.fixHooks[s[--e]]=n.event.mouseHooks;i=n.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var t=r.length;t;)this.addEventListener(r[--t],u,!1);else this.onmousewheel=u;n.data(this,"mousewheel-line-height",i.getLineHeight(this));n.data(this,"mousewheel-page-height",i.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var t=r.length;t;)this.removeEventListener(r[--t],u,!1);else this.onmousewheel=null;n.removeData(this,"mousewheel-line-height");n.removeData(this,"mousewheel-page-height")},getLineHeight:function(t){var r=n(t),i=r["offsetParent"in n.fn?"offsetParent":"parent"]();return i.length||(i=n("body")),parseInt(i.css("fontSize"),10)||parseInt(r.css("fontSize"),10)||16},getPageHeight:function(t){return n(t).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};n.fn.extend({mousewheel:function(n){return n?this.bind("mousewheel",n):this.trigger("mousewheel")},unmousewheel:function(n){return this.unbind("mousewheel",n)}})});!function(n){"function"==typeof define&&define.amd?define(["jquery"],n):"undefined"!=typeof module&&module.exports?module.exports=n:n(jQuery,window,document)}(function(n){!function(t){var i="function"==typeof define&&define.amd,r="undefined"!=typeof module&&module.exports,u="https:"==document.location.protocol?"https:":"http:";i||(r?require("jquery-mousewheel")(n):n.event.special.mousewheel||n("head").append(decodeURI("%3Cscript src="+u+"//cdnjs.cloudflare.com/ajax/libs/jquery-mousewheel/3.1.13/jquery.mousewheel.min.js%3E%3C/script%3E")));t()}(function(){var h,c="mCustomScrollbar",t="mCS",it=".mCustomScrollbar",ot={setTop:0,setLeft:0,axis:"y",scrollbarPosition:"inside",scrollInertia:950,autoDraggerLength:!0,alwaysShowScrollbar:0,snapOffset:0,mouseWheel:{enable:!0,scrollAmount:"auto",axis:"y",deltaFactor:"auto",disableOver:["select","option","keygen","datalist","textarea"]},scrollButtons:{scrollType:"stepless",scrollAmount:"auto"},keyboard:{enable:!0,scrollType:"stepless",scrollAmount:"auto"},contentTouchScroll:25,documentTouchScroll:!0,advanced:{autoScrollOnFocus:"input,textarea,select,button,datalist,keygen,a[tabindex],area,object,[contenteditable='true']",updateOnContentResize:!0,updateOnImageLoad:"auto",autoUpdateTimeout:60},theme:"light",callbacks:{onTotalScrollOffset:0,onTotalScrollBackOffset:0,alwaysTriggerOffsets:!0}},pt=0,b={},p=window.attachEvent&&!window.addEventListener?1:0,e=!1,i=["mCSB_dragger_onDrag","mCSB_scrollTools_onDrag","mCS_img_loaded","mCS_disabled","mCS_destroyed","mCS_no_scrollbar","mCS-autoHide","mCS-dir-rtl","mCS_no_scrollbar_y","mCS_no_scrollbar_x","mCS_y_hidden","mCS_x_hidden","mCSB_draggerContainer","mCSB_buttonUp","mCSB_buttonDown","mCSB_buttonLeft","mCSB_buttonRight"],s={init:function(r){var r=n.extend(!0,{},ot,r),e=v.call(this),u,f;if(r.live){if(u=r.liveSelector||this.selector||it,f=n(u),"off"===r.live)return void k(u);b[u]=setTimeout(function(){f.mCustomScrollbar(r);"once"===r.live&&f.length&&k(u)},500)}else k(u);return r.setWidth=r.set_width?r.set_width:r.setWidth,r.setHeight=r.set_height?r.set_height:r.setHeight,r.axis=r.horizontalScroll?"x":wt(r.axis),r.scrollInertia=r.scrollInertia>0&&r.scrollInertia<17?17:r.scrollInertia,"object"!=typeof r.mouseWheel&&1==r.mouseWheel&&(r.mouseWheel={enable:!0,scrollAmount:"auto",axis:"y",preventDefault:!1,deltaFactor:"auto",normalizeDelta:!1,invert:!1}),r.mouseWheel.scrollAmount=r.mouseWheelPixels?r.mouseWheelPixels:r.mouseWheel.scrollAmount,r.mouseWheel.normalizeDelta=r.advanced.normalizeMouseWheelDelta?r.advanced.normalizeMouseWheelDelta:r.mouseWheel.normalizeDelta,r.scrollButtons.scrollType=bt(r.scrollButtons.scrollType),st(r),n(e).each(function(){var u=n(this);if(!u.data(t)){u.data(t,{idx:++pt,opt:r,scrollRatio:{y:null,x:null},overflowed:null,contentReset:{y:null,x:null},bindEvents:!1,tweenRunning:!1,sequential:{},langDir:u.css("direction"),cbOffsets:null,trigger:null,poll:{size:{o:0,n:0},img:{o:0,n:0},change:{o:0,n:0}}});var e=u.data(t),f=e.opt,o=u.data("mcs-axis"),h=u.data("mcs-scrollbar-position"),c=u.data("mcs-theme");o&&(f.axis=o);h&&(f.scrollbarPosition=h);c&&(f.theme=c,st(f));kt.call(this);e&&f.callbacks.onCreate&&"function"==typeof f.callbacks.onCreate&&f.callbacks.onCreate.call(this);n("#mCSB_"+e.idx+"_container img:not(."+i[2]+")").addClass(i[2]);s.update.call(null,u)}})},update:function(r,f){var e=r||v.call(this);return n(e).each(function(){var s=n(this),h;if(s.data(t)){var e=s.data(t),r=e.opt,c=n("#mCSB_"+e.idx+"_container"),a=n("#mCSB_"+e.idx),l=[n("#mCSB_"+e.idx+"_dragger_vertical"),n("#mCSB_"+e.idx+"_dragger_horizontal")];if(!c.length)return;e.tweenRunning&&o(s);f&&e&&r.callbacks.onBeforeUpdate&&"function"==typeof r.callbacks.onBeforeUpdate&&r.callbacks.onBeforeUpdate.call(this);s.hasClass(i[3])&&s.removeClass(i[3]);s.hasClass(i[4])&&s.removeClass(i[4]);a.css("max-height","none");a.height()!==s.height()&&a.css("max-height",s.height());dt.call(this);"y"===r.axis||r.advanced.autoExpandHorizontalScroll||c.css("width",ht(c));e.overflowed=ii.call(this);ct.call(this);r.autoDraggerLength&&ni.call(this);ti.call(this);ri.call(this);h=[Math.abs(c[0].offsetTop),Math.abs(c[0].offsetLeft)];"x"!==r.axis&&(e.overflowed[0]?l[0].height()>l[0].parent().height()?y.call(this):(u(s,h[0].toString(),{dir:"y",dur:0,overwrite:"none"}),e.contentReset.y=null):(y.call(this),"y"===r.axis?g.call(this):"yx"===r.axis&&e.overflowed[1]&&u(s,h[1].toString(),{dir:"x",dur:0,overwrite:"none"})));"y"!==r.axis&&(e.overflowed[1]?l[1].width()>l[1].parent().width()?y.call(this):(u(s,h[1].toString(),{dir:"x",dur:0,overwrite:"none"}),e.contentReset.x=null):(y.call(this),"x"===r.axis?g.call(this):"yx"===r.axis&&e.overflowed[0]&&u(s,h[0].toString(),{dir:"y",dur:0,overwrite:"none"})));f&&e&&(2===f&&r.callbacks.onImageLoad&&"function"==typeof r.callbacks.onImageLoad?r.callbacks.onImageLoad.call(this):3===f&&r.callbacks.onSelectorChange&&"function"==typeof r.callbacks.onSelectorChange?r.callbacks.onSelectorChange.call(this):r.callbacks.onUpdate&&"function"==typeof r.callbacks.onUpdate&&r.callbacks.onUpdate.call(this));et.call(this)}})},scrollTo:function(i,r){if("undefined"!=typeof i&&null!=i){var f=v.call(this);return n(f).each(function(){var s=n(this);if(s.data(t)){var o=s.data(t),h=o.opt,c={trigger:"external",scrollInertia:h.scrollInertia,scrollEasing:"mcsEaseInOut",moveDragger:!1,timeout:60,callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},f=n.extend(!0,{},c,r),e=ft.call(this,i),l=f.scrollInertia>0&&f.scrollInertia<17?17:f.scrollInertia;e[0]=at.call(this,e[0],"y");e[1]=at.call(this,e[1],"x");f.moveDragger&&(e[0]*=o.scrollRatio.y,e[1]*=o.scrollRatio.x);f.dur=wi()?0:l;setTimeout(function(){null!==e[0]&&"undefined"!=typeof e[0]&&"x"!==h.axis&&o.overflowed[0]&&(f.dir="y",f.overwrite="all",u(s,e[0].toString(),f));null!==e[1]&&"undefined"!=typeof e[1]&&"y"!==h.axis&&o.overflowed[1]&&(f.dir="x",f.overwrite="none",u(s,e[1].toString(),f))},f.timeout)}})}},stop:function(){var i=v.call(this);return n(i).each(function(){var i=n(this);i.data(t)&&o(i)})},disable:function(r){var u=v.call(this);return n(u).each(function(){var u=n(this);u.data(t)&&(u.data(t),et.call(this,"remove"),g.call(this),r&&y.call(this),ct.call(this,!0),u.addClass(i[3]))})},destroy:function(){var r=v.call(this);return n(r).each(function(){var f=n(this);if(f.data(t)){var u=f.data(t),e=u.opt,s=n("#mCSB_"+u.idx),o=n("#mCSB_"+u.idx+"_container"),h=n(".mCSB_"+u.idx+"_scrollbar");e.live&&k(e.liveSelector||n(r).selector);et.call(this,"remove");g.call(this);y.call(this);f.removeData(t);a(this,"mcs");h.remove();o.find("img."+i[2]).removeClass(i[2]);s.replaceWith(o.contents());f.removeClass(c+" _"+t+"_"+u.idx+" "+i[6]+" "+i[7]+" "+i[5]+" "+i[3]).addClass(i[4])}})}},v=function(){return"object"!=typeof n(this)||n(this).length<1?it:this},st=function(t){t.autoDraggerLength=n.inArray(t.theme,["rounded","rounded-dark","rounded-dots","rounded-dots-dark"])>-1?!1:t.autoDraggerLength;t.autoExpandScrollbar=n.inArray(t.theme,["rounded-dots","rounded-dots-dark","3d","3d-dark","3d-thick","3d-thick-dark","inset","inset-dark","inset-2","inset-2-dark","inset-3","inset-3-dark"])>-1?!1:t.autoExpandScrollbar;t.scrollButtons.enable=n.inArray(t.theme,["minimal","minimal-dark"])>-1?!1:t.scrollButtons.enable;t.autoHideScrollbar=n.inArray(t.theme,["minimal","minimal-dark"])>-1?!0:t.autoHideScrollbar;t.scrollbarPosition=n.inArray(t.theme,["minimal","minimal-dark"])>-1?"outside":t.scrollbarPosition},k=function(n){b[n]&&(clearTimeout(b[n]),a(b,n))},wt=function(n){return"yx"===n||"xy"===n||"auto"===n?"yx":"x"===n||"horizontal"===n?"x":"y"},bt=function(n){return"stepped"===n||"pixels"===n||"step"===n||"click"===n?"stepped":"stepless"},kt=function(){var f=n(this),u=f.data(t),r=u.opt,l=r.autoExpandScrollbar?" "+i[1]+"_expand":"",o=["<div id='mCSB_"+u.idx+"_scrollbar_vertical' class='mCSB_scrollTools mCSB_"+u.idx+"_scrollbar mCS-"+r.theme+" mCSB_scrollTools_vertical"+l+"'><div class='"+i[12]+"'><div id='mCSB_"+u.idx+"_dragger_vertical' class='mCSB_dragger' style='position:absolute;'><div class='mCSB_dragger_bar' /><\/div><div class='mCSB_draggerRail' /><\/div><\/div>","<div id='mCSB_"+u.idx+"_scrollbar_horizontal' class='mCSB_scrollTools mCSB_"+u.idx+"_scrollbar mCS-"+r.theme+" mCSB_scrollTools_horizontal"+l+"'><div class='"+i[12]+"'><div id='mCSB_"+u.idx+"_dragger_horizontal' class='mCSB_dragger' style='position:absolute;'><div class='mCSB_dragger_bar' /><\/div><div class='mCSB_draggerRail' /><\/div><\/div>"],v="yx"===r.axis?"mCSB_vertical_horizontal":"x"===r.axis?"mCSB_horizontal":"mCSB_vertical",a="yx"===r.axis?o[0]+o[1]:"x"===r.axis?o[1]:o[0],y="yx"===r.axis?"<div id='mCSB_"+u.idx+"_container_wrapper' class='mCSB_container_wrapper' />":"",p=r.autoHideScrollbar?" "+i[6]:"",w="x"!==r.axis&&"rtl"===u.langDir?" "+i[7]:"",h,s,e;r.setWidth&&f.css("width",r.setWidth);r.setHeight&&f.css("height",r.setHeight);r.setLeft="y"!==r.axis&&"rtl"===u.langDir?"989999px":r.setLeft;f.addClass(c+" _"+t+"_"+u.idx+p+w).wrapInner("<div id='mCSB_"+u.idx+"' class='mCustomScrollBox mCS-"+r.theme+" "+v+"'><div id='mCSB_"+u.idx+"_container' class='mCSB_container' style='position:relative; top:"+r.setTop+"; left:"+r.setLeft+";' dir='"+u.langDir+"' /><\/div>");h=n("#mCSB_"+u.idx);s=n("#mCSB_"+u.idx+"_container");"y"===r.axis||r.advanced.autoExpandHorizontalScroll||s.css("width",ht(s));"outside"===r.scrollbarPosition?("static"===f.css("position")&&f.css("position","relative"),f.css("overflow","visible"),h.addClass("mCSB_outside").after(a)):(h.addClass("mCSB_inside").append(a),s.wrap(y));gt.call(this);e=[n("#mCSB_"+u.idx+"_dragger_vertical"),n("#mCSB_"+u.idx+"_dragger_horizontal")];e[0].css("min-height",e[0].height());e[1].css("min-width",e[1].width())},ht=function(t){var i=[t[0].scrollWidth,Math.max.apply(Math,t.children().map(function(){return n(this).outerWidth(!0)}).get())],r=t.parent().width();return i[0]>r?i[0]:i[1]>r?i[1]:"100%"},dt=function(){var e=n(this),f=e.data(t),r=f.opt,i=n("#mCSB_"+f.idx+"_container"),u;r.advanced.autoExpandHorizontalScroll&&"y"!==r.axis&&(i.css({width:"auto","min-width":0,"overflow-x":"scroll"}),u=Math.ceil(i[0].scrollWidth),3===r.advanced.autoExpandHorizontalScroll||2!==r.advanced.autoExpandHorizontalScroll&&u>i.parent().width()?i.css({width:u,"min-width":"100%","overflow-x":"inherit"}):i.css({"overflow-x":"inherit",position:"absolute"}).wrap("<div class='mCSB_h_wrapper' style='position:relative; left:0; width:999999px;' />").css({width:Math.ceil(i[0].getBoundingClientRect().right+.4)-Math.floor(i[0].getBoundingClientRect().left),"min-width":"100%",position:"relative"}).unwrap())},gt=function(){var s=n(this),o=s.data(t),u=o.opt,h=n(".mCSB_"+o.idx+"_scrollbar:first"),f=tt(u.scrollButtons.tabindex)?"tabindex='"+u.scrollButtons.tabindex+"'":"",r=["<a href='#' class='"+i[13]+"' "+f+" />","<a href='#' class='"+i[14]+"' "+f+" />","<a href='#' class='"+i[15]+"' "+f+" />","<a href='#' class='"+i[16]+"' "+f+" />"],e=["x"===u.axis?r[2]:r[0],"x"===u.axis?r[3]:r[1],r[2],r[3]];u.scrollButtons.enable&&h.prepend(e[0]).append(e[1]).next(".mCSB_scrollTools").prepend(e[2]).append(e[3])},ni=function(){var s=n(this),u=s.data(t),f=n("#mCSB_"+u.idx),e=n("#mCSB_"+u.idx+"_container"),r=[n("#mCSB_"+u.idx+"_dragger_vertical"),n("#mCSB_"+u.idx+"_dragger_horizontal")],o=[f.height()/e.outerHeight(!1),f.width()/e.outerWidth(!1)],i=[parseInt(r[0].css("min-height")),Math.round(o[0]*r[0].parent().height()),parseInt(r[1].css("min-width")),Math.round(o[1]*r[1].parent().width())],h=p&&i[1]<i[0]?i[0]:i[1],c=p&&i[3]<i[2]?i[2]:i[3];r[0].css({height:h,"max-height":r[0].parent().height()-10}).find(".mCSB_dragger_bar").css({"line-height":i[0]+"px"});r[1].css({width:c,"max-width":r[1].parent().width()-10})},ti=function(){var s=n(this),i=s.data(t),u=n("#mCSB_"+i.idx),f=n("#mCSB_"+i.idx+"_container"),r=[n("#mCSB_"+i.idx+"_dragger_vertical"),n("#mCSB_"+i.idx+"_dragger_horizontal")],e=[f.outerHeight(!1)-u.height(),f.outerWidth(!1)-u.width()],o=[e[0]/(r[0].parent().height()-r[0].height()),e[1]/(r[1].parent().width()-r[1].width())];i.scrollRatio={y:o[0],x:o[1]}},d=function(n,t,r){var f=r?i[0]+"_expanded":"",u=n.closest(".mCSB_scrollTools");"active"===t?(n.toggleClass(i[0]+" "+f),u.toggleClass(i[1]),n[0]._draggable=n[0]._draggable?0:1):n[0]._draggable||("hide"===t?(n.removeClass(i[0]),u.removeClass(i[1])):(n.addClass(i[0]),u.addClass(i[1])))},ii=function(){var h=n(this),r=h.data(t),e=n("#mCSB_"+r.idx),i=n("#mCSB_"+r.idx+"_container"),u=null==r.overflowed?i.height():i.outerHeight(!1),f=null==r.overflowed?i.width():i.outerWidth(!1),o=i[0].scrollHeight,s=i[0].scrollWidth;return o>u&&(u=o),s>f&&(f=s),[u>e.height(),f>e.width()]},y=function(){var r=n(this),i=r.data(t),f=i.opt,c=n("#mCSB_"+i.idx),s=n("#mCSB_"+i.idx+"_container"),h=[n("#mCSB_"+i.idx+"_dragger_vertical"),n("#mCSB_"+i.idx+"_dragger_horizontal")],e;(o(r),("x"!==f.axis&&!i.overflowed[0]||"y"===f.axis&&i.overflowed[0])&&(h[0].add(s).css("top",0),u(r,"_resetY")),"y"!==f.axis&&!i.overflowed[1]||"x"===f.axis&&i.overflowed[1])&&(e=dx=0,"rtl"===i.langDir&&(e=c.width()-s.outerWidth(!1),dx=Math.abs(e/i.scrollRatio.x)),s.css("left",e),h[1].css("left",dx),u(r,"_resetX"))},ri=function(){function u(){e=setTimeout(function(){n.event.special.mousewheel?(clearTimeout(e),oi.call(f[0])):u()},100)}var f=n(this),r=f.data(t),i=r.opt,e;r.bindEvents||((ui.call(this),i.contentTouchScroll&&fi.call(this),ei.call(this),i.mouseWheel.enable)&&u(),hi.call(this),li.call(this),i.advanced.autoScrollOnFocus&&ci.call(this),i.scrollButtons.enable&&ai.call(this),i.keyboard.enable&&vi.call(this),r.bindEvents=!0)},g=function(){var f=n(this),r=f.data(t),u=r.opt,o=t+"_"+r.idx,s=".mCSB_"+r.idx+"_scrollbar",e=n("#mCSB_"+r.idx+",#mCSB_"+r.idx+"_container,#mCSB_"+r.idx+"_container_wrapper,"+s+" ."+i[12]+",#mCSB_"+r.idx+"_dragger_vertical,#mCSB_"+r.idx+"_dragger_horizontal,"+s+">a"),h=n("#mCSB_"+r.idx+"_container");u.advanced.releaseDraggableSelectors&&e.add(n(u.advanced.releaseDraggableSelectors));u.advanced.extraDraggableSelectors&&e.add(n(u.advanced.extraDraggableSelectors));r.bindEvents&&(n(document).add(n(!l()||top.document)).unbind("."+o),e.each(function(){n(this).unbind("."+o)}),clearTimeout(f[0]._focusTimeout),a(f[0],"_focusTimeout"),clearTimeout(r.sequential.step),a(r.sequential,"step"),clearTimeout(h[0].onCompleteTimeout),a(h[0],"onCompleteTimeout"),r.bindEvents=!1)},ct=function(r){var h=n(this),u=h.data(t),o=u.opt,c=n("#mCSB_"+u.idx+"_container_wrapper"),f=c.length?c:n("#mCSB_"+u.idx+"_container"),e=[n("#mCSB_"+u.idx+"_scrollbar_vertical"),n("#mCSB_"+u.idx+"_scrollbar_horizontal")],s=[e[0].find(".mCSB_dragger"),e[1].find(".mCSB_dragger")];"x"!==o.axis&&(u.overflowed[0]&&!r?(e[0].add(s[0]).add(e[0].children("a")).css("display","block"),f.removeClass(i[8]+" "+i[10])):(o.alwaysShowScrollbar?(2!==o.alwaysShowScrollbar&&s[0].css("display","none"),f.removeClass(i[10])):(e[0].css("display","none"),f.addClass(i[10])),f.addClass(i[8])));"y"!==o.axis&&(u.overflowed[1]&&!r?(e[1].add(s[1]).add(e[1].children("a")).css("display","block"),f.removeClass(i[9]+" "+i[11])):(o.alwaysShowScrollbar?(2!==o.alwaysShowScrollbar&&s[1].css("display","none"),f.removeClass(i[11])):(e[1].css("display","none"),f.addClass(i[11])),f.addClass(i[9])));u.overflowed[0]||u.overflowed[1]?h.removeClass(i[5]):h.addClass(i[5])},r=function(t){var e=t.type,i=t.target.ownerDocument!==document&&null!==frameElement?[n(frameElement).offset().top,n(frameElement).offset().left]:null,u=l()&&t.target.ownerDocument!==top.document&&null!==frameElement?[n(t.view.frameElement).offset().top,n(t.view.frameElement).offset().left]:[0,0],r,f;switch(e){case"pointerdown":case"MSPointerDown":case"pointermove":case"MSPointerMove":case"pointerup":case"MSPointerUp":return i?[t.originalEvent.pageY-i[0]+u[0],t.originalEvent.pageX-i[1]+u[1],!1]:[t.originalEvent.pageY,t.originalEvent.pageX,!1];case"touchstart":case"touchmove":case"touchend":return r=t.originalEvent.touches[0]||t.originalEvent.changedTouches[0],f=t.originalEvent.touches.length||t.originalEvent.changedTouches.length,t.target.ownerDocument!==document?[r.screenY,r.screenX,f>1]:[r.pageY,r.pageX,f>1];default:return i?[t.pageY-i[0]+u[0],t.pageX-i[1]+u[1],!1]:[t.pageY,t.pageX,!1]}},ui=function(){function k(n,t,r,f){var e,o;(w[0].idleTimer=h.scrollInertia<233?250:0,i.attr("id")===y[1])?(e="x",o=(i[0].offsetLeft-t+f)*s.scrollRatio.x):(e="y",o=(i[0].offsetTop-n+r)*s.scrollRatio.y);u(v,o.toString(),{dir:e,drag:!0})}var i,c,a,v=n(this),s=v.data(t),h=s.opt,f=t+"_"+s.idx,y=["mCSB_"+s.idx+"_dragger_vertical","mCSB_"+s.idx+"_dragger_horizontal"],w=n("#mCSB_"+s.idx+"_container"),b=n("#"+y[0]+",#"+y[1]),g=h.advanced.releaseDraggableSelectors?b.add(n(h.advanced.releaseDraggableSelectors)):b,nt=h.advanced.extraDraggableSelectors?n(!l()||top.document).add(n(h.advanced.extraDraggableSelectors)):n(!l()||top.document);b.bind("contextmenu."+f,function(n){n.preventDefault()}).bind("mousedown."+f+" touchstart."+f+" pointerdown."+f+" MSPointerDown."+f,function(t){if(t.stopImmediatePropagation(),t.preventDefault(),yt(t)){e=!0;p&&(document.onselectstart=function(){return!1});lt.call(w,!1);o(v);i=n(this);var u=i.offset(),f=r(t)[0]-u.top,s=r(t)[1]-u.left,l=i.height()+u.top,y=i.width()+u.left;l>f&&f>0&&y>s&&s>0&&(c=f,a=s);d(i,"active",h.autoExpandScrollbar)}}).bind("touchmove."+f,function(n){n.stopImmediatePropagation();n.preventDefault();var t=i.offset(),u=r(n)[0]-t.top,f=r(n)[1]-t.left;k(c,a,u,f)});n(document).add(nt).bind("mousemove."+f+" pointermove."+f+" MSPointerMove."+f,function(n){if(i){var t=i.offset(),u=r(n)[0]-t.top,f=r(n)[1]-t.left;if(c===u&&a===f)return;k(c,a,u,f)}}).add(g).bind("mouseup."+f+" touchend."+f+" pointerup."+f+" MSPointerUp."+f,function(){i&&(d(i,"active",h.autoExpandScrollbar),i=null);e=!1;p&&(document.onselectstart=null);lt.call(w,!0)})},fi=function(){function at(n){if(!nt(n)||e||r(n)[2])return void(h=0);h=1;it=0;rt=0;st=1;g.removeClass("mCS_touch_action");var t=b.offset();k=r(n)[0]-t.top;d=r(n)[1]-t.left;v=[r(n)[0],r(n)[1]]}function vt(n){var o,h,c,l;if(nt(n)&&!e&&!r(n)[2]&&(f.documentTouchScroll||n.preventDefault(),n.stopImmediatePropagation(),(!rt||it)&&st)){gt=w();var a=ut.offset(),t=r(n)[0]-a.top,u=r(n)[1]-a.left,y="mcsLinearOut";(et.push(t),ot.push(u),v[2]=Math.abs(r(n)[0]-v[0]),v[3]=Math.abs(r(n)[1]-v[1]),i.overflowed[0])&&(o=ft[0].parent().height()-ft[0].height(),h=k-t>0&&t-k>-(o*i.scrollRatio.y)&&(2*v[3]<v[2]||"yx"===f.axis));i.overflowed[1]&&(c=ft[1].parent().width()-ft[1].width(),l=d-u>0&&u-d>-(c*i.scrollRatio.x)&&(2*v[2]<v[3]||"yx"===f.axis));h||l?(ii||n.preventDefault(),it=1):(rt=1,g.addClass("mCS_touch_action"));ii&&n.preventDefault();s="yx"===f.axis?[k-t,d-u]:"x"===f.axis?[null,d-u]:[k-t,null];b[0].idleTimer=250;i.overflowed[0]&&tt(s[0],ni,y,"y","all",!0);i.overflowed[1]&&tt(s[1],ni,y,"x",lt,!0)}}function yt(n){if(!nt(n)||e||r(n)[2])return void(h=0);h=1;n.stopImmediatePropagation();o(g);dt=w();var t=ut.offset();bt=r(n)[0]-t.top;kt=r(n)[1]-t.left;et=[];ot=[]}function pt(n){var t,u,o;if(nt(n)&&!e&&!r(n)[2]){st=0;n.stopImmediatePropagation();it=0;rt=0;ht=w();var l=ut.offset(),a=r(n)[0]-l.top,v=r(n)[1]-l.left;if(!(ht-gt>30)){c=1e3/(ht-dt);var p="mcsEaseOut",h=2.5>c,k=h?[et[et.length-2],ot[ot.length-2]]:[0,0];y=h?[a-k[0],v-k[1]]:[a-bt,v-kt];t=[Math.abs(y[0]),Math.abs(y[1])];c=h?[Math.abs(y[0]/4),Math.abs(y[1]/4)]:[c,c];u=[Math.abs(b[0].offsetTop)-y[0]*wt(t[0]/c[0],c[0]),Math.abs(b[0].offsetLeft)-y[1]*wt(t[1]/c[1],c[1])];s="yx"===f.axis?[u[0],u[1]]:"x"===f.axis?[null,u[1]]:[u[0],null];ct=[4*t[0]+f.scrollInertia,4*t[1]+f.scrollInertia];o=parseInt(f.contentTouchScroll)||0;s[0]=t[0]>o?s[0]:0;s[1]=t[1]>o?s[1]:0;i.overflowed[0]&&tt(s[0],ct[0],p,"y",lt,!1);i.overflowed[1]&&tt(s[1],ct[1],p,"x",lt,!1)}}}function wt(n,t){var i=[1.5*t,2*t,t/1.5,t/2];return n>90?t>4?i[0]:i[3]:n>60?t>3?i[3]:i[2]:n>30?t>8?i[1]:t>6?i[0]:t>4?t:i[2]:t>8?t:i[3]}function tt(n,t,i,r,f,e){n&&u(g,n.toString(),{dur:t,scrollEasing:i,dir:r,overwrite:f,drag:e})}var st,k,d,bt,kt,dt,gt,ht,y,c,s,ct,it,rt,g=n(this),i=g.data(t),f=i.opt,a=t+"_"+i.idx,ut=n("#mCSB_"+i.idx),b=n("#mCSB_"+i.idx+"_container"),ft=[n("#mCSB_"+i.idx+"_dragger_vertical"),n("#mCSB_"+i.idx+"_dragger_horizontal")],et=[],ot=[],ni=0,lt="yx"===f.axis?"none":"all",v=[],ti=b.find("iframe"),p=["touchstart."+a+" pointerdown."+a+" MSPointerDown."+a,"touchmove."+a+" pointermove."+a+" MSPointerMove."+a,"touchend."+a+" pointerup."+a+" MSPointerUp."+a],ii=void 0!==document.body.style.touchAction&&""!==document.body.style.touchAction;b.bind(p[0],function(n){at(n)}).bind(p[1],function(n){vt(n)});ut.bind(p[0],function(n){yt(n)}).bind(p[2],function(n){pt(n)});ti.length&&ti.each(function(){n(this).bind("load",function(){l(this)&&n(this.contentDocument||this.contentWindow.document).bind(p[0],function(n){at(n);yt(n)}).bind(p[1],function(n){vt(n)}).bind(p[2],function(n){pt(n)})})})},ei=function(){function y(){return window.getSelection?window.getSelection().toString():document.selection&&"Control"!=document.selection.type?document.selection.createRange().text:0}function i(n,t,i){l.type=i&&u?"stepped":"stepless";l.scrollAmount=10;ut(a,n,t,"mcsLinearOut",i?60:null)}var u,a=n(this),f=a.data(t),v=f.opt,l=f.sequential,s=t+"_"+f.idx,o=n("#mCSB_"+f.idx+"_container"),c=o.parent();o.bind("mousedown."+s,function(){h||u||(u=1,e=!0)}).add(document).bind("mousemove."+s,function(n){if(!h&&u&&y()){var s=o.offset(),t=r(n)[0]-s.top+o[0].offsetTop,e=r(n)[1]-s.left+o[0].offsetLeft;t>0&&t<c.height()&&e>0&&e<c.width()?l.step&&i("off",null,"stepped"):("x"!==v.axis&&f.overflowed[0]&&(0>t?i("on",38):t>c.height()&&i("on",40)),"y"!==v.axis&&f.overflowed[1]&&(0>e?i("on",37):e>c.width()&&i("on",39)))}}).bind("mouseup."+s+" dragend."+s,function(){h||(u&&(u=0,i("off",null)),e=!1)})},oi=function(){function h(t,h){var a,v;if(o(s),!si(s,t.target)){if(a="auto"!==i.mouseWheel.deltaFactor?parseInt(i.mouseWheel.deltaFactor):p&&t.deltaFactor<100?100:t.deltaFactor||100,v=i.scrollInertia,"x"===i.axis||"x"===i.mouseWheel.axis)var y="x",l=[Math.round(a*r.scrollRatio.x),parseInt(i.mouseWheel.scrollAmount)],w="auto"!==i.mouseWheel.scrollAmount?l[1]:l[0]>=e.width()?.9*e.width():l[0],k=Math.abs(n("#mCSB_"+r.idx+"_container")[0].offsetLeft),b=f[1][0].offsetLeft,d=f[1].parent().width()-f[1].width(),c="y"===i.mouseWheel.axis?t.deltaY||h:t.deltaX;else var y="y",l=[Math.round(a*r.scrollRatio.y),parseInt(i.mouseWheel.scrollAmount)],w="auto"!==i.mouseWheel.scrollAmount?l[1]:l[0]>=e.height()?.9*e.height():l[0],k=Math.abs(n("#mCSB_"+r.idx+"_container")[0].offsetTop),b=f[0][0].offsetTop,d=f[0].parent().height()-f[0].height(),c=t.deltaY||h;("y"!==y||r.overflowed[0])&&("x"!==y||r.overflowed[1])&&((i.mouseWheel.invert||t.webkitDirectionInvertedFromDevice)&&(c=-c),i.mouseWheel.normalizeDelta&&(c=0>c?-1:1),(c>0&&0!==b||0>c&&b!==d||i.mouseWheel.preventDefault)&&(t.stopImmediatePropagation(),t.preventDefault()),t.deltaFactor<5&&!i.mouseWheel.normalizeDelta&&(w=t.deltaFactor,v=17),u(s,(k-c*w).toString(),{dir:y,dur:v}))}}if(n(this).data(t)){var s=n(this),r=s.data(t),i=r.opt,c=t+"_"+r.idx,e=n("#mCSB_"+r.idx),f=[n("#mCSB_"+r.idx+"_dragger_vertical"),n("#mCSB_"+r.idx+"_dragger_horizontal")],a=n("#mCSB_"+r.idx+"_container").find("iframe");a.length&&a.each(function(){n(this).bind("load",function(){l(this)&&n(this.contentDocument||this.contentWindow.document).bind("mousewheel."+c,function(n,t){h(n,t)})})});e.bind("mousewheel."+c,function(n,t){h(n,t)})}},rt={},l=function(t){var r=!1,i=!1,u=null,f;if(void 0===t?i="#empty":void 0!==n(t).attr("id")&&(i=n(t).attr("id")),i!==!1&&void 0!==rt[i])return rt[i];if(t){try{f=t.contentDocument||t.contentWindow.document;u=f.body.innerHTML}catch(e){}r=null!==u}else{try{f=top.document;u=f.body.innerHTML}catch(e){}r=null!==u}return i!==!1&&(rt[i]=r),r},lt=function(n){var t=this.find("iframe"),i;t.length&&(i=n?"auto":"none",t.css("pointer-events",i))},si=function(i,r){var u=r.nodeName.toLowerCase(),f=i.data(t).opt.mouseWheel.disableOver;return n.inArray(u,f)>-1&&!(n.inArray(u,["select","textarea"])>-1&&!n(r).is(":focus"))},hi=function(){var s,h=n(this),f=h.data(t),r=t+"_"+f.idx,c=n("#mCSB_"+f.idx+"_container"),l=c.parent(),a=n(".mCSB_"+f.idx+"_scrollbar ."+i[12]);a.bind("mousedown."+r+" touchstart."+r+" pointerdown."+r+" MSPointerDown."+r,function(t){e=!0;n(t.target).hasClass("mCSB_dragger")||(s=1)}).bind("touchend."+r+" pointerup."+r+" MSPointerUp."+r,function(){e=!1}).bind("click."+r,function(t){var r,e;if(s&&(s=0,n(t.target).hasClass(i[12])||n(t.target).hasClass("mCSB_draggerRail"))){if(o(h),r=n(this),e=r.find(".mCSB_dragger"),r.parent(".mCSB_scrollTools_horizontal").length>0){if(!f.overflowed[1])return;var v="x",a=t.pageX>e.offset().left?-1:1,y=Math.abs(c[0].offsetLeft)-a*.9*l.width()}else{if(!f.overflowed[0])return;var v="y",a=t.pageY>e.offset().top?-1:1,y=Math.abs(c[0].offsetTop)-a*.9*l.height()}u(h,y.toString(),{dir:v,scrollEasing:"mcsEaseInOut"})}})},ci=function(){var i=n(this),s=i.data(t),e=s.opt,c=t+"_"+s.idx,r=n("#mCSB_"+s.idx+"_container"),h=r.parent();r.bind("focusin."+c,function(){var t=n(document.activeElement),c=r.find(".mCustomScrollBox").length,s=0;t.is(e.advanced.autoScrollOnFocus)&&(o(i),clearTimeout(i[0]._focusTimeout),i[0]._focusTimer=c?(s+17)*c:0,i[0]._focusTimeout=setTimeout(function(){var n=[f(t)[0],f(t)[1]],o=[r[0].offsetTop,r[0].offsetLeft],c=[o[0]+n[0]>=0&&o[0]+n[0]<h.height()-t.outerHeight(!1),o[1]+n[1]>=0&&o[0]+n[1]<h.width()-t.outerWidth(!1)],l="yx"!==e.axis||c[0]||c[1]?"all":"none";"x"===e.axis||c[0]||u(i,n[0].toString(),{dir:"y",scrollEasing:"mcsEaseInOut",overwrite:l,dur:s});"y"===e.axis||c[1]||u(i,n[1].toString(),{dir:"x",scrollEasing:"mcsEaseInOut",overwrite:l,dur:s})},i[0]._focusTimer))})},li=function(){var u=n(this),i=u.data(t),f=t+"_"+i.idx,r=n("#mCSB_"+i.idx+"_container").parent();r.bind("scroll."+f,function(){0===r.scrollTop()&&0===r.scrollLeft()||n(".mCSB_"+i.idx+"_scrollbar").css("visibility","hidden")})},ai=function(){var f=n(this),r=f.data(t),o=r.opt,u=r.sequential,i=t+"_"+r.idx,s=".mCSB_"+r.idx+"_scrollbar",h=n(s+">a");h.bind("contextmenu."+i,function(n){n.preventDefault()}).bind("mousedown."+i+" touchstart."+i+" pointerdown."+i+" MSPointerDown."+i+" mouseup."+i+" touchend."+i+" pointerup."+i+" MSPointerUp."+i+" mouseout."+i+" pointerout."+i+" MSPointerOut."+i+" click."+i,function(t){function i(n,t){u.scrollAmount=o.scrollButtons.scrollAmount;ut(f,n,t)}if(t.preventDefault(),yt(t)){var s=n(this).attr("class");switch(u.type=o.scrollButtons.scrollType,t.type){case"mousedown":case"touchstart":case"pointerdown":case"MSPointerDown":if("stepped"===u.type)return;e=!0;r.tweenRunning=!1;i("on",s);break;case"mouseup":case"touchend":case"pointerup":case"MSPointerUp":case"mouseout":case"pointerout":case"MSPointerOut":if("stepped"===u.type)return;e=!1;u.dir&&i("off",s);break;case"click":if("stepped"!==u.type||r.tweenRunning)return;i("on",s)}}})},vi=function(){function a(t){function w(n,t){s.type=r.keyboard.scrollType;s.scrollAmount=r.keyboard.scrollAmount;"stepped"===s.type&&i.tweenRunning||ut(e,n,t)}var c,y,p,l,a;switch(t.type){case"blur":i.tweenRunning&&s.dir&&w("off",null);break;case"keydown":case"keyup":if(c=t.keyCode?t.keyCode:t.which,y="on","x"!==r.axis&&(38===c||40===c)||"y"!==r.axis&&(37===c||39===c)){if((38===c||40===c)&&!i.overflowed[0]||(37===c||39===c)&&!i.overflowed[1])return;"keyup"===t.type&&(y="off");n(document.activeElement).is(v)||(t.preventDefault(),t.stopImmediatePropagation(),w(y,c))}else 33===c||34===c?((i.overflowed[0]||i.overflowed[1])&&(t.preventDefault(),t.stopImmediatePropagation()),"keyup"===t.type)&&(o(e),p=34===c?-1:1,"x"===r.axis||"yx"===r.axis&&i.overflowed[1]&&!i.overflowed[0]?(l="x",a=Math.abs(f[0].offsetLeft)-p*.9*h.width()):(l="y",a=Math.abs(f[0].offsetTop)-p*.9*h.height()),u(e,a.toString(),{dir:l,scrollEasing:"mcsEaseInOut"})):35!==c&&36!==c||n(document.activeElement).is(v)||((i.overflowed[0]||i.overflowed[1])&&(t.preventDefault(),t.stopImmediatePropagation()),"keyup"!==t.type)||("x"===r.axis||"yx"===r.axis&&i.overflowed[1]&&!i.overflowed[0]?(l="x",a=35===c?Math.abs(h.width()-f.outerWidth(!1)):0):(l="y",a=35===c?Math.abs(h.height()-f.outerHeight(!1)):0),u(e,a.toString(),{dir:l,scrollEasing:"mcsEaseInOut"}))}}var e=n(this),i=e.data(t),r=i.opt,s=i.sequential,c=t+"_"+i.idx,w=n("#mCSB_"+i.idx),f=n("#mCSB_"+i.idx+"_container"),h=f.parent(),v="input,textarea,select,datalist,keygen,[contenteditable='true']",y=f.find("iframe"),p=["blur."+c+" keydown."+c+" keyup."+c];y.length&&y.each(function(){n(this).bind("load",function(){l(this)&&n(this.contentDocument||this.contentWindow.document).bind(p[0],function(n){a(n)})})});w.attr("tabindex","0").bind(p[0],function(n){a(n)})},ut=function(r,f,e,s,h){function y(n){l.snapAmount&&(c.scrollAmount=l.snapAmount instanceof Array?"x"===c.dir[0]?l.snapAmount[1]:l.snapAmount[0]:l.snapAmount);var i="stepped"!==c.type,f=h?h:n?i?k/1.5:d:1e3/60,e=n?i?7.5:40:2.5,t=[Math.abs(p[0].offsetTop),Math.abs(p[0].offsetLeft)],o=[v.scrollRatio.y>10?10:v.scrollRatio.y,v.scrollRatio.x>10?10:v.scrollRatio.x],w="x"===c.dir[0]?t[1]+c.dir[1]*o[1]*e:t[0]+c.dir[1]*o[0]*e,b="x"===c.dir[0]?t[1]+c.dir[1]*parseInt(c.scrollAmount):t[0]+c.dir[1]*parseInt(c.scrollAmount),a="auto"!==c.scrollAmount?b:w,g=s?s:n?i?"mcsLinearOut":"mcsEaseInOut":"mcsLinear",nt=!!n;return n&&17>f&&(a="x"===c.dir[0]?t[1]:t[0]),u(r,a.toString(),{dir:c.dir[0],scrollEasing:g,dur:f,onComplete:nt}),n?void(c.dir=!1):(clearTimeout(c.step),void(c.step=setTimeout(function(){y()},f)))}function b(){clearTimeout(c.step);a(c,"step");o(r)}var v=r.data(t),l=v.opt,c=v.sequential,p=n("#mCSB_"+v.idx+"_container"),w="stepped"===c.type,k=l.scrollInertia<26?26:l.scrollInertia,d=l.scrollInertia<1?17:l.scrollInertia;switch(f){case"on":if(c.dir=[e===i[16]||e===i[15]||39===e||37===e?"x":"y",e===i[13]||e===i[15]||38===e||37===e?-1:1],o(r),tt(e)&&"stepped"===c.type)return;y(w);break;case"off":b();(w||v.tweenRunning&&c.dir)&&y(!0)}},ft=function(i){var u=n(this).data(t).opt,r=[];return"function"==typeof i&&(i=i()),i instanceof Array?r=i.length>1?[i[0],i[1]]:"x"===u.axis?[null,i[0]]:[i[0],null]:(r[0]=i.y?i.y:i.x||"x"===u.axis?null:i,r[1]=i.x?i.x:i.y||"y"===u.axis?null:i),"function"==typeof r[0]&&(r[0]=r[0]()),"function"==typeof r[1]&&(r[1]=r[1]()),r},at=function(i,r){var h,e;if(null!=i&&"undefined"!=typeof i){var c=n(this),l=c.data(t),v=l.opt,u=n("#mCSB_"+l.idx+"_container"),o=u.parent(),y=typeof i;r||(r="x"===v.axis?"x":"y");var p="x"===r?u.outerWidth(!1)-o.width():u.outerHeight(!1)-o.height(),a="x"===r?u[0].offsetLeft:u[0].offsetTop,w="x"===r?"left":"top";switch(y){case"function":return i();case"object":return(e=i.jquery?i:n(i),!e.length)?void 0:"x"===r?f(e)[1]:f(e)[0];case"string":case"number":return tt(i)?Math.abs(i):-1!==i.indexOf("%")?Math.abs(p*parseInt(i)/100):-1!==i.indexOf("-=")?Math.abs(a-parseInt(i.split("-=")[1])):-1!==i.indexOf("+=")?(h=a+parseInt(i.split("+=")[1]),h>=0?0:Math.abs(h)):-1!==i.indexOf("px")&&tt(i.split("px")[0])?Math.abs(i.split("px")[0]):"top"===i||"left"===i?0:"bottom"===i?Math.abs(o.height()-u.outerHeight(!1)):"right"===i?Math.abs(o.width()-u.outerWidth(!1)):"first"===i||"last"===i?(e=u.find(":"+i),"x"===r?f(e)[1]:f(e)[0]):n(i).length?"x"===r?f(n(i))[1]:f(n(i))[0]:(u.css(w,i),void s.update.call(null,c[0]))}}},et=function(r){function c(){return clearTimeout(e[0].autoUpdate),0===o.parents("html").length?void(o=null):void(e[0].autoUpdate=setTimeout(function(){return f.advanced.updateOnSelectorChange&&(u.poll.change.n=v(),u.poll.change.n!==u.poll.change.o)?(u.poll.change.o=u.poll.change.n,void h(3)):f.advanced.updateOnContentResize&&(u.poll.size.n=o[0].scrollHeight+o[0].scrollWidth+e[0].offsetHeight+o[0].offsetHeight+o[0].offsetWidth,u.poll.size.n!==u.poll.size.o)?(u.poll.size.o=u.poll.size.n,void h(1)):!f.advanced.updateOnImageLoad||"auto"===f.advanced.updateOnImageLoad&&"y"===f.axis||(u.poll.img.n=e.find("img").length,u.poll.img.n===u.poll.img.o)?void((f.advanced.updateOnSelectorChange||f.advanced.updateOnContentResize||f.advanced.updateOnImageLoad)&&c()):(u.poll.img.o=u.poll.img.n,void e.find("img").each(function(){l(this)}))},f.advanced.autoUpdateTimeout))}function l(t){function u(n,t){return function(){return t.apply(n,arguments)}}function f(){this.onload=null;n(t).addClass(i[2]);h(2)}if(n(t).hasClass(i[2]))return void h();var r=new Image;r.onload=u(r,f);r.src=t.src}function v(){f.advanced.updateOnSelectorChange===!0&&(f.advanced.updateOnSelectorChange="*");var n=0,t=e.find(f.advanced.updateOnSelectorChange);return f.advanced.updateOnSelectorChange&&t.length>0&&t.each(function(){n+=this.offsetHeight+this.offsetWidth}),n}function h(n){clearTimeout(e[0].autoUpdate);s.update.call(null,o[0],n)}var o=n(this),u=o.data(t),f=u.opt,e=n("#mCSB_"+u.idx+"_container");return r?(clearTimeout(e[0].autoUpdate),void a(e[0],"autoUpdate")):void c()},yi=function(n,t,i){return Math.round(n/t)*t-i},o=function(i){var r=i.data(t),u=n("#mCSB_"+r.idx+"_container,#mCSB_"+r.idx+"_container_wrapper,#mCSB_"+r.idx+"_dragger_vertical,#mCSB_"+r.idx+"_dragger_horizontal");u.each(function(){pi.call(this)})},u=function(i,r,u){function h(n){return f&&e.callbacks[n]&&"function"==typeof e.callbacks[n]}function rt(){return[e.callbacks.alwaysTriggerOffsets||w>=l[0]+v,e.callbacks.alwaysTriggerOffsets||-y>=w]}function a(){var n=[o[0].offsetTop,o[0].offsetLeft],t=[c[0].offsetTop,c[0].offsetLeft],r=[o.outerHeight(!1),o.outerWidth(!1)],f=[p.height(),p.width()];i[0].mcs={content:o,top:n[0],left:n[1],draggerTop:t[0],draggerLeft:t[1],topPct:Math.round(100*Math.abs(n[0])/(Math.abs(r[0])-f[0])),leftPct:Math.round(100*Math.abs(n[1])/(Math.abs(r[1])-f[1])),direction:u.dir}}var f=i.data(t),e=f.opt,ut={trigger:"internal",dir:"y",scrollEasing:"mcsEaseOut",drag:!1,dur:e.scrollInertia,overwrite:"all",callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},u=n.extend(ut,u),k=[u.dur,u.drag?0:u.dur],p=n("#mCSB_"+f.idx),o=n("#mCSB_"+f.idx+"_container"),b=o.parent(),g=e.callbacks.onTotalScrollOffset?ft.call(i,e.callbacks.onTotalScrollOffset):[0,0],nt=e.callbacks.onTotalScrollBackOffset?ft.call(i,e.callbacks.onTotalScrollBackOffset):[0,0],tt;if(f.trigger=u.trigger,0===b.scrollTop()&&0===b.scrollLeft()||(n(".mCSB_"+f.idx+"_scrollbar").css("visibility","visible"),b.scrollTop(0).scrollLeft(0)),"_resetY"!==r||f.contentReset.y||(h("onOverflowYNone")&&e.callbacks.onOverflowYNone.call(i[0]),f.contentReset.y=1),"_resetX"!==r||f.contentReset.x||(h("onOverflowXNone")&&e.callbacks.onOverflowXNone.call(i[0]),f.contentReset.x=1),"_resetY"!==r&&"_resetX"!==r){(!f.contentReset.y&&i[0].mcs||!f.overflowed[0]||(h("onOverflowY")&&e.callbacks.onOverflowY.call(i[0]),f.contentReset.x=null),!f.contentReset.x&&i[0].mcs||!f.overflowed[1]||(h("onOverflowX")&&e.callbacks.onOverflowX.call(i[0]),f.contentReset.x=null),e.snapAmount)&&(tt=e.snapAmount instanceof Array?"x"===u.dir?e.snapAmount[1]:e.snapAmount[0]:e.snapAmount,r=yi(r,tt,e.snapOffset));switch(u.dir){case"x":var c=n("#mCSB_"+f.idx+"_dragger_horizontal"),it="left",w=o[0].offsetLeft,l=[p.width()-o.outerWidth(!1),c.parent().width()-c.width()],s=[r,0===r?0:r/f.scrollRatio.x],v=g[1],y=nt[1],et=v>0?v/f.scrollRatio.x:0,ot=y>0?y/f.scrollRatio.x:0;break;case"y":var c=n("#mCSB_"+f.idx+"_dragger_vertical"),it="top",w=o[0].offsetTop,l=[p.height()-o.outerHeight(!1),c.parent().height()-c.height()],s=[r,0===r?0:r/f.scrollRatio.y],v=g[0],y=nt[0],et=v>0?v/f.scrollRatio.y:0,ot=y>0?y/f.scrollRatio.y:0}s[1]<0||0===s[0]&&0===s[1]?s=[0,0]:s[1]>=l[1]?s=[l[0],l[1]]:s[0]=-s[0];i[0].mcs||(a(),h("onInit")&&e.callbacks.onInit.call(i[0]));clearTimeout(o[0].onCompleteTimeout);vt(c[0],it,Math.round(s[1]),k[1],u.scrollEasing);!f.tweenRunning&&(0===w&&s[0]>=0||w===l[0]&&s[0]<=l[0])||vt(o[0],it,Math.round(s[0]),k[0],u.scrollEasing,u.overwrite,{onStart:function(){u.callbacks&&u.onStart&&!f.tweenRunning&&(h("onScrollStart")&&(a(),e.callbacks.onScrollStart.call(i[0])),f.tweenRunning=!0,d(c),f.cbOffsets=rt())},onUpdate:function(){u.callbacks&&u.onUpdate&&h("whileScrolling")&&(a(),e.callbacks.whileScrolling.call(i[0]))},onComplete:function(){if(u.callbacks&&u.onComplete){"yx"===e.axis&&clearTimeout(o[0].onCompleteTimeout);var n=o[0].idleTimer||0;o[0].onCompleteTimeout=setTimeout(function(){h("onScroll")&&(a(),e.callbacks.onScroll.call(i[0]));h("onTotalScroll")&&s[1]>=l[1]-et&&f.cbOffsets[0]&&(a(),e.callbacks.onTotalScroll.call(i[0]));h("onTotalScrollBack")&&s[1]<=ot&&f.cbOffsets[1]&&(a(),e.callbacks.onTotalScrollBack.call(i[0]));f.tweenRunning=!1;o[0].idleTimer=0;d(c,"hide")},n)}}})}},vt=function(n,t,i,r,u,f,e){function a(){o.stop||(s||g.call(),s=w()-it,v(),s>=o.time&&(o.time=s>o.time?s+h-(s-o.time):s+h-1,o.time<s+1&&(o.time=s+1)),o.time<r?o.id=c(a):tt.call())}function v(){r>0?(o.currVal=d(o.time,l,y,r,u),p[t]=Math.round(o.currVal)+"px"):p[t]=i+"px";nt.call()}function b(){h=1e3/60;o.time=s+h;c=window.requestAnimationFrame?window.requestAnimationFrame:function(n){return v(),setTimeout(n,.01)};o.id=c(a)}function k(){null!=o.id&&(window.requestAnimationFrame?window.cancelAnimationFrame(o.id):clearTimeout(o.id),o.id=null)}function d(n,t,i,r,u){switch(u){case"linear":case"mcsLinear":return i*n/r+t;case"mcsLinearOut":return n/=r,n--,i*Math.sqrt(1-n*n)+t;case"easeInOutSmooth":return n/=r/2,1>n?i/2*n*n+t:(n--,-i/2*(n*(n-2)-1)+t);case"easeInOutStrong":return n/=r/2,1>n?i/2*Math.pow(2,10*(n-1))+t:(n--,i/2*(-Math.pow(2,-10*n)+2)+t);case"easeInOut":case"mcsEaseInOut":return n/=r/2,1>n?i/2*n*n*n+t:(n-=2,i/2*(n*n*n+2)+t);case"easeOutSmooth":return n/=r,n--,-i*(n*n*n*n-1)+t;case"easeOutStrong":return i*(-Math.pow(2,-10*n/r)+1)+t;case"easeOut":case"mcsEaseOut":default:var f=(n/=r)*n,e=f*n;return t+i*(.499999999999997*e*f+-2.5*f*f+5.5*e+-6.5*f+4*n)}}var y;n._mTween||(n._mTween={top:{},left:{}});var h,c,e=e||{},g=e.onStart||function(){},nt=e.onUpdate||function(){},tt=e.onComplete||function(){},it=w(),s=0,l=n.offsetTop,p=n.style,o=n._mTween[t];"left"===t&&(l=n.offsetLeft);y=i-l;o.stop=0;"none"!==f&&k();b()},w=function(){return window.performance&&window.performance.now?window.performance.now():window.performance&&window.performance.webkitNow?window.performance.webkitNow():Date.now?Date.now():(new Date).getTime()},pi=function(){var n=this,r,i,t;for(n._mTween||(n._mTween={top:{},left:{}}),r=["top","left"],i=0;i<r.length;i++)t=r[i],n._mTween[t].id&&(window.requestAnimationFrame?window.cancelAnimationFrame(n._mTween[t].id):clearTimeout(n._mTween[t].id),n._mTween[t].id=null,n._mTween[t].stop=1)},a=function(n,t){try{delete n[t]}catch(i){n[t]=null}},yt=function(n){return!(n.which&&1!==n.which)},nt=function(n){var t=n.originalEvent.pointerType;return!(t&&"touch"!==t&&2!==t)},tt=function(n){return!isNaN(parseFloat(n))&&isFinite(n)},f=function(n){var t=n.parents(".mCSB_container");return[n.offset().top-t.offset().top,n.offset().left-t.offset().left]},wi=function(){function t(){var t=["webkit","moz","ms","o"],n;if("hidden"in document)return"hidden";for(n=0;n<t.length;n++)if(t[n]+"Hidden"in document)return t[n]+"Hidden";return null}var n=t();return n?document[n]:!1};n.fn[c]=function(t){return s[t]?s[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof t&&t?void n.error("Method "+t+" does not exist"):s.init.apply(this,arguments)};n[c]=function(t){return s[t]?s[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof t&&t?void n.error("Method "+t+" does not exist"):s.init.apply(this,arguments)};n[c].defaults=ot;window[c]=!0;n(window).bind("load",function(){n(it)[c]();n.extend(n.expr[":"],{mcsInView:n.expr[":"].mcsInView||function(t){var e,r,i=n(t),u=i.parents(".mCSB_container");if(u.length)return e=u.parent(),r=[u[0].offsetTop,u[0].offsetLeft],r[0]+f(i)[0]>=0&&r[0]+f(i)[0]<e.height()-i.outerHeight(!1)&&r[1]+f(i)[1]>=0&&r[1]+f(i)[1]<e.width()-i.outerWidth(!1)},mcsInSight:n.expr[":"].mcsInSight||function(t,i,r){var e,u,o,s,h=n(t),c=h.parents(".mCSB_container"),l="exact"===r[3]?[[1,0],[1,0]]:[[.9,.1],[.6,.4]];if(c.length)return e=[h.outerHeight(!1),h.outerWidth(!1)],o=[c[0].offsetTop+f(h)[0],c[0].offsetLeft+f(h)[1]],u=[c.parent()[0].offsetHeight,c.parent()[0].offsetWidth],s=[e[0]<u[0]?l[0]:l[1],e[1]<u[1]?l[0]:l[1]],o[0]-u[0]*s[0][0]<0&&o[0]+e[0]-u[0]*s[0][1]>=0&&o[1]-u[1]*s[1][0]<0&&o[1]+e[1]-u[1]*s[1][1]>=0},mcsOverflow:n.expr[":"].mcsOverflow||function(i){var r=n(i).data(t);if(r)return r.overflowed[0]||r.overflowed[1]}})})})}),function(n){typeof define=="function"&&define.amd?define(["jquery"],n):typeof exports=="object"?module.exports=n:n(jQuery)}(function(n){function u(r){var u=r||window.event,w=c.call(arguments,1),l=0,s=0,e=0,a=0,b=0,k=0,v,y,p;if(r=n.event.fix(u),r.type="mousewheel","detail"in u&&(e=u.detail*-1),"wheelDelta"in u&&(e=u.wheelDelta),"wheelDeltaY"in u&&(e=u.wheelDeltaY),"wheelDeltaX"in u&&(s=u.wheelDeltaX*-1),"axis"in u&&u.axis===u.HORIZONTAL_AXIS&&(s=e*-1,e=0),l=e===0?s:e,"deltaY"in u&&(e=u.deltaY*-1,l=e),"deltaX"in u&&(s=u.deltaX,e===0&&(l=s*-1)),e!==0||s!==0)return u.deltaMode===1?(v=n.data(this,"mousewheel-line-height"),l*=v,e*=v,s*=v):u.deltaMode===2&&(y=n.data(this,"mousewheel-page-height"),l*=y,e*=y,s*=y),a=Math.max(Math.abs(e),Math.abs(s)),(!t||a<t)&&(t=a,o(u,a)&&(t/=40)),o(u,a)&&(l/=40,s/=40,e/=40),l=Math[l>=1?"floor":"ceil"](l/t),s=Math[s>=1?"floor":"ceil"](s/t),e=Math[e>=1?"floor":"ceil"](e/t),i.settings.normalizeOffset&&this.getBoundingClientRect&&(p=this.getBoundingClientRect(),b=r.clientX-p.left,k=r.clientY-p.top),r.deltaX=s,r.deltaY=e,r.deltaFactor=t,r.offsetX=b,r.offsetY=k,r.deltaMode=0,w.unshift(r,l,s,e),f&&clearTimeout(f),f=setTimeout(h,200),(n.event.dispatch||n.event.handle).apply(this,w)}function h(){t=null}function o(n,t){return i.settings.adjustOldDeltas&&n.type==="mousewheel"&&t%120==0}var s=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],r="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],c=Array.prototype.slice,f,t,e,i;if(n.event.fixHooks)for(e=s.length;e;)n.event.fixHooks[s[--e]]=n.event.mouseHooks;i=n.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var t=r.length;t;)this.addEventListener(r[--t],u,!1);else this.onmousewheel=u;n.data(this,"mousewheel-line-height",i.getLineHeight(this));n.data(this,"mousewheel-page-height",i.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var t=r.length;t;)this.removeEventListener(r[--t],u,!1);else this.onmousewheel=null;n.removeData(this,"mousewheel-line-height");n.removeData(this,"mousewheel-page-height")},getLineHeight:function(t){var r=n(t),i=r["offsetParent"in n.fn?"offsetParent":"parent"]();return i.length||(i=n("body")),parseInt(i.css("fontSize"),10)||parseInt(r.css("fontSize"),10)||16},getPageHeight:function(t){return n(t).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};n.fn.extend({mousewheel:function(n){return n?this.bind("mousewheel",n):this.trigger("mousewheel")},unmousewheel:function(n){return this.unbind("mousewheel",n)}})}),function(n){"use strict";typeof define=="function"&&define.amd?define(["jquery"],n):typeof module!="undefined"&&module.exports?module.exports=n(require("jquery")):n(jQuery)}(function(n){"use strict";function r(t){return!t.nodeName||n.inArray(t.nodeName.toLowerCase(),["iframe","#document","html","body"])!==-1}function i(t){return n.isFunction(t)||n.isPlainObject(t)?t:{top:t,left:t}}var t=n.scrollTo=function(t,i,r){return n(window).scrollTo(t,i,r)};return t.defaults={axis:"xy",duration:0,limit:!0},n.fn.scrollTo=function(u,f,e){typeof f=="object"&&(e=f,f=0);typeof e=="function"&&(e={onAfter:e});u==="max"&&(u=9e9);e=n.extend({},t.defaults,e);f=f||e.duration;var o=e.queue&&e.axis.length>1;return o&&(f/=2),e.offset=i(e.offset),e.over=i(e.over),this.each(function(){function y(t){var i=n.extend({},e,{queue:!0,duration:f,complete:t&&function(){t.call(c,s,e)}});a.animate(h,i)}var p;if(u!==null){var l=r(this),c=l?this.contentWindow||window:this,a=n(c),s=u,h={},v;switch(typeof s){case"number":case"string":if(/^([+-]=?)?\d+(\.\d+)?(px|%)?$/.test(s)){s=i(s);break}s=l?n(s):n(s,c);case"object":if(s.length===0)return;(s.is||s.style)&&(v=(s=n(s)).offset())}p=n.isFunction(e.offset)&&e.offset(c,s)||e.offset;n.each(e.axis.split(""),function(n,i){var w=i==="x"?"Left":"Top",u=w.toLowerCase(),r="scroll"+w,b=a[r](),k=t.max(c,i),f;v?(h[r]=v[u]+(l?0:b-a.offset()[u]),e.margin&&(h[r]-=parseInt(s.css("margin"+w),10)||0,h[r]-=parseInt(s.css("border"+w+"Width"),10)||0),h[r]+=p[u]||0,e.over[u]&&(h[r]+=s[i==="x"?"width":"height"]()*e.over[u])):(f=s[u],h[r]=f.slice&&f.slice(-1)==="%"?parseFloat(f)/100*k:f);e.limit&&/^\d+$/.test(h[r])&&(h[r]=h[r]<=0?0:Math.min(h[r],k));!n&&e.axis.length>1&&(b===h[r]?h={}:o&&(y(e.onAfterFirst),h={}))});y(e.onAfter)}})},t.max=function(t,i){var u=i==="x"?"Width":"Height",f="scroll"+u;if(!r(t))return t[f]-n(t)[u.toLowerCase()]();var e="client"+u,o=t.ownerDocument||t.document,s=o.documentElement,h=o.body;return Math.max(s[f],h[f])-Math.min(s[e],h[e])},n.Tween.propHooks.scrollLeft=n.Tween.propHooks.scrollTop={get:function(t){return n(t.elem)[t.prop]()},set:function(t){var r=this.get(t),i;if(t.options.interrupt&&t._last&&t._last!==r)return n(t.elem).stop();i=Math.round(t.now);r!==i&&(n(t.elem)[t.prop](i),t._last=this.get(t))}},t}),function(n){typeof define=="function"&&define.amd?define(["jquery"],n):typeof exports=="object"?n(require("jquery")):n(jQuery)}(function(n){var i=0,t=Array.prototype.slice,r;n.cleanData=function(t){return function(i){for(var r,u,f=0;(u=i[f])!=null;f++)try{r=n._data(u,"events");r&&r.remove&&n(u).triggerHandler("remove")}catch(e){}t(i)}}(n.cleanData);n.widget=function(t,i,r){var s,f,u,o,h={},e=t.split(".")[0];return t=t.split(".")[1],s=e+"-"+t,r||(r=i,i=n.Widget),n.expr[":"][s.toLowerCase()]=function(t){return!!n.data(t,s)},n[e]=n[e]||{},f=n[e][t],u=n[e][t]=function(n,t){if(!this._createWidget)return new u(n,t);arguments.length&&this._createWidget(n,t)},n.extend(u,f,{version:r.version,_proto:n.extend({},r),_childConstructors:[]}),o=new i,o.options=n.widget.extend({},o.options),n.each(r,function(t,r){if(!n.isFunction(r)){h[t]=r;return}h[t]=function(){var n=function(){return i.prototype[t].apply(this,arguments)},u=function(n){return i.prototype[t].apply(this,n)};return function(){var i=this._super,f=this._superApply,t;return this._super=n,this._superApply=u,t=r.apply(this,arguments),this._super=i,this._superApply=f,t}}()}),u.prototype=n.widget.extend(o,{widgetEventPrefix:f?o.widgetEventPrefix||t:t},h,{constructor:u,namespace:e,widgetName:t,widgetFullName:s}),f?(n.each(f._childConstructors,function(t,i){var r=i.prototype;n.widget(r.namespace+"."+r.widgetName,u,i._proto)}),delete f._childConstructors):i._childConstructors.push(u),n.widget.bridge(t,u),u};n.widget.extend=function(i){for(var e=t.call(arguments,1),f=0,o=e.length,r,u;f<o;f++)for(r in e[f])u=e[f][r],e[f].hasOwnProperty(r)&&u!==undefined&&(i[r]=n.isPlainObject(u)?n.isPlainObject(i[r])?n.widget.extend({},i[r],u):n.widget.extend({},u):u);return i};n.widget.bridge=function(i,r){var u=r.prototype.widgetFullName||i;n.fn[i]=function(f){var s=typeof f=="string",o=t.call(arguments,1),e=this;return s?this.each(function(){var t,r=n.data(this,u);return f==="instance"?(e=r,!1):r?!n.isFunction(r[f])||f.charAt(0)==="_"?n.error("no such method '"+f+"' for "+i+" widget instance"):(t=r[f].apply(r,o),t!==r&&t!==undefined?(e=t&&t.jquery?e.pushStack(t.get()):t,!1):void 0):n.error("cannot call methods on "+i+" prior to initialization; attempted to call method '"+f+"'")}):(o.length&&(f=n.widget.extend.apply(null,[f].concat(o))),this.each(function(){var t=n.data(this,u);t?(t.option(f||{}),t._init&&t._init()):n.data(this,u,new r(f,this))})),e}};n.Widget=function(){};n.Widget._childConstructors=[];n.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{disabled:!1,create:null},_createWidget:function(t,r){r=n(r||this.defaultElement||this)[0];this.element=n(r);this.uuid=i++;this.eventNamespace="."+this.widgetName+this.uuid;this.bindings=n();this.hoverable=n();this.focusable=n();r!==this&&(n.data(r,this.widgetFullName,this),this._on(!0,this.element,{remove:function(n){n.target===r&&this.destroy()}}),this.document=n(r.style?r.ownerDocument:r.document||r),this.window=n(this.document[0].defaultView||this.document[0].parentWindow));this.options=n.widget.extend({},this.options,this._getCreateOptions(),t);this._create();this._trigger("create",null,this._getCreateEventData());this._init()},_getCreateOptions:n.noop,_getCreateEventData:n.noop,_create:n.noop,_init:n.noop,destroy:function(){this._destroy();this.element.unbind(this.eventNamespace).removeData(this.widgetFullName).removeData(n.camelCase(this.widgetFullName));this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled ui-state-disabled");this.bindings.unbind(this.eventNamespace);this.hoverable.removeClass("ui-state-hover");this.focusable.removeClass("ui-state-focus")},_destroy:n.noop,widget:function(){return this.element},option:function(t,i){var e=t,r,u,f;if(arguments.length===0)return n.widget.extend({},this.options);if(typeof t=="string")if(e={},r=t.split("."),t=r.shift(),r.length){for(u=e[t]=n.widget.extend({},this.options[t]),f=0;f<r.length-1;f++)u[r[f]]=u[r[f]]||{},u=u[r[f]];if(t=r.pop(),arguments.length===1)return u[t]===undefined?null:u[t];u[t]=i}else{if(arguments.length===1)return this.options[t]===undefined?null:this.options[t];e[t]=i}return this._setOptions(e),this},_setOptions:function(n){for(var t in n)this._setOption(t,n[t]);return this},_setOption:function(n,t){return this.options[n]=t,n==="disabled"&&(this.widget().toggleClass(this.widgetFullName+"-disabled",!!t),t&&(this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus"))),this},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_on:function(t,i,r){var f,u=this;typeof t!="boolean"&&(r=i,i=t,t=!1);r?(i=f=n(i),this.bindings=this.bindings.add(i)):(r=i,i=this.element,f=this.widget());n.each(r,function(r,e){function o(){if(t||u.options.disabled!==!0&&!n(this).hasClass("ui-state-disabled"))return(typeof e=="string"?u[e]:e).apply(u,arguments)}typeof e!="string"&&(o.guid=e.guid=e.guid||o.guid||n.guid++);var s=r.match(/^([\w:-]*)\s*(.*)$/),h=s[1]+u.eventNamespace,c=s[2];c?f.delegate(c,h,o):i.bind(h,o)})},_off:function(t,i){i=(i||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace;t.unbind(i).undelegate(i);this.bindings=n(this.bindings.not(t).get());this.focusable=n(this.focusable.not(t).get());this.hoverable=n(this.hoverable.not(t).get())},_delay:function(n,t){function r(){return(typeof n=="string"?i[n]:n).apply(i,arguments)}var i=this;return setTimeout(r,t||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t);this._on(t,{mouseenter:function(t){n(t.currentTarget).addClass("ui-state-hover")},mouseleave:function(t){n(t.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t);this._on(t,{focusin:function(t){n(t.currentTarget).addClass("ui-state-focus")},focusout:function(t){n(t.currentTarget).removeClass("ui-state-focus")}})},_trigger:function(t,i,r){var u,f,e=this.options[t];if(r=r||{},i=n.Event(i),i.type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),i.target=this.element[0],f=i.originalEvent,f)for(u in f)u in i||(i[u]=f[u]);return this.element.trigger(i,r),!(n.isFunction(e)&&e.apply(this.element[0],[i].concat(r))===!1||i.isDefaultPrevented())}};n.each({show:"fadeIn",hide:"fadeOut"},function(t,i){n.Widget.prototype["_"+t]=function(r,u,f){typeof u=="string"&&(u={effect:u});var o,e=u?u===!0||typeof u=="number"?i:u.effect||i:t;u=u||{};typeof u=="number"&&(u={duration:u});o=!n.isEmptyObject(u);u.complete=f;u.delay&&r.delay(u.delay);o&&n.effects&&n.effects.effect[e]?r[t](u):e!==t&&r[e]?r[e](u.duration,u.easing,f):r.queue(function(i){n(this)[t]();f&&f.call(r[0]);i()})}});r=n.widget}),function(n){"use strict";typeof define=="function"&&define.amd?define(["jquery","jquery.ui.widget"],n):typeof exports=="object"?n(require("jquery"),require("./vendor/jquery.ui.widget")):n(window.jQuery)}(function(n){"use strict";function t(t){var i=t==="dragover";return function(r){r.dataTransfer=r.originalEvent&&r.originalEvent.dataTransfer;var u=r.dataTransfer;u&&n.inArray("Files",u.types)!==-1&&this._trigger(t,n.Event(t,{delegatedEvent:r}))!==!1&&(r.preventDefault(),i&&(u.dropEffect="copy"))}}n.support.fileInput=!(new RegExp("(Android (1\\.[0156]|2\\.[01]))|(Windows Phone (OS 7|8\\.0))|(XBLWP)|(ZuneWP)|(WPDesktop)|(w(eb)?OSBrowser)|(webOS)|(Kindle/(1\\.0|2\\.[05]|3\\.0))").test(window.navigator.userAgent)||n('<input type="file">').prop("disabled"));n.support.xhrFileUpload=!!(window.ProgressEvent&&window.FileReader);n.support.xhrFormDataFileUpload=!!window.FormData;n.support.blobSlice=window.Blob&&(Blob.prototype.slice||Blob.prototype.webkitSlice||Blob.prototype.mozSlice);n.widget("blueimp.fileupload",{options:{dropZone:n(document),pasteZone:undefined,fileInput:undefined,replaceFileInput:!0,paramName:undefined,singleFileUploads:!0,limitMultiFileUploads:undefined,limitMultiFileUploadSize:undefined,limitMultiFileUploadSizeOverhead:512,sequentialUploads:!1,limitConcurrentUploads:undefined,forceIframeTransport:!1,redirect:undefined,redirectParamName:undefined,postMessage:undefined,multipart:!0,maxChunkSize:undefined,uploadedBytes:undefined,recalculateProgress:!0,progressInterval:100,bitrateInterval:500,autoUpload:!0,messages:{uploadedBytes:"Uploaded bytes exceed file size"},i18n:function(t,i){return t=this.messages[t]||t.toString(),i&&n.each(i,function(n,i){t=t.replace("{"+n+"}",i)}),t},formData:function(n){return n.serializeArray()},add:function(t,i){if(t.isDefaultPrevented())return!1;(i.autoUpload||i.autoUpload!==!1&&n(this).fileupload("option","autoUpload"))&&i.process().done(function(){i.submit()})},processData:!1,contentType:!1,cache:!1,timeout:0},_specialOptions:["fileInput","dropZone","pasteZone","multipart","forceIframeTransport"],_blobSlice:n.support.blobSlice&&function(){var n=this.slice||this.webkitSlice||this.mozSlice;return n.apply(this,arguments)},_BitrateTimer:function(){this.timestamp=Date.now?Date.now():(new Date).getTime();this.loaded=0;this.bitrate=0;this.getBitrate=function(n,t,i){var r=n-this.timestamp;return(!this.bitrate||!i||r>i)&&(this.bitrate=(t-this.loaded)*(1e3/r)*8,this.loaded=t,this.timestamp=n),this.bitrate}},_isXHRUpload:function(t){return!t.forceIframeTransport&&(!t.multipart&&n.support.xhrFileUpload||n.support.xhrFormDataFileUpload)},_getFormData:function(t){var i;return n.type(t.formData)==="function"?t.formData(t.form):n.isArray(t.formData)?t.formData:n.type(t.formData)==="object"?(i=[],n.each(t.formData,function(n,t){i.push({name:n,value:t})}),i):[]},_getTotal:function(t){var i=0;return n.each(t,function(n,t){i+=t.size||1}),i},_initProgressObject:function(t){var i={loaded:0,total:0,bitrate:0};t._progress?n.extend(t._progress,i):t._progress=i},_initResponseObject:function(n){var t;if(n._response)for(t in n._response)n._response.hasOwnProperty(t)&&delete n._response[t];else n._response={}},_onProgress:function(t,i){if(t.lengthComputable){var r=Date.now?Date.now():(new Date).getTime(),u;if(i._time&&i.progressInterval&&r-i._time<i.progressInterval&&t.loaded!==t.total)return;i._time=r;u=Math.floor(t.loaded/t.total*(i.chunkSize||i._progress.total))+(i.uploadedBytes||0);this._progress.loaded+=u-i._progress.loaded;this._progress.bitrate=this._bitrateTimer.getBitrate(r,this._progress.loaded,i.bitrateInterval);i._progress.loaded=i.loaded=u;i._progress.bitrate=i.bitrate=i._bitrateTimer.getBitrate(r,u,i.bitrateInterval);this._trigger("progress",n.Event("progress",{delegatedEvent:t}),i);this._trigger("progressall",n.Event("progressall",{delegatedEvent:t}),this._progress)}},_initProgressListener:function(t){var r=this,i=t.xhr?t.xhr():n.ajaxSettings.xhr();i.upload&&(n(i.upload).bind("progress",function(n){var i=n.originalEvent;n.lengthComputable=i.lengthComputable;n.loaded=i.loaded;n.total=i.total;r._onProgress(n,t)}),t.xhr=function(){return i})},_isInstanceOf:function(n,t){return Object.prototype.toString.call(t)==="[object "+n+"]"},_initXHRData:function(t){var f=this,i,r=t.files[0],e=t.multipart||!n.support.xhrFileUpload,u=n.type(t.paramName)==="array"?t.paramName[0]:t.paramName;t.headers=n.extend({},t.headers);t.contentRange&&(t.headers["Content-Range"]=t.contentRange);e&&!t.blob&&this._isInstanceOf("File",r)||(t.headers["Content-Disposition"]='attachment; filename="'+encodeURI(r.name)+'"');e?n.support.xhrFormDataFileUpload&&(t.postMessage?(i=this._getFormData(t),t.blob?i.push({name:u,value:t.blob}):n.each(t.files,function(r,f){i.push({name:n.type(t.paramName)==="array"&&t.paramName[r]||u,value:f})})):(f._isInstanceOf("FormData",t.formData)?i=t.formData:(i=new FormData,n.each(this._getFormData(t),function(n,t){i.append(t.name,t.value)})),t.blob?i.append(u,t.blob,r.name):n.each(t.files,function(r,e){(f._isInstanceOf("File",e)||f._isInstanceOf("Blob",e))&&i.append(n.type(t.paramName)==="array"&&t.paramName[r]||u,e,e.uploadName||e.name)})),t.data=i):(t.contentType=r.type||"application/octet-stream",t.data=t.blob||r);t.blob=null},_initIframeSettings:function(t){var i=n("<a><\/a>").prop("href",t.url).prop("host");t.dataType="iframe "+(t.dataType||"");t.formData=this._getFormData(t);t.redirect&&i&&i!==location.host&&t.formData.push({name:t.redirectParamName||"redirect",value:t.redirect})},_initDataSettings:function(n){this._isXHRUpload(n)?(this._chunkedUpload(n,!0)||(n.data||this._initXHRData(n),this._initProgressListener(n)),n.postMessage&&(n.dataType="postmessage "+(n.dataType||""))):this._initIframeSettings(n)},_getParamName:function(t){var r=n(t.fileInput),i=t.paramName;return i?n.isArray(i)||(i=[i]):(i=[],r.each(function(){for(var t=n(this),u=t.prop("name")||"files[]",r=(t.prop("files")||[1]).length;r;)i.push(u),r-=1}),i.length||(i=[r.prop("name")||"files[]"])),i},_initFormSettings:function(t){t.form&&t.form.length||(t.form=n(t.fileInput.prop("form")),t.form.length||(t.form=n(this.options.fileInput.prop("form"))));t.paramName=this._getParamName(t);t.url||(t.url=t.form.prop("action")||location.href);t.type=(t.type||n.type(t.form.prop("method"))==="string"&&t.form.prop("method")||"").toUpperCase();t.type!=="POST"&&t.type!=="PUT"&&t.type!=="PATCH"&&(t.type="POST");t.formAcceptCharset||(t.formAcceptCharset=t.form.attr("accept-charset"))},_getAJAXSettings:function(t){var i=n.extend({},this.options,t);return this._initFormSettings(i),this._initDataSettings(i),i},_getDeferredState:function(n){return n.state?n.state():n.isResolved()?"resolved":n.isRejected()?"rejected":"pending"},_enhancePromise:function(n){return n.success=n.done,n.error=n.fail,n.complete=n.always,n},_getXHRPromise:function(t,i,r){var u=n.Deferred(),f=u.promise();return i=i||this.options.context||f,t===!0?u.resolveWith(i,r):t===!1&&u.rejectWith(i,r),f.abort=u.promise,this._enhancePromise(f)},_addConvenienceMethods:function(t,i){var r=this,u=function(t){return n.Deferred().resolveWith(r,t).promise()};i.process=function(t,f){return(t||f)&&(i._processQueue=this._processQueue=(this._processQueue||u([this])).pipe(function(){return i.errorThrown?n.Deferred().rejectWith(r,[i]).promise():u(arguments)}).pipe(t,f)),this._processQueue||u([this])};i.submit=function(){return this.state()!=="pending"&&(i.jqXHR=this.jqXHR=r._trigger("submit",n.Event("submit",{delegatedEvent:t}),this)!==!1&&r._onSend(t,this)),this.jqXHR||r._getXHRPromise()};i.abort=function(){return this.jqXHR?this.jqXHR.abort():(this.errorThrown="abort",r._trigger("fail",null,this),r._getXHRPromise(!1))};i.state=function(){return this.jqXHR?r._getDeferredState(this.jqXHR):this._processQueue?r._getDeferredState(this._processQueue):void 0};i.processing=function(){return!this.jqXHR&&this._processQueue&&r._getDeferredState(this._processQueue)==="pending"};i.progress=function(){return this._progress};i.response=function(){return this._response}},_getUploadedBytes:function(n){var i=n.getResponseHeader("Range"),t=i&&i.split("-"),r=t&&t.length>1&&parseInt(t[1],10);return r&&r+1},_chunkedUpload:function(t,i){t.uploadedBytes=t.uploadedBytes||0;var u=this,f=t.files[0],e=f.size,r=t.uploadedBytes,c=t.maxChunkSize||e,l=this._blobSlice,o=n.Deferred(),s=o.promise(),a,h;return!(this._isXHRUpload(t)&&l&&(r||c<e))||t.data?!1:i?!0:r>=e?(f.error=t.i18n("uploadedBytes"),this._getXHRPromise(!1,t.context,[null,"error",f.error])):(h=function(){var i=n.extend({},t),s=i._progress.loaded;i.blob=l.call(f,r,r+c,f.type);i.chunkSize=i.blob.size;i.contentRange="bytes "+r+"-"+(r+i.chunkSize-1)+"/"+e;u._initXHRData(i);u._initProgressListener(i);a=(u._trigger("chunksend",null,i)!==!1&&n.ajax(i)||u._getXHRPromise(!1,i.context)).done(function(f,c,l){r=u._getUploadedBytes(l)||r+i.chunkSize;s+i.chunkSize-i._progress.loaded&&u._onProgress(n.Event("progress",{lengthComputable:!0,loaded:r-i.uploadedBytes,total:r-i.uploadedBytes}),i);t.uploadedBytes=i.uploadedBytes=r;i.result=f;i.textStatus=c;i.jqXHR=l;u._trigger("chunkdone",null,i);u._trigger("chunkalways",null,i);r<e?h():o.resolveWith(i.context,[f,c,l])}).fail(function(n,t,r){i.jqXHR=n;i.textStatus=t;i.errorThrown=r;u._trigger("chunkfail",null,i);u._trigger("chunkalways",null,i);o.rejectWith(i.context,[n,t,r])})},this._enhancePromise(s),s.abort=function(){return a.abort()},h(),s)},_beforeSend:function(n,t){this._active===0&&(this._trigger("start"),this._bitrateTimer=new this._BitrateTimer,this._progress.loaded=this._progress.total=0,this._progress.bitrate=0);this._initResponseObject(t);this._initProgressObject(t);t._progress.loaded=t.loaded=t.uploadedBytes||0;t._progress.total=t.total=this._getTotal(t.files)||1;t._progress.bitrate=t.bitrate=0;this._active+=1;this._progress.loaded+=t.loaded;this._progress.total+=t.total},_onDone:function(t,i,r,u){var f=u._progress.total,e=u._response;u._progress.loaded<f&&this._onProgress(n.Event("progress",{lengthComputable:!0,loaded:f,total:f}),u);e.result=u.result=t;e.textStatus=u.textStatus=i;e.jqXHR=u.jqXHR=r;this._trigger("done",null,u)},_onFail:function(n,t,i,r){var u=r._response;r.recalculateProgress&&(this._progress.loaded-=r._progress.loaded,this._progress.total-=r._progress.total);u.jqXHR=r.jqXHR=n;u.textStatus=r.textStatus=t;u.errorThrown=r.errorThrown=i;this._trigger("fail",null,r)},_onAlways:function(n,t,i,r){this._trigger("always",null,r)},_onSend:function(t,i){i.submit||this._addConvenienceMethods(t,i);var r=this,o,s,f,h,u=r._getAJAXSettings(i),e=function(){return r._sending+=1,u._bitrateTimer=new r._BitrateTimer,o=o||((s||r._trigger("send",n.Event("send",{delegatedEvent:t}),u)===!1)&&r._getXHRPromise(!1,u.context,s)||r._chunkedUpload(u)||n.ajax(u)).done(function(n,t,i){r._onDone(n,t,i,u)}).fail(function(n,t,i){r._onFail(n,t,i,u)}).always(function(n,t,i){if(r._onAlways(n,t,i,u),r._sending-=1,r._active-=1,u.limitConcurrentUploads&&u.limitConcurrentUploads>r._sending)for(var f=r._slots.shift();f;){if(r._getDeferredState(f)==="pending"){f.resolve();break}f=r._slots.shift()}r._active===0&&r._trigger("stop")})};return(this._beforeSend(t,u),this.options.sequentialUploads||this.options.limitConcurrentUploads&&this.options.limitConcurrentUploads<=this._sending)?(this.options.limitConcurrentUploads>1?(f=n.Deferred(),this._slots.push(f),h=f.pipe(e)):(this._sequence=this._sequence.pipe(e,e),h=this._sequence),h.abort=function(){return(s=[undefined,"abort","abort"],!o)?(f&&f.rejectWith(u.context,s),e()):o.abort()},this._enhancePromise(h)):e()},_onAdd:function(t,i){var a=this,w=!0,f=n.extend({},this.options,i),u=i.files,v=u.length,o=f.limitMultiFileUploads,c=f.limitMultiFileUploadSize,b=f.limitMultiFileUploadSizeOverhead,p=0,l=this._getParamName(f),s,e,h,r,y=0;if(c&&(!v||u[0].size===undefined)&&(c=undefined),(f.singleFileUploads||o||c)&&this._isXHRUpload(f))if(f.singleFileUploads||c||!o)if(!f.singleFileUploads&&c)for(h=[],s=[],r=0;r<v;r=r+1)p+=u[r].size+b,(r+1===v||p+u[r+1].size+b>c||o&&r+1-y>=o)&&(h.push(u.slice(y,r+1)),e=l.slice(y,r+1),e.length||(e=l),s.push(e),y=r+1,p=0);else s=l;else for(h=[],s=[],r=0;r<v;r+=o)h.push(u.slice(r,r+o)),e=l.slice(r,r+o),e.length||(e=l),s.push(e);else h=[u],s=[l];return i.originalFiles=u,n.each(h||u,function(r,u){var f=n.extend({},i);return f.files=h?u:[u],f.paramName=s[r],a._initResponseObject(f),a._initProgressObject(f),a._addConvenienceMethods(t,f),w=a._trigger("add",n.Event("add",{delegatedEvent:t}),f)}),w},_replaceFileInput:function(t){var i=t.fileInput,r=i.clone(!0);t.fileInputClone=r;n("<form><\/form>").append(r)[0].reset();i.after(r).detach();n.cleanData(i.unbind("remove"));this.options.fileInput=this.options.fileInput.map(function(n,t){return t===i[0]?r[0]:t});i[0]===this.element[0]&&(this.element=r)},_handleFileTreeEntry:function(t,i){var s=this,r=n.Deferred(),u=function(n){n&&!n.entry&&(n.entry=t);r.resolve([n])},h=function(n){s._handleFileTreeEntries(n,i+t.name+"/").done(function(n){r.resolve(n)}).fail(u)},e=function(){o.readEntries(function(n){n.length?(f=f.concat(n),e()):h(f)},u)},o,f=[];return i=i||"",t.isFile?t._file?(t._file.relativePath=i,r.resolve(t._file)):t.file(function(n){n.relativePath=i;r.resolve(n)},u):t.isDirectory?(o=t.createReader(),e()):r.resolve([]),r.promise()},_handleFileTreeEntries:function(t,i){var r=this;return n.when.apply(n,n.map(t,function(n){return r._handleFileTreeEntry(n,i)})).pipe(function(){return Array.prototype.concat.apply([],arguments)})},_getDroppedFiles:function(t){t=t||{};var i=t.items;return i&&i.length&&(i[0].webkitGetAsEntry||i[0].getAsEntry)?this._handleFileTreeEntries(n.map(i,function(n){var t;return n.webkitGetAsEntry?(t=n.webkitGetAsEntry(),t&&(t._file=n.getAsFile()),t):n.getAsEntry()})):n.Deferred().resolve(n.makeArray(t.files)).promise()},_getSingleFileInputFiles:function(t){t=n(t);var r=t.prop("webkitEntries")||t.prop("entries"),i,u;if(r&&r.length)return this._handleFileTreeEntries(r);if(i=n.makeArray(t.prop("files")),i.length)i[0].name===undefined&&i[0].fileName&&n.each(i,function(n,t){t.name=t.fileName;t.size=t.fileSize});else{if(u=t.prop("value"),!u)return n.Deferred().resolve([]).promise();i=[{name:u.replace(/^.*\\/,"")}]}return n.Deferred().resolve(i).promise()},_getFileInputFiles:function(t){return!(t instanceof n)||t.length===1?this._getSingleFileInputFiles(t):n.when.apply(n,n.map(t,this._getSingleFileInputFiles)).pipe(function(){return Array.prototype.concat.apply([],arguments)})},_onChange:function(t){var r=this,i={fileInput:n(t.target),form:n(t.target.form)};this._getFileInputFiles(i.fileInput).always(function(u){i.files=u;r.options.replaceFileInput&&r._replaceFileInput(i);r._trigger("change",n.Event("change",{delegatedEvent:t}),i)!==!1&&r._onAdd(t,i)})},_onPaste:function(t){var i=t.originalEvent&&t.originalEvent.clipboardData&&t.originalEvent.clipboardData.items,r={files:[]};i&&i.length&&(n.each(i,function(n,t){var i=t.getAsFile&&t.getAsFile();i&&r.files.push(i)}),this._trigger("paste",n.Event("paste",{delegatedEvent:t}),r)!==!1&&this._onAdd(t,r))},_onDrop:function(t){t.dataTransfer=t.originalEvent&&t.originalEvent.dataTransfer;var u=this,i=t.dataTransfer,r={};i&&i.files&&i.files.length&&(t.preventDefault(),this._getDroppedFiles(i).always(function(i){r.files=i;u._trigger("drop",n.Event("drop",{delegatedEvent:t}),r)!==!1&&u._onAdd(t,r)}))},_onDragOver:t("dragover"),_onDragEnter:t("dragenter"),_onDragLeave:t("dragleave"),_initEventHandlers:function(){this._isXHRUpload(this.options)&&(this._on(this.options.dropZone,{dragover:this._onDragOver,drop:this._onDrop,dragenter:this._onDragEnter,dragleave:this._onDragLeave}),this._on(this.options.pasteZone,{paste:this._onPaste}));n.support.fileInput&&this._on(this.options.fileInput,{change:this._onChange})},_destroyEventHandlers:function(){this._off(this.options.dropZone,"dragenter dragleave dragover drop");this._off(this.options.pasteZone,"paste");this._off(this.options.fileInput,"change")},_setOption:function(t,i){var r=n.inArray(t,this._specialOptions)!==-1;r&&this._destroyEventHandlers();this._super(t,i);r&&(this._initSpecialOptions(),this._initEventHandlers())},_initSpecialOptions:function(){var t=this.options;t.fileInput===undefined?t.fileInput=this.element.is('input[type="file"]')?this.element:this.element.find('input[type="file"]'):t.fileInput instanceof n||(t.fileInput=n(t.fileInput));t.dropZone instanceof n||(t.dropZone=n(t.dropZone));t.pasteZone instanceof n||(t.pasteZone=n(t.pasteZone))},_getRegExp:function(n){var t=n.split("/"),i=t.pop();return t.shift(),new RegExp(t.join("/"),i)},_isRegExpOption:function(t,i){return t!=="url"&&n.type(i)==="string"&&/^\/.*\/[igm]{0,3}$/.test(i)},_initDataAttributes:function(){var t=this,i=this.options,r=this.element.data();n.each(this.element[0].attributes,function(n,u){var f=u.name.toLowerCase(),e;/^data-/.test(f)&&(f=f.slice(5).replace(/-[a-z]/g,function(n){return n.charAt(1).toUpperCase()}),e=r[f],t._isRegExpOption(f,e)&&(e=t._getRegExp(e)),i[f]=e)})},_create:function(){this._initDataAttributes();this._initSpecialOptions();this._slots=[];this._sequence=this._getXHRPromise(!0);this._sending=this._active=0;this._initProgressObject(this);this._initEventHandlers()},active:function(){return this._active},progress:function(){return this._progress},add:function(t){var i=this;t&&!this.options.disabled&&(t.fileInput&&!t.files?this._getFileInputFiles(t.fileInput).always(function(n){t.files=n;i._onAdd(null,t)}):(t.files=n.makeArray(t.files),this._onAdd(null,t)))},send:function(t){if(t&&!this.options.disabled){if(t.fileInput&&!t.files){var e=this,i=n.Deferred(),u=i.promise(),r,f;return u.abort=function(){return(f=!0,r)?r.abort():(i.reject(null,"abort","abort"),u)},this._getFileInputFiles(t.fileInput).always(function(n){if(!f){if(!n.length){i.reject();return}t.files=n;r=e._onSend(null,t);r.then(function(n,t,r){i.resolve(n,t,r)},function(n,t,r){i.reject(n,t,r)})}}),this._enhancePromise(u)}if(t.files=n.makeArray(t.files),t.files.length)return this._onSend(null,t)}return this._getXHRPromise(!1,t&&t.context)}})}),function(n,t){typeof define=="function"&&define.amd?define([],t):typeof exports=="object"?module.exports=t():n.SuperGif=t()}(this,function(){var n=function(n){return n.reduce(function(n,t){return n*2+t},0)},t=function(n){for(var i=[],t=7;t>=0;t--)i.push(!!(n&1<<t));return i},i=function(n){this.data=n;this.len=this.data.length;this.pos=0;this.readByte=function(){if(this.pos>=this.data.length)throw new Error("Attempted to read past end of stream.");return n instanceof Uint8Array?n[this.pos++]:n.charCodeAt(this.pos++)&255};this.readBytes=function(n){for(var t=[],i=0;i<n;i++)t.push(this.readByte());return t};this.read=function(n){for(var t="",i=0;i<n;i++)t+=String.fromCharCode(this.readByte());return t};this.readUnsigned=function(){var n=this.readBytes(2);return(n[1]<<8)+n[0]}},r=function(n,t){for(var o=0,c=function(n){for(var r=0,i=0;i<n;i++)t.charCodeAt(o>>3)&1<<(o&7)&&(r|=1<<i),o++;return r},s=[],u=1<<n,h=u+1,f=n+1,i=[],l=function(){i=[];f=n+1;for(var t=0;t<u;t++)i[t]=[t];i[u]=[];i[h]=null},r,e;;){if(e=r,r=c(f),r===u){l();continue}if(r===h)break;if(r<i.length)e!==u&&i.push(i[e].concat(i[r][0]));else{if(r!==i.length)throw new Error("Invalid LZW code.");i.push(i[e].concat(i[e][0]))}s.push.apply(s,i[r]);i.length===1<<f&&f<12&&f++}return s},u=function(i,u){u||(u={});var e=function(n){for(var t=[],r=0;r<n;r++)t.push(i.readBytes(3));return t},f=function(){var n,t="";do n=i.readByte(),t+=i.read(n);while(n!==0);return t},s=function(){var r={},f;if(r.sig=i.read(3),r.ver=i.read(3),r.sig!=="GIF")throw new Error("Not a GIF file.");r.width=i.readUnsigned();r.height=i.readUnsigned();f=t(i.readByte());r.gctFlag=f.shift();r.colorRes=n(f.splice(0,3));r.sorted=f.shift();r.gctSize=n(f.splice(0,3));r.bgColor=i.readByte();r.pixelAspectRatio=i.readByte();r.gctFlag&&(r.gct=e(1<<r.gctSize+1));u.hdr&&u.hdr(r)},h=function(r){var e=function(r){var e=i.readByte(),f=t(i.readByte());r.reserved=f.splice(0,3);r.disposalMethod=n(f.splice(0,3));r.userInput=f.shift();r.transparencyGiven=f.shift();r.delayTime=i.readUnsigned();r.transparencyIndex=i.readByte();r.terminator=i.readByte();u.gce&&u.gce(r)},o=function(n){n.comment=f();u.com&&u.com(n)},s=function(n){var t=i.readByte();n.ptHeader=i.readBytes(12);n.ptData=f();u.pte&&u.pte(n)},h=function(n){var t=function(n){var t=i.readByte();n.unknown=i.readByte();n.iterations=i.readUnsigned();n.terminator=i.readByte();u.app&&u.app.NETSCAPE&&u.app.NETSCAPE(n)},r=function(n){n.appData=f();u.app&&u.app[n.identifier]&&u.app[n.identifier](n)},e=i.readByte();n.identifier=i.read(8);n.authCode=i.read(3);switch(n.identifier){case"NETSCAPE":t(n);break;default:r(n)}},c=function(n){n.data=f();u.unknown&&u.unknown(n)};r.label=i.readByte();switch(r.label){case 249:r.extType="gce";e(r);break;case 254:r.extType="com";o(r);break;case 1:r.extType="pte";s(r);break;case 255:r.extType="app";h(r);break;default:r.extType="unknown";c(r)}},c=function(o){var c=function(n,t){for(var i,u=new Array(n.length),e=n.length/t,o=function(i,r){var f=n.slice(r*t,(r+1)*t);u.splice.apply(u,[i*t,t].concat(f))},s=[0,4,2,1],h=[8,8,4,2],f=0,r=0;r<4;r++)for(i=s[r];i<e;i+=h[r])o(i,f),f++;return u},s,h;o.leftPos=i.readUnsigned();o.topPos=i.readUnsigned();o.width=i.readUnsigned();o.height=i.readUnsigned();s=t(i.readByte());o.lctFlag=s.shift();o.interlaced=s.shift();o.sorted=s.shift();o.reserved=s.splice(0,2);o.lctSize=n(s.splice(0,3));o.lctFlag&&(o.lct=e(1<<o.lctSize+1));o.lzwMinCodeSize=i.readByte();h=f();o.pixels=r(o.lzwMinCodeSize,h);o.interlaced&&(o.pixels=c(o.pixels,o.width));u.img&&u.img(o)},o=function(){var n={};n.sentinel=i.readByte();switch(String.fromCharCode(n.sentinel)){case"!":n.type="ext";h(n);break;case",":n.type="img";c(n);break;case";":n.type="eof";u.eof&&u.eof(n);break;default:throw new Error("Unknown block: 0x"+n.sentinel.toString(16));}n.type!=="eof"&&setTimeout(o,0)},l=function(){s();setTimeout(o,0)};l()};return function(n){var t={vp_l:0,vp_t:0,vp_w:null,vp_h:null,c_w:null,c_h:null};for(var ht in n)t[ht]=n[ht];t.vp_w&&t.vp_h&&(t.is_vp=!0);var k,e,ct=null,g=!1,it=null,rt=null,ut=null,nt=null,tt=null,h=null,l=null,w=!0,ni=!0,v=!1,c=[],b=[],s=t.gif;typeof t.auto_play=="undefined"&&(t.auto_play=!s.getAttribute("rel:auto_play")||s.getAttribute("rel:auto_play")=="1");var lt=t.hasOwnProperty("on_end")?t.on_end:null,ti=t.hasOwnProperty("loop_delay")?t.loop_delay:0,ii=t.hasOwnProperty("loop_mode")?t.loop_mode:"auto",ft=t.hasOwnProperty("draw_while_loading")?t.draw_while_loading:!0,ri=ft?t.hasOwnProperty("show_progress_bar")?t.show_progress_bar:!0:!1,ui=t.hasOwnProperty("progressbar_height")?t.progressbar_height:25,fi=t.hasOwnProperty("progressbar_background_color")?t.progressbar_background_color:"rgba(255,255,255,0.4)",ei=t.hasOwnProperty("progressbar_foreground_color")?t.progressbar_foreground_color:"rgba(255,0,22,.8)",at=function(){it=null;rt=null;tt=ut;ut=null;h=null},vt=function(){try{u(k,li)}catch(n){et("parse")}},ai=function(n){p.innerHTML=n;p.style.visibility="visible"},yt=function(n,t){o.width=n*r();o.height=t*r();p.style.minWidth=n*r()+"px";a.width=n;a.height=t;a.style.width=n+"px";a.style.height=t+"px";a.getContext("2d").setTransform(1,0,0,1,0,0)},oi=function(n,t){if(!b[n]){b[n]=t;return}typeof t.x!="undefined"&&(b[n].x=t.x);typeof t.y!="undefined"&&(b[n].y=t.y)},pt=function(n,i,u){var e,c,s,h,l;if(u&&ri){if(e=ui,t.is_vp){if(v?(h=(t.vp_t+t.vp_h-e)/r(),e=e/r(),c=t.vp_l/r(),s=c+n/i*(t.vp_w/r()),l=o.width/r()):(h=t.vp_t+t.vp_h-e,e=e,c=t.vp_l,s=c+n/i*t.vp_w,l=o.width),!1){if(v)var a=t.vp_l/r(),y=t.vp_t/r(),p=t.vp_w/r(),w=t.vp_h/r();else var a=t.vp_l,y=t.vp_t,p=t.vp_w,w=t.vp_h;f.rect(a,y,p,w);f.stroke()}}else h=(o.height-e)/(v?r():1),s=n/i*o.width/(v?r():1),l=o.width/(v?r():1),e/=v?r():1;f.fillStyle=fi;f.fillRect(s,h,l-s,e);f.fillStyle=ei;f.fillRect(0,h,s,e)}},et=function(n){var i=function(){f.fillStyle="black";f.fillRect(0,0,t.c_w?t.c_w:e.width,t.c_h?t.c_h:e.height);f.strokeStyle="red";f.lineWidth=3;f.moveTo(0,0);f.lineTo(t.c_w?t.c_w:e.width,t.c_h?t.c_h:e.height);f.moveTo(0,t.c_h?t.c_h:e.height);f.lineTo(t.c_w?t.c_w:e.width,0);f.stroke()};ct=n;e={width:s.width,height:s.height};c=[];i()},si=function(n){e=n;yt(e.width,e.height)},hi=function(n){wt();at();it=n.transparencyGiven?n.transparencyIndex:null;rt=n.delayTime;ut=n.disposalMethod},wt=function(){h&&(c.push({data:h.getImageData(0,0,e.width,e.height),delay:rt}),b.push({x:0,y:0}))},ci=function(n){var o,u,i;h||(h=a.getContext("2d"));o=c.length;u=n.lctFlag?n.lct:e.gct;o>0&&(tt===3?nt!==null?h.putImageData(c[nt].data,0,0):h.clearRect(l.leftPos,l.topPos,l.width,l.height):nt=o-1,tt===2&&h.clearRect(l.leftPos,l.topPos,l.width,l.height));i=h.getImageData(n.leftPos,n.topPos,n.width,n.height);n.pixels.forEach(function(n,t){n!==it&&(i.data[t*4+0]=u[n][0],i.data[t*4+1]=u[n][1],i.data[t*4+2]=u[n][2],i.data[t*4+3]=255)});h.putImageData(i,n.leftPos,n.topPos);v||(f.scale(r(),r()),v=!0);ft&&(f.drawImage(a,0,0),ft=t.auto_play);l=n},y=function(){var n=-1,e=0,h=function(){var t=ni?1:-1;return(n+t+c.length)%c.length},o=function(t){n=n+t;u()},i=function(){var t=!1,r=function(){lt!==null&&lt(s);e++;ii!==!1||e<0?i():(t=!1,w=!1)},i=function(){var u,f;(t=w,t)&&(o(1),u=c[n].delay*10,u||(u=100),f=h(),f===0?(u+=ti,setTimeout(r,u)):setTimeout(i,u))};return function(){t||setTimeout(i,0)}}(),u=function(){var t;n=parseInt(n,10);n>c.length-1&&(n=0);n<0&&(n=0);t=b[n];a.getContext("2d").putImageData(c[n].data,t.x,t.y);f.globalCompositeOperation="copy";f.drawImage(a,0,0)},l=function(){w=!0;i()},v=function(){w=!1};return{init:function(){ct||(t.c_w&&t.c_h||f.scale(r(),r()),t.auto_play?i():(n=0,u()))},step:i,play:l,pause:v,playing:w,move_relative:o,current_frame:function(){return n},length:function(){return c.length},move_to:function(t){n=t;u()}}}(),bt=function(n){pt(k.pos,k.data.length,n)},kt=function(){},d=function(n,t){return function(i){n(i);bt(t)}},li={hdr:d(si),gce:d(hi),com:d(kt),app:{NETSCAPE:d(kt)},img:d(ci,!0),eof:function(){wt();bt(!1);t.c_w&&t.c_h||(o.width=e.width*r(),o.height=e.height*r());y.init();g=!1;st&&st(s)}},dt=function(){var i=s.parentNode,n=document.createElement("div");o=document.createElement("canvas");f=o.getContext("2d");p=document.createElement("div");a=document.createElement("canvas");n.width=o.width=s.width;n.height=o.height=s.height;p.style.minWidth=s.width+"px";n.className="jsgif";p.className="jsgif_toolbar";n.appendChild(o);n.appendChild(p);i.insertBefore(n,s);i.removeChild(s);t.c_w&&t.c_h&&yt(t.c_w,t.c_h);ot=!0},r=function(){return t.max_width&&e&&e.width>t.max_width?t.max_width/e.width:1},o,f,p,a,ot=!1,st=!1,gt=function(n){return g?!1:(st=n?n:!1,g=!0,c=[],at(),nt=null,tt=null,h=null,l=null,!0)};return{play:y.play,pause:y.pause,move_relative:y.move_relative,move_to:y.move_to,get_playing:function(){return w},get_canvas:function(){return o},get_canvas_scale:function(){return r()},get_loading:function(){return g},get_auto_play:function(){return t.auto_play},get_length:function(){return y.length()},get_current_frame:function(){return y.current_frame()},load_url:function(n,t){if(gt(t)){var r=new XMLHttpRequest;r.open("GET",n,!0);"overrideMimeType"in r?r.overrideMimeType("text/plain; charset=x-user-defined"):"responseType"in r?r.responseType="arraybuffer":r.setRequestHeader("Accept-Charset","x-user-defined");r.onloadstart=function(){ot||dt()};r.onload=function(){this.status!=200&&et("xhr - response");"response"in this||(this.response=new VBArray(this.responseText).toArray().map(String.fromCharCode).join(""));var n=this.response;n.toString().indexOf("ArrayBuffer")>0&&(n=new Uint8Array(n));k=new i(n);setTimeout(vt,0)};r.onprogress=function(n){n.lengthComputable&&pt(n.loaded,n.total,!0)};r.onerror=function(){et("xhr")};r.send()}},load:function(n){this.load_url(s.getAttribute("rel:animated_src")||s.src,n)},load_raw:function(n,t){gt(t)&&(ot||dt(),k=new i(n),setTimeout(vt,0))},set_frame_offset:oi}}});!function(n){"use strict";function nt(){}function tt(){try{return document.activeElement}catch(n){}}function y(n,t){for(var i=0,r=n.length;r>i;i++)if(n[i]===t)return!0;return!1}function f(n,t,i){return n.addEventListener?n.addEventListener(t,i,!1):n.attachEvent?n.attachEvent("on"+t,i):void 0}function p(n,t){var i;n.createTextRange?(i=n.createTextRange(),i.move("character",t),i.select()):n.selectionStart&&(n.focus(),n.setSelectionRange(t,t))}function it(n,t){try{return n.type=t,!0}catch(i){return!1}}function rt(n,t){if(n&&n.getAttribute(r))t(n);else for(var s,f=n?n.getElementsByTagName("input"):u,e=n?n.getElementsByTagName("textarea"):h,o=f?f.length:0,c=e?e.length:0,l=o+c,i=0;l>i;i++)s=o>i?f[i]:e[i-o],t(s)}function ut(n){rt(n,l)}function vt(n){rt(n,w)}function l(n,t){var f=!!t&&n.value!==t,o=n.value===n.getAttribute(r),i,u;return(f||o)&&"true"===n.getAttribute(e)?(n.removeAttribute(e),n.value=n.value.replace(n.getAttribute(r),""),n.className=n.className.replace(ti,""),i=n.getAttribute(v),parseInt(i,10)>=0&&(n.setAttribute("maxLength",i),n.removeAttribute(v)),u=n.getAttribute(s),u&&(n.type=u),!0):!1}function w(n){var t=n.getAttribute(r),i,u;return""===n.value&&t?(n.setAttribute(e,"true"),n.value=t,n.className+=" "+d,i=n.getAttribute(v),i||(n.setAttribute(v,n.maxLength),n.removeAttribute("maxLength")),u=n.getAttribute(s),u?n.type="text":"password"===n.type&&it(n,"text")&&n.setAttribute(s,"password"),!0):!1}function yt(n){return function(){g&&n.value===n.getAttribute(r)&&"true"===n.getAttribute(e)?p(n,0):l(n)}}function pt(n){return function(){w(n)}}function wt(n){return function(){ut(n)}}function bt(n){return function(t){return k=n.value,"true"===n.getAttribute(e)&&k===n.getAttribute(r)&&y(ni,t.keyCode)?(t.preventDefault&&t.preventDefault(),!1):void 0}}function kt(n){return function(){l(n,k);""===n.value&&(n.blur(),p(n,0))}}function dt(n){return function(){n===tt()&&n.value===n.getAttribute(r)&&"true"===n.getAttribute(e)&&p(n,0)}}function ft(n){var t=n.form;t&&"string"==typeof t&&(t=document.getElementById(t),t.getAttribute(ht)||(f(t,"submit",wt(t)),t.setAttribute(ht,"true")));f(n,"focus",yt(n));f(n,"blur",pt(n));g&&(f(n,"keydown",bt(n)),f(n,"keyup",kt(n)),f(n,"click",dt(n)));n.setAttribute(ct,"true");n.setAttribute(r,i);(g||n!==tt())&&w(n)}var gt=document.createElement("input"),a=void 0!==gt.placeholder,b,i,t,o,et,ot;if(n.Placeholders={nativeSupport:a,disable:a?nt:ut,enable:a?nt:vt},!a){var k,st=["text","search","url","tel","email","password","number","textarea"],ni=[27,33,34,35,36,37,38,39,40,8,46],d="placeholdersjs",ti=new RegExp("(?:^|\\s)"+d+"(?!\\S)"),r="data-placeholder-value",e="data-placeholder-active",s="data-placeholder-type",ht="data-placeholder-submit",ct="data-placeholder-bound",v="data-placeholder-maxlength",lt=document.getElementsByTagName("head")[0],at=document.documentElement,ii=n.Placeholders,u=document.getElementsByTagName("input"),h=document.getElementsByTagName("textarea"),g="false"===at.getAttribute("data-placeholder-focus"),ri="false"!==at.getAttribute("data-placeholder-live"),c=document.createElement("style");for(c.type="text/css",b=document.createTextNode("."+d+" {color:#ccc;}"),c.styleSheet?c.styleSheet.cssText=b.nodeValue:c.appendChild(b),lt.insertBefore(c,lt.firstChild),o=0,et=u.length+h.length;et>o;o++)t=o<u.length?u[o]:h[o-u.length],i=t.attributes.placeholder,i&&(i=i.nodeValue,i&&y(st,t.type)&&ft(t));ot=setInterval(function(){for(var n=0,f=u.length+h.length;f>n;n++)t=n<u.length?u[n]:h[n-u.length],i=t.attributes.placeholder,i?(i=i.nodeValue,i&&y(st,t.type)&&(t.getAttribute(ct)||ft(t),(i!==t.getAttribute(r)||"password"===t.type&&!t.getAttribute(s))&&("password"===t.type&&!t.getAttribute(s)&&it(t,"text")&&t.setAttribute(s,"password"),t.value===t.getAttribute(r)&&(t.value=i),t.setAttribute(r,i)))):t.getAttribute(e)&&(l(t),t.removeAttribute(r));ri||clearInterval(ot)},100);f(n,"beforeunload",function(){ii.disable()})}}(this),function(n,t){"use strict";var i=n.fn.val,r=n.fn.prop;t.Placeholders.nativeSupport||(n.fn.val=function(n){var t=i.apply(this,arguments),r=this.eq(0).data("placeholder-value");return void 0===n&&this.eq(0).data("placeholder-active")&&t===r?"":t},n.fn.prop=function(n,t){return void 0===t&&this.eq(0).data("placeholder-active")&&"value"===n?"":r.apply(this,arguments)})}(jQuery,this),function(n){n.fn.shorten=function(t){"use strict";var i={showChars:100,minHideChars:10,ellipsesText:"...",moreText:"more",lessText:"less",onLess:function(){},onMore:function(){},errMsg:null,force:!1};if(t&&n.extend(i,t),n(this).data("jquery.shorten")&&!i.force)return!1;n(this).data("jquery.shorten",!0);n(document).off("click",".morelink");n(document).on({click:function(){var t=n(this);return t.hasClass("less")?(t.removeClass("less"),t.html(i.moreText),t.parent().prev().animate({height:"0%"},function(){t.parent().prev().prev().show()}).hide("fast",function(){i.onLess()})):(t.addClass("less"),t.html(i.lessText),t.parent().prev().animate({height:"100%"},function(){t.parent().prev().prev().hide()}).show("fast",function(){i.onMore()})),!1}},".morelink");return this.each(function(){var f=n(this),t=f.html(),y=f.text().length,e,r,l,h,a;if(y>i.showChars+i.minHideChars){if(e=t.substr(0,i.showChars),e.indexOf("<")>=0){var o=!1,c="",v=0,u=[],s=null;for(r=0,l=0;l<=i.showChars;r++)if(t[r]!="<"||o||(o=!0,s=t.substring(r+1,t.indexOf(">",r)),s[0]=="/"?s!="/"+u[0]?i.errMsg="ERROR en HTML: the top of the stack should be the tag that closes":u.shift():s.toLowerCase()!="br"&&u.unshift(s)),o&&t[r]==">"&&(o=!1),o)c+=t.charAt(r);else if(l++,v<=i.showChars)c+=t.charAt(r),v++;else if(u.length>0){for(h=0;h<u.length;h++)c+="<\/"+u[h]+">";break}e=n("<div/>").html(c+'<span class="ellip">'+i.ellipsesText+"<\/span>").html()}else e+=i.ellipsesText;a='<div class="shortcontent">'+e+'<\/div><div class="allcontent">'+t+'<\/div><span><a href="javascript://nop/" class="morelink">'+i.moreText+"<\/a><\/span>";f.html(a);f.find(".allcontent").hide();n(".shortcontent p:last",f).css("margin-bottom",0)}})}}(jQuery);NBP=function(){var n={},t=function(){function r(n,t){if(!i[n]){i[n]={};for(var r=0;r<n.length;r++)i[n][n.charAt(r)]=r}return i[n][t]}var t=String.fromCharCode,u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",i={},n={compressToBase64:function(t){if(null==t)return"";var i=n._compress(t,6,function(n){return u.charAt(n)});switch(i.length%4){default:case 0:return i;case 1:return i+"===";case 2:return i+"==";case 3:return i+"="}},decompressFromBase64:function(t){return null==t?"":""==t?null:n._decompress(t.length,32,function(n){return r(u,t.charAt(n))})},compressToUTF16:function(i){return null==i?"":n._compress(i,15,function(n){return t(n+32)})+" "},decompressFromUTF16:function(t){return null==t?"":""==t?null:n._decompress(t.length,16384,function(n){return t.charCodeAt(n)-32})},compressToUint8Array:function(t){for(var r,u=n.compress(t),f=new Uint8Array(2*u.length),i=0,e=u.length;e>i;i++)r=u.charCodeAt(i),f[2*i]=r>>>8,f[2*i+1]=r%256;return f},decompressFromUint8Array:function(i){var u;if(null===i||void 0===i)return n.decompress(i);for(var f=new Array(i.length/2),r=0,e=f.length;e>r;r++)f[r]=256*i[2*r]+i[2*r+1];return u=[],f.forEach(function(n){u.push(t(n))}),n.decompress(u.join(""))},compressToEncodedURIComponent:function(t){return null==t?"":n._compress(t,6,function(n){return f.charAt(n)})},decompressFromEncodedURIComponent:function(t){return null==t?"":""==t?null:(t=t.replace(/ /g,"+"),n._decompress(t.length,32,function(n){return r(f,t.charAt(n))}))},compress:function(i){return n._compress(i,16,function(n){return t(n)})},_compress:function(n,t,i){if(null==n)return"";for(var f,e,l={},v={},a="",y="",o="",c=2,w=3,s=2,h=[],r=0,u=0,p=0;p<n.length;p+=1)if(a=n.charAt(p),Object.prototype.hasOwnProperty.call(l,a)||(l[a]=w++,v[a]=!0),y=o+a,Object.prototype.hasOwnProperty.call(l,y))o=y;else{if(Object.prototype.hasOwnProperty.call(v,o)){if(o.charCodeAt(0)<256){for(f=0;s>f;f++)r<<=1,u==t-1?(u=0,h.push(i(r)),r=0):u++;for(e=o.charCodeAt(0),f=0;8>f;f++)r=r<<1|1&e,u==t-1?(u=0,h.push(i(r)),r=0):u++,e>>=1}else{for(e=1,f=0;s>f;f++)r=r<<1|e,u==t-1?(u=0,h.push(i(r)),r=0):u++,e=0;for(e=o.charCodeAt(0),f=0;16>f;f++)r=r<<1|1&e,u==t-1?(u=0,h.push(i(r)),r=0):u++,e>>=1}c--;0==c&&(c=Math.pow(2,s),s++);delete v[o]}else for(e=l[o],f=0;s>f;f++)r=r<<1|1&e,u==t-1?(u=0,h.push(i(r)),r=0):u++,e>>=1;c--;0==c&&(c=Math.pow(2,s),s++);l[y]=w++;o=String(a)}if(""!==o){if(Object.prototype.hasOwnProperty.call(v,o)){if(o.charCodeAt(0)<256){for(f=0;s>f;f++)r<<=1,u==t-1?(u=0,h.push(i(r)),r=0):u++;for(e=o.charCodeAt(0),f=0;8>f;f++)r=r<<1|1&e,u==t-1?(u=0,h.push(i(r)),r=0):u++,e>>=1}else{for(e=1,f=0;s>f;f++)r=r<<1|e,u==t-1?(u=0,h.push(i(r)),r=0):u++,e=0;for(e=o.charCodeAt(0),f=0;16>f;f++)r=r<<1|1&e,u==t-1?(u=0,h.push(i(r)),r=0):u++,e>>=1}c--;0==c&&(c=Math.pow(2,s),s++);delete v[o]}else for(e=l[o],f=0;s>f;f++)r=r<<1|1&e,u==t-1?(u=0,h.push(i(r)),r=0):u++,e>>=1;c--;0==c&&(c=Math.pow(2,s),s++)}for(e=2,f=0;s>f;f++)r=r<<1|1&e,u==t-1?(u=0,h.push(i(r)),r=0):u++,e>>=1;for(;;){if(r<<=1,u==t-1){h.push(i(r));break}u++}return h.join("")},decompress:function(t){return null==t?"":""==t?null:n._decompress(t.length,32768,function(n){return t.charCodeAt(n)})},_decompress:function(n,i,r){for(var k,v,e,o,s,f,h,c=[],l=4,a=4,y=3,p="",b=[],u={val:r(0),position:i,index:1},w=0;3>w;w+=1)c[w]=w;for(e=0,s=Math.pow(2,2),f=1;f!=s;)o=u.val&u.position,u.position>>=1,0==u.position&&(u.position=i,u.val=r(u.index++)),e|=(o>0?1:0)*f,f<<=1;switch(k=e){case 0:for(e=0,s=Math.pow(2,8),f=1;f!=s;)o=u.val&u.position,u.position>>=1,0==u.position&&(u.position=i,u.val=r(u.index++)),e|=(o>0?1:0)*f,f<<=1;h=t(e);break;case 1:for(e=0,s=Math.pow(2,16),f=1;f!=s;)o=u.val&u.position,u.position>>=1,0==u.position&&(u.position=i,u.val=r(u.index++)),e|=(o>0?1:0)*f,f<<=1;h=t(e);break;case 2:return""}for(c[3]=h,v=h,b.push(h);;){if(u.index>n)return"";for(e=0,s=Math.pow(2,y),f=1;f!=s;)o=u.val&u.position,u.position>>=1,0==u.position&&(u.position=i,u.val=r(u.index++)),e|=(o>0?1:0)*f,f<<=1;switch(h=e){case 0:for(e=0,s=Math.pow(2,8),f=1;f!=s;)o=u.val&u.position,u.position>>=1,0==u.position&&(u.position=i,u.val=r(u.index++)),e|=(o>0?1:0)*f,f<<=1;c[a++]=t(e);h=a-1;l--;break;case 1:for(e=0,s=Math.pow(2,16),f=1;f!=s;)o=u.val&u.position,u.position>>=1,0==u.position&&(u.position=i,u.val=r(u.index++)),e|=(o>0?1:0)*f,f<<=1;c[a++]=t(e);h=a-1;l--;break;case 2:return b.join("")}if(0==l&&(l=Math.pow(2,y),y++),c[h])p=c[h];else{if(h!==a)return null;p=v+v.charAt(0)}b.push(p);c[a++]=v+p.charAt(0);l--;v=p;0==l&&(l=Math.pow(2,y),y++)}}};return n}();return"function"==typeof define&&define.amd?define(function(){return t}):"undefined"!=typeof module&&null!=module&&(module.exports=t),bloom={initalized:!1,hashRounds:null,bitArray:null,bitArrayLength:null},initState=!1,bloom.hashes={djb2:function(n){for(var t=5381,r=n.length,i=0;i<r;i++)t=t*33^n.charCodeAt(i);return(t>>>0)%bloom.bitArrayLength},sdbm:function(n){for(var t=0,r=n.length,i=0;i<r;i++)t=n.charCodeAt(i)+(t<<6)+(t<<16)-t;return(t>>>0)%bloom.bitArrayLength},getIndices:function(n){var t=[],i,r;for(t.push(this.djb2(n)),t.push(this.sdbm(n)),i=2;i<=bloom.hashRounds;i++)r=(t[0]+i*t[1]+(i^2))%bloom.bitArrayLength,t.push(r);return t}},bloom.init=function(n,i){var u=t.decompressFromUTF16(n),r=u.split(",");bloom.bitArrayLength=r.length*8;bloom.hashRounds=Math.round(Math.log(2)*bloom.bitArrayLength/i);bloom.bitArray=new Uint8Array(r);bloom.initalized=!0},bloom.checkEntry=function(n){var r,t,i,u;if(!bloom.initalized)throw new Error("[NBP] Bloom filter has not been initalized, cannot run.");for(r=bloom.hashes.getIndices(n),t=r.length-1;t>=0;t--)if((i=r[t]%8,u=(r[t]-i)/8,i!=0&&(bloom.bitArray[u]&128>>i-1)==0)||i==0&&(bloom.bitArray[u]&1)==0)return!1;return!0},n.debug={bloom:bloom},n.init=function(){var t=arguments[0]!==void 0?arguments[0]:"mostcommon_10000",i=arguments[1]!==void 0?arguments[1]:"collections/",u=arguments[2]!==void 0?arguments[2]:!0,f=t.split("_"),e=f[f.length-1],n,r;if(i.slice(-1)!=="/"&&(i+="/"),typeof localStorage!="undefined"&&typeof localStorage["NBP_"+t]!="undefined"&&u){bloom.init(localStorage["NBP_"+t],e);return}n=new XMLHttpRequest;r="";n.onreadystatechange=function(){n.readyState===XMLHttpRequest.DONE&&(n.status===200?(r=n.responseText,u&&(localStorage["NBP_"+t]=r),bloom.init(r,e),initState=!0):(console.error("[NBP] Error retrieving bloom contents. Error code: "+n.status),console.error("[NBP] Ensure that the word list is located at "+i+t),console.error("[NBP] Additionally, file must match the format [list description]_[list length]")))};n.open("GET",""+i+t,!0);n.send(null)},n.isCommonPassword=function(n){return n==""?!1:bloom.checkEntry(n)||bloom.checkEntry(n.toLowerCase())},n.testInit=function(){var n=arguments[0]!==void 0?arguments[0]:"mostcommon_100000",i=require("fs"),t=n.split("_"),r=t[t.length-1],u=i.readFileSync("collections/"+n,"utf8");bloom.init(u,r)},n}();typeof module!="undefined"&&(module.exports=NBP);!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 uo.apply(null,arguments)}function ut(n){return n instanceof Array||"[object Array]"===Object.prototype.toString.call(n)}function ai(n){return null!=n&&"[object Object]"===Object.prototype.toString.call(n)}function b(n){return void 0===n}function dt(n){return"number"==typeof n||"[object Number]"===Object.prototype.toString.call(n)}function nr(n){return n instanceof Date||"[object Date]"===Object.prototype.toString.call(n)}function af(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 pt(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 se(n,t,i,r,!0).utc()}function u(n){return null==n._pf&&(n._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),n._pf}function tu(n){if(null==n._isValid){var t=u(n),r=fo.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 tr(n){var t=ft(NaN);return null!=n?pt(u(t),n):u(t).userInvalidated=!0,t}function iu(n,t){var i,r,f;if(b(t._isAMomentObject)||(n._isAMomentObject=t._isAMomentObject),b(t._i)||(n._i=t._i),b(t._f)||(n._f=t._f),b(t._l)||(n._l=t._l),b(t._strict)||(n._strict=t._strict),b(t._tzm)||(n._tzm=t._tzm),b(t._isUTC)||(n._isUTC=t._isUTC),b(t._offset)||(n._offset=t._offset),b(t._pf)||(n._pf=u(t)),b(t._locale)||(n._locale=t._locale),0<ar.length)for(i=0;i<ar.length;i++)b(f=t[r=ar[i]])||(n[r]=f);return n}function vi(n){iu(this,n);this._d=new Date(null!=n._d?n._d.getTime():NaN);this.isValid()||(this._d=new Date(NaN));!1===vr&&(vr=!0,t.updateOffset(this),vr=!1)}function et(n){return n instanceof vi||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 vf(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 yf(n){!1===t.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+n)}function g(n,i){var r=!0;return pt(function(){var u,e,f,o;if(null!=t.deprecationHandler&&t.deprecationHandler(null,n),r){for(e=[],f=0;f<arguments.length;f++){if(u="","object"==typeof arguments[f]){for(o in u+="\n["+f+"] ",arguments[0])u+=o+": "+arguments[0][o]+", ";u=u.slice(0,-2)}else u=arguments[f];e.push(u)}yf(n+"\nArguments: "+Array.prototype.slice.call(e).join("")+"\n"+(new Error).stack);r=!1}return i.apply(this,arguments)},i)}function pf(n,i){null!=t.deprecationHandler&&t.deprecationHandler(n,i);gu[n]||(yf(i),gu[n]=!0)}function ot(n){return n instanceof Function||"[object Function]"===Object.prototype.toString.call(n)}function wf(n,t){var i,r=pt({},n);for(i in t)l(t,i)&&(ai(n[i])&&ai(t[i])?(r[i]={},pt(r[i],n[i]),pt(r[i],t[i])):null!=t[i]?r[i]=t[i]:delete r[i]);for(i in n)l(n,i)&&!l(t,i)&&ai(n[i])&&(r[i]=pt({},r[i]));return r}function ru(n){null!=n&&this.set(n)}function p(n,t){var i=n.toLowerCase();hi[i]=hi[i+"s"]=hi[t]=n}function nt(n){if("string"==typeof n)return hi[n]||hi[n.toLowerCase()]}function uu(n){var i,t,r={};for(t in n)l(n,t)&&(i=nt(t))&&(r[i]=n[t]);return r}function w(n,t){nf[n]=t}function lt(n,t,i){var r=""+Math.abs(n),u=t-r.length;return(0<=n?i?"+":"":"-")+Math.pow(10,Math.max(0,u)).toString().substr(1)+r}function r(n,t,i,r){var u=r;"string"==typeof r&&(u=function(){return this[r]()});n&&(li[n]=u);t&&(li[t[0]]=function(){return lt(u.apply(this,arguments),t[1],t[2])});i&&(li[i]=function(){return this.localeData().ordinal(u.apply(this,arguments),n)})}function ir(n,t){return n.isValid()?(t=bf(t,n.localeData()),ef[t]=ef[t]||function(n){for(var r,t=n.match(ts),i=0,u=t.length;i<u;i++)t[i]=li[t[i]]?li[t[i]]:(r=t[i]).match(/\[[\s\S]/)?r.replace(/^\[|\]$/g,""):r.replace(/\\/g,"");return function(i){for(var f="",r=0;r<u;r++)f+=ot(t[r])?t[r].call(i,n):t[r];return f}}(t),ef[t](n)):n.localeData().invalidDate()}function bf(n,t){function r(n){return t.longDateFormat(n)||n}var i=5;for(pr.lastIndex=0;0<=i&&pr.test(n);)n=n.replace(pr,r),pr.lastIndex=0,i-=1;return n}function i(n,t,i){hf[n]=ot(t)?t:function(n){return n&&i?i:t}}function cs(n,t){return l(hf,n)?hf[n](t._strict,t._locale):new RegExp(gt(n.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(n,t,i,r,u){return t||i||r||u})))}function gt(n){return n.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function 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++)yr[n[i]]=r}function yi(n,t){s(n,function(n,i,r,u){r._w=r._w||{};t(n,r._w,r,u)})}function pi(n){return rr(n)?366:365}function rr(n){return n%4==0&&n%100!=0||n%400==0}function ui(n,i){return function(r){return null!=r?(kf(this,n,r),t.updateOffset(this,i),this):ur(this,n)}}function ur(n,t){return n.isValid()?n._d["get"+(n._isUTC?"UTC":"")+t]():NaN}function kf(n,t,i){n.isValid()&&!isNaN(i)&&("FullYear"===t&&rr(n.year())&&1===n.month()&&29===n.date()?n._d["set"+(n._isUTC?"UTC":"")+t](i,n.month(),fr(i,n.month())):n._d["set"+(n._isUTC?"UTC":"")+t](i))}function fr(n,t){if(isNaN(n)||isNaN(t))return NaN;var i,r=(t%(i=12)+i)%i;return n+=(t-r)/12,1===r?rr(n)?29:28:31-r%7%2}function df(n,t){var i;if(!n.isValid())return n;if("string"==typeof t)if(/^\d+$/.test(t))t=f(t);else if(!dt(t=n.localeData().monthsParse(t)))return n;return i=Math.min(n.date(),fr(n.year(),t)),n._d["set"+(n._isUTC?"UTC":"")+"Month"](t,i),n}function gf(n){return null!=n?(df(this,n),t.updateOffset(this,!0),this):ur(this,"Month")}function ne(){function f(n,t){return t.length-n.length}for(var i,r=[],u=[],t=[],n=0;n<12;n++)i=ft([2e3,n]),r.push(this.monthsShort(i,"")),u.push(this.months(i,"")),t.push(this.months(i,"")),t.push(this.monthsShort(i,""));for(r.sort(f),u.sort(f),t.sort(f),n=0;n<12;n++)r[n]=gt(r[n]),u[n]=gt(u[n]);for(n=0;n<24;n++)t[n]=gt(t[n]);this._monthsRegex=new RegExp("^("+t.join("|")+")","i");this._monthsShortRegex=this._monthsRegex;this._monthsStrictRegex=new RegExp("^("+u.join("|")+")","i");this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function wi(n){var t,i;return n<100&&0<=n?(i=Array.prototype.slice.call(arguments),i[0]=n+400,t=new Date(Date.UTC.apply(null,i)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(n)):t=new Date(Date.UTC.apply(null,arguments)),t}function er(n,t,i){var r=7+t-i;return-((7+wi(n,0,r).getUTCDay()-t)%7)+r-1}function te(n,t,i,r,u){var e,o,f=1+7*(t-1)+(7+i-r)%7+er(n,r,u);return o=f<=0?pi(e=n-1)+f:f>pi(n)?(e=n+1,f-pi(n)):(e=n,f),{year:e,dayOfYear:o}}function bi(n,t,i){var u,f,e=er(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=er(n,t,i),u=er(n+1,t,i);return(pi(n)-r+u)/7}function fu(n,t){return n.slice(t,7).concat(n.slice(0,t))}function eu(){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 ou(){return this.hours()%12||12}function ie(n,t){r(n,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function re(n,t){return t._meridiemParse}function ue(n){return n?n.toLowerCase().replace("_","-"):n}function or(n){var t=null;if(!y[n]&&"undefined"!=typeof module&&module&&module.exports)try{t=di._abbr;require("./locale/"+n);fi(t)}catch(n){}return y[n]}function fi(n,t){var i;return n&&((i=b(t)?wt(n):su(n,t))?di=i:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+n+" not found. Did you forget to load it?")),di._abbr}function su(n,t){if(null===t)return delete y[n],null;var r,i=hs;if(t.abbr=n,null!=y[n])pf("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=y[n]._config;else if(null!=t.parentLocale)if(null!=y[t.parentLocale])i=y[t.parentLocale]._config;else{if(null==(r=or(t.parentLocale)))return gi[t.parentLocale]||(gi[t.parentLocale]=[]),gi[t.parentLocale].push({name:n,config:t}),null;i=r._config}return y[n]=new ru(wf(i,t)),gi[n]&&gi[n].forEach(function(n){su(n.name,n.config)}),fi(n),y[n]}function wt(n){var t;if(n&&n._locale&&n._locale._abbr&&(n=n._locale._abbr),!n)return di;if(!ut(n)){if(t=or(n))return t;n=[n]}return function(n){for(var t,i,f,u,r=0;r<n.length;){for(t=(u=ue(n[r]).split("-")).length,i=(i=ue(n[r+1]))?i.split("-"):null;0<t;){if(f=or(u.slice(0,t).join("-")))return f;if(i&&i.length>=t&&vf(u,i,!0)>=t-1)break;t--}r++}return di}(n)}function hu(n){var i,t=n._a;return t&&-2===u(n).overflow&&(i=t[vt]<0||11<t[vt]?vt:t[ht]<1||t[ht]>fr(t[it],t[vt])?ht:t[v]<0||24<t[v]||24===t[v]&&(0!==t[rt]||0!==t[yt]||0!==t[ri])?v:t[rt]<0||59<t[rt]?rt:t[yt]<0||59<t[yt]?yt:t[ri]<0||999<t[ri]?ri:-1,u(n)._overflowDayOfYear&&(i<it||ht<i)&&(i=ht),u(n)._overflowWeeks&&-1===i&&(i=ys),u(n)._overflowWeekday&&-1===i&&(i=ps),u(n).overflow=i),n}function ei(n,t,i){return null!=n?n:null!=t?t:i}function cu(n){var i,f,e,c,o,s=[],l,r;if(!n._d){for(l=n,r=new Date(t.now()),e=l._useUTC?[r.getUTCFullYear(),r.getUTCMonth(),r.getUTCDate()]:[r.getFullYear(),r.getMonth(),r.getDate()],n._w&&null==n._a[ht]&&null==n._a[vt]&&function(n){var t,o,f,i,r,e,c,s,l;null!=(t=n._w).GG||null!=t.W||null!=t.E?(r=1,e=4,o=ei(t.GG,n._a[it],bi(h(),1,4).year),f=ei(t.W,1),((i=ei(t.E,1))<1||7<i)&&(s=!0)):(r=n._locale._week.dow,e=n._locale._week.doy,l=bi(h(),r,e),o=ei(t.gg,n._a[it],l.year),f=ei(t.w,l.week),null!=t.d?((i=t.d)<0||6<i)&&(s=!0):null!=t.e?(i=t.e+r,(t.e<0||6<t.e)&&(s=!0)):i=r);f<1||f>ni(o,r,e)?u(n)._overflowWeeks=!0:null!=s?u(n)._overflowWeekday=!0:(c=te(o,f,i,r,e),n._a[it]=c.year,n._dayOfYear=c.dayOfYear)}(n),null!=n._dayOfYear&&(o=ei(n._a[it],e[it]),(n._dayOfYear>pi(o)||0===n._dayOfYear)&&(u(n)._overflowDayOfYear=!0),f=wi(o,0,n._dayOfYear),n._a[vt]=f.getUTCMonth(),n._a[ht]=f.getUTCDate()),i=0;i<3&&null==n._a[i];++i)n._a[i]=s[i]=e[i];for(;i<7;i++)n._a[i]=s[i]=null==n._a[i]?2===i?1:0:n._a[i];24===n._a[v]&&0===n._a[rt]&&0===n._a[yt]&&0===n._a[ri]&&(n._nextDay=!0,n._a[v]=0);n._d=(n._useUTC?wi:function(n,t,i,r,u,f,e){var o;return n<100&&0<=n?(o=new Date(n+400,t,i,r,u,f,e),isFinite(o.getFullYear())&&o.setFullYear(n)):o=new Date(n,t,i,r,u,f,e),o}).apply(null,s);c=n._useUTC?n._d.getUTCDay():n._d.getDay();null!=n._tzm&&n._d.setUTCMinutes(n._d.getUTCMinutes()-n._tzm);n._nextDay&&(n._a[v]=24);n._w&&void 0!==n._w.d&&n._w.d!==c&&(u(n).weekdayMismatch=!0)}}function fe(n){var t,r,o,e,f,s,h=n._i,i=ih.exec(h)||rh.exec(h);if(i){for(u(n).iso=!0,t=0,r=nu.length;t<r;t++)if(nu[t][1].exec(i[1])){e=nu[t][0];o=!1!==nu[t][2];break}if(null==e)return void(n._isValid=!1);if(i[3]){for(t=0,r=cf.length;t<r;t++)if(cf[t][1].exec(i[3])){f=(i[2]||" ")+cf[t][0];break}if(null==f)return void(n._isValid=!1)}if(!o&&null!=f)return void(n._isValid=!1);if(i[4]){if(!uh.exec(i[4]))return void(n._isValid=!1);s="Z"}n._f=e+(f||"")+(s||"");lu(n)}else n._isValid=!1}function ls(n,t,i,r,u,f){var e=[function(n){var t=parseInt(n,10);return t<=49?2e3+t:t<=999?1900+t:t}(n),os.indexOf(t),parseInt(i,10),parseInt(r,10),parseInt(u,10)];return f&&e.push(parseInt(f,10)),e}function ee(n){var r,i,f,t=ho.exec(n._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")),e;if(t){if(e=ls(t[4],t[3],t[2],t[5],t[6],t[7]),r=t[1],i=e,f=n,r&&ss.indexOf(r)!==new Date(i[0],i[1],i[2]).getDay()&&(u(f).weekdayMismatch=!0,!(f._isValid=!1)))return;n._a=e;n._tzm=function(n,t,i){if(n)return co[n];if(t)return 0;var r=parseInt(i,10),u=r%100;return(r-u)/100*60+u}(t[8],t[9],t[10]);n._d=wi.apply(null,n._a);n._d.setUTCMinutes(n._d.getUTCMinutes()-n._tzm);u(n).rfc2822=!0}else n._isValid=!1}function lu(n){if(n._f!==t.ISO_8601)if(n._f!==t.RFC_2822){n._a=[];u(n).empty=!0;for(var r,f,h,e,c,o,i=""+n._i,p=i.length,a=0,y=bf(n._f,n._locale).match(ts)||[],s=0;s<y.length;s++)f=y[s],(r=(i.match(cs(f,n))||[])[0])&&(0<(h=i.substr(0,i.indexOf(r))).length&&u(n).unusedInput.push(h),i=i.slice(i.indexOf(r)+r.length),a+=r.length),li[f]?(r?u(n).empty=!1:u(n).unusedTokens.push(f),e=f,o=n,null!=(c=r)&&l(yr,e)&&yr[e](c,o._a,o,e)):n._strict&&!r&&u(n).unusedTokens.push(f);u(n).charsLeftOver=p-a;0<i.length&&u(n).unusedInput.push(i);n._a[v]<=12&&!0===u(n).bigHour&&0<n._a[v]&&(u(n).bigHour=void 0);u(n).parsedDateParts=n._a.slice(0);u(n).meridiem=n._meridiem;n._a[v]=function(n,t,i){var r;return null==i?t:null!=n.meridiemHour?n.meridiemHour(t,i):(null!=n.isPM&&((r=n.isPM(i))&&t<12&&(t+=12),r||12!==t||(t=0)),t)}(n._locale,n._a[v],n._meridiem);cu(n);hu(n)}else ee(n);else fe(n)}function oe(n){var r,f,i,s,e=n._i,o=n._f;return n._locale=n._locale||wt(n._l),null===e||void 0===o&&""===e?tr({nullInput:!0}):("string"==typeof e&&(n._i=e=n._locale.preparse(e)),et(e)?new vi(hu(e)):(nr(e)?n._d=e:ut(o)?function(n){var t,e,f,r,i;if(0===n._f.length)return u(n).invalidFormat=!0,n._d=new Date(NaN);for(r=0;r<n._f.length;r++)i=0,t=iu({},n),null!=n._useUTC&&(t._useUTC=n._useUTC),t._f=n._f[r],lu(t),tu(t)&&(i+=u(t).charsLeftOver,i+=10*u(t).unusedTokens.length,u(t).score=i,(null==f||i<f)&&(f=i,e=t));pt(n,e||t)}(n):o?lu(n):b(f=(r=n)._i)?r._d=new Date(t.now()):nr(f)?r._d=new Date(f.valueOf()):"string"==typeof f?(i=r,null===(s=fh.exec(i._i))?(fe(i),!1===i._isValid&&(delete i._isValid,ee(i),!1===i._isValid&&(delete i._isValid,t.createFromInputFallback(i)))):i._d=new Date(+s[1])):ut(f)?(r._a=af(f.slice(0),function(n){return parseInt(n,10)}),cu(r)):ai(f)?function(n){if(!n._d){var t=uu(n._i);n._a=af([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],function(n){return n&&parseInt(n,10)});cu(n)}}(r):dt(f)?r._d=new Date(f):t.createFromInputFallback(r),tu(n)||(n._d=null),n))}function se(n,t,i,r,u){var e,f={};return!0!==i&&!1!==i||(r=i,i=void 0),(ai(n)&&function(n){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(n).length;for(var t in n)if(n.hasOwnProperty(t))return!1;return!0}(n)||ut(n)&&0===n.length)&&(n=void 0),f._isAMomentObject=!0,f._useUTC=f._isUTC=u,f._l=i,f._i=n,f._f=t,f._strict=r,(e=new vi(hu(oe(f))))._nextDay&&(e.add(1,"d"),e._nextDay=void 0),e}function h(n,t,i,r){return se(n,t,i,r,!1)}function he(n,t){var r,i;if(1===t.length&&ut(t[0])&&(t=t[0]),!t.length)return h();for(r=t[0],i=1;i<t.length;++i)t[i].isValid()&&!t[i][n](r)||(r=t[i]);return r}function sr(n){var t=uu(n),i=t.year||0,r=t.quarter||0,u=t.month||0,e=t.week||t.isoWeek||0,o=t.day||0,s=t.hour||0,h=t.minute||0,c=t.second||0,l=t.millisecond||0;this._isValid=function(n){var i,r,t;for(i in n)if(-1===a.call(ci,i)||null!=n[i]&&isNaN(n[i]))return!1;for(r=!1,t=0;t<ci.length;++t)if(n[ci[t]]){if(r)return!1;parseFloat(n[ci[t]])!==f(n[ci[t]])&&(r=!0)}return!0}(t);this._milliseconds=+l+1e3*c+6e4*h+36e5*s;this._days=+o+7*e;this._months=+u+3*r+12*i;this._data={};this._locale=wt();this._bubble()}function au(n){return n instanceof sr}function vu(n){return n<0?-1*Math.round(-1*n):Math.round(n)}function ce(n,t){r(n,0,0,function(){var n=this.utcOffset(),i="+";return n<0&&(n=-n,i="-"),i+lt(~~(n/60),2)+t+lt(~~n%60,2)})}function yu(n,t){var u=(t||"").match(n),i,r;return null===u?null:(i=((u[u.length-1]||[])+"").match(vo)||["-",0,0],r=60*i[1]+f(i[2]),0===r?0:"+"===i[0]?r:-r)}function pu(n,i){var r,u;return i._isUTC?(r=i.clone(),u=(et(n)||nr(n)?n.valueOf():h(n).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+u),t.updateOffset(r,!1),r):h(n).local()}function wu(n){return 15*-Math.round(n._d.getTimezoneOffset()/15)}function le(){return!!this.isValid()&&this._isUTC&&0===this._offset}function tt(n,t){var u,e,o,i=n,r=null;return au(n)?i={ms:n._milliseconds,d:n._days,M:n._months}:dt(n)?(i={},t?i[t]=n:i.milliseconds=n):(r=yo.exec(n))?(u="-"===r[1]?-1:1,i={y:0,d:f(r[ht])*u,h:f(r[v])*u,m:f(r[rt])*u,s:f(r[yt])*u,ms:f(vu(1e3*r[ri]))*u}):(r=po.exec(n))?(u="-"===r[1]?-1:1,i={y:ti(r[2],u),M:ti(r[3],u),w:ti(r[4],u),d:ti(r[5],u),h:ti(r[6],u),m:ti(r[7],u),s:ti(r[8],u)}):null==i?i={}:"object"==typeof i&&("from"in i||"to"in i)&&(o=function(n,t){var i;return!n.isValid()||!t.isValid()?{milliseconds:0,months:0}:(t=pu(t,n),n.isBefore(t)?i=ae(n,t):((i=ae(t,n)).milliseconds=-i.milliseconds,i.months=-i.months),i)}(h(i.from),h(i.to)),(i={}).ms=o.milliseconds,i.M=o.months),e=new sr(i),au(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 ae(n,t){var i={};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 ve(n,t){return function(i,r){var u;return null===r||isNaN(+r)||(pf(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),u=i,i=r,r=u),ye(this,tt(i="string"==typeof i?+i:i,r),n),this}}function ye(n,i,r,u){var o=i._milliseconds,f=vu(i._days),e=vu(i._months);n.isValid()&&(u=null==u||u,e&&df(n,ur(n,"Month")+e*r),f&&kf(n,"Date",ur(n,"Date")+f*r),o&&n._d.setTime(n._d.valueOf()+o*r),u&&t.updateOffset(n,f||e))}function bu(n,t){var r=12*(t.year()-n.year())+(t.month()-n.month()),i=n.clone().add(r,"months");return-(r+(t-i<0?(t-i)/(i-n.clone().add(r-1,"months")):(t-i)/(n.clone().add(r+1,"months")-i)))||0}function pe(n){var t;return void 0===n?this._locale._abbr:(null!=(t=wt(n))&&(this._locale=t),this)}function we(){return this._locale}function oi(n,t){return(n%t+t)%t}function be(n,t,i){return n<100&&0<=n?new Date(n+400,t,i)-uf:new Date(n,t,i).valueOf()}function ke(n,t,i){return n<100&&0<=n?Date.UTC(n+400,t,i)-uf:Date.UTC(n,t,i)}function hr(n,t){r(0,[n,n.length],0,t)}function de(n,t,i,r,u){var f;return null==n?bi(this,r,u).year:((f=ni(n,r,u))<t&&(t=f),function(n,t,i,r,u){var e=te(n,t,i,r,u),f=wi(e.year,0,e.dayOfYear);return this.year(f.getUTCFullYear()),this.month(f.getUTCMonth()),this.date(f.getUTCDate()),this}.call(this,n,t,i,r,u))}function as(n,t){t[ri]=f(1e3*("0."+n))}function ge(n){return n}function cr(n,t,i,r){var u=wt(),f=ft().set(r,t);return u[i](f,n)}function no(n,t,i){if(dt(n)&&(t=n,n=void 0),n=n||"",null!=t)return cr(n,t,i,"month");for(var u=[],r=0;r<12;r++)u[r]=cr(n,r,i,"month");return u}function ku(n,t,i,r){var u,o,f,e;if(t=("boolean"==typeof n?dt(t)&&(i=t,t=void 0):(t=n,n=!1,dt(i=t)&&(i=t,t=void 0)),t||""),o=wt(),f=n?o._week.dow:0,null!=i)return cr(t,(i+f)%7,r,"day");for(e=[],u=0;u<7;u++)e[u]=cr(t,(u+f)%7,r,"day");return e}function to(n,t,i,r){var u=tt(t,i);return n._milliseconds+=r*u._milliseconds,n._days+=r*u._days,n._months+=r*u._months,n._bubble()}function io(n){return n<0?Math.floor(n):Math.ceil(n)}function ro(n){return 4800*n/146097}function du(n){return 146097*n/4800}function at(n){return function(){return this.as(n)}}function ii(n){return function(){return this.isValid()?this._data[n]:NaN}}function si(n){return(0<n)-(n<0)||+n}function lr(){if(!this.isValid())return this.localeData().invalidDate();var i,o,t=lf(this._milliseconds)/1e3,v=lf(this._days),s=lf(this._months);o=d((i=d(t/60))/60);t%=60;i%=60;var h=d(s/12),c=s%=12,l=v,r=o,u=i,f=t?t.toFixed(3).replace(/\.?0+$/,""):"",n=this.asSeconds();if(!n)return"P0D";var y=n<0?"-":"",a=si(this._months)!==si(n)?"-":"",p=si(this._days)!==si(n)?"-":"",e=si(this._milliseconds)!==si(n)?"-":"";return y+"P"+(h?a+h+"Y":"")+(c?a+c+"M":"")+(l?p+l+"D":"")+(r||u||f?"T":"")+(r?e+r+"H":"")+(u?e+u+"M":"")+(f?e+f+"S":"")}var uo,fo,ar,vr,eo,gu,hi,nf,yr,a,tf,oo,so,ho,co,lo,ao,ci,vo,yo,po,wo,bo,rf,uf,ff,ko,bt,go,ns,n,o,st,e;fo=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};ar=t.momentProperties=[];vr=!1;gu={};t.suppressDeprecationWarnings=!1;t.deprecationHandler=null;eo=Object.keys?Object.keys:function(n){var t,i=[];for(t in n)l(n,t)&&i.push(t);return i};hi={};nf={};var ts=/(\[[^\[]*\])|(\\)?([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,pr=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ef={},li={},is=/\d/,k=/\d\d/,rs=/\d{3}/,of=/\d{4}/,wr=/[+-]?\d{6}/,c=/\d\d?/,us=/\d\d\d\d?/,fs=/\d\d\d\d\d\d?/,br=/\d{1,3}/,sf=/\d{1,4}/,kr=/[+-]?\d{1,6}/,dr=/[+-]?\d+/,vs=/Z|[+-]\d\d:?\d\d/gi,gr=/Z|[+-]\d\d(?::?\d\d)?/gi,ki=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,hf={};yr={};var it=0,vt=1,ht=2,v=3,rt=4,yt=5,ri=6,ys=7,ps=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");p("year","y");w("year",1);i("Y",dr);i("YY",c,k);i("YYYY",sf,of);i("YYYYY",kr,wr);i("YYYYYY",kr,wr);s(["YYYYY","YYYYYY"],it);s("YYYY",function(n,i){i[it]=2===n.length?t.parseTwoDigitYear(n):f(n)});s("YY",function(n,i){i[it]=t.parseTwoDigitYear(n)});s("Y",function(n,t){t[it]=parseInt(n,10)});t.parseTwoDigitYear=function(n){return f(n)+(68<f(n)?1900:2e3)};tf=ui("FullYear",!0);a=Array.prototype.indexOf?Array.prototype.indexOf:function(n){for(var t=0;t<this.length;++t)if(this[t]===n)return t;return-1};r("M",["MM",2],"Mo",function(){return this.month()+1});r("MMM",0,0,function(n){return this.localeData().monthsShort(this,n)});r("MMMM",0,0,function(n){return this.localeData().months(this,n)});p("month","M");w("month",8);i("M",c);i("MM",c,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[vt]=f(n)-1});s(["MMM","MMMM"],function(n,t,i,r){var f=i._locale.monthsParse(n,r,i._strict);null!=f?t[vt]=f:u(i).invalidMonth=n});var es=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,ws="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),os="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");oo=ki;so=ki;r("w",["ww",2],"wo","week");r("W",["WW",2],"Wo","isoWeek");p("week","w");p("isoWeek","W");w("week",5);w("isoWeek",5);i("w",c);i("ww",c,k);i("W",c);i("WW",c,k);yi(["w","ww","W","WW"],function(n,t,i,r){t[r.substr(0,1)]=f(n)});r("d",0,"do","day");r("dd",0,0,function(n){return this.localeData().weekdaysMin(this,n)});r("ddd",0,0,function(n){return this.localeData().weekdaysShort(this,n)});r("dddd",0,0,function(n){return this.localeData().weekdays(this,n)});r("e",0,0,"weekday");r("E",0,0,"isoWeekday");p("day","d");p("weekday","e");p("isoWeekday","E");w("day",11);w("weekday",11);w("isoWeekday",11);i("d",c);i("e",c);i("E",c);i("dd",function(n,t){return t.weekdaysMinRegex(n)});i("ddd",function(n,t){return t.weekdaysShortRegex(n)});i("dddd",function(n,t){return t.weekdaysRegex(n)});yi(["dd","ddd","dddd"],function(n,t,i,r){var f=i._locale.weekdaysParse(n,r,i._strict);null!=f?t.d=f:u(i).invalidWeekday=n});yi(["d","e","E"],function(n,t,i,r){t[r]=f(n)});var bs="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),ss="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),ks="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),ds=ki,gs=ki,nh=ki;r("H",["HH",2],0,"hour");r("h",["hh",2],0,ou);r("k",["kk",2],0,function(){return this.hours()||24});r("hmm",0,0,function(){return""+ou.apply(this)+lt(this.minutes(),2)});r("hmmss",0,0,function(){return""+ou.apply(this)+lt(this.minutes(),2)+lt(this.seconds(),2)});r("Hmm",0,0,function(){return""+this.hours()+lt(this.minutes(),2)});r("Hmmss",0,0,function(){return""+this.hours()+lt(this.minutes(),2)+lt(this.seconds(),2)});ie("a",!0);ie("A",!1);p("hour","h");w("hour",13);i("a",re);i("A",re);i("H",c);i("h",c);i("k",c);i("HH",c,k);i("hh",c,k);i("kk",c,k);i("hmm",us);i("hmmss",fs);i("Hmm",us);i("Hmmss",fs);s(["H","HH"],v);s(["k","kk"],function(n,t){var i=f(n);t[v]=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[v]=f(n);u(i).bigHour=!0});s("hmm",function(n,t,i){var r=n.length-2;t[v]=f(n.substr(0,r));t[rt]=f(n.substr(r));u(i).bigHour=!0});s("hmmss",function(n,t,i){var r=n.length-4,e=n.length-2;t[v]=f(n.substr(0,r));t[rt]=f(n.substr(r,2));t[yt]=f(n.substr(e));u(i).bigHour=!0});s("Hmm",function(n,t){var i=n.length-2;t[v]=f(n.substr(0,i));t[rt]=f(n.substr(i))});s("Hmmss",function(n,t){var i=n.length-4,r=n.length-2;t[v]=f(n.substr(0,i));t[rt]=f(n.substr(i,2));t[yt]=f(n.substr(r))});var di,th=ui("Hours",!0),hs={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:ws,monthsShort:os,week:{dow:0,doy:6},weekdays:bs,weekdaysMin:ks,weekdaysShort:ss,meridiemParse:/[ap]\.?m?\.?/i},y={},gi={},ih=/^\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)?)?$/,rh=/^\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)?)?$/,uh=/Z|[+-]\d\d(?::?\d\d)?/,nu=[["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}/]],cf=[["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/]],fh=/^\/?Date\((\-?\d+)/i;for(ho=/^(?:(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}))$/,co={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(){},lo=g("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var n=h.apply(null,arguments);return this.isValid()&&n.isValid()?n<this?this:n:tr()}),ao=g("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var n=h.apply(null,arguments);return this.isValid()&&n.isValid()?this<n?this:n:tr()}),ci=["year","quarter","month","week","day","hour","minute","second","millisecond"],ce("Z",":"),ce("ZZ",""),i("Z",gr),i("ZZ",gr),s(["Z","ZZ"],function(n,t,i){i._useUTC=!0;i._tzm=yu(gr,n)}),vo=/([\+\-]|\d\d)/gi,t.updateOffset=function(){},yo=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,po=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,tt.fn=sr.prototype,tt.invalid=function(){return tt(NaN)},wo=ve(1,"add"),bo=ve(-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)}),uf=126227808e5,r(0,["gg",2],0,function(){return this.weekYear()%100}),r(0,["GG",2],0,function(){return this.isoWeekYear()%100}),hr("gggg","weekYear"),hr("ggggg","weekYear"),hr("GGGG","isoWeekYear"),hr("GGGGG","isoWeekYear"),p("weekYear","gg"),p("isoWeekYear","GG"),w("weekYear",1),w("isoWeekYear",1),i("G",dr),i("g",dr),i("GG",c,k),i("gg",c,k),i("GGGG",sf,of),i("gggg",sf,of),i("GGGGG",kr,wr),i("ggggg",kr,wr),yi(["gggg","ggggg","GGGG","GGGGG"],function(n,t,i,r){t[r.substr(0,2)]=f(n)}),yi(["gg","GG"],function(n,i,r,u){i[u]=t.parseTwoDigitYear(n)}),r("Q",0,"Qo","quarter"),p("quarter","Q"),w("quarter",7),i("Q",is),s("Q",function(n,t){t[vt]=3*(f(n)-1)}),r("D",["DD",2],"Do","date"),p("date","D"),w("date",9),i("D",c),i("DD",c,k),i("Do",function(n,t){return n?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),s(["D","DD"],ht),s("Do",function(n,t){t[ht]=f(n.match(c)[0])}),ff=ui("Date",!0),r("DDD",["DDDD",3],"DDDo","dayOfYear"),p("dayOfYear","DDD"),w("dayOfYear",4),i("DDD",br),i("DDDD",rs),s(["DDD","DDDD"],function(n,t,i){i._dayOfYear=f(n)}),r("m",["mm",2],0,"minute"),p("minute","m"),w("minute",14),i("m",c),i("mm",c,k),s(["m","mm"],rt),ko=ui("Minutes",!1),r("s",["ss",2],0,"second"),p("second","s"),w("second",15),i("s",c),i("ss",c,k),s(["s","ss"],yt),go=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()}),p("millisecond","ms"),w("millisecond",16),i("S",br,is),i("SS",br,k),i("SSS",br,rs),bt="SSSS";bt.length<=9;bt+="S")i(bt,/\d+/);for(bt="S";bt.length<=9;bt+="S")s(bt,as);ns=ui("Milliseconds",!1);r("z",0,0,"zoneAbbr");r("zz",0,0,"zoneName");n=vi.prototype;n.add=wo;n.calendar=function(n,i){var u=n||h(),f=pu(u,this).startOf("day"),r=t.calendarFormat(this,f)||"sameElse",e=i&&(ot(i[r])?i[r].call(this,u):i[r]);return this.format(e||this.localeData().calendar(r,this,h(u)))};n.clone=function(){return new vi(this)};n.diff=function(n,t,i){var r,f,u;if(!this.isValid())return NaN;if(!(r=pu(n,this)).isValid())return NaN;switch(f=6e4*(r.utcOffset()-this.utcOffset()),t=nt(t)){case"year":u=bu(this,r)/12;break;case"month":u=bu(this,r);break;case"quarter":u=bu(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){var i,r;if(void 0===(n=nt(n))||"millisecond"===n||!this.isValid())return this;r=this._isUTC?ke:be;switch(n){case"year":i=r(this.year()+1,0,1)-1;break;case"quarter":i=r(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":i=r(this.year(),this.month()+1,1)-1;break;case"week":i=r(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":i=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":i=r(this.year(),this.month(),this.date()+1)-1;break;case"hour":i=this._d.valueOf()+(3599999-oi(i+(this._isUTC?0:6e4*this.utcOffset()),36e5));break;case"minute":i=this._d.valueOf()+(59999-oi(i,6e4));break;case"second":i=this._d.valueOf()+(999-oi(i,1e3))}return this._d.setTime(i),t.updateOffset(this,!0),this};n.format=function(n){n||(n=this.isUtc()?t.defaultFormatUtc:t.defaultFormat);var i=ir(this,n);return this.localeData().postformat(i)};n.from=function(n,t){return this.isValid()&&(et(n)&&n.isValid()||h(n).isValid())?tt({to:this,from:n}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()};n.fromNow=function(n){return this.from(h(),n)};n.to=function(n,t){return this.isValid()&&(et(n)&&n.isValid()||h(n).isValid())?tt({from:this,to:n}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()};n.toNow=function(n){return this.to(h(),n)};n.get=function(n){return ot(this[n=nt(n)])?this[n]():this};n.invalidAt=function(){return u(this).overflow};n.isAfter=function(n,t){var i=et(n)?n:h(n);return!(!this.isValid()||!i.isValid())&&("millisecond"===(t=nt(t)||"millisecond")?this.valueOf()>i.valueOf():i.valueOf()<this.clone().startOf(t).valueOf())};n.isBefore=function(n,t){var i=et(n)?n:h(n);return!(!this.isValid()||!i.isValid())&&("millisecond"===(t=nt(t)||"millisecond")?this.valueOf()<i.valueOf():this.clone().endOf(t).valueOf()<i.valueOf())};n.isBetween=function(n,t,i,r){var u=et(n)?n:h(n),f=et(t)?t:h(t);return!!(this.isValid()&&u.isValid()&&f.isValid())&&("("===(r=r||"()")[0]?this.isAfter(u,i):!this.isBefore(u,i))&&(")"===r[1]?this.isBefore(f,i):!this.isAfter(f,i))};n.isSame=function(n,t){var i,r=et(n)?n:h(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 tu(this)};n.lang=rf;n.locale=pe;n.localeData=we;n.max=ao;n.min=lo;n.parsingFlags=function(){return pt({},u(this))};n.set=function(n,t){if("object"==typeof n)for(var r=function(n){var t=[];for(var i in n)t.push({unit:i,priority:nf[i]});return t.sort(function(n,t){return n.priority-t.priority}),t}(n=uu(n)),i=0;i<r.length;i++)this[r[i].unit](n[r[i].unit]);else if(ot(this[n=nt(n)]))return this[n](t);return this};n.startOf=function(n){var i,r;if(void 0===(n=nt(n))||"millisecond"===n||!this.isValid())return this;r=this._isUTC?ke:be;switch(n){case"year":i=r(this.year(),0,1);break;case"quarter":i=r(this.year(),this.month()-this.month()%3,1);break;case"month":i=r(this.year(),this.month(),1);break;case"week":i=r(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":i=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":i=r(this.year(),this.month(),this.date());break;case"hour":i=this._d.valueOf()-oi(i+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":i=this._d.valueOf()-oi(i,6e4);break;case"second":i=this._d.valueOf()-oi(i,1e3)}return this._d.setTime(i),t.updateOffset(this,!0),this};n.subtract=bo;n.toArray=function(){var n=this;return[n.year(),n.month(),n.date(),n.hour(),n.minute(),n.second(),n.millisecond()]};n.toObject=function(){var n=this;return{years:n.year(),months:n.month(),date:n.date(),hours:n.hours(),minutes:n.minutes(),seconds:n.seconds(),milliseconds:n.milliseconds()}};n.toDate=function(){return new Date(this.valueOf())};n.toISOString=function(n){if(!this.isValid())return null;var i=!0!==n,t=i?this.clone().utc():this;return t.year()<0||9999<t.year()?ir(t,i?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):ot(Date.prototype.toISOString)?i?this.toDate().toISOString():new Date(this.valueOf()+6e4*this.utcOffset()).toISOString().replace("Z",ir(t,"Z")):ir(t,i?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")};n.inspect=function(){var n,t;if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";n="moment";t="";this.isLocal()||(n=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var i="["+n+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",u=t+'[")]';return this.format(i+r+"-MM-DD[T]HH:mm:ss.SSS"+u)};n.toJSON=function(){return this.isValid()?this.toISOString():null};n.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")};n.unix=function(){return Math.floor(this.valueOf()/1e3)};n.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)};n.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}};n.year=tf;n.isLeapYear=function(){return rr(this.year())};n.weekYear=function(n){return de.call(this,n,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)};n.isoWeekYear=function(n){return de.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=gf;n.daysInMonth=function(){return fr(this.year(),this.month())};n.week=n.weeks=function(n){var t=this.localeData().week(this);return null==n?t:this.add(7*(n-t),"d")};n.isoWeek=n.isoWeeks=function(n){var t=bi(this,1,4).week;return null==n?t:this.add(7*(n-t),"d")};n.weeksInYear=function(){var n=this.localeData()._week;return ni(this.year(),n.dow,n.doy)};n.isoWeeksInYear=function(){return ni(this.year(),1,4)};n.date=ff;n.day=n.days=function(n){if(!this.isValid())return null!=n?this:NaN;var t,i,r=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=n?(t=n,i=this.localeData(),n="string"!=typeof t?t:isNaN(t)?"number"==typeof(t=i.weekdaysParse(t))?t:null:parseInt(t,10),this.add(n-r,"d")):r};n.weekday=function(n){if(!this.isValid())return null!=n?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==n?t:this.add(n-t,"d")};n.isoWeekday=function(n){if(!this.isValid())return null!=n?this:NaN;if(null==n)return this.day()||7;var t,i,r=(t=n,i=this.localeData(),"string"==typeof t?i.weekdaysParse(t)%7||7:isNaN(t)?null:t);return this.day(this.day()%7?r:r-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=th;n.minute=n.minutes=ko;n.second=n.seconds=go;n.millisecond=n.milliseconds=ns;n.utcOffset=function(n,i,r){var u,f=this._offset||0;if(!this.isValid())return null!=n?this:NaN;if(null==n)return this._isUTC?f:wu(this);if("string"==typeof n){if(null===(n=yu(gr,n)))return this}else Math.abs(n)<16&&!r&&(n*=60);return!this._isUTC&&i&&(u=wu(this)),this._offset=n,this._isUTC=!0,null!=u&&this.add(u,"m"),f!==n&&(!i||this._changeInProgress?ye(this,tt(n-f,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),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(wu(this),"m")),this};n.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var n=yu(vs,this._i);null!=n?this.utcOffset(n):this.utcOffset(0,!0)}return this};n.hasAlignedHourOffset=function(n){return!!this.isValid()&&(n=n?h(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=le;n.isUTC=le;n.zoneAbbr=function(){return this._isUTC?"UTC":""};n.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""};n.dates=g("dates accessor is deprecated. Use date instead.",ff);n.months=g("months accessor is deprecated. Use month instead",gf);n.years=g("years accessor is deprecated. Use year instead",tf);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 b(this._isDSTShifted)?(n={},(iu(n,this),(n=oe(n))._a)?(t=n._isUTC?ft(n._a):h(n._a),this._isDSTShifted=this.isValid()&&0<vf(n._a,t.toArray())):this._isDSTShifted=!1,this._isDSTShifted):this._isDSTShifted});o=ru.prototype;o.calendar=function(n,t,i){var r=this._calendar[n]||this._calendar.sameElse;return ot(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=ge;o.postformat=ge;o.relativeTime=function(n,t,i,r){var u=this._relativeTime[i];return ot(u)?u(n,t,i,r):u.replace(/%d/i,n)};o.pastFuture=function(n,t){var i=this._relativeTime[0<n?"future":"past"];return ot(i)?i(t):i.replace(/%s/i,t)};o.set=function(n){var t;for(var i in n)ot(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?ut(this._months)?this._months[n.month()]:this._months[(this._months.isFormat||es).test(t)?"format":"standalone"][n.month()]:ut(this._months)?this._months:this._months.standalone};o.monthsShort=function(n,t){return n?ut(this._monthsShort)?this._monthsShort[n.month()]:this._monthsShort[es.test(t)?"format":"standalone"][n.month()]:ut(this._monthsShort)?this._monthsShort:this._monthsShort.standalone};o.monthsParse=function(n,t,i){var r,u,f;if(this._monthsParseExact)return function(n,t,i){var u,r,e,f=n.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],u=0;u<12;++u)e=ft([2e3,u]),this._shortMonthsParse[u]=this.monthsShort(e,"").toLocaleLowerCase(),this._longMonthsParse[u]=this.months(e,"").toLocaleLowerCase();return i?"MMM"===t?-1!==(r=a.call(this._shortMonthsParse,f))?r:null:-1!==(r=a.call(this._longMonthsParse,f))?r:null:"MMM"===t?-1!==(r=a.call(this._shortMonthsParse,f))?r:-1!==(r=a.call(this._longMonthsParse,f))?r:null:-1!==(r=a.call(this._longMonthsParse,f))?r:-1!==(r=a.call(this._shortMonthsParse,f))?r:null}.call(this,n,t,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++)if((u=ft([2e3,r]),i&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(u,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(u,"").replace(".","")+"$","i")),i||this._monthsParse[r]||(f="^"+this.months(u,"")+"|^"+this.monthsShort(u,""),this._monthsParse[r]=new RegExp(f.replace(".",""),"i")),i&&"MMMM"===t&&this._longMonthsParse[r].test(n))||i&&"MMM"===t&&this._shortMonthsParse[r].test(n)||!i&&this._monthsParse[r].test(n))return r};o.monthsRegex=function(n){return this._monthsParseExact?(l(this,"_monthsRegex")||ne.call(this),n?this._monthsStrictRegex:this._monthsRegex):(l(this,"_monthsRegex")||(this._monthsRegex=so),this._monthsStrictRegex&&n?this._monthsStrictRegex:this._monthsRegex)};o.monthsShortRegex=function(n){return this._monthsParseExact?(l(this,"_monthsRegex")||ne.call(this),n?this._monthsShortStrictRegex:this._monthsShortRegex):(l(this,"_monthsShortRegex")||(this._monthsShortRegex=oo),this._monthsShortStrictRegex&&n?this._monthsShortStrictRegex:this._monthsShortRegex)};o.week=function(n){return bi(n,this._week.dow,this._week.doy).week};o.firstDayOfYear=function(){return this._week.doy};o.firstDayOfWeek=function(){return this._week.dow};o.weekdays=function(n,t){var i=ut(this._weekdays)?this._weekdays:this._weekdays[n&&!0!==n&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===n?fu(i,this._week.dow):n?i[n.day()]:i};o.weekdaysMin=function(n){return!0===n?fu(this._weekdaysMin,this._week.dow):n?this._weekdaysMin[n.day()]:this._weekdaysMin};o.weekdaysShort=function(n){return!0===n?fu(this._weekdaysShort,this._week.dow):n?this._weekdaysShort[n.day()]:this._weekdaysShort};o.weekdaysParse=function(n,t,i){var r,u,f;if(this._weekdaysParseExact)return function(n,t,i){var f,r,e,u=n.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],f=0;f<7;++f)e=ft([2e3,1]).day(f),this._minWeekdaysParse[f]=this.weekdaysMin(e,"").toLocaleLowerCase(),this._shortWeekdaysParse[f]=this.weekdaysShort(e,"").toLocaleLowerCase(),this._weekdaysParse[f]=this.weekdays(e,"").toLocaleLowerCase();return i?"dddd"===t?-1!==(r=a.call(this._weekdaysParse,u))?r:null:"ddd"===t?-1!==(r=a.call(this._shortWeekdaysParse,u))?r:null:-1!==(r=a.call(this._minWeekdaysParse,u))?r:null:"dddd"===t?-1!==(r=a.call(this._weekdaysParse,u))?r:-1!==(r=a.call(this._shortWeekdaysParse,u))?r:-1!==(r=a.call(this._minWeekdaysParse,u))?r:null:"ddd"===t?-1!==(r=a.call(this._shortWeekdaysParse,u))?r:-1!==(r=a.call(this._weekdaysParse,u))?r:-1!==(r=a.call(this._minWeekdaysParse,u))?r:null:-1!==(r=a.call(this._minWeekdaysParse,u))?r:-1!==(r=a.call(this._weekdaysParse,u))?r:-1!==(r=a.call(this._shortWeekdaysParse,u))?r:null}.call(this,n,t,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++)if((u=ft([2e3,1]).day(r),i&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(u,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(u,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(u,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(f="^"+this.weekdays(u,"")+"|^"+this.weekdaysShort(u,"")+"|^"+this.weekdaysMin(u,""),this._weekdaysParse[r]=new RegExp(f.replace(".",""),"i")),i&&"dddd"===t&&this._fullWeekdaysParse[r].test(n))||i&&"ddd"===t&&this._shortWeekdaysParse[r].test(n)||i&&"dd"===t&&this._minWeekdaysParse[r].test(n)||!i&&this._weekdaysParse[r].test(n))return r};o.weekdaysRegex=function(n){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||eu.call(this),n?this._weekdaysStrictRegex:this._weekdaysRegex):(l(this,"_weekdaysRegex")||(this._weekdaysRegex=ds),this._weekdaysStrictRegex&&n?this._weekdaysStrictRegex:this._weekdaysRegex)};o.weekdaysShortRegex=function(n){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||eu.call(this),n?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(l(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=gs),this._weekdaysShortStrictRegex&&n?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)};o.weekdaysMinRegex=function(n){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||eu.call(this),n?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(l(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=nh),this._weekdaysMinStrictRegex&&n?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)};o.isPM=function(n){return"p"===(n+"").toLowerCase().charAt(0)};o.meridiem=function(n,t,i){return 11<n?i?"pm":"PM":i?"am":"AM"};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.",wt);st=Math.abs;var eh=at("ms"),oh=at("s"),sh=at("m"),hh=at("h"),ch=at("d"),lh=at("w"),ah=at("M"),vh=at("Q"),yh=at("y"),ph=ii("milliseconds"),wh=ii("seconds"),bh=ii("minutes"),kh=ii("hours"),dh=ii("days"),gh=ii("months"),nc=ii("years"),kt=Math.round,ct={ss:44,s:45,m:45,h:22,d:26,M:11},lf=Math.abs;return e=sr.prototype,e.isValid=function(){return this._isValid},e.abs=function(){var n=this._data;return this._milliseconds=st(this._milliseconds),this._days=st(this._days),this._months=st(this._months),n.milliseconds=st(n.milliseconds),n.seconds=st(n.seconds),n.minutes=st(n.minutes),n.hours=st(n.hours),n.months=st(n.months),n.years=st(n.years),this},e.add=function(n,t){return to(this,n,t,1)},e.subtract=function(n,t){return to(this,n,t,-1)},e.as=function(n){if(!this.isValid())return NaN;var t,r,i=this._milliseconds;if("month"===(n=nt(n))||"quarter"===n||"year"===n)switch(t=this._days+i/864e5,r=this._months+ro(t),n){case"month":return r;case"quarter":return r/3;case"year":return r/12}else switch(t=this._days+Math.round(du(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=eh,e.asSeconds=oh,e.asMinutes=sh,e.asHours=hh,e.asDays=ch,e.asWeeks=lh,e.asMonths=ah,e.asQuarters=vh,e.asYears=yh,e.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*f(this._months/12):NaN},e._bubble=function(){var u,f,e,o,s,r=this._milliseconds,t=this._days,n=this._months,i=this._data;return 0<=r&&0<=t&&0<=n||r<=0&&t<=0&&n<=0||(r+=864e5*io(du(n)+t),n=t=0),i.milliseconds=r%1e3,u=d(r/1e3),i.seconds=u%60,f=d(u/60),i.minutes=f%60,e=d(f/60),i.hours=e%24,n+=s=d(ro(t+=d(e/24))),t-=io(du(s)),o=d(n/12),n%=12,i.days=t,i.months=n,i.years=o,this},e.clone=function(){return tt(this)},e.get=function(n){return n=nt(n),this.isValid()?this[n+"s"]():NaN},e.milliseconds=ph,e.seconds=wh,e.minutes=bh,e.hours=kh,e.days=dh,e.weeks=function(){return d(this.days()/7)},e.months=gh,e.years=nc,e.humanize=function(n){if(!this.isValid())return this.localeData().invalidDate();var l,a,v,t,i,r,u,f,e,s,o,h=this.localeData(),c=(a=!n,v=h,t=tt(l=this).abs(),i=kt(t.as("s")),r=kt(t.as("m")),u=kt(t.as("h")),f=kt(t.as("d")),e=kt(t.as("M")),s=kt(t.as("y")),(o=i<=ct.ss&&["s",i]||i<ct.s&&["ss",i]||r<=1&&["m"]||r<ct.m&&["mm",r]||u<=1&&["h"]||u<ct.h&&["hh",u]||f<=1&&["d"]||f<ct.d&&["dd",f]||e<=1&&["M"]||e<ct.M&&["MM",e]||s<=1&&["y"]||["yy",s])[2]=a,o[3]=0<+l,o[4]=v,function(n,t,i,r,u){return u.relativeTime(t||1,!!i,n,r)}.apply(null,o));return n&&(c=h.pastFuture(+this,c)),h.postformat(c)},e.toISOString=lr,e.toString=lr,e.toJSON=lr,e.locale=pe,e.localeData=we,e.toIsoString=g("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",lr),e.lang=rf,r("X",0,0,"unix"),r("x",0,0,"valueOf"),i("x",dr),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.24.0",uo=h,t.fn=n,t.min=function(){return he("isBefore",[].slice.call(arguments,0))},t.max=function(){return he("isAfter",[].slice.call(arguments,0))},t.now=function(){return Date.now?Date.now():+new Date},t.utc=ft,t.unix=function(n){return h(1e3*n)},t.months=function(n,t){return no(n,t,"months")},t.isDate=nr,t.locale=fi,t.invalid=tr,t.duration=tt,t.isMoment=et,t.weekdays=function(n,t,i){return ku(n,t,i,"weekdays")},t.parseZone=function(){return h.apply(null,arguments).parseZone()},t.localeData=wt,t.isDuration=au,t.monthsShort=function(n,t){return no(n,t,"monthsShort")},t.weekdaysMin=function(n,t,i){return ku(n,t,i,"weekdaysMin")},t.defineLocale=su,t.updateLocale=function(n,t){if(null!=t){var i,r,u=hs;null!=(r=or(n))&&(u=r._config);(i=new ru(t=wf(u,t))).parentLocale=y[n];y[n]=i;fi(n)}else null!=y[n]&&(null!=y[n].parentLocale?y[n]=y[n].parentLocale:null!=y[n]&&delete y[n]);return y[n]},t.locales=function(){return eo(y)},t.weekdaysShort=function(n,t,i){return ku(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!==ct[n]&&(void 0===t?ct[n]:(ct[n]=t,"s"===n&&(ct.ss=t-1),!0))},t.calendarFormat=function(n,t){var i=n.diff(t,"days",!0);return i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse"},t.prototype=n,t.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},t})