// source --> https://dolmenarquitectos.com/wp-content/plugins/be-gdpr/public/js/be-gdpr-public.js?ver=1.1.6 
(function ($) {
	'use strict';

	/**
	 * All of the code for your public-facing JavaScript source
	 * should reside in this file.
	 *
	 * Note: It has been assumed you will write jQuery code here, so the
	 * $ function reference has been prepared for usage within the scope
	 * of this function.
	 *
	 * This enables you to define handlers, for when the DOM is ready:
	 *
	 * $(function() {
	 *
	 * });
	 *
	 * When the window is loaded:
	 *
	 * $( window ).load(function() {
	 *
	 * });
	 *
	 * ...and/or other possibilities.
	 *
	 * Ideally, it is not considered best practise to attach more than a
	 * single DOM-ready or window-load handler for a particular page.
	 * Although scripts in the WordPress core, Plugins and Themes may be
	 * practising this, we should strive to set a better example in our own work.
	 */

	$(function () {

		function be_gdpr_trigger_magnific_popup() {
			if ($('.mfp-popup').length > 0) {
				$('.mfp-popup').magnificPopup({
					type: 'inline',
					midClick: true,
					closeBtnInside: true,
				});
			}
		}

		window.be_gdpr_magnific_popup_retrigger = be_gdpr_trigger_magnific_popup;
		be_gdpr_trigger_magnific_popup();

		function readCookie(name) {
			var nameEQ = name + "=";
			var ca = document.cookie.split(';');
			for (var i = 0; i < ca.length; i++) {
				var c = ca[i];
				while (c.charAt(0) == ' ') c = c.substring(1, c.length);
				if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length);
			}
			return null;
		}
		function createCookie(name, value) {

			var date = new Date();
			date.setTime(date.getTime() + (365 * 24 * 60 * 60 * 1000)); //a year
			var expires = "; expires=" + date.toGMTString();

			document.cookie = name + "=" + value + expires + "; path=/";
		}
		var checkBoxes = $('.be-gdpr-switch-input');
		var privacyPref = readCookie('be_gdpr_privacy') || [];
		for (var count in checkBoxes) {
			if (checkBoxes.hasOwnProperty(count)) {
				var singleCheckBox = checkBoxes[count];
				if (privacyPref.indexOf(singleCheckBox.value) >= 0) {
					singleCheckBox.setAttribute('checked', true);
				}
			}
		}

		function hasConcern(concern) {
			if (window.hasOwnProperty('beGdprConcerns')) {
				if (!window.beGdprConcerns.hasOwnProperty(concern)) {
					return true;
				}
			}
			if (privacyPref.indexOf(concern) >= 0) {
				return true;
			}
			return false;
		}

		window.triggerBeGdpr = function triggerBeGdpr (){

			var itemsWithConcern = $('.be-gdpr-consent-required');
			itemsWithConcern.each(function (i, e) {
				var gdprData = $(this).attr('data-gdpr-atts');

				if (isJSON(gdprData)) {
					gdprData = JSON.parse(gdprData);

					var concern = gdprData.concern,
						classesToRemove = [],
						attsToRemove = [],
						classesToAdd = [],
						attsToAdd = {};
					if( !hasConcern( concern ) ) {
						
						if (typeof gdprData.remove === 'object') {
							classesToRemove = gdprData.remove.class ? gdprData.remove.class : [];
							attsToRemove = gdprData.remove.atts ? gdprData.remove.atts : [];
						}

						if (typeof gdprData.add === 'object') {
							classesToAdd = gdprData.add.class ? gdprData.add.class : [];
							attsToAdd = gdprData.add.atts ? gdprData.add.atts : {};
						}

						for (var item in classesToRemove) {
							$(this).removeClass(classesToRemove[item]);
						}

						for (var item in attsToRemove) {
							$(this).removeAttr(attsToRemove[item]);
						}

						for (var item in classesToAdd) {
							$(this).addClass(classesToAdd[item]);
						}

						for (var item in attsToAdd) {
							$(this).attr( item, attsToAdd[item] );
						}
						be_gdpr_trigger_magnific_popup();
					}
				}
			});

			var itemsToReplaceContent = $('.be-gdpr-consent-replace');
			itemsToReplaceContent.each(function (i, e) {
				var concern = $(this).data('gdpr-concern'),
					replaceTarget = $(this).data('gdpr-replace');

				if (hasConcern(concern)) {
					$(this).siblings('.be-gdpr-consent-message ').remove();
				} else {
					if( replaceTarget === 'parent' ){
						var tempChildren = $(this).children(),
							gdprWrapper = $(this).siblings('.be-gdpr-consent-message ');
					
						$(this).wrap( gdprWrapper );
						$(this).parent().siblings('.be-gdpr-consent-message ').remove();
						tempChildren.unwrap();
					}else{
						var replacingContent = $(this).siblings('.be-gdpr-consent-message ');
						replacingContent.css( 'display', 'block' );
						if( replacingContent.length ){
							$(this).replaceWith(replacingContent);
						}
					}

				}
			});

		}

		triggerBeGdpr();

		function gdprSaveBtnClick(e) {
			var tempCookies = []
			var checkBoxes = $(e.target).closest('.be-gdpr-modal').find('.be-gdpr-switch-input');
			for (var count in checkBoxes) {
				var singleCheckBox = checkBoxes[count];
				if (singleCheckBox.checked) {
					tempCookies.push(singleCheckBox.value)
				}
			}
			createCookie('be_gdpr_privacy', "", -1);
			createCookie('be_gdpr_privacy', JSON.stringify(tempCookies));
			window.location.reload();
		}
		window.gdprSaveBtnClick = gdprSaveBtnClick;

		if (readCookie('be_gdpr_cookie_accept') !== '1') {
			$('.be-gdpr-cookie-notice-bar').css('bottom', '0');
		}

		$('.be-gdpr-cookie-notice-button').click(function () {
			$('.be-gdpr-cookie-notice-bar').css('bottom', '-100%');
			createCookie('be_gdpr_cookie_accept', '1');
		});

		function isJSON(str) {
			if (!str || typeof str !== 'string') return false;
			str = str.replace(/\\./g, '@').replace(/"[^"\\\n\r]*"/g, '');
			return (/^[,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t]*$/).test(str);
		}
	});
})(jQuery);
// source --> https://dolmenarquitectos.com/wp-content/plugins/tatsu/includes/typehub/public/js/webfont.min.js?ver=6.9.4 
!function(){function e(t,n,i){return t.call.apply(t.bind,arguments)}function o(n,i,t){if(!n)throw Error();if(2<arguments.length){var e=Array.prototype.slice.call(arguments,2);return function(){var t=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(t,e),n.apply(i,t)}}return function(){return n.apply(i,arguments)}}function p(t,n,i){return(p=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?e:o).apply(null,arguments)}var r=Date.now||function(){return+new Date};function n(t,n){this.a=t,this.m=n||t,this.c=this.m.document}var c=!!window.FontFace;function h(t,n,i,e){if(n=t.c.createElement(n),i)for(var o in i)i.hasOwnProperty(o)&&("style"==o?n.style.cssText=i[o]:n.setAttribute(o,i[o]));return e&&n.appendChild(t.c.createTextNode(e)),n}function f(t,n,i){(t=(t=t.c.getElementsByTagName(n)[0])||document.documentElement).insertBefore(i,t.lastChild)}function i(t){t.parentNode&&t.parentNode.removeChild(t)}function d(t,n,i){n=n||[],i=i||[];for(var e=t.className.split(/\s+/),o=0;o<n.length;o+=1){for(var a=!1,s=0;s<e.length;s+=1)if(n[o]===e[s]){a=!0;break}a||e.push(n[o])}for(n=[],o=0;o<e.length;o+=1){for(a=!1,s=0;s<i.length;s+=1)if(e[o]===i[s]){a=!0;break}a||n.push(e[o])}t.className=n.join(" ").replace(/\s+/g," ").replace(/^\s+|\s+$/,"")}function a(t,n){for(var i=t.className.split(/\s+/),e=0,o=i.length;e<o;e++)if(i[e]==n)return!0;return!1}function l(t){if("string"==typeof t.f)return t.f;var n=t.m.location.protocol;return"about:"==n&&(n=t.a.location.protocol),"https:"==n?"https:":"http:"}function u(t,n,i){function e(){s&&o&&(s(a),s=null)}n=h(t,"link",{rel:"stylesheet",href:n,media:"all"});var o=!1,a=null,s=i||null;c?(n.onload=function(){o=!0,e()},n.onerror=function(){o=!0,a=Error("Stylesheet failed to load"),e()}):setTimeout(function(){o=!0,e()},0),f(t,"head",n)}function g(t,n,i,e){var o=t.c.getElementsByTagName("head")[0];if(o){var a=h(t,"script",{src:n}),s=!1;return a.onload=a.onreadystatechange=function(){s||this.readyState&&"loaded"!=this.readyState&&"complete"!=this.readyState||(s=!0,i&&i(null),a.onload=a.onreadystatechange=null,"HEAD"==a.parentNode.tagName&&o.removeChild(a))},o.appendChild(a),setTimeout(function(){s||(s=!0,i&&i(Error("Script load timeout")))},e||5e3),a}return null}function v(){this.a=0,this.c=null}function m(t){return t.a++,function(){t.a--,s(t)}}function w(t,n){t.c=n,s(t)}function s(t){0==t.a&&t.c&&(t.c(),t.c=null)}function y(t){this.a=t||"-"}function b(t,n){this.c=t,this.f=4,this.a="n";n=(n||"n4").match(/^([nio])([1-9])$/i);n&&(this.a=n[1],this.f=parseInt(n[2],10))}function j(t){var n=[];t=t.split(/,\s*/);for(var i=0;i<t.length;i++){var e=t[i].replace(/['"]/g,"");-1!=e.indexOf(" ")||/^\d/.test(e)?n.push("'"+e+"'"):n.push(e)}return n.join(",")}function x(t){return t.a+t.f}function _(t){var n="normal";return"o"===t.a?n="oblique":"i"===t.a&&(n="italic"),n}function k(t,n){this.c=t,this.f=t.m.document.documentElement,this.h=n,this.a=new y("-"),this.j=!1!==n.events,this.g=!1!==n.classes}function T(t){var n,i,e;t.g&&(n=a(t.f,t.a.c("wf","active")),i=[],e=[t.a.c("wf","loading")],n||i.push(t.a.c("wf","inactive")),d(t.f,i,e)),S(t,"inactive")}function S(t,n,i){t.j&&t.h[n]&&(i?t.h[n](i.c,x(i)):t.h[n]())}function C(){this.c={}}function N(t,n){this.c=t,this.f=n,this.a=h(this.c,"span",{"aria-hidden":"true"},this.f)}function A(t){f(t.c,"body",t.a)}function E(t){return"display:block;position:absolute;top:-9999px;left:-9999px;font-size:300px;width:auto;height:auto;line-height:normal;margin:0;padding:0;font-variant:normal;white-space:nowrap;font-family:"+j(t.c)+";font-style:"+_(t)+";font-weight:"+t.f+"00;"}function W(t,n,i,e,o,a){this.g=t,this.j=n,this.a=e,this.c=i,this.f=o||3e3,this.h=a||void 0}function F(t,n,i,e,o,a,s){this.v=t,this.B=n,this.c=i,this.a=e,this.s=s||"BESbswy",this.f={},this.w=o||3e3,this.u=a||null,this.o=this.j=this.h=this.g=null,this.g=new N(this.c,this.s),this.h=new N(this.c,this.s),this.j=new N(this.c,this.s),this.o=new N(this.c,this.s),t=E(t=new b(this.a.c+",serif",x(this.a))),this.g.a.style.cssText=t,t=E(t=new b(this.a.c+",sans-serif",x(this.a))),this.h.a.style.cssText=t,t=E(t=new b("serif",x(this.a))),this.j.a.style.cssText=t,t=E(t=new b("sans-serif",x(this.a))),this.o.a.style.cssText=t,A(this.g),A(this.h),A(this.j),A(this.o)}y.prototype.c=function(t){for(var n=[],i=0;i<arguments.length;i++)n.push(arguments[i].replace(/[\W_]+/g,"").toLowerCase());return n.join(this.a)},W.prototype.start=function(){var o=this.c.m.document,a=this,s=r(),t=new Promise(function(i,e){!function n(){var t;r()-s>=a.f?e():o.fonts.load(_(t=a.a)+" "+t.f+"00 300px "+j(t.c),a.h).then(function(t){1<=t.length?i():setTimeout(n,25)},function(){e()})}()}),n=new Promise(function(t,n){setTimeout(n,a.f)});Promise.race([n,t]).then(function(){a.g(a.a)},function(){a.j(a.a)})};var I={D:"serif",C:"sans-serif"},P=null;function B(){var t;return null===P&&(t=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent),P=!!t&&(parseInt(t[1],10)<536||536===parseInt(t[1],10)&&parseInt(t[2],10)<=11)),P}function O(t,n,i){for(var e in I)if(I.hasOwnProperty(e)&&n===t.f[I[e]]&&i===t.f[I[e]])return!0;return!1}function L(t){var n,i=t.g.a.offsetWidth,e=t.h.a.offsetWidth;(n=i===t.f.serif&&e===t.f["sans-serif"])||(n=B()&&O(t,i,e)),n?r()-t.A>=t.w?B()&&O(t,i,e)&&(null===t.u||t.u.hasOwnProperty(t.a.c))?D(t,t.v):D(t,t.B):setTimeout(p(function(){L(this)},t),50):D(t,t.v)}function D(t,n){setTimeout(p(function(){i(this.g.a),i(this.h.a),i(this.j.a),i(this.o.a),n(this.a)},t),0)}function $(t,n,i){this.c=t,this.a=n,this.f=0,this.o=this.j=!1,this.s=i}F.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.o.a.offsetWidth,this.A=r(),L(this)};var q=null;function H(t){0==--t.f&&t.j&&(t.o?((t=t.a).g&&d(t.f,[t.a.c("wf","active")],[t.a.c("wf","loading"),t.a.c("wf","inactive")]),S(t,"active")):T(t.a))}function t(t){this.j=t,this.a=new C,this.h=0,this.f=this.g=!0}function M(t,n){this.c=t,this.a=n}function z(t,n){this.c=t,this.a=n}function G(t,n,i){this.c=t||n+"//fonts.googleapis.com/css",this.a=[],this.f=[],this.g=i||""}function K(t){this.f=t,this.a=[],this.c={}}$.prototype.g=function(t){var n=this.a;n.g&&d(n.f,[n.a.c("wf",t.c,x(t).toString(),"active")],[n.a.c("wf",t.c,x(t).toString(),"loading"),n.a.c("wf",t.c,x(t).toString(),"inactive")]),S(n,"fontactive",t),this.o=!0,H(this)},$.prototype.h=function(t){var n,i,e,o=this.a;o.g&&(n=a(o.f,o.a.c("wf",t.c,x(t).toString(),"active")),i=[],e=[o.a.c("wf",t.c,x(t).toString(),"loading")],n||i.push(o.a.c("wf",t.c,x(t).toString(),"inactive")),d(o.f,i,e)),S(o,"fontinactive",t),H(this)},t.prototype.load=function(t){this.c=new n(this.j,t.context||this.j),this.g=!1!==t.events,this.f=!1!==t.classes,function(e,t,n){var i=[],o=n.timeout;!function(t){t.g&&d(t.f,[t.a.c("wf","loading")]),S(t,"loading")}(t);var i=function(t,n,i){var e,o,a=[];for(e in n)!n.hasOwnProperty(e)||(o=t.c[e])&&a.push(o(n[e],i));return a}(e.a,n,e.c),a=new $(e.c,t,o);for(e.h=i.length,t=0,n=i.length;t<n;t++)i[t].load(function(t,n,i){var c,h,f,l,u;c=a,h=t,f=n,l=i,u=0==--(i=e).h,(i.f||i.g)&&setTimeout(function(){var t=l||null,n=f||{};if(0===h.length&&u)T(c.a);else{c.f+=h.length,u&&(c.j=u);for(var i=[],e=0;e<h.length;e++){var o=h[e],a=n[o.c],s=c.a,r=o;s.g&&d(s.f,[s.a.c("wf",r.c,x(r).toString(),"loading")]),S(s,"fontloading",r),(s=null)===q&&(q=!!window.FontFace&&(!(r=/Gecko.*Firefox\/(\d+)/.exec(window.navigator.userAgent))||42<parseInt(r[1],10))),s=q?new W(p(c.g,c),p(c.h,c),c.c,o,c.s,a):new F(p(c.g,c),p(c.h,c),c.c,o,c.s,t,a),i.push(s)}for(e=0;e<i.length;e++)i[e].start()}},0)})}(this,new k(this.c,t),t)},M.prototype.load=function(s){var r,t,n,i=this,c=i.a.projectId,e=i.a.version;c?(r=i.c.m,g(this.c,(t=c,n=e,l((e=i).c)+"//"+(e=(e.a.api||"fast.fonts.net/jsapi").replace(/^.*http(s?):(\/\/)?/,""))+"/"+t+".js"+(n?"?v="+n:"")),function(t){t?s([]):(r["__MonotypeConfiguration__"+c]=function(){return i.a},function t(){if(r["__mti_fntLst"+c]){var n,i=r["__mti_fntLst"+c](),e=[];if(i)for(var o=0;o<i.length;o++){var a=i[o].fontfamily;null!=i[o].fontStyle&&null!=i[o].fontWeight?(n=i[o].fontStyle+i[o].fontWeight,e.push(new b(a,n))):e.push(new b(a))}s(e)}else setTimeout(function(){t()},50)}())}).id="__MonotypeAPIScript__"+c):s([])},z.prototype.load=function(t){for(var n=this.a.urls||[],i=this.a.families||[],e=this.a.testStrings||{},o=new v,a=0,s=n.length;a<s;a++)u(this.c,n[a],m(o));var r=[];for(a=0,s=i.length;a<s;a++)if((n=i[a].split(":"))[1])for(var c=n[1].split(","),h=0;h<c.length;h+=1)r.push(new b(n[0],c[h]));else r.push(new b(n[0]));w(o,function(){t(r,e)})};var R={latin:"BESbswy","latin-ext":"çöüğş",cyrillic:"йяЖ",greek:"αβΣ",khmer:"កខគ",Hanuman:"កខគ"},U={thin:"1",extralight:"2","extra-light":"2",ultralight:"2","ultra-light":"2",light:"3",regular:"4",book:"4",medium:"5","semi-bold":"6",semibold:"6","demi-bold":"6",demibold:"6",bold:"7","extra-bold":"8",extrabold:"8","ultra-bold":"8",ultrabold:"8",black:"9",heavy:"9",l:"3",r:"4",b:"7"},J={i:"i",italic:"i",n:"n",normal:"n"},Q=/^(thin|(?:(?:extra|ultra)-?)?light|regular|book|medium|(?:(?:semi|demi|extra|ultra)-?)?bold|black|heavy|l|r|b|[1-9]00)?(n|i|normal|italic)?$/;function V(t,n){this.c=t,this.a=n}var X={Arimo:!0,Cousine:!0,Tinos:!0};function Y(t,n){this.c=t,this.a=n}function Z(t,n){this.c=t,this.f=n,this.a=[]}V.prototype.load=function(t){var n=new v,i=this.c,e=new G(this.a.api,l(i),this.a.text),o=this.a.families;!function(t,n){for(var i=n.length,e=0;e<i;e++){var o=n[e].split(":");3==o.length&&t.f.push(o.pop());var a="";2==o.length&&""!=o[1]&&(a=":"),t.a.push(o.join(a))}}(e,o);var a=new K(o);!function(t){for(var n=t.f.length,i=0;i<n;i++){var e=t.f[i].split(":"),o=e[0].replace(/\+/g," "),a=["n4"];if(2<=e.length){var s,r,c=e[1],h=[];if(c)for(var f=(c=c.split(",")).length,l=0;l<f;l++)(r=!(r=c[l]).match(/^[\w-]+$/)||null==(s=Q.exec(r.toLowerCase()))?"":[r=null==(r=s[2])||""==r?"n":J[r],s=null==(s=s[1])||""==s?"4":U[s]||(isNaN(s)?"4":s.substr(0,1))].join(""))&&h.push(r);0<h.length&&(a=h),3==e.length&&(h=[],0<(e=(e=e[2])?e.split(","):h).length&&(e=R[e[0]])&&(t.c[o]=e))}for(t.c[o]||(e=R[o])&&(t.c[o]=e),e=0;e<a.length;e+=1)t.a.push(new b(o,a[e]))}}(a),u(i,function(t){if(0==t.a.length)throw Error("No fonts to load!");if(-1!=t.c.indexOf("kit="))return t.c;for(var n=t.a.length,i=[],e=0;e<n;e++)i.push(t.a[e].replace(/ /g,"+"));return n=t.c+"?family="+i.join("%7C"),0<t.f.length&&(n+="&subset="+t.f.join(",")),0<t.g.length&&(n+="&text="+encodeURIComponent(t.g)),n}(e),m(n)),w(n,function(){t(a.a,a.c,X)})},Y.prototype.load=function(s){var t=this.a.id,r=this.c.m;t?g(this.c,(this.a.api||"https://use.typekit.net")+"/"+t+".js",function(t){if(t)s([]);else if(r.Typekit&&r.Typekit.config&&r.Typekit.config.fn){t=r.Typekit.config.fn;for(var n=[],i=0;i<t.length;i+=2)for(var e=t[i],o=t[i+1],a=0;a<o.length;a++)n.push(new b(e,o[a]));try{r.Typekit.load({events:!1,classes:!1,async:!0})}catch(t){}s(n)}},2e3):s([])},Z.prototype.load=function(c){var t=this.f.id,n=this.c.m,h=this;t?(n.__webfontfontdeckmodule__||(n.__webfontfontdeckmodule__={}),n.__webfontfontdeckmodule__[t]=function(t,n){for(var i,e,o,a=0,s=n.fonts.length;a<s;++a){var r=n.fonts[a];h.a.push(new b(r.name,(i="font-weight:"+r.weight+";font-style:"+r.style,r=o=e=void 0,e=4,o="n",r=null,i&&((r=i.match(/(normal|oblique|italic)/i))&&r[1]&&(o=r[1].substr(0,1).toLowerCase()),(r=i.match(/([1-9]00|normal|bold)/i))&&r[1]&&(/bold/i.test(r[1])?e=7:/[1-9]00/.test(r[1])&&(e=parseInt(r[1].substr(0,1),10)))),o+e)))}c(h.a)},g(this.c,l(this.c)+(this.f.api||"//f.fontdeck.com/s/css/js/")+((n=this.c).m.location.hostname||n.a.location.hostname)+"/"+t+".js",function(t){t&&c([])})):c([])};var tt=new t(window);tt.a.c.custom=function(t,n){return new z(n,t)},tt.a.c.fontdeck=function(t,n){return new Z(n,t)},tt.a.c.monotype=function(t,n){return new M(n,t)},tt.a.c.typekit=function(t,n){return new Y(n,t)},tt.a.c.google=function(t,n){return new V(n,t)};var nt={load:p(tt.load,tt)};"function"==typeof define&&define.amd?define(function(){return nt}):"undefined"!=typeof module&&module.exports?module.exports=nt:(window.WebFont=nt,window.WebFontConfig&&tt.load(window.WebFontConfig))}();
// source --> https://dolmenarquitectos.com/wp-content/themes/oshin/js/vendor/modernizr.min.js?ver=6.9.4 
window.Modernizr=function(e,t,n){function r(e){m.cssText=e}function o(e,t){return typeof e===t}function i(e,t){return!!~(""+e).indexOf(t)}function a(e,t){for(var r in e){var o=e[r];if(!i(o,"-")&&m[o]!==n)return"pfx"!=t||o}return!1}function c(e,t,r){var i=e.charAt(0).toUpperCase()+e.slice(1),c=(e+" "+b.join(i+" ")+i).split(" ");return o(t,"string")||o(t,"undefined")?a(c,t):(c=(e+" "+E.join(i+" ")+i).split(" "),function(e,t,r){for(var i in e){var a=t[e[i]];if(a!==n)return!1===r?e[i]:o(a,"function")?a.bind(r||t):a}return!1}(c,t,r))}var s,l,u={},f=t.documentElement,d="modernizr",p=t.createElement(d),m=p.style,h=t.createElement("input"),g=":)",v={}.toString,y=" -webkit- -moz- -o- -ms- ".split(" "),b="Webkit Moz O ms".split(" "),E="Webkit Moz O ms".toLowerCase().split(" "),w="http://www.w3.org/2000/svg",x={},S={},C={},k=[],T=k.slice,j=function(e,n,r,o){var i,a,c,s,l=t.createElement("div"),u=t.body,p=u||t.createElement("body");if(parseInt(r,10))for(;r--;)c=t.createElement("div"),c.id=o?o[r]:d+(r+1),l.appendChild(c);return i=["&#173;",'<style id="s',d,'">',e,"</style>"].join(""),l.id=d,(u?l:p).innerHTML+=i,p.appendChild(l),u||(p.style.background="",p.style.overflow="hidden",s=f.style.overflow,f.style.overflow="hidden",f.appendChild(p)),a=n(l,e),u?l.parentNode.removeChild(l):(p.parentNode.removeChild(p),f.style.overflow=s),!!a},N=function(){var e={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return function(r,i){i=i||t.createElement(e[r]||"div");var a=(r="on"+r)in i;return a||(i.setAttribute||(i=t.createElement("div")),i.setAttribute&&i.removeAttribute&&(i.setAttribute(r,""),a=o(i[r],"function"),o(i[r],"undefined")||(i[r]=n),i.removeAttribute(r))),i=null,a}}(),M={}.hasOwnProperty;l=o(M,"undefined")||o(M.call,"undefined")?function(e,t){return t in e&&o(e.constructor.prototype[t],"undefined")}:function(e,t){return M.call(e,t)},Function.prototype.bind||(Function.prototype.bind=function(e){var t=this;if("function"!=typeof t)throw new TypeError;var n=T.call(arguments,1),r=function(){if(this instanceof r){var o=function(){};o.prototype=t.prototype;var i=new o,a=t.apply(i,n.concat(T.call(arguments)));return Object(a)===a?a:i}return t.apply(e,n.concat(T.call(arguments)))};return r}),x.flexbox=function(){return c("flexWrap")},x.canvas=function(){var e=t.createElement("canvas");return!!e.getContext&&!!e.getContext("2d")},x.canvastext=function(){return!!u.canvas&&!!o(t.createElement("canvas").getContext("2d").fillText,"function")},x.webgl=function(){return!!e.WebGLRenderingContext},x.touch=function(){var n;return"ontouchstart"in e||e.DocumentTouch&&t instanceof DocumentTouch?n=!0:j(["@media (",y.join("touch-enabled),("),d,")","{#modernizr{top:9px;position:absolute}}"].join(""),function(e){n=9===e.offsetTop}),n},x.geolocation=function(){return"geolocation"in navigator},x.postmessage=function(){return!!e.postMessage},x.websqldatabase=function(){return!!e.openDatabase},x.indexedDB=function(){return!!c("indexedDB",e)},x.hashchange=function(){return N("hashchange",e)&&(t.documentMode===n||t.documentMode>7)},x.history=function(){return!!e.history&&!!history.pushState},x.draganddrop=function(){var e=t.createElement("div");return"draggable"in e||"ondragstart"in e&&"ondrop"in e},x.websockets=function(){return"WebSocket"in e||"MozWebSocket"in e},x.rgba=function(){return r("background-color:rgba(150,255,150,.5)"),i(m.backgroundColor,"rgba")},x.hsla=function(){return r("background-color:hsla(120,40%,100%,.5)"),i(m.backgroundColor,"rgba")||i(m.backgroundColor,"hsla")},x.multiplebgs=function(){return r("background:url(https://),url(https://),red url(https://)"),/(url\s*\(.*?){3}/.test(m.background)},x.backgroundsize=function(){return c("backgroundSize")},x.borderimage=function(){return c("borderImage")},x.borderradius=function(){return c("borderRadius")},x.boxshadow=function(){return c("boxShadow")},x.textshadow=function(){return""===t.createElement("div").style.textShadow},x.opacity=function(){return function(e,t){r(y.join(e+";")+(t||""))}("opacity:.55"),/^0.55$/.test(m.opacity)},x.cssanimations=function(){return c("animationName")},x.csscolumns=function(){return c("columnCount")},x.cssgradients=function(){var e="background-image:";return r((e+"-webkit- ".split(" ").join("gradient(linear,left top,right bottom,from(#9f9),to(white));"+e)+y.join("linear-gradient(left top,#9f9, white);"+e)).slice(0,-e.length)),i(m.backgroundImage,"gradient")},x.cssreflections=function(){return c("boxReflect")},x.csstransforms=function(){return!!c("transform")},x.csstransforms3d=function(){var e=!!c("perspective");return e&&"webkitPerspective"in f.style&&j("@media (transform-3d),(-webkit-transform-3d){#modernizr{left:9px;position:absolute;height:3px;}}",function(t,n){e=9===t.offsetLeft&&3===t.offsetHeight}),e},x.csstransitions=function(){return c("transition")},x.fontface=function(){var e;return j('@font-face {font-family:"font";src:url("https://")}',function(n,r){var o=t.getElementById("smodernizr"),i=o.sheet||o.styleSheet,a=i?i.cssRules&&i.cssRules[0]?i.cssRules[0].cssText:i.cssText||"":"";e=/src/i.test(a)&&0===a.indexOf(r.split(" ")[0])}),e},x.generatedcontent=function(){var e;return j(["#",d,"{font:0/0 a}#",d,':after{content:"',g,'";visibility:hidden;font:3px/1 a}'].join(""),function(t){e=t.offsetHeight>=3}),e},x.video=function(){var e=t.createElement("video"),n=!1;try{(n=!!e.canPlayType)&&(n=new Boolean(n),n.ogg=e.canPlayType('video/ogg; codecs="theora"').replace(/^no$/,""),n.h264=e.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,""),n.webm=e.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,""))}catch(e){}return n},x.audio=function(){var e=t.createElement("audio"),n=!1;try{(n=!!e.canPlayType)&&(n=new Boolean(n),n.ogg=e.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),n.mp3=e.canPlayType("audio/mpeg;").replace(/^no$/,""),n.wav=e.canPlayType('audio/wav; codecs="1"').replace(/^no$/,""),n.m4a=(e.canPlayType("audio/x-m4a;")||e.canPlayType("audio/aac;")).replace(/^no$/,""))}catch(e){}return n},x.localstorage=function(){try{return localStorage.setItem(d,d),localStorage.removeItem(d),!0}catch(e){return!1}},x.sessionstorage=function(){try{return sessionStorage.setItem(d,d),sessionStorage.removeItem(d),!0}catch(e){return!1}},x.webworkers=function(){return!!e.Worker},x.applicationcache=function(){return!!e.applicationCache},x.svg=function(){return!!t.createElementNS&&!!t.createElementNS(w,"svg").createSVGRect},x.inlinesvg=function(){var e=t.createElement("div");return e.innerHTML="<svg/>",(e.firstChild&&e.firstChild.namespaceURI)==w},x.smil=function(){return!!t.createElementNS&&/SVGAnimate/.test(v.call(t.createElementNS(w,"animate")))},x.svgclippaths=function(){return!!t.createElementNS&&/SVGClipPath/.test(v.call(t.createElementNS(w,"clipPath")))};for(var P in x)l(x,P)&&(s=P.toLowerCase(),u[s]=x[P](),k.push((u[s]?"":"no-")+s));return u.input||(u.input=function(n){for(var r=0,o=n.length;r<o;r++)C[n[r]]=n[r]in h;return C.list&&(C.list=!!t.createElement("datalist")&&!!e.HTMLDataListElement),C}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" ")),u.inputtypes=function(e){for(var r,o,i,a=0,c=e.length;a<c;a++)h.setAttribute("type",o=e[a]),(r="text"!==h.type)&&(h.value=g,h.style.cssText="position:absolute;visibility:hidden;",/^range$/.test(o)&&h.style.WebkitAppearance!==n?(f.appendChild(h),i=t.defaultView,r=i.getComputedStyle&&"textfield"!==i.getComputedStyle(h,null).WebkitAppearance&&0!==h.offsetHeight,f.removeChild(h)):/^(search|tel)$/.test(o)||(r=/^(url|email)$/.test(o)?h.checkValidity&&!1===h.checkValidity():h.value!=g)),S[e[a]]=!!r;return S}("search tel url email datetime date month week time datetime-local number range color".split(" "))),u.addTest=function(e,t){if("object"==typeof e)for(var r in e)l(e,r)&&u.addTest(r,e[r]);else{if(e=e.toLowerCase(),u[e]!==n)return u;t="function"==typeof t?t():t,f.className+=" "+(t?"":"no-")+e,u[e]=t}return u},r(""),p=h=null,function(e,t){function n(){var e=m.elements;return"string"==typeof e?e.split(" "):e}function r(e){var t=p[e[f]];return t||(t={},d++,e[f]=d,p[d]=t),t}function o(e,n,o){if(n||(n=t),c)return n.createElement(e);o||(o=r(n));var i;return(i=o.cache[e]?o.cache[e].cloneNode():u.test(e)?(o.cache[e]=o.createElem(e)).cloneNode():o.createElem(e)).canHaveChildren&&!l.test(e)?o.frag.appendChild(i):i}function i(e){e||(e=t);var i=r(e);return m.shivCSS&&!a&&!i.hasCSS&&(i.hasCSS=!!function(e,t){var n=e.createElement("p"),r=e.getElementsByTagName("head")[0]||e.documentElement;return n.innerHTML="x<style>"+t+"</style>",r.insertBefore(n.lastChild,r.firstChild)}(e,"article,aside,figcaption,figure,footer,header,hgroup,nav,section{display:block}mark{background:#FF0;color:#000}")),c||function(e,t){t.cache||(t.cache={},t.createElem=e.createElement,t.createFrag=e.createDocumentFragment,t.frag=t.createFrag()),e.createElement=function(n){return m.shivMethods?o(n,e,t):t.createElem(n)},e.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+n().join().replace(/\w+/g,function(e){return t.createElem(e),t.frag.createElement(e),'c("'+e+'")'})+");return n}")(m,t.frag)}(e,i),e}var a,c,s=e.html5||{},l=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,u=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,f="_html5shiv",d=0,p={};!function(){try{var e=t.createElement("a");e.innerHTML="<xyz></xyz>",a="hidden"in e,c=1==e.childNodes.length||function(){t.createElement("a");var e=t.createDocumentFragment();return void 0===e.cloneNode||void 0===e.createDocumentFragment||void 0===e.createElement}()}catch(e){a=!0,c=!0}}();var m={elements:s.elements||"abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video",shivCSS:!1!==s.shivCSS,supportsUnknownElements:c,shivMethods:!1!==s.shivMethods,type:"default",shivDocument:i,createElement:o,createDocumentFragment:function(e,o){if(e||(e=t),c)return e.createDocumentFragment();for(var i=(o=o||r(e)).frag.cloneNode(),a=0,s=n(),l=s.length;a<l;a++)i.createElement(s[a]);return i}};e.html5=m,i(t)}(this,t),u._version="2.6.2",u._prefixes=y,u._domPrefixes=E,u._cssomPrefixes=b,u.mq=function(t){var n=e.matchMedia||e.msMatchMedia;if(n)return n(t).matches;var r;return j("@media "+t+" { #"+d+" { position: absolute; } }",function(t){r="absolute"==(e.getComputedStyle?getComputedStyle(t,null):t.currentStyle).position}),r},u.hasEvent=N,u.testProp=function(e){return a([e])},u.testAllProps=c,u.testStyles=j,u.prefixed=function(e,t,n){return t?c(e,t,n):c(e,"pfx")},f.className=f.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+" js "+k.join(" "),u}(this,this.document),function(e,t,n){function r(e){return"[object Function]"==h.call(e)}function o(e){return"string"==typeof e}function i(){}function a(e){return!e||"loaded"==e||"complete"==e||"uninitialized"==e}function c(){var e=g.shift();v=1,e?e.t?p(function(){("c"==e.t?f.injectCss:f.injectJs)(e.s,0,e.a,e.x,e.e,1)},0):(e(),c()):v=0}function s(e,n,r,i,s){return v=0,n=n||"j",o(e)?function(e,n,r,o,i,s,l){function u(t){if(!h&&a(d.readyState)&&(w.r=h=1,!v&&c(),d.onload=d.onreadystatechange=null,t)){"img"!=e&&p(function(){E.removeChild(d)},50);for(var r in k[n])k[n].hasOwnProperty(r)&&k[n][r].onload()}}l=l||f.errorTimeout;var d=t.createElement(e),h=0,y=0,w={t:r,s:n,e:i,a:s,x:l};1===k[n]&&(y=1,k[n]=[]),"object"==e?d.data=n:(d.src=n,d.type=e),d.width=d.height="0",d.onerror=d.onload=d.onreadystatechange=function(){u.call(this,y)},g.splice(o,0,w),"img"!=e&&(y||2===k[n]?(E.insertBefore(d,b?null:m),p(u,l)):k[n].push(d))}("c"==n?x:w,e,n,this.i++,r,i,s):(g.splice(this.i++,0,e),1==g.length&&c()),this}function l(){var e=f;return e.loader={load:s,i:0},e}var u,f,d=t.documentElement,p=e.setTimeout,m=t.getElementsByTagName("script")[0],h={}.toString,g=[],v=0,y="MozAppearance"in d.style,b=y&&!!t.createRange().compareNode,E=b?d:m.parentNode,w=(d=e.opera&&"[object Opera]"==h.call(e.opera),d=!!t.attachEvent&&!d,y?"object":d?"script":"img"),x=d?"script":w,S=Array.isArray||function(e){return"[object Array]"==h.call(e)},C=[],k={},T={timeout:function(e,t){return t.length&&(e.timeout=t[0]),e}};(f=function(e){function t(e,t,o,i,a){var c=function(e){e=e.split("!");var t,n,r,o=C.length,i=e.pop(),a=e.length;for(i={url:i,origUrl:i,prefixes:e},n=0;n<a;n++)r=e[n].split("="),(t=T[r.shift()])&&(i=t(i,r));for(n=0;n<o;n++)i=C[n](i);return i}(e),s=c.autoCallback;c.url.split(".").pop().split("?").shift(),c.bypass||(t&&(t=r(t)?t:t[e]||t[i]||t[e.split("/").pop().split("?")[0]]),c.instead?c.instead(e,t,o,i,a):(k[c.url]?c.noexec=!0:k[c.url]=1,o.load(c.url,c.forceCSS||!c.forceJS&&"css"==c.url.split(".").pop().split("?").shift()?"c":n,c.noexec,c.attrs,c.timeout),(r(t)||r(s))&&o.load(function(){l(),t&&t(c.origUrl,a,i),s&&s(c.origUrl,a,i),k[c.url]=2})))}function a(e,n){function a(e,i){if(e){if(o(e))i||(f=function(){var e=[].slice.call(arguments);d.apply(this,e),p()}),t(e,f,n,0,l);else if(Object(e)===e)for(s in c=function(){var t,n=0;for(t in e)e.hasOwnProperty(t)&&n++;return n}(),e)e.hasOwnProperty(s)&&(!i&&!--c&&(r(f)?f=function(){var e=[].slice.call(arguments);d.apply(this,e),p()}:f[s]=function(e){return function(){var t=[].slice.call(arguments);e&&e.apply(this,t),p()}}(d[s])),t(e[s],f,n,s,l))}else!i&&p()}var c,s,l=!!e.test,u=e.load||e.both,f=e.callback||i,d=f,p=e.complete||i;a(l?e.yep:e.nope,!!u),u&&a(u)}var c,s,u=this.yepnope.loader;if(o(e))t(e,0,u,0);else if(S(e))for(c=0;c<e.length;c++)s=e[c],o(s)?t(s,0,u,0):S(s)?f(s):Object(s)===s&&a(s,u);else Object(e)===e&&a(e,u)}).addPrefix=function(e,t){T[e]=t},f.addFilter=function(e){C.push(e)},f.errorTimeout=1e4,null==t.readyState&&t.addEventListener&&(t.readyState="loading",t.addEventListener("DOMContentLoaded",u=function(){t.removeEventListener("DOMContentLoaded",u,0),t.readyState="complete"},0)),e.yepnope=l(),e.yepnope.executeStack=c,e.yepnope.injectJs=function(e,n,r,o,s,l){var u,d,h=t.createElement("script");o=o||f.errorTimeout;h.src=e;for(d in r)h.setAttribute(d,r[d]);n=l?c:n||i,h.onreadystatechange=h.onload=function(){!u&&a(h.readyState)&&(u=1,n(),h.onload=h.onreadystatechange=null)},p(function(){u||(u=1,n(1))},o),s?h.onload():m.parentNode.insertBefore(h,m)},e.yepnope.injectCss=function(e,n,r,o,a,s){var l;o=t.createElement("link"),n=s?c:n||i;o.href=e,o.rel="stylesheet",o.type="text/css";for(l in r)o.setAttribute(l,r[l]);a||(m.parentNode.insertBefore(o,m),p(n,0))}}(this,document),Modernizr.load=function(){yepnope.apply(window,[].slice.call(arguments,0))};