!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.FBPublication=t():e.FBPublication=t()}(globalThis,(()=>(()=>{var e,t,n,r,o,i={923:(e,t,n)=>{"use strict";function r(e){this._navigator=e||(n.g.navigator?n.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}n.d(t,{Z:()=>o}),r.prototype.constructor=r,r.prototype._getBrowser=function(){const e=void 0!==this._navigator?this._navigator.userAgent.toLowerCase():"",t=function(t){const n=e.match(t);return n&&n.length>1&&n[1]||""};let n;const r=/CrOS/.test(e),o=t(/edge?\/(\d+(\.\d+)?)/i),i=o?o>=80?"chromiumEdge":"msedge":null,a=t(/version\/(\d+(\.\d+)?)/i);let s=!1;return/opera|opr/i.test(e)?n={name:"Opera",opera:!0,version:a||t(/(?:opera|opr)[\s\/](\d+(\.\d+)?)/i)}:/yabrowser/i.test(e)?n={name:"Yandex Browser",yandexbrowser:!0,version:a||t(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/windows phone/i.test(e)?(s=!0,n={name:"Windows Phone IE",ie:!0},o?(n[i]=!0,n.version=o):(n.msie=!0,n.version=t(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(e)?(n={name:"Internet Explorer",msie:!0,ie:!0,version:t(/(?:msie |rv:)(\d+(\.\d+)?)/i)},/trident/i.test(e)&&("7.0"===n.version&&"4.0"===t(/(?:trident\/)(\d+(\.\d+)?)/i)&&(n.version="8.0"),"7.0"===n.version&&"5.0"===t(/(?:trident\/)(\d+(\.\d+)?)/i)&&(n.version="9.0"))):/silk/i.test(e)?n={name:"Amazon Silk",silk:!0,version:t(/silk\/(\d+(\.\d+)?)/i)}:r?n={name:"Chrome",chrome:!0,version:t(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/chrome.+? edge?/i.test(e)?(n={name:"Microsoft Edge",version:o},n[i]=!0,n.ie="msedge"===i):/chrome|crios|crmo/i.test(e)?(n={name:"Chrome",chrome:!0,version:t(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)},/SamsungBrowser/i.test(e)&&(n.name="Samsung Browser",n.samsung=!0,n.version=t(/SamsungBrowser\/(\d+(\.\d+)?)/i))):n=/seamonkey\//i.test(e)?{name:"SeaMonkey",seamonkey:!0,version:t(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel/i.test(e)?{name:"Firefox",firefox:!0,version:t(/(?:firefox|iceweasel)[ \/](\d+(\.\d+)?)/i)}:/phantom/i.test(e)?{name:"PhantomJS",phantom:!0,version:t(/phantomjs\/(\d+(\.\d+)?)/i)}:/safari/i.test(e)?{name:"Safari",safari:!0,version:a}:{other:!0},/FBAN|FBIOS|FB_IAB|FBAV/i.test(e)&&(n.name="Facebook In-App",n.facebook=!0,n.inApp=!0),/\bFB[\w_]+\/(Messenger|MESSENGER)/i.test(e)&&(n.name="Messenger In-App",n.messenger=!0,n.inApp=!0),/\bTwitter/i.test(e)&&(n.name="Twitter In-App",n.twitter=!0,n.inApp=!0),/\bLine\//i.test(e)&&(n.name="Line In-App",n.line=!0,n.inApp=!0),/\bMicroMessenger\//i.test(e)&&(n.name="Wechat In-App",n.wechat=!0,n.inApp=!0),/\bInstagram/i.test(e)&&(n.name="Instagram In-App",n.instagram=!0,n.inApp=!0),s||n.msie||n.msedge||n.chromiumEdge||!/(apple)?webkit/i.test(e)?!n.opera&&/gecko\//i.test(e)&&(n.name=n.name||"Gecko",n.gecko=!0,n.version=n.version||t(/gecko\/(\d+(\.\d+)?)/i)):(n.name=n.name||"Webkit",n.webkit=!0,!n.version&&a&&(n.version=a)),n.name||(n.name="Other"),-1!==e.toLowerCase().indexOf("publisher")&&(n.publisher=!0),n},r.prototype._getFlash=function(){const e="Shockwave Flash",t="ShockwaveFlash.ShockwaveFlash",r="application/x-shockwave-flash";let o=null;if(void 0!==this._navigator.plugins&&"object"==typeof this._navigator.plugins[e]){let t=this._navigator.plugins[e].description;!t||void 0!==this._navigator.mimeTypes&&this._navigator.mimeTypes[r]&&!this._navigator.mimeTypes[r].enabledPlugin||(t=t.replace(/^.*\s+(\S+\s+\S+$)/,"$1"),o=[parseInt(t.replace(/^(.*)\..*$/,"$1"),10),parseInt(t.replace(/^.*\.(.*)\s.*$/,"$1"),10),/[a-zA-Z]/.test(t)?parseInt(t.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0])}else if(void 0!==n.g.ActiveXObject)try{const e=new n.g.ActiveXObject(t);if(e){let t=e.GetVariable("$version");t&&(t=t.split(" ")[1].split(","),o=[parseInt(t[0],10),parseInt(t[1],10),parseInt(t[2],10)])}}catch(i){}return o},r.prototype._getOS=function(){const e=void 0!==this._navigator?this._navigator.userAgent.toLowerCase():"",t=function(t){const n=e.match(t);return n&&n.length>1&&n[1]||""};let n={name:"Other",other:!0};const r=t(/(ipod|iphone|ipad)/i).toLowerCase(),o="ontouchstart"in document.documentElement&&/macintosh/i.test(e),i=!/like android/i.test(e)&&/android/i.test(e),a=t(/version\/(\d+(\.\d+)?)/i);return r&&!o?n={name:"iOS",version:t(/os\s(\d+_*\d*_*\d*)/).split("_").join("."),ios:!0}:o?n={name:"iPadOS",version:t(/version\/(\d+.?\d*.?\d*)\s/i),ios:!0,ipados:!0}:i?n={name:"Android",version:t(/android\s(\d+\.*\d*\.*\d*)/),android:!0}:/mac os/.test(e)?n={name:"Mac OS",mac:!0}:/windows/i.test(e)?n={name:"Windows",windows:!0}:/playbook|blackberry|\bbb\d+/i.test(e)||/rim\stablet/i.test(e)?n={name:"Blackberry",blackberry:!0,version:a||t(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:/(web|hpw)os/i.test(e)?(n={name:"WebOS",webos:!0,version:a||t(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(e)&&(n.touchpad=!0)):/bada/i.test(e)?n={name:"Bada",bada:!0,version:t(/dolfin\/(\d+(\.\d+)?)/i)}:/tizen/i.test(e)?n={name:"Tizen",tizen:!0,version:t(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||a}:/sailfish/i.test(e)?n={name:"Sailfish",sailfish:!0,version:t(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel/i.test(e)&&/\((mobile|tablet);[^)]*rv:[\d.]+\)/i.test(e)&&(n={name:"Firefox OS",firefoxos:!0}),n},r.prototype._getDevice=function(){const e=void 0!==this._navigator?this._navigator.userAgent.toLowerCase():"",t={},n=!/like android/i.test(e)&&/android/i.test(e),r=/cros/.test(e);return t.name=e.match(/ipad/)||this.os.ipados?"ipad":e.match(/ipod/)?"ipod":e.match(/iphone/)?"iphone":n?"android":e.match(/windows phone/)?"wphone":e.match(/mobile/)?"mobile":e.match(/mac|win|linux/)||r?"desktop":"other",t[t.name]=!0,t},r.prototype._getLocales=function(){if(void 0!==this._navigator){if(this._navigator.languages&&this._navigator.languages.length>0){const e=[];let t;for(let n=0;n{"use strict";n.d(t,{Z:()=>i});const r=Array.prototype.slice;function o(){}o.prototype.on=function(e,t,n){this._events=this._events||{};return(this._events[e]||(this._events[e]=[])).push({callback:t,context:n||this}),this},o.prototype.once=function(e,t,n){const r=this,o=function(){r.off(e,o),t.apply(this,arguments)};return o._callback=t,this.on(e,o,n)},o.prototype.off=function(e,t,n){let r,o,i;if(n=n||this,!e&&!t&&!n)return this._events={},this;for(const a in this._events)if(this._events.hasOwnProperty(a)&&(i=this._events[a],i)){if(this._events[a]=r=[],t||n)for(let e=0,a=i.length;e{"use strict";function r(e){return"function"==typeof e||!1}n.d(t,{k:()=>o,m:()=>r});const o=Array.isArray||function(e){return"[object Array]"===toString.call(e)}},2155:(e,t,n)=>{"use strict";function r(e){return!!(e instanceof Date||e instanceof RegExp)}function o(e){if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp)return new RegExp(e);throw new Error("Unexpected situation")}function i(e){const t=[];return e.forEach((function(e,n){"object"==typeof e&&null!==e?Array.isArray(e)?t[n]=i(e):r(e)?t[n]=o(e):t[n]=a({},e):t[n]=e})),t}function a(){if(arguments.length<1||"object"!=typeof arguments[0])return!1;if(arguments.length<2)return arguments[0];const e=arguments[0];let t,n;return Array.prototype.slice.call(arguments,1).forEach((function(s){"object"!=typeof s||Array.isArray(s)||Object.keys(s).forEach((function(l){n=e[l],t=s[l],t===e||("object"!=typeof t||null===t?e[l]=t:Array.isArray(t)?e[l]=i(t):r(t)?e[l]=o(t):"object"!=typeof n||null===n||Array.isArray(n)?e[l]=a({},t):e[l]=a(n,t))}))})),e}n.d(t,{Z:()=>s});const s=a},776:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(320);const o=function(){let e;function t(){return e||(this instanceof t?(e=this,void this.unsetCallback()):new t)}return t.prototype.destructor=function(){this.unsetCallback(),(0,r.mf)(this.adapter.destructor)&&this.adapter.destructor()},t.prototype.setAdapter=function(e){const t=this;this.adapter&&(this.adapter.setCallback(null),this.adapter=null),this.adapter=e,this.adapter.setCallback((function(e){t.callback(e)}))},t.prototype.setCallback=function(e){this.callback=e},t.prototype.unsetCallback=function(){this.callback=function(){}},t.prototype.getPathInfo=function(){return this.adapter.getPathInfo()},t.prototype.setPath=function(e){this.adapter.setPath(e)},t.prototype.getShareUrl=function(e,t){return this.adapter.getShareUrl(e,t)},t.prototype.getEmbedUrl=function(e){return this.adapter.getEmbedUrl(e)},t.prototype.getLocalStorage=function(){return this.adapter.getLocalStorage()},t.prototype.getSessionStorage=function(){return this.adapter.getSessionStorage()},t.prototype.translatePath=function(e){const t=[];if((0,r.HD)(e))return this.adapter.translatePath(e);for(let n=0,r=e.length;n{"use strict";n.d(t,{Ds:()=>a,OZ:()=>h,P2:()=>s,QX:()=>u,TV:()=>f,UZ:()=>c,iZ:()=>l,l:()=>p,sO:()=>d,t:()=>g});var r=n(320);function o(e,t){return t=null==t?e.length-1:+t,function(){const n=Math.max(arguments.length-t,0),r=Array(n);let o=0;for(;ot?(r&&(clearTimeout(r),r=null),s=c,a=e.apply(o,i),r||(o=i=null)):r||!1===n.trailing||(r=setTimeout(l,h)),a};return c.cancel=function(){clearTimeout(r),s=0,r=o=i=null},c}function l(e){const t=[];for(;e;){if(t.push(e),"html"===e.tagName.toLowerCase())return t;e=e.parentNode}}function c(e){const t=[];for(;e;){if(e.classList&&e.classList[0]&&t.push(e.classList[0]),"html"===e.tagName.toLowerCase())return t;e=e.parentNode}return t}function h(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];for(let i=0,a=e.length;i3&&void 0!==arguments[3]?arguments[3]:[];for(let o=0,i=e.length;o=r[e].left+n||o+n<=r[e].left||i>=r[e].top+n||i+n<=r[e].top)){a=!0;break}s++,3===s&&(s=0,l++),l*n+n>t&&(a=!1)}while(a);return{left:o,top:i}}function g(e,t){if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(!e||!t||"object"!=typeof e&&"object"!=typeof t)return e===t;if(e.prototype!==t.prototype)return!1;const n=Object.keys(e);return n.length===Object.keys(t).length&&n.every((n=>g(e[n],t[n])))}function f(e){let t,n=e.length;for(;0!==n;)t=Math.floor(Math.random()*n),n--,[e[n],e[t]]=[e[t],e[n]];return e}},7476:(e,t,n)=>{"use strict";let r;n.d(t,{V:()=>i,n:()=>o});const o=e=>{r=e},i=()=>r||n.nc},320:(e,t,n)=>{"use strict";n.d(t,{Ft:()=>a,HD:()=>g,Kn:()=>i,e$:()=>p,hj:()=>f,kE:()=>m,kJ:()=>r.k,mf:()=>r.m,o8:()=>s,sH:()=>v,xb:()=>b});var r=n(5392);const o=Object.prototype.toString;function i(e){const t=typeof e;return"function"===t||"object"===t&&!!e}function a(e){return null===e}function s(e){return void 0===e}function l(e){return function(t){return null==t?void 0:t[e]}}const c=Math.pow(2,53)-1,h=l("length"),u=function(e){const t=h(e);return"number"==typeof t&&t>=0&&t<=c};function p(e,t){return null!=e&&hasOwnProperty.call(e,t)}let d=function(e){return"[object Arguments]"===o.call(e)};function g(e){return"[object String]"===o.call(e)}function f(e){return"[object Number]"===o.call(e)}function m(e){return!isNaN(parseFloat(e))&&isFinite(e)}function b(e){return null==e||(u(e)&&((0,r.k)(e)||g(e)||d(e))?0===e.length:0===Object.keys(e).length)}function v(e){const t=e.toUpperCase();return t&&/^M*(?:D?C{0,3}|C[MD])(?:L?X{0,3}|X[CL])(?:V?I{0,3}|I[XV])$/.test(t)}!function(){d(arguments)||(d=function(e){return p(e,"callee")})}()},1042:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(7476);function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{},i=arguments.length>3?arguments[3]:void 0;const a=n.g.document.getElementsByTagName("head")[0],s=n.g.document.createElement("script");s.type="text/javascript",s.src=e,(0,r.V)()&&s.setAttribute("nonce",(0,r.V)()),i&&s.setAttribute("crossOrigin",i),s.onload=function(){t(s)},s.onerror=function(e){o(e)},a.appendChild(s)}},924:(e,t,n)=>{"use strict";n.d(t,{B:()=>o,Z:()=>r});const r={READY:1,ERROR:-1,UNREADY:0},o={PAGE_TEXT:0,PAGE_SUBSTRATE:1,THUMBNAIL:2,ZOOM_PAGE_TEXT:10,ZOOM_PAGE_SUBSTRATE:11,SVG:12}},710:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});const r=function(){if(n.g.XDomainRequest&&!/MSIE 1/.test(n.g.navigator.userAgent))return new n.g.XDomainRequest;if(n.g.XMLHttpRequest)return new n.g.XMLHttpRequest;throw new Error("Request error")};function o(e,t,n,r,o,i,a){e.open(n,t),e.onerror=function(e){a(e,t)},e.onload=function(){switch(o){case"text":i(e.responseText,null);break;case"json":try{i(JSON.parse(e.responseText),null)}catch(n){a(n,t)}break;default:i(e,null)}},setTimeout((function(){e.send(r)}))}function i(e){let{url:t="",method:i="GET",headers:a={},data:s=null,responseType:l="text",callback:c=(()=>{}),errorback:h=(()=>{})}=e;const u=r();if(!(u instanceof n.g.XMLHttpRequest))return o(u,t,i,s,l,c,h);u.open(i,t,!0),"blob"===l&&(u.responseType=l);for(const n in a){if(!a.hasOwnProperty(n))return;u.setRequestHeader(n,a[n])}const p=function(){h.apply(null,arguments),h=()=>{},c=()=>{}},d=function(){c.apply(null,arguments),c=()=>{},h=()=>{}};u.onerror=function(){p(u.status,t)},u.onreadystatechange=function(){if(4===u.readyState)if(200===u.status){const n=u.response?u.response.length:null;switch(l){case"text":d(u.responseText,n);break;case"json":try{d(JSON.parse(u.responseText),n)}catch(e){p(e,t)}break;default:d(u,n)}}else p(u.status,t)},u.send(s)}},770:(e,t,n)=>{"use strict";n.d(t,{Z:()=>O});var r=0,o="";function i(e){return d(u(m(e)))}function a(e){return g(u(m(e)))}function s(e,t){return f(u(m(e)),t)}function l(e,t){return d(p(m(e),m(t)))}function c(e,t){return g(p(m(e),m(t)))}function h(e,t,n){return f(p(m(e),m(t)),n)}function u(e){return v(S(b(e),8*e.length))}function p(e,t){var n=b(e);n.length>16&&(n=S(n,8*e.length));for(var r=Array(16),o=Array(16),i=0;i<16;i++)r[i]=909522486^n[i],o[i]=1549556828^n[i];var a=S(r.concat(b(t)),512+8*t.length);return v(S(o.concat(a),768))}function d(e){for(var t,n=r?"0123456789ABCDEF":"0123456789abcdef",o="",i=0;i>>4&15)+n.charAt(15&t);return o}function g(e){for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n="",r=e.length,i=0;i8*e.length?n+=o:n+=t.charAt(a>>>6*(3-s)&63);return n}function f(e,t){var n,r,o,i,a=t.length,s=Array(),l=Array(Math.ceil(e.length/2));for(n=0;n0;){for(i=Array(),o=0,n=0;n0||r>0)&&(i[i.length]=r);s[s.length]=o,l=i}var c="";for(n=s.length-1;n>=0;n--)c+=t.charAt(s[n]);var h=Math.ceil(8*e.length/(Math.log(t.length)/Math.log(2)));for(n=c.length;n>>6&31,128|63&t):t<=65535?r+=String.fromCharCode(224|t>>>12&15,128|t>>>6&63,128|63&t):t<=2097151&&(r+=String.fromCharCode(240|t>>>18&7,128|t>>>12&63,128|t>>>6&63,128|63&t));return r}function b(e){for(var t=Array(e.length>>2),n=0;n>5]|=(255&e.charCodeAt(n/8))<<24-n%32;return t}function v(e){for(var t="",n=0;n<32*e.length;n+=8)t+=String.fromCharCode(e[n>>5]>>>24-n%32&255);return t}function y(e,t){return e>>>t|e<<32-t}function w(e,t){return e>>>t}function x(e,t,n){return e&t^~e&n}function k(e,t,n){return e&t^e&n^t&n}function C(e){return y(e,2)^y(e,13)^y(e,22)}function E(e){return y(e,6)^y(e,11)^y(e,25)}function M(e){return y(e,7)^y(e,18)^w(e,3)}function I(e){return y(e,17)^y(e,19)^w(e,10)}var _=new Array(1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998);function S(e,t){var n,r,o,i,a,s,l,c,h,u,p,d,g=new Array(1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225),f=new Array(64);for(e[t>>5]|=128<<24-t%32,e[15+(t+64>>9<<4)]=t,h=0;h>16)+(t>>16)+(n>>16)<<16|65535&n}var P={};P.hex_sha256=i,P.b64_sha256=a,P.any_sha256=s,P.hex_hmac_sha256=l,P.b64_hmac_sha256=c,P.any_hmac_sha256=h;const O=P},8531:(e,t,n)=>{"use strict";n.d(t,{BU:()=>c,Q$:()=>h,_Q:()=>i,jJ:()=>s,m9:()=>l,qQ:()=>a});var r=n(320);const o=[",",";","."," ","?","!","'",'"',"",String.fromCharCode(10),String.fromCharCode(13),String.fromCharCode(8211),String.fromCharCode(8212),String.fromCharCode(8722),String.fromCharCode(8209),String.fromCharCode(8208)];function i(e){for(let t=0;t("000"+e).slice(-Math.max((e+"").length,4));function s(e){const t=/{var t=function(){"use strict";function e(t,n,r,o){"object"==typeof n&&(r=n.depth,o=n.prototype,n.filter,n=n.circular);var a=[],s=[],l="undefined"!=typeof Buffer;function c(t,r){if(null===t)return null;if(0==r)return t;var h,u;if("object"!=typeof t)return t;if(e.__isArray(t))h=[];else if(e.__isRegExp(t))h=new RegExp(t.source,i(t)),t.lastIndex&&(h.lastIndex=t.lastIndex);else if(e.__isDate(t))h=new Date(t.getTime());else{if(l&&Buffer.isBuffer(t))return h=Buffer.allocUnsafe?Buffer.allocUnsafe(t.length):new Buffer(t.length),t.copy(h),h;void 0===o?(u=Object.getPrototypeOf(t),h=Object.create(u)):(h=Object.create(o),u=o)}if(n){var p=a.indexOf(t);if(-1!=p)return s[p];a.push(t),s.push(h)}for(var d in t){var g;u&&(g=Object.getOwnPropertyDescriptor(u,d)),g&&null==g.set||(h[d]=c(t[d],r-1))}return h}return void 0===n&&(n=!0),void 0===r&&(r=1/0),c(t,r)}function t(e){return Object.prototype.toString.call(e)}function n(e){return"object"==typeof e&&"[object Date]"===t(e)}function r(e){return"object"==typeof e&&"[object Array]"===t(e)}function o(e){return"object"==typeof e&&"[object RegExp]"===t(e)}function i(e){var t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),t}return e.clonePrototype=function(e){if(null===e)return null;var t=function(){};return t.prototype=e,new t},e.__objToStr=t,e.__isDate=n,e.__isArray=r,e.__isRegExp=o,e.__getRegExpFlags=i,e}();e.exports&&(e.exports=t)},8168:(e,t,n)=>{var r=n(8874),o={};for(var i in r)r.hasOwnProperty(i)&&(o[r[i]]=i);var a=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var s in a)if(a.hasOwnProperty(s)){if(!("channels"in a[s]))throw new Error("missing channels property: "+s);if(!("labels"in a[s]))throw new Error("missing channel labels property: "+s);if(a[s].labels.length!==a[s].channels)throw new Error("channel and label counts mismatch: "+s);var l=a[s].channels,c=a[s].labels;delete a[s].channels,delete a[s].labels,Object.defineProperty(a[s],"channels",{value:l}),Object.defineProperty(a[s],"labels",{value:c})}function h(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)+Math.pow(e[2]-t[2],2)}a.rgb.hsl=function(e){var t,n,r=e[0]/255,o=e[1]/255,i=e[2]/255,a=Math.min(r,o,i),s=Math.max(r,o,i),l=s-a;return s===a?t=0:r===s?t=(o-i)/l:o===s?t=2+(i-r)/l:i===s&&(t=4+(r-o)/l),(t=Math.min(60*t,360))<0&&(t+=360),n=(a+s)/2,[t,100*(s===a?0:n<=.5?l/(s+a):l/(2-s-a)),100*n]},a.rgb.hsv=function(e){var t,n,r,o,i,a=e[0]/255,s=e[1]/255,l=e[2]/255,c=Math.max(a,s,l),h=c-Math.min(a,s,l),u=function(e){return(c-e)/6/h+.5};return 0===h?o=i=0:(i=h/c,t=u(a),n=u(s),r=u(l),a===c?o=r-n:s===c?o=1/3+t-r:l===c&&(o=2/3+n-t),o<0?o+=1:o>1&&(o-=1)),[360*o,100*i,100*c]},a.rgb.hwb=function(e){var t=e[0],n=e[1],r=e[2];return[a.rgb.hsl(e)[0],100*(1/255*Math.min(t,Math.min(n,r))),100*(r=1-1/255*Math.max(t,Math.max(n,r)))]},a.rgb.cmyk=function(e){var t,n=e[0]/255,r=e[1]/255,o=e[2]/255;return[100*((1-n-(t=Math.min(1-n,1-r,1-o)))/(1-t)||0),100*((1-r-t)/(1-t)||0),100*((1-o-t)/(1-t)||0),100*t]},a.rgb.keyword=function(e){var t=o[e];if(t)return t;var n,i=1/0;for(var a in r)if(r.hasOwnProperty(a)){var s=h(e,r[a]);s.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]},a.rgb.lab=function(e){var t=a.rgb.xyz(e),n=t[0],r=t[1],o=t[2];return r/=100,o/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(n-r),200*(r-(o=o>.008856?Math.pow(o,1/3):7.787*o+16/116))]},a.hsl.rgb=function(e){var t,n,r,o,i,a=e[0]/360,s=e[1]/100,l=e[2]/100;if(0===s)return[i=255*l,i,i];t=2*l-(n=l<.5?l*(1+s):l+s-l*s),o=[0,0,0];for(var c=0;c<3;c++)(r=a+1/3*-(c-1))<0&&r++,r>1&&r--,i=6*r<1?t+6*(n-t)*r:2*r<1?n:3*r<2?t+(n-t)*(2/3-r)*6:t,o[c]=255*i;return o},a.hsl.hsv=function(e){var t=e[0],n=e[1]/100,r=e[2]/100,o=n,i=Math.max(r,.01);return n*=(r*=2)<=1?r:2-r,o*=i<=1?i:2-i,[t,100*(0===r?2*o/(i+o):2*n/(r+n)),100*((r+n)/2)]},a.hsv.rgb=function(e){var t=e[0]/60,n=e[1]/100,r=e[2]/100,o=Math.floor(t)%6,i=t-Math.floor(t),a=255*r*(1-n),s=255*r*(1-n*i),l=255*r*(1-n*(1-i));switch(r*=255,o){case 0:return[r,l,a];case 1:return[s,r,a];case 2:return[a,r,l];case 3:return[a,s,r];case 4:return[l,a,r];case 5:return[r,a,s]}},a.hsv.hsl=function(e){var t,n,r,o=e[0],i=e[1]/100,a=e[2]/100,s=Math.max(a,.01);return r=(2-i)*a,n=i*s,[o,100*(n=(n/=(t=(2-i)*s)<=1?t:2-t)||0),100*(r/=2)]},a.hwb.rgb=function(e){var t,n,r,o,i,a,s,l=e[0]/360,c=e[1]/100,h=e[2]/100,u=c+h;switch(u>1&&(c/=u,h/=u),r=6*l-(t=Math.floor(6*l)),0!=(1&t)&&(r=1-r),o=c+r*((n=1-h)-c),t){default:case 6:case 0:i=n,a=o,s=c;break;case 1:i=o,a=n,s=c;break;case 2:i=c,a=n,s=o;break;case 3:i=c,a=o,s=n;break;case 4:i=o,a=c,s=n;break;case 5:i=n,a=c,s=o}return[255*i,255*a,255*s]},a.cmyk.rgb=function(e){var t=e[0]/100,n=e[1]/100,r=e[2]/100,o=e[3]/100;return[255*(1-Math.min(1,t*(1-o)+o)),255*(1-Math.min(1,n*(1-o)+o)),255*(1-Math.min(1,r*(1-o)+o))]},a.xyz.rgb=function(e){var t,n,r,o=e[0]/100,i=e[1]/100,a=e[2]/100;return n=-.9689*o+1.8758*i+.0415*a,r=.0557*o+-.204*i+1.057*a,t=(t=3.2406*o+-1.5372*i+-.4986*a)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,[255*(t=Math.min(Math.max(0,t),1)),255*(n=Math.min(Math.max(0,n),1)),255*(r=Math.min(Math.max(0,r),1))]},a.xyz.lab=function(e){var t=e[0],n=e[1],r=e[2];return n/=100,r/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(t-n),200*(n-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]},a.lab.xyz=function(e){var t,n,r,o=e[0];t=e[1]/500+(n=(o+16)/116),r=n-e[2]/200;var i=Math.pow(n,3),a=Math.pow(t,3),s=Math.pow(r,3);return n=i>.008856?i:(n-16/116)/7.787,t=a>.008856?a:(t-16/116)/7.787,r=s>.008856?s:(r-16/116)/7.787,[t*=95.047,n*=100,r*=108.883]},a.lab.lch=function(e){var t,n=e[0],r=e[1],o=e[2];return(t=360*Math.atan2(o,r)/2/Math.PI)<0&&(t+=360),[n,Math.sqrt(r*r+o*o),t]},a.lch.lab=function(e){var t,n=e[0],r=e[1];return t=e[2]/360*2*Math.PI,[n,r*Math.cos(t),r*Math.sin(t)]},a.rgb.ansi16=function(e){var t=e[0],n=e[1],r=e[2],o=1 in arguments?arguments[1]:a.rgb.hsv(e)[2];if(0===(o=Math.round(o/50)))return 30;var i=30+(Math.round(r/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return 2===o&&(i+=60),i},a.hsv.ansi16=function(e){return a.rgb.ansi16(a.hsv.rgb(e),e[2])},a.rgb.ansi256=function(e){var t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},a.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},a.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var n;return e-=16,[Math.floor(e/36)/5*255,Math.floor((n=e%36)/6)/5*255,n%6/5*255]},a.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},a.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var n=t[0];3===t[0].length&&(n=n.split("").map((function(e){return e+e})).join(""));var r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},a.rgb.hcg=function(e){var t,n=e[0]/255,r=e[1]/255,o=e[2]/255,i=Math.max(Math.max(n,r),o),a=Math.min(Math.min(n,r),o),s=i-a;return t=s<=0?0:i===n?(r-o)/s%6:i===r?2+(o-n)/s:4+(n-r)/s+4,t/=6,[360*(t%=1),100*s,100*(s<1?a/(1-s):0)]},a.hsl.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=1,o=0;return(r=n<.5?2*t*n:2*t*(1-n))<1&&(o=(n-.5*r)/(1-r)),[e[0],100*r,100*o]},a.hsv.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=t*n,o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],100*r,100*o]},a.hcg.rgb=function(e){var t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];var o=[0,0,0],i=t%1*6,a=i%1,s=1-a,l=0;switch(Math.floor(i)){case 0:o[0]=1,o[1]=a,o[2]=0;break;case 1:o[0]=s,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=a;break;case 3:o[0]=0,o[1]=s,o[2]=1;break;case 4:o[0]=a,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=s}return l=(1-n)*r,[255*(n*o[0]+l),255*(n*o[1]+l),255*(n*o[2]+l)]},a.hcg.hsv=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t),r=0;return n>0&&(r=t/n),[e[0],100*r,100*n]},a.hcg.hsl=function(e){var t=e[1]/100,n=e[2]/100*(1-t)+.5*t,r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],100*r,100*n]},a.hcg.hwb=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},a.hwb.hcg=function(e){var t=e[1]/100,n=1-e[2]/100,r=n-t,o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],100*r,100*o]},a.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},a.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},a.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},a.gray.hsl=a.gray.hsv=function(e){return[0,0,e[0]]},a.gray.hwb=function(e){return[0,100,e[0]]},a.gray.cmyk=function(e){return[0,0,0,e[0]]},a.gray.lab=function(e){return[e[0],0,0]},a.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},a.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},2085:(e,t,n)=>{var r=n(8168),o=n(4111),i={};function a(e){var t=function(t){return null==t?t:(arguments.length>1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}function s(e){var t=function(t){if(null==t)return t;arguments.length>1&&(t=Array.prototype.slice.call(arguments));var n=e(t);if("object"==typeof n)for(var r=n.length,o=0;o{var r=n(8168);function o(){for(var e={},t=Object.keys(r),n=t.length,o=0;o{"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},9375:(e,t,n)=>{var r=n(8874);function o(e){if(e){var t=/^#([a-fA-F0-9]{3})$/,n=/^#([a-fA-F0-9]{6})$/,o=/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/,i=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/,a=/(\D+)/,s=[0,0,0],l=1,c=e.match(t);if(c){c=c[1];for(var h=0;h{var r=n(136);function o(e){return function(t,n){var r;"modifier"==n[0].type&&(r=n.shift().value);var o=n[0].value;-1!=o.indexOf("%")?(o=parseInt(o,10)/100,r?"*"!=r&&(o=t[e]()*o):o*="alpha"==e?1:255):o=Number(o),t[e](a(t[e](),o,r))}}function i(e){return function(t,n){var r;"modifier"==n[0].type&&(r=n.shift().value);var o=parseFloat(n[0].value,10);t[e](a(t[e](),o,r))}}function a(e,t,n){switch(n){case"+":return e+t;case"-":return e-t;case"*":return e*t;default:return t}}function s(e,t,n){t.hue();for(var r=t.clone(),o=t.whiteness(),i=t.blackness(),a=n.whiteness(),s=n.blackness();Math.abs(o-a)>1||Math.abs(i-s)>1;){var l=Math.round((a+o)/2),c=Math.round((s+i)/2);r.whiteness(l),r.blackness(c),r.contrast(t)>e?(a=l,s=c):(o=l,i=c)}return r}t.red=o("red"),t.blue=o("blue"),t.green=o("green"),t.alpha=t.a=o("alpha"),t.rgb=function(){},t.hue=t.h=i("hue"),t.saturation=t.s=i("saturation"),t.lightness=t.l=i("lightness"),t.whiteness=t.w=i("whiteness"),t.blackness=t.b=i("blackness"),t.blend=function(e,t){var n=e.alpha();e.alpha(1);var o=new r(t[0].value),i=1-parseInt(t[1].value,10)/100;e.mix(o,i).alpha(n)},t.tint=function(e,n){n.unshift({type:"argument",value:"white"}),t.blend(e,n)},t.shade=function(e,n){n.unshift({type:"argument",value:"black"}),t.blend(e,n)},t.contrast=function(e,t){0==t.length&&t.push({type:"argument",value:"100%"});var n=1-parseInt(t[0].value,10)/100,o=e.luminosity()<.5?new r({h:e.hue(),w:100,b:0}):new r({h:e.hue(),w:0,b:100}),i=o,a=4.5;if(e.contrast(o)>a){var l=(i=s(a,e,o)).alpha();i.alpha(1),i.mix(o,n).alpha(l)}e.hwb(i.hwb())}},1498:(e,t,n)=>{var r=n(5185),o=n(136),i=n(5685),a=n(467);function s(e){var t=e.indexOf("color(");if(-1==t)return e;if(e=e.slice(t),!(e=r("(",")",e)))throw new SyntaxError("Missing closing parenthese for '"+e+"'");return l(i("color("+e.body+")"))+s(e.post)}function l(e){var t=new o("function"==e.arguments[0].type?l(e.arguments[0]):e.arguments[0].value);return e.arguments.slice(1).forEach((function(e){var n=e.name;if(!a[n])throw new Error("Unknown '"+n+"'");e.arguments.forEach((function(e){"function"==e.type&&"color"==e.name&&(e.value=l(e),e.type="color",delete e.name)})),a[n](t,e.arguments)})),t.rgbString()}e.exports=s},1667:(e,t,n)=>{var r=n(1498),o=n(5685);t.O=r},5685:(e,t,n)=>{var r=n(5185),o=n(6383)("css-color-function:parse");function i(e){function t(t){var n=t.exec(e);if(n)return e=e.slice(n[0].length),n.slice(1)}function n(){t(/^\s+/)}function i(){var e=t(/^\)/);if(e)return o("rparen"),e}function a(){var e=t(/^([\+\-\*])/);if(e){var n={type:"modifier"};return n.value=e[0],o("modifier %o",n),n}}function s(){var e=t(/^([^\)\s]+)/);if(e){var n={type:"number"};return n.value=e[0],o("number %o",n),n}}function l(){for(var e,t=[];e=a()||u()||s();)t.push(e),n();return o("args %o",t),t}function c(){var e=t(/^(\w+)\(/);if(e){n();var r={type:"function"};return r.name=e[0],r.arguments=l(),i(),o("adjuster %o",r),r}}function h(){var e={type:"color"},r=t(/([^\)\s]+)/)[0];-1!=r.indexOf("(")&&(r+=t(/([^\)]*?\))/)[0]);return e.value=r,n(),e}function u(){if(e.match(/^color\(/)){var t=r("(",")",e);if(!t)throw new SyntaxError("Missing closing parenthese for '"+e+"'");if(""===t.body)throw new SyntaxError("color() function cannot be empty");e=t.body,n();var i,a={};for(a.type="function",a.name="color",a.arguments=[u()||h()],o("function arguments %o",a.arguments);i=c();)a.arguments.push(i),n();return e=t.post,n(),o("function %o",a),a}}return"string"!=typeof e&&(e=e.toString()),o("string %s",e),u()}e.exports=i},5185:e=>{e.exports=function(e,t,n){for(var r=0,o={},i=0;i1?n.substring(o.start+e.length,o.end):"",o.post=n.slice(o.end+t.length),o}},136:(e,t,n)=>{var r=n(6313),o=n(2085),i=n(9375),a=function(e){if(e instanceof a)return e;if(!(this instanceof a))return new a(e);var t;if(this.values={rgb:[0,0,0],hsl:[0,0,0],hsv:[0,0,0],hwb:[0,0,0],cmyk:[0,0,0,0],alpha:1},"string"==typeof e)if(t=i.getRgba(e))this.setValues("rgb",t);else if(t=i.getHsla(e))this.setValues("hsl",t);else{if(!(t=i.getHwb(e)))throw new Error('Unable to parse color from string "'+e+'"');this.setValues("hwb",t)}else if("object"==typeof e)if(void 0!==(t=e).r||void 0!==t.red)this.setValues("rgb",t);else if(void 0!==t.l||void 0!==t.lightness)this.setValues("hsl",t);else if(void 0!==t.v||void 0!==t.value)this.setValues("hsv",t);else if(void 0!==t.w||void 0!==t.whiteness)this.setValues("hwb",t);else{if(void 0===t.c&&void 0===t.cyan)throw new Error("Unable to parse color from object "+JSON.stringify(e));this.setValues("cmyk",t)}};a.prototype={rgb:function(){return this.setSpace("rgb",arguments)},hsl:function(){return this.setSpace("hsl",arguments)},hsv:function(){return this.setSpace("hsv",arguments)},hwb:function(){return this.setSpace("hwb",arguments)},cmyk:function(){return this.setSpace("cmyk",arguments)},rgbArray:function(){return this.values.rgb},hslArray:function(){return this.values.hsl},hsvArray:function(){return this.values.hsv},hwbArray:function(){return 1!==this.values.alpha?this.values.hwb.concat([this.values.alpha]):this.values.hwb},cmykArray:function(){return this.values.cmyk},rgbaArray:function(){return this.values.rgb.concat([this.values.alpha])},rgbaArrayNormalized:function(){for(var e=this.values.rgb,t=[],n=0;n<3;n++)t[n]=e[n]/255;return t.push(this.values.alpha),t},hslaArray:function(){return this.values.hsl.concat([this.values.alpha])},alpha:function(e){return void 0===e?this.values.alpha:(this.setValues("alpha",e),this)},red:function(e){return this.setChannel("rgb",0,e)},green:function(e){return this.setChannel("rgb",1,e)},blue:function(e){return this.setChannel("rgb",2,e)},hue:function(e){return e&&(e=(e%=360)<0?360+e:e),this.setChannel("hsl",0,e)},saturation:function(e){return this.setChannel("hsl",1,e)},lightness:function(e){return this.setChannel("hsl",2,e)},saturationv:function(e){return this.setChannel("hsv",1,e)},whiteness:function(e){return this.setChannel("hwb",1,e)},blackness:function(e){return this.setChannel("hwb",2,e)},value:function(e){return this.setChannel("hsv",2,e)},cyan:function(e){return this.setChannel("cmyk",0,e)},magenta:function(e){return this.setChannel("cmyk",1,e)},yellow:function(e){return this.setChannel("cmyk",2,e)},black:function(e){return this.setChannel("cmyk",3,e)},hexString:function(){return i.hexString(this.values.rgb)},rgbString:function(){return i.rgbString(this.values.rgb,this.values.alpha)},rgbaString:function(){return i.rgbaString(this.values.rgb,this.values.alpha)},percentString:function(){return i.percentString(this.values.rgb,this.values.alpha)},hslString:function(){return i.hslString(this.values.hsl,this.values.alpha)},hslaString:function(){return i.hslaString(this.values.hsl,this.values.alpha)},hwbString:function(){return i.hwbString(this.values.hwb,this.values.alpha)},keyword:function(){return i.keyword(this.values.rgb,this.values.alpha)},rgbNumber:function(){return this.values.rgb[0]<<16|this.values.rgb[1]<<8|this.values.rgb[2]},luminosity:function(){for(var e=this.values.rgb,t=[],n=0;nn?(t+.05)/(n+.05):(n+.05)/(t+.05)},level:function(e){var t=this.contrast(e);return t>=7.1?"AAA":t>=4.5?"AA":""},dark:function(){var e=this.values.rgb;return(299*e[0]+587*e[1]+114*e[2])/1e3<128},light:function(){return!this.dark()},negate:function(){for(var e=[],t=0;t<3;t++)e[t]=255-this.values.rgb[t];return this.setValues("rgb",e),this},lighten:function(e){return this.values.hsl[2]+=this.values.hsl[2]*e,this.setValues("hsl",this.values.hsl),this},darken:function(e){return this.values.hsl[2]-=this.values.hsl[2]*e,this.setValues("hsl",this.values.hsl),this},saturate:function(e){return this.values.hsl[1]+=this.values.hsl[1]*e,this.setValues("hsl",this.values.hsl),this},desaturate:function(e){return this.values.hsl[1]-=this.values.hsl[1]*e,this.setValues("hsl",this.values.hsl),this},whiten:function(e){return this.values.hwb[1]+=this.values.hwb[1]*e,this.setValues("hwb",this.values.hwb),this},blacken:function(e){return this.values.hwb[2]+=this.values.hwb[2]*e,this.setValues("hwb",this.values.hwb),this},greyscale:function(){var e=this.values.rgb,t=.3*e[0]+.59*e[1]+.11*e[2];return this.setValues("rgb",[t,t,t]),this},clearer:function(e){return this.setValues("alpha",this.values.alpha-this.values.alpha*e),this},opaquer:function(e){return this.setValues("alpha",this.values.alpha+this.values.alpha*e),this},rotate:function(e){var t=this.values.hsl[0];return t=(t=(t+e)%360)<0?360+t:t,this.values.hsl[0]=t,this.setValues("hsl",this.values.hsl),this},mix:function(e,t){var n=this,r=e,o=void 0===t?.5:t,i=2*o-1,a=n.alpha()-r.alpha(),s=((i*a==-1?i:(i+a)/(1+i*a))+1)/2,l=1-s;return this.rgb(s*n.red()+l*r.red(),s*n.green()+l*r.green(),s*n.blue()+l*r.blue()).alpha(n.alpha()*o+r.alpha()*(1-o))},toJSON:function(){return this.rgb()},clone:function(){var e=new a;return e.values=r(this.values),e}},a.prototype.getValues=function(e){for(var t={},n=0;n{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))}function i(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),this.useColors){var n="color: "+this.color;t.splice(1,0,n,"color: inherit");var r=0,o=0;t[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(r++,"%c"===e&&(o=r))})),t.splice(o,0,n)}}function a(){var e;return"object"===("undefined"==typeof console?"undefined":r(console))&&console.log&&(e=console).log.apply(e,arguments)}function s(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(n){}}function l(){var e;try{e=t.storage.getItem("debug")}catch(n){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e}function c(){try{return localStorage}catch(e){}}t.log=a,t.formatArgs=i,t.save=s,t.load=l,t.useColors=o,t.storage=c(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],e.exports=n(5885)(t),e.exports.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}},5885:(e,t,n)=>{"use strict";function r(e){function t(e){for(var t=0,n=0;n{var t=1e3,n=60*t,r=60*n,o=24*r,i=7*o,a=365.25*o;function s(e){if(!((e=String(e)).length>100)){var s=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(s){var l=parseFloat(s[1]);switch((s[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return l*a;case"weeks":case"week":case"w":return l*i;case"days":case"day":case"d":return l*o;case"hours":case"hour":case"hrs":case"hr":case"h":return l*r;case"minutes":case"minute":case"mins":case"min":case"m":return l*n;case"seconds":case"second":case"secs":case"sec":case"s":return l*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return l;default:return}}}}function l(e){var i=Math.abs(e);return i>=o?Math.round(e/o)+"d":i>=r?Math.round(e/r)+"h":i>=n?Math.round(e/n)+"m":i>=t?Math.round(e/t)+"s":e+"ms"}function c(e){var i=Math.abs(e);return i>=o?h(e,i,o,"day"):i>=r?h(e,i,r,"hour"):i>=n?h(e,i,n,"minute"):i>=t?h(e,i,t,"second"):e+" ms"}function h(e,t,n,r){var o=t>=1.5*n;return Math.round(e/n)+" "+r+(o?"s":"")}e.exports=function(e,t){t=t||{};var n=typeof e;if("string"===n&&e.length>0)return s(e);if("number"===n&&isFinite(e))return t.long?c(e):l(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},5666:e=>{!function(t){"use strict";var n,r=Object.prototype,o=r.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag",c=!0,h=t.regeneratorRuntime;if(h)c&&(e.exports=h);else{(h=t.regeneratorRuntime=c?e.exports:{}).wrap=w;var u="suspendedStart",p="suspendedYield",d="executing",g="completed",f={},m={};m[a]=function(){return this};var b=Object.getPrototypeOf,v=b&&b(b(F([])));v&&v!==r&&o.call(v,a)&&(m=v);var y=E.prototype=k.prototype=Object.create(m);C.prototype=y.constructor=E,E.constructor=C,E[l]=C.displayName="GeneratorFunction",h.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===C||"GeneratorFunction"===(t.displayName||t.name))},h.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,E):(e.__proto__=E,l in e||(e[l]="GeneratorFunction")),e.prototype=Object.create(y),e},h.awrap=function(e){return{__await:e}},M(I.prototype),I.prototype[s]=function(){return this},h.AsyncIterator=I,h.async=function(e,t,n,r){var o=new I(w(e,t,n,r));return h.isGeneratorFunction(t)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},M(y),y[l]="Generator",y[a]=function(){return this},y.toString=function(){return"[object Generator]"},h.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},h.values=F,O.prototype={constructor:O,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(P),!e)for(var t in this)"t"===t.charAt(0)&&o.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=n)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(r,o){return s.type="throw",s.arg=e,t.next=r,o&&(t.method="next",t.arg=n),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var l=o.call(a,"catchLoc"),c=o.call(a,"finallyLoc");if(l&&c){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),P(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:F(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=n),f}}}function w(e,t,n,r){var o=t&&t.prototype instanceof k?t:k,i=Object.create(o.prototype),a=new O(r||[]);return i._invoke=_(e,n,a),i}function x(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(r){return{type:"throw",arg:r}}}function k(){}function C(){}function E(){}function M(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function I(e){function t(n,r,i,a){var s=x(e[n],e,r);if("throw"!==s.type){var l=s.arg,c=l.value;return c&&"object"==typeof c&&o.call(c,"__await")?Promise.resolve(c.__await).then((function(e){t("next",e,i,a)}),(function(e){t("throw",e,i,a)})):Promise.resolve(c).then((function(e){l.value=e,i(l)}),a)}a(s.arg)}var n;function r(e,r){function o(){return new Promise((function(n,o){t(e,r,n,o)}))}return n=n?n.then(o,o):o()}this._invoke=r}function _(e,t,n){var r=u;return function(o,i){if(r===d)throw new Error("Generator is already running");if(r===g){if("throw"===o)throw i;return T()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=S(a,n);if(s){if(s===f)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===u)throw r=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=d;var l=x(e,t,n);if("normal"===l.type){if(r=n.done?g:p,l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r=g,n.method="throw",n.arg=l.arg)}}}function S(e,t){var r=e.iterator[t.method];if(r===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=n,S(e,t),"throw"===t.method))return f;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var o=x(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=n),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function F(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r{if(!n){var i=1/0;for(h=0;h=o)&&Object.keys(s.O).every((e=>s.O[e](n[l])))?n.splice(l--,1):(a=!1,o0&&e[h-1][2]>o;h--)e[h]=e[h-1];e[h]=[n,r,o]},s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},n=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,s.t=function(e,r){if(1&r&&(e=this(e)),8&r)return e;if("object"==typeof e&&e){if(4&r&&e.__esModule)return e;if(16&r&&"function"==typeof e.then)return e}var o=Object.create(null);s.r(o);var i={};t=t||[null,n({}),n([]),n(n)];for(var a=2&r&&e;"object"==typeof a&&!~t.indexOf(a);a=n(a))Object.getOwnPropertyNames(a).forEach((t=>i[t]=()=>e[t]));return i.default=()=>e,s.d(o,i),o},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.f={},s.e=e=>Promise.all(Object.keys(s.f).reduce(((t,n)=>(s.f[n](e,t),t)),[])),s.u=e=>"./js/"+e+".js",s.miniCssF=e=>"./css/"+e+".css",s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r={},o="@flippingbook/publication:",s.l=(e,t,n,i)=>{if(r[e])r[e].push(t);else{var a,l;if(void 0!==n)for(var c=document.getElementsByTagName("script"),h=0;h{a.onerror=a.onload=null,clearTimeout(d);var o=r[e];if(delete r[e],a.parentNode&&a.parentNode.removeChild(a),o&&o.forEach((e=>e(n))),t)return t(n)},d=setTimeout(p.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=p.bind(null,a.onerror),a.onload=p.bind(null,a.onload),l&&document.head.appendChild(a)}},s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.v=(e,t,n,r)=>{var o=fetch(s.p+""+n+".module.wasm");return"function"==typeof WebAssembly.instantiateStreaming?WebAssembly.instantiateStreaming(o,r).then((t=>Object.assign(e,t.instance.exports))):o.then((e=>e.arrayBuffer())).then((e=>WebAssembly.instantiate(e,r))).then((t=>Object.assign(e,t.instance.exports)))},s.p="",(()=>{if("undefined"!=typeof document){var e=(e,t,n,r,o)=>{var i=document.createElement("link");i.rel="stylesheet",i.type="text/css";var a=n=>{if(i.onerror=i.onload=null,"load"===n.type)r();else{var a=n&&("load"===n.type?"missing":n.type),s=n&&n.target&&n.target.href||t,l=new Error("Loading CSS chunk "+e+" failed.\n("+s+")");l.code="CSS_CHUNK_LOAD_FAILED",l.type=a,l.request=s,i.parentNode&&i.parentNode.removeChild(i),o(l)}};return i.onerror=i.onload=a,i.href=t,n?n.parentNode.insertBefore(i,n.nextSibling):document.head.appendChild(i),i},t=(e,t)=>{for(var n=document.getElementsByTagName("link"),r=0;rnew Promise(((r,o)=>{var i=s.miniCssF(n),a=s.p+i;if(t(i,a))return r();e(n,a,null,r,o)})),r={7:0};s.f.miniCss=(e,t)=>{var o={10:1,11:1,14:1};r[e]?t.push(r[e]):0!==r[e]&&o[e]&&t.push(r[e]=n(e).then((()=>{r[e]=0}),(t=>{throw delete r[e],t})))}}})(),(()=>{var e={7:0};s.f.j=(t,n)=>{var r=s.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var o=new Promise(((n,o)=>r=e[t]=[n,o]));n.push(r[2]=o);var i=s.p+s.u(t),a=new Error,l=n=>{if(s.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;a.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",a.name="ChunkLoadError",a.type=o,a.request=i,r[1](a)}};s.l(i,l,"chunk-"+t,t)}},s.O.j=t=>0===e[t];var t=(t,n)=>{var r,o,[i,a,l]=n,c=0;if(i.some((t=>0!==e[t]))){for(r in a)s.o(a,r)&&(s.m[r]=a[r]);if(l)var h=l(s)}for(t&&t(n);c{"use strict";s.r(l),s.d(l,{HistoryApiAdapter:()=>K,PageResourceState:()=>Q.Z,PageResourceType:()=>Q.B,Publication:()=>oe,PublicationDetector:()=>O,SKIN_TEMPLATES:()=>ie,UserAgentDetector:()=>S.Z,loadScript:()=>ne.Z});var e=s(8239);function t(){this.id=Math.random(),this.methods=[],this.events=[]}t.prototype=new e.Z,t.prototype.constructor=t,t.prototype.addMethod=function(e,t){this[e]=t,this.methods.push(e)},t.prototype.addEvent=function(e){this.events.push(e)};const n=t;var r=s(8531),o=s(7476);function i(){if(!window.getComputedStyle)return!1;const e=document.createElement("p"),t={webkitTransform:"-webkit-transform",OTransform:"-o-transform",msTransform:"-ms-transform",MozTransform:"-moz-transform",transform:"transform"};let n;document.body.insertBefore(e,null);for(const r in t)void 0!==e.style[r]&&(e.style[r]="translate3d(1px,1px,1px)",n=window.getComputedStyle(e).getPropertyValue(t[r]));return document.body.removeChild(e),void 0!==n&&n.length>0&&"none"!==n}function a(e){const t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:null}function c(e,t,n,r,o){const i={backgroundColor:"#0b97c4",titleColor:"#fff",titleText:"",coverSrc:"",logoLink:{image:null,url:"http://flippingbook.com"}},a=this,l="mobile"===o||"mobile-app"===o?"fixed":"absolute";this.browser=r,this.adapter=t,this.options=Object.assign(i,n),this.preloader=s.g.document.createElement("div"),this.preloader.id="preloader",this.preloader.style.width="100%",this.preloader.style.height=document.documentElement.clientHeight+"px",this.preloader.style.position=l,this.preloader.style.top="0px",this.preloader.style.left="0px",this.preloader.style.right="0px",this.preloader.style.bottom="0px",this.browser.publisher&&(this.preloader.className="no-fade-in"),this.preloader.style.backgroundColor=this.options.backgroundColor,this.preloader.style.zIndex="999999999",this._styleTags=[],this._resize=function(){a.preloader.style.height=document.documentElement.clientHeight+"px",a._setCoverSize()},s.g.addEventListener("resize",this._resize),this._preventZoom=function(e){e.preventDefault()},window.location===window.parent.location&&this.preloader.addEventListener("touchstart",this._preventZoom,!0),e.appendChild(this.preloader),""!==this.options.coverSrc&&this.options.coverSrc?this._renderCoverPreloader():this._renderNewPreloader(),setTimeout((function(){a._resize()}),10)}c.prototype._preventer=function(e){e.preventDefault()},c.prototype._renderCoverPreloader=function(){const e=s.g.document.createElement("div"),t=s.g.document.createElement("h3");this.preloader.style.textAlign="center",this._applyCoverStyles(),e.className="preloader-container",t.className="preloader-title",t.innerText=(0,r.m9)(this.options.titleText),e.appendChild(t),this.coverContainer=s.g.document.createElement("div"),this.coverContainer.className="preloader-cover",e.appendChild(this.coverContainer),void 0!==this.options.logoLink&&this.options.logoLink.image&&(this.logoContainer=s.g.document.createElement("a"),this.options.logoLink.url&&(this.logoContainer.href=this.options.logoLink.url,this.logoContainer.target=this.options.logoLink.target||"_blank"),this.logoContainer.className="preloader-logo",e.appendChild(this.logoContainer),this._tuneLogoSize()),this._injectImage(),this.preloader.appendChild(e)},c.prototype._renderNewPreloader=function(){const e=s.g.document.createElement("div"),t=s.g.document.createElement("h3"),n=this;this._applyNewStyles(),e.className="preloader-title-container",t.className="preloader-title",t.innerText=(0,r.m9)(this.options.titleText),e.appendChild(t),this.preloader.appendChild(e),i()?this._render3dPreloader():this._renderFallbackPreloader(),void 0!==this.options.logoLink&&this.options.logoLink.image&&(this.logoContainer=s.g.document.createElement("a"),this.options.logoLink.url&&(this.logoContainer.href=this.options.logoLink.url,this.logoContainer.target=this.options.logoLink.target||"_blank"),this.logoContainer.className="preloader-logo",this.preloader.appendChild(this.logoContainer),this._tuneLogoSize()),this.browser.publisher||setTimeout((function(){n.preloader.className="show-on"}),10)},c.prototype._render3dPreloader=function(){const e=s.g.document.createElement("div"),t=s.g.document.createElement("div");this._apply3dBookStyles(),t.className="book-preloader",t.innerHTML='\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
',e.appendChild(t),e.className="book-preloader-shell",this.preloader.appendChild(e),setTimeout((function(){t.className="book-preloader animation",this.bookInt=setInterval((function(){t.className="book-preloader",setTimeout((function(){t.className="book-preloader animation"}),100)}),3300)}),400)},c.prototype._renderFallbackPreloader=function(){const e=s.g.document.createElement("div"),t=s.g.document.createElement("div");this._applyFallbackStyles(),e.className="loading",t.className="inner",e.appendChild(t),this.preloader.appendChild(e)},c.prototype._resize=function(){},c.prototype._preventZoom=function(){},c.prototype._applyCoverStyles=function(){const e=this.adapter.translatePath(this.options.coverSrc),t=s.g.document.createElement("style");(0,o.V)()&&t.setAttribute("nonce",(0,o.V)());const n=`\n .preloader-container{\n overflow: hidden;\n text-align: center;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n vertical-align: middle;\n max-width: 500px;\n width: 90%;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%)\n }\n \n .preloader-title{\n max-height: 3.0em;\n line-height: 1.5em;\n width: 100%;\n overflow: hidden;\n font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;\n font-weight: bold;\n font-size: 24px;\n margin: 0;\n display: inline-block;\n color: ${this.options.titleColor};\n }\n \n .preloader-cover{\n display: inline-block;\n margin: 70px 0;\n width: 300px;\n height: 300px;\n position: relative;\n overflow: hidden;\n }\n \n .preloader-cover img{\n position: absolute;\n clip: rect(auto, 0px, auto, auto);\n }\n \n .preloader-cover:after{\n content: '';\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-image: url('${e}');\n background-position: 50% 50%;\n background-repeat: no-repeat;\n background-size: contain;\n position: absolute;\n opacity: 0.4;\n }\n \n .preloader-logo{\n display: inline-block;\n width: 100%;\n max-width: 250px;\n height: 190px;\n background-position: 50% 50%;\n background-repeat: no-repeat;\n background-size: contain;\n box-sizing: content-box;\n }\n \n @media all and (max-width: 1300px), all and (max-height: 768px){\n .preloader-cover{\n width: 240px;\n height: 240px;\n margin: 50px 0;\n }\n .preloader-logo{\n height: 90px;\n }\n }\n @media all and (max-width: 600px), all and (max-height: 600px){\n .preloader-cover{\n width: 200px;\n height: 200px;\n margin: 20px 0 30px 0;\n }\n .preloader-logo{\n height: 85px;\n }\n }\n @media all and (max-width: 550px), all and (max-height: 450px){\n .preloader-title{\n font-size: 18px;\n }\n .preloader-cover{\n width: 160px;\n height: 160px;\n margin: 10px 0;\n }\n .preloader-logo{\n height: 40px;\n }\n }\n @media all and (max-width: 400px), all and (max-height: 300px){\n .preloader-title{\n font-size: 16px;\n }\n .preloader-cover{\n width: 100px;\n height: 100px;\n margin: 10px 0;\n }\n .preloader-logo{\n height: 34px;\n }\n }\n \n @media all and (max-width: 242px), all and (max-height: 212px){\n .preloader-title{\n display: none;\n }\n .preloader-cover{\n width: 100px;\n height: 100px;\n margin: 0;\n }\n .preloader-logo{\n display: none;\n }\n }\n \n `;t.appendChild(s.g.document.createTextNode(n)),t.id="preloader-cover-styles",this._styleTags.push(t),document.getElementsByTagName("head")[0].appendChild(t)},c.prototype._applyNewStyles=function(){const e=s.g.document.createElement("style");(0,o.V)()&&e.setAttribute("nonce",(0,o.V)());const t=584,n=t/2,r=180,i=68,a=28,l=150,c=124,h=l/2,u=54,p=`\n .preloader-title-container {\n top: 50%;\n left: 50%;\n position: absolute;\n }\n \n .preloader-title {\n width: 100%;\n overflow: hidden;\n font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;\n \n line-height: 1.2;\n display: inline-block;\n color: ${this.options.titleColor};\n position: absolute;\n bottom: 0;\n text-align: center;\n }\n \n h3.preloader-title {\n margin-block-start: 0;\n margin-block-end: 0;\n }\n \n .preloader-logo {\n position: absolute;\n left: 50%;\n display: inline-block;\n background-position: 50% 100%;\n background-repeat: no-repeat;\n background-size: contain;\n box-sizing: content-box;\n }\n \n .preloader-title-container {\n height: ${1.2*i}px;\n width: ${1.2*t}px;\n margin: ${1.2*-r}px 0 0 -${1.2*n}px;\n }\n \n .preloader-title {\n max-height: ${1.2*i}px;\n font-size: ${1.2*a}px;\n }\n \n .preloader-logo {\n bottom: ${1.3*u}px;\n margin-left: ${-1.3*h}px;\n width: ${1.3*l}px;\n height: ${1.3*c}px;\n }\n \n #preloader > div, #preloader > a{\n opacity: 0;\n transition: opacity 1s;\n }\n #preloader.show-on > div, #preloader.show-on > a, #preloader.no-fade-in > div, #preloader.no-fade-in > a{\n opacity: 1;\n }\n \n #preloader.show-off > div, #preloader.show-off > a{\n transition: opacity 0.2s;\n }\n #preloader.show-off {\n pointer-events: none;\n transition: opacity 0.4s ease-out 0.2s;\n opacity: 0;\n }\n \n @media all and (max-width: 1300px), all and (max-height: 768px) {\n .preloader-title-container {\n height: ${i}px;\n width: ${t}px;\n margin: -${r}px 0 0 -${n}px;\n }\n \n .preloader-title {\n max-height: ${i}px;\n font-size: ${a}px;\n }\n \n .preloader-logo {\n bottom: ${u}px;\n margin-left: -${h}px;\n width: ${l}px;\n height: ${c}px;\n }\n }\n \n @media all and (max-width: 620px), all and (max-height: 600px) {\n .preloader-title-container {\n height: ${.8*i}px;\n width: ${.8*t}px;\n margin: ${.8*-r}px 0 0 -${.8*n}px;\n }\n \n .preloader-title {\n max-height: ${.8*i}px;\n font-size: ${.8*a}px;\n }\n \n .preloader-logo {\n bottom: ${.8*u}px;\n margin-left: ${-.8*h}px;\n width: ${.8*l}px;\n height: ${.8*c}px;\n }\n }\n \n @media all and (max-width: 510px), all and (max-height: 450px) {\n .preloader-title-container {\n height: ${.7*i}px;\n width: ${.7*t}px;\n margin: ${.7*-r}px 0 0 -${.7*n}px;\n }\n \n .preloader-title {\n max-height: ${.7*i}px;\n font-size: ${.7*a}px;\n }\n \n .preloader-logo {\n bottom: ${.5*u}px;\n margin-left: ${-.6*h}px;\n width: ${.6*l}px;\n height: ${.6*c}px;\n }\n }\n \n @media all and (max-width: 430px){\n .preloader-title-container {\n height: ${.6*i}px;\n width: ${.6*t}px;\n margin-left: ${-.6*n}px;\n }\n \n .preloader-title {\n max-height: ${.6*i}px;\n font-size: ${.6*a}px;\n }\n }\n \n @media all and (max-width: 350px) {\n .preloader-title-container {\n height: ${.45*i}px;\n width: ${.45*t}px;\n margin-left: ${-.45*n}px;\n }\n \n .preloader-title {\n max-height: ${.45*i}px;\n font-size: ${.45*a}px;\n }\n }\n \n @media all and (max-height: 300px) {\n .preloader-title-container {\n margin-top: ${.57*-r}px;\n } \n \n .preloader-logo {\n bottom: ${.3*u}px;\n margin-left: ${-.4*h}px;\n width: ${.4*l}px;\n height: ${.4*c}px;\n }\n }\n \n @media all and (max-width: 275px), all and (max-height: 212px) {\n .preloader-title-container{\n display: none;\n }\n .preloader-logo{\n display: none;\n }\n }\n `;e.appendChild(s.g.document.createTextNode(p)),e.id="preloader-new-styles",this._styleTags.push(e),document.getElementsByTagName("head")[0].appendChild(e)},c.prototype._apply3dBookStyles=function(){const e=s.g.document.createElement("style");(0,o.V)()&&e.setAttribute("nonce",(0,o.V)());const t=60,n=.75*t,r=t/10,i=2,l=-160,c=-20,h=t/2,u=t/2-i,p=a(this.options.backgroundColor),d=.85;"#000000"===this.options.backgroundColor&&(p.r=35,p.g=35,p.b=35),p.r=(p.r*d).toFixed(0),p.g=(p.g*d).toFixed(0),p.b=(p.b*d).toFixed(0);const g=`\n .preloader{\n will-change: opacity;\n }\n .book-preloader-shell {\n border: none;\n width: ${t}px;\n height: ${n}px;\n position: absolute;\n top: 50%;\n left: 50%;\n margin-top: -${n}px;\n margin-left: -${h}px;\n background-color: ${this.options.backgroundColor};\n box-sizing: border-box;\n }\n .book-preloader {\n width: 100%;\n height: 100%;\n perspective: ${t*(this.browser.chrome?3:1.5)}px;\n perspective-origin: 50% 50%;\n transform-style: preserve-3d;\n }\n \n .animation {\n animation-name: book;\n }\n \n .sec-page-root, .first-page-root, .preloader-page1, .preloader-page2, .preloader-page3, .preloader-page4, .preloader-page5, .preloader-page6, .preloader-page7, .preloader-page8, .preloader-page9, .preloader-page10 {\n border: ${i}px solid ${this.options.titleColor};\n border-left: 0px solid rgba(255, 255, 255, 0.6);\n box-sizing: border-box;\n width: ${t/2}px;\n height: ${n}px;\n position: absolute;\n left: ${u}px;\n top: 0;\n border-radius: 0 ${r}px ${r}px 0;\n animation-name: inherit;\n animation-duration: 1.1s;\n transform-origin: 0 50%;\n animation-iteration-count: 1;\n will-change: transform;\n transform-style: preserve-3d;\n background-color: ${this.options.backgroundColor};\n }\n \n .first-page-root{\n animation-name: none;\n transform: rotateY(${l}deg);\n display: block;\n }\n .sec-page-root{\n animation-name: none;\n transform: rotateY(${c}deg);\n display: block;\n }\n \n .preloader-page1 {\n animation-delay: 0s;\n z-index: 1;\n }\n \n .preloader-page2 {\n animation-delay: 0.7s;\n }\n \n .preloader-page3 {\n animation-delay: 0.8s;\n }\n \n .preloader-page4 {\n animation-delay: 0.9s;\n }\n \n .preloader-page5 {\n animation-delay: 1.6s;\n }\n \n .preloader-page6 {\n animation-delay: 1.7s;\n }\n \n .preloader-page7 {\n animation-delay: 1.8s;\n }\n \n .preloader-page8 {\n animation-delay: 1.9s;\n }\n \n .preloader-page9 {\n animation-delay: 2.0s;\n }\n \n .preloader-page10 {\n animation-delay: 2.10s;\n }\n \n @keyframes book {\n 0% {\n transform: rotateY(1deg);\n }\n 35% {\n background-color: rgb(${p.r}, ${p.g}, ${p.b});\n }\n 85% {\n background-color: ${this.options.backgroundColor};\n }\n 100% {\n transform: rotateY(${l-22}deg);\n }\n }\n `;e.appendChild(s.g.document.createTextNode(g)),e.id="preloader-3dbook-styles",this._styleTags.push(e),document.getElementsByTagName("head")[0].appendChild(e)},c.prototype._applyFallbackStyles=function(){const e=s.g.document.createElement("style");(0,o.V)()&&e.setAttribute("nonce",(0,o.V)());const t=a(this.options.titleColor),n=`\n #preloader .loading {\n position: absolute;\n width: 50px; /* diameter */\n height: 50px; /* diameter */\n top: 50%;\n left: 50%;\n margin: -25px 0 0 -25px;\n }\n #preloader .inner, .loading:after {\n position: absolute;\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n }\n /* Mask */\n #preloader .loading:after {\n content:" ";\n margin: 15%; /* stroke width */\n border-radius: 100%;\n background: ${this.options.backgroundColor}; /* container background */\n }\n /* Spinning gradients */\n #preloader .inner {\n animation-duration: 2s; /* speed */\n -webkit-animation-duration: 2s; /* speed */\n animation-iteration-count: infinite;\n -webkit-animation-iteration-count: infinite;\n animation-timing-function: linear;\n -webkit-animation-timing-function: linear;\n }\n #preloader .inner {\n animation-name: rotate-inner;\n -webkit-animation-name: rotate-inner;\n }\n /* Halfs */\n #preloader .inner:before, .inner:after {\n position: absolute;\n top: 0;\n bottom: 0;\n content:" ";\n }\n /* Left half */\n #preloader .inner:before {\n left: 0;\n right: 50%;\n border-radius: 50px 0 0 50px; /* diameter */\n }\n /* Right half */\n #preloader .inner:after {\n left: 50%;\n right: 0;\n border-radius: 0 50px 50px 0; /* diameter */\n }\n /* Half gradients */\n #preloader .inner:before {\n background-image: -webkit-linear-gradient(top, rgba(${t.r}, ${t.g}, ${t.b}, 0), rgba(${t.r}, ${t.g}, ${t.b}, 0.5) 90%);\n background-image: -moz-linear-gradient(top, rgba(${t.r}, ${t.g}, ${t.b}, 0), rgba(${t.r}, ${t.g}, ${t.b}, 0.5) 90%);\n background-image: linear-gradient(to bottom, rgba(${t.r}, ${t.g}, ${t.b}, 0), rgba(${t.r}, ${t.g}, ${t.b}, 0.5) 90%);\n }\n #preloader .inner:after {\n background-image: -webkit-linear-gradient(top, rgba(${t.r}, ${t.g}, ${t.b}, 1), rgba(${t.r}, ${t.g}, ${t.b}, 0.5) 90%);\n background-image: -moz-linear-gradient(top, rgba(${t.r}, ${t.g}, ${t.b}, 1), rgba(${t.r}, ${t.g}, ${t.b}, 0.5) 90%);\n background-image: linear-gradient(to bottom, rgba(${t.r}, ${t.g}, ${t.b}, 1), rgba(${t.r}, ${t.g}, ${t.b}, 0.5) 90%);\n }\n /* Spinning animations */\n @keyframes rotate-inner {\n 0% {\n transform: rotate(0deg);\n -moz-transform: rotate(0deg);\n -webkit-transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n -moz-transform: rotate(360deg);\n -webkit-transform: rotate(360deg);\n }\n }\n @-webkit-keyframes rotate-inner {\n 0% {\n -webkit-transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n }\n }\n `;e.appendChild(s.g.document.createTextNode(n)),e.id="preloader-fallback-styles",this._styleTags.push(e),document.getElementsByTagName("head")[0].appendChild(e)},c.prototype._injectImage=function(){const e=this;this.coverIMG=new Image,this.coverIMG.onload=function(){e.coverContainer.appendChild(e.coverIMG),e._setCoverSize(),e.progress(100)},this.coverIMG.src=this.adapter.translatePath(this.options.coverSrc)},c.prototype._tuneLogoSize=function(){if(void 0===this.options.logoLink||!this.options.logoLink.image)return;const e=this,t=e.logoContainer,n=document.createElement("canvas"),r=n.getContext("2d"),i=new Image,a=function(){const n=e.logoContainer.getBoundingClientRect();e.logoIMGRect.width(this.coverIMG.naturalHeight||this.coverIMG.height)){const t=e.width/this.coverIMG.naturalWidth;this.coverIMG.style.left="0px",this.coverIMG.style.height=this.coverIMG.naturalHeight*t+"px",this.coverIMG.style.width=e.width+"px",this.coverIMG.style.top=(e.height-this.coverIMG.height)/2+"px"}else{const t=e.height/this.coverIMG.naturalHeight;this.coverIMG.style.top="0px",this.coverIMG.style.width=this.coverIMG.naturalWidth*t+"px",this.coverIMG.style.height=e.height+"px",this.coverIMG.style.left=(e.width-this.coverIMG.width)/2+"px"}}},c.prototype.progress=function(e){if(""===this.options.coverSrc||!this.options.coverSrc)return;const t=this.coverIMG.width*e/100;this.coverIMG.style.clip=`rect(auto, ${t}px, auto, auto)`},c.prototype.remove=function(e){e=e||function(){};const t=this;setTimeout((function(){t.preloader&&(t.preloader.className="show-off",setTimeout((function(){t.preloader&&(t.bookInt&&clearInterval(t.bookInt),s.g.removeEventListener("resize",t._resize),t.preloader.removeEventListener("touchstart",t._preventZoom,!0),t.preloader.parentNode&&t.preloader.parentNode.removeChild(t.preloader),delete t.preloader,t._styleTags.forEach((function(e){e.parentNode.removeChild(e)})),e())}),800))}),1e3)};const h=c;function u(){this.callback=null,this.isReady=!0}u.prototype.ready=function(){this.isReady=!0},u.prototype.setCallback=function(e){this.callback=e},u.prototype.getPathInfo=function(){throw new Error("Method getPathInfo() should be overridden")},u.prototype.setPath=function(){throw new Error("Method setPath() should be overridden")},u.prototype.getShareUrl=function(){throw new Error("Method getShareUrl() should be overridden")},u.prototype.getEmbedUrl=function(){throw new Error("Method getEmbedUrl() should be overridden")},u.prototype.translatePath=function(){throw new Error("Method translatePath() should be overridden")},u.prototype.getFirstPage=function(){throw new Error("Method getEmbedPrefix() should be overridden")},u.prototype.getCurrentPage=function(){throw new Error("Method getEmbedPrefix() should be overridden")},u.prototype.getVersions=function(){throw new Error("Method getEmbedPrefix() should be overridden")},u.prototype.getEmbedPrefix=function(){throw new Error("Method getEmbedPrefix() should be overridden")},u.prototype.getModulesUrl=function(){throw new Error("Method getModulesUrl() should be overridden")},u.prototype.getHashMode=function(){throw new Error("Method getOptions() should be overridden")},u.prototype.getIndexFileName=function(){throw new Error("Method getOptions() should be overridden")};const p=u;function d(e){this.mappings=e,this.baseUrl="",window.location&&(this.baseUrl=window.location.href.split("#")[0])}d.prototype=new p,d.constructor=d,d.prototype.getModulesUrl=function(){return this.baseUrl},d.prototype.translatePath=function(e){if(this.mappings.hasOwnProperty("length"))for(let t=0;t0&&void 0!==arguments[0]?arguments[0]:{};const t={mappings:{},firstPage:"1"};this.embed=!1,this.options=Object.assign(t,e),g.call(this,this.options.mappings);const n=this;void 0!==s.g.addEventListener?s.g.addEventListener("hashchange",(function(){n._hashChanged()})):void 0!==s.g.attachEvent&&s.g.attachEvent("onhashchange",(function(){n._hashChanged()})),this._parseQueryString()}f.prototype=new g,f.constructor=f,f.prototype.setPath=function(e){let t="";e.page===this.options.firstPage?(e.zoom||e.productId)&&(t+=e.page):t+=e.page,e.zoom&&(t+="/z"),e.productId&&(t+="/"+e.productId),s.g.location&&s.g.location.hash!==t&&(s.g.location.hash=t)},f.prototype.getPathInfo=function(){return s.g.location?this._getInfoFromHash(s.g.location.hash):null},f.prototype.getShareUrl=function(e){let t=g.prototype.getShareUrl.call(this);if(e&&s.g.location){let e="";const n=this._getInfoFromHash(s.g.location.hash);if(n){for(let t in n)if(n.hasOwnProperty(t)){const r=n[t];switch(t){case"page":t="p";break;case"zoom":t="z";break;case"productId":t="id"}e.length>0&&(e+="&"),e+=encodeURIComponent(t)+"="+("boolean"==typeof r?"1":encodeURIComponent(r))}if(e.length>0)if(-1!==t.indexOf("?")){const n=t.split("?");n[1].length>0&&(n[1]+="&"),n[1]+=e,t=n.join("?")}else t+="?"+e}}return t},f.prototype.getEmbedPrefix=function(){return"fbp"},f.prototype.getLocalStorage=function(){return this._checkStorage("localStorage")?window.localStorage:this._storageStub},f.prototype.getSessionStorage=function(){return this._checkStorage("sessionStorage")?window.sessionStorage:this._storageStub},f.prototype._checkStorage=function(e){const t="test";try{return window[e].setItem(t,t),window[e].removeItem(t),!0}catch(n){return!1}},f.prototype._storageStub={length:0,isStub:!0,key:function(){},getItem:function(){},setItem:function(){},removeItem:function(){},clear:function(){}},f.prototype._hashChanged=function(){if(!s.g.location)return;const e=s.g.location.hash,t=this._getInfoFromHash(e);t&&this.callback&&this.callback(t)},f.prototype._getInfoFromHash=function(e){if("#"===e.substring(0,1)&&(e=e.slice(1)),0===e.length)return null;const t=e.split("/"),n={};return n.page=encodeURIComponent(t[0]),2===t.length?"z"!==t[1]?n.productId=encodeURIComponent(t[1]):n.zoom=!0:t.length>2&&(n.zoom="z"===t[1],n.productId=encodeURIComponent(t[2])),n},f.prototype._parseQueryString=function(){if(!s.g.location)return;const e=s.g.location.search.replace("?","");if(!e.length)return;const t={},n=e.split("&");for(let s=0;s1?decodeURIComponent(e[1]):null}const r=["p","page","z","zoom","id"];let o=!1;for(let s=0,l=r.length;s0&&(a+="&"),a=encodeURIComponent(s)+"="+(t[s]?encodeURIComponent(t[s]):""));s.g.location.search=a.length>0?"?"+a:""};const m=f;var b=s(710),v=s(320),y=s(770);function w(e,t){const n=new DataView(e);if(255!==n.getUint8(0)||216!==n.getUint8(1))return!1;const r=e.byteLength;let o,i=2;for(;i4?s:t+8,E(e,l,a-1))}function E(e,t,n){let r="";for(let o=t;or[i]?1:-1}return n.length!==r.length?-1:0}A.prototype.constructor=A,A.prototype.getSupportedVersions=function(){const e=[];if(this.userAgentInfo.device.desktop){if(this.userAgentInfo.browser.ie)return[];e.push("html")}else{const t=this.userAgentInfo.os.ios,n=this.userAgentInfo.os.ipados,r=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(t||n||r)if(n||t&&parseInt(this.userAgentInfo.os.version.split(".")[0],10)>=10||r&&parseInt(this.userAgentInfo.os.version.split(".")[0],10)>=6)e.push("mobile");else{const n=navigator.userAgent.indexOf("Mozilla/5.0")>-1&&navigator.userAgent.indexOf("Android ")>-1&&navigator.userAgent.indexOf("AppleWebKit")>-1&&-1===navigator.userAgent.indexOf("Chrome");(t&&P(this.userAgentInfo.os.version,"9")>=0||r&&1===P(this.userAgentInfo.os.version,"4.2")&&!n)&&e.push("mobile-old")}}return e},A.prototype.mainVersion=function(){const e=this.getSupportedVersions();if(this.priorities){for(let t=0;t0)return e[0];return null},A.prototype.isRenderable=function(){return!0};const O=A;let F=null;function T(){return"%password-protection%"}function $(){return"%domain-protection%"}const L=function(){return"fghjk"===$()},N=function(){return"rtyu"===T()};function j(e){return/\b(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\b/gm.test(e)}function z(e){const t=e.match(/^https?\:\/\/([^\/:?#]+)(?:[\/:?#]|$)/i);return t&&t[1]}function B(e){const t=e.split("."),n=[];if(1===t.length)return n.push(t[0]),n;if(n.push(t[t.length-2]+"."+t[t.length-1]),t.length>2)for(let r=t.length-3;r>=0;r--)n.push(t[r]+"."+n[n.length-1]);return n}const U=function(){const e=window.parent;return window.location!==e.location},R=function(){return new Promise(((e,t)=>{const n=window.parent,r=setInterval((()=>{n.postMessage({fbPublicationUrl:window.location.href},"*")}),300),o=setTimeout((()=>{clearInterval(r),t(new Error("No reply from embed script"))}),1500);window.addEventListener("message",(t=>{if(t.source===n){clearTimeout(o),clearInterval(r);const n=z(t.origin);e(n)}}),!1),n.postMessage({fbPublicationUrl:window.location.href},"*")}))},D=function(e){return j(e)?[e]:B(e)},V=function(){return new Promise(((e,t)=>{const n=U();if(n)R().then((t=>{e({isEmbedded:n,embeddingDomain:t})})).catch((t=>{e({isEmbedded:n,embeddingDomain:null})}));else{const t=window.location.hostname;e({isEmbedded:n,embeddingDomain:t})}}))},H=function(){return new Promise((e=>{if(F)e(F);else{let t=new XMLHttpRequest;t.onload=function(){if(200!==this.status&&0!==this.status)throw new Error("Could not load image");F=t.response,e(t.response),t=null};const n=(0,M.Z)().translatePath("assets/cover300.jpg");t.open("GET",n,!0),t.responseType="arraybuffer",t.send(null)}}))},G=function(e,t){return H().then((e=>{const n=w(e,33432),r=w(e,33423);if(!n||!r)return new Error("Protection error");const o=n.split(","),i=D(t);if(o.length>0){let e=!1;for(let t=0;tnew Promise((n=>{const r=w(t,315),o=w(t,33423);if(!o)throw new Error("Protection error");(0,M.Z)().getLocalStorage().getItem("fblp")===r?n():q((function(e){const t=document.getElementById("passwordInput"),i=document.getElementById("passwordButton"),a=function(){let i=t.value;if(""!==i)if(i=y.Z.hex_sha256(y.Z.hex_sha256(i)+o),i===r){(0,M.Z)().getLocalStorage().setItem("fblp",i);const e=document.getElementById("security-container-styles");e&&e.parentElement.removeChild(e),n()}else t.className="password-input error",t.parentNode.setAttribute("data-error",e)};t.focus(),i.addEventListener("click",a),t.addEventListener("keyup",(function(e){const n=t.value;i.className=""!==n?"password-button":"password-button inactive","Enter"===e.code&&a()}))}),e)}))))},q=function(e,t){let n=!1;const r=/lightbox=([^&]+)/.exec(window.location.href);(0,I.k)(r)&&(n=r[1]);const o=new S.Z,i=new O(o,["html","mobile"]).mainVersion();(0,b.Z)({url:(0,M.Z)().translatePath("static/locales/"+t+".json"),responseType:"json",callback:function(r){_();const o=s.g.document.createElement("style"),a=".security-container {overflow: hidden; text-align: center; display: inline-block; vertical-align: middle; width: 550px; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); user-select: none;}.security-container .password-title {width: 100%; overflow: hidden; font-family: Arial, sans-serif; font-weight: bold; font-size: 34px; color: #5A5F63; margin: 0; display: inline-block;}.security-container .password-input {width: 330px; height: 53px; background-color: white; border: 1px solid #c7ced2; font-family: Arial, sans-serif; font-size: 16px; border-radius: 6px; padding: 0 20px; color: #5A5F63; margin-top: 26px; box-sizing: border-box;}.security-container .password-input.error {border: 1px solid #EE0000;}.security-container .input-label {display: inline-block; position: relative; margin-bottom: 26px;}.security-container .input-label:before {content: attr(data-error); position: absolute; top: 100%; right: 0%; display: inline-block; font-family: Arial, sans-serif; font-size: 16px; padding: 2px 0; color: rgba(238, 0, 0, 0.8);}.security-container .password-button {background-color: #00ADEF; border: 1px solid #c7ced2; font-size: 16px; border-radius: 3px; height: 51px; line-height: 51px; padding: 0 40px; display: inline-block; vertical-align: middle; margin-left: 12px; margin-top: -2px; font-family: Arial, sans-serif; font-size: 17px; font-weight: bold; color: #fff; transition: background-color 0.15s ease-out;}.security-container .password-button.inactive {background-color: rgba(90, 95, 99, 0.2);}.security-container .password-button:hover {cursor: pointer; background-color: #08C;}.security-container .password-button:active {cursor: pointer; background-color: #069;}.security-container .password-button.inactive:hover {cursor: default; background-color: rgba(90, 95, 99, 0.2);}.security-container[dir=rtl] .password-button {margin-right: 12px;}.security-container[dir=rtl] .input-label:before {right: initial; left: 0;}.security-container .input-label:before {white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 330px;}@media (max-width: 550px) {.security-container {width: 100%; top: 50%; left: 0; transform: translate(0, -50%); } .security-container .password-title {font-size: 24px; } .security-container .input-label {width: 90%; } .security-container .password-input {width: 100%; } .security-container .password-button {width: 90%; padding: 0; margin-left: 0; margin-right: 0; } .security-container[dir=rtl] .password-button {margin-right: 0; }}.security-close-button {position: absolute; top: 10px; right: 10px; opacity: 0;}.security-close-button[dir=rtl] {right: initial; left: 10px}";o.appendChild(s.g.document.createTextNode(a)),o.id="security-container-styles",document.getElementsByTagName("head")[0].appendChild(o),document.addEventListener("touchmove",(function(e){(e.scale&&1!==e.scale||e.touches&&e.touches.length>1)&&e.preventDefault()}),{passive:!1});const l='

'+r.LoginWindow.SECURITY_PAS_TITLE+'

'+r.LoginWindow.SECURITY_PAS_SUBMIT_BUTTON+'
';if(document.getElementsByTagName("body")[0].innerHTML=l,n&&"mobile"===i){const e=document.getElementsByClassName("security-close-button")[0];e.style.opacity=1,e.onclick=function(){window.history.go(-1)}}"ar"!==t&&"he"!==t||(document.getElementsByClassName("security-container")[0].setAttribute("dir","rtl"),document.getElementsByClassName("security-close-button")[0].setAttribute("dir","rtl")),window.FBInit&&window.FBInit.PRELOADER&&(document.getElementsByTagName("body")[0].style.backgroundColor=window.FBInit.PRELOADER.backgroundColor,document.getElementsByClassName("password-title")[0].style.color=window.FBInit.PRELOADER.titleColor,document.getElementsByClassName("security-close-button")[0].style.fill=window.FBInit.PRELOADER.titleColor),e(r.LoginWindow.SECURITY_PAS_WRONG)}})},W=function(){F=null};var X=s(5622);function Y(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t={mappings:[],firstPage:"1",currentPage:"1",editorMode:!1,hashMode:!1,crossOrigin:!1,embedPrefix:"fbo",index:"index.html",uni:"4.0.0"};this.embed=!1,this.options=Object.assign(t,e),g.call(this,this.options.mappings),this.isReady=!1,this.options.hasOwnProperty("baseUrl")&&(this.baseUrl=this.options.baseUrl);const n=this;function r(){let e=s.g.location.href.replace(n.options.baseUrl,"");return e=e.replace(s.g.location.hash,""),e=e.split("?")[0],e=e.replace(n.options.currentPage+"/",""),e===n.options.index}if(this._urlChangedBound=(0,X.Ds)(this._urlChanged.bind(this),400),s.g.history&&s.g.history.pushState&&!this.options.editorMode&&!this.options.hashMode&&window.addEventListener("popstate",this._urlChangedBound),this.options.sign){const e=this.getBaseUrl(),t=this.options.sign,n=this,r=function(e){n.isIndexAvailableAsDefault=e,n.ready()};(0,b.Z)({url:e,callback:e=>{const n=e.indexOf(t);r(n>=0)},errorback:()=>{r(!1)}})}else this.isIndexAvailableAsDefault=!r(),n.ready()}Y.prototype=new g,Y.prototype.constructor=Y,Y.prototype.destructor=function(){this.callback=null,s.g.history&&s.g.history.pushState&&!this.options.editorMode&&!this.options.hashMode&&window.removeEventListener("popstate",this._urlChangedBound)},Y.prototype.getFirstPage=function(){return this.options.firstPage},Y.prototype.getCurrentPage=function(){return this.options.currentPage};const J=/^([^?]*)(\?.*)/;Y.prototype.translatePath=function(e,t){return e=g.prototype.translatePath.call(this,e),t||(e+=(-1===e.indexOf("?")?"?uni=":"&uni=")+this.options.uni),e},Y.prototype.getPathInfo=function(){if(!s.g.location)return null;let e=s.g.location.href.replace(this.options.baseUrl,"");e=e.replace(s.g.location.hash,""),e=e.replace(this.options.index,"");let t=null;const n=e.split("?")[0].split("/");n[1]&&""!==n[1]?t=n[1]:n[0]&&""!==n[0]&&(t=n[0]);const r={},o={},i=s.g.location.hash.slice(1).split("&"),a=[...s.g.location.search.slice(1).split("&"),...i];for(let s=0;s1?decodeURIComponent(e[0]):"page"]=e.length>1?decodeURIComponent(e[1]):e[0]}if(o.page?r.page=o.page:o.p?r.page=o.p:r.page=t&&null!==t?t:this.options.firstPage,o.media){const e=o.media.split(".");r.lightboxItemId=+e[0],r.lightboxItemType="image",e[1]&&(r.lightboxGalleryItemIndex=+e[1],r.lightboxItemType="gallery")}o.form&&(r.lightboxItemType="form",r.lightboxItemId=+o.form),o.search&&(r.search=o.search,r.exactMatch=!!o.exactMatch),r.page&&(r.page=r.page.replace(J,"$1"));const l=(o.zoom||o.z||"").replace(J,"$1");if(r.zoom="true"===l,o.t){const e=atob(o.t).split(","),t=e[0],n=e[1],i={top:e[2],left:e[3],width:e[4],height:e[5],cursorHSide:e[6],cursorVSide:e[7]};r.selectText={pageID:t,pageSide:n,selectionRect:i}}return r},Y.prototype.getBaseUrl=function(e){return e?this.baseUrl+("/"===this.baseUrl[this.baseUrl.length-1]?"":"/"):this.baseUrl},Y.prototype.setPath=(0,X.Ds)((function(e){this._updateFirstPageIfNeeded(e);const t=this.getPath(e);if(null===t)return;if(!s.g.location)return;let n="";if(t.hash&&(n="#"+t.hash),!t.historyApiEnabled)return void(s.g.location.hash=n);const r=!(0,X.t)(s.g.history.state,e),o=s.g.location!==s.g.parent.location&&this.embed;s.g.history.state&&!r||(o?s.g.history.replaceState(e,null,t.url+n):s.g.history.pushState(e,null,t.url+n)),""!==n&&(this.isNotHistory=!0,s.g.location.hash=n,delete this.isNotHistory)}),500),Y.prototype.getPath=function(e){if(this.options.editorMode)return null;const t=s.g.history&&s.g.history.pushState&&!this.options.hashMode,n={info:e,historyApiEnabled:t};let r=this._getUrlParams(e,t);return n.url=this.getBaseUrl(r.url||!this.isIndexAvailableAsDefault)+r.url+(this.isIndexAvailableAsDefault?"":this.options.index),t?r.params&&(n.hash=r.params):(r=this._getUrlParams(e),n.hash=r.params),n},Y.prototype.getShareUrl=function(e,t){const n=this.getPathInfo();t&&e&&(n.page=t);const r=this._getUrlParams(n,!1===this.options.hashMode);let o=this.getBaseUrl(e&&n.page||!this.isIndexAvailableAsDefault);return e&&n.page&&(o+=r.url),o+=this.isIndexAvailableAsDefault?"":this.options.index,e&&n.page&&r.params&&(o+="#"+r.params),o},Y.prototype.getEmbedPrefix=function(){return this.options.embedPrefix},Y.prototype.getLocalStorage=function(){return this._checkStorage("localStorage")?window.localStorage:this._storageStub},Y.prototype.getSessionStorage=function(){return this._checkStorage("sessionStorage")?window.sessionStorage:this._storageStub},Y.prototype._checkStorage=function(e){const t="test";try{return window[e].setItem(t,t),window[e].removeItem(t),!0}catch(n){return!1}},Y.prototype._storageStub={length:0,isStub:!0,key:function(){},getItem:function(){},setItem:function(){},removeItem:function(){},clear:function(){}},Y.prototype._getUrlParams=function(e,t){const n=[];let r="",o="";if(e.zoom&&!this.options.editorMode&&n.push("zoom=true"),e.lightboxItemId&&!this.options.editorMode)switch(e.lightboxItemType){case"image":case"gallery":let t=e.lightboxItemId;(e.lightboxGalleryItemIndex||0===e.lightboxGalleryItemIndex)&&(t=t+"."+e.lightboxGalleryItemIndex),n.push("media="+t);break;case"form":n.push("form="+e.lightboxItemId)}return e.page&&(t?(o=this.options.firstPage===e.page.toString()?"":e.page+"/",n.length>0&&(r+="")):(r=this.options.firstPage===e.page.toString()?"":"page="+e.page,r.length>0&&n.length>0&&(r+="&"))),r+=n.join("&"),{url:o,params:r}},Y.calculateFirstPage=function(e){return e>0?"I":e<0?(Math.abs(e)+1).toString():"1"},Y.prototype._updateFirstPageIfNeeded=function(e){(0,v.hj)(e.numerationOffset)&&(this.options.firstPage=Y.calculateFirstPage(e.numerationOffset))},Y.prototype._urlChanged=function(){if(!s.g.location||this.isNotHistory)return;const e=this.getPathInfo();e&&this.callback&&this.callback(e)},Y.prototype.getCrossOrigin=function(){return this.options.crossOrigin},Y.prototype.getHashMode=function(){return this.options.hashMode},Y.prototype.getIndexFileName=function(){return this.isIndexAvailableAsDefault?null:this.options.index},Y.prototype.getImageFileName=function(e){const t=e.format?"."+e.format:"";return e.name+e.size+t},Y.prototype.isDomainProtected=L,Y.prototype.isPasswordProtected=N,Y.prototype.shouldDisplayPublication=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return new Promise((n=>{!1===this.isDomainProtected()?n(!0):(e&&null===t&&n(!1),G(e,t).then((e=>n(e))))}))},Y.prototype.performPasswordCheck=function(e){return new Promise((t=>{!1===this.isPasswordProtected()?t():Z(e).then((e=>t()))}))};const K=Y;var Q=s(924),ee=s(2155);const te=JSON.parse('{"nC":{"style":{"line-height":"100vh","background-color":"#f3f3f6"},"div":{"class":"notice-outer-container","div":{"class":"notice-inner-container","span":{"id":"notice-text","class":"notice-text-block"},"br":{},"a":{"id":"download-button","class":"notice-download-button"}}}},"oB":".notice-outer-container {width: 100%; max-width: 1000px; position: absolute; top: 50%; left: 50%; -ms-transform: translate(-50%, -50%); transform: translate(-50%, -50%);} .notice-inner-container {line-height: 1.4; text-align: center; font-family: OpenSans, sans-serif; margin: 7%; padding: 21px 25px 27px; border-radius: 8px; background-color: #ffffff; filter: drop-shadow(0 5px 10px #dddddd);} .notice-text-block {display: inline-block; font-size: 15px; color: #596168;} .notice-download-button {display: inline-block; text-decoration: none; color: #596168; font-size: 16px; font-weight: 600; margin-top: 25px; padding: 10px 20px; border-radius: 3px; background-color: #eaeaec; filter: drop-shadow(2px 2px 1px #c5c5c5);}","Y9":".notice-outer-container {width: 100%; max-width: 1000px;} .notice-inner-container {line-height: 1.4; text-align: center; font-family: sans-serif; margin: 10%; padding: 21px 25px 27px; border: 1px solid #ddd; background-color: #ffffff;} .notice-text-block {display: inline-block; font-size: 15px; color: #596168;} .notice-download-button {display: inline-block; text-decoration: none; color: #596168; font-size: 16px; font-weight: 600; margin-top: 25px; padding: 10px 20px; background-color: #eaeaec;}"}');var ne=s(1042),re=s(1667);s(5666);function oe(e){if(/bot|bingbot|googlebot|google-structured-data-testing-tool|linkedinbot|mediapartners-google/i.test(navigator.userAgent))return;const t=e.nonce||window.FBO?.Config?.Nonce;function r(e){e.getEntries().forEach((e=>{if("navigation"===e.entryType){const t=e.toJSON();this.api.trigger("time",{action:"request",time:t.responseStart-t.requestStart}),this.api.trigger("time",{action:"response",time:t.responseEnd-t.responseStart}),this.api.trigger("time",{action:"firstByte",time:t.responseStart}),this.api.trigger("time",{action:"domInteractive",time:t.domInteractive})}if("measure"===e.entryType){const t=e.toJSON();this.api.trigger("time",{action:t.name,time:t.duration})}}))}t&&(s.nc=t,(0,o.n)(t)),this.styleTag=document.createElement("link"),this.styleTag.type="text/css",this.styleTag.rel="stylesheet",this.styleTag.href=e.adapter.translatePath("static/css/core.css"),(0,o.V)()&&this.styleTag.setAttribute("nonce",(0,o.V)()),document.head.appendChild(this.styleTag);const i={container:window.document.getElementsByTagName("body")[0],callback:()=>{},onPublicationLoad:()=>{},navigator:window.navigator};this.options=Object.assign(i,e),this.options.api=this.api=this.options.api||new n,this.api.trigger("log",{message:"Api inited",level:"info",timestamp:Date.now()}),this.performanceObserver=new PerformanceObserver(r.bind(this)),this.performanceObserver.observe({entryTypes:["navigation","measure"]}),this.options.adapter||(this.options.adapter=new m),(0,M.Z)().setAdapter(e.adapter);const a=new RegExp("[#&]zoom=([^&#]*)").exec(s.g.location.href);this.options.zoom=a?.[1]||null,s.p=(0,M.Z)().translatePath("static/").split("?")[0],this.userAgentInfo=new S.Z(this.options.navigator),this._performDomainCheck().then((()=>this._performPasswordCheck())).then((()=>this._render()))}oe.prototype=new e.Z,oe.prototype.constructor=oe,oe.prototype.destructor=function(){this.app&&(0,I.m)(this.app.destructor)&&this.app.destructor(),this.styleTag&&this.styleTag.parentElement&&this.styleTag.parentElement.removeChild(this.styleTag)},oe.prototype._performDomainCheck=function(){return new Promise((e=>{(0,M.Z)().isDomainProtected()?V().then((t=>{let{isEmbedded:n,embeddingDomain:r}=t;(0,M.Z)().shouldDisplayPublication(n,r).then((t=>{t?e():this._renderDomainFail()}))})).catch((()=>{this._renderDomainFail()})):e()}))},oe.prototype._performPasswordCheck=function(){return new Promise((e=>{(0,M.Z)().isPasswordProtected()?this._getLocale().then((t=>(0,M.Z)().performPasswordCheck(t).then((t=>e())))):e()}))},oe.prototype._render=function(){W(),this.api.trigger("log",{message:"Starting render",level:"info",timestamp:Date.now()});let e=!1;const t=/embed=([^&]+)/.exec(window.location.href);(0,I.k)(t)&&(e=t[1]),this.options.embed=!!e;let n=null;const r=/embedId=([^&]+)/.exec(window.location.href);(0,I.k)(r)&&(n=r[1]),this.options.embedId=n;let o=!1;const i=/post=([^&]+)/.exec(window.location.href);(0,I.k)(i)&&(o=i[1]),this.options.usePostMsg=!!o;let a=!1;const s=/lightbox=([^&]+)/.exec(window.location.href);(0,I.k)(s)&&(a=s[1]),this.options.lightbox=!!a,this.options.adapter&&(this.options.adapter.embed=this.options.embed||this.options.lightbox);let l=!1;const c=/protected=([^&]+)/.exec(window.location.href);(0,I.k)(c)&&(l=c[1]),this.options.isProtected=!!l;let h=!1;const u=/wheel=([^&]+)/.exec(window.location.href);(0,I.k)(u)&&(h="true"===u[1]),this.options.wheel=h;const p=/v=([^&]+)/.exec(window.location.href);if((0,I.k)(p)&&(this.options.overrideVersion=p[1]),this.options.overrideVersion)this._startRenderVersion(this.options.overrideVersion);else{this.detector=new O(this.userAgentInfo,this.options.versions);const e=this.detector.getSupportedVersions();let t;e&&e.length&&(t=this.detector.mainVersion(),t=t||this.options.callback(e)),t?this._startRenderVersion(t):this._renderMessage("version")}},oe.prototype._renderDomainFail=function(){this._getLocale().then((e=>{(0,b.Z)({url:(0,M.Z)().translatePath("static/locales/"+e+".json"),responseType:"json",callback:t=>{_();const n=s.g.document.createElement("style"),r="\n .security-container {overflow: hidden;text-align: center;width: 100%;position: absolute;top: 50%;left: 50%;transform: translate(-50%, -50%); display: flex; flex-direction: column; justify-content: center; align-items: center;}\n .security-container svg {width: 200px;}\n .password-title {width: 90%; overflow: hidden; font-family: Arial, sans-serif; font-weight: bold; font-size: 24px; color: #737b7d; margin: 0 0 40px 0; display: inline-block;}\n ";n.appendChild(s.g.document.createTextNode(r)),document.getElementsByTagName("head")[0].appendChild(n);const o='

'+t.LoginWindow.DOMAIN_ERROR+'

';let i,a;if(document.getElementsByTagName("body")[0].innerHTML=o,"ar"!==e&&"he"!==e||(document.getElementsByClassName("security-container")[0].setAttribute("dir","rtl"),document.getElementsByTagName("svg")[0].style.transform="scaleX(-1)"),this.options.extensions?.skinConfig){const e=this.options.extensions?.skinConfig;i=e["second-color"],a=e["second-text-color"]}else window?.FBInit?.PRELOADER&&(i=window.FBInit.PRELOADER.backgroundColor,a=window.FBInit.PRELOADER.titleColor);i&&(document.getElementsByTagName("body")[0].style.backgroundColor=i),a&&(document.getElementsByClassName("password-title")[0].style.color=a)}})}))},oe.prototype._getLocale=function(){let e=this.userAgentInfo.locale;return new Promise((t=>{if("fbo"===this.options.productType||window.FBO){const n=["en","ar","de","es","fi","fr","he","it","ja","nl","no","pl","pt","ru","sv","tr","zh"];-1===n.indexOf(e)&&(e=n[0]||"en"),t(e)}else(0,b.Z)({url:(0,M.Z)().translatePath("assets/workspace.json"),responseType:"json",callback:n=>{let r=n;r.locales=r.locales||[],this.options.extensions&&this.options.extensions.workspaceProps&&(r=(0,ee.Z)(r,this.options.extensions.workspaceProps)),-1===r.locales.indexOf(e)&&(e=r.locales[0]||"en"),t(e)}})}))},oe.prototype.goToPage=function(e){this._app&&(0,I.m)(this._app.goToPage)&&this._app.goToPage(e)},oe.prototype._startRenderVersion=function(e){-1!==e.indexOf("mobile")&&_(),this.options.container.innerHTML="";const t=s.g.document.createElement("div");t.style.width="100px",t.style.height="100px",this.options.container.appendChild(t);const n=()=>{const r=this.options.container.getBoundingClientRect();document.body.contains(this.options.container)&&!(0===r.width||0===r.height)?(this.options.container.removeChild(t),this._renderVersion(e)):setTimeout((function(){n()}),1e3)};n()},oe.prototype._renderVersion=function(e){performance.mark("preloader-start"),performance.measure("preloaderStart"),this.api.trigger("log",{message:"Starting preloader",level:"info",timestamp:Date.now()});const t=new h(this.options.container,this.options.adapter,this.options.preloader,this.userAgentInfo.browser,e),n=this.options.onPublicationLoad,r=this,o=function(e){function o(){t.preloader.removeEventListener("transitionend",o,!1),clearInterval(r.progressInterval),e.$emit("before-preloader-off"),performance.measure("preloaderBeforeOff","preloader-start"),t.remove((()=>{(0,I.m)(r.app.onReady)&&(performance.measure("preloaderOff","preloader-start"),r.app.onReady())}))}r.api.trigger("log",{message:"Removing preloader",level:"info",timestamp:Date.now()}),r.publication?(r.publication.style.transition="opacity 0.25s ease-in-out",r.publication.addEventListener("transitionend",o,!1),r.publication.style.opacity=1,r.userAgentInfo.browser.firefox&&(r.publication.style.visibility="visible")):o(),e&&(r.app=e),n(e)};if(this.options.onPublicationLoad=function(e){r._isLoaded=!0,r._app=e,r._hasProgress&&o(e)},this.options.onProgress=function(e){t.progress(e)},this.options.onInit=function(e,n){if(r._isLoaded=!1,r._hasProgress=!1,r.publication=e,!0!==n){let e=0;const n=function(){t.progress(e++),r._isLoaded&&(clearInterval(r.progressInterval),o(r._app)),e>100&&(e=0)};t.progress(100),setTimeout((function(){r._isLoaded?o(r._app):r.progressInterval=setInterval(n,r.options.preloader&&r.options.preloader.progressSpeed||10)}),500)}else r._hasProgress=!0;void 0!==r.publication&&(e.style.opacity=0,r.userAgentInfo.browser.firefox&&(r.publication.style.visibility="hidden"))},this.options.preloader&&this.options.preloader.loop)this.options.onInit(void 0,!1);else{this.options.onInit(),this.options.userAgentInfo=this.userAgentInfo;(()=>{(async()=>{const t=await Promise.all([s.e(9),s.e(8)]).then(s.bind(s,4459));this.application=new t.App(this.options,e)})()})()}},oe.prototype._renderMessage=function(e){const t=this,n=function(e,t){for(const n in t)if(t.hasOwnProperty(n))if("style"===n)for(const r in t[n])t[n].hasOwnProperty(r)&&(e.style[r]=t[n][r]);else"id"===n?e.id=t[n]:"class"===n?e.className=t[n]:o(n,t[n],e)},o=function(e,t,r){const o=document.createElement(e);return n(o,t),r&&(r.appendChild(o),r[e]=o),o};_();const i=document.getElementById("preloader-bg");i&&i.parentNode.removeChild(i),(0,b.Z)({url:this.options.adapter.translatePath("assets/workspace.json"),responseType:"json",callback:function(o){const i=s.g.document.getElementsByTagName("head")[0],a=s.g.document.createElement("style");a.type="text/css",a.rel="stylesheet",t.userAgentInfo.os.ios&&t.userAgentInfo.os.version.split(".")[0]<9||t.userAgentInfo.os.android&&t.userAgentInfo.os.version.split(".")[0]<=4&&t.userAgentInfo.os.version.split(".")[1]<4&&!t.userAgentInfo.browser.chrome?a.textContent=te.Y9:a.textContent=te.oB,i.appendChild(a),t.options.container.innerHTML="",n(t.options.container,te.nC);let l=t.userAgentInfo.locale;t.options.extensions&&t.options.extensions.workspaceProps&&(o=(0,ee.Z)(o,t.options.extensions.workspaceProps)),o.locales||(o.locales=["en","ar","de","es","fi","fr","he","it","ja","nl","no","pl","pt","ru","sv","tr","zh"]),-1===o.locales.indexOf(l)&&(l=o.locales[0]||"en");const c=document.getElementById("notice-text"),h=document.getElementById("download-button");"ar"!==l&&"he"!==l||(c.setAttribute("dir","rtl"),h.setAttribute("dir","rtl")),t.api.trigger("develop",{action:"version",data:"blank"}),(0,b.Z)({url:t.options.adapter.translatePath("static/locales/"+l+".json"),responseType:"json",callback:function(n){if(c.innerHTML=n.Other.UNSUPPORTED_BROWSER,o.downloads.enabled&&o.downloads.url&&o.downloads.allPagesVisible&&"version"===e){h.href="linkPdf";const e=(0,r.BU)(o.downloads.size);h.innerHTML=n.SaveWindow.SAVE_BUTTON+" (PDF, "+e+")",h.onclick=function(e){const n=t.options.adapter.translatePath("assets/common/downloads/"+encodeURIComponent(o.downloads.url));e.currentTarget.href=n}}else h.parentNode.removeChild(h)},errorback:function(){h.parentNode.removeChild(h),c.innerHTML="Sorry, this publication cannot be viewed, because your browser or device isn't supported. Please try opening it in the latest version of Google Chrome, Mozilla Firefox, Safari or Microsoft Edge."}})},errorback:function(){t.options.container.innerHTML="Sorry, this publication cannot be viewed, because your browser or device isn't supported. Please try opening it in the latest version of Google Chrome, Mozilla Firefox, Safari or Microsoft Edge."}})},oe.prototype.getState=function(){let e={};return this._app&&(0,I.m)(this._app.getState)&&(e=this._app.getState()),e},window.Publication=oe,window.getLocationEnvInfo=V,window.HistoryApiAdapter=K,window.UserAgentDetector=S.Z,window.PublicationDetector=O;const ie={color:e=>(0,re.O)("color("+e+")")}})(),l=s.O(l)})()));