;(function($){"use strict";$.fn.Form=function(){};var $this=$.fn.Form;$.fn.Form.media=function(options,fun){try{var media=wp.media.frames.file_frame=wp.media($this.merge({title:'Choose Image',button:{text:'Choose Image'},multiple:true},options));media.on('select',function(){if(typeof(fun)=='function'){fun.call(this,media.state().get('selection').toJSON());}});media.open();}catch(err){}};$.fn.Form.ajax=function(module,params,fun){if(!ajaxurl){return;} jQuery.ajax({'type':'POST','url':ajaxurl,'data':{'action':'slz_slz_core','module':module,'params':params},success:function(response){if('function'==typeof(fun)){fun.call(this,response);}}});};$.fn.Form.replace=function(str,data){return str.replace(/{([^}]+)}/g,function(match,key,offset,old){return $this.find(data,key);});};$.fn.Form.find=function(data,key){var part=key.split(".");var rev=data;$.each(part,function(index,value){if('undefined'!=typeof(rev)){rev=rev[value];}});return rev;};$.fn.Form.merge=function(o,n){if(n){for(var p in n){try{if(n[p].constructor==Object){o[p]=$.fn.Chart.merge(o[p],n[p]);}else{o[p]=n[p];}}catch(e){o[p]=n[p];}}} return o;};$.fn.Form.toHash=function(data){var result={};$.each(data,function(index,row){result[row['name']]=row['value'];});return result;};$.fn.Form.valid=function(){if($('#post').length>0){var post_type=$("#post [name='post_type']").val();switch(post_type){case'design':$.fn.Form.valid_design();break;}}};$.fn.Form.ok=false;$.fn.Form.valid_design=function(){$('#post').submit(function(){if(!$.fn.Form.ok){$.fn.Form.ajax(['setting.Setting_Controller','design_valid'],[$.fn.Form.toHash($('#post').serializeArray())],function(response){if(response&&1==response['ok']){$.fn.Form.ok=true;$('#post').submit();}else{console.dir(response['error']);}});return false;}});};})(jQuery);jQuery(document).ready(function(){jQuery.fn.Form.valid();});;(()=>{"use strict";var t={d:(e,i)=>{for(var s in i)t.o(i,s)&&!t.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:i[s]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};function i(t){if(this.formData={},this.tree={},!(t instanceof FormData))return this;this.formData=t;const e=()=>{const t=new Map;return t.largestIndex=0,t.set=function(e,i){""===e?e=t.largestIndex++:/^[0-9]+$/.test(e)&&(e=parseInt(e),t.largestIndex<=e&&(t.largestIndex=e+1)),Map.prototype.set.call(t,e,i)},t};this.tree=e();const i=/^(?[a-z][-a-z0-9_:]*)(?(?:\[(?:[a-z][-a-z0-9_:]*|[0-9]*)\])*)/i;for(const[t,s]of this.formData){const o=t.match(i);if(o)if(""===o.groups.array)this.tree.set(o.groups.name,s);else{const t=[...o.groups.array.matchAll(/\[([a-z][-a-z0-9_:]*|[0-9]*)\]/gi)].map((([t,e])=>e));t.unshift(o.groups.name);const i=t.pop();t.reduce(((t,i)=>{if(/^[0-9]+$/.test(i)&&(i=parseInt(i)),t.get(i)instanceof Map)return t.get(i);const s=e();return t.set(i,s),s}),this.tree).set(i,s)}}}t.r(e),t.d(e,{all:()=>D,any:()=>M,date:()=>f,dayofweek:()=>u,email:()=>r,enum:()=>h,file:()=>m,maxdate:()=>z,maxfilesize:()=>$,maxitems:()=>v,maxlength:()=>x,maxnumber:()=>b,mindate:()=>A,minfilesize:()=>j,minitems:()=>w,minlength:()=>g,minnumber:()=>y,number:()=>c,required:()=>n,requiredfile:()=>a,tel:()=>l,time:()=>d,url:()=>p}),i.prototype.entries=function(){return this.tree.entries()},i.prototype.get=function(t){return this.tree.get(t)},i.prototype.getAll=function(t){if(!this.has(t))return[];const e=t=>{const i=[];if(t instanceof Map)for(const[s,o]of t)i.push(...e(o));else""!==t&&i.push(t);return i};return e(this.get(t))},i.prototype.has=function(t){return this.tree.has(t)},i.prototype.keys=function(){return this.tree.keys()},i.prototype.values=function(){return this.tree.values()};const s=i;function o({rule:t,field:e,error:i,...s}){this.rule=t,this.field=e,this.error=i,this.properties=s}const n=function(t){if(0===t.getAll(this.field).length)throw new o(this)},a=function(t){if(0===t.getAll(this.field).length)throw new o(this)},r=function(t){if(!t.getAll(this.field).every((t=>{if((t=t.trim()).length<6)return!1;if(-1===t.indexOf("@",1))return!1;if(t.indexOf("@")!==t.lastIndexOf("@"))return!1;const[e,i]=t.split("@",2);if(!/^[a-zA-Z0-9!#$%&\'*+\/=?^_`{|}~\.-]+$/.test(e))return!1;if(/\.{2,}/.test(i))return!1;if(/(?:^[ \t\n\r\0\x0B.]|[ \t\n\r\0\x0B.]$)/.test(i))return!1;const s=i.split(".");if(s.length<2)return!1;for(const t of s){if(/(?:^[ \t\n\r\0\x0B-]|[ \t\n\r\0\x0B-]$)/.test(t))return!1;if(!/^[a-z0-9-]+$/i.test(t))return!1}return!0})))throw new o(this)},p=function(t){const e=t.getAll(this.field);if(!e.every((t=>{if(""===(t=t.trim()))return!1;try{return(t=>-1!==["http","https","ftp","ftps","mailto","news","irc","irc6","ircs","gopher","nntp","feed","telnet","mms","rtsp","sms","svn","tel","fax","xmpp","webcal","urn"].indexOf(t))(new URL(t).protocol.replace(/:$/,""))}catch{return!1}})))throw new o(this)},l=function(t){if(!t.getAll(this.field).every((t=>(t=(t=t.trim()).replaceAll(/[()/.*#\s-]+/g,""),/^[+]?[0-9]+$/.test(t)))))throw new o(this)},c=function(t){if(!t.getAll(this.field).every((t=>(t=t.trim(),!!/^[-]?[0-9]+(?:[eE][+-]?[0-9]+)?$/.test(t)||!!/^[-]?(?:[0-9]+)?[.][0-9]+(?:[eE][+-]?[0-9]+)?$/.test(t)))))throw new o(this)},f=function(t){if(!t.getAll(this.field).every((t=>{if(t=t.trim(),!/^[0-9]{4,}-[0-9]{2}-[0-9]{2}$/.test(t))return!1;const e=new Date(t);return!Number.isNaN(e.valueOf())})))throw new o(this)},d=function(t){if(!t.getAll(this.field).every((t=>{const e=t.trim().match(/^([0-9]{2})\:([0-9]{2})(?:\:([0-9]{2}))?$/);if(!e)return!1;const i=parseInt(e[1]),s=parseInt(e[2]),o=e[3]?parseInt(e[3]):0;return 0<=i&&i<=23&&0<=s&&s<=59&&0<=o&&o<=59})))throw new o(this)},m=function(t){if(!t.getAll(this.field).every((t=>t instanceof File&&this.accept?.some((e=>/^\.[a-z0-9]+$/i.test(e)?t.name.toLowerCase().endsWith(e.toLowerCase()):(t=>{const e=[],i=t.match(/^(?[a-z]+)\/(?[*]|[a-z0-9.+-]+)$/i);if(i){const t=i.groups.toplevel.toLowerCase(),s=i.groups.sub.toLowerCase();for(const[o,n]of(()=>{const t=new Map;return t.set("jpg|jpeg|jpe","image/jpeg"),t.set("gif","image/gif"),t.set("png","image/png"),t.set("bmp","image/bmp"),t.set("tiff|tif","image/tiff"),t.set("webp","image/webp"),t.set("ico","image/x-icon"),t.set("heic","image/heic"),t.set("asf|asx","video/x-ms-asf"),t.set("wmv","video/x-ms-wmv"),t.set("wmx","video/x-ms-wmx"),t.set("wm","video/x-ms-wm"),t.set("avi","video/avi"),t.set("divx","video/divx"),t.set("flv","video/x-flv"),t.set("mov|qt","video/quicktime"),t.set("mpeg|mpg|mpe","video/mpeg"),t.set("mp4|m4v","video/mp4"),t.set("ogv","video/ogg"),t.set("webm","video/webm"),t.set("mkv","video/x-matroska"),t.set("3gp|3gpp","video/3gpp"),t.set("3g2|3gp2","video/3gpp2"),t.set("txt|asc|c|cc|h|srt","text/plain"),t.set("csv","text/csv"),t.set("tsv","text/tab-separated-values"),t.set("ics","text/calendar"),t.set("rtx","text/richtext"),t.set("css","text/css"),t.set("htm|html","text/html"),t.set("vtt","text/vtt"),t.set("dfxp","application/ttaf+xml"),t.set("mp3|m4a|m4b","audio/mpeg"),t.set("aac","audio/aac"),t.set("ra|ram","audio/x-realaudio"),t.set("wav","audio/wav"),t.set("ogg|oga","audio/ogg"),t.set("flac","audio/flac"),t.set("mid|midi","audio/midi"),t.set("wma","audio/x-ms-wma"),t.set("wax","audio/x-ms-wax"),t.set("mka","audio/x-matroska"),t.set("rtf","application/rtf"),t.set("js","application/javascript"),t.set("pdf","application/pdf"),t.set("swf","application/x-shockwave-flash"),t.set("class","application/java"),t.set("tar","application/x-tar"),t.set("zip","application/zip"),t.set("gz|gzip","application/x-gzip"),t.set("rar","application/rar"),t.set("7z","application/x-7z-compressed"),t.set("exe","application/x-msdownload"),t.set("psd","application/octet-stream"),t.set("xcf","application/octet-stream"),t.set("doc","application/msword"),t.set("pot|pps|ppt","application/vnd.ms-powerpoint"),t.set("wri","application/vnd.ms-write"),t.set("xla|xls|xlt|xlw","application/vnd.ms-excel"),t.set("mdb","application/vnd.ms-access"),t.set("mpp","application/vnd.ms-project"),t.set("docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"),t.set("docm","application/vnd.ms-word.document.macroEnabled.12"),t.set("dotx","application/vnd.openxmlformats-officedocument.wordprocessingml.template"),t.set("dotm","application/vnd.ms-word.template.macroEnabled.12"),t.set("xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"),t.set("xlsm","application/vnd.ms-excel.sheet.macroEnabled.12"),t.set("xlsb","application/vnd.ms-excel.sheet.binary.macroEnabled.12"),t.set("xltx","application/vnd.openxmlformats-officedocument.spreadsheetml.template"),t.set("xltm","application/vnd.ms-excel.template.macroEnabled.12"),t.set("xlam","application/vnd.ms-excel.addin.macroEnabled.12"),t.set("pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"),t.set("pptm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"),t.set("ppsx","application/vnd.openxmlformats-officedocument.presentationml.slideshow"),t.set("ppsm","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"),t.set("potx","application/vnd.openxmlformats-officedocument.presentationml.template"),t.set("potm","application/vnd.ms-powerpoint.template.macroEnabled.12"),t.set("ppam","application/vnd.ms-powerpoint.addin.macroEnabled.12"),t.set("sldx","application/vnd.openxmlformats-officedocument.presentationml.slide"),t.set("sldm","application/vnd.ms-powerpoint.slide.macroEnabled.12"),t.set("onetoc|onetoc2|onetmp|onepkg","application/onenote"),t.set("oxps","application/oxps"),t.set("xps","application/vnd.ms-xpsdocument"),t.set("odt","application/vnd.oasis.opendocument.text"),t.set("odp","application/vnd.oasis.opendocument.presentation"),t.set("ods","application/vnd.oasis.opendocument.spreadsheet"),t.set("odg","application/vnd.oasis.opendocument.graphics"),t.set("odc","application/vnd.oasis.opendocument.chart"),t.set("odb","application/vnd.oasis.opendocument.database"),t.set("odf","application/vnd.oasis.opendocument.formula"),t.set("wp|wpd","application/wordperfect"),t.set("key","application/vnd.apple.keynote"),t.set("numbers","application/vnd.apple.numbers"),t.set("pages","application/vnd.apple.pages"),t})())("*"===s&&n.startsWith(t+"/")||n===i[0])&&e.push(...o.split("|"))}return e})(e).some((e=>(e="."+e.trim(),t.name.toLowerCase().endsWith(e.toLowerCase())))))))))throw new o(this)},h=function(t){if(!t.getAll(this.field).every((t=>this.accept?.some((e=>t===String(e))))))throw new o(this)},u=function(t){if(!t.getAll(this.field).every((t=>{const e=0===(i=new Date(t).getDay())?7:i;var i;return this.accept?.some((t=>e===parseInt(t)))})))throw new o(this)},w=function(t){if(t.getAll(this.field).length{"string"==typeof t&&(i+=t.length)})),0!==i&&i{"string"==typeof t&&(i+=t.length)})),parseInt(this.threshold)!(parseFloat(t)!(parseFloat(this.threshold)(t=t.trim(),!(/^[0-9]{4,}-[0-9]{2}-[0-9]{2}$/.test(t)&&/^[0-9]{4,}-[0-9]{2}-[0-9]{2}$/.test(this.threshold)&&t(t=t.trim(),!(/^[0-9]{4,}-[0-9]{2}-[0-9]{2}$/.test(t)&&/^[0-9]{4,}-[0-9]{2}-[0-9]{2}$/.test(this.threshold)&&this.threshold{t instanceof File&&(i+=t.size)})),i{t instanceof File&&(i+=t.size)})),parseInt(this.threshold){const{rule:s,...o}=t;return"function"==typeof e[s]&&("function"!=typeof e[s].matches||e[s].matches(o,i))},O=({ruleObj:t,formDataTree:i,options:s})=>{const{rule:o}=t;e[o].call(t,i,s)},E=[],k=t=>[...E].reduce(((t,e)=>i=>e(i,t)),t),D=function(t,e={}){const i=(this.rules??[]).filter((t=>I({ruleObj:t,options:e}))),s=k(O);if(!i.every((i=>{try{s({ruleObj:i,formDataTree:t,options:e})}catch(t){if(!(t instanceof o))throw t;if(void 0!==t.error)throw t;return!1}return!0})))throw new o(this)},M=function(t,e={}){const i=(this.rules??[]).filter((t=>I({ruleObj:t,options:e}))),s=k(O);if(!i.some((i=>{try{s({ruleObj:i,formDataTree:t,options:e})}catch(t){if(!(t instanceof o))throw t;return!1}return!0})))throw new o(this)};var F;window.swv={validators:e,validate:(t,e,i={})=>{const n=(t.rules??[]).filter((t=>I({ruleObj:t,options:i})));if(!n.length)return new Map;const a=k(O),r=new s(e),p=n.reduce(((t,e)=>{try{a({ruleObj:e,formDataTree:r,options:i})}catch(e){if(!(e instanceof o))throw e;if(void 0!==e.field&&!t.has(e.field)&&void 0!==e.error)return t.set(e.field,e)}return t}),new Map);for(const t of r.keys())p.has(t)||p.set(t,{validInputs:r.getAll(t)});return p},use:t=>{E.push(t)},...null!==(F=window.swv)&&void 0!==F?F:{}}})();;(()=>{"use strict";const e=window.wp.i18n,t=e=>Math.abs(parseInt(e,10)),a=(e,t,a)=>{const n=new CustomEvent(`wpcf7${t}`,{bubbles:!0,detail:a});"string"==typeof e&&(e=document.querySelector(e)),e.dispatchEvent(n)},n=(e,t)=>{const n=new Map([["init","init"],["validation_failed","invalid"],["acceptance_missing","unaccepted"],["spam","spam"],["aborted","aborted"],["mail_sent","sent"],["mail_failed","failed"],["submitting","submitting"],["resetting","resetting"],["validating","validating"],["payment_required","payment-required"]]);n.has(t)&&(t=n.get(t)),Array.from(n.values()).includes(t)||(t=`custom-${t=(t=t.replace(/[^0-9a-z]+/i," ").trim()).replace(/\s+/,"-")}`);const r=e.getAttribute("data-status");if(e.wpcf7.status=t,e.setAttribute("data-status",t),e.classList.add(t),r&&r!==t){e.classList.remove(r);const t={contactFormId:e.wpcf7.id,pluginVersion:e.wpcf7.pluginVersion,contactFormLocale:e.wpcf7.locale,unitTag:e.wpcf7.unitTag,containerPostId:e.wpcf7.containerPost,status:e.wpcf7.status,prevStatus:r};a(e,"statuschanged",t)}return t},r=e=>{const{root:t,namespace:a="contact-form-7/v1"}=wpcf7.api;return o.reduceRight(((e,t)=>a=>t(a,e)),(e=>{let n,r,{url:o,path:c,endpoint:s,headers:i,body:l,data:p,...d}=e;"string"==typeof s&&(n=a.replace(/^\/|\/$/g,""),r=s.replace(/^\//,""),c=r?n+"/"+r:n),"string"==typeof c&&(-1!==t.indexOf("?")&&(c=c.replace("?","&")),c=c.replace(/^\//,""),o=t+c),i={Accept:"application/json, */*;q=0.1",...i},delete i["X-WP-Nonce"],p&&(l=JSON.stringify(p),i["Content-Type"]="application/json");const f={code:"fetch_error",message:"You are probably offline."},u={code:"invalid_json",message:"The response is not a valid JSON response."};return window.fetch(o||c||window.location.href,{...d,headers:i,body:l}).then((e=>Promise.resolve(e).then((e=>{if(e.status>=200&&e.status<300)return e;throw e})).then((e=>{if(204===e.status)return null;if(e&&e.json)return e.json().catch((()=>{throw u}));throw u}))),(()=>{throw f}))}))(e)},o=[];function c(e,t={}){const{target:a,scope:r=e,...o}=t;if(void 0===e.wpcf7?.schema)return;const c={...e.wpcf7.schema};if(void 0!==a){if(!e.contains(a))return;if(!a.closest(".wpcf7-form-control-wrap[data-name]"))return;if(a.closest(".novalidate"))return}const p=r.querySelectorAll(".wpcf7-form-control-wrap"),d=Array.from(p).reduce(((e,t)=>(t.closest(".novalidate")||t.querySelectorAll(":where( input, textarea, select ):enabled").forEach((t=>{if(t.name)switch(t.type){case"button":case"image":case"reset":case"submit":break;case"checkbox":case"radio":t.checked&&e.append(t.name,t.value);break;case"select-multiple":for(const a of t.selectedOptions)e.append(t.name,a.value);break;case"file":for(const a of t.files)e.append(t.name,a);break;default:e.append(t.name,t.value)}})),e)),new FormData),f=e.getAttribute("data-status");Promise.resolve(n(e,"validating")).then((n=>{if(void 0!==swv){const n=swv.validate(c,d,t);for(const t of p){if(void 0===t.dataset.name)continue;const o=t.dataset.name;if(n.has(o)){const{error:t,validInputs:a}=n.get(o);i(e,o),void 0!==t&&s(e,o,t,{scope:r}),l(e,o,null!=a?a:[])}if(t.contains(a))break}}})).finally((()=>{n(e,f)}))}r.use=e=>{o.unshift(e)};const s=(e,t,a,n)=>{const{scope:r=e,...o}=null!=n?n:{},c=`${e.wpcf7?.unitTag}-ve-${t}`.replaceAll(/[^0-9a-z_-]+/gi,""),s=e.querySelector(`.wpcf7-form-control-wrap[data-name="${t}"].wpcf7-form-control`);(()=>{const t=document.createElement("li");t.setAttribute("id",c),s&&s.id?t.insertAdjacentHTML("beforeend",`${a}`):t.insertAdjacentText("beforeend",a),e.wpcf7.parent.querySelector(".screen-reader-response ul").appendChild(t)})(),r.querySelectorAll(`.wpcf7-form-control-wrap[data-name="${t}"]`).forEach((e=>{const t=document.createElement("span");t.classList.add("wpcf7-not-valid-tip"),t.setAttribute("aria-hidden","true"),t.insertAdjacentText("beforeend",a),e.appendChild(t),e.querySelectorAll("[aria-invalid]").forEach((e=>{e.setAttribute("aria-invalid","true")})),e.querySelectorAll(".wpcf7-form-control").forEach((e=>{e.classList.add("wpcf7-not-valid"),e.setAttribute("aria-describedby",c),"function"==typeof e.setCustomValidity&&e.setCustomValidity(a),e.closest(".use-floating-validation-tip")&&(e.addEventListener("focus",(e=>{t.setAttribute("style","display: none")})),t.addEventListener("click",(e=>{t.setAttribute("style","display: none")})))}))}))},i=(e,t)=>{const a=`${e.wpcf7?.unitTag}-ve-${t}`.replaceAll(/[^0-9a-z_-]+/gi,"");e.wpcf7.parent.querySelector(`.screen-reader-response ul li#${a}`)?.remove(),e.querySelectorAll(`.wpcf7-form-control-wrap[data-name="${t}"]`).forEach((e=>{e.querySelector(".wpcf7-not-valid-tip")?.remove(),e.querySelectorAll("[aria-invalid]").forEach((e=>{e.setAttribute("aria-invalid","false")})),e.querySelectorAll(".wpcf7-form-control").forEach((e=>{e.removeAttribute("aria-describedby"),e.classList.remove("wpcf7-not-valid"),"function"==typeof e.setCustomValidity&&e.setCustomValidity("")}))}))},l=(e,t,a)=>{e.querySelectorAll(`[data-reflection-of="${t}"]`).forEach((e=>{if("output"===e.tagName.toLowerCase()){const t=e;0===a.length&&a.push(t.dataset.default),a.slice(0,1).forEach((e=>{e instanceof File&&(e=e.name),t.textContent=e}))}else e.querySelectorAll("output").forEach((e=>{e.hasAttribute("data-default")?0===a.length?e.removeAttribute("hidden"):e.setAttribute("hidden","hidden"):e.remove()})),a.forEach((a=>{a instanceof File&&(a=a.name);const n=document.createElement("output");n.setAttribute("name",t),n.textContent=a,e.appendChild(n)}))}))};function p(e,t={}){if(wpcf7.blocked)return d(e),void n(e,"submitting");const o=new FormData(e);t.submitter&&t.submitter.name&&o.append(t.submitter.name,t.submitter.value);const c={contactFormId:e.wpcf7.id,pluginVersion:e.wpcf7.pluginVersion,contactFormLocale:e.wpcf7.locale,unitTag:e.wpcf7.unitTag,containerPostId:e.wpcf7.containerPost,status:e.wpcf7.status,inputs:Array.from(o,(e=>{const t=e[0],a=e[1];return!t.match(/^_/)&&{name:t,value:a}})).filter((e=>!1!==e)),formData:o};r({endpoint:`contact-forms/${e.wpcf7.id}/feedback`,method:"POST",body:o,wpcf7:{endpoint:"feedback",form:e,detail:c}}).then((t=>{const r=n(e,t.status);return c.status=t.status,c.apiResponse=t,["invalid","unaccepted","spam","aborted"].includes(r)?a(e,r,c):["sent","failed"].includes(r)&&a(e,`mail${r}`,c),a(e,"submit",c),t})).then((t=>{t.posted_data_hash&&(e.querySelector('input[name="_wpcf7_posted_data_hash"]').value=t.posted_data_hash),"mail_sent"===t.status&&(e.reset(),e.wpcf7.resetOnMailSent=!0),t.invalid_fields&&t.invalid_fields.forEach((t=>{s(e,t.field,t.message)})),e.wpcf7.parent.querySelector('.screen-reader-response [role="status"]').insertAdjacentText("beforeend",t.message),e.querySelectorAll(".wpcf7-response-output").forEach((e=>{e.innerText=t.message}))})).catch((e=>console.error(e)))}r.use(((e,t)=>{if(e.wpcf7&&"feedback"===e.wpcf7.endpoint){const{form:t,detail:r}=e.wpcf7;d(t),a(t,"beforesubmit",r),n(t,"submitting")}return t(e)}));const d=e=>{e.querySelectorAll(".wpcf7-form-control-wrap").forEach((t=>{t.dataset.name&&i(e,t.dataset.name)})),e.wpcf7.parent.querySelector('.screen-reader-response [role="status"]').innerText="",e.querySelectorAll(".wpcf7-response-output").forEach((e=>{e.innerText=""}))};function f(e){const t=new FormData(e),o={contactFormId:e.wpcf7.id,pluginVersion:e.wpcf7.pluginVersion,contactFormLocale:e.wpcf7.locale,unitTag:e.wpcf7.unitTag,containerPostId:e.wpcf7.containerPost,status:e.wpcf7.status,inputs:Array.from(t,(e=>{const t=e[0],a=e[1];return!t.match(/^_/)&&{name:t,value:a}})).filter((e=>!1!==e)),formData:t};r({endpoint:`contact-forms/${e.wpcf7.id}/refill`,method:"GET",wpcf7:{endpoint:"refill",form:e,detail:o}}).then((t=>{e.wpcf7.resetOnMailSent?(delete e.wpcf7.resetOnMailSent,n(e,"mail_sent")):n(e,"init"),o.apiResponse=t,a(e,"reset",o)})).catch((e=>console.error(e)))}r.use(((e,t)=>{if(e.wpcf7&&"refill"===e.wpcf7.endpoint){const{form:t,detail:a}=e.wpcf7;d(t),n(t,"resetting")}return t(e)}));const u=(e,t)=>{for(const a in t){const n=t[a];e.querySelectorAll(`input[name="${a}"]`).forEach((e=>{e.value=""})),e.querySelectorAll(`img.wpcf7-captcha-${a.replaceAll(":","")}`).forEach((e=>{e.setAttribute("src",n)}));const r=/([0-9]+)\.(png|gif|jpeg)$/.exec(n);r&&e.querySelectorAll(`input[name="_wpcf7_captcha_challenge_${a}"]`).forEach((e=>{e.value=r[1]}))}},m=(e,t)=>{for(const a in t){const n=t[a][0],r=t[a][1];e.querySelectorAll(`.wpcf7-form-control-wrap[data-name="${a}"]`).forEach((e=>{e.querySelector(`input[name="${a}"]`).value="",e.querySelector(".wpcf7-quiz-label").textContent=n,e.querySelector(`input[name="_wpcf7_quiz_answer_${a}"]`).value=r}))}};function w(e){const a=new FormData(e);e.wpcf7={id:t(a.get("_wpcf7")),status:e.getAttribute("data-status"),pluginVersion:a.get("_wpcf7_version"),locale:a.get("_wpcf7_locale"),unitTag:a.get("_wpcf7_unit_tag"),containerPost:t(a.get("_wpcf7_container_post")),parent:e.closest(".wpcf7"),get schema(){return wpcf7.schemas.get(this.id)}},wpcf7.schemas.set(e.wpcf7.id,void 0),e.querySelectorAll(".has-spinner").forEach((e=>{e.insertAdjacentHTML("afterend",'')})),(e=>{e.querySelectorAll(".wpcf7-exclusive-checkbox").forEach((t=>{t.addEventListener("change",(t=>{const a=t.target.getAttribute("name");e.querySelectorAll(`input[type="checkbox"][name="${a}"]`).forEach((e=>{e!==t.target&&(e.checked=!1)}))}))}))})(e),(e=>{e.querySelectorAll(".has-free-text").forEach((t=>{const a=t.querySelector("input.wpcf7-free-text"),n=t.querySelector('input[type="checkbox"], input[type="radio"]');a.disabled=!n.checked,e.addEventListener("change",(e=>{a.disabled=!n.checked,e.target===n&&n.checked&&a.focus()}))}))})(e),(e=>{e.querySelectorAll(".wpcf7-validates-as-url").forEach((e=>{e.addEventListener("change",(t=>{let a=e.value.trim();a&&!a.match(/^[a-z][a-z0-9.+-]*:/i)&&-1!==a.indexOf(".")&&(a=a.replace(/^\/+/,""),a="http://"+a),e.value=a}))}))})(e),(e=>{if(!e.querySelector(".wpcf7-acceptance")||e.classList.contains("wpcf7-acceptance-as-validation"))return;const t=()=>{let t=!0;e.querySelectorAll(".wpcf7-acceptance").forEach((e=>{if(!t||e.classList.contains("optional"))return;const a=e.querySelector('input[type="checkbox"]');(e.classList.contains("invert")&&a.checked||!e.classList.contains("invert")&&!a.checked)&&(t=!1)})),e.querySelectorAll(".wpcf7-submit").forEach((e=>{e.disabled=!t}))};t(),e.addEventListener("change",(e=>{t()})),e.addEventListener("wpcf7reset",(e=>{t()}))})(e),(e=>{const a=(e,a)=>{const n=t(e.getAttribute("data-starting-value")),r=t(e.getAttribute("data-maximum-value")),o=t(e.getAttribute("data-minimum-value")),c=e.classList.contains("down")?n-a.value.length:a.value.length;e.setAttribute("data-current-value",c),e.innerText=c,r&&r{t={init:!1,...t},e.querySelectorAll(".wpcf7-character-count").forEach((n=>{const r=n.getAttribute("data-target-name"),o=e.querySelector(`[name="${r}"]`);o&&(o.value=o.defaultValue,a(n,o),t.init&&o.addEventListener("keyup",(e=>{a(n,o)})))}))};n({init:!0}),e.addEventListener("wpcf7reset",(e=>{n()}))})(e),window.addEventListener("load",(t=>{wpcf7.cached&&e.reset()})),e.addEventListener("reset",(t=>{wpcf7.reset(e)})),e.addEventListener("submit",(t=>{wpcf7.submit(e,{submitter:t.submitter}),t.preventDefault()})),e.addEventListener("wpcf7submit",(t=>{t.detail.apiResponse.captcha&&u(e,t.detail.apiResponse.captcha),t.detail.apiResponse.quiz&&m(e,t.detail.apiResponse.quiz)})),e.addEventListener("wpcf7reset",(t=>{t.detail.apiResponse.captcha&&u(e,t.detail.apiResponse.captcha),t.detail.apiResponse.quiz&&m(e,t.detail.apiResponse.quiz)})),e.addEventListener("change",(t=>{t.target.closest(".wpcf7-form-control")&&wpcf7.validate(e,{target:t.target})})),e.addEventListener("wpcf7statuschanged",(t=>{const a=t.detail.status;e.querySelectorAll(".active-on-any").forEach((e=>{e.removeAttribute("inert"),e.classList.remove("active-on-any")})),e.querySelectorAll(`.inert-on-${a}`).forEach((e=>{e.setAttribute("inert","inert"),e.classList.add("active-on-any")}))}))}document.addEventListener("DOMContentLoaded",(t=>{var a;if("undefined"!=typeof wpcf7)if(void 0!==wpcf7.api)if("function"==typeof window.fetch)if("function"==typeof window.FormData)if("function"==typeof NodeList.prototype.forEach)if("function"==typeof String.prototype.replaceAll){wpcf7={init:w,submit:p,reset:f,validate:c,schemas:new Map,...null!==(a=wpcf7)&&void 0!==a?a:{}},document.querySelectorAll("form .wpcf7").forEach((t=>{const a=document.createElement("p");a.setAttribute("class","wpcf7-form-in-wrong-place");const n=document.createElement("strong");n.append((0,e.__)("Error:","contact-form-7"));const r=(0,e.__)("This contact form is placed in the wrong place.","contact-form-7");a.append(n," ",r),t.replaceWith(a)})),document.querySelectorAll(".wpcf7 > form").forEach((e=>{wpcf7.init(e),e.closest(".wpcf7").classList.replace("no-js","js")}));for(const e of wpcf7.schemas.keys())r({endpoint:`contact-forms/${e}/feedback/schema`,method:"GET"}).then((t=>{wpcf7.schemas.set(e,t)}))}else console.error("Your browser does not support String.replaceAll().");else console.error("Your browser does not support NodeList.forEach().");else console.error("Your browser does not support window.FormData().");else console.error("Your browser does not support window.fetch().");else console.error("wpcf7.api is not defined.");else console.error("wpcf7 is not defined.")}))})(); ;/*! WOW - v1.1.3 - 2016-05-06 * Copyright (c) 2016 Matthieu Aussaguel;*/(function(){var a,b,c,d,e,f=function(a,b){return function(){return a.apply(b,arguments)}},g=[].indexOf||function(a){for(var b=0,c=this.length;c>b;b++)if(b in this&&this[b]===a)return b;return-1};b=function(){function a(){}return a.prototype.extend=function(a,b){var c,d;for(c in b)d=b[c],null==a[c]&&(a[c]=d);return a},a.prototype.isMobile=function(a){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(a)},a.prototype.createEvent=function(a,b,c,d){var e;return null==b&&(b=!1),null==c&&(c=!1),null==d&&(d=null),null!=document.createEvent?(e=document.createEvent("CustomEvent"),e.initCustomEvent(a,b,c,d)):null!=document.createEventObject?(e=document.createEventObject(),e.eventType=a):e.eventName=a,e},a.prototype.emitEvent=function(a,b){return null!=a.dispatchEvent?a.dispatchEvent(b):b in(null!=a)?a[b]():"on"+b in(null!=a)?a["on"+b]():void 0},a.prototype.addEvent=function(a,b,c){return null!=a.addEventListener?a.addEventListener(b,c,!1):null!=a.attachEvent?a.attachEvent("on"+b,c):a[b]=c},a.prototype.removeEvent=function(a,b,c){return null!=a.removeEventListener?a.removeEventListener(b,c,!1):null!=a.detachEvent?a.detachEvent("on"+b,c):delete a[b]},a.prototype.innerHeight=function(){return"innerHeight"in window?window.innerHeight:document.documentElement.clientHeight},a}(),c=this.WeakMap||this.MozWeakMap||(c=function(){function a(){this.keys=[],this.values=[]}return a.prototype.get=function(a){var b,c,d,e,f;for(f=this.keys,b=d=0,e=f.length;e>d;b=++d)if(c=f[b],c===a)return this.values[b]},a.prototype.set=function(a,b){var c,d,e,f,g;for(g=this.keys,c=e=0,f=g.length;f>e;c=++e)if(d=g[c],d===a)return void(this.values[c]=b);return this.keys.push(a),this.values.push(b)},a}()),a=this.MutationObserver||this.WebkitMutationObserver||this.MozMutationObserver||(a=function(){function a(){"undefined"!=typeof console&&null!==console&&console.warn("MutationObserver is not supported by your browser."),"undefined"!=typeof console&&null!==console&&console.warn("WOW.js cannot detect dom mutations, please call .sync() after loading new content.")}return a.notSupported=!0,a.prototype.observe=function(){},a}()),d=this.getComputedStyle||function(a,b){return this.getPropertyValue=function(b){var c;return"float"===b&&(b="styleFloat"),e.test(b)&&b.replace(e,function(a,b){return b.toUpperCase()}),(null!=(c=a.currentStyle)?c[b]:void 0)||null},this},e=/(\-([a-z]){1})/g,this.WOW=function(){function e(a){null==a&&(a={}),this.scrollCallback=f(this.scrollCallback,this),this.scrollHandler=f(this.scrollHandler,this),this.resetAnimation=f(this.resetAnimation,this),this.start=f(this.start,this),this.scrolled=!0,this.config=this.util().extend(a,this.defaults),null!=a.scrollContainer&&(this.config.scrollContainer=document.querySelector(a.scrollContainer)),this.animationNameCache=new c,this.wowEvent=this.util().createEvent(this.config.boxClass)}return e.prototype.defaults={boxClass:"wow",animateClass:"animated",offset:0,mobile:!0,live:!0,callback:null,scrollContainer:null},e.prototype.init=function(){var a;return this.element=window.document.documentElement,"interactive"===(a=document.readyState)||"complete"===a?this.start():this.util().addEvent(document,"DOMContentLoaded",this.start),this.finished=[]},e.prototype.start=function(){var b,c,d,e;if(this.stopped=!1,this.boxes=function(){var a,c,d,e;for(d=this.element.querySelectorAll("."+this.config.boxClass),e=[],a=0,c=d.length;c>a;a++)b=d[a],e.push(b);return e}.call(this),this.all=function(){var a,c,d,e;for(d=this.boxes,e=[],a=0,c=d.length;c>a;a++)b=d[a],e.push(b);return e}.call(this),this.boxes.length)if(this.disabled())this.resetStyle();else for(e=this.boxes,c=0,d=e.length;d>c;c++)b=e[c],this.applyStyle(b,!0);return this.disabled()||(this.util().addEvent(this.config.scrollContainer||window,"scroll",this.scrollHandler),this.util().addEvent(window,"resize",this.scrollHandler),this.interval=setInterval(this.scrollCallback,50)),this.config.live?new a(function(a){return function(b){var c,d,e,f,g;for(g=[],c=0,d=b.length;d>c;c++)f=b[c],g.push(function(){var a,b,c,d;for(c=f.addedNodes||[],d=[],a=0,b=c.length;b>a;a++)e=c[a],d.push(this.doSync(e));return d}.call(a));return g}}(this)).observe(document.body,{childList:!0,subtree:!0}):void 0},e.prototype.stop=function(){return this.stopped=!0,this.util().removeEvent(this.config.scrollContainer||window,"scroll",this.scrollHandler),this.util().removeEvent(window,"resize",this.scrollHandler),null!=this.interval?clearInterval(this.interval):void 0},e.prototype.sync=function(b){return a.notSupported?this.doSync(this.element):void 0},e.prototype.doSync=function(a){var b,c,d,e,f;if(null==a&&(a=this.element),1===a.nodeType){for(a=a.parentNode||a,e=a.querySelectorAll("."+this.config.boxClass),f=[],c=0,d=e.length;d>c;c++)b=e[c],g.call(this.all,b)<0?(this.boxes.push(b),this.all.push(b),this.stopped||this.disabled()?this.resetStyle():this.applyStyle(b,!0),f.push(this.scrolled=!0)):f.push(void 0);return f}},e.prototype.show=function(a){return this.applyStyle(a),a.className=a.className+" "+this.config.animateClass,null!=this.config.callback&&this.config.callback(a),this.util().emitEvent(a,this.wowEvent),this.util().addEvent(a,"animationend",this.resetAnimation),this.util().addEvent(a,"oanimationend",this.resetAnimation),this.util().addEvent(a,"webkitAnimationEnd",this.resetAnimation),this.util().addEvent(a,"MSAnimationEnd",this.resetAnimation),a},e.prototype.applyStyle=function(a,b){var c,d,e;return d=a.getAttribute("data-wow-duration"),c=a.getAttribute("data-wow-delay"),e=a.getAttribute("data-wow-iteration"),this.animate(function(f){return function(){return f.customStyle(a,b,d,c,e)}}(this))},e.prototype.animate=function(){return"requestAnimationFrame"in window?function(a){return window.requestAnimationFrame(a)}:function(a){return a()}}(),e.prototype.resetStyle=function(){var a,b,c,d,e;for(d=this.boxes,e=[],b=0,c=d.length;c>b;b++)a=d[b],e.push(a.style.visibility="visible");return e},e.prototype.resetAnimation=function(a){var b;return a.type.toLowerCase().indexOf("animationend")>=0?(b=a.target||a.srcElement,b.className=b.className.replace(this.config.animateClass,"").trim()):void 0},e.prototype.customStyle=function(a,b,c,d,e){return b&&this.cacheAnimationName(a),a.style.visibility=b?"hidden":"visible",c&&this.vendorSet(a.style,{animationDuration:c}),d&&this.vendorSet(a.style,{animationDelay:d}),e&&this.vendorSet(a.style,{animationIterationCount:e}),this.vendorSet(a.style,{animationName:b?"none":this.cachedAnimationName(a)}),a},e.prototype.vendors=["moz","webkit"],e.prototype.vendorSet=function(a,b){var c,d,e,f;d=[];for(c in b)e=b[c],a[""+c]=e,d.push(function(){var b,d,g,h;for(g=this.vendors,h=[],b=0,d=g.length;d>b;b++)f=g[b],h.push(a[""+f+c.charAt(0).toUpperCase()+c.substr(1)]=e);return h}.call(this));return d},e.prototype.vendorCSS=function(a,b){var c,e,f,g,h,i;for(h=d(a),g=h.getPropertyCSSValue(b),f=this.vendors,c=0,e=f.length;e>c;c++)i=f[c],g=g||h.getPropertyCSSValue("-"+i+"-"+b);return g},e.prototype.animationName=function(a){var b;try{b=this.vendorCSS(a,"animation-name").cssText}catch(c){b=d(a).getPropertyValue("animation-name")}return"none"===b?"":b},e.prototype.cacheAnimationName=function(a){return this.animationNameCache.set(a,this.animationName(a))},e.prototype.cachedAnimationName=function(a){return this.animationNameCache.get(a)},e.prototype.scrollHandler=function(){return this.scrolled=!0},e.prototype.scrollCallback=function(){var a;return!this.scrolled||(this.scrolled=!1,this.boxes=function(){var b,c,d,e;for(d=this.boxes,e=[],b=0,c=d.length;c>b;b++)a=d[b],a&&(this.isVisible(a)?this.show(a):e.push(a));return e}.call(this),this.boxes.length||this.config.live)?void 0:this.stop()},e.prototype.offsetTop=function(a){for(var b;void 0===a.offsetTop;)a=a.parentNode;for(b=a.offsetTop;a=a.offsetParent;)b+=a.offsetTop;return b},e.prototype.isVisible=function(a){var b,c,d,e,f;return c=a.getAttribute("data-wow-offset")||this.config.offset,f=this.config.scrollContainer&&this.config.scrollContainer.scrollTop||window.pageYOffset,e=f+Math.min(this.element.clientHeight,this.util().innerHeight())-c,d=this.offsetTop(a),b=d+a.clientHeight,e>=d&&b>=f},e.prototype.util=function(){return null!=this._util?this._util:this._util=new b},e.prototype.disabled=function(){return!this.config.mobile&&this.util().isMobile(navigator.userAgent)},e}()}).call(this); ;/* _ _ _ _ ___| (_) ___| | __ (_)___ / __| | |/ __| |/ / | / __| \__ \ | | (__| < _ | \__ \ |___/_|_|\___|_|\_(_)/ |___/ |__/ Version: 1.6.0 Author: Ken Wheeler Website: http://kenwheeler.github.io Docs: http://kenwheeler.github.io/slick Repo: http://github.com/kenwheeler/slick Issues: http://github.com/kenwheeler/slick/issues */ !function(a){"use strict";"function"==typeof define&&define.amd?define(["jquery"],a):"undefined"!=typeof exports?module.exports=a(require("jquery")):a(jQuery)}(function(a){"use strict";var b=window.Slick||{};b=function(){function c(c,d){var f,e=this;e.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:a(c),appendDots:a(c),arrows:!0,asNavFor:null,prevArrow:'',nextArrow:'',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(b,c){return a('').appendTo(c).click(function(a){return a.preventDefault(),e.paused?e.play():e.pause(),!1}),l=k.find("button");f("pse"),e.addEventListener("play",function(){f("play")},!1),e.addEventListener("playing",function(){f("play")},!1),e.addEventListener("pause",function(){f("pse")},!1),e.addEventListener("paused",function(){f("pse")},!1)}})}(mejs.$),function(a){a.extend(mejs.MepDefaults,{stopText:"Stop"}),a.extend(MediaElementPlayer.prototype,{buildstop:function(b,c,d,e){var f=this;a('
').appendTo(c).click(function(){e.paused||e.pause(),e.currentTime>0&&(e.setCurrentTime(0),e.pause(),c.find(".mejs-time-current").width("0px"),c.find(".mejs-time-handle").css("left","0px"),c.find(".mejs-time-float-current").html(mejs.Utility.secondsToTimeCode(0,b.options)),c.find(".mejs-currenttime").html(mejs.Utility.secondsToTimeCode(0,b.options)),d.find(".mejs-poster").show())})}})}(mejs.$),function(a){a.extend(mejs.MepDefaults,{enableProgressTooltip:!0,progressHelpText:""}),a.extend(MediaElementPlayer.prototype,{buildprogress:function(b,c,d,e){var f=this,g=!1,h=!1,i=0,j=!1,k=b.options.autoRewind,l=(f.options.progressHelpText?f.options.progressHelpText:mejs.i18n.t("mejs.time-help-text"),b.options.enableProgressTooltip?'00:00':"");a('
'+l+"
").appendTo(c),c.find(".mejs-time-buffering").hide(),f.total=c.find(".mejs-time-total"),f.loaded=c.find(".mejs-time-loaded"),f.current=c.find(".mejs-time-current"),f.handle=c.find(".mejs-time-handle"),f.timefloat=c.find(".mejs-time-float"),f.timefloatcurrent=c.find(".mejs-time-float-current"),f.slider=c.find(".mejs-time-slider");var m=function(a){var c,d=f.total.offset(),h=f.total.width(),i=0,j=0,k=0;c=a.originalEvent&&a.originalEvent.changedTouches?a.originalEvent.changedTouches[0].pageX:a.changedTouches?a.changedTouches[0].pageX:a.pageX,e.duration&&(ch+d.left&&(c=h+d.left),k=c-d.left,i=k/h,j=.02>=i?0:i*e.duration,g&&j!==e.currentTime&&e.setCurrentTime(j),mejs.MediaFeatures.hasTouch||(f.timefloat.css("left",k),f.timefloatcurrent.html(mejs.Utility.secondsToTimeCode(j,b.options)),f.timefloat.show()))},n=function(a){var c=e.currentTime,d=mejs.i18n.t("mejs.time-slider"),g=mejs.Utility.secondsToTimeCode(c,b.options),h=e.duration;f.slider.attr({"aria-label":d,"aria-valuemin":0,"aria-valuemax":h,"aria-valuenow":c,"aria-valuetext":g,role:"slider",tabindex:0})},o=function(){var a=new Date;a-i>=1e3&&e.play()};f.slider.bind("focus",function(a){b.options.autoRewind=!1}),f.slider.bind("blur",function(a){b.options.autoRewind=k}),f.slider.bind("keydown",function(a){new Date-i>=1e3&&(j=e.paused);var c=a.keyCode,d=e.duration,f=e.currentTime,g=b.options.defaultSeekForwardInterval(e),h=b.options.defaultSeekBackwardInterval(e);switch(c){case 37:case 40:f-=h;break;case 39:case 38:f+=g;break;case 36:f=0;break;case 35:f=d;break;case 32:case 13:return void(e.paused?e.play():e.pause());default:return}return f=0>f?0:f>=d?d:Math.floor(f),i=new Date,j||e.pause(),f0&&c.buffered.end&&c.duration?d=c.buffered.end(c.buffered.length-1)/c.duration:c&&void 0!==c.bytesTotal&&c.bytesTotal>0&&void 0!==c.bufferedBytes?d=c.bufferedBytes/c.bytesTotal:a&&a.lengthComputable&&0!==a.total&&(d=a.loaded/a.total),null!==d&&(d=Math.min(1,Math.max(0,d)),b.loaded&&b.total&&b.loaded.width(b.total.width()*d))},setCurrentRail:function(){var a=this;if(void 0!==a.media.currentTime&&a.media.duration&&a.total&&a.handle){var b=Math.round(a.total.width()*a.media.currentTime/a.media.duration),c=b-Math.round(a.handle.outerWidth(!0)/2);a.current.width(b),a.handle.css("left",c)}}})}(mejs.$),function(a){a.extend(mejs.MepDefaults,{duration:-1,timeAndDurationSeparator:" | "}),a.extend(MediaElementPlayer.prototype,{buildcurrent:function(b,c,d,e){var f=this;a('
'+mejs.Utility.secondsToTimeCode(0,b.options)+"
").appendTo(c),f.currenttime=f.controls.find(".mejs-currenttime"),e.addEventListener("timeupdate",function(){f.controlsAreVisible&&b.updateCurrent()},!1)},buildduration:function(b,c,d,e){var f=this;c.children().last().find(".mejs-currenttime").length>0?a(f.options.timeAndDurationSeparator+''+mejs.Utility.secondsToTimeCode(f.options.duration,f.options)+"").appendTo(c.find(".mejs-time")):(c.find(".mejs-currenttime").parent().addClass("mejs-currenttime-container"),a('
'+mejs.Utility.secondsToTimeCode(f.options.duration,f.options)+"
").appendTo(c)),f.durationD=f.controls.find(".mejs-duration"),e.addEventListener("timeupdate",function(){f.controlsAreVisible&&b.updateDuration()},!1)},updateCurrent:function(){var a=this,b=a.media.currentTime;isNaN(b)&&(b=0),a.currenttime&&a.currenttime.html(mejs.Utility.secondsToTimeCode(b,a.options))},updateDuration:function(){var a=this,b=a.media.duration;a.options.duration>0&&(b=a.options.duration),isNaN(b)&&(b=0),a.container.toggleClass("mejs-long-video",b>3600),a.durationD&&b>0&&a.durationD.html(mejs.Utility.secondsToTimeCode(b,a.options))}})}(mejs.$),function(a){a.extend(mejs.MepDefaults,{muteText:mejs.i18n.t("mejs.mute-toggle"),allyVolumeControlText:mejs.i18n.t("mejs.volume-help-text"),hideVolumeOnTouchDevices:!0,audioVolume:"horizontal",videoVolume:"vertical"}),a.extend(MediaElementPlayer.prototype,{buildvolume:function(b,c,d,e){if(!mejs.MediaFeatures.isAndroid&&!mejs.MediaFeatures.isiOS||!this.options.hideVolumeOnTouchDevices){var f=this,g=f.isVideo?f.options.videoVolume:f.options.audioVolume,h="horizontal"==g?a('
'+f.options.allyVolumeControlText+'
').appendTo(c):a('').appendTo(c),i=f.container.find(".mejs-volume-slider, .mejs-horizontal-volume-slider"),j=f.container.find(".mejs-volume-total, .mejs-horizontal-volume-total"),k=f.container.find(".mejs-volume-current, .mejs-horizontal-volume-current"),l=f.container.find(".mejs-volume-handle, .mejs-horizontal-volume-handle"),m=function(a,b){if(!i.is(":visible")&&"undefined"==typeof b)return i.show(),m(a,!0),void i.hide();a=Math.max(0,a),a=Math.min(a,1),0===a?(h.removeClass("mejs-mute").addClass("mejs-unmute"),h.children("button").attr("title",mejs.i18n.t("mejs.unmute")).attr("aria-label",mejs.i18n.t("mejs.unmute"))):(h.removeClass("mejs-unmute").addClass("mejs-mute"),h.children("button").attr("title",mejs.i18n.t("mejs.mute")).attr("aria-label",mejs.i18n.t("mejs.mute")));var c=j.position();if("vertical"==g){var d=j.height(),e=d-d*a;l.css("top",Math.round(c.top+e-l.height()/2)),k.height(d-e),k.css("top",c.top+e)}else{var f=j.width(),n=f*a;l.css("left",Math.round(c.left+n-l.width()/2)),k.width(Math.round(n))}},n=function(a){var b=null,c=j.offset();if("vertical"===g){var d=j.height(),f=a.pageY-c.top;if(b=(d-f)/d,0===c.top||0===c.left)return}else{var h=j.width(),i=a.pageX-c.left;b=i/h; }b=Math.max(0,b),b=Math.min(b,1),m(b),0===b?e.setMuted(!0):e.setMuted(!1),e.setVolume(b)},o=!1,p=!1;h.hover(function(){i.show(),p=!0},function(){p=!1,o||"vertical"!=g||i.hide()});var q=function(a){var b=Math.floor(100*e.volume);i.attr({"aria-label":mejs.i18n.t("mejs.volume-slider"),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":b,"aria-valuetext":b+"%",role:"slider",tabindex:0})};i.bind("mouseover",function(){p=!0}).bind("mousedown",function(a){return n(a),f.globalBind("mousemove.vol",function(a){n(a)}),f.globalBind("mouseup.vol",function(){o=!1,f.globalUnbind(".vol"),p||"vertical"!=g||i.hide()}),o=!0,!1}).bind("keydown",function(a){var b=a.keyCode,c=e.volume;switch(b){case 38:c=Math.min(c+.1,1);break;case 40:c=Math.max(0,c-.1);break;default:return!0}return o=!1,m(c),e.setVolume(c),!1}),h.find("button").click(function(){e.setMuted(!e.muted)}),h.find("button").bind("focus",function(){i.show()}),e.addEventListener("volumechange",function(a){o||(e.muted?(m(0),h.removeClass("mejs-mute").addClass("mejs-unmute")):(m(e.volume),h.removeClass("mejs-unmute").addClass("mejs-mute"))),q(a)},!1),0===b.options.startVolume&&e.setMuted(!0),"native"===e.pluginType&&e.setVolume(b.options.startVolume),f.container.on("controlsresize",function(){e.muted?(m(0),h.removeClass("mejs-mute").addClass("mejs-unmute")):(m(e.volume),h.removeClass("mejs-unmute").addClass("mejs-mute"))})}}})}(mejs.$),function(a){a.extend(mejs.MepDefaults,{usePluginFullScreen:!0,newWindowCallback:function(){return""},fullscreenText:""}),a.extend(MediaElementPlayer.prototype,{isFullScreen:!1,isNativeFullScreen:!1,isInIframe:!1,fullscreenMode:"",buildfullscreen:function(b,c,d,e){if(b.isVideo){b.isInIframe=window.location!=window.parent.location,e.addEventListener("loadstart",function(){b.detectFullscreenMode()});var f=this,g=null,h=f.options.fullscreenText?f.options.fullscreenText:mejs.i18n.t("mejs.fullscreen"),i=a('
').appendTo(c).on("click",function(){var a=mejs.MediaFeatures.hasTrueNativeFullScreen&&mejs.MediaFeatures.isFullScreen()||b.isFullScreen;a?b.exitFullScreen():b.enterFullScreen()}).on("mouseover",function(){if("plugin-hover"==f.fullscreenMode){null!==g&&(clearTimeout(g),delete g);var a=i.offset(),c=b.container.offset();e.positionFullscreenButton(a.left-c.left,a.top-c.top,!0)}}).on("mouseout",function(){"plugin-hover"==f.fullscreenMode&&(null!==g&&(clearTimeout(g),delete g),g=setTimeout(function(){e.hideFullscreenButton()},1500))});if(b.fullscreenBtn=i,f.globalBind("keydown",function(a){27==a.keyCode&&(mejs.MediaFeatures.hasTrueNativeFullScreen&&mejs.MediaFeatures.isFullScreen()||f.isFullScreen)&&b.exitFullScreen()}),f.normalHeight=0,f.normalWidth=0,mejs.MediaFeatures.hasTrueNativeFullScreen){var j=function(a){b.isFullScreen&&(mejs.MediaFeatures.isFullScreen()?(b.isNativeFullScreen=!0,b.setControlsSize()):(b.isNativeFullScreen=!1,b.exitFullScreen()))};b.globalBind(mejs.MediaFeatures.fullScreenEventName,j)}}},detectFullscreenMode:function(){var a=this,b="",c=mejs.MediaFeatures;return c.hasTrueNativeFullScreen&&"native"===a.media.pluginType?b="native-native":c.hasTrueNativeFullScreen&&"native"!==a.media.pluginType&&!c.hasFirefoxPluginMovingProblem?b="plugin-native":a.usePluginFullScreen?mejs.MediaFeatures.supportsPointerEvents?(b="plugin-click",a.createPluginClickThrough()):b="plugin-hover":b="fullwindow",a.fullscreenMode=b,b},isPluginClickThroughCreated:!1,createPluginClickThrough:function(){var b=this;if(!b.isPluginClickThroughCreated){var c,d,e=!1,f=function(){if(e){for(var a in g)g[a].hide();b.fullscreenBtn.css("pointer-events",""),b.controls.css("pointer-events",""),b.media.removeEventListener("click",b.clickToPlayPauseCallback),e=!1}},g={},h=["top","left","right","bottom"],i=function(){var a=fullscreenBtn.offset().left-b.container.offset().left,d=fullscreenBtn.offset().top-b.container.offset().top,e=fullscreenBtn.outerWidth(!0),f=fullscreenBtn.outerHeight(!0),h=b.container.width(),i=b.container.height();for(c in g)g[c].css({position:"absolute",top:0,left:0});g.top.width(h).height(d),g.left.width(a).height(f).css({top:d}),g.right.width(h-a-e).height(f).css({top:d,left:a+e}),g.bottom.width(h).height(i-f-d).css({top:d+f})};for(b.globalBind("resize",function(){i()}),c=0,d=h.length;d>c;c++)g[h[c]]=a('
').appendTo(b.container).mouseover(f).hide();fullscreenBtn.on("mouseover",function(){if(!b.isFullScreen){var a=fullscreenBtn.offset(),d=player.container.offset();media.positionFullscreenButton(a.left-d.left,a.top-d.top,!1),b.fullscreenBtn.css("pointer-events","none"),b.controls.css("pointer-events","none"),b.media.addEventListener("click",b.clickToPlayPauseCallback);for(c in g)g[c].show();i(),e=!0}}),media.addEventListener("fullscreenchange",function(a){b.isFullScreen=!b.isFullScreen,b.isFullScreen?b.media.removeEventListener("click",b.clickToPlayPauseCallback):b.media.addEventListener("click",b.clickToPlayPauseCallback),f()}),b.globalBind("mousemove",function(a){if(e){var c=fullscreenBtn.offset();(a.pageYc.top+fullscreenBtn.outerHeight(!0)||a.pageXc.left+fullscreenBtn.outerWidth(!0))&&(fullscreenBtn.css("pointer-events",""),b.controls.css("pointer-events",""),e=!1)}}),b.isPluginClickThroughCreated=!0}},cleanfullscreen:function(a){a.exitFullScreen()},containerSizeTimeout:null,enterFullScreen:function(){var b=this;if(mejs.MediaFeatures.isiOS&&mejs.MediaFeatures.hasiOSFullScreen&&"function"==typeof b.media.webkitEnterFullscreen)return void b.media.webkitEnterFullscreen();a(document.documentElement).addClass("mejs-fullscreen"),b.normalHeight=b.container.height(),b.normalWidth=b.container.width(),"native-native"===b.fullscreenMode||"plugin-native"===b.fullscreenMode?(mejs.MediaFeatures.requestFullScreen(b.container[0]),b.isInIframe&&setTimeout(function d(){if(b.isNativeFullScreen){var c=.002,e=a(window).width(),f=screen.width,g=Math.abs(f-e),h=f*c;g>h?b.exitFullScreen():setTimeout(d,500)}},1e3)):"fullwindow"==b.fullscreeMode,b.container.addClass("mejs-container-fullscreen").width("100%").height("100%"),b.containerSizeTimeout=setTimeout(function(){b.container.css({width:"100%",height:"100%"}),b.setControlsSize()},500),"native"===b.media.pluginType?b.$media.width("100%").height("100%"):(b.container.find(".mejs-shim").width("100%").height("100%"),setTimeout(function(){var c=a(window),d=c.width(),e=c.height();b.media.setVideoSize(d,e)},500)),b.layers.children("div").width("100%").height("100%"),b.fullscreenBtn&&b.fullscreenBtn.removeClass("mejs-fullscreen").addClass("mejs-unfullscreen"),b.setControlsSize(),b.isFullScreen=!0;var c=Math.min(screen.width/b.width,screen.height/b.height);b.container.find(".mejs-captions-text").css("font-size",100*c+"%"),b.container.find(".mejs-captions-text").css("line-height","normal"),b.container.find(".mejs-captions-position").css("bottom","45px"),b.container.trigger("enteredfullscreen")},exitFullScreen:function(){var b=this;clearTimeout(b.containerSizeTimeout),mejs.MediaFeatures.hasTrueNativeFullScreen&&(mejs.MediaFeatures.isFullScreen()||b.isFullScreen)&&mejs.MediaFeatures.cancelFullScreen(),a(document.documentElement).removeClass("mejs-fullscreen"),b.container.removeClass("mejs-container-fullscreen").width(b.normalWidth).height(b.normalHeight),"native"===b.media.pluginType?b.$media.width(b.normalWidth).height(b.normalHeight):(b.container.find(".mejs-shim").width(b.normalWidth).height(b.normalHeight),b.media.setVideoSize(b.normalWidth,b.normalHeight)),b.layers.children("div").width(b.normalWidth).height(b.normalHeight),b.fullscreenBtn.removeClass("mejs-unfullscreen").addClass("mejs-fullscreen"),b.setControlsSize(),b.isFullScreen=!1,b.container.find(".mejs-captions-text").css("font-size",""),b.container.find(".mejs-captions-text").css("line-height",""),b.container.find(".mejs-captions-position").css("bottom",""),b.container.trigger("exitedfullscreen")}})}(mejs.$),function(a){a.extend(mejs.MepDefaults,{speeds:["2.00","1.50","1.25","1.00","0.75"],defaultSpeed:"1.00",speedChar:"x"}),a.extend(MediaElementPlayer.prototype,{buildspeed:function(b,c,d,e){var f=this;if("native"==f.media.pluginType){for(var g=null,h=null,i=null,j=null,k=[],l=!1,m=0,n=f.options.speeds.length;n>m;m++){var o=f.options.speeds[m];"string"==typeof o?(k.push({name:o+f.options.speedChar,value:o}),o===f.options.defaultSpeed&&(l=!0)):(k.push(o),o.value===f.options.defaultSpeed&&(l=!0))}l||k.push({name:f.options.defaultSpeed+f.options.speedChar,value:f.options.defaultSpeed}),k.sort(function(a,b){return parseFloat(b.value)-parseFloat(a.value)});var p=function(a){for(m=0,n=k.length;n>m;m++)if(k[m].value===a)return k[m].name},q='
    ';for(m=0,il=k.length;m";q+="
",g=a(q).appendTo(c),h=g.find(".mejs-speed-selector"),i=f.options.defaultSpeed,e.addEventListener("loadedmetadata",function(a){i&&(e.playbackRate=parseFloat(i))},!0),h.on("click",'input[type="radio"]',function(){var b=a(this).attr("value");i=b,e.playbackRate=parseFloat(b),g.find("button").html(p(b)),g.find(".mejs-speed-selected").removeClass("mejs-speed-selected"),g.find('input[type="radio"]:checked').next().addClass("mejs-speed-selected")}),g.one("mouseenter focusin",function(){h.height(g.find(".mejs-speed-selector ul").outerHeight(!0)+g.find(".mejs-speed-translations").outerHeight(!0)).css("top",-1*h.height()+"px")})}}})}(mejs.$),function(a){a.extend(mejs.MepDefaults,{startLanguage:"",tracksText:"",tracksAriaLive:!1,hideCaptionsButtonWhenEmpty:!0,toggleCaptionsButtonWhenOnlyOne:!1,slidesSelector:""}),a.extend(MediaElementPlayer.prototype,{hasChapters:!1,cleartracks:function(a,b,c,d){a&&(a.captions&&a.captions.remove(),a.chapters&&a.chapters.remove(),a.captionsText&&a.captionsText.remove(),a.captionsButton&&a.captionsButton.remove())},buildtracks:function(b,c,d,e){if(0!==b.tracks.length){var f,g,h=this,i=h.options.tracksAriaLive?'role="log" aria-live="assertive" aria-atomic="false"':"",j=h.options.tracksText?h.options.tracksText:mejs.i18n.t("mejs.captions-subtitles");if(h.domNode.textTracks)for(f=h.domNode.textTracks.length-1;f>=0;f--)h.domNode.textTracks[f].mode="hidden";h.cleartracks(b,c,d,e),b.chapters=a('
').prependTo(d).hide(),b.captions=a('
').prependTo(d).hide(),b.captionsText=b.captions.find(".mejs-captions-text"),b.captionsButton=a('
").appendTo(c);var k=0;for(f=0;f0&&c.displayChapters(d)},!1),"slides"==d.kind&&c.setupSlides(d)},error:function(){c.removeTrackButton(d.srclang),c.loadNextTrack()}})},enableTrackButton:function(b,c){var d=this;""===c&&(c=mejs.language.codes[b]||b),d.captionsButton.find("input[value="+b+"]").prop("disabled",!1).siblings("label").html(c),d.options.startLanguage==b&&a("#"+d.id+"_captions_"+b).prop("checked",!0).trigger("click"),d.adjustLanguageBox()},removeTrackButton:function(a){var b=this;b.captionsButton.find("input[value="+a+"]").closest("li").remove(),b.adjustLanguageBox()},addTrackButton:function(b,c){var d=this;""===c&&(c=mejs.language.codes[b]||b),d.captionsButton.find("ul").append(a('
  • ")),d.adjustLanguageBox(),d.container.find(".mejs-captions-translations option[value="+b+"]").remove()},adjustLanguageBox:function(){var a=this;a.captionsButton.find(".mejs-captions-selector").height(a.captionsButton.find(".mejs-captions-selector ul").outerHeight(!0)+a.captionsButton.find(".mejs-captions-translations").outerHeight(!0))},checkForTracks:function(){var a=this,b=!1;if(a.options.hideCaptionsButtonWhenEmpty){for(var c=0;c=c.entries.times[a].start&&b.media.currentTime<=c.entries.times[a].stop)return b.captionsText.html(c.entries.text[a]).attr("class","mejs-captions-text "+(c.entries.times[a].identifier||"")),void b.captions.show().height(0);b.captions.hide()}else b.captions.hide()}},setupSlides:function(a){var b=this;b.slides=a,b.slides.entries.imgs=[b.slides.entries.text.length],b.showSlide(0)},showSlide:function(b){if("undefined"!=typeof this.tracks&&"undefined"!=typeof this.slidesContainer){var c=this,d=c.slides.entries.text[b],e=c.slides.entries.imgs[b];"undefined"==typeof e||"undefined"==typeof e.fadeIn?c.slides.entries.imgs[b]=e=a('').on("load",function(){e.appendTo(c.slidesContainer).hide().fadeIn().siblings(":visible").fadeOut()}):e.is(":visible")||e.is(":animated")||e.fadeIn().siblings(":visible").fadeOut()}},displaySlides:function(){if("undefined"!=typeof this.slides){var a,b=this,c=b.slides;for(a=0;a=c.entries.times[a].start&&b.media.currentTime<=c.entries.times[a].stop)return void b.showSlide(a)}},displayChapters:function(){var a,b=this;for(a=0;a100||c==b.entries.times.length-1&&100>f+g)&&(f=100-g),e.chapters.append(a('
    '+b.entries.text[c]+''+mejs.Utility.secondsToTimeCode(b.entries.times[c].start,e.options)+"–"+mejs.Utility.secondsToTimeCode(b.entries.times[c].stop,e.options)+"
    ")),g+=f;e.chapters.find("div.mejs-chapter").click(function(){e.media.setCurrentTime(parseFloat(a(this).attr("rel"))),e.media.paused&&e.media.play()}),e.chapters.show()}}),mejs.language={codes:{af:"Afrikaans",sq:"Albanian",ar:"Arabic",be:"Belarusian",bg:"Bulgarian",ca:"Catalan",zh:"Chinese","zh-cn":"Chinese Simplified","zh-tw":"Chinese Traditional",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch",en:"English",et:"Estonian",fl:"Filipino",fi:"Finnish",fr:"French",gl:"Galician",de:"German",el:"Greek",ht:"Haitian Creole",iw:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",ga:"Irish",it:"Italian",ja:"Japanese",ko:"Korean",lv:"Latvian",lt:"Lithuanian",mk:"Macedonian",ms:"Malay",mt:"Maltese",no:"Norwegian",fa:"Persian",pl:"Polish",pt:"Portuguese",ro:"Romanian",ru:"Russian",sr:"Serbian",sk:"Slovak",sl:"Slovenian",es:"Spanish",sw:"Swahili",sv:"Swedish",tl:"Tagalog",th:"Thai",tr:"Turkish",uk:"Ukrainian",vi:"Vietnamese",cy:"Welsh",yi:"Yiddish"}},mejs.TrackFormatParser={webvtt:{pattern_timecode:/^((?:[0-9]{1,2}:)?[0-9]{2}:[0-9]{2}([,.][0-9]{1,3})?) --\> ((?:[0-9]{1,2}:)?[0-9]{2}:[0-9]{2}([,.][0-9]{3})?)(.*)$/,parse:function(b){for(var c,d,e,f=0,g=mejs.TrackFormatParser.split2(b,/\r?\n/),h={text:[],times:[]};f=0&&""!==g[f-1]&&(e=g[f-1]),f++,d=g[f],f++;""!==g[f]&&f$1"),h.text.push(d),h.times.push({identifier:e,start:0===mejs.Utility.convertSMPTEtoSeconds(c[1])?.2:mejs.Utility.convertSMPTEtoSeconds(c[1]),stop:mejs.Utility.convertSMPTEtoSeconds(c[3]),settings:c[5]})}e=""}return h}},dfxp:{parse:function(b){b=a(b).filter("tt");var c,d,e=0,f=b.children("div").eq(0),g=f.find("p"),h=b.find("#"+f.attr("style")),i={text:[],times:[]};if(h.length){var j=h.removeAttr("id").get(0).attributes;if(j.length)for(c={},e=0;e$1"),i.text.push(d)}return i}},split2:function(a,b){return a.split(b)}},3!="x\n\ny".split(/\n/gi).length&&(mejs.TrackFormatParser.split2=function(a,b){var c,d=[],e="";for(c=0;c
    ').appendTo(c).hover(function(){clearTimeout(f),b.showSourcechooserSelector()},function(){a(this);f=setTimeout(function(){b.hideSourcechooserSelector()},500)}).on("keydown",function(c){var d=c.keyCode;switch(d){case 32:mejs.MediaFeatures.isFirefox||b.showSourcechooserSelector(),a(this).find(".mejs-sourcechooser-selector").find("input[type=radio]:checked").first().focus();break;case 13:b.showSourcechooserSelector(),a(this).find(".mejs-sourcechooser-selector").find("input[type=radio]:checked").first().focus();break;case 27:b.hideSourcechooserSelector(),a(this).find("button").focus();break;default:return!0}}).on("focusout",mejs.Utility.debounce(function(c){setTimeout(function(){var c=a(document.activeElement).closest(".mejs-sourcechooser-selector");c.length||b.hideSourcechooserSelector()},0)},100)).delegate("input[type=radio]","click",function(){a(this).attr("aria-selected",!0).attr("checked","checked"),a(this).closest(".mejs-sourcechooser-selector").find("input[type=radio]").not(this).attr("aria-selected","false").removeAttr("checked");var b=this.value;if(e.currentSrc!=b){var c=e.currentTime,d=e.paused;e.pause(),e.setSrc(b),e.addEventListener("loadedmetadata",function(a){e.currentTime=c},!0);var f=function(a){d||e.play(),e.removeEventListener("canplay",f,!0)};e.addEventListener("canplay",f,!0),e.load()}}).delegate("button","click",function(c){a(this).siblings(".mejs-sourcechooser-selector").hasClass("mejs-offscreen")?(b.showSourcechooserSelector(),a(this).siblings(".mejs-sourcechooser-selector").find("input[type=radio]:checked").first().focus()):b.hideSourcechooserSelector()});for(var i in this.node.children){var j=this.node.children[i];"SOURCE"!==j.nodeName||"probably"!=e.canPlayType(j.type)&&"maybe"!=e.canPlayType(j.type)||b.addSourceButton(j.src,j.title,j.type,e.src==j.src)}},addSourceButton:function(b,c,d,e){var f=this;(""===c||void 0==c)&&(c=b),d=d.split("/")[1],f.sourcechooserButton.find("ul").append(a('
  • ")),f.adjustSourcechooserBox()},adjustSourcechooserBox:function(){var a=this;a.sourcechooserButton.find(".mejs-sourcechooser-selector").height(a.sourcechooserButton.find(".mejs-sourcechooser-selector ul").outerHeight(!0))},hideSourcechooserSelector:function(){this.sourcechooserButton.find(".mejs-sourcechooser-selector").addClass("mejs-offscreen").attr("aria-expanded","false").attr("aria-hidden","true").find("input[type=radio]").attr("tabindex","-1")},showSourcechooserSelector:function(){this.sourcechooserButton.find(".mejs-sourcechooser-selector").removeClass("mejs-offscreen").attr("aria-expanded","true").attr("aria-hidden","false").find("input[type=radio]").attr("tabindex","0")}})}(mejs.$),function(a){a.extend(mejs.MepDefaults,{contextMenuItems:[{render:function(a){return"undefined"==typeof a.enterFullScreen?null:a.isFullScreen?mejs.i18n.t("mejs.fullscreen-off"):mejs.i18n.t("mejs.fullscreen-on")},click:function(a){a.isFullScreen?a.exitFullScreen():a.enterFullScreen()}},{render:function(a){return a.media.muted?mejs.i18n.t("mejs.unmute"):mejs.i18n.t("mejs.mute")},click:function(a){a.media.muted?a.setMuted(!1):a.setMuted(!0)}},{isSeparator:!0},{render:function(a){return mejs.i18n.t("mejs.download-video")},click:function(a){window.location.href=a.media.currentSrc}}]}),a.extend(MediaElementPlayer.prototype,{buildcontextmenu:function(b,c,d,e){b.contextMenu=a('
    ').appendTo(a("body")).hide(),b.container.bind("contextmenu",function(a){return b.isContextMenuEnabled?(a.preventDefault(),b.renderContextMenu(a.clientX-1,a.clientY-1),!1):void 0}),b.container.bind("click",function(){b.contextMenu.hide()}),b.contextMenu.bind("mouseleave",function(){b.startContextMenuTimer()})},cleancontextmenu:function(a){a.contextMenu.remove()},isContextMenuEnabled:!0,enableContextMenu:function(){this.isContextMenuEnabled=!0},disableContextMenu:function(){this.isContextMenuEnabled=!1},contextMenuTimeout:null,startContextMenuTimer:function(){var a=this;a.killContextMenuTimer(),a.contextMenuTimer=setTimeout(function(){a.hideContextMenu(),a.killContextMenuTimer()},750)},killContextMenuTimer:function(){var a=this.contextMenuTimer;null!=a&&(clearTimeout(a),delete a,a=null)},hideContextMenu:function(){this.contextMenu.hide()},renderContextMenu:function(b,c){for(var d=this,e="",f=d.options.contextMenuItems,g=0,h=f.length;h>g;g++)if(f[g].isSeparator)e+='
    ';else{var i=f[g].render(d);null!=i&&(e+='
    '+i+"
    ")}d.contextMenu.empty().append(a(e)).css({top:c,left:b}).show(),d.contextMenu.find(".mejs-contextmenu-item").each(function(){var b=a(this),c=parseInt(b.data("itemindex"),10),e=d.options.contextMenuItems[c];"undefined"!=typeof e.show&&e.show(b,d),b.click(function(){"undefined"!=typeof e.click&&e.click(d),d.contextMenu.hide()})}),setTimeout(function(){d.killControlsTimer("rev3")},100)}})}(mejs.$),function(a){a.extend(mejs.MepDefaults,{skipBackInterval:30,skipBackText:""}),a.extend(MediaElementPlayer.prototype,{buildskipback:function(b,c,d,e){var f=this,g=mejs.i18n.t("mejs.time-skip-back",f.options.skipBackInterval),h=f.options.skipBackText?f.options.skipBackText:g;a('
    ").appendTo(c).click(function(){e.setCurrentTime(Math.max(e.currentTime-f.options.skipBackInterval,0)),a(this).find("button").blur()})}})}(mejs.$),function(a){a.extend(mejs.MepDefaults,{postrollCloseText:""}),a.extend(MediaElementPlayer.prototype,{buildpostroll:function(b,c,d,e){var f=this,g=f.options.postrollCloseText?f.options.postrollCloseText:mejs.i18n.t("mejs.close"),h=f.container.find('link[rel="postroll"]').attr("href");"undefined"!=typeof h&&(b.postroll=a('').prependTo(d).hide(),f.media.addEventListener("ended",function(c){a.ajax({dataType:"html",url:h,success:function(a,b){d.find(".mejs-postroll-layer-content").html(a)}}),b.postroll.show()},!1))}})}(mejs.$),function(a){a.extend(mejs.MepDefaults,{markerColor:"#E9BC3D",markers:[],markerCallback:function(){}}),a.extend(MediaElementPlayer.prototype,{buildmarkers:function(a,b,c,d){var e=0,f=-1,g=-1,h=-1,i=-1;for(e=0;e');d.addEventListener("durationchange",function(c){a.setmarkers(b)}),d.addEventListener("timeupdate",function(b){for(f=Math.floor(d.currentTime),h>f?i>f&&(i=-1):h=f,e=0;e=0&&(c=100*Math.floor(d.options.markers[e])/d.media.duration,a(b.find(".mejs-time-marker")[e]).css({width:"1px",left:c+"%",background:d.options.markerColor}))}})}(mejs.$); ;var SLZ_MAIN=function(){var wow_function=function(){new WOW().init();} var carousel_function=function(){jQuery(".sc_carousel_posts .slz-carousel-global").each(function(){if(jQuery(this).hasClass('slz-initial')==true) return true;var cont=jQuery(this).parents('.sc_carousel_posts') var carousel_item=parseInt(jQuery(this).attr('data-slidesToShow')),dots=jQuery(cont).attr('data-dots'),arrow=jQuery(cont).attr('data-arrow'),speed=jQuery(cont).attr('data-speed'),autoplay=jQuery(cont).attr('data-autoplay'),infinite=jQuery(cont).attr('data-infinite'),animation=jQuery(cont).attr('data-animation');if(speed==0||speed==''||speed==undefined){speed=600;} if(autoplay=='1'){autoplay=true;}else{autoplay=false;} if(infinite=='1'){infinite=true;}else{infinite=false;} if(dots=='1'){dots=true;}else{dots=false;} if(arrow=='1'){arrow=true;}else{arrow=false;} if(animation=='1'){animation=true;}else{animation=false;} if(carousel_item==1){jQuery(this).slick({infinite:infinite,slidesToShow:1,slidesToScroll:1,speed:speed,dots:dots,arrows:arrow,autoplay:autoplay,fade:animation,adaptiveHeight:true,appendArrows:jQuery(this).parents('.slz-carousel-wrapper'),prevArrow:'',nextArrow:'',responsive:[{breakpoint:769,settings:{arrows:false,dots:true}}]});}else if(carousel_item==2){jQuery(this).slick({infinite:infinite,slidesToShow:2,slidesToScroll:2,speed:speed,dots:dots,arrows:arrow,autoplay:autoplay,fade:animation,adaptiveHeight:true,appendArrows:jQuery(this).parents('.slz-carousel-wrapper'),prevArrow:'',nextArrow:'',responsive:[{breakpoint:769,settings:{arrows:false,dots:true}},{breakpoint:415,settings:{slidesToShow:1,slidesToScroll:1,arrows:false,dots:true}}]});}else if(carousel_item==3){jQuery(this).slick({infinite:infinite,slidesToShow:3,slidesToScroll:3,speed:speed,dots:dots,arrows:arrow,autoplay:autoplay,fade:animation,adaptiveHeight:true,appendArrows:jQuery(this).parents('.slz-carousel-wrapper'),prevArrow:'',nextArrow:'',responsive:[{breakpoint:769,settings:{slidesToShow:2,slidesToScroll:2,arrows:false,dots:true}},{breakpoint:415,settings:{slidesToShow:1,slidesToScroll:1,arrows:false,dots:true}}]});}else if(carousel_item==4){jQuery(this).slick({infinite:infinite,slidesToShow:4,slidesToScroll:4,speed:speed,dots:dots,arrows:arrow,autoplay:autoplay,fade:animation,adaptiveHeight:true,appendArrows:jQuery(this).parents('.slz-carousel-wrapper'),prevArrow:'',nextArrow:'',responsive:[{breakpoint:1025,settings:{slidesToShow:3,slidesToScroll:3,}},{breakpoint:769,settings:{slidesToShow:2,slidesToScroll:2,arrows:false,dots:true}},{breakpoint:415,settings:{slidesToShow:1,slidesToScroll:1,arrows:false,dots:true}}]});}else if(carousel_item>=5){jQuery(this).slick({infinite:infinite,slidesToShow:carousel_item,slidesToScroll:carousel_item,speed:speed,dots:dots,arrows:arrow,autoplay:autoplay,fade:animation,adaptiveHeight:true,appendArrows:jQuery(this).parents('.slz-carousel-wrapper'),prevArrow:'',nextArrow:'',responsive:[{breakpoint:1025,settings:{slidesToShow:4,slidesToScroll:4,}},{breakpoint:769,settings:{slidesToShow:3,slidesToScroll:3,arrows:false,dots:true}},{breakpoint:601,settings:{slidesToShow:2,slidesToScroll:2,arrows:false,dots:true}},{breakpoint:415,settings:{slidesToShow:1,slidesToScroll:1,arrows:false,dots:true}}]});} jQuery(this).addClass('slz-initial');});jQuery(".sc_carousel_posts .slz-carousel-vertical").each(function(){if(jQuery(this).hasClass('slz-initial')==true) return true;var cont=jQuery(this).parents('.sc_carousel_posts') var carousel_item=parseInt(jQuery(this).attr('data-slidesToShow')),dots=jQuery(cont).attr('data-dots'),arrow=jQuery(cont).attr('data-arrow'),speed=jQuery(cont).attr('data-speed'),autoplay=jQuery(cont).attr('data-autoplay'),infinite=jQuery(cont).attr('data-infinite'),animation=jQuery(cont).attr('data-animation');if(speed==0||speed==''||speed==undefined){speed=500;} if(autoplay=='1'){autoplay=true;}else{autoplay=false;} if(infinite=='1'){infinite=true;}else{infinite=false;} if(dots=='1'){dots=true;}else{dots=false;} if(arrow=='1'){arrow=true;}else{arrow=false;} if(animation=='1'){animation=true;}else{animation=false;} jQuery(this).slick({slidesToShow:carousel_item,slidesToScroll:carousel_item,vertical:true,verticalSwiping:true,infinite:infinite,speed:speed,dots:dots,arrows:arrow,autoplay:autoplay,fade:animation,adaptiveHeight:true,appendArrows:jQuery(this).parents('.slz-carousel-wrapper'),prevArrow:'',nextArrow:'',responsive:[{breakpoint:768,settings:{vertical:false,verticalSwiping:false,}}]});jQuery(this).addClass('slz-initial');});jQuery('.sc_carousel_posts .slz-block-slider-01').each(function(){if(jQuery(this).hasClass('slick-initialized')==true) return true;var cont=jQuery(this).parents('.sc_carousel_posts') var carousel_item=parseInt(jQuery(this).find('.block-slider-nav-01').attr('data-slidesToShow')),dots=jQuery(cont).attr('data-dots'),arrow=jQuery(cont).attr('data-arrow'),speed=jQuery(cont).attr('data-speed'),autoplay=jQuery(cont).attr('data-autoplay'),infinite=jQuery(cont).attr('data-infinite'),animation=jQuery(cont).attr('data-animation');if(speed==0||speed==''||speed==undefined){speed=500;} if(autoplay=='1'){autoplay=true;}else{autoplay=false;} if(infinite=='1'){infinite=true;}else{infinite=false;} if(dots=='1'){dots=true;}else{dots=false;} if(arrow=='1'){arrow=true;}else{arrow=false;} if(animation=='1'){animation=true;}else{animation=false;} jQuery(this).find('.block-slider-main-01').slick({slidesToShow:1,slidesToScroll:1,speed:speed,dots:dots,autoplay:autoplay,arrows:arrow,infinite:infinite,fade:animation,asNavFor:jQuery(this).find('.block-slider-nav-01'),appendArrows:jQuery(this).parents('.slz-carousel-wrapper'),prevArrow:'',nextArrow:'',responsive:[{breakpoint:768,settings:{arrows:false,}}]});jQuery(this).find('.block-slider-nav-01').slick({infinite:infinite,slidesToShow:carousel_item,slidesToScroll:1,speed:speed,dots:false,arrows:false,focusOnSelect:true,asNavFor:jQuery(this).find('.block-slider-main-01'),responsive:[{breakpoint:768,settings:{dots:true,}},{breakpoint:381,settings:{dots:true,slidesToShow:2}}]});});jQuery(".sc_carousel_posts .slz-carousel-syncing").each(function(){if(jQuery(this).hasClass('slz-initial')==true) return true;var cont=jQuery(this).parents('.sc_carousel_posts') var carousel_item=parseInt(jQuery(this).find('.slider-nav').attr('data-slidesToShow')),dots1=jQuery(this).find('.slider-nav').attr('data-dots'),dots2=jQuery(this).find('.slider-for').attr('data-dots'),arrow=jQuery(cont).attr('data-arrow'),speed=jQuery(cont).attr('data-speed'),autoplay=jQuery(cont).attr('data-autoplay'),infinite=jQuery(cont).attr('data-infinite'),animation=jQuery(cont).attr('data-animation');if(speed==0||speed==''||speed==undefined){speed=500;} if(autoplay=='1'){autoplay=true;}else{autoplay=false;} if(infinite=='1'){infinite=true;}else{infinite=false;} if(dots1=='1'){dots1=true;}else{dots1=false;} if(dots2=='1'){dots2=true;}else{dots2=false;} if(arrow=='1'){arrow=true;}else{arrow=false;} if(animation=='1'){animation=true;}else{animation=false;} jQuery(this).find('.slider-for').slick({slidesToShow:1,slidesToScroll:1,dots:dots2,arrows:arrow,speed:speed,fade:animation,autoplay:autoplay,adaptiveHeight:true,asNavFor:jQuery(this).find('.slider-nav'),prevArrow:'',nextArrow:'',});jQuery(this).find('.slider-nav').slick({slidesToShow:carousel_item,slidesToScroll:1,dots:dots1,arrows:false,speed:speed,autoplay:autoplay,infinite:infinite,centerMode:true,centerPadding:'0px',focusOnSelect:true,asNavFor:jQuery(this).find('.slider-for'),responsive:[{breakpoint:1025,settings:{slidesToShow:4}},{breakpoint:769,settings:{slidesToShow:4}},{breakpoint:601,settings:{slidesToShow:4}},{breakpoint:415,settings:{slidesToShow:3}},{breakpoint:381,settings:{slidesToShow:2}}]});jQuery(this).addClass('slz-initial');});jQuery(".sc_carousel_posts .slz-carousel-vertical-02").each(function(){if(jQuery(this).hasClass('slz-initial')==true) return true;var cont=jQuery(this).parents('.sc_carousel_posts'),carousel_item=jQuery('.slz-carousel-vertical-02 .slider-nav .item');var dots=jQuery(cont).attr('data-dots'),arrow=jQuery(cont).attr('data-arrow'),speed=jQuery(cont).attr('data-speed'),autoplay=jQuery(cont).attr('data-autoplay'),infinite=jQuery(cont).attr('data-infinite'),animation=jQuery(cont).attr('data-animation');if(speed==0||speed==''||speed==undefined){speed=500;} if(autoplay=='1'){autoplay=true;}else{autoplay=false;} if(infinite=='1'){infinite=true;}else{infinite=false;} if(dots=='1'){dots=true;}else{dots=false;} if(arrow=='1'){arrow=true;}else{arrow=false;} if(animation=='1'){animation=true;}else{animation=false;} jQuery(this).find('.slider-for').slick({slidesToShow:1,slidesToScroll:1,infinite:infinite,arrows:arrow,fade:animation,autoplay:autoplay,speed:speed,asNavFor:jQuery(this).find('.slider-nav'),prevArrow:'',nextArrow:'',});jQuery(this).find('.slider-nav').slick({slidesToShow:carousel_item.length,vertical:true,infinite:infinite,speed:speed,slidesToScroll:1,focusOnSelect:true,arrows:false,asNavFor:jQuery(this).find('.slider-for'),});jQuery(".slz-carousel-vertical-02 .slider-nav").css("height",jQuery(".slz-carousel-vertical-02 .slider-for").height());jQuery(this).addClass('slz-initial');});jQuery(".sc_carousel_posts .slz-carousel-center").each(function(){if(jQuery(this).hasClass('slz-initial')==true) return true;var cont=jQuery(this).parents('.sc_carousel_posts') var dots=jQuery(cont).attr('data-dots'),arrow=jQuery(cont).attr('data-arrow'),speed=jQuery(cont).attr('data-speed'),autoplay=jQuery(cont).attr('data-autoplay'),infinite=jQuery(cont).attr('data-infinite'),animation=jQuery(cont).attr('data-animation');if(speed==0||speed==''||speed==undefined){speed=500;} if(autoplay=='1'){autoplay=true;}else{autoplay=false;} if(infinite=='1'){infinite=true;}else{infinite=false;} if(dots=='1'){dots=true;}else{dots=false;} if(arrow=='1'){arrow=true;}else{arrow=false;} if(animation=='1'){animation=true;}else{animation=false;} jQuery(this).slick({infinite:infinite,autoplay:autoplay,dots:dots,arrows:arrow,speed:speed,fade:animation,centerMode:true,slidesToShow:1,centerPadding:'22%',prevArrow:'',nextArrow:'',responsive:[{breakpoint:1025,settings:{centerPadding:'15%',}},{breakpoint:769,settings:{centerPadding:'70px',}},{breakpoint:481,settings:{arrows:false,centerPadding:'15px',}}]});});jQuery(".slz_single_relate_post .slz-carousel").each(function(){var carousel_item=parseInt(jQuery(this).attr('data-slidestoshow'));if(carousel_item==1){jQuery(this).slick({infinite:true,slidesToShow:1,slidesToScroll:1,speed:600,adaptiveHeight:true,dots:false,arrows:true,appendArrows:jQuery(this).parents('.slz-carousel-wrapper'),prevArrow:'',nextArrow:''});} if(carousel_item==2){jQuery(this).slick({infinite:true,slidesToShow:carousel_item,slidesToScroll:1,speed:600,dots:false,arrows:true,adaptiveHeight:true,appendArrows:jQuery(this).parents('.slz-carousel-wrapper'),prevArrow:'',nextArrow:'',responsive:[{breakpoint:481,settings:{slidesToShow:1,slidesToScroll:1,}}]});} if(carousel_item==3){jQuery(this).slick({infinite:true,slidesToShow:carousel_item,slidesToScroll:1,speed:600,adaptiveHeight:true,dots:false,arrows:true,appendArrows:jQuery(this).parents('.slz-carousel-wrapper'),prevArrow:'',nextArrow:'',responsive:[{breakpoint:769,settings:{slidesToShow:2,slidesToScroll:2,}},{breakpoint:481,settings:{slidesToShow:1,slidesToScroll:1,}}]});} if(carousel_item>=4){jQuery(this).slick({infinite:true,slidesToShow:carousel_item,slidesToScroll:1,speed:600,adaptiveHeight:true,dots:false,arrows:true,appendArrows:jQuery(this).parents('.slz-carousel-wrapper'),prevArrow:'',nextArrow:'',responsive:[{breakpoint:1025,settings:{slidesToShow:3,slidesToScroll:3,}},{breakpoint:769,settings:{slidesToShow:2,slidesToScroll:2,}},{breakpoint:481,settings:{slidesToShow:1,slidesToScroll:1,}}]});}});jQuery(".slz-widget-post-slider .slz-carousel-global").each(function(){if(jQuery(this).hasClass('slz-initial')==true) return true;jQuery(this).slick({infinite:true,slidesToShow:1,slidesToScroll:1,dots:false,arrows:true,autoplay:true,adaptiveHeight:true,appendArrows:jQuery(this).parents('.slz-carousel-wrapper'),prevArrow:'',nextArrow:'',});jQuery(this).addClass('slz-initial');});} var video_function=function(){if(jQuery(".slz-block-video .block-video .video-embed").length){jQuery(".slz-block-video .block-video .btn-play").on('click',function(event){jQuery(this).parent().find(".video-embed").addClass('show-video');jQuery(this).parent().find(".btn-close").addClass('show-video');jQuery(this).parent().find(".video-embed")[0].src+="&autoplay=1";if(jQuery(this).parents('.block-video').prev().length){jQuery(this).parents('.block-video').prev().addClass('hidden');} jQuery(this).parent().find('.title').addClass('hidden');event.preventDefault();});jQuery(".slz-block-video .block-video .btn-close").on('click',function(event){jQuery(this).parent().find(".video-embed")[0].src=jQuery(this).attr('data-src');jQuery(this).parent().find(".video-embed").removeClass('show-video');jQuery(this).parent().find(".btn-close").removeClass('show-video');if(jQuery(this).parents('.block-video').prev().length){jQuery(this).parents('.block-video').prev().removeClass('hidden');} jQuery(this).parent().find('.title').removeClass('hidden');});}} var comment_rating=function(){jQuery('.comment-form-rating .stars a').on('click',function(e){e.preventDefault();jQuery('.comment-form-rating .stars').find('a').removeClass('active');jQuery(this).addClass('active');jQuery(this).closest('.comment-form-rating').find('input[name="rating"]').val(jQuery(this).html());});} var portfolio_carousel_sc=function(){if(jQuery('.sc_portfolio_list .portfolio_slide_slick').length){jQuery('.sc_portfolio_list').each(function(){var item=jQuery(this).attr('data-item');var block='.'+item+' ';var slick_block=jQuery(block+".portfolio_slide_slick");if(slick_block.length&&!slick_block.hasClass('slick-initialized')){var slick_json=jQuery(slick_block).data('slick-json');if(typeof slick_json!=='undefined'){var centerMode={centerMode:false} jQuery.extend(slick_json,centerMode);slick_block.slick(slick_json);}}});}} var sc_causes_progressbar=function(){if(jQuery('.sc_causes_block_layout_1 .slz-progress-bar-01').length||jQuery('.sc_causes_block_layout_2 .slz-progress-bar-01').length){jQuery(".progress-bar").each(function(){var unit=jQuery(this).attr('data-unit');var each_bar_width=jQuery(this).attr('aria-valuenow');jQuery(this).width(each_bar_width+'%');jQuery(this).parent().parent().find('.percent').attr('data-to',each_bar_width);jQuery(this).parent().parent().find('.percent').countTo({onUpdate:function(value){jQuery(this).append(unit);}});});}} return{init:function(){wow_function();carousel_function();video_function();comment_rating();portfolio_carousel_sc();sc_causes_progressbar();}}}();jQuery(document).ready(function(){SLZ_MAIN.init();jQuery('audio.audio-format').mediaelementplayer();jQuery(window).on('resize',function(){jQuery('audio.audio-format').mediaelementplayer();});});;jQuery(function($){"use strict";$.carouselFunction=function(){$('.slz-gallery-format .slz-carousel').each(function(){$(this).slick({infinite:true,autoplay:false,slidesToShow:1,slidesToScroll:1,dots:false,arrows:true,appendArrows:$(this).parents('.slz-image-carousel'),prevArrow:'',nextArrow:''});});} $(document).ready(function(){jQuery.carouselFunction();});});;jQuery(function($){"use strict";$.slz_events_submit_ajax=function(){if($('.slz_buy_ticket_event_btn.slz-buy-ticket-method').length>0){$('.slz_buy_ticket_event_btn.slz-buy-ticket-method').on('click',function(){var slz_event_post_id=$(this).parents('.slz-form-buy-ticket').find('.slz_event_post_id').val();var pricing_column=$(this).parents('.slz-form-buy-ticket').find('.pricing_column').val();var data={"post_id":slz_event_post_id,"pricing_column":pricing_column,} $.fn.Form.ajax(['events','ajax_buy_ticket'],[data],function(res){res=jQuery.parseJSON(res);if(res!=undefined){top.location.href=res.url;}});});} if($('.slz-form-event-donate button.slz_money_donate_btn').length>0){$('.slz-form-event-donate button.slz_money_donate_btn').on('click',function(){var slz_money_donate='';$(this).parents('.slz-form-event-donate').find('.donate-item').each(function(){if($(this).find('input[name="valueDonation"]').is(':checked')&&$(this).find('input[name="valueDonation"]').hasClass('donation-other-price')){if(!isNaN($(this).find('input[name="anotherAmount"]').val())){slz_money_donate=parseInt($(this).find('input[name="anotherAmount"]').val());}}else if($(this).find('input[name="valueDonation"]').is(':checked')){if(!isNaN($(this).find('input[name="valueDonation"]').val())){slz_money_donate=parseInt($(this).find('input[name="valueDonation"]').val());}}});var slz_event_post_id=$(this).parents('.slz-form-event-donate').find('.slz_event_post_id').val();if(slz_money_donate!=''){var data={"money":slz_money_donate,"post_id":slz_event_post_id,} $.fn.Form.ajax(['events','ajax_donate_event'],[data],function(res){res=jQuery.parseJSON(res);if(res!=undefined){top.location.href=res.url;}});}});}};$.slz_events_countdown=function(){if($('.count-down').length>0){$('.count-down').each(function(idx,dom){var expire=$(dom).data('expire');if(expire){expire=new Date(expire).getTime();var days=$(dom).find('.days span');var hours=$(dom).find('.hours span');var minutes=$(dom).find('.minutes span');var seconds=$(dom).find('.seconds span');var itv_id=window.setInterval(function(){var current=new Date().getTime();var seconds_left=(expire-current)/1000;if(seconds_left<=0){window.clearInterval(itv_id);return;} days.text(parseInt(seconds_left/86400));seconds_left%=86400;hours.text(parseInt(seconds_left/3600));seconds_left%=3600;minutes.text(parseInt(seconds_left/60));seconds.text(parseInt(seconds_left%60));},1000);}});}};$.slz_events_submit_donation_ajax=function(){$('.label-check.another-donation').on('click',function(){$(this).find('.form-control').focus();});if($('.slz-form-donate input.slz_events_post_id').length>0){$('.slz-form-donate button.slz_money_donate_btn').on('click',function(){var slz_money_donate='';$(this).parents('.slz-form-donate').find('.donate-item').each(function(){if($(this).find('input[name="valueDonation"]').is(':checked')&&$(this).find('input[name="valueDonation"]').hasClass('donation-other-price')){if(!isNaN($(this).find('input[name="anotherAmount"]').val())){slz_money_donate=parseInt($(this).find('input[name="anotherAmount"]').val());}}else if($(this).find('input[name="valueDonation"]').is(':checked')){if(!isNaN($(this).find('input[name="valueDonation"]').val())){slz_money_donate=parseInt($(this).find('input[name="valueDonation"]').val());}}});var slz_post_id=$(this).parents('.slz-form-donate').find('.slz_events_post_id').val();if(slz_money_donate!=''){var data={"money":slz_money_donate,"post_id":slz_post_id,} $.fn.Form.ajax(['events','ajax_donate_event'],[data],function(res){res=jQuery.parseJSON(res);if(res!=undefined){top.location.href=res.url;}});}});}};$.slz_donation_paypal_form=function(){if($('.slz-form-donate select[name="t3"]').length){$('.slz-form-donate input[name="anotherAmount"]').keyup(function(){var value=$(this).val();$(this).parent().parent().find('input[type="radio"]').val(value);});$('.slz-form-donate select[name="t3"]').change(function(){var t3=$(this).val();var option_p3='';var count=0;if(t3=='W'){count=7;} if(t3=='M'){count=12;} if(t3=='Y'){count=6;} for(var i=2;i<=count;i++){option_p3+='';} var p3=$(this).parent().find('select[name="p3"]');p3.html(option_p3);if(count==0){p3.parent().hide(500);}else{p3.parent().show(500);}});$('.slz-form-donate').submit(function(){var first_name=$(this).find('input[name="first_name"]').val().trim();if(first_name==''){alert('First Name is a required field');$(this).find('input[name="first_name"]').focus();return false;} var last_name=$(this).find('input[name="last_name"]').val().trim();if(last_name==''){alert('Last Name is a required field');$(this).find('input[name="last_name"]').focus();return false;} var email=$(this).find('input[name="email"]').val().trim();if(email==''){alert('Email Address is a required field');$(this).find('input[name="email"]').focus();return false;} return true;});}} $(document).ready(function(){jQuery.slz_events_submit_ajax();jQuery.slz_events_submit_donation_ajax();jQuery.slz_events_countdown();jQuery.slz_donation_paypal_form();});});;jQuery(function($){"use strict";var SLZ=window.SLZ||{};SLZ.fancyboxFunction=function(){if($('.fancybox').length){$('.fancybox').fancybox({openEffect:'elastic',closeEffect:'elastic',helpers:{overlay:{locked:false,}}});} if($('.fancybox-thumb').length){$('.fancybox-thumb').fancybox({openEffect:'elastic',closeEffect:'elastic',helpers:{overlay:{locked:false,},thumbs:{width:60,height:60,}}});} if($('.fancybox-thumb').length){if($(window).width()>600){$.fancybox.helpers.thumbs.onUpdate=function(opts,obj){if(this.list){var center=Math.floor($(window).width()*0.5-(obj.group.length/2*this.width+this.width*0.5));this.list.css('left',center);}};}}} SLZ.fancyboxisotopeFunction=function(){$(".sc_isotope_post .fancybox").each(function(){$(this).fancybox({openEffect:'elastic',closeEffect:'elastic',helpers:{overlay:{locked:false}}});});if($('.sc_isotope_post .fancybox-thumb').length){$('.sc_isotope_post .fancybox-thumb').fancybox({openEffect:'elastic',closeEffect:'elastic',afterShow:function(){$('body').addClass("fancy-open");},afterClose:function(){$('body').removeClass("fancy-open");},helpers:{overlay:{locked:false,},thumbs:{width:60,height:60,}}});} $(".sc_isotope .fancybox").each(function(){$(this).fancybox({openEffect:'elastic',closeEffect:'elastic',helpers:{overlay:{locked:false}}});});if($('.sc_isotope .fancybox-thumb').length){$('.sc_isotope .fancybox-thumb').fancybox({openEffect:'elastic',closeEffect:'elastic',helpers:{overlay:{locked:false,},thumbs:{width:60,height:60,}}});} if($(window).width()>600){$.fancybox.helpers.thumbs.onUpdate=function(opts,obj){if(this.list){var center=Math.floor($(window).width()*0.5-(obj.group.length/2*this.width+this.width*0.5));this.list.css('left',center);}};}} SLZ.ajaxfunction=function(){$('.sc_isotope_post').each(function(index,el){var id_class=$(this).attr('data-block-class');$(this).find('.grid-main .block-image a').attr('data-fancybox-group','group-'+id_class);});$('.sc_isotope_post a.slz-btn.btn-loadmore').on('click',function(){var uniq_id=$(this).parents('.sc_isotope_post').attr('data-block-class');var atts=jQuery.parseJSON($(this).parents('.sc_isotope_post').find('.grid-clone .gallery_atts_more').attr('data-json'));$.fn.Form.ajax(['gallery','ajax_load_more_func'],[atts],function(res){$(uniq_id+' .gallery_atts_more').remove();$(uniq_id+' .grid-clone').append(res);$(uniq_id).find('.grid-main').html($(uniq_id).find('.grid-clone').html());setTimeout(function(){$(uniq_id).find('.grid-main').isotope('destroy').isotope({itemSelector:'.grid-item',percentPosition:true,masonry:{columnWidth:'.grid-item'}});$(uniq_id+' .grid-main .block-image a').attr('data-fancybox-group','group-'+uniq_id);},100);var data_pages=$(uniq_id+' .grid-clone .gallery_atts_more').attr('data-pages');if(data_pages==''){$(uniq_id).find('a.btn-loadmore').remove();}});});} SLZ.tab_all_btn=function(){$('.slz-isotope-nav ul.tab-filter li.tab-data-less div').on('click',function(){var id=$(this).parents('.sc_isotope_post').attr('data-block-class');$(id+' .slz-btn.btn-loadmore').addClass('hide');});$('.slz-isotope-nav ul.tab-filter li.tab-all-active div').on('click',function(){var id=$(this).parents('.sc_isotope_post').attr('data-block-class');$(id+' .slz-btn.btn-loadmore').removeClass('hide');});} SLZ.isotopeFunction=function(){$('.slz-isotope-grid-2 .slz-block-gallery-01 .block-image').directionalHover();setTimeout(function(){if($('.slz-isotope-grid').length){$('.slz-isotope-grid').each(function(){var $grid=$(this).isotope({itemSelector:'.grid-item',percentPosition:true,masonry:{columnWidth:'.grid-item'}});var filterFns={numberGreaterThan50:function(){var number=$(this).find('.number').text();return parseInt(number,10)>50;},ium:function(){var name=$(this).find('.name').text();return name.match(/ium$/);}};$(this).parent().find('.tab-filter').on('click','.tab',function(){var filterValue=$(this).attr('data-filter');filterValue=filterFns[filterValue]||filterValue;$grid.isotope({filter:filterValue});});$(this).parent().find('.tab-filter').each(function(i,buttonGroup){var $buttonGroup=$(buttonGroup);$buttonGroup.on('click','.tab',function(){$buttonGroup.find('.active').removeClass('active');$(this).addClass('active');});});});} if($('.sc_isotope_post .slz-isotope-grid-2.grid-main').length){$('.sc_isotope_post .slz-isotope-grid-2.grid-main').each(function(){var $grid=$(this).isotope({itemSelector:'.grid-item',percentPosition:true,masonry:{columnWidth:'.grid-item'}});var filterFns={numberGreaterThan50:function(){var number=$(this).find('.number').text();return parseInt(number,10)>50;},ium:function(){var name=$(this).find('.name').text();return name.match(/ium$/);}};$(this).parent().find('.tab-filter').on('click','.tab',function(){var filterValue=$(this).attr('data-filter');filterValue=filterFns[filterValue]||filterValue;$grid.isotope({filter:filterValue});});$(this).parent().find('.tab-filter').each(function(i,buttonGroup){var $buttonGroup=$(buttonGroup);$buttonGroup.on('click','.tab',function(){$buttonGroup.find('.active').removeClass('active');$(this).addClass('active');});});});} if($('.sc_isotope .slz-isotope-grid-2.grid-main').length){$('.sc_isotope .slz-isotope-grid-2.grid-main').each(function(){var $grid=$(this).isotope({itemSelector:'.grid-item',percentPosition:true,masonry:{columnWidth:'.grid-item'}});var filterFns={numberGreaterThan50:function(){var number=$(this).find('.number').text();return parseInt(number,10)>50;},ium:function(){var name=$(this).find('.name').text();return name.match(/ium$/);}};$(this).parent().find('.tab-filter').on('click','.tab',function(){var filterValue=$(this).attr('data-filter');filterValue=filterFns[filterValue]||filterValue;$grid.isotope({filter:filterValue});});$(this).parent().find('.tab-filter').each(function(i,buttonGroup){var $buttonGroup=$(buttonGroup);$buttonGroup.on('click','.tab',function(){$buttonGroup.find('.active').removeClass('active');$(this).addClass('active');});});});}},500);};SLZ.gallery_tab=function(){$('.gallery-list .grid-item').directionalHover();$('.sc_gallery_tab .tab-pane').each(function(index,el){$(this).find('.block-image a').attr('data-fancybox-group','group-#'+$(this).attr('id'));});$(".slz-gallery-tab-01").each(function(){var carousel_item=parseInt($(this).attr('data-slidestoshow'));var dots=$(this).attr('data-dots');var arrow=$(this).attr('data-arrows');var autoplay=$(this).attr('data-autoplay');var loop=$(this).attr('data-infinite');var speed=$(this).attr('data-speed');var animation=$(this).attr('data-animation');if(dots=='1'){dots=true;}else{dots=false;} if(arrow=='1'){arrow=true;}else{arrow=false;} if(autoplay=='1'){autoplay=true;}else{autoplay=false;} if(loop=='1'){loop=true;}else{loop=false;} if(speed==0||speed==''||speed==undefined){speed=500;} if(animation=='1'){animation=true;}else{animation=false;} if(carousel_item==1){$(this).find('.gallery-list').slick({slidesToShow:1,slidesToScroll:1,arrows:arrow,dots:dots,autoplay:autoplay,infinite:loop,speed:speed,fade:animation,prevArrow:'',nextArrow:'',});} if(carousel_item==2){$(this).find('.gallery-list').slick({slidesToShow:2,slidesToScroll:2,arrows:arrow,dots:dots,autoplay:autoplay,infinite:loop,speed:speed,fade:animation,prevArrow:'',nextArrow:'',responsive:[{breakpoint:415,settings:{slidesToShow:1,slidesToScroll:1,}}]});} if(carousel_item==3){$(this).find('.gallery-list').slick({slidesToShow:3,slidesToScroll:3,arrows:arrow,dots:dots,autoplay:autoplay,infinite:loop,speed:speed,fade:animation,prevArrow:'',nextArrow:'',responsive:[{breakpoint:769,settings:{slidesToShow:2,slidesToScroll:2,}},{breakpoint:415,settings:{slidesToShow:1,slidesToScroll:1,}}]});} if(carousel_item>=4){$(this).find('.gallery-list').slick({slidesToShow:carousel_item,slidesToScroll:carousel_item,arrows:arrow,dots:dots,autoplay:autoplay,infinite:loop,speed:speed,fade:animation,prevArrow:'',nextArrow:'',responsive:[{breakpoint:1025,settings:{slidesToShow:3,slidesToScroll:3,}},{breakpoint:769,settings:{slidesToShow:2,slidesToScroll:2,}},{breakpoint:415,settings:{slidesToShow:1,slidesToScroll:1}}]});}});if($('.sc_gallery_tab .slz-isotope-grid-2.grid-main').length){$('.sc_gallery_tab .slz-isotope-grid-2.grid-main').each(function(){var number=$(this).closest('.sc_gallery_tab').attr('data-number');var $grid=$(this).isotope({itemSelector:'.grid-item',percentPosition:true,filter:':nth-child(-n+'+number+')',masonry:{columnWidth:'.grid-item'}});$(this).parents('.sc_gallery_tab').find('.tab-filter .tab_item').on('shown.bs.tab',function(e){$(this).closest('.sc_gallery_tab').find('.tab-pane.active .btn-loadmore').attr('data-number',number).show();var $grid=$(this).parents('.sc_gallery_tab').find('.slz-isotope-grid-2.grid-main').isotope({itemSelector:'.grid-item',percentPosition:true,filter:':nth-child(-n+'+number+')',masonry:{columnWidth:'.grid-item'}});});var all_items=$(this).find('.grid-item').length;if(number>=all_items){$(this).parent().find('.btn-loadmore-wrapper').remove();}});$('.sc_gallery_tab .tab-content .tab-pane .btn-loadmore').on('click',function(event){var number=$(this).closest('.sc_gallery_tab').attr('data-number');var current=$(this).attr('data-number');var all_items=$(this).closest('.tab-pane').find('.slz-isotope-grid-2.grid-main .grid-item').length;var new_number=parseInt(number)+parseInt(current);$(this).closest('.sc_gallery_tab').find('.slz-isotope-grid-2.grid-main').isotope({itemSelector:'.grid-item',filter:':nth-child(-n+'+new_number+')',percentPosition:true,masonry:{columnWidth:'.grid-item'}});$(this).attr('data-number',new_number);if(new_number>=all_items){$(this).hide();}});}};SLZ.gallery_carousel=function(){$('.sc_gallery_carousel .slz-carousel .item').directionalHover();$('.sc_gallery_carousel').each(function(index,el){var id_class=$(this).attr('data-item');$(this).find('.block-image a').attr('data-fancybox-group','group-.'+id_class);$(this).find('.image-gallery-wrapper a').attr('data-fancybox-group','group-.'+id_class);});$(".sc_gallery_carousel .slz-carousel").each(function(e,val){var carousel_item=parseInt($(this).attr('data-slidestoshow'));var dots=$(this).attr('data-dotshow');var arrow=$(this).attr('data-arrowshow');var autoplay=$(this).attr('data-autoplay');var loop=$(this).attr('data-infinite');if(dots=='1'){dots=true;}else{dots=false;} if(arrow=='1'){arrow=true;}else{arrow=false;} if(autoplay=='1'){autoplay=true;}else{autoplay=false;} if(loop=='1'){loop=true;}else{loop=false;} if(carousel_item==1){$(this).slick({infinite:loop,autoplay:autoplay,slidesToShow:1,slidesToScroll:1,dots:dots,arrows:arrow,appendArrows:$(this).parents('.slz-image-carousel'),prevArrow:'',nextArrow:''});} if(carousel_item==2){$(this).slick({infinite:loop,autoplay:autoplay,slidesToShow:2,slidesToScroll:2,dots:dots,arrows:arrow,appendArrows:$(this).parents('.slz-image-carousel'),prevArrow:'',nextArrow:'',responsive:[{breakpoint:415,settings:{slidesToShow:1,slidesToScroll:1,}}]});} if(carousel_item==3){$(this).slick({infinite:loop,autoplay:autoplay,slidesToShow:3,slidesToScroll:3,dots:dots,arrows:arrow,appendArrows:$(this).parents('.slz-image-carousel'),prevArrow:'',nextArrow:'',responsive:[{breakpoint:769,settings:{slidesToShow:2,slidesToScroll:2,}},{breakpoint:415,settings:{slidesToShow:1,slidesToScroll:1,}}]});} if(carousel_item>=4){$(this).slick({infinite:loop,autoplay:autoplay,slidesToShow:carousel_item,slidesToScroll:carousel_item,dots:dots,arrows:arrow,appendArrows:$(this).parents('.slz-image-carousel'),prevArrow:'',nextArrow:'',responsive:[{breakpoint:1025,settings:{slidesToShow:3,slidesToScroll:3,}},{breakpoint:769,settings:{slidesToShow:2,slidesToScroll:2,}},{breakpoint:415,settings:{slidesToShow:1,slidesToScroll:1}}]});}});$(".sc_gallery_carousel .slz-carousel-mockup").each(function(){var dots=$(this).find('.slz-slick-slider-mockup').attr('data-dotshow');var arrow=$(this).find('.slz-slick-slider-mockup').attr('data-arrowshow');var autoplay=$(this).find('.slz-slick-slider-mockup').attr('data-autoplay');var loop=$(this).find('.slz-slick-slider-mockup').attr('data-infinite');var sliderMock=$(this).find('.slz-slick-slider-mockup');if(dots=='1'){dots=true;}else{dots=false;} if(arrow=='1'){arrow=true;}else{arrow=false;} if(autoplay=='1'){autoplay=true;}else{autoplay=false;} if(loop=='1'){loop=true;}else{loop=false;} sliderMock.on('init',function(){$(window).load(function(){$(this).find(".slider-mockup").css("width",$(this).find('img.img-slider-item').width()+30);});$(window).resize(function(){$(this).find(".slider-mockup").css("width",$(this).find('img.img-slider-item').width()+30);});});sliderMock.slick({infinite:loop,autoplay:autoplay,dots:dots,arrows:arrow,slidesToShow:3,slidesToScroll:1,centerMode:true,centerPadding:'160px',focusOnSelect:true,autoplaySpeed:2000,appendArrows:$(this).find('.slz-slick-slider-mockup').parents('.slz-image-carousel'),prevArrow:'',nextArrow:'',responsive:[{breakpoint:1025,settings:{centerPadding:'100px',}},{breakpoint:769,settings:{centerPadding:'0',}},{breakpoint:768,settings:{slidesToShow:1,slidesToScroll:1,centerPadding:'200px',}},{breakpoint:601,settings:{slidesToShow:1,slidesToScroll:1,centerPadding:'120px',}},{breakpoint:481,settings:{slidesToShow:1,slidesToScroll:1,centerPadding:'80px',arrows:false,}},{breakpoint:415,settings:{slidesToShow:1,slidesToScroll:1,centerPadding:'30px',arrows:false,}}]})});$(".sc_gallery_carousel.slz-carousel-syncing").each(function(){var carousel_item=parseInt($(this).find('.slider-nav').attr('data-slidestoshow'));var dots=$(this).find('.slider-nav').attr('data-dotshow');var loop=$(this).find('.slider-nav').attr('data-infinite');var arrow=$(this).find('.slider-for').attr('data-arrowshow');var autoplay=$(this).find('.slider-for').attr('data-autoplay');var dots2=$(this).find('.slider-for').attr('data-dotshow');if(dots=='1'){dots=true;}else{dots=false;} if(dots2=='1'){dots2=true;}else{dots2=false;} if(arrow=='1'){arrow=true;}else{arrow=false;} if(autoplay=='1'){autoplay=true;}else{autoplay=false;} if(loop=='1'){loop=true;}else{loop=false;} $(this).find('.slider-for').slick({slidesToShow:1,slidesToScroll:1,arrows:arrow,dots:dots2,fade:true,adaptiveHeight:true,asNavFor:$(this).find('.slider-nav'),prevArrow:'',nextArrow:'',});$(this).find('.slider-nav').slick({slidesToShow:carousel_item,slidesToScroll:1,asNavFor:$(this).find('.slider-for'),focusOnSelect:true,arrows:false,infinite:loop,centerMode:true,centerPadding:'0px',dots:dots,responsive:[{breakpoint:1025,settings:{slidesToShow:4}},{breakpoint:769,settings:{slidesToShow:4}},{breakpoint:601,settings:{slidesToShow:4}},{breakpoint:415,settings:{slidesToShow:3}},{breakpoint:381,settings:{slidesToShow:2}}]});});$('.sc_gallery_carousel.slz-carousel-centermode .carousel-overflow').each(function(){var dots=$(this).attr('data-dotshow');var loop=$(this).attr('data-infinite');var arrow=$(this).attr('data-arrowshow');var autoplay=$(this).attr('data-autoplay');if(dots=='1'){dots=true;}else{dots=false;} if(arrow=='1'){arrow=true;}else{arrow=false;} if(autoplay=='1'){autoplay=true;}else{autoplay=false;} if(loop=='1'){loop=true;}else{loop=false;} $(this).slick({infinite:loop,autoplay:autoplay,dots:dots,arrows:arrow,centerMode:true,slidesToShow:1,centerPadding:'22%',appendArrows:$(this).parents('.slz-image-carousel'),prevArrow:'',nextArrow:'',responsive:[{breakpoint:1025,settings:{centerPadding:'15%',}},{breakpoint:769,settings:{centerPadding:'70px',}},{breakpoint:481,settings:{arrows:false,centerPadding:'15px',}}]});});};SLZ.gallerycatrgories=function(){$(".slz-gallery-feature").each(function(){var object=$(this);var slider=$(this).find('.service-slider-wrapper');if(slider.length){var slideItem=$(this).find('.slide-carousel');slideItem.slick({slidesToShow:1,slidesToScroll:1,autoplay:true,autoplaySpeed:3000,speed:1000,});$(this).find('.slz-sv-item').each(function(index,el){slideItem.on('afterChange',function(event,slick,currentSlide,nextSlide){var data_count=parseInt($(el).attr('data-count'));if(data_count===parseInt(currentSlide)){$('.slz-sv-item',object).removeClass('active');$(el).addClass('active');} $(el).click(function(){slideItem.slick('slickGoTo',index,false);});});$(el).click(function(){var clickplace=parseInt($(this).attr('data-count'));$('.slz-sv-item',object).removeClass('active');$(this).addClass('active');slideItem.slick('slickGoTo',clickplace,false);});});}});};SLZ.instagram_slider=function(){if($(".slz-carousel-photos .slz-carousel").length){$(".slz-carousel-photos .slz-carousel").each(function(){var carousel_item=$(this).attr('data-slidesToShow');if(carousel_item==''){carousel_item=4;} if(carousel_item==1){$(this).slick({slidesToShow:carousel_item,dots:true,arrows:false,});} if(carousel_item==2){$(this).slick({slidesToShow:carousel_item,dots:true,arrows:false,responsive:[{breakpoint:481,settings:{slidesToShow:1,slidesToScroll:1,}}]});} if(carousel_item==3){$(this).slick({slidesToShow:carousel_item,dots:true,arrows:false,responsive:[{breakpoint:769,settings:{slidesToShow:2,slidesToScroll:2,}},{breakpoint:481,settings:{slidesToShow:1,slidesToScroll:1,}}]});} if(carousel_item>=4){$(this).slick({slidesToShow:carousel_item,dots:true,arrows:false,responsive:[{breakpoint:1025,settings:{slidesToShow:3,slidesToScroll:3,}},{breakpoint:769,settings:{slidesToShow:2,slidesToScroll:2,}},{breakpoint:481,settings:{slidesToShow:1,slidesToScroll:1,}}]});}});$('.slz-carousel-photos .slz-carousel .thumb').directionalHover({speed:200});$('.slz-instagram .item').directionalHover({speed:200});if($(".slz-instagram").hasClass("slz-image-carousel")){$('.slz-carousel-photos .slz-carousel .item').directionalHover();}}} $(document).ready(function(){SLZ.fancyboxFunction();SLZ.isotopeFunction();SLZ.fancyboxisotopeFunction();SLZ.ajaxfunction();SLZ.tab_all_btn();SLZ.gallery_carousel();SLZ.gallerycatrgories();SLZ.gallery_tab();SLZ.instagram_slider();});});;jQuery(function($){"use strict";$.slz_portfolio_get_history=function(){$('.portfolio-history .slz-select-version').change(function(){var target_link=$(this).find(":selected").attr('data-target');if(target_link==undefined)target_link='';$(this).next('.slz-btn-download').attr("href",$(this).val());if(target_link!=''){$(this).next('.slz-btn-download').attr("target",target_link);}});};$.slz_portfolio_attachment_view=function(){$('ul.tool-list a.link.mp3').click(function(){var url=$(this).data('url');var modal_id=$(this).data('target');var modal=$(modal_id).find('.modal-body');var content='';modal.html(content);});$('ul.tool-list a.link.video').click(function(){var url=$(this).data('url');var modal_id=$(this).data('target');var modal=$(modal_id).find('.modal-body');var content='';modal.html(content);});};$(document).ready(function(){jQuery.slz_portfolio_get_history();jQuery.slz_portfolio_attachment_view();});});;jQuery(function($){"use strict";$.slz_team_carousel_sc=function(){$('.sc_team_carousel .slz-carousel').each(function(){var carousel_item=parseInt($(this).attr('data-slidestoshow')),dots=$(this).attr('data-dotshow'),arrow=$(this).attr('data-arrowshow'),speed=$(this).attr('data-speed'),autoplay=$(this).attr('data-autoplay'),infinite=$(this).attr('data-infinite'),animation=$(this).attr('data-animation');if(speed==0||speed==''||speed==undefined){speed=600;} if(autoplay=='1'){autoplay=true;}else{autoplay=false;} if(infinite=='1'){infinite=true;}else{infinite=false;} if(dots=='1'){dots=true;}else{dots=false;} if(arrow=='1'){arrow=true;}else{arrow=false;} if(animation=='1'){animation=true;}else{animation=false;} if(carousel_item==1){$(this).slick({infinite:infinite,slidesToShow:1,slidesToScroll:1,speed:speed,dots:dots,arrows:arrow,autoplay:autoplay,fade:animation,useCSS:true,adaptiveHeight:true,centerMode:true,centerPadding:'0px',useTransform:true,appendArrows:$(this).parents('.slz-carousel-wrapper'),prevArrow:'',nextArrow:'',responsive:[{breakpoint:769,settings:{arrows:false,dots:true}}]});} else if(carousel_item==2){$(this).slick({infinite:infinite,slidesToShow:2,slidesToScroll:1,speed:speed,dots:dots,arrows:arrow,autoplay:autoplay,fade:animation,useCSS:true,centerMode:true,centerPadding:'0px',useTransform:true,adaptiveHeight:true,appendArrows:$(this).parents('.slz-carousel-wrapper'),prevArrow:'',nextArrow:'',responsive:[{breakpoint:769,settings:{arrows:false,dots:true,slidesToShow:1,slidesToScroll:1,}},{breakpoint:415,settings:{slidesToShow:1,slidesToScroll:1,arrows:false,dots:true}}]});} else if(carousel_item==3){$(this).slick({infinite:infinite,slidesToShow:3,slidesToScroll:1,speed:speed,dots:dots,arrows:arrow,autoplay:autoplay,fade:animation,centerMode:true,centerPadding:'0px',useCSS:true,useTransform:true,adaptiveHeight:true,appendArrows:$(this).parents('.slz-carousel-wrapper'),prevArrow:'',nextArrow:'',responsive:[{breakpoint:769,settings:{slidesToShow:1,slidesToScroll:1,arrows:false,dots:true}},{breakpoint:415,settings:{slidesToShow:1,slidesToScroll:1,arrows:false,dots:true}}]});} else if(carousel_item>=4){$(this).slick({infinite:infinite,slidesToShow:carousel_item,slidesToScroll:1,speed:speed,dots:dots,arrows:arrow,autoplay:autoplay,fade:animation,centerMode:true,centerPadding:'0px',useCSS:true,useTransform:true,adaptiveHeight:true,appendArrows:$(this).parents('.slz-carousel-wrapper'),prevArrow:'',nextArrow:'',responsive:[{breakpoint:1025,settings:{slidesToShow:3,slidesToScroll:1,}},{breakpoint:769,settings:{slidesToShow:1,slidesToScroll:1,arrows:false,dots:true}},{breakpoint:415,settings:{slidesToShow:1,slidesToScroll:1,arrows:false,dots:true}}]});}});};$.slz_team_carousel_sc_layout3=function(){if($('.sc_team_carousel .slz-team-wrapper-03').length){$('.sc_team_carousel.layout-3').each(function(){var item=$(this).attr('data-item');var block='.'+item+' ';$(block+".slz-team-slider-03").slick({infinite:true,slidesToShow:1,slidesToScroll:1,speed:600,dots:false,arrows:false,adaptiveHeight:true,asNavFor:block+'.slz-team-nav-03',fade:true,responsive:[{breakpoint:1028,settings:{slidesToShow:1,slidesToScroll:1,}},{breakpoint:800,settings:{slidesToShow:1,slidesToScroll:1,dots:true,}}]});$(block+".slz-team-nav-03").slick({infinite:true,slidesToShow:5,slidesToScroll:1,speed:600,dots:false,arrows:true,focusOnSelect:true,centerPadding:'0px',asNavFor:block+'.slz-team-slider-03',prevArrow:'',nextArrow:'',responsive:[{breakpoint:1025,settings:{slidesToShow:4,}},{breakpoint:768,settings:{slidesToShow:3,arrows:false}},{breakpoint:760,settings:{slidesToShow:1,arrows:false}}]});});}};$.slz_team_carousel_sc_layout6=function(){if($('.sc_team_carousel.layout-6 .slz-carousel-img').length){$('.sc_team_carousel.layout-6').each(function(){var item=$(this).attr('data-item');var block='.'+item+' ';$(block+" .slz-carousel-wrapper-02 .slz-carousel-info").slick({infinite:true,slidesToShow:1,slidesToScroll:1,autoplay:true,autoplaySpeed:2000,speed:600,dots:true,arrows:false,fade:true,asNavFor:block+" .slz-carousel-wrapper-02 .slz-carousel-img"});$(block+" .slz-carousel-wrapper-02 .slz-carousel-img").slick({infinite:true,slidesToShow:1,slidesToScroll:1,speed:600,dots:false,arrows:false,fade:true,asNavFor:block+" .slz-carousel-wrapper-02 .slz-carousel-info"});});}} $(document).ready(function(){jQuery.slz_team_carousel_sc();jQuery.slz_team_carousel_sc_layout3();jQuery.slz_team_carousel_sc_layout6();});});;jQuery(function($){"use strict";var SLZ=window.SLZ||{};$.slz_portfolio_get_history=function(){$('.portfolio-history .slz-select-version').change(function(){var target_link=$(this).find(":selected").attr('data-target');if(target_link==undefined)target_link='';$(this).next('.slz-btn-download').attr("href",$(this).val());if(target_link!=''){$(this).next('.slz-btn-download').attr("target",target_link);}});};$.slz_portfolio_submit_ajax=function(){if($('.slz-btn.button.btn-buy').length>0){$('.slz-btn.button.btn-buy').on('click',function(){var slz_portfolio_post_id=$(this).parents('.slz-form-buy-album').find('.slz_portfolio_post_id').val();var data={"post_id":slz_portfolio_post_id,} $.fn.Form.ajax(['portfolio','ajax_buy_album'],[data],function(res){res=jQuery.parseJSON(res);if(res!=undefined){top.location.href=res.url;}});});}};$(document).ready(function(){jQuery.slz_portfolio_get_history();jQuery.slz_portfolio_submit_ajax();});});;(function($){$.extend(mejs.MepDefaults,{loopText:'Repeat On/Off',shuffleText:'Shuffle On/Off',nextText:'Next Track',prevText:'Previous Track',playlistText:'Show/Hide Playlist'});$.extend(MediaElementPlayer.prototype,{buildloop:function(player,controls,layers,media){var t=this;var loop=$('
    '+''+'
    ').appendTo(controls).click(function(e){player.options.loop=!player.options.loop;$(media).trigger('mep-looptoggle',[player.options.loop]);if(player.options.loop){loop.removeClass('mejs-loop-off').addClass('mejs-loop-on');} else{loop.removeClass('mejs-loop-on').addClass('mejs-loop-off');}});t.loopToggle=t.controls.find('.mejs-loop-button');},loopToggleClick:function(){var t=this;t.loopToggle.trigger('click');},buildshuffle:function(player,controls,layers,media){var t=this;var shuffle=$('
    '+''+'
    ').appendTo(controls).click(function(e){player.options.shuffle=!player.options.shuffle;$(media).trigger('mep-shuffletoggle',[player.options.shuffle]);if(player.options.shuffle){shuffle.removeClass('mejs-shuffle-off').addClass('mejs-shuffle-on');} else{shuffle.removeClass('mejs-shuffle-on').addClass('mejs-shuffle-off');}});t.shuffleToggle=t.controls.find('.mejs-shuffle-button');},shuffleToggleClick:function(){var t=this;t.shuffleToggle.trigger('click');},buildprevtrack:function(player,controls,layers,media){var t=this;var prevTrack=$('
    '+''+'
    ').appendTo(controls).click(function(e){$(media).trigger('mep-playprevtrack');player.playPrevTrack();});t.prevTrack=t.controls.find('.mejs-prevtrack-button');},prevTrackClick:function(){var t=this;t.prevTrack.trigger('click');},buildnexttrack:function(player,controls,layers,media){var t=this;var nextTrack=$('
    '+''+'
    ').appendTo(controls).click(function(e){$(media).trigger('mep-playnexttrack');player.playNextTrack();});t.nextTrack=t.controls.find('.mejs-nexttrack-button');},nextTrackClick:function(){var t=this;t.nextTrack.trigger('click');},buildplaylist:function(player,controls,layers,media){var t=this;var playlistToggle=$('
    '+''+'
    ').appendTo(controls).click(function(e){player.options.playlist=!player.options.playlist;$(media).trigger('mep-playlisttoggle',[player.options.playlist]);if(player.options.playlist){layers.children('.mejs-playlist').show();playlistToggle.removeClass('mejs-show-playlist').addClass('mejs-hide-playlist');} else{layers.children('.mejs-playlist').hide();playlistToggle.removeClass('mejs-hide-playlist').addClass('mejs-show-playlist');}});t.playlistToggle=t.controls.find('.mejs-playlist-button');},playlistToggleClick:function(){var t=this;t.playlistToggle.trigger('click');},buildplaylistfeature:function(player,controls,layers,media){var playlist=$('
    '+'
      '+'
      ').appendTo(layers);if(!player.options.playlist){playlist.hide();} if(player.options.playlistposition=='bottom'){playlist.css('top',player.options.audioHeight+'px');} else{playlist.css('bottom',player.options.audioHeight+'px');} var getTrackName=function(trackUrl){var trackUrlParts=trackUrl.split("/");if(trackUrlParts.length>0){return decodeURIComponent(trackUrlParts[trackUrlParts.length-1]);} else{return'';}};var tracks=[];$('#'+player.id).find('.mejs-mediaelement source').each(function(index,element){if($.trim(this.src)!=''){var track={};track.source=$.trim(this.src);if($.trim(this.title)!=''){track.name=$.trim(this.title);} else{track.name=getTrackName(track.source);} if($.trim($(this).attr('data-duration'))!=''){track.duration=$.trim($(this).attr('data-duration'));} else{track.duration='';} tracks.push(track);}});var allow_download=$(player.node).eq(0).attr('data-allow-download');for(var track in tracks){if(allow_download==='yes'){layers.find('.mejs-playlist > ul').append('
    • '+tracks[track].name+''+tracks[track].duration+'
    • ');}else{layers.find('.mejs-playlist > ul').append('
    • '+tracks[track].name+''+tracks[track].duration+'
    • ');}} layers.find('li:first').addClass('current played');layers.find('.mejs-playlist > ul li span').click(function(e){if(!$(this).parent().hasClass('current')){$(this).parent().addClass('played');player.playTrack($(this).parent());} else{player.play();}});media.addEventListener('ended',function(e){player.playNextTrack();},false);},playNextTrack:function(){var t=this;var tracks=t.layers.find('.mejs-playlist > ul li');var current=tracks.filter('.current');var notplayed=tracks.not('.played');if(notplayed.length<1){current.removeClass('played').siblings().removeClass('played');notplayed=tracks.not('.current');} if(t.options.shuffle){var random=Math.floor(Math.random()*notplayed.length);var nxt=notplayed.eq(random);} else{var nxt=current.next();if(nxt.length<1&&t.options.loop){nxt=current.siblings().first();}} if(nxt.length==1){nxt.addClass('played');t.playTrack(nxt);}},playPrevTrack:function(){var t=this;var tracks=t.layers.find('.mejs-playlist > ul li');var current=tracks.filter('.current');var played=tracks.filter('.played').not('.current');if(played.length<1){current.removeClass('played');played=tracks.not('.current');} if(t.options.shuffle){var random=Math.floor(Math.random()*played.length);var prev=played.eq(random);} else{var prev=current.prev();if(prev.length<1&&t.options.loop){prev=current.siblings().last();}} if(prev.length==1){current.removeClass('played');t.playTrack(prev);}},playTrack:function(track){var t=this;t.pause();t.setSrc(track.attr('data-url'));t.load();t.play();track.addClass('current').siblings().removeClass('current');},playTrackURL:function(url){var t=this;var tracks=t.layers.find('.mejs-playlist > ul > li');var track=tracks.filter('[data-url="'+url+'"]');t.playTrack(track);}});})(mejs.$);;jQuery(function($){"use strict";var SLZ=window.SLZ||{};var AudioContext=window.AudioContext||window.webkitAudioContext;var player,source,audioCtx;SLZ.audio_multiplayer=function(){$('audio.sc-audio-default').mediaelementplayer();$('.sc_audio audio.slz-playlist-container').each(function(){player=new MediaElementPlayer($(this),{audioWidth:'100%',audioHeight:'100%',startVolume:0.5,loop:true,shuffle:true,playlist:true,playlistposition:'bottom',features:['playlistfeature','prevtrack','playpause','nexttrack','loop','shuffle','current','progress','duration','volume'],});$(this).parents('.sc_audio').find('.mejs-controls').insertBefore($(this).parents('.sc_audio').find('.mejs-layers'));$(this).parents('.sc_audio').find('.mejs-playlist ul.mejs').mCustomScrollbar({axis:'y',theme:'dark'});});};SLZ.oscilloscope=function(){if($('.sc_audio canvas.oscilloscope').length>0){var load_volumn=function(_this){audioCtx=new AudioContext();var oscillator=audioCtx.createOscillator();var gainNode=audioCtx.createGain();var analyser=audioCtx.createAnalyser();var distortion=audioCtx.createWaveShaper();var biquadFilter=audioCtx.createBiquadFilter();var convolver=audioCtx.createConvolver();var canvas=_this.find('canvas')[0];var myMediaElement=_this.find('audio.current-audio')[0];source=audioCtx.createMediaElementSource(myMediaElement);source.connect(gainNode);source.connect(analyser);analyser.connect(distortion);distortion.connect(biquadFilter);biquadFilter.connect(convolver);convolver.connect(gainNode);oscillator.connect(gainNode);gainNode.connect(audioCtx.destination);var canvasCtx=canvas.getContext("2d");var intendedWidth=document.querySelector('.oscilloscope-wrapper').clientWidth;canvas.setAttribute('width',intendedWidth);var drawVisual;var canvasWidth=canvas.width;var canvasHeight=canvas.height;analyser.fftSize=256;var bufferLength=analyser.frequencyBinCount;var dataArray=new Uint8Array(bufferLength);canvasCtx.clearRect(0,0,canvasWidth,canvasHeight);function draw(){drawVisual=requestAnimationFrame(draw);analyser.getByteFrequencyData(dataArray);canvasCtx.fillStyle='#f7f7f7';canvasCtx.fillRect(0,0,canvasWidth,canvasHeight);var barWidth=(canvasWidth/bufferLength)*2.5;var barHeight;var x=0;for(var i=0;i0){load_volumn(c_canvas);}}}} SLZ.slz_portfolio_submit_ajax=function(){if($('.slz-project-carousel.layout-2 .slz-carousel .item').length>0){$('.slz-project-carousel.layout-2 .slz-carousel .item').on('click',function(){if(source){source.disconnect();source=null;if(audioCtx){audioCtx.close();audioCtx=null;}} var post_id=$(this).data('post-id');var id_img_hover=$(this).find('.slz-carousel-content').data('id-img-hover');var _this=$(this);var data={"post_id":post_id,"id_img_hover":id_img_hover};$.fn.Form.ajax(['portfolio','ajax_get_content_playlist'],[data],function(res){if(res!=''){_this.parents('.slz-project-carousel').find('.slz-carousel-content').html(res);SLZ.audio_multiplayer() SLZ.oscilloscope();if($('.slz-project-carousel .mejs-container .mejs-controls .mejs-playpause-button').length){$('.slz-project-carousel .mejs-container .mejs-controls .mejs-playpause-button button').each(function(idx,dom){$(dom).on('click',function(){$(dom).parents('.content').prev().find('.block-img').toggleClass('cont-animation');});});$('.slz-project-carousel .mejs-container .mejs-controls .mejs-prevtrack-button, .slz-project-carousel .mejs-container .mejs-controls .mejs-nexttrack-button, .slz-project-carousel .mejs-container .mejs-playlist ul li').each(function(idx,dom){$(dom).on('click',function(){$(dom).parents('.content').prev().find('.block-img').removeClass('cont-animation');$(dom).parents('.content').prev().find('.block-img').addClass('cont-animation');});});}}});});}};$(document).ready(function(){SLZ.audio_multiplayer();SLZ.slz_portfolio_submit_ajax();SLZ.oscilloscope();});$(window).on('load',function(){})});;(function($){"use strict";$.slz_scroll_to=function(element){if(element.length){$('body,html').animate({scrollTop:element.offset().top-100},900);} return false;} $.slz_pagination_with_ajax=function(){$('.slz-shortcode div.pagination_with_ajax a').unbind("click");$('.slz-shortcode div.pagination_with_ajax a').on('click',function(e){e.preventDefault();var $this=$(this);var page=$(this).attr('href');var container=$(this).closest('.slz-shortcode');$.slz_scroll_to(container);$this.closest('.slz-shortcode').append('
      ');$this.closest('.slz-shortcode').find('.mask').fadeIn(500);var block_atts=jQuery.parseJSON($(this).closest('.slz-pagination').find('input.block_atts').val());var data={"page":page,"atts":block_atts,"block":block_atts['shortcode']} $.fn.Form.ajax(['shortcodes','ajax_response'],[data],function(res){$this.closest('.slz-shortcode').find('.mask').fadeOut();$this.closest('.slz-shortcode').replaceWith(res);$.slz_pagination_with_ajax();$.slz_pagination_with_category();$('.'+block_atts['block-class']+' .first_video .carousel-inner > .item:first-child').addClass('active');slz_reload_post_format_js();});});};$.slz_pagination_next_prev=function(){$('.slz-shortcode .pagination_next_prev a').unbind("click");$('.slz-shortcode .pagination_next_prev a').on('click',function(e){e.preventDefault();var $this=$(this);var page=$(this).attr('href');var container=$(this).closest('.slz-shortcode');$.slz_scroll_to(container);$this.closest('.slz-shortcode').append('
      ');$this.closest('.slz-shortcode').find('.mask').fadeIn(500);var block_atts=jQuery.parseJSON($(this).closest('.slz-pagination-02').find('input.block_atts').val());var data={"page":page,"atts":block_atts,"block":block_atts['shortcode']} $.fn.Form.ajax(['shortcodes','ajax_response'],[data],function(res){$this.closest('.slz-shortcode').find('.mask').fadeOut();$this.closest('.slz-shortcode').replaceWith(res);$.slz_pagination_with_ajax();$.slz_pagination_next_prev();$.slz_pagination_with_category();$('.'+block_atts['block-class']+' .first_video .carousel-inner > .item:first-child').addClass('active');});});};$.slz_pagination_with_load_more=function(){$('.slz-shortcode .pagination_with_load_more').unbind("click");$('.slz-shortcode .pagination_with_load_more').on('click',function(e){e.preventDefault();var $this=$(this);$this.closest('.slz-shortcode').append('
      ');$this.closest('.slz-shortcode').find('.mask').fadeIn(500);var block_atts=jQuery.parseJSON($(this).parent().find('input.block_atts').val());var block=block_atts['shortcode'];var data={"atts":block_atts,"block":block} $.fn.Form.ajax(['shortcodes','ajax_response'],[data],function(res){$this.closest('.slz-shortcode').find('.mask').fadeOut();$this.closest('.slz-shortcode').replaceWith(res);$.slz_pagination_with_load_more();$.slz_pagination_with_category();});});};$.slz_pagination_with_category=function(){$('.slz-shortcode ul.block_category_tabs li a').unbind("click");$('.slz-shortcode ul.block_category_tabs li a').on('click',function(e){e.preventDefault();var $this=$(this);if($this.attr('href')=="#")return;$this.closest('.slz-shortcode').append('
      ');$this.closest('.slz-shortcode').find('.slz-loading-mask').fadeIn(500);var block_atts=jQuery.parseJSON($this.closest('.slz-shortcode').find('input.cat_block_atts').val());var block=block_atts['shortcode'];var all_tab;if($this.attr('href')=="")all_tab=1;var data={"atts":block_atts,"block":block,"cat":$this.attr('href'),"all_tab":all_tab};data["page"]=1;$.fn.Form.ajax(['shortcodes','ajax_response_category'],[data],function(res){$this.closest('.slz-shortcode').find('.slz-loading-mask').fadeOut();$this.closest('.slz-shortcode').replaceWith(res);$.slz_pagination_with_category();$.slz_pagination_with_load_more();$.slz_pagination_with_ajax();SLZ_MAIN.init();});});};function slz_reload_post_format_js(){if($('audio').length){$('audio').mediaelementplayer();} if($('.slz-gallery-format .slz-carousel').length){$('.slz-gallery-format .slz-carousel').each(function(e,val){$(this).slick({infinite:true,autoplay:true,slidesToShow:1,slidesToScroll:1,dots:false,arrows:true,appendArrows:$(this).parents('.slz-image-carousel'),prevArrow:'',nextArrow:''});});}} $.slz_sc_postblock_like=function(){$('.block-info .like').click(function(){var like_view=$(this);var postid=like_view.attr('data-postid');var data={'postid':postid,};$.fn.Form.ajax(['shortcodes','ajax_postlike'],[data],function(res){res=JSON.parse(res);like_view.html(res.count);like_view.attr('class',res.class);like_view.attr('title',res.title);});});}})(jQuery);jQuery(document).ready(function(){jQuery.slz_pagination_with_ajax();jQuery.slz_pagination_next_prev();jQuery.slz_pagination_with_load_more();jQuery.slz_pagination_with_category();jQuery.slz_sc_postblock_like();}) ;/*! * Bootstrap v3.3.6 (http://getbootstrap.com) * Copyright 2011-2015 Twitter, Inc. * Licensed under the MIT license */ if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(a){"use strict";var b=a.fn.jquery.split(" ")[0].split(".");if(b[0]<2&&b[1]<9||1==b[0]&&9==b[1]&&b[2]<1||b[0]>2)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 3")}(jQuery),+function(a){"use strict";function b(){var a=document.createElement("bootstrap"),b={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var c in b)if(void 0!==a.style[c])return{end:b[c]};return!1}a.fn.emulateTransitionEnd=function(b){var c=!1,d=this;a(this).one("bsTransitionEnd",function(){c=!0});var e=function(){c||a(d).trigger(a.support.transition.end)};return setTimeout(e,b),this},a(function(){a.support.transition=b(),a.support.transition&&(a.event.special.bsTransitionEnd={bindType:a.support.transition.end,delegateType:a.support.transition.end,handle:function(b){return a(b.target).is(this)?b.handleObj.handler.apply(this,arguments):void 0}})})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var c=a(this),e=c.data("bs.alert");e||c.data("bs.alert",e=new d(this)),"string"==typeof b&&e[b].call(c)})}var c='[data-dismiss="alert"]',d=function(b){a(b).on("click",c,this.close)};d.VERSION="3.3.6",d.TRANSITION_DURATION=150,d.prototype.close=function(b){function c(){g.detach().trigger("closed.bs.alert").remove()}var e=a(this),f=e.attr("data-target");f||(f=e.attr("href"),f=f&&f.replace(/.*(?=#[^\s]*$)/,""));var g=a(f);b&&b.preventDefault(),g.length||(g=e.closest(".alert")),g.trigger(b=a.Event("close.bs.alert")),b.isDefaultPrevented()||(g.removeClass("in"),a.support.transition&&g.hasClass("fade")?g.one("bsTransitionEnd",c).emulateTransitionEnd(d.TRANSITION_DURATION):c())};var e=a.fn.alert;a.fn.alert=b,a.fn.alert.Constructor=d,a.fn.alert.noConflict=function(){return a.fn.alert=e,this},a(document).on("click.bs.alert.data-api",c,d.prototype.close)}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.button"),f="object"==typeof b&&b;e||d.data("bs.button",e=new c(this,f)),"toggle"==b?e.toggle():b&&e.setState(b)})}var c=function(b,d){this.$element=a(b),this.options=a.extend({},c.DEFAULTS,d),this.isLoading=!1};c.VERSION="3.3.6",c.DEFAULTS={loadingText:"loading..."},c.prototype.setState=function(b){var c="disabled",d=this.$element,e=d.is("input")?"val":"html",f=d.data();b+="Text",null==f.resetText&&d.data("resetText",d[e]()),setTimeout(a.proxy(function(){d[e](null==f[b]?this.options[b]:f[b]),"loadingText"==b?(this.isLoading=!0,d.addClass(c).attr(c,c)):this.isLoading&&(this.isLoading=!1,d.removeClass(c).removeAttr(c))},this),0)},c.prototype.toggle=function(){var a=!0,b=this.$element.closest('[data-toggle="buttons"]');if(b.length){var c=this.$element.find("input");"radio"==c.prop("type")?(c.prop("checked")&&(a=!1),b.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==c.prop("type")&&(c.prop("checked")!==this.$element.hasClass("active")&&(a=!1),this.$element.toggleClass("active")),c.prop("checked",this.$element.hasClass("active")),a&&c.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var d=a.fn.button;a.fn.button=b,a.fn.button.Constructor=c,a.fn.button.noConflict=function(){return a.fn.button=d,this},a(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(c){var d=a(c.target);d.hasClass("btn")||(d=d.closest(".btn")),b.call(d,"toggle"),a(c.target).is('input[type="radio"]')||a(c.target).is('input[type="checkbox"]')||c.preventDefault()}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(b){a(b.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(b.type))})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.carousel"),f=a.extend({},c.DEFAULTS,d.data(),"object"==typeof b&&b),g="string"==typeof b?b:f.slide;e||d.data("bs.carousel",e=new c(this,f)),"number"==typeof b?e.to(b):g?e[g]():f.interval&&e.pause().cycle()})}var c=function(b,c){this.$element=a(b),this.$indicators=this.$element.find(".carousel-indicators"),this.options=c,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",a.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",a.proxy(this.pause,this)).on("mouseleave.bs.carousel",a.proxy(this.cycle,this))};c.VERSION="3.3.6",c.TRANSITION_DURATION=600,c.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},c.prototype.keydown=function(a){if(!/input|textarea/i.test(a.target.tagName)){switch(a.which){case 37:this.prev();break;case 39:this.next();break;default:return}a.preventDefault()}},c.prototype.cycle=function(b){return b||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(a.proxy(this.next,this),this.options.interval)),this},c.prototype.getItemIndex=function(a){return this.$items=a.parent().children(".item"),this.$items.index(a||this.$active)},c.prototype.getItemForDirection=function(a,b){var c=this.getItemIndex(b),d="prev"==a&&0===c||"next"==a&&c==this.$items.length-1;if(d&&!this.options.wrap)return b;var e="prev"==a?-1:1,f=(c+e)%this.$items.length;return this.$items.eq(f)},c.prototype.to=function(a){var b=this,c=this.getItemIndex(this.$active=this.$element.find(".item.active"));return a>this.$items.length-1||0>a?void 0:this.sliding?this.$element.one("slid.bs.carousel",function(){b.to(a)}):c==a?this.pause().cycle():this.slide(a>c?"next":"prev",this.$items.eq(a))},c.prototype.pause=function(b){return b||(this.paused=!0),this.$element.find(".next, .prev").length&&a.support.transition&&(this.$element.trigger(a.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},c.prototype.next=function(){return this.sliding?void 0:this.slide("next")},c.prototype.prev=function(){return this.sliding?void 0:this.slide("prev")},c.prototype.slide=function(b,d){var e=this.$element.find(".item.active"),f=d||this.getItemForDirection(b,e),g=this.interval,h="next"==b?"left":"right",i=this;if(f.hasClass("active"))return this.sliding=!1;var j=f[0],k=a.Event("slide.bs.carousel",{relatedTarget:j,direction:h});if(this.$element.trigger(k),!k.isDefaultPrevented()){if(this.sliding=!0,g&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var l=a(this.$indicators.children()[this.getItemIndex(f)]);l&&l.addClass("active")}var m=a.Event("slid.bs.carousel",{relatedTarget:j,direction:h});return a.support.transition&&this.$element.hasClass("slide")?(f.addClass(b),f[0].offsetWidth,e.addClass(h),f.addClass(h),e.one("bsTransitionEnd",function(){f.removeClass([b,h].join(" ")).addClass("active"),e.removeClass(["active",h].join(" ")),i.sliding=!1,setTimeout(function(){i.$element.trigger(m)},0)}).emulateTransitionEnd(c.TRANSITION_DURATION)):(e.removeClass("active"),f.addClass("active"),this.sliding=!1,this.$element.trigger(m)),g&&this.cycle(),this}};var d=a.fn.carousel;a.fn.carousel=b,a.fn.carousel.Constructor=c,a.fn.carousel.noConflict=function(){return a.fn.carousel=d,this};var e=function(c){var d,e=a(this),f=a(e.attr("data-target")||(d=e.attr("href"))&&d.replace(/.*(?=#[^\s]+$)/,""));if(f.hasClass("carousel")){var g=a.extend({},f.data(),e.data()),h=e.attr("data-slide-to");h&&(g.interval=!1),b.call(f,g),h&&f.data("bs.carousel").to(h),c.preventDefault()}};a(document).on("click.bs.carousel.data-api","[data-slide]",e).on("click.bs.carousel.data-api","[data-slide-to]",e),a(window).on("load",function(){a('[data-ride="carousel"]').each(function(){var c=a(this);b.call(c,c.data())})})}(jQuery),+function(a){"use strict";function b(b){var c,d=b.attr("data-target")||(c=b.attr("href"))&&c.replace(/.*(?=#[^\s]+$)/,"");return a(d)}function c(b){return this.each(function(){var c=a(this),e=c.data("bs.collapse"),f=a.extend({},d.DEFAULTS,c.data(),"object"==typeof b&&b);!e&&f.toggle&&/show|hide/.test(b)&&(f.toggle=!1),e||c.data("bs.collapse",e=new d(this,f)),"string"==typeof b&&e[b]()})}var d=function(b,c){this.$element=a(b),this.options=a.extend({},d.DEFAULTS,c),this.$trigger=a('[data-toggle="collapse"][href="#'+b.id+'"],[data-toggle="collapse"][data-target="#'+b.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};d.VERSION="3.3.6",d.TRANSITION_DURATION=350,d.DEFAULTS={toggle:!0},d.prototype.dimension=function(){var a=this.$element.hasClass("width");return a?"width":"height"},d.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var b,e=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(e&&e.length&&(b=e.data("bs.collapse"),b&&b.transitioning))){var f=a.Event("show.bs.collapse");if(this.$element.trigger(f),!f.isDefaultPrevented()){e&&e.length&&(c.call(e,"hide"),b||e.data("bs.collapse",null));var g=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[g](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var h=function(){this.$element.removeClass("collapsing").addClass("collapse in")[g](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!a.support.transition)return h.call(this);var i=a.camelCase(["scroll",g].join("-"));this.$element.one("bsTransitionEnd",a.proxy(h,this)).emulateTransitionEnd(d.TRANSITION_DURATION)[g](this.$element[0][i])}}}},d.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var b=a.Event("hide.bs.collapse");if(this.$element.trigger(b),!b.isDefaultPrevented()){var c=this.dimension();this.$element[c](this.$element[c]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var e=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};return a.support.transition?void this.$element[c](0).one("bsTransitionEnd",a.proxy(e,this)).emulateTransitionEnd(d.TRANSITION_DURATION):e.call(this)}}},d.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},d.prototype.getParent=function(){return a(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(a.proxy(function(c,d){var e=a(d);this.addAriaAndCollapsedClass(b(e),e)},this)).end()},d.prototype.addAriaAndCollapsedClass=function(a,b){var c=a.hasClass("in");a.attr("aria-expanded",c),b.toggleClass("collapsed",!c).attr("aria-expanded",c)};var e=a.fn.collapse;a.fn.collapse=c,a.fn.collapse.Constructor=d,a.fn.collapse.noConflict=function(){return a.fn.collapse=e,this},a(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(d){var e=a(this);e.attr("data-target")||d.preventDefault();var f=b(e),g=f.data("bs.collapse"),h=g?"toggle":e.data();c.call(f,h)})}(jQuery),+function(a){"use strict";function b(b){var c=b.attr("data-target");c||(c=b.attr("href"),c=c&&/#[A-Za-z]/.test(c)&&c.replace(/.*(?=#[^\s]*$)/,""));var d=c&&a(c);return d&&d.length?d:b.parent()}function c(c){c&&3===c.which||(a(e).remove(),a(f).each(function(){var d=a(this),e=b(d),f={relatedTarget:this};e.hasClass("open")&&(c&&"click"==c.type&&/input|textarea/i.test(c.target.tagName)&&a.contains(e[0],c.target)||(e.trigger(c=a.Event("hide.bs.dropdown",f)),c.isDefaultPrevented()||(d.attr("aria-expanded","false"),e.removeClass("open").trigger(a.Event("hidden.bs.dropdown",f)))))}))}function d(b){return this.each(function(){var c=a(this),d=c.data("bs.dropdown");d||c.data("bs.dropdown",d=new g(this)),"string"==typeof b&&d[b].call(c)})}var e=".dropdown-backdrop",f='[data-toggle="dropdown"]',g=function(b){a(b).on("click.bs.dropdown",this.toggle)};g.VERSION="3.3.6",g.prototype.toggle=function(d){var e=a(this);if(!e.is(".disabled, :disabled")){var f=b(e),g=f.hasClass("open");if(c(),!g){"ontouchstart"in document.documentElement&&!f.closest(".navbar-nav").length&&a(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(a(this)).on("click",c);var h={relatedTarget:this};if(f.trigger(d=a.Event("show.bs.dropdown",h)),d.isDefaultPrevented())return;e.trigger("focus").attr("aria-expanded","true"),f.toggleClass("open").trigger(a.Event("shown.bs.dropdown",h))}return!1}},g.prototype.keydown=function(c){if(/(38|40|27|32)/.test(c.which)&&!/input|textarea/i.test(c.target.tagName)){var d=a(this);if(c.preventDefault(),c.stopPropagation(),!d.is(".disabled, :disabled")){var e=b(d),g=e.hasClass("open");if(!g&&27!=c.which||g&&27==c.which)return 27==c.which&&e.find(f).trigger("focus"),d.trigger("click");var h=" li:not(.disabled):visible a",i=e.find(".dropdown-menu"+h);if(i.length){var j=i.index(c.target);38==c.which&&j>0&&j--,40==c.which&&jdocument.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&a?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!a?this.scrollbarWidth:""})},c.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},c.prototype.checkScrollbar=function(){var a=window.innerWidth;if(!a){var b=document.documentElement.getBoundingClientRect();a=b.right-Math.abs(b.left)}this.bodyIsOverflowing=document.body.clientWidth
      ',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},c.prototype.init=function(b,c,d){if(this.enabled=!0,this.type=b,this.$element=a(c),this.options=this.getOptions(d),this.$viewport=this.options.viewport&&a(a.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var e=this.options.trigger.split(" "),f=e.length;f--;){var g=e[f];if("click"==g)this.$element.on("click."+this.type,this.options.selector,a.proxy(this.toggle,this));else if("manual"!=g){var h="hover"==g?"mouseenter":"focusin",i="hover"==g?"mouseleave":"focusout";this.$element.on(h+"."+this.type,this.options.selector,a.proxy(this.enter,this)),this.$element.on(i+"."+this.type,this.options.selector,a.proxy(this.leave,this))}}this.options.selector?this._options=a.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},c.prototype.getDefaults=function(){return c.DEFAULTS},c.prototype.getOptions=function(b){return b=a.extend({},this.getDefaults(),this.$element.data(),b),b.delay&&"number"==typeof b.delay&&(b.delay={show:b.delay,hide:b.delay}),b},c.prototype.getDelegateOptions=function(){var b={},c=this.getDefaults();return this._options&&a.each(this._options,function(a,d){c[a]!=d&&(b[a]=d)}),b},c.prototype.enter=function(b){var c=b instanceof this.constructor?b:a(b.currentTarget).data("bs."+this.type);return c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c)),b instanceof a.Event&&(c.inState["focusin"==b.type?"focus":"hover"]=!0),c.tip().hasClass("in")||"in"==c.hoverState?void(c.hoverState="in"):(clearTimeout(c.timeout),c.hoverState="in",c.options.delay&&c.options.delay.show?void(c.timeout=setTimeout(function(){"in"==c.hoverState&&c.show()},c.options.delay.show)):c.show())},c.prototype.isInStateTrue=function(){for(var a in this.inState)if(this.inState[a])return!0;return!1},c.prototype.leave=function(b){var c=b instanceof this.constructor?b:a(b.currentTarget).data("bs."+this.type);return c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c)),b instanceof a.Event&&(c.inState["focusout"==b.type?"focus":"hover"]=!1),c.isInStateTrue()?void 0:(clearTimeout(c.timeout),c.hoverState="out",c.options.delay&&c.options.delay.hide?void(c.timeout=setTimeout(function(){"out"==c.hoverState&&c.hide()},c.options.delay.hide)):c.hide())},c.prototype.show=function(){var b=a.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(b);var d=a.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(b.isDefaultPrevented()||!d)return;var e=this,f=this.tip(),g=this.getUID(this.type);this.setContent(),f.attr("id",g),this.$element.attr("aria-describedby",g),this.options.animation&&f.addClass("fade");var h="function"==typeof this.options.placement?this.options.placement.call(this,f[0],this.$element[0]):this.options.placement,i=/\s?auto?\s?/i,j=i.test(h);j&&(h=h.replace(i,"")||"top"),f.detach().css({top:0,left:0,display:"block"}).addClass(h).data("bs."+this.type,this),this.options.container?f.appendTo(this.options.container):f.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var k=this.getPosition(),l=f[0].offsetWidth,m=f[0].offsetHeight;if(j){var n=h,o=this.getPosition(this.$viewport);h="bottom"==h&&k.bottom+m>o.bottom?"top":"top"==h&&k.top-mo.width?"left":"left"==h&&k.left-lg.top+g.height&&(e.top=g.top+g.height-i)}else{var j=b.left-f,k=b.left+f+c;jg.right&&(e.left=g.left+g.width-k)}return e},c.prototype.getTitle=function(){var a,b=this.$element,c=this.options;return a=b.attr("data-original-title")||("function"==typeof c.title?c.title.call(b[0]):c.title)},c.prototype.getUID=function(a){do a+=~~(1e6*Math.random());while(document.getElementById(a));return a},c.prototype.tip=function(){if(!this.$tip&&(this.$tip=a(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},c.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},c.prototype.enable=function(){this.enabled=!0},c.prototype.disable=function(){this.enabled=!1},c.prototype.toggleEnabled=function(){this.enabled=!this.enabled},c.prototype.toggle=function(b){var c=this;b&&(c=a(b.currentTarget).data("bs."+this.type),c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c))),b?(c.inState.click=!c.inState.click,c.isInStateTrue()?c.enter(c):c.leave(c)):c.tip().hasClass("in")?c.leave(c):c.enter(c)},c.prototype.destroy=function(){var a=this;clearTimeout(this.timeout),this.hide(function(){a.$element.off("."+a.type).removeData("bs."+a.type),a.$tip&&a.$tip.detach(),a.$tip=null,a.$arrow=null,a.$viewport=null})};var d=a.fn.tooltip;a.fn.tooltip=b,a.fn.tooltip.Constructor=c,a.fn.tooltip.noConflict=function(){return a.fn.tooltip=d,this}}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.popover"),f="object"==typeof b&&b;(e||!/destroy|hide/.test(b))&&(e||d.data("bs.popover",e=new c(this,f)),"string"==typeof b&&e[b]())})}var c=function(a,b){this.init("popover",a,b)};if(!a.fn.tooltip)throw new Error("Popover requires tooltip.js");c.VERSION="3.3.6",c.DEFAULTS=a.extend({},a.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:''}),c.prototype=a.extend({},a.fn.tooltip.Constructor.prototype),c.prototype.constructor=c,c.prototype.getDefaults=function(){return c.DEFAULTS},c.prototype.setContent=function(){var a=this.tip(),b=this.getTitle(),c=this.getContent();a.find(".popover-title")[this.options.html?"html":"text"](b),a.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof c?"html":"append":"text"](c),a.removeClass("fade top bottom left right in"),a.find(".popover-title").html()||a.find(".popover-title").hide()},c.prototype.hasContent=function(){return this.getTitle()||this.getContent()},c.prototype.getContent=function(){var a=this.$element,b=this.options;return a.attr("data-content")||("function"==typeof b.content?b.content.call(a[0]):b.content)},c.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var d=a.fn.popover;a.fn.popover=b,a.fn.popover.Constructor=c,a.fn.popover.noConflict=function(){return a.fn.popover=d,this}}(jQuery),+function(a){"use strict";function b(c,d){this.$body=a(document.body),this.$scrollElement=a(a(c).is(document.body)?window:c),this.options=a.extend({},b.DEFAULTS,d),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",a.proxy(this.process,this)),this.refresh(),this.process()}function c(c){return this.each(function(){var d=a(this),e=d.data("bs.scrollspy"),f="object"==typeof c&&c;e||d.data("bs.scrollspy",e=new b(this,f)),"string"==typeof c&&e[c]()})}b.VERSION="3.3.6",b.DEFAULTS={offset:10},b.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},b.prototype.refresh=function(){var b=this,c="offset",d=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),a.isWindow(this.$scrollElement[0])||(c="position",d=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var b=a(this),e=b.data("target")||b.attr("href"),f=/^#./.test(e)&&a(e);return f&&f.length&&f.is(":visible")&&[[f[c]().top+d,e]]||null}).sort(function(a,b){return a[0]-b[0]}).each(function(){b.offsets.push(this[0]),b.targets.push(this[1])})},b.prototype.process=function(){var a,b=this.$scrollElement.scrollTop()+this.options.offset,c=this.getScrollHeight(),d=this.options.offset+c-this.$scrollElement.height(),e=this.offsets,f=this.targets,g=this.activeTarget;if(this.scrollHeight!=c&&this.refresh(),b>=d)return g!=(a=f[f.length-1])&&this.activate(a);if(g&&b=e[a]&&(void 0===e[a+1]||b .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),b.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),h?(b[0].offsetWidth,b.addClass("in")):b.removeClass("fade"),b.parent(".dropdown-menu").length&&b.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),e&&e()}var g=d.find("> .active"),h=e&&a.support.transition&&(g.length&&g.hasClass("fade")||!!d.find("> .fade").length);g.length&&h?g.one("bsTransitionEnd",f).emulateTransitionEnd(c.TRANSITION_DURATION):f(),g.removeClass("in")};var d=a.fn.tab;a.fn.tab=b,a.fn.tab.Constructor=c,a.fn.tab.noConflict=function(){return a.fn.tab=d,this};var e=function(c){c.preventDefault(),b.call(a(this),"show")};a(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',e).on("click.bs.tab.data-api",'[data-toggle="pill"]',e)}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.affix"),f="object"==typeof b&&b;e||d.data("bs.affix",e=new c(this,f)),"string"==typeof b&&e[b]()})}var c=function(b,d){this.options=a.extend({},c.DEFAULTS,d),this.$target=a(this.options.target).on("scroll.bs.affix.data-api",a.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",a.proxy(this.checkPositionWithEventLoop,this)),this.$element=a(b),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};c.VERSION="3.3.6",c.RESET="affix affix-top affix-bottom",c.DEFAULTS={offset:0,target:window},c.prototype.getState=function(a,b,c,d){var e=this.$target.scrollTop(),f=this.$element.offset(),g=this.$target.height();if(null!=c&&"top"==this.affixed)return c>e?"top":!1;if("bottom"==this.affixed)return null!=c?e+this.unpin<=f.top?!1:"bottom":a-d>=e+g?!1:"bottom";var h=null==this.affixed,i=h?e:f.top,j=h?g:b;return null!=c&&c>=e?"top":null!=d&&i+j>=a-d?"bottom":!1},c.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(c.RESET).addClass("affix");var a=this.$target.scrollTop(),b=this.$element.offset();return this.pinnedOffset=b.top-a},c.prototype.checkPositionWithEventLoop=function(){setTimeout(a.proxy(this.checkPosition,this),1)},c.prototype.checkPosition=function(){if(this.$element.is(":visible")){var b=this.$element.height(),d=this.options.offset,e=d.top,f=d.bottom,g=Math.max(a(document).height(),a(document.body).height());"object"!=typeof d&&(f=e=d),"function"==typeof e&&(e=d.top(this.$element)),"function"==typeof f&&(f=d.bottom(this.$element));var h=this.getState(g,b,e,f);if(this.affixed!=h){null!=this.unpin&&this.$element.css("top","");var i="affix"+(h?"-"+h:""),j=a.Event(i+".bs.affix");if(this.$element.trigger(j),j.isDefaultPrevented())return;this.affixed=h,this.unpin="bottom"==h?this.getPinnedOffset():null,this.$element.removeClass(c.RESET).addClass(i).trigger(i.replace("affix","affixed")+".bs.affix")}"bottom"==h&&this.$element.offset({top:g-b-f})}};var d=a.fn.affix;a.fn.affix=b,a.fn.affix.Constructor=c,a.fn.affix.noConflict=function(){return a.fn.affix=d,this},a(window).on("load",function(){a('[data-spy="affix"]').each(function(){var c=a(this),d=c.data();d.offset=d.offset||{},null!=d.offsetBottom&&(d.offset.bottom=d.offsetBottom),null!=d.offsetTop&&(d.offset.top=d.offsetTop),b.call(c,d)})})}(jQuery); ;/*! * Datepicker for Bootstrap v1.5.1 (https://github.com/eternicode/bootstrap-datepicker) * * Copyright 2012 Stefan Petre * Improvements by Andrew Rowls * Licensed under the Apache License v2.0 (http://www.apache.org/licenses/LICENSE-2.0) */ !function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a("object"==typeof exports?require("jquery"):jQuery)}(function(a,b){function c(){return new Date(Date.UTC.apply(Date,arguments))}function d(){var a=new Date;return c(a.getFullYear(),a.getMonth(),a.getDate())}function e(a,b){return a.getUTCFullYear()===b.getUTCFullYear()&&a.getUTCMonth()===b.getUTCMonth()&&a.getUTCDate()===b.getUTCDate()}function f(a){return function(){return this[a].apply(this,arguments)}}function g(a){return a&&!isNaN(a.getTime())}function h(b,c){function d(a,b){return b.toLowerCase()}var e,f=a(b).data(),g={},h=new RegExp("^"+c.toLowerCase()+"([A-Z])");c=new RegExp("^"+c.toLowerCase());for(var i in f)c.test(i)&&(e=i.replace(h,d),g[e]=f[i]);return g}function i(b){var c={};if(q[b]||(b=b.split("-")[0],q[b])){var d=q[b];return a.each(p,function(a,b){b in d&&(c[b]=d[b])}),c}}var j=function(){var b={get:function(a){return this.slice(a)[0]},contains:function(a){for(var b=a&&a.valueOf(),c=0,d=this.length;d>c;c++)if(this[c].valueOf()===b)return c;return-1},remove:function(a){this.splice(a,1)},replace:function(b){b&&(a.isArray(b)||(b=[b]),this.clear(),this.push.apply(this,b))},clear:function(){this.length=0},copy:function(){var a=new j;return a.replace(this),a}};return function(){var c=[];return c.push.apply(c,arguments),a.extend(c,b),c}}(),k=function(b,c){a(b).data("datepicker",this),this._process_options(c),this.dates=new j,this.viewDate=this.o.defaultViewDate,this.focusDate=null,this.element=a(b),this.isInline=!1,this.isInput=this.element.is("input"),this.component=this.element.hasClass("date")?this.element.find(".add-on, .input-group-addon, .btn"):!1,this.hasInput=this.component&&this.element.find("input").length,this.component&&0===this.component.length&&(this.component=!1),this.picker=a(r.template),this._buildEvents(),this._attachEvents(),this.isInline?this.picker.addClass("datepicker-inline").appendTo(this.element):this.picker.addClass("datepicker-dropdown dropdown-menu"),this.o.rtl&&this.picker.addClass("datepicker-rtl"),this.viewMode=this.o.startView,this.o.calendarWeeks&&this.picker.find("thead .datepicker-title, tfoot .today, tfoot .clear").attr("colspan",function(a,b){return parseInt(b)+1}),this._allow_update=!1,this.setStartDate(this._o.startDate),this.setEndDate(this._o.endDate),this.setDaysOfWeekDisabled(this.o.daysOfWeekDisabled),this.setDaysOfWeekHighlighted(this.o.daysOfWeekHighlighted),this.setDatesDisabled(this.o.datesDisabled),this.fillDow(),this.fillMonths(),this._allow_update=!0,this.update(),this.showMode(),this.isInline&&this.show()};k.prototype={constructor:k,_process_options:function(b){this._o=a.extend({},this._o,b);var e=this.o=a.extend({},this._o),f=e.language;switch(q[f]||(f=f.split("-")[0],q[f]||(f=o.language)),e.language=f,e.startView){case 2:case"decade":e.startView=2;break;case 1:case"year":e.startView=1;break;default:e.startView=0}switch(e.minViewMode){case 1:case"months":e.minViewMode=1;break;case 2:case"years":e.minViewMode=2;break;default:e.minViewMode=0}switch(e.maxViewMode){case 0:case"days":e.maxViewMode=0;break;case 1:case"months":e.maxViewMode=1;break;default:e.maxViewMode=2}e.startView=Math.min(e.startView,e.maxViewMode),e.startView=Math.max(e.startView,e.minViewMode),e.multidate!==!0&&(e.multidate=Number(e.multidate)||!1,e.multidate!==!1&&(e.multidate=Math.max(0,e.multidate))),e.multidateSeparator=String(e.multidateSeparator),e.weekStart%=7,e.weekEnd=(e.weekStart+6)%7;var g=r.parseFormat(e.format);if(e.startDate!==-(1/0)&&(e.startDate?e.startDate instanceof Date?e.startDate=this._local_to_utc(this._zero_time(e.startDate)):e.startDate=r.parseDate(e.startDate,g,e.language):e.startDate=-(1/0)),e.endDate!==1/0&&(e.endDate?e.endDate instanceof Date?e.endDate=this._local_to_utc(this._zero_time(e.endDate)):e.endDate=r.parseDate(e.endDate,g,e.language):e.endDate=1/0),e.daysOfWeekDisabled=e.daysOfWeekDisabled||[],a.isArray(e.daysOfWeekDisabled)||(e.daysOfWeekDisabled=e.daysOfWeekDisabled.split(/[,\s]*/)),e.daysOfWeekDisabled=a.map(e.daysOfWeekDisabled,function(a){return parseInt(a,10)}),e.daysOfWeekHighlighted=e.daysOfWeekHighlighted||[],a.isArray(e.daysOfWeekHighlighted)||(e.daysOfWeekHighlighted=e.daysOfWeekHighlighted.split(/[,\s]*/)),e.daysOfWeekHighlighted=a.map(e.daysOfWeekHighlighted,function(a){return parseInt(a,10)}),e.datesDisabled=e.datesDisabled||[],!a.isArray(e.datesDisabled)){var h=[];h.push(r.parseDate(e.datesDisabled,g,e.language)),e.datesDisabled=h}e.datesDisabled=a.map(e.datesDisabled,function(a){return r.parseDate(a,g,e.language)});var i=String(e.orientation).toLowerCase().split(/\s+/g),j=e.orientation.toLowerCase();if(i=a.grep(i,function(a){return/^auto|left|right|top|bottom$/.test(a)}),e.orientation={x:"auto",y:"auto"},j&&"auto"!==j)if(1===i.length)switch(i[0]){case"top":case"bottom":e.orientation.y=i[0];break;case"left":case"right":e.orientation.x=i[0]}else j=a.grep(i,function(a){return/^left|right$/.test(a)}),e.orientation.x=j[0]||"auto",j=a.grep(i,function(a){return/^top|bottom$/.test(a)}),e.orientation.y=j[0]||"auto";else;if(e.defaultViewDate){var k=e.defaultViewDate.year||(new Date).getFullYear(),l=e.defaultViewDate.month||0,m=e.defaultViewDate.day||1;e.defaultViewDate=c(k,l,m)}else e.defaultViewDate=d()},_events:[],_secondaryEvents:[],_applyEvents:function(a){for(var c,d,e,f=0;ff?(this.picker.addClass("datepicker-orient-right"),n+=m-b):this.picker.addClass("datepicker-orient-left");var p,q=this.o.orientation.y;if("auto"===q&&(p=-g+o-c,q=0>p?"bottom":"top"),this.picker.addClass("datepicker-orient-"+q),"top"===q?o-=c+parseInt(this.picker.css("padding-top")):o+=l,this.o.rtl){var r=f-(n+m);this.picker.css({top:o,right:r,zIndex:j})}else this.picker.css({top:o,left:n,zIndex:j});return this},_allow_update:!0,update:function(){if(!this._allow_update)return this;var b=this.dates.copy(),c=[],d=!1;return arguments.length?(a.each(arguments,a.proxy(function(a,b){b instanceof Date&&(b=this._local_to_utc(b)),c.push(b)},this)),d=!0):(c=this.isInput?this.element.val():this.element.data("date")||this.element.find("input").val(),c=c&&this.o.multidate?c.split(this.o.multidateSeparator):[c],delete this.element.data().date),c=a.map(c,a.proxy(function(a){return r.parseDate(a,this.o.format,this.o.language)},this)),c=a.grep(c,a.proxy(function(a){return!this.dateWithinRange(a)||!a},this),!0),this.dates.replace(c),this.dates.length?this.viewDate=new Date(this.dates.get(-1)):this.viewDatethis.o.endDate?this.viewDate=new Date(this.o.endDate):this.viewDate=this.o.defaultViewDate,d?this.setValue():c.length&&String(b)!==String(this.dates)&&this._trigger("changeDate"),!this.dates.length&&b.length&&this._trigger("clearDate"),this.fill(),this.element.change(),this},fillDow:function(){var a=this.o.weekStart,b="";for(this.o.calendarWeeks&&(this.picker.find(".datepicker-days .datepicker-switch").attr("colspan",function(a,b){return parseInt(b)+1}),b+=' ');a'+q[this.o.language].daysShort[a++%7]+"";b+="",this.picker.find(".datepicker-days thead").append(b)},fillMonths:function(){for(var a="",b=0;12>b;)a+=''+q[this.o.language].monthsShort[b++]+"";this.picker.find(".datepicker-months td").html(a)},setRange:function(b){b&&b.length?this.range=a.map(b,function(a){return a.valueOf()}):delete this.range,this.fill()},getClassNames:function(b){var c=[],d=this.viewDate.getUTCFullYear(),e=this.viewDate.getUTCMonth(),f=new Date;return b.getUTCFullYear()d||b.getUTCFullYear()===d&&b.getUTCMonth()>e)&&c.push("new"),this.focusDate&&b.valueOf()===this.focusDate.valueOf()&&c.push("focused"),this.o.todayHighlight&&b.getUTCFullYear()===f.getFullYear()&&b.getUTCMonth()===f.getMonth()&&b.getUTCDate()===f.getDate()&&c.push("today"),-1!==this.dates.contains(b)&&c.push("active"),(!this.dateWithinRange(b)||this.dateIsDisabled(b))&&c.push("disabled"),-1!==a.inArray(b.getUTCDay(),this.o.daysOfWeekHighlighted)&&c.push("highlighted"),this.range&&(b>this.range[0]&&b"),this.o.calendarWeeks)){var v=new Date(+o+(this.o.weekStart-o.getUTCDay()-7)%7*864e5),w=new Date(Number(v)+(11-v.getUTCDay())%7*864e5),x=new Date(Number(x=c(w.getUTCFullYear(),0,1))+(11-x.getUTCDay())%7*864e5),y=(w-x)/864e5/7+1;u.push(''+y+"")}if(t=this.getClassNames(o),t.push("day"),this.o.beforeShowDay!==a.noop){var z=this.o.beforeShowDay(this._utc_to_local(o));z===b?z={}:"boolean"==typeof z?z={enabled:z}:"string"==typeof z&&(z={classes:z}),z.enabled===!1&&t.push("disabled"),z.classes&&(t=t.concat(z.classes.split(/\s+/))),z.tooltip&&(d=z.tooltip)}t=a.unique(t),u.push('"+o.getUTCDate()+""),d=null,o.getUTCDay()===this.o.weekEnd&&u.push(""),o.setUTCDate(o.getUTCDate()+1)}this.picker.find(".datepicker-days tbody").empty().append(u.join(""));var A=q[this.o.language].monthsTitle||q.en.monthsTitle||"Months",B=this.picker.find(".datepicker-months").find(".datepicker-switch").text(this.o.maxViewMode<2?A:f).end().find("span").removeClass("active");if(a.each(this.dates,function(a,b){b.getUTCFullYear()===f&&B.eq(b.getUTCMonth()).addClass("active")}),(h>f||f>j)&&B.addClass("disabled"),f===h&&B.slice(0,i).addClass("disabled"),f===j&&B.slice(k+1).addClass("disabled"),this.o.beforeShowMonth!==a.noop){var C=this;a.each(B,function(b,c){if(!a(c).hasClass("disabled")){var d=new Date(f,b,1),e=C.o.beforeShowMonth(d);e===!1&&a(c).addClass("disabled")}})}u="",f=10*parseInt(f/10,10);var D=this.picker.find(".datepicker-years").find(".datepicker-switch").text(f+"-"+(f+9)).end().find("td");f-=1;for(var E,F=a.map(this.dates,function(a){return a.getUTCFullYear()}),G=-1;11>G;G++){if(E=["year"],d=null,-1===G?E.push("old"):10===G&&E.push("new"),-1!==a.inArray(f,F)&&E.push("active"),(h>f||f>j)&&E.push("disabled"),this.o.beforeShowYear!==a.noop){var H=this.o.beforeShowYear(new Date(f,0,1));H===b?H={}:"boolean"==typeof H?H={enabled:H}:"string"==typeof H&&(H={classes:H}),H.enabled===!1&&E.push("disabled"),H.classes&&(E=E.concat(H.classes.split(/\s+/))),H.tooltip&&(d=H.tooltip)}u+='"+f+"",f+=1}D.html(u)}},updateNavArrows:function(){if(this._allow_update){var a=new Date(this.viewDate),b=a.getUTCFullYear(),c=a.getUTCMonth();switch(this.viewMode){case 0:this.o.startDate!==-(1/0)&&b<=this.o.startDate.getUTCFullYear()&&c<=this.o.startDate.getUTCMonth()?this.picker.find(".prev").css({visibility:"hidden"}):this.picker.find(".prev").css({visibility:"visible"}),this.o.endDate!==1/0&&b>=this.o.endDate.getUTCFullYear()&&c>=this.o.endDate.getUTCMonth()?this.picker.find(".next").css({visibility:"hidden"}):this.picker.find(".next").css({visibility:"visible"});break;case 1:case 2:this.o.startDate!==-(1/0)&&b<=this.o.startDate.getUTCFullYear()||this.o.maxViewMode<2?this.picker.find(".prev").css({visibility:"hidden"}):this.picker.find(".prev").css({visibility:"visible"}),this.o.endDate!==1/0&&b>=this.o.endDate.getUTCFullYear()||this.o.maxViewMode<2?this.picker.find(".next").css({visibility:"hidden"}):this.picker.find(".next").css({visibility:"visible"})}}},click:function(b){b.preventDefault(),b.stopPropagation();var e,f,g,h=a(b.target).closest("span, td, th");if(1===h.length)switch(h[0].nodeName.toLowerCase()){case"th":switch(h[0].className){case"datepicker-switch":this.showMode(1);break;case"prev":case"next":var i=r.modes[this.viewMode].navStep*("prev"===h[0].className?-1:1);switch(this.viewMode){case 0:this.viewDate=this.moveMonth(this.viewDate,i),this._trigger("changeMonth",this.viewDate);break;case 1:case 2:this.viewDate=this.moveYear(this.viewDate,i),1===this.viewMode&&this._trigger("changeYear",this.viewDate)}this.fill();break;case"today":this.showMode(-2);var j="linked"===this.o.todayBtn?null:"view";this._setDate(d(),j);break;case"clear":this.clearDates()}break;case"span":h.hasClass("disabled")||(this.viewDate.setUTCDate(1),h.hasClass("month")?(g=1,f=h.parent().find("span").index(h),e=this.viewDate.getUTCFullYear(),this.viewDate.setUTCMonth(f),this._trigger("changeMonth",this.viewDate),1===this.o.minViewMode?(this._setDate(c(e,f,g)),this.showMode()):this.showMode(-1)):(g=1,f=0,e=parseInt(h.text(),10)||0,this.viewDate.setUTCFullYear(e),this._trigger("changeYear",this.viewDate),2===this.o.minViewMode&&this._setDate(c(e,f,g)),this.showMode(-1)),this.fill());break;case"td":h.hasClass("day")&&!h.hasClass("disabled")&&(g=parseInt(h.text(),10)||1,e=this.viewDate.getUTCFullYear(),f=this.viewDate.getUTCMonth(),h.hasClass("old")?0===f?(f=11,e-=1):f-=1:h.hasClass("new")&&(11===f?(f=0,e+=1):f+=1),this._setDate(c(e,f,g)))}this.picker.is(":visible")&&this._focused_from&&a(this._focused_from).focus(),delete this._focused_from},_toggle_multidate:function(a){var b=this.dates.contains(a);if(a||this.dates.clear(),-1!==b?(this.o.multidate===!0||this.o.multidate>1||this.o.toggleActive)&&this.dates.remove(b):this.o.multidate===!1?(this.dates.clear(),this.dates.push(a)):this.dates.push(a),"number"==typeof this.o.multidate)for(;this.dates.length>this.o.multidate;)this.dates.remove(0)},_setDate:function(a,b){b&&"date"!==b||this._toggle_multidate(a&&new Date(a)),b&&"view"!==b||(this.viewDate=a&&new Date(a)),this.fill(),this.setValue(),b&&"view"===b||this._trigger("changeDate");var c;this.isInput?c=this.element:this.component&&(c=this.element.find("input")),c&&c.change(),!this.o.autoclose||b&&"date"!==b||this.hide()},moveDay:function(a,b){var c=new Date(a);return c.setUTCDate(a.getUTCDate()+b),c},moveWeek:function(a,b){return this.moveDay(a,7*b)},moveMonth:function(a,b){if(!g(a))return this.o.defaultViewDate;if(!b)return a;var c,d,e=new Date(a.valueOf()),f=e.getUTCDate(),h=e.getUTCMonth(),i=Math.abs(b);if(b=b>0?1:-1,1===i)d=-1===b?function(){return e.getUTCMonth()===h}:function(){return e.getUTCMonth()!==c},c=h+b,e.setUTCMonth(c),(0>c||c>11)&&(c=(c+12)%12);else{for(var j=0;i>j;j++)e=this.moveMonth(e,b);c=e.getUTCMonth(),e.setUTCDate(f),d=function(){return c!==e.getUTCMonth()}}for(;d();)e.setUTCDate(--f),e.setUTCMonth(c);return e},moveYear:function(a,b){return this.moveMonth(a,12*b)},moveAvailableDate:function(a,b,c){do{if(a=this[c](a,b),!this.dateWithinRange(a))return!1;c="moveDay"}while(this.dateIsDisabled(a));return a},weekOfDateIsDisabled:function(b){return-1!==a.inArray(b.getUTCDay(),this.o.daysOfWeekDisabled)},dateIsDisabled:function(b){return this.weekOfDateIsDisabled(b)||a.grep(this.o.datesDisabled,function(a){return e(b,a)}).length>0},dateWithinRange:function(a){return a>=this.o.startDate&&a<=this.o.endDate},keydown:function(a){if(!this.picker.is(":visible"))return void((40===a.keyCode||27===a.keyCode)&&(this.show(),a.stopPropagation()));var b,c,d=!1,e=this.focusDate||this.viewDate;switch(a.keyCode){case 27:this.focusDate?(this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill()):this.hide(),a.preventDefault(),a.stopPropagation();break;case 37:case 38:case 39:case 40:if(!this.o.keyboardNavigation||7===this.o.daysOfWeekDisabled.length)break;b=37===a.keyCode||38===a.keyCode?-1:1,a.ctrlKey?(c=this.moveAvailableDate(e,b,"moveYear"),c&&this._trigger("changeYear",this.viewDate)):a.shiftKey?(c=this.moveAvailableDate(e,b,"moveMonth"),c&&this._trigger("changeMonth",this.viewDate)):37===a.keyCode||39===a.keyCode?c=this.moveAvailableDate(e,b,"moveDay"):this.weekOfDateIsDisabled(e)||(c=this.moveAvailableDate(e,b,"moveWeek")),c&&(this.focusDate=this.viewDate=c,this.setValue(),this.fill(),a.preventDefault());break;case 13:if(!this.o.forceParse)break;e=this.focusDate||this.dates.get(-1)||this.viewDate,this.o.keyboardNavigation&&(this._toggle_multidate(e),d=!0),this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.setValue(),this.fill(),this.picker.is(":visible")&&(a.preventDefault(),a.stopPropagation(),this.o.autoclose&&this.hide());break;case 9:this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill(),this.hide()}if(d){this.dates.length?this._trigger("changeDate"):this._trigger("clearDate");var f;this.isInput?f=this.element:this.component&&(f=this.element.find("input")),f&&f.change()}},showMode:function(a){a&&(this.viewMode=Math.max(this.o.minViewMode,Math.min(this.o.maxViewMode,this.viewMode+a))),this.picker.children("div").hide().filter(".datepicker-"+r.modes[this.viewMode].clsName).show(),this.updateNavArrows()}};var l=function(b,c){a(b).data("datepicker",this),this.element=a(b),this.inputs=a.map(c.inputs,function(a){return a.jquery?a[0]:a}),delete c.inputs,n.call(a(this.inputs),c).on("changeDate",a.proxy(this.dateUpdated,this)),this.pickers=a.map(this.inputs,function(b){return a(b).data("datepicker")}),this.updateDates()};l.prototype={updateDates:function(){this.dates=a.map(this.pickers,function(a){return a.getUTCDate()}),this.updateRanges()},updateRanges:function(){var b=a.map(this.dates,function(a){return a.valueOf()});a.each(this.pickers,function(a,c){c.setRange(b)})},dateUpdated:function(b){if(!this.updating){this.updating=!0;var c=a(b.target).data("datepicker");if("undefined"!=typeof c){var d=c.getUTCDate(),e=a.inArray(b.target,this.inputs),f=e-1,g=e+1,h=this.inputs.length;if(-1!==e){if(a.each(this.pickers,function(a,b){b.getUTCDate()||b.setUTCDate(d)}),d=0&&dthis.dates[g])for(;h>g&&d>this.dates[g];)this.pickers[g++].setUTCDate(d);this.updateDates(),delete this.updating}}}},remove:function(){a.map(this.pickers,function(a){a.remove()}),delete this.element.data().datepicker}};var m=a.fn.datepicker,n=function(c){var d=Array.apply(null,arguments);d.shift();var e;if(this.each(function(){var b=a(this),f=b.data("datepicker"),g="object"==typeof c&&c;if(!f){var j=h(this,"date"),m=a.extend({},o,j,g),n=i(m.language),p=a.extend({},o,n,j,g);b.hasClass("input-daterange")||p.inputs?(a.extend(p,{inputs:p.inputs||b.find("input").toArray()}),f=new l(this,p)):f=new k(this,p),b.data("datepicker",f)}"string"==typeof c&&"function"==typeof f[c]&&(e=f[c].apply(f,d))}),e===b||e instanceof k||e instanceof l)return this;if(this.length>1)throw new Error("Using only allowed for the collection of a single element ("+c+" function)");return e};a.fn.datepicker=n;var o=a.fn.datepicker.defaults={autoclose:!1,beforeShowDay:a.noop,beforeShowMonth:a.noop,beforeShowYear:a.noop,calendarWeeks:!1,clearBtn:!1,toggleActive:!1,daysOfWeekDisabled:[],daysOfWeekHighlighted:[],datesDisabled:[],endDate:1/0,forceParse:!0,format:"mm/dd/yyyy",keyboardNavigation:!0,language:"en",minViewMode:0,maxViewMode:2,multidate:!1,multidateSeparator:",",orientation:"auto",rtl:!1,startDate:-(1/0),startView:0,todayBtn:!1,todayHighlight:!1,weekStart:0,disableTouchKeyboard:!1,enableOnReadonly:!0,showOnFocus:!0,zIndexOffset:10,container:"body",immediateUpdates:!1,title:""},p=a.fn.datepicker.locale_opts=["format","rtl","weekStart"];a.fn.datepicker.Constructor=k;var q=a.fn.datepicker.dates={en:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],today:"Today",clear:"Clear",titleFormat:"MM yyyy"}},r={modes:[{clsName:"days",navFnc:"Month",navStep:1},{clsName:"months",navFnc:"FullYear",navStep:1},{clsName:"years",navFnc:"FullYear",navStep:10}],isLeapYear:function(a){return a%4===0&&a%100!==0||a%400===0},getDaysInMonth:function(a,b){return[31,r.isLeapYear(a)?29:28,31,30,31,30,31,31,30,31,30,31][b]},validParts:/dd?|DD?|mm?|MM?|yy(?:yy)?/g,nonpunctuation:/[^ -\/:-@\[\u3400-\u9fff-`{-~\t\n\r]+/g,parseFormat:function(a){if("function"==typeof a.toValue&&"function"==typeof a.toDisplay)return a;var b=a.replace(this.validParts,"\x00").split("\x00"),c=a.match(this.validParts);if(!b||!b.length||!c||0===c.length)throw new Error("Invalid date format.");return{separators:b,parts:c}},parseDate:function(e,f,g){function h(){var a=this.slice(0,o[l].length),b=o[l].slice(0,a.length);return a.toLowerCase()===b.toLowerCase()}if(!e)return b;if(e instanceof Date)return e;if("string"==typeof f&&(f=r.parseFormat(f)),f.toValue)return f.toValue(e,f,g);var i,j,l,m,n=/([\-+]\d+)([dmwy])/,o=e.match(/([\-+]\d+)([dmwy])/g),p={d:"moveDay",m:"moveMonth",w:"moveWeek",y:"moveYear"};if(/^[\-+]\d+[dmwy]([\s,]+[\-+]\d+[dmwy])*$/.test(e)){for(e=new Date,l=0;lb;)b+=12;for(b%=12,a.setUTCMonth(b);a.getUTCMonth()!==b;)a.setUTCDate(a.getUTCDate()-1);return a},d:function(a,b){return a.setUTCDate(b)}};w.M=w.MM=w.mm=w.m,w.dd=w.d,e=d();var x=f.parts.slice();if(o.length!==x.length&&(x=a(x).filter(function(b,c){return-1!==a.inArray(c,v)}).toArray()),o.length===x.length){var y;for(l=0,y=x.length;y>l;l++){if(s=parseInt(o[l],10),i=x[l],isNaN(s))switch(i){case"MM":t=a(q[g].months).filter(h),s=a.inArray(t[0],q[g].months)+1;break;case"M":t=a(q[g].monthsShort).filter(h),s=a.inArray(t[0],q[g].monthsShort)+1}u[i]=s}var z,A;for(l=0;l=g;g++)f.length&&b.push(f.shift()),b.push(e[c.parts[g]]);return b.join("")},headTemplate:'«»',contTemplate:'',footTemplate:''};r.template='
      '+r.headTemplate+""+r.footTemplate+'
      '+r.headTemplate+r.contTemplate+r.footTemplate+'
      '+r.headTemplate+r.contTemplate+r.footTemplate+"
      ",a.fn.datepicker.DPGlobal=r,a.fn.datepicker.noConflict=function(){return a.fn.datepicker=m,this},a.fn.datepicker.version="1.5.1",a(document).on("focus.datepicker.data-api click.datepicker.data-api",'[data-provide="datepicker"]',function(b){var c=a(this);c.data("datepicker")||(b.preventDefault(),n.call(c,"show"))}),a(function(){n.call(a('[data-provide="datepicker-inline"]'))})}); ;jQuery(function($){"use strict";var solala=window.solala||{};solala.mainFunction=function(){if($('.back-to-top').length){var scrollTrigger=100;var backToTop=function(){var scrollTop=$(window).scrollTop();if(scrollTop>scrollTrigger){$('.back-to-top').addClass('show');}else{$('.back-to-top').removeClass('show');}};backToTop();$(window).on('scroll',function(){backToTop();});$('.back-to-top').on('click',function(e){e.preventDefault();$('html,body').animate({scrollTop:0},700);});} var isIE=/*@cc_on!@*/false||!!document.documentMode;if(isIE){$('head').append('');} if($('.slz-project-carousel .mejs-container .mejs-controls .mejs-playpause-button').length){$('.slz-project-carousel .mejs-container .mejs-controls .mejs-playpause-button button').each(function(idx,dom){$(dom).on('click',function(){$(dom).parents('.content').prev().find('.block-img').toggleClass('cont-animation');});});$('.slz-project-carousel .mejs-container .mejs-controls .mejs-prevtrack-button, .slz-project-carousel .mejs-container .mejs-controls .mejs-nexttrack-button, .slz-project-carousel .mejs-container .mejs-playlist ul li').each(function(idx,dom){$(dom).on('click',function(){$(dom).parents('.content').prev().find('.block-img').removeClass('cont-animation');$(dom).parents('.content').prev().find('.block-img').addClass('cont-animation');});});} var stopScrolling=false;$('.slz-carousel-syncing .fancybox-thumb').each(function(){$(this).on('click',function(){setTimeout(function(){if($('.fancybox-overlay').length){stopScrolling=true;} $('.fancybox-close').on('click',function(){stopScrolling=false;});$('.fancybox-overlay').on('click',function(){stopScrolling=false;});$(document).keyup(function(e){if(e.keyCode==27){stopScrolling=false;}});},300);});});$('html').on('scroll mousewheel touchmove',function(e){if(stopScrolling){e.preventDefault();e.stopPropagation();return false;} return true;});} solala.headerFunction=function(){$('.slz-header-main .slz-menu-icon').on('click',function(e){e.preventDefault();$(this).parents('.slz-header-wrapper').find('.slz-menu-wrapper').addClass('open');$('.subheader-mask').addClass('active');});$('.slz-sub-header .slz-menu-icon').on('click',function(e){e.preventDefault();$(this).parents('.slz-header-wrapper').find('.slz-menu-wrapper').removeClass('open');$('.subheader-mask').removeClass('active');});$('.slz-button-search').on('click',function(){$(this).toggleClass('active');$(this).next().toggleClass('hide');$(this).next().toggleClass('active');$('.nav-search input').focus();});$('body').on('click',function(event){if($('.slz-button-search').has(event.target).length==0&&!$('.slz-button-search').is(event.target)&&$('.nav-search').has(event.target).length==0&&!$('.nav-search').is(event.target)){if($('.slz-main-menu .nav-wrapper').hasClass('hide')==false){$('.slz-main-menu .nav-wrapper').toggleClass('hide');$('.slz-button-search').toggleClass('active');$('.nav-search-full').toggleClass('active');}}});if($('header .slz-header-main').length&&$('header .slz-header-main').hasClass('slz-header-sticky')){var header_position=$('header .slz-header-main').offset(),lastScroll=50;var window_height=$(window).height();$(window).on('scroll load',function(event){var st=$(this).scrollTop();if(st>header_position.top){if($(".slz-header-table").length) $('header .slz-header-table').addClass("slz-header-fixed");else $('header .slz-header-main').addClass("slz-header-fixed");} else{if($(".slz-header-table").length) $('header .slz-header-table').removeClass("slz-header-fixed");else $('header .slz-header-main').removeClass("slz-header-fixed");} if(st>lastScroll&&st>header_position.top){if($(".slz-header-table").length) $('header .slz-header-table').addClass("slz-hidden-menu");else $('header .slz-header-main').addClass("slz-hidden-menu");} else if(st<=lastScroll){if($(".slz-header-table").length) $('header .slz-header-table').removeClass("slz-hidden-menu");else $('header .slz-header-main').removeClass("slz-hidden-menu");} lastScroll=st;if(st==0){if($(".slz-header-table").length) $('header .slz-header-table').removeClass("slz-header-fixed");else $('header .slz-header-main').removeClass("slz-header-fixed");}});} if($("#wpadminbar").length){$(".slz-header-main").addClass("slz-wpadminbar");} $('.slz-hamburger-menu').on('click',function(){$('.slz-hamburger-menu .bar').toggleClass('animate');$(".slz-main-menu-mobile").toggleClass('slz-open-menu-mobile');$(".slz-header-main").toggleClass('slz-unhidden-menu');$('.menu-item-has-children').removeClass('mb-dropdown-open');$('.menu-item-has-mega-menu').removeClass('mb-dropdown-open');}) $('.slz-main-menu-mobile .slz-menu-wrapper .menu-item-has-children > .icon-dropdown-mobile').on('click',function(){if($(this).closest('.menu-item-has-children').hasClass('mb-dropdown-open')===true){$(this).closest('.menu-item-has-children').removeClass('mb-dropdown-open');} else{$(this).closest('.menu-item-has-children').addClass('mb-dropdown-open');}});if($('.slz-sub-header').length>0){if($('.btn-contact-toggle').length>0){$('.btn-contact-toggle').on('click',function(e){e.preventDefault();$(this).parents('.slz-sub-header').find('.contact').addClass('open');$(this).parents('.slz-sub-header').find('.menu-body').addClass('inactive');$(this).parents('.slz-sub-header').find('.action-top').addClass('inactive');$(this).parents('.slz-sub-header').find('.app-post').addClass('inactive');});$('.slz-close-contact').on('click',function(e){e.preventDefault();$(this).parents('.slz-sub-header').find('.contact').removeClass('open');$(this).parents('.slz-sub-header').find('.menu-body').removeClass('inactive');$(this).parents('.slz-sub-header').find('.action-top').removeClass('inactive');$(this).parents('.slz-sub-header').find('.app-post').removeClass('inactive');});} $('.subheader-mask').click(function(event){$(this).removeClass('active');$('.contact').removeClass('open');$('.menu-body').removeClass('inactive');$('.action-top').removeClass('inactive');$('.app-post').removeClass('inactive');$('.slz-menu-wrapper').removeClass('open');});} $('body').on('click',function(event){if($('.slz-hamburger-menu').has(event.target).length===0&&!$('.slz-hamburger-menu').is(event.target)&&$('.slz-main-menu-mobile').has(event.target).length===0&&!$('.slz-main-menu-mobile').is(event.target)){if($('.slz-main-menu-mobile').hasClass('slz-open-menu-mobile')){$('.slz-hamburger-menu .bar').toggleClass('animate');$('.slz-main-menu-mobile').toggleClass('slz-open-menu-mobile');$('.slz-header-main').toggleClass('slz-unhidden-menu');$('.menu-item-has-children').removeClass('mb-dropdown-open');}}});$(function(){$('.slz-header-wrapper a[href*="#"]:not([href="#"])').click(function(){if(location.pathname.replace(/^\//,'')==this.pathname.replace(/^\//,'')&&location.hostname==this.hostname){var target=$(this.hash);target=target.length?target:$('[name='+this.hash.slice(1)+']');if(target.length){$('html, body').animate({scrollTop:target.offset().top},1000);return false;}}});});} $(document).ready(function(){solala.mainFunction();solala.headerFunction();});});;jQuery(function($){"use strict";var solala=window.solala||{};solala.comment=function(){$('.stars-rating span a').on('click',function(e){e.preventDefault();$('.stars-rating span').find('a').removeClass('active');$(this).addClass('active');$(this).closest('.comment-form-rating').find('input[name="rating"]').val($(this).html());});$('.comment-form').find('.comment-col1').wrapAll("
      ");$("#submit",$("#commentform")).click(function(){var emailRegex=/^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$/;var urlPattern=/(http|ftp|https):\/\/[\w-]+(\.[\w-]+)+([\w.,@?^=%&:\/~+#-]*[\w@?^=%&\/~+#-])?/;var isError=false;var focusEle=null;$("#commentform .input-error-msg").addClass('hide');$("#commentform input, #commentform textarea").removeClass('input-error');if($("#author").length){if($("#comment").val().trim()==''){$('#comment-err-required').removeClass('hide');$("#comment").addClass('input-error');isError=true;focusEle="#comment";} else if($("#author").val().trim()==''){$('#author-err-required').removeClass('hide');$("#author").addClass('input-error');isError=true;focusEle="#author";} else if($("#email").val().trim()==''){$('#email-err-required').removeClass('hide');$("#email").addClass('input-error');isError=true;focusEle="#email";} else if(!$("#email").val().match(emailRegex)){$('#email-err-valid').removeClass('hide');$("#email").addClass('input-error');isError=true;focusEle="#email";}}else{if($("#comment").val().trim()==''){$('#comment-err-required').removeClass('hide');$("#comment").addClass('input-error');isError=true;focusEle="#comment";}} if(isError){$(focusEle).focus();return false;} return true;});$('.entry-comment .comment-field').each(function(){if($(this).val()){$(this).addClass('edited');}})};$(document).ready(function(){solala.comment();});});;jQuery(function($){"use strict";var SLZ=window.SLZ||{};SLZ.slz_event_carousel=function(){if($('.event-slider .slz-carousel').length>0){$(".event-slider .slz-carousel").each(function(){var carousel_item=iParse($(this).attr('data-slidesToShow'));var autoplay=$(this).attr('data-autoplay')==='yes';var dots=$(this).attr('data-isdot')==='yes';var arrows=$(this).attr('data-isarrow')==='yes';var infinite=$(this).attr('data-infinite')==='yes';var speed=iParse($(this).attr('data-speed'));var responsive=null;if(carousel_item==2){responsive=[{breakpoint:481,settings:{slidesToShow:1,slidesToScroll:1,}}];} if(carousel_item==3){responsive=[{breakpoint:769,settings:{slidesToShow:2,slidesToScroll:2,}},{breakpoint:481,settings:{slidesToShow:1,slidesToScroll:1,}}];} if(carousel_item==4){responsive=[{breakpoint:1025,settings:{slidesToShow:3,slidesToScroll:3,}},{breakpoint:769,settings:{slidesToShow:2,slidesToScroll:2,}},{breakpoint:481,settings:{slidesToShow:1,slidesToScroll:1,}}];} $(this).slick({infinite:infinite,slidesToShow:carousel_item,slidesToScroll:1,speed:speed,dots:dots,arrows:arrows,appendArrows:$(this).parents('.slz-carousel-wrapper'),prevArrow:'',nextArrow:'',responsive:responsive});});}};$(document).ready(function(){SLZ.slz_event_carousel();});function iParse(string){var res=parseInt(string);return isNaN(res)?0:res;}});