1(function(html){html.className=html.className.replace(/\bno-js\b/,'js')})(document.documentElement); 2/*! jQuery Migrate v3.4.1 | (c) OpenJS Foundation and other contributors | jquery.org/license */ 3"undefined"==typeof jQuery.migrateMute&&(jQuery.migrateMute=!0),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],function(e){return t(e,window)}):"object"==typeof module&&module.exports?module.exports=t(require("jquery"),window):t(jQuery,window)}(function(s,n){"use strict";function e(e){return 0<=function(e,t){for(var r=/^(\d+)\.(\d+)\.(\d+)/,n=r.exec(e)||[],o=r.exec(t)||[],a=1;a<=3;a++){if(+o[a]<+n[a])return 1;if(+n[a]<+o[a])return-1}return 0}(s.fn.jquery,e)}s.migrateVersion="3.4.1";var t=Object.create(null);s.migrateDisablePatches=function(){for(var e=0;e<arguments.length;e++)t[arguments[e]]=!0},s.migrateEnablePatches=function(){for(var e=0;e<arguments.length;e++)delete t[arguments[e]]},s.migrateIsPatchEnabled=function(e){return!t[e]},n.console&&n.console.log&&(s&&e("3.0.0")&&!e("5.0.0")||n.console.log("JQMIGRATE: jQuery 3.x-4.x REQUIRED"),s.migrateWarnings&&n.console.log("JQMIGRATE: Migrate plugin loaded multiple times"),n.console.log("JQMIGRATE: Migrate is installed"+(s.migrateMute?"":" with logging active")+", version "+s.migrateVersion));var o={};function u(e,t){var r=n.console;!s.migrateIsPatchEnabled(e)||s.migrateDeduplicateWarnings&&o[t]||(o[t]=!0,s.migrateWarnings.push(t+" ["+e+"]"),r&&r.warn&&!s.migrateMute&&(r.warn("JQMIGRATE: "+t),s.migrateTrace&&r.trace&&r.trace()))}function r(e,t,r,n,o){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){return u(n,o),r},set:function(e){u(n,o),r=e}})}function a(e,t,r,n,o){var a=e[t];e[t]=function(){return o&&u(n,o),(s.migrateIsPatchEnabled(n)?r:a||s.noop).apply(this,arguments)}}function c(e,t,r,n,o){if(!o)throw new Error("No warning message provided");return a(e,t,r,n,o),0}function i(e,t,r,n){return a(e,t,r,n),0}s.migrateDeduplicateWarnings=!0,s.migrateWarnings=[],void 0===s.migrateTrace&&(s.migrateTrace=!0),s.migrateReset=function(){o={},s.migrateWarnings.length=0},"BackCompat"===n.document.compatMode&&u("quirks","jQuery is not compatible with Quirks Mode");var d,l,p,f={},m=s.fn.init,y=s.find,h=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/,g=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/g,v=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;for(d in i(s.fn,"init",function(e){var t=Array.prototype.slice.call(arguments);return s.migrateIsPatchEnabled("selector-empty-id")&&"string"==typeof e&&"#"===e&&(u("selector-empty-id","jQuery( '#' ) is not a valid selector"),t[0]=[]),m.apply(this,t)},"selector-empty-id"),s.fn.init.prototype=s.fn,i(s,"find",function(t){var r=Array.prototype.slice.call(arguments);if("string"==typeof t&&h.test(t))try{n.document.querySelector(t)}catch(e){t=t.replace(g,function(e,t,r,n){return"["+t+r+'"'+n+'"]'});try{n.document.querySelector(t),u("selector-hash","Attribute selector with '#' must be quoted: "+r[0]),r[0]=t}catch(e){u("selector-hash","Attribute selector with '#' was not fixed: "+r[0])}}return y.apply(this,r)},"selector-hash"),y)Object.prototype.hasOwnProperty.call(y,d)&&(s.find[d]=y[d]);c(s.fn,"size",function(){return this.length},"size","jQuery.fn.size() is deprecated and removed; use the .length property"),c(s,"parseJSON",function(){return JSON.parse.apply(null,arguments)},"parseJSON","jQuery.parseJSON is deprecated; use JSON.parse"),c(s,"holdReady",s.holdReady,"holdReady","jQuery.holdReady is deprecated"),c(s,"unique",s.uniqueSort,"unique","jQuery.unique is deprecated; use jQuery.uniqueSort"),r(s.expr,"filters",s.expr.pseudos,"expr-pre-pseudos","jQuery.expr.filters is deprecated; use jQuery.expr.pseudos"),r(s.expr,":",s.expr.pseudos,"expr-pre-pseudos","jQuery.expr[':'] is deprecated; use jQuery.expr.pseudos"),e("3.1.1")&&c(s,"trim",function(e){return null==e?"":(e+"").replace(v,"$1")},"trim","jQuery.trim is deprecated; use String.prototype.trim"),e("3.2.0")&&(c(s,"nodeName",function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},"nodeName","jQuery.nodeName is deprecated"),c(s,"isArray",Array.isArray,"isArray","jQuery.isArray is deprecated; use Array.isArray")),e("3.3.0")&&(c(s,"isNumeric",function(e){var t=typeof e;return("number"==t||"string"==t)&&!isNaN(e-parseFloat(e))},"isNumeric","jQuery.isNumeric() is deprecated"),s.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){f["[object "+t+"]"]=t.toLowerCase()}),c(s,"type",function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?f[Object.prototype.toString.call(e)]||"object":typeof e},"type","jQuery.type is deprecated"),c(s,"isFunction",function(e){return"function"==typeof e},"isFunction","jQuery.isFunction() is deprecated"),c(s,"isWindow",function(e){return null!=e&&e===e.window}
3,"isWindow","jQuery.isWindow() is deprecated")),s.ajax&&(l=s.ajax,p=/(=)\?(?=&|$)|\?\?/,i(s,"ajax",function(){var e=l.apply(this,arguments);return e.promise&&(c(e,"success",e.done,"jqXHR-methods","jQXHR.success is deprecated and removed"),c(e,"error",e.fail,"jqXHR-methods","jQXHR.error is deprecated and removed"),c(e,"complete",e.always,"jqXHR-methods","jQXHR.complete is deprecated and removed")),e},"jqXHR-methods"),e("4.0.0")||s.ajaxPrefilter("+json",function(e){!1!==e.jsonp&&(p.test(e.url)||"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&p.test(e.data))&&u("jsonp-promotion","JSON-to-JSONP auto-promotion is deprecated")}));var j=s.fn.removeAttr,b=s.fn.toggleClass,w=/\S+/g;function x(e){return e.replace(/-([a-z])/g,function(e,t){return t.toUpperCase()})}i(s.fn,"removeAttr",function(e){var r=this,n=!1;return s.each(e.match(w),function(e,t){s.expr.match.bool.test(t)&&r.each(function(){if(!1!==s(this).prop(t))return!(n=!0)}),n&&(u("removeAttr-bool","jQuery.fn.removeAttr no longer sets boolean properties: "+t),r.prop(t,!1))}),j.apply(this,arguments)},"removeAttr-bool"),i(s.fn,"toggleClass",function(t){return void 0!==t&&"boolean"!=typeof t?b.apply(this,arguments):(u("toggleClass-bool","jQuery.fn.toggleClass( boolean ) is deprecated"),this.each(function(){var e=this.getAttribute&&this.getAttribute("class")||"";e&&s.data(this,"__className__",e),this.setAttribute&&this.setAttribute("class",!e&&!1!==t&&s.data(this,"__className__")||"")}))},"toggleClass-bool");var Q,A,R=!1,C=/^[a-z]/,N=/^(?:Border(?:Top|Right|Bottom|Left)?(?:Width|)|(?:Margin|Padding)?(?:Top|Right|Bottom|Left)?|(?:Min|Max)?(?:Width|Height))$/;s.swap&&s.each(["height","width","reliableMarginRight"],function(e,t){var r=s.cssHooks[t]&&s.cssHooks[t].get;r&&(s.cssHooks[t].get=function(){var e;return R=!0,e=r.apply(this,arguments),R=!1,e})}),i(s,"swap",function(e,t,r,n){var o,a,i={};for(a in R||u("swap","jQuery.swap() is undocumented and deprecated"),t)i[a]=e.style[a],e.style[a]=t[a];for(a in o=r.apply(e,n||[]),t)e.style[a]=i[a];return o},"swap"),e("3.4.0")&&"undefined"!=typeof Proxy&&(s.cssProps=new Proxy(s.cssProps||{},{set:function(){return u("cssProps","jQuery.cssProps is deprecated"),Reflect.set.apply(this,arguments)}})),e("4.0.0")?(A={animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},"undefined"!=typeof Proxy?s.cssNumber=new Proxy(A,{get:function(){return u("css-number","jQuery.cssNumber is deprecated"),Reflect.get.apply(this,arguments)},set:function(){return u("css-number","jQuery.cssNumber is deprecated"),Reflect.set.apply(this,arguments)}}):s.cssNumber=A):A=s.cssNumber,Q=s.fn.css,i(s.fn,"css",function(e,t){var r,n,o=this;return e&&"object"==typeof e&&!Array.isArray(e)?(s.each(e,function(e,t){s.fn.css.call(o,e,t)}),this):("number"==typeof t&&(r=x(e),n=r,C.test(n)&&N.test(n[0].toUpperCase()+n.slice(1))||A[r]||u("css-number",'Number-typed values are deprecated for jQuery.fn.css( "'+e+'", value )')),Q.apply(this,arguments))},"css-number");var S,P,k,H,E=s.data;i(s,"data",function(e,t,r){var n,o,a;if(t&&"object"==typeof t&&2===arguments.length){for(a in n=s.hasData(e)&&E.call(this,e),o={},t)a!==x(a)?(u("data-camelCase","jQuery.data() always sets/gets camelCased names: "+a),n[a]=t[a]):o[a]=t[a];return E.call(this,e,o),t}return t&&"string"==typeof t&&t!==x(t)&&(n=s.hasData(e)&&E.call(this,e))&&t in n?(u("data-camelCase","jQuery.data() always sets/gets camelCased names: "+t),2<arguments.length&&(n[t]=r),n[t]):E.apply(this,arguments)},"data-camelCase"),s.fx&&(k=s.Tween.prototype.run,H=function(e){return e},i(s.Tween.prototype,"run",function(){1<s.easing[this.easing].length&&(u("easing-one-arg","'jQuery.easing."+this.easing.toString()+"' should use only one argument"),s.easing[this.easing]=H),k.apply(this,arguments)},"easing-one-arg"),S=s.fx.interval,P="jQuery.fx.interval is deprecated",n.requestAnimationFrame&&Object.defineProperty(s.fx,"interval",{configurable:!0,enumerable:!0,get:function(){return n.document.hidden||u("fx-interval",P),s.migrateIsPatchEnabled("fx-interval")&&void 0===S?13:S},set:function(e){u("fx-interval",P),S=e}}));var M=s.fn.load,q=s.event.add,O=s.event.fix;s.event.props=[],s.event.fixHooks={}
3,r(s.event.props,"concat",s.event.props.concat,"event-old-patch","jQuery.event.props.concat() is deprecated and removed"),i(s.event,"fix",function(e){var t,r=e.type,n=this.fixHooks[r],o=s.event.props;if(o.length){u("event-old-patch","jQuery.event.props are deprecated and removed: "+o.join());while(o.length)s.event.addProp(o.pop())}if(n&&!n._migrated_&&(n._migrated_=!0,u("event-old-patch","jQuery.event.fixHooks are deprecated and removed: "+r),(o=n.props)&&o.length))while(o.length)s.event.addProp(o.pop());return t=O.call(this,e),n&&n.filter?n.filter(t,e):t},"event-old-patch"),i(s.event,"add",function(e,t){return e===n&&"load"===t&&"complete"===n.document.readyState&&u("load-after-event","jQuery(window).on('load'...) called after load event occurred"),q.apply(this,arguments)},"load-after-event"),s.each(["load","unload","error"],function(e,t){i(s.fn,t,function(){var e=Array.prototype.slice.call(arguments,0);return"load"===t&&"string"==typeof e[0]?M.apply(this,e):(u("shorthand-removed-v3","jQuery.fn."+t+"() is deprecated"),e.splice(0,0,t),arguments.length?this.on.apply(this,e):(this.triggerHandler.apply(this,e),this))},"shorthand-removed-v3")}),s.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,r){c(s.fn,r,function(e,t){return 0<arguments.length?this.on(r,null,e,t):this.trigger(r)},"shorthand-deprecated-v3","jQuery.fn."+r+"() event shorthand is deprecated")}),s(function(){s(n.document).triggerHandler("ready")}),s.event.special.ready={setup:function(){this===n.document&&u("ready-event","'ready' event is deprecated")}},c(s.fn,"bind",function(e,t,r){return this.on(e,null,t,r)},"pre-on-methods","jQuery.fn.bind() is deprecated"),c(s.fn,"unbind",function(e,t){return this.off(e,null,t)},"pre-on-methods","jQuery.fn.unbind() is deprecated"),c(s.fn,"delegate",function(e,t,r,n){return this.on(t,e,r,n)},"pre-on-methods","jQuery.fn.delegate() is deprecated"),c(s.fn,"undelegate",function(e,t,r){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",r)},"pre-on-methods","jQuery.fn.undelegate() is deprecated"),c(s.fn,"hover",function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)},"pre-on-methods","jQuery.fn.hover() is deprecated");function T(e){var t=n.document.implementation.createHTMLDocument("");return t.body.innerHTML=e,t.body&&t.body.innerHTML}var F=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi;s.UNSAFE_restoreLegacyHtmlPrefilter=function(){s.migrateEnablePatches("self-closed-tags")},i(s,"htmlPrefilter",function(e){var t,r;return(r=(t=e).replace(F,"<$1></$2>"))!==t&&T(t)!==T(r)&&u("self-closed-tags","HTML tags must be properly nested and closed: "+t),e.replace(F,"<$1></$2>")},"self-closed-tags"),s.migrateDisablePatches("self-closed-tags");var D,W,_,I=s.fn.offset;return i(s.fn,"offset",function(){var e=this[0];return!e||e.nodeType&&e.getBoundingClientRect?I.apply(this,arguments):(u("offset-valid-elem","jQuery.fn.offset() requires a valid DOM element"),arguments.length?this:void 0)},"offset-valid-elem"),s.ajax&&(D=s.param,i(s,"param",function(e,t){var r=s.ajaxSettings&&s.ajaxSettings.traditional;return void 0===t&&r&&(u("param-ajax-traditional","jQuery.param() no longer uses jQuery.ajaxSettings.traditional"),t=r),D.call(this,e,t)},"param-ajax-traditional")),c(s.fn,"andSelf",s.fn.addBack,"andSelf","jQuery.fn.andSelf() is deprecated and removed, use jQuery.fn.addBack()"),s.Deferred&&(W=s.Deferred,_=[["resolve","done",s.Callbacks("once memory"),s.Callbacks("once memory"),"resolved"],["reject","fail",s.Callbacks("once memory"),s.Callbacks("once memory"),"rejected"],["notify","progress",s.Callbacks("memory"),s.Callbacks("memory")]],i(s,"Deferred",function(e){var a=W(),i=a.promise();function t(){var o=arguments;return s.Deferred(function(n){s.each(_,function(e,t){var r="function"==typeof o[e]&&o[e];a[t[1]](function(){var e=r&&r.apply(this,arguments);e&&"function"==typeof e.promise?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[t[0]+"With"](this===i?n.promise():this,r?[e]:arguments)})}),o=null}).promise()}return c(a,"pipe",t,"deferred-pipe","deferred.pipe() is deprecated"),c(i,"pipe",t,"deferred-pipe","deferred.pipe() is deprecated"),e&&e.call(a,a),a},"deferred-pipe"),s.Deferred.exceptionHook=W.exceptionHook),s}); 4window.gdprAppliesGlobally=true;(function(){function a(e){if(!window.frames[e]){if(document.body&&document.body.firstChild){var t=document.body;var n=document.createElement("iframe");n.style.display="none";n.name=e;n.title=e;t.insertBefore(n,t.firstChild)} 5else{setTimeout(function(){a(e)},5)}}}function e(n,r,o,c,s){function e(e,t,n,a){if(typeof n!=="function"){return}if(!window[r]){window[r]=[]}var i=false;if(s){i=s(e,t,n)}if(!i){window[r].push({command:e,parameter:t,callback:n,version:a})}}e.stub=true;function t(a){if(!window[n]||window[n].stub!==true){return}if(!a.data){return} 6var i=typeof a.data==="string";var e;try{e=i?JSON.parse(a.data):a.data}catch(t){return}if(e[o]){var r=e[o];window[n](r.command,r.parameter,function(e,t){var n={};n[c]={returnValue:e,success:t,callId:r.callId};a.source.postMessage(i?JSON.stringify(n):n,"*")},r.version)}} 7if(typeof window[n]!=="function"){window[n]=e;if(window.addEventListener){window.addEventListener("message",t,false)}else{window.attachEvent("onmessage",t)}}}e("__tcfapi","__tcfapiBuffer","__tcfapiCall","__tcfapiReturn");a("__tcfapiLocator");(function(e){var t=document.createElement("script");t.id="spcloader";t.type="text/javascript";t.async=true;t.src="https://sdk.privacy-center.org/"+e+"/loader.js?target="+document.location.hostname;t.charset="utf-8";var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(t,n)})("e85b7a3e-c959-4864-8e83-9c5544eb2298")})(); 8var _paq=window._paq=window._paq||[];_paq.push(['trackPageView']);_paq.push(['enableLinkTracking']);(function(){var u="https://b-linked.matomo.cloud/";_paq.push(['setTrackerUrl',u+'matomo.php']);_paq.push(['setSiteId','15']);_paq.push(['HeatmapSessionRecording::disable']);var d=document,g=d.createElement('script'),s=d.getElementsByTagName('script')[0];g.async=true;g.src='//cdn.matomo.cloud/b-linked.matomo.cloud/matomo.js';s.parentNode.insertBefore(g,s);})();
vendor: 324 bytes, lines 8-9
8 9(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','
9GTM-MVGV9QF
vendor: 4 bytes, line 9
9');
10wp.i18n.setLocaleData({'text direction\u0004ltr':['ltr']}); 11(()=>{"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=/^(?<name>[a-z][-a-z0-9_:]*)(?<array>(?:\[(?:[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:()=>m,dayofweek:()=>u,email:()=>r,enum:()=>h,file:()=>d,maxdate:()=>z,maxfilesize:()=>j,maxitems:()=>v,maxlength:()=>x,maxnumber:()=>y,mindate:()=>A,minfilesize:()=>$,minitems:()=>w,minlength:()=>g,minnumber:()=>b,number:()=>c,required:()=>n,requiredfile:()=>a,stepnumber:()=>I,tel:()=>l,time:()=>f,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).map((t=>t.trim())).filter((t=>""!==t)).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).map((t=>t.trim())).filter((t=>""!==t)).every((t=>{if(t.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).map((t=>t.trim())).filter((t=>""!==t));if(!e.every((t=>{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).map((t=>t.trim())).filter((t=>""!==t)).every((t=>(((t=(t=t.replace(/[#*].*$/,"")).replaceAll(/[()/.*#\s-]+/g,"")).startsWith("+")||t.startsWith("00"))&&(t=`+${t.replace(/^[+0]+/,"")}`),!!/^[+]?[0-9]+$/.test(t)&&5<t.length&&t.length<16))))throw new o(this)},c=function(t){if(!t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).every((t=>!!/^[-]?[0-9]+(?:[eE][+-]?[0-9]+)?$/.test(t)||!!/^[-]?(?:[0-9]+)?[.][0-9]+(?:[eE][+-]?[0-9]+)?$/.test(t))))throw new o(this)},m=function(t){if(!t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).every((t=>{if(!/^[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)},f=function(t){if(!t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).every((t=>{const e=t.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)},d=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(/^(?<toplevel>[a-z]+)\/(?<sub>[*]|[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).map((t=>t.trim())).filter((t=>""!==t)).every((t=>this.accept?.some((e=>
11t===String(e))))))throw new o(this)},u=function(t){if(!t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).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).map((t=>t.trim())).filter((t=>""!==t)).length<parseInt(this.threshold))throw new o(this)},v=function(t){const e=t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t));if(parseInt(this.threshold)<e.length)throw new o(this)},g=function(t){const e=t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t));let i=0;if(e.forEach((t=>{"string"==typeof t&&(i+=t.length)})),0!==i&&i<parseInt(this.threshold))throw new o(this)},x=function(t){const e=t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t));let i=0;if(e.forEach((t=>{"string"==typeof t&&(i+=t.length)})),parseInt(this.threshold)<i)throw new o(this)},b=function(t){if(!t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).every((t=>!(parseFloat(t)<parseFloat(this.threshold)))))throw new o(this)},y=function(t){if(!t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).every((t=>!(parseFloat(this.threshold)<parseFloat(t)))))throw new o(this)},A=function(t){if(!t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).every((t=>!(/^[0-9]{4,}-[0-9]{2}-[0-9]{2}$/.test(t)&&/^[0-9]{4,}-[0-9]{2}-[0-9]{2}$/.test(this.threshold)&&t<this.threshold))))throw new o(this)},z=function(t){if(!t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).every((t=>!(/^[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))))throw new o(this)},$=function(t){const e=t.getAll(this.field);let i=0;if(e.forEach((t=>{t instanceof File&&(i+=t.size)})),i<parseInt(this.threshold))throw new o(this)},j=function(t){const e=t.getAll(this.field);let i=0;if(e.forEach((t=>{t instanceof File&&(i+=t.size)})),parseInt(this.threshold)<i)throw new o(this)},I=function(t){const e=t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)),i=parseFloat(this.base),s=parseFloat(this.interval);if(!(0<s))return!0;if(!e.every((t=>{const e=(parseFloat(t)-i)%s;return"0.000000"===Math.abs(e).toFixed(6)||"0.000000"===Math.abs(e-s).toFixed(6)})))throw new o(this)},O=({ruleObj:t,options:i})=>{const{rule:s,...o}=t;return"function"==typeof e[s]&&("function"!=typeof e[s].matches||e[s].matches(o,i))},E=({ruleObj:t,formDataTree:i,options:s})=>{const{rule:o}=t;e[o].call(t,i,s)},k=[],F=t=>[...k].reduce(((t,e)=>i=>e(i,t)),t),D=function(t,e={}){const i=(this.rules??[]).filter((t=>O({ruleObj:t,options:e}))),s=F(E);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=>O({ruleObj:t,options:e}))),s=F(E);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 L;window.swv={validators:e,validate:(t,e,i={})=>{const n=(t.rules??[]).filter((t=>O({ruleObj:t,options:i})));if(!n.length)return new Map;const a=F(E),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=>{k.push(t)},...null!==(L=window.swv)&&void 0!==L?L:{}}})(); 12var wpcf7={"api":{"root":"https:\/\/www.biocodex.fr\/wp-json\/","namespace":"contact-form-7\/v1"}}; 13(()=>{"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,
13status: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 c.reduceRight(((e,t)=>a=>t(a,e)),(e=>{let n,r,{url:c,path:o,endpoint:s,headers:i,body:l,data:p,...d}=e;"string"==typeof s&&(n=a.replace(/^\/|\/$/g,""),r=s.replace(/^\//,""),o=r?n+"/"+r:n),"string"==typeof o&&(-1!==t.indexOf("?")&&(o=o.replace("?","&")),o=o.replace(/^\//,""),c=t+o),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(c||o||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)},c=[];function o(e,t={}){const{target:a,scope:r=e,...c}=t;if(void 0===e.wpcf7?.schema)return;const o={...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)=>
13(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(o,d,t);for(const t of p){if(void 0===t.dataset.name)continue;const c=t.dataset.name;if(n.has(c)){const{error:t,validInputs:a}=n.get(c);i(e,c),void 0!==t&&s(e,c,t,{scope:r}),l(e,c,null!=a?a:[])}if(t.contains(a))break}}})).finally((()=>{n(e,f)}))}r.use=e=>{c.unshift(e)};const s=(e,t,a,n)=>{const{scope:r=e,...c}=null!=n?n:{},o=`${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",o),s&&s.id?t.insertAdjacentHTML("beforeend",`<a href="#${s.id}">${a}</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",o),"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 c=new FormData(e);t.submitter&&t.submitter.name&&c.append(t.submitter.name,t.submitter.value);const 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(c,(e=>{const t=e[0],a=e[1];return!t.match(/^_/)&&{name:t,value:a}})).filter((e=>!1!==e)),formData:c};r({endpoint:`contact-forms/${e.wpcf7.id}/feedback`,method:"POST",body:c,wpcf7:{endpoint:"feedback",form:e,detail:o}}).then((t=>{const r=n(e,t.status);return o.status=t.status,o.apiResponse=t,["invalid","unaccepted","spam","aborted"].includes(r)?a(e,r,o):["sent","failed"].includes(r)&&a(e,`mail${r}`,o),a(e,"submit",o),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)=>
13{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),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(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:c}}).then((t=>{e.wpcf7.resetOnMailSent?(delete e.wpcf7.resetOnMailSent,n(e,"mail_sent")):n(e,"init"),c.apiResponse=t,a(e,"reset",c)})).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",'<span class="wpcf7-spinner"></span>')})),(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")),c=t(e.getAttribute("data-minimum-value")),o=e.classList.contains("down")?n-a.value.trim().length:a.value.trim().length;e.setAttribute("data-current-value",o),e.innerText=o,r&&r<a.value.length?e.classList.add("too-long"):e.classList.remove("too-long"),c&&a.value.length<c?e.classList.add("too-short"):e.classList.remove("too-short")},n=t=>{t={init:!1,...t},e.querySelectorAll(".wpcf7-character-count").forEach((n=>{const r=n.getAttribute("data-target-name"),c=e.querySelector(`[name="${r}"]`);c&&(c.value=c.defaultValue,a(n,c),t.init&&c.addEventListener("keyup",(e=>{a(n,c)}
13)))}))};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:o,schemas:new Map,...null!==(a=wpcf7)&&void 0!==a?a:{}},document.querySelectorAll("form .wpcf7[data-wpcf7-id]").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.")}))})(); 14window.njtNotibarData={"bars":[{"id":"b1fe5e34-e89d-46b5-967d-248f922e3419","name":"Career Banner","enabled":true,"order":0,"content":{"text":"\u26a0\ufe0f Attention aux tentatives de fraude au recrutement <br \/>\nNous avons \u00e9t\u00e9 inform\u00e9s de tentatives de fraude impliquant des personnes se faisant passer pour des recruteurs ou des repr\u00e9sentants de Biocodex.\nBiocodex ne vous demandera jamais de verser de l\u2019argent dans le cadre d\u2019un processus de recrutement, que ce soit pour b\u00e9n\u00e9ficier de conseils, am\u00e9liorer votre CV, suivre une formation ou pour tout autre service li\u00e9 \u00e0 votre candidature.\nSi vous \u00eates contact\u00e9(e) par une personne pr\u00e9tendant agir au nom de Biocodex : v\u00e9rifiez attentivement l\u2019adresse e-mail utilis\u00e9e par votre interlocuteur ; ne communiquez pas d\u2019informations personnelles, confidentielles ou bancaires en cas de doute ; n\u2019effectuez aucun paiement demand\u00e9 dans le cadre d\u2019un recrutement ; consultez nos offres d\u2019emploi directement sur notre site Carri\u00e8res.\nSi vous recevez une sollicitation qui vous para\u00eet suspecte, nous vous recommandons de ne pas y r\u00e9pondre et de nous la signaler.\nNous vous invitons \u00e0 rester vigilants face \u00e0 toute communication frauduleuse utilisant le nom ou l\u2019identit\u00e9 de Biocodex.\nSi vous recevez un message suspect, nous vous recommandons de ne pas y r\u00e9pondre et de nous le signaler via notre page de contact.","textMobile":"This is default text for notification bar","mobileSeparate":false,"button":{"enabled":true,"text":"Page contact","url":"\/fr\/contact\/","fontWeight":500,"newWindow":false,"action":"link","attention":"none","hover":"none","reopenAfterDays":1},"buttonMobile":{"enabled":true,"text":"Learn more","url":"","fontWeight":500,"newWindow":true,"action":"link","attention":"none","hover":"none","reopenAfterDays":1}},"style":{"bgColor":"#fefefe","textColor":"#000000","btnBgColor":"#757575","btnTextColor":"#ffffff","fontSize":15,"layout":"centered","contentWidth":900,"positionType":"fixed","placement":"top","opacity":100,"marquee":{"enabled":false,"scope":"row","mode":"loop","delay":3,"speed":60,"direction":"left"},"activePreset":null}
14,"display":{"devices":["desktop","mobile"],"pageLogic":"include","pageIds":[5564],"postLogic":"none","postIds":[],"cptTypes":[],"cptLogic":"none","cptIds":[],"audience":"all","roles":[],"userIds":[],"countryLogic":"all","countries":[]},"behavior":{"hideCloseButton":"close","reopenAfterDays":1,"trigger":{"type":"none","value":0}},"schedule":{"enabled":false,"useClientTime":false,"startAt":"","endAt":"","dailyWindow":{"enabled":false,"start":"","end":""},"daysOfWeek":[0,1,2,3,4,5,6]},"countdown":{"enabled":false,"type":"date","endAt":"","duration":0,"ui":"boxes","units":["days","hours","minutes","seconds"],"showAllUnits":false,"resetToken":0}}],"global":[],"ctx":{"pageId":604,"postId":0,"isHome":false,"isSingleProduct":false,"theme":"Biocodex","serverNow":1790591540,"serverWeekday":1,"serverHHMM":"10:32","currentCptType":"","currentObjectId":604}}; 15(()=>{"use strict";function t(t,e,n,o,i){const r=String(n),a=n>0&&e.some(t=>String(t)===r)||o&&e.includes("home_page")||i&&e.includes("wc_single_product");switch(t){case"all":default:return!0;case"none":return!1;case"include":return a;case"exclude":return!a}}function e(t){if("string"!=typeof t||!t)return NaN;const e=16===t.length?t+":00":t;return new Date(e).getTime()}function n(t){return String(t.getHours()).padStart(2,"0")+":"+String(t.getMinutes()).padStart(2,"0")}const o={"&":"&",'"':""","'":"'","<":"<",">":">"};function i(t){return String(t??"").replace(/[&"'<>]/g,t=>o[t])}function r(t){return String(t??"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}const a={"&":"&","<":"<",">":">",""":'"',"'":"'","'":"'"},s=["centered","text-left","three-zone","hero","split","content-left","content-right"];function c(t,e,n){if(!t||!t.enabled)return"";const o="close"===t.action,s=(c=t.text||"Learn more",String(c??"").replace(/&(?:amp|lt|gt|quot|#39|#x27);/gi,t=>a[t.toLowerCase()]||t));var c;const d=s.trim()?i(s):`Learn more about this notification (${n})`,l=e.btnBgColor||"#1919cf",u=[`background:${i(l)}`,`--njt-btn-bg:${i(/^#[0-9a-fA-F]{8}$/.test(l)?l.slice(0,7):l)}`,`color:${i(e.btnTextColor||"#ffffff")}`,`font-weight:${i(t.fontWeight||500)}`].join(";");if(o)return`<div class="njt-nofi-button"><button type="button" data-njt-action="close" data-njt-reopen="${Math.max(0,Math.min(365,Number(t.reopenAfterDays)||0))}" class="njt-nofi-button-text" aria-label="${d}" style="${u}">`+r(s)+"</button></div>";const f=t.url||"#",p=t.newWindow?' target="_blank" rel="noopener noreferrer"':"";return`<div class="njt-nofi-button"><a href="${i(f)}"${p} class="njt-nofi-button-text" aria-label="${d}" style="${u}">`+r(s)+"</a></div>"}const d=new Set(["fixed","absolute"]);function l(t,e){t>0?document.body.style.setProperty("padding-top",t+"px","important"):document.body.style.removeProperty("padding-top"),e>0?document.body.style.setProperty("padding-bottom",e+"px","important"):document.body.style.removeProperty("padding-bottom")}const u="njt-notibar-";function f(t,e){const n=document.querySelector(t);n&&Object.assign(n.style,e)}function p(){return!!document.querySelector("#wpadminbar")}function b(){const t=document.getElementById("wpadminbar");return t?t.offsetHeight:0}function m(t){const e=y(t);if(!e)return 0;const n=e.offsetHeight,o=e.getBoundingClientRect().bottom-b();return Math.max(0,Math.min(n,o))}function h(t){return t.querySelector(".njt-nofi-stack")||t.querySelector(".njt-nofi-container")}function y(t){const e=t.querySelector(".njt-nofi-stack[data-placement='top']");if(e)return e;const n=t.querySelector(".njt-nofi-container");return n&&"bottom"!==n.getAttribute("data-placement")?n:null}function g(t){if(function(t){return"none"===t.style.display||!t.offsetParent}(t))return!1;const e=y(t);return!(!e||0===e.getBoundingClientRect().height||"absolute"===e.getAttribute("data-position")&&e.getBoundingClientRect().bottom<=0)}function v(t,e,n){return function(){let o=document.getElementById(e);if(!o){if(!document.head)return;o=document.createElement("style"),o.id=e,document.head.appendChild(o)}const i=g(t)?m(t):0;o.textContent=i>0?n(i):""}}function w(t){function e(){const e=g(t),n=e?m(t):0,o=b();f("header#main-header",{top:e?n+o+"px":""});const i=o,r=o+(e?n:0);f(".et_pb_section_0_tb_header",{top:i+"px"}),f(".et_pb_section_1_tb_header",{top:i+30+"px"}),f(".et_pb_section_0_tb_header.et_pb_sticky--top",{top:r+"px"}),f(".et_pb_section_1_tb_header.et_pb_sticky--top",{top:r+30+"px"})}return setTimeout(e,100),e}const x={Divi:w,"Divi Child Theme for CDW Studios":w,Essentials:function(t){const e=v(t,"njt-nofi-essentials-compat",t=>`.pix-header.is-scroll,\n.pix-header.pix-mobile-sticky { margin-top: ${t}px !important; }`);return setTimeout(e,100),e},Nayma:function(t){const e=h(t);e&&"fixed"===getComputedStyle(e).position&&window.addEventListener("wheel",function(e){let n=g(t)?m(t):0;const o=t.querySelector(".njt-nofi-container-content");o&&o.classList.contains("njt-nofi-collapsed")&&(n=0),e.deltaY<0&&f("body header .fixed-header",{top:n+b()+"px"})})},Konte:function(t){const e=h(t);e&&"fixed"===getComputedStyle(e).position&&window.addEventListener("wheel",function(e){if(!g(t))return void f("body header#masthead.header-sticky--normal",{top:document.querySelector("body header#masthead.header-sticky--normal.sticky")?b()+"px":"0"});const n=m(t);e.deltaY<0?f("body header#masthead.header-sticky--normal.sticky",{top:n+b()+"px"}):p()?f("body header#masthead.header-sticky--normal",{top:(document.querySelector("body header#masthead.header-sticky--normal.sticky")?n+b():n)+"px"}):f("body header#masthead.header-sticky--normal.sticky",{top:n+"px"})})},Enfold:function(t){const e=h(t);e&&"absolute"===getComputedStyle(e).position&&(setTimeout(()=>{const t=document.querySelector("body header.av_header_border_disabled");t&&!t.classList.contains("av_header_transparency")&&(t.style.top=b()+"px")},500),window.addEventListener("wheel",function(e){if(e.deltaY>0||!g(t))return void f("body header.av_header_border_disabled",{top:b()+"px"});const n=!!document.querySelector("header.av_header_transparency");f("body header.av_header_border_disabled",{top:b()+(n?m(t):0)+"px"})}))},"Uptime Child":function(t){const e=h(t);e&&"fixed"===getComputedStyle(e).position&&window.addEventListener("wheel",function(e){const n=g(t)?m(t):0;e.deltaY<0||f(".navbar",{top:"0"}
15),f(".navbar.scrolled",{top:n+"px"})})},"Themify Ultra":function(t){window.addEventListener("wheel",function(){const e=p()?b()+24:32;var n;g(t)?(n={top:e+"px"},document.querySelectorAll("#headerwrap.tf_box.tf_w, #headerwrap.tf_box.tf_w.fixed-header").forEach(t=>{Object.assign(t.style,n)})):f("#headerwrap",{top:"0px"})})},Salient:function(t){function e(){f("header#top",{top:g(t)?m(t)+"px":""})}return e(),e},"Radiate Child":function(t){function e(){g(t)?f("body .header-wrap",{top:m(t)+b()+"px"}):f("body .header-wrap",{top:""})}return setTimeout(e,100),window.addEventListener("wheel",e),e},"AccessPress Parallax Pro Child":function(t){function e(){if(!g(t))return f("header#masthead",{top:""}),void f("#main-header.menu-fix",{top:""});f("header#masthead",{top:m(t)+b()+"px"})}setTimeout(e,100);let n=0;return window.addEventListener("scroll",function(){if(!g(t))return;const e=window.scrollY||document.documentElement.scrollTop;e>=n&&f("#main-header.menu-fix",{top:m(t)+"px"}),n=e}),e},Brandy:function(t){const e=v(t,"njt-nofi-brandy-compat",t=>`.is-stickying .sticky-part { top: calc(var(--wp-adminbar-height, 0px) + ${t}px) !important; }`);return e(),e}},S="njt-nofi-collapsed";function j(t){return`njt-notibar-${t}-collapsed`}function _(t){try{return"1"===window.sessionStorage.getItem(j(t))}catch(t){return!1}}function $(t,e){const n=function(t){const e=t.style||{},n=t.content||{},o=t.behavior||{},r=i(e.bgColor||"#9af4cf"),a=i(e.textColor||"#1919cf"),d=i(Number(e.fontSize)||15),l=i(Number(e.contentWidth)||900),u=i(e.positionType||"fixed"),f=s.includes(e.layout)?e.layout:"centered",p=i(t.id||""),b=Math.min(100,Math.max(10,Number(e.opacity)||100)),m=b<100?` style="opacity:${b/100}"`:"",h=`max-width:${l}px;font-size:${d}px;`;let y=`<div class="njt-nofi-text">${n.text||""}</div>`,g=`<div class="njt-nofi-text">${n.textMobile||""}</div>`,v=`<div class="njt-nofi-content njt-nofi-content-desktop" data-layout="${i(f)}" style="${h}">`+y+c(n.button,e,"desktop")+"</div>",w=n.mobileSeparate?`<div class="njt-nofi-content njt-nofi-content-mobile" data-layout="${i(f)}" style="font-size:${d}px;">`+g+c(n.buttonMobile||n.button,e,"mobile")+"</div>":"";const x=function(t){const e='<svg class="njt-nofi-close-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 386.667 386.667" width="14" height="14" aria-hidden="true"><path d="m386.667 45.564-45.564-45.564-147.77 147.769-147.769-147.769-45.564 45.564 147.769 147.769-147.769 147.77 45.564 45.564 147.769-147.769 147.769 147.769 45.564-45.564-147.768-147.77z" fill="currentColor"/></svg>';return"close"===t?'<button class="njt-nofi-close" type="button" aria-label="Close">'+e+"</button>":"toggle"===t?'<button class="njt-nofi-toggle" type="button" aria-label="Collapse/expand">'+e+"</button>":""}(o.hideCloseButton||"close");return`<div class="njt-nofi-container-content" role="status" aria-live="polite" data-bar-id="${p}"><div class="njt-nofi-container" data-position="${u}" data-placement="top"${m}><div class="${"njt-nofi-notification-bar"+(n.mobileSeparate?" njt-nofi-has-mobile":"")}" style="--njt-bar-bg:${r};--njt-bar-color:${a};">`+v+w+x+"</div></div></div>"}(t);return _(t.id)?n.replace('class="njt-nofi-container-content"',`class="njt-nofi-container-content ${S}"`):n}function k(t){return!1}document.addEventListener("DOMContentLoaded",function(){const o=window.njtNotibarData;if(!o)return;const{bars:i=[],global:r={},ctx:a={}}=o;if(!i.length)return;let s=document.getElementById("njt-notibar-slot");s||(s=document.createElement("div"),s.id="njt-notibar-slot",s.setAttribute("role","status"),s.setAttribute("aria-live","polite"),document.body.appendChild(s)),a.device=matchMedia("(max-width:480px)").matches?"mobile":"desktop",a.dismissed=i.filter(t=>function(t){const e=u+String(t)+"=";return document.cookie.split("; ").some(t=>t.startsWith(e))}(t.id)).map(t=>String(t.id)),a.isPreview=!1;let c=function(o,i){if(!Array.isArray(o))return[];const{pageId:r=0,postId:a=0,isHome:s=!1,isSingleProduct:c=!1,device:d="desktop",dismissed:l=[],isPreview:u=!1,currentCptType:f=""}=i;return o.filter(o=>{if(!0!==o.enabled)return!1;const p=o.display||{};if(!u&&!(p.devices||[]).includes(d))return!1;if(""!==f){const t=p.cptLogic||"none",e=(Array.isArray(p.cptTypes)?p.cptTypes:[]).includes(f);if(!("all"===t||"include"===t&&e||"exclude"===t&&!e))return!1}else{const e=p.pageLogic||"all";if("none"===e&&0===a)return!1;if((r>0||s||c)&&!t(e,p.pageIds||[],r,s,c))return!1;if(a>0&&!t(p.postLogic||"all",p.postIds||[],a,!1,!1))return!1}if(!u){const t=String(o.id);if(l.some(e=>String(e)===t))return!1}return!(!u&&!function(t,o){const i=t.schedule;if(!i||!i.enabled)return!0;let r,a,s;if(!0===i.useClientTime){const t=new Date;r=t.getTime(),a=t.getDay(),s=n(t)}else{r="number"==typeof o.serverNow?1e3*o.serverNow:Date.now();const t=new Date(r);a="number"==typeof o.serverWeekday?o.serverWeekday:t.getDay(),s="string"==typeof o.serverHHMM?o.serverHHMM:n(t)}if(i.startAt){const t=e(i.startAt);if(!isNaN(t)&&t>r)return!1}if(i.endAt){const t=e(i.endAt);if(!isNaN(t)&&t<=r)return!1}const c=Array.isArray(i.daysOfWeek)?i.daysOfWeek:[];if(c.length>0&&!c.includes(a))return!1;const d=i.dailyWindow||{};return!(d.enabled&&(d.start||d.end)&&(l=s,u=d.start||"",f=d.end||"",!(""===u&&""===f||(""===u?l<f:""===f?l>=u:u<=f?l>=u&&l<f:l>=u||l<f))));var l,u,f}(o,i))})}(i,a);if(!c.length)return void(s.style.display="none");const f=c.filter(t=>!0);function p(t,e){const n=c.find(e=>String(e.id)===String(t));if(n){const o=n.behavior?n.behavior.reopenAfterDays:0;!function(t,e){const n=Math.max(0,Number(e)||0),o=n>0?"; Max-Age="+86400*n:"",i="https:"===location.protocol?"; Secure":"";document.cookie=`${u}${String(t)}=1; Path=/; SameSite=Lax${o}${i}`}(t,null!=e?e:o)}const o=new Set([String(t)]);if(c=c.filter(t=>!o.has(String(t.id))),!c.length)return s.innerHTML="",void(s.style.display="none");s.innerHTML=$(c[0])}c.filter(k),f.slice(),s.addEventListener("click",function(t){const e=t.target.closest('[data-njt-action="close"]');if(e){t.preventDefault();
15const n=e.closest("[data-bar-id]"),o=n?n.dataset.barId:null;if(o){const t=e.dataset.njtReopen;p(o,void 0!==t&&""!==t?Number(t):void 0)}return}const n=t.target.closest(".njt-nofi-close");if(n){const t=n.closest("[data-bar-id]"),e=t?t.dataset.barId:null;return void(e&&p(e))}const o=t.target.closest(".njt-nofi-toggle");if(o){const t=o.closest("[data-bar-id]"),e=t?t.dataset.barId:null;return void(e&&function(t){const e=_(t);!function(t,e){try{const n=j(t);e?window.sessionStorage.setItem(n,"1"):window.sessionStorage.removeItem(n)}catch(t){}}(t,!e);const n=s.querySelector(`[data-bar-id="${CSS.escape(t)}"]`);n&&n.classList.toggle(S,!e)}(e))}});{const t=c[0];s.innerHTML=$(t)}s.querySelectorAll(".njt-nofi-container-content").forEach(function(t){t.classList.add("njt-nofi-visible")}),function(t,e){const n=x[t];if("function"!=typeof n)return;const o=n(e);"function"==typeof o&&"undefined"!=typeof MutationObserver&&(new MutationObserver(o).observe(e,{childList:!0}),window.addEventListener("resize",o,{passive:!0}),window.addEventListener("scroll",function(){const t=h(e);t&&"absolute"===t.getAttribute("data-position")&&o()},{passive:!0}))}(a.theme,s),function(t){if(!t||"undefined"==typeof ResizeObserver)return function(){};let e=[],n=null;function o(t){return"bottom"===t.getAttribute("data-placement")?"bottom":"top"}function i(t){const e=t.getAttribute("data-position")||"fixed";return d.has(e)}function r(){let t=0,n=0;e.forEach(function(e){const o=e.el.offsetHeight;"bottom"===e.side?n+=o:t+=o}),l(t,n)}function a(){const e=t.querySelectorAll(".njt-nofi-stack");if(e.length){const t=[];return e.forEach(function(e){i(e)&&t.push({el:e,side:o(e)})}),t}const n=t.querySelector(".njt-nofi-container");return n&&i(n)?[{el:n,side:o(n)}]:[]}function s(t){n&&(n.disconnect(),n=null),e=t,e.length?(n=new ResizeObserver(r),e.forEach(function(t){n.observe(t.el)}),r()):l(0,0)}s(a());new MutationObserver(function(){const t=a();(function(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n].el!==e[n].el||t[n].side!==e[n].side)return!1;return!0})(t,e)||s(t)}).observe(t,{childList:!0,subtree:!0}),window.addEventListener("resize",function(){r()})}(s),function(t){const e=document.getElementById("wpadminbar");if(!t||!e)return;const n=window.matchMedia("(max-width: 600px)");function o(){const o=function(){const e=t.querySelector(".njt-nofi-stack[data-placement='top'][data-position='fixed']");if(e)return e;const n=t.querySelector(".njt-nofi-container[data-position='fixed']");return n&&"bottom"!==n.getAttribute("data-placement")?n:null}();if(!o)return;if(!n.matches)return void o.style.removeProperty("top");const i=Math.max(0,window.scrollY),r=Math.max(0,e.offsetHeight-i);o.style.setProperty("top",r+"px")}window.addEventListener("scroll",o,{passive:!0}),window.addEventListener("resize",o,{passive:!0}),new MutationObserver(o).observe(t,{childList:!0}),o()}(s),s.dispatchEvent(new CustomEvent("njt_nofi_bar_rendered",{bubbles:!0}))})})(); 16!function(){var e=-1<navigator.userAgent.toLowerCase().indexOf("webkit"),t=-1<navigator.userAgent.toLowerCase().indexOf("opera"),n=-1<navigator.userAgent.toLowerCase().indexOf("msie");(e||t||n)&&document.getElementById&&window.addEventListener&&window.addEventListener("hashchange",function(){var e,t=location.hash.substring(1);/^[A-z0-9_-]+$/.test(t)&&(e=document.getElementById(t))&&(/^(?:a|select|input|button|textarea)$/i.test(e.tagName)||(e.tabIndex=-1),e.focus(),window.scrollBy(0,-53))},!1)}(); 17!function(h,i,n,a){function l(t,e){this.settings=null,this.options=h.extend({},l.Defaults,e),this.$element=h(t),this._handlers={},this._plugins={},this._supress={},this._current=null,this._speed=null,this._coordinates=[],this._breakpoint=null,this._width=null,this._items=[],this._clones=[],this._mergers=[],this._widths=[],this._invalidated={},this._pipe=[],this._drag={time:null,target:null,pointer:null,stage:{start:null,current:null},direction:null},this._states={current:{},tags:{initializing:["busy"],animating:["busy"],dragging:["interacting"]}},h.each(["onResize","onThrottledResize"],h.proxy(function(t,e){this._handlers[e]=h.proxy(this[e],this)},this)),h.each(l.Plugins,h.proxy(function(t,e){this._plugins[t.charAt(0).toLowerCase()+t.slice(1)]=new e(this)},this)),h.each(l.Workers,h.proxy(function(t,e){this._pipe.push({filter:e.filter,run:h.proxy(e.run,this)})},this)),this.setup(),this.initialize()}l.Defaults={items:3,loop:!1,center:!1,rewind:!1,checkVisibility:!0,mouseDrag:!0,touchDrag:!0,pullDrag:!0,freeDrag:!1,margin:0,stagePadding:0,merge:!1,mergeFit:!0,autoWidth:!1,startPosition:0,rtl:!1,smartSpeed:250,fluidSpeed:!1,dragEndSpeed:!1,responsive:{},responsiveRefreshRate:200,responsiveBaseElement:i,fallbackEasing:"swing",slideTransition:"",info:!1,nestedItemSelector:!1,itemElement:"div",stageElement:"div",refreshClass:"owl-refresh",loadedClass:"owl-loaded",loadingClass:"owl-loading",rtlClass:"owl-rtl",responsiveClass:"owl-responsive",dragClass:"owl-drag",itemClass:"owl-item",stageClass:"owl-stage",stageOuterClass:"owl-stage-outer",grabClass:"owl-grab"},l.Width={Default:"default",Inner:"inner",Outer:"outer"},l.Type={Event:"event",State:"state"},l.Plugins={},l.Workers=[{filter:["width","settings"],run:function(){this._width=this.$element.width()}},{filter:["width","items","settings"],run:function(t){t.current=this._items&&this._items[this.relative(this._current)]}},{filter:["items","settings"],run:function(){this.$stage.children(".cloned").remove()}},{filter:["width","items","settings"],run:function(t){var e=this.settings.margin||"",i=!this.settings.autoWidth,s=this.settings.rtl,n={width:"auto","margin-left":s?e:"","margin-right":s?"":e};!i&&this.$stage.children().css(n),t.css=n}},{filter:["width","items","settings"],run:function(t){var e=(this.width()/this.settings.items).toFixed(3)-this.settings.margin,i=null,s=this._items.length,n=!this.settings.autoWidth,o=[];for(t.items={merge:!1,width:e};s--;)i=this._mergers[s],i=this.settings.mergeFit&&Math.min(i,this.settings.items)||i,t.items.merge=1<i||t.items.merge,o[s]=n?e*i:this._items[s].width();this._widths=o}},{filter:["items","settings"],run:function(){var t=[],e=this._items,i=this.settings,s=Math.max(2*i.items,4),n=2*Math.ceil(e.length/2),o=i.loop&&e.length?
vendor: 7,454 bytes, line 17
17i.rewind?s:Math.max(s,n):0,r="",a="";for(o/=2;0<o;)t.push(this.normalize(t.length/2,!0)),r+=e[t[t.length-1]][0].outerHTML,t.push(this.normalize(e.length-1-(t.length-1)/2,!0)),a=e[t[t.length-1]][0].outerHTML+a,o-=1;this._clones=t,h(r).addClass("cloned").appendTo(this.$stage),h(a).addClass("cloned").prependTo(this.$stage)}},{filter:["width","items","settings"],run:function(){for(var t=this.settings.rtl?1:-1,e=this._clones.length+this._items.length,i=-1,s=0,n=0,o=[];++i<e;)s=o[i-1]||0,n=this._widths[this.relative(i)]+this.settings.margin,o.push(s+n*t);this._coordinates=o}},{filter:["width","items","settings"],run:function(){var t=this.settings.stagePadding,e=this._coordinates,i={width:Math.ceil(Math.abs(e[e.length-1]))+2*t,"padding-left":t||"","padding-right":t||""};this.$stage.css(i)}},{filter:["width","items","settings"],run:function(t){var e=this._coordinates.length,i=!this.settings.autoWidth,s=this.$stage.children();if(i&&t.items.merge)for(;e--;)t.css.width=this._widths[this.relative(e)],s.eq(e).css(t.css);else i&&(t.css.width=t.items.width,s.css(t.css))}},{filter:["items"],run:function(){this._coordinates.length<1&&this.$stage.removeAttr("style")}},{filter:["width","items","settings"],run:function(t){t.current=t.current?this.$stage.children().index(t.current):0,t.current=Math.max(this.minimum(),Math.min(this.maximum(),t.current)),this.reset(t.current)}},{filter:["position"],run:function(){this.animate(this.coordinates(this._current))}},{filter:["width","position","items","settings"],run:function(){var t,e,i,s,n=this.settings.rtl?1:-1,o=2*this.settings.stagePadding,r=this.coordinates(this.current())+o,a=r+this.width()*n,h=[];for(i=0,s=this._coordinates.length;i<s;i++)t=this._coordinates[i-1]||0,e=Math.abs(this._coordinates[i])+o*n,(this.op(t,"<=",r)&&this.op(t,">",a)||this.op(e,"<",r)&&this.op(e,">",a))&&h.push(i);this.$stage.children(".active").removeClass("active"),this.$stage.children(":eq("+h.join("), :eq(")+")").addClass("active"),this.$stage.children(".center").removeClass("center"),this.settings.center&&this.$stage.children().eq(this.current()).addClass("center")}}],l.prototype.initializeStage=function(){this.$stage=this.$element.find("."+this.settings.stageClass),this.$stage.length||(this.$element.addClass(this.options.loadingClass),this.$stage=h("<"+this.settings.stageElement+">",{class:this.settings.stageClass}).wrap(h("<div/>",{class:this.settings.stageOuterClass})),this.$element.append(this.$stage.parent()))},l.prototype.initializeItems=function(){var t=this.$element.find(".owl-item");if(t.length)return this._items=t.get().map(function(t){return h(t)}),this._mergers=this._items.map(function(){return 1}),void this.refresh();this.replace(this.$element.children().not(this.$stage.parent())),this.isVisible()?this.refresh():this.invalidate("width"),this.$element.removeClass(this.options.loadingClass).addClass(this.options.loadedClass)},l.prototype.initialize=function(){var t,e,i;(this.enter("initializing"),this.trigger("initialize"),this.$element.toggleClass(this.settings.rtlClass,this.settings.rtl),this.settings.autoWidth&&!this.is("pre-loading"))&&(t=this.$element.find("img"),e=this.settings.nestedItemSelector?"."+this.settings.nestedItemSelector:a,i=this.$element.children(e).width(),t.length&&i<=0&&this.preloadAutoWidthImages(t));this.initializeStage(),this.initializeItems(),this.registerEventHandlers(),this.leave("initializing"),this.trigger("initialized")},l.prototype.isVisible=function(){return!this.settings.checkVisibility||this.$element.is(":visible")},l.prototype.setup=function(){var e=this.viewport(),t=this.options.responsive,i=-1,s=null;t?(h.each(t,function(t){t<=e&&i<t&&(i=Number(t))}),"function"==typeof(s=h.extend({},this.options,t[i])).stagePadding&&(s.stagePadding=s.stagePadding()),delete s.responsive,s.responsiveClass&&this.$element.attr("class",this.$element.attr("class").replace(new RegExp("("+this.options.responsiveClass+"-)\\S+\\s","g"),"$1"+i))):s=h.extend({},this.options),this.trigger("change",{property:{name:"settings",value:s}}),this._breakpoint=i,this.settings=s,this.invalidate("settings"),this.trigger("changed",{property:{name:"settings",value:this.settings}})},l.prototype.optionsLogic=function(){this.settings.autoWidth&&(this.settings.stagePadding=!1,this.settings.merge=!1)},l.prototype.prepare=function(t){var e=this.trigger("prepare",{content:t});return e.data||(e.data=h("<"+this.settings.itemElement+"/>").addClass(this.options.itemClass).append(t)),this.trigger("prepared",{content:e.data}),e.data},l.prototype.update=function(){for(var t=0,e=this._pipe.length,i=h.proxy(function(t){return this[t]},this._invalidated),s={};t<e;)(this._invalidated.all||0<h.grep(this._pipe[t].filter,i).length)&&this._pipe[t].run(s),t++;this._invalidated={},!this.is("valid")&&this.enter("valid")},l.prototype.width=function(t){switch(t=t||l.Width.Default){case l.Width.Inner:case l.Width.Outer:return this._width;default:return this._width-2*this.settings.stagePadding+this.settings.margin}},l.prototype.refresh=function(){this.enter("refreshing"),this.trigger("refresh"),this.setup(),this.optionsLogic(),this.$element.addClass(this.options.refreshClass),this.update(),this.$element.removeClass(this.options.refreshClass),this.leave("refreshing"),this.trigger("refreshed")},l.prototype.onThrottledResize=function(){i.clearTimeout(this.resizeTimer),this.resizeTimer=i.setTimeout(this._handlers.onResize,this.settings.responsiveRefreshRate)},l.prototype.onResize=function(){return!!this._items.length&&(this._width!==this.$element.width()&&(!!this.isVisible()&&(this.enter("resizing"),this.trigger("resize").isDefaultPrevented()?(this.leave("resizing"),!1):(this.invalidate("width"),this.refresh(),this.leave("resizing"),void this.trigger("resized")))))},l.prototype.registerEventHandlers=function(){h.support.transition&&this.$stage.on(h.support.transition.end+".owl.core",h.proxy(this.onTransitionEnd,this)),!1!==this.settings.responsive&&this.on(i,"resize",this._handlers.onThrottledResize),this.settings.mouseDrag&&(this.$element.addClass(this.options.dragClass),this.$stage.on("mousedown.owl.core",h.proxy(this.onDragStart,this)),this.$stage.on("dragstart.owl.core selectstart.owl.core",function(){return!1})),this.settings.touchDrag&&(this.$stage.on("touchstart.owl.core",h.proxy(this.onDragStart,this)),this.$stage.on("touchcancel.owl.core",h.proxy(this.onDragEnd,this)))},l.prototype.onDragStart=function(t){var e=null;3!==t.which&&(e=h.support.transform?{x:(e=this.$stage.css("transform").replace(/.*\(|\)| /g,"").split(","))[16===e.length?12:4],y:e[16===e.length?13:5]}:(e=this.$stage.position(),{x:this.settings.rtl?e.left+this.$stage.width()-this.width()+this.settings.margin:e.left,y:e.top}),this.is("animating")&&(h.support.transform?this.animate(e.x):this.$stage.stop(),this.invalidate("position")),this.$element.toggleClass(this.options.grabClass,"mousedown"===t.type),this.speed(0),this._drag.time=(new Date).getTime(),this._drag.target=h(t.target),this._drag.stage.start=e,this._drag.stage.current=e,this._drag.pointer=this.pointer(t),h(n).on("mouseup.owl.core touchend.owl.core",h.proxy(this.onDragEnd,this)),h(n).one("mousemove.owl.core touchmove.owl.core",h.proxy(function(t){var e=this.difference(this._drag.pointer,this.pointer(t));h(n).on("mousemove.owl.core touchmove.owl.core",h.proxy(this.onDragMove,this)),Math.abs(e.x)<Math.abs(e.y)&&this.is("valid")||(t.preventDefault(),this.enter("dragging"),this.trigger("drag"))},this)))}
vendor: 4,676 bytes, line 17
17,l.prototype.onDragMove=function(t){var e=null,i=null,s=null,n=this.difference(this._drag.pointer,this.pointer(t)),o=this.difference(this._drag.stage.start,n);this.is("dragging")&&(t.preventDefault(),this.settings.loop?(e=this.coordinates(this.minimum()),i=this.coordinates(this.maximum()+1)-e,o.x=((o.x-e)%i+i)%i+e):(e=this.settings.rtl?this.coordinates(this.maximum()):this.coordinates(this.minimum()),i=this.settings.rtl?this.coordinates(this.minimum()):this.coordinates(this.maximum()),s=this.settings.pullDrag?-1*n.x/5:0,o.x=Math.max(Math.min(o.x,e+s),i+s)),this._drag.stage.current=o,this.animate(o.x))},l.prototype.onDragEnd=function(t){var e=this.difference(this._drag.pointer,this.pointer(t)),i=this._drag.stage.current,s=0<e.x^this.settings.rtl?"left":"right";h(n).off(".owl.core"),this.$element.removeClass(this.options.grabClass),(0!==e.x&&this.is("dragging")||!this.is("valid"))&&(this.speed(this.settings.dragEndSpeed||this.settings.smartSpeed),this.current(this.closest(i.x,0!==e.x?s:this._drag.direction)),this.invalidate("position"),this.update(),this._drag.direction=s,(3<Math.abs(e.x)||300<(new Date).getTime()-this._drag.time)&&this._drag.target.one("click.owl.core",function(){return!1})),this.is("dragging")&&(this.leave("dragging"),this.trigger("dragged"))},l.prototype.closest=function(i,s){var n=-1,o=this.width(),r=this.coordinates();return this.settings.freeDrag||h.each(r,h.proxy(function(t,e){return"left"===s&&e-30<i&&i<e+30?n=t:"right"===s&&e-o-30<i&&i<e-o+30?n=t+1:this.op(i,"<",e)&&this.op(i,">",r[t+1]!==a?r[t+1]:e-o)&&(n="left"===s?t+1:t),-1===n},this)),this.settings.loop||(this.op(i,">",r[this.minimum()])?n=i=this.minimum():this.op(i,"<",r[this.maximum()])&&(n=i=this.maximum())),n},l.prototype.animate=function(t){var e=0<this.speed();this.is("animating")&&this.onTransitionEnd(),e&&(this.enter("animating"),this.trigger("translate")),h.support.transform3d&&h.support.transition?this.$stage.css({transform:"translate3d("+t+"px,0px,0px)",transition:this.speed()/1e3+"s"+(this.settings.slideTransition?" "+this.settings.slideTransition:"")}):e?this.$stage.animate({left:t+"px"},this.speed(),this.settings.fallbackEasing,h.proxy(this.onTransitionEnd,this)):this.$stage.css({left:t+"px"})},l.prototype.is=function(t){return this._states.current[t]&&0<this._states.current[t]},l.prototype.current=function(t){if(t===a)return this._current;if(0===this._items.length)return a;if(t=this.normalize(t),this._current!==t){var e=this.trigger("change",{property:{name:"position",value:t}});e.data!==a&&(t=this.normalize(e.data)),this._current=t,this.invalidate("position"),this.trigger("changed",{property:{name:"position",value:this._current}})}return this._current},l.prototype.invalidate=function(t){return"string"===h.type(t)&&(this._invalidated[t]=!0,this.is("valid")&&this.leave("valid")),h.map(this._invalidated,function(t,e){return e})},l.prototype.reset=function(t){(t=this.normalize(t))!==a&&(this._speed=0,this._current=t,this.suppress(["translate","translated"]),this.animate(this.coordinates(t)),this.release(["translate","translated"]))},l.prototype.normalize=function(t,e){var i=this._items.length,s=e?0:this._clones.length;return!this.isNumeric(t)||i<1?t=a:(t<0||i+s<=t)&&(t=((t-s/2)%i+i)%i+s/2),t},l.prototype.relative=function(t){return t-=this._clones.length/2,this.normalize(t,!0)},l.prototype.maximum=function(t){var e,i,s,n=this.settings,o=this._coordinates.length;if(n.loop)o=this._clones.length/2+this._items.length-1;else if(n.autoWidth||n.merge){if(e=this._items.length)for(i=this._items[--e].width(),s=this.$element.width();e--&&!(s<(i+=this._items[e].width()+this.settings.margin)););o=e+1}else o=n.center?this._items.length-1:this._items.length-n.items;return t&&(o-=this._clones.length/2),Math.max(o,0)},l.prototype.minimum=function(t){return t?0:this._clones.length/2},l.prototype.items=function(t){return t===a?this._items.slice():(t=this.normalize(t,!0),this._items[t])},l.prototype.mergers=function(t){return t===a?this._mergers.slice():(t=this.normalize(t,!0),this._mergers[t])},l.prototype.clones=function(i){var e=this._clones.length/2,s=e+this._items.length,n=function(t){return t%2==0?s+t/2:e-(t+1)/2};return i===a?h.map(this._clones,function(t,e){return n(e)}):h.map(this._clones,function(t,e){return t===i?n(e):null})},l.prototype.speed=function(t){return t!==a&&(this._speed=t),this._speed},l.prototype.coordinates=function(t){var e,i=1,s=t-1;return t===a?h.map(this._coordinates,h.proxy(function(t,e){return this.coordinates(e)},this)):(this.settings.center?(this.settings.rtl&&(i=-1,s=t+1),e=this._coordinates[t],e+=(this.width()-e+(this._coordinates[s]||0))/2*i):e=this._coordinates[s]||0,e=Math.ceil(e))}
vendor: 25,612 bytes, line 17
17,l.prototype.duration=function(t,e,i){return 0===i?0:Math.min(Math.max(Math.abs(e-t),1),6)*Math.abs(i||this.settings.smartSpeed)},l.prototype.to=function(t,e){var i=this.current(),s=null,n=t-this.relative(i),o=(0<n)-(n<0),r=this._items.length,a=this.minimum(),h=this.maximum();this.settings.loop?(!this.settings.rewind&&Math.abs(n)>r/2&&(n+=-1*o*r),(s=(((t=i+n)-a)%r+r)%r+a)!==t&&s-n<=h&&0<s-n&&(i=s-n,t=s,this.reset(i))):t=this.settings.rewind?(t%(h+=1)+h)%h:Math.max(a,Math.min(h,t)),this.speed(this.duration(i,t,e)),this.current(t),this.isVisible()&&this.update()},l.prototype.next=function(t){t=t||!1,this.to(this.relative(this.current())+1,t)},l.prototype.prev=function(t){t=t||!1,this.to(this.relative(this.current())-1,t)},l.prototype.onTransitionEnd=function(t){if(t!==a&&(t.stopPropagation(),(t.target||t.srcElement||t.originalTarget)!==this.$stage.get(0)))return!1;this.leave("animating"),this.trigger("translated")},l.prototype.viewport=function(){var t;return this.options.responsiveBaseElement!==i?t=h(this.options.responsiveBaseElement).width():i.innerWidth?t=i.innerWidth:n.documentElement&&n.documentElement.clientWidth?t=n.documentElement.clientWidth:console.warn("Can not detect viewport width."),t},l.prototype.replace=function(t){this.$stage.empty(),this._items=[],t&&(t=t instanceof jQuery?t:h(t)),this.settings.nestedItemSelector&&(t=t.find("."+this.settings.nestedItemSelector)),t.filter(function(){return 1===this.nodeType}).each(h.proxy(function(t,e){e=this.prepare(e),this.$stage.append(e),this._items.push(e),this._mergers.push(1*e.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)},this)),this.reset(this.isNumeric(this.settings.startPosition)?this.settings.startPosition:0),this.invalidate("items")},l.prototype.add=function(t,e){var i=this.relative(this._current);e=e===a?this._items.length:this.normalize(e,!0),t=t instanceof jQuery?t:h(t),this.trigger("add",{content:t,position:e}),t=this.prepare(t),0===this._items.length||e===this._items.length?(0===this._items.length&&this.$stage.append(t),0!==this._items.length&&this._items[e-1].after(t),this._items.push(t),this._mergers.push(1*t.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)):(this._items[e].before(t),this._items.splice(e,0,t),this._mergers.splice(e,0,1*t.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)),this._items[i]&&this.reset(this._items[i].index()),this.invalidate("items"),this.trigger("added",{content:t,position:e})},l.prototype.remove=function(t){(t=this.normalize(t,!0))!==a&&(this.trigger("remove",{content:this._items[t],position:t}),this._items[t].remove(),this._items.splice(t,1),this._mergers.splice(t,1),this.invalidate("items"),this.trigger("removed",{content:null,position:t}))},l.prototype.preloadAutoWidthImages=function(t){t.each(h.proxy(function(t,e){this.enter("pre-loading"),e=h(e),h(new Image).one("load",h.proxy(function(t){e.attr("src",t.target.src),e.css("opacity",1),this.leave("pre-loading"),!this.is("pre-loading")&&!this.is("initializing")&&this.refresh()},this)).attr("src",e.attr("src")||e.attr("data-src")||e.attr("data-src-retina"))},this))},l.prototype.destroy=function(){for(var t in this.$element.off(".owl.core"),this.$stage.off(".owl.core"),h(n).off(".owl.core"),!1!==this.settings.responsive&&(i.clearTimeout(this.resizeTimer),this.off(i,"resize",this._handlers.onThrottledResize)),this._plugins)this._plugins[t].destroy();this.$stage.children(".cloned").remove(),this.$stage.unwrap(),this.$stage.children().contents().unwrap(),this.$stage.children().unwrap(),this.$stage.remove(),this.$element.removeClass(this.options.refreshClass).removeClass(this.options.loadingClass).removeClass(this.options.loadedClass).removeClass(this.options.rtlClass).removeClass(this.options.dragClass).removeClass(this.options.grabClass).attr("class",this.$element.attr("class").replace(new RegExp(this.options.responsiveClass+"-\\S+\\s","g"),"")).removeData("owl.carousel")},l.prototype.op=function(t,e,i){var s=this.settings.rtl;switch(e){case"<":return s?i<t:t<i;case">":return s?t<i:i<t;case">=":return s?t<=i:i<=t;case"<=":return s?i<=t:t<=i}},l.prototype.on=function(t,e,i,s){t.addEventListener?t.addEventListener(e,i,s):t.attachEvent&&t.attachEvent("on"+e,i)},l.prototype.off=function(t,e,i,s){t.removeEventListener?t.removeEventListener(e,i,s):t.detachEvent&&t.detachEvent("on"+e,i)},l.prototype.trigger=function(t,e,i,s,n){var o={item:{count:this._items.length,index:this.current()}},r=h.camelCase(h.grep(["on",t,i],function(t){return t}).join("-").toLowerCase()),a=h.Event([t,"owl",i||"carousel"].join(".").toLowerCase(),h.extend({relatedTarget:this},o,e));return this._supress[t]||(h.each(this._plugins,function(t,e){e.onTrigger&&e.onTrigger(a)}),this.register({type:l.Type.Event,name:t}),this.$element.trigger(a),this.settings&&"function"==typeof this.settings[r]&&this.settings[r].call(this,a)),a},l.prototype.enter=function(t){h.each([t].concat(this._states.tags[t]||[]),h.proxy(function(t,e){this._states.current[e]===a&&(this._states.current[e]=0),this._states.current[e]++},this))},l.prototype.leave=function(t){h.each([t].concat(this._states.tags[t]||[]),h.proxy(function(t,e){this._states.current[e]--},this))},l.prototype.register=function(i){if(i.type===l.Type.Event){if(h.event.special[i.name]||(h.event.special[i.name]={}),!h.event.special[i.name].owl){var e=h.event.special[i.name]._default;h.event.special[i.name]._default=function(t){return!e||!e.apply||t.namespace&&-1!==t.namespace.indexOf("owl")?t.namespace&&-1<t.namespace.indexOf("owl"):e.apply(this,arguments)},h.event.special[i.name].owl=!0}}else i.type===l.Type.State&&(this._states.tags[i.name]?this._states.tags[i.name]=this._states.tags[i.name].concat(i.tags):this._states.tags[i.name]=i.tags,this._states.tags[i.name]=h.grep(this._states.tags[i.name],h.proxy(function(t,e){return h.inArray(t,this._states.tags[i.name])===e},this)))},l.prototype.suppress=function(t){h.each(t,h.proxy(function(t,e){this._supress[e]=!0},this))},l.prototype.release=function(t){h.each(t,h.proxy(function(t,e){delete this._supress[e]},this))},l.prototype.pointer=function(t){var e={x:null,y:null};return(t=(t=t.originalEvent||t||i.event).touches&&t.touches.length?t.touches[0]:t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t).pageX?(e.x=t.pageX,e.y=t.pageY):(e.x=t.clientX,e.y=t.clientY),e},l.prototype.isNumeric=function(t){return!isNaN(parseFloat(t))},l.prototype.difference=function(t,e){return{x:t.x-e.x,y:t.y-e.y}},h.fn.owlCarousel=function(e){var s=Array.prototype.slice.call(arguments,1);return this.each(function(){var t=h(this),i=t.data("owl.carousel");i||(i=new l(this,"object"==typeof e&&e),t.data("owl.carousel",i),h.each(["next","prev","to","destroy","refresh","replace","add","remove"],function(t,e){i.register({type:l.Type.Event,name:e}),i.$element.on(e+".owl.carousel.core",h.proxy(function(t){t.namespace&&t.relatedTarget!==this&&(this.suppress([e]),i[e].apply(this,[].slice.call(arguments,1)),this.release([e]))},i))})),"string"==typeof e&&"_"!==e.charAt(0)&&i[e].apply(i,s)})},h.fn.owlCarousel.Constructor=l}(window.Zepto||window.jQuery,window,document),function(e,i,t,s){var n=function(t){this._core=t,this._interval=null,this._visible=null,this._handlers={"initialized.owl.carousel":e.proxy(function(t){t.namespace&&this._core.settings.autoRefresh&&this.watch()},this)},this._core.options=e.extend({},n.Defaults,this._core.options),this._core.$element.on(this._handlers)};n.Defaults={autoRefresh:!0,autoRefreshInterval:500},n.prototype.watch=function(){this._interval||(this._visible=this._core.isVisible(),this._interval=i.setInterval(e.proxy(this.refresh,this),this._core.settings.autoRefreshInterval))},n.prototype.refresh=function(){this._core.isVisible()!==this._visible&&(this._visible=!this._visible,this._core.$element.toggleClass("owl-hidden",!this._visible),this._visible&&this._core.invalidate("width")&&this._core.refresh())},n.prototype.destroy=function(){var t,e;for(t in i.clearInterval(this._interval),this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},e.fn.owlCarousel.Constructor.Plugins.AutoRefresh=n}(window.Zepto||window.jQuery,window,document),function(a,o,t,e){var i=function(t){this._core=t,this._loaded=[],this._handlers={"initialized.owl.carousel change.owl.carousel resized.owl.carousel":a.proxy(function(t){if(t.namespace&&this._core.settings&&this._core.settings.lazyLoad&&(t.property&&"position"==t.property.name||"initialized"==t.type)){var e=this._core.settings,i=e.center&&Math.ceil(e.items/2)||e.items,s=e.center&&-1*i||0,n=(t.property&&void 0!==t.property.value?t.property.value:this._core.current())+s,o=this._core.clones().length,r=a.proxy(function(t,e){this.load(e)},this);for(0<e.lazyLoadEager&&(i+=e.lazyLoadEager,e.loop&&(n-=e.lazyLoadEager,i++));s++<i;)this.load(o/2+this._core.relative(n)),o&&a.each(this._core.clones(this._core.relative(n)),r),n++}},this)},this._core.options=a.extend({},i.Defaults,this._core.options),this._core.$element.on(this._handlers)};i.Defaults={lazyLoad:!1,lazyLoadEager:0},i.prototype.load=function(t){var e=this._core.$stage.children().eq(t),i=e&&e.find(".owl-lazy");!i||-1<a.inArray(e.get(0),this._loaded)||(i.each(a.proxy(function(t,e){var i,s=a(e),n=1<o.devicePixelRatio&&s.attr("data-src-retina")||s.attr("data-src")||s.attr("data-srcset");this._core.trigger("load",{element:s,url:n},"lazy"),s.is("img")?s.one("load.owl.lazy",a.proxy(function(){s.css("opacity",1),this._core.trigger("loaded",{element:s,url:n},"lazy")},this)).attr("src",n):s.is("source")?s.one("load.owl.lazy",a.proxy(function(){this._core.trigger("loaded",{element:s,url:n},"lazy")},this)).attr("srcset",n):((i=new Image).onload=a.proxy(function(){s.css({"background-image":'url("'+n+'")',opacity:"1"}),this._core.trigger("loaded",{element:s,url:n},"lazy")},this),i.src=n)},this)),this._loaded.push(e.get(0)))},i.prototype.destroy=function(){var t,e;for(t in this.handlers)this._core.$element.off(t,this.handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},a.fn.owlCarousel.Constructor.Plugins.Lazy=i}(window.Zepto||window.jQuery,window,document),function(r,i,t,e){var s=function(t){this._core=t,this._previousHeight=null,this._handlers={"initialized.owl.carousel refreshed.owl.carousel":r.proxy(function(t){t.namespace&&this._core.settings.autoHeight&&this.update()},this),"changed.owl.carousel":r.proxy(function(t){t.namespace&&this._core.settings.autoHeight&&"position"===t.property.name&&this.update()},this),"loaded.owl.lazy":r.proxy(function(t){t.namespace&&this._core.settings.autoHeight&&t.element.closest("."+this._core.settings.itemClass).index()===this._core.current()&&this.update()},this)},this._core.options=r.extend({},s.Defaults,this._core.options),this._core.$element.on(this._handlers),this._intervalId=null;var e=this;r(i).on("load",function(){e._core.settings.autoHeight&&e.update()}),r(i).resize(function(){e._core.settings.autoHeight&&(null!=e._intervalId&&clearTimeout(e._intervalId),e._intervalId=setTimeout(function(){e.update()},250))})};s.Defaults={autoHeight:!1,autoHeightClass:"owl-height"},s.prototype.update=function(){var t=this._core._current,e=t+this._core.settings.items,i=this._core.settings.lazyLoad,s=this._core.$stage.children().toArray().slice(t,e),n=[],o=0;r.each(s,function(t,e){n.push(r(e).height())}),(o=Math.max.apply(null,n))<=1&&i&&this._previousHeight&&(o=this._previousHeight),this._previousHeight=o,this._core.$stage.parent().height(o).addClass(this._core.settings.autoHeightClass)},s.prototype.destroy=function(){var t,e;for(t in this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},r.fn.owlCarousel.Constructor.Plugins.AutoHeight=s}(window.Zepto||window.jQuery,window,document),function(c,t,e,i){var s=function(t){this._core=t,this._videos={},this._playing=null,this._handlers={"initialized.owl.carousel":c.proxy(function(t){t.namespace&&this._core.register({type:"state",name:"playing",tags:["interacting"]})},this),"resize.owl.carousel":c.proxy(function(t){t.namespace&&this._core.settings.video&&this.isInFullScreen()&&t.preventDefault()},this),"refreshed.owl.carousel":c.proxy(function(t){t.namespace&&this._core.is("resizing")&&this._core.$stage.find(".cloned .owl-video-frame").remove()},this),"changed.owl.carousel":c.proxy(function(t){t.namespace&&"position"===t.property.name&&this._playing&&this.stop()},this),"prepared.owl.carousel":c.proxy(function(t){if(t.namespace){var e=c(t.content).find(".owl-video");e.length&&(e.css("display","none"),this.fetch(e,c(t.content)))}},this)},this._core.options=c.extend({},s.Defaults,this._core.options),this._core.$element.on(this._handlers),this._core.$element.on("click.owl.video",".owl-video-play-icon",c.proxy(function(t){this.play(t)},this))};s.Defaults={video:!1,videoHeight:!1,videoWidth:!1},s.prototype.fetch=function(t,e){var i=t.attr("data-vimeo-id")?"vimeo":t.attr("data-vzaar-id")?"vzaar":"youtube",s=t.attr("data-vimeo-id")||t.attr("data-youtube-id")||t.attr("data-vzaar-id"),n=t.attr("data-width")||this._core.settings.videoWidth,o=t.attr("data-height")||this._core.settings.videoHeight,r=t.attr("href");if(!r)throw new Error("Missing video URL.");if(-1<(s=r.match(/(http:|https:|)\/\/(player.|www.|app.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com|be\-nocookie\.com)|vzaar\.com)\/(video\/|videos\/|embed\/|channels\/.+\/|groups\/.+\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/))[3].indexOf("youtu"))i="youtube";else if(-1<s[3].indexOf("vimeo"))i="vimeo";else{if(!(-1<s[3].indexOf("vzaar")))throw new Error("Video URL not supported.");i="vzaar"}s=s[6],this._videos[r]={type:i,id:s,width:n,height:o},e.attr("data-video",r),this.thumbnail(t,this._videos[r])},s.prototype.thumbnail=function(e,t){var i,s,n=t.width&&t.height?"width:"+t.width+"px;height:"+t.height+"px;":"",o=e.find("img"),r="src",a="",h=this._core.settings,l=function(t){'<div class="owl-video-play-icon"></div>',i=h.lazyLoad?c("<div/>",{class:"owl-video-tn "+a,srcType:t}):c("<div/>",{class:"owl-video-tn",style:"opacity:1;background-image:url("+t+")"}),e.after(i),e.after('<div class="owl-video-play-icon"></div>')};if(e.wrap(c("<div/>",{class:"owl-video-wrapper",style:n})),this._core.settings.lazyLoad&&(r="data-src",a="owl-lazy"),o.length)return l(o.attr(r)),o.remove(),!1;"youtube"===t.type?(s="//img.youtube.com/vi/"+t.id+"/hqdefault.jpg",l(s)):"vimeo"===t.type?c.ajax({type:"GET",url:"//vimeo.com/api/v2/video/"+t.id+".json",jsonp:"callback",dataType:"jsonp",success:function(t){s=t[0].thumbnail_large,l(s)}}):"vzaar"===t.type&&c.ajax({type:"GET",url:"//vzaar.com/api/videos/"+t.id+".json",jsonp:"callback",dataType:"jsonp",success:function(t){s=t.framegrab_url,l(s)}})},s.prototype.stop=function(){this._core.trigger("stop",null,"video"),this._playing.find(".owl-video-frame").remove(),this._playing.removeClass("owl-video-playing"),this._playing=null,this._core.leave("playing"),this._core.trigger("stopped",null,"video")},s.prototype.play=function(t){var e,i=c(t.target).closest("."+this._core.settings.itemClass),s=this._videos[i.attr("data-video")],n=s.width||"100%",o=s.height||this._core.$stage.height();this._playing||(this._core.enter("playing"),this._core.trigger("play",null,"video"),i=this._core.items(this._core.relative(i.index())),this._core.reset(i.index()),(e=c('<iframe frameborder="0" allowfullscreen mozallowfullscreen webkitAllowFullScreen ></iframe>')).attr("height",o),e.attr("width",n),"youtube"===s.type?e.attr("src","//www.youtube.com/embed/"+s.id+"?autoplay=1&rel=0&v="+s.id):"vimeo"===s.type?e.attr("src","//player.vimeo.com/video/"+s.id+"?autoplay=1"):"vzaar"===s.type&&e.attr("src","//view.vzaar.com/"+s.id+"/player?autoplay=true"),c(e).wrap('<div class="owl-video-frame" />').insertAfter(i.find(".owl-video")),this._playing=i.addClass("owl-video-playing"))},s.prototype.isInFullScreen=function(){var t=e.fullscreenElement||e.mozFullScreenElement||e.webkitFullscreenElement;return t&&c(t).parent().hasClass("owl-video-frame")},s.prototype.destroy=function(){var t,e;for(t in this._core.$element.off("click.owl.video"),this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},c.fn.owlCarousel.Constructor.Plugins.Video=s}(window.Zepto||window.jQuery,window,document),function(r,t,e,i){var s=function(t){this.core=t,this.core.options=r.extend({},s.Defaults,this.core.options),this.swapping=!0,this.previous=void 0,this.next=void 0,this.handlers={"change.owl.carousel":r.proxy(function(t){t.namespace&&"position"==t.property.name&&(this.previous=this.core.current(),this.next=t.property.value)},this),"drag.owl.carousel dragged.owl.carousel translated.owl.carousel":r.proxy(function(t){t.namespace&&(this.swapping="translated"==t.type)},this),"translate.owl.carousel":r.proxy(function(t){t.namespace&&this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)&&this.swap()},this)},this.core.$element.on(this.handlers)};s.Defaults={animateOut:!1,animateIn:!1},s.prototype.swap=function(){if(1===this.core.settings.items&&r.support.animation&&r.support.transition){this.core.speed(0);var t,e=r.proxy(this.clear,this),i=this.core.$stage.children().eq(this.previous),s=this.core.$stage.children().eq(this.next),n=this.core.settings.animateIn,o=this.core.settings.animateOut;this.core.current()!==this.previous&&(o&&(t=this.core.coordinates(this.previous)-this.core.coordinates(this.next),i.one(r.support.animation.end,e).css({left:t+"px"}).addClass("animated owl-animated-out").addClass(o)),n&&s.one(r.support.animation.end,e).addClass("animated owl-animated-in").addClass(n))}},s.prototype.clear=function(t){r(t.target).css({left:""}).removeClass("animated owl-animated-out owl-animated-in").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut),this.core.onTransitionEnd()},s.prototype.destroy=function(){var t,e;for(t in this.handlers)this.core.$element.off(t,this.handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},r.fn.owlCarousel.Constructor.Plugins.Animate=s}(window.Zepto||window.jQuery,window,document),function(s,n,e,t){var i=function(t){this._core=t,this._call=null,this._time=0,this._timeout=0,this._paused=!0,this._handlers={"changed.owl.carousel":s.proxy(function(t){t.namespace&&"settings"===t.property.name?this._core.settings.autoplay?this.play():this.stop():t.namespace&&"position"===t.property.name&&this._paused&&(this._time=0)},this),"initialized.owl.carousel":s.proxy(function(t){t.namespace&&this._core.settings.autoplay&&this.play()},this),"play.owl.autoplay":s.proxy(function(t,e,i){t.namespace&&this.play(e,i)},this),"stop.owl.autoplay":s.proxy(function(t){t.namespace&&this.stop()},this),"mouseover.owl.autoplay":s.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"mouseleave.owl.autoplay":s.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.play()},this),"touchstart.owl.core":s.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"touchend.owl.core":s.proxy(function(){this._core.settings.autoplayHoverPause&&this.play()},this)},this._core.$element.on(this._handlers),this._core.options=s.extend({},i.Defaults,this._core.options)};i.Defaults={autoplay:!1,autoplayTimeout:5e3,autoplayHoverPause:!1,autoplaySpeed:!1},i.prototype._next=function(t){this._call=n.setTimeout(s.proxy(this._next,this,t),this._timeout*(Math.round(this.read()/this._timeout)+1)-this.read()),this._core.is("interacting")||e.hidden||this._core.next(t||this._core.settings.autoplaySpeed)},i.prototype.read=function(){return(new Date).getTime()-this._time},i.prototype.play=function(t,e){var i;this._core.is("rotating")||this._core.enter("rotating"),t=t||this._core.settings.autoplayTimeout,i=Math.min(this._time%(this._timeout||t),t),this._paused?(this._time=this.read(),this._paused=!1):n.clearTimeout(this._call),this._time+=this.read()%t-i,this._timeout=t,this._call=n.setTimeout(s.proxy(this._next,this,e),t-i)},i.prototype.stop=function(){this._core.is("rotating")&&(this._time=0,this._paused=!0,n.clearTimeout(this._call),this._core.leave("rotating"))},i.prototype.pause=function(){this._core.is("rotating")&&!this._paused&&(this._time=this.read(),this._paused=!0,n.clearTimeout(this._call))},i.prototype.destroy=function(){var t,e;for(t in this.stop(),this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},s.fn.owlCarousel.Constructor.Plugins.autoplay=i}(window.Zepto||window.jQuery,window,document),function(o,t,e,i){"use strict";var s=function(t){this._core=t,this._initialized=!1,this._pages=[],this._controls={},this._templates=[],this.$element=this._core.$element,this._overrides={next:this._core.next,prev:this._core.prev,to:this._core.to},this._handlers={"prepared.owl.carousel":o.proxy(function(t){t.namespace&&this._core.settings.dotsData&&this._templates.push('<div class="'+this._core.settings.dotClass+'">'+o(t.content).find("[data-dot]").addBack("[data-dot]").attr("data-dot")+"</div>")},this),"added.owl.carousel":o.proxy(function(t){t.namespace&&this._core.settings.dotsData&&this._templates.splice(t.position,0,this._templates.pop())},this),"remove.owl.carousel":o.proxy(function(t){t.namespace&&this._core.settings.dotsData&&this._templates.splice(t.position,1)},this),"changed.owl.carousel":o.proxy(function(t){t.namespace&&"position"==t.property.name&&this.draw()},this),"initialized.owl.carousel":o.proxy(function(t){t.namespace&&!this._initialized&&(this._core.trigger("initialize",null,"navigation"),this.initialize(),this.update(),this.draw(),this._initialized=!0,this._core.trigger("initialized",null,"navigation"))},this),"refreshed.owl.carousel":o.proxy(function(t){t.namespace&&this._initialized&&(this._core.trigger("refresh",null,"navigation"),this.update(),this.draw(),this._core.trigger("refreshed",null,"navigation"))},this)},this._core.options=o.extend({},s.Defaults,this._core.options),this.$element.on(this._handlers)};s.Defaults={nav:!1,navText:['<span class="screen-reader-text" aria-label="Previous">‹</span>','<span class="screen-reader-text" aria-label="Next">›</span>'],navSpeed:!1,navElement:'button type="button" role="presentation"',navContainer:!1,navContainerClass:"owl-nav",navClass:["owl-prev","owl-next"],slideBy:1,dotClass:"owl-dot",dotsClass:"owl-dots",dots:!0,dotsEach:!1,dotsData:!1,dotsSpeed:!1,dotsContainer:!1},s.prototype.initialize=function(){var t,i=this._core.settings;for(t in this._controls.$relative=(i.navContainer?o(i.navContainer):o("<div>").addClass(i.navContainerClass).appendTo(this.$element)).addClass("disabled"),this._controls.$previous=o("<"+i.navElement+">").addClass(i.navClass[0]).html(i.navText[0]).prependTo(this._controls.$relative).on("click",o.proxy(function(t){this.prev(i.navSpeed)},this)),this._controls.$next=o("<"+i.navElement+">").addClass(i.navClass[1]).html(i.navText[1]).appendTo(this._controls.$relative).on("click",o.proxy(function(t){this.next(i.navSpeed)},this)),i.dotsData||(this._templates=[o('<button role="button">').addClass(i.dotClass).append(o("<span>")).prop("outerHTML")]),this._controls.$absolute=(i.dotsContainer?o(i.dotsContainer):o("<div>").addClass(i.dotsClass).appendTo(this.$element)).addClass("disabled"),this._controls.$absolute.on("click","button",o.proxy(function(t){var e=o(t.target).parent().is(this._controls.$absolute)?o(t.target).index():o(t.target).parent().index();t.preventDefault(),this.to(e,i.dotsSpeed)},this)),this._overrides)this._core[t]=o.proxy(this[t],this)},s.prototype.destroy=function(){var t,e,i,s,n;for(t in n=this._core.settings,this._handlers)this.$element.off(t,this._handlers[t]);for(e in this._controls)"$relative"===e&&n.navContainer?this._controls[e].html(""):this._controls[e].remove();for(s in this.overides)this._core[s]=this._overrides[s];for(i in Object.getOwnPropertyNames(this))"function"!=typeof this[i]&&(this[i]=null)},s.prototype.update=function(){var t,e,i=this._core.clones().length/2,s=i+this._core.items().length,n=this._core.maximum(!0),o=this._core.settings,r=o.center||o.autoWidth||o.dotsData?1:o.dotsEach||o.items;if("page"!==o.slideBy&&(o.slideBy=Math.min(o.slideBy,o.items)),o.dots||"page"==o.slideBy)for(this._pages=[],t=i,e=0;t<s;t++){if(r<=e||0===e){if(this._pages.push({start:Math.min(n,t-i),end:t-i+r-1}),Math.min(n,t-i)===n)break;e=0,0}e+=this._core.mergers(this._core.relative(t))}},s.prototype.draw=function(){var t,e=this._core.settings,i=this._core.items().length<=e.items,s=this._core.relative(this._core.current()),n=e.loop||e.rewind;this._controls.$relative.toggleClass("disabled",!e.nav||i),e.nav&&(this._controls.$previous.toggleClass("disabled",!n&&s<=this._core.minimum(!0)),this._controls.$next.toggleClass("disabled",!n&&s>=this._core.maximum(!0))),this._controls.$absolute.toggleClass("disabled",!e.dots||i),e.dots&&(t=this._pages.length-this._controls.$absolute.children().length,e.dotsData&&0!==t?this._controls.$absolute.html(this._templates.join("")):0<t?this._controls.$absolute.append(new Array(t+1).join(this._templates[0])):t<0&&this._controls.$absolute.children().slice(t).remove(),this._controls.$absolute.find(".active").removeClass("active"),this._controls.$absolute.children().eq(o.inArray(this.current(),this._pages)).addClass("active"))},s.prototype.onTrigger=function(t){var e=this._core.settings;
17t.page={index:o.inArray(this.current(),this._pages),count:this._pages.length,size:e&&(e.center||e.autoWidth||e.dotsData?1:e.dotsEach||e.items)}},s.prototype.current=function(){var i=this._core.relative(this._core.current());return o.grep(this._pages,o.proxy(function(t,e){return t.start<=i&&t.end>=i},this)).pop()},s.prototype.getPosition=function(t){var e,i,s=this._core.settings;return"page"==s.slideBy?(e=o.inArray(this.current(),this._pages),i=this._pages.length,t?++e:--e,e=this._pages[(e%i+i)%i].start):(e=this._core.relative(this._core.current()),i=this._core.items().length,t?e+=s.slideBy:e-=s.slideBy),e},s.prototype.next=function(t){o.proxy(this._overrides.to,this._core)(this.getPosition(!0),t)},s.prototype.prev=function(t){o.proxy(this._overrides.to,this._core)(this.getPosition(!1),t)},s.prototype.to=function(t,e,i){var s;!i&&this._pages.length?(s=this._pages.length,o.proxy(this._overrides.to,this._core)(this._pages[(t%s+s)%s].start,e)):o.proxy(this._overrides.to,this._core)(t,e)},o.fn.owlCarousel.Constructor.Plugins.Navigation=s}(window.Zepto||window.jQuery,window,document),function(s,n,t,e){"use strict";var i=function(t){this._core=t,this._hashes={},this.$element=this._core.$element,this._handlers={"initialized.owl.carousel":s.proxy(function(t){t.namespace&&"URLHash"===this._core.settings.startPosition&&s(n).trigger("hashchange.owl.navigation")},this),"prepared.owl.carousel":s.proxy(function(t){if(t.namespace){var e=s(t.content).find("[data-hash]").addBack("[data-hash]").attr("data-hash");if(!e)return;this._hashes[e]=t.content}},this),"changed.owl.carousel":s.proxy(function(t){if(t.namespace&&"position"===t.property.name){var i=this._core.items(this._core.relative(this._core.current())),e=s.map(this._hashes,function(t,e){return t===i?e:null}).join();if(!e||n.location.hash.slice(1)===e)return;n.location.hash=e}},this)},this._core.options=s.extend({},i.Defaults,this._core.options),this.$element.on(this._handlers),s(n).on("hashchange.owl.navigation",s.proxy(function(t){var e=n.location.hash.substring(1),i=this._core.$stage.children(),s=this._hashes[e]&&i.index(this._hashes[e]);void 0!==s&&s!==this._core.current()&&this._core.to(this._core.relative(s),!1,!0)},this))};i.Defaults={URLhashListener:!1},i.prototype.destroy=function(){var t,e;for(t in s(n).off("hashchange.owl.navigation"),this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},s.fn.owlCarousel.Constructor.Plugins.Hash=i}(window.Zepto||window.jQuery,window,document),function(n,t,e,o){var r=n("<support>").get(0).style,a="Webkit Moz O ms".split(" "),i={transition:{end:{WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",transition:"transitionend"}},animation:{end:{WebkitAnimation:"webkitAnimationEnd",MozAnimation:"animationend",OAnimation:"oAnimationEnd",animation:"animationend"}}},s=function(){return!!c("transform")},h=function(){return!!c("perspective")},l=function(){return!!c("animation")};function c(t,i){var s=!1,e=t.charAt(0).toUpperCase()+t.slice(1);return n.each((t+" "+a.join(e+" ")+e).split(" "),function(t,e){if(r[e]!==o)return s=!i||e,!1}),s}function p(t){return c(t,!0)}(function(){return!!c("transition")})()&&(n.support.transition=new String(p("transition")),n.support.transition.end=i.transition.end[n.support.transition]),l()&&(n.support.animation=new String(p("animation")),n.support.animation.end=i.animation.end[n.support.animation]),s()&&(n.support.transform=new String(p("transform")),n.support.transform3d=h())}(window.Zepto||window.jQuery,window,document); 18(function($){$('.wpcf7-file').change(function(event){var idFile=event.target.id;var len=$('[data-file="'+idFile+'"]').length;if(len<1){$("#"+idFile).parent().parent().append('<a class="img-remove" id="removeImg" style="cursor: pointer" title="Remove Image" data-file="'+idFile+'"><i class="fa fa-trash"></i></a>');}});$(document).on("click","#removeImg",function(e){e.preventDefault();var idFile=e.currentTarget.getAttribute('data-file');var labelFile=$('#'+idFile).parent().parent().find('label');$("#"+idFile).val('');labelFile.html(labelFile.data('text'));$('[data-file="'+idFile+'"]').remove();});})(jQuery); 19!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):"undefined"!=typeof module&&module.exports?module.exports=t(require("jquery")):t(jQuery)}(function(l){var a=-1,n=-1,h=function(t){return parseFloat(t)||0},c=function(t){var e=l(t),a=null,n=[];return e.each(function(){var t=l(this),e=t.offset().top-h(t.css("margin-top")),o=0<n.length?n[n.length-1]:null;null===o?n.push(t):Math.floor(Math.abs(a-e))<=1?n[n.length-1]=o.add(t):n.push(t),a=e}),n},p=function(t){var e={byRow:!0,property:"height",target:null,remove:!1};return"object"==typeof t?l.extend(e,t):("boolean"==typeof t?e.byRow=t:"remove"===t&&(e.remove=!0),e)},u=l.fn.matchHeight=function(t){var e=p(t);if(e.remove){var o=this;return this.css(e.property,""),l.each(u._groups,function(t,e){e.elements=e.elements.not(o)}),this}return this.length<=1&&!e.target||(u._groups.push({elements:this,options:e}),u._apply(this,e)),this};u.version="master",u._groups=[],u._throttle=80,u._maintainScroll=!1,u._beforeUpdate=null,u._afterUpdate=null,u._rows=c,u._parse=h,u._parseOptions=p,u._apply=function(t,e){var i=p(e),o=l(t),a=[o],n=l(window).scrollTop(),r=l("html").outerHeight(!0),s=o.parents().filter(":hidden");return s.each(function(){var t=l(this);t.data("style-cache",t.attr("style"))}),s.css("display","block"),i.byRow&&!i.target&&(o.each(function(){var t=l(this),e=t.css("display");"inline-block"!==e&&"flex"!==e&&"inline-flex"!==e&&(e="block"),t.data("style-cache",t.attr("style")),t.css({display:e,"padding-top":"0","padding-bottom":"0","margin-top":"0","margin-bottom":"0","border-top-width":"0","border-bottom-width":"0",height:"100px",overflow:"hidden"})}),a=c(o),o.each(function(){var t=l(this);t.attr("style",t.data("style-cache")||"")})),l.each(a,function(t,e){var o=l(e),n=0;if(i.target)n=i.target.outerHeight(!1);
19else{if(i.byRow&&o.length<=1)return void o.css(i.property,"");o.each(function(){var t=l(this),e=t.attr("style"),o=t.css("display");"inline-block"!==o&&"flex"!==o&&"inline-flex"!==o&&(o="block");var a={display:o};a[i.property]="",t.css(a),t.outerHeight(!1)>n&&(n=t.outerHeight(!1)),e?t.attr("style",e):t.css("display","")})}o.each(function(){var t=l(this),e=0;i.target&&t.is(i.target)||("border-box"!==t.css("box-sizing")&&(e+=h(t.css("border-top-width"))+h(t.css("border-bottom-width")),e+=h(t.css("padding-top"))+h(t.css("padding-bottom"))),t.css(i.property,n-e+"px"))})}),s.each(function(){var t=l(this);t.attr("style",t.data("style-cache")||null)}),u._maintainScroll&&l(window).scrollTop(n/r*l("html").outerHeight(!0)),this},u._applyDataApi=function(){var o={};l("[data-match-height], [data-mh]").each(function(){var t=l(this),e=t.attr("data-mh")||t.attr("data-match-height");o[e]=e in o?o[e].add(t):t}),l.each(o,function(){this.matchHeight(!0)})};var i=function(t){u._beforeUpdate&&u._beforeUpdate(t,u._groups),l.each(u._groups,function(){u._apply(this.elements,this.options)}),u._afterUpdate&&u._afterUpdate(t,u._groups)};u._update=function(t,e){if(e&&"resize"===e.type){var o=l(window).width();if(o===a)return;a=o}t?-1===n&&(n=setTimeout(function(){i(e),n=-1},u._throttle)):i(e)},l(u._applyDataApi);var t=l.fn.on?"on":"bind";l(window)[t]("load",function(t){u._update(!1,t)}),l(window)[t]("resize orientationchange",function(t){u._update(!0,t)})}); 20(function($){if($('.wp-block-contact-form-7-contact-form-selector').length>0){$('.subject').children('select').change(function(){$("textarea[name='informations']").val("");$("input[name='firstname']").val("");$("input[name='lastname']").val("");$("input[name='email']").val("");$("input[name='job']").val("");$("input[name='company']").val("");$("select[name='country']").prop('selectedIndex',0);$("textarea[name='message']").val("");if($('.wpcf7-response-output')[0].innerHTML!=''){$('form').removeClass('invalid');$('form').addClass('init');$('form').attr('data-status','init');$('.wpcf7-not-valid-tip').remove();$('.wpcf7-response-output').html('');$('.wpcf7-not-valid').removeClass('wpcf7-not-valid');}});const rowFile=document.querySelector('.upload-zone');if(rowFile){const fileInput=rowFile.querySelector('input[name="user_attachment"]');const fileListEl=rowFile.querySelector('.upload-file-list');if(!fileInput||!fileListEl)return;fileInput.setAttribute('multiple','');fileInput.setAttribute('name','user_attachment[]');const MAX_FILES=10;const MAX_TOTAL_SIZE=20*1024*1024;let currentFiles=[];function formatSize(bytes){return(bytes/(1024*1024)).toFixed(20)+' Mo';} 21function totalSize(){return currentFiles.reduce(function(sum,f){return sum+f.size;},0);} 22function syncInput(){const dt=new DataTransfer();currentFiles.forEach(function(f){dt.items.add(f);});fileInput.files=dt.files;} 23function renderList(){fileListEl.innerHTML='';currentFiles.forEach(function(file,index){const li=document.createElement('li');li.className='upload-file-item';li.innerHTML='<span class="file-name">'+file.name+'</span>'+'<span class="file-size">'+formatSize(file.size)+'</span>'+'<button type="button" class="file-remove" data-index="'+index+'" aria-label="Supprimer ce fichier">×</button>';fileListEl.appendChild(li);});} 24function addFiles(newFiles){let rejectedCount=false;let rejectedSize=false;for(let i=0;i<newFiles.length;i++){const file=newFiles[i];if(currentFiles.length>=MAX_FILES){rejectedCount=true;break;} 25if(totalSize()+file.size>MAX_TOTAL_SIZE){rejectedSize=true;continue;} 26currentFiles.push(file);} 27if(rejectedCount)alert('10 fichiers maximum.');if(rejectedSize)alert('La taille totale des fichiers ne peut pas dépasser 20 Mo.');syncInput();renderList();} 28function removeFile(index){currentFiles.splice(index,1);syncInput();renderList();} 29rowFile.addEventListener('click',function(e){if(e.target.closest('.file-remove'))return;fileInput.click();});fileListEl.addEventListener('click',function(e){const btn=e.target.closest('.file-remove');if(!btn)return;e.stopPropagation();removeFile(parseInt(btn.dataset.index,10));});fileInput.addEventListener('change',function(){addFiles(Array.from(this.files));});['dragenter','dragover'].forEach(function(evt){rowFile.addEventListener(evt,function(e){e.preventDefault();e.stopPropagation();rowFile.classList.add('dragover');});});['dragleave','drop'].forEach(function(evt){rowFile.addEventListener(evt,function(e){e.preventDefault();e.stopPropagation();rowFile.classList.remove('dragover');});});rowFile.addEventListener('drop',function(e){addFiles(Array.from(e.dataTransfer.files));});document.addEventListener('input',function(e){if(e.target.matches('input[name="rpps"]')){e.target.value=e.target.value.replace(/[^0-9]/g,'');}});document.addEventListener('wpcf7mailsent',function(){currentFiles=[];syncInput();renderList();});}}})(jQuery); 30var biocodexOptions={"screenReaderText":{"expand":"expand child menu","collapse":"collapse child menu"},"rtl":""}; 31jQuery(function(){function e(){jQuery("iframe").each(function(){jQuery(this).css("height",9*jQuery(this).width()/16)})}e(),jQuery(window).resize(e)}
31),jQuery(document).ready(function(n){var e=n(".menu-item-depth-3 .menu-item-has-children.menu-item-depth-2"),i=n(".menu-item-depth-3 .sub-menu"),e=(e.each(function(){n(this).hover(function(){var e=n(this).find(".sub-menu-has-children"),t=n(this).prevAll(),o=0;t.each(function(){o-=n(this).outerHeight()}),e.css("top",o),e.css("min-height",i.outerHeight())})}),document.querySelector(".wpcf7-form")),e=(e&&(files=e.querySelectorAll(".inputfile")).length&&(Array.prototype.forEach.call(files,function(e){var t=e.parentNode.nextElementSibling,o=t.innerHTML;t.dataset.text=o,e.addEventListener("change",function(e){e=e.target.value.split("\\").pop();t.innerHTML=e||o})}),e.addEventListener("wpcf7mailsent",e=>{files.forEach(function(e){e.value=null,e.parentNode.nextElementSibling.innerHTML=e.parentNode.nextElementSibling.dataset.text})},!1)),n("#navigation-main-links .menu-item-depth-2.menu-item-has-children")),t=(e.mouseover(function(){n(this).parent().css("min-height",n(this).find(".sub-menu-has-children").height()+"px")}),e.mouseout(function(){n(this).parent().css("min-height","auto")}),n("#filter")),o=(t.length&&((e=localStorage.getItem("categoryId"))&&(n("#biocodex_category").val(e),localStorage.removeItem("categoryId")),s(),t.change(function(){return n("#page-nb").val(1),s(),!1})),n("#search-form"));function a(){n(".loader").fadeIn();var e=o.serialize();n.post(o.attr("action"),e,function(e){n(".search_container").empty().append(e),n(".search_container .pagination li.active").on("click",function(){n("#page-nb").val(n(this).attr("p")),a()}),n(".loader").fadeOut()})}function s(){n(".loader").fadeIn();var e=t.serialize();n.post(t.attr("action"),e,function(e){n(".universal_container").empty().append(e),n(".with-image").each(function(e){n(this).prev(".no-image.odd")&&n(this).prev(".no-image.odd").css({flex:"0 0 100%","max-width":"100%"})}),n(".no-image.odd:last-of-type").css({flex:"0 0 100%","max-width":"100%"}),n(".universal_container .pagination li.active").on("click",function(){n("#page-nb").val(n(this).attr("p")),s()}),n(".category-tag").on("click",function(e){return n("#page-nb").val(1),n("#biocodex_category").val(n(this).data("id")),s(),e.preventDefault(),!1}),n(".loader").fadeOut()})}o.length&&a(),o.on("input keyup change submit ",function(e){n("h1.green-underline").text(n("#search-form-input").val()),n("#page-nb").val(1),e.preventDefault(),a()})}),function(n){function e(){o.owlCarousel({autoHeight:!0,margin:0,items:1,nav:!0,dots:!0,autoplay:!0,autoplayTimeout:4e3,autoplayHoverPause:!0,itemsMobile:!1,loop:!0,responsive:{768:{items:2,nav:!1,dots:!0},1024:{items:3,nav:!0,dots:!0}}}),o.addClass("owl-carousel"),n("#product-content-section .owl-dot").on("click",function(){o.trigger("to.owl.carousel",[n(this).index(),300])})}function t(){var e=n(".product-slider");e.trigger("destroy.owl.carousel"),e.removeClass("owl-carousel")}var o,i,a,s,r,l;function c(e){var t=n("<button />",{class:"dropdown-toggle","aria-expanded":!1}).append(n("<span />",{class:"screen-reader-text",text:biocodexOptions.screenReaderText.expand}));e.find(".menu-item-has-children > a, .page_item_has_children > a").after(t),e.find(".current-menu-ancestor > button").addClass("toggled-on"),e.find(".current-menu-ancestor > .sub-menu").addClass("toggled-on"),e.find(".menu-item-has-children, .page_item_has_children").attr("aria-haspopup","true"),e.find(".dropdown-toggle").click(function(e){var t=n(this),o=t.find(".screen-reader-text");e.preventDefault(),t.toggleClass("toggled-on"),t.attr("aria-expanded","false"===t.attr("aria-expanded")?"true":"false"),o.text(o.text()===biocodexOptions.screenReaderText.expand?biocodexOptions.screenReaderText.collapse:biocodexOptions.screenReaderText.expand)})}function d(){910<=window.innerWidth?(n(document.body).on("touchstart.biocodex",function(e){n(e.target).closest(".main-navigation li").length||n(".main-navigation li").removeClass("focus"),n(e.target).closest(".top-navigation li").length||n(".top-navigation li").removeClass("focus")}),s.find(".menu-item-has-children > a, .page_item_has_children > a").on("touchstart.biocodex",function(e){var t=n(this).parent("li");t.hasClass("focus")||(e.preventDefault(),t.toggleClass("focus"),t.siblings(".focus").removeClass("focus"))}),siteNavigationTop.find(".menu-item-has-children > a, .page_item_has_children > a").on("touchstart.biocodex",function(e){var t=n(this).parent("li");t.hasClass("focus")||(e.preventDefault(),t.toggleClass("focus"),t.siblings(".focus").removeClass("focus"))})):(s.find(".menu-item-has-children > a, .page_item_has_children > a").unbind("touchstart.biocodex"),siteNavigationTop.find(".menu-item-has-children > a, .page_item_has_children > a").unbind("touchstart.biocodex"))}n.isFunction(n.fn.owlCarousel)&&(r={autoHeight:!0,margin:0,items:1,nav:!0,dots:!1,autoplay:r=1<n(".main-slider").children("div").length,autoplayTimeout:4e3,loop:r,onInitialized:function(e){e.item.count<=1&&n(".owl-carousel .owl-nav").hide()}},n(".main-slider").owlCarousel(r),o=n(".product-slider"),i=n(".product-slider article").length,n(window).resize(function(){(425<n(window).width()&&3<i?e:t)()}),(425<n(window).width()&&3<i?e:t)(),a={autoHeight:!0,margin:0,items:1,nav:!1,dots:!0,autoplay:!0,autoplayTimeout:4e3,auto
31playHoverPause:!0,itemsMobile:!1,loop:!0},n(".child-product .child-slider").each(function(){n(this).owlCarousel(a)})),n.isFunction(n.fn.matchHeight)&&(n("#featured-content-section .entry-container").matchHeight(),n("#actuality-section .hentry-inner").matchHeight({byRow:0}),n(".find-more .child-page").matchHeight({byRow:0})),n(function(){n(window).scroll(function(){100<n(this).scrollTop()?(n("#scrollup").fadeIn("slow"),n("#scrollup").css("display","block")):(n("#scrollup").fadeOut("slow"),n("#scrollup").css("display","none"))}),n("#scrollup").on("click",function(){return n("body, html").animate({scrollTop:0},500),!1}),n.isFunction(n.fn.fitVids)&&n(".hentry, .widget").fitVids(),n(".collapse.show").each(function(){n(this).prev(".card-header").find(".icon").addClass("icon-minus").removeClass("icon-plus")}),n(".collapse").on("show.bs.collapse",function(){n(this).prev(".card-header").find(".icon").removeClass("icon-plus").addClass("icon-minus")}).on("hide.bs.collapse",function(){n(this).prev(".card-header").find(".icon").removeClass("icon-minus").addClass("icon-plus")})}),n(function(){n(document).ready(function(){var e;!0==((e=document.createElement("div")).innerHTML="<svg/>","https://www.w3.org/2000/svg"===("undefined"!=typeof SVGRect&&e.firstChild&&e.firstChild.namespaceURI))&&(document.documentElement.className=document.documentElement.className.replace(/(\s*)no-svg(\s*)/,"$1svg$2"))})}),n(".search-toggle").click(function(){n(this).toggleClass("open"),n(this).attr("aria-expanded","false"===n(this).attr("aria-expanded")?"true":"false"),n(".search-wrapper").toggle()}),menuToggleTop=n("#menu-toggle-top"),siteTopMenu=n("#top-main-wrapper"),c(siteNavigationTop=n("#site-top-navigation")),menuToggleTop.length&&(menuToggleTop.add(siteNavigationTop).attr("aria-expanded","false"),menuToggleTop.on("click",function(){n(this).add(siteTopMenu).toggleClass("toggled-on selected"),n(this).add(siteNavigationTop).attr("aria-expanded","false"===n(this).add(siteNavigationTop).attr("aria-expanded")?"true":"false")})),c(n(".main-navigation")),r=n("#site-header"),g=r.find(".menu-toggle"),r.find("#site-header-menu"),s=r.find("#site-navigation"),r=r.find("#footer-navigation"),l=0,g.length&&(g.on("click.biocodex",function(){n(this).add(s).attr("aria-expanded","false"===n(this).add(s).attr("aria-expanded")?"true":"false")}),g.add(s).attr("aria-expanded","false"),g.add(r).attr("aria-expanded","false"),g.on("click.biocodex",function(){var e=n(this).parents(".menu-wrapper"),e=(n(".menu-toggle").not(this).removeClass("selected"),n(".menu-wrapper").not(e).removeClass("is-open"),n(this).toggleClass("selected"),n(e).toggleClass("is-open"),n(e).hasClass("is-open"));e&&!jQuery("body").hasClass("menu-open")?(0===l&&(l=n("body").scrollTop()),n("body").addClass("menu-open")):e||(n("body").removeClass("menu-open"),n("body").scrollTop(l),l=0)}),n(document).on("click touchstart",function(){n("body").removeClass("menu-open"),n(".menu-toggle").removeClass("selected"),n(".menu-wrapper").removeClass("is-open")}),n(".site-header-menu, .menu-inside-wrapper, .menu-toggle, .dropdown-toggle, .search-field, #site-navigation, #social-search-wrapper, #footer-navigation .search-submit").on("click touchstart",function(e){e.stopPropagation()})),menuToggleFooter=n("#menu-toggle-footer"),siteFooterMenu=n("#footer-menu-wrapper"),c(siteNavigationFooter=n("#site-footer-navigation")),menuToggleFooter.length&&(menuToggleFooter.add(siteNavigationFooter).attr("aria-expanded","false"),menuToggleFooter.on("click",function(){n(this).add(siteFooterMenu).toggleClass("toggled-on selected"),n(this).add(siteNavigationFooter).attr("aria-expanded","false"===n(this).add(siteNavigationFooter).attr("aria-expanded")?"true":"false")})),"ontouchstart"in window&&(n(window).on("resize.biocodex",d),d()),s.find("a").on("focus.biocodex blur.biocodex",function(){n(this).parents(".menu-item").toggleClass("focus")}),siteNavigationTop.find("a").on("focus.biocodex blur.biocodex",function(){n(this).parents(".menu-item").toggleClass("focus")}),n(".main-navigation button.dropdown-toggle").click(function(){n(this).toggleClass("active"),n(this).parent().find(".children, .sub-menu").toggleClass("toggled-on")}
31),n(".top-navigation button.dropdown-toggle").click(function(){n(this).toggleClass("active"),n(this).parent().find(".children, .sub-menu").toggleClass("toggled-on")}),n(document).ready(function(){n(".toggle-top").on("click",function(e){n(this).toggleClass("toggled-on")}),n("#search-toggle").on("click",function(){n("#header-menu-social, #share-toggle").removeClass("toggled-on"),n("#header-search-container").toggleClass("toggled-on")}),n("#share-toggle").on("click",function(e){e.stopPropagation(),n("#header-search-container, #search-toggle").removeClass("toggled-on"),n("#header-menu-social").toggleClass("toggled-on")}),n("#social-search-toggle").on("click",function(e){n(this).toggleClass("open"),n(this).attr("aria-expanded","true"),n(".search-form").toggle(),n(".search-form input").focus()}),n("#social-search-cancel").on("click",function(e){e.stopPropagation(),n("#social-search-toggle").attr("aria-expanded","false"),n(".search-form").toggle()}),n("body").on("click",function(e){var t=n(".search-form"),o=n("#social-search-toggle"),o=("true"===o.attr("aria-expanded")&&0===n(e.target).parents("#navigation-main-search").length&&(o.attr("aria-expanded","false"),t.toggle()),n(".modal"));0===n(e.target).parents(".modal").length&&o.removeClass("show")}),n("#navigation-mobile-burger").on("click",function(e){e.stopPropagation(),n(".navigation-mobile-content").toggle(),n("#navigation-mobile-logo").toggle(),n("#navigation-mobile").toggleClass("navigation-menu-open"),n("#navigation-mobile").addClass("open-menu")}),n("#navigation-mobile-cancel").on("click",function(e){e.stopPropagation(),n(".navigation-mobile-content").toggle(),n("#navigation-mobile-logo").toggle(),n("#navigation-mobile").toggleClass("navigation-menu-open"),n("#navigation-mobile").removeClass("open-menu")}),n("#navigation-mobile-links .menu-item-has-children>a").on("click",function(e){e.offsetX>e.target.offsetWidth-100&&(e.stopPropagation(),e.preventDefault(),n(this).parent().toggleClass("mobile-element-accordion-open"))}),n("#navigation-modal .close-modal").click(function(){n("#navigation-modal .modal").toggleClass("show")}),n("#navigation-modal-mobile .close-modal").click(function(){n("#navigation-modal-mobile .modal").toggleClass("show")}),n(".navigation-top-left .global").click(function(e){e.preventDefault();n("#modal-content"),n(this).attr("href");return n("#navigation-modal .modal").addClass("show",1e3,"easeOutSine"),!1}),n("#open-modal-mobile").click(function(e){e.preventDefault();n("#modal-content-mobile"),n(this).attr("href");return n("#navigation-modal-mobile .modal").addClass("show",1e3,"easeOutSine"),!1}),n(".modal-continent h2").on("click",function(e){e.stopPropagation(),e.preventDefault(),n(this).parent().find(".modal-country-list").toggle()})});function u(){46<n(window).scrollTop()?n("body").addClass("menu-fixed"):n("body").removeClass("menu-fixed")}u(),n(window).scroll(function(){u()}),n(window).on("load resize",function(){768<n(window).width()?(e=n("#team-content-section .owl-item.active .entry-container").outerHeight()/2,n("#team-content-section .owl-item.active .entry-container").css("margin-top",-e),t=n("#team-content-section .owl-item.active .post-thumbnail").outerHeight()+e+42,n("#team-content-section .owl-stage-outer.owl-height").css("height",t)):(e=0,n("#team-content-section .owl-item.active .entry-container").css("margin-top",e));var e,t=n(".team-content-wrapper .owl-item.active .entry-container").innerHeight()+42;n(".team-content-wrapper .owl-nav").css("bottom",t)});var g=n(window).width();1200<g&&n(window).on("load resize",function(){var e=n(".team-content-wrapper .owl-item.active .post-thumbnail").innerHeight()+35;n(".team-content-wrapper #team-dots").css("top",e)}),768<g&&n(window).on("load resize",function(){}),jQuery(document).ready(function(){jQuery(document.body),jQuery(window).on("load.biocodex resize.biocodex",function(){window.innerWidth<1200&&(jQuery("#site-header-menu .menu-inside-wrapper").on("focusout",function(){var e=jQuery(this);setTimeout(function(){e.find(":focus").length||jQuery("#menu-toggle").trigger("click")},0)}),jQuery("#top-menu-wrapper .menu-inside-wrapper").on("focusout",function(){var e=jQuery(this);setTimeout(function(){e.find(":focus").length||jQuery("#menu-toggle-top").trigger("click")},0)})),767<window.innerWidth&&jQuery("#primary-search-wrapper").on("focusout",function(){var e=jQuery(this);setTimeout(function(){e.find(":focus").length||jQuery("#social-search-toggle").trigger("click")},0)})})}),n.isFunction(n.fn.masonry)&&(($blocksPortfolio=n(".grid")).imagesLoaded(function(){$blocksPortfolio.masonry({itemSelector:".grid-item",transitionDuration:"1s"}),n(".grid-item").fadeIn(),$blocksPortfolio.find(".grid-item").animate({opacity:1})}),n(function(){setTimeout(function(){$blocksPortfolio.masonry()},2e3)}),n(window).resize(function(){$blocksPortfolio.masonry()}))}(jQuery);
vendor: 63,426 bytes, lines 32-37
32/*! 33 * Bootstrap v4.6.0 (https://getbootstrap.com/) 34 * Copyright 2011-2021 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) 35 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) 36 */ 37!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("jquery"),require("popper.js")):"function"==typeof define&&define.amd?define(["exports","jquery","popper.js"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).bootstrap={},t.jQuery,t.Popper)}(this,(function(t,e,n){"use strict";function i(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var o=i(e),a=i(n);function s(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function l(t,e,n){return e&&s(t.prototype,e),n&&s(t,n),t}function r(){return(r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}).apply(this,arguments)}function u(t){var e=this,n=!1;return o.default(this).one(d.TRANSITION_END,(function(){n=!0})),setTimeout((function(){n||d.triggerTransitionEnd(e)}),t),this}var d={TRANSITION_END:"bsTransitionEnd",getUID:function(t){do{t+=~~(1e6*Math.random())}while(document.getElementById(t));return t},getSelectorFromElement:function(t){var e=t.getAttribute("data-target");if(!e||"#"===e){var n=t.getAttribute("href");e=n&&"#"!==n?n.trim():""}try{return document.querySelector(e)?e:null}catch(t){return null}},getTransitionDurationFromElement:function(t){if(!t)return 0;var e=o.default(t).css("transition-duration"),n=o.default(t).css("transition-delay"),i=parseFloat(e),a=parseFloat(n);return i||a?(e=e.split(",")[0],n=n.split(",")[0],1e3*(parseFloat(e)+parseFloat(n))):0},reflow:function(t){return t.offsetHeight},triggerTransitionEnd:function(t){o.default(t).trigger("transitionend")},supportsTransitionEnd:function(){return Boolean("transitionend")},isElement:function(t){return(t[0]||t).nodeType},typeCheckConfig:function(t,e,n){for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)){var o=n[i],a=e[i],s=a&&d.isElement(a)?"element":null===(l=a)||"undefined"==typeof l?""+l:{}.toString.call(l).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(o).test(s))throw new Error(t.toUpperCase()+': Option "'+i+'" provided type "'+s+'" but expected type "'+o+'".')}var l},findShadowRoot:function(t){if(!document.documentElement.attachShadow)return null;if("function"==typeof t.getRootNode){var e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?d.findShadowRoot(t.parentNode):null},jQueryDetection:function(){if("undefined"==typeof o.default)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var t=o.default.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1===t[0]&&9===t[1]&&t[2]<1||t[0]>=4)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}};d.jQueryDetection(),o.default.fn.emulateTransitionEnd=u,o.default.event.special[d.TRANSITION_END]={bindType:"transitionend",delegateType:"transitionend",handle:function(t){if(o.default(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}};var f="alert",c=o.default.fn[f],h=function(){function t(t){this._element=t}var e=t.prototype;return e.close=function(t){var e=this._element;t&&(e=this._getRootElement(t)),this._triggerCloseEvent(e).isDefaultPrevented()||this._removeElement(e)},e.dispose=function(){o.default.removeData(this._element,"bs.alert"),this._element=null},e._getRootElement=function(t){var e=d.getSelectorFromElement(t),n=!1;return e&&(n=document.querySelector(e)),n||(n=o.default(t).closest(".alert")[0]),n},e._triggerCloseEvent=function(t){var e=o.default.Event("close.bs.alert");return o.default(t).trigger(e),e},e._removeElement=function(t){var e=this;if(o.default(t).removeClass("show"),o.default(t).hasClass("fade")){var n=d.getTransitionDurationFromElement(t);o.default(t).one(d.TRANSITION_END,(function(n){return e._destroyElement(t,n)})).emulateTransitionEnd(n)}else this._destroyElement(t)},e._destroyElement=function(t){o.default(t).detach().trigger("closed.bs.alert").remove()},t._jQueryInterface=function(e){return this.each((function(){var n=o.default(this),i=n.data("bs.alert");i||(i=new t(this),n.data("bs.alert",i)),"close"===e&&i[e](this)}))},t._handleDismiss=function(t){return function(e){e&&e.preventDefault(),t.close(this)}},l(t,null,[{key:"VERSION",get:function(){return"4.6.0"}}]),t}();o.default(document).on("click.bs.alert.data-api",'[data-dismiss="alert"]',h._handleDismiss(new h)),o.default.fn[f]=h._jQueryInterface,o.default.fn[f].Constructor=h,o.default.fn[f].noConflict=function(){return o.default.fn[f]=c,h._jQueryInterface};var g=o.default.fn.button,m=function(){function t(t){this._element=t,this.shouldAvoidTriggerChange=!1}var e=t.prototype;return e.toggle=function(){var t=!0,e=!0,n=o.default(this._element).closest('[data-toggle="buttons"]')[0];if(n){var i=this._element.querySelector('input:not([type="hidden"])');if(i){if("radio"===i.type)if(i.checked&&this._element.classList.contains("active"))t=!1;else{var a=n.querySelector(".active");a&&o.default(a).removeClass("active")}t&&("checkbox"!==i.type&&"radio"!==i.type||(i.checked=!this._element.classList.contains("active")),this.shouldAvoidTriggerChange||o.default(i).trigger("change")),i.focus(),e=!1}}this._element.hasAttribute("disabled")||this._element.classList.contains("disabled")||(e&&this._element.setAttribute("aria-pressed",!this._element.classList.contains("active")),t&&o.default(this._element).toggleClass("active"))},e.dispose=function(){o.default.removeData(this._element,"bs.button"),this._element=null},t._jQueryInterface=function(e,n){return this.each((function(){var i=o.default(this),a=i.data("bs.button");a||(a=new t(this),i.data("bs.button",a)),a.shouldAvoidTriggerChange=n,"toggle"===e&&a[e]()}))},l(t,null,[{key:"VERSION",get:function(){return"4.6.0"}}]),t}();o.default(document).on("click.bs.button.data-api",'[data-toggle^="button"]',(function(t){var e=t.target,n=e;if(o.default(e).hasClass("btn")||(e=o.default(e).closest(".btn")[0]),!e||e.hasAttribute("disabled")||e.classList.contains("disabled"))t.preventDefault();else{var i=e.querySelector('input:not([type="hidden"])');if(i&&(i.hasAttribute("disabled")||i.classList.contains("disabled")))return void t.preventDefault();"INPUT"!==n.tagName&&"LABEL"===e.tagName||m._jQueryInterface.call(o.default(e),"toggle","INPUT"===n.tagName)}})).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',(function(t){var e=o.default(t.target).closest(".btn")[0];o.default(e).toggleClass("focus",/^focus(in)?$/.test(t.type))})),o.default(window).on("load.bs.button.data-api",(function(){for(var t=[].slice.call(document.querySelectorAll('[data-toggle="buttons"] .btn')),e=0,n=t.length;e<n;e++){var i=t[e],o=i.querySelector('input:not([type="hidden"])');o.checked||o.hasAttribute("checked")?i.classList.add("active"):i.classList.remove("active")}for(var a=0,s=(t=[].slice.call(document.querySelectorAll('[data-toggle="button"]'))).length;a<s;a++){var l=t[a];"true"===l.getAttribute("aria-pressed")?l.classList.add("active"):l.classList.remove("active")}})),o.default.fn.button=m._jQueryInterface,o.default.fn.button.Constructor=m,o.default.fn.button.noConflict=function(){return o.default.fn.button=g,m._jQueryInterface};var p="carousel",_=".bs.carousel",v=o.default.fn[p],b={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},y={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},E={TOUCH:"touch",PEN:"pen"},w=function(){function t(t,e){this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this.touchStartX=0,this.touchDeltaX=0,this._config=this._getConfig(e),this._element=t,this._indicatorsElement=this._element.querySelector(".carousel-indicators"),this._touchSupported="ontouchstart"in document.documentElement||navigator.maxTouchPoints>0,this._pointerEvent=Boolean(window.PointerEvent||window.MSPointerEvent),this._addEventListeners()}var e=t.prototype;return e.next=function(){this._isSliding||this._slide("next")},e.nextWhenVisible=function(){var t=o.default(this._element);!document.hidden&&t.is(":visible")&&"hidden"!==t.css("visibility")&&this.next()},e.prev=function(){this._isSliding||this._slide("prev")},e.pause=function(t){t||(this._isPaused=!0),this._element.querySelector(".carousel-item-next, .carousel-item-prev")&&(d.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},e.cycle=function(t){t||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._updateInterval(),this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},e.to=function(t){var e=this;this._activeElement=this._element.querySelector(".active.carousel-item");var n=this._getItemIndex(this._activeElement);if(!(t>this._items.length-1||t<0))if(this._isSliding)o.default(this._element).one("slid.bs.carousel",(function(){return e.to(t)}));else{if(n===t)return this.pause(),void this.cycle();var i=t>n?"next":"prev";this._slide(i,this._items[t])}},e.dispose=function(){o.default(this._element).off(_),o.default.removeData(this._element,"bs.carousel"),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},e._getConfig=function(t){return t=r({},b,t),d.typeCheckConfig(p,t,y),t},e._handleSwipe=function(){var t=Math.abs(this.touchDeltaX);if(!(t<=40)){var e=t/this.touchDeltaX;this.touchDeltaX=0,e>0&&this.prev(),e<0&&this.next()}},e._addEventListeners=function(){var t=this;this._config.keyboard&&o.default(this._element).on("keydown.bs.carousel",(function(e){return t._keydown(e)})),"hover"===this._config.pause&&o.default(this._element).on("mouseenter.bs.carousel",(function(e){return t.pause(e)})).on("mouseleave.bs.carousel",(function(e){return t.cycle(e)})),this._config.touch&&this._addTouchEventListeners()},e._addTouchEventListeners=function(){var t=this;if(this._touchSupported){var e=function(e){t._pointerEvent&&E[e.originalEvent.pointerType.toUpperCase()]?t.touchStartX=e.originalEvent.clientX:t._pointerEvent||(t.touchStartX=e.originalEvent.touches[0].clientX)},n=function(e){t._pointerEvent&&E[e.originalEvent.pointerType.toUpperCase()]&&(t.touchDeltaX=e.originalEvent.clientX-t.touchStartX),t._handleSwipe(),"hover"===t._config.pause&&(t.pause(),t.touchTimeout&&clearTimeout(t.touchTimeout),t.touchTimeout=setTimeout((function(e){return t.cycle(e)}),500+t._config.interval))};o.default(this._element.querySelectorAll(".carousel-item img")).on("dragstart.bs.carousel",(function(t){return t.preventDefault()})),this._pointerEvent?(o.default(this._element).on("pointerdown.bs.carousel",(function(t){return e(t)})),o.default(this._element).on("pointerup.bs.carousel",(function(t){return n(t)})),this._element.classList.add("pointer-event")):(o.default(this._element).on("touchstart.bs.carousel",(function(t){return e(t)})),o.default(this._element).on("touchmove.bs.carousel",(function(e){return function(e){e.originalEvent.touches&&e.originalEvent.touches.length>1?t.touchDeltaX=0:t.touchDeltaX=e.originalEvent.touches[0].clientX-t.touchStartX}(e)})),o.default(this._element).on("touchend.bs.carousel",(function(t){return n(t)})))}},e._keydown=function(t){if(!/input|textarea/i.test(t.target.tagName))switch(t.which){case 37:t.preventDefault(),this.prev();break;case 39:t.preventDefault(),this.next()}},e._getItemIndex=function(t){return this._items=t&&t.parentNode?[].slice.call(t.parentNode.querySelectorAll(".carousel-item")):[],this._items.indexOf(t)},e._getItemByDirection=function(t,e){var n="next"===t,i="prev"===t,o=this._getItemIndex(e),a=this._items.length-1;if((i&&0===o||n&&o===a)&&!this._config.wrap)return e;var s=(o+("prev"===t?-1:1))%this._items.length;return-1===s?this._items[this._items.length-1]:this._items[s]},e._triggerSlideEvent=function(t,e){var n=this._getItemIndex(t),i=this._getItemIndex(this._element.querySelector(".active.carousel-item")),a=o.default.Event("slide.bs.carousel",{relatedTarget:t,direction:e,from:i,to:n});return o.default(this._element).trigger(a),a},e._setActiveIndicatorElement=function(t){if(this._indicatorsElement){var e=[].slice.call(this._indicatorsElement.querySelectorAll(".active"));o.default(e).removeClass("active");var n=this._indicatorsElement.children[this._getItemIndex(t)];n&&o.default(n).addClass("active")}},e._updateInterval=function(){var t=this._activeElement||this._element.querySelector(".active.carousel-item");if(t){var e=parseInt(t.getAttribute("data-interval"),10);e?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=e):this._config.interval=this._config.defaultInterval||this._config.interval}},e._slide=function(t,e){var n,i,a,s=this,l=this._element.querySelector(".active.carousel-item"),r=this._getItemIndex(l),u=e||l&&this._getItemByDirection(t,l),f=this._getItemIndex(u),c=Boolean(this._interval);if("next"===t?(n="carousel-item-left",i="carousel-item-next",a="left"):(n="carousel-item-right",i="carousel-item-prev",a="right"),u&&o.default(u).hasClass("active"))this._isSliding=!1;else if(!this._triggerSlideEvent(u,a).isDefaultPrevented()&&l&&u){this._isSliding=!0,c&&this.pause(),this._setActiveIndicatorElement(u),this._activeElement=u;var h=o.default.Event("slid.bs.carousel",{relatedTarget:u,direction:a,from:r,to:f});if(o.default(this._element).hasClass("slide")){o.default(u).addClass(i),d.reflow(u),o.default(l).addClass(n),o.default(u).addClass(n);var g=d.getTransitionDurationFromElement(l);o.default(l).one(d.TRANSITION_END,(function(){o.default(u).removeClass(n+" "+i).addClass("active"),o.default(l).removeClass("active "+i+" "+n),s._isSliding=!1,setTimeout((function(){return o.default(s._element).trigger(h)}),0)})).emulateTransitionEnd(g)}else o.default(l).removeClass("active"),o.default(u).addClass("active"),this._isSliding=!1,o.default(this._element).trigger(h);c&&this.cycle()}},t._jQueryInterface=function(e){return this.each((function(){var n=o.default(this).data("bs.carousel"),i=r({},b,o.default(this).data());"object"==typeof e&&(i=r({},i,e));var a="string"==typeof e?e:i.slide;if(n||(n=new t(this,i),o.default(this).data("bs.carousel",n)),"number"==typeof e)n.to(e);else if("string"==typeof a){if("undefined"==typeof n[a])throw new TypeError('No method named "'+a+'"');n[a]()}else i.interval&&i.ride&&(n.pause(),n.cycle())}))},t._dataApiClickHandler=function(e){var n=d.getSelectorFromElement(this);if(n){var i=o.default(n)[0];if(i&&o.default(i).hasClass("carousel")){var a=r({},o.default(i).data(),o.default(this).data()),s=this.getAttribute("data-slide-to");s&&(a.interval=!1),t._jQueryInterface.call(o.default(i),a),s&&o.default(i).data("bs.carousel").to(s),e.preventDefault()}}},l(t,null,[{key:"VERSION",get:function(){return"4.6.0"}},{key:"Default",get:function(){return b}}]),t}();o.default(document).on("click.bs.carousel.data-api","[data-slide], [data-slide-to]",w._dataApiClickHandler),o.default(window).on("load.bs.carousel.data-api",(function(){for(var t=[].slice.call(document.querySelectorAll('[data-ride="carousel"]')),e=0,n=t.length;e<n;e++){var i=o.default(t[e]);w._jQueryInterface.call(i,i.data())}})),o.default.fn[p]=w._jQueryInterface,o.default.fn[p].Constructor=w,o.default.fn[p].noConflict=function(){return o.default.fn[p]=v,w._jQueryInterface};var T="collapse",C=o.default.fn[T],S={toggle:!0,parent:""},N={toggle:"boolean",parent:"(string|element)"},D=function(){function t(t,e){this._isTransitioning=!1,this._element=t,this._config=this._getConfig(e),this._triggerArray=[].slice.call(document.querySelectorAll('[data-toggle="collapse"][href="#'+t.id+'"],[data-toggle="collapse"][data-target="#'+t.id+'"]'));for(var n=[].slice.call(document.querySelectorAll('[data-toggle="collapse"]')),i=0,o=n.length;i<o;i++){var a=n[i],s=d.getSelectorFromElement(a),l=[].slice.call(document.querySelectorAll(s)).filter((function(e){return e===t}));null!==s&&l.length>0&&(this._selector=s,this._triggerArray.push(a))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var e=t.prototype;return e.toggle=function(){o.default(this._element).hasClass("show")?this.hide():this.show()},e.show=function(){var e,n,i=this;if(!this._isTransitioning&&!o.default(this._element).hasClass("show")&&(this._parent&&0===(e=[].slice.call(this._parent.querySelectorAll(".show, .collapsing")).filter((function(t){return"string"==typeof i._config.parent?t.getAttribute("data-parent")===i._config.parent:t.classList.contains("collapse")}))).length&&(e=null),!(e&&(n=o.default(e).not(this._selector).data("bs.collapse"))&&n._isTransitioning))){var a=o.default.Event("show.bs.collapse");if(o.default(this._element).trigger(a),!a.isDefaultPrevented()){e&&(t._jQueryInterface.call(o.default(e).not(this._selector),"hide"),n||o.default(e).data("bs.collapse",null));var s=this._getDimension();o.default(this._element).removeClass("collapse").addClass("collapsing"),this._element.style[s]=0,this._triggerArray.length&&o.default(this._triggerArray).removeClass("collapsed").attr("aria-expanded",!0),this.setTransitioning(!0);var l="scroll"+(s[0].toUpperCase()+s.slice(1)),r=d.getTransitionDurationFromElement(this._element);o.default(this._element).one(d.TRANSITION_END,(function(){o.default(i._element).removeClass("collapsing").addClass("collapse show"),i._element.style[s]="",i.setTransitioning(!1),o.default(i._element).trigger("shown.bs.collapse")})).emulateTransitionEnd(r),this._element.style[s]=this._element[l]+"px"}}},e.hide=function(){var t=this;if(!this._isTransitioning&&o.default(this._element).hasClass("show")){var e=o.default.Event("hide.bs.collapse");if(o.default(this._element).trigger(e),!e.isDefaultPrevented()){var n=this._getDimension();this._element.style[n]=this._element.getBoundingClientRect()[n]+"px",d.reflow(this._element),o.default(this._element).addClass("collapsing").removeClass("collapse show");var i=this._triggerArray.length;if(i>0)for(var a=0;a<i;a++){var s=this._triggerArray[a],l=d.getSelectorFromElement(s);if(null!==l)o.default([].slice.call(document.querySelectorAll(l))).hasClass("show")||o.default(s).addClass("collapsed").attr("aria-expanded",!1)}this.setTransitioning(!0);this._element.style[n]="";var r=d.getTransitionDurationFromElement(this._element);o.default(this._element).one(d.TRANSITION_END,(function(){t.setTransitioning(!1),o.default(t._element).removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")})).emulateTransitionEnd(r)}}},e.setTransitioning=function(t){this._isTransitioning=t},e.dispose=function(){o.default.removeData(this._element,"bs.collapse"),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},e._getConfig=function(t){return(t=r({},S,t)).toggle=Boolean(t.toggle),d.typeCheckConfig(T,t,N),t},e._getDimension=function(){return o.default(this._element).hasClass("width")?"width":"height"},e._getParent=function(){var e,n=this;d.isElement(this._config.parent)?(e=this._config.parent,"undefined"!=typeof this._config.parent.jquery&&(e=this._config.parent[0])):e=document.querySelector(this._config.parent);var i='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]',a=[].slice.call(e.querySelectorAll(i));return o.default(a).each((function(e,i){n._addAriaAndCollapsedClass(t._getTargetFromElement(i),[i])})),e},e._addAriaAndCollapsedClass=function(t,e){var n=o.default(t).hasClass("show");e.length&&o.default(e).toggleClass("collapsed",!n).attr("aria-expanded",n)},t._getTargetFromElement=function(t){var e=d.getSelectorFromElement(t);return e?document.querySelector(e):null},t._jQueryInterface=function(e){return this.each((function(){var n=o.default(this),i=n.data("bs.collapse"),a=r({},S,n.data(),"object"==typeof e&&e?e:{});if(!i&&a.toggle&&"string"==typeof e&&/show|hide/.test(e)&&(a.toggle=!1),i||(i=new t(this,a),n.data("bs.collapse",i)),"string"==typeof e){if("undefined"==typeof i[e])throw new TypeError('No method named "'+e+'"');i[e]()}}))},l(t,null,[{key:"VERSION",get:function(){return"4.6.0"}},{key:"Default",get:function(){return S}}]),t}();o.default(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',(function(t){"A"===t.currentTarget.tagName&&t.preventDefault();var e=o.default(this),n=d.getSelectorFromElement(this),i=[].slice.call(document.querySelectorAll(n));o.default(i).each((function(){var t=o.default(this),n=t.data("bs.collapse")?"toggle":e.data();D._jQueryInterface.call(t,n)}))})),o.default.fn[T]=D._jQueryInterface,o.default.fn[T].Constructor=D,o.default.fn[T].noConflict=function(){return o.default.fn[T]=C,D._jQueryInterface};var k="dropdown",A=o.default.fn[k],I=new RegExp("38|40|27"),j={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic",popperConfig:null},O={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string",popperConfig:"(null|object)"},x=function(){function t(t,e){this._element=t,this._popper=null,this._config=this._getConfig(e),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}var e=t.prototype;return e.toggle=function(){if(!this._element.disabled&&!o.default(this._element).hasClass("disabled")){var e=o.default(this._menu).hasClass("show");t._clearMenus(),e||this.show(!0)}},e.show=function(e){if(void 0===e&&(e=!1),!(this._element.disabled||o.default(this._element).hasClass("disabled")||o.default(this._menu).hasClass("show"))){var n={relatedTarget:this._element},i=o.default.Event("show.bs.dropdown",n),s=t._getParentFromElement(this._element);if(o.default(s).trigger(i),!i.isDefaultPrevented()){if(!this._inNavbar&&e){if("undefined"==typeof a.default)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");var l=this._element;"parent"===this._config.reference?l=s:d.isElement(this._config.reference)&&(l=this._config.reference,"undefined"!=typeof this._config.reference.jquery&&(l=this._config.reference[0])),"scrollParent"!==this._config.boundary&&o.default(s).addClass("position-static"),this._popper=new a.default(l,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===o.default(s).closest(".navbar-nav").length&&o.default(document.body).children().on("mouseover",null,o.default.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),o.default(this._menu).toggleClass("show"),o.default(s).toggleClass("show").trigger(o.default.Event("shown.bs.dropdown",n))}}},e.hide=function(){if(!this._element.disabled&&!o.default(this._element).hasClass("disabled")&&o.default(this._menu).hasClass("show")){var e={relatedTarget:this._element},n=o.default.Event("hide.bs.dropdown",e),i=t._getParentFromElement(this._element);o.default(i).trigger(n),n.isDefaultPrevented()||(this._popper&&this._popper.destroy(),o.default(this._menu).toggleClass("show"),o.default(i).toggleClass("show").trigger(o.default.Event("hidden.bs.dropdown",e)))}},e.dispose=function(){o.default.removeData(this._element,"bs.dropdown"),o.default(this._element).off(".bs.dropdown"),this._element=null,this._menu=null,null!==this._popper&&(this._popper.destroy(),this._popper=null)},e.update=function(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()},e._addEventListeners=function(){var t=this;o.default(this._element).on("click.bs.dropdown",(function(e){e.preventDefault(),e.stopPropagation(),t.toggle()}))},e._getConfig=function(t){return t=r({},this.constructor.Default,o.default(this._element).data(),t),d.typeCheckConfig(k,t,this.constructor.DefaultType),t},e._getMenuElement=function(){if(!this._menu){var e=t._getParentFromElement(this._element);e&&(this._menu=e.querySelector(".dropdown-menu"))}return this._menu},e._getPlacement=function(){var t=o.default(this._element.parentNode),e="bottom-start";return t.hasClass("dropup")?e=o.default(this._menu).hasClass("dropdown-menu-right")?"top-end":"top-start":t.hasClass("dropright")?e="right-start":t.hasClass("dropleft")?e="left-start":o.default(this._menu).hasClass("dropdown-menu-right")&&(e="bottom-end"),e},e._detectNavbar=function(){return o.default(this._element).closest(".navbar").length>0},e._getOffset=function(){var t=this,e={};return"function"==typeof this._config.offset?e.fn=function(e){return e.offsets=r({},e.offsets,t._config.offset(e.offsets,t._element)||{}),e}:e.offset=this._config.offset,e},e._getPopperConfig=function(){var t={placement:this._getPlacement(),modifiers:{offset:this._getOffset(),flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(t.modifiers.applyStyle={enabled:!1}),r({},t,this._config.popperConfig)},t._jQueryInterface=function(e){return this.each((function(){var n=o.default(this).data("bs.dropdown");if(n||(n=new t(this,"object"==typeof e?e:null),o.default(this).data("bs.dropdown",n)),"string"==typeof e){if("undefined"==typeof n[e])throw new TypeError('No method named "'+e+'"');n[e]()}}))},t._clearMenus=function(e){if(!e||3!==e.which&&("keyup"!==e.type||9===e.which))for(var n=[].slice.call(document.querySelectorAll('[data-toggle="dropdown"]')),i=0,a=n.length;i<a;i++){var s=t._getParentFromElement(n[i]),l=o.default(n[i]).data("bs.dropdown"),r={relatedTarget:n[i]};if(e&&"click"===e.type&&(r.clickEvent=e),l){var u=l._menu;if(o.default(s).hasClass("show")&&!(e&&("click"===e.type&&/input|textarea/i.test(e.target.tagName)||"keyup"===e.type&&9===e.which)&&o.default.contains(s,e.target))){var d=o.default.Event("hide.bs.dropdown",r);o.default(s).trigger(d),d.isDefaultPrevented()||("ontouchstart"in document.documentElement&&o.default(document.body).children().off("mouseover",null,o.default.noop),n[i].setAttribute("aria-expanded","false"),l._popper&&l._popper.destroy(),o.default(u).removeClass("show"),o.default(s).removeClass("show").trigger(o.default.Event("hidden.bs.dropdown",r)))}}}},t._getParentFromElement=function(t){var e,n=d.getSelectorFromElement(t);return n&&(e=document.querySelector(n)),e||t.parentNode},t._dataApiKeydownHandler=function(e){if(!(/input|textarea/i.test(e.target.tagName)?32===e.which||27!==e.which&&(40!==e.which&&38!==e.which||o.default(e.target).closest(".dropdown-menu").length):!I.test(e.which))&&!this.disabled&&!o.default(this).hasClass("disabled")){var n=t._getParentFromElement(this),i=o.default(n).hasClass("show");if(i||27!==e.which){if(e.preventDefault(),e.stopPropagation(),!i||27===e.which||32===e.which)return 27===e.which&&o.default(n.querySelector('[data-toggle="dropdown"]')).trigger("focus"),void o.default(this).trigger("click");var a=[].slice.call(n.querySelectorAll(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)")).filter((function(t){return o.default(t).is(":visible")}));if(0!==a.length){var s=a.indexOf(e.target);38===e.which&&s>0&&s--,40===e.which&&s<a.length-1&&s++,s<0&&(s=0),a[s].focus()}}}},l(t,null,[{key:"VERSION",get:function(){return"4.6.0"}},{key:"Default",get:function(){return j}},{key:"DefaultType",get:function(){return O}}]),t}();o.default(document).on("keydown.bs.dropdown.data-api",'[data-toggle="dropdown"]',x._dataApiKeydownHandler).on("keydown.bs.dropdown.data-api",".dropdown-menu",x._dataApiKeydownHandler).on("click.bs.dropdown.data-api keyup.bs.dropdown.data-api",x._clearMenus).on("click.bs.dropdown.data-api",'[data-toggle="dropdown"]',(function(t){t.preventDefault(),t.stopPropagation(),x._jQueryInterface.call(o.default(this),"toggle")})).on("click.bs.dropdown.data-api",".dropdown form",(function(t){t.stopPropagation()})),o.default.fn[k]=x._jQueryInterface,o.default.fn[k].Constructor=x,o.default.fn[k].noConflict=function(){return o.default.fn[k]=A,x._jQueryInterface};var P=o.default.fn.modal,R={backdrop:!0,keyboard:!0,focus:!0,show:!0},L={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},q=function(){function t(t,e){this._config=this._getConfig(e),this._element=t,this._dialog=t.querySelector(".modal-dialog"),this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollbarWidth=0}var e=t.prototype;return e.toggle=function(t){return this._isShown?this.hide():this.show(t)},e.show=function(t){var e=this;if(!this._isShown&&!this._isTransitioning){o.default(this._element).hasClass("fade")&&(this._isTransitioning=!0);var n=o.default.Event("show.bs.modal",{relatedTarget:t});o.default(this._element).trigger(n),this._isShown||n.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),o.default(this._element).on("click.dismiss.bs.modal",'[data-dismiss="modal"]',(function(t){return e.hide(t)})),o.default(this._dialog).on("mousedown.dismiss.bs.modal",(function(){o.default(e._element).one("mouseup.dismiss.bs.modal",(function(t){o.default(t.target).is(e._element)&&(e._ignoreBackdropClick=!0)}))})),this._showBackdrop((function(){return e._showElement(t)})))}},e.hide=function(t){var e=this;if(t&&t.preventDefault(),this._isShown&&!this._isTransitioning){var n=o.default.Event("hide.bs.modal");if(o.default(this._element).trigger(n),this._isShown&&!n.isDefaultPrevented()){this._isShown=!1;var i=o.default(this._element).hasClass("fade");if(i&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),o.default(document).off("focusin.bs.modal"),o.default(this._element).removeClass("show"),o.default(this._element).off("click.dismiss.bs.modal"),o.default(this._dialog).off("mousedown.dismiss.bs.modal"),i){var a=d.getTransitionDurationFromElement(this._element);o.default(this._element).one(d.TRANSITION_END,(function(t){return e._hideModal(t)})).emulateTransitionEnd(a)}else this._hideModal()}}},e.dispose=function(){[window,this._element,this._dialog].forEach((function(t){return o.default(t).off(".bs.modal")})),o.default(document).off("focusin.bs.modal"),o.default.removeData(this._element,"bs.modal"),this._config=null,this._element=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._isTransitioning=null,this._scrollbarWidth=null},e.handleUpdate=function(){this._adjustDialog()},e._getConfig=function(t){return t=r({},R,t),d.typeCheckConfig("modal",t,L),t},e._triggerBackdropTransition=function(){var t=this,e=o.default.Event("hidePrevented.bs.modal");if(o.default(this._element).trigger(e),!e.isDefaultPrevented()){var n=this._element.scrollHeight>document.documentElement.clientHeight;n||(this._element.style.overflowY="hidden"),this._element.classList.add("modal-static");var i=d.getTransitionDurationFromElement(this._dialog);o.default(this._element).off(d.TRANSITION_END),o.default(this._element).one(d.TRANSITION_END,(function(){t._element.classList.remove("modal-static"),n||o.default(t._element).one(d.TRANSITION_END,(function(){t._element.style.overflowY=""})).emulateTransitionEnd(t._element,i)})).emulateTransitionEnd(i),this._element.focus()}},e._showElement=function(t){var e=this,n=o.default(this._element).hasClass("fade"),i=this._dialog?this._dialog.querySelector(".modal-body"):null;this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),o.default(this._dialog).hasClass("modal-dialog-scrollable")&&i?i.scrollTop=0:this._element.scrollTop=0,n&&d.reflow(this._element),o.default(this._element).addClass("show"),this._config.focus&&this._enforceFocus();var a=o.default.Event("shown.bs.modal",{relatedTarget:t}),s=function(){e._config.focus&&e._element.focus(),e._isTransitioning=!1,o.default(e._element).trigger(a)};if(n){var l=d.getTransitionDurationFromElement(this._dialog);o.default(this._dialog).one(d.TRANSITION_END,s).emulateTransitionEnd(l)}else s()},e._enforceFocus=function(){var t=this;o.default(document).off("focusin.bs.modal").on("focusin.bs.modal",(function(e){document!==e.target&&t._element!==e.target&&0===o.default(t._element).has(e.target).length&&t._element.focus()}))},e._setEscapeEvent=function(){var t=this;this._isShown?o.default(this._element).on("keydown.dismiss.bs.modal",(function(e){t._config.keyboard&&27===e.which?(e.preventDefault(),t.hide()):t._config.keyboard||27!==e.which||t._triggerBackdropTransition()})):this._isShown||o.default(this._element).off("keydown.dismiss.bs.modal")},e._setResizeEvent=function(){var t=this;this._isShown?o.default(window).on("resize.bs.modal",(function(e){return t.handleUpdate(e)})):o.default(window).off("resize.bs.modal")},e._hideModal=function(){var t=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._showBackdrop((function(){o.default(document.body).removeClass("modal-open"),t._resetAdjustments(),t._resetScrollbar(),o.default(t._element).trigger("hidden.bs.modal")}))},e._removeBackdrop=function(){this._backdrop&&(o.default(this._backdrop).remove(),this._backdrop=null)},e._showBackdrop=function(t){var e=this,n=o.default(this._element).hasClass("fade")?"fade":"";if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement("div"),this._backdrop.className="modal-backdrop",n&&this._backdrop.classList.add(n),o.default(this._backdrop).appendTo(document.body),o.default(this._element).on("click.dismiss.bs.modal",(function(t){e._ignoreBackdropClick?e._ignoreBackdropClick=!1:t.target===t.currentTarget&&("static"===e._config.backdrop?e._triggerBackdropTransition():e.hide())})),n&&d.reflow(this._backdrop),o.default(this._backdrop).addClass("show"),!t)return;if(!n)return void t();var i=d.getTransitionDurationFromElement(this._backdrop);o.default(this._backdrop).one(d.TRANSITION_END,t).emulateTransitionEnd(i)}else if(!this._isShown&&this._backdrop){o.default(this._backdrop).removeClass("show");var a=function(){e._removeBackdrop(),t&&t()};if(o.default(this._element).hasClass("fade")){var s=d.getTransitionDurationFromElement(this._backdrop);o.default(this._backdrop).one(d.TRANSITION_END,a).emulateTransitionEnd(s)}else a()}else t&&t()},e._adjustDialog=function(){var t=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&t&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!t&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},e._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},e._checkScrollbar=function(){var t=document.body.getBoundingClientRect();this._isBodyOverflowing=Math.round(t.left+t.right)<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()},e._setScrollbar=function(){var t=this;if(this._isBodyOverflowing){var e=[].slice.call(document.querySelectorAll(".fixed-top, .fixed-bottom, .is-fixed, .sticky-top")),n=[].slice.call(document.querySelectorAll(".sticky-top"));o.default(e).each((function(e,n){var i=n.style.paddingRight,a=o.default(n).css("padding-right");o.default(n).data("padding-right",i).css("padding-right",parseFloat(a)+t._scrollbarWidth+"px")})),o.default(n).each((function(e,n){var i=n.style.marginRight,a=o.default(n).css("margin-right");o.default(n).data("margin-right",i).css("margin-right",parseFloat(a)-t._scrollbarWidth+"px")}));var i=document.body.style.paddingRight,a=o.default(document.body).css("padding-right");o.default(document.body).data("padding-right",i).css("padding-right",parseFloat(a)+this._scrollbarWidth+"px")}o.default(document.body).addClass("modal-open")},e._resetScrollbar=function(){var t=[].slice.call(document.querySelectorAll(".fixed-top, .fixed-bottom, .is-fixed, .sticky-top"));o.default(t).each((function(t,e){var n=o.default(e).data("padding-right");o.default(e).removeData("padding-right"),e.style.paddingRight=n||""}));var e=[].slice.call(document.querySelectorAll(".sticky-top"));o.default(e).each((function(t,e){var n=o.default(e).data("margin-right");"undefined"!=typeof n&&o.default(e).css("margin-right",n).removeData("margin-right")}));var n=o.default(document.body).data("padding-right");o.default(document.body).removeData("padding-right"),document.body.style.paddingRight=n||""},e._getScrollbarWidth=function(){var t=document.createElement("div");t.className="modal-scrollbar-measure",document.body.appendChild(t);var e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e},t._jQueryInterface=function(e,n){return this.each((function(){var i=o.default(this).data("bs.modal"),a=r({},R,o.default(this).data(),"object"==typeof e&&e?e:{});if(i||(i=new t(this,a),o.default(this).data("bs.modal",i)),"string"==typeof e){if("undefined"==typeof i[e])throw new TypeError('No method named "'+e+'"');i[e](n)}else a.show&&i.show(n)}))},l(t,null,[{key:"VERSION",get:function(){return"4.6.0"}},{key:"Default",get:function(){return R}}]),t}();o.default(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',(function(t){var e,n=this,i=d.getSelectorFromElement(this);i&&(e=document.querySelector(i));var a=o.default(e).data("bs.modal")?"toggle":r({},o.default(e).data(),o.default(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||t.preventDefault();var s=o.default(e).one("show.bs.modal",(function(t){t.isDefaultPrevented()||s.one("hidden.bs.modal",(function(){o.default(n).is(":visible")&&n.focus()}))}));q._jQueryInterface.call(o.default(e),a,this)})),o.default.fn.modal=q._jQueryInterface,o.default.fn.modal.Constructor=q,o.default.fn.modal.noConflict=function(){return o.default.fn.modal=P,q._jQueryInterface};var F=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],Q={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},B=/^(?:(?:https?|mailto|ftp|tel|file):|[^#&/:?]*(?:[#/?]|$))/gi,H=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i;function U(t,e,n){if(0===t.length)return t;if(n&&"function"==typeof n)return n(t);for(var i=(new window.DOMParser).parseFromString(t,"text/html"),o=Object.keys(e),a=[].slice.call(i.body.querySelectorAll("*")),s=function(t,n){var i=a[t],s=i.nodeName.toLowerCase();if(-1===o.indexOf(i.nodeName.toLowerCase()))return i.parentNode.removeChild(i),"continue";var l=[].slice.call(i.attributes),r=[].concat(e["*"]||[],e[s]||[]);l.forEach((function(t){(function(t,e){var n=t.nodeName.toLowerCase();if(-1!==e.indexOf(n))return-1===F.indexOf(n)||Boolean(t.nodeValue.match(B)||t.nodeValue.match(H));for(var i=e.filter((function(t){return t instanceof RegExp})),o=0,a=i.length;o<a;o++)if(n.match(i[o]))return!0;return!1})(t,r)||i.removeAttribute(t.nodeName)}))},l=0,r=a.length;l<r;l++)s(l);return i.body.innerHTML}var M="tooltip",W=o.default.fn[M],V=new RegExp("(^|\\s)bs-tooltip\\S+","g"),z=["sanitize","whiteList","sanitizeFn"],K={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string|function)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)",customClass:"(string|function)",sanitize:"boolean",sanitizeFn:"(null|function)",whiteList:"object",popperConfig:"(null|object)"},X={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},Y={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent",customClass:"",sanitize:!0,sanitizeFn:null,whiteList:Q,popperConfig:null},$={HIDE:"hide.bs.tooltip",HIDDEN:"hidden.bs.tooltip",SHOW:"show.bs.tooltip",SHOWN:"shown.bs.tooltip",INSERTED:"inserted.bs.tooltip",CLICK:"click.bs.tooltip",FOCUSIN:"focusin.bs.tooltip",FOCUSOUT:"focusout.bs.tooltip",MOUSEENTER:"mouseenter.bs.tooltip",MOUSELEAVE:"mouseleave.bs.tooltip"},J=function(){function t(t,e){if("undefined"==typeof a.default)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=t,this.config=this._getConfig(e),this.tip=null,this._setListeners()}var e=t.prototype;return e.enable=function(){this._isEnabled=!0},e.disable=function(){this._isEnabled=!1},e.toggleEnabled=function(){this._isEnabled=!this._isEnabled},e.toggle=function(t){if(this._isEnabled)if(t){var e=this.constructor.DATA_KEY,n=o.default(t.currentTarget).data(e);n||(n=new this.constructor(t.currentTarget,this._getDelegateConfig()),o.default(t.currentTarget).data(e,n)),n._activeTrigger.click=!n._activeTrigger.click,n._isWithActiveTrigger()?n._enter(null,n):n._leave(null,n)}else{if(o.default(this.getTipElement()).hasClass("show"))return void this._leave(null,this);this._enter(null,this)}},e.dispose=function(){clearTimeout(this._timeout),o.default.removeData(this.element,this.constructor.DATA_KEY),o.default(this.element).off(this.constructor.EVENT_KEY),o.default(this.element).closest(".modal").off("hide.bs.modal",this._hideModalHandler),this.tip&&o.default(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},e.show=function(){var t=this;if("none"===o.default(this.element).css("display"))throw new Error("Please use show on visible elements");var e=o.default.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){o.default(this.element).trigger(e);var n=d.findShadowRoot(this.element),i=o.default.contains(null!==n?n:this.element.ownerDocument.documentElement,this.element);if(e.isDefaultPrevented()||!i)return;var s=this.getTipElement(),l=d.getUID(this.constructor.NAME);s.setAttribute("id",l),this.element.setAttribute("aria-describedby",l),this.setContent(),this.config.animation&&o.default(s).addClass("fade");var r="function"==typeof this.config.placement?this.config.placement.call(this,s,this.element):this.config.placement,u=this._getAttachment(r);this.addAttachmentClass(u);var f=this._getContainer();o.default(s).data(this.constructor.DATA_KEY,this),o.default.contains(this.element.ownerDocument.documentElement,this.tip)||o.default(s).appendTo(f),o.default(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new a.default(this.element,s,this._getPopperConfig(u)),o.default(s).addClass("show"),o.default(s).addClass(this.config.customClass),"ontouchstart"in document.documentElement&&o.default(document.body).children().on("mouseover",null,o.default.noop);var c=function(){t.config.animation&&t._fixTransition();var e=t._hoverState;t._hoverState=null,o.default(t.element).trigger(t.constructor.Event.SHOWN),"out"===e&&t._leave(null,t)};if(o.default(this.tip).hasClass("fade")){var h=d.getTransitionDurationFromElement(this.tip);o.default(this.tip).one(d.TRANSITION_END,c).emulateTransitionEnd(h)}else c()}},e.hide=function(t){var e=this,n=this.getTipElement(),i=o.default.Event(this.constructor.Event.HIDE),a=function(){"show"!==e._hoverState&&n.parentNode&&n.parentNode.removeChild(n),e._cleanTipClass(),e.element.removeAttribute("aria-describedby"),o.default(e.element).trigger(e.constructor.Event.HIDDEN),null!==e._popper&&e._popper.destroy(),t&&t()};if(o.default(this.element).trigger(i),!i.isDefaultPrevented()){if(o.default(n).removeClass("show"),"ontouchstart"in document.documentElement&&o.default(document.body).children().off("mouseover",null,o.default.noop),this._activeTrigger.click=!1,this._activeTrigger.focus=!1,this._activeTrigger.hover=!1,o.default(this.tip).hasClass("fade")){var s=d.getTransitionDurationFromElement(n);o.default(n).one(d.TRANSITION_END,a).emulateTransitionEnd(s)}else a();this._hoverState=""}},e.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},e.isWithContent=function(){return Boolean(this.getTitle())},e.addAttachmentClass=function(t){o.default(this.getTipElement()).addClass("bs-tooltip-"+t)},e.getTipElement=function(){return this.tip=this.tip||o.default(this.config.template)[0],this.tip},e.setContent=function(){var t=this.getTipElement();this.setElementContent(o.default(t.querySelectorAll(".tooltip-inner")),this.getTitle()),o.default(t).removeClass("fade show")},e.setElementContent=function(t,e){"object"!=typeof e||!e.nodeType&&!e.jquery?this.config.html?(this.config.sanitize&&(e=U(e,this.config.whiteList,this.config.sanitizeFn)),t.html(e)):t.text(e):this.config.html?o.default(e).parent().is(t)||t.empty().append(e):t.text(o.default(e).text())},e.getTitle=function(){var t=this.element.getAttribute("data-original-title");return t||(t="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),t},e._getPopperConfig=function(t){var e=this;return r({},{placement:t,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:".arrow"},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(t){t.originalPlacement!==t.placement&&e._handlePopperPlacementChange(t)},onUpdate:function(t){return e._handlePopperPlacementChange(t)}},this.config.popperConfig)},e._getOffset=function(){var t=this,e={};return"function"==typeof this.config.offset?e.fn=function(e){return e.offsets=r({},e.offsets,t.config.offset(e.offsets,t.element)||{}),e}:e.offset=this.config.offset,e},e._getContainer=function(){return!1===this.config.container?document.body:d.isElement(this.config.container)?o.default(this.config.container):o.default(document).find(this.config.container)},e._getAttachment=function(t){return X[t.toUpperCase()]},e._setListeners=function(){var t=this;this.config.trigger.split(" ").forEach((function(e){if("click"===e)o.default(t.element).on(t.constructor.Event.CLICK,t.config.selector,(function(e){return t.toggle(e)}));else if("manual"!==e){var n="hover"===e?t.constructor.Event.MOUSEENTER:t.constructor.Event.FOCUSIN,i="hover"===e?t.constructor.Event.MOUSELEAVE:t.constructor.Event.FOCUSOUT;o.default(t.element).on(n,t.config.selector,(function(e){return t._enter(e)})).on(i,t.config.selector,(function(e){return t._leave(e)}))}})),this._hideModalHandler=function(){t.element&&t.hide()},o.default(this.element).closest(".modal").on("hide.bs.modal",this._hideModalHandler),this.config.selector?this.config=r({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},e._fixTitle=function(){var t=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==t)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},e._enter=function(t,e){var n=this.constructor.DATA_KEY;(e=e||o.default(t.currentTarget).data(n))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),o.default(t.currentTarget).data(n,e)),t&&(e._activeTrigger["focusin"===t.type?"focus":"hover"]=!0),o.default(e.getTipElement()).hasClass("show")||"show"===e._hoverState?e._hoverState="show":(clearTimeout(e._timeout),e._hoverState="show",e.config.delay&&e.config.delay.show?e._timeout=setTimeout((function(){"show"===e._hoverState&&e.show()}),e.config.delay.show):e.show())},e._leave=function(t,e){var n=this.constructor.DATA_KEY;(e=e||o.default(t.currentTarget).data(n))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),o.default(t.currentTarget).data(n,e)),t&&(e._activeTrigger["focusout"===t.type?"focus":"hover"]=!1),e._isWithActiveTrigger()||(clearTimeout(e._timeout),e._hoverState="out",e.config.delay&&e.config.delay.hide?e._timeout=setTimeout((function(){"out"===e._hoverState&&e.hide()}),e.config.delay.hide):e.hide())},e._isWithActiveTrigger=function(){for(var t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1},e._getConfig=function(t){var e=o.default(this.element).data();return Object.keys(e).forEach((function(t){-1!==z.indexOf(t)&&delete e[t]})),"number"==typeof(t=r({},this.constructor.Default,e,"object"==typeof t&&t?t:{})).delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),d.typeCheckConfig(M,t,this.constructor.DefaultType),t.sanitize&&(t.template=U(t.template,t.whiteList,t.sanitizeFn)),t},e._getDelegateConfig=function(){var t={};if(this.config)for(var e in this.config)this.constructor.Default[e]!==this.config[e]&&(t[e]=this.config[e]);return t},e._cleanTipClass=function(){var t=o.default(this.getTipElement()),e=t.attr("class").match(V);null!==e&&e.length&&t.removeClass(e.join(""))},e._handlePopperPlacementChange=function(t){this.tip=t.instance.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(t.placement))},e._fixTransition=function(){var t=this.getTipElement(),e=this.config.animation;null===t.getAttribute("x-placement")&&(o.default(t).removeClass("fade"),this.config.animation=!1,this.hide(),this.show(),this.config.animation=e)},t._jQueryInterface=function(e){return this.each((function(){var n=o.default(this),i=n.data("bs.tooltip"),a="object"==typeof e&&e;if((i||!/dispose|hide/.test(e))&&(i||(i=new t(this,a),n.data("bs.tooltip",i)),"string"==typeof e)){if("undefined"==typeof i[e])throw new TypeError('No method named "'+e+'"');i[e]()}}))},l(t,null,[{key:"VERSION",get:function(){return"4.6.0"}},{key:"Default",get:function(){return Y}},{key:"NAME",get:function(){return M}},{key:"DATA_KEY",get:function(){return"bs.tooltip"}},{key:"Event",get:function(){return $}},{key:"EVENT_KEY",get:function(){return".bs.tooltip"}},{key:"DefaultType",get:function(){return K}}]),t}();o.default.fn[M]=J._jQueryInterface,o.default.fn[M].Constructor=J,o.default.fn[M].noConflict=function(){return o.default.fn[M]=W,J._jQueryInterface};var G="popover",Z=o.default.fn[G],tt=new RegExp("(^|\\s)bs-popover\\S+","g"),et=r({},J.Default,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'}),nt=r({},J.DefaultType,{content:"(string|element|function)"}),it={HIDE:"hide.bs.popover",HIDDEN:"hidden.bs.popover",SHOW:"show.bs.popover",SHOWN:"shown.bs.popover",INSERTED:"inserted.bs.popover",CLICK:"click.bs.popover",FOCUSIN:"focusin.bs.popover",FOCUSOUT:"focusout.bs.popover",MOUSEENTER:"mouseenter.bs.popover",MOUSELEAVE:"mouseleave.bs.popover"},ot=function(t){var e,n;function i(){return t.apply(this,arguments)||this}n=t,(e=i).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var a=i.prototype;return a.isWithContent=function(){return this.getTitle()||this._getContent()},a.addAttachmentClass=function(t){o.default(this.getTipElement()).addClass("bs-popover-"+t)},a.getTipElement=function(){return this.tip=this.tip||o.default(this.config.template)[0],this.tip},a.setContent=function(){var t=o.default(this.getTipElement());this.setElementContent(t.find(".popover-header"),this.getTitle());var e=this._getContent();"function"==typeof e&&(e=e.call(this.element)),this.setElementContent(t.find(".popover-body"),e),t.removeClass("fade show")},a._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},a._cleanTipClass=function(){var t=o.default(this.getTipElement()),e=t.attr("class").match(tt);null!==e&&e.length>0&&t.removeClass(e.join(""))},i._jQueryInterface=function(t){return this.each((function(){var e=o.default(this).data("bs.popover"),n="object"==typeof t?t:null;if((e||!/dispose|hide/.test(t))&&(e||(e=new i(this,n),o.default(this).data("bs.popover",e)),"string"==typeof t)){if("undefined"==typeof e[t])throw new TypeError('No method named "'+t+'"');e[t]()}}))},l(i,null,[{key:"VERSION",get:function(){return"4.6.0"}},{key:"Default",get:function(){return et}},{key:"NAME",get:function(){return G}},{key:"DATA_KEY",get:function(){return"bs.popover"}},{key:"Event",get:function(){return it}},{key:"EVENT_KEY",get:function(){return".bs.popover"}},{key:"DefaultType",get:function(){return nt}}]),i}(J);o.default.fn[G]=ot._jQueryInterface,o.default.fn[G].Constructor=ot,o.default.fn[G].noConflict=function(){return o.default.fn[G]=Z,ot._jQueryInterface};var at="scrollspy",st=o.default.fn[at],lt={offset:10,method:"auto",target:""},rt={offset:"number",method:"string",target:"(string|element)"},ut=function(){function t(t,e){var n=this;this._element=t,this._scrollElement="BODY"===t.tagName?window:t,this._config=this._getConfig(e),this._selector=this._config.target+" .nav-link,"+this._config.target+" .list-group-item,"+this._config.target+" .dropdown-item",this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,o.default(this._scrollElement).on("scroll.bs.scrollspy",(function(t){return n._process(t)})),this.refresh(),this._process()}var e=t.prototype;return e.refresh=function(){var t=this,e=this._scrollElement===this._scrollElement.window?"offset":"position",n="auto"===this._config.method?e:this._config.method,i="position"===n?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),[].slice.call(document.querySelectorAll(this._selector)).map((function(t){var e,a=d.getSelectorFromElement(t);if(a&&(e=document.querySelector(a)),e){var s=e.getBoundingClientRect();if(s.width||s.height)return[o.default(e)[n]().top+i,a]}return null})).filter((function(t){return t})).sort((function(t,e){return t[0]-e[0]})).forEach((function(e){t._offsets.push(e[0]),t._targets.push(e[1])}))},e.dispose=function(){o.default.removeData(this._element,"bs.scrollspy"),o.default(this._scrollElement).off(".bs.scrollspy"),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},e._getConfig=function(t){if("string"!=typeof(t=r({},lt,"object"==typeof t&&t?t:{})).target&&d.isElement(t.target)){var e=o.default(t.target).attr("id");e||(e=d.getUID(at),o.default(t.target).attr("id",e)),t.target="#"+e}return d.typeCheckConfig(at,t,rt),t},e._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},e._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},e._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},e._process=function(){var t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),n=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),t>=n){var i=this._targets[this._targets.length-1];this._activeTarget!==i&&this._activate(i)}else{if(this._activeTarget&&t<this._offsets[0]&&this._offsets[0]>0)return this._activeTarget=null,void this._clear();for(var o=this._offsets.length;o--;){this._activeTarget!==this._targets[o]&&t>=this._offsets[o]&&("undefined"==typeof this._offsets[o+1]||t<this._offsets[o+1])&&this._activate(this._targets[o])}}},e._activate=function(t){this._activeTarget=t,this._clear();var e=this._selector.split(",").map((function(e){return e+'[data-target="'+t+'"],'+e+'[href="'+t+'"]'})),n=o.default([].slice.call(document.querySelectorAll(e.join(","))));n.hasClass("dropdown-item")?(n.closest(".dropdown").find(".dropdown-toggle").addClass("active"),n.addClass("active")):(n.addClass("active"),n.parents(".nav, .list-group").prev(".nav-link, .list-group-item").addClass("active"),n.parents(".nav, .list-group").prev(".nav-item").children(".nav-link").addClass("active")),o.default(this._scrollElement).trigger("activate.bs.scrollspy",{relatedTarget:t})},e._clear=function(){[].slice.call(document.querySelectorAll(this._selector)).filter((function(t){return t.classList.contains("active")})).forEach((function(t){return t.classList.remove("active")}))},t._jQueryInterface=function(e){return this.each((function(){var n=o.default(this).data("bs.scrollspy");if(n||(n=new t(this,"object"==typeof e&&e),o.default(this).data("bs.scrollspy",n)),"string"==typeof e){if("undefined"==typeof n[e])throw new TypeError('No method named "'+e+'"');n[e]()}}))},l(t,null,[{key:"VERSION",get:function(){return"4.6.0"}},{key:"Default",get:function(){return lt}}]),t}();o.default(window).on("load.bs.scrollspy.data-api",(function(){for(var t=[].slice.call(document.querySelectorAll('[data-spy="scroll"]')),e=t.length;e--;){var n=o.default(t[e]);ut._jQueryInterface.call(n,n.data())}})),o.default.fn[at]=ut._jQueryInterface,o.default.fn[at].Constructor=ut,o.default.fn[at].noConflict=function(){return o.default.fn[at]=st,ut._jQueryInterface};var dt=o.default.fn.tab,ft=function(){function t(t){this._element=t}var e=t.prototype;return e.show=function(){var t=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&o.default(this._element).hasClass("active")||o.default(this._element).hasClass("disabled"))){var e,n,i=o.default(this._element).closest(".nav, .list-group")[0],a=d.getSelectorFromElement(this._element);if(i){var s="UL"===i.nodeName||"OL"===i.nodeName?"> li > .active":".active";n=(n=o.default.makeArray(o.default(i).find(s)))[n.length-1]}var l=o.default.Event("hide.bs.tab",{relatedTarget:this._element}),r=o.default.Event("show.bs.tab",{relatedTarget:n});if(n&&o.default(n).trigger(l),o.default(this._element).trigger(r),!r.isDefaultPrevented()&&!l.isDefaultPrevented()){a&&(e=document.querySelector(a)),this._activate(this._element,i);var u=function(){var e=o.default.Event("hidden.bs.tab",{relatedTarget:t._element}),i=o.default.Event("shown.bs.tab",{relatedTarget:n});o.default(n).trigger(e),o.default(t._element).trigger(i)};e?this._activate(e,e.parentNode,u):u()}}},e.dispose=function(){o.default.removeData(this._element,"bs.tab"),this._element=null},e._activate=function(t,e,n){var i=this,a=(!e||"UL"!==e.nodeName&&"OL"!==e.nodeName?o.default(e).children(".active"):o.default(e).find("> li > .active"))[0],s=n&&a&&o.default(a).hasClass("fade"),l=function(){return i._transitionComplete(t,a,n)};if(a&&s){var r=d.getTransitionDurationFromElement(a);o.default(a).removeClass("show").one(d.TRANSITION_END,l).emulateTransitionEnd(r)}else l()},e._transitionComplete=function(t,e,n){if(e){o.default(e).removeClass("active");var i=o.default(e.parentNode).find("> .dropdown-menu .active")[0];i&&o.default(i).removeClass("active"),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!1)}if(o.default(t).addClass("active"),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!0),d.reflow(t),t.classList.contains("fade")&&t.classList.add("show"),t.parentNode&&o.default(t.parentNode).hasClass("dropdown-menu")){var a=o.default(t).closest(".dropdown")[0];if(a){var s=[].slice.call(a.querySelectorAll(".dropdown-toggle"));o.default(s).addClass("active")}t.setAttribute("aria-expanded",!0)}n&&n()},t._jQueryInterface=function(e){return this.each((function(){var n=o.default(this),i=n.data("bs.tab");if(i||(i=new t(this),n.data("bs.tab",i)),"string"==typeof e){if("undefined"==typeof i[e])throw new TypeError('No method named "'+e+'"');i[e]()}}))},l(t,null,[{key:"VERSION",get:function(){return"4.6.0"}}]),t}();o.default(document).on("click.bs.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',(function(t){t.preventDefault(),ft._jQueryInterface.call(o.default(this),"show")})),o.default.fn.tab=ft._jQueryInterface,o.default.fn.tab.Constructor=ft,o.default.fn.tab.noConflict=function(){return o.default.fn.tab=dt,ft._jQueryInterface};var ct=o.default.fn.toast,ht={animation:"boolean",autohide:"boolean",delay:"number"},gt={animation:!0,autohide:!0,delay:500},mt=function(){function t(t,e){this._element=t,this._config=this._getConfig(e),this._timeout=null,this._setListeners()}var e=t.prototype;return e.show=function(){var t=this,e=o.default.Event("show.bs.toast");if(o.default(this._element).trigger(e),!e.isDefaultPrevented()){this._clearTimeout(),this._config.animation&&this._element.classList.add("fade");var n=function(){t._element.classList.remove("showing"),t._element.classList.add("show"),o.default(t._element).trigger("shown.bs.toast"),t._config.autohide&&(t._timeout=setTimeout((function(){t.hide()}),t._config.delay))};if(this._element.classList.remove("hide"),d.reflow(this._element),this._element.classList.add("showing"),this._config.animation){var i=d.getTransitionDurationFromElement(this._element);o.default(this._element).one(d.TRANSITION_END,n).emulateTransitionEnd(i)}else n()}},e.hide=function(){if(this._element.classList.contains("show")){var t=o.default.Event("hide.bs.toast");o.default(this._element).trigger(t),t.isDefaultPrevented()||this._close()}},e.dispose=function(){this._clearTimeout(),this._element.classList.contains("show")&&this._element.classList.remove("show"),o.default(this._element).off("click.dismiss.bs.toast"),o.default.removeData(this._element,"bs.toast"),this._element=null,this._config=null},e._getConfig=function(t){return t=r({},gt,o.default(this._element).data(),"object"==typeof t&&t?t:{}),d.typeCheckConfig("toast",t,this.constructor.DefaultType),t},e._setListeners=function(){var t=this;o.default(this._element).on("click.dismiss.bs.toast",'[data-dismiss="toast"]',(function(){return t.hide()}))},e._close=function(){var t=this,e=function(){t._element.classList.add("hide"),o.default(t._element).trigger("hidden.bs.toast")};if(this._element.classList.remove("show"),this._config.animation){var n=d.getTransitionDurationFromElement(this._element);o.default(this._element).one(d.TRANSITION_END,e).emulateTransitionEnd(n)}else e()},e._clearTimeout=function(){clearTimeout(this._timeout),this._timeout=null},t._jQueryInterface=function(e){return this.each((function(){var n=o.default(this),i=n.data("bs.toast");if(i||(i=new t(this,"object"==typeof e&&e),n.data("bs.toast",i)),"string"==typeof e){if("undefined"==typeof i[e])throw new TypeError('No method named "'+e+'"');i[e](this)}}))},l(t,null,[{key:"VERSION",get:function(){return"4.6.0"}},{key:"DefaultType",get:function(){return ht}},{key:"Default",get:function(){return gt}}]),t}();o.default.fn.toast=mt._jQueryInterface,o.default.fn.toast.Constructor=mt,o.default.fn.toast.noConflict=function(){return o.default.fn.toast=ct,mt._jQueryInterface},t.Alert=h,t.Button=m,t.Carousel=w,t.Collapse=D,t.Dropdown=x,t.Modal=q,t.Popover=ot,t.Scrollspy=ut,t.Tab=ft,t.Toast=mt,t.Tooltip=J,t.Util=d,Object.defineProperty(t,"__esModule",{value:!0})}));
38; 39var wpcf7cf_global_settings={"ajaxurl":"https://www.biocodex.fr/wp-admin/admin-ajax.php"}; 40"use strict";let cf7signature_resized=0;let wpcf7cf_timeout;let wpcf7cf_change_time_ms=100;if(window.wpcf7&&!wpcf7.setStatus){wpcf7.setStatus=(form,status)=>{form=form.length?form[0]:form;const defaultStatuses=new Map([['init','init'],['validation_failed','invalid'],['acceptance_missing','unaccepted'],['spam','spam'],['aborted','aborted'],['mail_sent','sent'],['mail_failed','failed'],['submitting','submitting'],['resetting','resetting'],]);if(defaultStatuses.has(status)){status=defaultStatuses.get(status);} 41if(!Array.from(defaultStatuses.values()).includes(status)){status=status.replace(/[^0-9a-z]+/i,' ').trim();status=status.replace(/\s+/,'-');status=`custom-${ status }`;} 42const prevStatus=form.getAttribute('data-status');form.wpcf7.status=status;form.setAttribute('data-status',status);form.classList.add(status);if(prevStatus&&prevStatus!==status){form.classList.remove(prevStatus);} 43return status;};} 44if(window.wpcf7cf_running_tests){document.querySelectorAll('input[name="_wpcf7cf_options"]').forEach(input=>{const opt=JSON.parse(input.value);opt.settings.animation_intime=0;opt.settings.animation_outtime=0;input.value=JSON.stringify(opt);});wpcf7cf_change_time_ms=0;} 45const wpcf7cf_show_animation={"height":"show","marginTop":"show","marginBottom":"show","paddingTop":"show","paddingBottom":"show"};const wpcf7cf_hide_animation={"height":"hide","marginTop":"hide","marginBottom":"hide","paddingTop":"hide","paddingBottom":"hide"};const wpcf7cf_show_step_animation={"opacity":"show"};const wpcf7cf_hide_step_animation={"opacity":"hide"};const wpcf7cf_change_events='input.wpcf7cf paste.wpcf7cf change.wpcf7cf click.wpcf7cf propertychange.wpcf7cf changedisabledprop.wpcf7cf';const wpcf7cf_forms=[];const Wpcf7cfForm=function(formElement){const $form=jQuery(formElement);const options_element=$form.find('input[name="_wpcf7cf_options"]').eq(0);if(!options_element.length||!options_element.val()){return false;} 46const form=this;formElement.addEventListener('submit',function(e){if(window.wpcf7cf_updatingGroups){e.preventDefault();e.stopImmediatePropagation();const retry=()=>{if(!window.wpcf7cf_updatingGroups){$form.off('.wpcf7cf-autosubmit');formElement.requestSubmit();}else{requestAnimationFrame(retry);}};$form.on('submit.wpcf7cf-autosubmit',(e)=>e.preventDefault());retry();return false;}},true);const submitButtons=formElement.querySelectorAll('button[type=submit], input[type=submit]');const prevDisabled=new WeakMap();let wasSubmitting=formElement.classList.contains('submitting');const observer=new MutationObserver(()=>{const isSubmitting=formElement.classList.contains('submitting');if(isSubmitting===wasSubmitting)return;wasSubmitting=isSubmitting;submitButtons.forEach(button=>{if(isSubmitting){prevDisabled.set(button,button.disabled);button.disabled=true;button.classList.add('is-disabled');}else{button.disabled=prevDisabled.get(button)||false;button.classList.remove('is-disabled');}});});observer.observe(formElement,{attributes:true,attributeFilter:['class']});const form_options=JSON.parse(options_element.val());form.$form=$form;form.formElement=formElement;form.$input_hidden_group_fields=$form.find('[name="_wpcf7cf_hidden_group_fields"]');form.$input_hidden_groups=$form.find('[name="_wpcf7cf_hidden_groups"]');form.$input_visible_groups=$form.find('[name="_wpcf7cf_visible_groups"]');form.$input_repeaters=$form.find('[name="_wpcf7cf_repeaters"]');form.$input_steps=$form.find('[name="_wpcf7cf_steps"]');form.unit_tag=$form.closest('.wpcf7').attr('id');form.conditions=form_options['conditions'];form.simpleDom=null;form.reloadSimpleDom=function(){form.simpleDom=wpcf7cf.get_simplified_dom_model(form.formElement);} 47form.updateSimpleDom=function(){if(!form.simpleDom){form.reloadSimpleDom();} 48const inputs=Object.values(form.simpleDom).filter(item=>item.type==='input');const formdata=new FormData(form.formElement);let formdataEntries=[...formdata.entries()].map(entry=>[entry[0],entry[1].name??entry[1]]);const buttonEntries=Array.from(form.formElement.querySelectorAll('button'),b=>[b.name,b.value]);formdataEntries=formdataEntries.concat(buttonEntries);
48inputs.forEach(simpleDomItem=>{const newValue=form.getNewDomValueIfChanged(simpleDomItem,formdataEntries);if(newValue!==null){form.simpleDom[simpleDomItem.name].val=newValue;}});} 49form.isDomMatch=function(simpleDomItem,formDataEntries){const simpleDomItemName=simpleDomItem.name;const simpleDomItemValues=simpleDomItem.val;const currentValues=formDataEntries.filter(entry=>entry[0]===simpleDomItemName).map(entry=>entry[1]);return currentValues.join('|')===simpleDomItemValues.join('|');} 50form.getNewDomValueIfChanged=function(simpleDomItem,formDataEntries){const simpleDomItemName=simpleDomItem.name;const simpleDomItemValues=simpleDomItem.val;const currentValues=formDataEntries.filter(entry=>entry[0]===simpleDomItemName).map(entry=>entry[1]);return currentValues.join('|')===simpleDomItemValues.join('|')?null:currentValues;} 51form.get=function(selector){return jQuery(selector,form.$form);} 52form.getFieldByName=function(name){return form.simpleDom[name]||form.simpleDom[name+'[]'];} 53for(let i=0;i<form.conditions.length;i++){const condition=form.conditions[i];if(!('and_rules'in condition)){condition.and_rules=[{'if_field':condition.if_field,'if_value':condition.if_value,'operator':condition.operator}];}} 54form.initial_conditions=form.conditions;form.settings=form_options['settings'];form.$groups=jQuery();form.repeaters=[];form.multistep=null;form.fields=[];form.settings.animation_intime=parseInt(form.settings.animation_intime);form.settings.animation_outtime=parseInt(form.settings.animation_outtime);if(form.settings.animation==='no'){form.settings.animation_intime=0;form.settings.animation_outtime=0;} 55form.updateGroups();form.updateEventListeners();form.displayFields();form.$form.on('reset.wpcf7cf',form,function(e){const form=e.data;setTimeout(function(){form.reloadSimpleDom();form.displayFields();form.resetRepeaters();if(form.multistep!=null){form.multistep.moveToStep(1,false);} 56setTimeout(function(){if(form.$form.hasClass('sent')){jQuery('.wpcf7-response-output',form.$form)[0].scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"});}},400);},200);});} 57Wpcf7cfForm.prototype.resetRepeaters=function(){const form=this;form.repeaters.forEach(repeater=>{repeater.updateSubs(repeater.params.$repeater.initial_subs);});} 58Wpcf7cfForm.prototype.displayFields=function(){const form=this;const wpcf7cf_conditions=this.conditions;const wpcf7cf_settings=this.settings;if(cf7signature_resized===0&&typeof signatures!=='undefined'&&signatures.constructor===Array&&signatures.length>0){for(let i=0;i<signatures.length;i++){if(signatures[i].canvas.width===0){const $sig_canvas=jQuery(".wpcf7-form-control-signature-body>canvas");const $sig_wrap=jQuery(".wpcf7-form-control-signature-wrap");$sig_canvas.eq(i).attr('width',$sig_wrap.width());$sig_canvas.eq(i).attr('height',$sig_wrap.height());cf7signature_resized=1;}}} 59form.$groups.addClass('wpcf7cf-hidden novalidate');for(let i=0;i<wpcf7cf_conditions.length;i++){const condition=wpcf7cf_conditions[i];const show_group=window.wpcf7cf.should_group_be_shown(condition,form);if(show_group){form.get('[data-id="'+condition.then_field+'"]').removeClass('wpcf7cf-hidden novalidate');}} 60const animation_intime=wpcf7cf_settings.animation_intime;const animation_outtime=wpcf7cf_settings.animation_outtime;form.$groups.each(function(index){const $group=jQuery(this);if($group.is(':animated')){$group.finish();} 61if($group.css('display')==='none'&&!$group.hasClass('wpcf7cf-hidden')){if($group.prop('tagName')==='SPAN'){$group.show().trigger('wpcf7cf_show_group');}else{$group.animate(wpcf7cf_show_animation,animation_intime).trigger('wpcf7cf_show_group');} 62if($group.attr('data-disable_on_hide')!==undefined){$group.find(':input').prop('disabled',false).trigger('changedisabledprop.wpcf7cf');$group.find('.wpcf7-form-control-wrap').removeClass('wpcf7cf-disabled');}}else if($group.css('display')!=='none'&&$group.hasClass('wpcf7cf-hidden')){if($group.attr('data-clear_on_hide')!==undefined){const $inputs=jQuery(':input',$group).not(':button, :submit, :reset, :hidden');$inputs.each(function(){const $this=jQuery(this);$this.val(this.defaultValue);$this.prop('checked',this.defaultChecked);});jQuery('option',$group).each(function(){this.selected=this.defaultSelected;});jQuery('select',$group).each(function(){const $select=jQuery(this);if($select.val()===null){$select.val(jQuery("option:first",$select).val());}});$inputs.each(function(){this.dispatchEvent(new Event("change",{"bubbles":true}))});} 63if($group.prop('tagName')==='SPAN'){$group.hide().trigger('wpcf7cf_hide_group');}
63else{$group.animate(wpcf7cf_hide_animation,animation_outtime).trigger('wpcf7cf_hide_group');}}});form.updateHiddenFields();form.updateSummaryFields();};Wpcf7cfForm.prototype.updateSummaryFields=function(){const form=this;const $summary=form.get('.wpcf7cf-summary');if($summary.length==0||!$summary.is(':visible')){return;} 64const fd=new FormData();const formdata=form.$form.serializeArray();jQuery.each(formdata,function(key,input){fd.append(input.name,input.value);});jQuery.each(form.$form.find('input[type="file"]'),function(index,el){if(!el.files.length)return true;const fieldName=el.name;fd.append(fieldName,new Blob(),Array.from(el.files).map(file=>file.name).join(', '));});jQuery.ajax({url:wpcf7cf_global_settings.ajaxurl+'?action=wpcf7cf_get_summary',type:'POST',data:fd,processData:false,contentType:false,dataType:'json',success:function(json){$summary.html(json.summaryHtml);}});};Wpcf7cfForm.prototype.updateHiddenFields=function(){const form=this;const hidden_fields=[];const hidden_groups=[];const visible_groups=[];form.$groups.each(function(){const $group=jQuery(this);if($group.hasClass('wpcf7cf-hidden')){hidden_groups.push($group.attr('data-id'));if($group.attr('data-disable_on_hide')!==undefined){$group.find('input,select,textarea').each(function(){const $this=jQuery(this);if(!$this.prop('disabled')){$this.prop('disabled',true).trigger('changedisabledprop.wpcf7cf');} 65if(form.$form.find(`[data-class="wpcf7cf_group"]:not(.wpcf7cf-hidden) [name='${$this.attr('name')}']`).length===0){hidden_fields.push($this.attr('name'));}}) 66$group.find('.wpcf7-form-control-wrap').addClass('wpcf7cf-disabled');}else{$group.find('input,select,textarea').each(function(){hidden_fields.push(jQuery(this).attr('name'));});}}else{visible_groups.push($group.attr('data-id'));}});form.hidden_fields=hidden_fields;form.hidden_groups=hidden_groups;form.visible_groups=visible_groups;form.$input_hidden_group_fields.val(JSON.stringify(hidden_fields));form.$input_hidden_groups.val(JSON.stringify(hidden_groups));form.$input_visible_groups.val(JSON.stringify(visible_groups));return true;};Wpcf7cfForm.prototype.updateGroups=function(){const form=this;form.$groups=form.$form.find('[data-class="wpcf7cf_group"]');form.$groups.height('auto');form.conditions=window.wpcf7cf.get_nested_conditions(form);};Wpcf7cfForm.prototype.updateEventListeners=function(){const form=this;form.get('input, select, textarea, button').not('.wpcf7cf_add, .wpcf7cf_remove').off(wpcf7cf_change_events).on(wpcf7cf_change_events,form,function(e){window.wpcf7cf_updatingGroups=true;const form=e.data;clearTimeout(wpcf7cf_timeout);wpcf7cf_timeout=setTimeout(function(){window.wpcf7cf.updateMultistepState(form.multistep);form.updateSimpleDom();form.displayFields();window.wpcf7cf_updatingGroups=false;},wpcf7cf_change_time_ms);});};const wpcf7cf_date_regex=/^\d{4}-\d{2}-\d{2}$/;function wpcf7cf_isDateString(v){return typeof v==='string'&&wpcf7cf_date_regex.test(v)&&!isNaN(Date.parse(v));} 67window.wpcf7cf={hideGroup:function($group,animate){},showGroup:function($group,animate){},updateRepeaterSubHTML:function(html,oldSuffix,newSuffix,parentRepeaters){const oldIndexes=oldSuffix.split('__');oldIndexes.shift();const newIndexes=newSuffix.split('__');newIndexes.shift();let returnHtml=html;if(oldIndexes&&newIndexes&&oldIndexes.length===parentRepeaters.length&&newIndexes.length===parentRepeaters.length){const parentRepeatersInfo=parentRepeaters.map((repeaterId,i)=>{return{[repeaterId.split('__')[0]]:[oldIndexes[i],newIndexes[i]]};});const length=parentRepeatersInfo.length;let replacements=oldIndexes.map((oldIndex,i)=>{return['__'+oldIndexes.slice(0,length-i).join('__'),'__'+newIndexes.slice(0,length-i).join('__'),];});for(let i=0;i<length;i++){const id=Object.keys(parentRepeatersInfo[i])[0];const find=parentRepeatersInfo[i][id][0];const repl=parentRepeatersInfo[i][id][1];replacements.push([`<span class="wpcf7cf-index wpcf7cf__${id}">${find}<\\/span>`,`<span class="wpcf7cf-index wpcf7cf__${id}">${repl}</span>`]);} 68replacements.forEach(([oldSuffix,newSuffix])=>{returnHtml=returnHtml.replace(new RegExp(oldSuffix,'g'),newSuffix);});} 69return returnHtml;},initForm:function($forms){$forms.each(function(){const formElement=this;if(formElement.classList.contains('wpcf7-form')&&!wpcf7cf_forms.some((form)=>{return form.$form.get(0)===formElement;})){wpcf7cf_forms.push(new Wpcf7cfForm(formElement));}});},getWpcf7cfForm:function($form){const matched_forms=wpcf7cf_forms.filter((form)=>{return form.$form.get(0)===$form.get(0);});if(matched_forms.length){return matched_forms[0];} 70return false;},get_nested_conditions:function(form){const conditions=form.initial_conditions;form.reloadSimpleDom();const groups=Object.values(form.simpleDom).filter(function(item,i){return item.type==='group';});let sub_conditions=[];for(let i=0;i<groups.length;i++){const g=groups[i];let relevant_conditions=conditions.filter(function(condition,i){return condition.then_field===g.original_name;});relevant_conditions=relevant_conditions.map(function(item,i){return{then_field:g.name,and_rules:item.and_rules.map(function(and_rule,i){return{if_field:and_rule.if_field+g.suffix,if_value:and_rule.if_value,operator:and_rule.operator};})}});sub_conditions=sub_conditions.concat(relevant_conditions);} 71return sub_conditions;},get_simplified_dom_model:function(currentNode,simplified_dom={},parentGroups=[],parentRepeaters=[]){const type=currentNode.classList&¤tNode.classList.contains('wpcf7cf_repeater')?'repeater':currentNode.dataset.class=='wpcf7cf_group'?'group':currentNode.className=='wpcf7cf_step'?'step':currentNode.hasAttribute('name')?'input':false;let newParentRepeaters=[...parentRepeaters];let newParentGroups=[...parentGroups];if(type){const name=type==='input'?currentNode.getAttribute('name'):currentNode.dataset.id;if(type==='repeater'){newParentRepeaters.push(name);} 72if(type==='group'){newParentGroups.push(name);} 73if(name.substring(0,6)==='_wpcf7')return{};const original_name=type==='repeater'||type==='group'?currentNode.dataset.orig_data_id:type==='input'?(currentNode.getAttribute('data-orig_name')||name):name;const nameWithoutBrackets=name.replace('[]','');const originalNameWithoutBrackets=original_name.replace('[]','');const val=type==='step'?[currentNode.dataset.id.substring(5)]:[];const suffix=nameWithoutBrackets.replace(originalNameWithoutBrackets,'');if(!simplified_dom[name]){simplified_dom[name]={name,type,original_name,suffix,val,parentGroups,parentRepeaters}} 74if(type==='input'){if((currentNode.type==='checkbox'||currentNode.type==='radio')&&!currentNode.checked)return{};if(currentNode.multiple&¤tNode.options){simplified_dom[name].val=Object.values(currentNode.options).filter(o=>o.selected).map(o=>o.value)}else{simplified_dom[name].val.push(currentNode.value);}}} 75const getter=Object.getOwnPropertyDescriptor(Element.prototype,"children").get;const children=getter.call(currentNode);
75Array.from(children).forEach(childNode=>{const dom=wpcf7cf.get_simplified_dom_model(childNode,simplified_dom,newParentGroups,newParentRepeaters);simplified_dom={...dom,...simplified_dom};});return simplified_dom;},updateMultistepState:function(multistep){if(multistep==null)return;if(multistep.form.$form.hasClass('submitting'))return;const stepsData={currentStep:multistep.currentStep,numSteps:multistep.numSteps,fieldsInCurrentStep:multistep.getFieldsInStep(multistep.currentStep)};multistep.form.$input_steps.val(JSON.stringify(stepsData));multistep.$btn_prev.removeClass('disabled').attr('disabled',false);multistep.$btn_next.removeClass('disabled').attr('disabled',false);if(multistep.currentStep==multistep.numSteps){multistep.$btn_next.addClass('disabled').attr('disabled',true);} 76if(multistep.currentStep==1){multistep.$btn_prev.addClass('disabled').attr('disabled',true);} 77const $current_step=multistep.$steps.eq(multistep.currentStep-1);const prev_text=$current_step.attr('data-prev-button-text');const next_text=$current_step.attr('data-next-button-text');if(prev_text!==undefined)multistep.$btn_prev.text(prev_text);if(next_text!==undefined)multistep.$btn_next.text(next_text);const $submit_button=multistep.form.$form.find('input[type="submit"]:last').eq(0);const $ajax_loader=multistep.form.$form.find('.wpcf7-spinner').eq(0);$submit_button.detach().prependTo(multistep.$btn_next.parent());$ajax_loader.detach().prependTo(multistep.$btn_next.parent());if(multistep.currentStep==multistep.numSteps){multistep.$btn_next.hide();$submit_button.show();}else{$submit_button.hide();multistep.$btn_next.show();} 78const $dots=multistep.$dots.find('.dot');$dots.removeClass('active').removeClass('completed');for(let step=1;step<=multistep.numSteps;step++){if(step<multistep.currentStep){$dots.eq(step-1).addClass('completed');}else if(step==multistep.currentStep){$dots.eq(step-1).addClass('active');}}},should_group_be_shown:function(condition,form){let show_group=true;let atLeastOneFieldFound=false;for(let and_rule_i=0;and_rule_i<condition.and_rules.length;and_rule_i++){let condition_ok=false;const condition_and_rule=condition.and_rules[and_rule_i];const inputField=form.getFieldByName(condition_and_rule.if_field);if(!inputField)continue;atLeastOneFieldFound=true;const if_val=condition_and_rule.if_value;let operator=condition_and_rule.operator;operator=operator==='≤'?'less than or equals':operator;operator=operator==='≥'?'greater than or equals':operator;operator=operator==='>'?'greater than':operator;operator=operator==='<'?'less than':operator;const $field=operator==='function'&&jQuery(`[name="${inputField.name}"]`).eq(0);condition_ok=this.isConditionTrue(inputField.val,operator,if_val,$field);show_group=show_group&&condition_ok;} 79return show_group&&atLeastOneFieldFound;},isConditionTrue(values,operator,testValue='',$field=jQuery()){if(!Array.isArray(values)){values=[values];} 80let condition_ok=false;const valuesAreEmpty=values.length===0||values.every((v)=>!v&&v!==0);if(operator==='equals'&&testValue===''&&valuesAreEmpty){return true;} 81if(operator==='not equals'&&testValue===''&&valuesAreEmpty){return false;} 82if(valuesAreEmpty){if(operator==='is empty'){condition_ok=true;}}else{if(operator==='not empty'){condition_ok=true;}} 83const testValueNumber=isFinite(parseFloat(testValue))?parseFloat(testValue):NaN;const testValueIsDate=wpcf7cf_isDateString(testValue);if(operator==='not equals'||operator==='not equals (regex)'){condition_ok=true;} 84if(operator==='function'&&typeof window[testValue]=='function'&&window[testValue]($field)){condition_ok=true;} 85let regex_patt=/.*/i;let isValidRegex=true;if(operator==='equals (regex)'||operator==='not equals (regex)'){try{regex_patt=new RegExp(testValue,'i');}catch(e){isValidRegex=false;}} 86for(let i=0;i<values.length;i++){const value=values[i];const valueNumber=isFinite(parseFloat(value))?parseFloat(value):NaN;const valsAreNumbers=!isNaN(valueNumber)&&!isNaN(testValueNumber);const valueIsDate=wpcf7cf_isDateString(value);const compareAsDates=testValueIsDate&&valueIsDate;const left=compareAsDates?Date.parse(value):valueNumber;const right=compareAsDates?Date.parse(testValue):testValueNumber;const comparable=compareAsDates||(valsAreNumbers&&testValueIsDate===valueIsDate);if(operator==='equals'&&value===testValue||operator==='equals (regex)'&®ex_patt.test(value)||operator==='greater than'&&comparable&&left>right||operator==='less than'&&comparable&&left<right||operator==='greater than or equals'&&comparable&&left>=right||operator==='less than or equals'&&comparable&&left<=right){condition_ok=true;break;}else if(operator==='not equals'&&value===testValue||operator==='not equals (regex)'&®ex_patt.test(value)){condition_ok=false;break;}} 87return condition_ok;},getFormObj($form){if(typeof $form==='string'){$form=jQuery($form).eq(0);} 88return wpcf7cf.getWpcf7cfForm($form);},getRepeaterObj($form,repeaterDataId){const form=wpcf7cf.getFormObj($form);const repeater=form.repeaters.find(repeater=>repeater.params.$repeater.attr('data-id')===repeaterDataId);return repeater;},getMultiStepObj($form){const form=wpcf7cf.getFormObj($form);return form.multistep;},repeaterAddSub($form,repeaterDataId){const repeater=wpcf7cf.getRepeaterObj($form,repeaterDataId);repeater.updateSubs(repeater.params.$repeater.num_subs+1);},repeaterAddSubAtIndex($form,repeaterDataId,index){const repeater=wpcf7cf.getRepeaterObj($form,repeaterDataId);repeater.addSubs(1,index);},repeaterRemoveSubAtIndex($form,repeaterDataId,index){const repeater=wpcf7cf.getRepeaterObj($form,repeaterDataId);repeater.removeSubs(1,index);},repeaterRemoveSub($form,repeaterDataId){const repeater=wpcf7cf.getRepeaterObj($form,repeaterDataId);repeater.updateSubs(repeater.params.$repeater.num_subs-1);},repeaterSetNumberOfSubs($form,repeaterDataId,numberOfSubs){const repeater=wpcf7cf.getRepeaterObj($form,repeaterDataId);repeater.updateSubs(numberOfSubs);},multistepMoveToStep($form,step){const multistep=wpcf7cf.getMultiStepObj($form);multistep.moveToStep(step);},async multistepMoveToStepWithValidation($form,step){const multistep=wpcf7cf.getMultiStepObj($form);const result=await multistep.validateStep(multistep.currentStep);if(result==='success'){multistep.moveToStep(step);}},};document.querySelectorAll('.wpcf7-form').forEach(function(formElement){wpcf7cf_forms.push(new Wpcf7cfForm(formElement));});document.addEventListener('DOMContentLoaded',function(){wpcf7cf_forms.forEac
88h(function(f){f.displayFields();});}); 89jQuery.fn.nextInArray=function(element){var nextId=0;for(var i=0;i<this.length;i++){if(this[i]==element){nextId=i+1;break;}} 90if(nextId>this.length-1)nextId=0;return this[nextId];};jQuery.fn.clearForm=function(){return this.each(function(){var type=this.type,tag=this.tagName.toLowerCase();if(tag=='form')return jQuery(':input',this).clearForm();if(type=='text'||type=='password'||tag=='textarea')this.value='';else if(type=='checkbox'||type=='radio')this.checked=false;else if(tag=='select')this.selectedIndex=-1;});};jQuery.fn.tagName=function(){return this.get(0).tagName;};jQuery.fn.exists=function(){return jQuery(this).length>0?true:false;};function isNumber(val){return/^\d+/.test(val);} 91function pushDataToParam(data,pref){pref=pref?pref:'';var res=[];for(var key in data){var name=pref&&pref!=''?pref+'['+key+']':key;if(typeof data[key]==='array'||typeof data[key]==='object'){res=jQuery.merge(res,pushDataToParam(data[key],name));}else{res.push(name+'='+data[key]);}} 92return res;} 93jQuery.fn.serializeAnythingGmp=function(addData){var toReturn=[];var els=jQuery(this).find(':input').get();jQuery.each(els,function(){if(this.name&&!this.disabled&&(this.checked||/select|textarea/i.test(this.nodeName)||/text|hidden|password/i.test(this.type))){var val=jQuery(this).val();toReturn.push(encodeURIComponent(this.name)+'='+encodeURIComponent(val));}});if(typeof addData!='undefined'){toReturn=jQuery.merge(toReturn,pushDataToParam(addData));} 94return toReturn.join('&').replace(/%20/g,'+');};jQuery.fn.serializeAssoc=function(){var data=[];jQuery.each(this.serializeArray(),function(key,obj){var a=obj.name.match(/(.*?)\[(.*?)\]/);if(a!==null){var subName=a[1];var subKey=a[2];if(!data[subName])data[subName]=[];
94if(data[subName][subKey]){if(jQuery.isArray(data[subName][subKey])){data[subName][subKey].push(obj.value);}else{data[subName][subKey]=[];data[subName][subKey].push(obj.value);}}else{data[subName][subKey]=obj.value;}}else{if(data[obj.name]){if(jQuery.isArray(data[obj.name])){data[obj.name].push(obj.value);}else{data[obj.name]=[];data[obj.name].push(obj.value);}}else{data[obj.name]=obj.value;}}});return data;};function str_replace(haystack,needle,replacement){var temp=haystack.split(needle);return temp.join(replacement);} 95function nameToClassId(name){return str_replace(str_replace(name,']',''),'[','');} 96function strpos(haystack,needle,offset){var i=haystack.indexOf(needle,offset);return i>=0?i:false;} 97function extend(Child,Parent){var F=function(){};F.prototype=Parent.prototype;Child.prototype=new F();Child.prototype.constructor=Child;Child.superclass=Parent.prototype;} 98function toeRedirect(url){document.location.href=url;} 99function toeReload(url){if(url)toeRedirect(url);document.location.reload();} 100jQuery.fn.toeRebuildSelect=function(data,useIdAsValue,val){if(jQuery(this).tagName()=='SELECT'&&typeof data=='object'){if(jQuery(data).length>0){if(typeof val=='undefined')val=false;if(jQuery(this).children('option').length){jQuery(this).children('option').remove();} 101if(typeof useIdAsValue=='undefined')useIdAsValue=false;var selected='';for(var id in data){selected='';if(val&&((useIdAsValue&&id==val)||data[id]==val))selected='selected';jQuery(this).append('<option value="'+(useIdAsValue?id:data[id])+'" '+selected+'>'+data[id]+'</option>');}}}};function toeInArray(needle,haystack){if(typeof haystack=='object'){for(var k in haystack){if(haystack[k]==needle)return k;}}else if(typeof haystack=='array'){return jQuery.inArray(needle,haystack);} 102return-1;} 103jQuery.fn.setReadonly=function(){jQuery(this).addClass('toeReadonly').attr('readonly','readonly');};jQuery.fn.unsetReadonly=function(){jQuery(this).removeClass('toeReadonly').removeAttr('readonly','readonly');};jQuery.fn.getClassId=function(pref,test){var classId=jQuery(this).attr('class');classId=classId.substr(strpos(classId,pref+'_'));if(strpos(classId,' '))classId=classId.substr(0,strpos(classId,' '));classId=classId.split('_');classId=classId[1];return classId;};function toeTextIncDec(textFieldId,inc){var value=parseInt(jQuery('#'+textFieldId).val());if(isNaN(value))value=0;if(!(inc<0&&value<1)){value+=inc;} 104jQuery('#'+textFieldId).val(value);} 105function toeStrFirstUp(str){str+='';var f=str.charAt(0).toUpperCase();return f+str.substr(1);} 106function URLToArray(url){var request={};if(typeof url!='string'){url=url[0];} 107var pairs=url.substring(url.indexOf('?')+1).split('&');for(var i=0;i<pairs.length;i++){if(!pairs[i])continue;var pair=pairs[i].split('=');request[decodeURIComponent(pair[0])]=decodeURIComponent(pair[1]);} 108return request;} 109function ArrayToURL(array){var pairs=[];for(var key in array)if(array.hasOwnProperty(key))pairs.push(encodeURIComponent(key)+'='+encodeURIComponent(array[key]));return pairs.join('&');} 110function parseStr(str,array){var strArr=String(str).replace(/^&/,'').replace(/&$/,'').split('&'),sal=strArr.length,i,j,ct,p,lastObj,obj,lastIter,undef,chr,tmp,key,value,postLeftBracketPos,keys,keysLen,fixStr=function(str){return decodeURIComponent(str.replace(/\+/g,'%20'));};if(!array){array={};} 111for(i=0;i<sal;i++){tmp=strArr[i].split('=');key=fixStr(tmp[0]);value=tmp.length<2?'':fixStr(tmp[1]);while(key.charAt(0)===' '){key=key.slice(1);} 112if(key.indexOf('\x00')>-1){key=key.slice(0,key.indexOf('\x00'));} 113if(key&&key.charAt(0)!=='['){keys=[];postLeftBracketPos=0;for(j=0;j<key.length;j++){if(key.charAt(j)==='['&&!postLeftBracketPos){postLeftBracketPos=j+1;}else if(key.charAt(j)===']'){if(postLeftBracketPos){if(!keys.length){keys.push(key.slice(0,postLeftBracketPos-1));} 114keys.push(key.substr(postLeftBracketPos,j-postLeftBracketPos));postLeftBracketPos=0;if(key.charAt(j+1)!=='['){break;}}}} 115if(!keys.length){keys=[key];} 116for(j=0;j<keys[0].length;j++){chr=keys[0].charAt(j);if(chr===' '||chr==='.'||chr==='['){keys[0]=keys[0].substr(0,j)+'_'+keys[0].substr(j+1);} 117if(chr==='['){break;}} 118obj=array;for(j=0,keysLen=keys.length;j<keysLen;j++){key=keys[j].replace(/^['"]/,'').replace(/['"]$/,'');lastIter=j!==keys.length-1;lastObj=obj;if((key!==''&&key!==' ')||j===0){if(obj[key]===undef){obj[key]={};} 119obj=obj[key];}else{ct=-1;for(p in obj){if(obj.hasOwnProperty(p)){if(+p>ct&&p.match(/^\d+$/g)){ct=+p;}}} 120key=ct+1;}} 121lastObj[key]=value;}} 122return array;} 123function toeListableGmp(params){this.params=jQuery.extend({},params);this.table=jQuery(this.params.table);this.paging=jQuery(this.params.paging);this.perPage=this.params.perPage;this.list=this.params.list;this.count=this.params.count;this.page=this.params.page;this.pagingCallback=this.params.pagingCallback;var self=this;this.draw=function(list,count){this.table.find('tr').not('.gmpExample, .gmpTblHeader').remove();var exampleRow=this.table.find('.gmpExample');for(var i in list){var newRow=exampleRow.clone();for(var key in list[i]){var element=newRow.find('.'+key);if(element.length){var valueTo=element.attr('valueTo');
123if(valueTo){var newValue=list[i][key];var prevValue=element.attr(valueTo);if(prevValue)newValue=prevValue+' '+newValue;element.attr(valueTo,newValue);}else element.html(list[i][key]);}} 124newRow.removeClass('gmpExample').show();this.table.append(newRow);} 125if(this.paging){this.paging.html('');if(count&&count>list.length&&this.perPage){for(var i=1;i<=Math.ceil(count/this.perPage);i++){var newPageId=i-1,newElement=newPageId==this.page?jQuery('<b/>'):jQuery('<a/>');if(newPageId!=this.page){newElement.attr('href','#'+newPageId).click(function(){if(self.pagingCallback&&typeof self.pagingCallback=='function'){self.pagingCallback(parseInt(jQuery(this).attr('href').replace('#','')));return false;}});} 126newElement.addClass('toePagingElement').html(i);this.paging.append(newElement);if(i%20==0&&i)this.paging.append('<br />');}}}};if(this.list)this.draw(this.list,this.count);} 127function setCookieGmp(c_name,value,exdays){var exdate=new Date();exdate.setDate(exdate.getDate()+exdays);var value_prepared='';if(typeof value=='array'||typeof value=='object'){value_prepared='_JSON:'+JSON.stringify(value);}else{value_prepared=value;} 128var c_value=escape(value_prepared)+(exdays==null?'':'; expires='+exdate.toUTCString())+'; path=/';document.cookie=c_name+'='+c_value;} 129function getCookieGmp(name){var parts=document.cookie.split(name+'=');if(parts.length==2){var value=unescape(parts.pop().split(';').shift());if(value.indexOf('_JSON:')===0){value=JSON.parse(value.split('_JSON:').pop());} 130return value;} 131return null;} 132function delCookieGmp(name){document.cookie=name+'=; expires=Thu, 01 Jan 1970 00:00:01 GMT;';} 133function callUserFuncArray(cb,parameters){var func;if(typeof cb==='string'){func=typeof this[cb]==='function'?this[cb]:(func=new Function(null,'return '+cb)());}else if(Object.prototype.toString.call(cb)==='[object Array]'){func=typeof cb[0]=='string'?eval(cb[0]+"['"+cb[1]+"']"):(func=cb[0][cb[1]]);}else if(typeof cb==='function'){func=cb;} 134if(typeof func!=='function'){throw new Error(func+' is not a valid function');} 135return typeof cb[0]==='string'?func.apply(eval(cb[0]),parameters):typeof cb[0]!=='object'?func.apply(null,parameters):func.apply(cb[0],parameters);} 136jQuery.fn.zoom=function(level){jQuery(this).data('zoom',level);return jQuery(this).css({'-moz-transform':'scale('+level+')','-moz-transform-origin':'center center','-o-transform':'scale('+level+')','-o-transform-origin':'center center','-webkit-transform':'scale('+level+')','-webkit-transform-origin':'center center',transform:'scale('+level+')','transform-origin':'center center',});};jQuery.fn.rotate=function(deg){return jQuery(this).css({'-moz-transform':'rotate('+deg+'deg)','-webkit-transform':'rotate('+deg+'deg)','-o-transform':'rotate('+deg+'deg)','-ms-transform':'rotate('+deg+'deg)',transform:'rotate('+deg+'deg)',});};jQuery.fn.scrollWidth=function(){var inner=document.createElement('p');inner.style.width='100%';inner.style.height='200px';var outer=document.createElement('div');outer.style.position='absolute';outer.style.top='0px';outer.style.left='0px';outer.style.visibility='hidden';outer.style.width='200px';outer.style.height='150px';outer.style.overflow='hidden';outer.appendChild(inner);document.body.appendChild(outer);var w1=inner.offsetWidth;outer.style.overflow='scroll';var w2=inner.offsetWidth;if(w1==w2)w2=outer.clientWidth;document.body.removeChild(outer);return w1-w2;};function toeGetImgAttachId(img){var classesStr=jQuery(img).attr('class'),aid=0;if(classesStr&&classesStr!=''){var matches=classesStr.match(/wp-image-(\d+)/);if(matches&&matches[1]){aid=parseInt(matches[1]);}} 137return aid;} 138function toeGetHashParams(){var hashArr=window.location.hash.split('#'),res=[];for(var i in hashArr){if(hashArr[i]&&hashArr[i]!=''){res.push(hashArr[i]);}} 139return res;} 140function traverseElement(el,regex,textReplacerFunc,to){if(!/^(script|style)$/.test(el.tagName)){var child=el.lastChild;while(child){if(child.nodeType==1){traverseElement(child,regex,textReplacerFunc,to);}else if(child.nodeType==3){textReplacerFunc(child,regex,to);} 141child=child.previousSibling;}}} 142function textReplacerFunc(textNode,regex,to){textNode.data=textNode.data.replace(regex,to);} 143function replaceWords(html,words){var container=document.createElement('div');container.innerHTML=html;for(var replace in words){traverseElement(container,new RegExp(replace,'g'),textReplacerFunc,words[replace]);} 144return container.innerHTML;} 145function toeSelectText(element){var doc=document,text=jQuery(element).get(0),range,selection;if(doc.body.createTextRange){range=doc.body.createTextRange();range.moveToElementText(text);range.select();}else if(window.getSelection){selection=window.getSelection();range=doc.createRange();range.selectNodeContents(text);selection.removeAllRanges();selection.addRange(range);}} 146jQuery.fn.animationDuration=function(seconds,isMili){if(isMili){seconds=parseFloat(seconds)/1000;} 147var secondsStr=seconds+'s';return jQuery(this).css({'webkit-animation-duration':secondsStr,'-moz-animation-duration':secondsStr,'-o-animation-duration':secondsStr,'animation-duration':secondsStr,});};function gmpStrToMs(strDate){var dateHours=strDate.split(' ');
147if(dateHours.length==2){strDate=dateHours[0]+' ';var hms=dateHours[1].split(':');for(var i=0;i<3;i++){strDate+=hms[i]?hms[i]:'00';if(i<2)strDate+=':';}} 148var date=new Date(str_replace(strDate,'-','/')),res=0;if(date){res=date.getTime();} 149return res;} 150function twoArraysContainSameValue(arr1,arr2){return arr2.some(function(v){return arr1.indexOf(v)>=0;});} 151Date.prototype.format=function(e){var t='';var n=Date.replaceChars;for(var r=0;r<e.length;r++){var i=e.charAt(r);if(r-1>=0&&e.charAt(r-1)=='\\'){t+=i;}else if(n[i]){t+=n[i].call(this);}else if(i!='\\'){t+=i;}} 152return t;};Date.replaceChars={shortMonths:['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'],longMonths:['January','February','March','April','May','June','July','August','September','October','November','December'],shortDays:['Sun','Mon','Tue','Wed','Thu','Fri','Sat'],longDays:['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'],d:function(){return(this.getDate()<10?'0':'')+this.getDate();},D:function(){return Date.replaceChars.shortDays[this.getDay()];},j:function(){return this.getDate();},l:function(){return Date.replaceChars.longDays[this.getDay()];},N:function(){return this.getDay()+1;},S:function(){return this.getDate()%10==1&&this.getDate()!=11?'st':this.getDate()%10==2&&this.getDate()!=12?'nd':this.getDate()%10==3&&this.getDate()!=13?'rd':'th';},w:function(){return this.getDay();},z:function(){var e=new Date(this.getFullYear(),0,1);return Math.ceil((this-e)/864e5);},W:function(){var e=new Date(this.getFullYear(),0,1);return Math.ceil(((this-e)/864e5+e.getDay()+1)/7);},F:function(){return Date.replaceChars.longMonths[this.getMonth()];},m:function(){return(this.getMonth()<9?'0':'')+(this.getMonth()+1);},M:function(){return Date.replaceChars.shortMonths[this.getMonth()];},n:function(){return this.getMonth()+1;},t:function(){var e=new Date();return new Date(e.getFullYear(),e.getMonth(),0).getDate();},L:function(){var e=this.getFullYear();return e%400==0||(e%100!=0&&e%4==0);},o:function(){var e=new Date(this.valueOf());e.setDate(e.getDate()-((this.getDay()+6)%7)+3);return e.getFullYear();},Y:function(){return this.getFullYear();},y:function(){return(''+this.getFullYear()).substr(2);},a:function(){return this.getHours()<12?'am':'pm';},A:function(){return this.getHours()<12?'AM':'PM';},B:function(){return Math.floor(((((this.getUTCHours()+1)%24)+this.getUTCMinutes()/60+this.getUTCSeconds()/3600)*1e3)/24);},g:function(){return this.getHours()%12||12;},G:function(){return this.getHours();},h:function(){return((this.getHours()%12||12)<10?'0':'')+(this.getHours()%12||12);},H:function(){return(this.getHours()<10?'0':'')+this.getHours();},i:function(){return(this.getMinutes()<10?'0':'')+this.getMinutes();},s:function(){return(this.getSeconds()<10?'0':'')+this.getSeconds();},u:function(){var e=this.getMilliseconds();return(e<10?'00':e<100?'0':'')+e;},e:function(){return'Not Yet Supported';},I:function(){var e=null;for(var t=0;t<12;++t){var n=new Date(this.getFullYear(),t,1);var r=n.getTimezoneOffset();if(e===null)e=r;else if(r<e){e=r;break;}else if(r>e)break;} 153return(this.getTimezoneOffset()==e)|0;},O:function(){return(-this.getTimezoneOffset()<0?'-':'+')+(Math.abs(this.getTimezoneOffset()/60)<10?'0':'')+Math.abs(this.getTimezoneOffset()/60)+'00';},P:function(){return(-this.getTimezoneOffset()<0?'-':'+')+(Math.abs(this.getTimezoneOffset()/60)<10?'0':'')+Math.abs(this.getTimezoneOffset()/60)+':00';},T:function(){var e=this.getMonth();this.setMonth(0);var t=this.toTimeString().replace(/^.+ \(?([^\)]+)\)?$/,'$1');this.setMonth(e);return t;},Z:function(){return-this.getTimezoneOffset()*60;},c:function(){return this.format('Y-m-d\\TH:i:sP');},r:function(){return this.toString();},U:function(){return this.getTime()/1e3;},}; 154var GMP_DATA={"siteUrl":"https://www.biocodex.fr/","imgPath":"https://www.biocodex.fr/wp-content/plugins/google-maps-easy/img/","cssPath":"https://www.biocodex.fr/wp-content/plugins/google-maps-easy/css/","modPath":"https://www.biocodex.fr/wp-content/plugins/google-maps-easy/modules/","loader":"https://www.biocodex.fr/wp-content/plugins/google-maps-easy/img/loading.gif","close"
154:"https://www.biocodex.fr/wp-content/plugins/google-maps-easy/img/cross.gif","ajaxurl":"https://www.biocodex.fr/wp-admin/admin-ajax.php","GMP_CODE":"gmp","isAdmin":"","gmapApiUrl":"https://maps.googleapis.com/maps/api/js?key=AIzaSyCX-Wb0DQ1x-F5EcGczmHawYhVBZDH8-v8&v=weekly&libraries=marker"}; 155if(typeof GMP_DATA=='undefined')var GMP_DATA={};if(isNumber(GMP_DATA.animationSpeed))GMP_DATA.animationSpeed=parseInt(GMP_DATA.animationSpeed);else if(jQuery.inArray(GMP_DATA.animationSpeed,['fast','slow'])==-1)GMP_DATA.animationSpeed='fast';GMP_DATA.showSubscreenOnCenter=parseInt(GMP_DATA.showSubscreenOnCenter);var sdLoaderImgGmp='<img src="'+GMP_DATA.loader+'" />';var g_gmpAnimationSpeed=300;jQuery.fn.showLoaderGmp=function(){return jQuery(this).html(sdLoaderImgGmp);};jQuery.fn.appendLoaderGmp=function(){jQuery(this).append(sdLoaderImgGmp);};jQuery.sendFormGmp=function(params){return jQuery('<br />').sendFormGmp(params);};jQuery.fn.sendFormGmp=function(params){var form=null;if(!params)params={fid:false,msgElID:false,onSuccess:false};if(params.fid)form=jQuery('#'+fid);else form=jQuery(this);var sentFromForm=jQuery(form).tagName()=='FORM';var data=new Array();if(params.data)data=params.data;else if(sentFromForm)data=jQuery(form).serialize();if(params.appendData){var dataIsString=typeof data=='string';var addStrData=[];for(var i in params.appendData){if(dataIsString){if(toeInArray(typeof(params.appendData[i],['object','array']))){for(var j in params.appendData[i]){addStrData.push(i+'['+j+']'+'='+params.appendData[i][j]);}}else{addStrData.push(i+'='+params.appendData[i]);}}else data[i]=params.appendData[i];} 156if(dataIsString)data+='&'+addStrData.join('&');} 157var msgEl=null;if(params.msgElID){if(params.msgElID=='noMessages')msgEl=false;else if(typeof params.msgElID=='object')msgEl=params.msgElID;else msgEl=jQuery('#'+params.msgElID);} 158if(typeof params.inputsWraper=='string'){form=jQuery('#'+params.inputsWraper);sentFromForm=true;} 159if(sentFromForm&&form){jQuery(form).find('*').removeClass('gmpInputError');} 160if(msgEl&&!params.btn){jQuery(msgEl).removeClass('gmpSuccessMsg').removeClass('gmpErrorMsg').showLoaderGmp();} 161if(params.btn){jQuery(params.btn).attr('disabled','disabled');params.btnIconElement=jQuery(params.btn).find('.fa').length?jQuery(params.btn).find('.fa'):jQuery(params.btn);if(jQuery(params.btn).find('.fa').length){params.btnIconElement.data('prev-class',params.btnIconElement.attr('class')).attr('class','fa fa-spinner fa-spin');}} 162var url='';if(typeof params.url!='undefined')url=params.url;else if(typeof ajaxurl=='undefined')url=GMP_DATA.ajaxurl;else url=ajaxurl;jQuery('.gmpErrorForField').hide(GMP_DATA.animationSpeed);var dataType=params.dataType?params.dataType:'json';if(typeof data=='string'){data+='&pl='+GMP_DATA.GMP_CODE;data+='&reqType=ajax';}else{data['pl']=GMP_DATA.GMP_CODE;data['reqType']='ajax';} 163jQuery.ajax({url:url,data:data,type:'POST',dataType:dataType,success:function(res){toeProcessAjaxResponseGmp(res,msgEl,form,sentFromForm,params);if(params.clearMsg){setTimeout(function(){if(msgEl)jQuery(msgEl).animateClear();},typeof params.clearMsg=='boolean'?5000:params.clearMsg);}},});};jQuery.fn.animateClear=function(){var newContent=jQuery('<span>'+jQuery(this).html()+'</span>');jQuery(this).html(newContent);jQuery(newContent).hide(GMP_DATA.animationSpeed,function(){jQuery(newContent).remove();});};jQuery.fn.animateRemoveGmp=function(animationSpeed,onSuccess){animationSpeed=animationSpeed==undefined?GMP_DATA.animationSpeed:animationSpeed;jQuery(this).hide(animationSpeed,function(){jQuery(this).remove();if(typeof onSuccess==='function')onSuccess();});};function toeProcessAjaxResponseGmp(res,msgEl,form,sentFromForm,params){if(typeof params=='undefined')params={};if(typeof msgEl=='string')msgEl=jQuery('#'+msgEl);if(msgEl)jQuery(msgEl).html('');if(params.btn){jQuery(params.btn).removeAttr('disabled');if(params.btnIconElement){params.btnIconElement.attr('class',params.btnIconElement.data('prev-class'));}} 164if(typeof res=='object'){if(res.error){if(msgEl){jQuery(msgEl).removeClass('gmpSuccessMsg').addClass('gmpErrorMsg');} 165var errorsArr=[];for(var name in res.errors){if(sentFromForm){var inputError=jQuery(form).find('[name*="'+name+'"]');
165inputError.addClass('gmpInputError');if(inputError.attr('placeholder')){} 166if(!inputError.data('keyup-error-remove-binded')){inputError.keydown(function(){jQuery(this).removeClass('gmpInputError');}).data('keyup-error-remove-binded',1);}} 167if(jQuery('.gmpErrorForField.toe_'+nameToClassId(name)+'').exists()) 168jQuery('.gmpErrorForField.toe_'+nameToClassId(name)+'').show().html(res.errors[name]);else if(msgEl)jQuery(msgEl).append(res.errors[name]).append('<br />');else errorsArr.push(res.errors[name]);} 169if(errorsArr.length&¶ms.btn){jQuery('<div />').html(errorsArr.join('<br />')).appendTo('body').dialog({modal:true,width:'500px',});}}else if(res.messages.length){if(msgEl){jQuery(msgEl).removeClass('gmpErrorMsg').addClass('gmpSuccessMsg');for(var i=0;i<res.messages.length;i++){jQuery(msgEl).append(res.messages[i]).append('<br />');}}}} 170if(params.onSuccess&&typeof params.onSuccess=='function'){params.onSuccess(res);}} 171function getDialogElementGmp(){return jQuery('<div/>').appendTo(jQuery('body'));} 172function toeOptionGmp(key){if(GMP_DATA.options&&GMP_DATA.options[key]&&GMP_DATA.options[key].value)return GMP_DATA.options[key].value;return false;} 173function toeLangGmp(key){if(GMP_DATA.siteLang&&GMP_DATA.siteLang[key])return GMP_DATA.siteLang[key];return key;} 174function toePagesGmp(key){if(typeof GMP_DATA!='undefined'&&GMP_DATA[key])return GMP_DATA[key];return false;} 175function toeOptTimeoutHideDescriptionGmp(){jQuery('#gmpOptDescription').removeAttr('toeFixTip');setTimeout(function(){if(!jQuery('#gmpOptDescription').attr('toeFixTip'))toeOptHideDescriptionGmp();},500);} 176function toeOptShowDescriptionGmp(description,x,y,moveToLeft){if(typeof description!='undefined'&&description!=''){if(!jQuery('#gmpOptDescription').length){jQuery('body').append('<div id="gmpOptDescription"></div>');} 177if(moveToLeft) 178jQuery('#gmpOptDescription').css('right',jQuery(window).width()-(x-10));else jQuery('#gmpOptDescription').css('left',x+10);jQuery('#gmpOptDescription').css('top',y);jQuery('#gmpOptDescription').show(200);jQuery('#gmpOptDescription').html(description);}} 179function toeOptHideDescriptionGmp(){jQuery('#gmpOptDescription').removeAttr('toeFixTip');jQuery('#gmpOptDescription').hide(200);} 180function toeInArrayGmp(needle,haystack){if(haystack){for(var i in haystack){if(haystack[i]==needle)return true;}} 181return false;} 182function toeShowDialogCustomized(element,options){options=jQuery.extend({resizable:false,width:500,height:300,closeOnEscape:true,open:function(event,ui){jQuery('.ui-dialog-titlebar').css({'background-color':'#222222','background-image':'none',border:'none',margin:'0',padding:'0','border-radius':'0',color:'#CFCFCF',height:'27px',});jQuery('.ui-dialog-titlebar-close').css({background:'url("'+GMP_DATA.cssPath+'img/tb-close.png") no-repeat scroll 0 0 transparent',border:'0',width:'15px',height:'15px',padding:'0','border-radius':'0',margin:'7px 7px 0',}).html('');jQuery('.ui-dialog').css({'border-radius':'3px','background-color':'#FFFFFF','background-image':'none',padding:'1px','z-index':'300000',position:'fixed',top:'60px',});jQuery('.ui-dialog-buttonpane').css({'background-color':'#FFFFFF',});jQuery('.ui-dialog-title').css({color:'#CFCFCF',font:'12px sans-serif',padding:'6px 10px 0',});if(options.openCallback&&typeof options.openCallback=='function'){options.openCallback(event,ui);} 183jQuery('.ui-widget-overlay').css({'z-index':jQuery(event.target).parents('.ui-dialog:first').css('z-index')-1,'background-image':'none',});if(options.modal&&options.closeOnBg){jQuery('.ui-widget-overlay').unbind('click').bind('click',function(){jQuery(element).dialog('close');});}},},options);return jQuery(element).dialog(options);} 184function toeSliderMove(event,ui){var id=jQuery(event.target).attr('id');var unit=jQuery(event.target).parent().find('[data-unit]').attr('data-unit');if(ui.value==1){jQuery('#toeSliderDisplay_'+id).html(ui.value+' '+unit);}else{jQuery('#toeSliderDisplay_'+id).html(ui.value+' '+unit+'s');} 185jQuery('#toeSliderInput_'+id).val(ui.value).change();} 186function setBrowserUrl(url){if(typeof history.pushState!='undefined'){var obj={Title:document.title,Url:url};history.pushState(obj,obj.Title,obj.Url);}} 187function createAjaxLinkGmp(param){return GMP_DATA.ajaxurl+'?'+paramGmp(param);} 188function paramGmp(param){var param=jQuery.extend({},param);param['pl']=GMP_DATA.GMP_CODE;return jQuery.param(param);} 189function gmpGetTxtEditorVal(id){var elem=jQuery('#'+id),content=typeof tinyMCE!=='undefined'&&tinyMCE.get(id)&&!elem.is(':visible')?tinyMCE.get(id).getContent():elem.val();return content;} 190function gmpSetTxtEditorVal(id,content){var elem=jQuery('#'+id);if(typeof tinyMCE!=='undefined'&&tinyMCE&&tinyMCE.get(id)&&!elem.is(':visible')){tinyMCE.get(id).setContent(content);}else{elem.val(content);}}; 191var g_gmpLibJsLoaded=false;function gmpLoadGoogleLib(){if(!g_gmpLibJsLoaded){jQuery('head').append('<script src="'+GMP_DATA.gmapApiUrl+'"></script>');g_gmpLibJsLoaded=true;}} 192function gmpGoogleMap(elementId,params,additionalData){if(typeof google==='undefined'){gmpLoadGoogleLib();} 193params=params?params:{};additionalData=additionalData?additionalData:{};var defaults={center:new google.maps.LatLng(40.69847032728747,-73.9514422416687),zoom:8,};if(params.map_center&¶ms.map_center.coord_x&¶ms.map_center.coord_y){params.center=new google.maps.LatLng(params.map_center.coord_x,params.map_center.coord_y);} 194if(params.zoom){params.zoom=parseInt(params.zoom);} 195if(!GMP_DATA.isAdmin&¶ms.zoom_type=='zoom_level'&¶ms.zoom_mobile&&jQuery(document).width()<768){params.zoom=parseInt(params.zoom_mobile);} 196if(typeof elementId==='string'){elementId=jQuery(elementId)[0];} 197this._elementId=elementId;this._mapParams=jQuery.extend({},defaults,params);this._mapObj=null;this._markers=[];this._shapes=[];this._heatmap=[];this._clasterer=null;this._clastererEnabled=false;this._clastererMarkersGroupsStyles=[];this._eventListeners={};this._layers={};this.mapMarkersGroups=additionalData.markerGroups?additionalData.markerGroups:[];this.init();} 198gmpGoogleMap.prototype.init=function(){this._beforeInit();this._mapObj=new google.maps.Map(this._elementId,this._mapParams);this._afterInit();};gmpGoogleMap.prototype._beforeInit=function(){if(typeof this._mapParams.mapId!=='undefined'){this._mapParams.mapId=jQuery.trim(this._mapParams.mapId);if(!this._mapParams.mapId){delete this._mapParams.mapId;}} 199if(typeof this._mapParams.type_control!=='undefined'){if(typeof google.maps.MapTypeControlStyle[this._mapParams.type_control]!=='undefined'){this._mapParams.mapTypeControlOptions={style:google.maps.MapTypeControlStyle[this._mapParams.type_control],};this._mapParams.mapTypeControl=true;}else{this._mapParams.mapTypeControl=false;}} 200if(typeof this._mapParams.zoom_control!=='undefined'){if(typeof google.maps.ZoomControlStyle[this._mapParams.zoom_control]!=='undefined'){this._mapParams.zoomControlOptions={style:google.maps.ZoomControlStyle[this._mapParams.zoom_control],};this._mapParams.zoomControl=true;}else{this._mapParams.zoomControl=false;}} 201if(typeof this._mapParams.street_view_control!=='undefined'){this._mapParams.streetViewControl=parseInt(this._mapParams.street_view_control)?true:false;} 202if(typeof this._mapParams.pan_control!=='undefined'){this._mapParams.panControl
202=parseInt(this._mapParams.pan_control)?true:false;} 203if(typeof this._mapParams.overview_control!=='undefined'){if(this._mapParams.overview_control!=='none'){this._mapParams.overviewMapControlOptions={opened:this._mapParams.overview_control==='opened'?true:false,};this._mapParams.overviewMapControl=true;}else{this._mapParams.overviewMapControl=false;}} 204if(typeof this._mapParams.dbl_click_zoom!=='undefined'){this._mapParams.disableDoubleClickZoom=parseInt(this._mapParams.dbl_click_zoom)?false:true;} 205if(typeof this._mapParams.mouse_wheel_zoom!=='undefined'){this._mapParams.scrollwheel=parseInt(this._mapParams.mouse_wheel_zoom)?true:false;} 206if(typeof this._mapParams.map_type!=='undefined'&&typeof google.maps.MapTypeId[this._mapParams.map_type]!=='undefined'){this._mapParams.mapTypeId=google.maps.MapTypeId[this._mapParams.map_type];} 207if(!this._mapParams.mapId&&typeof this._mapParams.map_stylization_data!=='undefined'&&this._mapParams.map_stylization_data){this._mapParams.styles=this._mapParams.map_stylization_data;}else if(this._mapParams.mapId&&typeof this._mapParams.styles!=='undefined'){delete this._mapParams.styles;} 208jQuery(document).trigger('gmapBeforeMapInit',this);};gmpGoogleMap.prototype.getParams=function(){return this._mapParams;};gmpGoogleMap.prototype.getParam=function(key){return this._mapParams[key];};gmpGoogleMap.prototype.setParam=function(key,value){this._mapParams[key]=value;return this;};gmpGoogleMap.prototype._afterInit=function(){if(typeof this._mapParams.marker_clasterer!=='undefined'&&this._mapParams.marker_clasterer){this.enableClasterization(this._mapParams.marker_clasterer);} 209this.applyZoomType();if(typeof this._mapParams.zoom_min!=='undefined'&&typeof this._mapParams.zoom_max!=='undefined'){this._setMinZoomLevel();this._setMaxZoomLevel();this._fixZoomLevel();} 210this.resizeMapByHeight();jQuery(window).bind('resize',jQuery.proxy(this.resizeMapByHeight,this));jQuery(window).bind('orientationchange',jQuery.proxy(this.resizeMapByHeight,this));jQuery(document).trigger('gmapAfterMapInit',this);};gmpGoogleMap.prototype._setMinZoomLevel=function(){var curZoom=this.getZoom();var minZoom=parseInt(this._mapParams.zoom_min)?parseInt(this._mapParams.zoom_min):null;this.getRawMapInstance().setOptions({minZoom:minZoom});if(curZoom<minZoom)this.getRawMapInstance().setOptions({zoom:minZoom});};gmpGoogleMap.prototype._setMaxZoomLevel=function(){var maxZoom=parseInt(this._mapParams.zoom_max)?parseInt(this._mapParams.zoom_max):null;this.getRawMapInstance().setOptions({maxZoom:maxZoom});if(this.getRawMapInstance().zoom>maxZoom)this.getRawMapInstance().setOptions({zoom:maxZoom});};gmpGoogleMap.prototype._fixZoomLevel=function(){var eventHandle=this._getEventListenerHandle('zoom_changed','zoomChanged');if(!eventHandle){eventHandle=google.maps.event.addListener(this.getRawMapInstance(),'zoom_changed',jQuery.proxy(function(){var minZoom=parseInt(this.getParam('zoom_min')),maxZoom=parseInt(this.getParam('zoom_max'));if(this.getZoom()<minZoom){this.setZoom(minZoom);if(GMP_DATA.isAdmin&&this._getEventListenerHandle('idle','enableClasterization'))google.maps.event.trigger(this.getRawMapInstance(),'idle');} 211if(this.getZoom()>maxZoom){this.setZoom(maxZoom);if(GMP_DATA.isAdmin&&this._getEventListenerHandle('idle','enableClasterization'))google.maps.event.trigger(this.getRawMapInstance(),'idle');}},this));this._addEventListenerHandle('zoom_changed','zoomChanged',eventHandle);}};gmpGoogleMap.prototype.enableClasterization=function(clasterType,needTrigger){needTrigger=needTrigger?needTrigger:false;switch(clasterType){case'MarkerClusterer':var self=this;self.setClastererMarkersGroupsStyles();var eventHandle=google.maps.event.addListenerOnce(self.getRawMapInstance(),'idle',function(a,b,c){var clasterGridSize=self.getParam('marker_clasterer_grid_size'),markerGroupsStyles=self.getClastererMarkersGroupsStyles();var allMapMarkers=self.getAllRawMarkers(),allVisibleMapMarkers=[],clasterer=self.getClasterer();for(var i=0;i<allMapMarkers.length;i++){if(allMapMarkers[i].getVisible()&&!parseInt(allMapMarkers[i].params.clasterer_exclude)){allVisibleMapMarkers.push(allMapMarkers[i]);}}
211 212if(clasterer){clasterer.clearMarkers();clasterer.addMarkers(allVisibleMapMarkers);clasterer.setStyles(markerGroupsStyles);self.setClastererGridSize(clasterGridSize);clasterer.resetViewport();clasterer.redraw();}else{clasterer=new MarkerClusterer(self.getRawMapInstance(),allVisibleMapMarkers,{styles:markerGroupsStyles,clusterClass:'cluster'});clasterer.setCalculator(self.customClastererCalculatorFunction(markerGroupsStyles));self.setClasterer(clasterer);self.setClastererGridSize(clasterGridSize);clasterer=self.getClasterer();}});this._addEventListenerHandle('idle','enableClasterization',eventHandle);if(GMP_DATA.isAdmin||needTrigger){google.maps.event.trigger(self.getRawMapInstance(),'idle');} 213this._clastererEnabled=true;break;}};gmpGoogleMap.prototype.disableClasterization=function(){var eventHandle=this._getEventListenerHandle('idle','enableClasterization');if(eventHandle){var clasterer=this.getClasterer();if(clasterer){clasterer.clearMarkers();var markers=this.getAllRawMarkers();for(var i=0;i<markers.length;i++){markers[i].setMap(this.getRawMapInstance());}} 214google.maps.event.removeListener(eventHandle);google.maps.event.trigger(this.getRawMapInstance(),'idle');this._clastererEnabled=false;}};gmpGoogleMap.prototype.customClastererCalculatorFunction=function(markerGroupsStyles){return function(markers,numStyles){var styleIndex=1,markersGroupsStyles=markerGroupsStyles,markersGroupsIds={},maxCount=0,groupId=0,curStyle=[];for(var i=0;i<markers.length;i++){if(markers[i].marker_group_id){if(typeof markersGroupsIds[markers[i].marker_group_id]=='undefined'){markersGroupsIds[markers[i].marker_group_id]=1;}else{markersGroupsIds[markers[i].marker_group_id]++;}}} 215for(var currGroupId in markersGroupsIds){if(markersGroupsIds[currGroupId]>maxCount){maxCount=markersGroupsIds[currGroupId];groupId=currGroupId;}} 216curStyle=jQuery.grep(markersGroupsStyles,function(e,i){if(e.marker_group_id==groupId){return e;}});if(curStyle&&curStyle[0])styleIndex=markersGroupsStyles.indexOf(curStyle[0])+1;return{text:markers.length,index:styleIndex,};};};gmpGoogleMap.prototype.getClasterer=function(){if(this._clasterer){return this._clasterer;} 217return false;};gmpGoogleMap.prototype.setClasterer=function(clasterer){this._clasterer=clasterer;};gmpGoogleMap.prototype.setMapMarkersGroups=function(groups){this.mapMarkersGroups=groups;};gmpGoogleMap.prototype.getMapMarkersGroups=function(){return this.mapMarkersGroups;};gmpGoogleMap.prototype.setClastererMarkersGroupsStyles=function(){var mapMarkersGroups=this.getMapMarkersGroups(),markersGroupsStyles=this.getClastererMarkersGroupsStyles(),defClasterIcon=GMP_DATA.modPath+'gmap/img/m1.png',oldDefClasterIcon='https://google-maps-utility-library-v3.googlecode.com/svn/trunk/markerclusterer/images/m1.png',clasterIcon=this.getParam('marker_clasterer_icon'),iconWidth=this.getParam('marker_clasterer_icon_width'),iconHeight=this.getParam('marker_clasterer_icon_height');clasterIcon=clasterIcon&&clasterIcon!=oldDefClasterIcon?clasterIcon:defClasterIcon;iconWidth=iconWidth?iconWidth:53;iconHeight=iconHeight?iconHeight:52;markersGroupsStyles.push({marker_group_id:0,url:clasterIcon,width:iconWidth,height:iconHeight,});if(mapMarkersGroups){for(var i=0;i<mapMarkersGroups.length;i++){var markerGroupId=mapMarkersGroups[i].id,markerGroupClasterIcon=mapMarkersGroups[i].params.claster_icon,markerGroupClasterIconWidth=mapMarkersGroups[i].params.claster_icon_width,markerGroupClasterIconHeight=mapMarkersGroups[i].params.claster_icon_height;if(markerGroupClasterIcon&&markerGroupClasterIcon!=clasterIcon){markersGroupsStyles.push({marker_group_id:markerGroupId,url:markerGroupClasterIcon?markerGroupClasterIcon:defClasterIcon,width:markerGroupClasterIconWidth?markerGroupClasterIconWidth:53,height:markerGroupClasterIconHeight?markerGroupClasterIconHeight:52,className:'cluster',});}}}};gmpGoogleMap.prototype.getClastererMarkersGroupsStyles=function(){return this._clastererMarkersGroupsStyles;};gmpGoogleMap.prototype.setClastererGridSize=function(size){var clasterer=this.getClasterer();size=size&&parseInt(size)?parseInt(size):null;if(clasterer&&size){clasterer.setGridSize(size);}};gmpGoogleMap.prototype.getClastererGridSize=function(){var clasterer=this.getClasterer(),clusterGridSize=null;if(clasterer){clusterGridSize=clasterer.getGridSize();} 218return clusterGridSize;};gmpGoogleMap.prototype.markersRefresh=function(){var clasterer=this.getClasterer();if(this._clastererEnabled&&clasterer){clasterer.clearMarkers();clasterer.addMarkers(this.getAllRawMarkers());} 219jQuery(document).trigger('gmapAfterMarkersRefresh',this);};gmpGoogleMap.prototype._addEventListenerHandle=function(event,code,handle){if(!this._eventListeners[event])this._eventListeners[event]={};this._eventListeners[event][code]=handle;};gmpGoogleMap.prototype._getEventListenerHandle=function(event,code){return this._eventListeners[event]&&this._eventListeners[event][code]?this._eventListeners[event][code]:false;};gmpGoogleMap.prototype.getRawMapInstance=function(){return this._mapObj;};gmpGoogleMap.prototype.setCenter=function(lat,lng){if(typeof lng=='undefined'){this.getRawMapInstance().setCenter(lat);}else this.getRawMapInstance().setCenter(new google.maps.LatLng(lat,lng));return this;};gmpGoogleMap.prototype.getCenter=function(){return this.getRawMapInstance().getCenter();};gmpGoogleMap.prototype.setZoom=function(zoomLevel){this.getRawMapInstance().setZoom(parseInt(zoomLevel));};gmpGoogleMap.prototype.getZoom=function(){return this.getRawMapInstance().getZoom();};gmpGoogleMap.prototype.getBounds=function(){return this.getRawMapInstance().getBounds();};
219gmpGoogleMap.prototype.fitBounds=function(bounds){this.getRawMapInstance().fitBounds(bounds);};gmpGoogleMap.prototype.addMarker=function(params){params.clusterClass='cluster';var newMarker=new gmpGoogleMarker(this,params);this._markers.push(newMarker);return newMarker;};gmpGoogleMap.prototype.addShape=function(params){var newShape=new gmpGoogleShape(this,params);this._shapes.push(newShape);return newShape;};gmpGoogleMap.prototype.addHeatmap=function(params){var heatmap=new gmpGoogleHeatmap(this,params);this._heatmap.push(heatmap);return heatmap;};gmpGoogleMap.prototype.addRouter=function(params){var router=new gmpGoogleRouter(this,params);return router;};gmpGoogleMap.prototype.getMarkerById=function(id){if(this._markers&&this._markers.length){for(var i in this._markers){if(this._markers[i].getId&&this._markers[i].getId()==id)return this._markers[i];}} 220return false;};gmpGoogleMap.prototype.getShapeById=function(id){if(this._shapes&&this._shapes.length){for(var i in this._shapes){if(this._shapes[i].getId()==id)return this._shapes[i];}} 221return false;};gmpGoogleMap.prototype.getHeatmap=function(){if(this._heatmap&&this._heatmap.length){return this._heatmap[0];} 222return false;};gmpGoogleMap.prototype.removeMarker=function(id){var marker=this.getMarkerById(id);if(marker){marker.removeFromMap();}};gmpGoogleMap.prototype.removeShape=function(id){var shape=this.getShapeById(id);if(shape){shape.removeFromMap();}};gmpGoogleMap.prototype.getAllMarkers=function(){return this._markers;};gmpGoogleMap.prototype.getAllShapes=function(){return this._shapes;};gmpGoogleMap.prototype.getAllRawMarkers=function(){var res=[];if(this._markers&&this._markers.length){for(var i=0;i<this._markers.length;i++){res.push(this._markers[i].getRawMarkerInstance());}} 223return res;};gmpGoogleMap.prototype.setMarkersParams=function(markers){if(this._markers&&this._markers.length){for(var i=0;i<this._markers.length;i++){for(var j=0;j<markers.length;j++){if(this._markers[i].getId()==markers[j].id){this._markers[i].setMarkerParams(markers[j]);break;}}}}};gmpGoogleMap.prototype.get=function(key){return this.getRawMapInstance().get(key);};gmpGoogleMap.prototype.set=function(key,value){this.getRawMapInstance().set(key,value);return this;};gmpGoogleMap.prototype.clearMarkers=function(){if(this._markers&&this._markers.length){for(var i=0;i<this._markers.length;i++){this._markers[i].setMap(null);} 224this._markers=[];}};gmpGoogleMap.prototype.clearMarkersByParam=function(param){if(this._markers&&this._markers.length){for(var i=0;i<this._markers.length;i++){if(this._markers[i].getMarkerParam(param)){this._markers[i].setMap(null);this._markers.splice(i,1);this.clearMarkersByParam(param);break;}}}};gmpGoogleMap.prototype.clearShapes=function(){if(this._shapes&&this._shapes.length){for(var i=0;i<this._shapes.length;i++){this._shapes[i].setMap(null);} 225this._shapes=[];}};gmpGoogleMap.prototype.getViewId=function(){return this._mapParams.view_id;};gmpGoogleMap.prototype.getViewHtmlId=function(){return this._mapParams.view_html_id;};gmpGoogleMap.prototype.getId=function(){return this._mapParams.id;};gmpGoogleMap.prototype.refresh=function(){return google.maps.event.trigger(this.getRawMapInstance(),'resize');};gmpGoogleMap.prototype.refreshWithCenter=function(lat,lng,zoom){var res=google.maps.event.trigger(this.getRawMapInstance(),'resize');if(zoom){this.setZoom(zoom);}else{this.setZoom(this.getZoom());} 226if(lat&&lng){this.setCenter(lat,lng);}else{this.setCenter(this.getCenter().lat(),this.getCenter().lng());} 227return res;};gmpGoogleMap.prototype.fullRefresh=function(){this.refresh();this.checkMarkersParams(this._markers,false);this.setCenter(this._mapParams.center);};gmpGoogleMap.prototype.checkMarkersParams=function(markers,needToShow){if(markers&&markers.length){for(var i=0;i<markers.length;i++){var markerParams=markers[i].getMarkerParam('params'),showDescription=parseInt(markerParams.show_description);if(showDescription||needToShow){markers[i].showInfoWnd(true,showDescription);}}}};gmpGoogleMap.prototype.resizeMapByHeight=function(e,elem,withoutAfter){if(!GMP_DATA.isAdmin&&parseInt(this.getParam('adapt_map_to_screen_height'))&&this.getRawMapInstance().map_display_mode!='popup'){var viewId=this.getParam('view_id'),selectors=this.getParam('selectors'),windowObj=jQuery(window),mapContainer=jQuery('#gmpMapDetailsContainer_'+viewId),mapContainerWrap=jQuery('#mapConElem_'+viewId),height;withoutAfter=withoutAfter?withoutAfter:mapContainerWrap.data('rmh-without-after')?mapContainerWrap.data('rmh-without-after'):false;elem=elem?elem:mapContainerWrap.data('rmh-additional-elem')?jQuery(mapContainerWrap.data('rmh-additional-elem')):null;if(!selectors||(!selectors.content_before&&!selectors.content_after)){var mapContainerOffset=mapContainer.length?mapContainer.offset():false,windowHeight=windowObj.height();height=mapContainerOffset.top<windowHeight?windowHeight-mapContainerOffset.top:windowHeight;}else{var viewportData=this.getViewportData(0,withoutAfter),proControlsCon=jQuery('#gmpMapProControlsCon_'+viewId);height=viewportData.height;mapContainer.parents('.gmp_map_opts:first').css({position:'fixed',top:viewportData.contentBeforeHeight,left:'0',width:windowObj.width(),height:height,'z-index':1,});if(proControlsCon.find('.gmpMarkersListCollapseShell').length){mapContainer.parents('.gmp_map_opts:first').css({'overflow-x':'hidden','overflow-y':'auto',});} 228jQuery(selectors.content_before).css({'z-index':2,});if(!withoutAfter){jQuery(selectors.content_after).css({position:'fixed',bottom:'0',left:'0',width:windowObj.width(),'z-index':1,});} 229if(elem&&elem.length){height-=elem.outerHeight(true);}} 230jQuery('#gmpMapDetailsContainer_'+viewId+', #'+this.getParam('view_html_id')).each(function(){jQuery(this).height(height);});this.refresh();}};gmpGoogleMap.prototype.getViewportData=function(additionalHeight,withoutAfter){withoutAfter=withoutAfter?withoutAfter:false;additionalHeight=additionalHeight?additionalHeight:0;var selectors=this.getParam('selectors'),adminBar=jQuery('#wpadminbar'),viewportData={height:jQuery(window).height(),contentBeforeHeight:0,contentAfterHeight:0,},i;if(typeof selectors!=='undefined'&&selectors!=null){var contentBefore=typeof selectors.content_before!=='undefined'?jQuery(selectors.content_before):0,contentAfter=typeof selectors.content_after!=='undefined'?jQuery(selectors.content_after):0;if(adminBar.length){viewportData.contentBeforeHeight+=adminBar.outerHeight(true);} 231if(contentBefore.length){for(i=0;i<contentBefore.length;i++){viewportData.contentBeforeHeight+=jQuery(contentBefore[i]).outerHeight(true);}} 232if(contentAfter.length&&!withoutAfter){for(i=0;i<contentAfter.length;i++){viewportData.contentAfterHeight+=jQuery(contentAfter[i]).outerHeight(true);}}} 233viewportData.height=viewportData.height-viewportData.contentBeforeHeight-viewportData.contentAfterHeight-additionalHeight;return viewportData;};gmpGoogleMap.prototype.applyZoomType=function(){if(!GMP_DATA.isAdmin&&this.getParam('zoom_type')=='fit_bounds'){var eventHandle=google.maps.event.addListenerOnce(this.getRawMapInstance(),'tilesloaded',jQuery.proxy(this._getBoundsHandler,this));this._addEventListenerHandle('tilesloaded','fitBounds',eventHandle);}};gmpGoogleMap.prototype.applyZoomTypeAdmin=function(){if(GMP_DATA.isAdmin&&this.getParam('zoom_type')=='fit_bounds'){this._getBoundsHandler();}};gmpGoogleMap.prototype._getBoundsHandler=function(){var bounds=new google.maps.LatLngBounds();bounds=this._getMapMarkersBounds(bounds);this._setMapBounds(bounds);};
233gmpGoogleMap.prototype._getMapMarkersBounds=function(bounds){var markers=this.getAllMarkers();for(var i=0;i<markers.length;i++){bounds.extend(markers[i].getPosition());} 234return bounds;};gmpGoogleMap.prototype._setMapBounds=function(bounds){if(!bounds.getNorthEast().equals(bounds.getSouthWest())){this.fitBounds(bounds);}};var g_gmpGeocoder=null;jQuery.fn.mapSearchAutocompleateGmp=function(params){params=params||{};jQuery(this).keyup(function(event){if(toeInArrayGmp(event.keyCode,[9,13,20,35,36,37,38,39,40]))return;var searchData=jQuery.trim(jQuery(this).val());if(searchData&&searchData!=''){if(typeof params.msgEl==='string'){params.msgEl=jQuery(params.msgEl);} 235params.msgEl.showLoaderGmp();var self=this;jQuery(this).autocomplete(jQuery.extend({},params.autocompleteParams,{source:function(request,response){var autocomleateData=typeof params.additionalData!='undefined'?gmpAutocomleateData(params.additionalData,request.term):[],geocoder=gmpGetGeocoder(),geocoderData={address:searchData};if(typeof params.geocoderParams!='undefined'&¶ms.geocoderParams){geocoderData=jQuery.extend({},geocoderData,params.geocoderParams);} 236geocoder.geocode(geocoderData,function(results,status){params.msgEl.html('');if(status==google.maps.GeocoderStatus.OK&&results.length){for(var i=0;i<results.length;i++){autocomleateData.push({label:results[i].formatted_address,lat:results[i].geometry.location.lat(),lng:results[i].geometry.location.lng(),category:toeLangGmp('Plases'),});} 237response(autocomleateData);}else{if(autocomleateData){response(autocomleateData);}else{var notFoundMsg=toeLangGmp('Nothing was found');if(jQuery(self).parent().find('.ui-helper-hidden-accessible').length){jQuery(self).parent().find('.ui-helper-hidden-accessible').html(notFoundMsg);}else{params.msgEl.html(notFoundMsg);}}}});},select:function(event,ui){if(params.onSelect){params.onSelect(ui.item,event,ui);}},}));jQuery(this).autocomplete('search');}});};function gmpAutocomleateData(data,needle){var autocomleateData=[];for(var i=0;i<data.length;i++){for(var j=0;j<data[i].length;j++){if(data[i][j]){var label=data[i][j].label.toString().toLowerCase(),desc=data[i][j].marker_desc!='undefined'?data[i][j].marker_desc:'',term=needle.toLowerCase();if(label.indexOf(term)!==-1||(desc&&desc.indexOf(term)!==-1)){autocomleateData.push(data[i][j]);}}}} 238return autocomleateData;} 239function gmpGetGeocoder(){if(!g_gmpGeocoder){g_gmpGeocoder=new google.maps.Geocoder();} 240return g_gmpGeocoder;} 241function changeInfoWndType(map){var infowndContent=jQuery('#'+map._elementId.id).find('.gm-style-iw'),type=map.getParam('marker_infownd_type'),hideInfoWndBtn=parseInt(map.getParam('marker_infownd_hide_close_btn'));switch(type){case'':if(infowndContent&&infowndContent.length){infowndContent.each(function(){var $this=jQuery(this),wndBody=$this.prev().children().last(),wndBodyShadow=$this.prev().children(':nth-child(2)'),wndTail=$this.prev().children(':nth-child(3)'),wndTailShadow=$this.prev().children().first();$this.css({'border-radius':'0px',});});} 242break;case'rounded_edges':if(infowndContent&&infowndContent.length){infowndContent.each(function(){var $this=jQuery(this),wndBody=$this.prev().children().last(),wndBodyShadow=$this.prev().children(':nth-child(2)'),wndTail=$this.prev().children(':nth-child(3)'),wndTailShadow=$this.prev().children().first();if(hideInfoWndBtn!==0){$this.find('.gm-ui-hover-effect').hide();} 243$this.find('.gmpInfoWindowtitle').css({padding:'0',left:'0',});wndBody.css({'border-radius':'10px',});wndBodyShadow.css({'background-color':'transparent','-moz-box-shadow':'none','-webkit-box-shadow':'none','box-shadow':'none',});wndTail.children().each(function(index){var $this=jQuery(this),degrees=!index?'skewX(50.6deg)':'skewX(-50.6deg)',left=!index?'-2px':'0';$this.css({height:'15px',});$this.children().css({width:'20px',left:left,transform:degrees,'-moz-box-shadow':'none','-webkit-box-shadow':'none','box-shadow':'none',});});wndTailShadow.css({'border-right':'none','border-left':'none','border-top':'none',left:'38px',top:'74px',});});} 244break;default:break;}} 245function changeInfoWndBgColor(map){g_gmpMarkerBgColorTimeoutSet=false;var color=map.getParam('marker_infownd_bg_color');var infowndContent=jQuery('#'+map._elementId.id).find('.gm-style-iw'),styleId='gmpInfoWindowStyle';if(infowndContent&&infowndContent.length){infowndContent.each(function(){var wndBody=jQuery(this).prev().children().last(
245),wndTail=jQuery(this).prev().children(':nth-child(3)').children().last();infowndContent.css('background-color',color);infowndContent.prev().children().last().css('background-color',color);infowndContent.children().css('background-color',color);var styleTag=jQuery('#'+styleId),styles='.gm-style-iw-t::after { background:'+color+' !important; }';styles+='.gm-style .gm-style-iw-d::-webkit-scrollbar-track, .gm-style .gm-style-iw-d::-webkit-scrollbar-track-piece { background: '+color+' !important; }';if(styleTag.length){styleTag.html(styles);}else{jQuery('<style>'+styles+'</style>').attr('id',styleId).appendTo('head');}});}} 246window.gmpGoogleMap=gmpGoogleMap; 247function gmpCanUseAdvancedMarkers(){return!!(window.google&&google.maps&&google.maps.marker&&google.maps.marker.AdvancedMarkerElement);} 248function gmpGetMarkerMapInstance(map){return map&&typeof map.getRawMapInstance=='function'?map.getRawMapInstance():null;} 249function gmpNormalizeMarkerPosition(position){if(!position){return position;} 250if(typeof position.lat==='function'&&typeof position.lng==='function'){return position;} 251if(typeof position.lat!=='undefined'&&typeof position.lng!=='undefined'){return new google.maps.LatLng(position.lat,position.lng);} 252return position;} 253function gmpCreateAdvancedMarkerContent(icon){if(!icon||typeof icon!=='string'){return null;} 254var markerContent=document.createElement('img');markerContent.src=icon;markerContent.alt='';markerContent.className='gmp-advanced-marker-icon';markerContent.style.maxWidth='none';markerContent.style.position='absolute';markerContent.style.transform='translate(-50%, -100%)';markerContent.title='';return markerContent;} 255function gmpPatchAdvancedMarker(marker){if(!marker||marker._gmpPatched){return marker;} 256marker._gmpPatched=true;marker._gmpNativeSetMap=typeof marker.setMap==='function'?marker.setMap.bind(marker):null;marker._gmpNativeGetMap=typeof marker.getMap==='function'?marker.getMap.bind(marker):null;marker._gmpVisible=marker._gmpNativeGetMap?marker._gmpNativeGetMap()!==null:marker.map!==null;marker._gmpIcon=marker.content&&marker.content.tagName==='IMG'?marker.content.src:null;marker.getPosition=function(){return gmpNormalizeMarkerPosition(this.position);};marker.setPosition=function(position){this.position=gmpNormalizeMarkerPosition(position);};marker.getMap=function(){return this._gmpNativeGetMap?this._gmpNativeGetMap():this.map||null;};marker.setMap=function(map){if(this._gmpNativeSetMap){this._gmpNativeSetMap(map);}else{this.map=map;} 257this._gmpVisible=map!==null;};marker.getVisible=function(){return this._gmpVisible;};marker.setVisible=function(state){this._gmpVisible=!!state;if(this._gmpNativeSetMap){this._gmpNativeSetMap(state?this._gmpOwnerMap:null);}else{this.map=state?this._gmpOwnerMap:null;}};marker.getIcon=function(){return this._gmpIcon;};marker.setIcon=function(icon){this._gmpIcon=icon;this.content=gmpCreateAdvancedMarkerContent(icon);};marker.setTitle=function(title){title=typeof title==='string'?title:'';this.title=title;if(this.content){this.content.title='';this.content.setAttribute('aria-label',title);}};return marker;} 258function gmpGoogleMarker(map,params){this._map=map;this._markerObj=null;this._useAdvancedMarker=false;this._hoverInfoWndTimeout=null;var defaults={};if(!params.position&¶ms.coord_x&¶ms.coord_y){params.position=new google.maps.LatLng(params.coord_x,params.coord_y);} 259this._markerParams=jQuery.extend({},defaults,params);this._markerParams.map=this._map.getRawMapInstance();this._infoWindow=null;this._infoWndOpened=false;this._infoWndWasInited=false;this._infoWndDirectionsBtn=false;this._infoWndPrintBtn=false;this._mapDragScroll={scrollwheel:null,};this.init();} 260gmpGoogleMarker.prototype.infoWndOpened=function(){return this._infoWndOpened;};gmpGoogleMarker.prototype._clearHoverInfoWndTimeout=function(){if(this._hoverInfoWndTimeout){clearTimeout(this._hoverInfoWndTimeout);this._hoverInfoWndTimeout=null;}};gmpGoogleMarker.prototype._canUseAdvancedMarker=function(){var mapId=this._map.getParam('mapId');return gmpCanUseAdvancedMarkers()&&!!this._map.getRawMapInstance()&&!!mapId;};gmpGoogleMarker.prototype._prepareAdvancedMarkerParams=function(params){var markerParams={map:gmpGetMar
260kerMapInstance(this._map),position:gmpNormalizeMarkerPosition(params.position),gmpDraggable:!!params.draggable,};if(params.zIndex){markerParams.zIndex=params.zIndex;} 261if(typeof params.gmpClickable!=='undefined'){markerParams.gmpClickable=!!params.gmpClickable;} 262if(typeof params.collisionBehavior!=='undefined'){markerParams.collisionBehavior=params.collisionBehavior;} 263markerParams.content=gmpCreateAdvancedMarkerContent(params.icon);return markerParams;};gmpGoogleMarker.prototype._bindMarkerListener=function(eventName,callback){if(!this._markerObj){return;} 264if(this._useAdvancedMarker){if(eventName==='click'){eventName='gmp-click';} 265if((eventName==='mouseover'||eventName==='mouseout')&&this._markerObj.content&&typeof this._markerObj.content.addEventListener==='function'){this._markerObj.content.addEventListener(eventName,callback);return;}} 266if(typeof this._markerObj.addListener=='function'){this._markerObj.addListener(eventName,callback);}else{google.maps.event.addListener(this._markerObj,eventName,callback);}};gmpGoogleMarker.prototype._openInfoWindow=function(){if(this._useAdvancedMarker){this._infoWindow.open({map:this._map.getRawMapInstance(),anchor:this._markerObj,});}else{this._infoWindow.open(this._map.getRawMapInstance(),this._markerObj);}};gmpGoogleMarker.prototype.init=function(){var markerParamsForCreate=this._markerParams,openInfoWndEvent='click',closeInfoWndEvent='',openLinkEvent='click';if(parseInt(this._map._mapParams.hide_marker_tooltip)){this._markerParams.marker_title=this._markerParams.title;delete markerParamsForCreate.title;} 267if(this._canUseAdvancedMarker()){this._markerObj=gmpPatchAdvancedMarker(new google.maps.marker.AdvancedMarkerElement(this._prepareAdvancedMarkerParams(markerParamsForCreate)));this._markerObj._gmpOwnerMap=this._map.getRawMapInstance();this._markerObj.params=this._markerParams.params||{};this._markerObj.marker_group_id=this._markerParams.marker_group_id||0;this._markerObj.draggable=!!this._markerParams.draggable;this._useAdvancedMarker=true;}else{this._markerObj=new google.maps.Marker(markerParamsForCreate);if(typeof this._markerObj.setTitle==='function'){this._markerObj.setTitle('');}} 268if(this._markerParams.dragend){this._bindMarkerListener('dragend',jQuery.proxy(this._markerParams.dragend,this));} 269if(this._markerParams.click){this._bindMarkerListener('click',jQuery.proxy(this._markerParams.click,this));} 270if(this._markerParams.params&&!(window.ontouchstart===null||navigator.msMaxTouchPoints)){if(parseInt(this._markerParams.params.description_mouse_hover)){openInfoWndEvent='mouseover';if(parseInt(this._markerParams.params.description_mouse_leave)){closeInfoWndEvent='mouseout';}}} 271this._bindMarkerListener(openInfoWndEvent,jQuery.proxy(function(){if(this._markerParams.params&&!parseInt(this._markerParams.params.description_mouse_hover)&&parseInt(this._markerParams.params.marker_link)){return;}else if(openInfoWndEvent==='mouseover'){this._clearHoverInfoWndTimeout();this._hoverInfoWndTimeout=setTimeout(jQuery.proxy(function(){this.showInfoWnd();this._hoverInfoWndTimeout=null;},this),500);}else{this.showInfoWnd();} 272jQuery(document).trigger('gmapAfterMarkerClick',this);},this));if(closeInfoWndEvent){this._bindMarkerListener(closeInfoWndEvent,jQuery.proxy(function(){var self=this,infoWndDiv=jQuery('.gm-style-iw').parent(),timeout=300;self._clearHoverInfoWndTimeout();infoWndDiv.on('mouseover',function(){infoWndDiv.addClass('hovering');});infoWndDiv.on('mouseleave',function(){setTimeout(function(){self.hideInfoWnd();},timeout);});setTimeout(function(){if(!infoWndDiv.hasClass('hovering')){self.hideInfoWnd();}},timeout);},this));} 273if(this._markerParams.params&&parseInt(this._markerParams.params.marker_link)){this._bindMarkerListener(openLinkEvent,jQuery.proxy(function(){var isLink=/http/gi,markerLink=!this._markerParams.params.marker_link_src.match(isLink)?'http://'+this._markerParams.params.marker_link_src:this._markerParams.params.marker_link_src;if(parseInt(this._markerParams.params.marker_link_new_wnd)){window.open(markerLink,'_blank');}else{location.href=markerLink;}},this));}};gmpGoogleMarker.prototype.showInfoWnd=function(forceUpdateInfoWnd,forceShow){var allShapes=this._map.getAllShapes();if(allShapes&&allShapes.length){for(var i=0;i<allShapes.length;i++){if(allShapes[i]._infoWndOpened)allShapes[i].hideInfoWnd();}} 274if(!this._infoWndWasInited||forceUpdateInfoWnd){this._updateInfoWndContent();this._infoWndWasInited=true;} 275if(this._infoWindow&&!this._infoWndOpened){var allMapMArkers=this._map.getAllMarkers();if(allMapMArkers&&allMapMArkers.length>1&&!forceShow){for(var i=0;i<allMapMArkers.length;i++){allMapMArkers[i].hideInfoWnd();}} 276if(parseInt(this.getMap().getParam('center_on_cur_marker_infownd'))&&!GMP_DATA.isAdmin){this.getMap().setCenter(this.getMarkerParam('position'));} 277if(this._map.getParam('marker_infownd_type')=='slide'&&typeof this.showInfoWndSlide=='function'){this.showInfoWndSlide();}else{this._openInfoWindow();} 278this._infoWndOpened=true;}};gmpGoogleMarker.prototype.hideInfoWnd=function(){this._clearHoverInfoWndTimeout();if(this._infoWindow&&this._infoWndOpened){this._infoWindow.close();this._infoWndOpened=false;var googleMap=this._map.getRawMapInstance();
278googleMap.setOptions({scrollwheel:this._mapDragScroll.scrollwheel});jQuery(document).trigger('gmapAfterHideInfoWnd',this);}};gmpGoogleMarker.prototype.getRawMarkerInstance=function(){return this._markerObj;};gmpGoogleMarker.prototype.getRawMarkerParams=function(){return this._markerParams;};gmpGoogleMarker.prototype.getIcon=function(){return this._markerObj.getIcon();};gmpGoogleMarker.prototype.setIcon=function(iconPath){this._markerObj.setIcon(iconPath);this._markerParams.icon=iconPath;};gmpGoogleMarker.prototype.setTitle=function(title,noRefresh){if(!parseInt(this._map._mapParams.hide_marker_tooltip))this._markerObj.setTitle(title);this._markerParams.title=title;if(!noRefresh)this._updateInfoWndContent();};gmpGoogleMarker.prototype.getTitle=function(){return typeof this._markerParams.title!='undefined'?this._markerParams.title:this._markerParams.marker_title;};gmpGoogleMarker.prototype.getPosition=function(){return this._markerObj.getPosition();};gmpGoogleMarker.prototype.setPosition=function(lat,lng){var position=new google.maps.LatLng(lat,lng);this._markerObj.setPosition(position);this._markerParams.position=position;};gmpGoogleMarker.prototype.lat=function(){return this.getPosition().lat();};gmpGoogleMarker.prototype.lng=function(lng){return this.getPosition().lng();};gmpGoogleMarker.prototype.setId=function(id){this._markerParams.id=id;};gmpGoogleMarker.prototype.getId=function(){return this._markerParams.id;};gmpGoogleMarker.prototype.setDescription=function(description,noRefresh){this._markerParams.description=description;if(!noRefresh)this._updateInfoWndContent();if(this._markerParams.params&&parseInt(this._markerParams.params.show_description)){this.showInfoWnd(false,true);}};gmpGoogleMarker.prototype.getDescription=function(){return this._markerParams.description;};gmpGoogleMarker.prototype._setTitleColor=function(titleDiv){var titleColor=this._map.getParam('marker_title_color');if(titleColor&&titleColor!=''){titleDiv.css({color:titleColor,});} 279return titleDiv;};gmpGoogleMarker.prototype._setTitleSize=function(titleDiv){var titleSize=this._map.getParam('marker_title_size'),titleSizeUnits=this._map.getParam('marker_title_size_units');if(titleSize&&titleSizeUnits&&titleSize!=''){titleDiv.css({'font-size':titleSize+titleSizeUnits,'line-height':+titleSize+5+titleSizeUnits,});} 280return titleDiv;};gmpGoogleMarker.prototype._setDescSize=function(descDiv){var descSize=this._map.getParam('marker_desc_size'),descSizeUnits=this._map.getParam('marker_desc_size_units');if(descSize&&descSizeUnits&&descSize!=''){descDiv.css({'font-size':descSize+descSizeUnits,'line-height':parseInt(descSize)+5+descSizeUnits,});} 281return descDiv;};gmpGoogleMarker.prototype._updateInfoWndContent=function(){var contentStr=jQuery('<div/>',{}),description=this._markerParams.description?this._markerParams.description.replace(/\n/g,'<br/>'):false,title=this._markerParams.title?this._markerParams.title:false;if(parseInt(this._map._mapParams.hide_marker_tooltip)&&!GMP_DATA.isAdmin){title=this._markerParams.marker_title?this._markerParams.marker_title:false;} 282if(title){var titleDiv=jQuery('<div/>',{}).addClass('gmpInfoWindowtitle').html(title);titleDiv=this._setTitleColor(titleDiv);titleDiv=this._setTitleSize(titleDiv);contentStr.append(titleDiv);if(this._infoWndDirectionsBtn){this._infoWndDirectionsBtn.insertAfter(contentStr.find('.gmpInfoWindowtitle'));} 283if(this._infoWndPrintBtn){this._infoWndPrintBtn.insertAfter(contentStr.find('.gmpInfoWindowtitle'));}} 284if(description){var descDiv=jQuery('<div/>',{}).addClass('egm-marker-iw').html(description);descDiv=this._setDescSize(descDiv);contentStr.append(descDiv);var $scripts=contentStr.find('script');if($scripts&&$scripts.length){$scripts.each(function(){var scriptSrc=jQuery(this).attr('src');if(scriptSrc&&scriptSrc!=''){jQuery.getScript(scriptSrc);}});}} 285this._setInfoWndContent(contentStr);};gmpGoogleMarker.prototype._setInfoWndClosed=function(){this._infoWndOpened=false;jQuery(document).trigger('gmapAfterHideInfoWnd',this);};gmpGoogleMarker.prototype._setInfoWndContent=function(newContentHtmlObj){var self=this,map=this.getMap();if(!this._infoWindow){var mapWidth=GMP_DATA.isAdmin?jQuery('#gmpMapPreview').width():jQuery('#'+map.getViewHtmlId()).width(),infoWndType=map.getParam('marker_infownd_type'),infoWndWidth=map.getParam('marker_infownd_width_units')=='px'?map.getParam('marker_infownd_width'):ma
285pWidth-20,infoWndHeight=map.getParam('marker_infownd_height_units')=='px'?map.getParam('marker_infownd_height')+'px':false,maxWndWidth=mapWidth*0.6,infoWndParams={maxWidth:infoWndWidth<maxWndWidth?infoWndWidth:maxWndWidth};switch(infoWndType){case'rounded_edges':infoWndParams.pixelOffset=new google.maps.Size(0,10);break;default:break;} 286this._infoWindow=new google.maps.InfoWindow(infoWndParams);google.maps.event.addListener(this._infoWindow,'domready',function(){changeInfoWndType(map);changeInfoWndBgColor(map);if(this.content&&this.content.innerHTML&&this.content.innerHTML.indexOf&&this.content.innerHTML.indexOf('id="grid-gallery-')!=-1){jQuery(document).trigger('ggFirInitialize');}});google.maps.event.addListener(this._infoWindow,'closeclick',function(){self._setInfoWndClosed();});} 287if(infoWndHeight){newContentHtmlObj.css('cssText','max-height: '+infoWndHeight+';');} 288var scrollwheel=map.get('scrollwheel'),googleMap=map.getRawMapInstance();this._mapDragScroll.scrollwheel=scrollwheel;newContentHtmlObj.hover(function(){googleMap.setOptions({scrollwheel:false});},function(){googleMap.setOptions({scrollwheel:scrollwheel});});this._infoWindow.setContent(newContentHtmlObj[0]);};gmpGoogleMarker.prototype.removeFromMap=function(){this.getRawMarkerInstance().setMap(null);};gmpGoogleMarker.prototype.setMarkerParams=function(params){this._markerParams=params;return this;};gmpGoogleMarker.prototype.setMarkerParam=function(key,value){this._markerParams[key]=value;return this;};gmpGoogleMarker.prototype.getMarkerParam=function(key){return this._markerParams[key];};gmpGoogleMarker.prototype.setMap=function(map){if(this._useAdvancedMarker&&map){this._markerObj._gmpOwnerMap=map;} 289this.getRawMarkerInstance().setMap(map);};gmpGoogleMarker.prototype.getMap=function(){return this._map;};gmpGoogleMarker.prototype.setVisible=function(state){this.getRawMarkerInstance().setVisible(state);};gmpGoogleMarker.prototype.getVisible=function(){return this.getRawMarkerInstance().getVisible();};function _gmpPrepareMarkersList(markers,params){params=params||{};if(markers){for(var i=0;i<markers.length;i++){markers[i].coord_x=parseFloat(markers[i].coord_x);markers[i].coord_y=parseFloat(markers[i].coord_y);markers[i].icon=markers[i].icon_data.path;if(params.dragend){markers[i].draggable=true;markers[i].dragend=params.dragend;}}} 290return markers;} 291window.gmpGoogleMarker=gmpGoogleMarker; 292var gmpAllMapsInfo=[{"id":"1","title":"contact-form","description":null,"params":{"width_units":"%","membershipEnable":"0","adapt_map_to_screen_height":"","selectors":{"content_before":"","content_after":""},"type":null,"map_type":"ROADMAP","map_display_mode":"map","map_center":{"address":"7 avenue Gallieni, 94257 GENTILLY Cedex","coord_x":"48.86287855398941","coord_y":"2.497242504201851"},"language":null,"enable_zoom":null,"enable_mouse_zoom":null,"mouse_wheel_zoom":"0","zoom_type":"fit_bounds","zoom":"10","zoom_mobile":"8","zoom_min":"1","zoom_max":"21","type_control":"HORIZONTAL_BAR","zoom_control":"none","dbl_click_zoom":"1","street_view_control":"0","pan_control":null,"overview_control":null,"draggable":"1","map_stylization":"Purple Rain","marker_title_color":"#b51e84","marker_title_size":"19","marker_title_size_units":"px","marker_desc_size":"13","marker_desc_size_units":"px","hide_marker_tooltip":"","center_on_cur_marker_infownd":"","marker_infownd_type":"","marker_infownd_hide_close_btn":"1","marker_infownd_width":"200","marker_infownd_width_units":"auto","marker_infownd_height":"100","marker_infownd_height_units":"auto","marker_infownd_bg_color":"#FFFFFF","marker_clasterer":"none","marker_clasterer_icon":"https://www.biocodex.fr/wp-content/plugins/google-maps-easy/modules//gmap/img/m1.png","marker_clasterer_icon_width":"53","marker_clasterer_icon_height":"52","marker_clasterer_grid_size":"60","marker_filter_color":"#f1f1f1;","marker_filter_button_title":"Select all","marker_filter_show_all_parents":"","markers_list_type":"","markers_list_loop":"","markers_list_color":"#55BA68","markers_list_autoplay":{"enable":"","steps":"1","idle":"3000","duration":"160"},"markers_list_hide_empty_block":"","markers_list_collapse":{"mobile":""},"is_static":"","map_stylization_data":[{"featureType":"road","stylers":[{"hue":"#5e00ff"},{"saturation":-79}]},{"featureType":"poi","stylers":[{"saturation":-78},{"hue":"#6600ff"},{"lightness":-47},{"visibility":"off"}]},{"featureType":"road.local","stylers":[{"lightness":22}]},{"featureType":"landscape","stylers":[{"hue":"#6600ff"},{"saturation":-11}]},[],[],{"featureType":"water","stylers":[{"saturation":-65},{"hue":"#1900ff"},{"lightness":8}]},{"featureType":"road.local","stylers":[{"weight":1.3},{"lightness":30}]},{"featureType":"transit","stylers":[{"visibility":"simplified"},{"hue":"#5e00ff"},{"saturation":-16}]},{"featureType":"transit.line","stylers":[{"saturation":-72}]}
292,[]],"view_id":"1_87799","view_html_id":"google_map_easy_1_87799","id":"1","ss_html":"","html_options":{"width":"100","height":"482","width_units":"%","width_full":"100%","height_units":"px","height_full":"482px"}},"html_options":{"width":"100","height":"482"},"create_date":"2021-06-11 15:22:02","markers":[{"id":"1","title":"Biocodex","description":"","coord_x":"48.816564","coord_y":"2.331946","icon":"48","map_id":"1","marker_group_id":"0","address":"22 rue des Aqueducs 94250 Gentilly","animation":null,"create_date":"2021-04-21 15:21:05","params":{"marker_link_src":"","title_is_link":false},"sort_order":"1","user_id":null,"period_from":null,"period_to":null,"hash":null,"marker_group_ids":["0"],"icon_data":{"id":"48","title":"Icon-Pins-Maps-Pins-Maps@2x","description":"","path":"https://www.biocodex.fr/wp-content/uploads/sites/3/2021/04/[email protected]","width":null,"height":null,"is_def":null}}],"original_id":"1","view_id":"1_87799","view_html_id":"google_map_easy_1_87799","isDisplayed":true}]; 293var g_gmpAllMaps=[];jQuery(document).ready(function(){var mapsInitClb=function(){if(typeof gmpAllMapsInfo!=='undefined'&&gmpAllMapsInfo&&gmpAllMapsInfo.length){for(var i=0;i<gmpAllMapsInfo.length;i++){if(jQuery('#'+gmpAllMapsInfo[i].view_html_id).length){gmpInitMapOnPage(gmpAllMapsInfo[i]);}} 294jQuery(document).trigger('gmpAmiVarInited');}};if(typeof google==='undefined'&&typeof gmpLoadGoogleLib!=='undefined'){gmpLoadGoogleLib();setTimeout(mapsInitClb,1000);}else{mapsInitClb();}});function gmpInitMapOnPage(mapData){if(mapData.params&&parseInt(mapData.params.is_static)&&typeof gmpGoogleStaticMap!=='undefined'){new gmpGoogleStaticMap(mapData);return;} 295var additionalData={markerGroups:typeof mapData.marker_groups!='undefined'?mapData.marker_groups:[],},newMap=null,mapMarkersIds=[],markerIdToShow=gmpIsMarkerToShow(),infoWndToShow=gmpIsInfoWndToShow();if(mapData&&mapData.view_html_mbs_id){newMap=new gmpGoogleMap(mapData.view_html_mbs_id,mapData.params,additionalData);newMap.setParam('view_html_mbs_id',mapData.view_html_mbs_id);newMap.refreshWithCenter(mapData.params.center.lat(),mapData.params.center.lng(),mapData.params.zoom);}else{newMap=new gmpGoogleMap('#'+mapData.view_html_id,mapData.params,additionalData);} 296if(mapData.markers&&mapData.markers.length){mapData.markers=_gmpPrepareMarkersList(mapData.markers);for(var i in mapData.markers){mapMarkersIds.push(mapData.markers[i].id);} 297if(toeInArray(markerIdToShow,mapMarkersIds)==-1){markerIdToShow=false;} 298if(toeInArray(infoWndToShow,mapMarkersIds)==-1){infoWndToShow=false;} 299for(var j=0;j<mapData.markers.length;j++){if(markerIdToShow&&mapData.markers[j].id!=markerIdToShow)continue;if(infoWndToShow){mapData.markers[j].params.show_description=mapData.markers[j].id==infoWndToShow?'1':'0';} 300var newMarker=newMap.addMarker(mapData.markers[j]);} 301newMap.markersRefresh();newMap.checkMarkersParams(newMap.getAllMarkers(),markerIdToShow);} 302if(mapData.shapes&&mapData.shapes.length){mapData.shapes=_gmpPrepareShapesList(mapData.shapes);for(var z=0;z<mapData.shapes.length;z++){var newShape=newMap.addShape(mapData.shapes[z]);}} 303if(mapData.heatmap){mapData.heatmap=_gmpPrepareHeatmapList(mapData.heatmap);newMap.addHeatmap(mapData.heatmap);} 304if(mapData.routes==1){newMap.addRouter({});} 305g_gmpAllMaps.push(newMap);} 306function gmpGetMapInfoById(id){if(typeof gmpAllMapsInfo!=='undefined'&&gmpAllMapsInfo&&gmpAllMapsInfo.length){id=parseInt(id);for(var i=0;i<gmpAllMapsInfo.length;i++){if(gmpAllMapsInfo[i].id==id){return gmpAllMapsInfo[i];}}} 307return false;} 308function gmpGetMapInfoByViewId(viewId){if(typeof gmpAllMapsInfo!=='undefined'&&gmpAllMapsInfo&&gmpAllMapsInfo.length){for(var i=0;i<gmpAllMapsInfo.length;i++){if(gmpAllMapsInfo[i].view_id==viewId){return gmpAllMapsInfo[i];}}} 309return false;} 310function gmpGetAllMaps(){return g_gmpAllMaps;} 311function gmpGetMapById(id){var allMaps=gmpGetAllMaps();for(var i=0;i<allMaps.length;i++){if(allMaps[i].getId()==id){return allMaps[i];}} 312return false;} 313function gmpGetMapByViewId(viewId){var allMaps=gmpGetAllMaps();for(var i=0;i<allMaps.length;i++){var currViewId=allMaps[i].getViewId();if(currViewId==viewId){return allMaps[i];}} 314return false;} 315function gmpIsMarkerToShow(){var markerHash='gmpMarker',hashParams=toeGetHashParams();if(hashParams){for(var i in hashParams){if(!hashParams[i]||typeof hashParams[i]!=='string')continue;var pair=hashParams[i].split('=');if(pair[0]==markerHash)return parseInt(pair[1]);}}
315 316return false;} 317function gmpIsInfoWndToShow(){var markerHash='gmpInfoWnd',hashParams=toeGetHashParams();if(hashParams){for(var i in hashParams){if(!hashParams[i]||typeof hashParams[i]!=='string')continue;var pair=hashParams[i].split('=');if(pair[0]==markerHash)return parseInt(pair[1]);}} 318return false;};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.