!function(){var t={3241:function(){"document"in window.self&&((!("classList"in document.createElement("_"))||document.createElementNS&&!("classList"in document.createElementNS("http://www.w3.org/2000/svg","g")))&&function(t){"use strict";if("Element"in t){var e="classList",r="prototype",n=t.Element[r],o=Object,i=String[r].trim||function(){return this.replace(/^\s+|\s+$/g,"")},s=Array[r].indexOf||function(t){for(var e=0,r=this.length;e<r;e++)if(e in this&&this[e]===t)return e;return-1},a=function(t,e){this.name=t,this.code=DOMException[t],this.message=e},c=function(t,e){if(""===e)throw new a("SYNTAX_ERR","An invalid or illegal string was specified");if(/\s/.test(e))throw new a("INVALID_CHARACTER_ERR","String contains an invalid character");return s.call(t,e)},u=function(t){for(var e=i.call(t.getAttribute("class")||""),r=e?e.split(/\s+/):[],n=0,o=r.length;n<o;n++)this.push(r[n]);this._updateClassName=function(){t.setAttribute("class",this.toString())}},f=u[r]=[],l=function(){return new u(this)};if(a[r]=Error[r],f.item=function(t){return this[t]||null},f.contains=function(t){return-1!==c(this,t+="")},f.add=function(){var t,e=arguments,r=0,n=e.length,o=!1;do{-1===c(this,t=e[r]+"")&&(this.push(t),o=!0)}while(++r<n);o&&this._updateClassName()},f.remove=function(){var t,e,r=arguments,n=0,o=r.length,i=!1;do{for(e=c(this,t=r[n]+"");-1!==e;)this.splice(e,1),i=!0,e=c(this,t)}while(++n<o);i&&this._updateClassName()},f.toggle=function(t,e){t+="";var r=this.contains(t),n=r?!0!==e&&"remove":!1!==e&&"add";return n&&this[n](t),!0===e||!1===e?e:!r},f.toString=function(){return this.join(" ")},o.defineProperty){var p={get:l,enumerable:!0,configurable:!0};try{o.defineProperty(n,e,p)}catch(t){void 0!==t.number&&-2146823252!==t.number||(p.enumerable=!1,o.defineProperty(n,e,p))}}else o[r].__defineGetter__&&n.__defineGetter__(e,l)}}(window.self),function(){"use strict";var t=document.createElement("_");if(t.classList.add("c1","c2"),!t.classList.contains("c2")){var e=function(t){var e=DOMTokenList.prototype[t];DOMTokenList.prototype[t]=function(t){var r,n=arguments.length;for(r=0;r<n;r++)t=arguments[r],e.call(this,t)}};e("add"),e("remove")}if(t.classList.toggle("c3",!1),t.classList.contains("c3")){var r=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(t,e){return 1 in arguments&&!this.contains(t)==!e?e:r.call(this,t)}}t=null}())},7810:function(){!function(){if("undefined"!=typeof window)try{var t=new window.CustomEvent("test",{cancelable:!0});if(t.preventDefault(),!0!==t.defaultPrevented)throw new Error("Could not prevent default")}catch(t){var e=function(t,e){var r,n;return(e=e||{}).bubbles=!!e.bubbles,e.cancelable=!!e.cancelable,(r=document.createEvent("CustomEvent")).initCustomEvent(t,e.bubbles,e.cancelable,e.detail),n=r.preventDefault,r.preventDefault=function(){n.call(this);try{Object.defineProperty(this,"defaultPrevented",{get:function(){return!0}})}catch(t){this.defaultPrevented=!0}},r};e.prototype=window.Event.prototype,window.CustomEvent=e}}()},4237:function(){function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}var e=function(t){return"string"==typeof t},r=function(t){return t instanceof Blob};function n(t,n){var o=this.event&&this.event.type,i="unload"===o||"beforeunload"===o,s="XMLHttpRequest"in this?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP");s.open("POST",t,!i),s.withCredentials=!0,s.setRequestHeader("Accept","*/*"),e(n)?(s.setRequestHeader("Content-Type","text/plain;charset=UTF-8"),s.responseType="text"):r(n)&&n.type&&s.setRequestHeader("Content-Type",n.type);try{s.send(n)}catch(t){return!1}return!0}(function(){"navigator"in this||(this.navigator={});"function"!=typeof this.navigator.sendBeacon&&(this.navigator.sendBeacon=n.bind(this))}).call("object"===("undefined"==typeof window?"undefined":t(window))?window:{})},7147:function(t,e,r){"use strict";r.r(e),r.d(e,{DOMException:function(){return x},Headers:function(){return f},Request:function(){return g},Response:function(){return b},fetch:function(){return S}});var n="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==r.g&&r.g||{},o={searchParams:"URLSearchParams"in n,iterable:"Symbol"in n&&"iterator"in Symbol,blob:"FileReader"in n&&"Blob"in n&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in n,arrayBuffer:"ArrayBuffer"in n};if(o.arrayBuffer)var i=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],s=ArrayBuffer.isView||function(t){return t&&i.indexOf(Object.prototype.toString.call(t))>-1};function a(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||""===t)throw new TypeError('Invalid character in header field name: "'+t+'"');return t.toLowerCase()}function c(t){return"string"!=typeof t&&(t=String(t)),t}function u(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return o.iterable&&(e[Symbol.iterator]=function(){return e}),e}function f(t){this.map={},t instanceof f?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){if(2!=t.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+t.length);this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function l(t){if(!t._noBody)return t.bodyUsed?Promise.reject(new TypeError("Already read")):void(t.bodyUsed=!0)}function p(t){return new Promise((function(e,r){t.onload=function(){e(t.result)},t.onerror=function(){r(t.error)}}))}function h(t){var e=new FileReader,r=p(e);return e.readAsArrayBuffer(t),r}function d(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function v(){return this.bodyUsed=!1,this._initBody=function(t){var e;this.bodyUsed=this.bodyUsed,this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:o.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:o.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:o.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():o.arrayBuffer&&o.blob&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=d(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||s(t))?this._bodyArrayBuffer=d(t):this._bodyText=t=Object.prototype.toString.call(t):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):o.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o.blob&&(this.blob=function(){var t=l(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var t=l(this);return t||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}if(o.blob)return this.blob().then(h);throw new Error("could not read as ArrayBuffer")},this.text=function(){var t,e,r,n,o,i=l(this);if(i)return i;if(this._bodyBlob)return t=this._bodyBlob,e=new FileReader,r=p(e),n=/charset=([A-Za-z0-9_-]+)/.exec(t.type),o=n?n[1]:"utf-8",e.readAsText(t,o),r;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),r=new Array(e.length),n=0;n<e.length;n++)r[n]=String.fromCharCode(e[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},o.formData&&(this.formData=function(){return this.text().then(m)}),this.json=function(){return this.text().then(JSON.parse)},this}f.prototype.append=function(t,e){t=a(t),e=c(e);var r=this.map[t];this.map[t]=r?r+", "+e:e},f.prototype.delete=function(t){delete this.map[a(t)]},f.prototype.get=function(t){return t=a(t),this.has(t)?this.map[t]:null},f.prototype.has=function(t){return this.map.hasOwnProperty(a(t))},f.prototype.set=function(t,e){this.map[a(t)]=c(e)},f.prototype.forEach=function(t,e){for(var r in this.map)this.map.hasOwnProperty(r)&&t.call(e,this.map[r],r,this)},f.prototype.keys=function(){var t=[];return this.forEach((function(e,r){t.push(r)})),u(t)},f.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),u(t)},f.prototype.entries=function(){var t=[];return this.forEach((function(e,r){t.push([r,e])})),u(t)},o.iterable&&(f.prototype[Symbol.iterator]=f.prototype.entries);var y=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function g(t,e){if(!(this instanceof g))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r,o,i=(e=e||{}).body;if(t instanceof g){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new f(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,i||null==t._bodyInit||(i=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new f(e.headers)),this.method=(r=e.method||this.method||"GET",o=r.toUpperCase(),y.indexOf(o)>-1?o:r),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal||function(){if("AbortController"in n)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(i),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==e.cache&&"no-cache"!==e.cache)){var s=/([?&])_=[^&]*/;if(s.test(this.url))this.url=this.url.replace(s,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function m(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var r=t.split("="),n=r.shift().replace(/\+/g," "),o=r.join("=").replace(/\+/g," ");e.append(decodeURIComponent(n),decodeURIComponent(o))}})),e}function b(t,e){if(!(this instanceof b))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===e.statusText?"":""+e.statusText,this.headers=new f(e.headers),this.url=e.url||"",this._initBody(t)}g.prototype.clone=function(){return new g(this,{body:this._bodyInit})},v.call(g.prototype),v.call(b.prototype),b.prototype.clone=function(){return new b(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new f(this.headers),url:this.url})},b.error=function(){var t=new b(null,{status:200,statusText:""});return t.ok=!1,t.status=0,t.type="error",t};var w=[301,302,303,307,308];b.redirect=function(t,e){if(-1===w.indexOf(e))throw new RangeError("Invalid status code");return new b(null,{status:e,headers:{location:t}})};var x=n.DOMException;try{new x}catch(t){(x=function(t,e){this.message=t,this.name=e;var r=Error(t);this.stack=r.stack}).prototype=Object.create(Error.prototype),x.prototype.constructor=x}function S(t,e){return new Promise((function(r,i){var s=new g(t,e);if(s.signal&&s.signal.aborted)return i(new x("Aborted","AbortError"));var u=new XMLHttpRequest;function l(){u.abort()}if(u.onload=function(){var t,e,n={statusText:u.statusText,headers:(t=u.getAllResponseHeaders()||"",e=new f,t.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(t){return 0===t.indexOf("\n")?t.substr(1,t.length):t})).forEach((function(t){var r=t.split(":"),n=r.shift().trim();if(n){var o=r.join(":").trim();try{e.append(n,o)}catch(t){console.warn("Response "+t.message)}}})),e)};0===s.url.indexOf("file://")&&(u.status<200||u.status>599)?n.status=200:n.status=u.status,n.url="responseURL"in u?u.responseURL:n.headers.get("X-Request-URL");var o="response"in u?u.response:u.responseText;setTimeout((function(){r(new b(o,n))}),0)},u.onerror=function(){setTimeout((function(){i(new TypeError("Network request failed"))}),0)},u.ontimeout=function(){setTimeout((function(){i(new TypeError("Network request timed out"))}),0)},u.onabort=function(){setTimeout((function(){i(new x("Aborted","AbortError"))}),0)},u.open(s.method,function(t){try{return""===t&&n.location.href?n.location.href:t}catch(e){return t}}(s.url),!0),"include"===s.credentials?u.withCredentials=!0:"omit"===s.credentials&&(u.withCredentials=!1),"responseType"in u&&(o.blob?u.responseType="blob":o.arrayBuffer&&(u.responseType="arraybuffer")),e&&"object"==typeof e.headers&&!(e.headers instanceof f||n.Headers&&e.headers instanceof n.Headers)){var p=[];Object.getOwnPropertyNames(e.headers).forEach((function(t){p.push(a(t)),u.setRequestHeader(t,c(e.headers[t]))})),s.headers.forEach((function(t,e){-1===p.indexOf(e)&&u.setRequestHeader(e,t)}))}else s.headers.forEach((function(t,e){u.setRequestHeader(e,t)}));s.signal&&(s.signal.addEventListener("abort",l),u.onreadystatechange=function(){4===u.readyState&&s.signal.removeEventListener("abort",l)}),u.send(void 0===s._bodyInit?null:s._bodyInit)}))}S.polyfill=!0,n.fetch||(n.fetch=S,n.Headers=f,n.Request=g,n.Response=b)},509:function(t,e,r){"use strict";var n=r(9985),o=r(3691),i=TypeError;t.exports=function(t){if(n(t))return t;throw new i(o(t)+" is not a function")}},3550:function(t,e,r){"use strict";var n=r(598),o=String,i=TypeError;t.exports=function(t){if(n(t))return t;throw new i("Can't set "+o(t)+" as a prototype")}},7370:function(t,e,r){"use strict";var n=r(4201),o=r(5391),i=r(2560).f,s=n("unscopables"),a=Array.prototype;void 0===a[s]&&i(a,s,{configurable:!0,value:o(null)}),t.exports=function(t){a[s][t]=!0}},1514:function(t,e,r){"use strict";var n=r(730).charAt;t.exports=function(t,e,r){return e+(r?n(t,e).length:1)}},767:function(t,e,r){"use strict";var n=r(3622),o=TypeError;t.exports=function(t,e){if(n(e,t))return t;throw new o("Incorrect invocation")}},5027:function(t,e,r){"use strict";var n=r(8999),o=String,i=TypeError;t.exports=function(t){if(n(t))return t;throw new i(o(t)+" is not an object")}},1655:function(t,e,r){"use strict";var n=r(3689);t.exports=n((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}))},1055:function(t,e,r){"use strict";var n=r(4071),o=r(2615),i=r(690),s=r(1228),a=r(3292),c=r(9429),u=r(6310),f=r(6522),l=r(5185),p=r(1664),h=Array;t.exports=function(t){var e=i(t),r=c(this),d=arguments.length,v=d>1?arguments[1]:void 0,y=void 0!==v;y&&(v=n(v,d>2?arguments[2]:void 0));var g,m,b,w,x,S,k=p(e),_=0;if(!k||this===h&&a(k))for(g=u(e),m=r?new this(g):h(g);g>_;_++)S=y?v(e[_],_):e[_],f(m,_,S);else for(m=r?new this:[],x=(w=l(e,k)).next;!(b=o(x,w)).done;_++)S=y?s(w,v,[b.value,_],!0):b.value,f(m,_,S);return m.length=_,m}},4328:function(t,e,r){"use strict";var n=r(5290),o=r(7578),i=r(6310),s=function(t){return function(e,r,s){var a=n(e),c=i(a);if(0===c)return!t&&-1;var u,f=o(s,c);if(t&&r!=r){for(;c>f;)if((u=a[f++])!=u)return!0}else for(;c>f;f++)if((t||f in a)&&a[f]===r)return t||f||0;return!t&&-1}};t.exports={includes:s(!0),indexOf:s(!1)}},2960:function(t,e,r){"use strict";var n=r(4071),o=r(8844),i=r(4413),s=r(690),a=r(6310),c=r(7120),u=o([].push),f=function(t){var e=1===t,r=2===t,o=3===t,f=4===t,l=6===t,p=7===t,h=5===t||l;return function(d,v,y,g){for(var m,b,w=s(d),x=i(w),S=a(x),k=n(v,y),_=0,E=g||c,O=e?E(d,S):r||p?E(d,0):void 0;S>_;_++)if((h||_ in x)&&(b=k(m=x[_],_,w),t))if(e)O[_]=b;else if(b)switch(t){case 3:return!0;case 5:return m;case 6:return _;case 2:u(O,m)}else switch(t){case 4:return!1;case 7:u(O,m)}return l?-1:o||f?f:O}};t.exports={forEach:f(0),map:f(1),filter:f(2),some:f(3),every:f(4),find:f(5),findIndex:f(6),filterReject:f(7)}},9042:function(t,e,r){"use strict";var n=r(3689),o=r(4201),i=r(3615),s=o("species");t.exports=function(t){return i>=51||!n((function(){var e=[];return(e.constructor={})[s]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},6834:function(t,e,r){"use strict";var n=r(3689);t.exports=function(t,e){var r=[][t];return!!r&&n((function(){r.call(null,e||function(){return 1},1)}))}},6004:function(t,e,r){"use strict";var n=r(8844);t.exports=n([].slice)},382:function(t,e,r){"use strict";var n=r(6004),o=Math.floor,i=function(t,e){var r=t.length;if(r<8)for(var s,a,c=1;c<r;){for(a=c,s=t[c];a&&e(t[a-1],s)>0;)t[a]=t[--a];a!==c++&&(t[a]=s)}else for(var u=o(r/2),f=i(n(t,0,u),e),l=i(n(t,u),e),p=f.length,h=l.length,d=0,v=0;d<p||v<h;)t[d+v]=d<p&&v<h?e(f[d],l[v])<=0?f[d++]:l[v++]:d<p?f[d++]:l[v++];return t};t.exports=i},5271:function(t,e,r){"use strict";var n=r(2297),o=r(9429),i=r(8999),s=r(4201)("species"),a=Array;t.exports=function(t){var e;return n(t)&&(e=t.constructor,(o(e)&&(e===a||n(e.prototype))||i(e)&&null===(e=e[s]))&&(e=void 0)),void 0===e?a:e}},7120:function(t,e,r){"use strict";var n=r(5271);t.exports=function(t,e){return new(n(t))(0===e?0:e)}},1228:function(t,e,r){"use strict";var n=r(5027),o=r(2125);t.exports=function(t,e,r,i){try{return i?e(n(r)[0],r[1]):e(r)}catch(e){o(t,"throw",e)}}},6431:function(t,e,r){"use strict";var n=r(4201)("iterator"),o=!1;try{var i=0,s={next:function(){return{done:!!i++}},return:function(){o=!0}};s[n]=function(){return this},Array.from(s,(function(){throw 2}))}catch(t){}t.exports=function(t,e){try{if(!e&&!o)return!1}catch(t){return!1}var r=!1;try{var i={};i[n]=function(){return{next:function(){return{done:r=!0}}}},t(i)}catch(t){}return r}},6648:function(t,e,r){"use strict";var n=r(8844),o=n({}.toString),i=n("".slice);t.exports=function(t){return i(o(t),8,-1)}},926:function(t,e,r){"use strict";var n=r(3043),o=r(9985),i=r(6648),s=r(4201)("toStringTag"),a=Object,c="Arguments"===i(function(){return arguments}());t.exports=n?i:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=a(t),s))?r:c?i(e):"Object"===(n=i(e))&&o(e.callee)?"Arguments":n}},800:function(t,e,r){"use strict";var n=r(5391),o=r(2148),i=r(6045),s=r(4071),a=r(767),c=r(981),u=r(8734),f=r(1934),l=r(7807),p=r(4241),h=r(7697),d=r(5375).fastKey,v=r(618),y=v.set,g=v.getterFor;t.exports={getConstructor:function(t,e,r,f){var l=t((function(t,o){a(t,p),y(t,{type:e,index:n(null),first:void 0,last:void 0,size:0}),h||(t.size=0),c(o)||u(o,t[f],{that:t,AS_ENTRIES:r})})),p=l.prototype,v=g(e),m=function(t,e,r){var n,o,i=v(t),s=b(t,e);return s?s.value=r:(i.last=s={index:o=d(e,!0),key:e,value:r,previous:n=i.last,next:void 0,removed:!1},i.first||(i.first=s),n&&(n.next=s),h?i.size++:t.size++,"F"!==o&&(i.index[o]=s)),t},b=function(t,e){var r,n=v(t),o=d(e);if("F"!==o)return n.index[o];for(r=n.first;r;r=r.next)if(r.key===e)return r};return i(p,{clear:function(){for(var t=v(this),e=t.first;e;)e.removed=!0,e.previous&&(e.previous=e.previous.next=void 0),e=e.next;t.first=t.last=void 0,t.index=n(null),h?t.size=0:this.size=0},delete:function(t){var e=this,r=v(e),n=b(e,t);if(n){var o=n.next,i=n.previous;delete r.index[n.index],n.removed=!0,i&&(i.next=o),o&&(o.previous=i),r.first===n&&(r.first=o),r.last===n&&(r.last=i),h?r.size--:e.size--}return!!n},forEach:function(t){for(var e,r=v(this),n=s(t,arguments.length>1?arguments[1]:void 0);e=e?e.next:r.first;)for(n(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!b(this,t)}}),i(p,r?{get:function(t){var e=b(this,t);return e&&e.value},set:function(t,e){return m(this,0===t?0:t,e)}}:{add:function(t){return m(this,t=0===t?0:t,t)}}),h&&o(p,"size",{configurable:!0,get:function(){return v(this).size}}),l},setStrong:function(t,e,r){var n=e+" Iterator",o=g(e),i=g(n);f(t,e,(function(t,e){y(this,{type:n,target:t,state:o(t),kind:e,last:void 0})}),(function(){for(var t=i(this),e=t.kind,r=t.last;r&&r.removed;)r=r.previous;return t.target&&(t.last=r=r?r.next:t.state.first)?l("keys"===e?r.key:"values"===e?r.value:[r.key,r.value],!1):(t.target=void 0,l(void 0,!0))}),r?"entries":"values",!r,!0),p(e)}}},319:function(t,e,r){"use strict";var n=r(9989),o=r(9037),i=r(8844),s=r(5266),a=r(1880),c=r(5375),u=r(8734),f=r(767),l=r(9985),p=r(981),h=r(8999),d=r(3689),v=r(6431),y=r(5997),g=r(3457);t.exports=function(t,e,r){var m=-1!==t.indexOf("Map"),b=-1!==t.indexOf("Weak"),w=m?"set":"add",x=o[t],S=x&&x.prototype,k=x,_={},E=function(t){var e=i(S[t]);a(S,t,"add"===t?function(t){return e(this,0===t?0:t),this}:"delete"===t?function(t){return!(b&&!h(t))&&e(this,0===t?0:t)}:"get"===t?function(t){return b&&!h(t)?void 0:e(this,0===t?0:t)}:"has"===t?function(t){return!(b&&!h(t))&&e(this,0===t?0:t)}:function(t,r){return e(this,0===t?0:t,r),this})};if(s(t,!l(x)||!(b||S.forEach&&!d((function(){(new x).entries().next()})))))k=r.getConstructor(e,t,m,w),c.enable();else if(s(t,!0)){var O=new k,A=O[w](b?{}:-0,1)!==O,P=d((function(){O.has(1)})),R=v((function(t){new x(t)})),T=!b&&d((function(){for(var t=new x,e=5;e--;)t[w](e,e);return!t.has(-0)}));R||((k=e((function(t,e){f(t,S);var r=g(new x,t,k);return p(e)||u(e,r[w],{that:r,AS_ENTRIES:m}),r}))).prototype=S,S.constructor=k),(P||T)&&(E("delete"),E("has"),m&&E("get")),(T||A)&&E(w),b&&S.clear&&delete S.clear}return _[t]=k,n({global:!0,constructor:!0,forced:k!==x},_),y(k,t),b||r.setStrong(k,t,m),k}},8758:function(t,e,r){"use strict";var n=r(6812),o=r(9152),i=r(2474),s=r(2560);t.exports=function(t,e,r){for(var a=o(e),c=s.f,u=i.f,f=0;f<a.length;f++){var l=a[f];n(t,l)||r&&n(r,l)||c(t,l,u(e,l))}}},7413:function(t,e,r){"use strict";var n=r(4201)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(r){try{return e[n]=!1,"/./"[t](e)}catch(t){}}return!1}},1748:function(t,e,r){"use strict";var n=r(3689);t.exports=!n((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},7807:function(t){"use strict";t.exports=function(t,e){return{value:t,done:e}}},5773:function(t,e,r){"use strict";var n=r(7697),o=r(2560),i=r(5684);t.exports=n?function(t,e,r){return o.f(t,e,i(1,r))}:function(t,e,r){return t[e]=r,t}},5684:function(t){"use strict";t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},6522:function(t,e,r){"use strict";var n=r(7697),o=r(2560),i=r(5684);t.exports=function(t,e,r){n?o.f(t,e,i(0,r)):t[e]=r}},2148:function(t,e,r){"use strict";var n=r(8702),o=r(2560);t.exports=function(t,e,r){return r.get&&n(r.get,e,{getter:!0}),r.set&&n(r.set,e,{setter:!0}),o.f(t,e,r)}},1880:function(t,e,r){"use strict";var n=r(9985),o=r(2560),i=r(8702),s=r(5014);t.exports=function(t,e,r,a){a||(a={});var c=a.enumerable,u=void 0!==a.name?a.name:e;if(n(r)&&i(r,u,a),a.global)c?t[e]=r:s(e,r);else{try{a.unsafe?t[e]&&(c=!0):delete t[e]}catch(t){}c?t[e]=r:o.f(t,e,{value:r,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return t}},6045:function(t,e,r){"use strict";var n=r(1880);t.exports=function(t,e,r){for(var o in e)n(t,o,e[o],r);return t}},5014:function(t,e,r){"use strict";var n=r(9037),o=Object.defineProperty;t.exports=function(t,e){try{o(n,t,{value:e,configurable:!0,writable:!0})}catch(r){n[t]=e}return e}},7697:function(t,e,r){"use strict";var n=r(3689);t.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},6420:function(t,e,r){"use strict";var n=r(9037),o=r(8999),i=n.document,s=o(i)&&o(i.createElement);t.exports=function(t){return s?i.createElement(t):{}}},5565:function(t){"use strict";var e=TypeError;t.exports=function(t){if(t>9007199254740991)throw e("Maximum allowed index exceeded");return t}},6338:function(t){"use strict";t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},3265:function(t,e,r){"use strict";var n=r(6420)("span").classList,o=n&&n.constructor&&n.constructor.prototype;t.exports=o===Object.prototype?void 0:o},71:function(t){"use strict";t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},3615:function(t,e,r){"use strict";var n,o,i=r(9037),s=r(71),a=i.process,c=i.Deno,u=a&&a.versions||c&&c.version,f=u&&u.v8;f&&(o=(n=f.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!o&&s&&(!(n=s.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=s.match(/Chrome\/(\d+)/))&&(o=+n[1]),t.exports=o},2739:function(t){"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},9989:function(t,e,r){"use strict";var n=r(9037),o=r(2474).f,i=r(5773),s=r(1880),a=r(5014),c=r(8758),u=r(5266);t.exports=function(t,e){var r,f,l,p,h,d=t.target,v=t.global,y=t.stat;if(r=v?n:y?n[d]||a(d,{}):n[d]&&n[d].prototype)for(f in e){if(p=e[f],l=t.dontCallGetSet?(h=o(r,f))&&h.value:r[f],!u(v?f:d+(y?".":"#")+f,t.forced)&&void 0!==l){if(typeof p==typeof l)continue;c(p,l)}(t.sham||l&&l.sham)&&i(p,"sham",!0),s(r,f,p,t)}}},3689:function(t){"use strict";t.exports=function(t){try{return!!t()}catch(t){return!0}}},8678:function(t,e,r){"use strict";r(4043);var n=r(2615),o=r(1880),i=r(6308),s=r(3689),a=r(4201),c=r(5773),u=a("species"),f=RegExp.prototype;t.exports=function(t,e,r,l){var p=a(t),h=!s((function(){var e={};return e[p]=function(){return 7},7!==""[t](e)})),d=h&&!s((function(){var e=!1,r=/a/;return"split"===t&&((r={}).constructor={},r.constructor[u]=function(){return r},r.flags="",r[p]=/./[p]),r.exec=function(){return e=!0,null},r[p](""),!e}));if(!h||!d||r){var v=/./[p],y=e(p,""[t],(function(t,e,r,o,s){var a=e.exec;return a===i||a===f.exec?h&&!s?{done:!0,value:n(v,e,r,o)}:{done:!0,value:n(t,r,e,o)}:{done:!1}}));o(String.prototype,t,y[0]),o(f,p,y[1])}l&&c(f[p],"sham",!0)}},1594:function(t,e,r){"use strict";var n=r(3689);t.exports=!n((function(){return Object.isExtensible(Object.preventExtensions({}))}))},1735:function(t,e,r){"use strict";var n=r(7215),o=Function.prototype,i=o.apply,s=o.call;t.exports="object"==typeof Reflect&&Reflect.apply||(n?s.bind(i):function(){return s.apply(i,arguments)})},4071:function(t,e,r){"use strict";var n=r(6576),o=r(509),i=r(7215),s=n(n.bind);t.exports=function(t,e){return o(t),void 0===e?t:i?s(t,e):function(){return t.apply(e,arguments)}}},7215:function(t,e,r){"use strict";var n=r(3689);t.exports=!n((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},2615:function(t,e,r){"use strict";var n=r(7215),o=Function.prototype.call;t.exports=n?o.bind(o):function(){return o.apply(o,arguments)}},1236:function(t,e,r){"use strict";var n=r(7697),o=r(6812),i=Function.prototype,s=n&&Object.getOwnPropertyDescriptor,a=o(i,"name"),c=a&&"something"===function(){}.name,u=a&&(!n||n&&s(i,"name").configurable);t.exports={EXISTS:a,PROPER:c,CONFIGURABLE:u}},2743:function(t,e,r){"use strict";var n=r(8844),o=r(509);t.exports=function(t,e,r){try{return n(o(Object.getOwnPropertyDescriptor(t,e)[r]))}catch(t){}}},6576:function(t,e,r){"use strict";var n=r(6648),o=r(8844);t.exports=function(t){if("Function"===n(t))return o(t)}},8844:function(t,e,r){"use strict";var n=r(7215),o=Function.prototype,i=o.call,s=n&&o.bind.bind(i,i);t.exports=n?s:function(t){return function(){return i.apply(t,arguments)}}},6058:function(t,e,r){"use strict";var n=r(9037),o=r(9985);t.exports=function(t,e){return arguments.length<2?(r=n[t],o(r)?r:void 0):n[t]&&n[t][e];var r}},1664:function(t,e,r){"use strict";var n=r(926),o=r(4849),i=r(981),s=r(9478),a=r(4201)("iterator");t.exports=function(t){if(!i(t))return o(t,a)||o(t,"@@iterator")||s[n(t)]}},5185:function(t,e,r){"use strict";var n=r(2615),o=r(509),i=r(5027),s=r(3691),a=r(1664),c=TypeError;t.exports=function(t,e){var r=arguments.length<2?a(t):e;if(o(r))return i(n(r,t));throw new c(s(t)+" is not iterable")}},2643:function(t,e,r){"use strict";var n=r(8844),o=r(2297),i=r(9985),s=r(6648),a=r(4327),c=n([].push);t.exports=function(t){if(i(t))return t;if(o(t)){for(var e=t.length,r=[],n=0;n<e;n++){var u=t[n];"string"==typeof u?c(r,u):"number"!=typeof u&&"Number"!==s(u)&&"String"!==s(u)||c(r,a(u))}var f=r.length,l=!0;return function(t,e){if(l)return l=!1,e;if(o(this))return e;for(var n=0;n<f;n++)if(r[n]===t)return e}}}},4849:function(t,e,r){"use strict";var n=r(509),o=r(981);t.exports=function(t,e){var r=t[e];return o(r)?void 0:n(r)}},7017:function(t,e,r){"use strict";var n=r(8844),o=r(690),i=Math.floor,s=n("".charAt),a=n("".replace),c=n("".slice),u=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,f=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,e,r,n,l,p){var h=r+t.length,d=n.length,v=f;return void 0!==l&&(l=o(l),v=u),a(p,v,(function(o,a){var u;switch(s(a,0)){case"$":return"$";case"&":return t;case"`":return c(e,0,r);case"'":return c(e,h);case"<":u=l[c(a,1,-1)];break;default:var f=+a;if(0===f)return o;if(f>d){var p=i(f/10);return 0===p?o:p<=d?void 0===n[p-1]?s(a,1):n[p-1]+s(a,1):o}u=n[f-1]}return void 0===u?"":u}))}},9037:function(t,e,r){"use strict";var n=function(t){return t&&t.Math===Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()},6812:function(t,e,r){"use strict";var n=r(8844),o=r(690),i=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return i(o(t),e)}},7248:function(t){"use strict";t.exports={}},2688:function(t,e,r){"use strict";var n=r(6058);t.exports=n("document","documentElement")},8506:function(t,e,r){"use strict";var n=r(7697),o=r(3689),i=r(6420);t.exports=!n&&!o((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},4413:function(t,e,r){"use strict";var n=r(8844),o=r(3689),i=r(6648),s=Object,a=n("".split);t.exports=o((function(){return!s("z").propertyIsEnumerable(0)}))?function(t){return"String"===i(t)?a(t,""):s(t)}:s},3457:function(t,e,r){"use strict";var n=r(9985),o=r(8999),i=r(9385);t.exports=function(t,e,r){var s,a;return i&&n(s=e.constructor)&&s!==r&&o(a=s.prototype)&&a!==r.prototype&&i(t,a),t}},6738:function(t,e,r){"use strict";var n=r(8844),o=r(9985),i=r(4091),s=n(Function.toString);o(i.inspectSource)||(i.inspectSource=function(t){return s(t)}),t.exports=i.inspectSource},5375:function(t,e,r){"use strict";var n=r(9989),o=r(8844),i=r(7248),s=r(8999),a=r(6812),c=r(2560).f,u=r(2741),f=r(6062),l=r(1129),p=r(4630),h=r(1594),d=!1,v=p("meta"),y=0,g=function(t){c(t,v,{value:{objectID:"O"+y++,weakData:{}}})},m=t.exports={enable:function(){m.enable=function(){},d=!0;var t=u.f,e=o([].splice),r={};r[v]=1,t(r).length&&(u.f=function(r){for(var n=t(r),o=0,i=n.length;o<i;o++)if(n[o]===v){e(n,o,1);break}return n},n({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:f.f}))},fastKey:function(t,e){if(!s(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!a(t,v)){if(!l(t))return"F";if(!e)return"E";g(t)}return t[v].objectID},getWeakData:function(t,e){if(!a(t,v)){if(!l(t))return!0;if(!e)return!1;g(t)}return t[v].weakData},onFreeze:function(t){return h&&d&&l(t)&&!a(t,v)&&g(t),t}};i[v]=!0},618:function(t,e,r){"use strict";var n,o,i,s=r(9834),a=r(9037),c=r(8999),u=r(5773),f=r(6812),l=r(4091),p=r(2713),h=r(7248),d="Object already initialized",v=a.TypeError,y=a.WeakMap;if(s||l.state){var g=l.state||(l.state=new y);g.get=g.get,g.has=g.has,g.set=g.set,n=function(t,e){if(g.has(t))throw new v(d);return e.facade=t,g.set(t,e),e},o=function(t){return g.get(t)||{}},i=function(t){return g.has(t)}}else{var m=p("state");h[m]=!0,n=function(t,e){if(f(t,m))throw new v(d);return e.facade=t,u(t,m,e),e},o=function(t){return f(t,m)?t[m]:{}},i=function(t){return f(t,m)}}t.exports={set:n,get:o,has:i,enforce:function(t){return i(t)?o(t):n(t,{})},getterFor:function(t){return function(e){var r;if(!c(e)||(r=o(e)).type!==t)throw new v("Incompatible receiver, "+t+" required");return r}}}},3292:function(t,e,r){"use strict";var n=r(4201),o=r(9478),i=n("iterator"),s=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||s[i]===t)}},2297:function(t,e,r){"use strict";var n=r(6648);t.exports=Array.isArray||function(t){return"Array"===n(t)}},9985:function(t){"use strict";var e="object"==typeof document&&document.all;t.exports=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(t){return"function"==typeof t}},9429:function(t,e,r){"use strict";var n=r(8844),o=r(3689),i=r(9985),s=r(926),a=r(6058),c=r(6738),u=function(){},f=a("Reflect","construct"),l=/^\s*(?:class|function)\b/,p=n(l.exec),h=!l.test(u),d=function(t){if(!i(t))return!1;try{return f(u,[],t),!0}catch(t){return!1}},v=function(t){if(!i(t))return!1;switch(s(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return h||!!p(l,c(t))}catch(t){return!0}};v.sham=!0,t.exports=!f||o((function(){var t;return d(d.call)||!d(Object)||!d((function(){t=!0}))||t}))?v:d},5266:function(t,e,r){"use strict";var n=r(3689),o=r(9985),i=/#|\.prototype\./,s=function(t,e){var r=c[a(t)];return r===f||r!==u&&(o(e)?n(e):!!e)},a=s.normalize=function(t){return String(t).replace(i,".").toLowerCase()},c=s.data={},u=s.NATIVE="N",f=s.POLYFILL="P";t.exports=s},981:function(t){"use strict";t.exports=function(t){return null==t}},8999:function(t,e,r){"use strict";var n=r(9985);t.exports=function(t){return"object"==typeof t?null!==t:n(t)}},598:function(t,e,r){"use strict";var n=r(8999);t.exports=function(t){return n(t)||null===t}},3931:function(t){"use strict";t.exports=!1},1245:function(t,e,r){"use strict";var n=r(8999),o=r(6648),i=r(4201)("match");t.exports=function(t){var e;return n(t)&&(void 0!==(e=t[i])?!!e:"RegExp"===o(t))}},734:function(t,e,r){"use strict";var n=r(6058),o=r(9985),i=r(3622),s=r(9525),a=Object;t.exports=s?function(t){return"symbol"==typeof t}:function(t){var e=n("Symbol");return o(e)&&i(e.prototype,a(t))}},8734:function(t,e,r){"use strict";var n=r(4071),o=r(2615),i=r(5027),s=r(3691),a=r(3292),c=r(6310),u=r(3622),f=r(5185),l=r(1664),p=r(2125),h=TypeError,d=function(t,e){this.stopped=t,this.result=e},v=d.prototype;t.exports=function(t,e,r){var y,g,m,b,w,x,S,k=r&&r.that,_=!(!r||!r.AS_ENTRIES),E=!(!r||!r.IS_RECORD),O=!(!r||!r.IS_ITERATOR),A=!(!r||!r.INTERRUPTED),P=n(e,k),R=function(t){return y&&p(y,"normal",t),new d(!0,t)},T=function(t){return _?(i(t),A?P(t[0],t[1],R):P(t[0],t[1])):A?P(t,R):P(t)};if(E)y=t.iterator;else if(O)y=t;else{if(!(g=l(t)))throw new h(s(t)+" is not iterable");if(a(g)){for(m=0,b=c(t);b>m;m++)if((w=T(t[m]))&&u(v,w))return w;return new d(!1)}y=f(t,g)}for(x=E?t.next:y.next;!(S=o(x,y)).done;){try{w=T(S.value)}catch(t){p(y,"throw",t)}if("object"==typeof w&&w&&u(v,w))return w}return new d(!1)}},2125:function(t,e,r){"use strict";var n=r(2615),o=r(5027),i=r(4849);t.exports=function(t,e,r){var s,a;o(t);try{if(!(s=i(t,"return"))){if("throw"===e)throw r;return r}s=n(s,t)}catch(t){a=!0,s=t}if("throw"===e)throw r;if(a)throw s;return o(s),r}},974:function(t,e,r){"use strict";var n=r(2013).IteratorPrototype,o=r(5391),i=r(5684),s=r(5997),a=r(9478),c=function(){return this};t.exports=function(t,e,r,u){var f=e+" Iterator";return t.prototype=o(n,{next:i(+!u,r)}),s(t,f,!1,!0),a[f]=c,t}},1934:function(t,e,r){"use strict";var n=r(9989),o=r(2615),i=r(3931),s=r(1236),a=r(9985),c=r(974),u=r(1868),f=r(9385),l=r(5997),p=r(5773),h=r(1880),d=r(4201),v=r(9478),y=r(2013),g=s.PROPER,m=s.CONFIGURABLE,b=y.IteratorPrototype,w=y.BUGGY_SAFARI_ITERATORS,x=d("iterator"),S="keys",k="values",_="entries",E=function(){return this};t.exports=function(t,e,r,s,d,y,O){c(r,e,s);var A,P,R,T=function(t){if(t===d&&U)return U;if(!w&&t&&t in L)return L[t];switch(t){case S:case k:case _:return function(){return new r(this,t)}}return function(){return new r(this)}},j=e+" Iterator",I=!1,L=t.prototype,C=L[x]||L["@@iterator"]||d&&L[d],U=!w&&C||T(d),B="Array"===e&&L.entries||C;if(B&&(A=u(B.call(new t)))!==Object.prototype&&A.next&&(i||u(A)===b||(f?f(A,b):a(A[x])||h(A,x,E)),l(A,j,!0,!0),i&&(v[j]=E)),g&&d===k&&C&&C.name!==k&&(!i&&m?p(L,"name",k):(I=!0,U=function(){return o(C,this)})),d)if(P={values:T(k),keys:y?U:T(S),entries:T(_)},O)for(R in P)(w||I||!(R in L))&&h(L,R,P[R]);else n({target:e,proto:!0,forced:w||I},P);return i&&!O||L[x]===U||h(L,x,U,{name:d}),v[e]=U,P}},2013:function(t,e,r){"use strict";var n,o,i,s=r(3689),a=r(9985),c=r(8999),u=r(5391),f=r(1868),l=r(1880),p=r(4201),h=r(3931),d=p("iterator"),v=!1;[].keys&&("next"in(i=[].keys())?(o=f(f(i)))!==Object.prototype&&(n=o):v=!0),!c(n)||s((function(){var t={};return n[d].call(t)!==t}))?n={}:h&&(n=u(n)),a(n[d])||l(n,d,(function(){return this})),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:v}},9478:function(t){"use strict";t.exports={}},6310:function(t,e,r){"use strict";var n=r(3126);t.exports=function(t){return n(t.length)}},8702:function(t,e,r){"use strict";var n=r(8844),o=r(3689),i=r(9985),s=r(6812),a=r(7697),c=r(1236).CONFIGURABLE,u=r(6738),f=r(618),l=f.enforce,p=f.get,h=String,d=Object.defineProperty,v=n("".slice),y=n("".replace),g=n([].join),m=a&&!o((function(){return 8!==d((function(){}),"length",{value:8}).length})),b=String(String).split("String"),w=t.exports=function(t,e,r){"Symbol("===v(h(e),0,7)&&(e="["+y(h(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!s(t,"name")||c&&t.name!==e)&&(a?d(t,"name",{value:e,configurable:!0}):t.name=e),m&&r&&s(r,"arity")&&t.length!==r.arity&&d(t,"length",{value:r.arity});try{r&&s(r,"constructor")&&r.constructor?a&&d(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var n=l(t);return s(n,"source")||(n.source=g(b,"string"==typeof e?e:"")),t};Function.prototype.toString=w((function(){return i(this)&&p(this).source||u(this)}),"toString")},8828:function(t){"use strict";var e=Math.ceil,r=Math.floor;t.exports=Math.trunc||function(t){var n=+t;return(n>0?r:e)(n)}},2124:function(t,e,r){"use strict";var n=r(1245),o=TypeError;t.exports=function(t){if(n(t))throw new o("The method doesn't accept regular expressions");return t}},5394:function(t,e,r){"use strict";var n=r(7697),o=r(8844),i=r(2615),s=r(3689),a=r(300),c=r(7518),u=r(9556),f=r(690),l=r(4413),p=Object.assign,h=Object.defineProperty,d=o([].concat);t.exports=!p||s((function(){if(n&&1!==p({b:1},p(h({},"a",{enumerable:!0,get:function(){h(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},r=Symbol("assign detection"),o="abcdefghijklmnopqrst";return t[r]=7,o.split("").forEach((function(t){e[t]=t})),7!==p({},t)[r]||a(p({},e)).join("")!==o}))?function(t,e){for(var r=f(t),o=arguments.length,s=1,p=c.f,h=u.f;o>s;)for(var v,y=l(arguments[s++]),g=p?d(a(y),p(y)):a(y),m=g.length,b=0;m>b;)v=g[b++],n&&!i(h,y,v)||(r[v]=y[v]);return r}:p},5391:function(t,e,r){"use strict";var n,o=r(5027),i=r(8920),s=r(2739),a=r(7248),c=r(2688),u=r(6420),f=r(2713),l="prototype",p="script",h=f("IE_PROTO"),d=function(){},v=function(t){return"<"+p+">"+t+"</"+p+">"},y=function(t){t.write(v("")),t.close();var e=t.parentWindow.Object;return t=null,e},g=function(){try{n=new ActiveXObject("htmlfile")}catch(t){}var t,e,r;g="undefined"!=typeof document?document.domain&&n?y(n):(e=u("iframe"),r="java"+p+":",e.style.display="none",c.appendChild(e),e.src=String(r),(t=e.contentWindow.document).open(),t.write(v("document.F=Object")),t.close(),t.F):y(n);for(var o=s.length;o--;)delete g[l][s[o]];return g()};a[h]=!0,t.exports=Object.create||function(t,e){var r;return null!==t?(d[l]=o(t),r=new d,d[l]=null,r[h]=t):r=g(),void 0===e?r:i.f(r,e)}},8920:function(t,e,r){"use strict";var n=r(7697),o=r(5648),i=r(2560),s=r(5027),a=r(5290),c=r(300);e.f=n&&!o?Object.defineProperties:function(t,e){s(t);for(var r,n=a(e),o=c(e),u=o.length,f=0;u>f;)i.f(t,r=o[f++],n[r]);return t}},2560:function(t,e,r){"use strict";var n=r(7697),o=r(8506),i=r(5648),s=r(5027),a=r(8360),c=TypeError,u=Object.defineProperty,f=Object.getOwnPropertyDescriptor,l="enumerable",p="configurable",h="writable";e.f=n?i?function(t,e,r){if(s(t),e=a(e),s(r),"function"==typeof t&&"prototype"===e&&"value"in r&&h in r&&!r[h]){var n=f(t,e);n&&n[h]&&(t[e]=r.value,r={configurable:p in r?r[p]:n[p],enumerable:l in r?r[l]:n[l],writable:!1})}return u(t,e,r)}:u:function(t,e,r){if(s(t),e=a(e),s(r),o)try{return u(t,e,r)}catch(t){}if("get"in r||"set"in r)throw new c("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},2474:function(t,e,r){"use strict";var n=r(7697),o=r(2615),i=r(9556),s=r(5684),a=r(5290),c=r(8360),u=r(6812),f=r(8506),l=Object.getOwnPropertyDescriptor;e.f=n?l:function(t,e){if(t=a(t),e=c(e),f)try{return l(t,e)}catch(t){}if(u(t,e))return s(!o(i.f,t,e),t[e])}},6062:function(t,e,r){"use strict";var n=r(6648),o=r(5290),i=r(2741).f,s=r(6004),a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return a&&"Window"===n(t)?function(t){try{return i(t)}catch(t){return s(a)}}(t):i(o(t))}},2741:function(t,e,r){"use strict";var n=r(4948),o=r(2739).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,o)}},7518:function(t,e){"use strict";e.f=Object.getOwnPropertySymbols},1868:function(t,e,r){"use strict";var n=r(6812),o=r(9985),i=r(690),s=r(2713),a=r(1748),c=s("IE_PROTO"),u=Object,f=u.prototype;t.exports=a?u.getPrototypeOf:function(t){var e=i(t);if(n(e,c))return e[c];var r=e.constructor;return o(r)&&e instanceof r?r.prototype:e instanceof u?f:null}},1129:function(t,e,r){"use strict";var n=r(3689),o=r(8999),i=r(6648),s=r(1655),a=Object.isExtensible,c=n((function(){a(1)}));t.exports=c||s?function(t){return!!o(t)&&((!s||"ArrayBuffer"!==i(t))&&(!a||a(t)))}:a},3622:function(t,e,r){"use strict";var n=r(8844);t.exports=n({}.isPrototypeOf)},4948:function(t,e,r){"use strict";var n=r(8844),o=r(6812),i=r(5290),s=r(4328).indexOf,a=r(7248),c=n([].push);t.exports=function(t,e){var r,n=i(t),u=0,f=[];for(r in n)!o(a,r)&&o(n,r)&&c(f,r);for(;e.length>u;)o(n,r=e[u++])&&(~s(f,r)||c(f,r));return f}},300:function(t,e,r){"use strict";var n=r(4948),o=r(2739);t.exports=Object.keys||function(t){return n(t,o)}},9556:function(t,e){"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,o=n&&!r.call({1:2},1);e.f=o?function(t){var e=n(this,t);return!!e&&e.enumerable}:r},9385:function(t,e,r){"use strict";var n=r(2743),o=r(8999),i=r(4684),s=r(3550);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=n(Object.prototype,"__proto__","set"))(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return i(r),s(n),o(r)?(e?t(r,n):r.__proto__=n,r):r}}():void 0)},5073:function(t,e,r){"use strict";var n=r(3043),o=r(926);t.exports=n?{}.toString:function(){return"[object "+o(this)+"]"}},5899:function(t,e,r){"use strict";var n=r(2615),o=r(9985),i=r(8999),s=TypeError;t.exports=function(t,e){var r,a;if("string"===e&&o(r=t.toString)&&!i(a=n(r,t)))return a;if(o(r=t.valueOf)&&!i(a=n(r,t)))return a;if("string"!==e&&o(r=t.toString)&&!i(a=n(r,t)))return a;throw new s("Can't convert object to primitive value")}},9152:function(t,e,r){"use strict";var n=r(6058),o=r(8844),i=r(2741),s=r(7518),a=r(5027),c=o([].concat);t.exports=n("Reflect","ownKeys")||function(t){var e=i.f(a(t)),r=s.f;return r?c(e,r(t)):e}},496:function(t,e,r){"use strict";var n=r(9037);t.exports=n},8055:function(t,e,r){"use strict";var n=r(2560).f;t.exports=function(t,e,r){r in t||n(t,r,{configurable:!0,get:function(){return e[r]},set:function(t){e[r]=t}})}},6100:function(t,e,r){"use strict";var n=r(2615),o=r(5027),i=r(9985),s=r(6648),a=r(6308),c=TypeError;t.exports=function(t,e){var r=t.exec;if(i(r)){var u=n(r,t,e);return null!==u&&o(u),u}if("RegExp"===s(t))return n(a,t,e);throw new c("RegExp#exec called on incompatible receiver")}},6308:function(t,e,r){"use strict";var n,o,i=r(2615),s=r(8844),a=r(4327),c=r(9633),u=r(7901),f=r(3430),l=r(5391),p=r(618).get,h=r(2100),d=r(6422),v=f("native-string-replace",String.prototype.replace),y=RegExp.prototype.exec,g=y,m=s("".charAt),b=s("".indexOf),w=s("".replace),x=s("".slice),S=(o=/b*/g,i(y,n=/a/,"a"),i(y,o,"a"),0!==n.lastIndex||0!==o.lastIndex),k=u.BROKEN_CARET,_=void 0!==/()??/.exec("")[1];(S||_||k||h||d)&&(g=function(t){var e,r,n,o,s,u,f,h=this,d=p(h),E=a(t),O=d.raw;if(O)return O.lastIndex=h.lastIndex,e=i(g,O,E),h.lastIndex=O.lastIndex,e;var A=d.groups,P=k&&h.sticky,R=i(c,h),T=h.source,j=0,I=E;if(P&&(R=w(R,"y",""),-1===b(R,"g")&&(R+="g"),I=x(E,h.lastIndex),h.lastIndex>0&&(!h.multiline||h.multiline&&"\n"!==m(E,h.lastIndex-1))&&(T="(?: "+T+")",I=" "+I,j++),r=new RegExp("^(?:"+T+")",R)),_&&(r=new RegExp("^"+T+"$(?!\\s)",R)),S&&(n=h.lastIndex),o=i(y,P?r:h,I),P?o?(o.input=x(o.input,j),o[0]=x(o[0],j),o.index=h.lastIndex,h.lastIndex+=o[0].length):h.lastIndex=0:S&&o&&(h.lastIndex=h.global?o.index+o[0].length:n),_&&o&&o.length>1&&i(v,o[0],r,(function(){for(s=1;s<arguments.length-2;s++)void 0===arguments[s]&&(o[s]=void 0)})),o&&A)for(o.groups=u=l(null),s=0;s<A.length;s++)u[(f=A[s])[0]]=o[f[1]];return o}),t.exports=g},9633:function(t,e,r){"use strict";var n=r(5027);t.exports=function(){var t=n(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e}},3477:function(t,e,r){"use strict";var n=r(2615),o=r(6812),i=r(3622),s=r(9633),a=RegExp.prototype;t.exports=function(t){var e=t.flags;return void 0!==e||"flags"in a||o(t,"flags")||!i(a,t)?e:n(s,t)}},7901:function(t,e,r){"use strict";var n=r(3689),o=r(9037).RegExp,i=n((function(){var t=o("a","y");return t.lastIndex=2,null!==t.exec("abcd")})),s=i||n((function(){return!o("a","y").sticky})),a=i||n((function(){var t=o("^r","gy");return t.lastIndex=2,null!==t.exec("str")}));t.exports={BROKEN_CARET:a,MISSED_STICKY:s,UNSUPPORTED_Y:i}},2100:function(t,e,r){"use strict";var n=r(3689),o=r(9037).RegExp;t.exports=n((function(){var t=o(".","s");return!(t.dotAll&&t.test("\n")&&"s"===t.flags)}))},6422:function(t,e,r){"use strict";var n=r(3689),o=r(9037).RegExp;t.exports=n((function(){var t=o("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")}))},4684:function(t,e,r){"use strict";var n=r(981),o=TypeError;t.exports=function(t){if(n(t))throw new o("Can't call method on "+t);return t}},517:function(t,e,r){"use strict";var n=r(9037),o=r(7697),i=Object.getOwnPropertyDescriptor;t.exports=function(t){if(!o)return n[t];var e=i(n,t);return e&&e.value}},4241:function(t,e,r){"use strict";var n=r(6058),o=r(2148),i=r(4201),s=r(7697),a=i("species");t.exports=function(t){var e=n(t);s&&e&&!e[a]&&o(e,a,{configurable:!0,get:function(){return this}})}},5997:function(t,e,r){"use strict";var n=r(2560).f,o=r(6812),i=r(4201)("toStringTag");t.exports=function(t,e,r){t&&!r&&(t=t.prototype),t&&!o(t,i)&&n(t,i,{configurable:!0,value:e})}},2713:function(t,e,r){"use strict";var n=r(3430),o=r(4630),i=n("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},4091:function(t,e,r){"use strict";var n=r(3931),o=r(9037),i=r(5014),s="__core-js_shared__",a=t.exports=o[s]||i(s,{});(a.versions||(a.versions=[])).push({version:"3.36.1",mode:n?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.36.1/LICENSE",source:"https://github.com/zloirock/core-js"})},3430:function(t,e,r){"use strict";var n=r(4091);t.exports=function(t,e){return n[t]||(n[t]=e||{})}},730:function(t,e,r){"use strict";var n=r(8844),o=r(8700),i=r(4327),s=r(4684),a=n("".charAt),c=n("".charCodeAt),u=n("".slice),f=function(t){return function(e,r){var n,f,l=i(s(e)),p=o(r),h=l.length;return p<0||p>=h?t?"":void 0:(n=c(l,p))<55296||n>56319||p+1===h||(f=c(l,p+1))<56320||f>57343?t?a(l,p):n:t?u(l,p,p+2):f-56320+(n-55296<<10)+65536}};t.exports={codeAt:f(!1),charAt:f(!0)}},6430:function(t,e,r){"use strict";var n=r(8844),o=2147483647,i=/[^\0-\u007E]/,s=/[.\u3002\uFF0E\uFF61]/g,a="Overflow: input needs wider integers to process",c=RangeError,u=n(s.exec),f=Math.floor,l=String.fromCharCode,p=n("".charCodeAt),h=n([].join),d=n([].push),v=n("".replace),y=n("".split),g=n("".toLowerCase),m=function(t){return t+22+75*(t<26)},b=function(t,e,r){var n=0;for(t=r?f(t/700):t>>1,t+=f(t/e);t>455;)t=f(t/35),n+=36;return f(n+36*t/(t+38))},w=function(t){var e=[];t=function(t){for(var e=[],r=0,n=t.length;r<n;){var o=p(t,r++);if(o>=55296&&o<=56319&&r<n){var i=p(t,r++);56320==(64512&i)?d(e,((1023&o)<<10)+(1023&i)+65536):(d(e,o),r--)}else d(e,o)}return e}(t);var r,n,i=t.length,s=128,u=0,v=72;for(r=0;r<t.length;r++)(n=t[r])<128&&d(e,l(n));var y=e.length,g=y;for(y&&d(e,"-");g<i;){var w=o;for(r=0;r<t.length;r++)(n=t[r])>=s&&n<w&&(w=n);var x=g+1;if(w-s>f((o-u)/x))throw new c(a);for(u+=(w-s)*x,s=w,r=0;r<t.length;r++){if((n=t[r])<s&&++u>o)throw new c(a);if(n===s){for(var S=u,k=36;;){var _=k<=v?1:k>=v+26?26:k-v;if(S<_)break;var E=S-_,O=36-_;d(e,l(m(_+E%O))),S=f(E/O),k+=36}d(e,l(m(S))),v=b(u,x,g===y),u=0,g++}}u++,s++}return h(e,"")};t.exports=function(t){var e,r,n=[],o=y(v(g(t),s,"."),".");for(e=0;e<o.length;e++)r=o[e],d(n,u(i,r)?"xn--"+w(r):r);return h(n,".")}},5984:function(t,e,r){"use strict";var n=r(1236).PROPER,o=r(3689),i=r(6350);t.exports=function(t){return o((function(){return!!i[t]()||"​᠎"!=="​᠎"[t]()||n&&i[t].name!==t}))}},1435:function(t,e,r){"use strict";var n=r(8844),o=r(4684),i=r(4327),s=r(6350),a=n("".replace),c=RegExp("^["+s+"]+"),u=RegExp("(^|[^"+s+"])["+s+"]+$"),f=function(t){return function(e){var r=i(o(e));return 1&t&&(r=a(r,c,"")),2&t&&(r=a(r,u,"$1")),r}};t.exports={start:f(1),end:f(2),trim:f(3)}},146:function(t,e,r){"use strict";var n=r(3615),o=r(3689),i=r(9037).String;t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol("symbol detection");return!i(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},3032:function(t,e,r){"use strict";var n=r(2615),o=r(6058),i=r(4201),s=r(1880);t.exports=function(){var t=o("Symbol"),e=t&&t.prototype,r=e&&e.valueOf,a=i("toPrimitive");e&&!e[a]&&s(e,a,(function(t){return n(r,this)}),{arity:1})}},6549:function(t,e,r){"use strict";var n=r(146);t.exports=n&&!!Symbol.for&&!!Symbol.keyFor},7578:function(t,e,r){"use strict";var n=r(8700),o=Math.max,i=Math.min;t.exports=function(t,e){var r=n(t);return r<0?o(r+e,0):i(r,e)}},5290:function(t,e,r){"use strict";var n=r(4413),o=r(4684);t.exports=function(t){return n(o(t))}},8700:function(t,e,r){"use strict";var n=r(8828);t.exports=function(t){var e=+t;return e!=e||0===e?0:n(e)}},3126:function(t,e,r){"use strict";var n=r(8700),o=Math.min;t.exports=function(t){var e=n(t);return e>0?o(e,9007199254740991):0}},690:function(t,e,r){"use strict";var n=r(4684),o=Object;t.exports=function(t){return o(n(t))}},8732:function(t,e,r){"use strict";var n=r(2615),o=r(8999),i=r(734),s=r(4849),a=r(5899),c=r(4201),u=TypeError,f=c("toPrimitive");t.exports=function(t,e){if(!o(t)||i(t))return t;var r,c=s(t,f);if(c){if(void 0===e&&(e="default"),r=n(c,t,e),!o(r)||i(r))return r;throw new u("Can't convert object to primitive value")}return void 0===e&&(e="number"),a(t,e)}},8360:function(t,e,r){"use strict";var n=r(8732),o=r(734);t.exports=function(t){var e=n(t,"string");return o(e)?e:e+""}},3043:function(t,e,r){"use strict";var n={};n[r(4201)("toStringTag")]="z",t.exports="[object z]"===String(n)},4327:function(t,e,r){"use strict";var n=r(926),o=String;t.exports=function(t){if("Symbol"===n(t))throw new TypeError("Cannot convert a Symbol value to a string");return o(t)}},3691:function(t){"use strict";var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},4630:function(t,e,r){"use strict";var n=r(8844),o=0,i=Math.random(),s=n(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+s(++o+i,36)}},6837:function(t,e,r){"use strict";var n=r(3689),o=r(4201),i=r(7697),s=r(3931),a=o("iterator");t.exports=!n((function(){var t=new URL("b?a=1&b=2&c=3","http://a"),e=t.searchParams,r=new URLSearchParams("a=1&a=2&b=3"),n="";return t.pathname="c%20d",e.forEach((function(t,r){e.delete("b"),n+=r+t})),r.delete("a",2),r.delete("b",void 0),s&&(!t.toJSON||!r.has("a",1)||r.has("a",2)||!r.has("a",void 0)||r.has("b"))||!e.size&&(s||!i)||!e.sort||"http://a/c%20d?a=1&c=3"!==t.href||"3"!==e.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!e[a]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host}))},9525:function(t,e,r){"use strict";var n=r(146);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},5648:function(t,e,r){"use strict";var n=r(7697),o=r(3689);t.exports=n&&o((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},1500:function(t){"use strict";var e=TypeError;t.exports=function(t,r){if(t<r)throw new e("Not enough arguments");return t}},9834:function(t,e,r){"use strict";var n=r(9037),o=r(9985),i=n.WeakMap;t.exports=o(i)&&/native code/.test(String(i))},5405:function(t,e,r){"use strict";var n=r(496),o=r(6812),i=r(6145),s=r(2560).f;t.exports=function(t){var e=n.Symbol||(n.Symbol={});o(e,t)||s(e,t,{value:i.f(t)})}},6145:function(t,e,r){"use strict";var n=r(4201);e.f=n},4201:function(t,e,r){"use strict";var n=r(9037),o=r(3430),i=r(6812),s=r(4630),a=r(146),c=r(9525),u=n.Symbol,f=o("wks"),l=c?u.for||u:u&&u.withoutSetter||s;t.exports=function(t){return i(f,t)||(f[t]=a&&i(u,t)?u[t]:l("Symbol."+t)),f[t]}},6350:function(t){"use strict";t.exports="\t\n\v\f\r                　\u2028\u2029\ufeff"},4338:function(t,e,r){"use strict";var n=r(9989),o=r(3689),i=r(2297),s=r(8999),a=r(690),c=r(6310),u=r(5565),f=r(6522),l=r(7120),p=r(9042),h=r(4201),d=r(3615),v=h("isConcatSpreadable"),y=d>=51||!o((function(){var t=[];return t[v]=!1,t.concat()[0]!==t})),g=function(t){if(!s(t))return!1;var e=t[v];return void 0!==e?!!e:i(t)};n({target:"Array",proto:!0,arity:1,forced:!y||!p("concat")},{concat:function(t){var e,r,n,o,i,s=a(this),p=l(s,0),h=0;for(e=-1,n=arguments.length;e<n;e++)if(g(i=-1===e?s:arguments[e]))for(o=c(i),u(h+o),r=0;r<o;r++,h++)r in i&&f(p,h,i[r]);else u(h+1),f(p,h++,i);return p.length=h,p}})},5728:function(t,e,r){"use strict";var n=r(9989),o=r(2960).find,i=r(7370),s="find",a=!0;s in[]&&Array(1)[s]((function(){a=!1})),n({target:"Array",proto:!0,forced:a},{find:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),i(s)},7049:function(t,e,r){"use strict";var n=r(9989),o=r(1055);n({target:"Array",stat:!0,forced:!r(6431)((function(t){Array.from(t)}))},{from:o})},6801:function(t,e,r){"use strict";var n=r(9989),o=r(4328).includes,i=r(3689),s=r(7370);n({target:"Array",proto:!0,forced:i((function(){return!Array(1).includes()}))},{includes:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),s("includes")},752:function(t,e,r){"use strict";var n=r(5290),o=r(7370),i=r(9478),s=r(618),a=r(2560).f,c=r(1934),u=r(7807),f=r(3931),l=r(7697),p="Array Iterator",h=s.set,d=s.getterFor(p);t.exports=c(Array,"Array",(function(t,e){h(this,{type:p,target:n(t),index:0,kind:e})}),(function(){var t=d(this),e=t.target,r=t.index++;if(!e||r>=e.length)return t.target=void 0,u(void 0,!0);switch(t.kind){case"keys":return u(r,!1);case"values":return u(e[r],!1)}return u([r,e[r]],!1)}),"values");var v=i.Arguments=i.Array;if(o("keys"),o("values"),o("entries"),!f&&l&&"values"!==v.name)try{a(v,"name",{value:"values"})}catch(t){}},6203:function(t,e,r){"use strict";var n=r(9989),o=r(8844),i=r(4413),s=r(5290),a=r(6834),c=o([].join);n({target:"Array",proto:!0,forced:i!==Object||!a("join",",")},{join:function(t){return c(s(this),void 0===t?",":t)}})},886:function(t,e,r){"use strict";var n=r(9989),o=r(2960).map;n({target:"Array",proto:!0,forced:!r(9042)("map")},{map:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},9730:function(t,e,r){"use strict";var n=r(9989),o=r(2297),i=r(9429),s=r(8999),a=r(7578),c=r(6310),u=r(5290),f=r(6522),l=r(4201),p=r(9042),h=r(6004),d=p("slice"),v=l("species"),y=Array,g=Math.max;n({target:"Array",proto:!0,forced:!d},{slice:function(t,e){var r,n,l,p=u(this),d=c(p),m=a(t,d),b=a(void 0===e?d:e,d);if(o(p)&&(r=p.constructor,(i(r)&&(r===y||o(r.prototype))||s(r)&&null===(r=r[v]))&&(r=void 0),r===y||void 0===r))return h(p,m,b);for(n=new(void 0===r?y:r)(g(b-m,0)),l=0;m<b;m++,l++)m in p&&f(n,l,p[m]);return n.length=l,n}})},4284:function(t,e,r){"use strict";var n=r(7697),o=r(1236).EXISTS,i=r(8844),s=r(2148),a=Function.prototype,c=i(a.toString),u=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,f=i(u.exec);n&&!o&&s(a,"name",{configurable:!0,get:function(){try{return f(u,c(this))[1]}catch(t){return""}}})},8324:function(t,e,r){"use strict";var n=r(9989),o=r(6058),i=r(1735),s=r(2615),a=r(8844),c=r(3689),u=r(9985),f=r(734),l=r(6004),p=r(2643),h=r(146),d=String,v=o("JSON","stringify"),y=a(/./.exec),g=a("".charAt),m=a("".charCodeAt),b=a("".replace),w=a(1..toString),x=/[\uD800-\uDFFF]/g,S=/^[\uD800-\uDBFF]$/,k=/^[\uDC00-\uDFFF]$/,_=!h||c((function(){var t=o("Symbol")("stringify detection");return"[null]"!==v([t])||"{}"!==v({a:t})||"{}"!==v(Object(t))})),E=c((function(){return'"\\udf06\\ud834"'!==v("\udf06\ud834")||'"\\udead"'!==v("\udead")})),O=function(t,e){var r=l(arguments),n=p(e);if(u(n)||void 0!==t&&!f(t))return r[1]=function(t,e){if(u(n)&&(e=s(n,this,d(t),e)),!f(e))return e},i(v,null,r)},A=function(t,e,r){var n=g(r,e-1),o=g(r,e+1);return y(S,t)&&!y(k,o)||y(k,t)&&!y(S,n)?"\\u"+w(m(t,0),16):t};v&&n({target:"JSON",stat:!0,arity:3,forced:_||E},{stringify:function(t,e,r){var n=l(arguments),o=i(_?O:v,null,n);return E&&"string"==typeof o?b(o,x,A):o}})},9322:function(t,e,r){"use strict";r(319)("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),r(800))},6646:function(t,e,r){"use strict";r(9322)},9434:function(t,e,r){"use strict";var n=r(9989),o=r(146),i=r(3689),s=r(7518),a=r(690);n({target:"Object",stat:!0,forced:!o||i((function(){s.f(1)}))},{getOwnPropertySymbols:function(t){var e=s.f;return e?e(a(t)):[]}})},228:function(t,e,r){"use strict";var n=r(3043),o=r(1880),i=r(5073);n||o(Object.prototype,"toString",i,{unsafe:!0})},2003:function(t,e,r){"use strict";var n=r(7697),o=r(9037),i=r(8844),s=r(5266),a=r(3457),c=r(5773),u=r(5391),f=r(2741).f,l=r(3622),p=r(1245),h=r(4327),d=r(3477),v=r(7901),y=r(8055),g=r(1880),m=r(3689),b=r(6812),w=r(618).enforce,x=r(4241),S=r(4201),k=r(2100),_=r(6422),E=S("match"),O=o.RegExp,A=O.prototype,P=o.SyntaxError,R=i(A.exec),T=i("".charAt),j=i("".replace),I=i("".indexOf),L=i("".slice),C=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,U=/a/g,B=/a/g,D=new O(U)!==U,N=v.MISSED_STICKY,F=v.UNSUPPORTED_Y,M=n&&(!D||N||k||_||m((function(){return B[E]=!1,O(U)!==U||O(B)===B||"/a/i"!==String(O(U,"i"))})));if(s("RegExp",M)){for(var H=function(t,e){var r,n,o,i,s,f,v=l(A,this),y=p(t),g=void 0===e,m=[],x=t;if(!v&&y&&g&&t.constructor===H)return t;if((y||l(A,t))&&(t=t.source,g&&(e=d(x))),t=void 0===t?"":h(t),e=void 0===e?"":h(e),x=t,k&&"dotAll"in U&&(n=!!e&&I(e,"s")>-1)&&(e=j(e,/s/g,"")),r=e,N&&"sticky"in U&&(o=!!e&&I(e,"y")>-1)&&F&&(e=j(e,/y/g,"")),_&&(i=function(t){for(var e,r=t.length,n=0,o="",i=[],s=u(null),a=!1,c=!1,f=0,l="";n<=r;n++){if("\\"===(e=T(t,n)))e+=T(t,++n);else if("]"===e)a=!1;else if(!a)switch(!0){case"["===e:a=!0;break;case"("===e:R(C,L(t,n+1))&&(n+=2,c=!0),o+=e,f++;continue;case">"===e&&c:if(""===l||b(s,l))throw new P("Invalid capture group name");s[l]=!0,i[i.length]=[l,f],c=!1,l="";continue}c?l+=e:o+=e}return[o,i]}(t),t=i[0],m=i[1]),s=a(O(t,e),v?this:A,H),(n||o||m.length)&&(f=w(s),n&&(f.dotAll=!0,f.raw=H(function(t){for(var e,r=t.length,n=0,o="",i=!1;n<=r;n++)"\\"!==(e=T(t,n))?i||"."!==e?("["===e?i=!0:"]"===e&&(i=!1),o+=e):o+="[\\s\\S]":o+=e+T(t,++n);return o}(t),r)),o&&(f.sticky=!0),m.length&&(f.groups=m)),t!==x)try{c(s,"source",""===x?"(?:)":x)}catch(t){}return s},q=f(O),z=0;q.length>z;)y(H,O,q[z++]);A.constructor=H,H.prototype=A,g(o,"RegExp",H,{constructor:!0})}x("RegExp")},4043:function(t,e,r){"use strict";var n=r(9989),o=r(6308);n({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},2826:function(t,e,r){"use strict";var n=r(1236).PROPER,o=r(1880),i=r(5027),s=r(4327),a=r(3689),c=r(3477),u="toString",f=RegExp.prototype,l=f[u],p=a((function(){return"/a/b"!==l.call({source:"a",flags:"b"})})),h=n&&l.name!==u;(p||h)&&o(f,u,(function(){var t=i(this);return"/"+s(t.source)+"/"+s(c(t))}),{unsafe:!0})},3843:function(t,e,r){"use strict";var n=r(9989),o=r(8844),i=r(2124),s=r(4684),a=r(4327),c=r(7413),u=o("".indexOf);n({target:"String",proto:!0,forced:!c("includes")},{includes:function(t){return!!~u(a(s(this)),a(i(t)),arguments.length>1?arguments[1]:void 0)}})},1694:function(t,e,r){"use strict";var n=r(730).charAt,o=r(4327),i=r(618),s=r(1934),a=r(7807),c="String Iterator",u=i.set,f=i.getterFor(c);s(String,"String",(function(t){u(this,{type:c,string:o(t),index:0})}),(function(){var t,e=f(this),r=e.string,o=e.index;return o>=r.length?a(void 0,!0):(t=n(r,o),e.index+=t.length,a(t,!1))}))},2462:function(t,e,r){"use strict";var n=r(2615),o=r(8678),i=r(5027),s=r(981),a=r(3126),c=r(4327),u=r(4684),f=r(4849),l=r(1514),p=r(6100);o("match",(function(t,e,r){return[function(e){var r=u(this),o=s(e)?void 0:f(e,t);return o?n(o,e,r):new RegExp(e)[t](c(r))},function(t){var n=i(this),o=c(t),s=r(e,n,o);if(s.done)return s.value;if(!n.global)return p(n,o);var u=n.unicode;n.lastIndex=0;for(var f,h=[],d=0;null!==(f=p(n,o));){var v=c(f[0]);h[d]=v,""===v&&(n.lastIndex=l(o,a(n.lastIndex),u)),d++}return 0===d?null:h}]}))},7267:function(t,e,r){"use strict";var n=r(1735),o=r(2615),i=r(8844),s=r(8678),a=r(3689),c=r(5027),u=r(9985),f=r(981),l=r(8700),p=r(3126),h=r(4327),d=r(4684),v=r(1514),y=r(4849),g=r(7017),m=r(6100),b=r(4201)("replace"),w=Math.max,x=Math.min,S=i([].concat),k=i([].push),_=i("".indexOf),E=i("".slice),O="$0"==="a".replace(/./,"$0"),A=!!/./[b]&&""===/./[b]("a","$0");s("replace",(function(t,e,r){var i=A?"$":"$0";return[function(t,r){var n=d(this),i=f(t)?void 0:y(t,b);return i?o(i,t,n,r):o(e,h(n),t,r)},function(t,o){var s=c(this),a=h(t);if("string"==typeof o&&-1===_(o,i)&&-1===_(o,"$<")){var f=r(e,s,a,o);if(f.done)return f.value}var d=u(o);d||(o=h(o));var y,b=s.global;b&&(y=s.unicode,s.lastIndex=0);for(var O,A=[];null!==(O=m(s,a))&&(k(A,O),b);){""===h(O[0])&&(s.lastIndex=v(a,p(s.lastIndex),y))}for(var P,R="",T=0,j=0;j<A.length;j++){for(var I,L=h((O=A[j])[0]),C=w(x(l(O.index),a.length),0),U=[],B=1;B<O.length;B++)k(U,void 0===(P=O[B])?P:String(P));var D=O.groups;if(d){var N=S([L],U,C,a);void 0!==D&&k(N,D),I=h(n(o,void 0,N))}else I=g(L,a,C,U,D,o);C>=T&&(R+=E(a,T,C)+I,T=C+L.length)}return R+E(a,T)}]}),!!a((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!O||A)},8436:function(t,e,r){"use strict";var n=r(9989),o=r(1435).trim;n({target:"String",proto:!0,forced:r(5984)("trim")},{trim:function(){return o(this)}})},7855:function(t,e,r){"use strict";var n=r(9989),o=r(9037),i=r(2615),s=r(8844),a=r(3931),c=r(7697),u=r(146),f=r(3689),l=r(6812),p=r(3622),h=r(5027),d=r(5290),v=r(8360),y=r(4327),g=r(5684),m=r(5391),b=r(300),w=r(2741),x=r(6062),S=r(7518),k=r(2474),_=r(2560),E=r(8920),O=r(9556),A=r(1880),P=r(2148),R=r(3430),T=r(2713),j=r(7248),I=r(4630),L=r(4201),C=r(6145),U=r(5405),B=r(3032),D=r(5997),N=r(618),F=r(2960).forEach,M=T("hidden"),H="Symbol",q="prototype",z=N.set,$=N.getterFor(H),G=Object[q],V=o.Symbol,W=V&&V[q],X=o.RangeError,Y=o.TypeError,J=o.QObject,K=k.f,Q=_.f,Z=x.f,tt=O.f,et=s([].push),rt=R("symbols"),nt=R("op-symbols"),ot=R("wks"),it=!J||!J[q]||!J[q].findChild,st=function(t,e,r){var n=K(G,e);n&&delete G[e],Q(t,e,r),n&&t!==G&&Q(G,e,n)},at=c&&f((function(){return 7!==m(Q({},"a",{get:function(){return Q(this,"a",{value:7}).a}})).a}))?st:Q,ct=function(t,e){var r=rt[t]=m(W);return z(r,{type:H,tag:t,description:e}),c||(r.description=e),r},ut=function(t,e,r){t===G&&ut(nt,e,r),h(t);var n=v(e);return h(r),l(rt,n)?(r.enumerable?(l(t,M)&&t[M][n]&&(t[M][n]=!1),r=m(r,{enumerable:g(0,!1)})):(l(t,M)||Q(t,M,g(1,m(null))),t[M][n]=!0),at(t,n,r)):Q(t,n,r)},ft=function(t,e){h(t);var r=d(e),n=b(r).concat(dt(r));return F(n,(function(e){c&&!i(lt,r,e)||ut(t,e,r[e])})),t},lt=function(t){var e=v(t),r=i(tt,this,e);return!(this===G&&l(rt,e)&&!l(nt,e))&&(!(r||!l(this,e)||!l(rt,e)||l(this,M)&&this[M][e])||r)},pt=function(t,e){var r=d(t),n=v(e);if(r!==G||!l(rt,n)||l(nt,n)){var o=K(r,n);return!o||!l(rt,n)||l(r,M)&&r[M][n]||(o.enumerable=!0),o}},ht=function(t){var e=Z(d(t)),r=[];return F(e,(function(t){l(rt,t)||l(j,t)||et(r,t)})),r},dt=function(t){var e=t===G,r=Z(e?nt:d(t)),n=[];return F(r,(function(t){!l(rt,t)||e&&!l(G,t)||et(n,rt[t])})),n};u||(V=function(){if(p(W,this))throw new Y("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?y(arguments[0]):void 0,e=I(t),r=function(t){var n=void 0===this?o:this;n===G&&i(r,nt,t),l(n,M)&&l(n[M],e)&&(n[M][e]=!1);var s=g(1,t);try{at(n,e,s)}catch(t){if(!(t instanceof X))throw t;st(n,e,s)}};return c&&it&&at(G,e,{configurable:!0,set:r}),ct(e,t)},A(W=V[q],"toString",(function(){return $(this).tag})),A(V,"withoutSetter",(function(t){return ct(I(t),t)})),O.f=lt,_.f=ut,E.f=ft,k.f=pt,w.f=x.f=ht,S.f=dt,C.f=function(t){return ct(L(t),t)},c&&(P(W,"description",{configurable:!0,get:function(){return $(this).description}}),a||A(G,"propertyIsEnumerable",lt,{unsafe:!0}))),n({global:!0,constructor:!0,wrap:!0,forced:!u,sham:!u},{Symbol:V}),F(b(ot),(function(t){U(t)})),n({target:H,stat:!0,forced:!u},{useSetter:function(){it=!0},useSimple:function(){it=!1}}),n({target:"Object",stat:!0,forced:!u,sham:!c},{create:function(t,e){return void 0===e?m(t):ft(m(t),e)},defineProperty:ut,defineProperties:ft,getOwnPropertyDescriptor:pt}),n({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:ht}),B(),D(V,H),j[M]=!0},6544:function(t,e,r){"use strict";var n=r(9989),o=r(7697),i=r(9037),s=r(8844),a=r(6812),c=r(9985),u=r(3622),f=r(4327),l=r(2148),p=r(8758),h=i.Symbol,d=h&&h.prototype;if(o&&c(h)&&(!("description"in d)||void 0!==h().description)){var v={},y=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:f(arguments[0]),e=u(d,this)?new h(t):void 0===t?h():h(t);return""===t&&(v[e]=!0),e};p(y,h),y.prototype=d,d.constructor=y;var g="Symbol(description detection)"===String(h("description detection")),m=s(d.valueOf),b=s(d.toString),w=/^Symbol\((.*)\)[^)]+$/,x=s("".replace),S=s("".slice);l(d,"description",{configurable:!0,get:function(){var t=m(this);if(a(v,t))return"";var e=b(t),r=g?S(e,7,-1):x(e,w,"$1");return""===r?void 0:r}}),n({global:!0,constructor:!0,forced:!0},{Symbol:y})}},3975:function(t,e,r){"use strict";var n=r(9989),o=r(6058),i=r(6812),s=r(4327),a=r(3430),c=r(6549),u=a("string-to-symbol-registry"),f=a("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!c},{for:function(t){var e=s(t);if(i(u,e))return u[e];var r=o("Symbol")(e);return u[e]=r,f[r]=e,r}})},4254:function(t,e,r){"use strict";r(5405)("iterator")},9749:function(t,e,r){"use strict";r(7855),r(3975),r(1445),r(8324),r(9434)},1445:function(t,e,r){"use strict";var n=r(9989),o=r(6812),i=r(734),s=r(3691),a=r(3430),c=r(6549),u=a("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!c},{keyFor:function(t){if(!i(t))throw new TypeError(s(t)+" is not a symbol");if(o(u,t))return u[t]}})},6265:function(t,e,r){"use strict";var n=r(9037),o=r(6338),i=r(3265),s=r(752),a=r(5773),c=r(5997),u=r(4201)("iterator"),f=s.values,l=function(t,e){if(t){if(t[u]!==f)try{a(t,u,f)}catch(e){t[u]=f}if(c(t,e,!0),o[e])for(var r in s)if(t[r]!==s[r])try{a(t,r,s[r])}catch(e){t[r]=s[r]}}};for(var p in o)l(n[p]&&n[p].prototype,p);l(i,"DOMTokenList")},2625:function(t,e,r){"use strict";r(752);var n=r(9989),o=r(9037),i=r(517),s=r(2615),a=r(8844),c=r(7697),u=r(6837),f=r(1880),l=r(2148),p=r(6045),h=r(5997),d=r(974),v=r(618),y=r(767),g=r(9985),m=r(6812),b=r(4071),w=r(926),x=r(5027),S=r(8999),k=r(4327),_=r(5391),E=r(5684),O=r(5185),A=r(1664),P=r(7807),R=r(1500),T=r(4201),j=r(382),I=T("iterator"),L="URLSearchParams",C=L+"Iterator",U=v.set,B=v.getterFor(L),D=v.getterFor(C),N=i("fetch"),F=i("Request"),M=i("Headers"),H=F&&F.prototype,q=M&&M.prototype,z=o.RegExp,$=o.TypeError,G=o.decodeURIComponent,V=o.encodeURIComponent,W=a("".charAt),X=a([].join),Y=a([].push),J=a("".replace),K=a([].shift),Q=a([].splice),Z=a("".split),tt=a("".slice),et=/\+/g,rt=Array(4),nt=function(t){return rt[t-1]||(rt[t-1]=z("((?:%[\\da-f]{2}){"+t+"})","gi"))},ot=function(t){try{return G(t)}catch(e){return t}},it=function(t){var e=J(t,et," "),r=4;try{return G(e)}catch(t){for(;r;)e=J(e,nt(r--),ot);return e}},st=/[!'()~]|%20/g,at={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},ct=function(t){return at[t]},ut=function(t){return J(V(t),st,ct)},ft=d((function(t,e){U(this,{type:C,target:B(t).entries,index:0,kind:e})}),L,(function(){var t=D(this),e=t.target,r=t.index++;if(!e||r>=e.length)return t.target=void 0,P(void 0,!0);var n=e[r];switch(t.kind){case"keys":return P(n.key,!1);case"values":return P(n.value,!1)}return P([n.key,n.value],!1)}),!0),lt=function(t){this.entries=[],this.url=null,void 0!==t&&(S(t)?this.parseObject(t):this.parseQuery("string"==typeof t?"?"===W(t,0)?tt(t,1):t:k(t)))};lt.prototype={type:L,bindURL:function(t){this.url=t,this.update()},parseObject:function(t){var e,r,n,o,i,a,c,u=this.entries,f=A(t);if(f)for(r=(e=O(t,f)).next;!(n=s(r,e)).done;){if(i=(o=O(x(n.value))).next,(a=s(i,o)).done||(c=s(i,o)).done||!s(i,o).done)throw new $("Expected sequence with length 2");Y(u,{key:k(a.value),value:k(c.value)})}else for(var l in t)m(t,l)&&Y(u,{key:l,value:k(t[l])})},parseQuery:function(t){if(t)for(var e,r,n=this.entries,o=Z(t,"&"),i=0;i<o.length;)(e=o[i++]).length&&(r=Z(e,"="),Y(n,{key:it(K(r)),value:it(X(r,"="))}))},serialize:function(){for(var t,e=this.entries,r=[],n=0;n<e.length;)t=e[n++],Y(r,ut(t.key)+"="+ut(t.value));return X(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var pt=function(){y(this,ht);var t=U(this,new lt(arguments.length>0?arguments[0]:void 0));c||(this.size=t.entries.length)},ht=pt.prototype;if(p(ht,{append:function(t,e){var r=B(this);R(arguments.length,2),Y(r.entries,{key:k(t),value:k(e)}),c||this.length++,r.updateURL()},delete:function(t){for(var e=B(this),r=R(arguments.length,1),n=e.entries,o=k(t),i=r<2?void 0:arguments[1],s=void 0===i?i:k(i),a=0;a<n.length;){var u=n[a];if(u.key!==o||void 0!==s&&u.value!==s)a++;else if(Q(n,a,1),void 0!==s)break}c||(this.size=n.length),e.updateURL()},get:function(t){var e=B(this).entries;R(arguments.length,1);for(var r=k(t),n=0;n<e.length;n++)if(e[n].key===r)return e[n].value;return null},getAll:function(t){var e=B(this).entries;R(arguments.length,1);for(var r=k(t),n=[],o=0;o<e.length;o++)e[o].key===r&&Y(n,e[o].value);return n},has:function(t){for(var e=B(this).entries,r=R(arguments.length,1),n=k(t),o=r<2?void 0:arguments[1],i=void 0===o?o:k(o),s=0;s<e.length;){var a=e[s++];if(a.key===n&&(void 0===i||a.value===i))return!0}return!1},set:function(t,e){var r=B(this);R(arguments.length,1);for(var n,o=r.entries,i=!1,s=k(t),a=k(e),u=0;u<o.length;u++)(n=o[u]).key===s&&(i?Q(o,u--,1):(i=!0,n.value=a));i||Y(o,{key:s,value:a}),c||(this.size=o.length),r.updateURL()},sort:function(){var t=B(this);j(t.entries,(function(t,e){return t.key>e.key?1:-1})),t.updateURL()},forEach:function(t){for(var e,r=B(this).entries,n=b(t,arguments.length>1?arguments[1]:void 0),o=0;o<r.length;)n((e=r[o++]).value,e.key,this)},keys:function(){return new ft(this,"keys")},values:function(){return new ft(this,"values")},entries:function(){return new ft(this,"entries")}},{enumerable:!0}),f(ht,I,ht.entries,{name:"entries"}),f(ht,"toString",(function(){return B(this).serialize()}),{enumerable:!0}),c&&l(ht,"size",{get:function(){return B(this).entries.length},configurable:!0,enumerable:!0}),h(pt,L),n({global:!0,constructor:!0,forced:!u},{URLSearchParams:pt}),!u&&g(M)){var dt=a(q.has),vt=a(q.set),yt=function(t){if(S(t)){var e,r=t.body;if(w(r)===L)return e=t.headers?new M(t.headers):new M,dt(e,"content-type")||vt(e,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),_(t,{body:E(0,k(r)),headers:E(0,e)})}return t};if(g(N)&&n({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(t){return N(t,arguments.length>1?yt(arguments[1]):{})}}),g(F)){var gt=function(t){return y(this,H),new F(t,arguments.length>1?yt(arguments[1]):{})};H.constructor=gt,gt.prototype=H,n({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:gt})}}t.exports={URLSearchParams:pt,getState:B}},9307:function(t,e,r){"use strict";r(2625)},9391:function(t,e,r){"use strict";r(1694);var n,o=r(9989),i=r(7697),s=r(6837),a=r(9037),c=r(4071),u=r(8844),f=r(1880),l=r(2148),p=r(767),h=r(6812),d=r(5394),v=r(1055),y=r(6004),g=r(730).codeAt,m=r(6430),b=r(4327),w=r(5997),x=r(1500),S=r(2625),k=r(618),_=k.set,E=k.getterFor("URL"),O=S.URLSearchParams,A=S.getState,P=a.URL,R=a.TypeError,T=a.parseInt,j=Math.floor,I=Math.pow,L=u("".charAt),C=u(/./.exec),U=u([].join),B=u(1..toString),D=u([].pop),N=u([].push),F=u("".replace),M=u([].shift),H=u("".split),q=u("".slice),z=u("".toLowerCase),$=u([].unshift),G="Invalid scheme",V="Invalid host",W="Invalid port",X=/[a-z]/i,Y=/[\d+-.a-z]/i,J=/\d/,K=/^0x/i,Q=/^[0-7]+$/,Z=/^\d+$/,tt=/^[\da-f]+$/i,et=/[\0\t\n\r #%/:<>?@[\\\]^|]/,rt=/[\0\t\n\r #/:<>?@[\\\]^|]/,nt=/^[\u0000-\u0020]+/,ot=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,it=/[\t\n\r]/g,st=function(t){var e,r,n,o;if("number"==typeof t){for(e=[],r=0;r<4;r++)$(e,t%256),t=j(t/256);return U(e,".")}if("object"==typeof t){for(e="",n=function(t){for(var e=null,r=1,n=null,o=0,i=0;i<8;i++)0!==t[i]?(o>r&&(e=n,r=o),n=null,o=0):(null===n&&(n=i),++o);return o>r&&(e=n,r=o),e}(t),r=0;r<8;r++)o&&0===t[r]||(o&&(o=!1),n===r?(e+=r?":":"::",o=!0):(e+=B(t[r],16),r<7&&(e+=":")));return"["+e+"]"}return t},at={},ct=d({},at,{" ":1,'"':1,"<":1,">":1,"`":1}),ut=d({},ct,{"#":1,"?":1,"{":1,"}":1}),ft=d({},ut,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),lt=function(t,e){var r=g(t,0);return r>32&&r<127&&!h(e,t)?t:encodeURIComponent(t)},pt={ftp:21,file:null,http:80,https:443,ws:80,wss:443},ht=function(t,e){var r;return 2===t.length&&C(X,L(t,0))&&(":"===(r=L(t,1))||!e&&"|"===r)},dt=function(t){var e;return t.length>1&&ht(q(t,0,2))&&(2===t.length||"/"===(e=L(t,2))||"\\"===e||"?"===e||"#"===e)},vt=function(t){return"."===t||"%2e"===z(t)},yt={},gt={},mt={},bt={},wt={},xt={},St={},kt={},_t={},Et={},Ot={},At={},Pt={},Rt={},Tt={},jt={},It={},Lt={},Ct={},Ut={},Bt={},Dt=function(t,e,r){var n,o,i,s=b(t);if(e){if(o=this.parse(s))throw new R(o);this.searchParams=null}else{if(void 0!==r&&(n=new Dt(r,!0)),o=this.parse(s,null,n))throw new R(o);(i=A(new O)).bindURL(this),this.searchParams=i}};Dt.prototype={type:"URL",parse:function(t,e,r){var o,i,s,a,c,u=this,f=e||yt,l=0,p="",d=!1,g=!1,m=!1;for(t=b(t),e||(u.scheme="",u.username="",u.password="",u.host=null,u.port=null,u.path=[],u.query=null,u.fragment=null,u.cannotBeABaseURL=!1,t=F(t,nt,""),t=F(t,ot,"$1")),t=F(t,it,""),o=v(t);l<=o.length;){switch(i=o[l],f){case yt:if(!i||!C(X,i)){if(e)return G;f=mt;continue}p+=z(i),f=gt;break;case gt:if(i&&(C(Y,i)||"+"===i||"-"===i||"."===i))p+=z(i);else{if(":"!==i){if(e)return G;p="",f=mt,l=0;continue}if(e&&(u.isSpecial()!==h(pt,p)||"file"===p&&(u.includesCredentials()||null!==u.port)||"file"===u.scheme&&!u.host))return;if(u.scheme=p,e)return void(u.isSpecial()&&pt[u.scheme]===u.port&&(u.port=null));p="","file"===u.scheme?f=Rt:u.isSpecial()&&r&&r.scheme===u.scheme?f=bt:u.isSpecial()?f=kt:"/"===o[l+1]?(f=wt,l++):(u.cannotBeABaseURL=!0,N(u.path,""),f=Ct)}break;case mt:if(!r||r.cannotBeABaseURL&&"#"!==i)return G;if(r.cannotBeABaseURL&&"#"===i){u.scheme=r.scheme,u.path=y(r.path),u.query=r.query,u.fragment="",u.cannotBeABaseURL=!0,f=Bt;break}f="file"===r.scheme?Rt:xt;continue;case bt:if("/"!==i||"/"!==o[l+1]){f=xt;continue}f=_t,l++;break;case wt:if("/"===i){f=Et;break}f=Lt;continue;case xt:if(u.scheme=r.scheme,i===n)u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=y(r.path),u.query=r.query;else if("/"===i||"\\"===i&&u.isSpecial())f=St;else if("?"===i)u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=y(r.path),u.query="",f=Ut;else{if("#"!==i){u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=y(r.path),u.path.length--,f=Lt;continue}u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=y(r.path),u.query=r.query,u.fragment="",f=Bt}break;case St:if(!u.isSpecial()||"/"!==i&&"\\"!==i){if("/"!==i){u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,f=Lt;continue}f=Et}else f=_t;break;case kt:if(f=_t,"/"!==i||"/"!==L(p,l+1))continue;l++;break;case _t:if("/"!==i&&"\\"!==i){f=Et;continue}break;case Et:if("@"===i){d&&(p="%40"+p),d=!0,s=v(p);for(var w=0;w<s.length;w++){var x=s[w];if(":"!==x||m){var S=lt(x,ft);m?u.password+=S:u.username+=S}else m=!0}p=""}else if(i===n||"/"===i||"?"===i||"#"===i||"\\"===i&&u.isSpecial()){if(d&&""===p)return"Invalid authority";l-=v(p).length+1,p="",f=Ot}else p+=i;break;case Ot:case At:if(e&&"file"===u.scheme){f=jt;continue}if(":"!==i||g){if(i===n||"/"===i||"?"===i||"#"===i||"\\"===i&&u.isSpecial()){if(u.isSpecial()&&""===p)return V;if(e&&""===p&&(u.includesCredentials()||null!==u.port))return;if(a=u.parseHost(p))return a;if(p="",f=It,e)return;continue}"["===i?g=!0:"]"===i&&(g=!1),p+=i}else{if(""===p)return V;if(a=u.parseHost(p))return a;if(p="",f=Pt,e===At)return}break;case Pt:if(!C(J,i)){if(i===n||"/"===i||"?"===i||"#"===i||"\\"===i&&u.isSpecial()||e){if(""!==p){var k=T(p,10);if(k>65535)return W;u.port=u.isSpecial()&&k===pt[u.scheme]?null:k,p=""}if(e)return;f=It;continue}return W}p+=i;break;case Rt:if(u.scheme="file","/"===i||"\\"===i)f=Tt;else{if(!r||"file"!==r.scheme){f=Lt;continue}switch(i){case n:u.host=r.host,u.path=y(r.path),u.query=r.query;break;case"?":u.host=r.host,u.path=y(r.path),u.query="",f=Ut;break;case"#":u.host=r.host,u.path=y(r.path),u.query=r.query,u.fragment="",f=Bt;break;default:dt(U(y(o,l),""))||(u.host=r.host,u.path=y(r.path),u.shortenPath()),f=Lt;continue}}break;case Tt:if("/"===i||"\\"===i){f=jt;break}r&&"file"===r.scheme&&!dt(U(y(o,l),""))&&(ht(r.path[0],!0)?N(u.path,r.path[0]):u.host=r.host),f=Lt;continue;case jt:if(i===n||"/"===i||"\\"===i||"?"===i||"#"===i){if(!e&&ht(p))f=Lt;else if(""===p){if(u.host="",e)return;f=It}else{if(a=u.parseHost(p))return a;if("localhost"===u.host&&(u.host=""),e)return;p="",f=It}continue}p+=i;break;case It:if(u.isSpecial()){if(f=Lt,"/"!==i&&"\\"!==i)continue}else if(e||"?"!==i)if(e||"#"!==i){if(i!==n&&(f=Lt,"/"!==i))continue}else u.fragment="",f=Bt;else u.query="",f=Ut;break;case Lt:if(i===n||"/"===i||"\\"===i&&u.isSpecial()||!e&&("?"===i||"#"===i)){if(".."===(c=z(c=p))||"%2e."===c||".%2e"===c||"%2e%2e"===c?(u.shortenPath(),"/"===i||"\\"===i&&u.isSpecial()||N(u.path,"")):vt(p)?"/"===i||"\\"===i&&u.isSpecial()||N(u.path,""):("file"===u.scheme&&!u.path.length&&ht(p)&&(u.host&&(u.host=""),p=L(p,0)+":"),N(u.path,p)),p="","file"===u.scheme&&(i===n||"?"===i||"#"===i))for(;u.path.length>1&&""===u.path[0];)M(u.path);"?"===i?(u.query="",f=Ut):"#"===i&&(u.fragment="",f=Bt)}else p+=lt(i,ut);break;case Ct:"?"===i?(u.query="",f=Ut):"#"===i?(u.fragment="",f=Bt):i!==n&&(u.path[0]+=lt(i,at));break;case Ut:e||"#"!==i?i!==n&&("'"===i&&u.isSpecial()?u.query+="%27":u.query+="#"===i?"%23":lt(i,at)):(u.fragment="",f=Bt);break;case Bt:i!==n&&(u.fragment+=lt(i,ct))}l++}},parseHost:function(t){var e,r,n;if("["===L(t,0)){if("]"!==L(t,t.length-1))return V;if(e=function(t){var e,r,n,o,i,s,a,c=[0,0,0,0,0,0,0,0],u=0,f=null,l=0,p=function(){return L(t,l)};if(":"===p()){if(":"!==L(t,1))return;l+=2,f=++u}for(;p();){if(8===u)return;if(":"!==p()){for(e=r=0;r<4&&C(tt,p());)e=16*e+T(p(),16),l++,r++;if("."===p()){if(0===r)return;if(l-=r,u>6)return;for(n=0;p();){if(o=null,n>0){if(!("."===p()&&n<4))return;l++}if(!C(J,p()))return;for(;C(J,p());){if(i=T(p(),10),null===o)o=i;else{if(0===o)return;o=10*o+i}if(o>255)return;l++}c[u]=256*c[u]+o,2!=++n&&4!==n||u++}if(4!==n)return;break}if(":"===p()){if(l++,!p())return}else if(p())return;c[u++]=e}else{if(null!==f)return;l++,f=++u}}if(null!==f)for(s=u-f,u=7;0!==u&&s>0;)a=c[u],c[u--]=c[f+s-1],c[f+--s]=a;else if(8!==u)return;return c}(q(t,1,-1)),!e)return V;this.host=e}else if(this.isSpecial()){if(t=m(t),C(et,t))return V;if(e=function(t){var e,r,n,o,i,s,a,c=H(t,".");if(c.length&&""===c[c.length-1]&&c.length--,(e=c.length)>4)return t;for(r=[],n=0;n<e;n++){if(""===(o=c[n]))return t;if(i=10,o.length>1&&"0"===L(o,0)&&(i=C(K,o)?16:8,o=q(o,8===i?1:2)),""===o)s=0;else{if(!C(10===i?Z:8===i?Q:tt,o))return t;s=T(o,i)}N(r,s)}for(n=0;n<e;n++)if(s=r[n],n===e-1){if(s>=I(256,5-e))return null}else if(s>255)return null;for(a=D(r),n=0;n<r.length;n++)a+=r[n]*I(256,3-n);return a}(t),null===e)return V;this.host=e}else{if(C(rt,t))return V;for(e="",r=v(t),n=0;n<r.length;n++)e+=lt(r[n],at);this.host=e}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"===this.scheme},includesCredentials:function(){return""!==this.username||""!==this.password},isSpecial:function(){return h(pt,this.scheme)},shortenPath:function(){var t=this.path,e=t.length;!e||"file"===this.scheme&&1===e&&ht(t[0],!0)||t.length--},serialize:function(){var t=this,e=t.scheme,r=t.username,n=t.password,o=t.host,i=t.port,s=t.path,a=t.query,c=t.fragment,u=e+":";return null!==o?(u+="//",t.includesCredentials()&&(u+=r+(n?":"+n:"")+"@"),u+=st(o),null!==i&&(u+=":"+i)):"file"===e&&(u+="//"),u+=t.cannotBeABaseURL?s[0]:s.length?"/"+U(s,"/"):"",null!==a&&(u+="?"+a),null!==c&&(u+="#"+c),u},setHref:function(t){var e=this.parse(t);if(e)throw new R(e);this.searchParams.update()},getOrigin:function(){var t=this.scheme,e=this.port;if("blob"===t)try{return new Nt(t.path[0]).origin}catch(t){return"null"}return"file"!==t&&this.isSpecial()?t+"://"+st(this.host)+(null!==e?":"+e:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(t){this.parse(b(t)+":",yt)},getUsername:function(){return this.username},setUsername:function(t){var e=v(b(t));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<e.length;r++)this.username+=lt(e[r],ft)}},getPassword:function(){return this.password},setPassword:function(t){var e=v(b(t));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<e.length;r++)this.password+=lt(e[r],ft)}},getHost:function(){var t=this.host,e=this.port;return null===t?"":null===e?st(t):st(t)+":"+e},setHost:function(t){this.cannotBeABaseURL||this.parse(t,Ot)},getHostname:function(){var t=this.host;return null===t?"":st(t)},setHostname:function(t){this.cannotBeABaseURL||this.parse(t,At)},getPort:function(){var t=this.port;return null===t?"":b(t)},setPort:function(t){this.cannotHaveUsernamePasswordPort()||(""===(t=b(t))?this.port=null:this.parse(t,Pt))},getPathname:function(){var t=this.path;return this.cannotBeABaseURL?t[0]:t.length?"/"+U(t,"/"):""},setPathname:function(t){this.cannotBeABaseURL||(this.path=[],this.parse(t,It))},getSearch:function(){var t=this.query;return t?"?"+t:""},setSearch:function(t){""===(t=b(t))?this.query=null:("?"===L(t,0)&&(t=q(t,1)),this.query="",this.parse(t,Ut)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var t=this.fragment;return t?"#"+t:""},setHash:function(t){""!==(t=b(t))?("#"===L(t,0)&&(t=q(t,1)),this.fragment="",this.parse(t,Bt)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var Nt=function(t){var e=p(this,Ft),r=x(arguments.length,1)>1?arguments[1]:void 0,n=_(e,new Dt(t,!1,r));i||(e.href=n.serialize(),e.origin=n.getOrigin(),e.protocol=n.getProtocol(),e.username=n.getUsername(),e.password=n.getPassword(),e.host=n.getHost(),e.hostname=n.getHostname(),e.port=n.getPort(),e.pathname=n.getPathname(),e.search=n.getSearch(),e.searchParams=n.getSearchParams(),e.hash=n.getHash())},Ft=Nt.prototype,Mt=function(t,e){return{get:function(){return E(this)[t]()},set:e&&function(t){return E(this)[e](t)},configurable:!0,enumerable:!0}};if(i&&(l(Ft,"href",Mt("serialize","setHref")),l(Ft,"origin",Mt("getOrigin")),l(Ft,"protocol",Mt("getProtocol","setProtocol")),l(Ft,"username",Mt("getUsername","setUsername")),l(Ft,"password",Mt("getPassword","setPassword")),l(Ft,"host",Mt("getHost","setHost")),l(Ft,"hostname",Mt("getHostname","setHostname")),l(Ft,"port",Mt("getPort","setPort")),l(Ft,"pathname",Mt("getPathname","setPathname")),l(Ft,"search",Mt("getSearch","setSearch")),l(Ft,"searchParams",Mt("getSearchParams")),l(Ft,"hash",Mt("getHash","setHash"))),f(Ft,"toJSON",(function(){return E(this).serialize()}),{enumerable:!0}),f(Ft,"toString",(function(){return E(this).serialize()}),{enumerable:!0}),P){var Ht=P.createObjectURL,qt=P.revokeObjectURL;Ht&&f(Nt,"createObjectURL",c(Ht,P)),qt&&f(Nt,"revokeObjectURL",c(qt,P))}w(Nt,"URL"),o({global:!0,constructor:!0,forced:!s,sham:!i},{URL:Nt})},8730:function(t,e,r){"use strict";r(9391)},9979:function(t,e,r){"use strict";var n=r(9989),o=r(2615);n({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return o(URL.prototype.toString,this)}})}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={exports:{}};return t[n].call(i.exports,i,i.exports,r),i.exports}r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,{a:e}),e},r.d=function(t,e){for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r(7147),r(7810),r(3241),r(4237),Element.prototype.toggleAttribute||(Element.prototype.toggleAttribute=function(t,e){return void 0!==e&&(e=!!e),this.hasAttribute(t)?!!e||(this.removeAttribute(t),!1):!1!==e&&(this.setAttribute(t,""),!0)}),Element.prototype.remove||(Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this)}),function(){"use strict";r(9749),r(6544),r(4254),r(4338),r(5728),r(7049),r(6801),r(752),r(6203),r(886),r(9730),r(4284),r(6646),r(228),r(2003),r(4043),r(2826),r(3843),r(1694),r(2462),r(7267),r(8436),r(6265),r(8730),r(9979),r(9307);function t(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=n(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var o=0,i=function(){};return{s:i,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){c=!0,s=t},f:function(){try{a||null==r.return||r.return()}finally{if(c)throw s}}}}function e(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==r)return;var n,o,i=[],s=!0,a=!1;try{for(r=r.call(t);!(s=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);s=!0);}catch(t){a=!0,o=t}finally{try{s||null==r.return||r.return()}finally{if(a)throw o}}return i}(t,e)||n(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(t,e){if(t){if("string"==typeof t)return o(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(t,e):void 0}}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}if(!function(){try{for(var t="calgaryroughnecks.com".replace(/^www\./,""),e=window.location.hostname.replace(/^www\./,"").split("."),r=0;r<e.length;r++){if(e.slice(r).join(".")===t)return!0}return!1}catch(t){return!1}}())throw new Error("Looks like your website URL has changed. To ensure the proper functioning of your banner, update the registered URL on your CookieYes account (navigate to the Organizations & Sites page (https://app.cookieyes.com/settings/organizations-and-sites) and click the More button associated with your site). Then, reload this page to retry. If the issue persists, please contact us at https://www.cookieyes.com/support.");window.cookieyes=window.cookieyes||{};var i=window.cookieyes;i._ckyGetCookieMap=function(){var t={};try{document.cookie.split(";").map((function(r){var n=e(r.split("="),2),o=n[0],i=n[1];o&&(t[o.trim()]=i)}))}catch(t){}return t},i._ckySetCookie=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:i._ckyStore._rootDomain,o=new Date,s=0===r?0:o.setTime(o.getTime()+24*r*60*60*1e3);document.cookie="".concat(t,"=").concat(e,"; expires=").concat(new Date(s).toUTCString(),"; path=/;domain=").concat(n,"; SameSite=Strict; secure")},i._ckyRandomString=function(t){for(var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r="".concat(e?"0123456789":"","ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghiklmnopqrstuvwxyz"),n=[],o=0;o<t;o++)n.push(r[Math.floor(Math.random()*r.length)]);return e?btoa(n.join("")).replace(/\=+$/,""):n.join("")},i._ckyIsCategoryToBeBlocked=function(t){var e=i._ckyGetFromStore(t);return"no"===e||!e&&i._ckyStore._categories.some((function(e){return e.slug===t&&!e.isNecessary}))},i._ckyEscapeRegex=function(t){return t.replace(/[.*+?^${}()[\]\\]/g,"\\$&")},i._ckyShouldBlockProvider=function(t){var e=i._ckyStore._providersToBlock.find((function(e){var r=e.url;return new RegExp(i._ckyEscapeRegex(r)).test(t)}));return e&&e.categories.some((function(t){return i._ckyIsCategoryToBeBlocked(t)}))},i._ckyStartsWith=function(t,e){return t.slice(0,e.length)===e},i._ckyReplaceAll=function(t,e,r){return t.replace(new RegExp(i._ckyEscapeRegex(e),"g"),r)},i._ckyStore={_backupNodes:[],_categories:[{slug:"necessary",isNecessary:!0,defaultConsent:{gdpr:!0,ccpa:!0},cookies:[{cookieID:"cookieyes-consent",domain:"calgaryroughnecks.com"},{cookieID:"PHPSESSID",domain:"calgaryflames.formstack.com"}]},{slug:"functional",isNecessary:!1,defaultConsent:{gdpr:!1,ccpa:!1},cookies:[]},{slug:"analytics",isNecessary:!1,defaultConsent:{gdpr:!1,ccpa:!1},cookies:[{cookieID:"_gcl_au",domain:".calgaryroughnecks.com"},{cookieID:"_ga",domain:".calgaryroughnecks.com"},{cookieID:"_gid",domain:".calgaryroughnecks.com"},{cookieID:"_gat_UA-*",domain:".calgaryroughnecks.com"},{cookieID:"_ga_*",domain:".calgaryroughnecks.com"},{cookieID:"_fbp",domain:".calgaryroughnecks.com"},{cookieID:"__gads",domain:".calgaryroughnecks.com"}]},{slug:"performance",isNecessary:!1,defaultConsent:{gdpr:!1,ccpa:!1},cookies:[]},{slug:"advertisement",isNecessary:!1,defaultConsent:{gdpr:!1,ccpa:!1},cookies:[{cookieID:"sa-user-id",domain:"tags.srv.stackadapt.com"},{cookieID:"sa-user-id-v2",domain:"tags.srv.stackadapt.com"},{cookieID:"_ttp",domain:".tiktok.com"},{cookieID:"_tt_enable_cookie",domain:".calgaryroughnecks.com"},{cookieID:"test_cookie",domain:".doubleclick.net"},{cookieID:"IDE",domain:".doubleclick.net"},{cookieID:"__gpi",domain:".calgaryroughnecks.com"},{cookieID:"GoogleAdServingTest",domain:"calgaryroughnecks.com"}]},{slug:"other",isNecessary:!1,defaultConsent:{gdpr:!1,ccpa:!1},cookies:[{cookieID:"sa-user-id-v3",domain:"tags.srv.stackadapt.com"}]}],_providersToBlock:[{url:"facebook.net",categories:["analytics"],fullPath:!1},{url:"google.com",categories:["analytics"],fullPath:!1},{url:"stackadapt.com",categories:["advertisement"],fullPath:!1},{url:"tiktok.com|analytics.tiktok.com/i18n/pixel/config.js",categories:["advertisement"],fullPath:!1},{url:"doubleclick.net",categories:["advertisement"],fullPath:!1}],_rootDomain:"",_commonShortCodes:[{key:"cky_audit_table",content:{container:'<ul class="cky-cookie-des-table">[CONTENT]</ul>'},uiTag:"audit-table",type:"data",customTag:"",attributes:{}},{key:"cky_outside_audit_table",content:{container:'<h3>[cky_preference_{{category_slug}}_title]</h3><div class="cky-category-des">[cky_preference_{{category_slug}}_description]</div><div class="cky-table-wrapper"><table class="cky-cookie-audit-table">[CONTENT]</tbody></table></div>'},uiTag:"video-placeholder",type:"data",customTag:"",attributes:{}},{key:"cky_audit_table_empty",content:{container:'<p class="cky-empty-cookies-text">[cky_audit_table_empty_text]</p>'},uiTag:"audit-table",type:"data",customTag:"",attributes:{}}],_resetConsentID:!1,_bannerAttached:!1,_gpcStatus:!!navigator.globalPrivacyControl},i._ckyConsentStore=new Map,i._ckyGetFromStore=function(t){return i._ckyConsentStore.get(t)||""};var s=i._ckyGetCookieMap();i._ckySetInStore=function(r,n){i._ckyConsentStore.set(r,n);var o,s=[],a=t(i._ckyConsentStore);try{for(a.s();!(o=a.n()).done;){var c=e(o.value,2),u=c[0],f=c[1];s.push("".concat(u,":").concat(f))}}catch(t){a.e(t)}finally{a.f()}var l=i._ckyStore._bannerConfig&&i._ckyStore._bannerConfig.scriptExpiry?i._ckyStore._bannerConfig.scriptExpiry:365;i._ckySetCookie("cookieyes-consent",s.join(","),l)};var a=(s["cookieyes-consent"]||"").split(",").reduce((function(t,r){if(!r)return t;var n=e(r.split(":"),2),o=n[0],i=n[1];return t[o]=i,t}),{});["consentid","consent","action"].concat(i._ckyStore._categories.map((function(t){return t.slug}))).map((function(t){return i._ckyConsentStore.set(t,a[t]||"")})),i._ckySendPageViewLog=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";try{var r={consent_session_id:i._ckyGetFromStore("consentid"),banner_id:e},n=new FormData;n.append("key","2fcf3e979a06434d603c20da"),n.append("request_type",t),n.append("event_log_time",Math.round(Date.now()/1e3)),n.append("payload",JSON.stringify(r)),navigator.sendBeacon("https://log.cookieyes.com/api/v1/log",n)}catch(t){console.error(t)}},function(){if(!i._ckyGetFromStore("consentid")){var t=i._ckyRandomString(32);i._ckySetInStore("consentid",t),i._ckyStore._resetConsentID=!0}}(),i._ckySendPageViewLog("banner_load");try{i._ckyCreateElementBackup=document.createElement,document.createElement=function(){for(var t,e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var o=(t=i._ckyCreateElementBackup).call.apply(t,[document].concat(r));if("script"!==o.nodeName.toLowerCase())return o;var s=o.setAttribute.bind(o);return Object.defineProperties(o,{src:{get:function(){return o.getAttribute("src")||""},set:function(t){return f(o,t)&&s("type","javascript/blocked"),s("src",t),!0},configurable:!0},type:{get:function(){return o.getAttribute("type")||""},set:function(t){return t=f(o)?"javascript/blocked":t,s("type",t),!0},configurable:!0}}),o.setAttribute=function(t,e){if("type"===t||"src"===t)return o[t]=e;s(t,e),"data-cookieyes"!==t||f(o)||s("type","text/javascript")},o}}catch(t){console.error(t)}function c(e,r){var n=e.hasAttribute("data-cookieyes")&&e.getAttribute("data-cookieyes");if(n){var o,s=n.replace("cookieyes-",""),a=t(i._ckyStore._categories);try{for(a.s();!(o=a.n()).done;){var c=o.value;if(c.isNecessary&&c.slug===s)return}}catch(t){a.e(t)}finally{a.f()}var u=i._ckyStore._providersToBlock.find((function(t){return t.url===r}));u?u.isOverriden?u.categories.includes(s)||u.categories.push(s):(u.categories=[s],u.isOverriden=!0):i._ckyStore._providersToBlock.push({url:r,categories:[s],fullPath:!1})}}function u(t,e){var r=t.offsetWidth,n=t.offsetHeight;if(0!==r&&0!==n){t.insertAdjacentHTML("beforebegin",'<div class="video-placeholder-normal" data-cky-tag="video-placeholder" id="[UNIQUEID]"><p class="video-placeholder-text-normal" data-cky-tag="placeholder-title">[cky_video_placeholder_title]</p></div>'.replace("[UNIQUEID]",e));var o=document.getElementById(e);o.style.width="".concat(r,"px"),o.style.height="".concat(n,"px");var i=document.querySelector("#".concat(e," .video-placeholder-text-normal"));i.style.display="none";var s,a,c=(s=t.src,!!((a=s.match(/^.*(youtu\.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*/))&&Array.isArray(a)&&a[2]&&11===a[2].length)&&a[2]);c&&(o.classList.replace("video-placeholder-normal","video-placeholder-youtube"),o.style.backgroundImage="linear-gradient(rgba(76,72,72,.7),rgba(76,72,72,.7)),url('https://img.youtube.com/vi/".concat(c,"/maxresdefault.jpg')"),i.classList.replace("video-placeholder-text-normal","video-placeholder-text-youtube"))}}function f(t,e){return t.hasAttribute("data-cookieyes")&&i._ckyIsCategoryToBeBlocked(t.getAttribute("data-cookieyes").replace("cookieyes-",""))||i._ckyShouldBlockProvider(e||t.src)}i._nodeListObserver=new MutationObserver((function(e){var r,n=t(e);try{for(n.s();!(r=n.n()).done;){var o,s=t(r.value.addedNodes);try{var a=function(){var t=o.value;if(!t.src||!t.nodeName||!["script","iframe"].includes(t.nodeName.toLowerCase()))return 0;try{var e=i._ckyStartsWith(t.src,"//")?"".concat(window.location.protocol).concat(t.src):t.src,r=new URL(e),n=r.hostname,s=r.pathname,a="".concat(n).concat(s).replace(/^www./,"");if(c(t,a),!i._ckyShouldBlockProvider(a))return 0;var f=i._ckyRandomString(8,!1);if("iframe"===t.nodeName.toLowerCase())u(t,f),i._ckyStore._bannerAttached&&i._ckySetPlaceHolder&&i._ckySetPlaceHolder(f);else{t.type="javascript/blocked";t.addEventListener("beforescriptexecute",(function e(r){r.preventDefault(),t.removeEventListener("beforescriptexecute",e)}))}var l=document.head.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY?"head":"body";t.remove(),i._ckyStore._backupNodes.push({position:l,node:t.cloneNode(),uniqueID:f})}catch(t){}};for(s.s();!(o=s.n()).done;)a()}catch(t){s.e(t)}finally{s.f()}}}catch(t){n.e(t)}finally{n.f()}})),i._nodeListObserver.observe(document.documentElement,{childList:!0,subtree:!0});var l=document.createElement("script");l.src="https://cdn-cookieyes.com/client_data/2fcf3e979a06434d603c20da/banner.js",l.async=!0,l.id="cookieyes-banner",document.head.appendChild(l)}()}();var loading="https://calgaryroughnecks.com/wp-content/plugins/mpspx/images/loading.gif";var ajax_url='https://calgaryroughnecks.com/wp-admin/admin-ajax.php';var lang="en";var currencySymbol='&#36;';var isadmin=!1;var empty_url="https://calgaryroughnecks.com/wp-content/plugins/mpspx/empty.php";var code_editors=[];
/** Start: shared **/
/**
 * Sends a message to the iframe from the site
 * @param {string} action
 * @param {string|object} msg
 * @param {bool} stringify
 * 
 */
var sendMessage = function (action, msg, stringify = false) {
    if (stringify) {
        msg = JSON.stringify(msg)
    }
    jQuery("#SpektrixIFrame")[0].contentWindow.postMessage(action + ':' + msg, '*');
};

/**
 * Sends a message from the iframe to the site
 * @param {string} action
 * @param {string|object} msg
 * @param {bool} stringify
 * 
 */
var postMessage = function (action, msg, stringify = false) {
    if (stringify) {
        msg = JSON.stringify(msg)
    }
    parent.postMessage(action + ':' + msg, '*');
};

/**
 * Receive a message
 * @param {string} action
 * @param {function} callback
 * @param {bool} parse parse a stringified messageintojson
 * 
 */
var receiveMessage = function (action, callback, parse = false) {
    window.addEventListener("message", function (event) {
        const re = new RegExp("^" + action + ":", "i");
        if (re.test(event.data)) {
            var data = event.data.replace(re, '');
            if (parse) {
                data = JSON.parse(data);
            }
            callback(data);
        }
    }, false);
};
/** End: shared **/

    (function ($) {
        $(function () {


/** Start:  auto-height **/

$.fn.autoHeight = function (e) {
    var max = 0;
    $.each($(this), function () {
	if (max < $(this).outerHeight()) {
	    max = $(this).outerHeight();
	}
    });
    $(this).css({height: max + "px"});
};

$('[mpspx-auto-height]').each(function () {
    $('[mpspx-auto-height-inner]', $(this)).autoHeight();
});

var resizing = false;
$(window).resize(function () {
    if (resizing) {
	return;
    }
    resizing = true;
    $('[mpspx-auto-height]').each(function () {
	$('[mpspx-auto-height-inner]', $(this)).css({
	    height: 'auto',
	    'padding-bottom': 0
	});
	$('[mpspx-auto-height-inner]', $(this)).autoHeight();
    });
//    setTimeout(function () {
//	$('[mpspx-auto-height]').each(function () {
//	    $('.mpspx-griditem-buttonwrap', this).css({
//		position: 'relative'
//	    });
//	    $('[mpspx-auto-height-inner]', $(this)).css({
//		height: 'auto',
//		'padding-bottom': 0
//	    });
//	    $('[mpspx-auto-height-inner]', $(this)).autoHeight();
//	    $.each($('[mpspx-auto-height-inner]', $(this)), function () {
//		if ($('.mpspx-griditem-buttonwrap', this)[0]) {
//		    this.style.paddingBottom = $('.mpspx-griditem-buttonwrap', this).outerHeight() + 'px';
//		    $('.mpspx-griditem-buttonwrap', this)[0].style.position = 'absolute';
//		    $('.mpspx-griditem-buttonwrap', this)[0].style.bottom = '0';
//		}
//	    });
//	});
//	resizing = false;
//    }, 1000);
});
$(window).resize();
/** End: auto-height **/

/** Start:  site **/
$.fn.serializeObject = function () {
    var o = {};
    var a = this.serializeArray();
    $.each(a, function () {
        if (typeof o[this.name] !== "undefined") {
            if (!o[this.name].push) {
                o[this.name] = [o[this.name]];
            }
            o[this.name].push(this.value || '');
        } else {
            o[this.name] = this.value || '';
        }
    });
    return o;
};

var decodeEntities = (function () {
    // this prevents any overhead from creating the object each time
    var element = document.createElement('div');

    function decodeHTMLEntities(str) {
        if (str && typeof str === 'string') {
            // strip script/html tags
            str = str.replace(/<script[^>]*>([\S\s]*?)<\/script>/gmi, '');
            str = str.replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gmi, '');
            element.innerHTML = str;
            str = element.textContent;
            element.textContent = '';
        }

        return str;
    }

    return decodeHTMLEntities;
})();

$('[data-event]').click(function () {
    $('.event_' + $(this).attr('data-event')).toggleClass('active', '');
});

$('body').click(function () {
    $('.mpspx-event-single-more-dates').removeClass('active');
});

$('.mpspx-event-single-more-dates > a').click(function (e) {
    $('.mpspx-event-single-more-dates').toggleClass('active', '');
    e.stopPropagation();
});


receiveMessage("scrolltop", function (data) {
    $('.iframe_loading').hide();
    $([document.documentElement, document.body]).animate({
        scrollTop: $("#SpektrixIFrame").offset().top - 50
    }, 250);
});

receiveMessage("resize", function (data) {
    $('.iframe_loading').hide();
    var height = data * 1;
    if (height > 100) {
        $('#SpektrixIFrame').css({
            display: 'block',
            height: height + "px"
        });
    }
});

if (!isadmin && !/EventId/.test(location.href) && !/admin.php/.test(location.href) && typeof (apidomain) != "undefined") {
    var cart = new XMLHttpRequest();
    cart.withCredentials = true;
    cart.open("GET", "https://" + apidomain + "/" + clientname + "/api/v3/basket");
    cart.setRequestHeader("Content-Type", "application/json");
    cart.addEventListener("readystatechange", function (patchevent) {
        if (cart.readyState === XMLHttpRequest.DONE) {
            const patchstatus = cart.status;
            if (patchstatus === 0 || (patchstatus >= 200 && patchstatus < 400)) {
                updateBasket(JSON.parse(cart.responseText));
            }
        }
    });
    cart.send();
}

var basketContents = null;
var updateBasket = function (basket) {
    basketContents = basket;
    var cartcount = 0;
    var carttotal = 0;
    carttotal = basket.total;
    cartcount += basket.tickets.length;
    cartcount += basket.donations.length;
    cartcount += basket.merchandiseItems.length;
    cartcount += basket.membershipSubscriptions.length;
    cartcount += basket.giftVouchers.length;

    $('.mpspx-cart-inline-popup-summary, .mpspx-cart-inline-popup-count, .mpspx-cart-inline-popup-total').remove();
    if (cartcount !== 0) {
        $('.mpspx-cart-inline-popup a').append($('<span class="mpspx-cart-inline-popup-count">(' + cartcount + ')</span>'));
        $('.mpspx-cart-inline-popup a').append($('<span class="mpspx-cart-inline-popup-total">' + currencySymbol + carttotal.toFixed(2) + '</span>'));

        $.ajax({
            method: 'post',
            url: ajax_url,
            data: {
                action: 'mpspx_get_basket_contents',
                basket: JSON.stringify(basket),
                url: location.href
            }
        }).always(function (data) {
            if (data && data.basket) {
                $('.mpspx-cart-inline-popup').append($(data.basket));
            }
        });
    }
}


$('#spektrix_newsletter').submit(function (e) {
    var t = $(this);
    var data = $(this).serializeObject();
    var txt = $('[type="submit"]', t).val();
    $('[type="submit"]', t).val("Submitting...");
    $.ajax({
        method: 'post',
        url: $(this).attr("action"),
        data: data
    }).always(function (data) {
        $('[type="submit"]', t).val(txt);
        if (data && data.error) {
            $('#spektrix_newsletter_error').html(data.error);
        } else {
            $('#spektrix_newsletter').html("Thank You for signing up.");
        }
    });
    e.preventDefault();
});


$('.fa-question-circle').click(function (e) {
    $(this).toggleClass('active', '');
    e.stopPropagation();
});

$('body').click(function () {
    $('.fa-question-circle').removeClass('active');
    $('.action-customize-wrapper').removeClass('active');
    if ($('.month-list').hasClass("active")) {
        $('.month-list').toggleClass("active");
        $('.month-select').toggleClass("active");
    }
});

$('.action-functions').click(function (e) {
    $(this).toggleClass('active', '');
    $('.functions-php', $(this).parent()).toggleClass('active', '');
});

receiveMessage("getBasketContents", (data) => {
    //send it back to theiframe
    sendMessage("basketContents", basketContents, 1);
});

receiveMessage('delete-ticket', function (ticket) {
    mpspx_spektrix_delete('basket/tickets?ticketIds=' + ticket.ticketId + '', null, (d) => {

    });
}, 1);

var mpspx_iframe_toggle = function(data,button) {
    var p = button.closest('.mpspx-iframe-state-toggle');
    $('active',p).removeClass('acttive');
    $('.state-'+data.state,p).addClass('acttive');
};
/** End: site **/

/** Start:  panels **/
$('body').on('click', '.mpspx-panel-nav', function (e) {
    var t = $(this);
    if (!t.attr('data-show-panel')) {
        t = t.closest('[data-show-panel]');
    }
    var panel = t.attr('data-show-panel');
    if (!panel) {
        return;
    }
    var wrap = t.closest('.mpspx-panels');
    $('.mpspx-panel.active', wrap).removeClass('active');
    $('[data-panel="' + panel + '"]', wrap).addClass('active');
});
/** End: panels **/

/** Start:  filter **/
var filter_animating = false;
if ($('.mpspx-event-filter-wrapper')[0]) {
    var notfound = $('<div class="mpspx-event-filter-notfound">No Events found that match your filter.</div>');
    notfound.insertAfter($('.mpspx-event-filter-wrapper'));
    notfound.hide();
    var allitems = $('.mpspx-event-griditem-wrapper');
    var event_filter_change = function (e) {
	notfound.hide();
	var items = $('.mpspx-event-griditem-wrapper');
	var selector = ".mpspx-event-griditem-wrapper";
	var genre = $('[name="mpspx-event-filter-genre"]').val();
	var venue = $('[name="mpspx-event-filter-venue"]').val();
	var price = $('[name="mpspx-event-filter-price"]').val();
	var weekday = $('[name="mpspx-event-filter-weekday"]').val();
	var time = $('[name="mpspx-event-filter-time"]').val();
	var keywords = $('[name="mpspx-event-filter-keywords"]').val();
	if (genre) {
	    selector += '[genre="' + genre + '"]';
	}
	if (venue) {
	    selector += '[venue="' + venue + '"]';
	}
	if (weekday) {
	    selector += '[weekday="' + weekday + '"]';
	}
	if (time) {
	    selector += '[time="' + time + '"]';
	}
	if (keywords) {
	    selector += '[keywords*="' + keywords.toLowerCase() + '"]';
	}
	items = $(selector);
	if (price) {
	    price *= 1;
	    var newitems = [];
	    $.each(items, function (index, elm) {
		var lowestPrice = $(elm).attr('price') * 1;
		var push = false;
		if (lowestPrice === 0 && price === 0) {
		    push = true;
		}
		if (lowestPrice < 10 && price === 10) {
		    push = true;
		}
		if (lowestPrice < 25 && price === 25) {
		    push = true;
		}
		if (lowestPrice < 50 && price === 50) {
		    push = true;
		}
		if (lowestPrice < 100 && price === 100) {
		    push = true;
		}
		if (lowestPrice < 99999 && price === 99999) {
		    push = true;
		}
		if (push) {
		    newitems.push(elm);
		}
	    });
	    items = newitems;
	}
	allitems.hide()
	$(items).show();
	if (!items[0]) {
	    notfound.show();
	}
	$(window).resize();
    }
    $('[name="mpspx-event-filter-genre"]').change(event_filter_change);
    $('[name="mpspx-event-filter-venue"]').change(event_filter_change);
    $('[name="mpspx-event-filter-price"]').change(event_filter_change);
    $('[name="mpspx-event-filter-weekday"]').change(event_filter_change);
    $('[name="mpspx-event-filter-time"]').change(event_filter_change);
    $('[name="mpspx-event-filter-keywords"]').keyup(event_filter_change);
}
/** End: filter **/

/** Start:  events **/
var events_page = 1;
$('.mpspx-events-load-more').click(function (e) {
    var button = $(this);
    var button_text = button.html();
    button.html('Loading...');
    e.preventDefault();
    $.ajax({
        method: 'post',
        url: ajax_url,
        data: {
            action: 'mpspx_load_events',
            page: events_page + 1,
            lang: lang
        }
    }).always(function (data) {
        if (typeof data != 'object') {
            alert(data);
        } else if (data && data.success) {
            var list = $('.mpspx-custom-grid-wrapper', button.parent());
            if (data.events) {
                var time = 0;
                $.each(data.events, function (slug, eventhtml) {
                    setTimeout(function () {
                        var griditem = $(eventhtml);
                        griditem.css({
                            opacity: 0
                        });
                        list.append(griditem);
                        griditem.animate({
                            opacity: 1
                        }, {
                            duration: 500,
                            complete: function () {
                                $(window).resize();
                            }
                        });
                    }, time);
                    time += 500;
                });
            }
            events_page++;
        }
        button.html(button_text);
        if (!data.more) {
            button.remove();
        }
    });
});
/** End: events **/

/** Start:  tabs **/
$.each($('.mpspx-tabs-wrapper'), function (tabswrapidx, tabswrap) {
    $.each($('> .mpspx-tabs > li', tabswrap), function (i, v) {
        $(v).click(function (e) {
            if (!/^#/.test($('a', v).attr('href'))) {
                return;
            }
            $('> .mpspx-tabs > li', tabswrap).removeClass('active');
            $('> .mpspx-panel', $(tabswrap).parent()).removeClass('active');
            $(v).addClass('active');
            $($('> .mpspx-panel', $(tabswrap).parent())[i]).addClass('active');

            $.each($('textarea + .CodeMirror:visible'), function () {
                if (this.CodeMirror) {
                    this.CodeMirror.refresh();
                }
            });
            //$.each(code_editors, function () {
            //this.refresh();
            //});
        });
    });
});
var hash = window.location.hash;
if (hash) {
    $('[tab="' + hash + '"]').click();
}
$(window).on('hashchange', function (e) {
    $('[tab="' + window.location.hash + '"]').click();
});
/** End: tabs **/

/** Start:  image-gallery **/

$.each($('.mpspx-image-gallery-wrapper'), function () {
    var wrap = $(this);
    var curidx = 0;
//    debugger;
    $('.mpspx-image-gallery-next', wrap).click(function () {
//	debugger;
	curidx += 1;
	$('[data-index]', wrap).removeClass('active');
	if ($('[data-index="' + curidx + '"]', wrap)[0]) {
	    $('[data-index="' + curidx + '"]', wrap).addClass('active');
	} else {
	    $('[data-index="0"]', wrap).addClass('active');
	    curidx = 0;
	}
    });
    $('.mpspx-image-gallery-prev', wrap).click(function () {
	curidx -= 1;
	$('[data-index]', wrap).removeClass('active');
	if ($('[data-index="' + curidx + '"]', wrap)[0]) {
	    $('[data-index="' + curidx + '"]', wrap).addClass('active');
	} else {
	    curidx = (wrap.attr('data-slides')*1)-1;
	    $('[data-index="' + curidx + '"]', wrap).addClass('active');
	}
    });
    if (wrap.attr('data-autoplay') && wrap.attr('data-delay')) {
	//debugger;
	setInterval(function () {
	    $('.mpspx-image-gallery-next', wrap).click();
	}, wrap.attr('data-delay'));
    }
});
/** End: image-gallery **/

/** Start: mpspx_account **/

var mpspx_open_login = () => {
    var login_modal = $('.mpspx-login-popup-modal');
    var login_popup = $('.mpspx-login-popup');

    $('#main').append(login_modal);
    $('#main').append(login_popup);

    login_modal.addClass('open');
    login_popup.addClass('open').center();

    $('[name="Email"]', login_popup).focus();
};
var mpspx_close_login = () => {
    var login_modal = $('.mpspx-login-popup-modal');
    var login_popup = $('.mpspx-login-popup');

    login_modal.removeClass('open');
    login_popup.removeClass('open');
};
$('body').on('click', '.mpspx-login-popup [data-show-panel]', (e) => {
    $(e.target).closest('.mpspx-login-popup').center();
});

$('body').on('click', '.mpspx-login-link', (e) => {
    mpspx_open_login();
});
$('body').on('click', '.mpspx-login-popup-close', (e) => {
    mpspx_close_login();
});
$('body').on('click', '.mpspx-logout', (e) => {
    mpspx_spektrix_post("customer/deauthenticate");
    $.cookie("mpspx", null, {path: '/'});
    location.reload();
});

$('body').on('keyup', '.mpspx-login-popup', (e) => {
    if (e.keyCode === 13) {
        $('body').trigger($.Event('submit', {target: $('.mpspx-account-login-form', this)[0]}));
    }
});

$('body').on('keyup', '', (e) => {
    if (e.keyCode === 27) {
        $('body').trigger($.Event('click', {target: $('.mpspx-login-popup-close', this)[0]}));
    }
});

//reveal additional address lines
$('body').on('click', '.mpspx-addres-add-line', (e) => {
    var address = $(e.target).closest('.mpspx-account-address');
    var line = $(e.target).attr('data-line') * 1;
    $('[data-line="' + (line) + '"]', address).show();
    $(e.target).remove();
});

//navigation
$('body').on('click', 'li[data-progress],button[data-progress]', (e) => {
    var t = $(e.target);
    if (t.hasClass('mpspx-progress-active')) {
        return;
    }
    $('.mpspx-progress-active').removeClass('mpspx-progress-active');
    $('[data-progress="' + t.attr('data-progress') + '"]').addClass("mpspx-progress-active");
//    $($([document.documentElement, document.body])).stop().animate({
//        scrollTop: $('.mpspx-account-new-form').offset().top
//    }, 250, "linear");
    e.stopPropagation();
});

//submit new account
var mpspx_submitting = false;
var mpspx_account_attach_events;
$.each($('.mpspx-account-new-form'), mpspx_account_attach_events = function (k, v) {
    var t = $(v);
    var shippingform = $('.mpspx-shipping-address', t);
    $('[required]', shippingform).attr('x-required', 'required');
    $('[required]', shippingform).removeAttr('required');
    $('[id*="diffshipping"]', t).change(function (e) {
        e.stopPropagation();
        if (this.checked) {
            $('[x-required]', shippingform).attr('required', 'required');
            shippingform.show();
        } else {
            $('[required]', shippingform).removeAttr('required');
            $('input', shippingform).val("");
            shippingform.hide();
        }
        update_errs();
    });

    if (!$('#blankFrame')[0]) {
        $('body').append('<iframe id="blankFrame" name="blankFrame" src="' + empty_url + '" style="height:0;width:0;"><iframe>');
    }
    t.prop("action", empty_url);
    t.prop("target", "blankFrame");
    t.prop("method", "post");
    t.on('submit', function (e) {
        if (mpspx_submitting) {
            return;
        }
        $('.mpspx-form-error', t).empty();
        t.addClass('submitted');
        var butt = $('.mpspx-account-submit', t);
        var buttext = butt.html();
        butt.html("Creating ...");
        //debugger;
        mpspx_submitting = true;
        var data = t.serializeObject();
        data["action"] = 'mpspx_account_create';
        $.ajax({
            method: 'post',
            url: ajax_url,
            data: data
        }).always(function (data) {
            if (data && data.errors) {
                $.each(data.errors, function (k, v) {
                    $('[name="' + k + '"]+div', t).html(v);
                });
                update_errs();
            } else if (data.success) {
                mpspx_spektrix_post("customer/authenticate", {
                    "username": $('[name="Email"]', t).val(),
                    "password": $('[name="Password"]', t).val()
                }, function (data) {
                    var redirect_to = $('[redirect_to]', t.closest('.mpspx-shortcode-login-wrapper')).attr('redirect_to');
                    if (redirect_to) {
                        if (redirect_to !== "#") {
                            location.href = redirect_to;
                        }
                    } else {
                        location.reload();
                    }
                });
            }
            butt.html(buttext);
            mpspx_submitting = false;
        });
    });

    $('input,select,number,textarea,checkbox', t).blur(function () {
        $('.mpspx-form-error', $(this).parent()).empty();
    });
    $('select,checkbox', t).change(function () {
        $('.mpspx-form-error', $(this).parent()).empty();
    });

    var update_errs = function () {
        $('.mpspx-form-error-num', t).remove();
        $.each($('.mpspx-form-progress-panel[data-progress]', t), function () {
            var prog = $(this).attr('data-progress');
            //var count = $('.submitted [data-progress="' + prog + '"] :required:invalid').length;
            var count = $('.mpspx-form-error:not(:empty)', $(this)).length;
            if (count > 0) {
                $('.mpspx-form-progress [data-progress="' + prog + '"]').append('<div class="mpspx-form-error-num">' + count + '</div>');
            }
        });
    };
    $('input,select,number,textarea,checkbox', t).blur(update_errs);
    $('select,checkbox', t).change(update_errs);

    $('[name="BillingCountry"]', t).change(function () {
        var country = $(this).val();
        $('[name="BillingProv"]', t).empty().append($('<option>Loading...</option>'));
        mpspx_spektrix_get("countries/" + country + "?$expand=administrativeDivisions", function (data) {
            if (data.administrativeDivisions.length === 0) {
                $('.mpspx-account-address-postal-lookup[data-prefix="Billing"]', t).addClass('active');
            } else {
                $('.mpspx-account-address-postal-lookup[data-prefix="Billing"]', t).removeClass('active');
            }
            $('[name="BillingProv"]', t).empty();
            $.each(data.administrativeDivisions, function (k, v) {
                $('[name="BillingProv"]', t).append($('<option value="' + v.isoCode + '">' + v.name + '</option>'));
            });
            if ($('[name="BillingProv"] option', t).length === 0) {
                $('[name="BillingProv"]', t).empty().append($('<option>not found</option>'));
            }
        });
    });

    $('[name="ShippingCountry"]', t).change(function () {
        var country = $(this).val();
        $('[name="ShippingProv"]', t).empty().append($('<option>Loading...</option>'));
        mpspx_spektrix_get("countries/" + country + "?$expand=administrativeDivisions", function (data) {
            if (data.administrativeDivisions.length === 0) {
                $('.mpspx-account-address-postal-lookup[data-prefix="Shipping"]', t).addClass('active');
            } else {
                $('.mpspx-account-address-postal-lookup[data-prefix="Shipping"]', t).removeClass('active');
            }
            $('[name="ShippingProv"]', t).empty();
            $.each(data.administrativeDivisions, function (k, v) {
                $('[name="ShippingProv"]', t).append($('<option value="' + v.isoCode + '">' + v.name + '</option>'));
            });
            if ($('[name="ShippingProv"] option', t).length === 0) {
                $('[name="ShippingProv"]', t).empty().append($('<option>not found</option>'));
            }
        });
    });
});

//Postal look up:
$.each($('.mpspx-account-address-postal-lookup'), function () {
    var wrap = $(this);
    var postal = $('input', wrap);
    postal.focus(function () {
        if (postal.val() !== "") {
            $('.mpspx-form-error', wrap).empty();
        }
    });
    $('button', wrap).click(function () {
        if (postal.val() === "") {
            postal.focus();
            return;
        }
        mpspx_spektrix_get("postcode-lookup?postcode=" + postal.val() + "", function (data) {
            //@todo finish
            //debugger;
        });
    });
});

//login
$(document).on('submit', '.mpspx-account-login-form', function (e) {
    e.preventDefault();
    if (mpspx_submitting) {
        return;
    }
    var t = $(this).closest('form');
    var butt = $('.mpspx-login-submit', t);
    var buttext = butt.html();
    butt.html("Logging in...");
    $('.mpspx-form-error', t).empty();
    t.addClass('submitted');
    mpspx_submitting = true;
    var data = t.serializeObject();
    data["action"] = 'mpspx_account_login';
    $.ajax({
        method: 'post',
        url: ajax_url,
        data: data
    }).always(function (d) {
        if (d && d.errors) {
            $.each(d.errors, function (k, v) {
                $('[name="' + k + '"]+div', t).html(v);
            });
        } else if (d.success) {
            mpspx_spektrix_post("customer/authenticate", JSON.stringify({Email: data.Email, Password: data.Password}), function (response) {
                if (response.id) {
                    $('[name="mpspx-login-submit"]').replaceWith($('<strong>' + d.success + '</strong>'));
                    var redirect_to = $('[redirect_to]', t.closest('.mpspx-shortcode-login-wrapper')).attr('redirect_to');
                    if (redirect_to) {
                        if (redirect_to !== "#") {
                            location.href = redirect_to;
                        }
                    } else {
                        location.reload();
                    }
                } else {

                }
            });
        }
        butt.html(buttext);
        mpspx_submitting = false;
    });
});

//forgot
var forgot_form_msgs = {};
$(document).on('submit', '.mpspx-account-forgot-form', function (e) {
    e.preventDefault();
    if (mpspx_submitting) {
        return;
    }
    $('.mpspx-account-set-expired-row').hide();
    var t = $(this).closest('form');
    var butt = $('.mpspx-forgot-submit', t);
    var buttext = butt.html();
    butt.html("Sending...");
    $('.mpspx-form-error', t).empty();
    t.addClass('submitted');
    mpspx_submitting = true;
    var data = t.serializeObject();
    data["action"] = 'mpspx_account_forgot';
    $.ajax({
        method: 'post',
        url: ajax_url,
        data: data
    }).always(function (d) {
        if (d && d.errors) {
            $.each(d.errors, function (k, v) {
                $('[name="' + k + '"]+div', t).html(v);
            });
        } else if (d.success) {
            forgot_form_msgs = d.forgot_form_msgs;
            sendMessage("forgot-submit", data, true);
            //location.href = '/account/my';
        }
        mpspx_submitting = false;
        butt.html(buttext);
    });

    receiveMessage("forgot-expired", function (data) {
        $('[name="mpspx-forgot-submit"]+div', t).html(v);
    });
});


//change
var change_form_msgs = {};
$(document).on('submit', '.mpspx-account-forgot-set-form', function (e) {
    e.preventDefault();
    if (mpspx_submitting) {
        return;
    }
    $('.mpspx-account-set-expired-row').hide();
    var t = $(this).closest('form');
    var butt = $('.mpspx-change-submit', t);
    var buttext = butt.html();
    butt.html("Sending in...");
    $('.mpspx-form-error', t).empty();
    t.addClass('submitted');
    mpspx_submitting = true;
    var data = t.serializeObject();
    data["action"] = 'mpspx_account_change';
    $.ajax({
        method: 'post',
        url: ajax_url,
        data: data
    }).always(function (d) {
        if (d && d.errors) {
            $.each(d.errors, function (k, v) {
                $('[name="' + k + '"]+div', t).html(v);
            });
        } else if (d.success) {
            change_form_msgs = d.change_form_msgs;
            sendMessage("change-submit", data, true);
            //location.href = '/account/my';
        }
        mpspx_submitting = false;
        butt.html(buttext);
    });
});

$(document).on('submit', '.mpspx-account-forgot-temp-form', function (e) {
    e.preventDefault();
    var t = $(this).closest('form');
    $('.mpspx-form-error', t).empty();
    t.addClass('submitted');
    var data = t.serializeObject();
    sendMessage("temp-submit", data, true);
});



receiveMessage("account-screen", function (data) {
    if (!data || data === "null") {
        data = 'details';
    }
    $('.mpspx-account-menu-item').removeClass('active');
    $('.mpspx-account-menu-item[data-screen="' + data + '"]').addClass('active');
});

receiveMessage("set-password", function (data) {
    $('.mpspx-account-forgot-form').hide();
    $('.mpspx-account-forgot-temp-form').hide();
    $('.mpspx-account-forgot-set-form').css('display', 'flex');
});

receiveMessage("change-success", function (data) {
    $('.mpspx-account-forgot-set-form .mpspx-form-row').hide();
    $('.mpspx-account-forgot-set-form .mpspx-account-set-success-row').css('display', 'flex');
    setTimeout(function () {
        location.href = '/account/my';
    }, 2000);
});

receiveMessage("forgot-expired", function (data) {
    $('.mpspx-account-set-expired-row').css('display', 'flex');
    $('.mpspx-account-forgot-temp-form').css('display', 'flex');
    $('.mpspx-account-forgot-set-form').hide();
    $('.mpspx-account-forgot-form').css('display', 'flex');
    $('#SpektrixIFrame').replaceWith($('<iframe name="SpektrixIFrame" id="SpektrixIFrame" frameborder="0" src="https://' + apidomain + '/' + clientname + '/website/secure/ForgotPassword.aspx?resize=true&wpadmin=true"></iframe>'));
});

receiveMessage("login", function (data) {
    mpspx_submitting = true;
    data["action"] = 'mpspx_account_login';
    $.ajax({
        method: 'post',
        url: ajax_url,
        data: data
    }).always(function (d) {
        sendMessage('loggedin');
        mpspx_submitting = false;
    });
}, 1);

receiveMessage("logout", () => {
    $.ajax({
        method: 'post',
        url: ajax_url,
        data: {
            action: "mpspx_account_logout"
        }
    }).always(function (data) {
        location.reload();
    });
});


/** Emd: mpspx_account **/

/** Start: mpspx_calendar_month **/
var addClendarEvents = function (elms = []) {
    $.each(elms, function (index, elm) {
        $('.nextMonth, .prevMonth', elm).click(function () {
            $(this).addClass('active');
            var month = $(this).attr('month');
            var year = $(this).attr('year');
            var size = $(this).attr('size');
            var event = $(this).attr('event');
            var filter = $(this).attr('filter');
            loadCalendar(month, year, size, event, filter, elm);
            $(window).resize();
        });
        $('.mpspx-calendar-year-event-list-day-close', elm).click(function (e) {
            $('.mpspx-calendar-year-event-list', elm).hide();
            $('.mpspx-calendar-year-day-count', elm).parent().removeClass('active');
            $(window).resize();
        });
        $('.mpspx-calendar-year-day-count', elm).parent().click(function (e) {
            $('.mpspx-calendar-year-event-list', elm).hide()
            $('.mpspx-calendar-year-event-list[day="' + $(this).attr("day") + '"]', elm).show();
            $('.mpspx-calendar-year-day-count', elm).parent().removeClass('active');
            $(this).addClass('active');
            $(window).resize();
        });
    });
};
var loadCalendar = function (month, year, size, event, filter, elm) {
    var data = {
        action: 'mpspx_load_calendar_month',
        month: month,
        year: year,
        size: size,
        event: event,
        lang: lang,
        nav: "show"
    };
    if (filter) {
        filter = decodeEntities(filter);
        filter = JSON.parse(filter);
        $.each(filter, function (k, v) {
            data[k] = v;
        });
    }
    $.ajax({
        method: 'post',
        url: ajax_url,
        data: data,
    }).always(function (data) {
        if (data && data.calendar) {
            var calendar = $(data.calendar);
            $(elm).empty();
            $(elm).append(calendar);
            addClendarEvents($(elm));
        }
    });
};

addClendarEvents($('.mpspx-calendar-year-month-inner, .mpspx-calendar-month-inner'));



var addFlexClendarEvents = function (elms = []) {
    $.each(elms, function (index, elm) {
        $('.nextMonth, .prevMonth', elm).click(function () {
            $(this).addClass('active');
            var month = $(this).attr('month');
            var year = $(this).attr('year');
            var size = $(this).attr('size');
            var event = $(this).attr('event');
            var filter = $(this).attr('filter');
            loadFlexCalendar(month, year, size, event, filter, elm);
            $(window).resize();
        });
        $('.mpspx-day-event-list-close', elm).click(function (e) {
            $('.mpspx-day-list', elm).hide();
            $('.mpspx-day-count', elm).parent().removeClass('active');
            $(window).resize();
        });
        $('.mpspx-day-count', elm).parent().click(function (e) {
            var t = $(this);
            $('.mpspx-day-list').hide();
            if (t.hasClass('active')) {
                t.removeClass('active');
                $('.mpspx-day-list').hide();
                return;
            }
            $('.mpspx-day').removeClass('active');
            t.addClass('active');
            $("html, body").stop().animate({
                scrollTop: $("html, body").scrollTop() + 75
            }, {
                duration: 150,
                complete: function () {
                    $('.mpspx-day-list', elm).show()
                    $('.mpspx-day-event-list', elm).hide()
                    $('.mpspx-day-event-list[day="' + t.attr("day") + '"]', elm).show();
                    $(window).resize();
                }
            });
        });
    });
};
var loadFlexCalendar = function (month, year, size, event, filter, elm) {
    var data = {
        action: 'mpspx_load_calendar_month',
        month: month,
        year: year,
        size: size,
        event: event,
        lang: lang,
        nav: "show"
    };
    if (filter) {
        filter = decodeEntities(filter);
        filter = JSON.parse(filter);
        $.each(filter, function (k, v) {
            data[k] = v;
        });
    }
    $.ajax({
        method: 'post',
        url: ajax_url,
        data: data,
    }).always(function (data) {
        if (data && data.calendar) {
            var calendar = $(data.calendar);
            $(elm).empty();
            $(elm).append(calendar);
            addFlexClendarEvents($(elm));
        }
    });
};

addFlexClendarEvents($('.mpspx-month'));
/** Emd: mpspx_calendar_month **/

/** Start: mpspx_event_choose_seatarea **/
/**
 * mpspx_event_choose_seatarea
 */

$.each($('.mpspx-choose-area-mapper'), function () {
    if (!$('.plan-image-wrap > img')[0]) {
        return;
    }
    var wrap = $(this);
    var orig = $('.plan-image-wrap > img')[0].src;
    var plan_img = $('.plan-image-wrap > img')[0];
    $.each($('a',wrap), function () {
	var a = $(this);
	var origbg = a[0].style.backgroundColor;
	var origcolor = a[0].style.color;
	a.hover(function(){
	    plan_img.src = a.attr('data-hover');
	    a.css({
		'background-color': a[0].style.color,
		'color': a[0].style.backgroundColor
	    });
	},function(){
	    plan_img.src = orig;
	    a[0].style.backgroundColor = origbg;
	    a[0].style.color = origcolor
	});
    });

    $.each($('area',wrap), function (i,v) {
	var a = $($('a',wrap)[i]);
	var origbg = a[0].style.backgroundColor;
	var origcolor = a[0].style.color;
	$(this).hover(function(){
	    plan_img.src = a.attr('data-hover');
	    a.css({
		'background-color': a[0].style.color,
		'color': a[0].style.backgroundColor
	    });
	},function(){
	    plan_img.src = orig;
	    a[0].style.backgroundColor = origbg;
	    a[0].style.color = origcolor
	});
    });
});
/** Emd: mpspx_event_choose_seatarea **/

/** Start: mpspx_event_fixed_series **/

$.fn.center = function () {
    this.css("position", "absolute");
    this.css("top", Math.max(0, (($(window).height() - $(this).outerHeight()) / 2) +
            $(window).scrollTop()) + "px");
    this.css("left", Math.max(0, (($(window).width() - $(this).outerWidth()) / 2) +
            $(window).scrollLeft()) + "px");
    return this;
};
//only load the js if the shortcode class is found
if ($('.mpspx_event_fixed_series')[0]) {

    var fixed_firstload = true;
    $.each($('.mpspx_event_fixed_series'), function () {
        var series = $(this);
        var idx = 0;

        $('[data-griditem]', series).click(function (e) {
            close_fixed_series_event(e);
            $(this).addClass('open');
            $('.' + $(this).attr('data-griditem')).addClass('open');
            idx = $(this).index();
            e.stopPropagation();
            var container = $('.mpspx_fixed_series_events_list', series),
                    scrollTo = $(this);
            container.stop().animate({
                scrollTop: scrollTo.offset().top - container.offset().top + container.scrollTop()
            });
        });

        $('.mpspx-event-fixed_series-griditem_next', series).click(function (e) {
            idx++;
            if (!$('[data-griditem]', series)[idx]) {
                idx = 0;
            }
            $($('[data-griditem]', series)[idx]).click();
        });
        $('.mpspx-event-fixed_series-griditem_prev', series).click(function (e) {
            idx--;
            if (!$('[data-griditem]', series)[idx]) {
                idx = $('[data-griditem]', series).length - 1;
            }
            $($('[data-griditem]', series)[idx]).click();
        });
    });
    $('.mpspx-event-fixed_series-griditem').click(function (e) {
        e.stopPropagation();
    });
    $('.mpspx-event-fixed_series-griditem_close').click(function (e) {
        close_fixed_series_event(e);
        e.stopPropagation();
    });
    var close_fixed_series_event = function (e) {
        $('.mpspx-event-fixed_series-griditem').removeClass('open');
        $('[data-griditem]').removeClass('open');
    };
    $('body').click(close_fixed_series_event);

    $.each($('.mpspx_fixed_series_events_list'), function () {
        $(this).css({
            'max-height': $(this).parent().height() + 'px'
        });
    });


    //swap out our interface for the iframe
    $('.mpspx_event_fixed_series').on('click', '.mpspx_fixed_series_add_button', function () {
        $('.mpspx_fixed_series_wrap').show();
        var series = $(this).closest('.mpspx_fixed_series');
        $('.mpspx_fixed_series_iframe', series).append($('#SpektrixIFrame'));
        $('.mpspx_fixed_series_iframe', series).append($('.iframe_loading'));
        $('#SpektrixIFrame')[0].src = "https://" + apidomain + $(this).attr('data-url');
        if ($(".mpspx_fixed_series", series)[0]) {
            $([document.documentElement, document.body]).animate({
                scrollTop: $(".mpspx_fixed_series", series).offset().top - 75
            }, 250);
        }

        //if they have refreshed the page and the anchor is already set
        //and sometimes bot become invisible somehow with many back/forths
        if (location.hash === $(this).attr('href') || (!$('.mpspx_fixed_series_iframe').is(":visible") && !$('.mpspx_fixed_series_wrap').is(":visible"))) {
            $('.iframe_loading').show();
            $('.mpspx_fixed_series_iframe', series).addClass("active");
            $('.mpspx_fixed_series_wrap', series).hide();
        }
    });
    addEventListener("hashchange", (event) => {
        if (location.hash === "" || location.hash === "#") {
            $('.mpspx_fixed_series_iframe').removeClass("active")
            $('.mpspx_fixed_series_wrap').show();
        } else {
            $('a[href="' + location.hash + '"]').click();
        }
    });

    //if we find a list of fixed_series, we are on the first iframe page
    //reset the hash tag to trigger the on hash change event and show our page instead
    receiveMessage("fixed_series", function (data) {
        if (Object.keys(data).length > 0) {
            location.hash = '';
            $('#SpektrixIFrame')[0].src = '';
        }
        if (!fixed_firstload && $(".mpspx_fixed_series")[0]) {
            $([document.documentElement, document.body]).animate({
                scrollTop: $(".mpspx_fixed_series").offset().top - 75
            }, 250);
        }
        fixed_firstload = false;
    }, 1);
}



if ($('.mpspx-event-single-fixed_seriess-options')[0]) {

    $('#main').append($('.mpspx-event-single-fixed_seriess-options'));
    $('#main').append($('.mpspx-event-single-fixed_seriess-popup'));
    $('#main').append($('.mpspx-event-single-fixed_seriess-popup-modal'));

    $('.mpspx-event-single-fixed_seriess-message').click(function (e) {
        open_event_fixed_seriess();
    });
    var open_event_fixed_seriess = function () {
        $('.mpspx-event-single-fixed_seriess-popup-modal').addClass('open');
        $('.mpspx-event-single-fixed_seriess-popup').addClass('open');
        $('.mpspx-event-single-fixed_seriess-popup').center();

    };
    var close_event_fixed_seriess = function () {
        $('.mpspx-event-single-fixed_seriess-popup-modal').removeClass('open');
        $('.mpspx-event-single-fixed_seriess-popup').removeClass('open');

    };
    $(window).resize(function () {
        var popup = $('.mpspx-event-single-fixed_seriess-popup:visible');

        popup.center();

        if (popup[0] && popup.position().top < (20 + ($('#wpadminbar').height()))) {
            popup.css({
                top: 20 + ($('#wpadminbar').height())
            });
        }
    });
    $('.mpspx-event-single-fixed_seriess-popup-modal, .mpspx-event-single-fixed_seriess-popup-close').click(function () {
        close_event_fixed_seriess();
    });
}
/** Emd: mpspx_event_fixed_series **/

/** Start: mpspx_event_ical **/
if ($('.mpspx_event_ical_wrap')[0]) {
    $('body').append($('.mpspx_event_ical_modal'));
    $('body').append($('.mpspx_event_ical_popup'));

    $('.mpspx_event_ical_button').click(function (e) {
        open_ical();
    });
    var open_ical = function () {
        $('.mpspx_event_ical_modal').addClass('open');
        $('.mpspx_event_ical_popup').addClass('open');
        $('.mpspx_event_ical_popup').center();

    };
    var close_ical = function () {
        $('.mpspx_event_ical_modal').removeClass('open');
        $('.mpspx_event_ical_popup').removeClass('open');

    };
    $(window).resize(function () {
        var popup = $('.mpspx_event_ical_popup:visible');

        popup.center();

        if (popup[0] && popup.position().top < (20 + ($('#wpadminbar').height()))) {
            popup.css({
                top: 20 + ($('#wpadminbar').height())
            });
        }
    });
    $('.mpspx_event_ical_modal, .mpspx_event_ical_close, .mpspx_event_ical_cancel').click(function () {
        close_ical();
    });
    jQuery.fn.center = function () {
        this.css("position", "absolute");
        this.css("top", Math.max(0, (($(window).height() - $(this).outerHeight()) / 2) +
                $(window).scrollTop()) + "px");
        this.css("left", Math.max(0, (($(window).width() - $(this).outerWidth()) / 2) +
                $(window).scrollLeft()) + "px");
        return this;
    };

    $('.choose_events').click(function () {
        var open = $(this).closest('table').hasClass('open');
        $('.mpspx_event_ical_popup table').removeClass('open');
        if (!open) {
            $(this).closest('table').addClass('open');
        }
    });
    $('.mpspx_event_ical_popup input[name*="icsall__"]').click(function () {
        var checked = $(this).prop('checked');
        $('[data-eid="' + $(this).attr('data-eventid') + '"]').prop('checked', checked);
        update_count();
    });

    $('.mpspx_event_ical_popup input[id*="ics__"]').click(function () {
        update_count();
    });
    $('.check_all').click(function () {
        $('.mpspx_event_ical_popup input').prop('checked', true);
        update_count();
    });
    $('.check_none').click(function () {
        $('.mpspx_event_ical_popup input').prop('checked', false);
        update_count();
    });

    var update_count = function () {
        $.each($('.mpspx_event_ical_popup input[name*="icsall__"]'), function () {
            var eid = $(this).attr('data-eventid');
            var len = $('[data-eid="' + eid + '"]:checked').length;
            var tot = $('[data-eid="' + eid + '"]').length;
            var tbl = $(this).closest('table');
            $('[data-eventid="' + eid + '"]').removeClass('partial');
            $('[data-eventid="' + eid + '"]').prop('checked', tot === len);
            if (tot !== len && len > 0) {
                $('[data-eventid="' + eid + '"]').addClass('partial');
            }
            $('.chosen_count', tbl).html(len);
        });
    };

    $('.check_genre').click(function () {
        var genre = $(this).attr('data-genre');
        $('[data-eventid]').prop('checked', false);
        $('[data-eid]').prop('checked', false);
        $('input[data-genre="' + genre + '"]').prop('checked', true);
        update_count();
    });
}
/** Emd: mpspx_event_ical **/

/** Start: mpspx_event_list_carosel **/
$('body').on('click','.mpspx-event-list-carosel-next',function (e) {
    var carosel = $('.mpspx-event-list-carosel-inner', $(e.target).parent());
    var index = carosel.attr('data-index') * 1;
    if (!index || !$('> div', carosel)[index + 1]) {
	index = 0;
    }
    var width = $($('> div', carosel)[index]).width();
    var cur_left = carosel.scrollLeft();
    carosel.stop().animate({
	scrollLeft: (cur_left + width) + 'px'
    }, {
	duration: 150,
	complete: function () {
	    carosel.attr('data-index', index + 1);
	    if (cur_left == carosel.scrollLeft()) {
		carosel.attr('data-index', 0);
		carosel.stop().animate({
		    scrollLeft: '0px'
		}, {
		    duration: 150
		});
	    }
	}
    });
});

$('body').on('click','.mpspx-event-list-carosel-prev',function (e) {
    var carosel = $('.mpspx-event-list-carosel-inner', $(e.target).parent());
    var index = carosel.attr('data-index') * 1;
    if (!index || !$('> div', carosel)[index - 1]) {
	index = 0;
    }
    var width = $($('> div', carosel)[index]).width();
    var cur_left = carosel.scrollLeft();
    carosel.stop().animate({
	scrollLeft: (cur_left - width) + 'px'
    }, {
	duration: 150,
	complete: function () {
	    carosel.attr('data-index', index - 1);
	    if (cur_left == carosel.scrollLeft()) {
		carosel.attr('data-index', $('> div', carosel).length-1);
		carosel.stop().animate({
		    scrollLeft: ($('.mpspx-event-list-carosel .mpspx-event-list-carosel-inner > div').length * width) + 'px'
		}, {
		    duration: 150
		});
	    }
	}
    });
});
/** Emd: mpspx_event_list_carosel **/

/** Start: mpspx_event_ticket_subscriptions **/

if ($('.mpspx_event_ticket_subscription')[0]) {
    var iframe_src = $('#SpektrixIFrame').attr("src");
    if ($('.mpspx_event_ticket_subscriptions_wrap').hasClass('login')) {
        $('#SpektrixIFrame').attr("src","https://"+apidomain+"/"+clientname+"/website/secure/LoginLogout.aspx?returnURL="+(location.href))
    } else {
        $('#SpektrixIFrame').attr("src","https://"+apidomain+"/"+clientname+"/website/ticketsubscriptions");
    }
    mpspx_spektrix_get('customer',function(data){
        if (data) {
            $('.mpspx_event_ticket_subscriptions_wrap').removeClass('login');
            $('#SpektrixIFrame').attr("src","https://"+apidomain+"/"+clientname+"/website/ticketsubscriptions");
        }
    });
    $.each($('.mpspx_event_ticket_subscription .mpspx_tsub_price'), function () {
        var sub = $(this);
        var qty = 0;

        $('.mpspx_tsub_qty_up', sub).click(function () {
            if (qty === 10) {
                return;
            }
            qty++;
            $('.mpspx_tsub_qty_number', sub).html(qty);
        });
        $('.mpspx_tsub_qty_down', sub).click(function () {
            if (qty === 0) {
                return;
            }
            qty--;
            $('.mpspx_tsub_qty_number', sub).html(qty);
        });

        var idx = 0;

        $('[data-griditem]', sub.closest('.mpspx_event_ticket_subscription')).click(function (e) {
            close_tsub_event(e);
            $(this).addClass('open');
            $('.' + $(this).attr('data-griditem')).addClass('open');
            idx = $(this).index();
            e.stopPropagation();
            var container = $('.mpspx_tsub_events_list', sub.closest('.mpspx_event_ticket_subscription')),
                    scrollTo = $(this);
            container.stop().animate({
                scrollTop: scrollTo.offset().top - container.offset().top + container.scrollTop()
            });
        });

        $('.mpspx-event-tsub-griditem_next', sub).click(function (e) {
            idx++;
            if (!$('[data-griditem]', sub)[idx]) {
                idx = 0;
            }
            $($('[data-griditem]', sub)[idx]).click();
        });
        $('.mpspx-event-tsub-griditem_prev', sub).click(function (e) {
            idx--;
            if (!$('[data-griditem]', sub)[idx]) {
                idx = $('[data-griditem]', sub).length - 1;
            }
            $($('[data-griditem]', sub)[idx]).click();
        });


    });
    $('.mpspx_tsub_add_button').click(function () {
        if (!tsub_loaded) {
            return;
        }
        
        var qty = 0;
        var params = {};
        $.each($('.mpspx_tsub_qty_number'), function () {
            qty += $(this).html()*1;
            params[$(this).attr('data-name-val')] = $(this).html() * 1;
        });
        if (qty === 0) {
            $('.mpspx_tsub_qty_number').addClass("qty-error");
            setTimeout(function () {
                $('.mpspx_tsub_qty_number').removeClass("qty-error");
            }, 250);
            return;
        }
        $('.mpspx_tsub_add_button').css({
            opacity: 0.5
        });
        sendMessage("tsub_submit", params, 1)
    });
    $('.mpspx_tsub_add_button').css({
        opacity: 0.5
    });
    var tsub_loaded = false;
    receiveMessage("tsubs_success", function () {
        $('.mpspx_tsub_add_button').css({
            opacity: 1
        });
        $('.mpspx_tsub_add_button').html('<i class="fa fa-check"></i>');
    });
    receiveMessage("tsubs", function (tsubs) {
        tsub_loaded = true;
        $('.mpspx_tsub_add_button').css({
            opacity: 1
        });
        
        $.each(tsubs, function (k, tsub) {
            $.each(tsub.prices, function (pk, price) {
                $('[data-name-val="' + price.name + '"]').html(price.qty || 0);
            });
        });
    }, true);

    $('.mpspx-event-tsub-griditem').click(function (e) {
        e.stopPropagation();
    });
    $('.mpspx-event-tsub-griditem_close').click(function (e) {
        close_tsub_event(e);
        e.stopPropagation();
    });
    var close_tsub_event = function (e) {
        $('.mpspx-event-tsub-griditem').removeClass('open');
        $('[data-griditem]').removeClass('open');
    };
    $('body').click(close_tsub_event);

    $.each($('.mpspx_tsub_events_list'), function () {
        $(this).css({
            'max-height': $(this).parent().height() + 'px'
        });
    });
    
}

if ($('.mpspx-event-single-tsubs-options')[0]) {

    $('#main').append($('.mpspx-event-single-tsubs-options'));
    $('#main').append($('.mpspx-event-single-tsubs-popup'));
    $('#main').append($('.mpspx-event-single-tsubs-popup-modal'));

    $('.mpspx-event-single-tsubs-message').click(function (e) {
        open_event_tsubs();
    });
    var open_event_tsubs = function () {
        $('.mpspx-event-single-tsubs-popup-modal').addClass('open');
        $('.mpspx-event-single-tsubs-popup').addClass('open');
        $('.mpspx-event-single-tsubs-popup').center();

    };
    var close_event_tsubs = function () {
        $('.mpspx-event-single-tsubs-popup-modal').removeClass('open');
        $('.mpspx-event-single-tsubs-popup').removeClass('open');

    };
    $(window).resize(function () {
        var popup = $('.mpspx-event-single-tsubs-popup:visible');

        popup.center();

        if (popup[0] && popup.position().top < (20 + ($('#wpadminbar').height()))) {
            popup.css({
                top: 20 + ($('#wpadminbar').height())
            });
        }
    });
    $('.mpspx-event-single-tsubs-popup-modal, .mpspx-event-single-tsubs-popup-close').click(function () {
        close_event_tsubs();
    });
    jQuery.fn.center = function () {
        this.css("position", "absolute");
        this.css("top", Math.max(0, (($(window).height() - $(this).outerHeight()) / 2) +
                $(window).scrollTop()) + "px");
        this.css("left", Math.max(0, (($(window).width() - $(this).outerWidth()) / 2) +
                $(window).scrollLeft()) + "px");
        return this;
    };
}
/** Emd: mpspx_event_ticket_subscriptions **/

/** Start: mpspx_fund **/
/**
 * mpspx_fund
 */

$.each($('spektrix-donate'), function () {
    var wrap = $(this);
    const forward = wrap.attr('forward-to');
    const custom_checkbox_attribute = $('[data-attribute]', wrap);

    $('button', wrap).click(function (e) {
	var amount = $('input[type="number"]', wrap);
	if (!amount.val()) {
	    amount.focus();
	}
    });

    if (!custom_checkbox_attribute[0]) {
	return;
    } else {
	wrap.attr('x-forward-to', wrap.attr('forward-to'));
	wrap.attr('forward-to', '');
    }

    wrap[0].addEventListener('success', function (e) {
	//var donation = e.detail[e.detail.length - 1];

	var patchdata = {};
	patchdata["attribute_" + $('[data-attribute]', wrap).attr('data-attribute')] = "1";

	var patch = new XMLHttpRequest();
	patch.withCredentials = true;
	patch.open("PATCH", "https://"+apidomain+"/" + clientname + "/api/v3/basket");

	patch.setRequestHeader("Content-Type", "application/json");
	patch.addEventListener("readystatechange", function (patchevent) {
	    if (patch.readyState === XMLHttpRequest.DONE) {
		const patchstatus = patch.status;
		if (patchstatus === 0 || (patchstatus >= 200 && patchstatus < 400)) {
		    //debugger;
		    location.href = wrap.attr('x-forward-to');
		}
	    }
	});
	patch.send(JSON.stringify([patchdata]));
    });
});
/** Emd: mpspx_fund **/

/** Start: mpspx_fund_buttons **/
$('body').on('change', '.mpspx-shortcode-fund-buttons-amount button input', (e) => {
    $(e.currentTarget).closest('spektrix-donate').attr('donation-amount',$(e.currentTarget).val());
});
$('body').on('click', '.mpspx-shortcode-fund-buttons-amount button', (e) => {
    var wrap = $(e.currentTarget).closest('.mpspx-shortcode-fund-buttons-wrapper');
    $('spektrix-donate',wrap).attr('donation-amount',$(e.currentTarget).attr('data-amount'));
    
    $.each($('.mpspx-shortcode-fund-buttons-amount button', wrap), function () {
        $(this).attr('class', $(this).attr('data-class'));
    });

    $('.mpspx-shortcode-fund-buttons-submit', wrap).addClass('active');
    $(e.currentTarget).attr('class', $(e.currentTarget).attr('data-active-class'));

    var custom = $(e.currentTarget).closest('.mpspx-shortcode-fund-buttons-amount-custom');
    if (custom[0]) {
        $('span', custom).removeClass('active');
        $('.mpspx-shortcode-fund-buttons-amount-custom-input', wrap).addClass('active')
        $('.mpspx-shortcode-fund-buttons-amount-custom-input input', wrap).focus();
    } else {
        $('.mpspx-shortcode-fund-buttons-amount-custom-text', wrap).addClass('active');
        $('.mpspx-shortcode-fund-buttons-amount-custom-input', wrap).removeClass('active')
    }
}); 
/** Emd: mpspx_fund_buttons **/

/** Start: mpspx_fund_membership **/
$('body').on('click', '.mpspx-shortcode-fund-membership-wrapper input[type="checkbox"]', (e) => {
    var p = $(e.target).closest('.mpspx-shortcode-fund-membership-wrapper');
    if (e.target.checked) {
        $('[data-tribute-name],[data-tribute-type]', p).removeAttr('disabled');
    } else {
        $('[data-tribute-name],[data-tribute-type]', p).attr('disabled', 'disabled');
        $('[data-tribute-name],[data-tribute-type]', p).val('');
    }
});

$('body').on('click', '.give-monthly', (e) => {
    var p = $(e.target).closest('.mpspx-shortcode-fund-membership-wrapper');
    $('.active', p).removeClass('active');
    $(e.target).addClass('active');
    $('.mpspx-shortcode-fund-membership-single', p).hide();
    $('.mpspx-shortcode-fund-membership-list', p).show();
});

$('body').on('click', '.donate-now', (e) => {
    var p = $(e.target).closest('.mpspx-shortcode-fund-membership-wrapper');
    $('.active', p).removeClass('active');
    $(e.target).addClass('active');
    $('.mpspx-shortcode-fund-membership-single', p).show();
    $('.mpspx-shortcode-fund-membership-list', p).hide();
});
/** Emd: mpspx_fund_membership **/

/** Start: mpspx_fund_membershp_slider **/
/**
 * mpspx_fund_membershp_slider
 */
$.each($('.mpspx-shortcode-fund-membership-slider-wrapper'), function () {
    var wrap = $(this);

    var cont = $('.slider-cont', wrap);
    var button = $('.slider-button', wrap);
    var slider_val = 0;
    var slider_left = 0;
    var slider_max = $($('.slider-membership-mark', wrap)[0]).attr('amount') * 1;
    var mousepos_start = 1;
    var dragging = false;
    var lastMove = null;
    var nextlevel = $($('.slider-membership-mark', wrap)[0]);

    $($('.slider-membership-mark', wrap)[0]).show();
    $($('.slider-membership-mark', wrap)[0]).addClass('open');
    $.each($('.slider-membership-mark', wrap), function () {
	var mark = $(this);
	mark.click(function (e) {
	    $('.slider-membership-mark', wrap).removeClass('open')
	    mark.addClass('open');
	    set_slider_pos((((mark.attr('amount')) / slider_max) * cont.width()) - slider_left, true);
	    if (slider_max == slider_val && $('.slider-membership-mark:hidden', wrap)[0]) {
		slider_max = $($('.slider-membership-mark:hidden', wrap)[0]).attr('amount') * 1;
		nextlevel = $($('.slider-membership-mark:hidden', wrap)[0]);
		$($('.slider-membership-mark:hidden', wrap)[0]).show();
		set_slider_pos((((slider_val) / slider_max) * cont.width()) - slider_left, true);
		set_marks_pos();
	    } else {
		$('.slider-membership-mark', wrap).hide();
		mark.show();
		if (mark.next().attr('membership-id')) {
		    mark.next().show();
		    nextlevel = mark.next();
		    slider_max = mark.next().attr('amount') * 1;
		}
		$.each($('.slider-membership-mark', wrap), function () {
		    if (($(this).attr('amount') * 1) <= slider_max) {
			$(this).show();
		    }
		});
		set_slider_pos((((slider_val) / slider_max) * cont.width()) - slider_left, true);
		set_marks_pos();
	    }
	    $(window).resize();
	});
    });

    $('.slider-cont', wrap).click(function (e) {
	if (dragging || $(e.target).hasClass('slider-button') || $(e.target).hasClass('slider-value') || $(e.target).hasClass('slider-membership-amount') || $(e.target).hasClass('slider-membership-mark')) {
	    return;
	}
	if (e.offsetX) {
	    set_slider_pos(e.offsetX - slider_left, true);
	}
	if (lastMove && lastMove.originalEvent.touches && lastMove.originalEvent.touches[0].offsetx) {
	    set_slider_pos(lastMove.originalEvent.touches[0].offsetx - slider_left, true);
	}


    });

    button.on('touchstart mousedown', function (e) {
	mousepos_start = e.pageX;
	if (!mousepos_start) {
	    mousepos_start = e.originalEvent.touches[0].pageX;
	}
	lastMove = e;
	dragging = true;
    });
    $('body').on('touchmove mousemove', function (e) {
	if (dragging) {
	    lastMove = e;
	    cont.addClass('dragging');
	    set_slider_pos((e.pageX ? e.pageX : lastMove.originalEvent.touches[0].pageX) - mousepos_start);
	}
    });
    $('body').on('mouseup touchend', function (e) {
	if (dragging) {
	    set_slider_pos((e.pageX ? e.pageX : lastMove.originalEvent.touches[0].pageX) - mousepos_start, true);
	    cont.removeClass('dragging');
	    dragging = false;
	    if (slider_max == slider_val && $('.slider-membership-mark:hidden', wrap)[0]) {
		slider_max = $($('.slider-membership-mark:hidden', wrap)[0]).attr('amount') * 1;
		nextlevel = $($('.slider-membership-mark:hidden', wrap)[0]);
		$($('.slider-membership-mark:hidden', wrap)[0]).show();
		set_slider_pos((((slider_val) / slider_max) * cont.width()) - slider_left, true);
		set_marks_pos();
		$(window).resize();
	    }
	}
    });
    $('.slider-inc', wrap).click(function () {
	set_slider_pos((((slider_val + 1) / slider_max) * cont.width()) - slider_left, true);
	if (slider_max == slider_val && $('.slider-membership-mark:hidden', wrap)[0]) {
	    slider_max = $($('.slider-membership-mark:hidden', wrap)[0]).attr('amount') * 1;
	    nextlevel = $($('.slider-membership-mark:hidden', wrap)[0]);
	    $($('.slider-membership-mark:hidden', wrap)[0]).show();
	    set_slider_pos((((slider_val) / slider_max) * cont.width()) - slider_left, true);
	    set_marks_pos();
	}
	$(window).resize();
    });
    $('.slider-dec', wrap).click(function () {
	if (slider_val - 1 < nextlevel.prev().attr('amount') * 1) {
	    nextlevel = nextlevel.hide().prev();
	    slider_max = nextlevel.attr('amount') * 1
	}
	set_slider_pos((((slider_val - 1) / slider_max) * cont.width()) - slider_left, true);
	set_marks_pos();
	$(window).resize();
    });

    var set_slider_pos = function (pos, finished) {
	if (pos === 0) {
	    return;
	}
	var left = slider_left;
	left += pos;
	if (left >= cont.width()) {
	    left = cont.width();
	} else if (left < 0) {
	    left = 0;
	}
	button.stop().animate({
	    left: left
	}, {
	    duration: 250,
	    always: function () {
		button.css({
		    left: left
		});
	    }
	});
	if (finished) {
	    slider_left = left;
	}
	slider_val = Math.floor(slider_max * ((left / cont.width()))).toFixed(0) * 1;
	$('.slider-value', wrap).html(currencySymbol + slider_val);
	updateBody();
    }
    var set_marks_pos = function () {
	$.each($('.slider-membership-mark', wrap), function () {
	    var mark = $(this);
	    var left = (((mark.attr("amount")) / slider_max) * cont.width());
	    mark.stop().animate({
		left: left
	    }, {
		duration: 250,
		always: function () {
		    mark.css({
			left: left
		    });
		}
	    });
	});
    }

    var updateBody = function (msg) {
	var away = 0;
	var nextmembership = '';
	if (nextlevel) {
	    $('.slider-body-next', wrap).empty();
	    $('.slider-body-selected', wrap).empty();
	    nextmembership = $('.slider-membership-popup-title', nextlevel).html();
	    away = (nextlevel.attr('amount') * 1) - slider_val;
	    $('.slider-body-message', wrap).html(`<div class="slider-body-message-inner"><p><i class="fa fa-arrow-right"></i><br/>You are <strong>${currencySymbol}${away}</strong> away from the <strong>${nextmembership}</strong> membership level.<br><i class="fa fa-arrow-right"></i></p></div>`);
	    var n = nextlevel;
	    $('.slider-body-message-inner', wrap).click(function () {
		n.click();
	    });
	    $('.slider-body-next', wrap).empty().append($('.slider-membership-detail[membership-id="' + nextlevel.attr('membership-id') + '"]', wrap).clone(true, true));
	    if (nextlevel.prev()[0] && nextlevel.prev().attr('membership-id')) {
		$('.slider-body-selected', wrap).append($('.slider-membership-detail[membership-id="' + nextlevel.prev().attr('membership-id') + '"]', wrap).clone(true, true));
	    } else {
		$('.slider-body-selected', wrap).append($('.slider-membership-detail.slider-donate', wrap).clone(true, true));
	    }
	    if (slider_val == nextlevel.attr('amount') * 1) {
		$('.slider-body-next', wrap).empty()
		$('.slider-body-message', wrap).empty()
		$('.slider-body-selected', wrap).empty().append($('.slider-membership-detail[membership-id="' + nextlevel.attr('membership-id') + '"]', wrap).clone(true, true));
	    }
	} else {

	}
	$('.slider-membership-detail.slider-donate .slider-membership-detail-amount span', wrap).html(slider_val);
    }

    $('.slider-body-selected', wrap).append($('.slider-membership-detail.slider-donate', wrap).clone(true, true));

    var posting = false;
    $('.slider-membership-donate-button').click(function () {
	if (posting) {
	    return;
	}
	posting = true;
	var btn = $(this);
	var btntxt = btn.html();
	btn.html('Adding...');
	var postdata = {
	    amount: slider_val,
	    fundId: btn.parent().attr('fund-id')
	};

	var post = new XMLHttpRequest();
	post.withCredentials = true;
	post.open("POST", "https://"+apidomain+"/" + clientname + "/api/v3/basket/donations");

	post.setRequestHeader("Content-Type", "application/json");
	post.addEventListener("readystatechange", function (patchevent) {
	    if (post.readyState === XMLHttpRequest.DONE) {
		var data = JSON.parse(post.responseText ? post.responseText : JSON.stringify({message: "Empty response. Please try again."}));
		posting = false;
		const patchstatus = post.status;
		if ((patchstatus >= 200 && patchstatus < 400)) {
		    btn.html('Success!');
		    //debugger;
		    location.href = wrap.attr('forward-to');
		} else {
		    btn.html('Failed');
		    var msg = $('<div class="slider-failed">' + data["message"] + '</div>');

		    msg.insertAfter(btn);
		    setTimeout(function () {
			msg.remove()
		    }, 5000);
		}
		$(window).resize();
		setTimeout(function () {
		    btn.html(btntxt);
		    $(window).resize();
		}, 1000);
	    }
	});
	post.send(JSON.stringify([postdata]));
    });

    $('.slider-membership-join-button').click(function () {
	if (posting) {
	    return;
	}
	posting = true;
	var btn = $(this);
	var btntxt = btn.html();
	btn.html('Adding...');
	var postdata = {
	    membership: $(this).parent().attr('membership-id'),
	    autoRenew: $('.slider-membership-detail-autorenew input', btn.parent()).is(':checked')
	};

	var post = new XMLHttpRequest();
	post.withCredentials = true;
	post.open("POST", "https://"+apidomain+"/" + clientname + "/api/v3/basket/membership-subscriptions");

	post.setRequestHeader("Content-Type", "application/json");
	post.addEventListener("readystatechange", function (patchevent) {
	    if (post.readyState === XMLHttpRequest.DONE) {
		var data = JSON.parse(post.responseText ? post.responseText : JSON.stringify({message: "Empty response. Please try again."}));
		posting = false;
		const patchstatus = post.status;
		if ((patchstatus >= 200 && patchstatus < 400)) {
		    btn.html('Success!');
		    //debugger;
		    location.href = wrap.attr('forward-to');
		} else {
		    btn.html('Failed');
		    var msg = $('<div class="slider-failed">' + data["message"] + '</div>');

		    msg.insertAfter(btn);
		    setTimeout(function () {
			msg.remove()
		    }, 5000);
		}
		$(window).resize();
		setTimeout(function () {
		    btn.html(btntxt);
		    $(window).resize();
		}, 1000);

	    }
	});
	post.send(JSON.stringify([postdata]));
    });

    set_slider_pos(slider_val);
    set_marks_pos();
    updateBody();
});
/** Emd: mpspx_fund_membershp_slider **/

/** Start: mpspx_membership_select **/
/**
 * Memberships Select dropdown
 */
$.each($('.mpspx-shortcode-membership-select-wrapper'), function (k, v) {
    var spektrix = $('spektrix-memberships', $(this));
    var button = $('button', $(this));
    button.hide();
    $('select', $(this)).change(function () {
	if ($(this).val() == "") {
	    button.hide();
	} else {
	    button.show();
	}
	spektrix.attr('membership-id', $(this).val());
    });
});
/** Emd: mpspx_membership_select **/

/** Start: mpspx_merchandise_list_carosel **/
$('.mpspx-merchandise-list-carosel-next').click(function (e) {
    var carosel = $('.mpspx-merchandise-list-carosel-inner',$(this).parent());
    var width = $('> div',carosel).width();
    var cur_left = carosel.scrollLeft();
    carosel.stop().animate({
	scrollLeft: (cur_left + width) + 'px'
    }, {
	duration: 150,
	complete: function () {
	    if (cur_left == carosel.scrollLeft()) {
		carosel.stop().animate({
		    scrollLeft: '0px'
		}, {
		    duration: 150
		});
	    }
	}
    });
});

$('.mpspx-merchandise-list-carosel-prev').click(function (e) {
    var carosel = $('.mpspx-merchandise-list-carosel-inner',$(this).parent());
    var width = $('> div',carosel).width();
    var cur_left = carosel.scrollLeft();
    carosel.stop().animate({
	scrollLeft: (cur_left - width) + 'px'
    }, {
	duration: 150,
	complete: function () {
	    if (cur_left == carosel.scrollLeft()) {
		carosel.stop().animate({
		    scrollLeft: ($('.mpspx-merchandise-list-carosel .mpspx-merchandise-list-carosel-inner > div').length * width) + 'px'
		}, {
		    duration: 150
		});
	    }
	}
    });
});
/** Emd: mpspx_merchandise_list_carosel **/

/** Start: mpspx_merchandise_variants **/
$.each($('.mpspx-shortcode-merchandise-variants-wrapper'), function () {
    var form = this;
    $('select', form).change(function () {
	$('[merchandise-item-id]',form).attr('merchandise-item-id', this.value);
    });
});
/** Emd: mpspx_merchandise_variants **/

/** Start: mpspx_newsletter **/
/**/
/** Emd: mpspx_newsletter **/

/** Start: mpspx_potential_discount **/

$.each($('.mpspx_potential_discount'),()=>{
    var pdwrap = $(this);
    
    var id = $("[membership-id]",pdwrap);
    mpspx_spektrix_get("basket/potentialdiscount?membershipId="+id,(data)=>{
        debugger;
        pdwrap.addClass("active");
    });
});
/** Emd: mpspx_potential_discount **/

/** Start: mpspx_team_types **/
/**
 * Accordian
 */

//open/close first level items
$('body').on('click', '.mpspx-accordian-toggle', function (e) {
    var wrap = $(e.target).closest('.mpspx-accordian-category');
    var active = wrap.hasClass('open');
    $('.open', wrap.parent()).removeClass('open');
    if (!active) {
        wrap.addClass('open');
    }
});

//open/close 2nd level items
$('body').on('click', '.mpspx-accordian-category-toggle', function (e) {
    var wrap = $(e.target).closest('.mpspx-accordian-category-items');
    var active = wrap.hasClass('open');
    $('.open', wrap).removeClass('open');
    if (!active) {
        wrap.addClass('open');
    }
});

//open/close team member
$('body').on('click', '.mpspx-team_member-title', function (e) {
    var wrap = $(e.target).closest('.mpspx-team_member-title');
    var active = wrap.hasClass('open');
    $('.mpspx-team_member-title.open',wrap.closest('.mpspx_team_types_shortcode')).removeClass('open');
    if (!active) {
        wrap.addClass('open');
    }
});

//view events
$('body').on('click','.mpspx-team_member-view-events',function(e){
    
    var wrap = $(e.target).closest('.mpspx-team_member-desc').parent();
    //debugger;
    $('.mpspx-team_member-events',wrap).toggleClass('show');    
});
/** Emd: mpspx_team_types **/
        });
    })(jQuery);

/** Start: jquery.timeTo.min **/
/**
 * TimeTo jQuery plug-in
 * Show countdown timer or realtime clock
 *
 * @author Alexey Teterin <altmoc@gmail.com>
 * @version 1.0.12
 * @license MIT http://opensource.org/licenses/MIT
 * @date 2013-12-15
 */
(function(k){if("object"===typeof exports){var n=require("jquery");module.exports=k(n||$)}else"function"===typeof define&&define.amd?define(["jquery"],k):k(jQuery||$)})(function(k){function n(c){var h=this.data(),a=this.find("ul");if(h.vals&&0!==a.length){c||(c=h.seconds);var f=!1;h.intervalId&&(f=!0,clearTimeout(h.intervalId));var e=Math.floor(c/86400),d=86400*e,g=Math.floor((c-d)/3600),d=d+3600*g,l=Math.floor((c-d)/60);c-=d+60*l;e=(100>e?"0"+(10>e?"0":""):"")+e+(10>g?"0":"")+g+(10>l?"0":"")+l+(10>c?"0":"")+c;g=h.vals.length-1;for(l=e.length-1;0<=g;g--,l--)c=parseInt(e.substr(l,1)),h.vals[g]=c,a.eq(g).children().html(c);if(f){var b=this;h.ttStartTime=Date.now();h.intervalId=setTimeout(function(){q.call(b)},1E3);this.data("intervalId",h.intervalId)}}}function q(c){var h=this.find("ul"),a=this.data();if(a.vals&&0!=h.length){void 0==c&&(c=a.iSec);var f=a.vals[c],e=h.eq(c),d=e.children(),g=a.countdown?-1:1;d.eq(1).html(f);f+=g;if(c==a.iSec){var l=a.tickTimeout,b=(new Date).getTime()-a.ttStartTime;a.sec+=g;l+=Math.abs(a.seconds-a.sec)*l-b;a.intervalId=setTimeout(function(){q.call(t)},l)}if(0>f||f>a.limits[c])f=0>f?a.limits[c]:0,0<c&&q.call(this,c-1);d.eq(0).html(f);var t=this;k.support.transition?(e.addClass("transition"),e.css({top:0}),setTimeout(function(){e.removeClass("transition");d.eq(1).html(f);e.css({top:"-"+a.height+"px"});0<g||c!=a.iSec||(a.sec==a.countdownAlertLimit&&h.parent().addClass("timeTo-alert"),0===a.sec&&(h.parent().removeClass("timeTo-alert"),a.intervalId&&(clearTimeout(a.intervalId),t.data("intervalId",null)),"function"===typeof a.callback&&a.callback()))},410)):e.stop().animate({top:0},400,c!=a.iSec?null:function(){d.eq(1).html(f);e.css({top:"-"+a.height+"px"});0<g||c!=a.iSec||(a.sec==a.countdownAlertLimit?h.parent().addClass("timeTo-alert"):0==a.sec&&(h.parent().removeClass("timeTo-alert"),a.intervalId&&(clearTimeout(a.intervalId),t.data("intervalId",null)),"function"===typeof a.callback&&a.callback()))});a.vals[c]=f}else a.intervalId&&(clearTimeout(a.intervalId),this.data("intervalId",null)),a.callback&&a.callback()}var r={start:function(c){c&&n.call(this,c);var h=this;c=setTimeout(function(){q.call(h)},1E3);this.data("ttStartTime",(new Date).getTime());this.data("intervalId",c)},stop:function(){var c=this.data();c.intervalId&&(clearTimeout(c.intervalId),this.data("intervalId",null));return c},reset:function(c){var h=r.stop.call(this);this.find("div").css({backgroundPosition:"left center"});this.find("ul").parent().removeClass("timeTo-alert");"undefined"===typeof c&&(c=h.value);n.call(this,c)}},s={en:{days:"days",hours:"hours",min:"minutes",sec:"seconds"},ru:{days:"\u0434\u043d\u0435\u0439",hours:"\u0447\u0430\u0441\u043e\u0432",min:"\u043c\u0438\u043d\u0443\u0442",sec:"\u0441\u0435\u043a\u0443\u043d\u0434"},ua:{days:"\u0434\u043di\u0432",hours:"\u0433\u043e\u0434\u0438\u043d",min:"\u0445\u0432\u0438\u043b\u0438\u043d",sec:"\u0441\u0435\u043a\u0443\u043d\u0434"},de:{days:"Tag",hours:"Uhr",min:"Minuten",sec:"Secunden"},fr:{days:"jours",hours:"heures",min:"minutes",sec:"secondes"},sp:{days:"d\u00edas",hours:"reloj",min:"minutos",sec:"segundos"},it:{days:"giorni",hours:"ore",min:"minuti",sec:"secondi"},nl:{days:"dagen",hours:"uren",min:"minuten",sec:"seconden"},no:{days:"dager",hours:"timer",min:"minutter",sec:"sekunder"}};"undefined"===typeof k.support.transition&&(k.support.transition=function(){var c=(document.body||document.documentElement).style;return void 0!==c.transition||void 0!==c.WebkitTransition||void 0!==c.MozTransition||void 0!==c.MsTransition||void 0!==c.OTransition}());k.fn.timeTo=function(){for(var c={callback:null,captionSize:0,countdown:!0,countdownAlertLimit:10,displayCaptions:!1,displayDays:0,displayHours:!0,fontFamily:"Verdana, sans-serif",fontSize:28,lang:"en",seconds:0,start:!0,theme:"white",vals:[0,0,0,0,0,0,0,0,0],limits:[9,9,9,2,9,5,9,5,9],iSec:8,iHour:4,tickTimeout:1E3,intervalId:null},h,a={},f=0,e;e=arguments[f];++f)0==f&&"string"===typeof e?h=e:"object"==typeof e?"function"===typeof e.getTime?a.timeTo=e:a=k.extend(a,e):"function"==typeof e?a.callback=e:(e=parseInt(e),isNaN(e)||(a.seconds=e));if(a.timeTo){var d,f=(new Date).getTime();a.timeTo.getTime?d=a.timeTo.getTime():"number"===typeof a.timeTo&&(d=a.timeTo);a.timeTo>f&&(a.seconds=Math.floor((d-f)/1E3))}else if(a.time||!a.seconds)if((d=a.time)||(d=new Date),"object"===typeof d&&d.getTime)a.seconds=3600*d.getHours()+60*d.getMinutes()+d.getSeconds(),a.countdown=!1;else if("string"===typeof d){d=d.split(":");f=0;e=1;for(var g;g=d.pop();)f+=g*e,e*=60;a.seconds=f;a.countdown=!1}!1!==a.countdown&&86400<a.seconds&&"undefined"===typeof a.displayDays?(d=Math.floor(a.seconds/86400),a.displayDays=10>d&&1||100>d&&2||3):!0===a.displayDays?a.displayDays=3:a.displayDays&&(a.displayDays=0<a.displayDays?Math.floor(a.displayDays):3);return this.each(function(){var e=k(this),b=e.data(),d;if(b.vals)b.intervalId&&(clearInterval(b.intervalId),b.intervalId=null),k.extend(b,a);else{b=k.extend(c,a);b.height=Math.round(100*b.fontSize/93);b.width=Math.round(0.8*b.fontSize+0.13*b.height);b.displayHours=!(!b.displayDays&&!b.displayHours);e.addClass("timeTo").addClass("timeTo-"+b.theme).css({fontFamily:b.fontFamily,fontSize:b.fontSize+"px"});var f='<ul style="left:'+Math.round(b.height/10)+"px; top:-"+b.height+'px"><li>0</li><li>0</li></ul></div>',g=' style="width:'+b.width+"px; height:"+b.height+'px;"';d='<div class="first"'+g+">"+f;var f="<div"+g+">"+f,m=Math.round(2*b.width+3),g=b.captionSize||Math.round(0.43*b.fontSize);thtml=(b.displayCaptions?(b.displayHours?'<figure style="max-width:'+m+'px">$1<figcaption style="font-size:'+g+'px">'+s[b.lang].hours+"</figcaption></figure><span>:</span>":"")+'<figure style="max-width:'+m+'px">$1<figcaption style="font-size:'+g+'px">'+s[b.lang].min+'</figcaption></figure><span>:</span><figure style="max-width:'+m+'px">$1<figcaption style="font-size:'+g+'px">'+s[b.lang].sec+"</figcaption></figure>":(b.displayHours?"$1<span>:</span>":"")+"$1<span>:</span>$1").replace(/\$1/g,d+f);if(0<b.displayDays){var m=0.4*b.fontSize,p=d;for(d=b.displayDays-1;0<d;d--)p+=1===d?f.replace('">'," margin-right:"+Math.round(m)+'px">'):f;thtml=(b.displayCaptions?'<figure style="width:'+Math.round(b.width*b.displayDays+m+4)+'px">$1<figcaption style="font-size:'+g+"px; padding-right:"+Math.round(m)+'px">'+s[b.lang].days+"</figcaption></figure>":"$1").replace(/\$1/,p)+thtml}e.html(thtml)}f=e.find("div");if(f.length<b.vals.length){g=b.vals.length-f.length;m=b.vals;p=b.limits;b.vals=[];b.limits=[];for(d=0;d<f.length;d++)b.vals[d]=m[g+d],b.limits[d]=p[g+d];b.iSec=b.vals.length-1;b.iHour=b.vals.length-5}b.sec=b.seconds;e.data(b);h&&r[h]?r[h].call(e,b.seconds):b.start?r.start.call(e,b.seconds):n.call(e,b.seconds)})};return jQuery});
/*!
 * jQuery Cookie Plugin v1.4.1
 * https://github.com/carhartl/jquery-cookie
 *
 * Copyright 2006, 2014 Klaus Hartl
 * Released under the MIT license
 */
(function(factory){if(typeof define==='function'&&define.amd){define(['jquery'],factory)}else if(typeof exports==='object'){module.exports=factory(require('jquery'))}else{factory(jQuery)}}(function($){var pluses=/\+/g;function encode(s){return config.raw?s:encodeURIComponent(s)}
function decode(s){return config.raw?s:decodeURIComponent(s)}
function stringifyCookieValue(value){return encode(config.json?JSON.stringify(value):String(value))}
function parseCookieValue(s){if(s.indexOf('"')===0){s=s.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,'\\')}
try{s=decodeURIComponent(s.replace(pluses,' '));return config.json?JSON.parse(s):s}catch(e){}}
function read(s,converter){var value=config.raw?s:parseCookieValue(s);return $.isFunction(converter)?converter(value):value}
var config=$.cookie=function(key,value,options){if(arguments.length>1&&!$.isFunction(value)){options=$.extend({},config.defaults,options);if(typeof options.expires==='number'){var days=options.expires,t=options.expires=new Date();t.setMilliseconds(t.getMilliseconds()+days*864e+5)}
return(document.cookie=[encode(key),'=',stringifyCookieValue(value),options.expires?'; expires='+options.expires.toUTCString():'',options.path?'; path='+options.path:'',options.domain?'; domain='+options.domain:'',options.secure?'; secure':''].join(''))}
var result=key?undefined:{},cookies=document.cookie?document.cookie.split('; '):[],i=0,l=cookies.length;for(;i<l;i++){var parts=cookies[i].split('='),name=decode(parts.shift()),cookie=parts.join('=');if(key===name){result=read(cookie,value);break}
if(!key&&(cookie=read(cookie))!==undefined){result[name]=cookie}}
return result};config.defaults={};$.removeCookie=function(key,options){$.cookie(key,'',$.extend({},options,{expires:-1}));return!$.cookie(key)}}));document.documentElement.className=document.documentElement.className.replace('no-js','js');(function(sttc){var window=this;if(window.googletag&&googletag.evalScripts){googletag.evalScripts()}if(window.googletag&&googletag._loaded_)return;var n,aa=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}},ba=typeof Object.defineProperties=="function"?Object.defineProperty:function(a,b,c){if(a==Array.prototype||a==Object.prototype)return a;a[b]=c.value;return a},ca=function(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b<a.length;++b){var c=a[b];if(c&&c.Math==Math)return c}throw Error("Cannot find global object")},da=ca(this),ea=typeof Symbol==="function"&&typeof Symbol("x")==="symbol",t={},fa={},v=function(a,b,c){if(!c||a!=null){c=fa[b];if(c==null)return a[b];c=a[c];return c!==void 0?c:a[b]}},w=function(a,b,c){if(b)a:{var d=a.split(".");a=d.length===1;var e=d[0],f;!a&&e in t?f=t:f=da;for(e=0;e<d.length-1;e++){var g=d[e];if(!(g in f))break a;f=f[g]}d=d[d.length-1];c=ea&&c==="es6"?f[d]:null;b=b(c);b!=null&&(a?ba(t,d,{configurable:!0,writable:!0,value:b}):b!==c&&(fa[d]===void 0&&(a=Math.random()*1E9>>>0,fa[d]=ea?da.Symbol(d):"$jscp$"+a+"$"+d),ba(f,fa[d],{configurable:!0,writable:!0,value:b})))}};w("Symbol",function(a){if(a)return a;var b=function(f,g){this.g=f;ba(this,"description",{configurable:!0,writable:!0,value:g})};b.prototype.toString=function(){return this.g};var c="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",d=0,e=function(f){if(this instanceof e)throw new TypeError("Symbol is not a constructor");return new b(c+(f||"")+"_"+d++,f)};return e},"es6");w("Symbol.iterator",function(a){if(a)return a;a=(0,t.Symbol)("Symbol.iterator");for(var b="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),c=0;c<b.length;c++){var d=da[b[c]];typeof d==="function"&&typeof d.prototype[a]!="function"&&ba(d.prototype,a,{configurable:!0,writable:!0,value:function(){return ha(aa(this))}})}return a},"es6");var ha=function(a){a={next:a};a[v(t.Symbol,"iterator")]=function(){return this};return a},ja=function(a){return ia(a,a)},ia=function(a,b){a.raw=b;Object.freeze&&(Object.freeze(a),Object.freeze(b));return a},x=function(a){var b=typeof t.Symbol!="undefined"&&v(t.Symbol,"iterator")&&a[v(t.Symbol,"iterator")];if(b)return b.call(a);if(typeof a.length=="number")return{next:aa(a)};throw Error(String(a)+" is not an iterable or ArrayLike")},ka=function(a){if(!(a instanceof Array)){a=x(a);for(var b,c=[];!(b=a.next()).done;)c.push(b.value);a=c}return a},ma=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)},na=ea&&typeof v(Object,"assign")=="function"?v(Object,"assign"):function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(d)for(var e in d)ma(d,e)&&(a[e]=d[e])}return a};w("Object.assign",function(a){return a||na},"es6");var oa=typeof Object.create=="function"?Object.create:function(a){var b=function(){};b.prototype=a;return new b},pa;if(ea&&typeof Object.setPrototypeOf=="function")pa=Object.setPrototypeOf;else{var qa;a:{var ra={a:!0},sa={};try{sa.__proto__=ra;qa=sa.a;break a}catch(a){}qa=!1}pa=qa?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var ta=pa,y=function(a,b){a.prototype=oa(b.prototype);a.prototype.constructor=a;if(ta)ta(a,b);else for(var c in b)if(c!="prototype")if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);d&&Object.defineProperty(a,c,d)}else a[c]=b[c];a.yb=b.prototype},ua=function(){for(var a=Number(this),b=[],c=a;c<arguments.length;c++)b[c-a]=arguments[c];return b};w("Array.prototype.find",function(a){return a?a:function(b,c){a:{var d=this;d instanceof String&&(d=String(d));for(var e=d.length,f=0;f<e;f++){var g=d[f];if(b.call(c,g,f,d)){b=g;break a}}b=void 0}return b}},"es6");w("WeakMap",function(a){function b(){}function c(g){var h=typeof g;return h==="object"&&g!==null||h==="function"}if(function(){if(!a||!Object.seal)return!1;try{var g=Object.seal({}),h=Object.seal({}),k=new a([[g,2],[h,3]]);if(k.get(g)!=2||k.get(h)!=3)return!1;k.delete(g);k.set(h,4);return!k.has(g)&&k.get(h)==4}catch(l){return!1}}())return a;var d="$jscomp_hidden_"+Math.random(),e=0,f=function(g){this.g=(e+=Math.random()+1).toString();if(g){g=x(g);for(var h;!(h=g.next()).done;)h=h.value,this.set(h[0],h[1])}};f.prototype.set=function(g,h){if(!c(g))throw Error("Invalid WeakMap key");if(!ma(g,d)){var k=new b;ba(g,d,{value:k})}if(!ma(g,d))throw Error("WeakMap key fail: "+g);g[d][this.g]=h;return this};f.prototype.get=function(g){return c(g)&&ma(g,d)?g[d][this.g]:void 0};f.prototype.has=function(g){return c(g)&&ma(g,d)&&ma(g[d],this.g)};f.prototype.delete=function(g){return c(g)&&ma(g,d)&&ma(g[d],this.g)?delete g[d][this.g]:!1};return f},"es6");w("Map",function(a){if(function(){if(!a||typeof a!="function"||!v(a.prototype,"entries")||typeof Object.seal!="function")return!1;try{var h=Object.seal({x:4}),k=new a(x([[h,"s"]]));if(k.get(h)!="s"||k.size!=1||k.get({x:4})||k.set({x:4},"t")!=k||k.size!=2)return!1;var l=v(k,"entries").call(k),q=l.next();if(q.done||q.value[0]!=h||q.value[1]!="s")return!1;q=l.next();return q.done||q.value[0].x!=4||q.value[1]!="t"||!l.next().done?!1:!0}catch(r){return!1}}())return a;var b=new t.WeakMap,c=function(h){this[0]={};this[1]=f();this.size=0;if(h){h=x(h);for(var k;!(k=h.next()).done;)k=k.value,this.set(k[0],k[1])}};c.prototype.set=function(h,k){h=h===0?0:h;var l=d(this,h);l.list||(l.list=this[0][l.id]=[]);l.u?l.u.value=k:(l.u={next:this[1],H:this[1].H,head:this[1],key:h,value:k},l.list.push(l.u),this[1].H.next=l.u,this[1].H=l.u,this.size++);return this};c.prototype.delete=function(h){h=d(this,h);return h.u&&h.list?(h.list.splice(h.index,1),h.list.length||delete this[0][h.id],h.u.H.next=h.u.next,h.u.next.H=h.u.H,h.u.head=null,this.size--,!0):!1};c.prototype.clear=function(){this[0]={};this[1]=this[1].H=f();this.size=0};c.prototype.has=function(h){return!!d(this,h).u};c.prototype.get=function(h){return(h=d(this,h).u)&&h.value};c.prototype.entries=function(){return e(this,function(h){return[h.key,h.value]})};c.prototype.keys=function(){return e(this,function(h){return h.key})};c.prototype.values=function(){return e(this,function(h){return h.value})};c.prototype.forEach=function(h,k){for(var l=v(this,"entries").call(this),q;!(q=l.next()).done;)q=q.value,h.call(k,q[1],q[0],this)};c.prototype[v(t.Symbol,"iterator")]=v(c.prototype,"entries");var d=function(h,k){var l=k&&typeof k;l=="object"||l=="function"?b.has(k)?l=b.get(k):(l=""+ ++g,b.set(k,l)):l="p_"+k;var q=h[0][l];if(q&&ma(h[0],l))for(h=0;h<q.length;h++){var r=q[h];if(k!==k&&r.key!==r.key||k===r.key)return{id:l,list:q,index:h,u:r}}return{id:l,list:q,index:-1,u:void 0}},e=function(h,k){var l=h[1];return ha(function(){if(l){for(;l.head!=h[1];)l=l.H;for(;l.next!=l.head;)return l=l.next,{done:!1,value:k(l)};l=null}return{done:!0,value:void 0}})},f=function(){var h={};return h.H=h.next=h.head=h},g=0;return c},"es6");w("Set",function(a){if(function(){if(!a||typeof a!="function"||!v(a.prototype,"entries")||typeof Object.seal!="function")return!1;try{var c=Object.seal({x:4}),d=new a(x([c]));if(!d.has(c)||d.size!=1||d.add(c)!=d||d.size!=1||d.add({x:4})!=d||d.size!=2)return!1;var e=v(d,"entries").call(d),f=e.next();if(f.done||f.value[0]!=c||f.value[1]!=c)return!1;f=e.next();return f.done||f.value[0]==c||f.value[0].x!=4||f.value[1]!=f.value[0]?!1:e.next().done}catch(g){return!1}}())return a;var b=function(c){this.g=new t.Map;if(c){c=x(c);for(var d;!(d=c.next()).done;)this.add(d.value)}this.size=this.g.size};b.prototype.add=function(c){c=c===0?0:c;this.g.set(c,c);this.size=this.g.size;return this};b.prototype.delete=function(c){c=this.g.delete(c);this.size=this.g.size;return c};b.prototype.clear=function(){this.g.clear();this.size=0};b.prototype.has=function(c){return this.g.has(c)};b.prototype.entries=function(){return v(this.g,"entries").call(this.g)};b.prototype.values=function(){return v(this.g,"values").call(this.g)};b.prototype.keys=v(b.prototype,"values");b.prototype[v(t.Symbol,"iterator")]=v(b.prototype,"values");b.prototype.forEach=function(c,d){var e=this;this.g.forEach(function(f){return c.call(d,f,f,e)})};return b},"es6");w("Object.values",function(a){return a?a:function(b){var c=[],d;for(d in b)ma(b,d)&&c.push(b[d]);return c}},"es8");w("Object.is",function(a){return a?a:function(b,c){return b===c?b!==0||1/b===1/c:b!==b&&c!==c}},"es6");w("Array.prototype.includes",function(a){return a?a:function(b,c){var d=this;d instanceof String&&(d=String(d));var e=d.length;c=c||0;for(c<0&&(c=Math.max(c+e,0));c<e;c++){var f=d[c];if(f===b||v(Object,"is").call(Object,f,b))return!0}return!1}},"es7");var va=function(a,b,c){if(a==null)throw new TypeError("The 'this' value for String.prototype."+c+" must not be null or undefined");if(b instanceof RegExp)throw new TypeError("First argument to String.prototype."+c+" must not be a regular expression");return a+""};w("String.prototype.includes",function(a){return a?a:function(b,c){return va(this,b,"includes").indexOf(b,c||0)!==-1}},"es6");w("Array.from",function(a){return a?a:function(b,c,d){c=c!=null?c:function(h){return h};var e=[],f=typeof t.Symbol!="undefined"&&v(t.Symbol,"iterator")&&b[v(t.Symbol,"iterator")];if(typeof f=="function"){b=f.call(b);for(var g=0;!(f=b.next()).done;)e.push(c.call(d,f.value,g++))}else for(f=b.length,g=0;g<f;g++)e.push(c.call(d,b[g],g));return e}},"es6");w("Object.entries",function(a){return a?a:function(b){var c=[],d;for(d in b)ma(b,d)&&c.push([d,b[d]]);return c}},"es8");w("Number.isFinite",function(a){return a?a:function(b){return typeof b!=="number"?!1:!isNaN(b)&&b!==Infinity&&b!==-Infinity}},"es6");w("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991},"es6");w("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991},"es6");w("Number.isInteger",function(a){return a?a:function(b){return v(Number,"isFinite").call(Number,b)?b===Math.floor(b):!1}},"es6");w("Number.isSafeInteger",function(a){return a?a:function(b){return v(Number,"isInteger").call(Number,b)&&Math.abs(b)<=v(Number,"MAX_SAFE_INTEGER")}},"es6");w("String.prototype.startsWith",function(a){return a?a:function(b,c){var d=va(this,b,"startsWith"),e=d.length,f=b.length;c=Math.max(0,Math.min(c|0,d.length));for(var g=0;g<f&&c<e;)if(d[c++]!=b[g++])return!1;return g>=f}},"es6");var wa=function(a,b){a instanceof String&&(a+="");var c=0,d=!1,e={next:function(){if(!d&&c<a.length){var f=c++;return{value:b(f,a[f]),done:!1}}d=!0;return{done:!0,value:void 0}}};e[v(t.Symbol,"iterator")]=function(){return e};return e};w("Array.prototype.entries",function(a){return a?a:function(){return wa(this,function(b,c){return[b,c]})}},"es6");w("globalThis",function(a){return a||da},"es_2020");w("Math.trunc",function(a){return a?a:function(b){b=Number(b);if(isNaN(b)||b===Infinity||b===-Infinity||b===0)return b;var c=Math.floor(Math.abs(b));return b<0?-c:c}},"es6");w("Number.isNaN",function(a){return a?a:function(b){return typeof b==="number"&&isNaN(b)}},"es6");w("Array.prototype.keys",function(a){return a?a:function(){return wa(this,function(b){return b})}},"es6");w("Array.prototype.values",function(a){return a?a:function(){return wa(this,function(b,c){return c})}},"es8");w("String.prototype.repeat",function(a){return a?a:function(b){var c=va(this,null,"repeat");if(b<0||b>1342177279)throw new RangeError("Invalid count value");b|=0;for(var d="";b;)if(b&1&&(d+=c),b>>>=1)c+=c;return d}},"es6");w("String.prototype.padStart",function(a){return a?a:function(b,c){var d=va(this,null,"padStart");b-=d.length;c=c!==void 0?String(c):" ";return(b>0&&c?v(c,"repeat").call(c,Math.ceil(b/c.length)).substring(0,b):"")+d}},"es8");var z=this||self,ya=function(a,b){var c=xa("CLOSURE_FLAGS");a=c&&c[a];return a!=null?a:b},xa=function(a){a=a.split(".");for(var b=z,c=0;c<a.length;c++)if(b=b[a[c]],b==null)return null;return b},za=function(a,b,c){a=a.split(".");c=c||z;a[0]in c||typeof c.execScript=="undefined"||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)a.length||b===void 0?c[d]&&c[d]!==Object.prototype[d]?c=c[d]:c=c[d]={}:c[d]=b};function Aa(a){z.setTimeout(function(){throw a},0)};var Ba=function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]},Da=function(a,b){var c=0;a=Ba(String(a)).split(".");b=Ba(String(b)).split(".");for(var d=Math.max(a.length,b.length),e=0;c==0&&e<d;e++){var f=a[e]||"",g=b[e]||"";do{f=/(\d*)(\D*)(.*)/.exec(f)||["","","",""];g=/(\d*)(\D*)(.*)/.exec(g)||["","","",""];if(f[0].length==0&&g[0].length==0)break;c=Ca(f[1].length==0?0:parseInt(f[1],10),g[1].length==0?0:parseInt(g[1],10))||Ca(f[2].length==0,g[2].length==0)||Ca(f[2],g[2]);f=f[3];g=g[3]}while(c==0)}return c},Ca=function(a,b){return a<b?-1:a>b?1:0};var Ea=ya(610401301,!1),Fa=ya(653718497,ya(1,!0));var Ga,Ha=z.navigator;Ga=Ha?Ha.userAgentData||null:null;function Ia(a){return Ea?Ga?Ga.brands.some(function(b){return(b=b.brand)&&b.indexOf(a)!=-1}):!1:!1}function B(a){var b;a:{if(b=z.navigator)if(b=b.userAgent)break a;b=""}return b.indexOf(a)!=-1};function Ja(){return Ea?!!Ga&&Ga.brands.length>0:!1}function Ka(){return Ja()?Ia("Chromium"):(B("Chrome")||B("CriOS"))&&!(Ja()?0:B("Edge"))||B("Silk")};var La=function(a,b){return Array.prototype.map.call(a,b,void 0)};function Ma(a,b){a:{for(var c=typeof a==="string"?a.split(""):a,d=a.length-1;d>=0;d--)if(d in c&&b.call(void 0,c[d],d,a)){b=d;break a}b=-1}return b<0?null:typeof a==="string"?a.charAt(b):a[b]};var Na=function(a){Na[" "](a);return a};Na[" "]=function(){};var Oa=Ja()?!1:B("Trident")||B("MSIE");!B("Android")||Ka();Ka();B("Safari")&&(Ka()||(Ja()?0:B("Coast"))||(Ja()?0:B("Opera"))||(Ja()?0:B("Edge"))||(Ja()?Ia("Microsoft Edge"):B("Edg/"))||Ja()&&Ia("Opera"));var Pa={},Qa=null,Sa=function(a){var b=[];Ra(a,function(c){b.push(c)});return b},Ra=function(a,b){function c(k){for(;d<a.length;){var l=a.charAt(d++),q=Qa[l];if(q!=null)return q;if(!/^[\s\xa0]*$/.test(l))throw Error("Unknown base64 encoding at char: "+l)}return k}Va();for(var d=0;;){var e=c(-1),f=c(0),g=c(64),h=c(64);if(h===64&&e===-1)break;b(e<<2|f>>4);g!=64&&(b(f<<4&240|g>>2),h!=64&&b(g<<6&192|h))}},Va=function(){if(!Qa){Qa={};for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),b=["+/=","+/","-_=","-_.","-_"],c=0;c<5;c++){var d=a.concat(b[c].split(""));Pa[c]=d;for(var e=0;e<d.length;e++){var f=d[e];Qa[f]===void 0&&(Qa[f]=e)}}}};var Wa=typeof Uint8Array!=="undefined",Xa=!Oa&&typeof btoa==="function";var Ya=function(a,b){a.__closure__error__context__984382||(a.__closure__error__context__984382={});a.__closure__error__context__984382.severity=b};var Za,$a;function ab(a){if($a)throw Error("");$a=function(b){z.setTimeout(function(){a(b)},0)}}function bb(a){if($a)try{$a(a)}catch(b){throw b.cause=a,b}}function cb(){var a=Error();Ya(a,"incident");$a?bb(a):Aa(a)}function db(a){a=Error(a);Ya(a,"warning");bb(a);return a};function eb(){return typeof BigInt==="function"};function fb(a){return Array.prototype.slice.call(a)};var gb=typeof t.Symbol==="function"&&typeof(0,t.Symbol)()==="symbol";function hb(a){return typeof t.Symbol==="function"&&typeof(0,t.Symbol)()==="symbol"?(0,t.Symbol)():a}var ib=hb(),jb=hb("0di"),kb=hb("2ex"),lb=hb("1oa"),mb=hb("0dg");var nb=gb?function(a,b){a[ib]|=b}:function(a,b){a.g!==void 0?a.g|=b:Object.defineProperties(a,{g:{value:b,configurable:!0,writable:!0,enumerable:!1}})},ob=gb?function(a,b){a[ib]&=~b}:function(a,b){a.g!==void 0&&(a.g&=~b)},D=gb?function(a){return a[ib]|0}:function(a){return a.g|0},E=gb?function(a){return a[ib]}:function(a){return a.g},F=gb?function(a,b){a[ib]=b}:function(a,b){a.g!==void 0?a.g=b:Object.defineProperties(a,{g:{value:b,configurable:!0,writable:!0,enumerable:!1}})};function pb(a,b){F(b,(a|0)&-14591)}function qb(a,b){F(b,(a|34)&-14557)};var rb={},sb={};function tb(a){return!(!a||typeof a!=="object"||a.g!==sb)}function ub(a){return a!==null&&typeof a==="object"&&!Array.isArray(a)&&a.constructor===Object}function vb(a){return!Array.isArray(a)||a.length?!1:D(a)&1?!0:!1}var wb,xb=[];F(xb,55);wb=Object.freeze(xb);function yb(a){if(a&2)throw Error()}var zb=Object.freeze({});Object.freeze({});var Ab=Object.freeze({});function Bb(){var a=!G(Cb).g,b=Db;if(!a)throw Error((typeof b==="function"?b():b)||String(a))}function Eb(a){a.vb=!0;return a}var Db=void 0;var Fb=Eb(function(a){return typeof a==="number"}),Gb=Eb(function(a){return typeof a==="string"}),Hb=Eb(function(a){return typeof a==="boolean"});var Ib=typeof z.BigInt==="function"&&typeof z.BigInt(0)==="bigint";function Jb(a){var b=a;if(Gb(b)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(b))throw Error(String(b))}else if(Fb(b)&&!v(Number,"isSafeInteger").call(Number,b))throw Error(String(b));return Ib?BigInt(a):a=Hb(a)?a?"1":"0":Gb(a)?a.trim()||"0":String(a)}var Pb=Eb(function(a){return Ib?a>=Kb&&a<=Lb:a[0]==="-"?Mb(a,Nb):Mb(a,Ob)}),Nb=v(Number,"MIN_SAFE_INTEGER").toString(),Kb=Ib?BigInt(v(Number,"MIN_SAFE_INTEGER")):void 0,Ob=v(Number,"MAX_SAFE_INTEGER").toString(),Lb=Ib?BigInt(v(Number,"MAX_SAFE_INTEGER")):void 0;function Mb(a,b){if(a.length>b.length)return!1;if(a.length<b.length||a===b)return!0;for(var c=0;c<a.length;c++){var d=a[c],e=b[c];if(d>e)return!1;if(d<e)return!0}};var H=0,I=0;function Qb(a){var b=a>>>0;H=b;I=(a-b)/4294967296>>>0}function Rb(a){if(a<0){Qb(-a);var b=x(Sb(H,I));a=b.next().value;b=b.next().value;H=a>>>0;I=b>>>0}else Qb(a)}function Tb(a,b){b>>>=0;a>>>=0;if(b<=2097151)var c=""+(4294967296*b+a);else eb()?c=""+(BigInt(b)<<BigInt(32)|BigInt(a)):(c=(a>>>24|b<<8)&16777215,b=b>>16&65535,a=(a&16777215)+c*6777216+b*6710656,c+=b*8147497,b*=2,a>=1E7&&(c+=a/1E7>>>0,a%=1E7),c>=1E7&&(b+=c/1E7>>>0,c%=1E7),c=b+Ub(c)+Ub(a));return c}function Ub(a){a=String(a);return"0000000".slice(a.length)+a}function Vb(){var a=H,b=I;b&2147483648?eb()?a=""+(BigInt(b|0)<<BigInt(32)|BigInt(a>>>0)):(b=x(Sb(a,b)),a=b.next().value,b=b.next().value,a="-"+Tb(a,b)):a=Tb(a,b);return a}function Sb(a,b){b=~b;a?a=~a+1:b+=1;return[a,b]};function Wb(a,b){throw Error(b===void 0?"unexpected value "+a+"!":b)};function Xb(a){if(typeof a!=="boolean"){var b=typeof a;throw Error("Expected boolean but got "+(b!="object"?b:a?Array.isArray(a)?"array":b:"null")+": "+a)}return a}var Yb=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;function Zb(a){var b=typeof a;switch(b){case "bigint":return!0;case "number":return v(Number,"isFinite").call(Number,a)}return b!=="string"?!1:Yb.test(a)}function J(a){if(a!=null){if(!v(Number,"isFinite").call(Number,a))throw db("enum");a|=0}return a}function $b(a){if(typeof a!=="number")throw db("int32");if(!v(Number,"isFinite").call(Number,a))throw db("int32");return a|0}function ac(a){return a==null?a:$b(a)}function bc(a){if(a==null)return a;if(typeof a==="string"){if(!a)return;a=+a}if(typeof a==="number")return v(Number,"isFinite").call(Number,a)?a|0:void 0}function cc(a){if(a==null)return a;if(typeof a==="string"){if(!a)return;a=+a}if(typeof a==="number")return v(Number,"isFinite").call(Number,a)?a>>>0:void 0}function dc(a){var b=0;b=b===void 0?0:b;if(!Zb(a))throw db("int64");var c=typeof a;switch(b){case 4096:switch(c){case "string":return ec(a);case "bigint":return String(BigInt.asIntN(64,a));default:return fc(a)}case 8192:switch(c){case "string":return b=v(Math,"trunc").call(Math,Number(a)),v(Number,"isSafeInteger").call(Number,b)?a=Jb(b):(b=a.indexOf("."),b!==-1&&(a=a.substring(0,b)),a=eb()?Jb(BigInt.asIntN(64,BigInt(a))):Jb(gc(a))),a;case "bigint":return Jb(BigInt.asIntN(64,a));default:return Jb(hc(a))}case 0:switch(c){case "string":return ec(a);case "bigint":return Jb(BigInt.asIntN(64,a));default:return hc(a)}default:return Wb(b,"Unknown format requested type for int64")}}function ic(a){return a==null?a:dc(a)}function jc(a){return a[0]==="-"?a.length<20?!0:a.length===20&&Number(a.substring(0,7))>-922337:a.length<19?!0:a.length===19&&Number(a.substring(0,6))<922337}function gc(a){if(jc(a))return a;if(a.length<16)Rb(Number(a));else if(eb())a=BigInt(a),H=Number(a&BigInt(4294967295))>>>0,I=Number(a>>BigInt(32)&BigInt(4294967295));else{var b=+(a[0]==="-");I=H=0;for(var c=a.length,d=b,e=(c-b)%6+b;e<=c;d=e,e+=6)d=Number(a.slice(d,e)),I*=1E6,H=H*1E6+d,H>=4294967296&&(I+=v(Math,"trunc").call(Math,H/4294967296),I>>>=0,H>>>=0);b&&(b=x(Sb(H,I)),a=b.next().value,b=b.next().value,H=a,I=b)}return Vb()}function hc(a){a=v(Math,"trunc").call(Math,a);if(!v(Number,"isSafeInteger").call(Number,a)){Rb(a);var b=H,c=I;if(a=c&2147483648)b=~b+1>>>0,c=~c>>>0,b==0&&(c=c+1>>>0);b=c*4294967296+(b>>>0);a=a?-b:b}return a}function fc(a){a=v(Math,"trunc").call(Math,a);if(v(Number,"isSafeInteger").call(Number,a))a=String(a);else{var b=String(a);jc(b)?a=b:(Rb(a),a=Vb())}return a}function ec(a){var b=v(Math,"trunc").call(Math,Number(a));if(v(Number,"isSafeInteger").call(Number,b))return String(b);b=a.indexOf(".");b!==-1&&(a=a.substring(0,b));return gc(a)}function kc(a){if(typeof a!=="string")throw Error();return a}function K(a){if(a!=null&&typeof a!=="string")throw Error();return a}function lc(a){return a==null||typeof a==="string"?a:void 0}function mc(a,b,c,d){if(a!=null&&typeof a==="object"&&a.ha===rb)return a;if(!Array.isArray(a))return c?d&2?nc(b):new b:void 0;var e=c=D(a);e===0&&(e|=d&32);e|=d&2;e!==c&&F(a,e);return new b(a)}function nc(a){var b=a[jb];if(b)return b;b=new a;nb(b.i,34);return a[jb]=b};var vc=function(a){oc===void 0&&(oc=typeof Proxy==="function"?pc(Proxy):null);if(!oc||!qc())return a;var b=rc(a);if(b)return b;if(Math.random()>.01)return a;sc(a);b=new oc(a,{set:function(c,d,e){tc();c[d]=e;return!0}});uc(a,b);return b};function tc(){cb()}var wc=void 0,xc=void 0,rc=function(a){var b;return(b=wc)==null?void 0:b.get(a)},yc=function(a){var b;return((b=xc)==null?void 0:b.get(a))||a};function uc(a,b){(wc||(wc=new zc)).set(a,b);(xc||(xc=new zc)).set(b,a)}var oc=void 0,zc=void 0;function qc(){zc===void 0&&(zc=typeof t.WeakMap==="function"?pc(t.WeakMap):null);return zc}function pc(a){try{return a.toString().indexOf("[native code]")!==-1?a:null}catch(b){return null}}var Ac=void 0;function sc(a){if(Ac===void 0){var b=new oc([],{});Ac=Array.prototype.concat.call([],b).length===1}Ac&&typeof t.Symbol==="function"&&t.Symbol.isConcatSpreadable&&(a[t.Symbol.isConcatSpreadable]=!0)}var Fc=function(a,b,c){if(Fa&&qc()){if(Bc(a,b)){if(c)return}else if(Math.random()>.01)return;var d=a.length;c={length:d};for(var e=0;e<Math.min(d,10);e++){if(d<=10)var f=e;else{f=d/10;var g=Math.floor(e*f);f=g+Math.floor(Math.random()*(Math.floor((e+1)*f)-g))}c[f]=a[f]}Cc(a,c)?(d=Dc||(Dc=new zc),e=d.get(b),e||(e=new zc,d.set(b,e)),e.set(a,c)):(cb(),Ec(a,b))}},Hc=function(a,b){var c=Bc(a,b);c&&!Cc(a,c)&&(Gc(),Ec(a,b))};function Cc(a,b){if(a.length!==b.length)return!1;for(var c in b){var d=Number(c),e;if(e=Object.prototype.hasOwnProperty.call(b,c)&&v(Number,"isInteger").call(Number,d))e=a[d],d=b[d],e=!(v(Number,"isNaN").call(Number,e)?v(Number,"isNaN").call(Number,d):e===d);if(e)return!1}return!0}var Ic=function(a){var b;if(a&&(b=Dc)!=null&&b.has(a)&&(b=a.i))for(var c=0;c<b.length;c++){var d=b[c];if(c===b.length-1&&ub(d))for(var e in d){if(Object.prototype.hasOwnProperty.call(d,e)){var f=d[e];Array.isArray(f)&&Hc(f,a)}}else Array.isArray(d)&&Hc(d,a)}};function Gc(){cb()}var Dc=void 0;function Bc(a,b){var c,d;return(c=Dc)==null?void 0:(d=c.get(b))==null?void 0:d.get(a)}var Ec=function(a,b){var c,d;(c=Dc)==null||(d=c.get(b))==null||d.delete(a)};var Jc;function Kc(a,b){Jc=b;a=new a(b);Jc=void 0;return a}function L(a,b,c){a==null&&(a=Jc);Jc=void 0;if(a==null){var d=96;c?(a=[c],d|=512):a=[];b&&(d=d&-33521665|(b&1023)<<15)}else{if(!Array.isArray(a))throw Error("narr");d=D(a);if(d&2048)throw Error("farr");if(d&64)return a;d|=64;if(c&&(d|=512,c!==a[0]))throw Error("mid");a:{c=a;var e=c.length;if(e){var f=e-1;if(ub(c[f])){d|=256;b=f-(+!!(d&512)-1);if(b>=1024)throw Error("pvtlmt");d=d&-33521665|(b&1023)<<15;break a}}if(b){b=Math.max(b,e-(+!!(d&512)-1));if(b>1024)throw Error("spvt");d=d&-33521665|(b&1023)<<15}}}F(a,d);return a};function Lc(a,b){return Mc(b)}function Mc(a){switch(typeof a){case "number":return isFinite(a)?a:String(a);case "bigint":return Pb(a)?Number(a):String(a);case "boolean":return a?1:0;case "object":if(a)if(Array.isArray(a)){if(vb(a))return}else if(Wa&&a!=null&&a instanceof Uint8Array){if(Xa){for(var b="",c=0,d=a.length-10240;c<d;)b+=String.fromCharCode.apply(null,a.subarray(c,c+=10240));b+=String.fromCharCode.apply(null,c?a.subarray(c):a);a=btoa(b)}else{b===void 0&&(b=0);Va();b=Pa[b];c=Array(Math.floor(a.length/3));d=b[64]||"";for(var e=0,f=0;e<a.length-2;e+=3){var g=a[e],h=a[e+1],k=a[e+2],l=b[g>>2];g=b[(g&3)<<4|h>>4];h=b[(h&15)<<2|k>>6];k=b[k&63];c[f++]=l+g+h+k}l=0;k=d;switch(a.length-e){case 2:l=a[e+1],k=b[(l&15)<<2]||d;case 1:a=a[e],c[f]=b[a>>2]+b[(a&3)<<4|l>>4]+k+d}a=c.join("")}return a}}return a};function Nc(a,b,c){a=fb(a);var d=a.length,e=b&256?a[d-1]:void 0;d+=e?-1:0;for(b=b&512?1:0;b<d;b++)a[b]=c(a[b]);if(e){b=a[b]={};for(var f in e)Object.prototype.hasOwnProperty.call(e,f)&&(b[f]=c(e[f]))}return a}function Oc(a,b,c,d,e){if(a!=null){if(Array.isArray(a))a=vb(a)?void 0:e&&D(a)&2?a:Pc(a,b,c,d!==void 0,e);else if(ub(a)){var f={},g;for(g in a)Object.prototype.hasOwnProperty.call(a,g)&&(f[g]=Oc(a[g],b,c,d,e));a=f}else a=b(a,d);return a}}function Pc(a,b,c,d,e){var f=d||c?D(a):0;d=d?!!(f&32):void 0;a=fb(a);for(var g=0;g<a.length;g++)a[g]=Oc(a[g],b,c,d,e);c&&c(f,a);return a}function Qc(a){return a.ha===rb?a.toJSON():Mc(a)};function Rc(a,b,c){c=c===void 0?qb:c;if(a!=null){if(Wa&&a instanceof Uint8Array)return b?a:new Uint8Array(a);if(Array.isArray(a)){var d=D(a);if(d&2)return a;b&&(b=d===0||!!(d&32)&&!(d&64||!(d&16)));return b?(F(a,(d|34)&-12293),a):Pc(a,Rc,d&4?qb:c,!0,!0)}a.ha===rb&&(c=a.i,d=E(c),a=d&2?a:Sc(a,c,d,!0));return a}}function Sc(a,b,c,d){Ic(a);return Kc(a.constructor,Tc(b,c,d))}function Tc(a,b,c){var d=c||b&2?qb:pb,e=!!(b&32);a=Nc(a,b,function(f){return Rc(f,e,d)});nb(a,32|(c?2:0));return a}function Uc(a){var b=a.i,c=E(b);return c&2?Sc(a,b,c,!1):a};function Vc(a,b,c,d){if(!(4&b))return!0;if(c==null)return!1;!d&&c===0&&(4096&b||8192&b)&&(a.constructor[mb]=(a.constructor[mb]|0)+1)<5&&cb();return c===0?!1:!(c&b)}var M=function(a,b){a=a.i;return Wc(a,E(a),b)};function Xc(a,b,c,d){b=d+(+!!(b&512)-1);if(!(b<0||b>=a.length||b>=c))return a[b]}var Wc=function(a,b,c,d){if(c===-1)return null;var e=b>>15&1023||536870912;if(c>=e){if(b&256)return a[a.length-1][c]}else{var f=a.length;if(d&&b&256&&(d=a[f-1][c],d!=null)){if(Xc(a,b,e,c)&&kb!=null){var g;a=(g=Za)!=null?g:Za={};g=a[kb]||0;g>=4||(a[kb]=g+1,cb())}return d}return Xc(a,b,e,c)}},O=function(a,b,c){var d=a.i,e=E(d);yb(e);N(d,e,b,c);return a};function N(a,b,c,d){var e=b>>15&1023||536870912;if(c>=e){var f=b;if(b&256)var g=a[a.length-1];else{if(d==null)return f;g=a[e+(+!!(b&512)-1)]={};f|=256}g[c]=d;c<e&&(a[c+(+!!(b&512)-1)]=void 0);f!==b&&F(a,f);return f}a[c+(+!!(b&512)-1)]=d;b&256&&(a=a[a.length-1],c in a&&delete a[c]);return b}var P=function(a){return a===zb?2:5};function Yc(a,b,c,d,e,f){var g=a.i,h=E(g);d=2&h?1:d;f=!!f;e=Zc(g,h,b,e);var k=D(e),l=e;Hc(l,a);d!==2&&d!==1||Ec(l,a);if(Vc(a,k,void 0,f)){if(4&k||Object.isFrozen(e))e=fb(e),k=$c(k,h),h=N(g,h,b,e);for(var q=l=0;l<e.length;l++){var r=c(e[l]);r!=null&&(e[q++]=r)}q<l&&(e.length=q);k=ad(k,h);k=(k|20)&-4097;k&=-8193;F(e,k);2&k&&Object.freeze(e)}if(d===1||d===4&&32&k)bd(k)||(a=k,k|=2,k!==a&&F(e,k),Object.freeze(e));else if(c=d!==5?!1:!!(32&k)||bd(k)||!!rc(e),(d===2||c)&&bd(k)&&(e=fb(e),k=$c(k,h),k=cd(k,h,f),F(e,k),h=N(g,h,b,e)),bd(k)||(b=k,k=cd(k,h,f),k!==b&&F(e,k)),c){var m=vc(e);Fc(e,a,!0)}else if(d===2&&!f){var p;(p=wc)==null||p.delete(e)}return m||e}function Zc(a,b,c,d){a=Wc(a,b,c,d);return Array.isArray(a)?a:wb}function ad(a,b){a===0&&(a=$c(a,b));return a|1}function bd(a){return!!(2&a)&&!!(4&a)||!!(2048&a)}function dd(a,b,c,d){var e=a.i,f=E(e);yb(f);if(c==null)return N(e,f,b),a;c=yc(c);var g=D(c),h=g,k=!!(2&g)||Object.isFrozen(c),l=!k&&(void 0===Ab||!1);if(Vc(a,g)){g=21;k&&(c=fb(c),h=0,g=$c(g,f),g=cd(g,f,!0));for(var q=0;q<c.length;q++)c[q]=d(c[q])}l?(c=fb(c),h=0,g=$c(g,f),g=cd(g,f,!0)):k||Fc(c,a);g!==h&&F(c,g);N(e,f,b,c);return a}function Q(a,b,c,d){var e=a.i,f=E(e);yb(f);N(e,f,b,(d==="0"?Number(c)===0:c===d)?void 0:c);return a}var R=function(a,b,c,d){var e=a.i,f=E(e);yb(f);if(d==null){var g=ed(e);if(fd(g,e,f,c)===b)g.set(c,0);else return a}else{g=ed(e);var h=fd(g,e,f,c);h!==b&&(h&&(f=N(e,f,h)),g.set(c,b))}N(e,f,b,d);return a},hd=function(a,b,c){return gd(a,b)===c?c:-1},gd=function(a,b){a=a.i;return fd(ed(a),a,E(a),b)};function ed(a){if(gb){var b;return(b=a[lb])!=null?b:a[lb]=new t.Map}if(lb in a)return a[lb];b=new t.Map;Object.defineProperty(a,lb,{value:b});return b}function fd(a,b,c,d){var e=a.get(d);if(e!=null)return e;for(var f=e=0;f<d.length;f++){var g=d[f];Wc(b,c,g)!=null&&(e!==0&&(c=N(b,c,e)),e=g)}a.set(d,e);return e}var jd=function(a){var b=id;a=a.i;var c=E(a);yb(c);var d=Wc(a,c,4);b=Uc(mc(d,b,!0,c));d!==b&&N(a,c,4,b);return b};function kd(a,b,c){a=a.i;var d=E(a),e=Wc(a,d,c,!1);b=mc(e,b,!1,d);b!==e&&b!=null&&N(a,d,c,b);return b}var ld=function(a,b,c){return(a=kd(a,b,c))?a:nc(b)},S=function(a,b,c){b=kd(a,b,c);if(b==null)return b;a=a.i;var d=E(a);if(!(d&2)){var e=Uc(b);e!==b&&(b=e,N(a,d,c,b))}return b};function md(a,b,c,d,e,f,g){var h=a.i,k=!!(2&b);e=k?1:e;f=!!f;g&&(g=!k);k=Zc(h,b,d);var l=D(k),q=k;Hc(q,a);e!==2&&e!==1||Ec(q,a);q=!!(4&l);if(!q){l=ad(l,b);var r=k,m=b,p=!!(2&l);p&&(m|=2);for(var u=!p,A=!0,C=0,la=0;C<r.length;C++){var Ta=mc(r[C],c,!1,m);if(Ta instanceof c){if(!p){var Ua=!!(D(Ta.i)&2);u&&(u=!Ua);A&&(A=Ua)}r[la++]=Ta}}la<C&&(r.length=la);l|=4;l=A?l|16:l&-17;l=u?l|8:l&-9;F(r,l);p&&Object.freeze(r)}if(g&&!(8&l||!k.length&&(e===1||e===4&&32&l))){bd(l)?(k=fb(k),l=$c(l,b),b=N(h,b,d,k)):Ec(k,a);c=k;g=l;for(r=0;r<c.length;r++)l=c[r],m=Uc(l),l!==m&&(c[r]=m);g|=8;g=c.length?g&-17:g|16;F(c,g);l=g}if(e===1||e===4&&32&l)bd(l)||(a=l,l|=!k.length||16&l&&(!q||32&l)?2:2048,l!==a&&F(k,l),Object.freeze(k));else if(q=e!==5?!1:!!(32&l)||bd(l)||!!rc(k),(e===2||q)&&bd(l)&&(k=fb(k),l=$c(l,b),l=cd(l,b,f),F(k,l),b=N(h,b,d,k)),bd(l)||(d=l,l=cd(l,b,f),l!==d&&F(k,l)),q){var ch=vc(k);Fc(k,a,!0)}else if(e===2&&!f){var De;(De=wc)==null||De.delete(k)}return ch||k}var T=function(a,b,c,d){var e=E(a.i);return md(a,e,b,c,d,!1,!(2&e))},nd=function(a,b,c){c==null&&(c=void 0);return O(a,b,c)},od=function(a,b,c,d){d==null&&(d=void 0);return R(a,b,c,d)},pd=function(a,b,c){var d=a.i,e=E(d);yb(e);if(c==null)return N(d,e,b),a;c=yc(c);for(var f=D(c),g=f,h=!!(2&f)||!!(2048&f),k=h||Object.isFrozen(c),l=!k&&(void 0===Ab||!1),q=!0,r=!0,m=0;m<c.length;m++){var p=c[m];h||(p=!!(D(p.i)&2),q&&(q=!p),r&&(r=p))}h||(f|=5,f=q?f|8:f&-9,f=r?f|16:f&-17);l||k&&f!==g?(c=fb(c),g=0,f=$c(f,e),f=cd(f,e,!0)):k||Fc(c,a);f!==g&&F(c,f);N(d,e,b,c);return a};function $c(a,b){a=(2&b?a|2:a&-3)|32;return a&=-2049}function cd(a,b,c){32&b&&c||(a&=-33);return a}function qd(a,b){var c=rd;yb(E(a.i));a=c(a,4,2,void 0,!0);c=D(a);c=4&c?4096&c?4096:8192&c?8192:0:void 0;c=c!=null?c:0;if(Array.isArray(b)){b=yc(b);for(var d=b.length,e=0;e<d;e++)a.push(kc(b[e],c))}else for(b=x(b),d=b.next();!d.done;d=b.next())a.push(kc(d.value,c))}function sd(a,b){return a!=null?a:b}var td=function(a,b){a=M(a,b);return a==null?a:v(Number,"isFinite").call(Number,a)?a|0:void 0},ud=function(a,b){var c=c===void 0?!1:c;a=M(a,b);return sd(a==null||typeof a==="boolean"?a:typeof a==="number"?!!a:void 0,c)},vd=function(a,b){var c=c===void 0?0:c;return sd(bc(M(a,b)),c)},wd=function(a,b){var c=c===void 0?0:c;return sd(cc(M(a,b)),c)},xd=function(a,b){var c=c===void 0?0:c;a=M(a,b);a!=null&&(typeof a==="bigint"?Pb(a)?a=Number(a):(a=BigInt.asIntN(64,a),a=Pb(a)?Number(a):String(a)):a=Zb(a)?typeof a==="number"?hc(a):ec(a):void 0);return sd(a,c)},yd=function(a,b){var c=c===void 0?0:c;a=a.i;var d=E(a),e=Wc(a,d,b);var f=e==null||typeof e==="number"?e:e==="NaN"||e==="Infinity"||e==="-Infinity"?Number(e):void 0;f!=null&&f!==e&&N(a,d,b,f);return sd(f,c)},U=function(a,b){var c=c===void 0?"":c;return sd(lc(M(a,b)),c)},V=function(a,b){var c=0;c=c===void 0?0:c;return sd(td(a,b),c)},rd=function(a,b,c,d,e){return Yc(a,b,lc,c,d,e)},zd=function(a,b,c){return V(a,hd(a,c,b))};var Ad,W=function(a,b,c){this.i=L(a,b,c)};W.prototype.toJSON=function(){return Bd(this)};var Cd=function(a){try{return Ad=!0,JSON.stringify(Bd(a),Lc)}finally{Ad=!1}};W.prototype.ha=rb;function Bd(a){Ic(a);a=Ad?a.i:Pc(a.i,Qc,void 0,void 0,!1);var b=!Ad,c=a.length;if(c){var d=a[c-1],e=ub(d);e?c--:d=void 0;var f=a;if(e){b:{var g=d;var h={};e=!1;if(g)for(var k in g)if(Object.prototype.hasOwnProperty.call(g,k))if(isNaN(+k))h[k]=g[k];else{var l=g[k];Array.isArray(l)&&(vb(l)||tb(l)&&l.size===0)&&(l=null);l==null&&(e=!0);l!=null&&(h[k]=l)}if(e){for(var q in h)break b;h=null}else h=g}g=h==null?d!=null:h!==d}for(;c>0;c--){k=f[c-1];if(!(k==null||vb(k)||tb(k)&&k.size===0))break;var r=!0}if(f!==a||g||r){if(!b)f=Array.prototype.slice.call(f,0,c);else if(r||g||h)f.length=c;h&&f.push(h)}r=f}else r=a;return r};function Dd(a){return function(b){if(b==null||b=="")b=new a;else{b=JSON.parse(b);if(!Array.isArray(b))throw Error("dnarr");nb(b,32);b=Kc(a,b)}return b}};var Ed=function(a){this.i=L(a)};y(Ed,W);var Fd=function(a){this.i=L(a)};y(Fd,W);var Gd=Dd(Fd);var Hd=function(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}};var Id=function(a,b,c){a.addEventListener&&a.addEventListener(b,c,!1)};var Ld=function(a,b){this.g=a===Jd&&b||"";this.j=Kd};Ld.prototype.toString=function(){return this.g};var Kd={},Jd={};var Md;function Nd(){Md===void 0&&(Md=null);return Md};var Od=function(a){this.g=a};Od.prototype.toString=function(){return this.g+""};function Pd(a){var b=Nd();return new Od(b?b.createScriptURL(a):a)}function Qd(a){if(a instanceof Od)return a.g;throw Error("")};var Rd=function(a){this.g=a};Rd.prototype.toString=function(){return this.g+""};function Sd(a,b){b=b===void 0?{}:b;a=Qd(a).toString();a='<script src="'+Td(a)+'"';b.async&&(a+=" async");b.Ma&&(a+=' custom-element="'+Td(b.Ma)+'"');b.defer&&(a+=" defer");b.id&&(a+=' id="'+Td(b.id)+'"');b.nonce&&(a+=' nonce="'+Td(b.nonce)+'"');b.type&&(a+=' type="'+Td(b.type)+'"');b.Aa&&(a+=' crossorigin="'+Td(b.Aa)+'"');b=a+">\x3c/script>";a=Nd();return new Rd(a?a.createHTML(b):b)}function Td(a){return a.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")};function Ud(a){var b=ua.apply(1,arguments);if(b.length===0)return Pd(a[0]);for(var c=a[0],d=0;d<b.length;d++)c+=encodeURIComponent(b[d])+a[d+1];return Pd(c)}function Vd(a,b){a=Qd(a).toString();var c=a.split(/[?#]/),d=/[?]/.test(a)?"?"+c[1]:"";return Wd(c[0],d,/[#]/.test(a)?"#"+(d?c[2]:c[1]):"",b)}function Wd(a,b,c,d){function e(g,h){g!=null&&(Array.isArray(g)?g.forEach(function(k){return e(k,h)}):(b+=f+encodeURIComponent(h)+"="+encodeURIComponent(g),f="&"))}var f=b.length?"&":"?";d.constructor===Object&&(d=v(Object,"entries").call(Object,d));Array.isArray(d)?d.forEach(function(g){return e(g[1],g[0])}):d.forEach(e);return Pd(a+b+c)};function Xd(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b};function Yd(a){var b,c;return(a=(c=(b=a.document).querySelector)==null?void 0:c.call(b,"script[nonce]"))?a.nonce||a.getAttribute("nonce")||"":""};function Zd(a,b){a.src=Qd(b);(b=Yd(a.ownerDocument&&a.ownerDocument.defaultView||window))&&a.setAttribute("nonce",b)};function $d(a,b){var c=a.write;if(b instanceof Rd)b=b.g;else throw Error("");c.call(a,b)};var ae=function(){return Ea&&Ga?!Ga.mobile&&(B("iPad")||B("Android")||B("Silk")):B("iPad")||B("Android")&&!B("Mobile")||B("Silk")};var be=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),ce=function(a){return a?decodeURI(a):a},de=/#|$/,ee=function(a,b){var c=a.search(de);a:{var d=0;for(var e=b.length;(d=a.indexOf(b,d))>=0&&d<c;){var f=a.charCodeAt(d-1);if(f==38||f==63)if(f=a.charCodeAt(d+e),!f||f==61||f==38||f==35)break a;d+=e+1}d=-1}if(d<0)return null;e=a.indexOf("&",d);if(e<0||e>c)e=c;d+=b.length+1;return decodeURIComponent(a.slice(d,e!==-1?e:0).replace(/\+/g," "))};var fe=function(a){try{var b;if(b=!!a&&a.location.href!=null)a:{try{Na(a.foo);b=!0;break a}catch(c){}b=!1}return b}catch(c){return!1}},ge=function(a){var b=b===void 0?!1:b;var c=c===void 0?z:c;for(var d=0;c&&d++<40&&(!b&&!fe(c)||!a(c));)a:{try{var e=c.parent;if(e&&e!=c){c=e;break a}}catch(f){}c=null}},he=function(a){var b=a;ge(function(c){b=c;return!1});return b},ie=function(a){return fe(a.top)?a.top:null},je=function(){if(!t.globalThis.crypto)return Math.random();try{var a=new Uint32Array(1);t.globalThis.crypto.getRandomValues(a);return a[0]/65536/65536}catch(b){return Math.random()}},ke=function(a,b){if(a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&b(a[c],c,a)},le=function(a){var b=a.length;if(b==0)return 0;for(var c=305419896,d=0;d<b;d++)c^=(c<<5)+(c>>2)+a.charCodeAt(d)&4294967295;return c>0?c:4294967296+c},me=Hd(function(){return(Ea&&Ga?Ga.mobile:!ae()&&(B("iPod")||B("iPhone")||B("Android")||B("IEMobile")))?2:ae()?1:0});function ne(a,b){if(a.length&&b.head){a=x(a);for(var c=a.next();!c.done;c=a.next())if((c=c.value)&&b.head){var d=oe("META");b.head.appendChild(d);d.httpEquiv="origin-trial";d.content=c}}}var pe=function(a){if(typeof a.goog_pvsid!=="number")try{var b=Object,c=b.defineProperty,d=void 0;d=d===void 0?Math.random:d;var e=Math.floor(d()*4503599627370496);c.call(b,a,"goog_pvsid",{value:e,configurable:!1})}catch(f){}return Number(a.goog_pvsid)||-1},oe=function(a,b){b=b===void 0?document:b;return b.createElement(String(a).toLowerCase())};var qe={pb:0,ob:1,lb:2,gb:3,mb:4,hb:5,nb:6,jb:7,kb:8,fb:9,ib:10,qb:11};var re={sb:0,tb:1,rb:2};var se=function(a){this.i=L(a)};y(se,W);se.prototype.getVersion=function(){return vd(this,2)};function te(a){return Sa(a.length%4!==0?a+"A":a).map(function(b){return(n=b.toString(2),v(n,"padStart")).call(n,8,"0")}).join("")}function ue(a){if(!/^[0-1]+$/.test(a))throw Error("Invalid input ["+a+"] not a bit string.");return parseInt(a,2)}function ve(a){if(!/^[0-1]+$/.test(a))throw Error("Invalid input ["+a+"] not a bit string.");for(var b=[1,2,3,5],c=0,d=0;d<a.length-1;d++)b.length<=d&&b.push(b[d-1]+b[d-2]),c+=parseInt(a[d],2)*b[d];return c};function we(a){var b=te(a),c=ue(b.slice(0,6));a=ue(b.slice(6,12));var d=new se;c=Q(d,1,ac(c),0);a=Q(c,2,ac(a),0);b=b.slice(12);c=ue(b.slice(0,12));d=[];for(var e=b.slice(12).replace(/0+$/,""),f=0;f<c;f++){if(e.length===0)throw Error("Found "+f+" of "+c+" sections ["+d+"] but reached end of input ["+b+"]");var g=ue(e[0])===0;e=e.slice(1);var h=xe(e,b),k=d.length===0?0:d[d.length-1];k=ve(h)+k;e=e.slice(h.length);if(g)d.push(k);else{g=xe(e,b);h=ve(g);for(var l=0;l<=h;l++)d.push(k+l);e=e.slice(g.length)}}if(e.length>0)throw Error("Found "+c+" sections ["+d+"] but has remaining input ["+e+"], entire input ["+b+"]");return dd(a,3,d,$b)}function xe(a,b){var c=a.indexOf("11");if(c===-1)throw Error("Expected section bitstring but not found in ["+a+"] part of ["+b+"]");return a.slice(0,c+2)};var ye="a".charCodeAt(),ze=Xd(qe),Ae=Xd(re);var Be=function(a){this.i=L(a)};y(Be,W);var Ce=function(){var a=new Be;return Q(a,1,ic(0),"0")},Ee=function(a){var b=Number;var c=c===void 0?"0":c;var d=M(a,1);var e=!0;e=e===void 0?!1:e;var f=typeof d;d=d==null?d:f==="bigint"?String(BigInt.asIntN(64,d)):Zb(d)?f==="string"?ec(d):e?fc(d):hc(d):void 0;b=b(sd(d,c));a=vd(a,2);return new Date(b*1E3+a/1E6)};var Fe=function(a){if(/[^01]/.test(a))throw Error("Input bitstring "+a+" is malformed!");this.j=a;this.g=0},Ie=function(a){var b=X(a,16);return!!X(a,1)===!0?(a=Ge(a),a.forEach(function(c){if(c>b)throw Error("ID "+c+" is past MaxVendorId "+b+"!")}),a):He(a,b)},Ge=function(a){for(var b=X(a,12),c=[];b--;){var d=!!X(a,1)===!0,e=X(a,16);if(d)for(d=X(a,16);e<=d;e++)c.push(e);else c.push(e)}c.sort(function(f,g){return f-g});return c},He=function(a,b,c){for(var d=[],e=0;e<b;e++)if(X(a,1)){var f=e+1;if(c&&c.indexOf(f)===-1)throw Error("ID: "+f+" is outside of allowed values!");d.push(f)}return d},X=function(a,b){if(a.g+b>a.j.length)throw Error("Requested length "+b+" is past end of string.");var c=a.j.substring(a.g,a.g+b);a.g+=b;return parseInt(c,2)};Fe.prototype.skip=function(a){this.g+=a};var Ke=function(a){try{var b=Sa(a.split(".")[0]).map(function(d){return(n=d.toString(2),v(n,"padStart")).call(n,8,"0")}).join(""),c=new Fe(b);b={};b.tcString=a;b.gdprApplies=!0;c.skip(78);b.cmpId=X(c,12);b.cmpVersion=X(c,12);c.skip(30);b.tcfPolicyVersion=X(c,6);b.isServiceSpecific=!!X(c,1);b.useNonStandardStacks=!!X(c,1);b.specialFeatureOptins=Je(He(c,12,Ae),Ae);b.purpose={consents:Je(He(c,24,ze),ze),legitimateInterests:Je(He(c,24,ze),ze)};b.purposeOneTreatment=!!X(c,1);b.publisherCC=String.fromCharCode(ye+X(c,6))+String.fromCharCode(ye+X(c,6));b.vendor={consents:Je(Ie(c),null),legitimateInterests:Je(Ie(c),null)};return b}catch(d){return null}},Je=function(a,b){var c={};if(Array.isArray(b)&&b.length!==0){b=x(b);for(var d=b.next();!d.done;d=b.next())d=d.value,c[d]=a.indexOf(d)!==-1}else for(a=x(a),b=a.next();!b.done;b=a.next())c[b.value]=!0;delete c[0];return c};var Le=function(a){this.i=L(a)};y(Le,W);var Me=function(a,b){var c=c===void 0?{}:c;this.error=a;this.context=b.context;this.msg=b.message||"";this.id=b.id||"jserror";this.meta=c};function Ne(a,b,c,d){d=d===void 0?!1:d;a.google_image_requests||(a.google_image_requests=[]);var e=oe("IMG",a.document);if(c){var f=function(){if(c){var g=a.google_image_requests,h=Array.prototype.indexOf.call(g,e,void 0);h>=0&&Array.prototype.splice.call(g,h,1)}e.removeEventListener&&e.removeEventListener("load",f,!1);e.removeEventListener&&e.removeEventListener("error",f,!1)};Id(e,"load",f);Id(e,"error",f)}d&&(e.attributionSrc="");e.src=b;a.google_image_requests.push(e)}var Pe=function(a){var b=b===void 0?!1:b;var c="https://pagead2.googlesyndication.com/pagead/gen_204?id=rcs_internal";ke(a,function(d,e){if(d||d===0)c+="&"+e+"="+encodeURIComponent(""+d)});Oe(c,b)},Oe=function(a,b){var c=window;b=b===void 0?!1:b;var d=d===void 0?!1:d;c.fetch?(b={keepalive:!0,credentials:"include",redirect:"follow",method:"get",mode:"no-cors"},d&&(b.mode="cors","setAttributionReporting"in XMLHttpRequest.prototype?b.attributionReporting={eventSourceEligible:"true",triggerEligible:"false"}:b.headers={"Attribution-Reporting-Eligible":"event-source"}),c.fetch(a,b)):Ne(c,a,b===void 0?!1:b,d===void 0?!1:d)};function Qe(a,b){try{var c=function(d){var e={};return[(e[d.ja]=d.ga,e)]};return JSON.stringify([a.filter(function(d){return d.U}).map(c),Bd(b),a.filter(function(d){return!d.U}).map(c)])}catch(d){return Re(d,b),""}}function Re(a,b){try{var c=a instanceof Error?a:Error(String(a)),d=c.toString();c.name&&d.indexOf(c.name)==-1&&(d+=": "+c.name);c.message&&d.indexOf(c.message)==-1&&(d+=": "+c.message);if(c.stack)a:{var e=c.stack;a=d;try{e.indexOf(a)==-1&&(e=a+"\n"+e);for(var f;e!=f;)f=e,e=e.replace(RegExp("((https?:/..*/)[^/:]*:\\d+(?:.|\n)*)\\2"),"$1");d=e.replace(RegExp("\n *","g"),"\n");break a}catch(g){d=a;break a}d=void 0}Pe({m:d,b:V(b,1)||null,v:U(b,2)||null})}catch(g){}}var Se=function(a,b){var c=new Le;a=Q(c,1,J(a),0);b=Q(a,2,K(b),"");a=b.i;c=E(a);this.l=c&2?b:Sc(b,a,c,!0)};var Te=function(a){this.i=L(a)};y(Te,W);var Ve=function(a,b){return R(a,3,Ue,b==null?b:Xb(b))},Ue=[1,2,3];var We=function(a){this.i=L(a)};y(We,W);var Xe=[2,4];var Ye=function(a){this.i=L(a)};y(Ye,W);var Ze=function(a){var b=new Ye;return Q(b,1,K(a),"")},$e=function(a,b){var c=E(a.i);yb(c);c=md(a,c,Te,4,2,!0);b=b!=null?b:new Te;c.push(b);D(b.i)&2?ob(c,8):ob(c,16);return a};var af=function(a){this.i=L(a)};y(af,W);var bf=function(a){this.i=L(a)};y(bf,W);var cf=function(a,b){return Q(a,1,J(b),0)},df=function(a,b){return Q(a,2,J(b),0)};var ef=function(a){this.i=L(a)};y(ef,W);var ff=[1,2];var gf=function(a){this.i=L(a)};y(gf,W);var hf=function(a,b){return nd(a,1,b)},jf=function(a,b){return pd(a,2,b)},kf=function(a,b){return dd(a,4,b,$b)},lf=function(a,b){return pd(a,5,b)},mf=function(a,b){return Q(a,6,J(b),0)};var nf=function(a){this.i=L(a)};y(nf,W);var of=[1,2,3,4,6];var pf=function(a){this.i=L(a)};y(pf,W);var qf=function(a){this.i=L(a)};y(qf,W);var rf=[2,3,4];var sf=function(a){this.i=L(a)};y(sf,W);var tf=[3,4,5],uf=[6,7];var vf=function(a){this.i=L(a)};y(vf,W);var wf=[4,5];var xf=function(a){this.i=L(a)};y(xf,W);var zf=function(a){var b=new xf;return od(b,4,yf,a)},yf=[4,5,7,8,9];var Af=function(a){this.i=L(a)};y(Af,W);var Bf=function(a){this.i=L(a)};y(Bf,W);var Cf=function(a){this.i=L(a)};y(Cf,W);var Df=function(a){this.i=L(a)};y(Df,W);var Ef=[1,7],Ff=[4,6,8];var Hf=function(a){this.g=a;this.eb=new Gf(this.g)},Gf=function(a){this.g=a;this.Ra=new If(this.g)},If=function(a){this.g=a;this.outstream=new Jf;this.request=new Kf;this.threadYield=new Lf;this.Sa=new Mf(this.g);this.Ua=new Nf(this.g)},Mf=function(a){this.g=a};Mf.prototype.ba=function(a){var b=this.g,c=b.J,d=$e($e(Ze("JwITQ"),Ve(new Te,a.da)),Ve(new Te,a.fa)),e=new We;a=R(e,2,Xe,ic(Math.round(a.ia)));d=nd(d,3,a);c.call(b,d)};var Nf=function(a){this.g=a};Nf.prototype.ba=function(a){var b=this.g,c=b.J,d=$e($e(Ze("Pn3Upd"),Ve(new Te,a.da)),Ve(new Te,a.fa)),e=new We;a=R(e,2,Xe,ic(Math.round(a.ia)));d=nd(d,3,a);c.call(b,d)};var Jf=function(){},Kf=function(){},Lf=function(){this.latency=new Of},Of=function(){},Pf=function(){Se.apply(this,arguments);this.Xa=new Hf(this)};y(Pf,Se);var Qf=function(){Pf.apply(this,arguments)};y(Qf,Pf);Qf.prototype.cb=function(){this.o.apply(this,ka(ua.apply(0,arguments).map(function(a){return{U:!0,ja:2,ga:Bd(a)}})))};Qf.prototype.V=function(){this.o.apply(this,ka(ua.apply(0,arguments).map(function(a){return{U:!0,ja:4,ga:Bd(a)}})))};Qf.prototype.J=function(){this.o.apply(this,ka(ua.apply(0,arguments).map(function(a){return{U:!1,ja:1,ga:Bd(a)}})))};var Rf=function(a,b){if(t.globalThis.fetch)t.globalThis.fetch(a,{method:"POST",body:b,keepalive:b.length<65536,credentials:"omit",mode:"no-cors",redirect:"follow"}).catch(function(){});else{var c=new XMLHttpRequest;c.open("POST",a,!0);c.send(b)}};var Sf=function(a,b,c,d,e,f,g,h){Qf.call(this,a,b);this.P=c;this.O=d;this.R=e;this.M=f;this.N=g;this.A=h;this.g=[];this.j=null;this.I=!1};y(Sf,Qf);var Tf=function(a){a.j!==null&&(clearTimeout(a.j),a.j=null);if(a.g.length){var b=Qe(a.g,a.l);a.O(a.P+"?e=1",b);a.g=[]}};Sf.prototype.o=function(){var a=ua.apply(0,arguments),b=this;try{this.N&&Qe(this.g.concat(a),this.l).length>=65536&&Tf(this),this.A&&!this.I&&(this.I=!0,this.A.g(function(){Tf(b)})),this.g.push.apply(this.g,ka(a)),this.g.length>=this.M&&Tf(this),this.g.length&&this.j===null&&(this.j=setTimeout(function(){Tf(b)},this.R))}catch(c){Re(c,this.l)}};var Uf=function(a,b,c,d,e,f){Sf.call(this,a,b,"https://pagead2.googlesyndication.com/pagead/ping",Rf,c===void 0?1E3:c,d===void 0?100:d,(e===void 0?!1:e)&&!!t.globalThis.fetch,f)};y(Uf,Sf);var Vf=function(a,b){this.g=a;this.defaultValue=b===void 0?!1:b},Wf=function(a,b){this.g=a;this.defaultValue=b===void 0?0:b};var Xf=new Vf(501898423),Yf=new Vf(665538976,!0),Zf=new Vf(45624259),$f=new Wf(635239304,100),ag=new Vf(662101539),bg=new Wf(24),cg=new function(a,b){b=b===void 0?[]:b;this.g=a;this.defaultValue=b}(1934,["AlK2UR5SkAlj8jjdEc9p3F3xuFYlF6LYjAML3EOqw1g26eCwWPjdmecULvBH5MVPoqKYrOfPhYVL71xAXI1IBQoAAAB8eyJvcmlnaW4iOiJodHRwczovL2RvdWJsZWNsaWNrLm5ldDo0NDMiLCJmZWF0dXJlIjoiV2ViVmlld1hSZXF1ZXN0ZWRXaXRoRGVwcmVjYXRpb24iLCJleHBpcnkiOjE3NTgwNjcxOTksImlzU3ViZG9tYWluIjp0cnVlfQ==","Amm8/NmvvQfhwCib6I7ZsmUxiSCfOxWxHayJwyU1r3gRIItzr7bNQid6O8ZYaE1GSQTa69WwhPC9flq/oYkRBwsAAACCeyJvcmlnaW4iOiJodHRwczovL2dvb2dsZXN5bmRpY2F0aW9uLmNvbTo0NDMiLCJmZWF0dXJlIjoiV2ViVmlld1hSZXF1ZXN0ZWRXaXRoRGVwcmVjYXRpb24iLCJleHBpcnkiOjE3NTgwNjcxOTksImlzU3ViZG9tYWluIjp0cnVlfQ==","A9uiHDzQFAhqALUhTgTYJcz9XrGH2y0/9AORwCSapUO/f7Uh7ysIzyszNkuWDLqNYg8446Uj48XIstBW1qv/wAQAAACNeyJvcmlnaW4iOiJodHRwczovL2RvdWJsZWNsaWNrLm5ldDo0NDMiLCJmZWF0dXJlIjoiRmxlZGdlQmlkZGluZ0FuZEF1Y3Rpb25TZXJ2ZXIiLCJleHBpcnkiOjE3Mjc4MjcxOTksImlzU3ViZG9tYWluIjp0cnVlLCJpc1RoaXJkUGFydHkiOnRydWV9","A9R+gkZL3TWq+Z7RJ2L0c7ZN7FZD5z4mHmVvjrPitg/EMz9P3j5d3W7Vw5ZR9jtJGmWKltM4BO3smNzpCgwYuwwAAACTeyJvcmlnaW4iOiJodHRwczovL2dvb2dsZXN5bmRpY2F0aW9uLmNvbTo0NDMiLCJmZWF0dXJlIjoiRmxlZGdlQmlkZGluZ0FuZEF1Y3Rpb25TZXJ2ZXIiLCJleHBpcnkiOjE3Mjc4MjcxOTksImlzU3ViZG9tYWluIjp0cnVlLCJpc1RoaXJkUGFydHkiOnRydWV9"]);var dg=function(a){this.i=L(a)};y(dg,W);var eg=function(a){this.i=L(a)};y(eg,W);var fg=function(a){this.i=L(a)};y(fg,W);var gg=function(a){this.i=L(a)};y(gg,W);var hg=Dd(gg);var ig=function(a){this.g=a||{cookie:""}};ig.prototype.set=function(a,b,c){var d=!1;if(typeof c==="object"){var e=c.wb;d=c.xb||!1;var f=c.domain||void 0;var g=c.path||void 0;var h=c.Wa}if(/[;=\s]/.test(a))throw Error('Invalid cookie name "'+a+'"');if(/[;\r\n]/.test(b))throw Error('Invalid cookie value "'+b+'"');h===void 0&&(h=-1);this.g.cookie=a+"="+b+(f?";domain="+f:"")+(g?";path="+g:"")+(h<0?"":h==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+h*1E3)).toUTCString())+(d?";secure":"")+(e!=null?";samesite="+e:"")};ig.prototype.get=function(a,b){for(var c=a+"=",d=(this.g.cookie||"").split(";"),e=0,f;e<d.length;e++){f=Ba(d[e]);if(f.lastIndexOf(c,0)==0)return f.slice(c.length);if(f==a)return""}return b};ig.prototype.isEmpty=function(){return!this.g.cookie};ig.prototype.clear=function(){for(var a=(this.g.cookie||"").split(";"),b=[],c=[],d,e,f=0;f<a.length;f++)e=Ba(a[f]),d=e.indexOf("="),d==-1?(b.push(""),c.push(e)):(b.push(e.substring(0,d)),c.push(e.substring(d+1)));for(a=b.length-1;a>=0;a--)c=b[a],this.get(c),this.set(c,"",{Wa:0,path:void 0,domain:void 0})};function jg(a){a=kg(a);try{var b=a?hg(a):null}catch(c){b=null}return b?S(b,fg,4)||null:null}function kg(a){a=(new ig(a)).get("FCCDCF","");if(a)if(v(a,"startsWith").call(a,"%"))try{var b=decodeURIComponent(a)}catch(c){b=null}else b=a;else b=null;return b};Xd(qe).map(function(a){return Number(a)});Xd(re).map(function(a){return Number(a)});var lg=function(a){this.g=a},ng=function(a){a.__tcfapiPostMessageReady||mg(new lg(a))},mg=function(a){a.j=function(b){var c=typeof b.data==="string";try{var d=c?JSON.parse(b.data):b.data}catch(f){return}var e=d.__tcfapiCall;e&&(e.command==="ping"||e.command==="addEventListener"||e.command==="removeEventListener")&&(0,a.g.__tcfapi)(e.command,e.version,function(f,g){var h={};h.__tcfapiReturn=e.command==="removeEventListener"?{success:f,callId:e.callId}:{returnValue:f,success:g,callId:e.callId};f=c?JSON.stringify(h):h;b.source&&typeof b.source.postMessage==="function"&&b.source.postMessage(f,b.origin);return f},e.parameter)};a.g.addEventListener("message",a.j);a.g.__tcfapiPostMessageReady=!0};var og=function(a){this.g=a;this.j=null},qg=function(a){a.__uspapiPostMessageReady||pg(new og(a))},pg=function(a){a.j=function(b){var c=typeof b.data==="string";try{var d=c?JSON.parse(b.data):b.data}catch(f){return}var e=d.__uspapiCall;e&&e.command==="getUSPData"&&a.g.__uspapi(e.command,e.version,function(f,g){var h={};h.__uspapiReturn={returnValue:f,success:g,callId:e.callId};f=c?JSON.stringify(h):h;b.source&&typeof b.source.postMessage==="function"&&b.source.postMessage(f,b.origin);return f})};a.g.addEventListener("message",a.j);a.g.__uspapiPostMessageReady=!0};var rg=function(a){this.i=L(a)};y(rg,W);var sg=function(a){this.i=L(a)};y(sg,W);var tg=Dd(sg);function ug(a,b,c){function d(m){if(m.length<10)return null;var p=k(m.slice(0,4));p=l(p);m=k(m.slice(6,10));m=q(m);return"1"+p+m+"N"}function e(m){if(m.length<10)return null;var p=k(m.slice(0,6));p=l(p);m=k(m.slice(6,10));m=q(m);return"1"+p+m+"N"}function f(m){if(m.length<12)return null;var p=k(m.slice(0,6));p=l(p);m=k(m.slice(8,12));m=q(m);return"1"+p+m+"N"}function g(m){if(m.length<18)return null;var p=k(m.slice(0,8));p=l(p);m=k(m.slice(12,18));m=q(m);return"1"+p+m+"N"}function h(m){if(m.length<10)return null;var p=k(m.slice(0,6));p=l(p);m=k(m.slice(6,10));m=q(m);return"1"+p+m+"N"}function k(m){for(var p=[],u=0,A=0;A<m.length/2;A++)p.push(ue(m.slice(u,u+2))),u+=2;return p}function l(m){return m.every(function(p){return p===1})?"Y":"N"}function q(m){return m.some(function(p){return p===1})?"Y":"N"}if(a.length===0)return null;a=a.split(".");if(a.length>2)return null;a=te(a[0]);var r=ue(a.slice(0,6));a=a.slice(6);if(r!==1)return null;switch(b){case 8:return d(a);case 10:case 12:case 9:return e(a);case 11:return f(a);case 7:return g(a);case 13:return c?h(a):null;default:return null}};function vg(a,b){var c=a.document,d=function(){if(!a.frames[b])if(c.body){var e=oe("IFRAME",c);e.style.display="none";e.style.width="0px";e.style.height="0px";e.style.border="none";e.style.zIndex="-1000";e.style.left="-1000px";e.style.top="-1000px";e.name=b;c.body.appendChild(e)}else a.setTimeout(d,5)};d()};var yg=function(a,b){this.g=a;this.o=b;b=kg(this.g.document);try{var c=b?hg(b):null}catch(e){c=null}(b=c)?(c=S(b,eg,5)||null,b=T(b,dg,7,P()),b=wg(b!=null?b:[]),c={ya:c,Ba:b}):c={ya:null,Ba:null};b=c;c=xg(this,b.Ba);b=b.ya;if(b!=null&&lc(M(b,2))!=null&&U(b,2).length!==0){var d=kd(b,Be,1)!==void 0?S(b,Be,1):Ce();b={uspString:U(b,2),Z:Ee(d)}}else b=null;this.l=b&&c?c.Z>b.Z?c.uspString:b.uspString:b?b.uspString:c?c.uspString:null;this.tcString=(c=jg(a.document))&&lc(M(c,1))!=null?U(c,1):null;this.j=(a=jg(a.document))&&lc(M(a,2))!=null?U(a,2):null},Cg=function(a){var b=zg(Yf);a!==a.top||a.__uspapi||a.frames.__uspapiLocator||(a=new yg(a,b),Ag(a),Bg(a))},Ag=function(a){!a.l||a.g.__uspapi||a.g.frames.__uspapiLocator||(a.g.__uspapiManager="fc",vg(a.g,"__uspapiLocator"),za("__uspapi",function(b,c,d){typeof d==="function"&&b==="getUSPData"&&d({version:1,uspString:a.l},!0)},a.g),qg(a.g))},wg=function(a){a=v(a,"find").call(a,function(b){return b&&V(b,1)===13});if(a==null?0:lc(M(a,2))!=null)try{return tg(U(a,2))}catch(b){}return null},xg=function(a,b){if(b==null||lc(M(b,1))==null||U(b,1).length===0||T(b,rg,2,P()).length===0)return null;var c=U(b,1);try{var d=we(c.split("~")[0]);var e=v(c,"includes").call(c,"~")?c.split("~").slice(1):[]}catch(f){return null}b=T(b,rg,2,P()).reduce(function(f,g){return xd(Dg(f),1)>xd(Dg(g),1)?f:g});d=Yc(d,3,bc,P()).indexOf(vd(b,1));return d===-1||d>=e.length?null:{uspString:ug(e[d],vd(b,1),a.o),Z:Ee(Dg(b))}},Dg=function(a){return kd(a,Be,2)!==void 0?S(a,Be,2):Ce()},Bg=function(a){!a.tcString||a.g.__tcfapi||a.g.frames.__tcfapiLocator||(a.g.__tcfapiManager="fc",vg(a.g,"__tcfapiLocator"),a.g.__tcfapiEventListeners=a.g.__tcfapiEventListeners||[],za("__tcfapi",function(b,c,d,e){if(typeof d==="function")if(c&&(c>2.2||c<=1))d(null,!1);else switch(c=a.g.__tcfapiEventListeners,b){case "ping":d({gdprApplies:!0,cmpLoaded:!0,cmpStatus:"loaded",displayStatus:"disabled",apiVersion:"2.2",cmpVersion:2,cmpId:300});break;case "addEventListener":b=c.push(d)-1;a.tcString?(e=Ke(a.tcString),e.addtlConsent=a.j!=null?a.j:void 0,e.cmpStatus="loaded",e.eventStatus="tcloaded",b!=null&&(e.listenerId=b),b=e):b=null;d(b,!0);break;case "removeEventListener":e!==void 0&&c[e]?(c[e]=null,d(!0)):d(!1);break;case "getInAppTCData":case "getVendorList":d(null,!1);break;case "getTCData":d(null,!1)}},a.g),ng(a.g))};var Eg=null;function Fg(a,b){var c=T(a,sf,2,P());if(!c.length)return Gg(a,b);a=V(a,1);if(a===1){var d=Fg(c[0],b);return d.success?{success:!0,value:!d.value}:d}c=La(c,function(h){return Fg(h,b)});switch(a){case 2:var e;return(e=(d=v(c,"find").call(c,function(h){return h.success&&!h.value}))!=null?d:v(c,"find").call(c,function(h){return!h.success}))!=null?e:{success:!0,value:!0};case 3:var f,g;return(g=(f=v(c,"find").call(c,function(h){return h.success&&h.value}))!=null?f:v(c,"find").call(c,function(h){return!h.success}))!=null?g:{success:!0,value:!1};default:return{success:!1,D:3}}}function Gg(a,b){var c=gd(a,tf);a:{switch(c){case 3:var d=zd(a,3,tf);break a;case 4:d=zd(a,4,tf);break a;case 5:d=zd(a,5,tf);break a}d=void 0}if(!d)return{success:!1,D:2};b=(b=b[c])&&b[d];if(!b)return{success:!1,L:d,S:c,D:1};try{var e=b.apply;var f=rd(a,8,P());var g=e.call(b,null,ka(f))}catch(h){return{success:!1,L:d,S:c,D:2}}e=V(a,1);if(e===4)return{success:!0,value:!!g};if(e===5)return{success:!0,value:g!=null};if(e===12)a=U(a,hd(a,uf,7));else a:{switch(c){case 4:a=yd(a,hd(a,uf,6));break a;case 5:a=U(a,hd(a,uf,7));break a}a=void 0}if(a==null)return{success:!1,L:d,S:c,D:3};if(e===6)return{success:!0,value:g===a};if(e===9)return{success:!0,value:g!=null&&Da(String(g),a)===0};if(g==null)return{success:!1,L:d,S:c,D:4};switch(e){case 7:c=g<a;break;case 8:c=g>a;break;case 12:c=Gb(a)&&Gb(g)&&(new RegExp(a)).test(g);break;case 10:c=g!=null&&Da(String(g),a)===-1;break;case 11:c=g!=null&&Da(String(g),a)===1;break;default:return{success:!1,D:3}}return{success:!0,value:c}}function Hg(a,b){return a?b?Fg(a,b):{success:!1,D:1}:{success:!0,value:!0}};var id=function(a){this.i=L(a)};y(id,W);var Ig=function(a){this.i=L(a)};y(Ig,W);Ig.prototype.getValue=function(){return S(this,id,2)};var Jg=function(a){this.i=L(a)};y(Jg,W);var Kg=Dd(Jg),Lg=[1,2,3,6,7,8];var Mg=function(a,b,c){var d=d===void 0?new Uf(6,"unknown",b):d;this.A=a;this.o=c;this.j=d;this.g=[];this.l=a>0&&je()<1/a},Og=function(a,b,c,d,e,f){if(a.l){var g=df(cf(new bf,b),c);b=mf(jf(hf(lf(kf(new gf,d),e),g),a.g.slice()),f);b=zf(b);a.j.V(Ng(a,b));if(f===1||f===3||f===4&&!a.g.some(function(h){return V(h,1)===V(g,1)&&V(h,2)===c}))a.g.push(g),a.g.length>100&&a.g.shift()}},Pg=function(a,b,c,d){if(a.l){var e=new af;b=O(e,1,ac(b));c=O(b,2,ac(c));d=O(c,3,J(d));c=new xf;d=od(c,8,yf,d);a.j.V(Ng(a,d))}},Qg=function(a,b,c,d,e){if(a.l){var f=new vf;b=nd(f,1,b);c=O(b,2,J(c));d=O(c,3,ac(d));if(e.S===void 0)R(d,4,wf,J(e.D));else switch(e.S){case 3:c=new qf;c=R(c,2,rf,J(e.L));e=O(c,1,J(e.D));od(d,5,wf,e);break;case 4:c=new qf;c=R(c,3,rf,J(e.L));e=O(c,1,J(e.D));od(d,5,wf,e);break;case 5:c=new qf,c=R(c,4,rf,J(e.L)),e=O(c,1,J(e.D)),od(d,5,wf,e)}e=new xf;e=od(e,9,yf,d);a.j.V(Ng(a,e))}},Ng=function(a,b){var c=Date.now();c=v(Number,"isFinite").call(Number,c)?Math.round(c):0;b=Q(b,1,ic(c),"0");c=pe(window);b=Q(b,2,ic(c),"0");return Q(b,6,ic(a.A),"0")};var G=function(a){var b="ca";if(a.ca&&a.hasOwnProperty(b))return a.ca;b=new a;return a.ca=b};var Rg=function(){var a={};this.C=(a[3]={},a[4]={},a[5]={},a)};var Sg=/^true$/.test("false");function Tg(a,b){switch(b){case 1:return zd(a,1,Lg);case 2:return zd(a,2,Lg);case 3:return zd(a,3,Lg);case 6:return zd(a,6,Lg);case 8:return zd(a,8,Lg);default:return null}}function Ug(a,b){if(!a)return null;switch(b){case 1:return ud(a,1);case 7:return U(a,3);case 2:return yd(a,2);case 3:return U(a,3);case 6:return rd(a,4,P());case 8:return rd(a,4,P());default:return null}}var Vg=Hd(function(){if(!Sg)return{};try{var a;var b=b===void 0?window:b;try{var c=b.sessionStorage}catch(e){c=null}var d=(a=c)==null?void 0:a.getItem("GGDFSSK");if(d)return JSON.parse(d)}catch(e){}return{}});function Wg(a,b,c,d){var e=d=d===void 0?0:d,f,g;G(Xg).l[e]=(g=(f=G(Xg).l[e])==null?void 0:f.add(b))!=null?g:(new t.Set).add(b);e=Vg();if(e[b]!=null)return e[b];b=Yg(d)[b];if(!b)return c;b=Kg(JSON.stringify(b));b=Zg(b);a=Ug(b,a);return a!=null?a:c}function Zg(a){var b=G(Rg).C;if(b&&gd(a,Lg)!==8){var c=Ma(T(a,Ig,5,P()),function(f){f=Hg(S(f,sf,1),b);return f.success&&f.value});if(c){var d;return(d=c.getValue())!=null?d:null}}var e;return(e=S(a,id,4))!=null?e:null}var Xg=function(){this.j={};this.o=[];this.l={};this.g=new t.Map};function $g(a,b,c){return!!Wg(1,a,b===void 0?!1:b,c)}function ah(a,b,c){b=b===void 0?0:b;a=Number(Wg(2,a,b,c));return isNaN(a)?b:a}function bh(a,b,c){b=b===void 0?"":b;a=Wg(3,a,b,c);return typeof a==="string"?a:b}function dh(a,b,c){b=b===void 0?[]:b;a=Wg(6,a,b,c);return Array.isArray(a)?a:b}function eh(a,b,c){b=b===void 0?[]:b;a=Wg(8,a,b,c);return Array.isArray(a)?a:b}function Yg(a){return G(Xg).j[a]||(G(Xg).j[a]={})}function fh(a,b){var c=Yg(b);ke(a,function(d,e){if(c[e]){d=Kg(JSON.stringify(d));if(td(d,hd(d,Lg,8))!=null){var f=Kg(JSON.stringify(c[e])),g=jd(d);f=rd(ld(f,id,4),4,P());qd(g,f)}c[e]=Bd(d)}else c[e]=d})}function gh(a,b,c,d,e){e=e===void 0?!1:e;var f=[],g=[];b=x(b);for(var h=b.next();!h.done;h=b.next()){h=h.value;for(var k=Yg(h),l=x(a),q=l.next();!q.done;q=l.next()){q=q.value;var r=gd(q,Lg),m=Tg(q,r);if(m){var p=void 0,u=void 0,A=void 0;var C=(p=(A=G(Xg).g.get(h))==null?void 0:(u=A.get(m))==null?void 0:u.slice(0))!=null?p:[];a:{p=m;u=r;A=new nf;switch(u){case 1:R(A,1,of,J(p));break;case 2:R(A,2,of,J(p));break;case 3:R(A,3,of,J(p));break;case 6:R(A,4,of,J(p));break;case 8:R(A,6,of,J(p));break;default:C=void 0;break a}dd(A,5,C,$b);C=A}if(p=C)u=void 0,p=!((u=G(Xg).l[h])==null||!u.has(m));p&&f.push(C);if(r===8&&k[m])C=Kg(JSON.stringify(k[m])),r=jd(q),C=rd(ld(C,id,4),4,P()),qd(r,C);else{if(r=C)p=void 0,r=!((p=G(Xg).g.get(h))==null||!p.has(m));r&&g.push(C)}e||(r=m,C=h,p=d,u=G(Xg),u.g.has(C)||u.g.set(C,new t.Map),u.g.get(C).has(r)||u.g.get(C).set(r,[]),p&&u.g.get(C).get(r).push(p));k[m]=Bd(q)}}}if(f.length||g.length)a=d!=null?d:void 0,c.l&&c.o&&(d=new pf,f=pd(d,2,f),g=pd(f,3,g),a&&Q(g,1,ac(a),0),f=new xf,g=od(f,7,yf,g),c.j.V(Ng(c,g)))}function hh(a,b){b=Yg(b);a=x(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=Kg(JSON.stringify(c)),e=gd(d,Lg);(d=Tg(d,e))&&(b[d]||(b[d]=c))}}function ih(){return v(Object,"keys").call(Object,G(Xg).j).map(function(a){return Number(a)})}function jh(a){(n=G(Xg).o,v(n,"includes")).call(n,a)||fh(Yg(4),a)};function Y(a,b,c){c.hasOwnProperty(a)||Object.defineProperty(c,String(a),{value:b})}function Z(a,b,c){return b[a]||c}function kh(a){Y(5,$g,a);Y(6,ah,a);Y(7,bh,a);Y(8,dh,a);Y(17,eh,a);Y(13,hh,a);Y(15,jh,a)}function lh(a){Y(4,function(b){G(Rg).C=b},a);Y(9,function(b,c){var d=G(Rg);d.C[3][b]==null&&(d.C[3][b]=c)},a);Y(10,function(b,c){var d=G(Rg);d.C[4][b]==null&&(d.C[4][b]=c)},a);Y(11,function(b,c){var d=G(Rg);d.C[5][b]==null&&(d.C[5][b]=c)},a);Y(14,function(b){for(var c=G(Rg),d=x([3,4,5]),e=d.next();!e.done;e=d.next())e=e.value,v(Object,"assign").call(Object,c.C[e],b[e])},a)}function mh(a){a.hasOwnProperty("init-done")||Object.defineProperty(a,"init-done",{value:!0})};var nh=function(){};nh.prototype.l=function(){};nh.prototype.j=function(){};nh.prototype.g=function(){return[]};var oh=function(a,b,c){a.j=function(d,e){Z(2,b,function(){return[]})(d,c,e)};a.g=function(){return Z(3,b,function(){return[]})(c)};a.l=function(d){Z(16,b,function(){})(d,c)}};function ph(a){G(nh).l(a)};function qh(a,b){try{var c=a.split(".");a=z;for(var d=0,e;a!=null&&d<c.length;d++)e=a,a=a[c[d]],typeof a==="function"&&(a=e[c[d]]());var f=a;if(typeof f===b)return f}catch(g){}}var rh={},sh={},th={},uh={},vh=(uh[3]=(rh[8]=function(a){try{return xa(a)!=null}catch(b){}},rh[9]=function(a){try{var b=xa(a)}catch(c){return}if(a=typeof b==="function")b=b&&b.toString&&b.toString(),a=typeof b==="string"&&b.indexOf("[native code]")!=-1;return a},rh[10]=function(){return window===window.top},rh[6]=function(a){var b=G(nh).g();return Array.prototype.indexOf.call(b,Number(a),void 0)>=0},rh[27]=function(a){a=qh(a,"boolean");return a!==void 0?a:void 0},rh[60]=function(a){try{return!!z.document.querySelector(a)}catch(b){}},rh[80]=function(a){try{return!!z.matchMedia(a).matches}catch(b){}},rh[69]=function(a){var b=z.document;b=b===void 0?document:b;var c;return!((c=b.featurePolicy)==null||!(n=c.features(),v(n,"includes")).call(n,a))},rh[70]=function(a){var b=z.document;b=b===void 0?document:b;var c;return!((c=b.featurePolicy)==null||!(n=c.allowedFeatures(),v(n,"includes")).call(n,a))},rh[79]=function(a){var b=z.navigator;b=b===void 0?navigator:b;try{var c,d;var e=!!((c=b.protectedAudience)==null?0:(d=c.queryFeatureSupport)==null?0:d.call(c,a))}catch(f){e=!1}return e},rh),uh[4]=(sh[3]=function(){return me()},sh[6]=function(a){a=qh(a,"number");return a!==void 0?a:void 0},sh),uh[5]=(th[2]=function(){return window.location.href},th[3]=function(){try{return window.top.location.hash}catch(a){return""}},th[4]=function(a){a=qh(a,"string");return a!==void 0?a:void 0},th),uh);function wh(){var a=a===void 0?z:a;return a.ggeac||(a.ggeac={})};var xh=function(a){this.i=L(a)};y(xh,W);xh.prototype.getId=function(){return vd(this,1)};var yh=function(a){this.i=L(a)};y(yh,W);var zh=function(a){return T(a,xh,2,P())};var Ah=function(a){this.i=L(a)};y(Ah,W);var Bh=function(a){this.i=L(a)};y(Bh,W);var Ch=function(a){this.i=L(a)};y(Ch,W);function Dh(a){var b={};return Eh((b[0]=new t.Map,b[1]=new t.Map,b[2]=new t.Map,b),a)}function Eh(a,b){for(var c=new t.Map,d=x(v(a[1],"entries").call(a[1])),e=d.next();!e.done;e=d.next()){var f=x(e.value);e=f.next().value;f=f.next().value;f=f[f.length-1];c.set(e,f.Ia+f.Ea*f.Fa)}b=x(b);for(d=b.next();!d.done;d=b.next())for(d=d.value,e=T(d,yh,2,P()),e=x(e),f=e.next();!f.done;f=e.next())if(f=f.value,zh(f).length!==0){var g=wd(f,8);if(V(f,4)&&!V(f,13)&&!V(f,14)){var h=void 0;g=(h=c.get(V(f,4)))!=null?h:0;h=wd(f,1)*zh(f).length;c.set(V(f,4),g+h)}h=[];for(var k=0;k<zh(f).length;k++){var l={Ia:g,Ea:wd(f,1),Fa:zh(f).length,Ya:k,T:V(d,1),W:f,G:zh(f)[k]};h.push(l)}Fh(a[2],V(f,10),h)||Fh(a[1],V(f,4),h)||Fh(a[0],zh(f)[0].getId(),h)}return a}function Fh(a,b,c){if(!b)return!1;a.has(b)||a.set(b,[]);var d;(d=a.get(b)).push.apply(d,ka(c));return!0};function Gh(a){a=a===void 0?je():a;return function(b){return le(b+" + "+a)%1E3}};var Hh=[12,13,20],Ih=function(a,b,c,d){d=d===void 0?{}:d;var e=d.aa===void 0?!1:d.aa;d=d.ab===void 0?[]:d.ab;this.K=a;this.B=c;this.o={};this.aa=e;a={};this.g=(a[b]=[],a[4]=[],a);this.j={};this.l={};var f;if(Eg===null){Eg="";try{b="";try{b=z.top.location.hash}catch(g){b=z.location.hash}b&&(Eg=(f=b.match(/\bdeid=([\d,]+)/))?f[1]:"")}catch(g){}}if(f=Eg)for(f=x(f.split(",")||[]),b=f.next();!b.done;b=f.next())(b=Number(b.value))&&(this.j[b]=!0);d=x(d);for(f=d.next();!f.done;f=d.next())this.j[f.value]=!0},Lh=function(a,b,c,d){var e=[],f;if(f=b!==9)a.o[b]?f=!0:(a.o[b]=!0,f=!1);if(f)return Og(a.B,b,c,e,[],4),e;f=v(Hh,"includes").call(Hh,b);for(var g=[],h=[],k=x([0,1,2]),l=k.next();!l.done;l=k.next()){l=l.value;for(var q=x(v(a.K[l],"entries").call(a.K[l])),r=q.next();!r.done;r=q.next()){var m=x(r.value);r=m.next().value;m=m.next().value;var p=r,u=m;r=new ef;m=u.filter(function(Ua){return Ua.T===b&&a.j[Ua.G.getId()]&&Jh(a,Ua)});if(m.length)for(r=x(m),m=r.next();!m.done;m=r.next())h.push(m.value.G);else if(!a.aa){m=void 0;l===2?(m=d[1],R(r,2,ff,J(p))):m=d[0];var A=void 0,C=void 0;m=(C=(A=m)==null?void 0:A(String(p)))!=null?C:l===2&&V(u[0].W,11)===1?void 0:d[0](String(p));if(m!==void 0){p=x(u);for(u=p.next();!u.done;u=p.next())if(u=u.value,u.T===b){A=m-u.Ia;var la=u;C=la.Ea;var Ta=la.Fa;la=la.Ya;A<0||A>=C*Ta||A%Ta!==la||!Jh(a,u)||(A=V(u.W,13),A!==0&&A!==void 0&&(C=a.l[String(A)],C!==void 0&&C!==u.G.getId()?Pg(a.B,a.l[String(A)],u.G.getId(),A):a.l[String(A)]=u.G.getId()),h.push(u.G))}gd(r,ff)!==0&&(Q(r,3,ac(m),0),g.push(r))}}}}d=x(h);for(h=d.next();!h.done;h=d.next())h=h.value,k=h.getId(),e.push(k),Kh(a,k,f?4:c),gh(T(h,Jg,2,P()),f?ih():[c],a.B,k);Og(a.B,b,c,e,g,1);return e},Kh=function(a,b,c){a.g[c]||(a.g[c]=[]);a=a.g[c];v(a,"includes").call(a,b)||a.push(b)},Jh=function(a,b){var c=G(Rg).C,d=Hg(S(b.W,sf,3),c);if(!d.success)return Qg(a.B,S(b.W,sf,3),b.T,b.G.getId(),d),!1;if(!d.value)return!1;c=Hg(S(b.G,sf,3),c);return c.success?c.value?!0:!1:(Qg(a.B,S(b.G,sf,3),b.T,b.G.getId(),c),!1)},Mh=function(a,b){b=b.map(function(c){return new Ah(c)}).filter(function(c){return!v(Hh,"includes").call(Hh,V(c,1))});a.K=Eh(a.K,b)},Nh=function(a,b){Y(1,function(c){a.j[c]=!0},b);Y(2,function(c,d,e){return Lh(a,c,d,e)},b);Y(3,function(c){return(a.g[c]||[]).concat(a.g[4])},b);Y(12,function(c){return void Mh(a,c)},b);Y(16,function(c,d){return void Kh(a,c,d)},b)};var Oh=function(){var a={};this.j=function(b,c){return a[b]!=null?a[b]:c};this.g=function(b,c){return a[b]!=null?a[b]:c};this.I=function(b,c){return a[b]!=null?a[b]:c};this.l=function(b,c){return a[b]!=null?a[b]:c};this.A=function(b,c){return a[b]!=null?c.concat(a[b]):c};this.o=function(){}};function zg(a){return G(Oh).j(a.g,a.defaultValue)};var Ph=function(){this.g=function(){}},Qh=function(a,b){a.g=Z(14,b,function(){})};function Rh(a){G(Ph).g(a)};var Sh,Th,Uh,Vh,Wh,Xh;function Yh(a){var b=a.Pa;var c=a.C;var d=a.config;var e=a.Ka===void 0?wh():a.Ka;var f=a.xa===void 0?0:a.xa;var g=a.B===void 0?new Mg((Vh=(Sh=S(b,Bh,5))==null?void 0:xd(Sh,2))!=null?Vh:0,(Wh=(Th=S(b,Bh,5))==null?void 0:xd(Th,4))!=null?Wh:0,(Xh=(Uh=S(b,Bh,5))==null?void 0:ud(Uh,3))!=null?Xh:!1):a.B;a=a.K===void 0?Dh(T(b,Ah,2,P(zb))):a.K;e.hasOwnProperty("init-done")?(Z(12,e,function(){})(T(b,Ah,2,P()).map(function(h){return Bd(h)})),Z(13,e,function(){})(T(b,Jg,1,P()).map(function(h){return Bd(h)}),f),c&&Z(14,e,function(){})(c),Zh(f,e)):(Nh(new Ih(a,f,g,d),e),kh(e),lh(e),mh(e),Zh(f,e),gh(T(b,Jg,1,P(zb)),[f],g,void 0,!0),Sg=Sg||!(!d||!d.ea),Rh(vh),c&&Rh(c))}function Zh(a,b){var c=b=b===void 0?wh():b;oh(G(nh),c,a);$h(b,a);a=b;Qh(G(Ph),a);G(Oh).o()}function $h(a,b){var c=G(Oh);c.j=function(d,e){return Z(5,a,function(){return!1})(d,e,b)};c.g=function(d,e){return Z(6,a,function(){return 0})(d,e,b)};c.I=function(d,e){return Z(7,a,function(){return""})(d,e,b)};c.l=function(d,e){return Z(8,a,function(){return[]})(d,e,b)};c.A=function(d,e){return Z(17,a,function(){return[]})(d,e,b)};c.o=function(){Z(15,a,function(){})(b)}};var ai=ja(["https://pagead2.googlesyndication.com/pagead/js/err_rep.js"]),bi=function(){var a=a===void 0?"jserror":a;var b=b===void 0?.01:b;var c=c===void 0?Ud(ai):c;this.l=a;this.j=b;this.g=c};function ci(a){a=a===void 0?z:a;return(a=a.performance)&&a.now?a.now():null};var di=function(a,b){b=b.google_js_reporting_queue=b.google_js_reporting_queue||[];b.length<2048&&b.push(a)},ei=function(a,b){var c=ci(b);c&&di({label:a,type:9,value:c},b)},fi=function(a,b,c){var d=!1;d=d===void 0?!1:d;var e=window,f=typeof queueMicrotask!=="undefined";return function(){d&&f&&queueMicrotask(function(){e.google_rum_task_id_counter=e.google_rum_task_id_counter||1;e.google_rum_task_id_counter+=1});var g=ci(),h=3;try{var k=b.apply(this,arguments)}catch(l){h=13;if(!c)throw l;c(a,l)}finally{e.google_measure_js_timing&&g&&di(v(Object,"assign").call(Object,{},{label:a.toString(),value:g,duration:(ci()||0)-g,type:h},d&&f&&{taskId:e.google_rum_task_id_counter=e.google_rum_task_id_counter||1}),e)}return k}},gi=function(a,b){return fi(a,b,function(c,d){var e=new bi;var f=f===void 0?e.j:f;var g=g===void 0?e.l:g;Math.random()>f||(d.error&&d.meta&&d.id||(d=new Me(d,{context:c,id:g})),z.google_js_errors=z.google_js_errors||[],z.google_js_errors.push(d),z.error_rep_loaded||(f=z.document,c=oe("SCRIPT",f),Zd(c,e.g),(e=f.getElementsByTagName("script")[0])&&e.parentNode&&e.parentNode.insertBefore(c,e),z.error_rep_loaded=!0))})};function hi(a,b){return b==null?"&"+a+"=null":"&"+a+"="+Math.floor(b)}function ii(a,b){return"&"+a+"="+b.toFixed(3)}function ji(){var a=new t.Set;var b=window.googletag;b=(b==null?0:b.apiReady)?b:void 0;try{if(!b)return a;for(var c=b.pubads(),d=x(c.getSlots()),e=d.next();!e.done;e=d.next())a.add(e.value.getSlotId().getDomId())}catch(f){}return a}function ki(a){a=a.id;return a!=null&&(ji().has(a)||v(a,"startsWith").call(a,"google_ads_iframe_")||v(a,"startsWith").call(a,"aswift"))}function li(a,b,c){if(!a.sources)return!1;switch(mi(a)){case 2:var d=ni(a);if(d)return c.some(function(f){return oi(d,f)});break;case 1:var e=pi(a);if(e)return b.some(function(f){return oi(e,f)})}return!1}function mi(a){if(!a.sources)return 0;a=a.sources.filter(function(b){return b.previousRect&&b.currentRect});if(a.length>=1){a=a[0];if(a.previousRect.top<a.currentRect.top)return 2;if(a.previousRect.top>a.currentRect.top)return 1}return 0}function pi(a){return qi(a,function(b){return b.currentRect})}function ni(a){return qi(a,function(b){return b.previousRect})}function qi(a,b){return a.sources.reduce(function(c,d){d=b(d);return c?d&&d.width*d.height!==0?d.top<c.top?d:c:c:d},null)}function oi(a,b){var c=Math.min(a.right,b.right)-Math.max(a.left,b.left);a=Math.min(a.bottom,b.bottom)-Math.max(a.top,b.top);return c<=0||a<=0?!1:100*c*a/((b.right-b.left)*(b.bottom-b.top))>=50}var ri=function(){var a={za:!0};a=a===void 0?{za:!1}:a;this.l=this.j=this.R=this.O=this.J=0;this.ta=this.qa=Number.NEGATIVE_INFINITY;this.g=[];this.M={};this.na=0;this.P=Infinity;this.la=this.oa=this.pa=this.ra=this.wa=this.A=this.va=this.Y=this.o=0;this.ma=!1;this.X=this.N=this.I=0;this.B=null;this.sa=!1;this.ka=function(){};var b=document.querySelector("[data-google-query-id]");this.ua=b?b.getAttribute("data-google-query-id"):null;this.Ja=a},si,ti,wi=function(){var a=new ri;if(zg(ag)){var b=window;if(!b.google_plmetrics&&window.PerformanceObserver){b.google_plmetrics=!0;b=["layout-shift","largest-contentful-paint","first-input","longtask"];a.Ja.za&&b.push("event");b=x(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d={type:c,buffered:!0};c==="event"&&(d.durationThreshold=40);ui(a).observe(d)}vi(a)}}},ui=function(a){a.B||(a.B=new PerformanceObserver(gi(640,function(b){xi(a,b)})));return a.B},vi=function(a){var b=gi(641,function(){var d=document;(d.prerendering?3:{visible:1,hidden:2,prerender:3,preview:4,unloaded:5}[d.visibilityState||d.webkitVisibilityState||d.mozVisibilityState||""]||0)===2&&yi(a)}),c=gi(641,function(){return void yi(a)});document.addEventListener("visibilitychange",b);document.addEventListener("pagehide",c);a.ka=function(){document.removeEventListener("visibilitychange",b);document.removeEventListener("pagehide",c);ui(a).disconnect()}},yi=function(a){if(!a.sa){a.sa=!0;ui(a).takeRecords();var b="https://pagead2.googlesyndication.com/pagead/gen_204?id=plmetrics";window.LayoutShift&&(b+=ii("cls",a.J),b+=ii("mls",a.O),b+=hi("nls",a.R),window.LayoutShiftAttribution&&(b+=ii("cas",a.A),b+=hi("nas",a.ra),b+=ii("was",a.wa)),b+=ii("wls",a.Y),b+=ii("tls",a.va));window.LargestContentfulPaint&&(b+=hi("lcp",a.pa),b+=hi("lcps",a.oa));window.PerformanceEventTiming&&a.ma&&(b+=hi("fid",a.la));window.PerformanceLongTaskTiming&&(b+=hi("cbt",a.I),b+=hi("mbt",a.N),b+=hi("nlt",a.X));for(var c=0,d=x(document.getElementsByTagName("iframe")),e=d.next();!e.done;e=d.next())ki(e.value)&&c++;b+=hi("nif",c);c=window.google_unique_id;b+=hi("ifi",typeof c==="number"?c:0);c=G(nh).g();b+="&eid="+encodeURIComponent(c.join());b+="&top="+(z===z.top?1:0);b+=a.ua?"&qqid="+encodeURIComponent(a.ua):hi("pvsid",pe(z));window.googletag&&(b+="&gpt=1");c=Math.min(a.g.length-1,Math.floor((a.B?a.na:performance.interactionCount||0)/50));c>=0&&(c=a.g[c].latency,c>=0&&(b+=hi("inp",c)));window.fetch(b,{keepalive:!0,credentials:"include",redirect:"follow",method:"get",mode:"no-cors"});a.ka()}},zi=function(a,b,c,d){if(!b.hadRecentInput){a.J+=Number(b.value);Number(b.value)>a.O&&(a.O=Number(b.value));a.R+=1;if(c=li(b,c,d))a.A+=b.value,a.ra++;if(b.startTime-a.qa>5E3||b.startTime-a.ta>1E3)a.qa=b.startTime,a.j=0,a.l=0;a.ta=b.startTime;a.j+=b.value;c&&(a.l+=b.value);a.j>a.Y&&(a.Y=a.j,a.wa=a.l,a.va=b.startTime+b.duration)}},xi=function(a,b){var c=si!==window.scrollX||ti!==window.scrollY?[]:Ai,d=Bi();b=x(b.getEntries());for(var e=b.next(),f={};!e.done;f={F:void 0},e=b.next())switch(f.F=e.value,e=f.F.entryType,e){case "layout-shift":zi(a,f.F,c,d);break;case "largest-contentful-paint":f=f.F;a.pa=Math.floor(f.renderTime||f.loadTime);a.oa=f.size;break;case "first-input":e=f.F;a.la=Number((e.processingStart-e.startTime).toFixed(3));a.ma=!0;a.g.some(function(g){return function(h){return v(h,"entries").some(function(k){return g.F.duration===k.duration&&g.F.startTime===k.startTime})}}(f))||Ci(a,f.F);break;case "longtask":f=Math.max(0,f.F.duration-50);a.I+=f;a.N=Math.max(a.N,f);a.X+=1;break;case "event":Ci(a,f.F);break;default:Wb(e)}},Ci=function(a,b){Di(a,b);var c=a.g[a.g.length-1],d=a.M[b.interactionId];if(d||a.g.length<10||b.duration>c.latency)d?(v(d,"entries").push(b),d.latency=Math.max(d.latency,b.duration)):(b={id:b.interactionId,latency:b.duration,entries:[b]},a.M[b.id]=b,a.g.push(b)),a.g.sort(function(e,f){return f.latency-e.latency}),a.g.splice(10).forEach(function(e){delete a.M[e.id]})},Di=function(a,b){b.interactionId&&(a.P=Math.min(a.P,b.interactionId),a.o=Math.max(a.o,b.interactionId),a.na=a.o?(a.o-a.P)/7+1:0)},Bi=function(){var a=v(Array,"from").call(Array,document.getElementsByTagName("iframe")).filter(ki),b=[].concat(ka(ji())).map(function(c){return document.getElementById(c)}).filter(function(c){return c!==null});si=window.scrollX;ti=window.scrollY;return Ai=[].concat(ka(a),ka(b)).map(function(c){return c.getBoundingClientRect()})},Ai=[];var Ei=function(a){this.i=L(a)};y(Ei,W);Ei.prototype.getVersion=function(){return U(this,2)};var Fi=function(a){this.i=L(a)};y(Fi,W);var Gi=function(a,b){return O(a,2,K(b))},Hi=function(a,b){return O(a,3,K(b))},Ii=function(a,b){return O(a,4,K(b))},Ji=function(a,b){return O(a,5,K(b))},Ki=function(a,b){return O(a,9,K(b))},Li=function(a,b){return pd(a,10,b)},Mi=function(a,b){return O(a,11,b==null?b:Xb(b))},Ni=function(a,b){return O(a,1,K(b))},Oi=function(a,b){return O(a,7,b==null?b:Xb(b))};var Pi="platform platformVersion architecture model uaFullVersion bitness fullVersionList wow64".split(" ");function Qi(a){var b;return(b=a.google_tag_data)!=null?b:a.google_tag_data={}}function Ri(a){var b,c;return typeof((b=a.navigator)==null?void 0:(c=b.userAgentData)==null?void 0:c.getHighEntropyValues)==="function"}function Si(a){if(!Ri(a))return null;var b=Qi(a);if(b.uach_promise)return b.uach_promise;a=a.navigator.userAgentData.getHighEntropyValues(Pi).then(function(c){b.uach!=null||(b.uach=c);return c});return b.uach_promise=a}function Ti(a){var b;return Mi(Li(Ji(Gi(Ni(Ii(Oi(Ki(Hi(new Fi,a.architecture||""),a.bitness||""),a.mobile||!1),a.model||""),a.platform||""),a.platformVersion||""),a.uaFullVersion||""),((b=a.fullVersionList)==null?void 0:b.map(function(c){var d=new Ei;d=O(d,1,K(c.brand));return O(d,2,K(c.version))}))||[]),a.wow64||!1)}function Ui(a){var b,c;return(c=(b=Si(a))==null?void 0:b.then(function(d){return Ti(d)}))!=null?c:null};function Vi(a,b){var c={};b=(c[0]=Gh(b.Za),c);G(nh).j(a,b)};var Wi={},Xi=(Wi[253]=!1,Wi[246]=[],Wi[150]="",Wi[221]=!1,Wi[263]=!1,Wi[36]=/^true$/.test("false"),Wi[264]=!1,Wi[172]=null,Wi[260]=void 0,Wi[251]=null,Wi),Cb=function(){this.g=!1};function Yi(a){G(Cb).g=!0;return Xi[a]}function Zi(a,b){G(Cb).g=!0;Xi[a]=b};var $i=/^(?:https?:)?\/\/(?:www\.googletagservices\.com|securepubads\.g\.doubleclick\.net|(pagead2\.googlesyndication\.com))(\/tag\/js\/gpt(?:_[a-z]+)*\.js)/;function aj(a){var b=a.Ca;var c=a.Va;var d=a.Ha;var e=a.Ta;var f=a.Oa;var g=a.Qa;var h=b?!$i.test(b.src):!0;a={};b={};var k={};return k[3]=(a[3]=function(){return!h},a[59]=function(){var l=ua.apply(0,arguments),q=v(l,"includes"),r=String,m;var p=p===void 0?window:p;var u;p=(u=(m=ce(p.location.href.match(be)[3]||null))==null?void 0:m.split("."))!=null?u:[];m=p.length<2?null:p[p.length-1]==="uk"?p.length<3?null:le(p.splice(p.length-3).join(".")):le(p.splice(p.length-2).join("."));return q.call(l,r(m))},a[61]=function(){return e},a[63]=function(){return e||g===".google.ch"},a[73]=function(l){return v(d,"includes").call(d,Number(l))},a),k[4]=(b[1]=function(){return f},b[13]=function(){return c||0},b),k[5]={},k};function bj(a,b){var c=new Ch(Yi(246));if(!T(c,Jg,1,P()).length&&T(a,Jg,1,P()).length){var d=T(a,Jg,1,P());pd(c,1,d)}!T(c,Ah,2,P()).length&&T(a,Ah,2,P()).length&&(d=T(a,Ah,2,P()),pd(c,2,d));kd(c,Bh,5)===void 0&&kd(a,Bh,5)!==void 0&&(a=S(a,Bh,5),nd(c,5,a));Yh({Pa:c,C:aj(b),xa:2,config:{ea:b.ea}});b.Ha.forEach(ph)};function cj(a,b,c,d,e){a=a.location.host;var f=ee(b.src,"domain");b=ee(b.src,"network-code");if(a||f||b){var g={};a&&(g.ippd=a);f&&(g.pppd=f);b&&(g.pppnc=b);a=g}else a=void 0;if(a){c=[c?new Ld(Jd,"https://pagead2.googlesyndication.com"):new Ld(Jd,"https://securepubads.g.doubleclick.net"),new Ld(Jd,"/pagead/ppub_config")];f="";for(b=0;b<c.length;b++)g=c[b],f+=g instanceof Ld&&g.constructor===Ld&&g.j===Kd?g.g:"type_error:Const";c=Pd(f);c=Vd(c,new t.Map(v(Object,"entries").call(Object,a)));dj(c,d,e)}else e(new t.globalThis.Error("no provided or inferred data"))}function dj(a,b,c){var d=new t.globalThis.XMLHttpRequest;d.open("GET",a.toString(),!0);d.withCredentials=!1;d.onload=function(){d.status<300?(ei("13",window),b(d.status===204?"":d.responseText)):c(new t.globalThis.Error("resp:"+d.status))};d.onerror=function(){return void c(new t.globalThis.Error("s:"+d.status+" rs:"+d.readyState))};d.send()};var ej=function(){this.o=[];this.l=[]},hj=function(a,b,c,d,e){if(he(b)===ie(b)&&c){var f=e==null?void 0:U(ld(e,Ed,1),1);(f==null?0:f.length)&&v(b.location.hostname,"includes").call(b.location.hostname,f)?(fj(a),gj(a,void 0,e)):(n=["http:","https:"],v(n,"includes")).call(n,b.location.protocol)&&(fj(a),cj(b.top,c,d,function(g){return void gj(a,g)},function(g){gj(a,void 0,void 0,g)}))}},fj=function(a){Yi(260);Zi(260,function(b){a.g!==void 0||a.j?b(a.g,a.j):a.o.push(b)})},gj=function(a,b,c,d){a.g=b!=null?b:c==null?void 0:Cd(c);a.A=c;!a.A&&a.g&&a.l.length&&(a.A=Gd(a.g));a.j=d;b=x(a.o);for(c=b.next();!c.done;c=b.next())c=c.value,c(a.g,a.j);b=x(a.l);for(c=b.next();!c.done;c=b.next())c=c.value,c(a.A,a.j);a.o.length=0;a.l.length=0};var ij=function(a){this.i=L(a)};y(ij,W);var jj=Dd(ij);var lj=function(){return[].concat(ka(v(kj,"values").call(kj))).reduce(function(a,b){return a+b},0)},kj=new t.Map;function mj(a,b,c){if(a.bb){c=c.error&&c.meta&&c.id?c.error:c;var d=new Df,e=new Cf;try{var f=pe(window);Q(e,1,ic(f),"0")}catch(m){}try{var g=G(nh).g();dd(e,2,g,$b)}catch(m){}try{Q(e,3,K(window.document.URL),"")}catch(m){}f=nd(d,2,e);g=new Bf;b=Q(g,1,J(b),0);try{var h=Gb(c==null?void 0:c.name)?c.name:"Unknown error";Q(b,2,K(h),"")}catch(m){}try{var k=Gb(c==null?void 0:c.message)?c.message:"Caught "+c;Q(b,3,K(k),"")}catch(m){}try{var l=Gb(c==null?void 0:c.stack)?c.stack:Error().stack;l&&dd(b,4,l.split(/\n\s*/),kc)}catch(m){}h=od(f,1,Ef,b);k=new Af;try{Q(k,1,K(a.Da),"")}catch(m){}try{var q=lj();Q(k,2,ac(q),0)}catch(m){}try{var r=[].concat(ka(v(kj,"keys").call(kj)));dd(k,3,r,kc)}catch(m){}od(h,4,Ff,k);Q(h,5,ic(a.Na),"0");a.Ga.cb(h)}};function nj(a,b){try{var c=Db;if(!Gb(a)){var d,e,f=(e=(d=typeof c==="function"?c():c)==null?void 0:d.concat("\n"))!=null?e:"";throw Error(f+String(a))}return jj(a)}catch(g){return mj(b,838,g),new ij}};function oj(){var a;return(a=z.googletag)!=null?a:z.googletag={cmd:[]}}function pj(a,b){var c=oj();c.hasOwnProperty(a)||(c[a]=b)};var qj=ja(["https://pagead2.googlesyndication.com/pagead/managed/js/gpt/","/pubads_impl.js"]),rj=ja(["https://securepubads.g.doubleclick.net/pagead/managed/js/gpt/","/pubads_impl.js"]);function sj(){var a=sttc,b=tj();ab(function(u){mj(b,1189,u)});var c=oj();a=nj(a,b);Bb();v(Object,"assign").call(Object,Xi,c._vars_);c._vars_=Xi;a&&(ud(a,3)&&Zi(36,!0),ud(a,5)&&Zi(221,!0),U(a,6)&&Zi(150,U(a,6)),ud(a,12)&&Zi(263,!0));var d=ld(a,Ch,1),e={Ta:ud(a,5),Va:vd(a,2),Ha:Yc(a,10,bc,P(zb)),Oa:vd(a,7),Qa:U(a,6),ea:ud(a,4)};a=S(a,Fd,9);var f,g=(f=c.fifWin)!=null?f:window,h=g.document;f=c.fifWin?window:g;pj("_loaded_",!0);pj("cmd",[]);var k,l=(k=uj(h))!=null?k:vj(h);wj(d,g,v(Object,"assign").call(Object,{},{Ca:l},e),b);try{wi()}catch(u){}ei("1",g);k=xj(b,l);d=(l==null?void 0:l.crossOrigin)==="anonymous";e=G(Oh).g($f.g,$f.defaultValue);e>0&&b.La<1/e&&(g=b.Ga.Xa.eb.Ra,g.Ua.ba({ia:e,da:(l==null?void 0:l.crossOrigin)==="anonymous",fa:yj(l)}),g.Sa.ba({ia:e,da:d,fa:ce(k.toString().match(be)[3]||null)==="pagead2.googlesyndication.com"}));e=!1;if(!zj(h)){g="gpt-impl-"+Math.random();try{$d(h,Sd(k,{id:g,nonce:Yd(window),Aa:d?"anonymous":void 0}))}catch(u){}h.getElementById(g)&&(zg(Xf)?e=!0:c._loadStarted_=!0)}if(zg(Xf)?!e:!c._loadStarted_){var q=oe("SCRIPT");Zd(q,k);q.async=!0;d&&(q.crossOrigin="anonymous");h=c.fifWin?f.document:h;k=h.body;d=h.documentElement;var r,m,p=(m=(r=h.head)!=null?r:k)!=null?m:d;f.document.readyState!=="complete"&&c.fifWin?Id(f,"load",function(){return void p.appendChild(q)}):p.appendChild(q);zg(Xf)||(c._loadStarted_=!0)}if(f===f.top)try{Cg(f)}catch(u){mj(b,1209,u)}hj(new ej,f,l,yj(l),a);zg(Zf)&&Aj(f)}function Aj(a){var b=function(c){c.data!=null&&c.data!==""||c.origin.indexOf("android-app://")!==0||(Zi(264,!0),a.removeEventListener("message",b))};a.addEventListener("message",b)}function tj(){var a=je();return{Da:"m202409170101",ub:"202409170101",Za:pe(window),Ga:new Uf(11,"m202409170101"),La:a,bb:a<.01,Na:100}}function uj(a){return(a=a.currentScript)?a:null}function vj(a){var b;a=x((b=a.scripts)!=null?b:[]);for(b=a.next();!b.done;b=a.next())if(b=b.value,v(b.src,"includes").call(b.src,"/tag/js/gpt"))return b;return null}function xj(a,b){a=a.Da;b=yj(b)?Ud(qj,a):Ud(rj,a);return(a=G(Oh).g(bg.g,bg.defaultValue))?Vd(b,new t.Map([["cb",a]])):b}function wj(a,b,c,d){Zi(172,c.Ca);bj(a,c);Vi(12,d);Vi(5,d);(a=Ui(b))&&a.then(function(e){return void Zi(251,Cd(e))});ne(G(Oh).l(cg.g,cg.defaultValue),b.document)}function zj(a){var b=uj(a);return a.readyState==="complete"||a.readyState==="loaded"||!(b==null||!b.async)}function yj(a){return!(a==null||!a.src)&&ce(a.src.match(be)[3]||null)==="pagead2.googlesyndication.com"};try{sj()}catch(a){try{mj(tj(),420,a)}catch(b){}}}).call(this.googletag&&googletag.fifWin?googletag.fifWin.parent:this,"[[[[null,7,null,[null,0.1]],[null,null,null,[],[[[4,null,83],[null,null,null,[\"1 bidderRequests.bids bidder userIdAsEids.source\",\"2 bidderRequests.bids.userIdAsEids source provider\",\"3 bidderRequests.bids bidder ortb2Imp.ext.tid?\",\"5 bidderRequests.bids bidder mediaTypes.banner\",\"6 bidderRequests.bids bidder mediaTypes.native?\",\"7 bidderRequests.bids bidder mediaTypes.video\",\"8 bidderRequests.bids bidder ortb2Imp.ext.gpid?\",\"9 bidderRequests.bids bidder ortb2.site.content.data.ext.segment?\",\"10 bidderRequests.bids bidder ortb2.site.page\",\"11 bidderRequests.bids bidder ortb2.user.data.segment?\",\"12 bidderRequests.bids bidder ortb2.user.data.ext.segtax?\"]]]],657770675],[null,659575329,null,null,[[[4,null,83],[null,1]]]],[null,612427114,null,null,[[[4,null,83],[null,100]]]],[null,663827948,null,[null,-1]],[null,659579380,null,[null,-1],[[[4,null,83],[null,5000]]]],[null,659579379,null,[null,-1],[[[4,null,83],[null,60000]]]],[null,null,null,[null,null,null,[\"1 dbm\/(ad|clkk)\"]],[[[4,null,83],[null,null,null,[\"1 dbm\/(ad|clkk)\",\"2 (adsrvr|adserver)\\\\.org\/bid\/\",\"3 criteo.com\/(delivery|[a-z]+\/auction)\",\"4 yahoo.com\/bw\/[a-z]+\/imp\/\",\"5 (adnxs|adnxs-simple).com\/it\",\"6 amazon-adsystem.com\/[a-z\/]+\/impb\"]]]],655300591],[null,643045660,null,null,[[[4,null,83],[null,1]]]],[665511636,null,null,[1]],[null,612427113,null,null,[[[4,null,83],[null,100]]]],[null,578655462,null,[null,20]],[null,632270607,null,[null,1000]],[null,625028671,null,[null,0.8]],[null,625028672,null,[null,50]],[null,629733890,null,[null,1000]],[662657172,null,null,[1]],[null,null,null,[],null,489560439],[null,null,null,[],null,505762507],[null,1921,null,[null,72]],[null,1920,null,[null,12]],[null,426169222,null,[null,1000]],[null,377289019,null,[null,10000]],[null,529,null,[null,20]],[null,573282293,null,[null,0.01]],[null,610770343,null,[null,6]],[665538976,null,null,[1]],[45624259,null,null,[]],[45627954,null,null,[1]],[45646888,null,null,[]],[45622305,null,null,[]],[null,447000223,null,[null,0.01]],[360245597,null,null,[1]],[null,550718589,null,[null,250],[[[3,[[4,null,15,null,null,null,null,[\"22814497764\"]],[4,null,15,null,null,null,null,[\"6581\"]],[4,null,15,null,null,null,null,[\"18190176\"]],[4,null,15,null,null,null,null,[\"21881754602\"]],[4,null,15,null,null,null,null,[\"6782\"]],[4,null,15,null,null,null,null,[\"309565630\"]],[4,null,15,null,null,null,null,[\"22306534072\"]],[4,null,15,null,null,null,null,[\"7229\"]],[4,null,15,null,null,null,null,[\"28253241\"]],[4,null,15,null,null,null,null,[\"1254144\"]],[4,null,15,null,null,null,null,[\"21732118914\"]],[4,null,15,null,null,null,null,[\"5441\"]],[4,null,15,null,null,null,null,[\"162717810\"]],[4,null,15,null,null,null,null,[\"51912183\"]],[4,null,15,null,null,null,null,[\"23202586\"]],[4,null,15,null,null,null,null,[\"44520695\"]],[4,null,15,null,null,null,null,[\"1030006\"]],[4,null,15,null,null,null,null,[\"21830601346\"]],[4,null,15,null,null,null,null,[\"23081961\"]],[4,null,15,null,null,null,null,[\"21880406607\"]],[4,null,15,null,null,null,null,[\"93656639\"]],[4,null,15,null,null,null,null,[\"1020351\"]],[4,null,15,null,null,null,null,[\"5931321\"]],[4,null,15,null,null,null,null,[\"3355436\"]],[4,null,15,null,null,null,null,[\"22106840220\"]],[4,null,15,null,null,null,null,[\"22875833199\"]],[4,null,15,null,null,null,null,[\"32866417\"]],[4,null,15,null,null,null,null,[\"8095840\"]],[4,null,15,null,null,null,null,[\"71161633\"]],[4,null,15,null,null,null,null,[\"22668755367\"]],[4,null,15,null,null,null,null,[\"6177\"]],[4,null,15,null,null,null,null,[\"147246189\"]],[4,null,15,null,null,null,null,[\"22152718\"]],[4,null,15,null,null,null,null,[\"21751243814\"]],[4,null,15,null,null,null,null,[\"22013536576\"]],[4,null,15,null,null,null,null,[\"4444\"]],[4,null,15,null,null,null,null,[\"44890869\"]],[4,null,15,null,null,null,null,[\"248415179\"]],[4,null,15,null,null,null,null,[\"5293\"]],[4,null,15,null,null,null,null,[\"21675937462\"]],[4,null,15,null,null,null,null,[\"21726375739\"]],[4,null,15,null,null,null,null,[\"1002212\"]],[4,null,15,null,null,null,null,[\"6718395\"]]]],[null,500]]]],[null,575880738,null,[null,10]],[null,586681283,null,[null,100]],[531615531,null,null,null,[[[3,[[4,null,15,null,null,null,null,[\"22814497764\"]],[4,null,15,null,null,null,null,[\"6581\"]],[4,null,15,null,null,null,null,[\"18190176\"]],[4,null,15,null,null,null,null,[\"21881754602\"]],[4,null,15,null,null,null,null,[\"6782\"]],[4,null,15,null,null,null,null,[\"309565630\"]],[4,null,15,null,null,null,null,[\"22306534072\"]],[4,null,15,null,null,null,null,[\"7229\"]],[4,null,15,null,null,null,null,[\"28253241\"]],[4,null,15,null,null,null,null,[\"1254144\"]],[4,null,15,null,null,null,null,[\"21732118914\"]],[4,null,15,null,null,null,null,[\"5441\"]],[4,null,15,null,null,null,null,[\"162717810\"]],[4,null,15,null,null,null,null,[\"51912183\"]],[4,null,15,null,null,null,null,[\"23202586\"]],[4,null,15,null,null,null,null,[\"44520695\"]],[4,null,15,null,null,null,null,[\"1030006\"]],[4,null,15,null,null,null,null,[\"21830601346\"]],[4,null,15,null,null,null,null,[\"23081961\"]],[4,null,15,null,null,null,null,[\"21880406607\"]],[4,null,15,null,null,null,null,[\"93656639\"]],[4,null,15,null,null,null,null,[\"1020351\"]],[4,null,15,null,null,null,null,[\"5931321\"]],[4,null,15,null,null,null,null,[\"3355436\"]],[4,null,15,null,null,null,null,[\"22106840220\"]],[4,null,15,null,null,null,null,[\"22875833199\"]],[4,null,15,null,null,null,null,[\"32866417\"]],[4,null,15,null,null,null,null,[\"8095840\"]],[4,null,15,null,null,null,null,[\"71161633\"]],[4,null,15,null,null,null,null,[\"22668755367\"]],[4,null,15,null,null,null,null,[\"6177\"]],[4,null,15,null,null,null,null,[\"147246189\"]],[4,null,15,null,null,null,null,[\"22152718\"]],[4,null,15,null,null,null,null,[\"21751243814\"]],[4,null,15,null,null,null,null,[\"22013536576\"]],[4,null,15,null,null,null,null,[\"4444\"]],[4,null,15,null,null,null,null,[\"44890869\"]],[4,null,15,null,null,null,null,[\"248415179\"]],[4,null,15,null,null,null,null,[\"5293\"]],[4,null,15,null,null,null,null,[\"21675937462\"]],[4,null,15,null,null,null,null,[\"21726375739\"]],[4,null,15,null,null,null,null,[\"1002212\"]],[4,null,15,null,null,null,null,[\"6718395\"]]]],[1]]]],[null,635239304,null,[null,100]],[624961684,null,null,[1]],[null,618260805,null,[null,10]],[null,532520346,null,[null,120]],[null,630428304,null,[null,100]],[641346575,null,null,[1]],[632286145,null,null,[1]],[null,624264750,null,[null,-1]],[607106222,null,null,[1]],[null,398776877,null,[null,60000]],[null,374201269,null,[null,60000]],[null,371364213,null,[null,60000]],[null,376149757,null,[null,0.0025]],[570764855,null,null,[1]],[null,null,579921177,[null,null,\"control_1\\\\.\\\\d\"]],[670668935,null,null,[1]],[null,570764854,null,[null,50]],[578725095,null,null,[1]],[660866370,null,null,[1]],[671509769,null,null,[1]],[668014723,null,null,[1]],[669353572,null,null,[1]],[377936516,null,null,[1]],[null,599575765,null,[null,1000]],[null,null,2,[null,null,\"1-0-40\"]],[null,626653285,null,[null,1000]],[null,642407444,null,[null,10]],[null,506394061,null,[null,100]],[null,null,null,[null,null,null,[\"95335247\"]],null,631604025],[null,null,null,[],null,489],[392065905,null,null,null,[[[3,[[4,null,68],[4,null,83]]],[1]]]],[null,360245595,null,[null,500]],[563462360,null,null,[1]],[555237688,null,null,[],[[[2,[[4,null,70,null,null,null,null,[\"browsing-topics\"]],[1,[[4,null,27,null,null,null,null,[\"isSecureContext\"]]]]]],[1]]]],[555237686,null,null,[]],[507033477,null,null,[1]],[null,638742197,null,[null,500]],[null,514795754,null,[null,2]],[638770075,null,null,[1]],[null,null,null,[null,null,null,[\"679602798\",\"965728666\",\"3786422334\",\"4071951799\"]],null,603422363],[590730356,null,null,null,[[[12,null,null,null,4,null,\"Chrome\\\\\/((?!1[0-1]\\\\d)(?!12[0-3])\\\\d{3,})\",[\"navigator.userAgent\"]],[1]]]],[564724551,null,null,null,[[[12,null,null,null,4,null,\"Chrome\\\\\/((?!10\\\\d)(?!11[0-6])\\\\d{3,})\",[\"navigator.userAgent\"]],[1]]]],[null,596918936,null,[null,500]],[null,607730666,null,[null,10]],[616896918,null,null,[1]],[638632925,null,null,[1]],[647331452,null,null,[1]],[null,null,null,[null,null,null,[\"AlK2UR5SkAlj8jjdEc9p3F3xuFYlF6LYjAML3EOqw1g26eCwWPjdmecULvBH5MVPoqKYrOfPhYVL71xAXI1IBQoAAAB8eyJvcmlnaW4iOiJodHRwczovL2RvdWJsZWNsaWNrLm5ldDo0NDMiLCJmZWF0dXJlIjoiV2ViVmlld1hSZXF1ZXN0ZWRXaXRoRGVwcmVjYXRpb24iLCJleHBpcnkiOjE3NTgwNjcxOTksImlzU3ViZG9tYWluIjp0cnVlfQ==\",\"Amm8\/NmvvQfhwCib6I7ZsmUxiSCfOxWxHayJwyU1r3gRIItzr7bNQid6O8ZYaE1GSQTa69WwhPC9flq\/oYkRBwsAAACCeyJvcmlnaW4iOiJodHRwczovL2dvb2dsZXN5bmRpY2F0aW9uLmNvbTo0NDMiLCJmZWF0dXJlIjoiV2ViVmlld1hSZXF1ZXN0ZWRXaXRoRGVwcmVjYXRpb24iLCJleHBpcnkiOjE3NTgwNjcxOTksImlzU3ViZG9tYWluIjp0cnVlfQ==\",\"A9uiHDzQFAhqALUhTgTYJcz9XrGH2y0\/9AORwCSapUO\/f7Uh7ysIzyszNkuWDLqNYg8446Uj48XIstBW1qv\/wAQAAACNeyJvcmlnaW4iOiJodHRwczovL2RvdWJsZWNsaWNrLm5ldDo0NDMiLCJmZWF0dXJlIjoiRmxlZGdlQmlkZGluZ0FuZEF1Y3Rpb25TZXJ2ZXIiLCJleHBpcnkiOjE3Mjc4MjcxOTksImlzU3ViZG9tYWluIjp0cnVlLCJpc1RoaXJkUGFydHkiOnRydWV9\",\"A9R+gkZL3TWq+Z7RJ2L0c7ZN7FZD5z4mHmVvjrPitg\/EMz9P3j5d3W7Vw5ZR9jtJGmWKltM4BO3smNzpCgwYuwwAAACTeyJvcmlnaW4iOiJodHRwczovL2dvb2dsZXN5bmRpY2F0aW9uLmNvbTo0NDMiLCJmZWF0dXJlIjoiRmxlZGdlQmlkZGluZ0FuZEF1Y3Rpb25TZXJ2ZXIiLCJleHBpcnkiOjE3Mjc4MjcxOTksImlzU3ViZG9tYWluIjp0cnVlLCJpc1RoaXJkUGFydHkiOnRydWV9\"]],null,1934],[485990406,null,null,[]]],[[3,[[null,[[1337,[[77,null,null,[1]],[78,null,null,[1]],[85,null,null,[1]],[80,null,null,[1]],[76,null,null,[1]],[84,null,null,[1]],[188,null,null,[1]]]]]],[1000,[[31072561]],[2,[[4,null,70,null,null,null,null,[\"run-ad-auction\"]],[12,null,null,null,4,null,\"FLEDGE_GAM_EXTERNAL_TESTER\",[\"navigator.userAgent\"]]]]],[1,[[31075124,[[null,514795754,null,[null,4]]]]],[4,null,74,null,null,null,null,[\"1585821863\",\"3976716532\"]],59],[2,[[31080344],[95328403,[[null,607730666,null,[null,1]]]],[95328405],[95328406,[[null,514795754,null,[null,4]]]],[95336063,[[null,514795754,null,[null,4]],[null,607730666,null,[null,1]],[null,641937776,null,[null,32768]]]],[95339697,[[null,514795754,null,[null,4]],[null,607730666,null,[null,1]],[null,641937776,null,[null,32768]]]],[95339698,[[null,514795754,null,[null,4]],[null,607730666,null,[null,1]],[null,641937776,null,[null,32768]]]],[95339699,[[null,514795754,null,[null,4]],[null,607730666,null,[null,1]],[null,641937776,null,[null,32768]]]],[95341340,[[null,607730666,null,[null,1]]]],[95341341,[[null,514795754,null,[null,4]],[null,607730666,null,[null,1]],[null,641937776,null,[null,32768]]]],[95343286,[[null,514795754,null,[null,4]],[null,607730666,null,[null,1]],[null,641937776,null,[null,51200]]]]],[2,[[4,null,9,null,null,null,null,[\"fetch\"]],[4,null,9,null,null,null,null,[\"navigator.getInterestGroupAdAuctionData\"]],[1,[[4,null,63]]],[1,[[4,null,74,null,null,null,null,[\"1585821863\",\"3976716532\"]]]],[1,[[12,null,null,null,4,null,\".* Edg\/.*\",[\"navigator.userAgent\"]]]]]],59],[10,[[31084125],[31084126]]],[50,[[31084270],[31084271,[[610525552,null,null,[1]]]]],null,121,null,null,null,null,null,null,null,null,null,6],[1000,[[31085774,null,[4,null,6,null,null,null,null,[\"31085772\"]]]],[4,null,9,null,null,null,null,[\"scheduler.yield\"]],125,null,null,null,null,null,null,null,null,25],[1000,[[31085775,null,[4,null,6,null,null,null,null,[\"31085773\"]]]],[4,null,9,null,null,null,null,[\"scheduler.yield\"]],125,null,null,null,null,null,null,null,null,25],[null,[[31086135],[31086136]],null,122,null,null,null,null,null,null,null,null,null,4],[50,[[31086223],[31086224,[[null,626653286,null,[null,2]]]]]],[null,[[44798283,[[null,514795754,null,[null,4]]]]],[2,[[4,null,70,null,null,null,null,[\"run-ad-auction\"]],[1,[[4,null,63]]]]],59],[null,[[95331143],[95331207],[95333497]],[2,[[4,null,9,null,null,null,null,[\"fetch\"]],[4,null,9,null,null,null,null,[\"navigator.getInterestGroupAdAuctionData\"]],[1,[[4,null,63]]],[1,[[4,null,74,null,null,null,null,[\"1585821863\",\"3976716532\"]]]],[1,[[12,null,null,null,4,null,\".* Edg\/.*\",[\"navigator.userAgent\"]]]]]],59],[10,[[95332149],[95332150,[[616896918,null,null,[]]]]],null,59],[null,[[95335986]],[2,[[4,null,9,null,null,null,null,[\"fetch\"]],[4,null,9,null,null,null,null,[\"navigator.getInterestGroupAdAuctionData\"]],[1,[[4,null,63]]],[1,[[4,null,74,null,null,null,null,[\"1585821863\",\"3976716532\"]]]],[1,[[12,null,null,null,4,null,\".* Edg\/.*\",[\"navigator.userAgent\"]]]]]],59],[1,[[95337987,[[null,607730666,null,[null,1]]]],[95337988,[[null,514795754,null,[null,4]],[null,607730666,null,[null,1]],[null,641937776,null,[null,32768]]]],[95341379],[95342373],[95342374,[[null,514795754,null,[null,4]]]]],[2,[[4,null,9,null,null,null,null,[\"fetch\"]],[4,null,9,null,null,null,null,[\"navigator.getInterestGroupAdAuctionData\"]],[1,[[4,null,63]]],[1,[[4,null,74,null,null,null,null,[\"1585821863\",\"3976716532\"]]]],[1,[[12,null,null,null,4,null,\".* Edg\/.*\",[\"navigator.userAgent\"]]]]]],59],[null,[[676982960],[676982998]]]]],[12,[[10,[[31061690],[31061691,[[83,null,null,[1]],[84,null,null,[1]]]]],null,61],[40,[[95340252],[95340253,[[662101537,null,null,[1]]]]],[4,null,9,null,null,null,null,[\"LayoutShift\"]],71,null,null,null,800,null,null,null,null,null,5],[40,[[95340254],[95340255,[[662101539,null,null,[1]]]]],[4,null,9,null,null,null,null,[\"LayoutShift\"]],71,null,null,null,800,null,null,null,null,null,5]]],[13,[[500,[[31061692],[31061693,[[77,null,null,[1]],[78,null,null,[1]],[85,null,null,[1]],[80,null,null,[1]],[76,null,null,[1]]]]],[4,null,6,null,null,null,null,[\"31061691\"]]]]],[5,[[50,[[31067420],[31067421,[[360245597,null,null,[]]]],[31077191]],[3,[[4,null,8,null,null,null,null,[\"gmaSdk.getQueryInfo\"]],[4,null,8,null,null,null,null,[\"webkit.messageHandlers.getGmaQueryInfo.postMessage\"]],[4,null,8,null,null,null,null,[\"webkit.messageHandlers.getGmaSig.postMessage\"]]]],69],[200,[[31079956],[31079957,[[561985307,null,null,[1]]]],[44809527,[[561985307,null,null,[1]]]]]],[50,[[31083339],[31083340,[[624264747,null,null,[1]]]]]],[50,[[31083341],[31083342,[[624264746,null,null,[1]]]]]],[50,[[31083343],[31083344,[[624264749,null,null,[1]]]]]],[10,[[31083345],[31083346,[[null,624264750,null,[null,5]]]],[31086416,[[null,624264750,null,[null,10]]]]]],[1000,[[31084129,null,[2,[[2,[[8,null,null,1,null,-1],[7,null,null,1,null,10]]],[4,null,3]]]]],null,80,null,null,null,null,null,null,null,null,4],[1000,[[31084130,null,[2,[[2,[[8,null,null,1,null,9],[7,null,null,1,null,20]]],[4,null,3]]]]],null,80,null,null,null,null,null,null,null,null,4],[10,[[31084401],[31084402,[[624264748,null,null,[1]]]]]],[100,[[31085738],[31085739,[[647262744,null,null,[1]]]]]],[10,[[31085772],[31085773,[[647331451,null,null,[1]]]]],null,119],[10,[[31085776],[31085777,[[45624259,null,null,[1]]]]],null,114],[10,[[31085778,[[45624259,null,null,[1]]]]],[4,null,74,null,null,null,null,[\"1361264289\",\"592241938\",\"3780447416\"]],114],[34,[[31086541],[31086542,[[666873122,null,null,[1]]]]]],[50,[[31086814],[31086815,[[null,665058368,null,[null,1]]]]]],[1,[[31086889],[31086890,[[668156121,null,null,[1]]]]]],[1,[[31086891],[31086892,[[668186629,null,null,[1]]]]]],[10,[[31086936],[31086937,[[630167509,null,null,[1]]]]]],[1000,[[31087005,[[null,24,null,[null,31087005]]],[6,null,null,13,null,31087005]]],[4,null,3],1,null,null,null,null,null,null,null,null,3],[1000,[[31087006,[[null,24,null,[null,31087006]]],[6,null,null,13,null,31087006]]],[4,null,3],1,null,null,null,null,null,null,null,null,3],[1,[[31087063],[31087064]],[3,[[4,null,8,null,null,null,null,[\"gmaSdk.getQueryInfo\"]],[4,null,8,null,null,null,null,[\"webkit.messageHandlers.getGmaQueryInfo.postMessage\"]],[4,null,8,null,null,null,null,[\"webkit.messageHandlers.getGmaSig.postMessage\"]]]],69],[1000,[[31087119,[[null,24,null,[null,31087119]]],[6,null,null,13,null,31087119]]],[4,null,3],1,null,null,null,null,null,null,null,null,3],[1000,[[31087120,[[null,24,null,[null,31087120]]],[6,null,null,13,null,31087120]]],[4,null,3],1,null,null,null,null,null,null,null,null,3],[1000,[[31087121,[[null,24,null,[null,31087121]]],[6,null,null,13,null,31087121]]],[4,null,3],1,null,null,null,null,null,null,null,null,3],[1000,[[31087122,[[null,24,null,[null,31087122]]],[6,null,null,13,null,31087122]]],[4,null,3],1,null,null,null,null,null,null,null,null,3],[1000,[[31087123,[[null,24,null,[null,31087123]]],[6,null,null,13,null,31087123]]],[4,null,3],1,null,null,null,null,null,null,null,null,3],[10,[[31087202],[31087203,[[658158409,null,null,[1]]]]]],[1000,[[31087206,null,[2,[[2,[[8,null,null,1,null,39],[7,null,null,1,null,50]]],[4,null,3]]]]],[4,null,3],128,null,null,null,null,null,null,null,null,27],[1000,[[31087207,[[null,null,657763207,[null,null,\"m202409130101\"]],[657763206,null,null,[1]],[null,null,null,[null,null,null,[\"AlK2UR5SkAlj8jjdEc9p3F3xuFYlF6LYjAML3EOqw1g26eCwWPjdmecULvBH5MVPoqKYrOfPhYVL71xAXI1IBQoAAAB8eyJvcmlnaW4iOiJodHRwczovL2RvdWJsZWNsaWNrLm5ldDo0NDMiLCJmZWF0dXJlIjoiV2ViVmlld1hSZXF1ZXN0ZWRXaXRoRGVwcmVjYXRpb24iLCJleHBpcnkiOjE3NTgwNjcxOTksImlzU3ViZG9tYWluIjp0cnVlfQ==\",\"Amm8\/NmvvQfhwCib6I7ZsmUxiSCfOxWxHayJwyU1r3gRIItzr7bNQid6O8ZYaE1GSQTa69WwhPC9flq\/oYkRBwsAAACCeyJvcmlnaW4iOiJodHRwczovL2dvb2dsZXN5bmRpY2F0aW9uLmNvbTo0NDMiLCJmZWF0dXJlIjoiV2ViVmlld1hSZXF1ZXN0ZWRXaXRoRGVwcmVjYXRpb24iLCJleHBpcnkiOjE3NTgwNjcxOTksImlzU3ViZG9tYWluIjp0cnVlfQ==\",\"A9uiHDzQFAhqALUhTgTYJcz9XrGH2y0\/9AORwCSapUO\/f7Uh7ysIzyszNkuWDLqNYg8446Uj48XIstBW1qv\/wAQAAACNeyJvcmlnaW4iOiJodHRwczovL2RvdWJsZWNsaWNrLm5ldDo0NDMiLCJmZWF0dXJlIjoiRmxlZGdlQmlkZGluZ0FuZEF1Y3Rpb25TZXJ2ZXIiLCJleHBpcnkiOjE3Mjc4MjcxOTksImlzU3ViZG9tYWluIjp0cnVlLCJpc1RoaXJkUGFydHkiOnRydWV9\",\"A9R+gkZL3TWq+Z7RJ2L0c7ZN7FZD5z4mHmVvjrPitg\/EMz9P3j5d3W7Vw5ZR9jtJGmWKltM4BO3smNzpCgwYuwwAAACTeyJvcmlnaW4iOiJodHRwczovL2dvb2dsZXN5bmRpY2F0aW9uLmNvbTo0NDMiLCJmZWF0dXJlIjoiRmxlZGdlQmlkZGluZ0FuZEF1Y3Rpb25TZXJ2ZXIiLCJleHBpcnkiOjE3Mjc4MjcxOTksImlzU3ViZG9tYWluIjp0cnVlLCJpc1RoaXJkUGFydHkiOnRydWV9\",\"A9ejJbmUme7Mcan6LhOEb3xu1rtOR0wo0OFCsvDNtVQAURUxNE6WVKpi\/8UDE+6qpeiTuYwhQz0aFpxSXDuNegAAAACQeyJvcmlnaW4iOiJodHRwczovL2RvdWJsZWNsaWNrLm5ldDo0NDMiLCJmZWF0dXJlIjoiQ29tcHJlc3Npb25EaWN0aW9uYXJ5VHJhbnNwb3J0VjMiLCJleHBpcnkiOjE3MzMyNzAzOTksImlzU3ViZG9tYWluIjp0cnVlLCJpc1RoaXJkUGFydHkiOnRydWV9\",\"A\/nLJchvU3DZp7nqa9ODYDqcEW3b40Jf9gdp1+gffTKguFiYpx8XBAicRlpA9PUDtTTLbSxWz5laQxLp0R6WdAAAAACWeyJvcmlnaW4iOiJodHRwczovL2dvb2dsZXN5bmRpY2F0aW9uLmNvbTo0NDMiLCJmZWF0dXJlIjoiQ29tcHJlc3Npb25EaWN0aW9uYXJ5VHJhbnNwb3J0VjMiLCJleHBpcnkiOjE3MzMyNzAzOTksImlzU3ViZG9tYWluIjp0cnVlLCJpc1RoaXJkUGFydHkiOnRydWV9\"]],null,1934]],[2,[[2,[[8,null,null,1,null,49],[7,null,null,1,null,60]]],[4,null,3]]]]],[4,null,3],128,null,null,null,null,null,null,null,null,27],[1000,[[31087208,[[null,null,657763207,[null,null,\"m202409130201\"]],[657763206,null,null,[1]],[null,null,null,[null,null,null,[\"AlK2UR5SkAlj8jjdEc9p3F3xuFYlF6LYjAML3EOqw1g26eCwWPjdmecULvBH5MVPoqKYrOfPhYVL71xAXI1IBQoAAAB8eyJvcmlnaW4iOiJodHRwczovL2RvdWJsZWNsaWNrLm5ldDo0NDMiLCJmZWF0dXJlIjoiV2ViVmlld1hSZXF1ZXN0ZWRXaXRoRGVwcmVjYXRpb24iLCJleHBpcnkiOjE3NTgwNjcxOTksImlzU3ViZG9tYWluIjp0cnVlfQ==\",\"Amm8\/NmvvQfhwCib6I7ZsmUxiSCfOxWxHayJwyU1r3gRIItzr7bNQid6O8ZYaE1GSQTa69WwhPC9flq\/oYkRBwsAAACCeyJvcmlnaW4iOiJodHRwczovL2dvb2dsZXN5bmRpY2F0aW9uLmNvbTo0NDMiLCJmZWF0dXJlIjoiV2ViVmlld1hSZXF1ZXN0ZWRXaXRoRGVwcmVjYXRpb24iLCJleHBpcnkiOjE3NTgwNjcxOTksImlzU3ViZG9tYWluIjp0cnVlfQ==\",\"A9uiHDzQFAhqALUhTgTYJcz9XrGH2y0\/9AORwCSapUO\/f7Uh7ysIzyszNkuWDLqNYg8446Uj48XIstBW1qv\/wAQAAACNeyJvcmlnaW4iOiJodHRwczovL2RvdWJsZWNsaWNrLm5ldDo0NDMiLCJmZWF0dXJlIjoiRmxlZGdlQmlkZGluZ0FuZEF1Y3Rpb25TZXJ2ZXIiLCJleHBpcnkiOjE3Mjc4MjcxOTksImlzU3ViZG9tYWluIjp0cnVlLCJpc1RoaXJkUGFydHkiOnRydWV9\",\"A9R+gkZL3TWq+Z7RJ2L0c7ZN7FZD5z4mHmVvjrPitg\/EMz9P3j5d3W7Vw5ZR9jtJGmWKltM4BO3smNzpCgwYuwwAAACTeyJvcmlnaW4iOiJodHRwczovL2dvb2dsZXN5bmRpY2F0aW9uLmNvbTo0NDMiLCJmZWF0dXJlIjoiRmxlZGdlQmlkZGluZ0FuZEF1Y3Rpb25TZXJ2ZXIiLCJleHBpcnkiOjE3Mjc4MjcxOTksImlzU3ViZG9tYWluIjp0cnVlLCJpc1RoaXJkUGFydHkiOnRydWV9\",\"A9ejJbmUme7Mcan6LhOEb3xu1rtOR0wo0OFCsvDNtVQAURUxNE6WVKpi\/8UDE+6qpeiTuYwhQz0aFpxSXDuNegAAAACQeyJvcmlnaW4iOiJodHRwczovL2RvdWJsZWNsaWNrLm5ldDo0NDMiLCJmZWF0dXJlIjoiQ29tcHJlc3Npb25EaWN0aW9uYXJ5VHJhbnNwb3J0VjMiLCJleHBpcnkiOjE3MzMyNzAzOTksImlzU3ViZG9tYWluIjp0cnVlLCJpc1RoaXJkUGFydHkiOnRydWV9\",\"A\/nLJchvU3DZp7nqa9ODYDqcEW3b40Jf9gdp1+gffTKguFiYpx8XBAicRlpA9PUDtTTLbSxWz5laQxLp0R6WdAAAAACWeyJvcmlnaW4iOiJodHRwczovL2dvb2dsZXN5bmRpY2F0aW9uLmNvbTo0NDMiLCJmZWF0dXJlIjoiQ29tcHJlc3Npb25EaWN0aW9uYXJ5VHJhbnNwb3J0VjMiLCJleHBpcnkiOjE3MzMyNzAzOTksImlzU3ViZG9tYWluIjp0cnVlLCJpc1RoaXJkUGFydHkiOnRydWV9\"]],null,1934]],[2,[[2,[[8,null,null,1,null,59],[7,null,null,1,null,70]]],[4,null,3]]]]],[4,null,3],128,null,null,null,null,null,null,null,null,27],[1,[[31087215],[31087216,[[616212168,null,null,[1]]]]]],[1000,[[31087301,[[null,24,null,[null,31087301]]],[6,null,null,13,null,31087301]]],[4,null,3],1,null,null,null,null,null,null,null,null,3],[1000,[[31087302,[[null,24,null,[null,31087302]]],[6,null,null,13,null,31087302]]],[4,null,3],1,null,null,null,null,null,null,null,null,3],[1000,[[31087341,[[null,24,null,[null,31087341]]],[6,null,null,13,null,31087341]]],[4,null,3],1,null,null,null,null,null,null,null,null,3],[1000,[[31087342,[[null,24,null,[null,31087342]]],[6,null,null,13,null,31087342]]],[4,null,3],1,null,null,null,null,null,null,null,null,3],[100,[[31087347],[31087348,[[671420313,null,null,[1]]]]]],[10,[[31087349],[31087350,[[673137039,null,null,[1]]]]]],[100,[[31087351],[31087352,[[673210148,null,null,[1]]]]]],[100,[[31087353],[31087354,[[669431775,null,null,[1]]]]]],[10,[[31087355],[31087356,[[671490584,null,null,[1]]]]]],[100,[[31087357],[31087358,[[672767146,null,null,[1]]]]]],[100,[[31087359],[31087360,[[673564232,null,null,[1]]]]]],[10,[[31087361],[31087362,[[null,671739208,null,[null,1]]]]]]]],[2,[[10,[[31082137],[31082138]],null,null,null,null,null,null,null,102],[10,[[31084489],[31084490]],null,null,null,null,32,null,null,142,1],[50,[[31084528],[31084529]],null,null,null,null,36,900,null,166,1],[1000,[[31084739,[[null,612427114,null,[null,100]]]]],[4,null,6,null,null,null,null,[\"31065645\"]]],[10,[[31084865],[31084866]],null,null,null,null,35,null,null,166,1],[null,[[31084974],[31084975],[31084976],[31084977]],null,null,null,null,37,820,null,166,1],[10,[[31085856],[31085857]],null,null,null,null,null,20,null,102],[1,[[31086885],[31086886,[[629201869,null,null,[1]]]]],null,null,null,null,null,200,null,102],[10,[[31087155],[31087156,[[629201869,null,null,[1]],[630224494,null,null,[1]]]],[31087157,[[629201869,null,null,[1]],[630224494,null,null,[1]]]]],null,null,null,null,null,41,null,102,1],[500,[[83320858,null,[4,null,83]],[83320859,null,[4,null,83]]]],[50,[[95330141],[95330142]],[4,null,59,null,null,null,null,[\"2443349923\"]],null,null,null,33,null,null,152,1],[300,[[95331847],[95331848]],[4,null,59,null,null,null,null,[\"1163038905\"]],null,null,null,34,400,null,152,1],[10,[[95341989],[95341990,[[null,null,null,[],null,655300591]]]],[4,null,83],129],[10,[[95342027],[95342028]],[4,null,83],129]]],[9,[[1000,[[31083577]],[4,null,13,null,null,null,null,[\"cxbbhbxm\"]]]]],[4,[[null,[[44714449,[[null,7,null,[null,1]]]],[676982961,[[null,7,null,[null,0.4]],[212,null,null,[1]]]],[676982996,[[null,7,null,[null,1]]]]],null,78]]]],null,null,[null,1000,1,1000]],null,null,null,null,\".google.ca\",799]");window.googletag=window.googletag||{cmd:[]};googletag.cmd.push(function(){googletag.defineSlot('/15482100/RN_728x90',[728,90],'div-gpt-ad-1724184657755-0').addService(googletag.pubads());googletag.pubads().enableSingleRequest();googletag.enableServices()});var doc=document.documentElement;doc.setAttribute('data-useragent',navigator.userAgent);/*!
 * imagesLoaded PACKAGED v5.0.0
 * JavaScript is all like "You images are done yet or what?"
 * MIT License
 */
(function(global,factory){if(typeof module=='object'&&module.exports){module.exports=factory()}else{global.EvEmitter=factory()}}(typeof window!='undefined'?window:this,function(){function EvEmitter(){}
let proto=EvEmitter.prototype;proto.on=function(eventName,listener){if(!eventName||!listener)return this;let events=this._events=this._events||{};let listeners=events[eventName]=events[eventName]||[];if(!listeners.includes(listener)){listeners.push(listener)}
return this};proto.once=function(eventName,listener){if(!eventName||!listener)return this;this.on(eventName,listener);let onceEvents=this._onceEvents=this._onceEvents||{};let onceListeners=onceEvents[eventName]=onceEvents[eventName]||{};onceListeners[listener]=!0;return this};proto.off=function(eventName,listener){let listeners=this._events&&this._events[eventName];if(!listeners||!listeners.length)return this;let index=listeners.indexOf(listener);if(index!=-1){listeners.splice(index,1)}
return this};proto.emitEvent=function(eventName,args){let listeners=this._events&&this._events[eventName];if(!listeners||!listeners.length)return this;listeners=listeners.slice(0);args=args||[];let onceListeners=this._onceEvents&&this._onceEvents[eventName];for(let listener of listeners){let isOnce=onceListeners&&onceListeners[listener];if(isOnce){this.off(eventName,listener);delete onceListeners[listener]}
listener.apply(this,args)}
return this};proto.allOff=function(){delete this._events;delete this._onceEvents;return this};return EvEmitter}));
/*!
 * imagesLoaded v5.0.0
 * JavaScript is all like "You images are done yet or what?"
 * MIT License
 */
(function(window,factory){if(typeof module=='object'&&module.exports){module.exports=factory(window,require('ev-emitter'))}else{window.imagesLoaded=factory(window,window.EvEmitter)}})(typeof window!=='undefined'?window:this,function factory(window,EvEmitter){let $=window.jQuery;let console=window.console;function makeArray(obj){if(Array.isArray(obj))return obj;let isArrayLike=typeof obj=='object'&&typeof obj.length=='number';if(isArrayLike)return[...obj];return[obj]}
function ImagesLoaded(elem,options,onAlways){if(!(this instanceof ImagesLoaded)){return new ImagesLoaded(elem,options,onAlways)}
let queryElem=elem;if(typeof elem=='string'){queryElem=document.querySelectorAll(elem)}
if(!queryElem){console.error(`Bad element for imagesLoaded ${queryElem || elem}`);return}
this.elements=makeArray(queryElem);this.options={};if(typeof options=='function'){onAlways=options}else{Object.assign(this.options,options)}
if(onAlways)this.on('always',onAlways);this.getImages();if($)this.jqDeferred=new $.Deferred();setTimeout(this.check.bind(this))}
ImagesLoaded.prototype=Object.create(EvEmitter.prototype);ImagesLoaded.prototype.getImages=function(){this.images=[];this.elements.forEach(this.addElementImages,this)};const elementNodeTypes=[1,9,11];ImagesLoaded.prototype.addElementImages=function(elem){if(elem.nodeName==='IMG'){this.addImage(elem)}
if(this.options.background===!0){this.addElementBackgroundImages(elem)}
let{nodeType}=elem;if(!nodeType||!elementNodeTypes.includes(nodeType))return;let childImgs=elem.querySelectorAll('img');for(let img of childImgs){this.addImage(img)}
if(typeof this.options.background=='string'){let children=elem.querySelectorAll(this.options.background);for(let child of children){this.addElementBackgroundImages(child)}}};const reURL=/url\((['"])?(.*?)\1\)/gi;ImagesLoaded.prototype.addElementBackgroundImages=function(elem){let style=getComputedStyle(elem);if(!style)return;let matches=reURL.exec(style.backgroundImage);while(matches!==null){let url=matches&&matches[2];if(url){this.addBackground(url,elem)}
matches=reURL.exec(style.backgroundImage)}};ImagesLoaded.prototype.addImage=function(img){let loadingImage=new LoadingImage(img);this.images.push(loadingImage)};ImagesLoaded.prototype.addBackground=function(url,elem){let background=new Background(url,elem);this.images.push(background)};ImagesLoaded.prototype.check=function(){this.progressedCount=0;this.hasAnyBroken=!1;if(!this.images.length){this.complete();return}
let onProgress=(image,elem,message)=>{setTimeout(()=>{this.progress(image,elem,message)})};this.images.forEach(function(loadingImage){loadingImage.once('progress',onProgress);loadingImage.check()})};ImagesLoaded.prototype.progress=function(image,elem,message){this.progressedCount++;this.hasAnyBroken=this.hasAnyBroken||!image.isLoaded;this.emitEvent('progress',[this,image,elem]);if(this.jqDeferred&&this.jqDeferred.notify){this.jqDeferred.notify(this,image)}
if(this.progressedCount===this.images.length){this.complete()}
if(this.options.debug&&console){console.log(`progress: ${message}`,image,elem)}};ImagesLoaded.prototype.complete=function(){let eventName=this.hasAnyBroken?'fail':'done';this.isComplete=!0;this.emitEvent(eventName,[this]);this.emitEvent('always',[this]);if(this.jqDeferred){let jqMethod=this.hasAnyBroken?'reject':'resolve';this.jqDeferred[jqMethod](this)}};function LoadingImage(img){this.img=img}
LoadingImage.prototype=Object.create(EvEmitter.prototype);LoadingImage.prototype.check=function(){let isComplete=this.getIsImageComplete();if(isComplete){this.confirm(this.img.naturalWidth!==0,'naturalWidth');return}
this.proxyImage=new Image();if(this.img.crossOrigin){this.proxyImage.crossOrigin=this.img.crossOrigin}
this.proxyImage.addEventListener('load',this);this.proxyImage.addEventListener('error',this);this.img.addEventListener('load',this);this.img.addEventListener('error',this);this.proxyImage.src=this.img.currentSrc||this.img.src};LoadingImage.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth};LoadingImage.prototype.confirm=function(isLoaded,message){this.isLoaded=isLoaded;let{parentNode}=this.img;let elem=parentNode.nodeName==='PICTURE'?parentNode:this.img;this.emitEvent('progress',[this,elem,message])};LoadingImage.prototype.handleEvent=function(event){let method='on'+event.type;if(this[method]){this[method](event)}};LoadingImage.prototype.onload=function(){this.confirm(!0,'onload');this.unbindEvents()};LoadingImage.prototype.onerror=function(){this.confirm(!1,'onerror');this.unbindEvents()};LoadingImage.prototype.unbindEvents=function(){this.proxyImage.removeEventListener('load',this);this.proxyImage.removeEventListener('error',this);this.img.removeEventListener('load',this);this.img.removeEventListener('error',this)};function Background(url,element){this.url=url;this.element=element;this.img=new Image()}
Background.prototype=Object.create(LoadingImage.prototype);Background.prototype.check=function(){this.img.addEventListener('load',this);this.img.addEventListener('error',this);this.img.src=this.url;let isComplete=this.getIsImageComplete();if(isComplete){this.confirm(this.img.naturalWidth!==0,'naturalWidth');this.unbindEvents()}};Background.prototype.unbindEvents=function(){this.img.removeEventListener('load',this);this.img.removeEventListener('error',this)};Background.prototype.confirm=function(isLoaded,message){this.isLoaded=isLoaded;this.emitEvent('progress',[this,this.element,message])};ImagesLoaded.makeJQueryPlugin=function(jQuery){jQuery=jQuery||window.jQuery;if(!jQuery)return;$=jQuery;$.fn.imagesLoaded=function(options,onAlways){let instance=new ImagesLoaded(this,options,onAlways);return instance.jqDeferred.promise($(this))}};ImagesLoaded.makeJQueryPlugin();return ImagesLoaded});/*!
 * Masonry PACKAGED v4.2.2
 * Cascading grid layout library
 * https://masonry.desandro.com
 * MIT License
 * by David DeSandro
 */
(function(window,factory){if(typeof define=='function'&&define.amd){define('jquery-bridget/jquery-bridget',['jquery'],function(jQuery){return factory(window,jQuery)})}else if(typeof module=='object'&&module.exports){module.exports=factory(window,require('jquery'))}else{window.jQueryBridget=factory(window,window.jQuery)}}(window,function factory(window,jQuery){'use strict';var arraySlice=Array.prototype.slice;var console=window.console;var logError=typeof console=='undefined'?function(){}:function(message){console.error(message)};function jQueryBridget(namespace,PluginClass,$){$=$||jQuery||window.jQuery;if(!$){return}
if(!PluginClass.prototype.option){PluginClass.prototype.option=function(opts){if(!$.isPlainObject(opts)){return}
this.options=$.extend(!0,this.options,opts)}}
$.fn[namespace]=function(arg0){if(typeof arg0=='string'){var args=arraySlice.call(arguments,1);return methodCall(this,arg0,args)}
plainCall(this,arg0);return this};function methodCall($elems,methodName,args){var returnValue;var pluginMethodStr='$().'+namespace+'("'+methodName+'")';$elems.each(function(i,elem){var instance=$.data(elem,namespace);if(!instance){logError(namespace+' not initialized. Cannot call methods, i.e. '+pluginMethodStr);return}
var method=instance[methodName];if(!method||methodName.charAt(0)=='_'){logError(pluginMethodStr+' is not a valid method');return}
var value=method.apply(instance,args);returnValue=returnValue===undefined?value:returnValue});return returnValue!==undefined?returnValue:$elems}
function plainCall($elems,options){$elems.each(function(i,elem){var instance=$.data(elem,namespace);if(instance){instance.option(options);instance._init()}else{instance=new PluginClass(elem,options);$.data(elem,namespace,instance)}})}
updateJQuery($)}
function updateJQuery($){if(!$||($&&$.bridget)){return}
$.bridget=jQueryBridget}
updateJQuery(jQuery||window.jQuery);return jQueryBridget}));(function(global,factory){if(typeof define=='function'&&define.amd){define('ev-emitter/ev-emitter',factory)}else if(typeof module=='object'&&module.exports){module.exports=factory()}else{global.EvEmitter=factory()}}(typeof window!='undefined'?window:this,function(){function EvEmitter(){}
var proto=EvEmitter.prototype;proto.on=function(eventName,listener){if(!eventName||!listener){return}
var events=this._events=this._events||{};var listeners=events[eventName]=events[eventName]||[];if(listeners.indexOf(listener)==-1){listeners.push(listener)}
return this};proto.once=function(eventName,listener){if(!eventName||!listener){return}
this.on(eventName,listener);var onceEvents=this._onceEvents=this._onceEvents||{};var onceListeners=onceEvents[eventName]=onceEvents[eventName]||{};onceListeners[listener]=!0;return this};proto.off=function(eventName,listener){var listeners=this._events&&this._events[eventName];if(!listeners||!listeners.length){return}
var index=listeners.indexOf(listener);if(index!=-1){listeners.splice(index,1)}
return this};proto.emitEvent=function(eventName,args){var listeners=this._events&&this._events[eventName];if(!listeners||!listeners.length){return}
listeners=listeners.slice(0);args=args||[];var onceListeners=this._onceEvents&&this._onceEvents[eventName];for(var i=0;i<listeners.length;i++){var listener=listeners[i]
var isOnce=onceListeners&&onceListeners[listener];if(isOnce){this.off(eventName,listener);delete onceListeners[listener]}
listener.apply(this,args)}
return this};proto.allOff=function(){delete this._events;delete this._onceEvents};return EvEmitter}));
/*!
 * getSize v2.0.3
 * measure size of elements
 * MIT license
 */
(function(window,factory){if(typeof define=='function'&&define.amd){define('get-size/get-size',factory)}else if(typeof module=='object'&&module.exports){module.exports=factory()}else{window.getSize=factory()}})(window,function factory(){'use strict';function getStyleSize(value){var num=parseFloat(value);var isValid=value.indexOf('%')==-1&&!isNaN(num);return isValid&&num}
function noop(){}
var logError=typeof console=='undefined'?noop:function(message){console.error(message)};var measurements=['paddingLeft','paddingRight','paddingTop','paddingBottom','marginLeft','marginRight','marginTop','marginBottom','borderLeftWidth','borderRightWidth','borderTopWidth','borderBottomWidth'];var measurementsLength=measurements.length;function getZeroSize(){var size={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0};for(var i=0;i<measurementsLength;i++){var measurement=measurements[i];size[measurement]=0}
return size}
function getStyle(elem){var style=getComputedStyle(elem);if(!style){logError('Style returned '+style+'. Are you running this code in a hidden iframe on Firefox? '+'See https://bit.ly/getsizebug1')}
return style}
var isSetup=!1;var isBoxSizeOuter;function setup(){if(isSetup){return}
isSetup=!0;var div=document.createElement('div');div.style.width='200px';div.style.padding='1px 2px 3px 4px';div.style.borderStyle='solid';div.style.borderWidth='1px 2px 3px 4px';div.style.boxSizing='border-box';var body=document.body||document.documentElement;body.appendChild(div);var style=getStyle(div);isBoxSizeOuter=Math.round(getStyleSize(style.width))==200;getSize.isBoxSizeOuter=isBoxSizeOuter;body.removeChild(div)}
function getSize(elem){setup();if(typeof elem=='string'){elem=document.querySelector(elem)}
if(!elem||typeof elem!='object'||!elem.nodeType){return}
var style=getStyle(elem);if(style.display=='none'){return getZeroSize()}
var size={};size.width=elem.offsetWidth;size.height=elem.offsetHeight;var isBorderBox=size.isBorderBox=style.boxSizing=='border-box';for(var i=0;i<measurementsLength;i++){var measurement=measurements[i];var value=style[measurement];var num=parseFloat(value);size[measurement]=!isNaN(num)?num:0}
var paddingWidth=size.paddingLeft+size.paddingRight;var paddingHeight=size.paddingTop+size.paddingBottom;var marginWidth=size.marginLeft+size.marginRight;var marginHeight=size.marginTop+size.marginBottom;var borderWidth=size.borderLeftWidth+size.borderRightWidth;var borderHeight=size.borderTopWidth+size.borderBottomWidth;var isBorderBoxSizeOuter=isBorderBox&&isBoxSizeOuter;var styleWidth=getStyleSize(style.width);if(styleWidth!==!1){size.width=styleWidth+(isBorderBoxSizeOuter?0:paddingWidth+borderWidth)}
var styleHeight=getStyleSize(style.height);if(styleHeight!==!1){size.height=styleHeight+(isBorderBoxSizeOuter?0:paddingHeight+borderHeight)}
size.innerWidth=size.width-(paddingWidth+borderWidth);size.innerHeight=size.height-(paddingHeight+borderHeight);size.outerWidth=size.width+marginWidth;size.outerHeight=size.height+marginHeight;return size}
return getSize});(function(window,factory){'use strict';if(typeof define=='function'&&define.amd){define('desandro-matches-selector/matches-selector',factory)}else if(typeof module=='object'&&module.exports){module.exports=factory()}else{window.matchesSelector=factory()}}(window,function factory(){'use strict';var matchesMethod=(function(){var ElemProto=window.Element.prototype;if(ElemProto.matches){return'matches'}
if(ElemProto.matchesSelector){return'matchesSelector'}
var prefixes=['webkit','moz','ms','o'];for(var i=0;i<prefixes.length;i++){var prefix=prefixes[i];var method=prefix+'MatchesSelector';if(ElemProto[method]){return method}}})();return function matchesSelector(elem,selector){return elem[matchesMethod](selector)}}));(function(window,factory){if(typeof define=='function'&&define.amd){define('fizzy-ui-utils/utils',['desandro-matches-selector/matches-selector'],function(matchesSelector){return factory(window,matchesSelector)})}else if(typeof module=='object'&&module.exports){module.exports=factory(window,require('desandro-matches-selector'))}else{window.fizzyUIUtils=factory(window,window.matchesSelector)}}(window,function factory(window,matchesSelector){var utils={};utils.extend=function(a,b){for(var prop in b){a[prop]=b[prop]}
return a};utils.modulo=function(num,div){return((num%div)+div)%div};var arraySlice=Array.prototype.slice;utils.makeArray=function(obj){if(Array.isArray(obj)){return obj}
if(obj===null||obj===undefined){return[]}
var isArrayLike=typeof obj=='object'&&typeof obj.length=='number';if(isArrayLike){return arraySlice.call(obj)}
return[obj]};utils.removeFrom=function(ary,obj){var index=ary.indexOf(obj);if(index!=-1){ary.splice(index,1)}};utils.getParent=function(elem,selector){while(elem.parentNode&&elem!=document.body){elem=elem.parentNode;if(matchesSelector(elem,selector)){return elem}}};utils.getQueryElement=function(elem){if(typeof elem=='string'){return document.querySelector(elem)}
return elem};utils.handleEvent=function(event){var method='on'+event.type;if(this[method]){this[method](event)}};utils.filterFindElements=function(elems,selector){elems=utils.makeArray(elems);var ffElems=[];elems.forEach(function(elem){if(!(elem instanceof HTMLElement)){return}
if(!selector){ffElems.push(elem);return}
if(matchesSelector(elem,selector)){ffElems.push(elem)}
var childElems=elem.querySelectorAll(selector);for(var i=0;i<childElems.length;i++){ffElems.push(childElems[i])}});return ffElems};utils.debounceMethod=function(_class,methodName,threshold){threshold=threshold||100;var method=_class.prototype[methodName];var timeoutName=methodName+'Timeout';_class.prototype[methodName]=function(){var timeout=this[timeoutName];clearTimeout(timeout);var args=arguments;var _this=this;this[timeoutName]=setTimeout(function(){method.apply(_this,args);delete _this[timeoutName]},threshold)}};utils.docReady=function(callback){var readyState=document.readyState;if(readyState=='complete'||readyState=='interactive'){setTimeout(callback)}else{document.addEventListener('DOMContentLoaded',callback)}};utils.toDashed=function(str){return str.replace(/(.)([A-Z])/g,function(match,$1,$2){return $1+'-'+$2}).toLowerCase()};var console=window.console;utils.htmlInit=function(WidgetClass,namespace){utils.docReady(function(){var dashedNamespace=utils.toDashed(namespace);var dataAttr='data-'+dashedNamespace;var dataAttrElems=document.querySelectorAll('['+dataAttr+']');var jsDashElems=document.querySelectorAll('.js-'+dashedNamespace);var elems=utils.makeArray(dataAttrElems).concat(utils.makeArray(jsDashElems));var dataOptionsAttr=dataAttr+'-options';var jQuery=window.jQuery;elems.forEach(function(elem){var attr=elem.getAttribute(dataAttr)||elem.getAttribute(dataOptionsAttr);var options;try{options=attr&&JSON.parse(attr)}catch(error){if(console){console.error('Error parsing '+dataAttr+' on '+elem.className+': '+error)}
return}
var instance=new WidgetClass(elem,options);if(jQuery){jQuery.data(elem,namespace,instance)}})})};return utils}));(function(window,factory){if(typeof define=='function'&&define.amd){define('outlayer/item',['ev-emitter/ev-emitter','get-size/get-size'],factory)}else if(typeof module=='object'&&module.exports){module.exports=factory(require('ev-emitter'),require('get-size'))}else{window.Outlayer={};window.Outlayer.Item=factory(window.EvEmitter,window.getSize)}}(window,function factory(EvEmitter,getSize){'use strict';function isEmptyObj(obj){for(var prop in obj){return!1}
prop=null;return!0}
var docElemStyle=document.documentElement.style;var transitionProperty=typeof docElemStyle.transition=='string'?'transition':'WebkitTransition';var transformProperty=typeof docElemStyle.transform=='string'?'transform':'WebkitTransform';var transitionEndEvent={WebkitTransition:'webkitTransitionEnd',transition:'transitionend'}[transitionProperty];var vendorProperties={transform:transformProperty,transition:transitionProperty,transitionDuration:transitionProperty+'Duration',transitionProperty:transitionProperty+'Property',transitionDelay:transitionProperty+'Delay'};function Item(element,layout){if(!element){return}
this.element=element;this.layout=layout;this.position={x:0,y:0};this._create()}
var proto=Item.prototype=Object.create(EvEmitter.prototype);proto.constructor=Item;proto._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}};this.css({position:'absolute'})};proto.handleEvent=function(event){var method='on'+event.type;if(this[method]){this[method](event)}};proto.getSize=function(){this.size=getSize(this.element)};proto.css=function(style){var elemStyle=this.element.style;for(var prop in style){var supportedProp=vendorProperties[prop]||prop;elemStyle[supportedProp]=style[prop]}};proto.getPosition=function(){var style=getComputedStyle(this.element);var isOriginLeft=this.layout._getOption('originLeft');var isOriginTop=this.layout._getOption('originTop');var xValue=style[isOriginLeft?'left':'right'];var yValue=style[isOriginTop?'top':'bottom'];var x=parseFloat(xValue);var y=parseFloat(yValue);var layoutSize=this.layout.size;if(xValue.indexOf('%')!=-1){x=(x/100)*layoutSize.width}
if(yValue.indexOf('%')!=-1){y=(y/100)*layoutSize.height}
x=isNaN(x)?0:x;y=isNaN(y)?0:y;x-=isOriginLeft?layoutSize.paddingLeft:layoutSize.paddingRight;y-=isOriginTop?layoutSize.paddingTop:layoutSize.paddingBottom;this.position.x=x;this.position.y=y};proto.layoutPosition=function(){var layoutSize=this.layout.size;var style={};var isOriginLeft=this.layout._getOption('originLeft');var isOriginTop=this.layout._getOption('originTop');var xPadding=isOriginLeft?'paddingLeft':'paddingRight';var xProperty=isOriginLeft?'left':'right';var xResetProperty=isOriginLeft?'right':'left';var x=this.position.x+layoutSize[xPadding];style[xProperty]=this.getXValue(x);style[xResetProperty]='';var yPadding=isOriginTop?'paddingTop':'paddingBottom';var yProperty=isOriginTop?'top':'bottom';var yResetProperty=isOriginTop?'bottom':'top';var y=this.position.y+layoutSize[yPadding];style[yProperty]=this.getYValue(y);style[yResetProperty]='';this.css(style);this.emitEvent('layout',[this])};proto.getXValue=function(x){var isHorizontal=this.layout._getOption('horizontal');return this.layout.options.percentPosition&&!isHorizontal?((x/this.layout.size.width)*100)+'%':x+'px'};proto.getYValue=function(y){var isHorizontal=this.layout._getOption('horizontal');return this.layout.options.percentPosition&&isHorizontal?((y/this.layout.size.height)*100)+'%':y+'px'};proto._transitionTo=function(x,y){this.getPosition();var curX=this.position.x;var curY=this.position.y;var didNotMove=x==this.position.x&&y==this.position.y;this.setPosition(x,y);if(didNotMove&&!this.isTransitioning){this.layoutPosition();return}
var transX=x-curX;var transY=y-curY;var transitionStyle={};transitionStyle.transform=this.getTranslate(transX,transY);this.transition({to:transitionStyle,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})};proto.getTranslate=function(x,y){var isOriginLeft=this.layout._getOption('originLeft');var isOriginTop=this.layout._getOption('originTop');x=isOriginLeft?x:-x;y=isOriginTop?y:-y;return'translate3d('+x+'px, '+y+'px, 0)'};proto.goTo=function(x,y){this.setPosition(x,y);this.layoutPosition()};proto.moveTo=proto._transitionTo;proto.setPosition=function(x,y){this.position.x=parseFloat(x);this.position.y=parseFloat(y)};proto._nonTransition=function(args){this.css(args.to);if(args.isCleaning){this._removeStyles(args.to)}
for(var prop in args.onTransitionEnd){args.onTransitionEnd[prop].call(this)}};proto.transition=function(args){if(!parseFloat(this.layout.options.transitionDuration)){this._nonTransition(args);return}
var _transition=this._transn;for(var prop in args.onTransitionEnd){_transition.onEnd[prop]=args.onTransitionEnd[prop]}
for(prop in args.to){_transition.ingProperties[prop]=!0;if(args.isCleaning){_transition.clean[prop]=!0}}
if(args.from){this.css(args.from);var h=this.element.offsetHeight;h=null}
this.enableTransition(args.to);this.css(args.to);this.isTransitioning=!0};function toDashedAll(str){return str.replace(/([A-Z])/g,function($1){return'-'+$1.toLowerCase()})}
var transitionProps='opacity,'+toDashedAll(transformProperty);proto.enableTransition=function(){if(this.isTransitioning){return}
var duration=this.layout.options.transitionDuration;duration=typeof duration=='number'?duration+'ms':duration;this.css({transitionProperty:transitionProps,transitionDuration:duration,transitionDelay:this.staggerDelay||0});this.element.addEventListener(transitionEndEvent,this,!1)};proto.onwebkitTransitionEnd=function(event){this.ontransitionend(event)};proto.onotransitionend=function(event){this.ontransitionend(event)};var dashedVendorProperties={'-webkit-transform':'transform'};proto.ontransitionend=function(event){if(event.target!==this.element){return}
var _transition=this._transn;var propertyName=dashedVendorProperties[event.propertyName]||event.propertyName;delete _transition.ingProperties[propertyName];if(isEmptyObj(_transition.ingProperties)){this.disableTransition()}
if(propertyName in _transition.clean){this.element.style[event.propertyName]='';delete _transition.clean[propertyName]}
if(propertyName in _transition.onEnd){var onTransitionEnd=_transition.onEnd[propertyName];onTransitionEnd.call(this);delete _transition.onEnd[propertyName]}
this.emitEvent('transitionEnd',[this])};proto.disableTransition=function(){this.removeTransitionStyles();this.element.removeEventListener(transitionEndEvent,this,!1);this.isTransitioning=!1};proto._removeStyles=function(style){var cleanStyle={};for(var prop in style){cleanStyle[prop]=''}
this.css(cleanStyle)};var cleanTransitionStyle={transitionProperty:'',transitionDuration:'',transitionDelay:''};proto.removeTransitionStyles=function(){this.css(cleanTransitionStyle)};proto.stagger=function(delay){delay=isNaN(delay)?0:delay;this.staggerDelay=delay+'ms'};proto.removeElem=function(){this.element.parentNode.removeChild(this.element);this.css({display:''});this.emitEvent('remove',[this])};proto.remove=function(){if(!transitionProperty||!parseFloat(this.layout.options.transitionDuration)){this.removeElem();return}
this.once('transitionEnd',function(){this.removeElem()});this.hide()};proto.reveal=function(){delete this.isHidden;this.css({display:''});var options=this.layout.options;var onTransitionEnd={};var transitionEndProperty=this.getHideRevealTransitionEndProperty('visibleStyle');onTransitionEnd[transitionEndProperty]=this.onRevealTransitionEnd;this.transition({from:options.hiddenStyle,to:options.visibleStyle,isCleaning:!0,onTransitionEnd:onTransitionEnd})};proto.onRevealTransitionEnd=function(){if(!this.isHidden){this.emitEvent('reveal')}};proto.getHideRevealTransitionEndProperty=function(styleProperty){var optionStyle=this.layout.options[styleProperty];if(optionStyle.opacity){return'opacity'}
for(var prop in optionStyle){return prop}};proto.hide=function(){this.isHidden=!0;this.css({display:''});var options=this.layout.options;var onTransitionEnd={};var transitionEndProperty=this.getHideRevealTransitionEndProperty('hiddenStyle');onTransitionEnd[transitionEndProperty]=this.onHideTransitionEnd;this.transition({from:options.visibleStyle,to:options.hiddenStyle,isCleaning:!0,onTransitionEnd:onTransitionEnd})};proto.onHideTransitionEnd=function(){if(this.isHidden){this.css({display:'none'});this.emitEvent('hide')}};proto.destroy=function(){this.css({position:'',left:'',right:'',top:'',bottom:'',transition:'',transform:''})};return Item}));
/*!
 * Outlayer v2.1.1
 * the brains and guts of a layout library
 * MIT license
 */
(function(window,factory){'use strict';if(typeof define=='function'&&define.amd){define('outlayer/outlayer',['ev-emitter/ev-emitter','get-size/get-size','fizzy-ui-utils/utils','./item'],function(EvEmitter,getSize,utils,Item){return factory(window,EvEmitter,getSize,utils,Item)})}else if(typeof module=='object'&&module.exports){module.exports=factory(window,require('ev-emitter'),require('get-size'),require('fizzy-ui-utils'),require('./item'))}else{window.Outlayer=factory(window,window.EvEmitter,window.getSize,window.fizzyUIUtils,window.Outlayer.Item)}}(window,function factory(window,EvEmitter,getSize,utils,Item){'use strict';var console=window.console;var jQuery=window.jQuery;var noop=function(){};var GUID=0;var instances={};function Outlayer(element,options){var queryElement=utils.getQueryElement(element);if(!queryElement){if(console){console.error('Bad element for '+this.constructor.namespace+': '+(queryElement||element))}
return}
this.element=queryElement;if(jQuery){this.$element=jQuery(this.element)}
this.options=utils.extend({},this.constructor.defaults);this.option(options);var id=++GUID;this.element.outlayerGUID=id;instances[id]=this;this._create();var isInitLayout=this._getOption('initLayout');if(isInitLayout){this.layout()}}
Outlayer.namespace='outlayer';Outlayer.Item=Item;Outlayer.defaults={containerStyle:{position:'relative'},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:'0.4s',hiddenStyle:{opacity:0,transform:'scale(0.001)'},visibleStyle:{opacity:1,transform:'scale(1)'}};var proto=Outlayer.prototype;utils.extend(proto,EvEmitter.prototype);proto.option=function(opts){utils.extend(this.options,opts)};proto._getOption=function(option){var oldOption=this.constructor.compatOptions[option];return oldOption&&this.options[oldOption]!==undefined?this.options[oldOption]:this.options[option]};Outlayer.compatOptions={initLayout:'isInitLayout',horizontal:'isHorizontal',layoutInstant:'isLayoutInstant',originLeft:'isOriginLeft',originTop:'isOriginTop',resize:'isResizeBound',resizeContainer:'isResizingContainer'};proto._create=function(){this.reloadItems();this.stamps=[];this.stamp(this.options.stamp);utils.extend(this.element.style,this.options.containerStyle);var canBindResize=this._getOption('resize');if(canBindResize){this.bindResize()}};proto.reloadItems=function(){this.items=this._itemize(this.element.children)};proto._itemize=function(elems){var itemElems=this._filterFindItemElements(elems);var Item=this.constructor.Item;var items=[];for(var i=0;i<itemElems.length;i++){var elem=itemElems[i];var item=new Item(elem,this);items.push(item)}
return items};proto._filterFindItemElements=function(elems){return utils.filterFindElements(elems,this.options.itemSelector)};proto.getItemElements=function(){return this.items.map(function(item){return item.element})};proto.layout=function(){this._resetLayout();this._manageStamps();var layoutInstant=this._getOption('layoutInstant');var isInstant=layoutInstant!==undefined?layoutInstant:!this._isLayoutInited;this.layoutItems(this.items,isInstant);this._isLayoutInited=!0};proto._init=proto.layout;proto._resetLayout=function(){this.getSize()};proto.getSize=function(){this.size=getSize(this.element)};proto._getMeasurement=function(measurement,size){var option=this.options[measurement];var elem;if(!option){this[measurement]=0}else{if(typeof option=='string'){elem=this.element.querySelector(option)}else if(option instanceof HTMLElement){elem=option}
this[measurement]=elem?getSize(elem)[size]:option}};proto.layoutItems=function(items,isInstant){items=this._getItemsForLayout(items);this._layoutItems(items,isInstant);this._postLayout()};proto._getItemsForLayout=function(items){return items.filter(function(item){return!item.isIgnored})};proto._layoutItems=function(items,isInstant){this._emitCompleteOnItems('layout',items);if(!items||!items.length){return}
var queue=[];items.forEach(function(item){var position=this._getItemLayoutPosition(item);position.item=item;position.isInstant=isInstant||item.isLayoutInstant;queue.push(position)},this);this._processLayoutQueue(queue)};proto._getItemLayoutPosition=function(){return{x:0,y:0}};proto._processLayoutQueue=function(queue){this.updateStagger();queue.forEach(function(obj,i){this._positionItem(obj.item,obj.x,obj.y,obj.isInstant,i)},this)};proto.updateStagger=function(){var stagger=this.options.stagger;if(stagger===null||stagger===undefined){this.stagger=0;return}
this.stagger=getMilliseconds(stagger);return this.stagger};proto._positionItem=function(item,x,y,isInstant,i){if(isInstant){item.goTo(x,y)}else{item.stagger(i*this.stagger);item.moveTo(x,y)}};proto._postLayout=function(){this.resizeContainer()};proto.resizeContainer=function(){var isResizingContainer=this._getOption('resizeContainer');if(!isResizingContainer){return}
var size=this._getContainerSize();if(size){this._setContainerMeasure(size.width,!0);this._setContainerMeasure(size.height,!1)}};proto._getContainerSize=noop;proto._setContainerMeasure=function(measure,isWidth){if(measure===undefined){return}
var elemSize=this.size;if(elemSize.isBorderBox){measure+=isWidth?elemSize.paddingLeft+elemSize.paddingRight+elemSize.borderLeftWidth+elemSize.borderRightWidth:elemSize.paddingBottom+elemSize.paddingTop+elemSize.borderTopWidth+elemSize.borderBottomWidth}
measure=Math.max(measure,0);this.element.style[isWidth?'width':'height']=measure+'px'};proto._emitCompleteOnItems=function(eventName,items){var _this=this;function onComplete(){_this.dispatchEvent(eventName+'Complete',null,[items])}
var count=items.length;if(!items||!count){onComplete();return}
var doneCount=0;function tick(){doneCount++;if(doneCount==count){onComplete()}}
items.forEach(function(item){item.once(eventName,tick)})};proto.dispatchEvent=function(type,event,args){var emitArgs=event?[event].concat(args):args;this.emitEvent(type,emitArgs);if(jQuery){this.$element=this.$element||jQuery(this.element);if(event){var $event=jQuery.Event(event);$event.type=type;this.$element.trigger($event,args)}else{this.$element.trigger(type,args)}}};proto.ignore=function(elem){var item=this.getItem(elem);if(item){item.isIgnored=!0}};proto.unignore=function(elem){var item=this.getItem(elem);if(item){delete item.isIgnored}};proto.stamp=function(elems){elems=this._find(elems);if(!elems){return}
this.stamps=this.stamps.concat(elems);elems.forEach(this.ignore,this)};proto.unstamp=function(elems){elems=this._find(elems);if(!elems){return}
elems.forEach(function(elem){utils.removeFrom(this.stamps,elem);this.unignore(elem)},this)};proto._find=function(elems){if(!elems){return}
if(typeof elems=='string'){elems=this.element.querySelectorAll(elems)}
elems=utils.makeArray(elems);return elems};proto._manageStamps=function(){if(!this.stamps||!this.stamps.length){return}
this._getBoundingRect();this.stamps.forEach(this._manageStamp,this)};proto._getBoundingRect=function(){var boundingRect=this.element.getBoundingClientRect();var size=this.size;this._boundingRect={left:boundingRect.left+size.paddingLeft+size.borderLeftWidth,top:boundingRect.top+size.paddingTop+size.borderTopWidth,right:boundingRect.right-(size.paddingRight+size.borderRightWidth),bottom:boundingRect.bottom-(size.paddingBottom+size.borderBottomWidth)}};proto._manageStamp=noop;proto._getElementOffset=function(elem){var boundingRect=elem.getBoundingClientRect();var thisRect=this._boundingRect;var size=getSize(elem);var offset={left:boundingRect.left-thisRect.left-size.marginLeft,top:boundingRect.top-thisRect.top-size.marginTop,right:thisRect.right-boundingRect.right-size.marginRight,bottom:thisRect.bottom-boundingRect.bottom-size.marginBottom};return offset};proto.handleEvent=utils.handleEvent;proto.bindResize=function(){window.addEventListener('resize',this);this.isResizeBound=!0};proto.unbindResize=function(){window.removeEventListener('resize',this);this.isResizeBound=!1};proto.onresize=function(){this.resize()};utils.debounceMethod(Outlayer,'onresize',100);proto.resize=function(){if(!this.isResizeBound||!this.needsResizeLayout()){return}
this.layout()};proto.needsResizeLayout=function(){var size=getSize(this.element);var hasSizes=this.size&&size;return hasSizes&&size.innerWidth!==this.size.innerWidth};proto.addItems=function(elems){var items=this._itemize(elems);if(items.length){this.items=this.items.concat(items)}
return items};proto.appended=function(elems){var items=this.addItems(elems);if(!items.length){return}
this.layoutItems(items,!0);this.reveal(items)};proto.prepended=function(elems){var items=this._itemize(elems);if(!items.length){return}
var previousItems=this.items.slice(0);this.items=items.concat(previousItems);this._resetLayout();this._manageStamps();this.layoutItems(items,!0);this.reveal(items);this.layoutItems(previousItems)};proto.reveal=function(items){this._emitCompleteOnItems('reveal',items);if(!items||!items.length){return}
var stagger=this.updateStagger();items.forEach(function(item,i){item.stagger(i*stagger);item.reveal()})};proto.hide=function(items){this._emitCompleteOnItems('hide',items);if(!items||!items.length){return}
var stagger=this.updateStagger();items.forEach(function(item,i){item.stagger(i*stagger);item.hide()})};proto.revealItemElements=function(elems){var items=this.getItems(elems);this.reveal(items)};proto.hideItemElements=function(elems){var items=this.getItems(elems);this.hide(items)};proto.getItem=function(elem){for(var i=0;i<this.items.length;i++){var item=this.items[i];if(item.element==elem){return item}}};proto.getItems=function(elems){elems=utils.makeArray(elems);var items=[];elems.forEach(function(elem){var item=this.getItem(elem);if(item){items.push(item)}},this);return items};proto.remove=function(elems){var removeItems=this.getItems(elems);this._emitCompleteOnItems('remove',removeItems);if(!removeItems||!removeItems.length){return}
removeItems.forEach(function(item){item.remove();utils.removeFrom(this.items,item)},this)};proto.destroy=function(){var style=this.element.style;style.height='';style.position='';style.width='';this.items.forEach(function(item){item.destroy()});this.unbindResize();var id=this.element.outlayerGUID;delete instances[id];delete this.element.outlayerGUID;if(jQuery){jQuery.removeData(this.element,this.constructor.namespace)}};Outlayer.data=function(elem){elem=utils.getQueryElement(elem);var id=elem&&elem.outlayerGUID;return id&&instances[id]};Outlayer.create=function(namespace,options){var Layout=subclass(Outlayer);Layout.defaults=utils.extend({},Outlayer.defaults);utils.extend(Layout.defaults,options);Layout.compatOptions=utils.extend({},Outlayer.compatOptions);Layout.namespace=namespace;Layout.data=Outlayer.data;Layout.Item=subclass(Item);utils.htmlInit(Layout,namespace);if(jQuery&&jQuery.bridget){jQuery.bridget(namespace,Layout)}
return Layout};function subclass(Parent){function SubClass(){Parent.apply(this,arguments)}
SubClass.prototype=Object.create(Parent.prototype);SubClass.prototype.constructor=SubClass;return SubClass}
var msUnits={ms:1,s:1000};function getMilliseconds(time){if(typeof time=='number'){return time}
var matches=time.match(/(^\d*\.?\d*)(\w*)/);var num=matches&&matches[1];var unit=matches&&matches[2];if(!num.length){return 0}
num=parseFloat(num);var mult=msUnits[unit]||1;return num*mult}
Outlayer.Item=Item;return Outlayer}));
/*!
 * Masonry v4.2.2
 * Cascading grid layout library
 * https://masonry.desandro.com
 * MIT License
 * by David DeSandro
 */
(function(window,factory){if(typeof define=='function'&&define.amd){define(['outlayer/outlayer','get-size/get-size'],factory)}else if(typeof module=='object'&&module.exports){module.exports=factory(require('outlayer'),require('get-size'))}else{window.Masonry=factory(window.Outlayer,window.getSize)}}(window,function factory(Outlayer,getSize){var Masonry=Outlayer.create('masonry');Masonry.compatOptions.fitWidth='isFitWidth';var proto=Masonry.prototype;proto._resetLayout=function(){this.getSize();this._getMeasurement('columnWidth','outerWidth');this._getMeasurement('gutter','outerWidth');this.measureColumns();this.colYs=[];for(var i=0;i<this.cols;i++){this.colYs.push(0)}
this.maxY=0;this.horizontalColIndex=0};proto.measureColumns=function(){this.getContainerWidth();if(!this.columnWidth){var firstItem=this.items[0];var firstItemElem=firstItem&&firstItem.element;this.columnWidth=firstItemElem&&getSize(firstItemElem).outerWidth||this.containerWidth}
var columnWidth=this.columnWidth+=this.gutter;var containerWidth=this.containerWidth+this.gutter;var cols=containerWidth/columnWidth;var excess=columnWidth-containerWidth%columnWidth;var mathMethod=excess&&excess<1?'round':'floor';cols=Math[mathMethod](cols);this.cols=Math.max(cols,1)};proto.getContainerWidth=function(){var isFitWidth=this._getOption('fitWidth');var container=isFitWidth?this.element.parentNode:this.element;var size=getSize(container);this.containerWidth=size&&size.innerWidth};proto._getItemLayoutPosition=function(item){item.getSize();var remainder=item.size.outerWidth%this.columnWidth;var mathMethod=remainder&&remainder<1?'round':'ceil';var colSpan=Math[mathMethod](item.size.outerWidth/this.columnWidth);colSpan=Math.min(colSpan,this.cols);var colPosMethod=this.options.horizontalOrder?'_getHorizontalColPosition':'_getTopColPosition';var colPosition=this[colPosMethod](colSpan,item);var position={x:this.columnWidth*colPosition.col,y:colPosition.y};var setHeight=colPosition.y+item.size.outerHeight;var setMax=colSpan+colPosition.col;for(var i=colPosition.col;i<setMax;i++){this.colYs[i]=setHeight}
return position};proto._getTopColPosition=function(colSpan){var colGroup=this._getTopColGroup(colSpan);var minimumY=Math.min.apply(Math,colGroup);return{col:colGroup.indexOf(minimumY),y:minimumY,}};proto._getTopColGroup=function(colSpan){if(colSpan<2){return this.colYs}
var colGroup=[];var groupCount=this.cols+1-colSpan;for(var i=0;i<groupCount;i++){colGroup[i]=this._getColGroupY(i,colSpan)}
return colGroup};proto._getColGroupY=function(col,colSpan){if(colSpan<2){return this.colYs[col]}
var groupColYs=this.colYs.slice(col,col+colSpan);return Math.max.apply(Math,groupColYs)};proto._getHorizontalColPosition=function(colSpan,item){var col=this.horizontalColIndex%this.cols;var isOver=colSpan>1&&col+colSpan>this.cols;col=isOver?0:col;var hasSize=item.size.outerWidth&&item.size.outerHeight;this.horizontalColIndex=hasSize?col+colSpan:this.horizontalColIndex;return{col:col,y:this._getColGroupY(col,colSpan),}};proto._manageStamp=function(stamp){var stampSize=getSize(stamp);var offset=this._getElementOffset(stamp);var isOriginLeft=this._getOption('originLeft');var firstX=isOriginLeft?offset.left:offset.right;var lastX=firstX+stampSize.outerWidth;var firstCol=Math.floor(firstX/this.columnWidth);firstCol=Math.max(0,firstCol);var lastCol=Math.floor(lastX/this.columnWidth);lastCol-=lastX%this.columnWidth?0:1;lastCol=Math.min(this.cols-1,lastCol);var isOriginTop=this._getOption('originTop');var stampMaxY=(isOriginTop?offset.top:offset.bottom)+stampSize.outerHeight;for(var i=firstCol;i<=lastCol;i++){this.colYs[i]=Math.max(stampMaxY,this.colYs[i])}};proto._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var size={height:this.maxY};if(this._getOption('fitWidth')){size.width=this._getContainerFitWidth()}
return size};proto._getContainerFitWidth=function(){var unusedCols=0;var i=this.cols;while(--i){if(this.colYs[i]!==0){break}
unusedCols++}
return(this.cols-unusedCols)*this.columnWidth-this.gutter};proto.needsResizeLayout=function(){var previousWidth=this.containerWidth;this.getContainerWidth();return previousWidth!=this.containerWidth};return Masonry}));/*!
 * GSAP 3.11.4
 * https://greensock.com
 * 
 * @license Copyright 2022, GreenSock. All rights reserved.
 * Subject to the terms at https://greensock.com/standard-license or for Club GreenSock members, the agreement issued with that membership.
 * @author: Jack Doyle, jack@greensock.com
 */
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).window=t.window||{})}(this,function(e){"use strict";function _inheritsLoose(t,e){t.prototype=Object.create(e.prototype),(t.prototype.constructor=t).__proto__=e}function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function r(t){return"string"==typeof t}function s(t){return"function"==typeof t}function t(t){return"number"==typeof t}function u(t){return void 0===t}function v(t){return"object"==typeof t}function w(t){return!1!==t}function x(){return"undefined"!=typeof window}function y(t){return s(t)||r(t)}function P(t){return(i=yt(t,ot))&&Ce}function Q(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")}function R(t,e){return!e&&console.warn(t)}function S(t,e){return t&&(ot[t]=e)&&i&&(i[t]=e)||ot}function T(){return 0}function ea(t){var e,r,i=t[0];if(v(i)||s(i)||(t=[t]),!(e=(i._gsap||{}).harness)){for(r=gt.length;r--&&!gt[r].targetTest(i););e=gt[r]}for(r=t.length;r--;)t[r]&&(t[r]._gsap||(t[r]._gsap=new jt(t[r],e)))||t.splice(r,1);return t}function fa(t){return t._gsap||ea(Ot(t))[0]._gsap}function ga(t,e,r){return(r=t[e])&&s(r)?t[e]():u(r)&&t.getAttribute&&t.getAttribute(e)||r}function ha(t,e){return(t=t.split(",")).forEach(e)||t}function ia(t){return Math.round(1e5*t)/1e5||0}function ja(t){return Math.round(1e7*t)/1e7||0}function ka(t,e){var r=e.charAt(0),i=parseFloat(e.substr(2));return t=parseFloat(t),"+"===r?t+i:"-"===r?t-i:"*"===r?t*i:t/i}function la(t,e){for(var r=e.length,i=0;t.indexOf(e[i])<0&&++i<r;);return i<r}function ma(){var t,e,r=ct.length,i=ct.slice(0);for(dt={},t=ct.length=0;t<r;t++)(e=i[t])&&e._lazy&&(e.render(e._lazy[0],e._lazy[1],!0)._lazy=0)}function na(t,e,r,i){ct.length&&!B&&ma(),t.render(e,r,i||B&&e<0&&(t._initted||t._startAt)),ct.length&&!B&&ma()}function oa(t){var e=parseFloat(t);return(e||0===e)&&(t+"").match(at).length<2?e:r(t)?t.trim():t}function pa(t){return t}function qa(t,e){for(var r in e)r in t||(t[r]=e[r]);return t}function ta(t,e){for(var r in e)"__proto__"!==r&&"constructor"!==r&&"prototype"!==r&&(t[r]=v(e[r])?ta(t[r]||(t[r]={}),e[r]):e[r]);return t}function ua(t,e){var r,i={};for(r in t)r in e||(i[r]=t[r]);return i}function va(t){var e=t.parent||L,r=t.keyframes?function _setKeyframeDefaults(i){return function(t,e){for(var r in e)r in t||"duration"===r&&i||"ease"===r||(t[r]=e[r])}}($(t.keyframes)):qa;if(w(t.inherit))for(;e;)r(t,e.vars.defaults),e=e.parent||e._dp;return t}function xa(t,e,r,i,n){void 0===r&&(r="_first"),void 0===i&&(i="_last");var a,s=t[i];if(n)for(a=e[n];s&&s[n]>a;)s=s._prev;return s?(e._next=s._next,s._next=e):(e._next=t[r],t[r]=e),e._next?e._next._prev=e:t[i]=e,e._prev=s,e.parent=e._dp=t,e}function ya(t,e,r,i){void 0===r&&(r="_first"),void 0===i&&(i="_last");var n=e._prev,a=e._next;n?n._next=a:t[r]===e&&(t[r]=a),a?a._prev=n:t[i]===e&&(t[i]=n),e._next=e._prev=e.parent=null}function za(t,e){!t.parent||e&&!t.parent.autoRemoveChildren||t.parent.remove(t),t._act=0}function Aa(t,e){if(t&&(!e||e._end>t._dur||e._start<0))for(var r=t;r;)r._dirty=1,r=r.parent;return t}function Ca(t,e,r,i){return t._startAt&&(B?t._startAt.revert(ht):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(e,!0,i))}function Ea(t){return t._repeat?Tt(t._tTime,t=t.duration()+t._rDelay)*t:0}function Ga(t,e){return(t-e._start)*e._ts+(0<=e._ts?0:e._dirty?e.totalDuration():e._tDur)}function Ha(t){return t._end=ja(t._start+(t._tDur/Math.abs(t._ts||t._rts||V)||0))}function Ia(t,e){var r=t._dp;return r&&r.smoothChildTiming&&t._ts&&(t._start=ja(r._time-(0<t._ts?e/t._ts:((t._dirty?t.totalDuration():t._tDur)-e)/-t._ts)),Ha(t),r._dirty||Aa(r,t)),t}function Ja(t,e){var r;if((e._time||e._initted&&!e._dur)&&(r=Ga(t.rawTime(),e),(!e._dur||kt(0,e.totalDuration(),r)-e._tTime>V)&&e.render(r,!0)),Aa(t,e)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur<t.duration())for(r=t;r._dp;)0<=r.rawTime()&&r.totalTime(r._tTime),r=r._dp;t._zTime=-V}}function Ka(e,r,i,n){return r.parent&&za(r),r._start=ja((t(i)?i:i||e!==L?xt(e,i,r):e._time)+r._delay),r._end=ja(r._start+(r.totalDuration()/Math.abs(r.timeScale())||0)),xa(e,r,"_first","_last",e._sort?"_start":0),bt(r)||(e._recent=r),n||Ja(e,r),e._ts<0&&Ia(e,e._tTime),e}function La(t,e){return(ot.ScrollTrigger||Q("scrollTrigger",e))&&ot.ScrollTrigger.create(e,t)}function Ma(t,e,r,i,n){return Ht(t,e,n),t._initted?!r&&t._pt&&!B&&(t._dur&&!1!==t.vars.lazy||!t._dur&&t.vars.lazy)&&f!==Et.frame?(ct.push(t),t._lazy=[n,i],1):void 0:1}function Ra(t,e,r,i){var n=t._repeat,a=ja(e)||0,s=t._tTime/t._tDur;return s&&!i&&(t._time*=a/t._dur),t._dur=a,t._tDur=n?n<0?1e10:ja(a*(n+1)+t._rDelay*n):a,0<s&&!i&&Ia(t,t._tTime=t._tDur*s),t.parent&&Ha(t),r||Aa(t.parent,t),t}function Sa(t){return t instanceof Ut?Aa(t):Ra(t,t._dur)}function Va(e,r,i){var n,a,s=t(r[1]),o=(s?2:1)+(e<2?0:1),u=r[o];if(s&&(u.duration=r[1]),u.parent=i,e){for(n=u,a=i;a&&!("immediateRender"in n);)n=a.vars.defaults||{},a=w(a.vars.inherit)&&a.parent;u.immediateRender=w(n.immediateRender),e<2?u.runBackwards=1:u.startAt=r[o-1]}return new Gt(r[0],u,r[1+o])}function Wa(t,e){return t||0===t?e(t):e}function Ya(t,e){return r(t)&&(e=st.exec(t))?e[1]:""}function _a(t,e){return t&&v(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&v(t[0]))&&!t.nodeType&&t!==h}function cb(r){return r=Ot(r)[0]||R("Invalid scope")||{},function(t){var e=r.current||r.nativeElement||r;return Ot(t,e.querySelectorAll?e:e===r?R("Invalid scope")||a.createElement("div"):r)}}function db(t){return t.sort(function(){return.5-Math.random()})}function eb(t){if(s(t))return t;var p=v(t)?t:{each:t},_=Yt(p.ease),m=p.from||0,g=parseFloat(p.base)||0,y={},e=0<m&&m<1,T=isNaN(m)||e,b=p.axis,w=m,x=m;return r(m)?w=x={center:.5,edges:.5,end:1}[m]||0:!e&&T&&(w=m[0],x=m[1]),function(t,e,r){var i,n,a,s,o,u,h,l,f,c=(r||p).length,d=y[c];if(!d){if(!(f="auto"===p.grid?0:(p.grid||[1,U])[1])){for(h=-U;h<(h=r[f++].getBoundingClientRect().left)&&f<c;);f--}for(d=y[c]=[],i=T?Math.min(f,c)*w-.5:m%f,n=f===U?0:T?c*x/f-.5:m/f|0,l=U,u=h=0;u<c;u++)a=u%f-i,s=n-(u/f|0),d[u]=o=b?Math.abs("y"===b?s:a):K(a*a+s*s),h<o&&(h=o),o<l&&(l=o);"random"===m&&db(d),d.max=h-l,d.min=l,d.v=c=(parseFloat(p.amount)||parseFloat(p.each)*(c<f?c-1:b?"y"===b?c/f:f:Math.max(f,c/f))||0)*("edges"===m?-1:1),d.b=c<0?g-c:g,d.u=Ya(p.amount||p.each)||0,_=_&&c<0?Lt(_):_}return c=(d[t]-d.min)/d.max||0,ja(d.b+(_?_(c):c)*d.v)+d.u}}function fb(i){var n=Math.pow(10,((i+"").split(".")[1]||"").length);return function(e){var r=ja(Math.round(parseFloat(e)/i)*i*n);return(r-r%1)/n+(t(e)?0:Ya(e))}}function gb(h,e){var l,f,r=$(h);return!r&&v(h)&&(l=r=h.radius||U,h.values?(h=Ot(h.values),(f=!t(h[0]))&&(l*=l)):h=fb(h.increment)),Wa(e,r?s(h)?function(t){return f=h(t),Math.abs(f-t)<=l?f:t}:function(e){for(var r,i,n=parseFloat(f?e.x:e),a=parseFloat(f?e.y:0),s=U,o=0,u=h.length;u--;)(r=f?(r=h[u].x-n)*r+(i=h[u].y-a)*i:Math.abs(h[u]-n))<s&&(s=r,o=u);return o=!l||s<=l?h[o]:e,f||o===e||t(e)?o:o+Ya(e)}:fb(h))}function hb(t,e,r,i){return Wa($(t)?!e:!0===r?!!(r=0):!i,function(){return $(t)?t[~~(Math.random()*t.length)]:(r=r||1e-5)&&(i=r<1?Math.pow(10,(r+"").length-2):1)&&Math.floor(Math.round((t-r/2+Math.random()*(e-t+.99*r))/r)*r*i)/i})}function lb(e,r,t){return Wa(t,function(t){return e[~~r(t)]})}function ob(t){for(var e,r,i,n,a=0,s="";~(e=t.indexOf("random(",a));)i=t.indexOf(")",e),n="["===t.charAt(e+7),r=t.substr(e+7,i-e-7).match(n?at:tt),s+=t.substr(a,e-a)+hb(n?r:+r[0],n?0:+r[1],+r[2]||1e-5),a=i+1;return s+t.substr(a,t.length-a)}function rb(t,e,r){var i,n,a,s=t.labels,o=U;for(i in s)(n=s[i]-e)<0==!!r&&n&&o>(n=Math.abs(n))&&(a=i,o=n);return a}function tb(t){return za(t),t.scrollTrigger&&t.scrollTrigger.kill(!!B),t.progress()<1&&Ct(t,"onInterrupt"),t}function yb(t,e,r){return(6*(t+=t<0?1:1<t?-1:0)<1?e+(r-e)*t*6:t<.5?r:3*t<2?e+(r-e)*(2/3-t)*6:e)*At+.5|0}function zb(e,r,i){var n,a,s,o,u,h,l,f,c,d,p=e?t(e)?[e>>16,e>>8&At,e&At]:0:St.black;if(!p){if(","===e.substr(-1)&&(e=e.substr(0,e.length-1)),St[e])p=St[e];else if("#"===e.charAt(0)){if(e.length<6&&(e="#"+(n=e.charAt(1))+n+(a=e.charAt(2))+a+(s=e.charAt(3))+s+(5===e.length?e.charAt(4)+e.charAt(4):"")),9===e.length)return[(p=parseInt(e.substr(1,6),16))>>16,p>>8&At,p&At,parseInt(e.substr(7),16)/255];p=[(e=parseInt(e.substr(1),16))>>16,e>>8&At,e&At]}else if("hsl"===e.substr(0,3))if(p=d=e.match(tt),r){if(~e.indexOf("="))return p=e.match(et),i&&p.length<4&&(p[3]=1),p}else o=+p[0]%360/360,u=p[1]/100,n=2*(h=p[2]/100)-(a=h<=.5?h*(u+1):h+u-h*u),3<p.length&&(p[3]*=1),p[0]=yb(o+1/3,n,a),p[1]=yb(o,n,a),p[2]=yb(o-1/3,n,a);else p=e.match(tt)||St.transparent;p=p.map(Number)}return r&&!d&&(n=p[0]/At,a=p[1]/At,s=p[2]/At,h=((l=Math.max(n,a,s))+(f=Math.min(n,a,s)))/2,l===f?o=u=0:(c=l-f,u=.5<h?c/(2-l-f):c/(l+f),o=l===n?(a-s)/c+(a<s?6:0):l===a?(s-n)/c+2:(n-a)/c+4,o*=60),p[0]=~~(o+.5),p[1]=~~(100*u+.5),p[2]=~~(100*h+.5)),i&&p.length<4&&(p[3]=1),p}function Ab(t){var r=[],i=[],n=-1;return t.split(Rt).forEach(function(t){var e=t.match(rt)||[];r.push.apply(r,e),i.push(n+=e.length+1)}),r.c=i,r}function Bb(t,e,r){var i,n,a,s,o="",u=(t+o).match(Rt),h=e?"hsla(":"rgba(",l=0;if(!u)return t;if(u=u.map(function(t){return(t=zb(t,e,1))&&h+(e?t[0]+","+t[1]+"%,"+t[2]+"%,"+t[3]:t.join(","))+")"}),r&&(a=Ab(t),(i=r.c).join(o)!==a.c.join(o)))for(s=(n=t.replace(Rt,"1").split(rt)).length-1;l<s;l++)o+=n[l]+(~i.indexOf(l)?u.shift()||h+"0,0,0,0)":(a.length?a:u.length?u:r).shift());if(!n)for(s=(n=t.split(Rt)).length-1;l<s;l++)o+=n[l]+u[l];return o+n[s]}function Eb(t){var e,r=t.join(" ");if(Rt.lastIndex=0,Rt.test(r))return e=Dt.test(r),t[1]=Bb(t[1],e),t[0]=Bb(t[0],e,Ab(t[1])),!0}function Nb(t){var e=(t+"").split("("),r=Ft[e[0]];return r&&1<e.length&&r.config?r.config.apply(null,~t.indexOf("{")?[function _parseObjectInString(t){for(var e,r,i,n={},a=t.substr(1,t.length-3).split(":"),s=a[0],o=1,u=a.length;o<u;o++)r=a[o],e=o!==u-1?r.lastIndexOf(","):r.length,i=r.substr(0,e),n[s]=isNaN(i)?i.replace(Bt,"").trim():+i,s=r.substr(e+1).trim();return n}(e[1])]:function _valueInParentheses(t){var e=t.indexOf("(")+1,r=t.indexOf(")"),i=t.indexOf("(",e);return t.substring(e,~i&&i<r?t.indexOf(")",r+1):r)}(t).split(",").map(oa)):Ft._CE&&It.test(t)?Ft._CE("",t):r}function Pb(t,e){for(var r,i=t._first;i;)i instanceof Ut?Pb(i,e):!i.vars.yoyoEase||i._yoyo&&i._repeat||i._yoyo===e||(i.timeline?Pb(i.timeline,e):(r=i._ease,i._ease=i._yEase,i._yEase=r,i._yoyo=e)),i=i._next}function Rb(t,e,r,i){void 0===r&&(r=function easeOut(t){return 1-e(1-t)}),void 0===i&&(i=function easeInOut(t){return t<.5?e(2*t)/2:1-e(2*(1-t))/2});var n,a={easeIn:e,easeOut:r,easeInOut:i};return ha(t,function(t){for(var e in Ft[t]=ot[t]=a,Ft[n=t.toLowerCase()]=r,a)Ft[n+("easeIn"===e?".in":"easeOut"===e?".out":".inOut")]=Ft[t+"."+e]=a[e]}),a}function Sb(e){return function(t){return t<.5?(1-e(1-2*t))/2:.5+e(2*(t-.5))/2}}function Tb(r,t,e){function Hm(t){return 1===t?1:i*Math.pow(2,-10*t)*G((t-a)*n)+1}var i=1<=t?t:1,n=(e||(r?.3:.45))/(t<1?t:1),a=n/W*(Math.asin(1/i)||0),s="out"===r?Hm:"in"===r?function(t){return 1-Hm(1-t)}:Sb(Hm);return n=W/n,s.config=function(t,e){return Tb(r,t,e)},s}function Ub(e,r){function Pm(t){return t?--t*t*((r+1)*t+r)+1:0}void 0===r&&(r=1.70158);var t="out"===e?Pm:"in"===e?function(t){return 1-Pm(1-t)}:Sb(Pm);return t.config=function(t){return Ub(e,t)},t}var I,B,l,L,h,n,a,i,o,f,c,d,p,_,m,g,b,k,M,O,C,A,D,E,z,F,Y,N,j={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},q={duration:.5,overwrite:!1,delay:0},U=1e8,V=1/U,W=2*Math.PI,X=W/4,H=0,K=Math.sqrt,Z=Math.cos,G=Math.sin,J="function"==typeof ArrayBuffer&&ArrayBuffer.isView||function(){},$=Array.isArray,tt=/(?:-?\.?\d|\.)+/gi,et=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,rt=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,it=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,nt=/[+-]=-?[.\d]+/,at=/[^,'"\[\]\s]+/gi,st=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,ot={},ut={suppressEvents:!0,isStart:!0,kill:!1},ht={suppressEvents:!0,kill:!1},lt={suppressEvents:!0},ft={},ct=[],dt={},pt={},_t={},mt=30,gt=[],vt="",yt=function _merge(t,e){for(var r in e)t[r]=e[r];return t},Tt=function _animationCycle(t,e){var r=Math.floor(t/=e);return t&&r===t?r-1:r},bt=function _isFromOrFromStart(t){var e=t.data;return"isFromStart"===e||"isStart"===e},wt={_start:0,endTime:T,totalDuration:T},xt=function _parsePosition(t,e,i){var n,a,s,o=t.labels,u=t._recent||wt,h=t.duration()>=U?u.endTime(!1):t._dur;return r(e)&&(isNaN(e)||e in o)?(a=e.charAt(0),s="%"===e.substr(-1),n=e.indexOf("="),"<"===a||">"===a?(0<=n&&(e=e.replace(/=/,"")),("<"===a?u._start:u.endTime(0<=u._repeat))+(parseFloat(e.substr(1))||0)*(s?(n<0?u:i).totalDuration()/100:1)):n<0?(e in o||(o[e]=h),o[e]):(a=parseFloat(e.charAt(n-1)+e.substr(n+1)),s&&i&&(a=a/100*($(i)?i[0]:i).totalDuration()),1<n?_parsePosition(t,e.substr(0,n-1),i)+a:h+a)):null==e?h:+e},kt=function _clamp(t,e,r){return r<t?t:e<r?e:r},Mt=[].slice,Ot=function toArray(t,e,i){return l&&!e&&l.selector?l.selector(t):!r(t)||i||!n&&zt()?$(t)?function _flatten(t,e,i){return void 0===i&&(i=[]),t.forEach(function(t){return r(t)&&!e||_a(t,1)?i.push.apply(i,Ot(t)):i.push(t)})||i}(t,i):_a(t)?Mt.call(t,0):t?[t]:[]:Mt.call((e||a).querySelectorAll(t),0)},Pt=function mapRange(e,t,r,i,n){var a=t-e,s=i-r;return Wa(n,function(t){return r+((t-e)/a*s||0)})},Ct=function _callback(t,e,r){var i,n,a,s=t.vars,o=s[e],u=l,h=t._ctx;if(o)return i=s[e+"Params"],n=s.callbackScope||t,r&&ct.length&&ma(),h&&(l=h),a=i?o.apply(n,i):o.call(n),l=u,a},At=255,St={aqua:[0,At,At],lime:[0,At,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,At],navy:[0,0,128],white:[At,At,At],olive:[128,128,0],yellow:[At,At,0],orange:[At,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[At,0,0],pink:[At,192,203],cyan:[0,At,At],transparent:[At,At,At,0]},Rt=function(){var t,e="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b";for(t in St)e+="|"+t+"\\b";return new RegExp(e+")","gi")}(),Dt=/hsl[a]?\(/,Et=(M=Date.now,O=500,C=33,A=M(),D=A,z=E=1e3/240,g={time:0,frame:0,tick:function tick(){wl(!0)},deltaRatio:function deltaRatio(t){return b/(1e3/(t||60))},wake:function wake(){o&&(!n&&x()&&(h=n=window,a=h.document||{},ot.gsap=Ce,(h.gsapVersions||(h.gsapVersions=[])).push(Ce.version),P(i||h.GreenSockGlobals||!h.gsap&&h||{}),m=h.requestAnimationFrame),p&&g.sleep(),_=m||function(t){return setTimeout(t,z-1e3*g.time+1|0)},d=1,wl(2))},sleep:function sleep(){(m?h.cancelAnimationFrame:clearTimeout)(p),d=0,_=T},lagSmoothing:function lagSmoothing(t,e){O=t||1/0,C=Math.min(e||33,O)},fps:function fps(t){E=1e3/(t||240),z=1e3*g.time+E},add:function add(n,t,e){var a=t?function(t,e,r,i){n(t,e,r,i),g.remove(a)}:n;return g.remove(n),F[e?"unshift":"push"](a),zt(),a},remove:function remove(t,e){~(e=F.indexOf(t))&&F.splice(e,1)&&e<=k&&k--},_listeners:F=[]}),zt=function _wake(){return!d&&Et.wake()},Ft={},It=/^[\d.\-M][\d.\-,\s]/,Bt=/["']/g,Lt=function _invertEase(e){return function(t){return 1-e(1-t)}},Yt=function _parseEase(t,e){return t&&(s(t)?t:Ft[t]||Nb(t))||e};function wl(t){var e,r,i,n,a=M()-D,s=!0===t;if(O<a&&(A+=a-C),(0<(e=(i=(D+=a)-A)-z)||s)&&(n=++g.frame,b=i-1e3*g.time,g.time=i/=1e3,z+=e+(E<=e?4:E-e),r=1),s||(p=_(wl)),r)for(k=0;k<F.length;k++)F[k](i,b,n,t)}function en(t){return t<N?Y*t*t:t<.7272727272727273?Y*Math.pow(t-1.5/2.75,2)+.75:t<.9090909090909092?Y*(t-=2.25/2.75)*t+.9375:Y*Math.pow(t-2.625/2.75,2)+.984375}ha("Linear,Quad,Cubic,Quart,Quint,Strong",function(t,e){var r=e<5?e+1:e;Rb(t+",Power"+(r-1),e?function(t){return Math.pow(t,r)}:function(t){return t},function(t){return 1-Math.pow(1-t,r)},function(t){return t<.5?Math.pow(2*t,r)/2:1-Math.pow(2*(1-t),r)/2})}),Ft.Linear.easeNone=Ft.none=Ft.Linear.easeIn,Rb("Elastic",Tb("in"),Tb("out"),Tb()),Y=7.5625,N=1/2.75,Rb("Bounce",function(t){return 1-en(1-t)},en),Rb("Expo",function(t){return t?Math.pow(2,10*(t-1)):0}),Rb("Circ",function(t){return-(K(1-t*t)-1)}),Rb("Sine",function(t){return 1===t?1:1-Z(t*X)}),Rb("Back",Ub("in"),Ub("out"),Ub()),Ft.SteppedEase=Ft.steps=ot.SteppedEase={config:function config(t,e){void 0===t&&(t=1);var r=1/t,i=t+(e?0:1),n=e?1:0;return function(t){return((i*kt(0,.99999999,t)|0)+n)*r}}},q.ease=Ft["quad.out"],ha("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(t){return vt+=t+","+t+"Params,"});var Nt,jt=function GSCache(t,e){this.id=H++,(t._gsap=this).target=t,this.harness=e,this.get=e?e.get:ga,this.set=e?e.getSetter:re},qt=((Nt=Animation.prototype).delay=function delay(t){return t||0===t?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+t-this._delay),this._delay=t,this):this._delay},Nt.duration=function duration(t){return arguments.length?this.totalDuration(0<this._repeat?t+(t+this._rDelay)*this._repeat:t):this.totalDuration()&&this._dur},Nt.totalDuration=function totalDuration(t){return arguments.length?(this._dirty=0,Ra(this,this._repeat<0?t:(t-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},Nt.totalTime=function totalTime(t,e){if(zt(),!arguments.length)return this._tTime;var r=this._dp;if(r&&r.smoothChildTiming&&this._ts){for(Ia(this,t),!r._dp||r.parent||Ja(r,this);r&&r.parent;)r.parent._time!==r._start+(0<=r._ts?r._tTime/r._ts:(r.totalDuration()-r._tTime)/-r._ts)&&r.totalTime(r._tTime,!0),r=r.parent;!this.parent&&this._dp.autoRemoveChildren&&(0<this._ts&&t<this._tDur||this._ts<0&&0<t||!this._tDur&&!t)&&Ka(this._dp,this,this._start-this._delay)}return(this._tTime!==t||!this._dur&&!e||this._initted&&Math.abs(this._zTime)===V||!t&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=t),na(this,t,e)),this},Nt.time=function time(t,e){return arguments.length?this.totalTime(Math.min(this.totalDuration(),t+Ea(this))%(this._dur+this._rDelay)||(t?this._dur:0),e):this._time},Nt.totalProgress=function totalProgress(t,e){return arguments.length?this.totalTime(this.totalDuration()*t,e):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.ratio},Nt.progress=function progress(t,e){return arguments.length?this.totalTime(this.duration()*(!this._yoyo||1&this.iteration()?t:1-t)+Ea(this),e):this.duration()?Math.min(1,this._time/this._dur):this.ratio},Nt.iteration=function iteration(t,e){var r=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(t-1)*r,e):this._repeat?Tt(this._tTime,r)+1:1},Nt.timeScale=function timeScale(t){if(!arguments.length)return this._rts===-V?0:this._rts;if(this._rts===t)return this;var e=this.parent&&this._ts?Ga(this.parent._time,this):this._tTime;return this._rts=+t||0,this._ts=this._ps||t===-V?0:this._rts,this.totalTime(kt(-this._delay,this._tDur,e),!0),Ha(this),function _recacheAncestors(t){for(var e=t.parent;e&&e.parent;)e._dirty=1,e.totalDuration(),e=e.parent;return t}(this)},Nt.paused=function paused(t){return arguments.length?(this._ps!==t&&((this._ps=t)?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(zt(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&Math.abs(this._zTime)!==V&&(this._tTime-=V)))),this):this._ps},Nt.startTime=function startTime(t){if(arguments.length){this._start=t;var e=this.parent||this._dp;return!e||!e._sort&&this.parent||Ka(e,this,t-this._delay),this}return this._start},Nt.endTime=function endTime(t){return this._start+(w(t)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},Nt.rawTime=function rawTime(t){var e=this.parent||this._dp;return e?t&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?Ga(e.rawTime(t),this):this._tTime:this._tTime},Nt.revert=function revert(t){void 0===t&&(t=lt);var e=B;return B=t,(this._initted||this._startAt)&&(this.timeline&&this.timeline.revert(t),this.totalTime(-.01,t.suppressEvents)),"nested"!==this.data&&!1!==t.kill&&this.kill(),B=e,this},Nt.globalTime=function globalTime(t){for(var e=this,r=arguments.length?t:e.rawTime();e;)r=e._start+r/(e._ts||1),e=e._dp;return!this.parent&&this._sat?this._sat.vars.immediateRender?-1:this._sat.globalTime(t):r},Nt.repeat=function repeat(t){return arguments.length?(this._repeat=t===1/0?-2:t,Sa(this)):-2===this._repeat?1/0:this._repeat},Nt.repeatDelay=function repeatDelay(t){if(arguments.length){var e=this._time;return this._rDelay=t,Sa(this),e?this.time(e):this}return this._rDelay},Nt.yoyo=function yoyo(t){return arguments.length?(this._yoyo=t,this):this._yoyo},Nt.seek=function seek(t,e){return this.totalTime(xt(this,t),w(e))},Nt.restart=function restart(t,e){return this.play().totalTime(t?-this._delay:0,w(e))},Nt.play=function play(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},Nt.reverse=function reverse(t,e){return null!=t&&this.seek(t||this.totalDuration(),e),this.reversed(!0).paused(!1)},Nt.pause=function pause(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},Nt.resume=function resume(){return this.paused(!1)},Nt.reversed=function reversed(t){return arguments.length?(!!t!==this.reversed()&&this.timeScale(-this._rts||(t?-V:0)),this):this._rts<0},Nt.invalidate=function invalidate(){return this._initted=this._act=0,this._zTime=-V,this},Nt.isActive=function isActive(){var t,e=this.parent||this._dp,r=this._start;return!(e&&!(this._ts&&this._initted&&e.isActive()&&(t=e.rawTime(!0))>=r&&t<this.endTime(!0)-V))},Nt.eventCallback=function eventCallback(t,e,r){var i=this.vars;return 1<arguments.length?(e?(i[t]=e,r&&(i[t+"Params"]=r),"onUpdate"===t&&(this._onUpdate=e)):delete i[t],this):i[t]},Nt.then=function then(t){var i=this;return new Promise(function(e){function zo(){var t=i.then;i.then=null,s(r)&&(r=r(i))&&(r.then||r===i)&&(i.then=t),e(r),i.then=t}var r=s(t)?t:pa;i._initted&&1===i.totalProgress()&&0<=i._ts||!i._tTime&&i._ts<0?zo():i._prom=zo})},Nt.kill=function kill(){tb(this)},Animation);function Animation(t){this.vars=t,this._delay=+t.delay||0,(this._repeat=t.repeat===1/0?-2:t.repeat||0)&&(this._rDelay=t.repeatDelay||0,this._yoyo=!!t.yoyo||!!t.yoyoEase),this._ts=1,Ra(this,+t.duration,1,1),this.data=t.data,l&&(this._ctx=l).data.push(this),d||Et.wake()}qa(qt.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-V,_prom:0,_ps:!1,_rts:1});var Ut=function(i){function Timeline(t,e){var r;return void 0===t&&(t={}),(r=i.call(this,t)||this).labels={},r.smoothChildTiming=!!t.smoothChildTiming,r.autoRemoveChildren=!!t.autoRemoveChildren,r._sort=w(t.sortChildren),L&&Ka(t.parent||L,_assertThisInitialized(r),e),t.reversed&&r.reverse(),t.paused&&r.paused(!0),t.scrollTrigger&&La(_assertThisInitialized(r),t.scrollTrigger),r}_inheritsLoose(Timeline,i);var e=Timeline.prototype;return e.to=function to(t,e,r){return Va(0,arguments,this),this},e.from=function from(t,e,r){return Va(1,arguments,this),this},e.fromTo=function fromTo(t,e,r,i){return Va(2,arguments,this),this},e.set=function set(t,e,r){return e.duration=0,e.parent=this,va(e).repeatDelay||(e.repeat=0),e.immediateRender=!!e.immediateRender,new Gt(t,e,xt(this,r),1),this},e.call=function call(t,e,r){return Ka(this,Gt.delayedCall(0,t,e),r)},e.staggerTo=function staggerTo(t,e,r,i,n,a,s){return r.duration=e,r.stagger=r.stagger||i,r.onComplete=a,r.onCompleteParams=s,r.parent=this,new Gt(t,r,xt(this,n)),this},e.staggerFrom=function staggerFrom(t,e,r,i,n,a,s){return r.runBackwards=1,va(r).immediateRender=w(r.immediateRender),this.staggerTo(t,e,r,i,n,a,s)},e.staggerFromTo=function staggerFromTo(t,e,r,i,n,a,s,o){return i.startAt=r,va(i).immediateRender=w(i.immediateRender),this.staggerTo(t,e,i,n,a,s,o)},e.render=function render(t,e,r){var i,n,a,s,o,u,h,l,f,c,d,p,_=this._time,m=this._dirty?this.totalDuration():this._tDur,g=this._dur,v=t<=0?0:ja(t),y=this._zTime<0!=t<0&&(this._initted||!g);if(this!==L&&m<v&&0<=t&&(v=m),v!==this._tTime||r||y){if(_!==this._time&&g&&(v+=this._time-_,t+=this._time-_),i=v,f=this._start,u=!(l=this._ts),y&&(g||(_=this._zTime),!t&&e||(this._zTime=t)),this._repeat){if(d=this._yoyo,o=g+this._rDelay,this._repeat<-1&&t<0)return this.totalTime(100*o+t,e,r);if(i=ja(v%o),v===m?(s=this._repeat,i=g):((s=~~(v/o))&&s===v/o&&(i=g,s--),g<i&&(i=g)),c=Tt(this._tTime,o),!_&&this._tTime&&c!==s&&(c=s),d&&1&s&&(i=g-i,p=1),s!==c&&!this._lock){var T=d&&1&c,b=T===(d&&1&s);if(s<c&&(T=!T),_=T?0:g,this._lock=1,this.render(_||(p?0:ja(s*o)),e,!g)._lock=0,this._tTime=v,!e&&this.parent&&Ct(this,"onRepeat"),this.vars.repeatRefresh&&!p&&(this.invalidate()._lock=1),_&&_!==this._time||u!=!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(g=this._dur,m=this._tDur,b&&(this._lock=2,_=T?g:-1e-4,this.render(_,!0),this.vars.repeatRefresh&&!p&&this.invalidate()),this._lock=0,!this._ts&&!u)return this;Pb(this,p)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(h=function _findNextPauseTween(t,e,r){var i;if(e<r)for(i=t._first;i&&i._start<=r;){if("isPause"===i.data&&i._start>e)return i;i=i._next}else for(i=t._last;i&&i._start>=r;){if("isPause"===i.data&&i._start<e)return i;i=i._prev}}(this,ja(_),ja(i)))&&(v-=i-(i=h._start)),this._tTime=v,this._time=i,this._act=!l,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=t,_=0),!_&&i&&!e&&(Ct(this,"onStart"),this._tTime!==v))return this;if(_<=i&&0<=t)for(n=this._first;n;){if(a=n._next,(n._act||i>=n._start)&&n._ts&&h!==n){if(n.parent!==this)return this.render(t,e,r);if(n.render(0<n._ts?(i-n._start)*n._ts:(n._dirty?n.totalDuration():n._tDur)+(i-n._start)*n._ts,e,r),i!==this._time||!this._ts&&!u){h=0,a&&(v+=this._zTime=-V);break}}n=a}else{n=this._last;for(var w=t<0?t:i;n;){if(a=n._prev,(n._act||w<=n._end)&&n._ts&&h!==n){if(n.parent!==this)return this.render(t,e,r);if(n.render(0<n._ts?(w-n._start)*n._ts:(n._dirty?n.totalDuration():n._tDur)+(w-n._start)*n._ts,e,r||B&&(n._initted||n._startAt)),i!==this._time||!this._ts&&!u){h=0,a&&(v+=this._zTime=w?-V:V);break}}n=a}}if(h&&!e&&(this.pause(),h.render(_<=i?0:-V)._zTime=_<=i?1:-1,this._ts))return this._start=f,Ha(this),this.render(t,e,r);this._onUpdate&&!e&&Ct(this,"onUpdate",!0),(v===m&&this._tTime>=this.totalDuration()||!v&&_)&&(f!==this._start&&Math.abs(l)===Math.abs(this._ts)||this._lock||(!t&&g||!(v===m&&0<this._ts||!v&&this._ts<0)||za(this,1),e||t<0&&!_||!v&&!_&&m||(Ct(this,v===m&&0<=t?"onComplete":"onReverseComplete",!0),!this._prom||v<m&&0<this.timeScale()||this._prom())))}return this},e.add=function add(e,i){var n=this;if(t(i)||(i=xt(this,i,e)),!(e instanceof qt)){if($(e))return e.forEach(function(t){return n.add(t,i)}),this;if(r(e))return this.addLabel(e,i);if(!s(e))return this;e=Gt.delayedCall(0,e)}return this!==e?Ka(this,e,i):this},e.getChildren=function getChildren(t,e,r,i){void 0===t&&(t=!0),void 0===e&&(e=!0),void 0===r&&(r=!0),void 0===i&&(i=-U);for(var n=[],a=this._first;a;)a._start>=i&&(a instanceof Gt?e&&n.push(a):(r&&n.push(a),t&&n.push.apply(n,a.getChildren(!0,e,r)))),a=a._next;return n},e.getById=function getById(t){for(var e=this.getChildren(1,1,1),r=e.length;r--;)if(e[r].vars.id===t)return e[r]},e.remove=function remove(t){return r(t)?this.removeLabel(t):s(t)?this.killTweensOf(t):(ya(this,t),t===this._recent&&(this._recent=this._last),Aa(this))},e.totalTime=function totalTime(t,e){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=ja(Et.time-(0<this._ts?t/this._ts:(this.totalDuration()-t)/-this._ts))),i.prototype.totalTime.call(this,t,e),this._forcing=0,this):this._tTime},e.addLabel=function addLabel(t,e){return this.labels[t]=xt(this,e),this},e.removeLabel=function removeLabel(t){return delete this.labels[t],this},e.addPause=function addPause(t,e,r){var i=Gt.delayedCall(0,e||T,r);return i.data="isPause",this._hasPause=1,Ka(this,i,xt(this,t))},e.removePause=function removePause(t){var e=this._first;for(t=xt(this,t);e;)e._start===t&&"isPause"===e.data&&za(e),e=e._next},e.killTweensOf=function killTweensOf(t,e,r){for(var i=this.getTweensOf(t,r),n=i.length;n--;)Vt!==i[n]&&i[n].kill(t,e);return this},e.getTweensOf=function getTweensOf(e,r){for(var i,n=[],a=Ot(e),s=this._first,o=t(r);s;)s instanceof Gt?la(s._targets,a)&&(o?(!Vt||s._initted&&s._ts)&&s.globalTime(0)<=r&&s.globalTime(s.totalDuration())>r:!r||s.isActive())&&n.push(s):(i=s.getTweensOf(a,r)).length&&n.push.apply(n,i),s=s._next;return n},e.tweenTo=function tweenTo(t,e){e=e||{};var r,i=this,n=xt(i,t),a=e.startAt,s=e.onStart,o=e.onStartParams,u=e.immediateRender,h=Gt.to(i,qa({ease:e.ease||"none",lazy:!1,immediateRender:!1,time:n,overwrite:"auto",duration:e.duration||Math.abs((n-(a&&"time"in a?a.time:i._time))/i.timeScale())||V,onStart:function onStart(){if(i.pause(),!r){var t=e.duration||Math.abs((n-(a&&"time"in a?a.time:i._time))/i.timeScale());h._dur!==t&&Ra(h,t,0,1).render(h._time,!0,!0),r=1}s&&s.apply(h,o||[])}},e));return u?h.render(0):h},e.tweenFromTo=function tweenFromTo(t,e,r){return this.tweenTo(e,qa({startAt:{time:xt(this,t)}},r))},e.recent=function recent(){return this._recent},e.nextLabel=function nextLabel(t){return void 0===t&&(t=this._time),rb(this,xt(this,t))},e.previousLabel=function previousLabel(t){return void 0===t&&(t=this._time),rb(this,xt(this,t),1)},e.currentLabel=function currentLabel(t){return arguments.length?this.seek(t,!0):this.previousLabel(this._time+V)},e.shiftChildren=function shiftChildren(t,e,r){void 0===r&&(r=0);for(var i,n=this._first,a=this.labels;n;)n._start>=r&&(n._start+=t,n._end+=t),n=n._next;if(e)for(i in a)a[i]>=r&&(a[i]+=t);return Aa(this)},e.invalidate=function invalidate(t){var e=this._first;for(this._lock=0;e;)e.invalidate(t),e=e._next;return i.prototype.invalidate.call(this,t)},e.clear=function clear(t){void 0===t&&(t=!0);for(var e,r=this._first;r;)e=r._next,this.remove(r),r=e;return this._dp&&(this._time=this._tTime=this._pTime=0),t&&(this.labels={}),Aa(this)},e.totalDuration=function totalDuration(t){var e,r,i,n=0,a=this,s=a._last,o=U;if(arguments.length)return a.timeScale((a._repeat<0?a.duration():a.totalDuration())/(a.reversed()?-t:t));if(a._dirty){for(i=a.parent;s;)e=s._prev,s._dirty&&s.totalDuration(),o<(r=s._start)&&a._sort&&s._ts&&!a._lock?(a._lock=1,Ka(a,s,r-s._delay,1)._lock=0):o=r,r<0&&s._ts&&(n-=r,(!i&&!a._dp||i&&i.smoothChildTiming)&&(a._start+=r/a._ts,a._time-=r,a._tTime-=r),a.shiftChildren(-r,!1,-Infinity),o=0),s._end>n&&s._ts&&(n=s._end),s=e;Ra(a,a===L&&a._time>n?a._time:n,1,1),a._dirty=0}return a._tDur},Timeline.updateRoot=function updateRoot(t){if(L._ts&&(na(L,Ga(t,L)),f=Et.frame),Et.frame>=mt){mt+=j.autoSleep||120;var e=L._first;if((!e||!e._ts)&&j.autoSleep&&Et._listeners.length<2){for(;e&&!e._ts;)e=e._next;e||Et.sleep()}}},Timeline}(qt);qa(Ut.prototype,{_lock:0,_hasPause:0,_forcing:0});function _b(t,e,i,n,a,o){var u,h,l,f;if(pt[t]&&!1!==(u=new pt[t]).init(a,u.rawVars?e[t]:function _processVars(t,e,i,n,a){if(s(t)&&(t=Qt(t,a,e,i,n)),!v(t)||t.style&&t.nodeType||$(t)||J(t))return r(t)?Qt(t,a,e,i,n):t;var o,u={};for(o in t)u[o]=Qt(t[o],a,e,i,n);return u}(e[t],n,a,o,i),i,n,o)&&(i._pt=h=new pe(i._pt,a,t,0,1,u.render,u,0,u.priority),i!==c))for(l=i._ptLookup[i._targets.indexOf(a)],f=u._props.length;f--;)l[u._props[f]]=h;return u}function fc(t,r,e,i){var n,a,s=r.ease||i||"power1.inOut";if($(r))a=e[t]||(e[t]=[]),r.forEach(function(t,e){return a.push({t:e/(r.length-1)*100,v:t,e:s})});else for(n in r)a=e[n]||(e[n]=[]),"ease"===n||a.push({t:parseFloat(t),v:r[n],e:s})}var Vt,Wt,Xt=function _addPropTween(t,e,i,n,a,o,u,h,l,f){s(n)&&(n=n(a||0,t,o));var c,d=t[e],p="get"!==i?i:s(d)?l?t[e.indexOf("set")||!s(t["get"+e.substr(3)])?e:"get"+e.substr(3)](l):t[e]():d,_=s(d)?l?ee:$t:Jt;if(r(n)&&(~n.indexOf("random(")&&(n=ob(n)),"="===n.charAt(1)&&(!(c=ka(p,n)+(Ya(p)||0))&&0!==c||(n=c))),!f||p!==n||Wt)return isNaN(p*n)||""===n?(d||e in t||Q(e,n),function _addComplexStringPropTween(t,e,r,i,n,a,s){var o,u,h,l,f,c,d,p,_=new pe(this._pt,t,e,0,1,se,null,n),m=0,g=0;for(_.b=r,_.e=i,r+="",(d=~(i+="").indexOf("random("))&&(i=ob(i)),a&&(a(p=[r,i],t,e),r=p[0],i=p[1]),u=r.match(it)||[];o=it.exec(i);)l=o[0],f=i.substring(m,o.index),h?h=(h+1)%5:"rgba("===f.substr(-5)&&(h=1),l!==u[g++]&&(c=parseFloat(u[g-1])||0,_._pt={_next:_._pt,p:f||1===g?f:",",s:c,c:"="===l.charAt(1)?ka(c,l)-c:parseFloat(l)-c,m:h&&h<4?Math.round:0},m=it.lastIndex);return _.c=m<i.length?i.substring(m,i.length):"",_.fp=s,(nt.test(i)||d)&&(_.e=0),this._pt=_}.call(this,t,e,p,n,_,h||j.stringFilter,l)):(c=new pe(this._pt,t,e,+p||0,n-(p||0),"boolean"==typeof d?ae:ne,0,_),l&&(c.fp=l),u&&c.modifier(u,this,t),this._pt=c)},Ht=function _initTween(t,e,r){var i,n,a,s,o,u,h,l,f,c,d,p,_,m=t.vars,g=m.ease,v=m.startAt,y=m.immediateRender,T=m.lazy,b=m.onUpdate,x=m.onUpdateParams,k=m.callbackScope,M=m.runBackwards,O=m.yoyoEase,P=m.keyframes,C=m.autoRevert,A=t._dur,S=t._startAt,R=t._targets,D=t.parent,E=D&&"nested"===D.data?D.vars.targets:R,z="auto"===t._overwrite&&!I,F=t.timeline;if(!F||P&&g||(g="none"),t._ease=Yt(g,q.ease),t._yEase=O?Lt(Yt(!0===O?g:O,q.ease)):0,O&&t._yoyo&&!t._repeat&&(O=t._yEase,t._yEase=t._ease,t._ease=O),t._from=!F&&!!m.runBackwards,!F||P&&!m.stagger){if(p=(l=R[0]?fa(R[0]).harness:0)&&m[l.prop],i=ua(m,ft),S&&(S._zTime<0&&S.progress(1),e<0&&M&&y&&!C?S.render(-1,!0):S.revert(M&&A?ht:ut),S._lazy=0),v){if(za(t._startAt=Gt.set(R,qa({data:"isStart",overwrite:!1,parent:D,immediateRender:!0,lazy:!S&&w(T),startAt:null,delay:0,onUpdate:b,onUpdateParams:x,callbackScope:k,stagger:0},v))),t._startAt._dp=0,t._startAt._sat=t,e<0&&(B||!y&&!C)&&t._startAt.revert(ht),y&&A&&e<=0&&r<=0)return void(e&&(t._zTime=e))}else if(M&&A&&!S)if(e&&(y=!1),a=qa({overwrite:!1,data:"isFromStart",lazy:y&&!S&&w(T),immediateRender:y,stagger:0,parent:D},i),p&&(a[l.prop]=p),za(t._startAt=Gt.set(R,a)),t._startAt._dp=0,t._startAt._sat=t,e<0&&(B?t._startAt.revert(ht):t._startAt.render(-1,!0)),t._zTime=e,y){if(!e)return}else _initTween(t._startAt,V,V);for(t._pt=t._ptCache=0,T=A&&w(T)||T&&!A,n=0;n<R.length;n++){if(h=(o=R[n])._gsap||ea(R)[n]._gsap,t._ptLookup[n]=c={},dt[h.id]&&ct.length&&ma(),d=E===R?n:E.indexOf(o),l&&!1!==(f=new l).init(o,p||i,t,d,E)&&(t._pt=s=new pe(t._pt,o,f.name,0,1,f.render,f,0,f.priority),f._props.forEach(function(t){c[t]=s}),f.priority&&(u=1)),!l||p)for(a in i)pt[a]&&(f=_b(a,i,t,d,o,E))?f.priority&&(u=1):c[a]=s=Xt.call(t,o,a,"get",i[a],d,E,0,m.stringFilter);t._op&&t._op[n]&&t.kill(o,t._op[n]),z&&t._pt&&(Vt=t,L.killTweensOf(o,c,t.globalTime(e)),_=!t.parent,Vt=0),t._pt&&T&&(dt[h.id]=1)}u&&de(t),t._onInit&&t._onInit(t)}t._onUpdate=b,t._initted=(!t._op||t._pt)&&!_,P&&e<=0&&F.render(U,!0,!0)},Qt=function _parseFuncOrString(t,e,i,n,a){return s(t)?t.call(e,i,n,a):r(t)&&~t.indexOf("random(")?ob(t):t},Kt=vt+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",Zt={};ha(Kt+",id,stagger,delay,duration,paused,scrollTrigger",function(t){return Zt[t]=1});var Gt=function(z){function Tween(e,r,i,n){var a;"number"==typeof r&&(i.duration=r,r=i,i=null);var s,o,u,h,l,f,c,d,p=(a=z.call(this,n?r:va(r))||this).vars,_=p.duration,m=p.delay,g=p.immediateRender,T=p.stagger,b=p.overwrite,x=p.keyframes,k=p.defaults,M=p.scrollTrigger,O=p.yoyoEase,P=r.parent||L,C=($(e)||J(e)?t(e[0]):"length"in r)?[e]:Ot(e);if(a._targets=C.length?ea(C):R("GSAP target "+e+" not found. https://greensock.com",!j.nullTargetWarn)||[],a._ptLookup=[],a._overwrite=b,x||T||y(_)||y(m)){if(r=a.vars,(s=a.timeline=new Ut({data:"nested",defaults:k||{},targets:P&&"nested"===P.data?P.vars.targets:C})).kill(),s.parent=s._dp=_assertThisInitialized(a),s._start=0,T||y(_)||y(m)){if(h=C.length,c=T&&eb(T),v(T))for(l in T)~Kt.indexOf(l)&&((d=d||{})[l]=T[l]);for(o=0;o<h;o++)(u=ua(r,Zt)).stagger=0,O&&(u.yoyoEase=O),d&&yt(u,d),f=C[o],u.duration=+Qt(_,_assertThisInitialized(a),o,f,C),u.delay=(+Qt(m,_assertThisInitialized(a),o,f,C)||0)-a._delay,!T&&1===h&&u.delay&&(a._delay=m=u.delay,a._start+=m,u.delay=0),s.to(f,u,c?c(o,f,C):0),s._ease=Ft.none;s.duration()?_=m=0:a.timeline=0}else if(x){va(qa(s.vars.defaults,{ease:"none"})),s._ease=Yt(x.ease||r.ease||"none");var A,S,D,E=0;if($(x))x.forEach(function(t){return s.to(C,t,">")}),s.duration();else{for(l in u={},x)"ease"===l||"easeEach"===l||fc(l,x[l],u,x.easeEach);for(l in u)for(A=u[l].sort(function(t,e){return t.t-e.t}),o=E=0;o<A.length;o++)(D={ease:(S=A[o]).e,duration:(S.t-(o?A[o-1].t:0))/100*_})[l]=S.v,s.to(C,D,E),E+=D.duration;s.duration()<_&&s.to({},{duration:_-s.duration()})}}_||a.duration(_=s.duration())}else a.timeline=0;return!0!==b||I||(Vt=_assertThisInitialized(a),L.killTweensOf(C),Vt=0),Ka(P,_assertThisInitialized(a),i),r.reversed&&a.reverse(),r.paused&&a.paused(!0),(g||!_&&!x&&a._start===ja(P._time)&&w(g)&&function _hasNoPausedAncestors(t){return!t||t._ts&&_hasNoPausedAncestors(t.parent)}(_assertThisInitialized(a))&&"nested"!==P.data)&&(a._tTime=-V,a.render(Math.max(0,-m)||0)),M&&La(_assertThisInitialized(a),M),a}_inheritsLoose(Tween,z);var e=Tween.prototype;return e.render=function render(t,e,r){var i,n,a,s,o,u,h,l,f,c=this._time,d=this._tDur,p=this._dur,_=t<0,m=d-V<t&&!_?d:t<V?0:t;if(p){if(m!==this._tTime||!t||r||!this._initted&&this._tTime||this._startAt&&this._zTime<0!=_){if(i=m,l=this.timeline,this._repeat){if(s=p+this._rDelay,this._repeat<-1&&_)return this.totalTime(100*s+t,e,r);if(i=ja(m%s),m===d?(a=this._repeat,i=p):((a=~~(m/s))&&a===m/s&&(i=p,a--),p<i&&(i=p)),(u=this._yoyo&&1&a)&&(f=this._yEase,i=p-i),o=Tt(this._tTime,s),i===c&&!r&&this._initted)return this._tTime=m,this;a!==o&&(l&&this._yEase&&Pb(l,u),!this.vars.repeatRefresh||u||this._lock||(this._lock=r=1,this.render(ja(s*a),!0).invalidate()._lock=0))}if(!this._initted){if(Ma(this,_?t:i,r,e,m))return this._tTime=0,this;if(c!==this._time)return this;if(p!==this._dur)return this.render(t,e,r)}if(this._tTime=m,this._time=i,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=h=(f||this._ease)(i/p),this._from&&(this.ratio=h=1-h),i&&!c&&!e&&(Ct(this,"onStart"),this._tTime!==m))return this;for(n=this._pt;n;)n.r(h,n.d),n=n._next;l&&l.render(t<0?t:!i&&u?-V:l._dur*l._ease(i/this._dur),e,r)||this._startAt&&(this._zTime=t),this._onUpdate&&!e&&(_&&Ca(this,t,0,r),Ct(this,"onUpdate")),this._repeat&&a!==o&&this.vars.onRepeat&&!e&&this.parent&&Ct(this,"onRepeat"),m!==this._tDur&&m||this._tTime!==m||(_&&!this._onUpdate&&Ca(this,t,0,!0),!t&&p||!(m===this._tDur&&0<this._ts||!m&&this._ts<0)||za(this,1),e||_&&!c||!(m||c||u)||(Ct(this,m===d?"onComplete":"onReverseComplete",!0),!this._prom||m<d&&0<this.timeScale()||this._prom()))}}else!function _renderZeroDurationTween(t,e,r,i){var n,a,s,o=t.ratio,u=e<0||!e&&(!t._start&&function _parentPlayheadIsBeforeStart(t){var e=t.parent;return e&&e._ts&&e._initted&&!e._lock&&(e.rawTime()<0||_parentPlayheadIsBeforeStart(e))}(t)&&(t._initted||!bt(t))||(t._ts<0||t._dp._ts<0)&&!bt(t))?0:1,h=t._rDelay,l=0;if(h&&t._repeat&&(l=kt(0,t._tDur,e),a=Tt(l,h),t._yoyo&&1&a&&(u=1-u),a!==Tt(t._tTime,h)&&(o=1-u,t.vars.repeatRefresh&&t._initted&&t.invalidate())),u!==o||B||i||t._zTime===V||!e&&t._zTime){if(!t._initted&&Ma(t,e,i,r,l))return;for(s=t._zTime,t._zTime=e||(r?V:0),r=r||e&&!s,t.ratio=u,t._from&&(u=1-u),t._time=0,t._tTime=l,n=t._pt;n;)n.r(u,n.d),n=n._next;e<0&&Ca(t,e,0,!0),t._onUpdate&&!r&&Ct(t,"onUpdate"),l&&t._repeat&&!r&&t.parent&&Ct(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===u&&(u&&za(t,1),r||B||(Ct(t,u?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=e)}(this,t,e,r);return this},e.targets=function targets(){return this._targets},e.invalidate=function invalidate(t){return t&&this.vars.runBackwards||(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(t),z.prototype.invalidate.call(this,t)},e.resetTo=function resetTo(t,e,r,i){d||Et.wake(),this._ts||this.play();var n,a=Math.min(this._dur,(this._dp._time-this._start)*this._ts);return this._initted||Ht(this,a),n=this._ease(a/this._dur),function _updatePropTweens(t,e,r,i,n,a,s){var o,u,h,l,f=(t._pt&&t._ptCache||(t._ptCache={}))[e];if(!f)for(f=t._ptCache[e]=[],h=t._ptLookup,l=t._targets.length;l--;){if((o=h[l][e])&&o.d&&o.d._pt)for(o=o.d._pt;o&&o.p!==e&&o.fp!==e;)o=o._next;if(!o)return Wt=1,t.vars[e]="+=0",Ht(t,s),Wt=0,1;f.push(o)}for(l=f.length;l--;)(o=(u=f[l])._pt||u).s=!i&&0!==i||n?o.s+(i||0)+a*o.c:i,o.c=r-o.s,u.e&&(u.e=ia(r)+Ya(u.e)),u.b&&(u.b=o.s+Ya(u.b))}(this,t,e,r,i,n,a)?this.resetTo(t,e,r,i):(Ia(this,0),this.parent||xa(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},e.kill=function kill(t,e){if(void 0===e&&(e="all"),!(t||e&&"all"!==e))return this._lazy=this._pt=0,this.parent?tb(this):this;if(this.timeline){var i=this.timeline.totalDuration();return this.timeline.killTweensOf(t,e,Vt&&!0!==Vt.vars.overwrite)._first||tb(this),this.parent&&i!==this.timeline.totalDuration()&&Ra(this,this._dur*this.timeline._tDur/i,0,1),this}var n,a,s,o,u,h,l,f=this._targets,c=t?Ot(t):f,d=this._ptLookup,p=this._pt;if((!e||"all"===e)&&function _arraysMatch(t,e){for(var r=t.length,i=r===e.length;i&&r--&&t[r]===e[r];);return r<0}(f,c))return"all"===e&&(this._pt=0),tb(this);for(n=this._op=this._op||[],"all"!==e&&(r(e)&&(u={},ha(e,function(t){return u[t]=1}),e=u),e=function _addAliasesToVars(t,e){var r,i,n,a,s=t[0]?fa(t[0]).harness:0,o=s&&s.aliases;if(!o)return e;for(i in r=yt({},e),o)if(i in r)for(n=(a=o[i].split(",")).length;n--;)r[a[n]]=r[i];return r}(f,e)),l=f.length;l--;)if(~c.indexOf(f[l]))for(u in a=d[l],"all"===e?(n[l]=e,o=a,s={}):(s=n[l]=n[l]||{},o=e),o)(h=a&&a[u])&&("kill"in h.d&&!0!==h.d.kill(u)||ya(this,h,"_pt"),delete a[u]),"all"!==s&&(s[u]=1);return this._initted&&!this._pt&&p&&tb(this),this},Tween.to=function to(t,e,r){return new Tween(t,e,r)},Tween.from=function from(t,e){return Va(1,arguments)},Tween.delayedCall=function delayedCall(t,e,r,i){return new Tween(e,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:t,onComplete:e,onReverseComplete:e,onCompleteParams:r,onReverseCompleteParams:r,callbackScope:i})},Tween.fromTo=function fromTo(t,e,r){return Va(2,arguments)},Tween.set=function set(t,e){return e.duration=0,e.repeatDelay||(e.repeat=0),new Tween(t,e)},Tween.killTweensOf=function killTweensOf(t,e,r){return L.killTweensOf(t,e,r)},Tween}(qt);qa(Gt.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),ha("staggerTo,staggerFrom,staggerFromTo",function(r){Gt[r]=function(){var t=new Ut,e=Mt.call(arguments,0);return e.splice("staggerFromTo"===r?5:4,0,0),t[r].apply(t,e)}});function nc(t,e,r){return t.setAttribute(e,r)}function vc(t,e,r,i){i.mSet(t,e,i.m.call(i.tween,r,i.mt),i)}var Jt=function _setterPlain(t,e,r){return t[e]=r},$t=function _setterFunc(t,e,r){return t[e](r)},ee=function _setterFuncWithParam(t,e,r,i){return t[e](i.fp,r)},re=function _getSetter(t,e){return s(t[e])?$t:u(t[e])&&t.setAttribute?nc:Jt},ne=function _renderPlain(t,e){return e.set(e.t,e.p,Math.round(1e6*(e.s+e.c*t))/1e6,e)},ae=function _renderBoolean(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},se=function _renderComplexString(t,e){var r=e._pt,i="";if(!t&&e.b)i=e.b;else if(1===t&&e.e)i=e.e;else{for(;r;)i=r.p+(r.m?r.m(r.s+r.c*t):Math.round(1e4*(r.s+r.c*t))/1e4)+i,r=r._next;i+=e.c}e.set(e.t,e.p,i,e)},oe=function _renderPropTweens(t,e){for(var r=e._pt;r;)r.r(t,r.d),r=r._next},le=function _addPluginModifier(t,e,r,i){for(var n,a=this._pt;a;)n=a._next,a.p===i&&a.modifier(t,e,r),a=n},fe=function _killPropTweensOf(t){for(var e,r,i=this._pt;i;)r=i._next,i.p===t&&!i.op||i.op===t?ya(this,i,"_pt"):i.dep||(e=1),i=r;return!e},de=function _sortPropTweensByPriority(t){for(var e,r,i,n,a=t._pt;a;){for(e=a._next,r=i;r&&r.pr>a.pr;)r=r._next;(a._prev=r?r._prev:n)?a._prev._next=a:i=a,(a._next=r)?r._prev=a:n=a,a=e}t._pt=i},pe=(PropTween.prototype.modifier=function modifier(t,e,r){this.mSet=this.mSet||this.set,this.set=vc,this.m=t,this.mt=r,this.tween=e},PropTween);function PropTween(t,e,r,i,n,a,s,o,u){this.t=e,this.s=i,this.c=n,this.p=r,this.r=a||ne,this.d=s||this,this.set=o||Jt,this.pr=u||0,(this._next=t)&&(t._prev=this)}ha(vt+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(t){return ft[t]=1}),ot.TweenMax=ot.TweenLite=Gt,ot.TimelineLite=ot.TimelineMax=Ut,L=new Ut({sortChildren:!1,defaults:q,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),j.stringFilter=Eb;function Cc(t){return(Te[t]||we).map(function(t){return t()})}function Dc(){var t=Date.now(),o=[];2<t-xe&&(Cc("matchMediaInit"),ye.forEach(function(t){var e,r,i,n,a=t.queries,s=t.conditions;for(r in a)(e=h.matchMedia(a[r]).matches)&&(i=1),e!==s[r]&&(s[r]=e,n=1);n&&(t.revert(),i&&o.push(t))}),Cc("matchMediaRevert"),o.forEach(function(t){return t.onMatch(t)}),xe=t,Cc("matchMedia"))}var _e,ye=[],Te={},we=[],xe=0,ke=((_e=Context.prototype).add=function add(t,i,n){function Cw(){var t,e=l,r=a.selector;return e&&e!==a&&e.data.push(a),n&&(a.selector=cb(n)),l=a,t=i.apply(a,arguments),s(t)&&a._r.push(t),l=e,a.selector=r,a.isReverted=!1,t}s(t)&&(n=i,i=t,t=s);var a=this;return a.last=Cw,t===s?Cw(a):t?a[t]=Cw:Cw},_e.ignore=function ignore(t){var e=l;l=null,t(this),l=e},_e.getTweens=function getTweens(){var e=[];return this.data.forEach(function(t){return t instanceof Context?e.push.apply(e,t.getTweens()):t instanceof Gt&&!(t.parent&&"nested"===t.parent.data)&&e.push(t)}),e},_e.clear=function clear(){this._r.length=this.data.length=0},_e.kill=function kill(e,t){var r=this;if(e){var i=this.getTweens();this.data.forEach(function(t){"isFlip"===t.data&&(t.revert(),t.getChildren(!0,!0,!1).forEach(function(t){return i.splice(i.indexOf(t),1)}))}),i.map(function(t){return{g:t.globalTime(0),t:t}}).sort(function(t,e){return e.g-t.g||-1}).forEach(function(t){return t.t.revert(e)}),this.data.forEach(function(t){return!(t instanceof qt)&&t.revert&&t.revert(e)}),this._r.forEach(function(t){return t(e,r)}),this.isReverted=!0}else this.data.forEach(function(t){return t.kill&&t.kill()});if(this.clear(),t){var n=ye.indexOf(this);~n&&ye.splice(n,1)}},_e.revert=function revert(t){this.kill(t||{})},Context);function Context(t,e){this.selector=e&&cb(e),this.data=[],this._r=[],this.isReverted=!1,t&&this.add(t)}var Me,Oe=((Me=MatchMedia.prototype).add=function add(t,e,r){v(t)||(t={matches:t});var i,n,a,s=new ke(0,r||this.scope),o=s.conditions={};for(n in this.contexts.push(s),e=s.add("onMatch",e),s.queries=t)"all"===n?a=1:(i=h.matchMedia(t[n]))&&(ye.indexOf(s)<0&&ye.push(s),(o[n]=i.matches)&&(a=1),i.addListener?i.addListener(Dc):i.addEventListener("change",Dc));return a&&e(s),this},Me.revert=function revert(t){this.kill(t||{})},Me.kill=function kill(e){this.contexts.forEach(function(t){return t.kill(e,!0)})},MatchMedia);function MatchMedia(t){this.contexts=[],this.scope=t}var Pe={registerPlugin:function registerPlugin(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];e.forEach(function(t){return function _createPlugin(t){var e=(t=!t.name&&t.default||t).name,r=s(t),i=e&&!r&&t.init?function(){this._props=[]}:t,n={init:T,render:oe,add:Xt,kill:fe,modifier:le,rawVars:0},a={targetTest:0,get:0,getSetter:re,aliases:{},register:0};if(zt(),t!==i){if(pt[e])return;qa(i,qa(ua(t,n),a)),yt(i.prototype,yt(n,ua(t,a))),pt[i.prop=e]=i,t.targetTest&&(gt.push(i),ft[e]=1),e=("css"===e?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}S(e,i),t.register&&t.register(Ce,i,pe)}(t)})},timeline:function timeline(t){return new Ut(t)},getTweensOf:function getTweensOf(t,e){return L.getTweensOf(t,e)},getProperty:function getProperty(i,t,e,n){r(i)&&(i=Ot(i)[0]);var a=fa(i||{}).get,s=e?pa:oa;return"native"===e&&(e=""),i?t?s((pt[t]&&pt[t].get||a)(i,t,e,n)):function(t,e,r){return s((pt[t]&&pt[t].get||a)(i,t,e,r))}:i},quickSetter:function quickSetter(r,e,i){if(1<(r=Ot(r)).length){var n=r.map(function(t){return Ce.quickSetter(t,e,i)}),a=n.length;return function(t){for(var e=a;e--;)n[e](t)}}r=r[0]||{};var s=pt[e],o=fa(r),u=o.harness&&(o.harness.aliases||{})[e]||e,h=s?function(t){var e=new s;c._pt=0,e.init(r,i?t+i:t,c,0,[r]),e.render(1,e),c._pt&&oe(1,c)}:o.set(r,u);return s?h:function(t){return h(r,u,i?t+i:t,o,1)}},quickTo:function quickTo(t,i,e){function Ux(t,e,r){return n.resetTo(i,t,e,r)}var r,n=Ce.to(t,yt(((r={})[i]="+=0.1",r.paused=!0,r),e||{}));return Ux.tween=n,Ux},isTweening:function isTweening(t){return 0<L.getTweensOf(t,!0).length},defaults:function defaults(t){return t&&t.ease&&(t.ease=Yt(t.ease,q.ease)),ta(q,t||{})},config:function config(t){return ta(j,t||{})},registerEffect:function registerEffect(t){var i=t.name,n=t.effect,e=t.plugins,a=t.defaults,r=t.extendTimeline;(e||"").split(",").forEach(function(t){return t&&!pt[t]&&!ot[t]&&R(i+" effect requires "+t+" plugin.")}),_t[i]=function(t,e,r){return n(Ot(t),qa(e||{},a),r)},r&&(Ut.prototype[i]=function(t,e,r){return this.add(_t[i](t,v(e)?e:(r=e)&&{},this),r)})},registerEase:function registerEase(t,e){Ft[t]=Yt(e)},parseEase:function parseEase(t,e){return arguments.length?Yt(t,e):Ft},getById:function getById(t){return L.getById(t)},exportRoot:function exportRoot(t,e){void 0===t&&(t={});var r,i,n=new Ut(t);for(n.smoothChildTiming=w(t.smoothChildTiming),L.remove(n),n._dp=0,n._time=n._tTime=L._time,r=L._first;r;)i=r._next,!e&&!r._dur&&r instanceof Gt&&r.vars.onComplete===r._targets[0]||Ka(n,r,r._start-r._delay),r=i;return Ka(L,n,0),n},context:function context(t,e){return t?new ke(t,e):l},matchMedia:function matchMedia(t){return new Oe(t)},matchMediaRefresh:function matchMediaRefresh(){return ye.forEach(function(t){var e,r,i=t.conditions;for(r in i)i[r]&&(i[r]=!1,e=1);e&&t.revert()})||Dc()},addEventListener:function addEventListener(t,e){var r=Te[t]||(Te[t]=[]);~r.indexOf(e)||r.push(e)},removeEventListener:function removeEventListener(t,e){var r=Te[t],i=r&&r.indexOf(e);0<=i&&r.splice(i,1)},utils:{wrap:function wrap(e,t,r){var i=t-e;return $(e)?lb(e,wrap(0,e.length),t):Wa(r,function(t){return(i+(t-e)%i)%i+e})},wrapYoyo:function wrapYoyo(e,t,r){var i=t-e,n=2*i;return $(e)?lb(e,wrapYoyo(0,e.length-1),t):Wa(r,function(t){return e+(i<(t=(n+(t-e)%n)%n||0)?n-t:t)})},distribute:eb,random:hb,snap:gb,normalize:function normalize(t,e,r){return Pt(t,e,0,1,r)},getUnit:Ya,clamp:function clamp(e,r,t){return Wa(t,function(t){return kt(e,r,t)})},splitColor:zb,toArray:Ot,selector:cb,mapRange:Pt,pipe:function pipe(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(t){return e.reduce(function(t,e){return e(t)},t)}},unitize:function unitize(e,r){return function(t){return e(parseFloat(t))+(r||Ya(t))}},interpolate:function interpolate(e,i,t,n){var a=isNaN(e+i)?0:function(t){return(1-t)*e+t*i};if(!a){var s,o,u,h,l,f=r(e),c={};if(!0===t&&(n=1)&&(t=null),f)e={p:e},i={p:i};else if($(e)&&!$(i)){for(u=[],h=e.length,l=h-2,o=1;o<h;o++)u.push(interpolate(e[o-1],e[o]));h--,a=function func(t){t*=h;var e=Math.min(l,~~t);return u[e](t-e)},t=i}else n||(e=yt($(e)?[]:{},e));if(!u){for(s in i)Xt.call(c,e,s,"get",i[s]);a=function func(t){return oe(t,c)||(f?e.p:e)}}}return Wa(t,a)},shuffle:db},install:P,effects:_t,ticker:Et,updateRoot:Ut.updateRoot,plugins:pt,globalTimeline:L,core:{PropTween:pe,globals:S,Tween:Gt,Timeline:Ut,Animation:qt,getCache:fa,_removeLinkedListItem:ya,reverting:function reverting(){return B},context:function context(t){return t&&l&&(l.data.push(t),t._ctx=l),l},suppressOverwrites:function suppressOverwrites(t){return I=t}}};ha("to,from,fromTo,delayedCall,set,killTweensOf",function(t){return Pe[t]=Gt[t]}),Et.add(Ut.updateRoot),c=Pe.to({},{duration:0});function Hc(t,e){for(var r=t._pt;r&&r.p!==e&&r.op!==e&&r.fp!==e;)r=r._next;return r}function Jc(t,a){return{name:t,rawVars:1,init:function init(t,n,e){e._onInit=function(t){var e,i;if(r(n)&&(e={},ha(n,function(t){return e[t]=1}),n=e),a){for(i in e={},n)e[i]=a(n[i]);n=e}!function _addModifiers(t,e){var r,i,n,a=t._targets;for(r in e)for(i=a.length;i--;)(n=(n=t._ptLookup[i][r])&&n.d)&&(n._pt&&(n=Hc(n,r)),n&&n.modifier&&n.modifier(e[r],t,a[i],r))}(t,n)}}}}var Ce=Pe.registerPlugin({name:"attr",init:function init(t,e,r,i,n){var a,s,o;for(a in this.tween=r,e)o=t.getAttribute(a)||"",(s=this.add(t,"setAttribute",(o||0)+"",e[a],i,n,0,0,a)).op=a,s.b=o,this._props.push(a)},render:function render(t,e){for(var r=e._pt;r;)B?r.set(r.t,r.p,r.b,r):r.r(t,r.d),r=r._next}},{name:"endArray",init:function init(t,e){for(var r=e.length;r--;)this.add(t,r,t[r]||0,e[r],0,0,0,0,0,1)}},Jc("roundProps",fb),Jc("modifiers"),Jc("snap",gb))||Pe;Gt.version=Ut.version=Ce.version="3.11.4",o=1,x()&&zt();function td(t,e){return e.set(e.t,e.p,Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)}function ud(t,e){return e.set(e.t,e.p,1===t?e.e:Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)}function vd(t,e){return e.set(e.t,e.p,t?Math.round(1e4*(e.s+e.c*t))/1e4+e.u:e.b,e)}function wd(t,e){var r=e.s+e.c*t;e.set(e.t,e.p,~~(r+(r<0?-.5:.5))+e.u,e)}function xd(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)}function yd(t,e){return e.set(e.t,e.p,1!==t?e.b:e.e,e)}function zd(t,e,r){return t.style[e]=r}function Ad(t,e,r){return t.style.setProperty(e,r)}function Bd(t,e,r){return t._gsap[e]=r}function Cd(t,e,r){return t._gsap.scaleX=t._gsap.scaleY=r}function Dd(t,e,r,i,n){var a=t._gsap;a.scaleX=a.scaleY=r,a.renderTransform(n,a)}function Ed(t,e,r,i,n){var a=t._gsap;a[e]=r,a.renderTransform(n,a)}function Hd(t,e){var r=this,i=this.target,n=i.style;if(t in rr){if(this.tfm=this.tfm||{},"transform"!==t&&(~(t=hr[t]||t).indexOf(",")?t.split(",").forEach(function(t){return r.tfm[t]=mr(i,t)}):this.tfm[t]=i._gsap.x?i._gsap[t]:mr(i,t)),0<=this.props.indexOf(lr))return;i._gsap.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(fr,e,"")),t=lr}(n||e)&&this.props.push(t,e,n[t])}function Id(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))}function Jd(){var t,e,r=this.props,i=this.target,n=i.style,a=i._gsap;for(t=0;t<r.length;t+=3)r[t+1]?i[r[t]]=r[t+2]:r[t+2]?n[r[t]]=r[t+2]:n.removeProperty(r[t].replace(sr,"-$1").toLowerCase());if(this.tfm){for(e in this.tfm)a[e]=this.tfm[e];a.svg&&(a.renderTransform(),i.setAttribute("data-svg-origin",this.svgo||"")),!(t=Fe())||t.isStart||n[lr]||(Id(n),a.uncache=1)}}function Kd(t,e){var r={target:t,props:[],revert:Jd,save:Hd};return e&&e.split(",").forEach(function(t){return r.save(t)}),r}function Md(t,e){var r=Se.createElementNS?Se.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):Se.createElement(t);return r.style?r:Se.createElement(t)}function Nd(t,e,r){var i=getComputedStyle(t);return i[e]||i.getPropertyValue(e.replace(sr,"-$1").toLowerCase())||i.getPropertyValue(e)||!r&&Nd(t,dr(e)||e,1)||""}function Qd(){(function _windowExists(){return"undefined"!=typeof window})()&&window.document&&(Ae=window,Se=Ae.document,Re=Se.documentElement,Ee=Md("div")||{style:{}},Md("div"),lr=dr(lr),fr=lr+"Origin",Ee.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Ie=!!dr("perspective"),Fe=Ce.core.reverting,De=1)}function Rd(t){var e,r=Md("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=this.parentNode,n=this.nextSibling,a=this.style.cssText;if(Re.appendChild(r),r.appendChild(this),this.style.display="block",t)try{e=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=Rd}catch(t){}else this._gsapBBox&&(e=this._gsapBBox());return i&&(n?i.insertBefore(this,n):i.appendChild(this)),Re.removeChild(r),this.style.cssText=a,e}function Sd(t,e){for(var r=e.length;r--;)if(t.hasAttribute(e[r]))return t.getAttribute(e[r])}function Td(e){var r;try{r=e.getBBox()}catch(t){r=Rd.call(e,!0)}return r&&(r.width||r.height)||e.getBBox===Rd||(r=Rd.call(e,!0)),!r||r.width||r.x||r.y?r:{x:+Sd(e,["x","cx","x1"])||0,y:+Sd(e,["y","cy","y1"])||0,width:0,height:0}}function Ud(t){return!(!t.getCTM||t.parentNode&&!t.ownerSVGElement||!Td(t))}function Vd(t,e){if(e){var r=t.style;e in rr&&e!==fr&&(e=lr),r.removeProperty?("ms"!==e.substr(0,2)&&"webkit"!==e.substr(0,6)||(e="-"+e),r.removeProperty(e.replace(sr,"-$1").toLowerCase())):r.removeAttribute(e)}}function Wd(t,e,r,i,n,a){var s=new pe(t._pt,e,r,0,1,a?yd:xd);return(t._pt=s).b=i,s.e=n,t._props.push(r),s}function Zd(t,e,r,i){var n,a,s,o,u=parseFloat(r)||0,h=(r+"").trim().substr((u+"").length)||"px",l=Ee.style,f=or.test(e),c="svg"===t.tagName.toLowerCase(),d=(c?"client":"offset")+(f?"Width":"Height"),p="px"===i,_="%"===i;return i===h||!u||pr[i]||pr[h]?u:("px"===h||p||(u=Zd(t,e,r,"px")),o=t.getCTM&&Ud(t),!_&&"%"!==h||!rr[e]&&!~e.indexOf("adius")?(l[f?"width":"height"]=100+(p?h:i),a=~e.indexOf("adius")||"em"===i&&t.appendChild&&!c?t:t.parentNode,o&&(a=(t.ownerSVGElement||{}).parentNode),a&&a!==Se&&a.appendChild||(a=Se.body),(s=a._gsap)&&_&&s.width&&f&&s.time===Et.time&&!s.uncache?ia(u/s.width*100):(!_&&"%"!==h||_r[Nd(a,"display")]||(l.position=Nd(t,"position")),a===t&&(l.position="static"),a.appendChild(Ee),n=Ee[d],a.removeChild(Ee),l.position="absolute",f&&_&&((s=fa(a)).time=Et.time,s.width=a[d]),ia(p?n*u/100:n&&u?100/n*u:0))):(n=o?t.getBBox()[f?"width":"height"]:t[d],ia(_?u/n*100:u/100*n)))}function _d(t,e,r,i){if(!r||"none"===r){var n=dr(e,t,1),a=n&&Nd(t,n,1);a&&a!==r?(e=n,r=a):"borderColor"===e&&(r=Nd(t,"borderTopColor"))}var s,o,u,h,l,f,c,d,p,_,m,g=new pe(this._pt,t.style,e,0,1,se),v=0,y=0;if(g.b=r,g.e=i,r+="","auto"===(i+="")&&(t.style[e]=i,i=Nd(t,e)||i,t.style[e]=r),Eb(s=[r,i]),i=s[1],u=(r=s[0]).match(rt)||[],(i.match(rt)||[]).length){for(;o=rt.exec(i);)c=o[0],p=i.substring(v,o.index),l?l=(l+1)%5:"rgba("!==p.substr(-5)&&"hsla("!==p.substr(-5)||(l=1),c!==(f=u[y++]||"")&&(h=parseFloat(f)||0,m=f.substr((h+"").length),"="===c.charAt(1)&&(c=ka(h,c)+m),d=parseFloat(c),_=c.substr((d+"").length),v=rt.lastIndex-_.length,_||(_=_||j.units[e]||m,v===i.length&&(i+=_,g.e+=_)),m!==_&&(h=Zd(t,e,f,_)||0),g._pt={_next:g._pt,p:p||1===y?p:",",s:h,c:d-h,m:l&&l<4||"zIndex"===e?Math.round:0});g.c=v<i.length?i.substring(v,i.length):""}else g.r="display"===e&&"none"===i?yd:xd;return nt.test(i)&&(g.e=0),this._pt=g}function be(t){var e=t.split(" "),r=e[0],i=e[1]||"50%";return"top"!==r&&"bottom"!==r&&"left"!==i&&"right"!==i||(t=r,r=i,i=t),e[0]=gr[r]||r,e[1]=gr[i]||i,e.join(" ")}function ce(t,e){if(e.tween&&e.tween._time===e.tween._dur){var r,i,n,a=e.t,s=a.style,o=e.u,u=a._gsap;if("all"===o||!0===o)s.cssText="",i=1;else for(n=(o=o.split(",")).length;-1<--n;)r=o[n],rr[r]&&(i=1,r="transformOrigin"===r?fr:lr),Vd(a,r);i&&(Vd(a,lr),u&&(u.svg&&a.removeAttribute("transform"),br(a,1),u.uncache=1,Id(s)))}}function ge(t){return"matrix(1, 0, 0, 1, 0, 0)"===t||"none"===t||!t}function he(t){var e=Nd(t,lr);return ge(e)?yr:e.substr(7).match(et).map(ia)}function ie(t,e){var r,i,n,a,s=t._gsap||fa(t),o=t.style,u=he(t);return s.svg&&t.getAttribute("transform")?"1,0,0,1,0,0"===(u=[(n=t.transform.baseVal.consolidate().matrix).a,n.b,n.c,n.d,n.e,n.f]).join(",")?yr:u:(u!==yr||t.offsetParent||t===Re||s.svg||(n=o.display,o.display="block",(r=t.parentNode)&&t.offsetParent||(a=1,i=t.nextElementSibling,Re.appendChild(t)),u=he(t),n?o.display=n:Vd(t,"display"),a&&(i?r.insertBefore(t,i):r?r.appendChild(t):Re.removeChild(t))),e&&6<u.length?[u[0],u[1],u[4],u[5],u[12],u[13]]:u)}function je(t,e,r,i,n,a){var s,o,u,h=t._gsap,l=n||ie(t,!0),f=h.xOrigin||0,c=h.yOrigin||0,d=h.xOffset||0,p=h.yOffset||0,_=l[0],m=l[1],g=l[2],v=l[3],y=l[4],T=l[5],b=e.split(" "),w=parseFloat(b[0])||0,x=parseFloat(b[1])||0;r?l!==yr&&(o=_*v-m*g)&&(u=w*(-m/o)+x*(_/o)-(_*T-m*y)/o,w=w*(v/o)+x*(-g/o)+(g*T-v*y)/o,x=u):(w=(s=Td(t)).x+(~b[0].indexOf("%")?w/100*s.width:w),x=s.y+(~(b[1]||b[0]).indexOf("%")?x/100*s.height:x)),i||!1!==i&&h.smooth?(y=w-f,T=x-c,h.xOffset=d+(y*_+T*g)-y,h.yOffset=p+(y*m+T*v)-T):h.xOffset=h.yOffset=0,h.xOrigin=w,h.yOrigin=x,h.smooth=!!i,h.origin=e,h.originIsAbsolute=!!r,t.style[fr]="0px 0px",a&&(Wd(a,h,"xOrigin",f,w),Wd(a,h,"yOrigin",c,x),Wd(a,h,"xOffset",d,h.xOffset),Wd(a,h,"yOffset",p,h.yOffset)),t.setAttribute("data-svg-origin",w+" "+x)}function me(t,e,r){var i=Ya(e);return ia(parseFloat(e)+parseFloat(Zd(t,"x",r+"px",i)))+i}function te(t,e,i,n,a){var s,o,u=360,h=r(a),l=parseFloat(a)*(h&&~a.indexOf("rad")?ir:1)-n,f=n+l+"deg";return h&&("short"===(s=a.split("_")[1])&&(l%=u)!==l%180&&(l+=l<0?u:-u),"cw"===s&&l<0?l=(l+36e9)%u-~~(l/u)*u:"ccw"===s&&0<l&&(l=(l-36e9)%u-~~(l/u)*u)),t._pt=o=new pe(t._pt,e,i,n,l,ud),o.e=f,o.u="deg",t._props.push(i),o}function ue(t,e){for(var r in e)t[r]=e[r];return t}function ve(t,e,r){var i,n,a,s,o,u,h,l=ue({},r._gsap),f=r.style;for(n in l.svg?(a=r.getAttribute("transform"),r.setAttribute("transform",""),f[lr]=e,i=br(r,1),Vd(r,lr),r.setAttribute("transform",a)):(a=getComputedStyle(r)[lr],f[lr]=e,i=br(r,1),f[lr]=a),rr)(a=l[n])!==(s=i[n])&&"perspective,force3D,transformOrigin,svgOrigin".indexOf(n)<0&&(o=Ya(a)!==(h=Ya(s))?Zd(r,n,a,h):parseFloat(a),u=parseFloat(s),t._pt=new pe(t._pt,i,n,o,u-o,td),t._pt.u=h||0,t._props.push(n));ue(i,l)}var Ae,Se,Re,De,Ee,ze,Fe,Ie,Be=Ft.Power0,Le=Ft.Power1,Ye=Ft.Power2,Ne=Ft.Power3,qe=Ft.Power4,Ue=Ft.Linear,Ve=Ft.Quad,We=Ft.Cubic,Xe=Ft.Quart,He=Ft.Quint,Qe=Ft.Strong,Ke=Ft.Elastic,Ze=Ft.Back,Ge=Ft.SteppedEase,Je=Ft.Bounce,$e=Ft.Sine,tr=Ft.Expo,er=Ft.Circ,rr={},ir=180/Math.PI,nr=Math.PI/180,ar=Math.atan2,sr=/([A-Z])/g,or=/(left|right|width|margin|padding|x)/i,ur=/[\s,\(]\S/,hr={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},lr="transform",fr=lr+"Origin",cr="O,Moz,ms,Ms,Webkit".split(","),dr=function _checkPropPrefix(t,e,r){var i=(e||Ee).style,n=5;if(t in i&&!r)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);n--&&!(cr[n]+t in i););return n<0?null:(3===n?"ms":0<=n?cr[n]:"")+t},pr={deg:1,rad:1,turn:1},_r={grid:1,flex:1},mr=function _get(t,e,r,i){var n;return De||Qd(),e in hr&&"transform"!==e&&~(e=hr[e]).indexOf(",")&&(e=e.split(",")[0]),rr[e]&&"transform"!==e?(n=br(t,i),n="transformOrigin"!==e?n[e]:n.svg?n.origin:wr(Nd(t,fr))+" "+n.zOrigin+"px"):(n=t.style[e])&&"auto"!==n&&!i&&!~(n+"").indexOf("calc(")||(n=vr[e]&&vr[e](t,e,r)||Nd(t,e)||ga(t,e)||("opacity"===e?1:0)),r&&!~(n+"").trim().indexOf(" ")?Zd(t,e,n,r)+r:n},gr={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},vr={clearProps:function clearProps(t,e,r,i,n){if("isFromStart"!==n.data){var a=t._pt=new pe(t._pt,e,r,0,0,ce);return a.u=i,a.pr=-10,a.tween=n,t._props.push(r),1}}},yr=[1,0,0,1,0,0],Tr={},br=function _parseTransform(t,e){var r=t._gsap||new jt(t);if("x"in r&&!e&&!r.uncache)return r;var i,n,a,s,o,u,h,l,f,c,d,p,_,m,g,v,y,T,b,w,x,k,M,O,P,C,A,S,R,D,E,z,F=t.style,I=r.scaleX<0,B="deg",L=getComputedStyle(t),Y=Nd(t,fr)||"0";return i=n=a=u=h=l=f=c=d=0,s=o=1,r.svg=!(!t.getCTM||!Ud(t)),L.translate&&("none"===L.translate&&"none"===L.scale&&"none"===L.rotate||(F[lr]=("none"!==L.translate?"translate3d("+(L.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+("none"!==L.rotate?"rotate("+L.rotate+") ":"")+("none"!==L.scale?"scale("+L.scale.split(" ").join(",")+") ":"")+("none"!==L[lr]?L[lr]:"")),F.scale=F.rotate=F.translate="none"),m=ie(t,r.svg),r.svg&&(O=r.uncache?(P=t.getBBox(),Y=r.xOrigin-P.x+"px "+(r.yOrigin-P.y)+"px",""):!e&&t.getAttribute("data-svg-origin"),je(t,O||Y,!!O||r.originIsAbsolute,!1!==r.smooth,m)),p=r.xOrigin||0,_=r.yOrigin||0,m!==yr&&(T=m[0],b=m[1],w=m[2],x=m[3],i=k=m[4],n=M=m[5],6===m.length?(s=Math.sqrt(T*T+b*b),o=Math.sqrt(x*x+w*w),u=T||b?ar(b,T)*ir:0,(f=w||x?ar(w,x)*ir+u:0)&&(o*=Math.abs(Math.cos(f*nr))),r.svg&&(i-=p-(p*T+_*w),n-=_-(p*b+_*x))):(z=m[6],D=m[7],A=m[8],S=m[9],R=m[10],E=m[11],i=m[12],n=m[13],a=m[14],h=(g=ar(z,R))*ir,g&&(O=k*(v=Math.cos(-g))+A*(y=Math.sin(-g)),P=M*v+S*y,C=z*v+R*y,A=k*-y+A*v,S=M*-y+S*v,R=z*-y+R*v,E=D*-y+E*v,k=O,M=P,z=C),l=(g=ar(-w,R))*ir,g&&(v=Math.cos(-g),E=x*(y=Math.sin(-g))+E*v,T=O=T*v-A*y,b=P=b*v-S*y,w=C=w*v-R*y),u=(g=ar(b,T))*ir,g&&(O=T*(v=Math.cos(g))+b*(y=Math.sin(g)),P=k*v+M*y,b=b*v-T*y,M=M*v-k*y,T=O,k=P),h&&359.9<Math.abs(h)+Math.abs(u)&&(h=u=0,l=180-l),s=ia(Math.sqrt(T*T+b*b+w*w)),o=ia(Math.sqrt(M*M+z*z)),g=ar(k,M),f=2e-4<Math.abs(g)?g*ir:0,d=E?1/(E<0?-E:E):0),r.svg&&(O=t.getAttribute("transform"),r.forceCSS=t.setAttribute("transform","")||!ge(Nd(t,lr)),O&&t.setAttribute("transform",O))),90<Math.abs(f)&&Math.abs(f)<270&&(I?(s*=-1,f+=u<=0?180:-180,u+=u<=0?180:-180):(o*=-1,f+=f<=0?180:-180)),e=e||r.uncache,r.x=i-((r.xPercent=i&&(!e&&r.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-i)?-50:0)))?t.offsetWidth*r.xPercent/100:0)+"px",r.y=n-((r.yPercent=n&&(!e&&r.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-n)?-50:0)))?t.offsetHeight*r.yPercent/100:0)+"px",r.z=a+"px",r.scaleX=ia(s),r.scaleY=ia(o),r.rotation=ia(u)+B,r.rotationX=ia(h)+B,r.rotationY=ia(l)+B,r.skewX=f+B,r.skewY=c+B,r.transformPerspective=d+"px",(r.zOrigin=parseFloat(Y.split(" ")[2])||0)&&(F[fr]=wr(Y)),r.xOffset=r.yOffset=0,r.force3D=j.force3D,r.renderTransform=r.svg?Cr:Ie?Pr:xr,r.uncache=0,r},wr=function _firstTwoOnly(t){return(t=t.split(" "))[0]+" "+t[1]},xr=function _renderNon3DTransforms(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,Pr(t,e)},kr="0deg",Mr="0px",Or=") ",Pr=function _renderCSSTransforms(t,e){var r=e||this,i=r.xPercent,n=r.yPercent,a=r.x,s=r.y,o=r.z,u=r.rotation,h=r.rotationY,l=r.rotationX,f=r.skewX,c=r.skewY,d=r.scaleX,p=r.scaleY,_=r.transformPerspective,m=r.force3D,g=r.target,v=r.zOrigin,y="",T="auto"===m&&t&&1!==t||!0===m;if(v&&(l!==kr||h!==kr)){var b,w=parseFloat(h)*nr,x=Math.sin(w),k=Math.cos(w);w=parseFloat(l)*nr,b=Math.cos(w),a=me(g,a,x*b*-v),s=me(g,s,-Math.sin(w)*-v),o=me(g,o,k*b*-v+v)}_!==Mr&&(y+="perspective("+_+Or),(i||n)&&(y+="translate("+i+"%, "+n+"%) "),!T&&a===Mr&&s===Mr&&o===Mr||(y+=o!==Mr||T?"translate3d("+a+", "+s+", "+o+") ":"translate("+a+", "+s+Or),u!==kr&&(y+="rotate("+u+Or),h!==kr&&(y+="rotateY("+h+Or),l!==kr&&(y+="rotateX("+l+Or),f===kr&&c===kr||(y+="skew("+f+", "+c+Or),1===d&&1===p||(y+="scale("+d+", "+p+Or),g.style[lr]=y||"translate(0, 0)"},Cr=function _renderSVGTransforms(t,e){var r,i,n,a,s,o=e||this,u=o.xPercent,h=o.yPercent,l=o.x,f=o.y,c=o.rotation,d=o.skewX,p=o.skewY,_=o.scaleX,m=o.scaleY,g=o.target,v=o.xOrigin,y=o.yOrigin,T=o.xOffset,b=o.yOffset,w=o.forceCSS,x=parseFloat(l),k=parseFloat(f);c=parseFloat(c),d=parseFloat(d),(p=parseFloat(p))&&(d+=p=parseFloat(p),c+=p),c||d?(c*=nr,d*=nr,r=Math.cos(c)*_,i=Math.sin(c)*_,n=Math.sin(c-d)*-m,a=Math.cos(c-d)*m,d&&(p*=nr,s=Math.tan(d-p),n*=s=Math.sqrt(1+s*s),a*=s,p&&(s=Math.tan(p),r*=s=Math.sqrt(1+s*s),i*=s)),r=ia(r),i=ia(i),n=ia(n),a=ia(a)):(r=_,a=m,i=n=0),(x&&!~(l+"").indexOf("px")||k&&!~(f+"").indexOf("px"))&&(x=Zd(g,"x",l,"px"),k=Zd(g,"y",f,"px")),(v||y||T||b)&&(x=ia(x+v-(v*r+y*n)+T),k=ia(k+y-(v*i+y*a)+b)),(u||h)&&(s=g.getBBox(),x=ia(x+u/100*s.width),k=ia(k+h/100*s.height)),s="matrix("+r+","+i+","+n+","+a+","+x+","+k+")",g.setAttribute("transform",s),w&&(g.style[lr]=s)};ha("padding,margin,Width,Radius",function(e,r){var t="Right",i="Bottom",n="Left",o=(r<3?["Top",t,i,n]:["Top"+n,"Top"+t,i+t,i+n]).map(function(t){return r<2?e+t:"border"+t+e});vr[1<r?"border"+e:e]=function(e,t,r,i,n){var a,s;if(arguments.length<4)return a=o.map(function(t){return mr(e,t,r)}),5===(s=a.join(" ")).split(a[0]).length?a[0]:s;a=(i+"").split(" "),s={},o.forEach(function(t,e){return s[t]=a[e]=a[e]||a[(e-1)/2|0]}),e.init(t,s,n)}});var Ar,Sr,Rr,Dr={name:"css",register:Qd,targetTest:function targetTest(t){return t.style&&t.nodeType},init:function init(t,e,i,n,a){var s,o,u,h,l,f,c,d,p,_,m,g,v,y,T,b,w=this._props,x=t.style,k=i.vars.startAt;for(c in De||Qd(),this.styles=this.styles||Kd(t),b=this.styles.props,this.tween=i,e)if("autoRound"!==c&&(o=e[c],!pt[c]||!_b(c,e,i,n,t,a)))if(l=typeof o,f=vr[c],"function"===l&&(l=typeof(o=o.call(i,n,t,a))),"string"===l&&~o.indexOf("random(")&&(o=ob(o)),f)f(this,t,c,o,i)&&(T=1);else if("--"===c.substr(0,2))s=(getComputedStyle(t).getPropertyValue(c)+"").trim(),o+="",Rt.lastIndex=0,Rt.test(s)||(d=Ya(s),p=Ya(o)),p?d!==p&&(s=Zd(t,c,s,p)+p):d&&(o+=d),this.add(x,"setProperty",s,o,n,a,0,0,c),w.push(c),b.push(c,0,x[c]);else if("undefined"!==l){if(k&&c in k?(s="function"==typeof k[c]?k[c].call(i,n,t,a):k[c],r(s)&&~s.indexOf("random(")&&(s=ob(s)),Ya(s+"")||(s+=j.units[c]||Ya(mr(t,c))||""),"="===(s+"").charAt(1)&&(s=mr(t,c))):s=mr(t,c),h=parseFloat(s),(_="string"===l&&"="===o.charAt(1)&&o.substr(0,2))&&(o=o.substr(2)),u=parseFloat(o),c in hr&&("autoAlpha"===c&&(1===h&&"hidden"===mr(t,"visibility")&&u&&(h=0),b.push("visibility",0,x.visibility),Wd(this,x,"visibility",h?"inherit":"hidden",u?"inherit":"hidden",!u)),"scale"!==c&&"transform"!==c&&~(c=hr[c]).indexOf(",")&&(c=c.split(",")[0])),m=c in rr)if(this.styles.save(c),g||((v=t._gsap).renderTransform&&!e.parseTransform||br(t,e.parseTransform),y=!1!==e.smoothOrigin&&v.smooth,(g=this._pt=new pe(this._pt,x,lr,0,1,v.renderTransform,v,0,-1)).dep=1),"scale"===c)this._pt=new pe(this._pt,v,"scaleY",v.scaleY,(_?ka(v.scaleY,_+u):u)-v.scaleY||0,td),this._pt.u=0,w.push("scaleY",c),c+="X";else{if("transformOrigin"===c){b.push(fr,0,x[fr]),o=be(o),v.svg?je(t,o,0,y,0,this):((p=parseFloat(o.split(" ")[2])||0)!==v.zOrigin&&Wd(this,v,"zOrigin",v.zOrigin,p),Wd(this,x,c,wr(s),wr(o)));continue}if("svgOrigin"===c){je(t,o,1,y,0,this);continue}if(c in Tr){te(this,v,c,h,_?ka(h,_+o):o);continue}if("smoothOrigin"===c){Wd(this,v,"smooth",v.smooth,o);continue}if("force3D"===c){v[c]=o;continue}if("transform"===c){ve(this,o,t);continue}}else c in x||(c=dr(c)||c);if(m||(u||0===u)&&(h||0===h)&&!ur.test(o)&&c in x)u=u||0,(d=(s+"").substr((h+"").length))!==(p=Ya(o)||(c in j.units?j.units[c]:d))&&(h=Zd(t,c,s,p)),this._pt=new pe(this._pt,m?v:x,c,h,(_?ka(h,_+u):u)-h,m||"px"!==p&&"zIndex"!==c||!1===e.autoRound?td:wd),this._pt.u=p||0,d!==p&&"%"!==p&&(this._pt.b=s,this._pt.r=vd);else if(c in x)_d.call(this,t,c,s,_?_+o:o);else if(c in t)this.add(t,c,s||t[c],_?_+o:o,n,a);else if("parseTransform"!==c){Q(c,o);continue}m||(c in x?b.push(c,0,x[c]):b.push(c,1,s||t[c])),w.push(c)}T&&de(this)},render:function render(t,e){if(e.tween._time||!Fe())for(var r=e._pt;r;)r.r(t,r.d),r=r._next;else e.styles.revert()},get:mr,aliases:hr,getSetter:function getSetter(t,e,r){var i=hr[e];return i&&i.indexOf(",")<0&&(e=i),e in rr&&e!==fr&&(t._gsap.x||mr(t,"x"))?r&&ze===r?"scale"===e?Cd:Bd:(ze=r||{})&&("scale"===e?Dd:Ed):t.style&&!u(t.style[e])?zd:~e.indexOf("-")?Ad:re(t,e)},core:{_removeProperty:Vd,_getMatrix:ie}};Ce.utils.checkPrefix=dr,Ce.core.getStyleSaver=Kd,Rr=ha((Ar="x,y,z,scale,scaleX,scaleY,xPercent,yPercent")+","+(Sr="rotation,rotationX,rotationY,skewX,skewY")+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",function(t){rr[t]=1}),ha(Sr,function(t){j.units[t]="deg",Tr[t]=1}),hr[Rr[13]]=Ar+","+Sr,ha("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",function(t){var e=t.split(":");hr[e[1]]=Rr[e[0]]}),ha("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(t){j.units[t]="px"}),Ce.registerPlugin(Dr);var Er=Ce.registerPlugin(Dr)||Ce,zr=Er.core.Tween;e.Back=Ze,e.Bounce=Je,e.CSSPlugin=Dr,e.Circ=er,e.Cubic=We,e.Elastic=Ke,e.Expo=tr,e.Linear=Ue,e.Power0=Be,e.Power1=Le,e.Power2=Ye,e.Power3=Ne,e.Power4=qe,e.Quad=Ve,e.Quart=Xe,e.Quint=He,e.Sine=$e,e.SteppedEase=Ge,e.Strong=Qe,e.TimelineLite=Ut,e.TimelineMax=Ut,e.TweenLite=Gt,e.TweenMax=zr,e.default=Er,e.gsap=Er;if(typeof(window)==="undefined"||window!==e){Object.defineProperty(e,"__esModule",{value:!0})}else{delete e.default}});document.body.className=document.body.className.replace('bbp-no-js','bbp-js');googletag.cmd.push(function(){googletag.display('div-gpt-ad-1724184657755-0')});var fusionNavIsCollapsed=function(e){var t,n;window.innerWidth<=e.getAttribute("data-breakpoint")?(e.classList.add("collapse-enabled"),e.classList.contains("expanded")||(e.setAttribute("aria-expanded","false"),window.dispatchEvent(new Event("fusion-mobile-menu-collapsed",{bubbles:!0,cancelable:!0}))),(n=e.querySelectorAll(".menu-item-has-children.expanded")).length&&n.forEach(function(e){e.querySelector(".fusion-open-nav-submenu").setAttribute("aria-expanded","false")})):(null!==e.querySelector(".menu-item-has-children.expanded .fusion-open-nav-submenu-on-click")&&e.querySelector(".menu-item-has-children.expanded .fusion-open-nav-submenu-on-click").click(),e.classList.remove("collapse-enabled"),e.setAttribute("aria-expanded","true"),null!==e.querySelector(".fusion-custom-menu")&&e.querySelector(".fusion-custom-menu").removeAttribute("style")),e.classList.add("no-wrapper-transition"),clearTimeout(t),t=setTimeout(()=>{e.classList.remove("no-wrapper-transition")},400),e.classList.remove("loading")},fusionRunNavIsCollapsed=function(){var e,t=document.querySelectorAll(".fusion-menu-element-wrapper");for(e=0;e<t.length;e++)fusionNavIsCollapsed(t[e])};function avadaGetScrollBarWidth(){var e,t,n,l=document.createElement("p");return l.style.width="100%",l.style.height="200px",(e=document.createElement("div")).style.position="absolute",e.style.top="0px",e.style.left="0px",e.style.visibility="hidden",e.style.width="200px",e.style.height="150px",e.style.overflow="hidden",e.appendChild(l),document.body.appendChild(e),t=l.offsetWidth,e.style.overflow="scroll",t==(n=l.offsetWidth)&&(n=e.clientWidth),document.body.removeChild(e),jQuery("html").hasClass("awb-scroll")&&10<t-n?10:t-n}fusionRunNavIsCollapsed(),window.addEventListener("fusion-resize-horizontal",fusionRunNavIsCollapsed);!function(){var e={6879:function(e){!function(t){var n=function(e,t,n){"use strict";var a,i;if(function(){var t,n={lazyClass:"lazyload",loadedClass:"lazyloaded",loadingClass:"lazyloading",preloadClass:"lazypreload",errorClass:"lazyerror",autosizesClass:"lazyautosizes",fastLoadedClass:"ls-is-cached",iframeLoadMode:0,srcAttr:"data-src",srcsetAttr:"data-srcset",sizesAttr:"data-sizes",minSize:40,customMedia:{},init:!0,expFactor:1.5,hFac:.8,loadMode:2,loadHidden:!0,ricTimeout:0,throttleDelay:125};for(t in i=e.lazySizesConfig||e.lazysizesConfig||{},n)t in i||(i[t]=n[t])}(),!t||!t.getElementsByClassName)return{init:function(){},cfg:i,noSupport:!0};var r=t.documentElement,o=e.HTMLPictureElement,s="addEventListener",l="getAttribute",c=e[s].bind(e),d=e.setTimeout,u=e.requestAnimationFrame||d,f=e.requestIdleCallback,m=/^picture$/i,v=["load","error","lazyincluded","_lazyloaded"],y={},g=Array.prototype.forEach,p=function(e,t){return y[t]||(y[t]=new RegExp("(\\s|^)"+t+"(\\s|$)")),y[t].test(e[l]("class")||"")&&y[t]},z=function(e,t){p(e,t)||e.setAttribute("class",(e[l]("class")||"").trim()+" "+t)},h=function(e,t){var n;(n=p(e,t))&&e.setAttribute("class",(e[l]("class")||"").replace(n," "))},b=function(e,t,n){var a=n?s:"removeEventListener";n&&b(e,t),v.forEach((function(n){e[a](n,t)}))},C=function(e,n,i,r,o){var s=t.createEvent("Event");return i||(i={}),i.instance=a,s.initEvent(n,!r,!o),s.detail=i,e.dispatchEvent(s),s},A=function(t,n){var a;!o&&(a=e.picturefill||i.pf)?(n&&n.src&&!t[l]("srcset")&&t.setAttribute("srcset",n.src),a({reevaluate:!0,elements:[t]})):n&&n.src&&(t.src=n.src)},E=function(e,t){return(getComputedStyle(e,null)||{})[t]},_=function(e,t,n){for(n=n||e.offsetWidth;n<i.minSize&&t&&!e._lazysizesWidth;)n=t.offsetWidth,t=t.parentNode;return n},w=(ze=[],he=[],be=ze,Ce=function(){var e=be;for(be=ze.length?he:ze,ge=!0,pe=!1;e.length;)e.shift()();ge=!1},Ae=function(e,n){ge&&!n?e.apply(this,arguments):(be.push(e),pe||(pe=!0,(t.hidden?d:u)(Ce)))},Ae._lsFlush=Ce,Ae),M=function(e,t){return t?function(){w(e)}:function(){var t=this,n=arguments;w((function(){e.apply(t,n)}))}},N=function(e){var t,a=0,r=i.throttleDelay,o=i.ricTimeout,s=function(){t=!1,a=n.now(),e()},l=f&&o>49?function(){f(s,{timeout:o}),o!==i.ricTimeout&&(o=i.ricTimeout)}:M((function(){d(s)}),!0);return function(e){var i;(e=!0===e)&&(o=33),t||(t=!0,(i=r-(n.now()-a))<0&&(i=0),e||i<9?l():d(l,i))}},x=function(e){var t,a,i=99,r=function(){t=null,e()},o=function(){var e=n.now()-a;e<i?d(o,i-e):(f||r)(r)};return function(){a=n.now(),t||(t=d(o,i))}},L=(K=/^img$/i,Q=/^iframe$/i,V="onscroll"in e&&!/(gle|ing)bot/.test(navigator.userAgent),X=0,Y=0,Z=0,ee=-1,te=function(e){Z--,(!e||Z<0||!e.target)&&(Z=0)},ne=function(e){return null==J&&(J="hidden"==E(t.body,"visibility")),J||!("hidden"==E(e.parentNode,"visibility")&&"hidden"==E(e,"visibility"))},ae=function(e,n){var a,i=e,o=ne(e);for(I-=n,G+=n,j-=n,U+=n;o&&(i=i.offsetParent)&&i!=t.body&&i!=r;)(o=(E(i,"opacity")||1)>0)&&"visible"!=E(i,"overflow")&&(a=i.getBoundingClientRect(),o=U>a.left&&j<a.right&&G>a.top-1&&I<a.bottom+1);return o},ie=function(){var e,n,o,s,c,d,u,f,m,v,y,g,p=a.elements;if((D=i.loadMode)&&Z<8&&(e=p.length)){for(n=0,ee++;n<e;n++)if(p[n]&&!p[n]._lazyRace)if(!V||a.prematureUnveil&&a.prematureUnveil(p[n]))fe(p[n]);else if((f=p[n][l]("data-expand"))&&(d=1*f)||(d=Y),v||(v=!i.expand||i.expand<1?r.clientHeight>500&&r.clientWidth>500?500:370:i.expand,a._defEx=v,y=v*i.expFactor,g=i.hFac,J=null,Y<y&&Z<1&&ee>2&&D>2&&!t.hidden?(Y=y,ee=0):Y=D>1&&ee>1&&Z<6?v:X),m!==d&&($=innerWidth+d*g,q=innerHeight+d,u=-1*d,m=d),o=p[n].getBoundingClientRect(),(G=o.bottom)>=u&&(I=o.top)<=q&&(U=o.right)>=u*g&&(j=o.left)<=$&&(G||U||j||I)&&(i.loadHidden||ne(p[n]))&&(R&&Z<3&&!f&&(D<3||ee<4)||ae(p[n],d))){if(fe(p[n]),c=!0,Z>9)break}else!c&&R&&!s&&Z<4&&ee<4&&D>2&&(P[0]||i.preloadAfterLoad)&&(P[0]||!f&&(G||U||j||I||"auto"!=p[n][l](i.sizesAttr)))&&(s=P[0]||p[n]);s&&!c&&fe(s)}},re=N(ie),oe=function(e){var t=e.target;t._lazyCache?delete t._lazyCache:(te(e),z(t,i.loadedClass),h(t,i.loadingClass),b(t,le),C(t,"lazyloaded"))},se=M(oe),le=function(e){se({target:e.target})},ce=function(e,t){var n=e.getAttribute("data-load-mode")||i.iframeLoadMode;0==n?e.contentWindow.location.replace(t):1==n&&(e.src=t)},de=function(e){var t,n=e[l](i.srcsetAttr);(t=i.customMedia[e[l]("data-media")||e[l]("media")])&&e.setAttribute("media",t),n&&e.setAttribute("srcset",n)},ue=M((function(e,t,n,a,r){var o,s,c,u,f,v;(f=C(e,"lazybeforeunveil",t)).defaultPrevented||(a&&(n?z(e,i.autosizesClass):e.setAttribute("sizes",a)),s=e[l](i.srcsetAttr),o=e[l](i.srcAttr),r&&(u=(c=e.parentNode)&&m.test(c.nodeName||"")),v=t.firesLoad||"src"in e&&(s||o||u),f={target:e},z(e,i.loadingClass),v&&(clearTimeout(k),k=d(te,2500),b(e,le,!0)),u&&g.call(c.getElementsByTagName("source"),de),s?e.setAttribute("srcset",s):o&&!u&&(Q.test(e.nodeName)?ce(e,o):e.src=o),r&&(s||u)&&A(e,{src:o})),e._lazyRace&&delete e._lazyRace,h(e,i.lazyClass),w((function(){var t=e.complete&&e.naturalWidth>1;v&&!t||(t&&z(e,i.fastLoadedClass),oe(f),e._lazyCache=!0,d((function(){"_lazyCache"in e&&delete e._lazyCache}),9)),"lazy"==e.loading&&Z--}),!0)})),fe=function(e){if(!e._lazyRace){var t,n=K.test(e.nodeName),a=n&&(e[l](i.sizesAttr)||e[l]("sizes")),r="auto"==a;(!r&&R||!n||!e[l]("src")&&!e.srcset||e.complete||p(e,i.errorClass)||!p(e,i.lazyClass))&&(t=C(e,"lazyunveilread").detail,r&&W.updateElem(e,!0,e.offsetWidth),e._lazyRace=!0,Z++,ue(e,t,r,a,n))}},me=x((function(){i.loadMode=3,re()})),ve=function(){3==i.loadMode&&(i.loadMode=2),me()},ye=function(){R||(n.now()-H<999?d(ye,999):(R=!0,i.loadMode=3,re(),c("scroll",ve,!0)))},{_:function(){H=n.now(),a.elements=t.getElementsByClassName(i.lazyClass),P=t.getElementsByClassName(i.lazyClass+" "+i.preloadClass),c("scroll",re,!0),c("resize",re,!0),c("pageshow",(function(e){if(e.persisted){var n=t.querySelectorAll("."+i.loadingClass);n.length&&n.forEach&&u((function(){n.forEach((function(e){e.complete&&fe(e)}))}))}})),e.MutationObserver?new MutationObserver(re).observe(r,{childList:!0,subtree:!0,attributes:!0}):(r[s]("DOMNodeInserted",re,!0),r[s]("DOMAttrModified",re,!0),setInterval(re,999)),c("hashchange",re,!0),["focus","mouseover","click","load","transitionend","animationend"].forEach((function(e){t[s](e,re,!0)})),/d$|^c/.test(t.readyState)?ye():(c("load",ye),t[s]("DOMContentLoaded",re),d(ye,2e4)),a.elements.length?(ie(),w._lsFlush()):re()},checkElems:re,unveil:fe,_aLSL:ve}),W=(T=M((function(e,t,n,a){var i,r,o;if(e._lazysizesWidth=a,a+="px",e.setAttribute("sizes",a),m.test(t.nodeName||""))for(r=0,o=(i=t.getElementsByTagName("source")).length;r<o;r++)i[r].setAttribute("sizes",a);n.detail.dataAttr||A(e,n.detail)})),F=function(e,t,n){var a,i=e.parentNode;i&&(n=_(e,i,n),(a=C(e,"lazybeforesizes",{width:n,dataAttr:!!t})).defaultPrevented||(n=a.detail.width)&&n!==e._lazysizesWidth&&T(e,i,a,n))},O=x((function(){var e,t=B.length;if(t)for(e=0;e<t;e++)F(B[e])})),{_:function(){B=t.getElementsByClassName(i.autosizesClass),c("resize",O)},checkElems:O,updateElem:F}),S=function(){!S.i&&t.getElementsByClassName&&(S.i=!0,W._(),L._())};var B,T,F,O;var P,R,k,D,H,$,q,I,j,U,G,J,K,Q,V,X,Y,Z,ee,te,ne,ae,ie,re,oe,se,le,ce,de,ue,fe,me,ve,ye;var ge,pe,ze,he,be,Ce,Ae;return d((function(){i.init&&S()})),a={cfg:i,autoSizer:W,loader:L,init:S,uP:A,aC:z,rC:h,hC:p,fire:C,gW:_,rAF:w}}(t,t.document,Date);t.lazySizes=n,e.exports&&(e.exports=n)}("undefined"!=typeof window?window:{})}},t={};function n(a){var i=t[a];if(void 0!==i)return i.exports;var r=t[a]={exports:{}};return e[a](r,r.exports,n),r.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var a in t)n.o(t,a)&&!n.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){"use strict";var e=n(6879),t=n.n(e);document.addEventListener("lazybeforeunveil",(function(e){!function(e){var t=e.getAttribute("data-bg-image"),n="background-image";if(t||(t=e.getAttribute("data-bg"),n="background"),t){var a=t.replace(/\s*\!\s*important/i,""),i=a!==t?"important":"";e.style.setProperty(n,a,i)}}(e.target)})),t().init()}()}();jQuery(document).ready(function(){jQuery(".fusion-vertical-menu-widget .current_page_item, .fusion-vertical-menu-widget .current-menu-item").each(function(){var e=jQuery(this),n=e.parent();e.find(".children, .sub-menu").length&&e.find(".children, .sub-menu").show("slow"),e.parentsUntil(".fusion-vertical-menu-widget",".children, .sub-menu").show("slow"),n.hasClass("fusion-vertical-menu-widget")&&e.find("ul").show("slow")})}),jQuery(window).on("load",function(){jQuery(".fusion-vertical-menu-widget.click li a .arrow").on("click",function(e){var n=jQuery(this).parent(),i=n.parent(),t=i.find("> .children, > .sub-menu");if(e.preventDefault(),(i.hasClass("page_item_has_children")||i.hasClass("menu-item-has-children"))&&(t.length&&!t.is(":visible")?t.stop(!0,!0).slideDown("slow"):t.stop(!0,!0).slideUp("slow")),n.parent(".page_item_has_children.current_page_item, .menu-item-has-children.current-menu-item").length)return!1}),jQuery(".fusion-vertical-menu-widget.hover li").each(function(){var e;jQuery(this).hover(function(){var n=jQuery(this).find("> .children, > .sub-menu");clearTimeout(e),e=setTimeout(function(){n.length&&n.stop(!0,!0).slideDown("slow")},500)},function(){var n=jQuery(this),i=n.find(".children, .sub-menu");clearTimeout(e),e=setTimeout(function(){0===n.find(".current_page_item").length&&!1===n.hasClass("current_page_item")&&i.stop(!0,!0).slideUp("slow")},500)})})});var cssua=function(e,o,i){"use strict";var s=" ua-",r=/\s*([\-\w ]+)[\s\/\:]([\d_]+\b(?:[\-\._\/]\w+)*)/,n=/([\w\-\.]+[\s\/][v]?[\d_]+\b(?:[\-\._\/]\w+)*)/g,a=/\b(?:(blackberry\w*|bb10)|(rim tablet os))(?:\/(\d+\.\d+(?:\.\w+)*))?/,b=/\bsilk-accelerated=true\b/,t=/\bfluidapp\b/,l=/(\bwindows\b|\bmacintosh\b|\blinux\b|\bunix\b)/,p=/(\bandroid\b|\bipad\b|\bipod\b|\bwindows phone\b|\bwpdesktop\b|\bxblwp7\b|\bzunewp7\b|\bwindows ce\b|\bblackberry\w*|\bbb10\b|\brim tablet os\b|\bmeego|\bwebos\b|\bpalm|\bsymbian|\bj2me\b|\bdocomo\b|\bpda\b|\bchtml\b|\bmidp\b|\bcldc\b|\w*?mobile\w*?|\w*?phone\w*?)/,c=/(\bxbox\b|\bplaystation\b|\bnintendo\s+\w+)/,d={parse:function(e,o){var i={};if(o&&(i.standalone=o),!(e=(""+e).toLowerCase()))return i;for(var s,d,m=e.split(/[()]/),w=0,_=m.length;w<_;w++)if(w%2){var u=m[w].split(";");for(s=0,d=u.length;s<d;s++)if(r.exec(u[s])){var f=RegExp.$1.split(" ").join("_"),v=RegExp.$2;(!i[f]||parseFloat(i[f])<parseFloat(v))&&(i[f]=v)}}else{var x=m[w].match(n);if(x)for(s=0,d=x.length;s<d;s++){var g=x[s].split(/[\/\s]+/);g.length&&"mozilla"!==g[0]&&(i[g[0].split(" ").join("_")]=g.slice(1).join("-"))}}if(p.exec(e))i.mobile=RegExp.$1,a.exec(e)&&(delete i[i.mobile],i.blackberry=i.version||RegExp.$3||RegExp.$2||RegExp.$1,RegExp.$1?i.mobile="blackberry":"0.0.1"===i.version&&(i.blackberry="7.1.0.0"));else if(l.exec(e))i.desktop=RegExp.$1;else if(c.exec(e)){i.game=RegExp.$1;var h=i.game.split(" ").join("_");i.version&&!i[h]&&(i[h]=i.version)}return i.intel_mac_os_x?(i.mac_os_x=i.intel_mac_os_x.split("_").join("."),delete i.intel_mac_os_x):i.cpu_iphone_os?(i.ios=i.cpu_iphone_os.split("_").join("."),delete i.cpu_iphone_os):i.cpu_os?(i.ios=i.cpu_os.split("_").join("."),delete i.cpu_os):"iphone"!==i.mobile||i.ios||(i.ios="1"),i.opera&&i.version?(i.opera=i.version,delete i.blackberry):b.exec(e)?i.silk_accelerated=!0:t.exec(e)&&(i.fluidapp=i.version),i.applewebkit?(i.webkit=i.applewebkit,delete i.applewebkit,i.opr&&(i.opera=i.opr,delete i.opr,delete i.chrome),i.safari&&(i.chrome||i.crios||i.opera||i.silk||i.fluidapp||i.phantomjs||i.mobile&&!i.ios?delete i.safari:i.version&&!i.rim_tablet_os?i.safari=i.version:i.safari={419:"2.0.4",417:"2.0.3",416:"2.0.2",412:"2.0",312:"1.3",125:"1.2",85:"1.0"}[parseInt(i.safari,10)]||i.safari)):i.msie||i.trident?(i.opera||(i.ie=i.msie||i.rv),delete i.msie,i.windows_phone_os?(i.windows_phone=i.windows_phone_os,delete i.windows_phone_os):"wpdesktop"!==i.mobile&&"xblwp7"!==i.mobile&&"zunewp7"!==i.mobile||(i.mobile="windows desktop",i.windows_phone=+i.ie<9?"7.0":+i.ie<10?"7.5":"8.0",delete i.windows_nt)):(i.gecko||i.firefox)&&(i.gecko=i.rv),i.rv&&delete i.rv,i.version&&delete i.version,i},format:function(e){function o(e,o){e=e.split(".").join("-");var i=s+e;if("string"==typeof o){for(var r=(o=o.split(" ").join("_").split(".").join("-")).indexOf("-");r>0;)i+=s+e+"-"+o.substring(0,r),r=o.indexOf("-",r+1);i+=s+e+"-"+o}return i}var i="";for(var r in e)r&&e.hasOwnProperty(r)&&(i+=o(r,e[r]));return i},encode:function(e){var o="";for(var i in e)i&&e.hasOwnProperty(i)&&(o&&(o+="&"),o+=encodeURIComponent(i)+"="+encodeURIComponent(e[i]));return o}};d.userAgent=d.ua=d.parse(o,i);var m=d.format(d.ua)+" js";return e.className?e.className=e.className.replace(/\bno-js\b/g,"")+m:e.className=m.substr(1),d}(document.documentElement,navigator.userAgent,navigator.standalone);!function(e,t,n,o){var r=[],a={_version:"3.12.0",_config:{classPrefix:"",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(e,t){var n=this;setTimeout(function(){t(n[e])},0)},addTest:function(e,t,n){r.push({name:e,fn:t,options:n})},addAsyncTest:function(e){r.push({name:null,fn:e})}},i=function(){};i.prototype=a,i=new i;var s=[];function c(e,t){return typeof e===t}var l,d,u=n.documentElement,p="svg"===u.nodeName.toLowerCase();function f(e){var t=u.className,n=i._config.classPrefix||"";if(p&&(t=t.baseVal),i._config.enableJSClass){var o=new RegExp("(^|\\s)"+n+"no-js(\\s|$)");t=t.replace(o,"$1"+n+"js$2")}i._config.enableClasses&&(e.length>0&&(t+=" "+n+e.join(" "+n)),p?u.className.baseVal=t:u.className=t)}function m(e,t){if("object"==typeof e)for(var n in e)l(e,n)&&m(n,e[n]);else{var o=(e=e.toLowerCase()).split("."),r=i[o[0]];if(2===o.length&&(r=r[o[1]]),void 0!==r)return i;t="function"==typeof t?t():t,1===o.length?i[o[0]]=t:(!i[o[0]]||i[o[0]]instanceof Boolean||(i[o[0]]=new Boolean(i[o[0]])),i[o[0]][o[1]]=t),f([(t&&!1!==t?"":"no-")+o.join("-")]),i._trigger(e,t)}return i}l=c(d={}.hasOwnProperty,"undefined")||c(d.call,"undefined")?function(e,t){return t in e&&c(e.constructor.prototype[t],"undefined")}:function(e,t){return d.call(e,t)},a._l={},a.on=function(e,t){this._l[e]||(this._l[e]=[]),this._l[e].push(t),i.hasOwnProperty(e)&&setTimeout(function(){i._trigger(e,i[e])},0)},a._trigger=function(e,t){if(this._l[e]){var n=this._l[e];setTimeout(function(){var e;for(e=0;e<n.length;e++)(0,n[e])(t)},0),delete this._l[e]}},i._q.push(function(){a.addTest=m});var h=a._config.usePrefixes?"Moz O ms Webkit".split(" "):[];a._cssomPrefixes=h;var v=function(e){var n,r=O.length,a=t.CSSRule;if(void 0===a)return o;if(!e)return!1;if((n=(e=e.replace(/^@/,"")).replace(/-/g,"_").toUpperCase()+"_RULE")in a)return"@"+e;for(var i=0;i<r;i++){var s=O[i];if(s.toUpperCase()+"_"+n in a)return"@-"+s.toLowerCase()+"-"+e}return!1};a.atRule=v;var g=a._config.usePrefixes?"Moz O ms Webkit".toLowerCase().split(" "):[];function y(){return"function"!=typeof n.createElement?n.createElement(arguments[0]):p?n.createElementNS.call(n,"http://www.w3.org/2000/svg",arguments[0]):n.createElement.apply(n,arguments)}a._domPrefixes=g;var T=function(){var e=!("onblur"in u);return function(t,n){var r;return!!t&&(n&&"string"!=typeof n||(n=y(n||"div")),!(r=(t="on"+t)in n)&&e&&(n.setAttribute||(n=y("div")),n.setAttribute(t,""),r="function"==typeof n[t],n[t]!==o&&(n[t]=o),n.removeAttribute(t)),r)}}();a.hasEvent=T,p||function(e,t){var n,o,r=e.html5||{},a=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,i=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,s="_html5shiv",c=0,l={};function d(e,t){var n=e.createElement("p"),o=e.getElementsByTagName("head")[0]||e.documentElement;return n.innerHTML="x<style>"+t+"</style>",o.insertBefore(n.lastChild,o.firstChild)}function u(){var e=h.elements;return"string"==typeof e?e.split(" "):e}function p(e){var t=l[e[s]];return t||(t={},c++,e[s]=c,l[c]=t),t}function f(e,n,r){return n||(n=t),o?n.createElement(e):(r||(r=p(n)),!(s=r.cache[e]?r.cache[e].cloneNode():i.test(e)?(r.cache[e]=r.createElem(e)).cloneNode():r.createElem(e)).canHaveChildren||a.test(e)||s.tagUrn?s:r.frag.appendChild(s));var s}function m(e){e||(e=t);var r=p(e);return!h.shivCSS||n||r.hasCSS||(r.hasCSS=!!d(e,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),o||function(e,t){t.cache||(t.cache={},t.createElem=e.createElement,t.createFrag=e.createDocumentFragment,t.frag=t.createFrag()),e.createElement=function(n){return h.shivMethods?f(n,e,t):t.createElem(n)},e.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+u().join().replace(/[\w\-:]+/g,function(e){return t.createElem(e),t.frag.createElement(e),'c("'+e+'")'})+");return n}")(h,t.frag)}(e,r),e}!function(){try{var e=t.createElement("a");e.innerHTML="<xyz></xyz>",n="hidden"in e,o=1==e.childNodes.length||function(){t.createElement("a");var e=t.createDocumentFragment();return void 0===e.cloneNode||void 0===e.createDocumentFragment||void 0===e.createElement}()}catch(e){n=!0,o=!0}}();var h={elements:r.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output picture progress section summary template time video",version:"3.7.3",shivCSS:!1!==r.shivCSS,supportsUnknownElements:o,shivMethods:!1!==r.shivMethods,type:"default",shivDocument:m,createElement:f,createDocumentFragment:function(e,n){if(e||(e=t),o)return e.createDocumentFragment();for(var r=(n=n||p(e)).frag.cloneNode(),a=0,i=u(),s=i.length;a<s;a++)r.createElement(i[a]);return r},addElements:function(e,t){var n=h.elements;"string"!=typeof n&&(n=n.join(" ")),"string"!=typeof e&&(e=e.join(" ")),h.elements=n+" "+e,m(t)}};e.html5=h,m(t);var v,g=/^$|\b(?:all|print)\b/,y="html5shiv",T=!(o||(v=t.documentElement,void 0===t.namespaces||void 0===t.parentWindow||void 0===v.applyElement||void 0===v.removeNode||void 0===e.attachEvent));function b(e){for(var t,n=e.attributes,o=n.length,r=e.ownerDocument.createElement(y+":"+e.nodeName);o--;)(t=n[o]).specified&&r.setAttribute(t.nodeName,t.nodeValue);return r.style.cssText=e.style.cssText,r}function x(e){var t,n,o=p(e),r=e.namespaces,a=e.parentWindow;if(!T||e.printShived)return e;function i(){clearTimeout(o._removeSheetTimer),t&&t.removeNode(!0),t=null}return void 0===r[y]&&r.add(y),a.attachEvent("onbeforeprint",function(){i();for(var o,r,a,s=e.styleSheets,c=[],l=s.length,p=Array(l);l--;)p[l]=s[l];for(;a=p.pop();)if(!a.disabled&&g.test(a.media)){try{r=(o=a.imports).length}catch(e){r=0}for(l=0;l<r;l++)p.push(o[l]);try{c.push(a.cssText)}catch(e){}}c=function(e){for(var t,n=e.split("{"),o=n.length,r=RegExp("(^|[\\s,>+~])("+u().join("|")+")(?=[[\\s,>+~#.:]|$)","gi"),a="$1"+y+"\\:$2";o--;)(t=n[o]=n[o].split("}"))[t.length-1]=t[t.length-1].replace(r,a),n[o]=t.join("}");return n.join("{")}(c.reverse().join("")),n=function(e){for(var t,n=e.getElementsByTagName("*"),o=n.length,r=RegExp("^(?:"+u().join("|")+")$","i"),a=[];o--;)t=n[o],r.test(t.nodeName)&&a.push(t.applyElement(b(t)));return a}(e),t=d(e,c)}),a.attachEvent("onafterprint",function(){!function(e){for(var t=e.length;t--;)e[t].removeNode()}(n),clearTimeout(o._removeSheetTimer),o._removeSheetTimer=setTimeout(i,500)}),e.printShived=!0,e}h.type+=" print",h.shivPrint=x,x(t),"object"==typeof module&&module.exports&&(module.exports=h)}(void 0!==t?t:this,n);var b=function(){},x=function(){};function w(e,t,o,r){var a,i,s,c,l="modernizr",d=y("div"),f=function(){var e=n.body;return e||((e=y(p?"svg":"body")).fake=!0),e}();if(parseInt(o,10))for(;o--;)(s=y("div")).id=r?r[o]:l+(o+1),d.appendChild(s);return(a=y("style")).type="text/css",a.id="s"+l,(f.fake?f:d).appendChild(a),f.appendChild(d),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(n.createTextNode(e)),d.id=l,f.fake&&(f.style.background="",f.style.overflow="hidden",c=u.style.overflow,u.style.overflow="hidden",u.appendChild(f)),i=t(d,e),f.fake&&f.parentNode?(f.parentNode.removeChild(f),u.style.overflow=c,u.offsetHeight):d.parentNode.removeChild(d),!!i}function S(e,n,o){var r;if("getComputedStyle"in t){r=getComputedStyle.call(t,e,n);var a=t.console;if(null!==r)o&&(r=r.getPropertyValue(o));else if(a)a[a.error?"error":"log"].call(a,"getComputedStyle returning null, its possible modernizr test results are inaccurate")}else r=!n&&e.currentStyle&&e.currentStyle[o];return r}t.console&&(b=function(){var e=console.error?"error":"log";t.console[e].apply(t.console,Array.prototype.slice.call(arguments))},x=function(){var e=console.warn?"warn":"log";t.console[e].apply(t.console,Array.prototype.slice.call(arguments))}),a.load=function(){"yepnope"in t?(x("yepnope.js (aka Modernizr.load) is no longer included as part of Modernizr. yepnope appears to be available on the page, so weâ€™ll use it to handle this call to Modernizr.load, but please update your code to use yepnope directly.\n See http://github.com/Modernizr/Modernizr/issues/1182 for more information."),t.yepnope.apply(t,[].slice.call(arguments,0))):b("yepnope.js (aka Modernizr.load) is no longer included as part of Modernizr. Get it from http://yepnopejs.com. See http://github.com/Modernizr/Modernizr/issues/1182 for more information.")};var C,E=(C=t.matchMedia||t.msMatchMedia)?function(e){var t=C(e);return t&&t.matches||!1}:function(e){var t=!1;return w("@media "+e+" { #modernizr { position: absolute; } }",function(e){t="absolute"===S(e,null,"position")}),t};function P(e,t){return!!~(""+e).indexOf(t)}a.mq=E;var k={elem:y("modernizr")};i._q.push(function(){delete k.elem});var _={style:k.elem.style};function z(e){return e.replace(/([A-Z])/g,function(e,t){return"-"+t.toLowerCase()}).replace(/^ms-/,"-ms-")}function N(e){return e.replace(/([a-z])-([a-z])/g,function(e,t,n){return t+n.toUpperCase()}).replace(/^-/,"")}function M(e,n,r,a){if(a=!c(a,"undefined")&&a,!c(r,"undefined")){var i=function(e,n){var r=e.length;if("CSS"in t&&"supports"in t.CSS){for(;r--;)if(t.CSS.supports(z(e[r]),n))return!0;return!1}if("CSSSupportsRule"in t){for(var a=[];r--;)a.push("("+z(e[r])+":"+n+")");return w("@supports ("+(a=a.join(" or "))+") { #modernizr { position: absolute; } }",function(e){return"absolute"===S(e,null,"position")})}return o}(e,r);if(!c(i,"undefined"))return i}for(var s,l,d,u,p,f=["modernizr","tspan","samp"];!_.style&&f.length;)s=!0,_.modElem=y(f.shift()),_.style=_.modElem.style;function m(){s&&(delete _.style,delete _.modElem)}for(d=e.length,l=0;l<d;l++)if(u=e[l],p=_.style[u],P(u,"-")&&(u=N(u)),_.style[u]!==o){if(a||c(r,"undefined"))return m(),"pfx"!==n||u;try{_.style[u]=r}catch(e){}if(_.style[u]!==p)return m(),"pfx"!==n||u}return m(),!1}function $(e,t){return function(){return e.apply(t,arguments)}}function j(e,t,n,o,r){var a=e.charAt(0).toUpperCase()+e.slice(1),i=(e+" "+h.join(a+" ")+a).split(" ");return c(t,"string")||c(t,"undefined")?M(i,t,o,r):function(e,t,n){var o;for(var r in e)if(e[r]in t)return!1===n?e[r]:c(o=t[e[r]],"function")?$(o,n||t):o;return!1}(i=(e+" "+g.join(a+" ")+a).split(" "),t,n)}i._q.unshift(function(){delete _.style}),a.testAllProps=j;var A=a.prefixed=function(e,t,n){return 0===e.indexOf("@")?v(e):(-1!==e.indexOf("-")&&(e=N(e)),t?j(e,t,n):j(e,"pfx"))},O=a._config.usePrefixes?" -webkit- -moz- -o- -ms- ".split(" "):["",""];a._prefixes=O;a.prefixedCSS=function(e){var t=A(e);return t&&z(t)};function R(e,t,n){return j(e,o,o,t,n)}a.testAllProps=R;var L=a.testProp=function(e,t,n){return M([e],o,t,n)},B=a.testStyles=w;i.addTest("touchevents",function(){if("ontouchstart"in t||t.TouchEvent||t.DocumentTouch&&n instanceof DocumentTouch)return!0;var e=["(",O.join("touch-enabled),("),"heartz",")"].join("");return E(e)}),i.addTest("applicationcache","applicationCache"in t),function(){var e=y("audio");i.addTest("audio",function(){var t=!1;try{(t=!!e.canPlayType)&&(t=new Boolean(t))}catch(e){}return t});try{e.canPlayType&&(i.addTest("audio.ogg",e.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,"")),i.addTest("audio.mp3",e.canPlayType('audio/mpeg; codecs="mp3"').replace(/^no$/,"")),i.addTest("audio.opus",e.canPlayType('audio/ogg; codecs="opus"')||e.canPlayType('audio/webm; codecs="opus"').replace(/^no$/,"")),i.addTest("audio.wav",e.canPlayType('audio/wav; codecs="1"').replace(/^no$/,"")),i.addTest("audio.m4a",(e.canPlayType("audio/x-m4a;")||e.canPlayType("audio/aac;")).replace(/^no$/,"")))}catch(e){}}(),i.addTest("canvas",function(){var e=y("canvas");return!(!e.getContext||!e.getContext("2d"))}),i.addTest("canvastext",function(){return!1!==i.canvas&&"function"==typeof y("canvas").getContext("2d").fillText}),i.addTest("hashchange",function(){return!1!==T("hashchange",t)&&(n.documentMode===o||n.documentMode>7)}),i.addTest("geolocation","geolocation"in navigator),i.addTest("history",function(){var e=navigator.userAgent;return!!e&&((-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone")||"file:"===location.protocol)&&(t.history&&"pushState"in t.history))});var D=y("input"),F="autocomplete autofocus list placeholder max min multiple pattern required step".split(" "),W={};i.input=function(e){for(var n=0,o=e.length;n<o;n++)W[e[n]]=!!(e[n]in D);return W.list&&(W.list=!(!y("datalist")||!t.HTMLDataListElement)),W}(F),function(){for(var e,t,r,a=["search","tel","url","email","datetime","date","month","week","time","datetime-local","number","range","color"],s=0;s<a.length;s++)D.setAttribute("type",e=a[s]),(r="text"!==D.type&&"style"in D)&&(D.value="1)",D.style.cssText="position:absolute;visibility:hidden;",/^range$/.test(e)&&D.style.WebkitAppearance!==o?(u.appendChild(D),r=(t=n.defaultView).getComputedStyle&&"textfield"!==t.getComputedStyle(D,null).WebkitAppearance&&0!==D.offsetHeight,u.removeChild(D)):/^(search|tel)$/.test(e)||(r=/^(url|email)$/.test(e)?D.checkValidity&&!1===D.checkValidity():"1)"!==D.value)),i.addTest("inputtypes."+e,!!r)}();var q=!0;try{t.postMessage({toString:function(){q=!1}},"*")}catch(e){}i.addTest("postmessage",new Boolean("postMessage"in t)),i.addTest("postmessage.structuredclones",q),function(){var e=y("video");i.addTest("video",function(){var t=!1;try{(t=!!e.canPlayType)&&(t=new Boolean(t))}catch(e){}return t});try{e.canPlayType&&(i.addTest("video.ogg",e.canPlayType('video/ogg; codecs="theora"').replace(/^no$/,"")),i.addTest("video.h264",e.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,"")),i.addTest("video.h265",e.canPlayType('video/mp4; codecs="hev1"').replace(/^no$/,"")),i.addTest("video.webm",e.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,"")),i.addTest("video.vp9",e.canPlayType('video/webm; codecs="vp9"').replace(/^no$/,"")),i.addTest("video.hls",e.canPlayType('application/x-mpegURL; codecs="avc1.42E01E"').replace(/^no$/,"")),i.addTest("video.av1",e.canPlayType('video/mp4; codecs="av01"').replace(/^no$/,"")))}catch(e){}}(),i.addTest("webgl",function(){return"WebGLRenderingContext"in t});var I,V,U,H=!1;try{H="WebSocket"in t&&2===t.WebSocket.CLOSING}catch(e){}i.addTest("websockets",H),i.addTest("cssanimations",R("animationName","a",!0)),i.addTest("backgroundsize",R("backgroundSize","100%",!0)),i.addTest("borderimage",R("borderImage","url() 1",!0)),i.addTest("borderradius",R("borderRadius","0px",!0)),i.addTest("boxshadow",R("boxShadow","1px 1px",!0)),i.addTest("flexbox",R("flexBasis","1px",!0)),(I=navigator.userAgent,V=I.match(/w(eb)?osbrowser/gi),U=I.match(/windows phone/gi)&&I.match(/iemobile\/([0-9])+/gi)&&parseFloat(RegExp.$1)>=9,V||U)?i.addTest("fontface",!1):B('@font-face {font-family:"font";src:url("https://")}',function(e,t){var o=n.getElementById("smodernizr"),r=o.sheet||o.styleSheet,a=r?r.cssRules&&r.cssRules[0]?r.cssRules[0].cssText:r.cssText||"":"",s=/src/i.test(a)&&0===a.indexOf(t.split(" ")[0]);i.addTest("fontface",s)}),B('#modernizr{font:0/0 a}#modernizr:after{content:":)";visibility:hidden;font:7px/1 a}',function(e){i.addTest("generatedcontent",e.offsetHeight>=6)}),i.addTest("cssgradients",function(){for(var e,t="background-image:",n="",o=0,r=O.length-1;o<r;o++)e=0===o?"to ":"",n+=t+O[o]+"linear-gradient("+e+"left top, #9f9, white);";i._config.usePrefixes&&(n+=t+"-webkit-gradient(linear,left top,right bottom,from(#9f9),to(white));");var a=y("a").style;return a.cssText=n,(""+a.backgroundImage).indexOf("gradient")>-1}),i.addTest("hsla",function(){var e=y("a").style;return e.cssText="background-color:hsla(120,40%,100%,.5)",P(e.backgroundColor,"rgba")||P(e.backgroundColor,"hsla")}),i.addTest("multiplebgs",function(){var e=y("a").style;return e.cssText="background:url(https://),url(https://),red url(https://)",/(url\s*\(.*?){3}/.test(e.background)}),i.addTest("opacity",function(){var e=y("a").style;return e.cssText=O.join("opacity:.55;"),/^0.55$/.test(e.opacity)}),i.addTest("cssreflections",R("boxReflect","above",!0)),i.addTest("rgba",function(){var e=y("a").style;return e.cssText="background-color:rgba(150,255,150,.5)",(""+e.backgroundColor).indexOf("rgba")>-1}),i.addTest("textshadow",L("textShadow","1px 1px")),i.addTest("csstransforms",function(){return-1===navigator.userAgent.indexOf("Android 2.")&&R("transform","scale(1)",!0)});var G="CSS"in t&&"supports"in t.CSS,J="supportsCSS"in t;i.addTest("supports",G||J),i.addTest("csstransforms3d",function(){return!!R("perspective","1px",!0)}),i.addTest("csstransitions",R("transition","all",!0)),i.addTest("localstorage",function(){var e="modernizr";try{return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch(e){return!1}}),i.addTest("sessionstorage",function(){var e="modernizr";try{return sessionStorage.setItem(e,e),sessionStorage.removeItem(e),!0}catch(e){return!1}}),i.addTest("websqldatabase","openDatabase"in t);var Z={}.toString;i.addTest("svgclippaths",function(){return!!n.createElementNS&&/SVGClipPath/.test(Z.call(n.createElementNS("http://www.w3.org/2000/svg","clipPath")))}),i.addTest("inlinesvg",function(){var e=y("div");return e.innerHTML="<svg/>","http://www.w3.org/2000/svg"===("undefined"!=typeof SVGRect&&e.firstChild&&e.firstChild.namespaceURI)}),i.addTest("smil",function(){return!!n.createElementNS&&/SVGAnimate/.test(Z.call(n.createElementNS("http://www.w3.org/2000/svg","animate")))}),i.addTest("webworkers","Worker"in t),function(){var e,t,n,o,a,l;for(var d in r)if(r.hasOwnProperty(d)){if(e=[],(t=r[d]).name&&(e.push(t.name.toLowerCase()),t.options&&t.options.aliases&&t.options.aliases.length))for(n=0;n<t.options.aliases.length;n++)e.push(t.options.aliases[n].toLowerCase());for(o=c(t.fn,"function")?t.fn():t.fn,a=0;a<e.length;a++)1===(l=e[a].split(".")).length?i[l[0]]=o:(i[l[0]]&&(!i[l[0]]||i[l[0]]instanceof Boolean)||(i[l[0]]=new Boolean(i[l[0]])),i[l[0]][l[1]]=o),s.push((o?"":"no-")+l.join("-"))}}(),f(s),delete a.addTest,delete a.addAsyncTest;for(var K=0;K<i._q.length;K++)i._q[K]();e.Modernizr=i}(window,window,document);var fusionJSVars={"visibility_small":"640","visibility_medium":"1024"};var fusion={fusionResizeWidth:0,fusionResizeHeight:0,currentPostID:null,toBool:function(t){return 1===t||"1"===t||!0===t||"true"===t||"on"===t},restArguments:function(t,e){return e=null==e?t.length-1:+e,function(){for(var n,i=Math.max(arguments.length-e,0),o=Array(i),r=0;r<i;r++)o[r]=arguments[r+e];switch(e){case 0:return t.call(this,o);case 1:return t.call(this,arguments[0],o);case 2:return t.call(this,arguments[0],arguments[1],o)}for(n=Array(e+1),r=0;r<e;r++)n[r]=arguments[r];return n[e]=o,t.apply(this,n)}},debounce:function(t,e,n){var i,o,r,s,u,a=this;return r=function(e,n){i=null,n&&(o=t.apply(e,n))},(s=this.restArguments(function(s){return i&&clearTimeout(i),n?(u=!i,i=setTimeout(r,e),u&&(o=t.apply(this,s))):i=a.delay(r,e,this,s),o})).cancel=function(){clearTimeout(i),i=null},s},isSmall:function(){return Modernizr.mq("only screen and (max-width:"+fusionJSVars.visibility_small+"px)")},isMedium:function(){return Modernizr.mq("only screen and (min-width:"+(parseInt(fusionJSVars.visibility_small)+1)+"px) and (max-width:"+parseInt(fusionJSVars.visibility_medium)+"px)")},isLarge:function(){return Modernizr.mq("only screen and (min-width:"+(parseFloat(fusionJSVars.visibility_medium)+1)+"px)")},getHeight:function(t,e){var n=0;return"number"==typeof t?n=t:"string"==typeof t&&(t.includes(".")||t.includes("#"))?(e=void 0!==e&&e,jQuery(t).each(function(){n+=jQuery(this).outerHeight(e)})):n=parseFloat(t),n},getAdminbarHeight:function(){var t=jQuery("#wpadminbar").length?parseInt(jQuery("#wpadminbar").height()):0;return t+=jQuery(".fusion-fixed-top").length?parseInt(jQuery(".fusion-fixed-top").height()):0},isWindow:function(t){return null!=t&&t===t.window},getObserverSegmentation:function(t){var e={};return t.each(function(){jQuery(this).data("animationoffset")||jQuery(this).attr("data-animationoffset","top-into-view")}),e={"top-into-view":t.filter('[data-animationoffset="top-into-view"]'),"top-mid-of-view":t.filter('[data-animationoffset="top-mid-of-view"]'),"bottom-in-view":t.filter('[data-animationoffset="bottom-in-view"]')},jQuery.each(e,function(t,n){n.length||delete e[t]}),0===Object.keys(e).length&&(e["top-into-view"]=t),e},getAnimationIntersectionData:function(t){var e="",n=0,i="0px 0px 0px 0px";return"string"==typeof t?e=t:void 0!==t.data("animationoffset")&&(e=t.data("animationoffset")),"top-mid-of-view"===e?i="0px 0px -50% 0px":"bottom-in-view"===e&&(n=[0,.2,.4,.6,.7,.8,.9,1]),{root:null,rootMargin:i,threshold:n}},shouldObserverEntryAnimate:function(t,e){var n=!1,i=1;return 1<e.thresholds.length?t.boundingClientRect.height>t.rootBounds.height?(i=t.rootBounds.height/t.boundingClientRect.height,e.thresholds.filter(function(e){return e>=t.intersectionRatio&&e<=i}).length||(n=!0)):t.isIntersecting&&1===t.intersectionRatio&&(n=!0):t.isIntersecting&&(n=!0),n},getCurrentPostID:function(){return null===this.currentPostID&&(this.currentPostID=void 0!==jQuery("body").data("awb-post-id")?jQuery("body").data("awb-post-id"):0),this.currentPostID}};fusion.delay=fusion.restArguments(function(t,e,n){return setTimeout(function(){return t.apply(null,n)},e)}),fusion.ready=function(t){if("function"==typeof t)return"complete"===document.readyState?t():void document.addEventListener("DOMContentLoaded",t,!1)},fusion.passiveSupported=function(){var t,e;if(void 0===fusion.supportsPassive){try{e={get passive(){t=!0}},window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch(e){t=!1}fusion.supportsPassive=!!t&&{passive:!0}}return fusion.supportsPassive},fusion.getElements=function(t){var e=[];return t?("object"==typeof t?Object.keys(t).forEach(function(n){Element.prototype.isPrototypeOf(t[n])&&e.push(t[n])}):"string"==typeof t&&(e=document.querySelectorAll(t),e=Array.prototype.slice.call(e)),e):[]},Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(t){var e=this;do{if(e.matches(t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null}),jQuery(document).ready(function(){var t;void 0===jQuery.migrateVersion&&2<parseInt(jQuery.fn.jquery)&&jQuery(window.document).triggerHandler("ready"),t=fusion.debounce(function(){fusion.fusionResizeWidth!==jQuery(window).width()&&(window.dispatchEvent(new Event("fusion-resize-horizontal",{bubbles:!0,cancelable:!0})),fusion.fusionResizeWidth=jQuery(window).width()),fusion.fusionResizeHeight!==jQuery(window).height()&&(jQuery(window).trigger("fusion-resize-vertical"),fusion.fusionResizeHeight=jQuery(window).height())},250),fusion.fusionResizeWidth=jQuery(window).width(),fusion.fusionResizeHeight=jQuery(window).height(),jQuery(window).on("resize",t)});!function(n){"use strict";n.fn.emulateTransitionEnd=function(t){var i=!1,r=this;n(this).one("bsTransitionEnd",function(){i=!0});return setTimeout(function(){i||n(r).trigger(n.support.transition.end)},t),this},n(function(){n.support.transition=function(){var n=document.createElement("bootstrap"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var i in t)if(void 0!==n.style[i])return{end:t[i]};return!1}(),n.support.transition&&(n.event.special.bsTransitionEnd={bindType:n.support.transition.end,delegateType:n.support.transition.end,handle:function(t){if(n(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}})})}(jQuery);!function(t){"use strict";var e=["sanitize","whiteList","sanitizeFn"],i=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],o={"*":["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","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},n=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,s=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i;function r(e,o){var r=e.nodeName.toLowerCase();if(-1!==t.inArray(r,o))return-1===t.inArray(r,i)||Boolean(e.nodeValue.match(n)||e.nodeValue.match(s));for(var a=t(o).filter(function(t,e){return e instanceof RegExp}),l=0,p=a.length;l<p;l++)if(r.match(a[l]))return!0;return!1}function a(e,i,o){if(0===e.length)return e;if(o&&"function"==typeof o)return o(e);if(!document.implementation||!document.implementation.createHTMLDocument)return e;var n=document.implementation.createHTMLDocument("sanitization");n.body.innerHTML=e;for(var s=t.map(i,function(t,e){return e}),a=t(n.body).find("*"),l=0,p=a.length;l<p;l++){var h=a[l],f=h.nodeName.toLowerCase();if(-1!==t.inArray(f,s))for(var u=t.map(h.attributes,function(t){return t}),c=[].concat(i["*"]||[],i[f]||[]),d=0,m=u.length;d<m;d++)r(u[d],c)||h.removeAttribute(u[d].nodeName);else h.parentNode.removeChild(h)}return n.body.innerHTML}var l=function(t,e){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",t,e)};l.VERSION="3.3.5",l.TRANSITION_DURATION=150,l.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0},sanitize:!0,sanitizeFn:null,whiteList:o},l.prototype.init=function(e,i,o){if(this.enabled=!0,this.type=e,this.$element=t(i),this.options=this.getOptions(o),this.$viewport=this.options.viewport&&t(document).find(t.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var n=this.options.trigger.split(" "),s=n.length;s--;){var r=n[s];if("click"==r)this.$element.on("click."+this.type,this.options.selector,t.proxy(this.toggle,this));else if("manual"!=r){var a="hover"==r?"mouseenter":"focusin",l="hover"==r?"mouseleave":"focusout";this.$element.on(a+"."+this.type,this.options.selector,t.proxy(this.enter,this)),this.$element.on(l+"."+this.type,this.options.selector,t.proxy(this.leave,this))}}this.options.selector?this._options=t.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},l.prototype.getDefaults=function(){return l.DEFAULTS},l.prototype.getOptions=function(i){var o=this.$element.data();for(var n in o)o.hasOwnProperty(n)&&-1!==t.inArray(n,e)&&delete o[n];return(i=t.extend({},this.getDefaults(),this.$element.data(),i)).delay&&"number"==typeof i.delay&&(i.delay={show:i.delay,hide:i.delay}),i.sanitize&&(i.template=a(i.template,i.whiteList,i.sanitizeFn)),i},l.prototype.getDelegateOptions=function(){var e={},i=this.getDefaults();return this._options&&t.each(this._options,function(t,o){i[t]!=o&&(e[t]=o)}),e},l.prototype.enter=function(e){var i=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);if(i||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i)),e instanceof t.Event&&(i.inState["focusin"==e.type?"focus":"hover"]=!0),i.tip().hasClass("in")||"in"==i.hoverState)i.hoverState="in";else{if(clearTimeout(i.timeout),i.hoverState="in",!i.options.delay||!i.options.delay.show)return i.show();i.timeout=setTimeout(function(){"in"==i.hoverState&&i.show()},i.options.delay.show)}},l.prototype.isInStateTrue=function(){for(var t in this.inState)if(this.inState[t])return!0;return!1},l.prototype.leave=function(e){var i=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);if(i||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i)),e instanceof t.Event&&(i.inState["focusout"==e.type?"focus":"hover"]=!1),!i.isInStateTrue()){if(clearTimeout(i.timeout),i.hoverState="out",!i.options.delay||!i.options.delay.hide)return i.hide();i.timeout=setTimeout(function(){"out"==i.hoverState&&i.hide()},i.options.delay.hide)}},l.prototype.show=function(){var e=t.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(e);var i=t.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(e.isDefaultPrevented()||!i)return;var o=this,n=this.tip(),s=this.getUID(this.type);this.setContent(),n.attr("id",s),this.$element.attr("aria-describedby",s),this.options.animation&&n.addClass("fade");var r="function"==typeof this.options.placement?this.options.placement.call(this,n[0],this.$element[0]):this.options.placement,a=/\s?auto?\s?/i,p=a.test(r);p&&(r=r.replace(a,"")||"top"),n.detach().css({top:0,left:0,display:"block"}).addClass(r).data("bs."+this.type,this).addClass(this.$element.data("class")),this.options.container?n.appendTo(t(document).find(this.options.container)):n.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var h=this.getPosition(),f=n[0].offsetWidth,u=n[0].offsetHeight;if(p){var c=r,d=this.getPosition(this.$viewport);r="bottom"==r&&h.bottom+u>d.bottom?"top":"top"==r&&h.top-u<d.top?"bottom":"right"==r&&h.right+f>d.width?"left":"left"==r&&h.left-f<d.left?"right":r,n.removeClass(c).addClass(r)}var m=this.getCalculatedOffset(r,h,f,u);this.applyPlacement(m,r);var g=function(){var t=o.hoverState;o.$element.trigger("shown.bs."+o.type),o.hoverState=null,"out"==t&&o.leave(o)};t.support.transition&&this.$tip.hasClass("fade")?n.one("bsTransitionEnd",g).emulateTransitionEnd(l.TRANSITION_DURATION):g()}},l.prototype.applyPlacement=function(e,i){var o=this.tip(),n=o[0].offsetWidth,s=o[0].offsetHeight,r=parseInt(o.css("margin-top"),10),a=parseInt(o.css("margin-left"),10);isNaN(r)&&(r=0),isNaN(a)&&(a=0),e.top+=r,e.left+=a,t.offset.setOffset(o[0],t.extend({using:function(t){o.css({top:Math.round(t.top),left:Math.round(t.left)})}},e),0),o.addClass("in");var l=o[0].offsetWidth,p=o[0].offsetHeight;"top"==i&&p!=s&&(e.top=e.top+s-p);var h=this.getViewportAdjustedDelta(i,e,l,p);h.left?e.left+=h.left:e.top+=h.top;var f=/top|bottom/.test(i),u=f?2*h.left-n+l:2*h.top-s+p,c=f?"offsetWidth":"offsetHeight";o.offset(e),this.replaceArrow(u,o[0][c],f)},l.prototype.replaceArrow=function(t,e,i){this.arrow().css(i?"left":"top",50*(1-t/e)+"%").css(i?"top":"left","")},l.prototype.setContent=function(){var t=this.tip(),e=this.getTitle();this.options.html?(this.options.sanitize&&(e=a(e,this.options.whiteList,this.options.sanitizeFn)),t.find(".tooltip-inner").html(e)):t.find(".tooltip-inner").text(e),t.removeClass("fade in top bottom left right")},l.prototype.hide=function(e){var i=this,o=t(this.$tip),n=t.Event("hide.bs."+this.type);function s(){"in"!=i.hoverState&&o.detach(),i.$element.removeAttr("aria-describedby").trigger("hidden.bs."+i.type),e&&e()}if(this.$element.trigger(n),!n.isDefaultPrevented())return o.removeClass("in"),t.support.transition&&o.hasClass("fade")?o.one("bsTransitionEnd",s).emulateTransitionEnd(l.TRANSITION_DURATION):s(),this.hoverState=null,this},l.prototype.fixTitle=function(){var t=this.$element;(t.attr("title")||"string"!=typeof t.attr("data-original-title"))&&t.attr("data-original-title",t.attr("title")||"").attr("title","")},l.prototype.hasContent=function(){return this.getTitle()},l.prototype.getPosition=function(e){var i=(e=e||this.$element)[0],o="BODY"==i.tagName,n=i.getBoundingClientRect();null==n.width&&(n=t.extend({},n,{width:n.right-n.left,height:n.bottom-n.top}));var s=o?{top:0,left:0}:e.offset(),r={scroll:o?document.documentElement.scrollTop||document.body.scrollTop:e.scrollTop()},a=o?{width:t(window).width(),height:t(window).height()}:null;return t.extend({},n,r,a,s)},l.prototype.getCalculatedOffset=function(t,e,i,o){return"bottom"==t?{top:e.top+e.height,left:e.left+e.width/2-i/2}:"top"==t?{top:e.top-o,left:e.left+e.width/2-i/2}:"left"==t?{top:e.top+e.height/2-o/2,left:e.left-i}:{top:e.top+e.height/2-o/2,left:e.left+e.width}},l.prototype.getViewportAdjustedDelta=function(t,e,i,o){var n={top:0,left:0};if(!this.$viewport)return n;var s=this.options.viewport&&this.options.viewport.padding||0,r=this.getPosition(this.$viewport);if(/right|left/.test(t)){var a=e.top-s-r.scroll,l=e.top+s-r.scroll+o;a<r.top?n.top=r.top-a:l>r.top+r.height&&(n.top=r.top+r.height-l)}else{var p=e.left-s,h=e.left+s+i;p<r.left?n.left=r.left-p:h>r.right&&(n.left=r.left+r.width-h)}return n},l.prototype.getTitle=function(){var t=this.$element,e=this.options;return t.attr("data-original-title")||("function"==typeof e.title?e.title.call(t[0]):e.title)},l.prototype.getUID=function(t){do{t+=~~(1e6*Math.random())}while(document.getElementById(t));return t},l.prototype.tip=function(){if(!this.$tip&&(this.$tip=t(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},l.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},l.prototype.enable=function(){this.enabled=!0},l.prototype.disable=function(){this.enabled=!1},l.prototype.toggleEnabled=function(){this.enabled=!this.enabled},l.prototype.toggle=function(e){var i=this;e&&((i=t(e.currentTarget).data("bs."+this.type))||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i))),e?(i.inState.click=!i.inState.click,i.isInStateTrue()?i.enter(i):i.leave(i)):i.tip().hasClass("in")?i.leave(i):i.enter(i)},l.prototype.destroy=function(){var t=this;clearTimeout(this.timeout),this.hide(function(){t.$element.off("."+t.type).removeData("bs."+t.type),t.$tip&&t.$tip.detach(),t.$tip=null,t.$arrow=null,t.$viewport=null})},l.prototype.sanitizeHtml=function(t){return a(t,this.options.whiteList,this.options.sanitizeFn)};var p=t.fn.tooltip;t.fn.tooltip=function(e){return this.each(function(){var i=t(this),o=i.data("bs.tooltip"),n="object"==typeof e&&e;!o&&/destroy|hide/.test(e)||(o||i.data("bs.tooltip",o=new l(this,n)),"string"==typeof e&&"function"==typeof o[e]&&o[e]())})},t.fn.tooltip.Constructor=l,t.fn.tooltip.noConflict=function(){return t.fn.tooltip=p,this}}(jQuery);!function(e,n,t){for(var i,a=0,m=function(e){i&&(n.requestAnimationFrame(m,e),jQuery.fx.tick())},r=["ms","moz","webkit","o"],o=0,u=r.length;o<u&&!n.requestAnimationFrame;++o)n.requestAnimationFrame=n[r[o]+"RequestAnimationFrame"],n.cancelAnimationFrame=n[r[o]+"CancelAnimationFrame"]||n[r[o]+"CancelRequestAnimationFrame"];n.requestAnimationFrame||(n.requestAnimationFrame=function(e,t){var i=(new Date).getTime(),m=i-a,r=Math.max(0,16-m),o=n.setTimeout(function(){e(i+r)},r);return a=i+r,o}),n.cancelAnimationFrame||(n.cancelAnimationFrame=function(e){clearTimeout(e)}),jQuery.fx.timer=function(e){e()&&jQuery.timers.push(e)&&!i&&(i=!0,m(e.elem))},jQuery.fx.stop=function(){i=!1}}(jQuery,this);!function(n){"function"==typeof define&&define.amd?define(["jquery"],function(e){return n(e)}):"object"==typeof module&&"object"==typeof module.exports?exports=n(require("jquery")):n(jQuery)}(function(n){n.easing.jswing=n.easing.swing;var e=Math.pow,t=Math.sqrt,u=Math.sin,r=Math.cos,i=Math.PI,a=1.70158,c=1.525*a,o=2*i/3,s=2*i/4.5;function f(n){var e=7.5625,t=2.75;return n<1/t?e*n*n:n<2/t?e*(n-=1.5/t)*n+.75:n<2.5/t?e*(n-=2.25/t)*n+.9375:e*(n-=2.625/t)*n+.984375}n.extend(n.easing,{def:"easeOutQuad",swing:function(e){return n.easing[n.easing.def](e)},easeInQuad:function(n){return n*n},easeOutQuad:function(n){return 1-(1-n)*(1-n)},easeInOutQuad:function(n){return n<.5?2*n*n:1-e(-2*n+2,2)/2},easeInCubic:function(n){return n*n*n},easeOutCubic:function(n){return 1-e(1-n,3)},easeInOutCubic:function(n){return n<.5?4*n*n*n:1-e(-2*n+2,3)/2},easeInQuart:function(n){return n*n*n*n},easeOutQuart:function(n){return 1-e(1-n,4)},easeInOutQuart:function(n){return n<.5?8*n*n*n*n:1-e(-2*n+2,4)/2},easeInQuint:function(n){return n*n*n*n*n},easeOutQuint:function(n){return 1-e(1-n,5)},easeInOutQuint:function(n){return n<.5?16*n*n*n*n*n:1-e(-2*n+2,5)/2},easeInSine:function(n){return 1-r(n*i/2)},easeOutSine:function(n){return u(n*i/2)},easeInOutSine:function(n){return-(r(i*n)-1)/2},easeInExpo:function(n){return 0===n?0:e(2,10*n-10)},easeOutExpo:function(n){return 1===n?1:1-e(2,-10*n)},easeInOutExpo:function(n){return 0===n?0:1===n?1:n<.5?e(2,20*n-10)/2:(2-e(2,-20*n+10))/2},easeInCirc:function(n){return 1-t(1-e(n,2))},easeOutCirc:function(n){return t(1-e(n-1,2))},easeInOutCirc:function(n){return n<.5?(1-t(1-e(2*n,2)))/2:(t(1-e(-2*n+2,2))+1)/2},easeInElastic:function(n){return 0===n?0:1===n?1:-e(2,10*n-10)*u((10*n-10.75)*o)},easeOutElastic:function(n){return 0===n?0:1===n?1:e(2,-10*n)*u((10*n-.75)*o)+1},easeInOutElastic:function(n){return 0===n?0:1===n?1:n<.5?-e(2,20*n-10)*u((20*n-11.125)*s)/2:e(2,-20*n+10)*u((20*n-11.125)*s)/2+1},easeInBack:function(n){return 2.70158*n*n*n-a*n*n},easeOutBack:function(n){return 1+2.70158*e(n-1,3)+a*e(n-1,2)},easeInOutBack:function(n){return n<.5?e(2*n,2)*(7.189819*n-c)/2:(e(2*n-2,2)*((c+1)*(2*n-2)+c)+2)/2},easeInBounce:function(n){return 1-f(1-n)},easeOutBounce:f,easeInOutBounce:function(n){return n<.5?(1-f(1-2*n))/2:(1+f(2*n-1))/2}})});!function(t){"use strict";t.fn.fitVids=function(e){var i={customSelector:null,ignore:null};if(!document.getElementById("fit-vids-style")){var r=document.head||document.getElementsByTagName("head")[0],a=document.createElement("div");a.innerHTML='<p>x</p><style id="fit-vids-style">.fluid-width-video-wrapper{width:100%;position:relative;padding:0;}.fluid-width-video-wrapper iframe,.fluid-width-video-wrapper object,.fluid-width-video-wrapper embed {position:absolute;top:0;left:0;width:100%;height:100%;}</style>',r.appendChild(a.childNodes[1])}return e&&t.extend(i,e),this.each(function(){var e=['iframe[src*="player.vimeo.com"]','iframe[src*="youtube.com"]','iframe[src*="youtube-nocookie.com"]','iframe[src*="kickstarter.com"][src*="video.html"]',"object","embed"];i.customSelector&&e.push(i.customSelector);var r=".fitvidsignore";i.ignore&&(r=r+", "+i.ignore);var a=t(this).find(e.join(","));(a=(a=a.not("object object")).not(r)).each(function(){var e=t(this);if(!(e.parents(r).length>0||"embed"===this.tagName.toLowerCase()&&e.parent("object").length||e.parent(".fluid-width-video-wrapper").length)){e.css("height")||e.css("width")||!isNaN(e.attr("height"))&&!isNaN(e.attr("width"))||(e.attr("height",9),e.attr("width",16));var i=("object"===this.tagName.toLowerCase()||e.attr("height")&&!isNaN(parseInt(e.attr("height"),10))?parseInt(e.attr("height"),10):e.height())/(isNaN(parseInt(e.attr("width"),10))?e.width():parseInt(e.attr("width"),10));if(!e.attr("name")){var a="fitvid"+t.fn.fitVids._count;e.attr("name",a),t.fn.fitVids._count++}e.wrap('<div class="fluid-width-video-wrapper"></div>').parent(".fluid-width-video-wrapper").css("padding-top",100*i+"%"),e.removeAttr("height").removeAttr("width")}})})},t.fn.fitVids._count=0}(window.jQuery||window.Zepto);!function(e){var t=!0;e.flexslider=function(a,n){var i=e(a);void 0===n.rtl&&"rtl"==e("html").attr("dir")&&(n.rtl=!0),i.vars=e.extend({},e.flexslider.defaults,n);var s,r=i.vars.namespace,o=window.navigator&&window.navigator.msPointerEnabled&&window.MSGesture,l=("ontouchstart"in window||o||window.DocumentTouch&&document instanceof DocumentTouch)&&i.vars.touch,c="click touchend MSPointerUp keyup",d="",u="vertical"===i.vars.direction,v=i.vars.reverse,p=i.vars.itemWidth>0,m="fade"===i.vars.animation,f=""!==i.vars.asNavFor,h={};e.data(a,"flexslider",i),h={init:function(){i.animating=!1,i.currentSlide=parseInt(i.vars.startAt?i.vars.startAt:0,10),isNaN(i.currentSlide)&&(i.currentSlide=0),i.animatingTo=i.currentSlide,i.atEnd=0===i.currentSlide||i.currentSlide===i.last,i.containerSelector=i.vars.selector.substr(0,i.vars.selector.search(" ")),i.slides=e(i.vars.selector,i),i.container=e(i.containerSelector,i),i.count=i.slides.length,i.syncExists=e(i.vars.sync).length>0,"slide"===i.vars.animation&&(i.vars.animation="swing"),i.prop=u?"top":i.vars.rtl?"marginRight":"marginLeft",i.args={},i.manualPause=!1,i.stopped=!1,i.started=!1,i.startTimeout=null,i.transitions=!i.vars.video&&!m&&i.vars.useCSS&&function(){var e=document.createElement("div"),t=["perspectiveProperty","WebkitPerspective","MozPerspective","OPerspective","msPerspective"];for(var a in t)if(void 0!==e.style[t[a]])return i.pfx=t[a].replace("Perspective","").toLowerCase(),i.prop="-"+i.pfx+"-transform",!0;return!1}(),i.isFirefox=navigator.userAgent.toLowerCase().indexOf("firefox")>-1,i.ensureAnimationEnd="",""!==i.vars.controlsContainer&&(i.controlsContainer=e(i.vars.controlsContainer).length>0&&e(i.vars.controlsContainer)),""!==i.vars.manualControls&&(i.manualControls=e(i.vars.manualControls).length>0&&e(i.vars.manualControls)),""!==i.vars.customDirectionNav&&(i.customDirectionNav=2===e(i.vars.customDirectionNav).length&&e(i.vars.customDirectionNav)),i.vars.randomize&&(i.slides.sort(function(){return Math.round(Math.random())-.5}),i.container.empty().append(i.slides)),i.doMath(),i.setup("init"),i.vars.controlNav&&h.controlNav.setup(),i.vars.directionNav&&h.directionNav.setup(),i.vars.keyboard&&(1===e(i.containerSelector).length||i.vars.multipleKeyboard)&&e(document).on("keyup",function(e){var t=e.keyCode;if(!i.animating&&(39===t||37===t)){var a=i.vars.rtl?37===t?i.getTarget("next"):39===t&&i.getTarget("prev"):39===t?i.getTarget("next"):37===t&&i.getTarget("prev");i.flexAnimate(a,i.vars.pauseOnAction)}}),i.vars.mousewheel&&i.on("mousewheel",function(e,t,a,n){e.preventDefault();var s=t<0?i.getTarget("next"):i.getTarget("prev");i.flexAnimate(s,i.vars.pauseOnAction)}),i.vars.pausePlay&&h.pausePlay.setup(),i.vars.slideshow&&i.vars.pauseInvisible&&h.pauseInvisible.init(),i.vars.slideshow&&(i.vars.pauseOnHover&&i.hover(function(){i.manualPlay||i.manualPause||i.pause()},function(){i.manualPause||i.manualPlay||i.stopped||i.play()}),i.vars.pauseInvisible&&h.pauseInvisible.isHidden()||(i.vars.initDelay>0?i.startTimeout=setTimeout(i.play,i.vars.initDelay):i.play())),f&&h.asNav.setup(),l&&i.vars.touch&&h.touch(),(!m||m&&i.vars.smoothHeight)&&e(window).on("resize orientationchange focus",h.resize),i.find("img").attr("draggable","false"),setTimeout(function(){i.vars.start(i)},200)},asNav:{setup:function(){i.asNav=!0,i.animatingTo=Math.floor(i.currentSlide/i.move),i.currentItem=i.currentSlide,i.slides.removeClass(r+"active-slide").eq(i.currentItem).addClass(r+"active-slide"),o?(a._slider=i,i.slides.each(function(){this._gesture=new MSGesture,this._gesture.target=this,this.addEventListener("MSPointerDown",function(e){e.preventDefault(),e.currentTarget._gesture&&e.currentTarget._gesture.addPointer(e.pointerId)},!1),this.addEventListener("MSGestureTap",function(t){t.preventDefault();var a=e(this),n=a.index();e(i.vars.asNavFor).data("flexslider").animating||a.hasClass("active")||(i.direction=i.currentItem<n?"next":"prev",i.flexAnimate(n,i.vars.pauseOnAction,!1,!0,!0))})})):i.slides.on(c,function(t){t.preventDefault();var a=e(this),n=a.index();(i.vars.rtl?-1*(a.offset().right-e(i).scrollLeft()):a.offset().left-e(i).scrollLeft())<=0&&a.hasClass(r+"active-slide")?i.flexAnimate(i.getTarget("prev"),!0):e(i.vars.asNavFor).data("flexslider").animating||a.hasClass(r+"active-slide")||(i.direction=i.currentItem<n?"next":"prev",i.flexAnimate(n,i.vars.pauseOnAction,!1,!0,!0))})}},controlNav:{setup:function(){i.manualControls?h.controlNav.setupManual():h.controlNav.setupPaging()},setupPaging:function(){var t,a,n="thumbnails"===i.vars.controlNav?"control-thumbs":"control-paging",s=1;if(i.controlNavScaffold=e('<ol class="'+r+"control-nav "+r+n+'"></ol>'),i.pagingCount>1)for(var o=0;o<i.pagingCount;o++){if(void 0===(a=i.slides.eq(o)).attr("data-thumb-alt")&&a.attr("data-thumb-alt",""),t=e("<a></a>").attr("href","#").text(s),"thumbnails"===i.vars.controlNav&&(t=e("<img/>").attr("src",a.attr("data-thumb"))),""!==a.attr("data-thumb-alt")&&t.attr("alt",a.attr("data-thumb-alt")),"thumbnails"===i.vars.controlNav&&!0===i.vars.thumbCaptions){var l=a.attr("data-thumbcaption");if(""!==l&&void 0!==l){var u=e("<span></span>").addClass(r+"caption").text(l);t.append(u)}}var v=e("<li>");t.appendTo(v),v.append("</li>"),i.controlNavScaffold.append(v),s++}i.controlsContainer?e(i.controlsContainer).append(i.controlNavScaffold):i.append(i.controlNavScaffold),h.controlNav.set(),h.controlNav.active(),i.controlNavScaffold.on(c,"a, img",function(t){if(t.preventDefault(),""===d||d===t.type){var a=e(this),n=i.controlNav.index(a);a.hasClass(r+"active")||(i.direction=n>i.currentSlide?"next":"prev",i.flexAnimate(n,i.vars.pauseOnAction))}""===d&&(d=t.type),h.setToClearWatchedEvent()})},setupManual:function(){i.controlNav=i.manualControls,h.controlNav.active(),i.controlNav.on(c,function(t){if(t.preventDefault(),""===d||d===t.type){var a=e(this),n=i.controlNav.index(a);a.hasClass(r+"active")||(n>i.currentSlide?i.direction="next":i.direction="prev",i.flexAnimate(n,i.vars.pauseOnAction))}""===d&&(d=t.type),h.setToClearWatchedEvent()})},set:function(){var t="thumbnails"===i.vars.controlNav?"img":"a";i.controlNav=e("."+r+"control-nav li "+t,i.controlsContainer?i.controlsContainer:i)},active:function(){i.controlNav.removeClass(r+"active").eq(i.animatingTo).addClass(r+"active")},update:function(t,a){i.pagingCount>1&&"add"===t?i.controlNavScaffold.append(e('<li><a href="#">'+i.count+"</a></li>")):1===i.pagingCount?i.controlNavScaffold.find("li").remove():i.controlNav.eq(a).closest("li").remove(),h.controlNav.set(),i.pagingCount>1&&i.pagingCount!==i.controlNav.length?i.update(a,t):h.controlNav.active()}},directionNav:{setup:function(){var t=e('<ul class="'+r+'direction-nav"><li class="'+r+'nav-prev"><a class="'+r+'prev" href="#">'+i.vars.prevText+'</a></li><li class="'+r+'nav-next"><a class="'+r+'next" href="#">'+i.vars.nextText+"</a></li></ul>");i.customDirectionNav?i.directionNav=i.customDirectionNav:i.controlsContainer?(e(i.controlsContainer).append(t),i.directionNav=e("."+r+"direction-nav li a",i.controlsContainer)):(i.append(t),i.directionNav=e("."+r+"direction-nav li a",i)),h.directionNav.update(),i.directionNav.on(c,function(t){var a;t.preventDefault(),""!==d&&d!==t.type||(a=e(this).hasClass(r+"next")?i.getTarget("next"):i.getTarget("prev"),i.flexAnimate(a,i.vars.pauseOnAction)),""===d&&(d=t.type),h.setToClearWatchedEvent()})},update:function(){var e=r+"disabled";1===i.pagingCount?i.directionNav.addClass(e).attr("tabindex","-1"):i.vars.animationLoop?i.directionNav.removeClass(e).removeAttr("tabindex"):0===i.animatingTo?i.directionNav.removeClass(e).filter("."+r+"prev").addClass(e).attr("tabindex","-1"):i.animatingTo===i.last?i.directionNav.removeClass(e).filter("."+r+"next").addClass(e).attr("tabindex","-1"):i.directionNav.removeClass(e).removeAttr("tabindex")}},pausePlay:{setup:function(){var t=e('<div class="'+r+'pauseplay"><a href="#"></a></div>');i.controlsContainer?(i.controlsContainer.append(t),i.pausePlay=e("."+r+"pauseplay a",i.controlsContainer)):(i.append(t),i.pausePlay=e("."+r+"pauseplay a",i)),h.pausePlay.update(i.vars.slideshow?r+"pause":r+"play"),i.pausePlay.on(c,function(t){t.preventDefault(),""!==d&&d!==t.type||(e(this).hasClass(r+"pause")?(i.manualPause=!0,i.manualPlay=!1,i.pause()):(i.manualPause=!1,i.manualPlay=!0,i.play())),""===d&&(d=t.type),h.setToClearWatchedEvent()})},update:function(e){"play"===e?i.pausePlay.removeClass(r+"pause").addClass(r+"play").html(i.vars.playText):i.pausePlay.removeClass(r+"play").addClass(r+"pause").html(i.vars.pauseText)}},touch:function(){var e,t,n,s,r,l,c,d,f,h=!1,g=0,x=0;if(o){}else c=function(r){i.animating?r.preventDefault():(window.navigator.msPointerEnabled||1===r.touches.length)&&(i.pause(),s=u?i.h:i.w,l=Number(new Date),g=r.touches[0].pageX,x=r.touches[0].pageY,n=p&&v&&i.animatingTo===i.last?0:p&&v?i.limit-(i.itemW+i.vars.itemMargin)*i.move*i.animatingTo:p&&i.currentSlide===i.last?i.limit:p?(i.itemW+i.vars.itemMargin)*i.move*i.currentSlide:v?(i.last-i.currentSlide+i.cloneOffset)*s:(i.currentSlide+i.cloneOffset)*s,e=u?x:g,t=u?g:x,a.addEventListener("touchmove",d,!1),a.addEventListener("touchend",f,!1))},d=function(a){g=a.touches[0].pageX,x=a.touches[0].pageY,r=u?e-x:(i.vars.rtl?-1:1)*(e-g);(!(h=u?Math.abs(r)<Math.abs(g-t):Math.abs(r)<Math.abs(x-t))||Number(new Date)-l>500)&&(a.preventDefault(),!m&&i.transitions&&(i.vars.animationLoop||(r/=0===i.currentSlide&&r<0||i.currentSlide===i.last&&r>0?Math.abs(r)/s+2:1),i.setProps(n+r,"setTouch")))},f=function(o){if(a.removeEventListener("touchmove",d,!1),i.animatingTo===i.currentSlide&&!h&&null!==r){var c=v?-r:r,u=c>0?i.getTarget("next"):i.getTarget("prev");i.canAdvance(u)&&(Number(new Date)-l<550&&Math.abs(c)>50||Math.abs(c)>s/2)?i.flexAnimate(u,i.vars.pauseOnAction):!m&&i.canAdvance(u)&&i.flexAnimate(i.currentSlide,i.vars.pauseOnAction,!0)}a.removeEventListener("touchend",f,!1),i.vars.slideshow&&null!==r&&50>Math.abs(c)&&i.play(),e=null,t=null,r=null,n=null},a.addEventListener("touchstart",c,{passive:!0,capture:!1})},resize:function(){!i.animating&&i.is(":visible")&&(p||i.doMath(),m?h.smoothHeight():p?(i.slides.width(i.computedW),i.update(i.pagingCount),i.setProps()):u?(i.viewport.height(i.h),i.setProps(i.h,"setTotal")):(i.vars.smoothHeight&&h.smoothHeight(),i.newSlides.width(i.computedW),i.setProps(i.computedW,"setTotal")))},smoothHeight:function(e){if(!u||m){var t=m?i:i.viewport;e?t.animate({height:i.slides.eq(i.animatingTo).innerHeight()},e):t.innerHeight(i.slides.eq(i.animatingTo).innerHeight())}},sync:function(t){var a=e(i.vars.sync).data("flexslider"),n=i.animatingTo;switch(t){case"animate":a.flexAnimate(n,i.vars.pauseOnAction,!1,!0);break;case"play":a.playing||a.asNav||a.play();break;case"pause":a.pause()}},uniqueID:function(t){return t.filter("[id]").add(t.find("[id]")).each(function(){var t=e(this);t.attr("id",t.attr("id")+"_clone")}),t},pauseInvisible:{visProp:null,init:function(){var e=h.pauseInvisible.getHiddenProp();if(e){var t=e.replace(/[H|h]idden/,"")+"visibilitychange";document.addEventListener(t,function(){h.pauseInvisible.isHidden()?i.startTimeout?clearTimeout(i.startTimeout):i.pause():i.started?i.play():i.vars.initDelay>0?setTimeout(i.play,i.vars.initDelay):i.play()})}},isHidden:function(){var e=h.pauseInvisible.getHiddenProp();return!!e&&document[e]},getHiddenProp:function(){var e=["webkit","moz","ms","o"];if("hidden"in document)return"hidden";for(var t=0;t<e.length;t++)if(e[t]+"Hidden"in document)return e[t]+"Hidden";return null}},setToClearWatchedEvent:function(){clearTimeout(s),s=setTimeout(function(){d=""},3e3)}},i.flexAnimate=function(t,a,n,s,o){if(i.vars.animationLoop||t===i.currentSlide||(i.direction=t>i.currentSlide?"next":"prev"),f&&1===i.pagingCount&&(i.direction=i.currentItem<t?"next":"prev"),!i.animating&&(i.canAdvance(t,o)||n)&&i.is(":visible")){if(f&&s){var c=e(i.vars.asNavFor).data("flexslider");if(i.atEnd=0===t||t===i.count-1,c.flexAnimate(t,!0,!1,!0,o),i.direction=i.currentItem<t?"next":"prev",c.direction=i.direction,Math.ceil((t+1)/i.visible)-1===i.currentSlide||0===t)return i.currentItem=t,i.slides.removeClass(r+"active-slide").eq(t).addClass(r+"active-slide"),!1;i.currentItem=t,i.slides.removeClass(r+"active-slide").eq(t).addClass(r+"active-slide"),t=Math.floor(t/i.visible)}if(i.animating=!0,i.animatingTo=t,a&&i.pause(),i.vars.before(i),i.syncExists&&!o&&h.sync("animate"),i.vars.controlNav&&h.controlNav.active(),p||i.slides.removeClass(r+"active-slide").eq(t).addClass(r+"active-slide"),i.atEnd=0===t||t===i.last,i.vars.directionNav&&h.directionNav.update(),t===i.last&&(i.vars.end(i),i.vars.animationLoop||i.pause()),m)l?(i.slides.eq(i.currentSlide).css({opacity:0,zIndex:1}),i.slides.eq(t).css({opacity:1,zIndex:2}),i.wrapup(y)):(i.slides.eq(i.currentSlide).css({zIndex:1}).animate({opacity:0},i.vars.animationSpeed,i.vars.easing),i.slides.eq(t).css({zIndex:2}).animate({opacity:1},i.vars.animationSpeed,i.vars.easing,i.wrapup));else{var d,g,x,y=u?i.slides.filter(":first").height():i.computedW;p?(d=i.vars.itemMargin,g=(x=(i.itemW+d)*i.move*i.animatingTo)>i.limit&&1!==i.visible?i.limit:x):g=0===i.currentSlide&&t===i.count-1&&i.vars.animationLoop&&"next"!==i.direction?v?(i.count+i.cloneOffset)*y:0:i.currentSlide===i.last&&0===t&&i.vars.animationLoop&&"prev"!==i.direction?v?0:(i.count+1)*y:v?(i.count-1-t+i.cloneOffset)*y:(t+i.cloneOffset)*y,i.setProps(g,"",i.vars.animationSpeed),i.transitions?(i.vars.animationLoop&&i.atEnd||(i.animating=!1,i.currentSlide=i.animatingTo),i.container.off("webkitTransitionEnd transitionend"),i.container.on("webkitTransitionEnd transitionend",function(){clearTimeout(i.ensureAnimationEnd),i.wrapup(y)}),clearTimeout(i.ensureAnimationEnd),i.ensureAnimationEnd=setTimeout(function(){i.wrapup(y)},i.vars.animationSpeed+100)):i.container.animate(i.args,i.vars.animationSpeed,i.vars.easing,function(){i.wrapup(y)})}i.vars.smoothHeight&&h.smoothHeight(i.vars.animationSpeed)}},i.wrapup=function(e){m||p||(0===i.currentSlide&&i.animatingTo===i.last&&i.vars.animationLoop?i.setProps(e,"jumpEnd"):i.currentSlide===i.last&&0===i.animatingTo&&i.vars.animationLoop&&i.setProps(e,"jumpStart")),i.animating=!1,i.currentSlide=i.animatingTo,i.vars.after(i)},i.animateSlides=function(){!i.animating&&t&&i.flexAnimate(i.getTarget("next"))},i.pause=function(){clearInterval(i.animatedSlides),i.animatedSlides=null,i.playing=!1,i.vars.pausePlay&&h.pausePlay.update("play"),i.syncExists&&h.sync("pause")},i.play=function(){i.playing&&clearInterval(i.animatedSlides),i.animatedSlides=i.animatedSlides||setInterval(i.animateSlides,i.vars.slideshowSpeed),i.started=i.playing=!0,i.vars.pausePlay&&h.pausePlay.update("pause"),i.syncExists&&h.sync("play")},i.stop=function(){i.pause(),i.stopped=!0},i.canAdvance=function(e,t){var a=f?i.pagingCount-1:i.last;return!!t||(!(!f||i.currentItem!==i.count-1||0!==e||"prev"!==i.direction)||(!f||0!==i.currentItem||e!==i.pagingCount-1||"next"===i.direction)&&(!(e===i.currentSlide&&!f)&&(!!i.vars.animationLoop||(!i.atEnd||0!==i.currentSlide||e!==a||"next"===i.direction)&&(!i.atEnd||i.currentSlide!==a||0!==e||"next"!==i.direction))))},i.getTarget=function(e){return i.direction=e,"next"===e?i.currentSlide===i.last?0:i.currentSlide+1:0===i.currentSlide?i.last:i.currentSlide-1},i.setProps=function(e,t,a){var n,s=(n=e||(i.itemW+i.vars.itemMargin)*i.move*i.animatingTo,function(){if(p)return"setTouch"===t?e:v&&i.animatingTo===i.last?0:v?i.limit-(i.itemW+i.vars.itemMargin)*i.move*i.animatingTo:i.animatingTo===i.last?i.limit:n;switch(t){case"setTotal":return v?(i.count-1-i.currentSlide+i.cloneOffset)*e:(i.currentSlide+i.cloneOffset)*e;case"setTouch":return e;case"jumpEnd":return v?e:i.count*e;case"jumpStart":return v?i.count*e:e;default:return e}}()*(i.vars.rtl?1:-1)+"px");i.transitions&&(s=i.isFirefox?u?"translate3d(0,"+s+",0)":"translate3d("+parseInt(s)+"px,0,0)":u?"translate3d(0,"+s+",0)":"translate3d("+(i.vars.rtl?-1:1)*parseInt(s)+"px,0,0)",a=void 0!==a?a/1e3+"s":"0s",i.container.css("-"+i.pfx+"-transition-duration",a),i.container.css("transition-duration",a)),i.args[i.prop]=s,(i.transitions||void 0===a)&&i.container.css(i.args),i.container.css("transform",s)},i.setup=function(t){var a,n;m?(i.vars.rtl?i.slides.css({width:"100%",float:"right",marginLeft:"-100%",position:"relative"}):i.slides.css({width:"100%",float:"left",marginRight:"-100%",position:"relative"}),"init"===t&&(l?i.slides.css({opacity:0,display:"block",webkitTransition:"opacity "+i.vars.animationSpeed/1e3+"s ease",zIndex:1}).eq(i.currentSlide).css({opacity:1,zIndex:2}):0==i.vars.fadeFirstSlide?i.slides.css({opacity:0,display:"block",zIndex:1}).eq(i.currentSlide).css({zIndex:2}).css({opacity:1}):i.slides.css({opacity:0,display:"block",zIndex:1}).eq(i.currentSlide).css({zIndex:2}).animate({opacity:1},i.vars.animationSpeed,i.vars.easing)),i.vars.smoothHeight&&h.smoothHeight()):("init"===t&&(i.viewport=e('<div class="'+r+'viewport"></div>').css({overflow:"hidden",position:"relative"}).appendTo(i).append(i.container),i.cloneCount=0,i.cloneOffset=0,v&&(n=e.makeArray(i.slides).reverse(),i.slides=e(n),i.container.empty().append(i.slides))),i.vars.animationLoop&&!p&&(i.cloneCount=2,i.cloneOffset=1,"init"!==t&&i.container.find(".clone").remove(),h.uniqueID(i.slides.first().clone().addClass("clone").attr("aria-hidden","true")).appendTo(i.container),h.uniqueID(i.slides.last().clone().addClass("clone").attr("aria-hidden","true")).prependTo(i.container)),i.newSlides=e(i.vars.selector,i),a=v?i.count-1-i.currentSlide+i.cloneOffset:i.currentSlide+i.cloneOffset,u&&!p?(i.container.height(200*(i.count+i.cloneCount)+"%").css("position","absolute").width("100%"),setTimeout(function(){i.newSlides.css({display:"block"}),i.doMath(),i.viewport.height(i.h),i.setProps(a*i.h,"init")},"init"===t?100:0)):(i.container.width(200*(i.count+i.cloneCount)+"%"),i.setProps(a*i.computedW,"init"),setTimeout(function(){i.is(":visible")&&i.doMath(),i.vars.rtl&&i.isFirefox?i.newSlides.css({width:i.computedW,marginRight:i.computedM,float:"right",display:"block"}):i.newSlides.css({width:i.computedW,marginRight:i.computedM,float:"left",display:"block"}),i.vars.smoothHeight&&h.smoothHeight()},"init"===t?100:0)));p||i.slides.removeClass(r+"active-slide").eq(i.currentSlide).addClass(r+"active-slide"),i.vars.init(i)},i.doMath=function(){var e=i.slides.first(),t=i.vars.itemMargin,a=i.vars.minItems,n=i.vars.maxItems;i.w=void 0===i.viewport?i.width():i.viewport.width(),i.isFirefox&&(i.w=i.width()),i.h=e.height(),i.boxPadding=e.outerWidth()-e.width(),p?(i.itemT=i.vars.itemWidth+t,i.itemM=t,i.minW=a?a*i.itemT:i.w,i.maxW=n?n*i.itemT-t:i.w,i.itemW=i.minW>i.w?(i.w-t*(a-1))/a:i.maxW<i.w?(i.w-t*(n-1))/n:i.vars.itemWidth>i.w?i.w:i.vars.itemWidth,i.visible=Math.floor(i.w/(i.itemW+t)),i.move=i.vars.move>0&&i.vars.move<i.visible?i.vars.move:i.visible,i.pagingCount=Math.ceil((i.count-i.visible)/i.move+1),i.last=i.pagingCount-1,i.limit=1===i.pagingCount?0:i.vars.itemWidth>i.w?i.itemW*(i.count-1)+t*(i.count-1):(i.itemW+t)*i.count-i.w-t):(i.itemW=i.w,jQuery(i).children(".flex-viewport").length&&i.w!==jQuery(i).children(".flex-viewport").width()&&(i.itemW=jQuery(i).children(".flex-viewport").width()),i.itemM=t,i.pagingCount=i.count,i.last=i.count-1),i.computedW=i.itemW-i.boxPadding,i.computedM=i.itemM},i.update=function(e,t){i.doMath(),p||(e<i.currentSlide?i.currentSlide+=1:e<=i.currentSlide&&0!==e&&(i.currentSlide-=1),i.animatingTo=i.currentSlide),i.vars.controlNav&&!i.manualControls&&("add"===t&&!p||i.pagingCount>i.controlNav.length?h.controlNav.update("add"):("remove"===t&&!p||i.pagingCount<i.controlNav.length)&&(p&&i.currentSlide>i.last&&(i.currentSlide-=1,i.animatingTo-=1),h.controlNav.update("remove",i.last))),i.vars.directionNav&&h.directionNav.update()},i.addSlide=function(t,a){var n=e(t);i.count+=1,i.last=i.count-1,u&&v?void 0!==a?i.slides.eq(i.count-a).after(n):i.container.prepend(n):void 0!==a?i.slides.eq(a).before(n):i.container.append(n),i.update(a,"add"),i.slides=e(i.vars.selector+":not(.clone)",i),i.setup(),i.vars.added(i)},i.removeSlide=function(t){var a=isNaN(t)?i.slides.index(e(t)):t;i.count-=1,i.last=i.count-1,isNaN(t)?e(t,i.slides).remove():u&&v?i.slides.eq(i.last).remove():i.slides.eq(t).remove(),i.doMath(),i.update(a,"remove"),i.slides=e(i.vars.selector+":not(.clone)",i),i.setup(),i.vars.removed(i)},i.destroy=function(){var t="."+i.vars.namespace;i.vars.controlNav&&i.controlNav.closest(t+"control-nav").remove(),i.vars.directionNav&&i.directionNav.closest(t+"direction-nav").remove(),i.vars.pausePlay&&i.pausePlay.closest(t+"pauseplay").remove(),i.find(".clone").remove(),i.off(i.vars.eventNamespace),"fade"!=i.vars.animation&&i.container.unwrap(),i.container.removeAttr("style"),i.container.off(i.vars.eventNamespace),i.slides.removeAttr("style"),i.slides.filter(t+"active-slide").removeClass(i.vars.namespace+"active-slide"),i.slides.off(i.vars.eventNamespace),e(document).off(i.vars.eventNamespace+"-"+i.id),e(window).off(i.vars.eventNamespace+"-"+i.id),i.stop(),i.removeData("flexslider")},h.init()},e(window).on({blur:function(e){t=!1},focus:function(e){t=!0}}),e.flexslider.defaults={namespace:"flex-",selector:".slides > li",animation:"fade",easing:"swing",direction:"horizontal",reverse:!1,animationLoop:!0,smoothHeight:!1,startAt:0,slideshow:!0,slideshowSpeed:7e3,animationSpeed:600,initDelay:0,randomize:!1,fadeFirstSlide:!0,thumbCaptions:!1,pauseOnAction:!0,pauseOnHover:!1,pauseInvisible:!0,useCSS:!0,touch:!0,video:!1,controlNav:!0,directionNav:!0,prevText:"&#xf104;",nextText:"&#xf105;",keyboard:!0,multipleKeyboard:!1,mousewheel:!1,pausePlay:!1,pauseText:"Pause",playText:"Play",controlsContainer:"",manualControls:"",customDirectionNav:"",sync:"",asNavFor:"",itemWidth:0,itemMargin:0,minItems:1,maxItems:0,move:0,allowOneSlide:!0,isFirefox:!1,start:function(){},before:function(){},after:function(){},end:function(){},added:function(){},removed:function(){},init:function(){},rtl:!1},e.fn.flexslider=function(t){if(void 0===t&&(t={}),"object"==typeof t)return this.each(function(){var a=e(this),n=t.selector?t.selector:".slides > li",i=a.find(n);1===i.length&&!1===t.allowOneSlide||0===i.length?(i.fadeIn(400),t.start&&t.start(a)):void 0===a.data("flexslider")&&new e.flexslider(this,t)});var a=e(this).data("flexslider");switch(t){case"play":a.play();break;case"pause":a.pause();break;case"stop":a.stop();break;case"next":a.flexAnimate(a.getTarget("next"),!0);break;case"prev":case"previous":a.flexAnimate(a.getTarget("prev"),!0);break;case"destroy":a.destroy();break;default:"number"==typeof t&&a.flexAnimate(t,!0)}}}(jQuery);var fusionLightboxVideoVars={"lightbox_video_width":"1280","lightbox_video_height":"720"};!function($,window,undefined){var extensions={flash:["swf"],image:["bmp","gif","jpeg","jpg","png","tiff","tif","jfif","jpe","webp"],iframe:["asp","aspx","cgi","cfm","htm","html","jsp","php","pl","php3","php4","php5","phtml","rb","rhtml","shtml","txt"],video:["avi","mov","mpg","mpeg","movie","mp4","webm","ogv","ogg","3gp","m4v"]},$win=$(window),$doc=$(document),browser,transform,gpuAcceleration,fullScreenApi="",userAgent=navigator.userAgent||navigator.vendor||window.opera,supportTouch="ontouchstart"in window||navigator.msMaxTouchPoints,isMobile=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(userAgent)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(userAgent.substr(0,4)),clickEvent=supportTouch?"click itap":"click",touchStartEvent=supportTouch?"mousedown.iLightBox touchstart.iLightBox":"mousedown.iLightBox",touchStopEvent=supportTouch?"mouseup.iLightBox touchend.iLightBox":"mouseup.iLightBox",touchMoveEvent=supportTouch?"mousemove.iLightBox touchmove.iLightBox":"mousemove.iLightBox",abs=Math.abs,sqrt=Math.sqrt,round=Math.round,max=Math.max,min=Math.min,floor=Math.floor,random=Math.random,pluginspages={quicktime:"http://www.apple.com/quicktime/download",flash:"http://www.adobe.com/go/getflash"},iLightBox=function(e,t,o,i){var n=this;if(n.options=t,n.selector=e.selector||e,n.context=e.context,n.instant=i,o.length<1?n.attachItems():n.items=o,n.vars={total:n.items.length,start:0,current:null,next:null,prev:null,BODY:$("body"),loadRequests:0,overlay:$('<div class="ilightbox-overlay"></div>'),loader:$('<div class="ilightbox-loader"><div></div></div>'),toolbar:$('<div class="ilightbox-toolbar"></div>'),innerToolbar:$('<div class="ilightbox-inner-toolbar"></div>'),title:$('<div class="ilightbox-title"></div>'),closeButton:$('<a class="ilightbox-close" role="button" title="'+n.options.text.close+'"></a>'),fullScreenButton:$('<a class="ilightbox-fullscreen" role="button" title="'+n.options.text.enterFullscreen+'"></a>'),innerPlayButton:$('<a class="ilightbox-play" role="button" title="'+n.options.text.slideShow+'"></a>'),innerNextButton:$('<a class="ilightbox-next-button" role="button" title="'+n.options.text.next+'"></a>'),innerPrevButton:$('<a class="ilightbox-prev-button" role="button" title="'+n.options.text.previous+'"></a>'),holder:$('<div class="ilightbox-holder'+(supportTouch?" supportTouch":"")+'" ondragstart="return false;"><div class="ilightbox-container"></div></div>'),nextPhoto:$('<div class="ilightbox-holder'+(supportTouch?" supportTouch":"")+' ilightbox-next" ondragstart="return false;"><div class="ilightbox-container"></div></div>'),prevPhoto:$('<div class="ilightbox-holder'+(supportTouch?" supportTouch":"")+' ilightbox-prev" ondragstart="return false;"><div class="ilightbox-container"></div></div>'),nextButton:$('<a class="ilightbox-button ilightbox-next-button" role="button" ondragstart="return false;" title="'+n.options.text.next+'"><span></span></a>'),prevButton:$('<a class="ilightbox-button ilightbox-prev-button" role="button" ondragstart="return false;" title="'+n.options.text.previous+'"><span></span></a>'),thumbnails:$('<div class="ilightbox-thumbnails" ondragstart="return false;"><div class="ilightbox-thumbnails-container"><a class="ilightbox-thumbnails-dragger"></a><div class="ilightbox-thumbnails-grid"></div></div></div>'),thumbs:!1,nextLock:!1,prevLock:!1,hashLock:!1,isMobile:!1,mobileMaxWidth:980,isInFullScreen:!1,isSwipe:!1,mouseID:0,cycleID:0,isPaused:0},n.vars.hideableElements=n.vars.nextButton.add(n.vars.prevButton),n.normalizeItems(),n.availPlugins(),n.options.startFrom=n.options.startFrom>0&&n.options.startFrom>=n.vars.total?n.vars.total-1:n.options.startFrom,n.options.startFrom=n.options.randomStart?floor(random()*n.vars.total):n.options.startFrom,n.vars.start=n.options.startFrom,i?n.instantCall():n.patchItemsEvents(),n.options.linkId&&(n.hashChangeHandler(),$win.iLightBoxHashChange(function(){n.hashChangeHandler()})),supportTouch){var a=/(click|mouseenter|mouseleave|mouseover|mouseout)/gi;n.options.caption.show=n.options.caption.show.replace(a,"itap"),n.options.caption.hide=n.options.caption.hide.replace(a,"itap"),n.options.social.show=n.options.social.show.replace(a,"itap"),n.options.social.hide=n.options.social.hide.replace(a,"itap")}n.options.controls.arrows&&$.extend(n.options.styles,{nextOffsetX:0,prevOffsetX:0,nextOpacity:0,prevOpacity:0})};function getPixel(e,t){return parseInt(e.css(t),10)||0}function within(e,t,o){return e<t?t:e>o?o:e}function getViewport(){var e=window,t="inner";return"innerWidth"in window||(t="client",e=document.documentElement||document.body),{width:e[t+"Width"],height:e[t+"Height"]}}function removeHash(){var e=getScrollXY();window.location.hash="",window.scrollTo(e.x,e.y)}function doAjax(e,t){e="//ilightbox.net/getSource/jsonp.php?url="+encodeURIComponent(e).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A");$.ajax({url:e,dataType:"jsonp"}),iLCallback=function(e){t.call(this,e)}}function findImageInElement(e){var t=$("*",e),o=new Array;return t.each(function(){var e="";if("none"!=$(this).css("background-image")?e=$(this).css("background-image"):void 0!==$(this).attr("src")&&"img"==this.nodeName.toLowerCase()&&(e=$(this).attr("src")),-1==e.indexOf("gradient"))for(var t=(e=(e=(e=(e=e.replace(/url\(\"/g,"")).replace(/url\(/g,"")).replace(/\"\)/g,"")).replace(/\)/g,"")).split(","),i=0;i<t.length;i++)if(t[i].length>0&&-1==$.inArray(t[i],o)){var n="";browser.msie&&browser.version<9&&(n="?"+floor(3e3*random())),o.push(t[i]+n)}}),o}function getExtension(e){var t=e.split(".").pop().toLowerCase(),o=-1!==t.indexOf("?")?"?"+t.split("?").pop():"";return t.replace(o,"")}function getTypeByExtension(e,t){var o,i=getExtension(e);if(o=-1!==extensions.image.indexOf(i)?"image":-1!==extensions.flash.indexOf(i)?"flash":-1!==extensions.video.indexOf(i)?"video":"iframe",t){const e=(t=jQuery(t)).attr("data-media-type");e&&(o=e)}return o}function percentToValue(e,t){return parseInt(t/100*e)}function parseURI(e){var t=String(e).replace(/^\s+|\s+$/g,"").match(/^([^:\/?#]+:)?(\/\/(?:[^:@]*(?::[^:@]*)?@)?(([^:\/?#]*)(?::(\d*))?))?([^?#]*)(\?[^#]*)?(#[\s\S]*)?/);return t?{href:t[0]||"",protocol:t[1]||"",authority:t[2]||"",host:t[3]||"",hostname:t[4]||"",port:t[5]||"",pathname:t[6]||"",search:t[7]||"",hash:t[8]||""}:null}function absolutizeURI(e,t){var o,i;return t=parseURI(t||""),e=parseURI(e||""),t&&e?(t.protocol||e.protocol)+(t.protocol||t.authority?t.authority:e.authority)+(o=t.protocol||t.authority||"/"===t.pathname.charAt(0)?t.pathname:t.pathname?(e.authority&&!e.pathname?"/":"")+e.pathname.slice(0,e.pathname.lastIndexOf("/")+1)+t.pathname:e.pathname,i=[],o.replace(/^(\.\.?(\/|$))+/,"").replace(/\/(\.(\/|$))+/g,"/").replace(/\/\.\.$/,"/../").replace(/\/?[^\/]*/g,function(e){"/.."===e?i.pop():i.push(e)}),i.join("").replace(/^\//,"/"===o.charAt(0)?"/":""))+(t.protocol||t.authority||t.pathname?t.search:t.search||e.search)+t.hash:null}function version_compare(e,t,o){this.php_js=this.php_js||{},this.php_js.ENV=this.php_js.ENV||{};var i,n=0,a=0,r={dev:-6,alpha:-5,a:-5,beta:-4,b:-4,RC:-3,rc:-3,"#":-2,p:1,pl:1},s=function(e){return(e=(e=(""+e).replace(/[_\-+]/g,".")).replace(/([^.\d]+)/g,".$1.").replace(/\.{2,}/g,".")).length?e.split("."):[-8]},l=function(e){return e?isNaN(e)?r[e]||-7:parseInt(e,10):0};for(e=s(e),t=s(t),i=max(e.length,t.length),n=0;n<i;n++)if(e[n]!=t[n]){if(e[n]=l(e[n]),t[n]=l(t[n]),e[n]<t[n]){a=-1;break}if(e[n]>t[n]){a=1;break}}if(!o)return a;switch(o){case">":case"gt":return a>0;case">=":case"ge":return a>=0;case"<=":case"le":return a<=0;case"==":case"=":case"eq":return 0===a;case"<>":case"!=":case"ne":return 0!==a;case"":case"<":case"lt":return a<0;default:return null}}function getScrollXY(){var e=0,t=0;return"number"==typeof window.pageYOffset?(t=window.pageYOffset,e=window.pageXOffset):document.body&&(document.body.scrollLeft||document.body.scrollTop)?(t=document.body.scrollTop,e=document.body.scrollLeft):document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)&&(t=document.documentElement.scrollTop,e=document.documentElement.scrollLeft),{x:e,y:t}}iLightBox.prototype={showLoader:function(){var e=this;e.vars.loadRequests+=1,"horizontal"==e.options.path.toLowerCase()?e.vars.loader.addClass("ilightbox-show").stop().animate({top:"-30px"},e.options.show.speed,"easeOutCirc"):e.vars.loader.addClass("ilightbox-show").stop().animate({left:"-30px"},e.options.show.speed,"easeOutCirc")},hideLoader:function(){var e=this;e.vars.loadRequests-=1,e.vars.loadRequests=e.vars.loadRequests<0?0:e.vars.loadRequests,"horizontal"==e.options.path.toLowerCase()?e.vars.loadRequests<=0&&e.vars.loader.removeClass("ilightbox-show").stop().animate({top:"-192px"},e.options.show.speed,"easeInCirc"):e.vars.loadRequests<=0&&e.vars.loader.removeClass("ilightbox-show").stop().animate({left:"-192px"},e.options.show.speed,"easeInCirc")},createUI:function(){var e=this;e.ui={currentElement:e.vars.holder,nextElement:e.vars.nextPhoto,prevElement:e.vars.prevPhoto,currentItem:e.vars.current,nextItem:e.vars.next,prevItem:e.vars.prev,hide:function(){e.closeAction()},refresh:function(){arguments.length>0?e.repositionPhoto(!0):e.repositionPhoto()},fullscreen:function(){e.fullScreenAction()}}},attachItems:function(){var iL=this,itemsObject=new Array,items=new Array;$(iL.selector,iL.context).each(function(){var t=$(this),URL=t.attr(iL.options.attr)||null,options=t.data("options")&&eval("({"+t.data("options")+"})")||{},caption=t.data("caption"),title=t.data("title"),type=t.data("type")||getTypeByExtension(URL,this);items.push({URL:URL,caption:caption,title:title,type:type,options:options}),iL.instant||itemsObject.push(t)}),iL.items=items,iL.itemsObject=itemsObject,iL.vars&&(iL.vars.total=items.length)},normalizeItems:function(){var e=this,t=new Array;$.each(e.items,function(o,i){"string"==typeof i&&(i={url:i});var n=i.url||i.URL||null,a=i.options||{},r=i.caption||null,s=i.title||null,l=i.type?i.type.toLowerCase():getTypeByExtension(n),c="object"!=typeof n?getExtension(n):"";if(a.thumbnail=a.thumbnail||("image"==l?n:null),a.videoType=a.videoType||null,a.skin=a.skin||e.options.skin,a.width=a.width||null,a.height=a.height||null,a.mousewheel=void 0===a.mousewheel||a.mousewheel,a.swipe=void 0===a.swipe||a.swipe,a.social=void 0!==a.social?a.social:e.options.social.buttons&&$.extend({},{},e.options.social.buttons),"video"==l&&(a.html5video=void 0!==a.html5video?a.html5video:{},a.html5video.webm=a.html5video.webm||a.html5video.WEBM||null,a.html5video.controls=void 0!==a.html5video.controls?a.html5video.controls:"controls",a.html5video.preload=a.html5video.preload||"metadata",a.html5video.autoplay=void 0!==a.html5video.autoplay&&a.html5video.autoplay),"iframe"===l)if(-1!==n.indexOf("youtube.com")){var u=n.match(/^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#\&\?]*).*/);u&&11===u[7].length&&(a.thumbnail="//img.youtube.com/vi/"+u[7]+"/mqdefault.jpg")}else if(-1!==n.indexOf("vimeo.com")&&-1===n.indexOf("preview=0")){var h=n.split(/[?#]/)[0];h.replace(/[^\d]/g,"");$.getJSON("https://vimeo.com/api/oembed.json?url="+h,{format:"json"},function(e){a.thumbnail=e.thumbnail_url})}a.width&&a.height||"video"!==l&&"iframe"!==l&&"flash"!==l||(a.width=parseInt(fusionLightboxVideoVars.lightbox_video_width),a.height=parseInt(fusionLightboxVideoVars.lightbox_video_height)),delete i.url,i.index=o,i.URL=n,i.caption=r,i.title=s,i.type=l,i.options=a,i.ext=c,t.push(i)}),e.items=t},instantCall:function(){var e=this,t=e.vars.start;e.vars.current=t,e.vars.next=e.items[t+1]?t+1:null,e.vars.prev=e.items[t-1]?t-1:null,e.addContents(),e.patchEvents()},addContents:function(){var e=this,t=e.vars,o=e.options,i=getViewport(),n=o.path.toLowerCase(),a=t.total>0&&e.items.filter(function(e,t,i){return-1===["image","flash","video"].indexOf(e.type)&&void 0===e.recognized&&(o.smartRecognition||e.options.smartRecognition)}),r=a.length>0;o.mobileOptimizer&&!o.innerToolbar&&(t.isMobile=i.width<=t.mobileMaxWidth),t.overlay.addClass(o.skin).hide().css("opacity",o.overlay.opacity),o.linkId&&t.overlay[0].setAttribute("linkid",o.linkId),o.controls.toolbar&&(t.toolbar.addClass(o.skin).append(t.closeButton),o.controls.fullscreen&&t.toolbar.append(t.fullScreenButton),o.controls.slideshow&&t.toolbar.append(t.innerPlayButton),t.total>1&&t.toolbar.append(t.innerPrevButton).append(t.innerNextButton)),t.BODY.addClass("ilightbox-noscroll").append(t.overlay).append(t.loader).append(t.holder).append(t.nextPhoto).append(t.prevPhoto),o.innerToolbar||t.BODY.append(t.toolbar),o.controls.arrows&&t.BODY.append(t.nextButton).append(t.prevButton),o.controls.thumbnail&&t.total>1&&(t.BODY.append(t.thumbnails),t.thumbnails.addClass(o.skin).addClass("ilightbox-"+n),$("div.ilightbox-thumbnails-grid",t.thumbnails).empty(),t.thumbs=!0);var s="horizontal"==o.path.toLowerCase()?{left:parseInt(i.width/2-t.loader.outerWidth()/2)}:{top:parseInt(i.height/2-t.loader.outerHeight()/2)};t.loader.addClass(o.skin).css(s),t.nextButton.add(t.prevButton).addClass(o.skin),"horizontal"==n&&t.loader.add(t.nextButton).add(t.prevButton).addClass("horizontal"),t.BODY[t.isMobile?"addClass":"removeClass"]("isMobile"),o.infinite||(t.prevButton.add(t.prevButton).add(t.innerPrevButton).add(t.innerNextButton).removeClass("disabled"),0==t.current&&t.prevButton.add(t.innerPrevButton).addClass("disabled"),t.current>=t.total-1&&t.nextButton.add(t.innerNextButton).addClass("disabled")),o.show.effect?(t.overlay.stop().fadeIn(o.show.speed),t.toolbar.stop().fadeIn(o.show.speed)):(t.overlay.show(),t.toolbar.show());var l=a.length;r?(e.showLoader(),$.each(a,function(i,n){e.ogpRecognition(this,function(i){var n=-1,a=(e.items.filter(function(e,t,o){return e.URL==i.url&&(n=t),e.URL==i.url}),e.items[n]);i&&$.extend(!0,a,{URL:i.source,type:i.type,recognized:!0,options:{html5video:i.html5video,width:"image"==i.type?0:i.width||a.width,height:"image"==i.type?0:i.height||a.height,thumbnail:a.options.thumbnail||i.thumbnail}}),0==--l&&(e.hideLoader(),t.dontGenerateThumbs=!1,e.generateThumbnails(),o.show.effect?setTimeout(function(){e.generateBoxes()},o.show.speed):e.generateBoxes())})})):o.show.effect?setTimeout(function(){e.generateBoxes()},o.show.speed):e.generateBoxes(),e.createUI(),window.iLightBox={close:function(){e.closeAction()},fullscreen:function(){e.fullScreenAction()},moveNext:function(){e.moveTo("next")},movePrev:function(){e.moveTo("prev")},goTo:function(t){e.goTo(t)},refresh:function(){e.refresh()},reposition:function(){arguments.length>0?e.repositionPhoto(!0):e.repositionPhoto()},setOption:function(t){e.setOption(t)},destroy:function(){e.closeAction(),e.dispatchItemsEvents()}},o.linkId&&(t.hashLock=!0,window.location.hash=o.linkId+"/"+t.current,setTimeout(function(){t.hashLock=!1},55)),o.slideshow.startPaused||(e.resume(),t.innerPlayButton.removeClass("ilightbox-play").addClass("ilightbox-pause")),"function"==typeof e.options.callback.onOpen&&e.options.callback.onOpen.call(e)},loadContent:function(e,t,o){var i,n,a=this;switch(a.createUI(),e.speed=o||a.options.effects.loadedFadeSpeed,"current"==t&&(e.options.mousewheel?a.vars.lockWheel=!1:a.vars.lockWheel=!0,e.options.swipe?a.vars.lockSwipe=!1:a.vars.lockSwipe=!0),t){case"current":i=a.vars.holder,n=a.vars.current;break;case"next":i=a.vars.nextPhoto,n=a.vars.next;break;case"prev":i=a.vars.prevPhoto,n=a.vars.prev}if(i.removeAttr("style class").addClass("ilightbox-holder"+(supportTouch?" supportTouch":"")).addClass(e.options.skin),$("div.ilightbox-inner-toolbar",i).remove(),e.title||a.options.innerToolbar){var r=a.vars.innerToolbar.clone();if(e.title&&a.options.show.title){var s=a.vars.title.clone();s.empty().html(e.title),r.append(s)}a.options.innerToolbar&&r.append(a.vars.total>1?a.vars.toolbar.clone():a.vars.toolbar),i.prepend(r)}a.loadSwitcher(e,i,n,t)},loadSwitcher:function(e,t,o,i){var n=this,a=n.options,r={element:t,position:o};switch(e.type){case"image":"function"==typeof a.callback.onBeforeLoad&&a.callback.onBeforeLoad.call(n,n.ui,o),"function"==typeof e.options.onBeforeLoad&&e.options.onBeforeLoad.call(n,r),n.loadImage(e.URL,function(s){"function"==typeof a.callback.onAfterLoad&&a.callback.onAfterLoad.call(n,n.ui,o),"function"==typeof e.options.onAfterLoad&&e.options.onAfterLoad.call(n,r);var l=s?s.width:400,c=s?s.height:200;t.data({naturalWidth:l,naturalHeight:c}),$("div.ilightbox-container",t).empty().append(s?'<img src="'+e.URL+'" class="ilightbox-image" />':'<span class="ilightbox-alert">'+a.errors.loadImage+"</span>"),"function"==typeof a.callback.onRender&&a.callback.onRender.call(n,n.ui,o),"function"==typeof e.options.onRender&&e.options.onRender.call(n,r),n.configureHolder(e,i,t)});break;case"video":t.data({naturalWidth:e.options.width,naturalHeight:e.options.height}),n.addContent(t,e),"function"==typeof a.callback.onRender&&a.callback.onRender.call(n,n.ui,o),"function"==typeof e.options.onRender&&e.options.onRender.call(n,r),n.configureHolder(e,i,t);break;case"iframe":for(var s=e.URL.substring(e.URL.indexOf("?")+1).split("&"),l={},c=0;c<s.length;++c){var u=s[c].split("=");2==u.length&&("w"==u[0]&&(u[0]="width"),"h"==u[0]&&(u[0]="height"),l[u[0]]=decodeURIComponent(u[1].replace(/\+/g," ")))}n.showLoader(),t.data({naturalWidth:e.options.width,naturalHeight:e.options.height});var h=n.addContent(t,e);"function"==typeof a.callback.onRender&&a.callback.onRender.call(n,n.ui,o),"function"==typeof e.options.onRender&&e.options.onRender.call(n,r),"function"==typeof a.callback.onBeforeLoad&&a.callback.onBeforeLoad.call(n,n.ui,o),"function"==typeof e.options.onBeforeLoad&&e.options.onBeforeLoad.call(n,r),n.configureHolder(e,i,t);var d=!1;h.on("load",function(){"function"==typeof a.callback.onAfterLoad&&a.callback.onAfterLoad.call(n,n.ui,o),"function"==typeof e.options.onAfterLoad&&e.options.onAfterLoad.call(n,r),d=!0,n.hideLoader(),h.off("load")}),setTimeout(function(){var e=h[0].getBoundingClientRect();0===e.width&&0===e.height&&!d&&n.hideLoader()},1500);break;case"inline":h=$(e.URL);var p=n.addContent(t,e),f=findImageInElement(t);t.data({naturalWidth:n.items[o].options.width||h.outerWidth(),naturalHeight:n.items[o].options.height||h.outerHeight()}),p.children().eq(0).show(),"function"==typeof a.callback.onRender&&a.callback.onRender.call(n,n.ui,o),"function"==typeof e.options.onRender&&e.options.onRender.call(n,r),"function"==typeof a.callback.onBeforeLoad&&a.callback.onBeforeLoad.call(n,n.ui,o),"function"==typeof e.options.onBeforeLoad&&e.options.onBeforeLoad.call(n,r),n.loadImage(f,function(){"function"==typeof a.callback.onAfterLoad&&a.callback.onAfterLoad.call(n,n.ui,o),"function"==typeof e.options.onAfterLoad&&e.options.onAfterLoad.call(n,r),n.configureHolder(e,i,t)});break;case"flash":h=n.addContent(t,e);t.data({naturalWidth:n.items[o].options.width||h.outerWidth(),naturalHeight:n.items[o].options.height||h.outerHeight()}),"function"==typeof a.callback.onRender&&a.callback.onRender.call(n,n.ui,o),"function"==typeof e.options.onRender&&e.options.onRender.call(n,r),n.configureHolder(e,i,t);break;case"ajax":var g=e.options.ajax||{};"function"==typeof a.callback.onBeforeLoad&&a.callback.onBeforeLoad.call(n,n.ui,o),"function"==typeof e.options.onBeforeLoad&&e.options.onBeforeLoad.call(n,r),n.showLoader(),$.ajax({url:e.URL||a.ajaxSetup.url,data:g.data||null,dataType:g.dataType||"html",type:g.type||a.ajaxSetup.type,cache:g.cache||a.ajaxSetup.cache,crossDomain:g.crossDomain||a.ajaxSetup.crossDomain,global:g.global||a.ajaxSetup.global,ifModified:g.ifModified||a.ajaxSetup.ifModified,username:g.username||a.ajaxSetup.username,password:g.password||a.ajaxSetup.password,beforeSend:g.beforeSend||a.ajaxSetup.beforeSend,complete:g.complete||a.ajaxSetup.complete}).done(function(s,l,c){n.hideLoader();var u=$(s),h=$("div.ilightbox-container",t),d=n.items[o].options.width||parseInt(u[0].getAttribute("width")),p=n.items[o].options.height||parseInt(u[0].getAttribute("height")),f=u[0].getAttribute("width")&&u[0].getAttribute("height")?{overflow:"hidden"}:{};h.empty().append($('<div class="ilightbox-wrapper"></div>').css(f).html(u)),t.show().data({naturalWidth:d||h.outerWidth(),naturalHeight:p||h.outerHeight()}).hide(),"function"==typeof a.callback.onRender&&a.callback.onRender.call(n,n.ui,o),"function"==typeof e.options.onRender&&e.options.onRender.call(n,r);var m=findImageInElement(t);n.loadImage(m,function(){"function"==typeof a.callback.onAfterLoad&&a.callback.onAfterLoad.call(n,n.ui,o),"function"==typeof e.options.onAfterLoad&&e.options.onAfterLoad.call(n,r),n.configureHolder(e,i,t)}),a.ajaxSetup.success(s,l,c),"function"==typeof g.success&&g.success(s,l,c)}).fail(function(s,l,c){"function"==typeof a.callback.onAfterLoad&&a.callback.onAfterLoad.call(n,n.ui,o),"function"==typeof e.options.onAfterLoad&&e.options.onAfterLoad.call(n,r),n.hideLoader(),$("div.ilightbox-container",t).empty().append('<span class="ilightbox-alert">'+a.errors.loadContents+"</span>"),n.configureHolder(e,i,t),a.ajaxSetup.error(s,l,c),"function"==typeof g.error&&g.error(s,l,c)});break;case"html":var m=e.URL;if(container=$("div.ilightbox-container",t),m[0].nodeName)h=m.clone();else{var v=$(m);h=v.selector?$("<div>"+v+"</div>"):v}var b=n.items[o].options.width||parseInt(h.attr("width")),x=n.items[o].options.height||parseInt(h.attr("height"));n.addContent(t,e),h.appendTo(document.documentElement).hide(),"function"==typeof a.callback.onRender&&a.callback.onRender.call(n,n.ui,o),"function"==typeof e.options.onRender&&e.options.onRender.call(n,r);f=findImageInElement(t);"function"==typeof a.callback.onBeforeLoad&&a.callback.onBeforeLoad.call(n,n.ui,o),"function"==typeof e.options.onBeforeLoad&&e.options.onBeforeLoad.call(n,r),n.loadImage(f,function(){"function"==typeof a.callback.onAfterLoad&&a.callback.onAfterLoad.call(n,n.ui,o),"function"==typeof e.options.onAfterLoad&&e.options.onAfterLoad.call(n,r),t.show().data({naturalWidth:b||container.outerWidth(),naturalHeight:x||container.outerHeight()}).hide(),h.remove(),n.configureHolder(e,i,t)})}},configureHolder:function(e,t,o){var i=this,n=i.vars,a=i.options;if("current"!=t&&("next"==t?o.addClass("ilightbox-next"):o.addClass("ilightbox-prev")),"current"==t)var r=n.current;else if("next"==t){var s=a.styles.nextOpacity;r=n.next}else s=a.styles.prevOpacity,r=n.prev;var l={element:o,position:r};i.items[r].options.width=i.items[r].options.width||0,i.items[r].options.height=i.items[r].options.height||0,"current"==t?a.show.effect?o.css(transform,gpuAcceleration).fadeIn(e.speed,function(){if(o.css(transform,""),e.caption){i.setCaption(e,o);var t=$("div.ilightbox-caption",o),n=parseInt(t.outerHeight()/o.outerHeight()*100);a.caption.start&n<=50&&t.fadeIn(a.effects.fadeSpeed)}var s=e.options.social;s&&(i.setSocial(s,e.URL,o),a.social.start&&$("div.ilightbox-social",o).fadeIn(a.effects.fadeSpeed)),i.generateThumbnails(),"function"==typeof a.callback.onShow&&a.callback.onShow.call(i,i.ui,r),"function"==typeof e.options.onShow&&e.options.onShow.call(i,l)}):(o.show(),i.generateThumbnails(),"function"==typeof a.callback.onShow&&a.callback.onShow.call(i,i.ui,r),"function"==typeof e.options.onShow&&e.options.onShow.call(i,l)):a.show.effect?o.fadeTo(e.speed,s,function(){"next"==t?n.nextLock=!1:n.prevLock=!1,i.generateThumbnails(),"function"==typeof a.callback.onShow&&a.callback.onShow.call(i,i.ui,r),"function"==typeof e.options.onShow&&e.options.onShow.call(i,l)}):(o.css({opacity:s}).show(),"next"==t?n.nextLock=!1:n.prevLock=!1,i.generateThumbnails(),"function"==typeof a.callback.onShow&&a.callback.onShow.call(i,i.ui,r),"function"==typeof e.options.onShow&&e.options.onShow.call(i,l)),setTimeout(function(){i.repositionPhoto()},0)},generateBoxes:function(){var e=this,t=e.vars,o=e.options;o.infinite&&t.total>=3?(t.current==t.total-1&&(t.next=0),0==t.current&&(t.prev=t.total-1)):o.infinite=!1,e.loadContent(e.items[t.current],"current",o.show.speed),e.items[t.next]&&e.loadContent(e.items[t.next],"next",o.show.speed),e.items[t.prev]&&e.loadContent(e.items[t.prev],"prev",o.show.speed)},generateThumbnails:function(){var e=this,t=e.vars,o=e.options,i=null;if(t.thumbs&&!e.vars.dontGenerateThumbs){var n=t.thumbnails,a=$("div.ilightbox-thumbnails-container",n),r=$("div.ilightbox-thumbnails-grid",a),s=0;r.removeAttr("style").empty(),$.each(e.items,function(l,c){var u=t.current==l?"ilightbox-active":"",h=t.current==l?o.thumbnails.activeOpacity:o.thumbnails.normalOpacity,d=c.options.thumbnail,p=$('<div class="ilightbox-thumbnail"></div>'),f=$('<div class="ilightbox-thumbnail-icon"></div>');p.css({opacity:0}).addClass(u),"video"!=c.type&&"flash"!=c.type||void 0!==c.options.icon?c.options.icon&&(f.addClass("ilightbox-thumbnail-"+c.options.icon),p.append(f)):(f.addClass("ilightbox-thumbnail-video"),p.append(f)),d&&e.loadImage(d,function(t){s++,t?p.data({naturalWidth:t.width,naturalHeight:t.height}).append('<img src="'+d+'" border="0" />'):p.data({naturalWidth:o.thumbnails.maxWidth,naturalHeight:o.thumbnails.maxHeight}),clearTimeout(i),i=setTimeout(function(){e.positionThumbnails(n,a,r)},20),setTimeout(function(){p.fadeTo(o.effects.loadedFadeSpeed,h)},20*s)}),r.append(p)}),e.vars.dontGenerateThumbs=!0}},positionThumbnails:function(e,t,o){var i=this,n=i.vars,a=i.options,r=getViewport(),s=a.path.toLowerCase();e||(e=n.thumbnails),t||(t=$("div.ilightbox-thumbnails-container",e)),o||(o=$("div.ilightbox-thumbnails-grid",t));var l=$(".ilightbox-thumbnail",o),c="horizontal"==s?r.width-a.styles.pageOffsetX:l.eq(0).outerWidth()-a.styles.pageOffsetX,u="horizontal"==s?l.eq(0).outerHeight()-a.styles.pageOffsetY:r.height-a.styles.pageOffsetY,h="horizontal"==s?0:c,d="horizontal"==s?u:0,p=$(".ilightbox-active",o),f={};arguments.length<3&&(l.css({opacity:a.thumbnails.normalOpacity}),p.css({opacity:a.thumbnails.activeOpacity})),l.each(function(e){var t=$(this),o=t.data(),n="horizontal"==s?0:a.thumbnails.maxWidth;height="horizontal"==s?a.thumbnails.maxHeight:0,dims=i.getNewDimenstions(n,height,o.naturalWidth,o.naturalHeight,!0),t.css({width:dims.width,height:dims.height}),"horizontal"==s&&t.css({float:"left"}),"horizontal"==s?h+=t.outerWidth(!0):d+=t.outerHeight()}),f={width:h,height:d},o.css(f),f={};var g=o.offset(),m=p.length?p.offset():{top:parseInt(u/2),left:parseInt(c/2)};g.top=g.top-$doc.scrollTop(),g.left=g.left-$doc.scrollLeft(),m.top=m.top-g.top-$doc.scrollTop(),m.left=m.left-g.left-$doc.scrollLeft(),"horizontal"==s?(f.top=0,f.left=parseInt(c/2-m.left-p.outerWidth()/2)):(f.top=parseInt(u/2-m.top-p.outerHeight()/2),f.left=0),arguments.length<3?o.stop().animate(f,a.effects.repositionSpeed,"easeOutCirc"):o.css(f)},loadImage:function(e,t){Array.isArray(e)||(e=[e]);var o=this,i=e.length;i>0?(o.showLoader(),$.each(e,function(n,a){var r=new Image;r.onload=function(){0==(i-=1)&&(o.hideLoader(),t(r))},r.onerror=r.onabort=function(){0==(i-=1)&&(o.hideLoader(),t(!1))},r.src=e[n]})):t(!1)},patchItemsEvents:function(){var e=this,t=e.vars,o=supportTouch?"click.iL itap.iL":"click.iL",i=supportTouch?"click.iL itap.iL":"itap.iL";if(e.context&&e.selector){var n=$(e.selector,e.context);$(e.context).on(o,e.selector,function(){var o=$(this),i=n.index(o);return t.current=i,t.next=e.items[i+1]?i+1:null,t.prev=e.items[i-1]?i-1:null,e.addContents(),e.patchEvents(),!1}).on(i,e.selector,function(){return!1})}else $.each(e.itemsObject,function(n,a){a.on(o,function(){return t.current=n,t.next=e.items[n+1]?n+1:null,t.prev=e.items[n-1]?n-1:null,e.addContents(),e.patchEvents(),!1}).on(i,function(){return!1})})},dispatchItemsEvents:function(){var e=this;e.vars,e.options;e.context&&e.selector?$(e.context).off(".iL",e.selector):$.each(e.itemsObject,function(e,t){t.off(".iL")})},refresh:function(){this.dispatchItemsEvents(),this.attachItems(),this.normalizeItems(),this.patchItemsEvents()},patchEvents:function(){var e=this,t=e.vars,o=e.options,i=o.path.toLowerCase(),n=$(".ilightbox-holder"),a=fullScreenApi.fullScreenEventName+".iLightBox",r=verticalDistanceThreshold=100,s=[t.nextButton[0],t.prevButton[0],t.nextButton[0].firstChild,t.prevButton[0].firstChild];$win.on("resize.iLightBox",function(){var i=getViewport();o.mobileOptimizer&&!o.innerToolbar&&(t.isMobile=i.width<=t.mobileMaxWidth),t.BODY[t.isMobile?"addClass":"removeClass"]("isMobile"),t.nextLock||t.prevLock||e.repositionPhoto(null),supportTouch&&(clearTimeout(t.setTime),t.setTime=setTimeout(function(){var e=getScrollXY().y;window.scrollTo(0,e-30),window.scrollTo(0,e+30),window.scrollTo(0,e)},2e3)),t.thumbs&&e.positionThumbnails()}).on("keydown.iLightBox",function(i){if(o.controls.keyboard)switch(i.keyCode){case 13:i.shiftKey&&o.keyboard.shift_enter&&e.fullScreenAction();break;case 27:o.keyboard.esc&&e.closeAction();break;case 37:o.keyboard.left&&!t.lockKey&&e.moveTo("prev");break;case 38:o.keyboard.up&&!t.lockKey&&e.moveTo("prev");break;case 39:o.keyboard.right&&!t.lockKey&&e.moveTo("next");break;case 40:o.keyboard.down&&!t.lockKey&&e.moveTo("next")}}),fullScreenApi.supportsFullScreen&&$win.on(a,function(){e.doFullscreen()});var l=[o.caption.show+".iLightBox",o.caption.hide+".iLightBox",o.social.show+".iLightBox",o.social.hide+".iLightBox"].filter(function(e,t,o){return o.lastIndexOf(e)===t}),c="";$.each(l,function(e,t){0!=e&&(c+=" "),c+=t}),$doc.on(clickEvent,".ilightbox-overlay",function(){o.overlay.blur&&e.closeAction()}).on(clickEvent,".ilightbox-next, .ilightbox-next-button",function(){e.moveTo("next")}).on(clickEvent,".ilightbox-prev, .ilightbox-prev-button",function(){e.moveTo("prev")}).on(clickEvent,".ilightbox-thumbnail",function(){var o=$(this),i=$(".ilightbox-thumbnail",t.thumbnails).index(o);i!=t.current&&e.goTo(i)}).on(c,".ilightbox-holder:not(.ilightbox-next, .ilightbox-prev)",function(e){var i=$("div.ilightbox-caption",t.holder),n=$("div.ilightbox-social",t.holder),a=o.effects.fadeSpeed;t.nextLock||t.prevLock?(e.type!=o.caption.show||i.is(":visible")?e.type==o.caption.hide&&i.is(":visible")&&i.fadeOut(a):i.fadeIn(a),e.type!=o.social.show||n.is(":visible")?e.type==o.social.hide&&n.is(":visible")&&n.fadeOut(a):n.fadeIn(a)):(e.type!=o.caption.show||i.is(":visible")?e.type==o.caption.hide&&i.is(":visible")&&i.stop().fadeOut(a):i.stop().fadeIn(a),e.type!=o.social.show||n.is(":visible")?e.type==o.social.hide&&n.is(":visible")&&n.stop().fadeOut(a):n.stop().fadeIn(a))}).on("mouseenter.iLightBox mouseleave.iLightBox",".ilightbox-wrapper",function(e){"mouseenter"==e.type?t.lockWheel=!0:t.lockWheel=!1}).on(clickEvent,".ilightbox-toolbar a.ilightbox-close, .ilightbox-toolbar a.ilightbox-fullscreen, .ilightbox-toolbar a.ilightbox-play, .ilightbox-toolbar a.ilightbox-pause",function(){var t=$(this);t.hasClass("fusion-updated")||(t.hasClass("ilightbox-fullscreen")?e.fullScreenAction():t.hasClass("ilightbox-play")?(e.resume(),t.addClass("ilightbox-pause").removeClass("ilightbox-play")):t.hasClass("ilightbox-pause")?(e.pause(),t.addClass("ilightbox-play").removeClass("ilightbox-pause")):e.closeAction(),t.addClass("fusion-updated"),setTimeout(function(){t.removeClass("fusion-updated")},100))}).on(touchMoveEvent,".ilightbox-overlay, .ilightbox-thumbnails-container",function(e){e.preventDefault()}),o.controls.arrows&&!supportTouch&&$doc.on("mousemove.iLightBox",function(e){t.isMobile||(t.mouseID||t.hideableElements.show(),t.mouseID=clearTimeout(t.mouseID),-1===s.indexOf(e.target)&&(t.mouseID=setTimeout(function(){t.hideableElements.hide(),t.mouseID=clearTimeout(t.mouseID)},3e3)))}),o.controls.slideshow&&o.slideshow.pauseOnHover&&$doc.on("mouseenter.iLightBox mouseleave.iLightBox",".ilightbox-holder:not(.ilightbox-next, .ilightbox-prev)",function(o){"mouseenter"==o.type&&t.cycleID?e.pause():"mouseleave"==o.type&&t.isPaused&&e.resume()});var u=$(".ilightbox-overlay, .ilightbox-holder, .ilightbox-thumbnails");o.controls.mousewheel&&u.on("mousewheel.iLightBox",function(o,i){t.lockWheel||(o.preventDefault(),i<0?e.moveTo("next"):i>0&&e.moveTo("prev"))}),o.controls.swipe&&n.on(touchStartEvent,function(a){if(!(t.nextLock||t.prevLock||1==t.total||t.lockSwipe)){t.BODY.addClass("ilightbox-closedhand");var s,l=a.originalEvent.touches?a.originalEvent.touches[0]:a,c=$doc.scrollTop(),u=$doc.scrollLeft(),h=[n.eq(0).offset(),n.eq(1).offset(),n.eq(2).offset()],d=[{top:h[0].top-c,left:h[0].left-u},{top:h[1].top-c,left:h[1].left-u},{top:h[2].top-c,left:h[2].left-u}],p={time:(new Date).getTime(),coords:[l.pageX-u,l.pageY-c]};n.on(touchMoveEvent,g),$doc.one(touchStopEvent,function(a){n.off(touchMoveEvent,g),t.BODY.removeClass("ilightbox-closedhand"),p&&s&&("horizontal"==i&&s.time-p.time<1e3&&abs(p.coords[0]-s.coords[0])>r&&abs(p.coords[1]-s.coords[1])<verticalDistanceThreshold?p.coords[0]>s.coords[0]?t.current!=t.total-1||o.infinite?(t.isSwipe=!0,e.moveTo("next")):m():0!=t.current||o.infinite?(t.isSwipe=!0,e.moveTo("prev")):m():"vertical"==i&&s.time-p.time<1e3&&abs(p.coords[1]-s.coords[1])>r&&abs(p.coords[0]-s.coords[0])<verticalDistanceThreshold?p.coords[1]>s.coords[1]?t.current!=t.total-1||o.infinite?(t.isSwipe=!0,e.moveTo("next")):m():0!=t.current||o.infinite?(t.isSwipe=!0,e.moveTo("prev")):m():m()),p=s=undefined})}function f(e){var t=$(this),o=d[e],n=[p.coords[0]-s.coords[0],p.coords[1]-s.coords[1]];t[0].style["horizontal"==i?"left":"top"]=("horizontal"==i?o.left-n[0]:o.top-n[1])+"px"}function g(e){if(p){var t=e.originalEvent.touches?e.originalEvent.touches[0]:e;s={time:(new Date).getTime(),coords:[t.pageX-u,t.pageY-c]},n.each(f),e.preventDefault()}}function m(){n.each(function(){var e=$(this),t=e.data("offset")||{top:e.offset().top-c,left:e.offset().left-u},o=t.top,i=t.left;e.css(transform,gpuAcceleration).stop().animate({top:o,left:i},500,"easeOutCirc",function(){e.css(transform,"")})})}})},goTo:function(e){var t=this,o=t.vars,i=t.options,n=e-o.current;if(i.infinite&&(e==o.total-1&&0==o.current&&(n=-1),o.current==o.total-1&&0==e&&(n=1)),1==n)t.moveTo("next");else if(-1==n)t.moveTo("prev");else{if(o.nextLock||o.prevLock)return!1;"function"==typeof i.callback.onBeforeChange&&i.callback.onBeforeChange.call(t,t.ui),i.linkId&&(o.hashLock=!0,window.location.hash=i.linkId+"/"+e),t.items[e]&&(t.items[e].options.mousewheel?t.vars.lockWheel=!1:o.lockWheel=!0,t.items[e].options.swipe?o.lockSwipe=!1:o.lockSwipe=!0),$.each([o.holder,o.nextPhoto,o.prevPhoto],function(e,t){t.css(transform,gpuAcceleration).fadeOut(i.effects.loadedFadeSpeed)}),o.current=e,o.next=e+1,o.prev=e-1,t.createUI(),setTimeout(function(){t.generateBoxes()},i.effects.loadedFadeSpeed+50),$(".ilightbox-thumbnail",o.thumbnails).removeClass("ilightbox-active").eq(e).addClass("ilightbox-active"),t.positionThumbnails(),i.linkId&&setTimeout(function(){o.hashLock=!1},55),i.infinite||(o.nextButton.add(o.prevButton).add(o.innerPrevButton).add(o.innerNextButton).removeClass("disabled"),0==o.current&&o.prevButton.add(o.innerPrevButton).addClass("disabled"),o.current>=o.total-1&&o.nextButton.add(o.innerNextButton).addClass("disabled")),t.resetCycle(),"function"==typeof i.callback.onAfterChange&&i.callback.onAfterChange.call(t,t.ui)}},moveTo:function(e){var t=this,o=t.vars,i=t.options,n=i.path.toLowerCase(),a=getViewport(),r=i.effects.switchSpeed,s=t.vars.holder,l=s.find("iframe").length?s.find("iframe").attr("src"):"";if(l&&-1!==l.indexOf("vimeo.com")&&s.find("iframe").attr("src",l),o.nextLock||o.prevLock)return!1;var c="next"==e?o.next:o.prev;if(i.linkId&&c&&(o.hashLock=!0,window.location.hash=i.linkId+"/"+c),"next"==e){if(!t.items[c])return!1;var u=o.nextPhoto,h=o.holder,d=o.prevPhoto,p="ilightbox-prev",f="ilightbox-next"}else if("prev"==e){if(!t.items[c])return!1;u=o.prevPhoto,h=o.holder,d=o.nextPhoto,p="ilightbox-next",f="ilightbox-prev"}"function"==typeof i.callback.onBeforeChange&&i.callback.onBeforeChange.call(t,t.ui),"next"==e?o.nextLock=!0:o.prevLock=!0;var g=$("div.ilightbox-caption",h),m=$("div.ilightbox-social",h);if(g.length&&g.stop().fadeOut(r,function(){$(this).remove()}),m.length&&m.stop().fadeOut(r,function(){$(this).remove()}),t.items[c].caption){t.setCaption(t.items[c],u);var v=$("div.ilightbox-caption",u),b=parseInt(v.outerHeight()/u.outerHeight()*100);i.caption.start&&b<=50&&v.fadeIn(r)}var x=t.items[c].options.social;x&&(t.setSocial(x,t.items[c].URL,u),i.social.start&&$("div.ilightbox-social",u).fadeIn(i.effects.fadeSpeed)),$.each([u,h,d],function(e,t){t.removeClass("ilightbox-next ilightbox-prev")});var w=u.data("offset"),y=a.width-i.styles.pageOffsetX,k=a.height-i.styles.pageOffsetY,S=w.newDims.width,L=w.newDims.height,T=w.thumbsOffset,A=w.diff,I=parseInt(k/2-L/2-A.H-T.H/2),C=parseInt(y/2-S/2-A.W-T.W/2);u.css(transform,gpuAcceleration).animate({top:I,left:C,opacity:1},r,o.isSwipe?"easeOutCirc":"easeInOutCirc",function(){u.css(transform,"")}),$("div.ilightbox-container",u).animate({width:S,height:L},r,o.isSwipe?"easeOutCirc":"easeInOutCirc");var O=h.data("offset"),B=O.object;A=O.diff,S=O.newDims.width,L=O.newDims.height,S=parseInt(S*i.styles["next"==e?"prevScale":"nextScale"]),L=parseInt(L*i.styles["next"==e?"prevScale":"nextScale"]),I="horizontal"==n?parseInt(k/2-B.offsetY-L/2-A.H-T.H/2):parseInt(k-B.offsetX-A.H-T.H/2),"prev"==e?C="horizontal"==n?parseInt(y-B.offsetX-A.W-T.W/2):parseInt(y/2-S/2-A.W-B.offsetY-T.W/2):(I="horizontal"==n?I:parseInt(B.offsetX-A.H-L-T.H/2),C="horizontal"==n?parseInt(B.offsetX-A.W-S-T.W/2):parseInt(y/2-B.offsetY-S/2-A.W-T.W/2)),$("div.ilightbox-container",h).animate({width:S,height:L},r,o.isSwipe?"easeOutCirc":"easeInOutCirc"),h.addClass(p).css(transform,gpuAcceleration).animate({top:I,left:C,opacity:i.styles.prevOpacity},r,o.isSwipe?"easeOutCirc":"easeInOutCirc",function(){h.css(transform,""),$(".ilightbox-thumbnail",o.thumbnails).removeClass("ilightbox-active").eq(c).addClass("ilightbox-active"),t.positionThumbnails(),t.items[c]&&(t.items[c].options.mousewheel?o.lockWheel=!1:o.lockWheel=!0,t.items[c].options.swipe?o.lockSwipe=!1:o.lockSwipe=!0),o.isSwipe=!1,"next"==e?(o.nextPhoto=d,o.prevPhoto=h,o.holder=u,o.nextPhoto.hide(),o.next=o.next+1,o.prev=o.current,o.current=o.current+1,i.infinite&&(o.current>o.total-1&&(o.current=0),o.current==o.total-1&&(o.next=0),0==o.current&&(o.prev=o.total-1)),t.createUI(),t.items[o.next]?t.loadContent(t.items[o.next],"next"):o.nextLock=!1):(o.prevPhoto=d,o.nextPhoto=h,o.holder=u,o.prevPhoto.hide(),o.next=o.current,o.current=o.prev,o.prev=o.current-1,i.infinite&&(o.current==o.total-1&&(o.next=0),0==o.current&&(o.prev=o.total-1)),t.createUI(),t.items[o.prev]?t.loadContent(t.items[o.prev],"prev"):o.prevLock=!1),i.linkId&&setTimeout(function(){o.hashLock=!1},55),i.infinite||(o.nextButton.add(o.prevButton).add(o.innerPrevButton).add(o.innerNextButton).removeClass("disabled"),0==o.current&&o.prevButton.add(o.innerPrevButton).addClass("disabled"),o.current>=o.total-1&&o.nextButton.add(o.innerNextButton).addClass("disabled")),t.repositionPhoto(),t.resetCycle(),"function"==typeof i.callback.onAfterChange&&i.callback.onAfterChange.call(t,t.ui)}),I="horizontal"==n?getPixel(d,"top"):"next"==e?parseInt(-k/2-d.outerHeight()):parseInt(2*I),C="horizontal"==n?"next"==e?parseInt(-y/2-d.outerWidth()):parseInt(2*C):getPixel(d,"left"),d.css(transform,gpuAcceleration).animate({top:I,left:C,opacity:i.styles.nextOpacity},r,o.isSwipe?"easeOutCirc":"easeInOutCirc",function(){d.css(transform,"")}).addClass(f)},setCaption:function(e,t){var o=$('<div class="ilightbox-caption"></div>');e.caption&&(o.html(e.caption),$("div.ilightbox-container",t).append(o))},normalizeSocial:function(e,t){this.vars;var o=this.options,i=window.location.href;return $.each(e,function(n,a){if(!a)return!0;var r,s;switch(n.toLowerCase()){case"facebook":r="http://www.facebook.com/share.php?v=4&src=bm&u={URL}",s="Share on Facebook";break;case"twitter":r="http://twitter.com/home?status={URL}",s="Share on Twitter";break;case"delicious":r="http://delicious.com/post?url={URL}",s="Share on Delicious";break;case"digg":r="http://digg.com/submit?phase=2&url={URL}",s="Share on Digg";break;case"reddit":r="http://reddit.com/submit?url={URL}",s="Share on reddit"}e[n]={URL:a.URL&&absolutizeURI(i,a.URL)||o.linkId&&window.location.href||"string"!=typeof t&&i||t&&absolutizeURI(i,t)||i,source:a.source||r||a.URL&&absolutizeURI(i,a.URL)||t&&absolutizeURI(i,t),text:a.text||s||"Share on "+n,width:void 0===a.width||isNaN(a.width)?640:parseInt(a.width),height:a.height||360}}),e},setSocial:function(e,t,o){var i=$('<div class="ilightbox-social"></div>'),n="<ul>";e=this.normalizeSocial(e,t),$.each(e,function(e,t){e.toLowerCase();var o=t.source.replace(/\{URL\}/g,encodeURIComponent(t.URL).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A").replace(/%20/g,"+")),i="mail"===e?"":'onclick="javascript:window.open(this.href'+(t.width<=0||t.height<=0?"":", '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height="+t.height+",width="+t.width+",left=40,top=40'")+');return false;"';n+='<li class="'+e+'"><a class="awb-icon-'+e+'" href="'+o+'"'+i+' title="'+t.text+'" target="_blank" role="button"></a></li>'}),n+="</ul>",i.html(n),$("div.ilightbox-container",o).append(i)},fullScreenAction:function(){this.vars;fullScreenApi.supportsFullScreen?fullScreenApi.isFullScreen()?fullScreenApi.cancelFullScreen(document.documentElement):fullScreenApi.requestFullScreen(document.documentElement):this.doFullscreen()},doFullscreen:function(){var e=this,t=e.vars,o=getViewport(),i=e.options;if(i.fullAlone){var n=t.holder,a=e.items[t.current],r=o.width,s=o.height,l=[n,t.nextPhoto,t.prevPhoto,t.nextButton,t.prevButton,t.overlay,t.toolbar,t.thumbnails,t.loader],c=[t.loader,t.thumbnails];if(t.isInFullScreen)t.isInFullScreen=t.lockKey=t.lockWheel=t.lockSwipe=!1,t.overlay.css({opacity:e.options.overlay.opacity}),$.each(c,function(e,t){t.show()}),t.fullScreenButton.attr("title",i.text.enterFullscreen),n.data({naturalWidth:n.data("naturalWidthOld"),naturalHeight:n.data("naturalHeightOld"),naturalWidthOld:null,naturalHeightOld:null}),$.each(l,function(e,t){t.removeClass("ilightbox-fullscreen")}),"function"==typeof i.callback.onExitFullScreen&&i.callback.onExitFullScreen.call(e,e.ui);else{if(t.isInFullScreen=t.lockKey=t.lockWheel=t.lockSwipe=!0,t.overlay.css({opacity:1}),$.each(c,function(e,t){t.hide()}),t.fullScreenButton.attr("title",i.text.exitFullscreen),-1!=i.fullStretchTypes.indexOf(a.type))n.data({naturalWidthOld:n.data("naturalWidth"),naturalHeightOld:n.data("naturalHeight"),naturalWidth:r,naturalHeight:s});else{o=a.options.fullViewPort||i.fullViewPort||"";var u=r,h=s,d=n.data("naturalWidth"),p=n.data("naturalHeight");if("fill"==o.toLowerCase())(h=u/d*p)<s&&(u=s/p*d,h=s);else if("fit"==o.toLowerCase()){u=(f=e.getNewDimenstions(u,h,d,p,!0)).width,h=f.height}else if("stretch"==o.toLowerCase())u=u,h=h;else{var f,g=d>u||p>h;u=(f=e.getNewDimenstions(u,h,d,p,g)).width,h=f.height}n.data({naturalWidthOld:n.data("naturalWidth"),naturalHeightOld:n.data("naturalHeight"),naturalWidth:u,naturalHeight:h})}$.each(l,function(e,t){t.addClass("ilightbox-fullscreen")}),"function"==typeof i.callback.onEnterFullScreen&&i.callback.onEnterFullScreen.call(e,e.ui)}}else t.isInFullScreen?t.isInFullScreen=!1:t.isInFullScreen=!0;e.repositionPhoto(!0)},closeAction:function(){var e=this.vars,t=this.options;$win.off(".iLightBox"),$doc.off(".iLightBox"),$doc.off(clickEvent,".ilightbox-overlay"),$doc.off(clickEvent,".ilightbox-next, .ilightbox-next-button"),$doc.off(clickEvent,".ilightbox-prev, .ilightbox-prev-button"),$doc.off(clickEvent,".ilightbox-thumbnail"),$doc.off(clickEvent,".ilightbox-toolbar a.ilightbox-close, .ilightbox-toolbar a.ilightbox-fullscreen, .ilightbox-toolbar a.ilightbox-play, .ilightbox-toolbar a.ilightbox-pause"),e.isInFullScreen&&fullScreenApi.cancelFullScreen(document.documentElement),$(".ilightbox-overlay, .ilightbox-holder, .ilightbox-thumbnails").off(".iLightBox"),t.hide.effect?e.overlay.stop().fadeOut(t.hide.speed,function(){e.overlay.remove(),e.BODY.removeClass("ilightbox-noscroll").off(".iLightBox")}):(e.overlay.remove(),e.BODY.removeClass("ilightbox-noscroll").off(".iLightBox"));var o=[e.toolbar,e.holder,e.nextPhoto,e.prevPhoto,e.nextButton,e.prevButton,e.loader,e.thumbnails];$.each(o,function(e,t){t.removeAttr("style").remove()}),e.prevButton.removeClass("disabled"),e.nextButton.removeClass("disabled"),e.dontGenerateThumbs=e.isInFullScreen=!1,window.iLightBox=null,t.linkId&&(e.hashLock=!0,removeHash(),setTimeout(function(){e.hashLock=!1},55)),"function"==typeof t.callback.onHide&&t.callback.onHide.call(this,this.ui)},repositionPhoto:function(){var e=this,t=e.vars,o=e.options,i=o.path.toLowerCase(),n=getViewport(),a=n.width,r=n.height,s=t.isInFullScreen&&o.fullAlone||t.isMobile?0:"horizontal"==i?0:t.thumbnails.outerWidth(),l=t.isMobile?t.toolbar.outerHeight():t.isInFullScreen&&o.fullAlone?0:"horizontal"==i?t.thumbnails.outerHeight():0,c=t.isInFullScreen&&o.fullAlone?a:a-o.styles.pageOffsetX,u=t.isInFullScreen&&o.fullAlone?r:r-o.styles.pageOffsetY,h="horizontal"==i?parseInt(e.items[t.next]||e.items[t.prev]?2*(o.styles.nextOffsetX+o.styles.prevOffsetX):c/10<=30?30:c/10):parseInt(c/10<=30?30:c/10)+s,d="horizontal"==i?parseInt(u/10<=30?30:u/10)+l:parseInt(e.items[t.next]||e.items[t.prev]?2*(o.styles.nextOffsetX+o.styles.prevOffsetX):u/10<=30?30:u/10),p={type:"current",width:c,height:u,item:e.items[t.current],offsetW:h,offsetH:d,thumbsOffsetW:s,thumbsOffsetH:l,animate:arguments.length,holder:t.holder};e.repositionEl(p),e.items[t.next]&&(p=$.extend(p,{type:"next",item:e.items[t.next],offsetX:o.styles.nextOffsetX,offsetY:o.styles.nextOffsetY,holder:t.nextPhoto}),e.repositionEl(p)),e.items[t.prev]&&(p=$.extend(p,{type:"prev",item:e.items[t.prev],offsetX:o.styles.prevOffsetX,offsetY:o.styles.prevOffsetY,holder:t.prevPhoto}),e.repositionEl(p));var f="horizontal"==i?{left:parseInt(c/2-t.loader.outerWidth()/2)}:{top:parseInt(u/2-t.loader.outerHeight()/2)};t.loader.css(f)},repositionEl:function(e){var t=this.vars,o=this.options,i=o.path.toLowerCase(),n="current"==e.type&&t.isInFullScreen&&o.fullAlone?e.width:e.width-e.offsetW,a="current"==e.type&&t.isInFullScreen&&o.fullAlone?e.height:e.height-e.offsetH,r=e.item,s=e.item.options,l=e.holder,c=e.offsetX||0,u=e.offsetY||0,h=e.thumbsOffsetW,d=e.thumbsOffsetH;"current"==e.type?("number"==typeof s.width&&s.width&&(n=t.isInFullScreen&&o.fullAlone&&(-1!=o.fullStretchTypes.indexOf(r.type)||s.fullViewPort||o.fullViewPort)?n:s.width>n?n:s.width),"number"==typeof s.height&&s.height&&(a=t.isInFullScreen&&o.fullAlone&&(-1!=o.fullStretchTypes.indexOf(r.type)||s.fullViewPort||o.fullViewPort)?a:s.height>a?a:s.height)):("number"==typeof s.width&&s.width&&(n=s.width>n?n:s.width),"number"==typeof s.height&&s.height&&(a=s.height>a?a:s.height)),$(".ilightbox-inner-toolbar",l).length&&(a=parseInt(a-$(".ilightbox-inner-toolbar",l).outerHeight()));var p="string"==typeof s.width&&-1!=s.width.indexOf("%")?percentToValue(parseInt(s.width.replace("%","")),e.width):l.data("naturalWidth"),f="string"==typeof s.height&&-1!=s.height.indexOf("%")?percentToValue(parseInt(s.height.replace("%","")),e.height):l.data("naturalHeight"),g="string"==typeof s.width&&-1!=s.width.indexOf("%")||"string"==typeof s.height&&-1!=s.height.indexOf("%")?{width:p,height:f}:this.getNewDimenstions(n,a,p,f),m=$.extend({},g,{});"prev"==e.type||"next"==e.type?(p=parseInt(g.width*("next"==e.type?o.styles.nextScale:o.styles.prevScale)),f=parseInt(g.height*("next"==e.type?o.styles.nextScale:o.styles.prevScale))):(p=g.width,f=g.height);var v=parseInt((getPixel(l,"padding-left")+getPixel(l,"padding-right")+getPixel(l,"border-left-width")+getPixel(l,"border-right-width"))/2),b=parseInt((getPixel(l,"padding-top")+getPixel(l,"padding-bottom")+getPixel(l,"border-top-width")+getPixel(l,"border-bottom-width")+($(".ilightbox-inner-toolbar",l).outerHeight()||0))/2);switch(e.type){case"current":var x=parseInt(e.height/2-f/2-b-d/2),w=parseInt(e.width/2-p/2-v-h/2);break;case"next":x="horizontal"==i?parseInt(e.height/2-u-f/2-b-d/2):parseInt(e.height-c-b-d/2),w="horizontal"==i?parseInt(e.width-c-v-h/2):parseInt(e.width/2-p/2-v-u-h/2);break;case"prev":x="horizontal"==i?parseInt(e.height/2-u-f/2-b-d/2):parseInt(c-b-f-d/2),w="horizontal"==i?parseInt(c-v-p-h/2):parseInt(e.width/2-u-p/2-v-h/2)}l.data("offset",{top:x,left:w,newDims:m,diff:{W:v,H:b},thumbsOffset:{W:h,H:d},object:e}),e.animate>0&&o.effects.reposition?(l.css(transform,gpuAcceleration).stop().animate({top:x,left:w},o.effects.repositionSpeed,"easeOutCirc",function(){l.css(transform,"")}),$("div.ilightbox-container",l).stop().animate({width:p,height:f},o.effects.repositionSpeed,"easeOutCirc"),$("div.ilightbox-inner-toolbar",l).stop().animate({width:p},o.effects.repositionSpeed,"easeOutCirc",function(){$(this).css("overflow","visible")})):(l.css({top:x,left:w}),$("div.ilightbox-container",l).css({width:p,height:f}),$("div.ilightbox-inner-toolbar",l).css({width:p}))},resume:function(e){var t=this,o=t.vars,i=t.options;!i.slideshow.pauseTime||i.controls.slideshow&&o.total<=1||e<o.isPaused||(o.isPaused=0,o.cycleID&&(o.cycleID=clearTimeout(o.cycleID)),o.cycleID=setTimeout(function(){o.current==o.total-1?t.goTo(0):t.moveTo("next")},i.slideshow.pauseTime))},pause:function(e){var t=this.vars;this.options;e<t.isPaused||(t.isPaused=e||100,t.cycleID&&(t.cycleID=clearTimeout(t.cycleID)))},resetCycle:function(){var e=this.vars;this.options.controls.slideshow&&e.cycleID&&!e.isPaused&&this.resume()},getNewDimenstions:function(e,t,o,i,n){var a=this;return factor=e?t?min(e/o,t/i):e/o:t/i,n||(factor>a.options.maxScale?factor=a.options.maxScale:factor<a.options.minScale&&(factor=a.options.minScale)),{width:a.options.keepAspectRatio?round(o*factor):e,height:a.options.keepAspectRatio?round(i*factor):t,ratio:factor}},setOption:function(e){this.options=$.extend(!0,this.options,e||{}),this.refresh()},availPlugins:function(){var e=document.createElement("video");this.plugins={flash:!isMobile,quicktime:parseInt(PluginDetect.getVersion("QuickTime"))>=0,html5H264:!(!e.canPlayType||!e.canPlayType("video/mp4").replace(/no/,"")),html5WebM:!(!e.canPlayType||!e.canPlayType("video/webm").replace(/no/,"")),html5Vorbis:!(!e.canPlayType||!e.canPlayType("video/ogg").replace(/no/,"")),html5QuickTime:!(!e.canPlayType||!e.canPlayType("video/quicktime").replace(/no/,""))}},addContent:function(e,t){var o=this;switch(t.type){case"video":var i=!1,n=t.videoType,a=t.options.html5video;("video/mp4"==(n=!n&&t.options.videoType?t.options.videoType:n)||"mp4"==t.ext||"m4v"==t.ext||a.h264)&&o.plugins.html5H264?(t.ext="mp4",t.URL=a.h264||t.URL):a.webm&&o.plugins.html5WebM?(t.ext="webm",t.URL=a.webm||t.URL):a.ogg&&o.plugins.html5Vorbis&&(t.ext="ogv",t.URL=a.ogg||t.URL),!o.plugins.html5H264||"video/mp4"!=n&&"mp4"!=t.ext&&"m4v"!=t.ext?!o.plugins.html5WebM||"video/webm"!=n&&"webm"!=t.ext?!o.plugins.html5Vorbis||"video/ogg"!=n&&"ogv"!=t.ext?!o.plugins.html5QuickTime||"video/quicktime"!=n&&"mov"!=t.ext&&"qt"!=t.ext||(i=!0,n="video/quicktime"):(i=!0,n="video/ogg"):(i=!0,n="video/webm"):(i=!0,n="video/mp4"),i?m=$("<video />",{width:"100%",height:"100%",preload:a.preload,autoplay:a.autoplay,poster:a.poster,controls:a.controls}).append($("<source />",{src:t.URL,type:n})):o.plugins.quicktime?(m=$("<object />",{type:"video/quicktime",pluginspage:pluginspages.quicktime}).attr({data:t.URL,width:"100%",height:"100%"}).append($("<param />",{name:"src",value:t.URL})).append($("<param />",{name:"autoplay",value:"false"})).append($("<param />",{name:"loop",value:"false"})).append($("<param />",{name:"scale",value:"tofit"})),browser.msie&&(m=QT_GenerateOBJECTText(t.URL,"100%","100%","","SCALE","tofit","AUTOPLAY","false","LOOP","false"))):m=$("<span />",{class:"ilightbox-alert",html:o.options.errors.missingPlugin.replace("{pluginspage}",pluginspages.quicktime).replace("{type}","QuickTime")});break;case"flash":if(o.plugins.flash){var r="",s=0;t.options.flashvars?$.each(t.options.flashvars,function(e,t){0!=s&&(r+="&"),r+=e+"="+encodeURIComponent(t),s++}):r=null,m=$("<embed />").attr({type:"application/x-shockwave-flash",src:t.URL,width:"number"==typeof t.options.width&&t.options.width&&"1"==o.options.minScale&&"1"==o.options.maxScale?t.options.width:"100%",height:"number"==typeof t.options.height&&t.options.height&&"1"==o.options.minScale&&"1"==o.options.maxScale?t.options.height:"100%",quality:"high",bgcolor:"#000000",play:"true",loop:"true",menu:"true",wmode:"transparent",scale:"showall",allowScriptAccess:"always",allowFullScreen:"true",flashvars:r,fullscreen:"yes"})}else m=$("<span />",{class:"ilightbox-alert",html:o.options.errors.missingPlugin.replace("{pluginspage}",pluginspages.flash).replace("{type}","Adobe Flash player")});break;case"iframe":var l=t.URL.substring(t.URL.indexOf("?")+1).split("&"),c="?";if(-1!=t.URL.indexOf("vimeo.com")){var u=/http(s?):\/\/(www\.)?vimeo.com\/(\d+)/;if(p=t.URL.match(u)){c="?title=0&amp;byline=0&amp;portrait=0";for(var h=0;h<l.length;++h){1<(f=l[h].split("="))[0].length&&2===f.length&&-1===c.indexOf(f[0])&&(c+="&"+f[0]+"="+decodeURIComponent(f[1].replace(/\+/g," ")))}var d="//player.vimeo.com/video/"+p[3]+c}else d=t.URL}else{var p;u=/^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#\&\?]*).*/;if(p=t.URL.match(u)){c="?enablejsapi=1";for(h=0;h<l.length;++h){var f;1<(f=l[h].split("="))[0].length&&2===f.length&&-1===c.indexOf(f[0])&&(c+="&"+f[0]+"="+decodeURIComponent(f[1].replace(/\+/g," ")))}d="//www.youtube.com/embed/"+p[7]+c}else d=t.URL}var g="";-1!==c.indexOf("autoplay=1")&&(g+="autoplay"),m=$("<iframe />").attr({width:"number"==typeof t.options.width&&t.options.width&&"1"==o.options.minScale&&"1"==o.options.maxScale?t.options.width:"100%",height:"number"==typeof t.options.height&&t.options.height&&"1"==o.options.minScale&&"1"==o.options.maxScale?t.options.height:"100%",src:d,frameborder:0,hspace:0,vspace:0,scrolling:supportTouch?"auto":"scroll",webkitAllowFullScreen:"",mozallowfullscreen:"",allowFullScreen:"",allow:g});break;case"inline":m=$('<div class="ilightbox-wrapper"></div>').html($(t.URL).clone(!0));break;case"html":var m,v=t.URL;if(v[0].nodeName)m=$('<div class="ilightbox-wrapper"></div>').html(v);else{var b=$(t.URL),x=b.selector?$("<div>"+b+"</div>"):b;m=$('<div class="ilightbox-wrapper"></div>').html(x)}}return $("div.ilightbox-container",e).empty().html(m),"video"===m[0].tagName.toLowerCase()&&browser.webkit&&setTimeout(function(){var e=m[0].currentSrc+"?"+floor(3e4*random());m[0].currentSrc=e,m[0].src=e}),m},ogpRecognition:function(e,t){var o=this,i=e.URL;o.showLoader(),doAjax(i,function(e){if(o.hideLoader(),e){var i=new Object;if(i.length=!1,i.url=e.url,200==e.status){for(var n=e.results,a=n.type,r=n.source,s=n.url.substring(n.url.indexOf("?")+1).split("&"),l=r.src,c=0;c<s.length;++c)-1===l.indexOf(s[c])&&(l+="&"+s[c]);i.source=l,i.width=r.width&&parseInt(r.width)||0,i.height=r.height&&parseInt(r.height)||0,i.type=a,i.thumbnail=r.thumbnail||n.images[0],i.html5video=n.html5video||{},i.length=!0,"application/x-shockwave-flash"==r.type?i.type="flash":-1!=r.type.indexOf("video/")?i.type="video":-1!=r.type.indexOf("/html")?i.type="iframe":-1!=r.type.indexOf("image/")&&(i.type="image")}else if(void 0!==e.response)throw e.response;t.call(this,!!i.length&&i)}})},hashChangeHandler:function(e){var t=this,o=t.vars,i=t.options,n=parseURI(e||window.location.href).hash,a=n.split("/"),r=a[1];if(!(o.hashLock||"#"+i.linkId!=a[0]&&n.length>1))if(r){var s=a[1]||0;if(t.items[s])(l=$(".ilightbox-overlay")).length&&l.attr("linkid")==i.linkId?t.goTo(s):t.itemsObject[s].trigger(supportTouch?"click itap":"click");else(l=$(".ilightbox-overlay")).length&&t.closeAction()}else{var l;(l=$(".ilightbox-overlay")).length&&t.closeAction()}}},$.fn.iLightBox=function(){var e=arguments,t=$.isPlainObject(e[0])?e[0]:e[1],o=Array.isArray(e[0])||"string"==typeof e[0]?e[0]:e[1];t||(t={});var i=$.extend(!0,{attr:"href",path:"vertical",skin:"dark",linkId:!1,infinite:!1,startFrom:0,randomStart:!1,keepAspectRatio:!0,maxScale:1,minScale:.2,innerToolbar:!1,smartRecognition:!1,mobileOptimizer:!0,fullAlone:!0,fullViewPort:null,fullStretchTypes:"flash, video",overlay:{blur:!0,opacity:.85},controls:{arrows:!1,slideshow:!1,toolbar:!0,fullscreen:!0,thumbnail:!0,keyboard:!0,mousewheel:!0,swipe:!0},keyboard:{left:!0,right:!0,up:!0,down:!0,esc:!0,shift_enter:!0},show:{effect:!0,speed:300,title:!0},hide:{effect:!0,speed:300},caption:{start:!0,show:"mouseenter",hide:"mouseleave"},social:{start:!0,show:"mouseenter",hide:"mouseleave",buttons:!1},styles:{pageOffsetX:0,pageOffsetY:0,nextOffsetX:45,nextOffsetY:0,nextOpacity:1,nextScale:1,prevOffsetX:45,prevOffsetY:0,prevOpacity:1,prevScale:1},thumbnails:{maxWidth:120,maxHeight:80,normalOpacity:1,activeOpacity:.6},effects:{reposition:!0,repositionSpeed:200,switchSpeed:500,loadedFadeSpeed:180,fadeSpeed:200},slideshow:{pauseTime:5e3,pauseOnHover:!1,startPaused:!0},text:{close:"Press Esc to close",enterFullscreen:"Enter Fullscreen (Shift+Enter)",exitFullscreen:"Exit Fullscreen (Shift+Enter)",slideShow:"Slideshow",next:"Next",previous:"Previous"},errors:{loadImage:"An error occurred when trying to load photo.",loadContents:"An error occurred when trying to load contents.",missingPlugin:"The content your are attempting to view requires the <a href='{pluginspage}' role='button' target='_blank'>{type} plugin</a>."},ajaxSetup:{url:"",beforeSend:function(e,t){},cache:!1,complete:function(e,t){},crossDomain:!1,error:function(e,t,o){},success:function(e,t,o){},global:!0,ifModified:!1,username:null,password:null,type:"GET"},callback:{}},t),n=!(!Array.isArray(o)&&"string"!=typeof o);if(o=Array.isArray(o)?o:new Array,"string"==typeof e[0]&&(o[0]=e[0]),version_compare($.fn.jquery,"1.8",">=")){var a=new iLightBox($(this),i,o,n);return{close:function(){a.closeAction()},fullscreen:function(){a.fullScreenAction()},moveNext:function(){a.moveTo("next")},movePrev:function(){a.moveTo("prev")},goTo:function(e){a.goTo(e)},refresh:function(){a.refresh()},reposition:function(){arguments.length>0?a.repositionPhoto(!0):a.repositionPhoto()},setOption:function(e){a.setOption(e)},destroy:function(){a.closeAction(),$win.off("iLightBoxHashChange"),a.dispatchItemsEvents()}}}throw"The jQuery version that was loaded is too old. iLightBox requires jQuery 1.8+"},$.iLightBox=function(){return $.fn.iLightBox(arguments[0],arguments[1])},$.extend($.easing,{easeInCirc:function(e,t,o,i,n){return-i*(sqrt(1-(t/=n)*t)-1)+o},easeOutCirc:function(e,t,o,i,n){return i*sqrt(1-(t=t/n-1)*t)+o},easeInOutCirc:function(e,t,o,i,n){return(t/=n/2)<1?-i/2*(sqrt(1-t*t)-1)+o:i/2*(sqrt(1-(t-=2)*t)+1)+o}}),function(){$.each("touchstart touchmove touchend tap taphold swipeleft swiperight scrollstart scrollstop".split(" "),function(e,t){$.fn[t]=function(e){return e?this.on(t,e):this.trigger(t)}});var e="touchstart.iTap",t="touchend.iTap";$.event.special.itap={setup:function(){var o,i,n=this,a=$(this);a.on(e,function(e){o=getScrollXY(),a.one(t,function(e){i=getScrollXY();var t=e||window.event;(e=$.event.fix(t)).type="itap",o&&i&&o.x==i.x&&o.y==i.y&&($.event.dispatch||$.event.handle).call(n,e),o=i=undefined})})},teardown:function(){$(this).off(e)}}}(),function(){if(fullScreenApi={supportsFullScreen:!1,isFullScreen:function(){return!1},requestFullScreen:function(){},cancelFullScreen:function(){},fullScreenEventName:"",prefix:""},browserPrefixes="webkit moz o ms khtml".split(" "),void 0!==document.cancelFullScreen)fullScreenApi.supportsFullScreen=!0;else for(var e=0,t=browserPrefixes.length;e<t;e++)if(fullScreenApi.prefix=browserPrefixes[e],void 0!==document[fullScreenApi.prefix+"CancelFullScreen"]){fullScreenApi.supportsFullScreen=!0;break}fullScreenApi.supportsFullScreen&&(fullScreenApi.fullScreenEventName=fullScreenApi.prefix+"fullscreenchange",fullScreenApi.isFullScreen=function(){switch(this.prefix){case"":return document.fullScreen;case"webkit":return document.webkitIsFullScreen;default:return document[this.prefix+"FullScreen"]}},fullScreenApi.requestFullScreen=function(e){return""===this.prefix?e.requestFullScreen():e[this.prefix+"RequestFullScreen"]()},fullScreenApi.cancelFullScreen=function(e){return""===this.prefix?document.cancelFullScreen():document[this.prefix+"CancelFullScreen"]()})}(),function(){var e=function(e){e=e.toLowerCase();var t=/(chrome)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:t[1]||"",version:t[2]||"0"}}(navigator.userAgent);browser={},e.browser&&(browser[e.browser]=!0,browser.version=e.version),browser.chrome?browser.webkit=!0:browser.webkit&&(browser.safari=!0)}(),function(){var e=["","webkit","moz","ms","o"],t=document.createElement("div");function o(o){for(var i=0,n=e.length;i<n;i++){var a=e[i]?e[i]+o.charAt(0).toUpperCase()+o.slice(1):o;if(t.style[a]!==undefined)return a}}transform=o("transform")||"",gpuAcceleration=o("perspective")?"translateZ(0) ":""}();var PluginDetect={version:"0.7.9",name:"PluginDetect",handler:function(e,t,o){return function(){e(t,o)}},openTag:"<",isDefined:function(e){return void 0!==e},isArray:function(e){return/array/i.test(Object.prototype.toString.call(e))},isFunc:function(e){return"function"==typeof e},isString:function(e){return"string"==typeof e},isNum:function(e){return"number"==typeof e},isStrNum:function(e){return"string"==typeof e&&/\d/.test(e)},getNumRegx:/[\d][\d\.\_,-]*/,splitNumRegx:/[\.\_,-]/g,getNum:function(e,t){var o=this,i=o.isStrNum(e)?(o.isDefined(t)?new RegExp(t):o.getNumRegx).exec(e):null;return i?i[0]:null},compareNums:function(e,t,o){var i,n,a,r=this,s=parseInt;if(r.isStrNum(e)&&r.isStrNum(t)){if(r.isDefined(o)&&o.compareNums)return o.compareNums(e,t);for(i=e.split(r.splitNumRegx),n=t.split(r.splitNumRegx),a=0;a<min(i.length,n.length);a++){if(s(i[a],10)>s(n[a],10))return 1;if(s(i[a],10)<s(n[a],10))return-1}}return 0},formatNum:function(e,t){var o,i,n=this;if(!n.isStrNum(e))return null;for(n.isNum(t)||(t=4),t--,i=e.replace(/\s/g,"").split(n.splitNumRegx).concat(["0","0","0","0"]),o=0;o<4;o++)/^(0+)(.+)$/.test(i[o])&&(i[o]=RegExp.$2),(o>t||!/\d/.test(i[o]))&&(i[o]="0");return i.slice(0,4).join(",")},$$hasMimeType:function(e){return function(t){if(!e.isIE&&t){var o,i,n,a=e.isArray(t)?t:e.isString(t)?[t]:[];for(n=0;n<a.length;n++)if(e.isString(a[n])&&/[^\s]/.test(a[n])&&(i=(o=navigator.mimeTypes[a[n]])?o.enabledPlugin:0)&&(i.name||i.description))return o}return null}},findNavPlugin:function(e,t,o){var i,n,a,r=new RegExp(e,"i"),s=!this.isDefined(t)||t?/\d/:0,l=o?new RegExp(o,"i"):0,c=navigator.plugins;for(i=0;i<c.length;i++)if(a=c[i].description||"",n=c[i].name||"",(r.test(a)&&(!s||s.test(RegExp.leftContext+RegExp.rightContext))||r.test(n)&&(!s||s.test(RegExp.leftContext+RegExp.rightContext)))&&(!l||!l.test(a)&&!l.test(n)))return c[i];return null},getMimeEnabledPlugin:function(e,t,o){var i,n,a,r,s=new RegExp(t,"i"),l=o?new RegExp(o,"i"):0,c=this.isString(e)?[e]:e;for(r=0;r<c.length;r++)if((i=this.hasMimeType(c[r]))&&(i=i.enabledPlugin)&&(a=i.description||"",n=i.name||"",(s.test(a)||s.test(n))&&(!l||!l.test(a)&&!l.test(n))))return i;return 0},getPluginFileVersion:function(e,t){var o,i,n,a,r=this,s=-1;if(r.OS>2||!e||!e.version||!(o=r.getNum(e.version)))return t;if(!t)return o;for(o=r.formatNum(o),i=(t=r.formatNum(t)).split(r.splitNumRegx),n=o.split(r.splitNumRegx),a=0;a<i.length;a++){if(s>-1&&a>s&&"0"!=i[a])return t;if(n[a]!=i[a]&&(-1==s&&(s=a),"0"!=i[a]))return t}return o},AXO:window.ActiveXObject,getAXO:function(e){var t=null;try{t=new this.AXO(e)}catch(e){}return t},convertFuncs:function(e){var t,o,i=/^[\$][\$]/;for(t in e)if(i.test(t))try{(o=t.slice(2)).length>0&&!e[o]&&(e[o]=e[t](e),delete e[t])}catch(e){}},initObj:function(e,t,o){var i,n;if(e){if(1==e[t[0]]||o)for(i=0;i<t.length;i+=2)e[t[i]]=t[i+1];for(i in e)(n=e[i])&&1==n[t[0]]&&this.initObj(n,t)}},initScript:function(){var e=this,t=navigator,o=document,i=t.userAgent||"",n=t.vendor||"",a=t.platform||"",r=t.product||"";for(u in e.initObj(e,["$",e]),e.Plugins)e.Plugins[u]&&e.initObj(e.Plugins[u],["$",e,"$$",e.Plugins[u]],1);if(e.convertFuncs(e),e.OS=100,a){var s=["Win",1,"Mac",2,"Linux",3,"FreeBSD",4,"iPhone",21.1,"iPod",21.2,"iPad",21.3,"Win.*CE",22.1,"Win.*Mobile",22.2,"Pocket\\s*PC",22.3,"",100];for(u=s.length-2;u>=0;u-=2)if(s[u]&&new RegExp(s[u],"i").test(a)){e.OS=s[u+1];break}}if(e.head=o.getElementsByTagName("head")[0]||o.getElementsByTagName("body")[0]||o.body||null,e.isIE=new Function("return/*@cc_on!@*/!1")(),e.verIE=e.isIE&&/MSIE\s*(\d+\.?\d*)/i.test(i)?parseFloat(RegExp.$1,10):null,e.verIEfull=null,e.docModeIE=null,e.isIE){var l,c=document.createElement("div");try{c.style.behavior="url(#default#clientcaps)",e.verIEfull=c.getComponentVersion("{89820200-ECBD-11CF-8B85-00AA005B4383}","componentid").replace(/,/g,".")}catch(e){}l=parseFloat(e.verIEfull||"0",10),e.docModeIE=o.documentMode||(/back/i.test(o.compatMode||"")?5:l)||e.verIE,e.verIE=l||e.docModeIE}if(e.ActiveXEnabled=!1,e.isIE){var u,h=["Msxml2.XMLHTTP","Msxml2.DOMDocument","Microsoft.XMLDOM","ShockwaveFlash.ShockwaveFlash","TDCCtl.TDCCtl","Shell.UIHelper","Scripting.Dictionary","wmplayer.ocx"];for(u=0;u<h.length;u++)if(e.getAXO(h[u])){e.ActiveXEnabled=!0;break}}e.isGecko=/Gecko/i.test(r)&&/Gecko\s*\/\s*\d/i.test(i),e.verGecko=e.isGecko?e.formatNum(/rv\s*\:\s*([\.\,\d]+)/i.test(i)?RegExp.$1:"0.9"):null,e.isChrome=/Chrome\s*\/\s*(\d[\d\.]*)/i.test(i),e.verChrome=e.isChrome?e.formatNum(RegExp.$1):null,e.isSafari=(/Apple/i.test(n)||!n&&!e.isChrome)&&/Safari\s*\/\s*(\d[\d\.]*)/i.test(i),e.verSafari=e.isSafari&&/Version\s*\/\s*(\d[\d\.]*)/i.test(i)?e.formatNum(RegExp.$1):null,e.isOpera=/Opera\s*[\/]?\s*(\d+\.?\d*)/i.test(i),e.verOpera=e.isOpera&&(/Version\s*\/\s*(\d+\.?\d*)/i.test(i),1)?parseFloat(RegExp.$1,10):null,e.addWinEvent("load",e.handler(e.runWLfuncs,e))},init:function(e){var t,o=this,i={status:-3,plugin:0};return o.isString(e)?1==e.length?(o.getVersionDelimiter=e,i):(e=e.toLowerCase().replace(/\s/g,""),(t=o.Plugins[e])&&t.getVersion?(i.plugin=t,o.isDefined(t.installed)||(t.installed=null,t.version=null,t.version0=null,t.getVersionDone=null,t.pluginName=e),o.garbage=!1,o.isIE&&!o.ActiveXEnabled&&"java"!==e?(i.status=-2,i):(i.status=1,i)):i):i},fPush:function(e,t){var o=this;o.isArray(t)&&(o.isFunc(e)||o.isArray(e)&&e.length>0&&o.isFunc(e[0]))&&t.push(e)},callArray:function(e){var t;if(this.isArray(e))for(t=0;t<e.length;t++){if(null===e[t])return;this.call(e[t]),e[t]=null}},call:function(e){var t=this,o=t.isArray(e)?e.length:-1;o>0&&t.isFunc(e[0])?e[0](t,o>1?e[1]:0,o>2?e[2]:0,o>3?e[3]:0):t.isFunc(e)&&e(t)},getVersionDelimiter:",",$$getVersion:function(e){return function(t,o,i){var n,a,r=e.init(t);return r.status<0?null:(1!=(n=r.plugin).getVersionDone&&(n.getVersion(null,o,i),null===n.getVersionDone&&(n.getVersionDone=1)),e.cleanup(),a=(a=n.version||n.version0)?a.replace(e.splitNumRegx,e.getVersionDelimiter):a)}},cleanup:function(){this.garbage&&this.isDefined(window.CollectGarbage)&&window.CollectGarbage()},isActiveXObject:function(e,t){var o=this,i=!1,n='<object width="1" height="1" style="display:none" '+e.getCodeBaseVersion(t)+">"+e.HTML+o.openTag+"/object>";if(!o.head)return i;o.head.insertBefore(document.createElement("object"),o.head.firstChild),o.head.firstChild.outerHTML=n;try{o.head.firstChild.classid=e.classID}catch(e){}try{o.head.firstChild.object&&(i=!0)}catch(e){}try{i&&o.head.firstChild.readyState<4&&(o.garbage=!0)}catch(e){}return o.head.removeChild(o.head.firstChild),i},codebaseSearch:function(e,t){var o=this;if(!o.ActiveXEnabled||!e)return null;e.BIfuncs&&e.BIfuncs.length&&null!==e.BIfuncs[e.BIfuncs.length-1]&&o.callArray(e.BIfuncs);var i,n=e.SEARCH;if(o.isStrNum(t))return!!(n.match&&n.min&&o.compareNums(t,n.min)<=0)||!(n.match&&n.max&&o.compareNums(t,n.max)>=0)&&((i=o.isActiveXObject(e,t))&&(!n.min||o.compareNums(t,n.min)>0)&&(n.min=t),i||n.max&&!(o.compareNums(t,n.max)<0)||(n.max=t),i);var a,r,s,l,c,u=[0,0,0,0],h=[].concat(n.digits),d=n.min?1:0,p=function(t,i){var n=[].concat(u);return n[t]=i,o.isActiveXObject(e,n.join(","))};if(n.max){for(l=n.max.split(o.splitNumRegx),a=0;a<l.length;a++)l[a]=parseInt(l[a],10);l[0]<h[0]&&(h[0]=l[0])}if(n.min){for(c=n.min.split(o.splitNumRegx),a=0;a<c.length;a++)c[a]=parseInt(c[a],10);c[0]>u[0]&&(u[0]=c[0])}if(c&&l)for(a=1;a<c.length&&c[a-1]==l[a-1];a++)l[a]<h[a]&&(h[a]=l[a]),c[a]>u[a]&&(u[a]=c[a]);if(n.max)for(a=1;a<h.length;a++)if(l[a]>0&&0==h[a]&&h[a-1]<n.digits[a-1]){h[a-1]+=1;break}for(a=0;a<h.length;a++){for(s={},r=0;r<20&&!(h[a]-u[a]<1)&&!s["a"+(i=round((h[a]+u[a])/2))];r++)s["a"+i]=1,p(a,i)?(u[a]=i,d=1):h[a]=i;if(h[a]=u[a],!d&&p(a,u[a])&&(d=1),!d)break}return d?u.join(","):null},addWinEvent:function(e,t){var o,i=window;this.isFunc(t)&&(i.addEventListener?i.addEventListener(e,t,!1):i.attachEvent?i.attachEvent("on"+e,t):(o=i["on"+e],i["on"+e]=this.winHandler(t,o)))},winHandler:function(e,t){return function(){e(),"function"==typeof t&&t()}},WLfuncs0:[],WLfuncs:[],runWLfuncs:function(e){e.winLoaded=!0,e.callArray(e.WLfuncs0),e.callArray(e.WLfuncs),e.onDoneEmptyDiv&&e.onDoneEmptyDiv()},winLoaded:!1,$$onWindowLoaded:function(e){return function(t){e.winLoaded?e.call(t):e.fPush(t,e.WLfuncs)}},div:null,divID:"plugindetect",divWidth:50,pluginSize:1,emptyDiv:function(){var e,t,o,i,n,a=this;if(a.div&&a.div.childNodes)for(e=a.div.childNodes.length-1;e>=0;e--){if((o=a.div.childNodes[e])&&o.childNodes)for(t=o.childNodes.length-1;t>=0;t--){n=o.childNodes[t];try{o.removeChild(n)}catch(e){}}if(o)try{a.div.removeChild(o)}catch(e){}}if(a.div||(i=document.getElementById(a.divID))&&(a.div=i),a.div&&a.div.parentNode){try{a.div.parentNode.removeChild(a.div)}catch(e){}a.div=null}},DONEfuncs:[],onDoneEmptyDiv:function(){var e,t,o=this;if(o.winLoaded&&(!o.WLfuncs||!o.WLfuncs.length||null===o.WLfuncs[o.WLfuncs.length-1])){for(e in o)if((t=o[e])&&t.funcs){if(3==t.OTF)return;if(t.funcs.length&&null!==t.funcs[t.funcs.length-1])return}for(e=0;e<o.DONEfuncs.length;e++)o.callArray(o.DONEfuncs);o.emptyDiv()}},getWidth:function(e){if(e){var t=e.scrollWidth||e.offsetWidth;if(this.isNum(t))return t}return-1},getTagStatus:function(e,t,o,i){var n=this,a=e.span,r=n.getWidth(a),s=o.span,l=n.getWidth(s),c=t.span,u=n.getWidth(c);if(!(a&&s&&c&&n.getDOMobj(e)))return-2;if(l<u||r<0||l<0||u<0||u<=n.pluginSize||n.pluginSize<1)return 0;if(r>=u)return-1;try{if(r==n.pluginSize&&(!n.isIE||4==n.getDOMobj(e).readyState)){if(!e.winLoaded&&n.winLoaded)return 1;if(e.winLoaded&&n.isNum(i)&&(n.isNum(e.count)||(e.count=i),i-e.count>=10))return 1}}catch(e){}return 0},getDOMobj:function(e,t){var o=e?e.span:0,i=o&&o.firstChild?1:0;try{i&&t&&this.div.focus()}catch(e){}return i?o.firstChild:null},setStyle:function(e,t){var o,i=e.style;if(i&&t)for(o=0;o<t.length;o+=2)try{i[t[o]]=t[o+1]}catch(e){}},insertDivInBody:function(e,t){var o="pd33993399",i=null,n=t?window.top.document:window.document,a=n.getElementsByTagName("body")[0]||n.body;if(!a)try{n.write('<div id="'+o+'">.'+this.openTag+"/div>"),i=n.getElementById(o)}catch(e){}(a=n.getElementsByTagName("body")[0]||n.body)&&(a.insertBefore(e,a.firstChild),i&&a.removeChild(i))},insertHTML:function(e,t,o,i,n){var a,r,s,l=document,c=this,u=l.createElement("span"),h=["outlineStyle","none","borderStyle","none","padding","0px","margin","0px","visibility","visible"];if(c.isDefined(i)||(i=""),c.isString(e)&&/[^\s]/.test(e)){for(e=e.toLowerCase().replace(/\s/g,""),a=c.openTag+e+' width="'+c.pluginSize+'" height="'+c.pluginSize+'" ',a+='style="outline-style:none;border-style:none;padding:0px;margin:0px;visibility:visible;display:inline;" ',r=0;r<t.length;r+=2)/[^\s]/.test(t[r+1])&&(a+=t[r]+'="'+t[r+1]+'" ');for(a+=">",r=0;r<o.length;r+=2)/[^\s]/.test(o[r+1])&&(a+=c.openTag+'param name="'+o[r]+'" value="'+o[r+1]+'" />');a+=i+c.openTag+"/"+e+">"}else a=i;if(c.div||((s=l.getElementById(c.divID))?c.div=s:(c.div=l.createElement("div"),c.div.id=c.divID),c.setStyle(c.div,h.concat(["width",c.divWidth+"px","height",c.pluginSize+3+"px","fontSize",c.pluginSize+3+"px","lineHeight",c.pluginSize+3+"px","verticalAlign","baseline","display","block"])),s||(c.setStyle(c.div,["position","absolute","right","0px","top","0px"]),c.insertDivInBody(c.div))),c.div&&c.div.parentNode){c.setStyle(u,h.concat(["fontSize",c.pluginSize+3+"px","lineHeight",c.pluginSize+3+"px","verticalAlign","baseline","display","inline"]));try{u.innerHTML=a}catch(e){}try{c.div.appendChild(u)}catch(e){}return{span:u,winLoaded:c.winLoaded,tagName:e,outerHTML:a}}return{span:null,winLoaded:c.winLoaded,tagName:"",outerHTML:a}},Plugins:{quicktime:{mimeType:["video/quicktime","application/x-quicktimeplayer","image/x-macpaint","image/x-quicktime"],progID:"QuickTimeCheckObject.QuickTimeCheck.1",progID0:"QuickTime.QuickTime",classID:"clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B",minIEver:7,HTML:'<param name="src" value="" /><param name="controller" value="false" />',getCodeBaseVersion:function(e){return'codebase="#version='+e+'"'},SEARCH:{min:0,max:0,match:0,digits:[16,128,128,0]},getVersion:function(e){var t,o=this,i=o.$,n=null,a=null;if(i.isIE){if(i.isStrNum(e)&&((t=e.split(i.splitNumRegx)).length>3&&parseInt(t[3],10)>0&&(t[3]="9999"),e=t.join(",")),i.isStrNum(e)&&i.verIE>=o.minIEver&&o.canUseIsMin()>0)return o.installed=o.isMin(e),void(o.getVersionDone=0);o.getVersionDone=1,!n&&i.verIE>=o.minIEver&&(n=o.CDBASE2VER(i.codebaseSearch(o))),n||(a=i.getAXO(o.progID))&&a.QuickTimeVersion&&(n=a.QuickTimeVersion.toString(16),n=parseInt(n.charAt(0),16)+"."+parseInt(n.charAt(1),16)+"."+parseInt(n.charAt(2),16))}else i.hasMimeType(o.mimeType)&&(a=3!=i.OS?i.findNavPlugin("QuickTime.*Plug-?in",0):null)&&a.name&&(n=i.getNum(a.name));o.installed=n?1:a?0:-1,o.version=i.formatNum(n,3)},cdbaseUpper:["7,60,0,0","0,0,0,0"],cdbaseLower:["7,50,0,0",null],cdbase2ver:[function(e,t){var o=t.split(e.$.splitNumRegx);return[o[0],o[1].charAt(0),o[1].charAt(1),o[2]].join(",")},null],CDBASE2VER:function(e){var t,o=this,i=o.$,n=o.cdbaseUpper,a=o.cdbaseLower;if(e)for(e=i.formatNum(e),t=0;t<n.length;t++)if(n[t]&&i.compareNums(e,n[t])<0&&a[t]&&i.compareNums(e,a[t])>=0&&o.cdbase2ver[t])return o.cdbase2ver[t](o,e);return e},canUseIsMin:function(){var e,t=this,o=t.$,i=t.canUseIsMin,n=t.cdbaseUpper,a=t.cdbaseLower;if(!i.value)for(i.value=-1,e=0;e<n.length;e++){if(n[e]&&o.codebaseSearch(t,n[e])){i.value=1;break}if(a[e]&&o.codebaseSearch(t,a[e])){i.value=-1;break}}return t.SEARCH.match=1==i.value?1:0,i.value},isMin:function(e){return this.$.codebaseSearch(this,e)?.7:-1}},flash:{mimeType:"application/x-shockwave-flash",progID:"ShockwaveFlash.ShockwaveFlash",classID:"clsid:D27CDB6E-AE6D-11CF-96B8-444553540000",getVersion:function(){var e,t,o,i,n=function(e){if(!e)return null;var t=/[\d][\d\,\.\s]*[rRdD]{0,1}[\d\,]*/.exec(e);return t?t[0].replace(/[rRdD\.]/g,",").replace(/\s/g,""):null},a=this,r=a.$,s=null,l=null,c=null;if(r.isIE){for(e=15;e>2;e--)if(l=r.getAXO(a.progID+"."+e)){c=e.toString();break}if(l||(l=r.getAXO(a.progID)),"6"==c)try{l.AllowScriptAccess="always"}catch(e){return"6,0,21,0"}try{s=n(l.GetVariable("$version"))}catch(e){}!s&&c&&(s=c)}else{if(o=r.hasMimeType(a.mimeType)){t=r.getDOMobj(r.insertHTML("object",["type",a.mimeType],[],"",a));try{s=r.getNum(t.GetVariable("$version"))}catch(e){}}s||((i=o?o.enabledPlugin:null)&&i.description&&(s=n(i.description)),s&&(s=r.getPluginFileVersion(i,s)))}return a.installed=s?1:-1,a.version=r.formatNum(s),!0}},shockwave:{mimeType:"application/x-director",progID:"SWCtl.SWCtl",classID:"clsid:166B1BCA-3F9C-11CF-8075-444553540000",getVersion:function(){var e,t=null,o=null,i=this,n=i.$;if(n.isIE){try{o=n.getAXO(i.progID).ShockwaveVersion("")}catch(e){}n.isString(o)&&o.length>0?t=n.getNum(o):n.getAXO(i.progID+".8")?t="8":n.getAXO(i.progID+".7")?t="7":n.getAXO(i.progID+".1")&&(t="6")}else(e=n.findNavPlugin("Shockwave\\s*for\\s*Director"))&&e.description&&n.hasMimeType(i.mimeType)&&(t=n.getNum(e.description)),t&&(t=n.getPluginFileVersion(e,t));i.installed=t?1:-1,i.version=n.formatNum(t)}},zz:0}};PluginDetect.initScript();var gArgCountErr='The "%%" function requires an even number of arguments.\nArguments should be in the form "atttributeName", "attributeValue", ...',gTagAttrs=null,gQTGeneratorVersion=1;function AC_QuickTimeVersion(){return gQTGeneratorVersion}function _QTComplain(e,t){t=t.replace("%%",e),alert(t)}function _QTAddAttribute(e,t,o){var i;return null==(i=gTagAttrs[e+t])&&(i=gTagAttrs[t]),null!=i?(0==t.indexOf(e)&&null==o&&(o=t.substring(e.length)),null==o&&(o=t),o+'="'+i+'" '):""}function _QTAddObjectAttr(e,t){return 0==e.indexOf("emb#")?"":(0==e.indexOf("obj#")&&null==t&&(t=e.substring(4)),_QTAddAttribute("obj#",e,t))}function _QTAddEmbedAttr(e,t){return 0==e.indexOf("obj#")?"":(0==e.indexOf("emb#")&&null==t&&(t=e.substring(4)),_QTAddAttribute("emb#",e,t))}function _QTAddObjectParam(e,t){var o,i="",n=t?" />":">";return-1==e.indexOf("emb#")&&(null==(o=gTagAttrs["obj#"+e])&&(o=gTagAttrs[e]),0==e.indexOf("obj#")&&(e=e.substring(4)),null!=o&&(i='  <param name="'+e+'" value="'+o+'"'+n+"\n")),i}function _QTDeleteTagAttrs(){for(var e=0;e<arguments.length;e++){var t=arguments[e];delete gTagAttrs[t],delete gTagAttrs["emb#"+t],delete gTagAttrs["obj#"+t]}}function _QTGenerate(e,t,o){if(4>o.length||0!=o.length%2)return _QTComplain(e,gArgCountErr),"";(gTagAttrs=[]).src=o[0],gTagAttrs.width=o[1],gTagAttrs.height=o[2],gTagAttrs.classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B",gTagAttrs.pluginspage="http://www.apple.com/quicktime/download/",null!=(e=o[3])&&""!=e||(e="6,0,2,0"),gTagAttrs.codebase="http://www.apple.com/qtactivex/qtplugin.cab#version="+e;for(var i,n=4;n<o.length;n+=2)i=o[n].toLowerCase(),e=o[n+1],"name"==i||"id"==i?gTagAttrs.name=e:gTagAttrs[i]=e;for(i in o="<object "+_QTAddObjectAttr("classid")+_QTAddObjectAttr("width")+_QTAddObjectAttr("height")+_QTAddObjectAttr("codebase")+_QTAddObjectAttr("name","id")+_QTAddObjectAttr("tabindex")+_QTAddObjectAttr("hspace")+_QTAddObjectAttr("vspace")+_QTAddObjectAttr("border")+_QTAddObjectAttr("align")+_QTAddObjectAttr("class")+_QTAddObjectAttr("title")+_QTAddObjectAttr("accesskey")+_QTAddObjectAttr("noexternaldata")+">\n"+_QTAddObjectParam("src",t),n="  <embed "+_QTAddEmbedAttr("src")+_QTAddEmbedAttr("width")+_QTAddEmbedAttr("height")+_QTAddEmbedAttr("pluginspage")+_QTAddEmbedAttr("name")+_QTAddEmbedAttr("align")+_QTAddEmbedAttr("tabindex"),_QTDeleteTagAttrs("src","width","height","pluginspage","classid","codebase","name","tabindex","hspace","vspace","border","align","noexternaldata","class","title","accesskey"),gTagAttrs)null!=(e=gTagAttrs[i])&&(n+=_QTAddEmbedAttr(i),o+=_QTAddObjectParam(i,t));return o+n+"> </embed>\n</object>"}function QT_GenerateOBJECTText(){return _QTGenerate("QT_GenerateOBJECTText",!1,arguments)}!function(){function e(e){return"#"+(e=e||location.href).replace(/^[^#]*#?(.*)$/,"$1")}var t,o=document,i=$.event.special,n=o.documentMode,a="oniLightBoxHashChange"in window&&(void 0===n||7<n);$.fn.iLightBoxHashChange=function(e){return e?this.on("iLightBoxHashChange",e):this.trigger("iLightBoxHashChange")},$.fn.iLightBoxHashChange.delay=50,i.iLightBoxHashChange=$.extend(i.iLightBoxHashChange,{setup:function(){if(a)return!1;$(t.start)},teardown:function(){if(a)return!1;$(t.stop)}}),t=function(){function t(){var o=e(),n=h(l);o!==l?(u(l=o,n),$(window).trigger("iLightBoxHashChange")):n!==l&&(location.href=location.href.replace(/#.*/,"")+n),i=setTimeout(t,$.fn.iLightBoxHashChange.delay)}var i,n,r,s={},l=e(),c=function(e){return e},u=c,h=c;return s.start=function(){i||t()},s.stop=function(){i&&clearTimeout(i),i=void 0},browser.msie&&!a&&(s.start=function(){n||(r=(r=$.fn.iLightBoxHashChange.src)&&r+e(),n=$('<iframe tabindex="-1" title="empty"/>').hide().one("load",function(){r||u(e()),t()}).attr("src",r||"javascript:0").insertAfter("body")[0].contentWindow,o.onpropertychange=function(){try{"title"===event.propertyName&&(n.document.title=o.title)}catch(e){}})},s.stop=c,h=function(){return e(n.location.href)},u=function(e,t){var i=n.document,a=$.fn.iLightBoxHashChange.domain;e!==t&&(i.title=o.title,i.open(),a&&i.write('<script>document.domain="'+a+'"<\/script>'),i.close(),n.location.hash=e)}),s}()}(),Array.prototype.filter||(Array.prototype.filter=function(e){"use strict";if(null==this)throw new TypeError;var t=Object(this),o=t.length>>>0;if("function"!=typeof e)throw new TypeError;for(var i=[],n=arguments[1],a=0;a<o;a++)if(a in t){var r=t[a];e.call(n,r,a,t)&&i.push(r)}return i}),Array.prototype.indexOf||(Array.prototype.indexOf=function(e,t){var o;if(null==this)throw new TypeError('"this" is null or not defined');var i=Object(this),n=i.length>>>0;if(0===n)return-1;var a=+t||0;if(abs(a)===1/0&&(a=0),a>=n)return-1;for(o=max(a>=0?a:n-abs(a),0);o<n;){if(o in i&&i[o]===e)return o;o++}return-1}),Array.prototype.lastIndexOf||(Array.prototype.lastIndexOf=function(e){"use strict";if(null==this)throw new TypeError;var t=Object(this),o=t.length>>>0;if(0===o)return-1;var i=o;arguments.length>1&&((i=Number(arguments[1]))!=i?i=0:0!=i&&i!=1/0&&i!=-1/0&&(i=(i>0||-1)*floor(abs(i))));for(var n=i>=0?min(i,o-1):o-abs(i);n>=0;n--)if(n in t&&t[n]===e)return n;return-1})}(jQuery,this);!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?module.exports=e:e(jQuery)}(function(e){var t,i,n=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],o="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],l=Array.prototype.slice;if(e.event.fixHooks)for(var s=n.length;s;)e.event.fixHooks[n[--s]]=e.event.mouseHooks;var a=e.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var t=o.length;t;)this.addEventListener(o[--t],h,{passive:!0,capture:!1});else this.onmousewheel=h;e.data(this,"mousewheel-line-height",a.getLineHeight(this)),e.data(this,"mousewheel-page-height",a.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var t=o.length;t;)this.removeEventListener(o[--t],h,!1);else this.onmousewheel=null;e.removeData(this,"mousewheel-line-height"),e.removeData(this,"mousewheel-page-height")},getLineHeight:function(t){var i=e(t),n=i["offsetParent"in e.fn?"offsetParent":"parent"]();return n.length||(n=e("body")),parseInt(n.css("fontSize"),10)||parseInt(i.css("fontSize"),10)||16},getPageHeight:function(t){return e(t).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};function h(n){var o,s=n||window.event,h=l.call(arguments,1),f=0,d=0,c=0,m=0,g=0;if((n=e.event.fix(s)).type="mousewheel","detail"in s&&(c=-1*s.detail),"wheelDelta"in s&&(c=s.wheelDelta),"wheelDeltaY"in s&&(c=s.wheelDeltaY),"wheelDeltaX"in s&&(d=-1*s.wheelDeltaX),"axis"in s&&s.axis===s.HORIZONTAL_AXIS&&(d=-1*c,c=0),f=0===c?d:c,"deltaY"in s&&(f=c=-1*s.deltaY),"deltaX"in s&&(d=s.deltaX,0===c&&(f=-1*d)),0!==c||0!==d){if(1===s.deltaMode){var w=e.data(this,"mousewheel-line-height");f*=w,c*=w,d*=w}else if(2===s.deltaMode){var v=e.data(this,"mousewheel-page-height");f*=v,c*=v,d*=v}if(o=Math.max(Math.abs(c),Math.abs(d)),(!i||o<i)&&(i=o,u(s,o)&&(i/=40)),u(s,o)&&(f/=40,d/=40,c/=40),f=Math[f>=1?"floor":"ceil"](f/i),d=Math[d>=1?"floor":"ceil"](d/i),c=Math[c>=1?"floor":"ceil"](c/i),a.settings.normalizeOffset&&this.getBoundingClientRect){var p=this.getBoundingClientRect();m=n.clientX-p.left,g=n.clientY-p.top}return n.deltaX=d,n.deltaY=c,n.deltaFactor=i,n.offsetX=m,n.offsetY=g,n.deltaMode=0,h.unshift(n,f,d,c),t&&clearTimeout(t),t=setTimeout(r,200),(e.event.dispatch||e.event.handle).apply(this,h)}}function r(){i=null}function u(e,t){return a.settings.adjustOldDeltas&&"mousewheel"===e.type&&t%120==0}e.fn.extend({mousewheel:function(e){return e?this.bind("mousewheel",e):this.trigger("mousewheel")},unmousewheel:function(e){return this.unbind("mousewheel",e)}})});!function(e,a,t){var l,r,o="placeholder"in a.createElement("input"),d="placeholder"in a.createElement("textarea"),c=t.fn,i=t.valHooks,h=t.propHooks;function n(e,a){var l=t(this);if(this.value==l.attr("placeholder")&&l.hasClass("placeholder"))if(l.data("placeholder-password")){if(l=l.hide().next().show().attr("id",l.removeAttr("id").data("placeholder-id")),!0===e)return l[0].value=a;l.focus()}else this.value="",l.removeClass("placeholder"),this==u()&&this.select()}function s(){var e,a,l,r,o=t(this),d=this.id;if(""==this.value){if("password"==this.type){if(!o.data("placeholder-textinput")){try{e=o.clone().attr({type:"text"})}catch(o){e=t("<input>").attr(t.extend((a=this,l={},r=/^jQuery\d+$/,t.each(a.attributes,function(e,a){a.specified&&!r.test(a.name)&&(l[a.name]=a.value)}),l),{type:"text"}))}e.removeAttr("name").data({"placeholder-password":o,"placeholder-id":d}).bind("focus.placeholder",n),o.data({"placeholder-textinput":e,"placeholder-id":d}).before(e)}o=o.removeAttr("id").hide().prev().attr("id",d).show()}o.addClass("placeholder"),o[0].value=o.attr("placeholder")}else o.removeClass("placeholder")}function u(){try{return a.activeElement}catch(e){}}o&&d?(r=c.placeholder=function(){return this}).input=r.textarea=!0:((r=c.placeholder=function(){return this.filter((o?"textarea":":input")+"[placeholder]").not(".placeholder").bind({"focus.placeholder":n,"blur.placeholder":s}).data("placeholder-enabled",!0).trigger("blur.placeholder"),this}).input=o,r.textarea=d,l={get:function(e){var a=t(e),l=a.data("placeholder-password");return l?l[0].value:a.data("placeholder-enabled")&&a.hasClass("placeholder")?"":e.value},set:function(e,a){var l=t(e),r=l.data("placeholder-password");return r?r[0].value=a:l.data("placeholder-enabled")?(""==a?(e.value=a,e!=u()&&s.call(e)):l.hasClass("placeholder")&&n.call(e,!0,a)||(e.value=a),l):e.value=a}},o||(i.input=l,h.value=l),d||(i.textarea=l,h.value=l),t(function(){t(a).delegate("form","submit.placeholder",function(){var e=t(".placeholder",this).each(n);setTimeout(function(){e.each(s)},10)})}),t(e).bind("beforeunload.placeholder",function(){t(".placeholder").each(function(){this.value=""})}))}(this,document,jQuery);!function(t){"use strict";t.fn.fusionScroller=function(e){var f=t.extend({type:"opacity",offset:0,endOffset:""},e);t(this).each(function(){var e,i,r,o=this;t(window).on("scroll",function(){var s,l,p,c;e=t(o).offset().top,t("body").hasClass("admin-bar")&&(e=t(o).offset().top-t("#wpadminbar").outerHeight()),0<f.offset&&(e=t(o).offset().top-f.offset),i=t(o).outerHeight(),r=e+i,f.endOffset&&t(f.endOffset).length&&(r=t(f.endOffset).offset().top),(s=t(this).scrollTop())>=e&&s<=r&&(l=(r-s)/i*100,"opacity"===f.type?(p=l/100*1,t(o).css({opacity:p})):"blur"===f.type?(c="blur("+(l=100-l)/100*50+"px)",t(o).css({"-webkit-filter":c,"-ms-filter":c,"-o-filter":c,"-moz-filter":c,filter:c})):"fading_blur"===f.type&&(p=l/100*1,c="blur("+(l=100-l)/100*50+"px)",t(o).css({"-webkit-filter":c,"-ms-filter":c,"-o-filter":c,"-moz-filter":c,filter:c,opacity:p}))),s<e&&("opacity"===f.type?t(o).css({opacity:1}):"blur"===f.type?(c="blur(0px)",t(o).css({"-webkit-filter":c,"-ms-filter":c,"-o-filter":c,"-moz-filter":c,filter:c})):"fading_blur"===f.type&&(c="blur(0px)",t(o).css({opacity:1,"-webkit-filter":c,"-ms-filter":c,"-o-filter":c,"-moz-filter":c,filter:c})))})})}}(jQuery);function _fusionRefreshScroll(){window._fusionScrollTop=window.pageYOffset,window._fusionScrollLeft=window.pageXOffset}function _fusionParallaxAll(){var t;for(_fusionRefreshScroll(),t=0;t<window._fusionImageParallaxImages.length;t++)window._fusionImageParallaxImages[t].doParallax()}function _fusionRefreshWindow(){window._fusionScrollTop=window.pageYOffset,window._fusionWindowHeight=jQuery(window).height(),window._fusionScrollLeft=window.pageXOffset,window._fusionWindowWidth=jQuery(window).width()}!function(t){var i;i=0,t.requestAnimationFrame||(t.webkitRequestAnimationFrame&&(t.requestAnimationFrame=t.webkitRequestAnimationFrame,t.cancelAnimationFrame=t.webkitCancelAnimationFrame||t.webkitCancelRequestAnimationFrame),t.requestAnimationFrame=function(e){var s=(new Date).getTime(),n=Math.max(0,16-(s-i)),a=t.setTimeout(function(){e(s+n)},n);return i=s+n,a},t.cancelAnimationFrame=function(t){clearTimeout(t)}),"function"==typeof define&&define(function(){return t.requestAnimationFrame})}(window),void 0===window._fusionImageParallaxImages&&(window._fusionImageParallaxImages=[]),function(t,i){var e="fusionImageParallax",s={direction:"up",mobileenabled:!1,mobiledevice:!1,width:"",height:"",align:"center",opacity:"1",velocity:".3",image:"",target:"",repeat:!1,loopScroll:"",loopScrollTime:"2",removeOrig:!1,complete:function(){}};function n(i,n){var a;this.element=i,this.settings=t.extend({},s,n),a=this.settings.align.split(" "),this.settings.xpos=a[0],2===a.length?this.settings.ypos=a[1]:this.settings.ypos="center",this._defaults=s,this._name=e,this.init()}t.extend(n.prototype,{init:function(){var e;""===this.settings.target&&(this.settings.target=t(this.element)),""===this.settings.image&&void 0!==t(this.element).css("backgroundImage")&&""!==t(this.element).css("backgroundImage")&&(this.settings.image=t(this.element).css("backgroundImage").replace(/url\(|\)|"|'/g,"")),e=i._fusionImageParallaxImages.push(this),jQuery(this.element).attr("data-parallax-index",e-1),this.setup(),this.settings.complete(),this.containerWidth=0,this.containerHeight=0},setup:function(){!1!==this.settings.removeOrig&&t(this.element).remove(),this.resizeParallaxBackground()},doParallax:function(){var t,e,s,n,a,o,r,g,d=this.settings.target.find(".parallax-inner");this.settings.mobiledevice&&!this.settings.mobileenabled||this.isInView()&&(d.css({minHeight:"150px"}),t=this.settings.target.width()+parseInt(this.settings.target.css("paddingRight"),10)+parseInt(this.settings.target.css("paddingLeft"),10),e=this.settings.target.height()+parseInt(this.settings.target.css("paddingTop"),10)+parseInt(this.settings.target.css("paddingBottom"),10),0===this.containerWidth||0===this.containerHeight||t===this.containerWidth&&e===this.containerHeight||this.resizeParallaxBackground(),this.containerWidth=t,this.containerHeight=e,void 0!==d&&0!==d.length&&(s=(i._fusionScrollTop-this.scrollTopMin)/(this.scrollTopMax-this.scrollTopMin),n=this.moveMax*s,"down"===this.settings.direction&&(n*=1.25),"left"!==this.settings.direction&&"up"!==this.settings.direction||(n*=-1),a="translate3d(",o="px, -2px, 0px)",r="translate3d(0, ",g="px, 0)",jQuery("html").hasClass("ua-safari")&&d.parent().find(".fusion-section-separator").length&&(a="translate(",o="px, 0)",r="translate(0, ",g="px)"),"no-repeat"===d.css("background-repeat")&&("down"===this.settings.direction&&0>n?n=0:"up"===this.settings.direction&&0<n?n=0:"right"===this.settings.direction&&0>n?n=0:"left"===this.settings.direction&&0<n&&(n=0)),"fixed"===this.settings.direction||("left"===this.settings.direction||"right"===this.settings.direction?d.css({webkitTransform:a+n+o,mozTransform:a+n+o,msTransform:a+n+o,oTransform:a+n+o,transform:a+n+o}):d.css({webkitTransform:r+n+g,mozTransform:r+n+g,msTransform:r+n+g,oTransform:r+n+g,transform:r+n+g}))))},isInView:function(){var t,e=this.settings.target;if(void 0!==e&&0!==e.length)return!((t=e.offset().top)+(e.height()+parseInt(e.css("paddingTop"),10)+parseInt(e.css("paddingBottom"),10))<i._fusionScrollTop||i._fusionScrollTop+i._fusionWindowHeight<t)},setBackgroundStyling:function(t,i){var e="none"===this.settings.blendMode?"":this.settings.blendMode,s=this.settings.backgroundColor;t.find(".parallax-inner").css({"background-color":s,"background-blend-mode":e}),""!==i&&t.find(".parallax-inner").css({"background-image":i})},resizeParallaxBackground:function(){var t,e,s,n,a,o,r,g,d,l,h,c,u=this.settings.target,p="";void 0!==u&&0!==u.length&&u.is(":visible")&&(c=u.hasClass("lazyload"),t="true"===this.settings.repeat||!0===this.settings.repeat||1===this.settings.repeat,""===this.settings.gradientStartColor&&""===this.settings.gradientStartPosition||("linear"===this.settings.gradientType?p+="linear-gradient("+this.settings.gradientAngle+"deg, ":"radial"===this.settings.gradientType&&(p+="radial-gradient(circle at "+this.settings.gradientRadialDirection+", "),p+=this.settings.gradientStartColor+" "+this.settings.gradientStartPosition+"%,",p+=this.settings.gradientEndColor+" "+this.settings.gradientEndPosition+"%)",""!==this.settings.image&&"none"!==this.settings.image&&(p+=",url('"+this.settings.image+"')")),"none"===this.settings.direction?(e=u.width()+parseInt(u.css("paddingRight"),10)+parseInt(u.css("paddingLeft"),10),n=u.offset().left,"center"===this.settings.align?n="50% 50%":"left"===this.settings.align?n="0% 50%":"right"===this.settings.align?n="100% 50%":"top"===this.settings.align?n="50% 0%":"bottom"===this.settings.align&&(n="50% 100%"),u.css({opacity:Math.abs(parseFloat(this.settings.opacity)/100),backgroundSize:"cover",backgroundAttachment:"scroll",backgroundPosition:n,backgroundRepeat:"no-repeat"}),""!==this.settings.image&&"none"!==this.settings.image&&u.css({opacity:Math.abs(parseFloat(this.settings.opacity)/100),backgroundImage:c?"":"url("+this.settings.image+")"})):"fixed"===this.settings.direction?(u.css({backgroundAttachment:"fixed",backgroundRepeat:"repeat"}),""!==this.settings.image&&"none"!==this.settings.image&&u.attr("style","background-image: url("+this.settings.image+") !important;"+u.attr("style"))):"left"===this.settings.direction||"right"===this.settings.direction?(e=u.width()+parseInt(u.css("paddingRight"),10)+parseInt(u.css("paddingLeft"),10),s=u.height()+4+parseInt(u.css("paddingTop"),10)+parseInt(u.css("paddingBottom"),10),a=e,e+=400*Math.abs(parseFloat(this.settings.velocity)),o=0,"right"===this.settings.direction&&(o-=e-a),1>u.find(".parallax-inner").length&&u.prepend('<div class="parallax-inner"></div>'),u.css({position:"relative",overflow:"hidden",zIndex:1,"background-image":"none"}).attr("style",u.attr("style")).find(".parallax-inner").css({pointerEvents:"none",width:e,height:s,position:"absolute",zIndex:-1,top:0,left:o,opacity:Math.abs(parseFloat(this.settings.opacity)/100),backgroundPosition:t?"0 0 ":this.settings.xpos+" "+this.settings.ypos,backgroundRepeat:t?"repeat":"no-repeat",backgroundSize:t?"auto":"cover"}),""!==this.settings.image&&"none"!==this.settings.image&&(u.find(".parallax-inner").css({opacity:Math.abs(parseFloat(this.settings.opacity)/100),backgroundImage:c?"":"url("+this.settings.image+")"}),this.setBackgroundStyling(u,p)),g=0,u.offset().top>i._fusionWindowHeight&&(g=u.offset().top-i._fusionWindowHeight),d=u.offset().top+u.height()+parseInt(u.css("paddingTop"),10)+parseInt(u.css("paddingBottom"),10),this.moveMax=e-a,this.scrollTopMin=g,this.scrollTopMax=d):(r=900,r=jQuery(i).height(),e=u.width()+parseInt(u.css("paddingRight"),10)+parseInt(u.css("paddingLeft"),10),l=s=u.height()+parseInt(u.css("paddingTop"),10)+parseInt(u.css("paddingBottom"),10),s+=r*Math.abs(parseFloat(this.settings.velocity)),h=0,"down"===this.settings.direction&&(h-=s-l),1>u.find(".parallax-inner").length&&u.prepend('<div class="parallax-inner"></div>'),u.css({position:"relative",overflow:"hidden",zIndex:1,"background-image":"none"}).attr("style",u.attr("style")).find(".parallax-inner").css({pointerEvents:"none",width:e,height:s,position:"absolute",zIndex:-1,top:h,left:0,opacity:Math.abs(parseFloat(this.settings.opacity)/100),backgroundPosition:t?"0 0 ":this.settings.xpos+" "+this.settings.ypos,backgroundRepeat:t?"repeat":"no-repeat",backgroundSize:t?"auto":"cover"}),""!==this.settings.image&&"none"!==this.settings.image&&(u.find(".parallax-inner").css({opacity:Math.abs(parseFloat(this.settings.opacity)/100),backgroundImage:c?"":"url("+this.settings.image+")"}),this.setBackgroundStyling(u,p)),g=0,u.offset().top>i._fusionWindowHeight&&(g=u.offset().top-i._fusionWindowHeight),d=u.offset().top+u.height()+parseInt(u.css("paddingTop"),10)+parseInt(u.css("paddingBottom"),10),this.moveMax=s-l,this.scrollTopMin=g,this.scrollTopMax=d),c&&u.find(".parallax-inner").attr("data-bg",this.settings.image).addClass("lazyload"))},isMobile:function(){return cssua.ua.mobile}}),t.fn[e]=function(i){return this.each(function(){t.data(this,"plugin_"+e)||t.data(this,"plugin_"+e,new n(this,i))}),this}}(jQuery,window,document),jQuery(document).ready(function(t){"use strict";t(window).on("scroll touchmove touchstart touchend gesturechange",function(){requestAnimationFrame(_fusionParallaxAll)}),cssua.ua.mobile&&requestAnimationFrame(function(){var t;for(_fusionRefreshScroll(),t=0;t<window._fusionImageParallaxImages.length;t++)window._fusionImageParallaxImages[t].doParallax()}),t(window).on("resize",function(){setTimeout(function(){_fusionRefreshWindow(),jQuery.each(window._fusionImageParallaxImages,function(t,i){i.resizeParallaxBackground()})},1)}),setTimeout(function(){_fusionRefreshWindow(),jQuery.each(window._fusionImageParallaxImages,function(t,i){i.resizeParallaxBackground()})},1),setTimeout(function(){_fusionRefreshWindow(),jQuery.each(window._fusionImageParallaxImages,function(t,i){i.resizeParallaxBackground()})},100)}),jQuery(window).on("load",function(){setTimeout(function(){_fusionRefreshWindow(),jQuery.each(window._fusionImageParallaxImages,function(t,i){i.resizeParallaxBackground()})},1),setTimeout(function(){_fusionRefreshWindow(),jQuery.each(window._fusionImageParallaxImages,function(t,i){i.resizeParallaxBackground()})},1e3)}),jQuery(document).on("ready fusion-element-render-fusion_builder_container",function(t,i){"use strict";var e=void 0!==i?jQuery('div[data-cid="'+i+'"]').find(".fusion-bg-parallax"):jQuery(".fusion-bg-parallax");function s(){return cssua.ua.mobile}s()&&jQuery(".fusion-bg-parallax.video > div").remove(),e.next().addClass("bg-parallax-parent"),e.attr("style","").css("display","none"),e.each(function(){cssua.ua.mobile&&!jQuery(this).data("mobile-enabled")||(jQuery(this).removeData(),jQuery(this).fusionImageParallax({image:jQuery(this).data("bg-image"),backgroundColor:void 0!==jQuery(this).data("bg-color")?jQuery(this).data("bg-color"):"",blendMode:void 0!==jQuery(this).data("blend-mode")?jQuery(this).data("blend-mode"):"none",direction:jQuery(this).data("direction"),mobileenabled:jQuery(this).data("mobile-enabled"),mobiledevice:s(),bgAlpha:jQuery(this).data("bg-alpha"),opacity:jQuery(this).data("opacity"),width:jQuery(this).data("bg-width"),height:jQuery(this).data("bg-height"),velocity:jQuery(this).data("velocity"),align:jQuery(this).data("bg-align"),repeat:jQuery(this).data("bg-repeat"),target:jQuery(this).next(),gradientType:void 0!==jQuery(this).data("bg-gradient-type")?jQuery(this).data("bg-gradient-type"):"",gradientAngle:void 0!==jQuery(this).data("bg-gradient-angle")?jQuery(this).data("bg-gradient-angle"):"",gradientStartColor:void 0!==jQuery(this).data("bg-gradient-start-color")?jQuery(this).data("bg-gradient-start-color"):"",gradientStartPosition:void 0!==jQuery(this).data("bg-gradient-start-position")?jQuery(this).data("bg-gradient-start-position"):"",gradientEndColor:void 0!==jQuery(this).data("bg-gradient-end-color")?jQuery(this).data("bg-gradient-end-color"):"",gradientEndPosition:void 0!==jQuery(this).data("bg-gradient-end-position")?jQuery(this).data("bg-gradient-end-position"):"",gradientRadialDirection:void 0!==jQuery(this).data("bg-radial-direction")?jQuery(this).data("bg-radial-direction"):"",complete:function(){}}))})});var fusionVideoGeneralVars={"status_vimeo":"0","status_yt":"0"};function playVideoAndPauseOthers(e){var i=jQuery(e).find("[data-youtube-video-id]").find("iframe"),t=jQuery(e).data("flexslider").slides.eq(jQuery(e).data("flexslider").currentSlide),o=t.find("[data-youtube-video-id]").find("iframe");i.each(function(){jQuery(this).attr("id")!==o.attr("id")&&void 0!==window.$youtube_players&&void 0!==window.$youtube_players[jQuery(this).attr("id")]&&window.$youtube_players[jQuery(this).attr("id")].stopVideo()}),o.length&&("function"!=typeof fusionGetConsent||fusionGetConsent("youtube"))&&void 0!==window.$youtube_players&&(!o.parents("li").hasClass("clone")&&o.parents("li").hasClass("flex-active-slide")&&"yes"===o.parents("li").attr("data-autoplay")&&(void 0===window.$youtube_players||void 0===window.$youtube_players[o.attr("id")]||void 0===window.$youtube_players[o.attr("id")].playVideo?fusionYouTubeTimeout(o.attr("id")):"slide"===jQuery(e).data("animation")&&0===e.currentSlide&&void 0===jQuery(e).data("iteration")?window.$youtube_players[o.attr("id")]&&setTimeout(function(){window.$youtube_players[o.attr("id")].playVideo(),jQuery(e).data("iteration",1),e.stop(),setTimeout(function(){e.play()},1e3*window.$youtube_players[o.attr("id")].getDuration()-6e3)},2e3):window.$youtube_players[o.attr("id")].playVideo()),"yes"===t.attr("data-mute")&&void 0!==window.$youtube_players[o.attr("id")]&&void 0!==window.$youtube_players[o.attr("id")].mute&&window.$youtube_players[o.attr("id")].mute()),Number(fusionVideoGeneralVars.status_vimeo)&&("function"!=typeof fusionGetConsent||fusionGetConsent("vimeo"))&&setTimeout(function(){jQuery(e).find("[data-vimeo-video-id] > iframe").each(function(){new Vimeo.Player(jQuery(this)[0]).pause()}),0!==e.slides.eq(e.currentSlide).find("[data-vimeo-video-id] > iframe").length&&("yes"===jQuery(e.slides.eq(e.currentSlide)).data("autoplay")&&new Vimeo.Player(e.slides.eq(e.currentSlide).find("iframe")[0]).play(),"yes"===jQuery(e.slides.eq(e.currentSlide)).data("mute")&&new Vimeo.Player(e.slides.eq(e.currentSlide).find("iframe")[0]).setVolume(0))},300),jQuery(e).find("video").each(function(){"function"==typeof jQuery(this)[0].pause&&jQuery(this)[0].pause(),!jQuery(this).parents("li").hasClass("clone")&&jQuery(this).parents("li").hasClass("flex-active-slide")&&"yes"===jQuery(this).parents("li").attr("data-autoplay")&&"function"==typeof jQuery(this)[0].play&&jQuery(this)[0].play()})}jQuery(document).ready(function(){var e;e=jQuery("iframe"),jQuery.each(e,function(e,i){var t=jQuery(this).attr("src"),o=jQuery(this).data("privacy-src"),s=!t&&o?o:t;s&&Number(fusionVideoGeneralVars.status_vimeo)&&1<=s.indexOf("vimeo")&&jQuery(this).attr("id","player_"+(e+1))}),jQuery("body").hasClass("fusion-builder-live")?setTimeout(function(){jQuery(".full-video, .video-shortcode, .wooslider .slide-content, .fusion-portfolio-carousel .fusion-video").not("#bbpress-forums .full-video, #bbpress-forums .video-shortcode, #bbpress-forums .wooslider .slide-content, #bbpress-forums .fusion-portfolio-carousel .fusion-video").fitVids(),jQuery("#bbpress-forums").fitVids()},350):(jQuery(".full-video, .video-shortcode, .wooslider .slide-content, .fusion-portfolio-carousel .fusion-video").not("#bbpress-forums .full-video, #bbpress-forums .video-shortcode, #bbpress-forums .wooslider .slide-content, #bbpress-forums .fusion-portfolio-carousel .fusion-video").fitVids(),jQuery("#bbpress-forums").fitVids())});var fusionVideoBgVars={"status_vimeo":"0","status_yt":"0"};var $youtubeBGVideos={};function _fbRowGetAllElementsWithAttribute(e){var t,i,o=[],a=document.getElementsByTagName("*");for(t=0,i=a.length;t<i;t++)a[t].getAttribute(e)&&!jQuery(a[t]).parents(".tfs-slider").length&&o.push(a[t]);return o}function _fbRowOnPlayerReady(e){var t,i,o=e.target,a=0,n=!0;o.playVideo(),o.isMute&&o.mute(),0!==jQuery("[data-youtube-video-id="+o.getVideoData().video_id+"]").data("loop")&&(t=o.getCurrentTime(),i=+new Date/1e3,o.loopInterval=setInterval(function(){void 0!==o.loopTimeout&&clearTimeout(o.loopTimeout),t===o.getCurrentTime()?a=t+(+new Date/1e3-i):(a=o.getCurrentTime(),i=+new Date/1e3),t=o.getCurrentTime(),a+(n?.45:.21)>=o.getDuration()&&(o.pauseVideo(),o.seekTo(0),o.playVideo(),n=!1)},150))}function _fbRowOnPlayerStateChange(e){e.data===YT.PlayerState.ENDED?(void 0!==e.target.loopTimeout&&clearTimeout(e.target.loopTimeout),0!==jQuery("[data-youtube-video-id="+e.target.getVideoData().video_id+"]").data("loop")&&e.target.seekTo(0)):e.data===YT.PlayerState.PLAYING&&jQuery(e.target.getIframe()).parent().css("opacity","1")}function resizeVideo(e){var t,i,o,a,n,d,r,s,u,f,v,c,m,l,p,y=e.parent();y.find("iframe").hasClass("fusion-hidden")&&y.find("iframe").attr("data-privacy-src")||(null!==y.find("iframe").width()?((t=e).css({width:"auto",height:"auto",left:"auto",top:"auto"}),t.css("position","absolute"),l=y.find("> div").data("display"),a=y.width(),n=y.height(),i=y.outerWidth(),o=y.outerHeight(),s=[16,9],void 0!==e.attr("data-video-aspect-ratio")&&-1!==e.attr("data-video-aspect-ratio").indexOf(":")&&((s=e.attr("data-video-aspect-ratio").split(":"))[0]=parseFloat(s[0]),s[1]=parseFloat(s[1])),r=o,d=s[0]/s[1]*o,"contain"===l?(y.css("paddingTop",y.parent("li").find(".slide-content-container").css("paddingTop")),r>=o&&(u=o,f=s[0]/s[1]*o),f>=i&&(f=i,u=s[1]/s[0]*i)):d>=i&&r>=o?(u=o,f=s[0]/s[1]*o):(f=i,u=s[1]/s[0]*i),v=-(u-n)/2,y.hasClass("fusion-flex-container")?(c="auto",m="auto"):(c=-(f-a)/2,m="0"),1>y.find(".fusion-video-cover").length&&y.find("iframe").parent().prepend('<div class="fusion-video-cover">&nbsp;</div>'),y.is(":visible")&&(y.find(".fusion-video-cover").css({"z-index":0,width:f,height:u,position:"absolute"}),p="iframe",y.hasClass("video-background")&&(p="iframe.fusion-container-video-bg"),jQuery("body").hasClass("rtl")?y.find(p).parent().css({marginRight:c,marginLeft:m,marginTop:v}):y.find(p).parent().css({marginRight:m,marginLeft:c,marginTop:v}),y.find(p).css({width:f,height:u,"z-index":-1}))):setTimeout(function(){resizeVideo(e)},500))}function vimeoReady(e){var t,i=jQuery("#"+e).parents("[data-vimeo-video-id]").first();("function"!=typeof fusionGetConsent||fusionGetConsent("vimeo"))&&(t=new Vimeo.Player(e),"yes"===i.data("mute")&&t.setVolume(0),"no"===i.data("mute")&&t.setVolume(1),t.on("timeupdate",function(e){i.css("opacity","1"),t.off("timeupdate")}),jQuery("#"+e).attr("data-privacy-src")&&resizeVideo(i))}function fusionInitVimeoPlayers(){var e,t,i,o,a;if(("function"!=typeof fusionGetConsent||fusionGetConsent("vimeo"))&&Number(fusionVideoBgVars.status_vimeo)&&0<(e=jQuery("[data-vimeo-video-id]")).length)for(i=(t=e.find('> iframe, iframe[data-privacy-type="vimeo"]')).length,a=0;a<i;a++)o=t[a],"function"==typeof vimeoReady&&vimeoReady(o.getAttribute("id"))}jQuery(document).ready(function(e){e("body").hasClass("vc_editor")||(e(".bg-parallax.video, .fusion-bg-parallax.video").each(function(){e(this).prependTo(e(this).next().addClass("video")),e(this).css({opacity:Math.abs(parseFloat(e(this).attr("data-opacity"))/100)})}),e("[data-youtube-video-id], [data-vimeo-video-id]").parent().css("overflow","hidden"),e("[data-youtube-video-id], [data-vimeo-video-id]").each(function(){var t=e(this);setTimeout(function(){resizeVideo(t)},100)}),e("[data-youtube-video-id], [data-vimeo-video-id]").each(function(){var t=e(this);setTimeout(function(){resizeVideo(t)},1e3)}),e(window).on("resize",function(){e("[data-youtube-video-id], [data-vimeo-video-id]").each(function(){var t=e(this);setTimeout(function(){resizeVideo(t)},2)})}),fusionInitVimeoPlayers())}),jQuery(window).on("load fusion-element-render-fusion_builder_container",function(e,t){var i=void 0!==t?jQuery('div[data-cid="'+t+'"]').find("[data-youtube-video-id], [data-vimeo-video-id]"):jQuery("[data-youtube-video-id], [data-vimeo-video-id]");void 0!==t&&Number(fusionVideoBgVars.status_yt)&&"undefined"!=typeof onYouTubeIframeAPIReady&&onYouTubeIframeAPIReady(),i.each(function(){var e=jQuery(this);setTimeout(function(){resizeVideo(e)},500)})});var fusionLightboxVars={"status_lightbox":"1","lightbox_gallery":"1","lightbox_skin":"metro-white","lightbox_title":"1","lightbox_arrows":"1","lightbox_slideshow_speed":"5000","lightbox_autoplay":"","lightbox_opacity":"0.9","lightbox_desc":"1","lightbox_social":"1","lightbox_social_links":{"facebook":{"source":"https:\/\/www.facebook.com\/sharer.php?u={URL}","text":"Share on Facebook"},"twitter":{"source":"https:\/\/twitter.com\/share?url={URL}","text":"Share on Twitter"},"reddit":{"source":"https:\/\/reddit.com\/submit?url={URL}","text":"Share on Reddit"},"tumblr":{"source":"https:\/\/www.tumblr.com\/share\/link?url={URL}","text":"Share on Tumblr"},"mail":{"source":"mailto:?body={URL}","text":"Share by Email"}},"lightbox_deeplinking":"1","lightbox_path":"vertical","lightbox_post_images":"1","lightbox_animation_speed":"normal","l10n":{"close":"Press Esc to close","enterFullscreen":"Enter Fullscreen (Shift+Enter)","exitFullscreen":"Exit Fullscreen (Shift+Enter)","slideShow":"Slideshow","next":"Next","previous":"Previous"}};function avadaLightBoxInitializeLightbox(){window.$ilInstances&&jQuery.each(window.$ilInstances,function(t,i){window.$ilInstances[t].destroy()}),window.avadaLightBox.initialize_lightbox()}window.avadaLightBox={},void 0===window.$ilInstances&&(window.$ilInstances={}),window.avadaLightBox.initialize_lightbox=function(){"use strict";1===Number(fusionLightboxVars.status_lightbox)&&(window.avadaLightBox.set_title_and_caption(),window.avadaLightBox.activate_lightbox())},window.avadaLightBox.activate_lightbox=function(t){"use strict";var i,e=[],o=1;void 0===t&&(t=jQuery("body")),t.find('[data-rel^="prettyPhoto["], [rel^="prettyPhoto["], [data-rel^="iLightbox["], [rel^="iLightbox["]').each(function(){var t,i,o,a,n=["bmp","gif","jpeg","jpg","png","tiff","tif","jfif","jpe","svg","mp4","ogg","webm","webp"],r=0,s=jQuery(this).attr("href");for(void 0===s&&(s=""),t=0;t<n.length;t++)r+=String(s).toLowerCase().indexOf("."+n[t]);i=/http(s?):\/\/(www\.)?vimeo.com\/(\d+)/,s.match(i)&&(r=1),i=/^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#\&\?]*).*/,s.match(i)&&(r=1),-1*n.length===parseInt(r,10)&&(jQuery(this).addClass("fusion-no-lightbox"),jQuery(this).removeAttr("data-rel rel")),jQuery(this).hasClass("fusion-no-lightbox")||(null!=(o=this.getAttribute("data-rel"))&&-1===jQuery.inArray(o,e)&&e.push(o),null!=(a=this.getAttribute("data-rel"))&&(jQuery(this).parents(".gallery").length&&(a=a.replace("postimages",jQuery(this).parents(".gallery").attr("id")),jQuery(this).attr("data-rel",a)),-1===jQuery.inArray(a,e)&&e.push(a)))}),i=1,t.find(".tiled-gallery").each(function(){jQuery(this).find(".tiled-gallery-item > a").each(function(){var t=this.getAttribute("data-rel");null==t&&(t="iLightbox[tiled-gallery-"+i+"]",jQuery(this).attr("data-rel",t)),-1===jQuery.inArray(t,e)&&e.push(t)}),i++}),jQuery.each(e,function(t,i){o++,1===jQuery('[data-rel="'+i+'"], [rel="'+i+'"]').length?window.$ilInstances[i]=jQuery('[data-rel="'+i+'"], [rel="'+i+'"]').iLightBox(window.avadaLightBox.prepare_options(i,!1)):window.$ilInstances[i]=jQuery('[data-rel="'+i+'"], [rel="'+i+'"]').iLightBox(window.avadaLightBox.prepare_options(i))}),t.find('a[rel="prettyPhoto"], a[data-rel="prettyPhoto"], a[rel="iLightbox"], a[data-rel="iLightbox"]').each(function(){var t=jQuery(this).attr("href");""!==t&&void 0!==t&&(window.$ilInstances["single_"+o]=jQuery(this).iLightBox(window.avadaLightBox.prepare_options("single")),o++)}),t.find("#lightbox-link, .lightbox-link, .fusion-lightbox-link").each(function(){var t=jQuery(this).attr("href");""!==t&&void 0!==t&&(window.$ilInstances["single_"+o]=jQuery(this).iLightBox(window.avadaLightBox.prepare_options("single")),o++)}),fusionLightboxVars.lightbox_post_images&&t.find(".type-post .post-content a, #posts-container .post .post-content a, .fusion-blog-shortcode .post .post-content a, .type-avada_portfolio .project-content a, .fusion-portfolio .fusion-portfolio-wrapper .fusion-post-content, .summary-container .post-content a, .woocommerce-tabs .post-content a").has("img").each(function(){var t,i=["bmp","gif","jpeg","jpg","png","tiff","tif","jfif","jpe","svg","mp4","ogg","webm","webp"],e=0;for(t=0;t<i.length;t++)e+=String(jQuery(this).attr("href")).toLowerCase().indexOf("."+i[t]);-1*i.length===parseInt(e,10)&&(jQuery(this).addClass("fusion-no-lightbox"),jQuery(this).removeAttr("data-rel rel")),-1!==String(jQuery(this).attr("rel")).indexOf("prettyPhoto")||-1!==String(jQuery(this).attr("data-rel")).indexOf("prettyPhoto")||-1!==String(jQuery(this).attr("rel")).indexOf("iLightbox")||-1!==String(jQuery(this).attr("data-rel")).indexOf("iLightbox")||jQuery(this).hasClass("fusion-no-lightbox")||(jQuery(this).attr("data-caption",jQuery(this).parent().find("p.wp-caption-text").text()),window.$ilInstances["single_"+o]=jQuery(this).iLightBox(window.avadaLightBox.prepare_options("post")),o++)})},window.avadaLightBox.set_title_and_caption=function(){"use strict";jQuery('a[rel^="prettyPhoto"], a[data-rel^="prettyPhoto"]').each(function(){jQuery(this).attr("data-caption")||(jQuery(this).attr("title")?jQuery(this).attr("data-caption",jQuery(this).attr("title")):jQuery(this).attr("data-caption",jQuery(this).parents(".gallery-item").find(".gallery-caption").text())),jQuery(this).attr("data-title")||jQuery(this).attr("data-title",jQuery(this).find("img").attr("alt"))}),jQuery('a[rel^="iLightbox"], a[data-rel^="iLightbox"]').each(function(){jQuery(this).attr("data-caption")||jQuery(this).attr("data-caption",jQuery(this).parents(".gallery-item").find(".gallery-caption").text())})},window.avadaLightBox.prepare_options=function(t,i){"use strict";var e,o,a=!0;return void 0===i&&(i=fusionLightboxVars.lightbox_gallery,a=!(!0===fusionLightboxVars.lightbox_autoplay||"true"===fusionLightboxVars.lightbox_autoplay||1===fusionLightboxVars.lightbox_autoplay||"1"===fusionLightboxVars.lightbox_autoplay)),e={fast:100,slow:800,normal:400},o={skin:fusionLightboxVars.lightbox_skin,smartRecognition:!1,minScale:.075,show:{title:fusionLightboxVars.lightbox_title,speed:e[fusionLightboxVars.lightbox_animation_speed.toLowerCase()]},path:fusionLightboxVars.lightbox_path,controls:{slideshow:i,arrows:fusionLightboxVars.lightbox_arrows},slideshow:{pauseTime:fusionLightboxVars.lightbox_slideshow_speed,pauseOnHover:!1,startPaused:a},overlay:{opacity:fusionLightboxVars.lightbox_opacity},caption:{start:fusionLightboxVars.lightbox_desc,show:"",hide:""},isMobile:!0,callback:{onShow:function(t,i){var e=jQuery(t.currentElement).find('iframe[src*="youtube.com"]');jQuery('.ilightbox-container iframe[src*="youtube.com"]').not(e).each(function(){this.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}),jQuery(t.currentElement).trapFocus()},onAfterChange:function(t){var i=jQuery(t.currentElement).find('iframe[src*="youtube.com"]'),e=i.length?i.attr("src"):"";jQuery('.ilightbox-container iframe[src*="youtube.com"]').not(i).each(function(){this.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}),i.length&&-1!==e.indexOf("autoplay=1")&&i[0].contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*")},onHide:function(t){jQuery(document).off(".fusionLightbox")}}},fusionLightboxVars.lightbox_social&&(o.social={buttons:fusionLightboxVars.lightbox_social_links}),Number(fusionLightboxVars.lightbox_deeplinking)&&(o.linkId=t),o.text=window.fusionLightboxVars.l10n,o},window.avadaLightBox.refresh_lightbox=function(){"use strict";window.avadaLightBox.set_title_and_caption(),jQuery.each(window.$ilInstances,function(t,i){i.hasOwnProperty("refresh")&&i.refresh()})},jQuery(document).ajaxComplete(function(t,i,e){"use strict";-1===e.url.indexOf("https://vimeo.com/api/oembed.json")&&window.avadaLightBox.refresh_lightbox()}),jQuery(window).on("load",function(){"use strict";avadaLightBoxInitializeLightbox()}),jQuery.fn.trapFocus=function(){var t,i,e=jQuery(this).find('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');e.length&&(t=e[0],i=e[e.length-1],jQuery(document).on("keydown.fusionLightbox",function(e){("Tab"===e.key||9===e.keyCode)&&(e.shiftKey?t===document.activeElement&&(i.focus(),e.preventDefault()):i===document.activeElement&&(t.focus(),e.preventDefault()))}),t.focus())};function fusionInitTooltips(){jQuery('[data-toggle="tooltip"]').each(function(){var e;e=jQuery(this).parents(".fusion-header-wrapper").length?".fusion-header-wrapper":jQuery(this).parents("#side-header").length?"#side-header":"body",(!cssua.ua.mobile||cssua.ua.mobile&&"_blank"!==jQuery(this).attr("target"))&&jQuery(this).tooltip({container:e})})}jQuery(window).on("load",function(){fusionInitTooltips()}),jQuery(window).on("fusion-element-render-fusion_text fusion-element-render-fusion_social_links",function(e,t){var i,n=jQuery('div[data-cid="'+t+'"]').find('[data-toggle="tooltip"]');i=n.parents(".fusion-header-wrapper").length?".fusion-header-wrapper":n.parents("#side-header").length?"#side-header":"body",n.each(function(){(!cssua.ua.mobile||cssua.ua.mobile&&"_blank"!==jQuery(this).attr("target"))&&jQuery(this).tooltip({container:i})})});jQuery(document).ready(function(){jQuery(".fusion-sharing-box").each(function(){jQuery('meta[property="og:title"]').length||(jQuery("head title").after('<meta property="og:title" content="'+jQuery(this).data("title")+'"/>'),jQuery("head title").after('<meta property="og:description" content="'+jQuery(this).data("description")+'"/>'),jQuery("head title").after('<meta property="og:type" content="article"/>'),jQuery("head title").after('<meta property="og:url" content="'+jQuery(this).data("link")+'"/>'),jQuery("head title").after('<meta property="og:image" content="'+jQuery(this).data("image")+'"/>'))}),cssua.ua.mobile&&jQuery(".fusion-social-network-icon, .fusion-facebook-sharer-icon, .fusion-social-networks span a").each(function(e,t){"string"==typeof t.href&&0===t.href.indexOf("https://www.facebook.com/sharer.php")&&t.setAttribute("href",t.href.replace("https://www.facebook.com/sharer.php","https://m.facebook.com/sharer.php"))})});(function(){var t,i;t=this.jQuery||window.jQuery,i=t(window),t.fn.stick_in_parent=function(s){var o,n,e,r,c,a,f,l,u,g,d,k,h,p,y,v,m,b,_,C;for(null==s&&(s={}),k=s.sticky_class,a=s.inner_scrolling,d=s.recalc_every,g=s.parent,u=s.offset_top,l=s.spacer,e=s.bottoming,h=void 0!==s.transition_offset&&parseFloat(s.transition_offset),p=void 0!==s.observer&&s.observer,y=void 0!==s.scroll_transition&&parseFloat(s.scroll_transition),v=void 0!==s.clone&&s.clone,m=!1,adminBarHeight=fusion.getAdminbarHeight(),null==u&&(u=0),"fusion-container-stuck"===k&&"object"==typeof fusion&&"function"==typeof fusion.getHeight&&(u=fusion.getHeight(u)+adminBarHeight),null==g&&(g=void 0),null==a&&(a=!0),null==k&&(k="is_stuck"),o=t(document),null==e&&(e=!0),r=function(n,r,c,f,w,x,j,H){var z,I,A,O,Q,B,F,M,R,T,D,G,S;if(!n.data("sticky_kit")){if(n.attr("data-sticky_kit",!0),Q=o.height(),F=n.parent(),null!=g&&(F=F.closest(g)),!F.length)throw"failed to find stick parent";if(A=!1,z=!1,null!=l?D=l&&n.closest(l):v?(D=n.clone(!1)).addClass("fusion-sticky-spacer").removeClass("fusion-sticky-transition"):D=jQuery('<div class="fusion-sticky-spacer" />'),D&&D.css("position",n.css("position")),overlap=function(t,i){"object"==typeof t&&"object"==typeof t[0]&&(t[0].isIntersecting?n.removeClass("fusion-sticky-transition"):n.addClass("fusion-sticky-transition"))},p&&(S=new IntersectionObserver(overlap,{rootMargin:"0px",threshold:1})),e&&"function"==typeof ResizeObserver&&new ResizeObserver(function(t){let i=t[0].contentRect;f=i.height,_()}).observe(F[0]),(M=function(){var t,i,s,e,a,g;if(!H)return Q=o.height(),t=parseInt(F.css("border-top-width"),10),i=parseInt(F.css("padding-top"),10),r=parseInt(F.css("padding-bottom"),10),c=F.offset().top+t+i,f=F.height(),A&&(A=!1,z=!1,null==l&&(n.next(".fusion-sticky-spacer").length?D=n.next(".fusion-sticky-spacer"):n.insertAfter(D)),n.css({position:"",top:"",width:"",bottom:""}).removeClass(k),s=!0),a=0,(g=n.css("transform")).includes("matrix(")&&n.hasClass("fusion-sticky-scroll-transition")&&void 0!==(g=g.slice(7,g.length-1).split(", "))[5]&&(a=-parseFloat(g[5])),w=a+n.offset().top-(parseInt(n.css("margin-top"),10)||0)-u,x=n.outerHeight(!0),j=n.css("float"),D&&(e={width:n.outerWidth(!0),display:n.css("display"),"vertical-align":n.css("vertical-align"),float:j},v||(e.height=x),D.css(e)),s?G():void 0})(),x!==f){if(O=void 0,B=u,T=d,G=function(){var t,s,g,v,m,b;if(!H)return g=!1,null!=T&&0>=(T-=1)&&(T=d,M(),g=!0),null==T||g||o.height()===Q||(M(),g=!0),v=i.scrollTop(),null!=O&&(s=v-O),O=v,A?(e&&(m=v+x+B>f+c,z&&!m&&(z=!1,n.css({position:"fixed",bottom:"",top:B}).trigger("sticky_kit:unbottom"))),v<w&&(A=!1,B=u,null==l&&("left"!==j&&"right"!==j||n.insertAfter(D),D&&D.detach()),t={position:"",width:"",top:""},n.css(t).removeClass(k).trigger("sticky_kit:unstick"),"fusion-container-stuck"===k&&i.trigger("fusion-sticky-change")),a&&(b=i.height(),x+u>b&&(z||(B-=s,B=Math.max(b-x,B),B=Math.min(u,B),A&&n.css({top:B+"px"}))))):(v>w||v===w)&&(A=!0,(t={position:"fixed",top:B}).width="border-box"===n.css("box-sizing")?n.outerWidth()+"px":n.width()+"px",n.css(t).addClass(k),null==l&&(n.after(D),"left"!==j&&"right"!==j||D.append(n)),n.trigger("sticky_kit:stick"),"fusion-container-stuck"===k&&i.trigger("fusion-sticky-change")),!1===h||p||(!n.is(".fusion-sticky-transition")&&v-w>h?(n.addClass("fusion-sticky-transition"),"fusion-container-stuck"===k&&i.trigger("fusion-sticky-transition-change")):n.is(".fusion-sticky-transition")&&v-w<=h&&(n.removeClass("fusion-sticky-transition"),"fusion-container-stuck"===k&&i.trigger("fusion-sticky-transition-change"))),!1!==y&&0!==y&&(0>s&&!window.scrollDisabled?n.hasClass("fusion-scrolling-up")||(n.addClass("fusion-scrolling-up").removeClass("fusion-scrolling-down"),i.trigger("fusion-sticky-scroll-change")):n.hasClass("fusion-scrolling-down")||(n.addClass("fusion-scrolling-down").removeClass("fusion-scrolling-up"),i.trigger("fusion-sticky-scroll-change")),!n.is(".fusion-sticky-scroll-transition")&&v-w>y?(n.addClass("fusion-sticky-scroll-transition"),"fusion-container-stuck"===k&&i.trigger("fusion-sticky-scroll-change")):n.is(".fusion-sticky-scroll-transition")&&v-w<=y&&(n.removeClass("fusion-sticky-scroll-transition"),"fusion-container-stuck"===k&&i.trigger("fusion-sticky-scroll-change"))),A&&e&&(null==m&&(m=v+x+B>f+c),!z&&m)?(z=!0,"static"===F.css("position")&&F.css({position:"relative"}),n.css({position:"absolute",bottom:r,top:"auto"}).trigger("sticky_kit:bottom")):void 0},R=function(){return M(),G()},_=function(t){var i;"object"==typeof fusion&&"function"==typeof fusion.getHeight&&(u=void 0===s.offset_top?0:s.offset_top,"fusion-container-stuck"===k?u=fusion.getHeight(u)+adminBarHeight:"fusion-sidebar-stuck"===k&&jQuery(".fusion-tb-header").length&&"function"==typeof fusionGetStickyOffset&&(i=fusionGetStickyOffset())&&(u=i+adminBarHeight+50),B=u),R(),void 0!==t&&"string"==typeof t.type&&"resize"===t.type&&"function"==typeof W&&W()},"object"==typeof fusion&&"function"==typeof fusion.debounce)var W=fusion.debounce(_,350);return C=function(t){m||(m=!0,_(t),W(),setTimeout(function(){m=!1},100))},b=function(){p&&S.observe(n.next()[0])},I=function(){if(H=!0,i.off("touchmove",G),i.off("scroll",G),i.off("resize",_),t(document.body).off("sticky_kit:recalc",R),"fusion-container-stuck"===k&&i.trigger("fusion-sticky-change"),n.off("sticky_kit:detach",I),n.removeData("sticky_kit"),n.removeAttr("data-sticky_kit"),n.css({position:"",bottom:"",top:"",width:""}),n.removeClass("fusion-sticky-transition"),F.position("position",""),A)return null==l&&("left"!==j&&"right"!==j||n.insertAfter(D),D.remove()),n.removeClass(k);n.next(".fusion-sticky-spacer").length&&n.next(".fusion-sticky-spacer").remove()},D&&D.detach(),"fusion-sidebar-stuck"===k&&jQuery(".fusion-tb-header").length&&i.on("fusion-sticky-change fusion-sticky-scroll-change fusion-sticky-transition-change",C),i.on("touchmove",G),i.on("scroll",G),i.on("resize",_),t(document.body).on("sticky_kit:recalc",R),n.on("sticky_kit:detach",I),n.on("sticky_kit:stick",b),setTimeout(G,0)}}},c=0,f=this.length;c<f;c++)n=this[c],r(t(n));return this}}).call(this);jQuery(document).ready(function(){jQuery(".fusion-footer .fusion-footer-widget-area .fusion-column").each(function(){jQuery(this).is(":empty")&&jQuery(this).css("margin-bottom","0")}),jQuery(".fusion-social-links-footer").find(".fusion-social-networks").children().length||(jQuery(".fusion-social-links-footer").hide(),jQuery(".fusion-footer-copyright-area .fusion-copyright-notice").css("padding-bottom","0"))});function avadaAddQuantityBoxes(t,a){var e=!1,n=jQuery("body").hasClass("wcopc-product-single");t||(t=".qty"),a||(a=jQuery("div.quantity:not(.buttons_added), td.quantity:not(.buttons_added)").find(t)),a.length&&(jQuery.each(a,function(t,a){"date"===jQuery(a).prop("type")||"hidden"===jQuery(a).prop("type")||jQuery(a).parent().parent().hasClass("tribe-block__tickets__item__quantity__number")||jQuery(a).parent().hasClass("buttons_added")||(jQuery(a).parent().addClass("buttons_added").prepend('<input type="button" value="-" class="minus" />'),jQuery(a).addClass("input-text").after('<input type="button" value="+" class="plus" />'),e=!0)}),e&&(jQuery("input"+t+":not(.product-quantity input"+t+")").each(function(){var t=parseFloat(jQuery(this).attr("min"));t&&0<t&&parseFloat(jQuery(this).val())<t&&jQuery(this).val(t)}),jQuery(".plus, .minus").off("click"),jQuery(".plus, .minus").on("click",function(){var a=jQuery(this).parent().find(t),e=parseFloat(a.val()),i=parseFloat(a.attr("max")),o=parseFloat(a.attr("min")),u=a.attr("step");e&&""!==e&&"NaN"!==e||(e=0),""!==i&&"NaN"!==i||(i=""),""!==o&&"NaN"!==o||(o=0),"any"!==u&&""!==u&&void 0!==u&&"NaN"!==parseFloat(u)||(u=1),jQuery(this).is(".plus")?i&&(i==e||e>i)?a.val(i):a.val(e+parseFloat(u)):o&&(o==e||e<o)?a.val(o):0<e&&a.val(e-parseFloat(u)),n&&jQuery(this).closest("tr").hasClass("opc_cart_item")?a.trigger("input"):a.trigger("change")})))}function compositeAddQuantityBoxes(){avadaAddQuantityBoxes()}jQuery(window).on("load fusion-element-render-fusion_tb_woo_cart",function(){avadaAddQuantityBoxes()}),jQuery(document).ajaxComplete(function(){avadaAddQuantityBoxes()}),jQuery(document).ready(function(){jQuery(".yith-wacp-mini-cart-icon").on("click",function(){setTimeout(function(){avadaAddQuantityBoxes()},100)})}),jQuery(".composite_data").length&&jQuery(".composite_data").on("wc-composite-initializing",function(t,a){a.actions.add_action("component_selection_details_updated",compositeAddQuantityBoxes,10)});function fusionResizeCrossfadeImagesContainer(e){var i=0;e.find("img").each(function(){var e=jQuery(this).height();e>i&&(i=e)}),e.css("height",i)}jQuery(window).on("load",function(){jQuery(window).on("resize",function(){jQuery(".crossfade-images").each(function(){fusionResizeCrossfadeImagesContainer(jQuery(this))})}),jQuery(".crossfade-images").each(function(){fusionResizeCrossfadeImagesContainer(jQuery(this))})});function calcSelectArrowDimensions(e){var n=".avada-select-parent .select-arrow, .gravity-select-parent .select-arrow, .wpcf7-select-parent .select-arrow";(void 0!==e?jQuery(e).find(n):jQuery(n)).filter(":visible").each(function(){0<jQuery(this).prev().innerHeight()&&jQuery(this).css({height:jQuery(this).prev().innerHeight(),width:jQuery(this).prev().innerHeight(),"line-height":jQuery(this).prev().innerHeight()+"px"})})}jQuery(window).on("load fusion-element-render-fusion_tb_woo_cart fusion-element-render-fusion_tb_woo_checkout_tabs fusion-element-render-fusion_tb_woo_checkout_billing fusion-element-render-fusion_tb_woo_checkout_shipping fusion-element-render-fusion_woo_cart_shipping",function(){calcSelectArrowDimensions(),setTimeout(function(){calcSelectArrowDimensions()},100)}),jQuery(window).on("fusion-dynamic-content-render",function(e,n){calcSelectArrowDimensions(n)});jQuery(document).on("ready fusion-widget-render-Fusion_Widget_Tabs",function(){jQuery(".fusion-tabs-widget .fusion-tabs-nav li a").on("click",function(n){var t=jQuery(this).data("link");n.preventDefault(),jQuery(this).parents(".fusion-tabs-nav").find("li").removeClass("active"),jQuery(this).parent().addClass("active"),jQuery(this).parents(".fusion-tabs-widget").find(".fusion-tab-content").hide(),jQuery(this).parents(".fusion-tabs-widget").find('.fusion-tab-content[data-name="'+t+'"]').fadeIn()})});var avadaBbpressVars={"alert_box_text_align":"center","alert_box_text_transform":"capitalize","alert_box_dismissable":"yes","alert_box_shadow":"no","alert_border_size":"1"};jQuery(window).on("load",function(){jQuery(".bbp-template-notice").each(function(){var a="",s="";jQuery(this).hasClass("info")?(jQuery(this).attr("class","fusion-alert alert notice alert-info"),s="fa-info-circle"):(jQuery(this).attr("class","fusion-alert alert notice alert-warning"),s="fa-cog"),jQuery(this).addClass("fusion-alert-"+avadaBbpressVars.alert_box_text_align),"capitalize"===avadaBbpressVars.alert_box_text_transform&&jQuery(this).addClass("fusion-alert-capitalize"),"yes"===avadaBbpressVars.alert_box_dismissable&&(jQuery(this).addClass("alert-dismissable"),a='<button class="close toggle-alert" aria-hidden="true" data-dismiss="alert" type="button" aria-label="Close">&times;</button>'),"yes"===avadaBbpressVars.alert_box_shadow&&jQuery(this).addClass("alert-shadow"),jQuery(this).css("border-width",parseInt(avadaBbpressVars.alert_border_size,10)+"px"),jQuery(this).children("tt").contents().unwrap(),jQuery(this).children("p").contents().unwrap(),a+='<div class="fusion-alert-content-wrapper"><span class="alert-icon"><i class="fa-lg fa '+s+'" aria-hidden="true"></i></span><span class="fusion-alert-content">'+jQuery(this).html()+"</span>",jQuery(this).html(a),jQuery(this).children(".close").on("click",function(a){a.preventDefault(),jQuery(this).parent().slideUp()})}),jQuery(".bbp-login-form").each(function(){jQuery(this).children("tt").contents().unwrap()})});var avadaLiveSearchVars={"live_search":"1","ajaxurl":"https:\/\/calgaryroughnecks.com\/wp-admin\/admin-ajax.php","no_search_results":"No search results match your query. Please try again","min_char_count":"4","per_page":"100","show_feat_img":"1","display_post_type":"1"};var avadaLiveSearch=function(){var s=[];avadaLiveSearchVars.live_search&&jQuery(".fusion-live-search-input").each(function(){var e,a=jQuery(this),i=a.closest(".fusion-live-search"),t=i.find(".fusion-search-button"),o=i.find(".fusion-search-submit"),n=i.find(".fusion-search-results"),r=i.find('input[name^="post_type"]'),d=i.find('input[name="search_limit_to_post_titles"]'),u=n.closest(".fusion-builder-row"),c=i.closest(".fusion-header");function l(s){var e="";n.html(""),n.removeClass("suggestions-empty"),n.addClass("suggestions-added"),h("add"),jQuery.isEmptyObject(s)?(n.addClass("suggestions-empty"),e+='<div class="fusion-search-result">'+avadaLiveSearchVars.no_search_results+"</div>",n.append(e)):jQuery.each(s,function(s,a){e="",e+='<a class="fusion-search-result" href="'+a.post_url+'" title="'+a.title+'">',a.image_url&&(e+='<div class="fusion-search-image"><img class="fusion-search-image-tag" src="'+a.image_url+'" alt="Post Thumb'+a.id+'"/></div>'),e+='<div class="fusion-search-content">',e+='<div class="fusion-search-post-title">'+a.title+"</div>",a.type&&(e+='<div class="fusion-search-post-type">'+a.type+"</div>"),e+="</div>",e+="</a>",n.append(e)})}function v(){var e,t;if(i=a.closest(".fusion-live-search"),e=a.val(),e+=(t=function(){var s=[];return r.each(function(){s.push(this.value)}),s})().toString(),avadaLiveSearchVars.min_char_count<=a.val().length){if(void 0!==s[e])return void l(s[e]);i.find(".fusion-slider-loading").show(),i.find(".fusion-search-submit").css("color","transparent"),o.css("color","transparent"),jQuery.ajax({url:avadaLiveSearchVars.ajaxurl,type:"post",data:{action:"live_search_retrieve_posts",search:a.val(),per_page:avadaLiveSearchVars.per_page,show_feat_img:avadaLiveSearchVars.show_feat_img,display_post_type:avadaLiveSearchVars.display_post_type,post_type:t(),search_limit_to_post_titles:d.val()}}).done(function(a){s[e]=a,l(a),i.find(".fusion-slider-loading").hide(),o.css("color",o.attr("data-color"))})}else i.find(".fusion-slider-loading").hide(),o.css("color",o.attr("data-color")),n.removeClass("suggestions-added"),h("remove")}function h(s){u.length&&("add"===s?u.css("z-index","11"):u.css("z-index","")),c.length&&("add"===s?c.addClass("live-suggestion-added"):c.removeClass("live-suggestion-added"))}o.attr("data-color",o.css("color")),a.on("focusin",function(){avadaLiveSearchVars.min_char_count<=jQuery(this).val().length&&n.children(".fusion-search-result").length&&(n.addClass("suggestions-added"),h("add"))}),a.on("focusout",function(){n.is(":hover")||t.is(":hover")||(n.removeClass("suggestions-added"),h("remove"),n.addClass("suggestions-transition"),setTimeout(function(){n.removeClass("suggestions-transition")},300))}),jQuery(t,n).on("mouseleave",function(){a.is(":focus")||(n.removeClass("suggestions-added"),h("remove"),n.addClass("suggestions-transition"),setTimeout(function(){n.removeClass("suggestions-transition")},300))}),a.on("keyup",function(){clearTimeout(e),e=setTimeout(v,500)}),a.on("keydown",function(){clearTimeout(e)})})};jQuery(document).ready(function(){avadaLiveSearch()});jQuery(document).on("ready fusion-element-render-fusion_alert",function(e,n){(void 0!==n?jQuery('div[data-cid="'+n+'"]').find(".fusion-alert .close"):jQuery(".fusion-alert .close")).on("click",function(e){e.preventDefault(),jQuery(this).parent().slideUp()})});!function(e){"use strict";window.awb_oc_timeouts={},window.awbOffCanvas={timeouts:{},capitalize:function(e){return e.charAt(0).toUpperCase()+e.slice(1)},set:function(e,a,n){e=e?"_"+e:"_data";let t=localStorage.getItem("off_canvas"+e);(t=t?JSON.parse(t):{})[a]=n,localStorage.setItem("off_canvas"+e,JSON.stringify(t))},get:function(e,a){e=e?"_"+e:"_data";let n=localStorage.getItem("off_canvas"+e);return(n=n?JSON.parse(n):{})[a]||""},animationsWithoutDirection:["flash","rubberBand","shake","flipinx","flipiny","lightspeedin","flipOutX","flipOutY","lightSpeedOut"],open_off_canvas:function(a,n=!0,t=!1){const o=e('.awb-off-canvas-wrap[data-id="'+a+'"]'),s=o.find(".awb-off-canvas"),i=window["off_canvas_"+a],c=this;if(!o.length)return;if(o.hasClass("awb-show")&&t)return void this.close_off_canvas(a);if(this.set(a,"last_open_date",new Date),o.hasClass("awb-show")&&!t)return;let f=i.enter_animation;const r=i.enter_animation_direction&&"static"!==i.enter_animation_direction?this.capitalize(i.enter_animation_direction):"",l=i.enter_animation_speed||1;if(("off"===i.status_css_animations||"desktop"===i.status_css_animations&&i.is_mobile)&&(f=!1),f){if(this.animationsWithoutDirection.includes(f)||(f=f+"In"+r),s.addClass("fusion-animated "+f),s.attr("data-animation-type",f),s.css({visibility:"visible","animation-duration":l+"s"}),"sliding-bar"===i.type&&"push"===i.transition&&("left"===i.position||"right"===i.position)){const a={transition:"margin-left "+i.enter_animation_speed+"s"};a.marginLeft=s.outerWidth()+"px","right"===i.position&&(a.marginLeft="-"+s.outerWidth()+"px");let n="#wrapper";o.hasClass("init-for-studio")&&(n=".post-preview"),e(n).css(a),e('#sliders-container .tfs-slider[data-parallax="1"]').length&&e('#sliders-container .tfs-slider[data-parallax="1"]').css(a)}}else this.enableTrapFocus(o);if("yes"===i.overlay&&"no"===i.overlay_page_scrollbar&&e("html").css("overflow","hidden"),o.addClass("awb-show"),e('a[href^="#awb-oc__'+a+'"]').addClass("awb-oc-active"),n){const e=this.get(a,"open_count")||0;this.set(a,"open_count",e+1)}const d=parseInt(i.auto_close_after_time);d&&(window.awb_oc_timeouts["close_after_time_"+a]=setTimeout(()=>{c.close_off_canvas(a)},1e3*d));const _=parseInt(i.show_close_button_after_time);_&&(window.awb_oc_timeouts["show_close_button_"+a]=setTimeout(()=>{s.children(".off-canvas-close").removeClass("hidden")},1e3*_)),o.trigger(e.Event("awb-oc-opened"),[a])},close_off_canvas:function(a,n=!0){const t=e('.awb-off-canvas-wrap[data-id="'+a+'"]'),o=t.find(".awb-off-canvas"),s=window["off_canvas_"+a];if(0===t.length||void 0===s)return;let i=s.exit_animation;const c=s.exit_animation_direction&&"static"!==s.exit_animation_direction?this.capitalize(s.exit_animation_direction):"",f=s.exit_animation_speed||1;if(("off"===s.status_css_animations||"desktop"===s.status_css_animations&&s.is_mobile)&&(i=!1),i){if(this.animationsWithoutDirection.includes(i)||(i=i+"Out"+c),o.addClass("fusion-animated "+i),o.attr("data-animation-type",i),o.addClass("is-closing"),o.css("animation-duration",f+"s"),"sliding-bar"===s.type&&"push"===s.transition&&("left"===s.position||"right"===s.position)){const a={transition:"margin-left "+s.exit_animation_speed+"s",marginLeft:0};let n="#wrapper";t.hasClass("init-for-studio")&&(n=".post-preview"),e(n).css(a),e('#sliders-container .tfs-slider[data-parallax="1"]').length&&e('#sliders-container .tfs-slider[data-parallax="1"]').css(a)}}else"yes"===s.overlay&&t.hasClass("init-for-studio")&&o.addClass("is-closing"),"no"===s.overlay&&t.hasClass("init-for-studio")&&e("#icon-bar .go-back").click(),t.removeClass("awb-show");if(e('a[href^="#awb-oc__'+a+'"]').removeClass("awb-oc-active"),"yes"===s.overlay&&"no"===s.overlay_page_scrollbar&&e("html").css("overflow",""),setTimeout(()=>{this.removeHash()},10),n){const e=this.get(a,"close_count")||0;this.set(a,"close_count",e+1)}this.set(a,"closed",!0),clearTimeout(window.awb_oc_timeouts["close_after_time_"+a]),clearTimeout(window.awb_oc_timeouts["show_close_button_"+a]),parseInt(s.show_close_button_after_time)&&o.children(".off-canvas-close").addClass("hidden"),t.trigger(e.Event("awb-oc-closed"),[a])},removeHash(){const e=window.location.href.split("#")[0];history.replaceState({},"",e)},enableTrapFocus(e){if(!e.hasClass("type-popup"))return;const a=e.find(".awb-off-canvas"),n=a.find('a[href]:not([disabled]):visible, button:not([disabled]):visible, textarea:not([disabled]):visible, input[type="text"]:not([disabled]):visible, input[type="radio"]:not([disabled]):visible, input[type="checkbox"]:not([disabled]):visible, select:not([disabled]):visible'),t=n[0],o=n[n.length-1];setTimeout(()=>{a[0].focus()},100),a[0].addEventListener("keydown",function(e){("Tab"===e.key||9===e.keyCode)&&(e.shiftKey?document.activeElement===t&&(o.focus(),e.preventDefault()):document.activeElement===o&&(t.focus(),e.preventDefault()))})}},e(".awb-off-canvas").on("animationend",function(a){const n=e(this),t=n.parent();n.attr("data-animation-type")&&n.removeClass("fusion-animated").removeClass(n.attr("data-animation-type")).removeAttr("data-animation-type"),n.hasClass("is-closing")?(n.removeClass("is-closing"),n.addClass("oc-waiting-for-close"),t.removeClass("awb-show"),t.hasClass("init-for-studio")&&e("#icon-bar .go-back").click()):window.awbOffCanvas.enableTrapFocus(t)}),e(".awb-off-canvas-wrap").on("transitionend",function(a){const n=e(this).find(".awb-off-canvas");n.hasClass("is-closing")&&e(this).hasClass("init-for-studio")&&(e("#icon-bar .go-back").click(),n.removeClass("is-closing")),n.removeClass("oc-waiting-for-close")}),e(window).on("load",function(){if(location.hash&&location.hash.startsWith("#awb-oc__")||location.hash&&location.hash.startsWith("#awb-open-oc__")){const e=location.hash.split("__")[1];window.awbOffCanvas.open_off_canvas(e,!1,!1)}e(".awb-off-canvas-wrap.init-for-studio").each(function(a,n){const t=e(n).data("id");window.awbOffCanvas.open_off_canvas(t,!1,!1)}),e(".awb-off-canvas-wrap").each(function(){e(this).on("awb-oc-closed",function(){e(this).find(".fusion-youtube iframe").each(function(){this.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}),e(this).find(".fusion-vimeo iframe").each(function(){new Vimeo.Player(this).pause()}),e(this).find("video").each(function(){e(this).get(0).pause()}),e(this).find(".mejs-audio").each(function(){e(this).find(".mejs-playpause-button.mejs-pause button").trigger("click")})})})}),e('a[href^="#awb-oc__"]').on("click",function(a){a.preventDefault();const n=(e(this).attr("href")||"").split("__")[1];window.awbOffCanvas.open_off_canvas(n,!1,!0)}),e('a[href^="#awb-open-oc__"]').on("click",function(a){a.preventDefault();const n=(e(this).attr("href")||"").split("__")[1];window.awbOffCanvas.open_off_canvas(n,!1,!1)}),e('a[href^="#awb-close-oc__"]').on("click",function(a){a.preventDefault();const n=(e(this).attr("href")||"").split("__")[1];n?window.awbOffCanvas.close_off_canvas(n):e(".awb-off-canvas-wrap.awb-show").each(function(){const a=e(this).data("id");window.awbOffCanvas.close_off_canvas(a)}),window.awbOffCanvas.removeHash()}),e(".awb-off-canvas-wrap:not(.overlay-disable-close)").on("click",function(a){if(a.target===this){const a=e(this).data("id");window.awbOffCanvas.close_off_canvas(a)}}),e(".off-canvas-close").on("click",function(a){a.preventDefault();const n=e(this).closest(".awb-off-canvas-wrap").data("id");window.awbOffCanvas.close_off_canvas(n)}),e(document).on("keydown",function(a){if(27!==a.keyCode)return;e(".awb-off-canvas-wrap.awb-show:not(.disable-close-on-esc)").each(function(a,n){const t=e(n).data("id");window.awbOffCanvas.close_off_canvas(t)})}),e(".awb-off-canvas").on("mouseover",function(){const a=e(this).closest(".awb-off-canvas-wrap").data("id"),n=window["off_canvas_"+a];parseInt(n.auto_close_after_time)&&window.awb_oc_timeouts["close_after_time_"+a]&&clearTimeout(window.awb_oc_timeouts["close_after_time_"+a])}),e(".awb-off-canvas").on("mouseleave",function(){const a=e(this).closest(".awb-off-canvas-wrap").data("id"),n=window["off_canvas_"+a],t=parseInt(n.auto_close_after_time);t&&window.awb_oc_timeouts["close_after_time_"+a]&&(window.awb_oc_timeouts["close_after_time_"+a]=setTimeout(()=>{window.awbOffCanvas.close_off_canvas(a)},1e3*t))}),e("body").on("goback",function(a){e(".post-preview").css({"margin-right":0,"margin-left":0})}),e(".awb-off-canvas-wrap").each(function(a,n){const t=e(n).data("id"),o=window["off_canvas_"+t],s=e("#wpadminbar"),i=s.outerHeight();if("full"===o.height&&s.length&&e(n).find(".awb-off-canvas").css("height",`calc(100vh - ${i}px)`),"sliding-bar"===o.type&&"top"===o.position&&s.length&&e(n).find(".awb-off-canvas").css("margin-top",`${i}px`),"yes"===o.on_click){const a=o.on_click_element?e(o.on_click_element):null;a&&a.length&&(a.attr("data-off-canvas",o.on_click_element),e(document).on("click",o.on_click_element,function(e){e.preventDefault(),window.awbOffCanvas.open_off_canvas(t,!1)}))}"yes"===o.on_add_to_cart&&e(document).on("added_to_cart",function(){window.awbOffCanvas.open_off_canvas(t)});let c=!1;if(o.frequency){if("close"===o.frequency){!0===window.awbOffCanvas.get(t,"closed")&&(c=!0)}if("once"===o.frequency){0<window.awbOffCanvas.get(t,"open_count")&&(c=!0)}if("xtimes"===o.frequency&&o.frequency_xtimes){const e=window.awbOffCanvas.get(t,"open_count");parseInt(o.frequency_xtimes)<=e&&(c=!0)}if("session"===o.frequency){sessionStorage.getItem("off_canvas_"+t+"_opened")?c=!0:sessionStorage.setItem("off_canvas_"+t+"_opened",!0)}let e=window.awbOffCanvas.get(t,"last_open_date");const a=new Date;if("day"===o.frequency&&e){a<(e=new Date(e)).getTime()+864e5&&(c=!0)}if("week"===o.frequency&&e){a<(e=new Date(e)).getTime()+6048e5&&(c=!0)}if("month"===o.frequency&&e){e=new Date(e),a<new Date(e).setMonth(e.getMonth()+1)&&(c=!0)}if("xdays"===o.frequency&&o.frequency_xdays&&e){e=new Date(e);const n=parseInt(o.frequency_xdays);a<e.getTime()+24*n*60*60*1e3&&(c=!0)}}if("yes"===o.after_x_page_views){const e=window.awbOffCanvas.get(t,"page_views")||0;e<parseInt(o.number_of_page_views)&&(c=!0),window.awbOffCanvas.set(t,"page_views",e+1)}if("yes"===o.after_x_sessions){let e;sessionStorage.getItem("off_canvas_"+t)||(sessionStorage.setItem("off_canvas_"+t,!0),e=window.awbOffCanvas.get(t,"sessions")||0,window.awbOffCanvas.set(t,"sessions",e+1)),(e=window.awbOffCanvas.get(t,"sessions"))<=parseInt(o.number_of_sessions)&&(c=!0)}if(o.when_arriving_from){const e=document.referrer,a=window.location.host,n=o.when_arriving_from;let t;!e||e.includes(a)?t="internal":(t="external",/\.?(google|bing|yahoo|duckduckbot|yandex|baidu|msn|teoma|slurp)\./.test(e)&&(t="search")),c=!n.includes(t)}if("opened"===o.off_canvas_state&&"sliding-bar"===o.type&&o.has_js_rules&&!c&&(e(window).on("load",function(){window.awbOffCanvas.open_off_canvas(t)}),c=!0),!0===o.isOpened&&(c=!0),!c){if("yes"===o.on_page_load&&setTimeout(()=>{window.awbOffCanvas.open_off_canvas(t),o.isOpened=!0},100),"yes"===o.time_on_page&&o.time_on_page_duration&&setTimeout(()=>{window.awbOffCanvas.open_off_canvas(t),o.isOpened=!0},1e3*o.time_on_page_duration),"yes"===o.on_scroll){const a=o.scroll_direction,n=o.scroll_to,s=document.documentElement.scrollHeight;let i=o.scroll_position;if(i&&isNaN(i)&&(i=i.includes("%")?s/100*parseInt(i):parseInt(i)),"down"===a&&"element"===n){const e=o.scroll_element?document.querySelector(o.scroll_element):null;if(e){const a=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting&&(window.awbOffCanvas.open_off_canvas(t),o.isOpened=!0,a.unobserve(e.target))})});a.observe(e)}}else e(window).on("scroll",function(e){"up"===o.scroll_direction&&this.oldScroll>this.scrollY&&(o.isOpened||window.awbOffCanvas.open_off_canvas(t),o.isOpened=!0),"down"===o.scroll_direction&&this.oldScroll<this.scrollY&&this.scrollY>=i&&(o.isOpened||window.awbOffCanvas.open_off_canvas(t),o.isOpened=!0),this.oldScroll=this.scrollY})}if("yes"===o.exit_intent){const e=function(a){null==a.relatedTarget&&"select"!==a.target.nodeName.toLowerCase()&&(window.awbOffCanvas.open_off_canvas(t),document.removeEventListener("mouseout",e),o.isOpened=!0)};document.addEventListener("mouseout",e)}if("yes"===o.after_inactivity&&o.inactivity_duration){const e=o.inactivity_duration;let a;const n=function(){a=window.setTimeout(s,1e3*e)},s=function(){o.isOpened||window.awbOffCanvas.open_off_canvas(t),o.isOpened=!0},i=function(){document.addEventListener("mousemove",c,!1),document.addEventListener("mousedown",c,!1),document.addEventListener("keypress",c,!1),document.addEventListener("touchmove",c,!1),document.addEventListener("scroll",c,!1),n()},c=function(){window.clearTimeout(a),n()};i()}}})}(jQuery);var fusionFlexSliderVars={"status_vimeo":"","slideshow_autoplay":"1","slideshow_speed":"7000","pagination_video_slide":"","status_yt":"","flex_smoothHeight":"false"};function fusionInitPostFlexSlider(){jQuery(".fusion-flexslider.fusion-flexslider-loading, .flexslider.fusion-flexslider-loading:not(.tfs-slider)").not(".woocommerce .images #slider").each(function(){var e="false"!==fusionFlexSliderVars.flex_smoothHeight,i=Boolean(Number(fusionFlexSliderVars.slideshow_autoplay)),s=Number(fusionFlexSliderVars.slideshow_speed),r="fade",n=!0;2>jQuery(this).find(".slides li").length||(e=void 0!==jQuery(this).data("slideshow_smooth_height")?Boolean(Number(jQuery(this).data("slideshow_smooth_height"))):e,i=void 0!==jQuery(this).data("slideshow_autoplay")?Boolean(Number(jQuery(this).data("slideshow_autoplay"))):i,s=void 0!==jQuery(this).data("slideshow_speed")?Number(jQuery(this).data("slideshow_speed")):s,r=void 0!==jQuery(this).data("slideshow_animation")?String(jQuery(this).data("slideshow_animation")):r,n=void 0!==jQuery(this).data("slideshow_control_nav")?Boolean(Number(jQuery(this).data("slideshow_control_nav"))):n,jQuery().isotope&&0<jQuery(this).closest(".fusion-blog-layout-grid").length&&(e=!1),jQuery(this).flexslider({slideshow:i,slideshowSpeed:s,video:!0,smoothHeight:e,pauseOnHover:!1,useCSS:!1,prevText:"&#xf104;",nextText:"&#xf105;",animation:r,controlNav:n,start:function(e){e.removeClass("fusion-flexslider-loading"),jQuery(window).trigger("resize"),void 0!==e.slides&&0!==e.slides.eq(e.currentSlide).find("iframe").length?(Number(fusionFlexSliderVars.pagination_video_slide)?jQuery(e).find(".flex-control-nav").css("bottom","-20px"):jQuery(e).find(".flex-control-nav").hide(),Number(fusionFlexSliderVars.status_yt)&&!0===window.yt_vid_exists&&window.YTReady(function(){new YT.Player(e.slides.eq(e.currentSlide).find("iframe").attr("id"),{events:{onStateChange:onPlayerStateChange(e.slides.eq(e.currentSlide).find("iframe").attr("id"),e)}})})):Number(fusionFlexSliderVars.pagination_video_slide)?jQuery(e).find(".flex-control-nav").css("bottom","0"):jQuery(e).find(".flex-control-nav").show(),jQuery.isFunction(jQuery.fn.initElementAnimations)&&jQuery(window).initElementAnimations()},before:function(e){0!==e.slides.eq(e.currentSlide).find("iframe").length&&(Number(fusionFlexSliderVars.status_vimeo)&&-1!==e.slides.eq(e.currentSlide).find("iframe")[0].src.indexOf("vimeo")&&(void 0!==window.fusionVimeoPlayers[e.slides.eq(e.currentSlide).find("iframe")[0].getAttribute("id")]?window.fusionVimeoPlayers[e.slides.eq(e.currentSlide).find("iframe")[0].getAttribute("id")].pause():new Vimeo.Player(e.slides.eq(e.currentSlide).find("iframe")[0]).pause()),Number(fusionFlexSliderVars.status_yt)&&!0===window.yt_vid_exists&&window.YTReady(function(){new YT.Player(e.slides.eq(e.currentSlide).find("iframe").attr("id"),{events:{onStateChange:onPlayerStateChange(e.slides.eq(e.currentSlide).find("iframe").attr("id"),e)}})}),playVideoAndPauseOthers(e))},after:function(e){0!==e.slides.eq(e.currentSlide).find("iframe").length?(Number(fusionFlexSliderVars.pagination_video_slide)?jQuery(e).find(".flex-control-nav").css("bottom","-20px"):jQuery(e).find(".flex-control-nav").hide(),Number(fusionFlexSliderVars.status_yt)&&!0===window.yt_vid_exists&&window.YTReady(function(){new YT.Player(e.slides.eq(e.currentSlide).find("iframe").attr("id"),{events:{onStateChange:onPlayerStateChange(e.slides.eq(e.currentSlide).find("iframe").attr("id"),e)}})})):Number(fusionFlexSliderVars.pagination_video_slide)?jQuery(e).find(".flex-control-nav").css("bottom","0"):jQuery(e).find(".flex-control-nav").show(),jQuery('[data-spy="scroll"]').each(function(){jQuery(this).scrollspy("refresh")})}}),e="false"!==fusionFlexSliderVars.flex_smoothHeight)})}function fusionDestroyPostFlexSlider(){jQuery(".fusion-flexslider").not(".woocommerce .images #slider").flexslider("destroy")}jQuery(window).on("load",function(){var e,i="false"!==fusionFlexSliderVars.flex_smoothHeight;window.fusionVimeoPlayers=[],jQuery().flexslider&&(Number(fusionFlexSliderVars.status_vimeo)&&jQuery(".flexslider").find("iframe").each(function(){var i=jQuery(this).attr("id"),s=jQuery(this).attr("src");i&&-1!==s.indexOf("vimeo")&&(window.fusionVimeoPlayers[i]=new Vimeo.Player(i),e=jQuery("#"+i).parents("li"),window.fusionVimeoPlayers[i].on("play",function(){jQuery("#"+i).parents("li").parent().parent().flexslider("pause")}),window.fusionVimeoPlayers[i].on("pause",function(){jQuery(e).attr("data-vimeo-paused","true"),"yes"===jQuery(e).attr("data-loop")?jQuery("#"+i).parents("li").parent().parent().flexslider("pause"):jQuery("#"+i).parents("li").parent().parent().flexslider("play")}),window.fusionVimeoPlayers[i].on("ended",function(){"yes"!==jQuery(e).attr("data-loop")&&"true"!==jQuery(e).attr("data-vimeo-paused")&&jQuery("#"+i).parents("li").parent().parent().flexslider("next"),"true"===jQuery(e).attr("data-vimeo-paused","true")&&jQuery(e).attr("data-vimeo-paused","false")}))}),fusionInitPostFlexSlider(),1<=jQuery(".flexslider-attachments").length&&jQuery.each(jQuery(".flexslider-attachments"),function(){void 0!==jQuery(this).data("flexslider")&&jQuery(this).flexslider("destroy"),jQuery(this).flexslider({slideshow:Boolean(Number(fusionFlexSliderVars.slideshow_autoplay)),slideshowSpeed:fusionFlexSliderVars.slideshow_speed,video:!1,smoothHeight:i,pauseOnHover:!1,useCSS:!1,prevText:"&#xf104;",nextText:"&#xf105;",controlNav:"thumbnails",start:function(e){jQuery(e).find(".fusion-slider-loading").remove(),e.removeClass("fusion-flexslider-loading")}}),i&&jQuery(this).find(".flex-control-nav").css("position","absolute")}))}),jQuery(window).on("fusion-element-render-fusion_recent_posts fusion-element-render-fusion_postslider",function(e,i){(void 0!==i?jQuery('div[data-cid="'+i+'"]'):jQuery(document)).find(".fusion-flexslider").not(".woocommerce .images #slider").flexslider()}),jQuery(window).on("fusion-element-render-fusion_slider",function(e,i){var s=(void 0!==i?jQuery('div[data-cid="'+i+'"]'):jQuery(document)).find(".flexslider:not(.tfs-slider)");void 0!==s&&s.flexslider()}),jQuery(window).on("fusion-element-render-fusion_slide",function(e,i){var s=jQuery('li[data-cid="'+i+'"]');0<s.length&&void 0!==s.data("parent-cid")&&(void 0!==s.closest(".flexslider:not(.tfs-slider)").data("flexslider")&&jQuery(s.closest(".flexslider:not(.tfs-slider)")).flexslider("destroy"),jQuery(window).trigger("fusion-element-render-fusion_slider",s.data("parent-cid")))}),jQuery(window).on("fusion-element-render-fusion_post_cards",function(e,i){fusionInitPostFlexSlider()}),window.addEventListener("fusion-reinit-single-post-slideshow",function(){fusionInitPostFlexSlider()});!function(t){function e(e,n,i,s){var a=e.text().split(n),l="";a.length&&(t(a).each(function(t,e){l+='<span class="'+i+(t+1)+'">'+e+"</span>"+s}),e.empty().append(l))}var n={init:function(){return this.each(function(){e(t(this),"","char","")})},words:function(){return this.each(function(){e(t(this)," ","word"," ")})},lines:function(){return this.each(function(){var n="eefec303079ad17405c889e092e105b0";e(t(this).children("br").replaceWith(n).end(),n,"line","")})}};t.fn.lettering=function(e){return e&&n[e]?n[e].apply(this,[].slice.call(arguments,1)):"letters"!==e&&e?(t.error("Method "+e+" does not exist on jQuery.lettering"),this):n.init.apply(this,[].slice.call(arguments,0))}}(jQuery),function(t){"use strict";function e(e){return/In/.test(e)||t.inArray(e,t.fn.textillate.defaults.inEffects)>=0}function n(e){return/Out/.test(e)||t.inArray(e,t.fn.textillate.defaults.outEffects)>=0}function i(t){return"true"!==t&&"false"!==t?t:"true"===t}function s(e){var n=e.attributes||[],s={};return n.length?(t.each(n,function(t,e){var n=e.nodeName.replace(/delayscale/,"delayScale");/^data-in-*/.test(n)?(s.in=s.in||{},s.in[n.replace(/data-in-/,"")]=i(e.nodeValue)):/^data-out-*/.test(n)?(s.out=s.out||{},s.out[n.replace(/data-out-/,"")]=i(e.nodeValue)):/^data-*/.test(n)&&(s[n.replace(/data-/,"")]=i(e.nodeValue))}),s):s}function a(i,s,a){var l=i.length;l?(s.shuffle&&(i=function(t){for(var e,n,i=t.length;i;e=parseInt(Math.random()*i),n=t[--i],t[i]=t[e],t[e]=n);return t}(i)),s.reverse&&(i=i.toArray().reverse()),t.each(i,function(i,o){var c=t(o);function r(){e(s.effect)?"typeOut"===s.effect?c.css("display","inline-block"):c.css("visibility","visible"):n(s.effect)&&("typeOut"===s.effect?c.css("display","none"):c.css("visibility","hidden")),!(l-=1)&&a&&a()}var u=s.sync?s.delay:s.delay*i*s.delayScale;c.text()?setTimeout(function(){var t,e,n,i;t=c,e=s.effect,n=r,i=0,"clipIn"===e?(t.css("width","auto"),i=t.width(),t.css("overflow","hidden"),t.css("width","0"),t.css("visibility","visible"),t.animate({width:i+.3*parseFloat(t.css("font-size"))},1200,function(){setTimeout(function(){n&&n()},100)})):"clipOut"===e?t.animate({width:"2px"},1200,function(){setTimeout(function(){n&&n()},100)}):"typeIn"===e?t.addClass("fusion-title-animated "+e).show():t.addClass("fusion-title-animated "+e).css("visibility","visible").show(),"typeIn"!==e&&"typeOut"!==e||!jQuery("html").hasClass("ua-edge")||(t.removeClass("fusion-title-animated "+e).css("visibility","visible"),n&&n()),t.one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oAnimationEnd AnimationEnd",function(){t.removeClass("fusion-title-animated "+e),n&&n()})},u):r()})):a&&a()}t.fn.textillate=function(i,l){return this.each(function(){var o=t(this),c=o.data("textillate"),r=t.extend(!0,{},t.fn.textillate.defaults,s(this),"object"==typeof i&&i);c?"string"==typeof i?c[i].apply(c,[].concat(l)):c.setOptions.call(c,r):o.data("textillate",c=new function(i,l){var o=this,c=t(i);o.init=function(){o.$texts=c.find(l.selector),o.$texts.length||(o.$texts=t('<ul class="texts"><li>'+c.html()+"</li></ul>"),c.html(o.$texts)),o.$texts.hide(),o.$current=t('<span class="fusion-textillate">').html(o.$texts.find(":first-child").html()).prependTo(c),e(l.in.effect)?o.$current.css("visibility","hidden"):n(l.out.effect)&&o.$current.css("visibility","visible"),o.setOptions(l),o.timeoutRun=null,setTimeout(function(){o.options.autoStart&&o.start()},o.options.initialDelay)},o.setOptions=function(t){o.options=t},o.triggerEvent=function(e){var n=t.Event(e+".tlt");return c.trigger(n,o),n},o.in=function(i,l){i=i||0;var r,u=o.$texts.find(":nth-child("+((i||0)+1)+")"),f=t.extend(!0,{},o.options,u.length?s(u[0]):{}),d=o.$current.closest(".fusion-animated-texts-wrapper");u.addClass("current"),o.triggerEvent("inAnimationBegin"),c.attr("data-active",u.data("id")),"line"==o.options.length?o.$current.html(u.html()).lettering("lines"):o.$current.html(u.html()).lettering("words"),"char"==o.options.length&&o.$current.find('[class^="word"]').css({display:"inline-block","-webkit-transform":"translate3d(0,0,0)","-moz-transform":"translate3d(0,0,0)","-o-transform":"translate3d(0,0,0)",transform:"translate3d(0,0,0)"}).each(function(){t(this).lettering()}),r=o.$current.find('[class^="'+o.options.length+'"]').css("display","inline-block"),e(f.in.effect)?"typeIn"===f.in.effect?r.css("display","none"):r.css("visibility","hidden"):n(f.in.effect)&&r.css("visibility","visible"),"typeIn"!==f.in.effect&&"clipIn"!==f.in.effect||void 0!==d.attr("style")&&-1!==d.attr("style").indexOf("width")||o.$current.closest(".fusion-animated-texts-wrapper").css("width","auto"),o.currentIndex=i,a(r,f.in,function(){o.triggerEvent("inAnimationEnd"),f.in.callback&&f.in.callback(),l&&l(o)})},o.out=function(e){var n=o.$texts.find(":nth-child("+((o.currentIndex||0)+1)+")"),i=o.$current.find('[class^="'+o.options.length+'"]'),l=t.extend(!0,{},o.options,n.length?s(n[0]):{});o.triggerEvent("outAnimationBegin"),a(i,l.out,function(){n.removeClass("current"),o.triggerEvent("outAnimationEnd"),c.removeAttr("data-active"),l.out.callback&&l.out.callback(),e&&e(o)})},o.start=function(t){setTimeout(function(){o.triggerEvent("start"),function t(e){o.in(e,function(){var n=o.$texts.children().length;e+=1,!o.options.loop&&e>=n?(o.options.callback&&o.options.callback(),o.triggerEvent("end")):(e%=n,o.timeoutRun=setTimeout(function(){o.out(function(){t(e)})},o.options.minDisplayTime))})}(t||0)},o.options.initialDelay)},o.stop=function(){o.timeoutRun&&(clearInterval(o.timeoutRun),o.timeoutRun=null)},o.init()}(this,r))})},t.fn.textillate.defaults={selector:".texts",loop:!0,minDisplayTime:1200,initialDelay:0,in:{effect:"fadeIn",delayScale:1.5,delay:100,sync:!1,reverse:!1,shuffle:!1,callback:function(){}},out:{effect:"fadeOut",delayScale:1.5,delay:100,sync:!1,reverse:!1,shuffle:!1,callback:function(){}},autoStart:!0,inEffects:[],outEffects:["hinge"],callback:function(){},type:"word"}}(jQuery);!function(t){"use strict";t.fn.awbAnimateTitleHighlightsAndRotations=function(){"IntersectionObserver"in window?t.each(fusion.getObserverSegmentation(t(this)),function(i){var n=fusion.getAnimationIntersectionData(i),e=new IntersectionObserver(function(i,n){t.each(i,function(i,a){var o=t(a.target);fusion.shouldObserverEntryAnimate(a,n)&&(t(o).hasClass("fusion-title-rotating")&&t(o).animateTitleRotations(),t(o).hasClass("fusion-title-highlight")&&t(o).animateTitleHighlights(),e.unobserve(a.target))})},n);t(this).each(function(){e.observe(this)})}):t(this).each(function(){var i=t(this);t(i).hasClass("fusion-title-rotating")&&t(i).animateTitleRotations(),t(i).hasClass("fusion-title-highlight")&&t(i).animateTitleHighlights()})},t.fn.animateTitleRotations=function(){var i=t(this),n=i.find(".fusion-animated-texts-wrapper"),e=i.hasClass("fusion-loop-on"),a=t(i).closest("[data-animationduration]").data("animationduration"),o=void 0!==a?200*parseFloat(a):0;n.removeData("textillate"),t(i).find(".fusion-textillate").remove(),t(i).is(".fusion-title-typeIn,.fusion-title-clipIn")||n.awbAnimatedTitleRotationWidth(),n.textillate({selector:".fusion-animated-texts",type:n.attr("data-length"),minDisplayTime:n.attr("data-minDisplayTime"),loop:e,initialDelay:o})},t.fn.animateTitleHighlights=function(){var i,n=t(this),e={circle:["M344.6,40.1c0,0-293-3.4-330.7,40.3c-5.2,6-3.5,15.3,3.3,19.4c65.8,39,315.8,42.3,451.2-3 c6.3-2.1,12-6.1,16-11.4C527.9,27,242,16.1,242,16.1"],underline_zigzag:["M6.1,133.6c0,0,173.4-20.6,328.3-14.5c154.8,6.1,162.2,8.7,162.2,8.7s-262.6-4.9-339.2,13.9 c0,0,113.8-6.1,162.9,6.9"],x:["M25.8,37.1c0,0,321.2,56.7,435.5,82.3","M55.8,108.7c0,0,374-78.3,423.6-76.3"],strikethrough:["M22.2,93.2c0,0,222.1-11.3,298.8-15.8c84.2-4.9,159.1-4.7,159.1-4.7"],curly:["M9.4,146.9c0,0,54.4-60.2,102.1-11.6c42.3,43.1,84.3-65.7,147.3,0.9c37.6,39.7,79.8-52.6,123.8-14.4 c68.6,59.4,107.2-7,107.2-7"],diagonal_bottom_left:["M6.5,127.1C10.6,126.2,316.9,24.8,497,23.9"],diagonal_top_left:["M7.2,28.5c0,0,376.7,64.4,485.2,93.4"],double:["M21.7,145.7c0,0,192.2-33.7,456.3-14.6","M13.6,28.2c0,0,296.2-22.5,474.9-5.4"],double_underline:["M10.3,130.6c0,0,193.9-24.3,475.2-11.2","M38.9,148.9c0,0,173.8-35.3,423.3-11.8"],underline:["M8.1,146.2c0,0,240.6-55.6,479-13.8"]}[t(n).data("highlight")],a=t();"object"==typeof e&&e.forEach(function(i){a=a.add(t("<path>",{d:i}))}),i=t("<svg>",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 500 150",preserveAspectRatio:"none"}).html(a),t(n).find(".fusion-highlighted-text-wrapper svg").remove(),t(n).find(".fusion-highlighted-text").after(i[0].outerHTML)},t.fn.awbAnimatedTitleRotationWidth=function(){var i=t(this),n=i.find(".fusion-animated-texts"),e=0,a=0,o=!1;e=parseInt(i.find(".fusion-animated-text").css("font-size")),e*=.6,n.is(":visible")||(o=!0,n.show()),t(i).find(".fusion-animated-text").each(function(){var i=t(this).width();i>a&&(a=i)}),o&&n.hide(),i.css("width",a+e)},t.fn.awbAnimatedTitleRotationWidthRecalc=function(){t(this).each(function(){t(this).is(".fusion-title-typeIn,.fusion-title-clipIn")||t(this).find(".fusion-animated-texts-wrapper").awbAnimatedTitleRotationWidth()})}}(jQuery),jQuery(window).on("load",function(){setTimeout(function(){jQuery(".fusion-title-rotating, .fusion-title-highlight").awbAnimateTitleHighlightsAndRotations()},400),jQuery(window).on("fusion-resize-horizontal",function(){jQuery(".fusion-title-rotating").awbAnimatedTitleRotationWidthRecalc()})}),jQuery(window).on("fusion-column-resized fusion-element-render-fusion_title",function(t,i){var n=jQuery('div[data-cid="'+i+'"]').find(".fusion-title-rotating, .fusion-title-highlight");n.length&&(n.awbAnimateTitleHighlightsAndRotations(),n.awbAnimatedTitleRotationWidthRecalc())});var fusionAnimationsVars={"status_css_animations":"desktop"};function fusionSetAnimationData(i){"off"===fusionAnimationsVars.status_css_animations||cssua.ua.mobile&&"desktop_and_mobile"!==fusionAnimationsVars.status_css_animations?jQuery("body").addClass("dont-animate").removeClass("do-animate"):(jQuery("body").addClass("do-animate").removeClass("dont-animate"),void 0!==i&&void 0!==i.data.custom&&jQuery(window).initElementAnimations())}!function(i){"use strict";window.awbAnimationObservers={},i.fn.initElementAnimations=function(){i.each(window.awbAnimationObservers,function(n,t){i.each(t[0],function(i,n){t[1].unobserve(n)}),delete window.awbAnimationObservers[n]}),"IntersectionObserver"in window?i.each(fusion.getObserverSegmentation(i(".fusion-animated")),function(n){var t=fusion.getAnimationIntersectionData(n),e=new IntersectionObserver(function(n,o){i.each(n,function(n,o){var a,s,u,r,d=i(o.target);o.isIntersecting&&(r=!0,0!==t.threshold&&(i(window).height()<d.outerHeight()?i(window).height()/d.outerHeight()>o.intersectionRatio&&(r=!1):1>o.intersectionRatio&&(r=!1)),r&&(d.parents(".fusion-delayed-animation").length||(d.css("visibility","visible"),a=d.data("animationtype"),s=d.data("animationduration"),d.addClass(a),s&&(d.css("animation-duration",s+"s"),u=d,setTimeout(function(){u.removeClass(a)},1e3*s))),e.unobserve(o.target)))})},t);i(this).each(function(){e.observe(this)}),window.awbAnimationObservers[n]=[this,e]}):i(".fusion-animated").each(function(){i(this).parents(".fusion-delayed-animation").length||i(this).css("visibility","visible")})}}(jQuery),jQuery(document).ready(function(){fusionSetAnimationData()}),jQuery(window).on("load",function(){jQuery("body").hasClass("fusion-builder-live")||setTimeout(function(){jQuery(window).initElementAnimations()},300)}),jQuery(window).on("CSSAnimations",{custom:!0},fusionSetAnimationData);jQuery(window).on("load",function(){cssua.ua.ios&&7===parseInt(cssua.ua.ios,10)&&jQuery(".button-icon-divider-left, .button-icon-divider-right").each(function(){var i=jQuery(this).parent().outerHeight();jQuery(this).css("height",i)})});var fusionMenuVars={"mobile_submenu_open":"Open submenu of %s"};var fusionNavClickExpandBtn=function(e){var n=jQuery(e).parent();n.toggleClass("expanded"),n.attr("aria-expanded","false"===n.attr("aria-expanded")?"true":"false"),jQuery(e).attr("aria-expanded","false"===jQuery(e).attr("aria-expanded")?"true":"false"),n.hasClass("expanded")?n.find("ul > li").find("> a, > button").removeAttr("tabindex"):n.find("ul > li").find("> a, > button").attr("tabindex","-1"),fusionNavMobilePosition(n[0])},fusionNavClickExpandSubmenuBtn=function(e){var n=jQuery(e),s=n.closest("nav"),a=n.parent();s.hasClass("collapse-enabled")?a.children(".fusion-megamenu-wrapper, .sub-menu").slideToggle(400,function(){"none"===jQuery(this).css("display")&&jQuery(this).css("display","")}):(s.find(".fusion-open-nav-submenu").each(function(n,s){var a=jQuery(s);a.parent().find(e).length||(a.attr("aria-expanded","false"),a.parent("li").removeClass("expanded"))}),a.children(".fusion-megamenu-wrapper, .sub-menu").css("display","")),n.attr("aria-expanded","false"===n.attr("aria-expanded")?"true":"false"),"true"===n.attr("aria-expanded")?(a.addClass("expanded"),a.hasClass("fusion-megamenu-menu")&&"undefined"!=typeof fusionNavMegamenuPosition&&fusionNavMegamenuPosition(a),s.hasClass("submenu-mode-flyout")&&!s.hasClass("collapse-enabled")&&(s.addClass("flyout-submenu-expanded"),s.parents(".fusion-row").last().addClass("fusion-row-on-top"),jQuery(document).on("keyup.fusion_flyout",function(e){"Escape"===e.key&&n.trigger("click")}),0<a.find(".fusion-search-form-content").length&&setTimeout(function(){a.find(".fusion-search-form-content input.s").focus()},100),jQuery("body").hasClass("fusion-builder-live")&&jQuery("body").hasClass("avada-footer-fx-parallax-effect")&&jQuery("body").addClass("avada-flyout-submenu-active"))):(a.removeClass("expanded"),n.blur(),s.hasClass("submenu-mode-flyout")&&(s.removeClass("flyout-submenu-expanded"),s.parents(".fusion-row").last().removeClass("fusion-row-on-top"),jQuery(document).off("keyup.fusion_flyout"),jQuery("body").hasClass("avada-flyout-submenu-active")&&jQuery("body").removeClass("avada-flyout-submenu-active"))),fusionNavSubmenuDirection(a)},fusionNavMobilePosition=function(e){var n=jQuery(e),s=n.children("ul");n.hasClass("mobile-size-full-absolute")&&(n.hasClass("collapse-enabled")?s.offset({left:0}).css("width","calc(100vw - "+avadaGetScrollBarWidth()+"px"):s.css({width:"",left:"",right:""}))},fusionNavSubmenuDirection=function(e){var n,s,a,u,o,t=jQuery(e),i=t.closest(".fusion-row"),r=i.offset().left,l=r+i.width(),d=t.closest("nav"),c=t.children("ul"),f=d.hasClass("direction-row"),m=d.hasClass("expand-left"),h=t.closest(".fusion-megamenu-wrapper").length,p=f&&t.parent()[0]===d.children("ul")[0];c&&!h&&!d.hasClass("submenu-mode-flyout")&&c.length&&(jQuery("body").hasClass("side-header")&&0<d.closest("#side-header.fusion-tb-header").length||(u=c.css("left"),o=c.css("right"),c.css({left:"",right:"",transition:"all 0s",opacity:"0"}),a=(n=c.offset().left)+(s=c.width()),m&&o!==c.css("right")||!m&&u!==c.css("left")?setTimeout(function(){c.css({transition:"",opacity:""})},10):c.css({transition:"",opacity:""}),m&&n<r?p?c.css("right",-1*s+c.parent().width()):c.css("right",-1*s):!m&&a>l&&(p?c.css("left",-1*s+c.parent().width()):c.css("left",-1*s)),!p&&f&&t.width()>2*c.width()&&t.addClass("reposition-arrows")))},fusionNavSearchOverlay=function(e){var n=jQuery(e).closest("nav");n.toggleClass("has-search-overlay"),n.addClass("menu-element-search-transition"),setTimeout(function(){n.removeClass("menu-element-search-transition")},n.data("transition-time")),n.hasClass("has-search-overlay")?(n.find("> .fusion-overlay-search input[type=search]").focus(),n.find(".fusion-menu-icon-search").attr("aria-expanded","true")):n.find(".fusion-menu-icon-search").attr("aria-expanded","false")},fusionNavCloseFlyoutSub=function(e){var n=jQuery(e).parent();fusionNavClickExpandSubmenuBtn(n.find(".menu-item-has-children.expanded > .fusion-open-nav-submenu"))},fusionNavAltArrowsClass=function(e){var n;(jQuery(e).hasClass("dropdown-arrows-both")||jQuery(e).hasClass("dropdown-arrows-child"))&&((n=jQuery(e).find("ul.sub-menu li:first-child")).on("mouseenter mouseleave focus",function(e){var n=jQuery(this).closest("ul.sub-menu").parent();n.hasClass("custom-menu-search")||jQuery(this).closest("ul.sub-menu").hasClass("avada-custom-menu-item-contents")||("mouseenter"===e.handleObj.origType?(n.addClass("alt-arrow-child-color"),n.children("a").addClass("hover")):"mouseleave"===e.handleObj.origType?(n.removeClass("alt-arrow-child-color"),n.children("a").removeClass("hover")):n.toggleClass("alt-arrow-child-color"))}),n.each(function(e,n){jQuery(n).hasClass("current-menu-item")&&jQuery(n).closest("ul.sub-menu").parent().toggleClass("alt-arrow-child-color")}))},fusionNavRunAll=function(){var e=jQuery(".fusion-menu-element-wrapper.expand-method-hover:not(.submenu-mode-flyout) .menu-item-has-children:not(.fusion-megamenu-menu)");e.each(function(){fusionNavSubmenuDirection(this)}),e.on("mouseenter",function(){fusionNavSubmenuDirection(this)}),jQuery(".fusion-open-nav-submenu-on-click").parent().each(function(){fusionNavSubmenuDirection(this)}),jQuery(".fusion-menu-element-wrapper .custom-menu-search-dropdown .fusion-main-menu-icon").on("click",function(e){var n=jQuery(this),s=n.parent();e.preventDefault(),n.closest(".fusion-menu-element-wrapper").hasClass("submenu-mode-flyout")?n.siblings(".fusion-open-nav-submenu-on-click").trigger("click"):(s.toggleClass("expanded"),fusionNavSubmenuDirection(s)),s.hasClass("expanded")?setTimeout(function(){s.find("input[type=search]").focus()},100):n.blur()}),jQuery(".fusion-menu-element-wrapper.submenu-mode-flyout:not(.dropdown-carets-yes) .fusion-custom-menu > li.menu-item-has-children > a:not(.fusion-main-menu-icon)").on("click",function(e){e&&e.preventDefault(),jQuery(this).next(".fusion-open-nav-submenu-on-click").trigger("click")}),jQuery("html").on("mouseenter",".fusion-no-touch .fusion-menu-element-wrapper.submenu-mode-flyout:not(.collapse-enabled) .sub-menu .menu-item a",function(){var e=jQuery(this),n=e.parent();void 0!==n.data("item-id")&&(e.closest(".fusion-menu").find(".fusion-flyout-menu-backgrounds").addClass("fusion-flyout-menu-backgrounds-active").find("#item-bg-"+n.data("item-id")).addClass("active"),e.closest(".sub-menu").addClass("fusion-transparent-bg"))}),jQuery("html").on("mouseleave",".fusion-no-touch .fusion-menu-element-wrapper.submenu-mode-flyout:not(.collapse-enabled) .sub-menu .menu-item a",function(){var e=jQuery(this),n=e.parent();void 0!==n.data("item-id")&&(e.closest(".fusion-menu").find(".fusion-flyout-menu-backgrounds").removeClass("fusion-flyout-menu-backgrounds-active").find("#item-bg-"+n.data("item-id")).removeClass("active"),e.closest(".sub-menu").removeClass("fusion-transparent-bg"))}),jQuery(".fusion-menu-element-wrapper:not(.submenu-mode-flyout) a").on("click",function(e){var n=jQuery(this).closest(".fusion-menu-element-wrapper");void 0!==this.attributes.href&&"#"!==this.attributes.href.value||((n.hasClass("expand-method-click")||n.hasClass("collapse-enabled"))&&jQuery(this).siblings(".fusion-open-nav-submenu-on-click").trigger("click"),e.preventDefault())}),jQuery(".fusion-menu-element-wrapper").each(function(e,n){var s=jQuery(n);s.hasClass("collapse-enabled")&&(s.hasClass("mobile-size-full-absolute")||s.hasClass("mobile-size-relative"))&&s.hasClass("mobile-mode-collapse-to-button")&&jQuery(n).children("ul").offset({left:0})}),jQuery('.fusion-menu-element-wrapper a[href^="#"]').on("click",function(){var e=jQuery(this.hash),n=jQuery(this).closest(".fusion-menu-element-wrapper");n.hasClass("collapse-enabled")&&(n.hasClass("mobile-size-full-absolute")||n.hasClass("mobile-size-column-absolute"))&&e.length&&""!==this.hash.slice(1)&&n.find(".avada-menu-mobile-menu-trigger").trigger("click")})},fusionAdjustNavMobilePosition=function(){setTimeout(function(){fusionNavMobilePosition(jQuery('.fusion-menu-element-wrapper.expanded[aria-expanded="true"]'))},50)};jQuery(window).on("load",function(){jQuery(".fusion-menu-element-wrapper").each(function(e,n){fusionNavAltArrowsClass(n),fusionNavIsCollapsed(n)}),jQuery(".fusion-menu-element-wrapper .fusion-menu-icon-search.trigger-overlay, .fusion-menu-element-wrapper .fusion-close-search").on("click",function(e){e&&e.preventDefault(),fusionNavSearchOverlay(this)})}),jQuery(window).on("fusion-element-render-fusion_menu",function(e,n){var s=jQuery('[data-cid="'+n+'"] .fusion-menu-element-wrapper');fusionNavRunAll(),s.length&&fusionNavIsCollapsed(s[0])}),jQuery(window).on("fusion-mobile-menu-collapsed",function(){var e=jQuery('.fusion-menu-element-wrapper.mobile-mode-collapse-to-button.mobile-size-full-absolute[aria-expanded="false"]');e.find("ul > li").find("> a, > button").attr("tabindex","-1"),e.children("ul").offset({left:0})}),jQuery(document).ready(fusionNavRunAll),jQuery(window).on("fusion-sticky-change fusion-resize-horizontal",fusionAdjustNavMobilePosition),jQuery(document.body).on("wc_fragments_refreshed wc_fragments_loaded",function(){jQuery(".menu-item-type-custom.fusion-menu-cart").each(function(){0!==jQuery(this).children("ul.sub-menu").length&&(jQuery(this).children("ul.sub-menu").hasClass("avada-custom-menu-item-contents-empty")?jQuery(this).removeClass("menu-item-has-children").addClass("empty-cart"):(jQuery(this).addClass("menu-item-has-children").removeClass("empty-cart"),fusionNavSubmenuDirection(jQuery(this))))})});var fusionContainerVars={"content_break_point":"800","container_hundred_percent_height_mobile":"0","is_sticky_header_transparent":"0","hundred_percent_scroll_sensitivity":"200"};function fusionInitStickyContainers(){"function"==typeof jQuery.fn.stick_in_parent&&jQuery(".fusion-sticky-container").each(function(){fusionInitSticky(jQuery(this))})}function fusionInitSticky(e){var t=void 0===e.attr("data-transition-offset")?0:parseFloat(e.attr("data-transition-offset")),i=void 0===e.attr("data-sticky-offset")?0:e.attr("data-sticky-offset"),n=void 0!==e.attr("data-scroll-offset")&&parseFloat(e.attr("data-scroll-offset")),o={sticky_class:"fusion-container-stuck",bottoming:!0,offset_top:i,transition_offset:t,clone:!1},s="data-sticky-medium-visibility";jQuery("body").hasClass("fusion-disable-sticky")?e.data("sticky_kit")&&e.trigger("sticky_kit:detach"):"object"!=typeof fusion||"function"!=typeof fusion.isLarge||(fusion.isLarge()?s="data-sticky-large-visibility":fusion.isSmall()&&(s="data-sticky-small-visibility"),void 0!==e.attr(s)&&e.attr(s))?e.data("sticky_kit")||(n&&(o.scroll_transition=n),e.closest(".fusion-tb-header").length||e.closest(".fusion-tb-page-title-bar").length?(o.parent="#wrapper",o.bottoming=!1):e.closest(".fusion-content-tb").length?o.parent=".fusion-content-tb":e.closest(".fusion-builder-live-editor").length?o.parent="#fusion_builder_container":e.parent().parent(".post-content").length?o.parent=".post-content":e.hasClass("awb-sticky-content")&&(o.parent="#wrapper"),"string"==typeof e.attr("data-sticky-parent")&&(o.parent=e.attr("data-sticky-parent")),"string"==typeof e.attr("data-sticky-bottoming")&&(o.bottoming=e.attr("data-sticky-bottoming")),jQuery("body").hasClass("fusion-builder-live")||void 0===e.attr("data-sticky-height-transition")||(o.clone=!0),e.stick_in_parent(o)):e.data("sticky_kit")&&e.trigger("sticky_kit:detach")}function fusionGetStickyOffset(){var e=0,t=jQuery(".fusion-container-stuck:not( .side-header-wrapper )");return t.length?(t.each(function(){var t=jQuery(this),i=t.position().top+t.outerHeight(!0);t.parent("#side-header").length||t.closest(".off-canvas-content").length||i>e&&(e=i)}),e):e}function initScrollingSections(){var e,t,i=jQuery("#content").find(".fusion-scroll-section"),n=(Number(fusionContainerVars.is_sticky_header_transparent)||"function"!=typeof getStickyHeaderHeight?0:getStickyHeaderHeight(!0))+fusion.getAdminbarHeight();window.lastYPosition=0,window.scrollDisabled=!1,i.length&&(jQuery("#content").find(".non-hundred-percent-height-scrolling").length||1!==i.length||jQuery.trim(jQuery("#sliders-container").html())||(i.addClass("active"),i.find(".fusion-scroll-section-nav li:first a").addClass("active"),e=!0),i.each(function(){1<jQuery(this).children("div").length&&(t=n?"calc("+(100*jQuery(this).children("div").length+50)+"vh - "+n+"px)":100*jQuery(this).children("div").length+50+"vh",jQuery(this).css("height",t),n&&(jQuery(this).find(".hundred-percent-height-scrolling").css("height","calc(100vh - "+n+"px)"),jQuery(this).find(".fusion-scroll-section-nav").css("top","calc(50% + "+n/2+"px)")))}),window.lastYPosition=jQuery(window).scrollTop(),jQuery(window).on("scroll",function(){var t=jQuery(window).scrollTop(),i=window.lastYPosition;window.scrollDisabled||jQuery(".fusion-scroll-section").each(function(){1<jQuery(this).children("div").length&&!jQuery(this).hasClass("fusion-scroll-section-mobile-disabled")&&jQuery(this).fusionPositionScrollSectionElements(t,e,i)})}),jQuery(".fusion-scroll-section-link").on("click",function(e){var t=jQuery(this).parents(".fusion-scroll-section"),i=getScrollSectionPositionValues(t),n=t.find(".fusion-scroll-section-element"),o=n.length,s=jQuery(this).parents(".fusion-scroll-section-nav").find(".fusion-scroll-section-link.active"),c=s.length?parseInt(s.data("element"),10):0,r=parseInt(jQuery(this).data("element"),10),l=Math.abs(r-c);e.preventDefault(),0<l&&(t.data("clicked",r),"fixed"!==n.last().css("position")&&n.css({position:"fixed",top:i.sectionTopOffset,left:i.sectionLeftOffset,padding:"0",width:i.sectionWidth}),1===r?jQuery(window).scrollTop(i.sectionTop+1):o===r?jQuery(window).scrollTop(i.sectionBottom-i.viewportHeight-1):r>c?jQuery(window).scrollTop(i.sectionTop+i.viewportHeight*r-1):jQuery(window).scrollTop(i.sectionTop+i.viewportHeight*(r-1)+1))})),jQuery(".hundred-percent-height").length&&(setCorrectResizeValuesForScrollSections(),jQuery(window).on("resize",function(){setCorrectResizeValuesForScrollSections()}))}function setCorrectResizeValuesForScrollSections(){var e=jQuery("#content").find(".fusion-scroll-section"),t=0,i=0,n=fusion.getAdminbarHeight();e.length&&(jQuery(".fusion-scroll-section.active").find(".fusion-scroll-section-element").css({left:jQuery("#content").offset().left}),jQuery(".fusion-scroll-section").find(".fusion-scroll-section-element").css({width:jQuery("#content").width()}),0==fusionContainerVars.container_hundred_percent_height_mobile&&(Modernizr.mq("only screen and (max-width: "+fusionContainerVars.content_break_point+"px)")?(jQuery(".fusion-scroll-section").removeClass("active").addClass("fusion-scroll-section-mobile-disabled"),jQuery(".fusion-scroll-section").attr("style",""),jQuery(".fusion-scroll-section").find(".fusion-scroll-section-element").attr("style",""),jQuery(".fusion-scroll-section").find(".hundred-percent-height-scrolling").css("height","auto"),jQuery(".fusion-scroll-section").find(".fusion-fullwidth-center-content").css("height","auto")):jQuery(".fusion-scroll-section").hasClass("fusion-scroll-section-mobile-disabled")&&(jQuery(".fusion-scroll-section").find(".fusion-fullwidth-center-content").css("height",""),Number(fusionContainerVars.is_sticky_header_transparent)||"function"!=typeof getStickyHeaderHeight||(t=getStickyHeaderHeight(!0)),i=t+n,e.each(function(){1<jQuery(this).children("div").length&&(jQuery(this).css("height",100*jQuery(this).children("div").length+50+"vh"),jQuery(this).find(".hundred-percent-height-scrolling").css("height","calc(100vh - "+i+"px)"))}),scrollToCurrentScrollSection()))),jQuery(".hundred-percent-height.non-hundred-percent-height-scrolling").length&&(Number(fusionContainerVars.is_sticky_header_transparent)||"function"!=typeof getStickyHeaderHeight||(t=getStickyHeaderHeight(!0)),i=t+n,0==fusionContainerVars.container_hundred_percent_height_mobile&&(Modernizr.mq("only screen and (max-width: "+fusionContainerVars.content_break_point+"px)")?(jQuery(".hundred-percent-height.non-hundred-percent-height-scrolling").css("height","auto"),jQuery(".hundred-percent-height.non-hundred-percent-height-scrolling").find(".fusion-fullwidth-center-content").css("height","auto")):(jQuery(".hundred-percent-height.non-hundred-percent-height-scrolling").css("height","calc(100vh - "+i+"px)"),jQuery(".hundred-percent-height.non-hundred-percent-height-scrolling").find(".fusion-fullwidth-center-content").css("height",""))))}function scrollToCurrentScrollSection(){var e=Math.ceil(jQuery(window).scrollTop()),t=jQuery(window).height(),i=Math.floor(e+t),n=Number(fusionContainerVars.is_sticky_header_transparent)||"function"!=typeof getStickyHeaderHeight?0:getStickyHeaderHeight(!0),o=fusion.getAdminbarHeight();e+=n+o,jQuery(".fusion-page-load-link").hasClass("fusion-page.load-scroll-section-link")||jQuery(".fusion-scroll-section").each(function(){var t=jQuery(this),n=Math.ceil(t.offset().top),o=Math.ceil(t.outerHeight()),s=Math.floor(n+o),c=jQuery("html").hasClass("ua-edge")?"body":"html";n<=e&&s>=i?(t.addClass("active"),jQuery(c).animate({scrollTop:n-50},{duration:50,easing:"easeInExpo",complete:function(){jQuery(c).animate({scrollTop:n},{duration:50,easing:"easeOutExpo",complete:function(){Modernizr.mq("only screen and (max-width: "+fusionContainerVars.content_break_point+"px)")||jQuery(".fusion-scroll-section").removeClass("fusion-scroll-section-mobile-disabled")}})}})):Modernizr.mq("only screen and (max-width: "+fusionContainerVars.content_break_point+"px)")||jQuery(".fusion-scroll-section").removeClass("fusion-scroll-section-mobile-disabled")})}function getScrollSectionPositionValues(e){var t={};return t.sectionTop=Math.ceil(e.offset().top),t.sectionHeight=Math.ceil(e.outerHeight()),t.sectionBottom=Math.floor(t.sectionTop+t.sectionHeight),t.viewportTop=Math.ceil(jQuery(window).scrollTop()),t.viewportHeight=jQuery(window).height(),t.viewportBottom=Math.floor(t.viewportTop+t.viewportHeight),t.sectionWidth=jQuery("#content").width(),t.sectionTopOffset=fusion.getAdminbarHeight(),t.sectionLeftOffset=jQuery("#content").offset().left,t.sectionTopOffset+=Number(fusionContainerVars.is_sticky_header_transparent)||"function"!=typeof getStickyHeaderHeight?0:getStickyHeaderHeight(!0),t.viewportTop+=t.sectionTopOffset,t}jQuery(window).on("load fusion-element-render-fusion_builder_container resize",function(e,t){var i=void 0!==t?jQuery('div[data-cid="'+t+'"]').find(".fullwidth-faded"):jQuery(".fullwidth-faded"),n=void 0!==t?jQuery('div[data-cid="'+t+'"]').find(".hundred-percent-height"):jQuery(".hundred-percent-height"),o=Number(fusionContainerVars.is_sticky_header_transparent)||"function"!=typeof getStickyHeaderHeight?0:getStickyHeaderHeight(!0),s=fusion.getAdminbarHeight(),c=jQuery("body").hasClass("fusion-builder-live")&&!jQuery("body").hasClass("fusion-builder-preview-mode"),r=o+s;i.fusionScroller({type:"fading_blur"}),n.css("min-height","").css("height",""),n.find(".fusion-fullwidth-center-content").css("min-height",""),0==fusionContainerVars.container_hundred_percent_height_mobile&&Modernizr.mq("only screen and (max-width: "+fusionContainerVars.content_break_point+"px)")?(n.css("height","auto"),c&&(n.css("min-height","0"),n.find(".fusion-fullwidth-center-content").css("min-height","0"))):(n.css("height","calc(100vh - "+r+"px)"),c&&(n.css("min-height","calc(100vh - "+r+"px)"),n.find(".fusion-fullwidth-center-content").css("min-height","calc(100vh - "+r+"px)")))}),jQuery(document).ready(function(){var e;initScrollingSections(),fusionInitStickyContainers(),!jQuery("body").hasClass("fusion-builder-live")&&"object"==typeof cssua&&"string"==typeof cssua.ua.safari&&16>parseInt(cssua.ua.safari)&&(e=jQuery(".awb-sticky, .mobile-sticky-tabs, .sticky-tabs")).length&&(jQuery("#boxed-wrapper").addClass("safari-overflow"),e.each(function(){jQuery(this).parents(".fusion-fullwidth").addClass("has-sticky")})),Modernizr.mq("only screen and (max-width: "+fusionContainerVars.content_break_point+"px)")&&jQuery(".fullwidth-faded").each(function(){var e=jQuery(this).css("background-image"),t=jQuery(this).css("background-color");jQuery(this).parent().css("background-image",e),jQuery(this).parent().css("background-color",t),jQuery(this).remove()})}),jQuery(window).on("load",function(){jQuery("#content").find(".fusion-scroll-section").length&&"#"===jQuery(".fusion-page-load-link").attr("href")&&setTimeout(function(){scrollToCurrentScrollSection()},400)}),jQuery(window).on("fusion-reinit-sticky",function(e,t){var i=void 0!==t&&jQuery('div[data-cid="'+t+'"] .fusion-fullwidth');i&&i.length&&(i.trigger("sticky_kit:detach"),fusionInitSticky(i))}),jQuery(window).on("fusion-sticky-header-reinit fusion-resize-horizontal",function(){fusionInitStickyContainers()}),function(e){"use strict";var t="down";function i(){var e=window.pageYOffset||document.documentElement.scrollTop,t=window.pageXOffset||document.documentElement.scrollLeft;window.onscroll=function(){window.scrollTo(t,e)},window.scrollDisabled=!0}function n(){window.onscroll=function(){},window.scrollDisabled=!1}e.fn.fusionPositionScrollSectionElements=function(o,s,c){var r=e(this),l=r.find(".fusion-scroll-section-element").length,a=0,d=getScrollSectionPositionValues(r);(s=s||!1)||(d.sectionTop<=d.viewportTop&&d.sectionBottom>=d.viewportBottom?r.addClass("active"):r.removeClass("active")),c<o?(r.data("clicked")?(a=r.data("clicked"),r.removeData("clicked"),r.removeAttr("data-clicked")):a=(a=r.find(".fusion-scroll-section-element.active")).length?(a=a.data("element")+1)>l?l:a:1,d.sectionTop<=d.viewportTop&&d.sectionTop+d.viewportHeight>d.viewportTop?(r.find(".fusion-scroll-section-element").removeClass("active"),r.children(":nth-child(1)").addClass("active"),r.find(".fusion-scroll-section-nav a").removeClass("active"),r.find('.fusion-scroll-section-nav a[data-element="'+r.children(":nth-child(1)").data("element")+'"] ').addClass("active"),r.find(".fusion-scroll-section-element").css({position:"fixed",top:d.sectionTopOffset,left:d.sectionLeftOffset,padding:"0",width:d.sectionWidth}),r.children(":nth-child(1)").css("display","block"),window.scrollDisabled=!0,e(window).scrollTop(d.sectionTop+d.viewportHeight-1),i(),setTimeout(function(){n()},fusionContainerVars.hundred_percent_scroll_sensitivity)):d.sectionBottom<=d.viewportBottom&&"absolute"!==r.find(".fusion-scroll-section-element").last().css("position")?(r.find(".fusion-scroll-section-element").removeClass("active"),r.find(".fusion-scroll-section-element").last().addClass("active"),r.find(".fusion-scroll-section-element").css("position","absolute"),r.find(".fusion-scroll-section-element").last().css({top:"auto",left:"0",bottom:"0",padding:""}),r.find(".fusion-scroll-section-nav a").removeClass("active"),r.find(".fusion-scroll-section-nav a").last().addClass("active")):1<a&&"fixed"===r.find(".fusion-scroll-section-element").last().css("position")&&(!r.children(":nth-child("+a+")").hasClass("active")||"up"===t)&&(r.find(".fusion-scroll-section-element").removeClass("active"),r.children(":nth-child("+a+")").addClass("active"),r.find(".fusion-scroll-section-nav a").removeClass("active"),r.find('.fusion-scroll-section-nav a[data-element="'+r.children(":nth-child("+a+")").data("element")+'"] ').addClass("active"),window.scrollDisabled=!0,a<l?e(window).scrollTop(d.sectionTop+d.viewportHeight*a-1):e(window).scrollTop(d.sectionBottom-d.viewportHeight),i(),setTimeout(function(){n()},fusionContainerVars.hundred_percent_scroll_sensitivity)),t="down"):c>o&&(r.data("clicked")?(a=r.data("clicked"),r.removeData("clicked"),r.removeAttr("data-clicked")):a=(a=r.find(".fusion-scroll-section-element.active")).length?1>(a=a.data("element")-1)?1:a:0,d.sectionBottom>=d.viewportBottom&&"absolute"===r.find(".fusion-scroll-section-element").last().css("position")?(r.find(".fusion-scroll-section-element").removeClass("active"),r.find(".fusion-scroll-section-element").last().addClass("active"),r.find(".fusion-scroll-section-nav a").removeClass("active"),r.find('.fusion-scroll-section-nav a[data-element="'+r.find(".fusion-scroll-section-element").last().data("element")+'"] ').addClass("active"),r.find(".fusion-scroll-section-element").css({position:"fixed",top:d.sectionTopOffset,left:d.sectionLeftOffset,padding:"0",width:d.sectionWidth}),r.find(".fusion-scroll-section-element").last().css("display","block"),window.scrollDisabled=!0,e(window).scrollTop(d.sectionTop+d.viewportHeight*(l-1)),i(),setTimeout(function(){n()},fusionContainerVars.hundred_percent_scroll_sensitivity)):(d.sectionTop>=d.viewportTop||0===e(window).scrollTop()&&r.find(".fusion-scroll-section-element").first().hasClass("active"))&&""!==r.find(".fusion-scroll-section-element").first().css("position")?(r.find(".fusion-scroll-section-element").removeClass("active"),r.find(".fusion-scroll-section-element").first().addClass("active"),r.find(".fusion-scroll-section-element").css("position",""),r.find(".fusion-scroll-section-element").first().css("padding",""),r.find(".fusion-scroll-section-nav a").removeClass("active"),r.find(".fusion-scroll-section-nav a").first().addClass("active")):0<a&&"fixed"===r.find(".fusion-scroll-section-element").last().css("position")&&(!r.children(":nth-child("+a+")").hasClass("active")||"down"===t)&&(r.find(".fusion-scroll-section-element").removeClass("active"),r.children(":nth-child("+a+")").addClass("active"),r.find(".fusion-scroll-section-nav a").removeClass("active"),r.find('.fusion-scroll-section-nav a[data-element="'+r.children(":nth-child("+a+")").data("element")+'"] ').addClass("active"),window.scrollDisabled=!0,e(window).scrollTop(d.sectionTop+d.viewportHeight*(a-1)),i(),setTimeout(function(){n()},fusionContainerVars.hundred_percent_scroll_sensitivity)),t="up"),window.lastYPosition=e(window).scrollTop()}}(jQuery);function wrapGravitySelects(e){var r=".gform_wrapper select:not([multiple])",t=jQuery(r);"string"==typeof e&&void 0!==e&&(t=-1!==e.indexOf("#gform_wrapper")?jQuery(e+r):jQuery(e).find(r)),t.filter(":visible").each(function(){var e=jQuery(this);setTimeout(function(){e.siblings(".chosen-container").length||e.parent(".gravity-select-parent").length||(e.wrap('<div class="gravity-select-parent"></div>'),jQuery('<div class="select-arrow">&#xe61f;</div>').appendTo(e.parent(".gravity-select-parent"))),calcSelectArrowDimensions(),calcGravitySelectArrowPosition()},100)})}function calcGravitySelectArrowPosition(){jQuery(".gravity-select-parent").each(function(){var e=jQuery(this).children("select"),r=jQuery(this).children(".select-arrow");r.css("left",e.outerWidth()-2*parseFloat(e.css("border-right-width"))-r.width())})}function recursiveGFormSubmissionHandler(){jQuery(".gform_wrapper").find("form").attr("target")&&-1<jQuery(".gform_wrapper").find("form").attr("target").indexOf("gform_ajax_frame")&&jQuery(".gform_wrapper").find("form").submit(function(){setTimeout(function(){wrapGravitySelects(),calcSelectArrowDimensions(),calcGravitySelectArrowPosition(),recursiveGFormSubmissionHandler()},800)})}jQuery(document).on("gform_post_conditional_logic",function(){var e=jQuery(".gform_wrapper select");jQuery(e).each(function(){jQuery(this).hasClass("chzn-done")&&jQuery(this).parent().hasClass("gravity-select-parent")&&(jQuery(this).parent().find(".select-arrow").remove(),jQuery(this).unwrap('<div class="gravity-select-parent"></div>'))})}),recursiveGFormSubmissionHandler(),jQuery(document).on("gform_post_render",function(e,r){wrapGravitySelects("#gform_wrapper_"+r)}),jQuery(window).on("load",function(){jQuery(".gform_wrapper").each(function(){jQuery(this).removeClass("gf_browser_ie")}),wrapGravitySelects(),jQuery(window).on("fusion-resize-horizontal",function(){calcGravitySelectArrowPosition()}),"undefined"!=typeof gform&&gform&&gform.addAction("gform_post_conditional_logic_field_action",function(e,r,t,i,n){"show"!==r||n||setTimeout(function(){calcSelectArrowDimensions(),wrapGravitySelects()},50)})}),jQuery(window).on("fusion-dynamic-content-render",function(e,r){wrapGravitySelects(r)});var avadaSelectVars={"avada_drop_down":"1"};function addAvadaSelectStyles(){Number(avadaSelectVars.avada_drop_down)&&(jQuery(".tribe-tickets-order_status-row select").length&&(jQuery(".tribe-tickets-order_status-row select").addClass("avada-select"),jQuery(".tribe-tickets-order_status-row select").wrap('<div class="avada-select-parent"></div>').after('<div class="select-arrow">&#xe61f;</div>'),jQuery(".tribe-ticket-quantity").on("change",function(){setTimeout(function(){calcSelectArrowDimensions()},1)})),jQuery(".tribe-block__tickets__item__attendee__fields__form select").length&&jQuery(".tribe-block__tickets__item__attendee__fields__form select").wrap('<div class="avada-select-parent"></div>').after('<div class="select-arrow">&#xe61f;</div>'),jQuery(".woocommerce-billing-fields, .woocommerce-shipping-fields").addClass("avada-select"),jQuery(".woocommerce.widget_product_categories select").length&&jQuery(".woocommerce.widget_product_categories select").wrap('<p class="avada-select-parent"></p>').after('<div class="select-arrow">&#xe61f;</div>'),jQuery(".cart-collaterals select#calc_shipping_country, .widget_layered_nav select").wrap('<p class="avada-select-parent"></p>').after('<div class="select-arrow">&#xe61f;</div>'),jQuery(".cart-collaterals select#calc_shipping_state").after('<div class="select-arrow">&#xe61f;</div>'),setTimeout(function(){jQuery("#billing_country_field .chosen-container").length||jQuery("#billing_country_field .select2-container").length||(jQuery("#billing_country_field select.country_select").wrap('<p class="avada-select-parent"></p>').after('<span class="select-arrow">&#xe61f;</span>'),!jQuery("#billing_state_field select.state_select").length||jQuery("#billing_state_field .chosen-container").length||jQuery("#billing_state_field .select2-container").length||jQuery("#billing_state_field").addClass("avada-select-parent").append('<div class="select-arrow">&#xe61f;</div>'),jQuery("#billing_country").on("change",function(){setTimeout(function(){(jQuery("#billing_state_field input#billing_state").length||jQuery("#billing_state_field").is(":hidden"))&&(jQuery("#billing_state_field .select-arrow").remove(),jQuery("#billing_state_field").removeClass("avada-select-parent")),jQuery("#billing_state_field select.state_select").length&&(jQuery("#billing_state_field").addClass("avada-select-parent"),jQuery("#billing_state_field .select-arrow").length||(jQuery("#billing_state_field").append('<div class="select-arrow">&#xe61f;</div>'),calcSelectArrowDimensions()))},1)})),jQuery("#shipping_country_field .chosen-container").length||jQuery("#shipping_country_field .select2-container").length||(jQuery("#shipping_country_field select.country_select").wrap('<p class="avada-select-parent"></p>').after('<span class="select-arrow">&#xe61f;</span>'),jQuery("#shipping_state_field select.state_select").length&&jQuery("#shipping_state_field").addClass("avada-select-parent").append('<div class="select-arrow">&#xe61f;</div>'),jQuery("#shipping_country").on("change",function(){setTimeout(function(){(jQuery("#shipping_state_field input#shipping_state").length||jQuery("#shipping_state_field").is(":hidden"))&&(jQuery("#shipping_state_field .select-arrow").remove(),jQuery("#shipping_state_field").removeClass("avada-select-parent")),jQuery("#shipping_state_field select.state_select").length&&(jQuery("#shipping_state_field").addClass("avada-select-parent"),jQuery("#shipping_state_field .select-arrow").length||(jQuery("#shipping_state_field").append('<div class="select-arrow">&#xe61f;</div>'),calcSelectArrowDimensions()))},1)}))},1),jQuery("#calc_shipping_country").on("change",function(){setTimeout(function(){jQuery(".avada-shipping-calculator-form select#calc_shipping_state").length&&!jQuery(".avada-shipping-calculator-form #calc_shipping_state").parent().find(".select-arrow").length&&jQuery(".avada-shipping-calculator-form select#calc_shipping_state").after('<div class="select-arrow">&#xe61f;</div>'),(jQuery(".avada-shipping-calculator-form input#calc_shipping_state").length||jQuery(".avada-shipping-calculator-form #calc_shipping_state_field .select2").length)&&jQuery(".avada-shipping-calculator-form #calc_shipping_state").parent().children(".select-arrow").remove(),calcSelectArrowDimensions()},1)}),jQuery("table.variations select, .variations-table select, .product-addon select").filter(":not(.yith_wccl_custom)").wrap('<div class="avada-select-parent"></div>'),jQuery('<div class="select-arrow">&#xe61f;</div>').appendTo("table.variations .avada-select-parent, .variations-table .avada-select-parent, .product-addon .avada-select-parent"),jQuery(".wpcf7-select:not([multiple])").wrap('<div class="wpcf7-select-parent"></div>'),jQuery('<div class="select-arrow">&#xe61f;</div>').appendTo(".wpcf7-select-parent"),jQuery("#bbp_stick_topic_select, #bbp_topic_status_select, #bbp_forum_id, #bbp_destination_topic, #wpfc_sermon_sorting select").wrap('<div class="avada-select-parent"></div>').after('<div class="select-arrow">&#xe61f;</div>'),jQuery(".variations_form select").on("change",function(){jQuery(".product #slider").length&&1<jQuery(".product #slider .slides li").length&&jQuery(".product #slider").flexslider(0)}),calcSelectArrowDimensions())}function removeAvadaSelectStyles(){Number(avadaSelectVars.avada_drop_down)||(jQuery("select").each(function(){jQuery(this).parent().is(".avada-select-parent")&&(1===jQuery(this).closest(".avada-select-parent").attr("class").split(" ").length?jQuery(this).unwrap():jQuery(this).closest(".avada-select-parent").removeClass("avada-select-parent"))}),jQuery("select").removeClass("avada-select avada-select-parent wpcf7-select-parent"),jQuery(".select-arrow").remove())}jQuery(window).on("load fusion-element-render-fusion_tb_woo_cart  fusion-element-render-fusion_tb_woo_checkout_tabs  fusion-element-render-fusion_tb_woo_checkout_billing fusion-element-render-fusion_tb_woo_checkout_shipping fusion-element-render-fusion_woo_cart_shipping",function(){addAvadaSelectStyles(),jQuery(window).on("DestoryAvadaSelect",removeAvadaSelectStyles),jQuery(window).on("AddAvadaSelect",addAvadaSelectStyles)});var avadaToTopVars={"status_totop":"desktop","totop_position":"right","totop_scroll_down_only":"0"};function avadaUpdateToTopPostion(){var o=avadaToTopVars.totop_position.split("_");o=2===o.length?"to-top-"+o[0]+" to-top-"+o[1]:"to-top-"+o[0],jQuery(".to-top-container").attr("class","to-top-container"),jQuery(".to-top-container").addClass(o)}jQuery(document).ready(function(){var o=0,a=jQuery("html").hasClass("ua-edge")||jQuery("html").hasClass("ua-safari-12")||jQuery("html").hasClass("ua-safari-11")||jQuery("html").hasClass("ua-safari-10")?"body":"html";jQuery(".fusion-top-top-link").on("click",function(o){o.preventDefault(),(cssua.ua.mobile&&-1!==avadaToTopVars.status_totop.indexOf("mobile")||!cssua.ua.mobile)&&jQuery(a).animate({scrollTop:0},1200,"easeInOutExpo")}),jQuery(window).on("scroll",function(){var a=jQuery(this).scrollTop();200<a&&(a>=o||1!==parseInt(avadaToTopVars.totop_scroll_down_only))?jQuery(".fusion-top-top-link").addClass("fusion-to-top-active"):jQuery(".fusion-top-top-link").removeClass("fusion-to-top-active"),o=a}),jQuery(window).on("updateToTopPostion",avadaUpdateToTopPostion)});var avadaHeaderVars={"header_position":"top","header_sticky":"1","header_sticky_type2_layout":"menu_only","header_sticky_shadow":"1","side_header_break_point":"1100","header_sticky_mobile":"","header_sticky_tablet":"","mobile_menu_design":"modern","sticky_header_shrinkage":"","nav_height":"55","nav_highlight_border":"0","nav_highlight_style":"bottombar","logo_margin_top":"5px","logo_margin_bottom":"5px","layout_mode":"wide","header_padding_top":"10px","header_padding_bottom":"10px","scroll_offset":"full"};function fusionDisableStickyHeader(){jQuery(window).off(".stickyheader"),jQuery(".fusion-header-wrapper, .fusion-header-sticky-height, .fusion-header, .fusion-logo, .fusion-header-wrapper .fusion-main-menu > li a, .fusion-header-wrapper .fusion-secondary-main-menu").attr("style",""),jQuery(".fusion-is-sticky").removeClass("fusion-is-sticky")}function fusionInitStickyHeader(){var e,i,r,a,o,d,n,t=300,s=0;avadaHeaderVars.sticky_header_shrinkage||(t=0),e=jQuery(".fusion-header").parent(),window.$headerParentHeight=e.outerHeight(),window.$headerHeight=jQuery(".fusion-header").outerHeight(),i=parseInt(avadaHeaderVars.nav_height,10),window.$menuHeight=i,window.$scrolled_header_height=65,r=jQuery(".fusion-logo img:visible").length?jQuery(".fusion-logo img:visible"):"",a=!1,window.$stickyTrigger=jQuery(".fusion-header"),window.$wpadminbarHeight=fusion.getAdminbarHeight(),window.$stickyTrigger_position=window.$stickyTrigger.length?Math.round(window.$stickyTrigger.offset().top)-window.$wpadminbarHeight-window.$woo_store_notice-window.$top_frame:0,window.$woo_store_notice=jQuery(".woocommerce-store-notice").length&&jQuery(".woocommerce-store-notice").is(":visible")?jQuery(".woocommerce-store-notice").outerHeight():0,window.$top_frame=jQuery(".fusion-top-frame").is(":visible")?jQuery(".fusion-top-frame").outerHeight()-window.$woo_store_notice:0,window.sticky_header_type=1,window.$slider_offset=0,window.$site_width=jQuery("#wrapper").outerWidth(),window.$media_query_test_1=Modernizr.mq("only screen and (min-device-width: 768px) and (max-device-width: 1366px) and (orientation: portrait)")||Modernizr.mq("only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: landscape)"),window.$media_query_test_2=Modernizr.mq("screen and (max-width: "+avadaHeaderVars.side_header_break_point+"px)"),window.$media_query_test_3=Modernizr.mq("screen and (max-width: "+avadaHeaderVars.side_header_break_point+"px)"),window.$media_query_test_4=Modernizr.mq("only screen and (max-width: "+avadaHeaderVars.side_header_break_point+"px)"),window.$standardLogoHeight=jQuery(".fusion-standard-logo").height(),window.$logoMarginTop=""!==jQuery(".fusion-logo").data("margin-top")?parseInt(jQuery(".fusion-logo").data("margin-top"),10):0,window.$logoMarginBottom=""!==jQuery(".fusion-logo").data("margin-bottom")?parseInt(jQuery(".fusion-logo").data("margin-bottom"),10):0,window.$standardLogoHeight+=window.$logoMarginTop+window.$logoMarginBottom,window.$initial_desktop_header_height=Math.max(window.$headerHeight,Math.round(Math.max(window.$menuHeight,window.$standardLogoHeight)+parseFloat(jQuery(".fusion-header").find(".fusion-row").css("padding-top"))+parseFloat(jQuery(".fusion-header").find(".fusion-row").css("padding-bottom")))),window.$initial_sticky_header_shrinkage=avadaHeaderVars.sticky_header_shrinkage,window.$sticky_can_be_shrinked=!0,avadaHeaderVars.sticky_header_shrinkage||(t=0,window.$scrolled_header_height=window.$headerHeight),window.original_logo_height=0,""!==r&&(r[0].hasAttribute("data-retina_logo_url")?((o=new Image).src=r.attr("data-retina_logo_url"),window.original_logo_height=parseInt(r.height(),10)+parseInt(avadaHeaderVars.logo_margin_top,10)+parseInt(avadaHeaderVars.logo_margin_bottom,10)):((o=new Image).src=r.attr("src"),window.original_logo_height=parseInt(o.naturalHeight,10)+parseInt(avadaHeaderVars.logo_margin_top,10)+parseInt(avadaHeaderVars.logo_margin_bottom,10))),(1<=jQuery(".fusion-header-v4").length||1<=jQuery(".fusion-header-v5").length)&&(window.sticky_header_type=2,"menu_and_logo"===avadaHeaderVars.header_sticky_type2_layout||Modernizr.mq("only screen and (max-width: "+avadaHeaderVars.side_header_break_point+"px)")&&"modern"===avadaHeaderVars.mobile_menu_design?window.$stickyTrigger=jQuery(".fusion-sticky-header-wrapper"):window.$stickyTrigger=jQuery(".fusion-secondary-main-menu"),window.$stickyTrigger_position=Math.round(window.$stickyTrigger.offset().top)-window.$wpadminbarHeight-window.$woo_store_notice-window.$top_frame),1===window.sticky_header_type?Modernizr.mq("only screen and (max-width: "+avadaHeaderVars.side_header_break_point+"px)")?window.$scrolled_header_height=window.$headerHeight:window.$original_sticky_trigger_height=jQuery(window.$stickyTrigger).outerHeight():2===window.sticky_header_type&&("classic"===avadaHeaderVars.mobile_menu_design&&jQuery(e).height(window.$headerParentHeight),Modernizr.mq("only screen and (max-width: "+avadaHeaderVars.side_header_break_point+"px)")?window.$scrolled_header_height=window.$headerParentHeight:jQuery(e).height(window.$headerParentHeight)),1<=jQuery("#side-header").length&&(window.sticky_header_type=3),jQuery(".fusion-secondary-header").length&&(s=jQuery(".fusion-secondary-header").outerHeight()),jQuery(document).height()-(window.$initial_desktop_header_height+s+window.$wpadminbarHeight-window.$scrolled_header_height)<jQuery(window).height()&&avadaHeaderVars.sticky_header_shrinkage?(window.$sticky_can_be_shrinked=!1,jQuery(".fusion-header-wrapper").removeClass("fusion-is-sticky")):window.$sticky_can_be_shrinked=!0,d=jQuery(window).width(),n=jQuery(window).height(),jQuery(window).on("resize.stickyheader",function(){var a,o,h,u,w,y;window.$media_query_test_1=Modernizr.mq("only screen and (min-device-width: 768px) and (max-device-width: 1366px) and (orientation: portrait)")||Modernizr.mq("only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: landscape)"),window.$media_query_test_2=Modernizr.mq("screen and (max-width: "+avadaHeaderVars.side_header_break_point+"px)"),window.$media_query_test_3=Modernizr.mq("screen and (max-width: "+avadaHeaderVars.side_header_break_point+"px)"),window.$media_query_test_4=Modernizr.mq("only screen and (max-width: "+avadaHeaderVars.side_header_break_point+"px)"),!Modernizr.mq("only screen and (min-width: "+avadaHeaderVars.side_header_break_point+"px)")||-1===avadaHeaderVars.header_padding_top.indexOf("%")&&-1===avadaHeaderVars.header_padding_bottom.indexOf("%")||jQuery(".fusion-is-sticky").length||(window.$headerHeight=Math.round(Math.max(window.$menuHeight,window.$standardLogoHeight)+parseFloat(jQuery(".fusion-header").find(".fusion-row").css("padding-top"))+parseFloat(jQuery(".fusion-header").find(".fusion-row").css("padding-bottom"))),jQuery(".fusion-header, .fusion-header-sticky-height").height(window.$headerHeight),avadaHeaderVars.sticky_header_shrinkage||(window.$scrolled_header_height=window.$headerHeight)),(-1!==avadaHeaderVars.header_padding_top.indexOf("%")||-1!==avadaHeaderVars.header_padding_bottom.indexOf("%")&&!jQuery(".fusion-is-sticky").length)&&(window.$initial_desktop_header_height=Math.max(window.$headerHeight,Math.round(Math.max(window.$menuHeight,window.$standardLogoHeight)+parseFloat(jQuery(".fusion-header").find(".fusion-row").css("padding-top"))+parseFloat(jQuery(".fusion-header").find(".fusion-row").css("padding-bottom"))))),!avadaHeaderVars.header_sticky_tablet&&window.$media_query_test_1?(jQuery(".fusion-header-wrapper, .fusion-header-sticky-height, .fusion-header, .fusion-logo, .fusion-header-wrapper .fusion-main-menu > li a, .fusion-header-wrapper .fusion-secondary-main-menu").attr("style",""),jQuery(".fusion-header-wrapper").removeClass("fusion-is-sticky")):avadaHeaderVars.header_sticky_tablet&&window.$media_query_test_1&&(t=0),avadaHeaderVars.header_sticky_mobile||!window.$media_query_test_2||window.$media_query_test_1?avadaHeaderVars.header_sticky_mobile&&window.$media_query_test_2&&!window.$media_query_test_1&&(t=0):(jQuery(".fusion-header-wrapper, .fusion-header-sticky-height, .fusion-header, .fusion-logo, .fusion-header-wrapper .fusion-main-menu > li a, .fusion-header-wrapper .fusion-secondary-main-menu").attr("style",""),jQuery(".fusion-header-wrapper").removeClass("fusion-is-sticky")),(jQuery("body").hasClass("fusion-builder-live")||d&&n&&(jQuery(window).width()!==d||jQuery(window).height()!==n))&&(i=parseInt(avadaHeaderVars.nav_height,10),window.$wpadminbarHeight=fusion.getAdminbarHeight(),window.$woo_store_notice=jQuery(".woocommerce-store-notice").length&&jQuery(".woocommerce-store-notice").is(":visible")?jQuery(".woocommerce-store-notice").outerHeight():0,jQuery(".fusion-is-sticky").length&&(a=jQuery(".fusion-header"),2===window.sticky_header_type&&(a="menu_only"!==avadaHeaderVars.header_sticky_type2_layout||"classic"!==avadaHeaderVars.mobile_menu_design&&window.$media_query_test_4?jQuery(".fusion-sticky-header-wrapper"):jQuery(".fusion-secondary-main-menu")),window.$wpadminbarHeight&&(jQuery(".fusion-header, .fusion-sticky-header-wrapper, .fusion-secondary-main-menu").css("top",""),jQuery(a).css("top",window.$wpadminbarHeight+window.$woo_store_notice+window.$top_frame)),"boxed"===avadaHeaderVars.layout_mode.toLowerCase()&&jQuery(a).css("max-width",jQuery("#wrapper").outerWidth()+"px")),1===window.sticky_header_type&&(avadaHeaderVars.sticky_header_shrinkage=window.$initial_sticky_header_shrinkage,jQuery(".fusion-header-wrapper").hasClass("fusion-is-sticky")||(jQuery(".fusion-secondary-header").length?window.$stickyTrigger_position=Math.round(jQuery(".fusion-secondary-header").offset().top)-window.$wpadminbarHeight-window.$woo_store_notice-window.$top_frame+jQuery(".fusion-secondary-header").outerHeight():window.$stickyTrigger_position=Math.round(jQuery(".fusion-header").offset().top)-window.$wpadminbarHeight-window.$woo_store_notice-window.$top_frame),Modernizr.mq("only screen and (max-width: "+avadaHeaderVars.side_header_break_point+"px)")||(o=jQuery(".fusion-logo img:visible").length?jQuery(".fusion-logo img:visible").outerHeight()+parseInt(avadaHeaderVars.logo_margin_top,10)+parseInt(avadaHeaderVars.logo_margin_bottom,10):0,h=0,jQuery(".fusion-main-menu > ul > li").each(function(){h+=jQuery(this).outerWidth()}),jQuery(".fusion-header-v6").length&&(h=0),jQuery(".fusion-is-sticky").length?(h>jQuery(".fusion-header .fusion-row").width()-jQuery(".fusion-logo img:visible").outerWidth()?(window.$headerHeight=jQuery(".fusion-main-menu").outerHeight()+o,jQuery(".fusion-header-v7").length&&(window.$headerHeight=jQuery(".fusion-middle-logo-menu").height()),(jQuery(".fusion-header-v2").length||jQuery(".fusion-header-v3").length)&&(window.$headerHeight+=1)):avadaHeaderVars.sticky_header_shrinkage?window.$headerHeight=65:(window.original_logo_height>i?window.$headerHeight=window.original_logo_height:window.$headerHeight=i,window.$headerHeight+=parseFloat(jQuery(".fusion-header > .fusion-row").css("padding-top"))+parseFloat(jQuery(".fusion-header > .fusion-row").css("padding-bottom")),window.$headerHeight=Math.round(window.$headerHeight),(jQuery(".fusion-header-v2").length||jQuery(".fusion-header-v3").length)&&(window.$headerHeight+=1)),window.$scrolled_header_height=window.$headerHeight,jQuery(".fusion-header-sticky-height").css("height",window.$headerHeight),jQuery(".fusion-header").css("height",window.$headerHeight)):(u=jQuery(".fusion-header .fusion-row").width()-jQuery(".fusion-logo img:visible").outerWidth(),jQuery(".fusion-header-v7").length&&(u=jQuery(".fusion-header .fusion-row").width()),h>u?(window.$headerHeight=jQuery(".fusion-main-menu").outerHeight()+o,jQuery(".fusion-header-v7").length&&(window.$headerHeight=jQuery(".fusion-middle-logo-menu").height()),avadaHeaderVars.sticky_header_shrinkage=!1):(window.original_logo_height>i?window.$headerHeight=window.original_logo_height:window.$headerHeight=i,jQuery(".fusion-header-v7").length&&(window.$headerHeight=jQuery(".fusion-main-menu").outerHeight())),window.$headerHeight+=parseFloat(jQuery(".fusion-header > .fusion-row").css("padding-top"))+parseFloat(jQuery(".fusion-header > .fusion-row").css("padding-bottom")),window.$headerHeight=Math.round(window.$headerHeight),(jQuery(".fusion-header-v2").length||jQuery(".fusion-header-v3").length)&&(window.$headerHeight+=1),window.$scrolled_header_height=65,avadaHeaderVars.sticky_header_shrinkage||(window.$scrolled_header_height=window.$headerHeight),jQuery(".fusion-header-sticky-height").css("height",window.$headerHeight),jQuery(".fusion-header").css("height",window.$headerHeight))),Modernizr.mq("only screen and (max-width: "+avadaHeaderVars.side_header_break_point+"px)")&&(jQuery(".fusion-header").css("height",""),window.$headerHeight=jQuery(".fusion-header").outerHeight(),window.$scrolled_header_height=window.$headerHeight,jQuery(".fusion-header-sticky-height").css("height",window.$scrolled_header_height))),2===window.sticky_header_type&&("modern"===avadaHeaderVars.mobile_menu_design&&(!Modernizr.mq("only screen and (max-width: "+avadaHeaderVars.side_header_break_point+"px)")&&jQuery(".fusion-is-sticky").length&&"menu_only"===avadaHeaderVars.header_sticky_type2_layout?window.$headerParentHeight=jQuery(".fusion-header").parent().outerHeight()+jQuery(".fusion-secondary-main-menu").outerHeight():window.$headerParentHeight=jQuery(".fusion-header").parent().outerHeight(),window.$scrolled_header_height=window.header_parent_height,Modernizr.mq("only screen and (max-width: "+avadaHeaderVars.side_header_break_point+"px)")||(window.$headerParentHeight=jQuery(".fusion-header").outerHeight()+jQuery(".fusion-secondary-main-menu").outerHeight(),window.$stickyTrigger_position=Math.round(jQuery(".fusion-header").offset().top)-window.$wpadminbarHeight-window.$woo_store_notice-window.$top_frame+jQuery(".fusion-header").outerHeight(),jQuery(e).height(window.$headerParentHeight),jQuery(".fusion-header-sticky-height").css("height","")),Modernizr.mq("only screen and (max-width: "+avadaHeaderVars.side_header_break_point+"px)")&&(jQuery(".fusion-secondary-header").length?window.$stickyTrigger_position=Math.round(jQuery(".fusion-secondary-header").offset().top)-window.$wpadminbarHeight-window.$woo_store_notice-window.$top_frame+jQuery(".fusion-secondary-header").outerHeight():window.$stickyTrigger_position=Math.round(jQuery(".fusion-header").offset().top)-window.$wpadminbarHeight-window.$woo_store_notice-window.$top_frame,jQuery(e).height(""),jQuery(".fusion-header-sticky-height").css("height",jQuery(".fusion-sticky-header-wrapper").outerHeight()))),"classic"===avadaHeaderVars.mobile_menu_design&&(window.$headerParentHeight=jQuery(".fusion-header").outerHeight()+jQuery(".fusion-secondary-main-menu").outerHeight(),window.$stickyTrigger_position=Math.round(jQuery(".fusion-header").offset().top)-window.$wpadminbarHeight-window.$woo_store_notice-window.$top_frame+jQuery(".fusion-header").outerHeight(),jQuery(e).height(window.$headerParentHeight))),3===window.sticky_header_type&&(Modernizr.mq("only screen and (max-width:"+avadaHeaderVars.side_header_break_point+"px)")||(jQuery("#side-header-sticky").css({height:"",top:""}),jQuery("#side-header").hasClass("fusion-is-sticky")&&(jQuery("#side-header").css({top:"",position:""}),jQuery("#side-header").removeClass("fusion-is-sticky")))),jQuery(document).height()-(window.$initial_desktop_header_height+s+window.$wpadminbarHeight-window.$scrolled_header_height)<jQuery(window).height()&&avadaHeaderVars.sticky_header_shrinkage?(window.$sticky_can_be_shrinked=!1,jQuery(".fusion-header-wrapper").removeClass("fusion-is-sticky"),jQuery(".fusion-header").css("height",""),jQuery(".fusion-logo").css({"margin-top":"","margin-bottom":""}),jQuery(".fusion-main-menu > ul > li > a").css("height",""),jQuery(".fusion-logo img").css("height","")):(window.$sticky_can_be_shrinked=!0,1<=jQuery(".fusion-is-sticky").length&&(1!==window.sticky_header_type||Modernizr.mq("only screen and (max-width: "+avadaHeaderVars.side_header_break_point+"px)")||(Modernizr.mq("only screen and (max-width: "+avadaHeaderVars.side_header_break_point+"px)")?jQuery(".fusion-header-sticky-height").css("height",window.$scrolled_header_height):parseInt(window.$headerHeight,10)===parseInt(window.$initial_desktop_header_height,10)&&(jQuery(window.$stickyTrigger).stop(!0,!0).animate({height:window.$scrolled_header_height},{queue:!1,duration:t,easing:"easeOutCubic",complete:function(){jQuery(this).css("overflow","visible")}}),jQuery(".fusion-header-sticky-height").stop(!0,!0).animate({height:window.$scrolled_header_height},{queue:!1,duration:t,easing:"easeOutCubic",complete:function(){jQuery(this).css("overflow","visible")}})),avadaHeaderVars.sticky_header_shrinkage&&parseInt(window.$headerHeight,10)===parseInt(window.$initial_desktop_header_height,10)&&(r&&((w=r.height())<window.$scrolled_header_height-10?y=(window.$scrolled_header_height-w)/2:(w=window.$scrolled_header_height-10,y=5),r.stop(!0,!0).animate({height:w},{queue:!1,duration:t,easing:"easeOutCubic",complete:function(){jQuery(this).css("display","")},step:function(){jQuery(this).css("display","")}})),jQuery(".fusion-logo").stop(!0,!0).animate({"margin-top":y,"margin-bottom":y},{queue:!1,duration:t,easing:"easeOutCubic"}),jQuery(".fusion-header-v6").length||jQuery(".fusion-main-menu > ul > li").not(".fusion-middle-logo-menu-logo").find("> a").stop(!0,!0).animate({height:window.$scrolled_header_height},{queue:!1,duration:t,easing:"easeOutCubic"}))))),d=jQuery(window).width(),n=jQuery(window).height())}),jQuery(window).on("scroll.stickyheader",function(){var e,o;if(window.$sticky_can_be_shrinked){if(!avadaHeaderVars.header_sticky_tablet&&window.$media_query_test_1)return;if(avadaHeaderVars.header_sticky_tablet&&window.$media_query_test_1&&(t=0),!avadaHeaderVars.header_sticky_mobile&&window.$media_query_test_2&&!window.$media_query_test_1)return;if(avadaHeaderVars.header_sticky_mobile&&window.$media_query_test_2&&(t=0),3===window.sticky_header_type&&!avadaHeaderVars.header_sticky_mobile)return;if(3===window.sticky_header_type&&!avadaHeaderVars.header_sticky_mobile&&!window.$media_query_test_3)return;0===jQuery(".fusion-is-sticky").length&&jQuery(".fusion-header, .fusion-secondary-main-menu, #side-header").find(".fusion-mobile-nav-holder > ul").is(":visible")&&(jQuery(".fusion-header-has-flyout-menu-content").length?window.$stickyTrigger_position=Math.round(jQuery(".fusion-header, .fusion-sticky-header-wrapper, #side-header").find(".fusion-header-has-flyout-menu-content").offset().top)-window.$wpadminbarHeight-window.$woo_store_notice-window.$top_frame:window.$stickyTrigger_position=Math.round(jQuery(".fusion-header, .fusion-sticky-header-wrapper, #side-header").find(".fusion-mobile-nav-holder:visible").offset().top)-window.$wpadminbarHeight-window.$woo_store_notice-window.$top_frame+jQuery(".fusion-header, .fusion-sticky-header-wrapper, #side-header").find(".fusion-mobile-nav-holder:visible").height()),3!==window.sticky_header_type&&0===jQuery(".fusion-is-sticky").length&&!jQuery(".fusion-header, .fusion-secondary-main-menu").find(".fusion-mobile-nav-holder > ul").is(":visible")&&jQuery(".fusion-header").length&&(window.$stickyTrigger=jQuery(".fusion-header"),window.$stickyTrigger_position=Math.round(window.$stickyTrigger.offset().top)-window.$wpadminbarHeight-window.$woo_store_notice-window.$top_frame,2===window.sticky_header_type&&("menu_and_logo"===avadaHeaderVars.header_sticky_type2_layout||window.$media_query_test_4&&"modern"===avadaHeaderVars.mobile_menu_design?window.$stickyTrigger=jQuery(".fusion-sticky-header-wrapper"):window.$stickyTrigger=jQuery(".fusion-secondary-main-menu"),window.$stickyTrigger_position=Math.round(window.$stickyTrigger.offset().top)-window.$wpadminbarHeight-window.$woo_store_notice-window.$top_frame),"modern"!==avadaHeaderVars.mobile_menu_design||2!==window.sticky_header_type||!window.$media_query_test_4&&"menu_and_logo"!==avadaHeaderVars.header_sticky_type2_layout||(window.$headerHeight=jQuery(window.$stickyTrigger).outerHeight(),window.$scrolled_header_height=window.$headerHeight,jQuery(".fusion-header-sticky-height").css("height",window.$scrolled_header_height))),3!==window.sticky_header_type||0!==jQuery(".fusion-is-sticky").length||jQuery("#side-header").find(".fusion-mobile-nav-holder > ul").is(":visible")||(window.$stickyTrigger=jQuery("#side-header"),window.$stickyTrigger_position=Math.round(window.$stickyTrigger.offset().top)-window.$wpadminbarHeight-window.$woo_store_notice-window.$top_frame),jQuery(window).scrollTop()>window.$stickyTrigger_position?!1===a&&(window.$woo_store_notice=jQuery(".woocommerce-store-notice").length&&jQuery(".woocommerce-store-notice").is(":visible")?jQuery(".woocommerce-store-notice").outerHeight():0,jQuery(".fusion-header-wrapper").addClass("fusion-is-sticky"),"function"==typeof resizeOverlaySearch&&resizeOverlaySearch(),jQuery(window.$stickyTrigger).css("top",window.$wpadminbarHeight+window.$woo_store_notice+window.$top_frame),r=jQuery(".fusion-logo img:visible"),"modern"===avadaHeaderVars.mobile_menu_design?(jQuery(".fusion-header, .fusion-secondary-main-menu, #side-header").find(".fusion-mobile-nav-holder").hide(),jQuery(".fusion-secondary-main-menu .fusion-main-menu-search .fusion-custom-menu-item-contents").hide(),jQuery(".fusion-mobile-menu-search").hide()):"classic"===avadaHeaderVars.mobile_menu_design&&(jQuery(".fusion-header, .fusion-secondary-main-menu, #side-header").find(".fusion-mobile-nav-holder > ul").hide(),jQuery(".fusion-mobile-menu-search").hide()),"modern"===avadaHeaderVars.mobile_menu_design&&1<=jQuery(".fusion-is-sticky").length&&1<=jQuery(".fusion-mobile-sticky-nav-holder").length&&jQuery(".fusion-mobile-nav-holder").is(":visible")&&jQuery(".fusion-mobile-nav-holder").not(".fusion-mobile-sticky-nav-holder").hide(),"boxed"===avadaHeaderVars.layout_mode.toLowerCase()&&jQuery(window.$stickyTrigger).css("max-width",jQuery("#wrapper").outerWidth()),1===window.sticky_header_type&&(Modernizr.mq("only screen and (max-width: "+avadaHeaderVars.side_header_break_point+"px)")?jQuery(".fusion-header-sticky-height").css("height",window.$scrolled_header_height):parseInt(window.$headerHeight,10)===parseInt(window.$initial_desktop_header_height,10)&&(jQuery(window.$stickyTrigger).stop(!0,!0).animate({height:window.$scrolled_header_height},{queue:!1,duration:t,easing:"easeOutCubic",complete:function(){jQuery(this).css("overflow","visible")}}),jQuery(".fusion-header-sticky-height").stop(!0,!0).animate({height:window.$scrolled_header_height},{queue:!1,duration:t,easing:"easeOutCubic",complete:function(){jQuery(this).css("overflow","visible")}})),"1"!==avadaHeaderVars.header_sticky_shadow&&1!==avadaHeaderVars.header_sticky_shadow&&!0!==avadaHeaderVars.header_sticky_shadow&&"true"!==avadaHeaderVars.header_sticky_shadow||setTimeout(function(){jQuery(".fusion-header").addClass("fusion-sticky-shadow")},150),avadaHeaderVars.sticky_header_shrinkage&&parseInt(window.$headerHeight,10)===parseInt(window.$initial_desktop_header_height,10)&&(jQuery(window.$stickyTrigger).find(".fusion-row").stop(!0,!0).animate({"padding-top":0,"padding-bottom":0},{queue:!1,duration:t,easing:"easeOutCubic"}),r&&(e=r.height(),r.attr("data-logo-height",r.height()),r.attr("data-logo-width",r.width()),e<window.$scrolled_header_height-10?o=(window.$scrolled_header_height-e)/2:(e=window.$scrolled_header_height-10,o=5),r.stop(!0,!0).animate({height:e},{queue:!1,duration:t,easing:"easeOutCubic",complete:function(){jQuery(this).css("display","")},step:function(){jQuery(this).css("display","")}})),jQuery(".fusion-logo").stop(!0,!0).animate({"margin-top":o,"margin-bottom":o},{queue:!1,duration:t,easing:"easeOutCubic"}),jQuery(".fusion-header-v6").length||jQuery(".fusion-main-menu > ul > li").not(".fusion-middle-logo-menu-logo").find("> a").stop(!0,!0).animate({height:window.$scrolled_header_height},{queue:!1,duration:t,easing:"easeOutCubic"}))),2===window.sticky_header_type&&"menu_and_logo"===avadaHeaderVars.header_sticky_type2_layout&&(jQuery(window.$stickyTrigger).css("height",""),window.$headerHeight=jQuery(window.$stickyTrigger).outerHeight(),window.$scrolled_header_height=window.$headerHeight,jQuery(window.$stickyTrigger).css("height",window.$scrolled_header_height),jQuery(".fusion-header-sticky-height").css("height",window.$scrolled_header_height)),3===window.sticky_header_type&&Modernizr.mq("only screen and (max-width:"+avadaHeaderVars.side_header_break_point+"px)")&&(jQuery("#side-header-sticky").css({height:jQuery("#side-header").outerHeight()}),jQuery("#side-header").css({position:"fixed",top:window.$wpadminbarHeight+window.$woo_store_notice+window.$top_frame}).addClass("fusion-is-sticky")),a=!0):jQuery(window).scrollTop()<=window.$stickyTrigger_position&&(jQuery(".fusion-header-wrapper").removeClass("fusion-is-sticky"),"function"==typeof resizeOverlaySearch&&resizeOverlaySearch(),jQuery(".fusion-header").removeClass("fusion-sticky-shadow"),r=jQuery(".fusion-logo img:visible"),"modern"===avadaHeaderVars.mobile_menu_design&&0===jQuery(".fusion-is-sticky").length&&1<=jQuery(".fusion-mobile-sticky-nav-holder").length&&jQuery(".fusion-mobile-nav-holder").is(":visible")&&jQuery(".fusion-mobile-sticky-nav-holder").hide(),1===window.sticky_header_type&&(Modernizr.mq("only screen and (max-width: "+avadaHeaderVars.side_header_break_point+"px)")?jQuery(".fusion-header-sticky-height").css("height",window.$headerHeight):(1===window.sticky_header_type&&65===parseInt(window.$headerHeight,10)&&(window.$headerHeight=window.$initial_desktop_header_height),parseInt(window.$headerHeight,10)===parseInt(window.$initial_desktop_header_height,10)?(jQuery(window.$stickyTrigger).stop(!0,!0).animate({height:window.$headerHeight},{queue:!1,duration:t,easing:"easeOutCubic",complete:function(){jQuery(this).css("overflow","visible")},step:function(){jQuery(this).css("overflow","visible")}}),jQuery(".fusion-header-sticky-height").stop(!0,!0).animate({height:window.$headerHeight},{queue:!1,duration:t,easing:"easeOutCubic",complete:function(){jQuery(this).css("overflow","visible"),jQuery(this).css("display","")},step:function(){jQuery(this).css("overflow","visible")}})):jQuery(".fusion-header-v7").length&&(jQuery(".fusion-header-sticky-height").css("height",jQuery(".fusion-middle-logo-menu").height()),jQuery(".fusion-header").css("height",jQuery(".fusion-middle-logo-menu").height()))),avadaHeaderVars.sticky_header_shrinkage&&parseInt(window.$headerHeight,10)===parseInt(window.$initial_desktop_header_height,10)&&(jQuery(window.$stickyTrigger).find(".fusion-row").stop(!0,!0).animate({"padding-top":avadaHeaderVars.header_padding_top,"padding-bottom":avadaHeaderVars.header_padding_bottom},{queue:!1,duration:t,easing:"easeOutCubic"}),r&&r.stop(!0,!0).animate({height:r.data("logo-height")},{queue:!1,duration:t,easing:"easeOutCubic",complete:function(){jQuery(this).css("display",""),jQuery(".fusion-sticky-logo").css("height","")}}),jQuery(".fusion-logo").stop(!0,!0).animate({"margin-top":window.$logoMarginTop,"margin-bottom":window.$logoMarginBottom},{queue:!1,duration:t,easing:"easeOutCubic"}),jQuery(".fusion-header-v6").length||jQuery(".fusion-main-menu > ul > li").not(".fusion-middle-logo-menu-logo").find("> a").stop(!0,!0).animate({height:i},{queue:!1,duration:t,easing:"easeOutCubic"}))),2===window.sticky_header_type&&("menu_and_logo"===avadaHeaderVars.header_sticky_type2_layout&&(jQuery(window.$stickyTrigger).css("height",""),window.$headerHeight=jQuery(window.$stickyTrigger).outerHeight(),window.$scrolled_header_height=window.$headerHeight,jQuery(window.$stickyTrigger).css("height",window.$scrolled_header_height),jQuery(".fusion-header-sticky-height").css("height",window.$scrolled_header_height)),jQuery(window).trigger("fusion-reset-flyout-active-css")),3===window.sticky_header_type&&Modernizr.mq("only screen and (max-width:"+avadaHeaderVars.side_header_break_point+"px)")&&(jQuery("#side-header-sticky").css({height:""}),jQuery("#side-header").css({position:""}).removeClass("fusion-is-sticky")),a=!1)}}),jQuery(window).trigger("scroll")}function getStickyHeaderHeight(e){var i=1,r=0,a=Modernizr.mq("only screen and (min-device-width: 768px) and (max-device-width: 1366px) and (orientation: portrait)")||Modernizr.mq("only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: landscape)");return e=e||!1,(jQuery(".fusion-header-v4").length||jQuery(".fusion-header-v5").length)&&(i=2),jQuery("#side-header").length&&(i="side"),avadaHeaderVars.header_sticky&&(jQuery(".fusion-header-wrapper").length||jQuery("#side-header").length)&&(1===i?(r=jQuery(".fusion-header").outerHeight(),e&&avadaHeaderVars.sticky_header_shrinkage&&(r=64)):2===i&&(r=jQuery(".fusion-secondary-main-menu").outerHeight(),"menu_and_logo"===avadaHeaderVars.header_sticky_type2_layout&&(r+=jQuery(".fusion-header").outerHeight())),Modernizr.mq("only screen and (max-width: "+avadaHeaderVars.side_header_break_point+"px)")&&(avadaHeaderVars.header_sticky_mobile?(r=jQuery(".fusion-header").outerHeight(),2===i&&"classic"===avadaHeaderVars.mobile_menu_design?(r=jQuery(".fusion-secondary-main-menu").find(".fusion-mobile-selector").height()+14,"menu_and_logo"===avadaHeaderVars.header_sticky_type2_layout&&(r+=jQuery(".fusion-header").outerHeight())):"side"===i&&(r=jQuery("#side-header").outerHeight())):r=0),!avadaHeaderVars.header_sticky_tablet&&a&&(r=0)),r}jQuery(window).on("load",function(){var e,i,r,a,o;jQuery(window).on("scroll",function(){jQuery("#sliders-container .tfs-slider").data("parallax")&&"wide"!==avadaHeaderVars.layout_mode.toLowerCase()&&!cssua.ua.tablet_pc&&!cssua.ua.mobile&&Modernizr.mq("only screen and (min-width: "+avadaHeaderVars.side_header_break_point+"px)")&&"full"===avadaHeaderVars.scroll_offset?(i=jQuery("#sliders-container .tfs-slider"),e=jQuery(window).scrollTop(),a=0,r=jQuery("body").css("marginTop"),r=parseInt(r,10),o=fusion.getAdminbarHeight(),avadaHeaderVars.header_sticky&&(1<=jQuery(".fusion-header-wrapper").length||1<=jQuery("#side-header").length)?(parseInt(jQuery(".fusion-header").height(),10),a=0):(r,a=parseInt(avadaHeaderVars.nav_height,10),1>jQuery("#side-header").length&&0),e>=o+r+a?(i.css("top",0),i.addClass("fusion-fixed-slider")):(i.css("top",0),i.removeClass("fusion-fixed-slider"))):jQuery("#sliders-container .tfs-slider.fusion-fixed-slider").length&&jQuery("#sliders-container .tfs-slider.fusion-fixed-slider").removeClass("fusion-fixed-slider")}),avadaHeaderVars.header_sticky&&(1<=jQuery(".fusion-header-wrapper").length||1<=jQuery("#side-header").length)&&fusionInitStickyHeader(),setTimeout(function(){!1,jQuery(window).trigger("resize"),!0},10),jQuery(window).on("resize",function(){jQuery(".woocommerce-store-notice").length&&jQuery(".woocommerce-store-notice").is(":visible")&&!jQuery(".fusion-top-frame").is(":visible")&&(jQuery("#wrapper").css("margin-top",jQuery(".woocommerce-store-notice").outerHeight()),jQuery(".sticky-header").length&&jQuery(".sticky-header").css("margin-top",jQuery(".woocommerce-store-notice").outerHeight())),jQuery(".sticky-header").length&&jQuery("body.admin-bar #header-sticky.sticky-header").css("top",fusion.getAdminbarHeight()+"px")})}),jQuery(document).ajaxComplete(function(){var e,i,r;jQuery(window).trigger("scroll"),1<=jQuery(".fusion-is-sticky").length&&window.$stickyTrigger&&3!==window.sticky_header_type&&!jQuery(".fusion-header-v6").length&&"background"!==avadaHeaderVars.nav_highlight_style&&(e=1>=Math.abs(jQuery(window.$stickyTrigger).height()-jQuery(".fusion-is-sticky .fusion-header > .fusion-row").outerHeight())?jQuery(".fusion-is-sticky .fusion-header > .fusion-row"):jQuery(window.$stickyTrigger),i=parseInt(avadaHeaderVars.nav_highlight_border,10),r=e.height(),e.height()-i,2===window.sticky_header_type&&(r=(e=jQuery(".fusion-secondary-main-menu")).find(".fusion-main-menu > ul > li > a").outerHeight())-i,jQuery(".fusion-main-menu > ul > li").not(".fusion-middle-logo-menu-logo").find("> a").css("height",r+"px"))}),window.addEventListener("fusion-reinit-sticky-header",function(){void 0!==window.parent.FusionApp&&"off"===window.parent.FusionApp.preferencesData.sticky_header||(fusionDisableStickyHeader(),Number(avadaHeaderVars.header_sticky)&&setTimeout(function(){fusionInitStickyHeader()},20))}),window.addEventListener("fusion-disable-sticky-header",function(){fusionDisableStickyHeader()}),window.addEventListener("fusion-init-sticky-header",function(){fusionInitStickyHeader()}),window.addEventListener("fusion-resize-stickyheader",function(){jQuery(window).trigger("resize.stickyheader")});var avadaMenuVars={"site_layout":"wide","header_position":"top","logo_alignment":"center","header_sticky":"1","header_sticky_mobile":"","header_sticky_tablet":"","side_header_break_point":"1100","megamenu_base_width":"site_width","mobile_menu_design":"modern","dropdown_goto":"Go to...","mobile_nav_cart":"Shopping Cart","mobile_submenu_open":"Open submenu of %s","mobile_submenu_close":"Close submenu of %s","submenu_slideout":"1"};function resizeOverlaySearch(){var e=0,n=!0,i=0,s=!0;jQuery(".fusion-main-menu:not(.fusion-sticky-menu)").is(":visible")||(n=!1,jQuery(".fusion-main-menu:not(.fusion-sticky-menu)").css("display","block")),jQuery(".fusion-main-menu:not(.fusion-sticky-menu) .fusion-menu > li").each(function(){e+=jQuery(this).outerWidth(!0)}),jQuery(".fusion-main-menu:not(.fusion-sticky-menu) .fusion-overlay-search").css("max-width",e+"px"),n||jQuery(".fusion-main-menu:not(.fusion-sticky-menu)").css("display",""),jQuery(".fusion-main-menu.fusion-sticky-menu").is(":visible")||(s=!1,jQuery(".fusion-main-menu.fusion-sticky-menu").css("display","block")),jQuery(".fusion-main-menu.fusion-sticky-menu .fusion-menu > li").each(function(){i+=jQuery(this).outerWidth(!0)}),jQuery(".fusion-main-menu.fusion-sticky-menu .fusion-overlay-search").css("max-width",i+"px"),s||jQuery(".fusion-main-menu.fusion-sticky-menu").css("display","")}jQuery(document).ready(function(){"use strict";var e;function n(){jQuery.fn.fusion_position_menu_dropdown&&(jQuery(".fusion-dropdown-menu, .fusion-dropdown-menu li").on("mouseenter",function(){jQuery(this).closest(".fusion-menu-element-wrapper").length||jQuery(this).fusion_position_menu_dropdown()}),jQuery(".fusion-dropdown-menu > ul > li").each(function(){jQuery(this).walk_through_menu_items()}),jQuery(window).on("fusion-resize-horizontal",function(){jQuery(".fusion-dropdown-menu > ul > li").each(function(){jQuery(this).walk_through_menu_items()})}))}function i(){jQuery.fn.fusion_position_megamenu&&(jQuery(".fusion-main-menu > ul").fusion_position_megamenu(),jQuery(document.body).on("mouseenter",".fusion-main-menu .fusion-megamenu-menu",function(){jQuery(this).parent().fusion_position_megamenu()}),jQuery(window).on("resize",function(){jQuery(".fusion-main-menu > ul").fusion_position_megamenu()})),jQuery.fn.calc_megamenu_widths&&(jQuery(".fusion-main-menu > ul").calc_megamenu_widths(),jQuery(window).on("resize",function(){jQuery(".fusion-main-menu > ul").calc_megamenu_widths()}))}function s(e){"top"===avadaMenuVars.header_position&&(jQuery(e).on("mouseenter",function(){jQuery(this).find("> div").length&&0>jQuery(this).find("> div").offset().left&&jQuery(this).find("> div").css({left:"0",right:"auto"}),jQuery(this).find("> div").length&&jQuery(this).find("> div").offset().left+jQuery(this).find("> div").width()>jQuery(window).width()&&jQuery(this).find("> div").css({left:"auto",right:"0"})}),jQuery(window).on("fusion-resize-horizontal",function(){jQuery(e).find("> div").each(function(){var e=jQuery(this),n=e.outerWidth(),i=e.offset().left,s=i+n,u=e.parent().offset().left,t=jQuery(window).width();jQuery("body.rtl").length?parseInt(i,10)===parseInt(u,10)&&s>t||i<u&&s+n>t?e.css({left:"auto",right:"0"}):e.css({left:"0",right:"auto"}):i<u&&0>i||parseInt(i,10)===parseInt(u,10)&&0>i-n?e.css({left:"0",right:"auto"}):e.css({left:"auto",right:"0"})})}))}function u(){jQuery(".fusion-mobile-nav-holder").not(".fusion-mobile-sticky-nav-holder").each(function(){var e=jQuery(this),n="",i="",s="";(i=jQuery(".fusion-mobile-navigation").length?jQuery(this).parent().find(".fusion-mobile-navigation, .fusion-secondary-menu").not(".fusion-sticky-menu"):jQuery(this).parent().find(".fusion-main-menu, .fusion-secondary-menu").not(".fusion-sticky-menu")).length&&("classic"!==avadaMenuVars.mobile_menu_design||e.find(".fusion-mobile-selector").length||(e.append('<button class="fusion-mobile-selector" aria-expanded="false"><span>'+avadaMenuVars.dropdown_goto+"</span></button>"),jQuery(this).find(".fusion-mobile-selector").append('<div class="fusion-selector-down"></div>')),jQuery(e).find("ul").length||(jQuery(e).append(jQuery(i).find("> ul").clone()),jQuery(e).find("ul > li > a").css("height","")),void 0!==(s=(n=jQuery(e).find("> ul")).attr("id"))&&0!==s.indexOf("mobile-menu-")&&n.attr("id","mobile-"+s),n.removeClass("fusion-middle-logo-ul"),"classic"===avadaMenuVars.mobile_menu_design&&e.find(".fusion-mobile-selector").attr("aria-controls",n.attr("id")),n.find(".fusion-middle-logo-menu-logo, .fusion-caret, .fusion-menu-login-box .fusion-custom-menu-item-contents, .fusion-menu-cart .fusion-custom-menu-item-contents, .fusion-main-menu-search, li> a > span > .button-icon-divider-left, li > a > span > .button-icon-divider-right, .fusion-arrow-svg, .fusion-dropdown-svg").remove(),(jQuery(".no-mobile-slidingbar").length||"classic"!==avadaMenuVars.mobile_menu_design)&&n.find(".fusion-main-menu-sliding-bar").remove(),"classic"===avadaMenuVars.mobile_menu_design?n.find(".fusion-menu-cart > a").html(avadaMenuVars.mobile_nav_cart):n.find(".fusion-main-menu-cart").remove(),n.find("li").each(function(){var e="fusion-mobile-nav-item";jQuery(this).data("classes")&&(e+=" "+jQuery(this).data("classes")),jQuery(this).find("img").hasClass("wpml-ls-flag")&&(e+=" wpml-ls-item"),jQuery(this).hasClass("menu-item-has-children")&&(e+=" menu-item-has-children"),jQuery(this).find("> a > .menu-text").removeAttr("class").addClass("menu-text"),(jQuery(this).hasClass("current-menu-item")||jQuery(this).hasClass("current-menu-parent")||jQuery(this).hasClass("current-menu-ancestor"))&&(e+=" fusion-mobile-current-nav-item"),jQuery(this).attr("class",e),jQuery(this).attr("id")&&0!==jQuery(this).attr("id").indexOf("mobile-menu-item-")&&jQuery(this).attr("id",jQuery(this).attr("id").replace("menu-item","mobile-menu-item")),jQuery(this).attr("style","")}))}),jQuery(".fusion-mobile-sticky-nav-holder").each(function(){var e=jQuery(this),n="",i=jQuery(this).parent().find(".fusion-sticky-menu"),s="";"classic"!==avadaMenuVars.mobile_menu_design||e.find(".fusion-mobile-selector").length||(e.append('<button class="fusion-mobile-selector" aria-expanded="false"><span>'+avadaMenuVars.dropdown_goto+"</span></button>"),jQuery(this).find(".fusion-mobile-selector").append('<div class="fusion-selector-down"></div>')),jQuery(e).find("ul").length||jQuery(e).append(jQuery(i).find("> ul").clone()),void 0!==(s=(n=jQuery(e).find("> ul")).attr("id"))&&0!==s.indexOf("mobile-menu-")&&n.attr("id","mobile-"+s),"classic"===avadaMenuVars.mobile_menu_design&&e.find(".fusion-mobile-selector").attr("aria-controls",n.attr("id")),n.find(".fusion-middle-logo-menu-logo, .fusion-menu-cart, .fusion-menu-login-box, .fusion-main-menu-search, .fusion-arrow-svg, .fusion-dropdown-svg").remove(),(jQuery(".no-mobile-slidingbar").length||"classic"!==avadaMenuVars.mobile_menu_design)&&n.find(".fusion-main-menu-sliding-bar").remove(),n.find(".fusion-button").attr("class","menu-text"),n.find("li").each(function(){var e="fusion-mobile-nav-item";jQuery(this).data("classes")&&(e+=" "+jQuery(this).data("classes")),jQuery(this).find("img").hasClass("wpml-ls-flag")&&(e+=" wpml-ls-item"),(jQuery(this).hasClass("current-menu-item")||jQuery(this).hasClass("current-menu-parent")||jQuery(this).hasClass("current-menu-ancestor"))&&(e+=" fusion-mobile-current-nav-item"),jQuery(this).attr("class",e),jQuery(this).attr("id")&&0!==jQuery(this).attr("id").indexOf("mobile-menu-item-")&&jQuery(this).attr("id",jQuery(this).attr("id").replace("menu-item","mobile-menu-item")),jQuery(this).attr("style","")})}),jQuery(".fusion-mobile-nav-holder > ul > li").each(function(){jQuery(this).find(".fusion-megamenu-widgets-container").remove(),jQuery(this).find(".fusion-megamenu-holder > ul").each(function(){jQuery(this).attr("class","sub-menu"),jQuery(this).attr("style",""),jQuery(this).find("> li").each(function(){var e,n="fusion-mobile-nav-item";jQuery(this).data("classes")&&(n+=" "+jQuery(this).data("classes")),jQuery(this).find("img").hasClass("wpml-ls-flag")&&(n+=" wpml-ls-item"),(jQuery(this).hasClass("current-menu-item")||jQuery(this).hasClass("current-menu-parent")||jQuery(this).hasClass("current-menu-ancestor")||jQuery(this).hasClass("fusion-mobile-current-nav-item"))&&(n+=" fusion-mobile-current-nav-item"),jQuery(this).hasClass("menu-item-has-children")&&(n+=" menu-item-has-children"),jQuery(this).attr("class",n),jQuery(this).find(".fusion-megamenu-title a, > a").length||(jQuery(this).find(".fusion-megamenu-title").each(function(){jQuery(this).children("a").length||jQuery(this).append('<a href="#">'+jQuery(this).html()+"</a>")}),jQuery(this).find(".fusion-megamenu-title").length||(e=jQuery(this),jQuery(this).find(".sub-menu").each(function(){e.after(jQuery(this))}),jQuery("body").hasClass("fusion-builder-live")?(jQuery(this).addClass("fusion-hidden-mobile-menu-item"),jQuery(this).hide()):jQuery(this).remove())),jQuery(this).prepend(jQuery(this).find(".fusion-megamenu-title a, > a")),jQuery(this).find(".fusion-megamenu-title").remove()}),jQuery(this).closest(".fusion-mobile-nav-item").append(jQuery(this))}),jQuery(this).find(".fusion-megamenu-wrapper, .caret, .fusion-megamenu-bullet").remove()}),jQuery('.fusion-mobile-nav-holder .fusion-mobile-nav-item a:not([href="#"])').on("click",function(){""!==jQuery(this.hash).length&&this.hash.slice(1)&&(jQuery(this).parents(".fusion-mobile-menu-design-classic").length?jQuery(this).parents(".fusion-menu, .menu").hide().removeClass("mobile-menu-expanded"):jQuery(this).parents(".fusion-mobile-nav-holder").hide())}),avadaMenuVars.submenu_slideout&&"flyout"!==avadaMenuVars.mobile_menu_design&&(jQuery(".fusion-mobile-nav-holder > ul li").each(function(){var e,n,i="fusion-mobile-nav-item",s=jQuery(this).find(" > ul");jQuery(this).data("classes")&&(i+=" "+jQuery(this).data("classes")),jQuery(this).find("img").hasClass("wpml-ls-flag")&&(i+=" wpml-ls-item"),(jQuery(this).hasClass("current-menu-item")||jQuery(this).hasClass("current-menu-parent")||jQuery(this).hasClass("current-menu-ancestor")||jQuery(this).hasClass("fusion-mobile-current-nav-item"))&&(i+=" fusion-mobile-current-nav-item"),jQuery(this).hasClass("menu-item-has-children")&&(i+=" menu-item-has-children"),jQuery(this).attr("class",i),s.length&&0<(e=jQuery(this).find("> a")).length&&(n=void 0!==e.attr("title")?e.attr("title"):e.children(".menu-text").length?e.children(".menu-text").clone().children().remove().end().text():e[0].innerText,e.after('<button href="#" aria-label="'+avadaMenuVars.mobile_submenu_open.replace("%s",n)+'" aria-expanded="false" class="fusion-open-submenu"></button>'),s.hide())}),jQuery(".fusion-mobile-nav-holder .fusion-open-submenu").on("click",function(e){var n,i=jQuery(this).parent().children(".sub-menu"),s=jQuery(this).parent().children("a");n=void 0!==s.attr("title")?s.attr("title"):s.children(".menu-text").length?s.children(".menu-text").clone().children().remove().end().text():s[0].innerText,e.stopPropagation(),i.slideToggle(200,"easeOutQuad"),i.toggleClass("fusion-sub-menu-open"),i.hasClass("fusion-sub-menu-open")?(jQuery(this).attr("aria-label",avadaMenuVars.mobile_submenu_close.replace("%s",n)),jQuery(this).attr("aria-expanded","true")):(jQuery(this).attr("aria-label",avadaMenuVars.mobile_submenu_open.replace("%s",n)),jQuery(this).attr("aria-expanded","false"))}),jQuery(".fusion-mobile-nav-holder a:not(.fusion-menu-edit, .awb-icon-sliding-bar)").on("click",function(e){"#"===jQuery(this).attr("href")&&("modal"===jQuery(this).data("toggle")?jQuery(this).trigger("show.bs.modal"):void 0===jQuery(this).parent().data("off-canvas")&&(e.preventDefault(),e.stopPropagation()),jQuery(this).next(".fusion-open-submenu").trigger("click"))}))}function t(){var e,n,i=jQuery(".fusion-header-has-flyout-menu"),s=0,u=i.find(".fusion-header").offset().top,t=Modernizr.mq("only screen and (min-device-width: 768px) and (max-device-width: 1366px) and (orientation: portrait)")||Modernizr.mq("only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: landscape)"),o=Modernizr.mq("only screen and (max-width: "+avadaMenuVars.side_header_break_point+"px)");jQuery("body").on("touchmove",function(e){jQuery(e.target).parents(".fusion-flyout-menu").length||e.preventDefault()}),1<=jQuery(".fusion-mobile-menu-design-flyout").length?(n=1<=jQuery(".fusion-is-sticky").length&&1<=jQuery(".fusion-mobile-sticky-nav-holder").length?i.find(".fusion-flyout-menu.fusion-mobile-sticky-nav-holder"):i.find(".fusion-flyout-menu:not(.fusion-mobile-sticky-nav-holder)"),i.find(".fusion-flyout-menu").css({display:"none"}),n.css({display:"flex"})):n=i.find(".fusion-flyout-menu"),jQuery(".fusion-header-has-flyout-menu .fusion-secondary-header").length&&(s+=jQuery(".fusion-header-has-flyout-menu .fusion-secondary-header").outerHeight()),jQuery("body").hasClass("layout-boxed-mode")&&(s+=jQuery("body").outerHeight(!0)-jQuery("body").outerHeight()),window.$wpadminbarHeight=fusion.getAdminbarHeight(),e=jQuery(".fusion-header-has-flyout-menu-content").height()+jQuery(".fusion-secondary-header").height()+window.$wpadminbarHeight,i.hasClass("fusion-flyout-menu-active")&&(n.css({height:"calc(100% - "+e+"px)","margin-top":e}),n.find(".fusion-menu").height()>n.height()&&n.css("display","flex")),!avadaMenuVars.header_sticky||t&&!avadaMenuVars.header_sticky_tablet||o&&!avadaMenuVars.header_sticky_mobile?(i.find(".fusion-header").css({position:"fixed",width:"100%","max-width":"100%",top:window.$wpadminbarHeight+s,"z-index":"210"}),jQuery(".fusion-header-sticky-height").css({display:"block",height:i.find(".fusion-header").outerHeight()})):u>window.$wpadminbarHeight&&(i.find(".fusion-header").css({position:"fixed",top:window.$wpadminbarHeight+s}),jQuery(".layout-boxed-mode").length&&i.find(".fusion-header").css("max-width",jQuery("#wrapper").outerWidth()+"px"),jQuery(".fusion-header-wrapper").css("height",""))}function o(){setTimeout(function(){var e=jQuery(".fusion-header-has-flyout-menu"),n=0,i=Modernizr.mq("only screen and (min-device-width: 768px) and (max-device-width: 1366px) and (orientation: portrait)")||Modernizr.mq("only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: landscape)"),s=Modernizr.mq("only screen and (max-width: "+avadaMenuVars.side_header_break_point+"px)");jQuery(".fusion-header-has-flyout-menu .fusion-secondary-header").length&&(n=jQuery(".fusion-header-has-flyout-menu .fusion-secondary-header").outerHeight()),e.find(".fusion-flyout-menu").css("display",""),!avadaMenuVars.header_sticky||i&&!avadaMenuVars.header_sticky_tablet||s&&!avadaMenuVars.header_sticky_mobile?(e.find(".fusion-header").attr("style",""),jQuery(".fusion-header-sticky-height").attr("style","")):"fixed"===e.find(".fusion-header").css("position")&&(e.find(".fusion-header").css("position",""),e.find(".fusion-header").offset().top>n&&e.find(".fusion-header").css("top",window.$wpadminbarHeight),jQuery(window).trigger("scroll")),jQuery("body").off("touchmove")},250)}jQuery(".fusion-dropdown-svg").length&&jQuery(".fusion-dropdown-svg").each(function(){var e=jQuery(this).parents("li").find("> .sub-menu > li:first-child");(jQuery(e).hasClass("current-menu-item")||jQuery(e).hasClass("current-menu-parent")||jQuery(e).hasClass("current_page_item"))&&jQuery(this).addClass("fusion-svg-active"),jQuery(e).not(".current-menu-item, .current-menu-parent, .current_page_item").find("> a").on("mouseenter mouseleave",function(){jQuery(this).parents("li").find(".fusion-dropdown-svg").toggleClass("fusion-svg-active")})}),jQuery.fn.fusion_position_menu_dropdown=function(){return"top"===avadaMenuVars.header_position&&!jQuery("body.rtl").length||"left"===avadaMenuVars.header_position?jQuery(this).children(".sub-menu").each(function(){var e,n,i,s,u,t,o,a,r,d,l,m,f,h=jQuery(this);h.removeAttr("style"),h.show(),h.removeData("shifted"),h.length&&(n=(e=h.offset()).left,t=(i=e.top)+(s=h.height()),o=n+(u=h.outerWidth()),r=fusion.getAdminbarHeight(),l=(d=jQuery(window).scrollTop())+jQuery(window).height(),o>jQuery(window).width()?(h.addClass("fusion-switched-side"),h.parent().parent(".sub-menu").length?h.css({left:-1*u}):h.css("left",-1*u+h.parent().width()),h.data("shifted",1)):h.parent().parent(".sub-menu").length&&(h.removeClass("fusion-switched-side"),h.parent().parent(".sub-menu").data("shifted")&&(h.css("left",-1*u),h.data("shifted",1))),"top"!==avadaMenuVars.header_position&&t>l&&(a=s<l?-1*(t-l+10):-1*(i-d-r),jQuery(".fusion-dropdown-svg").length&&(h.find("> li > a").off("mouseenter mouseleave"),h.parents("li").find(".fusion-dropdown-svg").removeClass("fusion-svg-active"),a=(m=Math.floor(a/h.find("li").outerHeight()))*h.find("li").outerHeight(),f=h.find("> li:nth-child( "+(Math.abs(m)+1)+")"),(jQuery(f).hasClass("current-menu-item")||jQuery(f).hasClass("current-menu-parent")||jQuery(f).hasClass("current_page_item"))&&h.parents("li").find(".fusion-dropdown-svg").addClass("fusion-svg-active"),jQuery(f).not(".current-menu-item, .current-menu-parent, .current_page_item").find("> a").on("mouseenter mouseleave",function(){h.parents("li").find(".fusion-dropdown-svg").toggleClass("fusion-svg-active")})),h.css("top",a)))}):jQuery(this).children(".sub-menu").each(function(){var e,n,i,s,u,t,o,a,r,d,l,m,f,h;jQuery(this).removeAttr("style"),jQuery(this).removeData("shifted"),(e=jQuery(this)).length&&(i=(n=e.offset()).left,s=n.top,u=e.height(),t=e.outerWidth(),o=s+u,a=fusion.getAdminbarHeight(),d=(r=jQuery(window).scrollTop())+jQuery(window).height(),m="right",0>i?(e.addClass("fusion-switched-side"),e.parent().parent(".sub-menu").length?i<t?e.attr("style",m+":"+-1*t+"px !important"):e.css(m,-1*t):e.css(m,-1*t+e.parent().width()),e.data("shifted",1)):e.parent().parent(".sub-menu").length&&(e.removeClass("fusion-switched-side"),e.parent().parent(".sub-menu").data("shifted")&&e.css(m,-1*t)),"top"!==avadaMenuVars.header_position&&o>d&&(l=u<d?-1*(o-d+10):-1*(s-r-a),jQuery(".fusion-dropdown-svg").length&&(e.find("> li > a").off("mouseenter mouseleave"),e.parents("li").find(".fusion-dropdown-svg").removeClass("fusion-svg-active"),l=(f=Math.floor(l/e.find("li").outerHeight()))*e.find("li").outerHeight(),h=e.find("> li:nth-child( "+(Math.abs(f)+1)+")"),(jQuery(h).hasClass("current-menu-item")||jQuery(h).hasClass("current-menu-parent")||jQuery(h).hasClass("current_page_item"))&&e.parents("li").find(".fusion-dropdown-svg").addClass("fusion-svg-active"),jQuery(h).not(".current-menu-item, .current-menu-parent, .current_page_item").find("> a").on("mouseenter mouseleave",function(){e.parents("li").find(".fusion-dropdown-svg").toggleClass("fusion-svg-active")})),e.css("top",l)))})},jQuery.fn.walk_through_menu_items=function(){jQuery(this).fusion_position_menu_dropdown(),jQuery(this).find(".sub-menu").length&&jQuery(this).find(".sub-menu li").walk_through_menu_items()},jQuery.fn.position_cart_dropdown=function(){"top"!==avadaMenuVars.header_position&&jQuery(this).find(".fusion-menu-cart-items").each(function(){var e,n,i,s=jQuery(this),u=s.height(),t=fusion.getAdminbarHeight(),o=jQuery(window).scrollTop(),a=jQuery(window).height(),r=o+a;s.css("top",""),(n=(e=s.offset().top)+u)>r&&(i=u<a?-1*(n-r+10):-1*(e-o-t),s.css("top",i))})},jQuery.fn.position_menu_search_form=function(){"top"!==avadaMenuVars.header_position&&jQuery(this).each(function(){var e,n,i=jQuery(this),s=i.outerHeight(),u=jQuery(window).scrollTop()+jQuery(window).height();i.css("top",""),(e=i.offset().top+s)>u&&(n=-1*(e-u+10),i.css("top",n))})},jQuery.fn.fusion_position_megamenu=function(){var e,n,i,s,u,t,o,a,r,d,l;return"top"===avadaMenuVars.header_position&&(o=jQuery(".fusion-secondary-main-menu").length?jQuery(".fusion-header-wrapper .fusion-secondary-main-menu .fusion-row"):jQuery(".fusion-header-wrapper .fusion-row"),a=o.width(),r=o.offset(),d=void 0!==r?r.left:0,l=d+a),jQuery(".side-header-left").length?this.each(function(){jQuery(this).children("li").each(function(){var e,n,i,s,u,t,o,a,r=jQuery(this).find(".fusion-megamenu-wrapper");r.length&&(r.removeAttr("style"),e=jQuery("#side-header").outerWidth()-1,s=(n=r.offset().top)+(i=r.height()),u=fusion.getAdminbarHeight(),t=jQuery(".side-header-wrapper").offset().top-u,o=jQuery(window).height(),jQuery("body.rtl").length?r.css({left:e,right:"auto"}):r.css("left",e),s>t+o&&jQuery(window).height()>=jQuery(".side-header-wrapper").height()&&(a=i<o?-1*(s-t-o+20):-1*(n-u),r.css("top",a)))})}):jQuery(".side-header-right").length?this.each(function(){jQuery(this).children("li").each(function(){var e,n,i,s,u,t,o,a,r=jQuery(this).find(".fusion-megamenu-wrapper");r.length&&(r.removeAttr("style"),e=-1*r.outerWidth(),s=(n=r.offset().top)+(i=r.height()),u=fusion.getAdminbarHeight(),t=jQuery(".side-header-wrapper").offset().top-u,o=jQuery(window).height(),jQuery("body.rtl").length?r.css({left:e,right:"auto"}):r.css("left",e),s>t+o&&jQuery(window).height()>=jQuery(".side-header-wrapper").height()&&(a=i<o?-1*(s-t-o+20):-1*(n-u),r.css("top",a)))})}):(e="",e=jQuery(".fusion-header-v4").length?jQuery(this).parent(".fusion-main-menu").parent():jQuery(this).parent(".fusion-main-menu"),jQuery(this).parent(".fusion-main-menu").length?(i=(n=e).offset(),s=n.width(),u=i.left,t=u+s,jQuery("body.rtl").length?this.each(function(){jQuery(this).children("li").each(function(){var e=jQuery(this),n=e.offset(),i=n.left+e.outerWidth(),s=e.find(".fusion-megamenu-wrapper"),r=s.outerWidth(),d=0;s.length&&(s.removeAttr("style"),a=o.width(),i-r<u&&(r===jQuery(window).width()?d=i-r:r>a?d=i-l+(a-r)/2:(d=-1*(n.left-(t-r)),d=-1*(r-(i-u)),("left"===avadaMenuVars.logo_alignment.toLowerCase()||"center"===avadaMenuVars.logo_alignment.toLowerCase()&&!jQuery(".header-v5").length||jQuery(this).parents(".sticky-header").length)&&i-d>t&&(d=-1*(t-i))),s.css("right",d)))})}):this.each(function(){jQuery(this).children("li").each(function(){var e=jQuery(this),n=e.offset(),i=e.find(".fusion-megamenu-wrapper"),s=i.outerWidth(),r=0;i.length&&(i.removeAttr("style"),a=o.width(),n.left+s>t&&(s===jQuery(window).width()?r=-1*n.left:s>a?r=d-n.left+(a-s)/2:(r=-1*(n.left-(t-s)),"right"===avadaMenuVars.logo_alignment.toLowerCase()&&n.left+r<u&&(r=-1*(n.left-u))),i.css("left",r)))})})):void 0)},jQuery.fn.calc_megamenu_widths=function(){jQuery(this).find(".fusion-megamenu-menu").each(function(){var e,n,i,s=jQuery(this).find(".fusion-megamenu-holder"),u=s.data("width");s.css("width",u),e=s.outerWidth(),"site_width"===avadaMenuVars.megamenu_base_width?"top"===avadaMenuVars.header_position?n=(jQuery(".fusion-secondary-main-menu").length?jQuery(".fusion-header-wrapper .fusion-secondary-main-menu .fusion-row"):jQuery(".fusion-header-wrapper .fusion-row")).width():"boxed"===avadaMenuVars.site_layout.toLowerCase()?n=jQuery("#main").outerWidth():(i=jQuery("#main").css("padding-left").replace("px",""),n=jQuery(window).width()-i-jQuery("#side-header").outerWidth()):n="viewport_width"===avadaMenuVars.megamenu_base_width&&"boxed"===avadaMenuVars.site_layout.toLowerCase()&&"top"!==avadaMenuVars.header_position?jQuery("#main").outerWidth():jQuery(window).width(),n<e?s.css("width",n):s.css("width",e)})},jQuery.fn.position_last_top_menu_item=function(){var e,n,i,s,u,t;(jQuery(this).children("ul").length||jQuery(this).children("div").length)&&(n=(e=jQuery(this)).position().left,u=(s=jQuery(".fusion-secondary-header .fusion-row")).position().left,t=s.outerWidth(),e.children("ul").length?i=e.children("ul"):e.children("div").length&&(i=e.children("div")),jQuery("body.rtl").length?i.position().left<n&&(i.css("left","-1px").css("right","auto"),i.find(".sub-menu").each(function(){jQuery(this).css("left","100px").css("right","auto")})):n+i.outerWidth()>u+t&&(i.css("right","-1px").css("left","auto"),i.find(".sub-menu").each(function(){jQuery(this).css("right","100px").css("left","auto")})))},n(),i(),u(),jQuery(window).on("header-rendered",function(){n(),i(),u()}),jQuery(document.body).on("mouseenter",".fusion-dropdown-menu",function(){jQuery(this).css("overflow","visible")}),jQuery(document.body).on("mouseleave",".fusion-dropdown-menu, .fusion-megamenu-menu, .fusion-custom-menu-item",function(){jQuery(this).css("overflow",""),jQuery(".fusion-active-link").removeClass("fusion-active-link")}),jQuery(document.body).on("click",".fusion-main-menu-search",function(e){e.stopPropagation()}),jQuery(document.body).on("click",".fusion-main-menu-search:not(.fusion-search-overlay) .fusion-main-menu-icon",function(e){e.preventDefault(),e.stopPropagation(),"block"===jQuery(this).parent().find(".fusion-custom-menu-item-contents").css("display")?(jQuery(this).parent().find(".fusion-custom-menu-item-contents").hide(),jQuery(this).parent().removeClass("fusion-main-menu-search-open"),jQuery(this).parent().find("style").remove(),jQuery(this).attr("aria-expanded","false")):(jQuery(this).parent().find(".fusion-custom-menu-item-contents").removeAttr("style"),jQuery(this).parent().find(".fusion-custom-menu-item-contents").show(),jQuery(this).parent().addClass("fusion-main-menu-search-open"),jQuery(this).parent().append("<style>.fusion-main-menu{overflow:visible!important;</style>"),jQuery(this).parent().find(".fusion-custom-menu-item-contents .s").focus(),jQuery(this).attr("aria-expanded","true"),"top"===avadaMenuVars.header_position&&(!jQuery("body.rtl").length&&0>jQuery(this).parent().find(".fusion-custom-menu-item-contents").offset().left&&jQuery(this).parent().find(".fusion-custom-menu-item-contents").css({left:"0",right:"auto"}),jQuery("body.rtl").length&&jQuery(this).parent().find(".fusion-custom-menu-item-contents").offset().left+jQuery(this).parent().find(".fusion-custom-menu-item-contents").width()>jQuery(window).width()&&jQuery(this).parent().find(".fusion-custom-menu-item-contents").css({left:"auto",right:"0"})))}),jQuery(document.body).on("click",".fusion-search-overlay .fusion-main-menu-icon, .fusion-close-search",function(e){var n=jQuery(".fusion-main-menu");e.preventDefault(),resizeOverlaySearch(),n.addClass("search-transition"),setTimeout(function(){n.removeClass("search-transition")},800),n.toggleClass("search-open"),n.hasClass("search-open")?(n.find('.fusion-search-field input[type="search"]').focus(),n.find(".fusion-main-menu-search").attr("aria-expanded","true")):n.find(".fusion-main-menu-search").attr("aria-expanded","false")}),jQuery("a").on("focus",function(){jQuery(".fusion-active-link ").removeClass("fusion-active-link"),jQuery(this).parents(".fusion-dropdown-menu, .fusion-main-menu-cart, .fusion-megamenu-menu, .fusion-custom-menu-item").length&&(jQuery(this).parents("li").addClass("fusion-active-link"),jQuery(".fusion-main-menu").css("overflow","visible"))}),jQuery(document).on("click",function(){jQuery(".fusion-main-menu-search-dropdown .fusion-main-menu-search .fusion-custom-menu-item-contents").hide(),jQuery(".fusion-main-menu-search-dropdown .fusion-main-menu-search").removeClass("fusion-main-menu-search-open"),jQuery(".fusion-main-menu-search-dropdown .fusion-main-menu-search").find("style").remove()}),jQuery(".fusion-header-wrapper .fusion-secondary-menu > ul > li:last-child").position_last_top_menu_item(),s(".fusion-main-menu .fusion-main-menu-cart"),s(".fusion-secondary-menu .fusion-menu-login-box"),jQuery(".fusion-megamenu-menu").on("mouseenter",function(){jQuery(this).find(".shortcode-map").length&&jQuery(this).find(".shortcode-map").each(function(){jQuery(this).reinitializeGoogleMap()})}),e=!1,jQuery(".fusion-megamenu-menu").on("mouseover",function(){jQuery(this).find(".fusion-megamenu-widgets-container iframe").each(function(){e||jQuery(this).attr("src",jQuery(this).attr("src")),e=!0})}),jQuery(".fusion-main-menu").on("mouseenter",".fusion-menu-cart",function(){jQuery(this).position_cart_dropdown()}),jQuery(".fusion-main-menu .fusion-main-menu-search .fusion-main-menu-icon").on("click",function(){var e=jQuery(this);setTimeout(function(){e.parent().find(".fusion-custom-menu-item-contents").position_menu_search_form()},5)}),jQuery(window).on("fusion-resize-horizontal",function(){jQuery(".fusion-main-menu .fusion-main-menu-search .fusion-custom-menu-item-contents").position_menu_search_form()}),jQuery(document).on("click",".fusion-mobile-selector",function(){var e=jQuery(this).next("ul");e.hasClass("mobile-menu-expanded")?(e.removeClass("mobile-menu-expanded"),jQuery(this).attr("aria-expanded","false")):(e.addClass("mobile-menu-expanded"),jQuery(this).attr("aria-expanded","true")),e.slideToggle(200,"easeOutQuad"),jQuery(".fusion-mobile-menu-search").slideToggle(200,"easeOutQuad")}),jQuery(".fusion-is-sticky").length&&jQuery(".fusion-mobile-sticky-nav-holder").length?jQuery(".fusion-mobile-menu-icons .awb-icon-bars").attr("aria-controls",jQuery(".fusion-mobile-sticky-nav-holder > ul").attr("id")):jQuery(".fusion-mobile-menu-icons .awb-icon-bars").attr("aria-controls",jQuery(".fusion-mobile-nav-holder").not(".fusion-mobile-sticky-nav-holder").find("> ul").attr("id")),jQuery(window).on("scroll",function(){setTimeout(function(){jQuery(".fusion-is-sticky").length&&jQuery(".fusion-mobile-sticky-nav-holder").length?jQuery(".fusion-mobile-menu-icons .awb-icon-bars").attr("aria-controls",jQuery(".fusion-mobile-sticky-nav-holder > ul").attr("id")):jQuery(".fusion-mobile-menu-icons .awb-icon-bars").attr("aria-controls",jQuery(".fusion-mobile-nav-holder").not(".fusion-mobile-sticky-nav-holder").find("> ul").attr("id"))},50)}),jQuery(document).on("click",".fusion-mobile-menu-icons .awb-icon-bars",function(e){var n,i;e.preventDefault(),n=1<=jQuery(".fusion-header-v4").length||1<=jQuery(".fusion-header-v5").length?".fusion-secondary-main-menu":1<=jQuery("#side-header").length?"#side-header":".fusion-header",(i=1<=jQuery(".fusion-is-sticky").length&&1<=jQuery(".fusion-mobile-sticky-nav-holder").length?jQuery(n).find(".fusion-mobile-sticky-nav-holder"):jQuery(n).find(".fusion-mobile-nav-holder").not(".fusion-mobile-sticky-nav-holder")).slideToggle(200,"easeOutQuad"),i.toggleClass("fusion-mobile-menu-expanded"),i.hasClass("fusion-mobile-menu-expanded")?jQuery(this).attr("aria-expanded","true"):jQuery(this).attr("aria-expanded","false")}),jQuery(document).on("click",".fusion-mobile-menu-icons .awb-icon-search",function(e){e.preventDefault(),jQuery(".fusion-secondary-main-menu .fusion-secondary-menu-search, .side-header-wrapper .fusion-secondary-menu-search, .fusion-mobile-menu-search").slideToggle(200,"easeOutQuad")}),jQuery(document).on("click",".fusion-flyout-menu-icons .fusion-flyout-menu-toggle",function(e){var n=jQuery(".fusion-header-has-flyout-menu");e.preventDefault(),jQuery(document).off("keyup.flyoutSearchEsc"),jQuery(document).off("keyup.flyoutMenuEsc"),n.hasClass("fusion-flyout-active")?(n.hasClass("fusion-flyout-search-active")?(n.addClass("fusion-flyout-menu-active"),t(),jQuery(document).on("keyup.flyoutMenuEsc",function(e){27===e.keyCode&&document.querySelector(".fusion-flyout-menu-icons .fusion-flyout-menu-toggle").click()})):(n.removeClass("fusion-flyout-active"),n.removeClass("fusion-flyout-menu-active"),o()),n.removeClass("fusion-flyout-search-active")):(n.addClass("fusion-flyout-active"),n.addClass("fusion-flyout-menu-active"),t(),jQuery(document).on("keyup.flyoutMenuEsc",function(e){27===e.keyCode&&document.querySelector(".fusion-flyout-menu-icons .fusion-flyout-menu-toggle").click()}))}),jQuery(document).on("click",".fusion-flyout-menu-icons .fusion-flyout-search-toggle",function(e){var n=jQuery(".fusion-header-has-flyout-menu");e.preventDefault(),jQuery(document).off("keyup.flyoutSearchEsc"),jQuery(document).off("keyup.flyoutMenuEsc"),n.hasClass("fusion-flyout-active")?(n.hasClass("fusion-flyout-menu-active")?(n.addClass("fusion-flyout-search-active"),Modernizr.mq("only screen and (min-width:"+parseInt(avadaMenuVars.side_header_break_point,10)+"px)")&&n.find(".fusion-flyout-search .s").focus(),jQuery(document).on("keyup.flyoutSearchEsc",function(e){27===e.keyCode&&document.querySelector(".fusion-flyout-menu-icons .fusion-icon.awb-icon-search").click()})):(n.removeClass("fusion-flyout-active"),n.removeClass("fusion-flyout-search-active"),o()),n.removeClass("fusion-flyout-menu-active")):(n.addClass("fusion-flyout-active"),n.addClass("fusion-flyout-search-active"),Modernizr.mq("only screen and (min-width:"+parseInt(avadaMenuVars.side_header_break_point,10)+"px)")&&n.find(".fusion-flyout-search .s").focus(),t(),jQuery(document).on("keyup.flyoutSearchEsc",function(e){27===e.keyCode&&document.querySelector(".fusion-flyout-menu-icons .fusion-icon.awb-icon-search").click()}))}),jQuery("html").on("mouseenter",".fusion-no-touch .fusion-flyout-menu .menu-item a",function(){jQuery(this).parents(".fusion-flyout-menu").find(".fusion-flyout-menu-backgrounds #item-bg-"+jQuery(this).parent().data("item-id")).addClass("active")}),jQuery("html").on("mouseleave",".fusion-no-touch .fusion-flyout-menu .menu-item a",function(){jQuery(this).parents(".fusion-flyout-menu").find(".fusion-flyout-menu-backgrounds #item-bg-"+jQuery(this).parent().data("item-id")).removeClass("active")}),jQuery(window).on("resize",function(){jQuery(".fusion-mobile-menu-design-flyout").hasClass("fusion-flyout-active")&&Modernizr.mq("screen and (min-width: "+(parseInt(avadaHeaderVars.side_header_break_point,10)+1)+"px)")&&jQuery(".fusion-flyout-menu-icons .fusion-flyout-menu-toggle").trigger("click")}).on("fusion-reset-flyout-active-css",function(){o()})}),jQuery(window).on("load",function(){function e(){var e=0;Modernizr.mq("only screen and (max-width: "+avadaMenuVars.side_header_break_point+"px)")?(jQuery(".fusion-secondary-menu > ul").children("li").each(function(){e+=jQuery(this).outerWidth(!0)+2}),e>jQuery(window).width()&&318<jQuery(window).width()?window.mobileMenuSepAdded||(jQuery(".fusion-secondary-menu > ul").append('<div class="fusion-mobile-menu-sep"></div>'),jQuery(".fusion-secondary-menu > ul").css("position","relative"),jQuery(".fusion-mobile-menu-sep").css({position:"absolute",top:jQuery(".fusion-secondary-menu > ul > li").height()-1+"px",width:"100%","border-bottom-width":"1px","border-bottom-style":"solid"}),window.mobileMenuSepAdded=!0):(jQuery(".fusion-secondary-menu > ul").css("position",""),jQuery(".fusion-secondary-menu > ul").find(".fusion-mobile-menu-sep").remove(),window.mobileMenuSepAdded=!1)):(jQuery(".fusion-secondary-menu > ul").css("position",""),jQuery(".fusion-secondary-menu > ul").find(".fusion-mobile-menu-sep").remove(),window.mobileMenuSepAdded=!1)}window.mobileMenuSepAdded=!1,e(),"classic"===avadaMenuVars.mobile_menu_design&&(jQuery(".sh-mobile-nav-holder").append('<div class="mobile-selector" aria-expanded="false"><span>'+avadaMenuVars.dropdown_goto+"</span></div>"),jQuery(".sh-mobile-nav-holder .mobile-selector").append('<div class="selector-down"></div>')),jQuery(".sh-mobile-nav-holder").append(jQuery(".nav-holder .fusion-navbar-nav").clone()),jQuery(".sh-mobile-nav-holder .fusion-navbar-nav").attr("id","mobile-nav"),jQuery(".sh-mobile-nav-holder ul#mobile-nav").removeClass("fusion-navbar-nav"),jQuery(".sh-mobile-nav-holder ul#mobile-nav").children(".cart").remove(),jQuery(".sh-mobile-nav-holder ul#mobile-nav .mobile-nav-item").children(".login-box").remove(),jQuery(".sh-mobile-nav-holder ul#mobile-nav li").children("#main-nav-search-link").each(function(){jQuery(this).parents("li").remove()}),jQuery(".sh-mobile-nav-holder ul#mobile-nav").find("li").each(function(){var e="mobile-nav-item";(jQuery(this).hasClass("current-menu-item")||jQuery(this).hasClass("current-menu-parent")||jQuery(this).hasClass("current-menu-ancestor"))&&(e+=" mobile-current-nav-item"),jQuery(this).attr("class",e),jQuery(this).attr("id")&&jQuery(this).attr("id",jQuery(this).attr("id").replace("menu-item","mobile-menu-item")),jQuery(this).attr("style","")}),jQuery(".sh-mobile-nav-holder .mobile-selector").on("click",function(){jQuery(".sh-mobile-nav-holder #mobile-nav").hasClass("mobile-menu-expanded")?(jQuery(".sh-mobile-nav-holder #mobile-nav").removeClass("mobile-menu-expanded"),jQuery(this).attr("aria-expanded","false")):(jQuery(".sh-mobile-nav-holder #mobile-nav").addClass("mobile-menu-expanded"),jQuery(this).attr("aria-expanded","true")),jQuery(".sh-mobile-nav-holder #mobile-nav").slideToggle(200,"easeOutQuad")}),avadaMenuVars.submenu_slideout&&(jQuery(".header-wrapper .mobile-topnav-holder .mobile-topnav li, .header-wrapper .mobile-nav-holder .navigation li, .sticky-header .mobile-nav-holder .navigation li, .sh-mobile-nav-holder .navigation li").each(function(){var e="mobile-nav-item";(jQuery(this).hasClass("current-menu-item")||jQuery(this).hasClass("current-menu-parent")||jQuery(this).hasClass("current-menu-ancestor")||jQuery(this).hasClass("mobile-current-nav-item"))&&(e+=" mobile-current-nav-item"),jQuery(this).attr("class",e),jQuery(this).find(" > ul").length&&(jQuery(this).prepend('<span href="#" aria-haspopup="true" class="open-submenu"></span>'),jQuery(this).find(" > ul").hide())}),jQuery(".header-wrapper .mobile-topnav-holder .open-submenu, .header-wrapper .mobile-nav-holder .open-submenu, .sticky-header .mobile-nav-holder .open-submenu, .sh-mobile-nav-holder .open-submenu").on("click",function(e){e.stopPropagation(),jQuery(this).parent().children(".sub-menu").slideToggle(200,"easeOutQuad")})),("ontouchstart"in document.documentElement||navigator.msMaxTouchPoints)&&(jQuery(".fusion-main-menu li.menu-item-has-children > a, .fusion-secondary-menu li.menu-item-has-children > a, .order-dropdown > li .current-li").on("click",function(){var e=jQuery(this);return e.hasClass("hover")?(e.removeClass("hover"),!0):(e.addClass("hover"),jQuery(".fusion-main-menu li.menu-item-has-children > a, .fusion-secondary-menu li.menu-item-has-children > a, .order-dropdown > li .current-li").not(this).removeClass("hover"),!1)}),jQuery(".sub-menu li, .fusion-mobile-nav-item li").not("li.menu-item-has-children").on("click",function(){var e=jQuery(this).find("a").attr("href");return"_blank"!==jQuery(this).find("a").attr("target")&&(0<e.indexOf("#")&&(e="/"===e.charAt(e.indexOf("#")-1)?e.replace("#","#_"):e.replace("#","/#_")),window.location=e),!0})),jQuery(".fusion-main-menu li.menu-item-has-children > a, .fusion-secondary-menu li.menu-item-has-children > a, .side-nav li.page_item_has_children > a").each(function(){jQuery(this).attr("aria-haspopup","true")}),1<=jQuery(".megaResponsive").length&&jQuery(".mobile-nav-holder.main-menu").addClass("set-invisible"),"top"===avadaMenuVars.header_position&&jQuery(window).on("fusion-resize-horizontal",function(){jQuery(".main-nav-search").each(function(){var e,n,i,s,u,t;jQuery(this).hasClass("search-box-open")&&(n=(e=jQuery(this).find(".main-nav-search-form")).outerWidth(),s=(i=e.offset().left)+n,u=e.parent().offset().left,t=jQuery(window).width(),jQuery("body.rtl").length?parseInt(i,10)===parseInt(u,10)&&s>t||i<u&&s+n>t?e.css({left:"auto",right:"0"}):e.css({left:"0",right:"auto"}):i<u&&0>i||parseInt(i,10)===parseInt(u,10)&&0>i-n?e.css({left:"0",right:"auto"}):e.css({left:"auto",right:"0"}))})}),jQuery(window).on("fusion-resize-horizontal",function(){e()}),jQuery(".fusion-menu-login-box").each(function(){var e=jQuery(this),n=e.find(".fusion-custom-menu-item-contents");n.find('input[id="username"]').on("click",function(){e.addClass("fusion-active-login"),e.closest(".fusion-main-menu").css("overflow","visible")}),n.find('input[id="username"]').on("input",function(){e.hasClass("fusion-active-login")&&e.removeClass("fusion-active-login").addClass("fusion-active-link")}),n.find("input").not('[id="username"]').on("click",function(){e.removeClass("fusion-active-login").removeClass("fusion-active-link"),e.closest(".fusion-main-menu").css("overflow","")})}),jQuery(".fusion-main-menu .fusion-menu-login-box").length&&jQuery(".fusion-main-menu").on("mouseleave",function(){var e=jQuery(this),n=e.find(".fusion-menu-login-box");setTimeout(function(){"hidden"===n.css("overflow")&&e.css("overflow","")},10)}),jQuery(document).on("click",function(e){"fusion-custom-menu-item-contents"!==e.target.className&&"input-text"!==e.target.className&&(jQuery(".fusion-custom-menu-item-contents").parents(".fusion-custom-menu-item").removeClass("fusion-active-login").removeClass("fusion-active-link"),jQuery(".fusion-main-menu").css("overflow",""))})});!function(t){"use strict";function s(e,r){var i=t.proxy(this.process,this);this.$body=t("body"),this.$scrollElement=t(e).is("body")?t(window):t(e),this.options=t.extend({},s.DEFAULTS,r),this.selector=(this.options.target||"")+" li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",i),this.refresh(),this.process()}function e(e){return this.each(function(){var r=t(this),i=r.data("bs.scrollspy"),o="object"==typeof e&&e;i||r.data("bs.scrollspy",i=new s(this,o)),"string"==typeof e&&i[e]()})}s.VERSION="3.3.2",s.DEFAULTS={offset:10},s.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},s.prototype.refresh=function(){var s="offset",e=0;fusion.isWindow(this.$scrollElement[0])||(s="position",e=this.$scrollElement.scrollTop()),this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight();var r=this;this.$body.find(this.selector).map(function(){var r=t(this),i=r.data("target")||r.attr("href"),o=/^#./.test(i)&&t(i);return o&&o.length&&o.is(":visible")&&[[o[s]().top+e,i]]||null}).sort(function(t,s){return t[0]-s[0]}).each(function(){r.offsets.push(this[0]),r.targets.push(this[1])})},s.prototype.process=function(){var t,s=this.$scrollElement.scrollTop()+this.options.offset,e=this.getScrollHeight(),r=this.options.offset+e-this.$scrollElement.height(),i=this.offsets,o=this.targets,l=this.activeTarget;if(this.scrollHeight!=e&&this.refresh(),s>=r)return l!=(t=o[o.length-1])&&this.activate(t);if(l&&s<i[0])return this.activeTarget=null,this.clear();for(t=i.length;t--;)l!=o[t]&&s>=i[t]&&(!i[t+1]||s<=i[t+1])&&this.activate(o[t])},s.prototype.activate=function(s){this.activeTarget=s,this.clear();var e=window.location.href.split("#"),r="/"==e[0].charAt(e[0].length-1)?e[0]:e[0]+"/",i=this.selector+'[data-target="'+s+'"],'+this.selector+'[href="'+s+'"],'+this.selector+'[href="'+r+s+'"]',o=t(i).parents("li").addClass("current-menu-item");o.parent(".sub-menu").length&&(o=o.closest("li.fusion-dropdown-menu").addClass("current-menu-item")),o.trigger("activate.bs.scrollspy"),o&&t(this.selector).blur()},s.prototype.clear=function(){t(this.selector).parentsUntil(this.options.target,".current-menu-item").removeClass("current-menu-item"),t(this.selector).parentsUntil(this.options.target,".current-menu-parent").removeClass("current-menu-parent")};var r=t.fn.scrollspy;t.fn.scrollspy=e,t.fn.scrollspy.Constructor=s,t.fn.scrollspy.noConflict=function(){return t.fn.scrollspy=r,this},t(window).on("load.bs.scrollspy.data-api",function(){t('[data-spy="scroll"]').each(function(){var s=t(this);e.call(s,s.data())})})}(jQuery);function fusionGetScrollOffset(){var t,o=fusion.getAdminbarHeight(),e="function"==typeof getStickyHeaderHeight?getStickyHeaderHeight():0,s=parseInt(o+e+1,10);return jQuery(".fusion-tb-header").length&&"function"==typeof fusionGetStickyOffset?(t=fusionGetStickyOffset())?t+1:o:s}jQuery(document).ready(function(){jQuery("body").scrollspy({target:".fusion-menu",offset:fusionGetScrollOffset()}),jQuery(window).on("load fusion-sticky-change fusion-sticky-scroll-change",function(){"object"==typeof jQuery("body").data()["bs.scrollspy"]&&(jQuery("body").data()["bs.scrollspy"].options.offset=fusionGetScrollOffset())}),jQuery(window).on("fusion-sticky-transition-change",function(){setTimeout(function(){"object"==typeof jQuery("body").data()["bs.scrollspy"]&&(jQuery("body").data()["bs.scrollspy"].options.offset=fusionGetScrollOffset())},300)})});var fusionTypographyVars={"site_width":"1180px","typography_sensitivity":"0.70","typography_factor":"1.50","elements":"h1, h2, h3, h4, h5, h6"};function fusionCalculateResponsiveTypeValues(e,t,i,n){fusionSetOriginalTypographyData(n)}function fusionSetOriginalTypographyData(e){var t="string"==typeof e&&-1!==e.indexOf("fusion-slider"),i=fusion.getElements(e);jQuery(i).each(function(e,i){var n,o,s,a,r;n=fusionTypographyVars.typography_factor,i.classList.contains("fusion-responsive-typography-calculated")?i.style.getPropertyValue("--fontSize")&&""!==i.style.getPropertyValue("--fontSize")||i.classList.remove("fusion-responsive-typography-calculated"):null!==i.closest(".fusion-slider-revolution")||null!==i.closest(".rev_slider")||null!==i.closest("#layerslider-container")||null!==i.closest(".ls-avada.ls-container")||null!==i.closest(".fusion-slider-container")&&!t||(s=window.getComputedStyle(i),a=!!s["font-size"]&&parseFloat(s["font-size"]),r=!!s["line-height"]&&parseFloat(s["line-height"]),!1!==a&&!1!==r&&(r=Math.round(r/a*100)/100,i.style.setProperty("--fontSize",a),i.setAttribute("data-fontsize",a),i.style.lineHeight=r,i.setAttribute("data-lineheight",s["line-height"]),window.fusionBaseFontSize||(window.fusionBaseFontSize=getComputedStyle(document.documentElement).getPropertyValue("--base-font-size")),t&&(void 0!==(o=jQuery(i).closest(".tfs-slider")).data("typo_factor")&&(n=o.data("typo_factor")),i.style.setProperty("--typography_sensitivity",o.data("typo_sensitivity"))),window.fusionBaseFontSize*n>a&&i.style.setProperty("--minFontSize",a),jQuery(i.querySelectorAll(".fusion-animated-texts-wrapper")).each(function(e,t){var i=window.getComputedStyle(t),n=!!i["font-size"]&&parseFloat(i["font-size"]),o=!!i["line-height"]&&parseFloat(i["line-height"]);t.style.fontSize=n/a+"em",t.style.lineHeight=Math.round(o/n*100)/100}),i.classList.add("fusion-responsive-typography-calculated")))})}function fusionInitTypography(){window.responsiveTypeElements=fusionTypographyVars.elements,0<fusionTypographyVars.typography_sensitivity&&fusionSetOriginalTypographyData(window.responsiveTypeElements)}document.body.classList.contains("fusion-builder-live")?window.onload=fusionInitTypography:fusion.ready(function(){fusionInitTypography()}),document.body.addEventListener("fusion-typography",function(e){var t,i=e.detail.heading,n=e.detail.values,o=fusion.getElements(i);jQuery(o).each(function(e,i){t=window.getComputedStyle(i),""!==i.parentNode.style.fontSize&&i.parentNode.classList.contains("fusion-title")?i.style.fontSize="1em":i.parentNode.getAttribute("data-inline-fontsize")&&i.getAttribute("data-inline-fontsize")?i.style.fontSize=i.getAttribute("data-inline-fontsize"):i.style.fontSize=n["font-size"],i.getAttribute("data-inline-lineheight")&&i.getAttribute("data-inline-lineheight")?i.style.lineHeight=i.getAttribute("data-inline-lineheight"):i.style.lineHeight=n["line-height"],i.setAttribute("data-fontsize",parseFloat(t["font-size"])),i.style.setProperty("--fontSize",parseFloat(t["font-size"])),i.classList.add("fusion-responsive-typography-calculated")})}),jQuery(document).ajaxComplete(function(){0<fusionTypographyVars.typography_sensitivity&&fusionSetOriginalTypographyData(window.responsiveTypeElements)}),jQuery(window).on("fusion-typography-reset",function(e,t){"undefined"!=typeof fusionTypographyVars&&0!==parseFloat(fusionTypographyVars.typography_sensitivity)&&fusionSetOriginalTypographyData(jQuery('div[data-cid="'+t+'"]').find(window.responsiveTypeElements))}),document.body.style.setProperty("--viewportWidth",window.screen.width),window.addEventListener("resize",function(){document.body.style.setProperty("--viewportWidth",window.screen.width)});var fusionScrollToAnchorVars={"content_break_point":"800","container_hundred_percent_height_mobile":"0","hundred_percent_scroll_sensitivity":"200"};!function(e){"use strict";e.fn.fusion_scroll_to_anchor_target=function(t){var n,o,i,s,a,r,l,c,u,f,h,d,p=void 0!==e(this).attr("href")?e(this).attr("href"):e(this).data("link"),g=p.substr(p.indexOf("#")).slice(1),y=e("#"+g),m=e("html").hasClass("ua-edge")||e("html").hasClass("ua-safari-12")||e("html").hasClass("ua-safari-11")||e("html").hasClass("ua-safari-10")?"body":"html",b=e(".fusion-tb-header").length,w=!1,_=!1;if(t=void 0!==t?t:0,y.length&&""!==g){if((y.parents(".hundred-percent-height-scrolling").length||y.find(".hundred-percent-height-scrolling").length)&&(0!=fusionScrollToAnchorVars.container_hundred_percent_height_mobile||!Modernizr.mq("only screen and (max-width: "+fusionScrollToAnchorVars.content_break_point+"px)"))){if((d=y.hasClass("fusion-scroll-section-element")?y:y.parents(".fusion-scroll-section-element")).hasClass("active")&&d.offset().top>=e(window).scrollTop()&&d.offset().top<e(window).scrollTop()+e(window).height())return!1;if(location.hash&&"#_"===location.hash.substring(0,2)&&e(".fusion-page-load-link").addClass("fusion-page.load-scroll-section-link"),y.parents(".fusion-scroll-section").length)return y.parents(".fusion-scroll-section").hasClass("active")?y.parents(".fusion-scroll-section").find(".fusion-scroll-section-nav").find(".fusion-scroll-section-link[data-element="+d.data("element")+"]").trigger("click"):(h=Math.ceil(y.parents(".fusion-scroll-section").offset().top),e(m).animate({scrollTop:h},{duration:400,easing:"easeInExpo",complete:function(){setTimeout(function(){y.parents(".fusion-scroll-section").find(".fusion-scroll-section-nav").find(".fusion-scroll-section-link[data-element="+d.data("element")+"]").trigger("click"),location.hash&&"#_"===location.hash.substring(0,2)&&("history"in window&&"replaceState"in history&&history.replaceState("",window.location.href.replace("#_","#"),window.location.href.replace("#_","#")),e(".fusion-page-load-link").removeClass("fusion-page.load-scroll-section-link"))},parseInt(fusionScrollToAnchorVars.hundred_percent_scroll_sensitivity)+50)}})),!1}return y.parents(".awb-off-canvas").length?0!==y.parents(".awb-off-canvas-wrap.awb-show").length&&(l=(r=y.parents(".awb-off-canvas-wrap.awb-show").find(".off-canvas-content"))[0].getBoundingClientRect().top,c=y[0].getBoundingClientRect().top,u=r.scrollTop(),s=c<l?u-(l-c):Math.abs(u+(c-l)),f=r[0].scrollHeight-r.outerHeight(),s>f&&(s=f),void r.animate({scrollTop:s},{duration:400})):(n=fusion.getAdminbarHeight(),i=e(document).scrollTop(),b?(e("body").addClass("fusion-scrolling-active"),(w=fusionGetStickyOffset())||(w=n),s=y.offset().top-w-t):(o="function"==typeof getStickyHeaderHeight?getStickyHeaderHeight():0,s=y.offset().top-n-o-t),a=Math.abs(i-s)/2,h=i>s?i-a:i+a,e(m).animate({scrollTop:h},{duration:400,easing:"easeInExpo",complete:function(){n=fusion.getAdminbarHeight(),b?((w=fusionGetStickyOffset())||(w=n),s=Math.ceil(y.offset().top)-w-t):(o="function"==typeof getStickyHeaderHeight?getStickyHeaderHeight():0,s=Math.ceil(y.offset().top)-n-o-t),e(m).animate({scrollTop:s},450,"easeOutExpo",function(){location.hash&&"#_"===location.hash.substring(0,2)&&"history"in window&&"replaceState"in history&&history.replaceState("",window.location.href.replace("#_","#"),window.location.href.replace("#_","#")),b&&(_=fusionGetStickyOffset(),w!==_&&(s=Math.ceil(y.offset().top)-_-t,e(m).animate({scrollTop:s},450)),e("body").removeClass("fusion-scrolling-active"))})}}),(y.hasClass("tab-pane")||y.hasClass("tab-link"))&&"function"==typeof e.fn.fusionSwitchTabOnLinkClick&&setTimeout(function(){y.parents(".fusion-tabs").fusionSwitchTabOnLinkClick()},100),!1)}}}(jQuery),jQuery(document).ready(function(){jQuery("body").on("click",'.fusion-menu a:not([href="#"], .fusion-megamenu-widgets-container a, .search-link), .fusion-widget-menu a, .fusion-secondary-menu a, .fusion-mobile-nav-item a:not([href="#"], .search-link), .fusion-button:not([href="#"], input, button), .fusion-one-page-text-link:not([href="#"]), .fusion-content-boxes .fusion-read-more:not([href="#"]), .fusion-imageframe > .fusion-no-lightbox, .content-box-wrapper:not(.link-area-box) .heading-link, a.woocommerce-review-link',function(e){var t,n,o,i,s,a,r,l=jQuery("body").hasClass("fusion-builder-live");if(jQuery(this).hasClass("avada-noscroll")||jQuery(this).parent().hasClass("avada-noscroll")||jQuery(this).is(".fusion-content-box-button, .fusion-tagline-button")&&jQuery(this).parents(".avada-noscroll").length)return!0;if(this.hash){if(r=jQuery(this).attr("target")?jQuery(this).attr("target"):"_self",i=(o=void 0!==(n=(t=jQuery(this).attr("href")).split("#"))[1]?n[1]:"").substring(0,1),a=(s=n[0]).substring(s.length-1,s.length),"#hubspot-open-chat"===t)return;if("/"!==a&&(s+="/"),"!"===i||"/"===i)return;e.preventDefault(),location.pathname.replace(/^\//,"")!=this.pathname.replace(/^\//,"")&&"#"!==t.charAt(0)||""!==location.search&&-1===location.search.indexOf("lang=")&&-1===location.search.indexOf("builder=")&&!jQuery(this).hasClass("tfs-scroll-down-indicator")&&!jQuery(this).hasClass("fusion-same-page-scroll")?l||t.includes("-oc__")||("/"===s&&""!==location.search&&(s=location.href.replace(location.search,"")),window.open(s+"#_"+o,r)):(jQuery(this).fusion_scroll_to_anchor_target(),"history"in window&&"replaceState"in history&&!l&&history.replaceState("",t,t),jQuery(this).closest(".fusion-menu-element-wrapper.flyout-submenu-expanded").length?jQuery(this).closest(".fusion-menu-element-wrapper.flyout-submenu-expanded").find(".fusion-close-flyout").trigger("click"):jQuery(this).closest(".fusion-flyout-menu").length?jQuery(".fusion-flyout-menu-toggle").trigger("click"):jQuery(this).closest(".fusion-megamenu-menu").length&&jQuery(this).blur())}})}),location.hash&&"#_"===location.hash.substring(0,2)&&(jQuery(".fusion-page-load-link").attr("href",decodeURIComponent("#"+location.hash.substring(2))),jQuery(window).on("load",function(){jQuery(".fusion-blog-shortcode").length?setTimeout(function(){jQuery(".fusion-page-load-link").fusion_scroll_to_anchor_target()},300):jQuery(".fusion-page-load-link").fusion_scroll_to_anchor_target()}));function checkHoverTouchState(){var e,o=!1;document.addEventListener("touchstart",function(){clearTimeout(e),o=!0,jQuery("body").addClass("fusion-touch"),jQuery("body").removeClass("fusion-no-touch"),e=setTimeout(function(){o=!1},500)},{passive:!0}),document.addEventListener("mouseover",function(){o||(o=!1,jQuery("body").addClass("fusion-no-touch"),jQuery("body").removeClass("fusion-touch"))})}checkHoverTouchState(),jQuery(document).ready(function(){jQuery("input, textarea").placeholder()});var fusionVideoVars={"status_vimeo":"0"};jQuery(document).ready(function(){jQuery(".fusion-video").each(function(){!jQuery(this).parents(".fusion-modal").length&&1==jQuery(this).data("autoplay")&&jQuery(this).is(":visible")&&jQuery(this).find("iframe").each(function(){jQuery(this).attr("src",jQuery(this).attr("src").replace("autoplay=0","autoplay=1"))})}),jQuery(window).on("resize",function(){var e,i=document.querySelectorAll("iframe"),o=i.length;if(jQuery(".fusion-youtube").each(function(){jQuery(this).is(":visible")||jQuery(this).parents(".fusion-modal").length&&!jQuery(this).parents(".fusion-modal").is(":visible")||jQuery(this).find("iframe").each(function(){this.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")})}),"undefined"!=typeof Vimeo)for(e=0;e<o;e++)!(void 0!==i[e].src&&-1<i[e].src.toLowerCase().indexOf("vimeo"))||jQuery(i[e]).is(":visible")||jQuery(i[e]).data("privacy-src")&&jQuery(i[e]).hasClass("fusion-hidden")||jQuery(i[e]).parents(".fusion-modal").length&&!jQuery(i[e]).parents(".fusion-modal").is(":visible")||new Vimeo.Player(i[e]).pause()}),jQuery(window).on("fusion-element-render-fusion_youtube fusion-element-render-fusion_vimeo",function(e,i){(void 0!==i?jQuery('div[data-cid="'+i+'"]'):jQuery("body")).find(".full-video, .video-shortcode, .wooslider .slide-content").fitVids()})}),jQuery(window).on("fusion-dynamic-content-render",function(e,i){var o=jQuery(i).find(".fusion-youtube").find("iframe");0<o.length&&o.each(function(){var e;1!==jQuery(this).closest(".fusion-video").data("autoplay")&&"true"!==jQuery(this).closest(".fusion-video").data("autoplay")||(jQuery(this).closest(".fusion-video").data("autoplay","false"),e="playVideo",this.contentWindow.postMessage('{"event":"command","func":"'+e+'","args":""}',"*"))}),0<(o=jQuery(i).find(".fusion-vimeo").find("iframe")).length&&o.each(function(){1!==jQuery(this).closest(".fusion-video").data("autoplay")&&"true"!==jQuery(this).closest(".fusion-video").data("autoplay")||(jQuery(this).closest(".fusion-video").data("autoplay","false"),new Vimeo.Player(jQuery(this)[0]).play())})});function fusionInitStickyColumns(){"object"==typeof fusion&&"function"==typeof fusion.getHeight&&jQuery(".awb-sticky[data-sticky-offset]").each(function(){jQuery(this)[0].style.setProperty("--awb-sticky-offset",fusion.getHeight(jQuery(this).attr("data-sticky-offset"))+fusion.getAdminbarHeight()+"px")})}jQuery(document).ready(function(){jQuery(".fusion-image-hovers .hover-type-liftup.fusion-column-inner-bg").on({mouseenter:function(){var e=jQuery(this).closest(".fusion_builder_column");jQuery(this).css("z-index","4"),jQuery(this).siblings(".fusion-column-wrapper").css("z-index","5"),"none"!==e.css("filter")&&"auto"===e.css("z-index")&&(e.css("z-index","1"),e.attr("data-filter-zindex","true"))},mouseleave:function(){var e=jQuery(this).closest(".fusion_builder_column");jQuery(this).css("z-index",""),jQuery(this).siblings(".fusion-column-wrapper").css("z-index",""),"true"===e.data("filter-zindex")&&(e.css("z-index",""),e.removeAttr("data-filter-zindex"))}})}),jQuery(window).on("load fusion-sticky-change fusion-resize-horizontal",fusionInitStickyColumns)