var FBPublication;!function(){"use strict";var t={};t.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),t.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var e={};function i(t){return i="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},i(t)}function o(e){this._navigator=e||(t.g.navigator?t.g.navigator:window?window.navigator:void 0),this.browser=this._getBrowser(),this.flash=this._getFlash(),this.os=this._getOS(),this.device=this._getDevice(),this.locales=this._getLocales(),this.locale=this.locales?this.locales[0]:void 0}t.r(e),o.prototype.constructor=o,o.prototype._getBrowser=function(){var t,e=void 0!==this._navigator?this._navigator.userAgent.toLowerCase():"",i=function(t){var i=e.match(t);return i&&i.length>1&&i[1]||""},o=/CrOS/.test(e),n=i(/edge?\/(\d+(\.\d+)?)/i),s=n?n>=80?"chromiumEdge":"msedge":null,r=i(/version\/(\d+(\.\d+)?)/i),l=!1;return/opera|opr/i.test(e)?t={name:"Opera",opera:!0,version:r||i(/(?:opera|opr)[\s\/](\d+(\.\d+)?)/i)}:/yabrowser/i.test(e)?t={name:"Yandex Browser",yandexbrowser:!0,version:r||i(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/windows phone/i.test(e)?(l=!0,t={name:"Windows Phone IE",ie:!0},n?(t[s]=!0,t.version=n):(t.msie=!0,t.version=i(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(e)?(t={name:"Internet Explorer",msie:!0,ie:!0,version:i(/(?:msie |rv:)(\d+(\.\d+)?)/i)},/trident/i.test(e)&&("7.0"===t.version&&"4.0"===i(/(?:trident\/)(\d+(\.\d+)?)/i)&&(t.version="8.0"),"7.0"===t.version&&"5.0"===i(/(?:trident\/)(\d+(\.\d+)?)/i)&&(t.version="9.0"))):/silk/i.test(e)?t={name:"Amazon Silk",silk:!0,version:i(/silk\/(\d+(\.\d+)?)/i)}:o?t={name:"Chrome",chrome:!0,version:i(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/chrome.+? edge?/i.test(e)?((t={name:"Microsoft Edge",version:n})[s]=!0,t.ie="msedge"===s):/chrome|crios|crmo/i.test(e)?(t={name:"Chrome",chrome:!0,version:i(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)},/SamsungBrowser/i.test(e)&&(t.name="Samsung Browser",t.samsung=!0,t.version=i(/SamsungBrowser\/(\d+(\.\d+)?)/i))):t=/seamonkey\//i.test(e)?{name:"SeaMonkey",seamonkey:!0,version:i(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel/i.test(e)?{name:"Firefox",firefox:!0,version:i(/(?:firefox|iceweasel)[ \/](\d+(\.\d+)?)/i)}:/phantom/i.test(e)?{name:"PhantomJS",phantom:!0,version:i(/phantomjs\/(\d+(\.\d+)?)/i)}:/safari/i.test(e)?{name:"Safari",safari:!0,version:r}:{other:!0},/FBAN|FBIOS|FB_IAB|FBAV/i.test(e)&&(t.name="Facebook In-App",t.facebook=!0,t.inApp=!0),/\bFB[\w_]+\/(Messenger|MESSENGER)/i.test(e)&&(t.name="Messenger In-App",t.messenger=!0,t.inApp=!0),/\bTwitter/i.test(e)&&(t.name="Twitter In-App",t.twitter=!0,t.inApp=!0),/\bLine\//i.test(e)&&(t.name="Line In-App",t.line=!0,t.inApp=!0),/\bMicroMessenger\//i.test(e)&&(t.name="Wechat In-App",t.wechat=!0,t.inApp=!0),/\bInstagram/i.test(e)&&(t.name="Instagram In-App",t.instagram=!0,t.inApp=!0),l||t.msie||t.msedge||t.chromiumEdge||!/(apple)?webkit/i.test(e)?!t.opera&&/gecko\//i.test(e)&&(t.name=t.name||"Gecko",t.gecko=!0,t.version=t.version||i(/gecko\/(\d+(\.\d+)?)/i)):(t.name=t.name||"Webkit",t.webkit=!0,!t.version&&r&&(t.version=r)),t.name||(t.name="Other"),-1!==e.toLowerCase().indexOf("publisher")&&(t.publisher=!0),t},o.prototype._getFlash=function(){var e="Shockwave Flash",o="ShockwaveFlash.ShockwaveFlash",n="application/x-shockwave-flash",s=null;if(void 0!==this._navigator.plugins&&"object"===i(this._navigator.plugins[e])){var r=this._navigator.plugins[e].description;!r||void 0!==this._navigator.mimeTypes&&this._navigator.mimeTypes[n]&&!this._navigator.mimeTypes[n].enabledPlugin||(r=r.replace(/^.*\s+(\S+\s+\S+$)/,"$1"),s=[parseInt(r.replace(/^(.*)\..*$/,"$1"),10),parseInt(r.replace(/^.*\.(.*)\s.*$/,"$1"),10),/[a-zA-Z]/.test(r)?parseInt(r.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0])}else if(void 0!==t.g.ActiveXObject)try{var l=new t.g.ActiveXObject(o);if(l){var a=l.GetVariable("$version");a&&(a=a.split(" ")[1].split(","),s=[parseInt(a[0],10),parseInt(a[1],10),parseInt(a[2],10)])}}catch(h){}return s},o.prototype._getOS=function(){var t=void 0!==this._navigator?this._navigator.userAgent.toLowerCase():"",e=function(e){var i=t.match(e);return i&&i.length>1&&i[1]||""},i={name:"Other",other:!0},o=e(/(ipod|iphone|ipad)/i).toLowerCase(),n="ontouchstart"in document.documentElement&&/macintosh/i.test(t),s=!/like android/i.test(t)&&/android/i.test(t),r=e(/version\/(\d+(\.\d+)?)/i);return o&&!n?i={name:"iOS",version:e(/os\s(\d+_*\d*_*\d*)/).split("_").join("."),ios:!0}:n?i={name:"iPadOS",version:e(/version\/(\d+.?\d*.?\d*)\s/i),ios:!0,ipados:!0}:s?i={name:"Android",version:e(/android\s(\d+\.*\d*\.*\d*)/),android:!0}:/mac os/.test(t)?i={name:"Mac OS",mac:!0}:/windows/i.test(t)?i={name:"Windows",windows:!0}:/playbook|blackberry|\bbb\d+/i.test(t)||/rim\stablet/i.test(t)?i={name:"Blackberry",blackberry:!0,version:r||e(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:/(web|hpw)os/i.test(t)?(i={name:"WebOS",webos:!0,version:r||e(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(t)&&(i.touchpad=!0)):/bada/i.test(t)?i={name:"Bada",bada:!0,version:e(/dolfin\/(\d+(\.\d+)?)/i)}:/tizen/i.test(t)?i={name:"Tizen",tizen:!0,version:e(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||r}:/sailfish/i.test(t)?i={name:"Sailfish",sailfish:!0,version:e(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel/i.test(t)&&/\((mobile|tablet);[^)]*rv:[\d.]+\)/i.test(t)&&(i={name:"Firefox OS",firefoxos:!0}),i},o.prototype._getDevice=function(){var t=void 0!==this._navigator?this._navigator.userAgent.toLowerCase():"",e={},i=!/like android/i.test(t)&&/android/i.test(t),o=/cros/.test(t);return e.name=t.match(/ipad/)||this.os.ipados?"ipad":t.match(/ipod/)?"ipod":t.match(/iphone/)?"iphone":i?"android":t.match(/windows phone/)?"wphone":t.match(/mobile/)?"mobile":t.match(/mac|win|linux/)||o?"desktop":"other",e[e.name]=!0,e},o.prototype._getLocales=function(){if(void 0!==this._navigator){if(this._navigator.languages&&this._navigator.languages.length>0){for(var t,e=[],i=0;io[s]?1:-1}return i.length!==o.length?-1:0}s.prototype.constructor=s,s.prototype.getSupportedVersions=function(){var t=[];if(this.userAgentInfo.device.desktop){if(this.userAgentInfo.browser.ie)return[];t.push("html")}else{var e=this.userAgentInfo.os.ios,i=this.userAgentInfo.os.ipados,o=this.userAgentInfo.os.android&&(parseInt(this.userAgentInfo.os.version.split(".")[0],10)>4||4===parseInt(this.userAgentInfo.os.version.split(".")[0],10)&&parseInt(this.userAgentInfo.os.version.split(".")[1],10)>=1);if(e||i||o)if((i||e&&parseInt(this.userAgentInfo.os.version.split(".")[0],10)>=10||o&&parseInt(this.userAgentInfo.os.version.split(".")[0],10)>=6)&&!this.userAgentInfo.browser.firefox)t.push("mobile");else{var n=navigator.userAgent.indexOf("Mozilla/5.0")>-1&&navigator.userAgent.indexOf("Android ")>-1&&navigator.userAgent.indexOf("AppleWebKit")>-1&&-1===navigator.userAgent.indexOf("Chrome");(e&&r(this.userAgentInfo.os.version,"9")>=0||o&&1===r(this.userAgentInfo.os.version,"4.2")&&!n)&&t.push("mobile-old")}}return t},s.prototype.mainVersion=function(){var t=this.getSupportedVersions();if(this.priorities){for(var e=0;e0)return t[0];return null},s.prototype.isRenderable=function(){return!0};var l=s,a=function(e,i){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=100,s=20,r=t.g.innerWidth-n,l=t.g.innerHeight-n,a=r/l,h=e/i,d=a>h?e*l/i:r,u=a>h?l:i*r/e;return o&&(d>e||u>i)?(d=e,u=i,r+=n,l+=n,n=0):(d=Math.round(d),u=Math.round(u)),{width:d,height:u,paddingTop:(l+n-s-u)/2,paddingLeft:(r+n-s-d)/2}};function h(t,e,i,o){var n=this;this.onClick=function(t){var s=!0;e&&(s=s&&e(t)),s&&(t.preventDefault(),n.render(t.currentTarget,i,o))},t.addEventListener("click",this.onClick),this._sizingBound=this.sizing.bind(this),this._closeBound=this.close.bind(this),this._receiveMessageBound=this._receiveMessage.bind(this),this._keyListenerBound=this._keyListener.bind(this)}h.prototype.render=function(t,e,i){var o=this,s=new n,r=s.browser,l=-1!==["ar","he"].indexOf(s.locale);this.blackout=document.createElement("div"),this.lightbox=document.createElement("div"),this.closeButton=document.createElement("button"),this.lightbox.setAttribute("role","dialog"),this.lightbox.style.position="absolute",this.lightbox.style.display="block",this.lightbox.style.margin="50px auto",this.lightbox.style.minWidth="200px",this.lightbox.style.minHeight="150px",this.lightbox.style.maxWidth="90%",this.lightbox.style.backgroundColor="#fff",this.lightbox.style.padding="10px",this.lightbox.style.borderRadius="5px",this.closeButton.style.width="30px",this.closeButton.style.height="30px",this.closeButton.style.top="-15px",this.closeButton.style.right="-15px",this.closeButton.style.position="absolute",this.closeButton.style.padding="0",this.closeButton.style.border="none",this.closeButton.style.background="transparent url("+this._getCloseIcon()+")",this.closeButton.style.cursor="pointer",l&&(this.closeButton.style.right="initial",this.closeButton.style.left="-15px"),this.blackout.style.width="100%",this.blackout.style.height="100%",this.blackout.style.backgroundColor="rgba(0, 0, 0, 0.7)",this.blackout.style.position="fixed",this.blackout.style.top="0px",this.blackout.style.left="0px",this.blackout.style.zIndex="12147483646",this.blackout.style.opacity="0",this.blackout.style.transition="opacity .4s ease",this.lightbox.appendChild(this.closeButton),this.blackout.appendChild(this.lightbox);var a=this;if(t.getAttribute("data-img")){var h=document.createElement("img");this.sizing(100,100,!0),h.onload=function(){a.width=h.width,a.height=h.height,a.sizing(h.width,h.height,!0),h.style.width="100%",h.style.height="100%",a.lightbox.appendChild(h)},h.src=t.getAttribute("data-img"),this._sizingBound=this.sizing.bind(this,this.width,this.height,!0)}else if(t.getAttribute("href")){var d=document.createElement("iframe"),u=t.getAttribute("href"),c=u.split("#");u=c[0],u+=-1===u.indexOf("?")?"?embed=true":"&embed=true",u+="&lightbox=true",u+=c[1]?"#"+c[1]:"",d.src=u,d.width="100%",d.height="100%",d.setAttribute("type","text/html"),d.setAttribute("scrolling","no"),d.setAttribute("frameborder","0"),d.setAttribute("allowfullscreen","allowfullscreen"),d.setAttribute("allow","accelerometer; autoplay; encrypted-media; fullscreen; gyroscope; picture-in-picture;"),this.width=t.getAttribute("data-width")||600,this.height=i?this.width/i:t.getAttribute("data-height")||400,this.sizing(),this.lightbox.appendChild(d),setTimeout((function(){e(d)}),10),r.safari&&setTimeout((function(){d.contentWindow.focus()}),0),d.addEventListener("load",(function(){d.contentWindow.focus()}))}this.addCloseListeners(),document.body.appendChild(this.blackout),setTimeout((function(){o.blackout.style.opacity="1"}),10),this.lightbox.addEventListener("wheel",this._preventer,{passive:!1}),this.blackout.addEventListener("wheel",this._preventer,{passive:!1})},h.prototype._preventer=function(t){t.preventDefault()},h.prototype._getCloseIcon=function(){return"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAQAAACROWYpAAAEAUlEQVR42oWVbWwUZRDH/+3e9l5h2yu9tsddX+hRWnupR2uFQK8hMWnrGcRCCKGKcJQ0aKgmJh4mJFWspmArYgiQGtvqN0MipOIXPyARRSIagYgJIRIhsaZRIIF723vrOHu7163cGWf2w+7M/O55ZuZ55vCIFKEYxRsM7WJLicc4Zj1uaylpKWkXNxgUO3t1yQMFiDCtWrLX8UHdqGeo4cgTE2s63EH3W65gRYUNJvYKKCqMGmCssHU7PvR+Hfj7cPISaZK6cv+jcxs317rs/ANGGPLxYjaa60q31kx2hj/PYXOZ2xnS5MFnq+pXO8skmMEpPLqqxWV/wTPzbOY2UXJ+ItkdQ1jVjuj7yfg8W6+e295eI5XBoq6uo+al9h7PqT5KEH2Vro2omK5N0Z/SROx7vqmOcbOOCzBCaq1/rzd9h2g6KYRRQIXwuwkFP9nndENiQmCcHxG2Zc6XO+9/qayqo/l6IkkU/h6PoQo2porBj2mpvav5kyBRNOPSNtwWXb+QsyMyIFuybyXh2RTRN2+6VsIOEwQFtlqcWzt//5ToWFIN90aJ5WBCeV8RneViTWieQZno7nm0oho2GMC8JK0I9MauEq3VVquNxEjFVyooy1hC9ZRHlLqVdqEepSgB8+WV3k39RA8zenbPxFT8YRY9ndIrcY3Ltn9oSROWwQSINkdLx55XiG6mdVjBZcZ0NKdfMHzysPVxVMLMsKXauy4YIvo1/e/O3p1X4bcTi+1nGD5+FG1wwsownI51/iGie+nF6FwWTWu5654f4kSvj5ifxHINFtfUDyT/Iso1SorMablu1HLfJ+eOygNuVutL4gJcLXa07Lx1gehVLWRtTM9VLd2plOrp5o+5X7Ad7bltO0Rf47YjH7M5ZQnn+rlPFhYuxsFEbk8XokRnz2IztIJxq9BsDLhCs1f0fhbWXZxv+M/y/ehFs9oqARLqDX77wJ4JYtkV/y90fSyV4UqfQRD+3CHh44lq+IS+yjdOZMfAcMHVd8RlRi9eRgib4NOOJ8Mm2OFBl7Cz7J1jMwp+Q94W17LXynSJC8XozxjBi+iCR70Y2pVEFbzoEQalQ3tn/rhJLHLmWmJSnpR/lLk5LPdmx8/jEAbRA69+JbVhADdWIyAMWkYwdfS7327QIrlza/qyOI0RRgMcpQ+D3BhCGWrgQw9vK2Qex5R0+qlvD1w/cD1wcfkMpjCOEHt64OMofQzpA5CNbnjhx3PYjdcwbBg1jGHMMFo8zF+72epnrxvaAMwbvZA4mwb4OOxpbEE/drD2Ywt/+dnawF599Ob9XxhhRRmH1KIRXg5vY/XxWyNbqthj1XPNw1mVHYgcYoYFVk0tMLNFVFbMxvyPFBXQAvIP9TCL+Lre4wwAAAAASUVORK5CYII="},h.prototype.sizing=function(t,e,i){t=t||this.width,e=e||this.height;var o=a(t,e,i=i||!1);this.lightbox.style.width=o.width+"px",this.lightbox.style.height=o.height+"px",this.lightbox.style.top=o.paddingTop+"px",this.lightbox.style.left=o.paddingLeft+"px",this.lightbox.style.margin="0"},h.prototype.close=function(e){var i=this;e.stopPropagation();var o=function e(){t.g.history&&t.g.history.pushState&&window.removeEventListener("popstate",i._closeBound),window.removeEventListener("resize",i._sizingBound),window.removeEventListener("message",i._receiveMessageBound,!1),window.removeEventListener("keyup",i._keyListenerBound),i.closeButton.removeEventListener("click",i._closeBound),i.blackout.removeEventListener("click",i._closeBound),i.blackout.removeEventListener("transitionend",e),i.blackout.parentNode.removeChild(i.blackout)};this.blackout.addEventListener("transitionend",o),this.blackout.style.opacity="0"},h.prototype._receiveMessage=function(t){var e=t.data;e&&e.fbPublicationUrl&&-1!==e.fbPublicationUrl.indexOf(t.origin)&&"closeLightbox"===e.action&&this.close(t)},h.prototype._keyListener=function(t){"Escape"===t.code&&this.close(t)},h.prototype.addCloseListeners=function(){t.g.history&&t.g.history.pushState&&(t.g.history.pushState({lightbox:!0},null,t.g.location.href),window.addEventListener("popstate",this._closeBound)),window.addEventListener("resize",this._sizingBound),window.addEventListener("message",this._receiveMessageBound,!1),window.addEventListener("keyup",this._keyListenerBound),this.closeButton.addEventListener("click",this._closeBound),this.blackout.addEventListener("click",this._closeBound)};var d=h;function u(t){return u="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},u(t)}function c(t){return!isNaN(parseFloat(t))&&isFinite(t)}var PRODUCT_CODE="fbc",g=5;function m(){this.THUMBNAIL_URL="https://pages.cld.bz/Thumbnail.aspx?url=",this.API_URL="",this.PROTECTION_API_URL="https://backend.cld.bz/Services/PublicAPI.asmx/IsBookDomainProtected",this.elementsArray=[],this.elementId=0,this.embeds={},this.requestInterval=1e3/g,this.lastRequestTime=0,this.userAgentDetector=new n,this.publicationDetector=new l(this.userAgentDetector,["html","mobile"]),this.version=this.publicationDetector.mainVersion(),this.parseAllEmbeds(),window.addEventListener("message",this._receiveMessage.bind(this),!1),this.onMobileResizeBound=this.onMobileResize.bind(this),this.closeMobileLightboxBound=this.closeMobileLightbox.bind(this,this.currentLigtboxId)}void 0!==t.g[PRODUCT_CODE+"Embed"]&&t.g[PRODUCT_CODE+"Embed"].parseAllEmbeds(),m.prototype.parseAllEmbeds=function(){for(var t=this._getElementsByClass(PRODUCT_CODE+"-embed"),e=0;e0?"&":"")+"page="+u,f+=l):(f.lastIndexOf("/")!==f.length-1&&(f+="/"),f+=u+"/"+l):f+=l,"no"===a&&"fbo"===PRODUCT_CODE&&(f+=-1===f.indexOf("?")?"?noview=true":"&noview=true");var k=f;v.length>0&&(k+="#"+v);for(var L=t.g.document.createElement("div"),E=0,_=e.attributes.length;E<_;E++){var C=e.attributes[E],M="data-";C.name.slice(0,M.length)===M&&L.setAttribute(C.name,C.value)}L.style.display="inline-block",L.style.maxWidth="100%",this._insertAfter(L,e),e.style.display="none",e=L;var P=t.g.document.createElement("a");P.setAttribute("href",k),P.setAttribute("title","View Publication"),P.setAttribute("target","_blank"),P.style.margin="0",P.style.padding="0",P.style.border="0",P.style.fontSize="100%;",P.style.font="inherit",P.style.verticalAlign="baseline",P.style.boxShadow="none",P.style["-webkit-tap-highlight-color"]="rgba(0,0,0,0)",p&&(P.innerText=y),e.appendChild(P);var R,O,W,B,T="auto"===n&&s&&-1!==s.indexOf(":");if(p)P.classList.add("fb-embed-link");else{var S=t.g.document.createElement("div");S.style.width="100%",S.style.height="100%",T||(S.style.position="relative"),P.appendChild(S),(R=t.g.document.createElement("img")).style.maxWidth="95%",R.style.maxHeight="95%",R.style.height="auto",R.style.width="auto",R.style.position="absolute",R.style.top="0px",R.style.bottom="0px",R.style.left="0px",R.style.right="0px",R.style.margin="auto",R.style.boxShadow="0px 2px 2px 0px rgba(55, 50, 50, 0.72)",R.style.borderWidth="0px",R.style.backgroundPosition="center",R.style.backgroundSize="contain",R.style.backgroundRepeat="no-repeat",R.style.opacity="0",R.style.transition="opacity .3s ease",R.setAttribute("loading","lazy"),g&&(/^(?:https?:)?\/\//.test(g)||0===g.indexOf("/"))?R.src=g:this.THUMBNAIL_URL.length>0?R.src=this._getPublicationThumbLink(x):R.src=this._getSelfhostPublicationThumbLink(x,g,l),R.onload=function(){var t=R.naturalWidth,e=R.naturalHeight,o=P.getBoundingClientRect(),n=o.width/o.height,s=t/e;t>0&&e>0&&o.height>0&&o.width>0&&(R.style.height=n>s?o.height:e*o.width/t,R.style.width=n>s?t*o.height/e:o.width),i.embeds[r].id&&!i.embeds[r].throttled&&(R.style.opacity="1",O.style.display="initial",setTimeout((function(){O.style.opacity="0.8"}),10))},S.appendChild(R),(O=t.g.document.createElement("div")).style.width="60px",O.style.height="60px",O.style.position="absolute",O.style.top="0",O.style.left="0",O.style.right="0",O.style.bottom="0",O.style.margin="auto",O.style.backgroundImage="url('"+this._getPublicationThumbIcon()+"')",O.style.backgroundPosition="center",O.style.transition="transform .3s ease, opacity .3s ease",O.style.transform="scale(0.9)",O.style["will-change"]="transform",O.style.borderRadius="100%",O.style.backgroundColor="rgba(0,0,0,0.7)",O.style.opacity="0",O.style.display="none";var H=function(){O.style.transform="scale(1)",O.style.backgroundColor="rgba(0,0,0,0.66)",O.style.opacity="1"};R.addEventListener("mouseenter",H),O.addEventListener("mouseenter",H);var z=function(){O.style.transform="scale(0.9)",O.style.opacity="0.8",O.style.backgroundColor="rgba(0,0,0,0.7)"};if(R.addEventListener("mouseleave",z),O.addEventListener("mouseleave",z),S.appendChild(O),o||(o=this._getEmbedDefaultWidth()+"px"),n||(n=this._getEmbedDefaultHeight()+"px"),T){var N=s.split(":");W=N[0]/N[1]}T&&W&&(B=(100/W).toFixed(2)+"%",e.style.position="relative"),e.style.width||(e.style.width=o+(c(o)?"px":"")),e.style.height||(e.style.height=n+(c(n)?"px":"")),"auto"===n&&(e.style.minHeight=this._getPayloadMinHeight()+"px")}var D=!1;"fbc"===PRODUCT_CODE&&this.PROTECTION_API_URL&&"mobile"===this.version?this._ajax(this.PROTECTION_API_URL,(function(t,o){if(200===o.status){var n=JSON.parse(t);n.d&&(null===n.d.Errors?(D=n.d.Success,i.storeEmbed({elementId:r,element:e,embedPublicationUrl:f,linkElement:P,image:R,icon:O,method:h,analytics:a,isProtected:D,wheel:d,urlHash:v,thumbnailUrl:g,ratioPadding:B,showLightbox:b,caption:y})):console.log(n.d.Errors))}else console.log(o.status,o.statusText)}),'{"url": "'+x+'"}',5e3):"fbo"===PRODUCT_CODE&&this.PROTECTION_API_URL&&"mobile"===this.version?this._ajax(this.PROTECTION_API_URL+x,(function(t,o){if(200===o.status){var n=JSON.parse(t);"boolean"==typeof n?(D=n,i.storeEmbed({elementId:r,element:e,embedPublicationUrl:f,linkElement:P,image:R,icon:O,method:h,analytics:a,isProtected:D,wheel:d,urlHash:v,thumbnailUrl:g,ratioPadding:B,showLightbox:b,caption:y})):console.log("Protection check error")}else console.log(o.status,o.statusText)}),null,5e3):this.storeEmbed({elementId:r,element:e,embedPublicationUrl:f,linkElement:P,image:R,icon:O,method:h,analytics:a,isProtected:D,wheel:d,urlHash:v,thumbnailUrl:g,ratioPadding:B,showLightbox:b,caption:y})},m.prototype.storeEmbed=function(e){var i=this;"fbo"!==PRODUCT_CODE&&"fbc"!==PRODUCT_CODE||!e.isProtected||"mobile"!==this.version?new d(e.linkElement,(function(){return.8*i._getWindowWidth()>i._getPayloadMinWidth()&&.8*i._getWindowHeight()>i._getPayloadMinHeight()&&!0===i.userAgentDetector.device.desktop&&e.showLightbox}),(function(t){i.embeds[e.elementId].lightboxWindow=t.contentWindow})):e.linkElement.addEventListener("click",(function(t){t.preventDefault(),i.openMobileLightbox(e.elementId)}));var o=t.g.document.createElement("div");e.element.appendChild(o),this.embeds[e.elementId]={id:e.elementId,url:e.embedPublicationUrl,element:e.element,container:o,link:e.linkElement,image:e.image,icon:e.icon,isProtected:e.isProtected,wheel:e.wheel,urlHash:e.urlHash,thumbnailUrl:e.thumbnailUrl,ratioPadding:e.ratioPadding,showLightbox:e.showLightbox,caption:e.caption},this._throttleEmbedInit(e,o),t.g.addEventListener("resize",(function(){i.embeds[e.elementId]&&i._resizeEmbed({element:e.element,payloadContainer:o,linkElement:e.linkElement,publicationUrl:e.embedPublicationUrl,embedId:e.elementId,ratioPadding:e.ratioPadding,image:e.image,icon:e.icon})})),this._doResize=function(){i.embeds[e.elementId]&&i._resizeEmbed({element:e.element,payloadContainer:o,linkElement:e.linkElement,publicationUrl:e.embedPublicationUrl,embedId:e.elementId,ratioPadding:e.ratioPadding,image:e.image,icon:e.icon})},this.API_URL.length>0&&"no"!==e.analytics&&this._sendAnalytics(this.API_URL,e.embedPublicationUrl,e.method)},m.prototype._shouldThrottleInit=function(t){var e=!0;if(t){var i=this._getBoundingClientRect(t);e=this._shouldRunPayload(i)}return e&&("fbo"===PRODUCT_CODE||"fbc"===PRODUCT_CODE)},m.prototype._throttleEmbedInit=function(t,e){var i=this;if(Date.now()-this.lastRequestTime3&&e&&e(s.responseText,s)},s.send(i)}catch(r){window.console&&console.error(r)}}},m.prototype._receiveMessage=function(t){var e=t.data;if(e&&e.fbPublicationUrl&&-1!==e.fbPublicationUrl.indexOf(t.origin))for(var i in this.embeds)if(this.embeds.hasOwnProperty(i)&&(this.embeds[i].contentWindow===t.source||this.embeds[i].lightboxWindow===t.source))if("openMobileLightbox"===e.action)this.openMobileLightbox(i);else if("closeLightbox"===e.action)this.closeMobileLightbox(i);else{var o=this.embeds[i].contentWindow,n=this.embeds[i].lightboxWindow;o&&o.postMessage("auth",this.embeds[i].url),n&&n.postMessage("auth",this.embeds[i].url)}},m.prototype.openMobileLightbox=function(e){var i=this,o=this.embeds[e].url+(-1===this.embeds[e].url.indexOf("?")?"?lightbox=true":"&lightbox=true");this.embeds[e].urlHash&&(o+="#"+this.embeds[e].urlHash),this.lightbox=t.g.document.createElement("div"),this.lightbox.style.position="fixed",this.lightbox.style.zIndex="9999",this.lightbox.style.top="0",this.lightbox.style.left="0",this.lightbox.style.width="100%",this.lightbox.style.height="100%",this.lightbox.style.opacity="0",this.lightbox.style.backgroundColor="#aaaaaa",this.lightbox.style.transition="opacity .5s ease-in-out",this.iframe=t.g.document.createElement("iframe"),this.iframe.style.width="100%",this.iframe.style.height="100%",this.iframe.setAttribute("type","text/html"),this.iframe.setAttribute("scrolling","no"),this.iframe.setAttribute("frameborder","0"),this.iframe.setAttribute("allowfullscreen","allowfullscreen"),this.iframe.setAttribute("allow","accelerometer; autoplay; encrypted-media; fullscreen *; gyroscope; picture-in-picture;"),this.iframe.setAttribute("src",o),this.setViewport(!1),this.lightbox.appendChild(this.iframe),setTimeout((function(){i.embeds[e].lightboxWindow=i.iframe.contentWindow}),10),t.g.document.body.appendChild(this.lightbox),t.g.scrollTo(0,-1),setTimeout((function(){var o=t.g.document.body.clientWidth/window.innerWidth;1!==o?(i.scale=o,t.g.scrollTo(0,-1),setTimeout((function(){t.g.scrollTo(0,-1),setTimeout((function(){i.lightbox.style.transformOrigin="top left",i.lightbox.style.transform="scale("+1/o+","+1/o+")",i.lightbox.style.height=t.g.innerHeight*o+"px",i.lightbox.style.width=t.g.innerWidth*o+"px",i.lightbox.style.opacity="1"}),100)}),200)):(i.lightbox.style.opacity="1",i.lightbox.style.height=t.g.innerHeight+"px",i.lightbox.style.width=t.g.innerWidth+"px"),i.mobileLightboxOpened=!0,t.g.addEventListener("resize",i.onMobileResizeBound),i.currentLigtboxId=e,t.g.history&&t.g.history.pushState&&(t.g.history.pushState({lightbox:!0},null,t.g.location.href),addEventListener("popstate",i.closeMobileLightboxBound))}),500)},m.prototype.closeMobileLightbox=function(e){e=e||this.currentLigtboxId;var i=this;t.g.history&&t.g.history.pushState&&removeEventListener("popstate",this.closeMobileLightboxBound),this.mobileLightboxOpened=!1,this.lightbox&&(i.setViewport(!0),setTimeout((function(){i.lightbox.style.opacity="0",setTimeout((function(){t.g.document.body.removeChild(i.lightbox),t.g.removeEventListener("resize",this.onMobileResizeBound),delete i.lightbox,delete i.iframe,delete i.currentLigtboxId,i.embeds[e].lightboxWindow=null,i.mobileLightboxOpened=!1}),1e3)}),0))},m.prototype.setViewport=function(t){var e=document.querySelector('meta[name="viewport"]');if(e)t||(this.savedViewport=e.content);else{if(!document.head||t)return;(e=document.createElement("meta")).name="viewport",document.head.appendChild(e)}t?this.savedViewport?e.setAttribute("content",this.savedViewport):e&&document.head.removeChild(e):e.setAttribute("content","width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0, viewport-fit=cover")},m.prototype.onMobileResize=function(){if(this.mobileLightboxOpened){var e=this,i=this.userAgentDetector.os.ios&&(736===t.g.innerWidth||414===t.g.innerWidth);this.lightbox.style.width="100%",this.lightbox.style.height=t.g.innerHeight+"px",clearTimeout(this.resizeTimer),t.g.scrollTo(0,-1),this.resizeTimer=setTimeout((function(){var o=t.g.document.body.clientWidth/window.innerWidth;1!==e.scale||1!==o?(e.scale=o,e.lightbox.style.transformOrigin="top left",e.lightbox.style.transform="scale("+1/o+","+1/o+")",e.lightbox.style.height=t.g.innerHeight*o+"px",e.lightbox.style.width=t.g.innerWidth*o+"px"):(i&&t.g.scrollTo(0,-1),e.lightbox.style.height=t.g.innerHeight+"px",e.lightbox.style.width=t.g.innerWidth+"px",e.lightbox.style.transform="initial",e.lightbox.style.transformOrigin="initial")}),500)}},m.prototype._runPayload=function(e,i,o){var n=this,s=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(i+=-1===i.indexOf("?")?"?embed=true":"&embed=true",i+="&embedId=".concat(o),this.embeds[o].isProtected&&(i+="&protected=true"),"true"!==this.embeds[o].wheel&&"yes"!==this.embeds[o].wheel||(i+="&wheel=true"),this.embeds[o].urlHash&&(i+="#"+this.embeds[o].urlHash),this._shouldShowPayload()&&!e.hasChildNodes()){var r=t.g.document.createElement("iframe");r.style.width="100%",r.style.height="100%",s&&(r.style.position="absolute",r.style.top=0,r.style.left=0),r.setAttribute("type","text/html"),r.setAttribute("scrolling","no"),r.setAttribute("frameborder","0"),r.setAttribute("loading","lazy"),r.setAttribute("allowfullscreen","allowfullscreen"),r.setAttribute("allow","accelerometer; autoplay; encrypted-media; fullscreen *; gyroscope; picture-in-picture;"),r.setAttribute("src",i),r.setAttribute("title",this.embeds[o].caption),r.addEventListener("load",(function(){n.embeds[o].contentWindow=r.contentWindow})),e.appendChild(r),this.embeds[o].iframe=r}},m.prototype._removePayload=function(t,e,i,o){for(var n=t.firstChild;n;)t.removeChild(n),n=t.firstChild;i&&i.complete&&0!==i.naturalHeight&&(i.style.opacity="1",o.style.display="initial",setTimeout((function(){o.style.opacity="0.8"}),10)),window.removeEventListener("message",this._receiveMessage,!1)},m.prototype._resizeEmbed=function(t){var e=t.element,i=t.payloadContainer,o=t.linkElement,n=t.publicationUrl,s=t.embedId,r=t.ratioPadding,l=t.image,a=t.icon,h=this,d=this._getBoundingClientRect(e);if(0!==d.width&&0!==d.height){if(i.style.width=o.style.width=d.width+"px",i.style.height=o.style.height=d.height+"px",this._shouldRunPayload(d)){if(this.mobileLightboxOpened)return;this._runPayload(i,n,s,!!r),r?(i.style.position="relative",i.style.display="inline-block",i.style.paddingTop=r,i.style.height=0):i.style.display="inline",o.style.display="none"}else if(this._removePayload(i,s,l,a),e.style.minHeight=null,i.style.display="none",r?(o.style.position="relative",o.style.display="inline-block",o.style.paddingTop=r,o.style.height=0):o.style.display="block",this.embeds[s].image){var u=this.embeds[s].image,c=u.naturalWidth,g=u.naturalHeight,m=o.getBoundingClientRect(),p=m.width/m.height,b=c/g;c>0&&g>0&&m.height>0&&m.width>0&&(u.style.height=p>b?m.height:g*m.width/c,u.style.width=p>b?c*m.height/g:m.width)}}else setTimeout((function(){h._resizeEmbed({element:e,payloadContainer:i,linkElement:o,publicationUrl:n,embedId:s,ratioPadding:r,image:l,icon:a})}),200)},m.prototype._getPayloadMinWidth=function(){return 400},m.prototype._getPayloadMinHeight=function(){return 200},m.prototype._getEmbedDefaultWidth=function(){return 250},m.prototype._getEmbedDefaultHeight=function(){return 150},m.prototype._shouldRunPayload=function(t){return t.width>=this._getPayloadMinWidth()&&t.height>=this._getPayloadMinHeight()&&this._shouldShowPayload()},m.prototype._shouldShowPayload=function(){return!!this.version},m.prototype._getPublicationThumbIcon=function(){return"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDIxLjEuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCA1MCA1MCIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgNTAgNTA7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4KPHN0eWxlIHR5cGU9InRleHQvY3NzIj4KCS5zdDB7b3BhY2l0eTowLjk7fQoJLnN0MXtmaWxsOm5vbmU7c3Ryb2tlOiNGRkZGRkY7c3Ryb2tlLXdpZHRoOjI7fQo8L3N0eWxlPgo8ZyBpZD0iUGFnZS0xIj4KCTxnIGlkPSJWaWV3LUljb24iIHRyYW5zZm9ybT0idHJhbnNsYXRlKC02NC4wMDAwMDAsIC04NS4wMDAwMDApIj4KCQk8ZyBpZD0iX3gzMV8uLXZpZXciIHRyYW5zZm9ybT0idHJhbnNsYXRlKDIwLjAwMDAwMCwgMjAuMDAwMDAwKSI+CgkJCTxnIGlkPSJHcm91cC00IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSg0NC4wMDAwMDAsIDY1LjAwMDAwMCkiPgoJCQkJPGcgaWQ9Ikdyb3VwIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxMS4wMDAwMDAsIDkuMDAwMDAwKSIgY2xhc3M9InN0MCI+CgkJCQkJPHBhdGggaWQ9IlJlY3RhbmdsZV8yXyIgY2xhc3M9InN0MSIgZD0iTTEzLDdIMkMxLjQsNywxLDcuNCwxLDh2MThjMCwwLjYsMC40LDEsMSwxaDI1YzAuNiwwLDEtMC40LDEtMVY4YzAtMC42LTAuNC0xLTEtMWgtMi43CgkJCQkJCSIvPgoJCQkJCTxwYXRoIGlkPSJSZWN0YW5nbGVfMV8iIGNsYXNzPSJzdDEiIGQ9Ik0xNCw2LjZ2MTkuOGwxMC01VjEuNkwxNCw2LjZ6Ii8+CgkJCQk8L2c+CgkJCTwvZz4KCQk8L2c+Cgk8L2c+CjwvZz4KPC9zdmc+Cg=="},m.prototype._getWindowWidth=function(){return t.g.innerWidth||t.g.document.documentElement.clientWidth||t.g.document.body.clientWidth},m.prototype._getWindowHeight=function(){return t.g.innerHeight||t.g.document.documentElement.clientHeight||t.g.document.body.clientHeight},m.prototype._getBoundingClientRect=function(t){var e=t.getBoundingClientRect();return{width:e.width||e.right-e.left,height:e.height||e.bottom-e.top,left:e.left,right:e.right,top:e.top,bottom:e.bottom}},m.prototype._getElementsByClass=function(e,i){if(void 0===i&&(i=t.g.document),"function"==typeof i.getElementsByClassName)return i.getElementsByClassName(e);var o=[],n=i.getElementsByTagName("*");for(var s in n)if(Object.prototype.hasOwnProperty.call(n,s)&&"object"===u(n[s])){var r=Object.prototype.hasOwnProperty.call(n[s],"className")?n[s].className:n[s].getAttribute("className"),l=null===r?[]:r.split(" ");-1!==this._indexOf(l,e)&&o.push(n[s])}return o},m.prototype._indexOf=function(t,e){if(null===t)return-1;for(var i=t.length,o=0;o