/*! For license information please see index.js.LICENSE.txt */ var FBPublication=function(t){function e(e){for(var n,r,i=e[0],a=e[1],s=0,l=[];s=0&&e<=u};function f(t,e){return null!=t&&hasOwnProperty.call(t,e)}var d=function(t){return"[object Arguments]"===i.call(t)};function g(t){return"[object String]"===i.call(t)}function v(t){return"[object Number]"===i.call(t)}function m(t){return!isNaN(parseFloat(t))&&isFinite(t)}function y(t){return null==t||(p(t)&&(Object(r.isArray)(t)||g(t)||d(t))?0===t.length:0===Object.keys(t).length)}function b(t){var e=t.toUpperCase();return e&&/^M*(?:D?C{0,3}|C[MD])(?:L?X{0,3}|X[CL])(?:V?I{0,3}|I[XV])$/.test(e)}!function(){d(arguments)||(d=function(t){return f(t,"callee")})}()},30:function(t,e){var n,r,o=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(t){if(n===setTimeout)return setTimeout(t,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}function l(t){if(r===clearTimeout)return clearTimeout(t);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{return r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(t){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(t){r=a}}();var c,u=[],h=!1,p=-1;function f(){h&&c&&(h=!1,c.length?u=c.concat(u):p=-1,u.length&&d())}function d(){if(!h){var t=s(f);h=!0;for(var e=u.length;e;){for(c=u,u=[];++p1)for(var n=1;n0&&void 0!==arguments[0]?arguments[0]:{},n={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=a(n,e),r.default.call(this,this.options.mappings),this.isReady=!1,this.options.hasOwnProperty("baseUrl")&&(this.baseUrl=this.options.baseUrl);var i=this;function s(){var e=t.location.href.replace(i.options.baseUrl,"");return(e=(e=(e=e.replace(t.location.hash,"")).split("?")[0]).replace(i.options.currentPage+"/",""))===i.options.index}if(t.history&&t.history.pushState&&!this.options.editorMode&&!this.options.hashMode&&window.addEventListener("popstate",(function(){i._urlChanged()})),this.options.sign){var l=this.getBaseUrl(),c=this.options.sign,u=this,h=function(t){u.isIndexAvailableAsDefault=t,u.ready()};Object(o.default)({url:l,callback:function(t){var e=t.indexOf(c);h(e>=0)},errorback:function(){h(!1)}})}else this.isIndexAvailableAsDefault=!s(),i.ready()}s.prototype=new r.default,s.prototype.constructor=s,s.prototype.getFirstPage=function(){return this.options.firstPage},s.prototype.getCurrentPage=function(){return this.options.currentPage};var l=/^([^?]*)(\?.*)/;s.prototype.translatePath=function(t,e){return t=r.default.prototype.translatePath.call(this,t),e||(t+=(-1===t.indexOf("?")?"?uni=":"&uni=")+this.options.uni),t},s.prototype.getPathInfo=function(){if(!t.location)return null;var e=t.location.href.replace(this.options.baseUrl,""),n=null,r=(e=(e=e.replace(t.location.hash,"")).replace(this.options.index,"")).split("?")[0].split("/");r[1]&&""!==r[1]?n=r[1]:r[0]&&""!==r[0]&&(n=r[0]);for(var o,i={},a={},s=("#"===t.location.hash.substr(0,1)?t.location.hash.substr(1):e.split("?")[1]||"").split("&"),c=0;c1?decodeURIComponent(o[0]):"page"]=o.length>1?decodeURIComponent(o[1]):o[0];a.page?i.page=a.page:a.p?i.page=a.p:i.page=n&&null!==n?n:this.options.firstPage,a.search&&(i.search=a.search,i.exactMatch=!!a.exactMatch),i.page&&(i.page=i.page.replace(l,"$1"));var u=(a.zoom||a.z||"").replace(l,"$1");if(i.zoom="z"===u,a.t){var h=atob(a.t).split(","),p=h[0],f=h[1],d={top:h[2],left:h[3],width:h[4],height:h[5],cursorHSide:h[6],cursorVSide:h[7]};i.selectText={pageID:p,pageSide:f,selectionRect:d}}return i},s.prototype.getBaseUrl=function(t){return t?this.baseUrl+("/"===this.baseUrl[this.baseUrl.length-1]?"":"/"):this.baseUrl};var c=Date.now(),u=null;s.prototype.setPath=function(e){var n=this;this._updateFirstPageIfNeeded(e);var r=this.getPath(e);if(null!==r){if(Date.now()-c<500)return u&&clearTimeout(u),u=setTimeout((function(){n.setPath(e)}),500),void(c=Date.now());c=Date.now(),!r.hash&&r.historyApiEnabled?t.history.state&&t.history.state.page===e.page&&t.history.state.zoom===e.zoom||(t.location!==t.parent.location&&this.embed?t.history.replaceState(e,null,r.url):t.history.pushState(e,null,r.url)):t.location&&(r.historyApiEnabled&&t.location.href.indexOf(r.url)<0&&(!t.history.state||t.history.state.page!==e.page||t.history.state.zoom!==e.zoom)&&(t.location!==t.parent.location&&this.embed?t.history.replaceState(e,null,r.url):t.history.pushState(e,null,r.url)),t.location.hash!=="#"+r.hash&&(t.location.hash="#"+r.hash))}},s.prototype.getPath=function(e){if(this.options.editorMode)return null;var n=t.history&&t.history.pushState&&!this.options.hashMode,r={info:e,historyApiEnabled:n},o=this._getUrlParams(e,n);return r.url=this.getBaseUrl(o.url||!this.isIndexAvailableAsDefault)+o.url+(this.isIndexAvailableAsDefault?"":this.options.index),n?o.params&&(r.hash=o.params):(o=this._getUrlParams(e),r.hash=o.params),r},s.prototype.getShareUrl=function(t,e){var n=this.getPathInfo();e&&t&&(n.page=e);var r=this._getUrlParams(n,!1===this.options.hashMode),o=this.getBaseUrl(t&&n.page||!this.isIndexAvailableAsDefault);return t&&n.page&&(o+=r.url),o+=this.isIndexAvailableAsDefault?"":this.options.index,t&&n.page&&r.params&&(o+="#"+r.params),o},s.prototype.getEmbedPrefix=function(){return this.options.embedPrefix},s.prototype.getLocalStorage=function(){return this._checkStorage("localStorage")?window.localStorage:this._storageStub},s.prototype.getSessionStorage=function(){return this._checkStorage("sessionStorage")?window.sessionStorage:this._storageStub},s.prototype._checkStorage=function(t){var e="test";try{return window[t].setItem(e,e),window[t].removeItem(e),!0}catch(n){return!1}},s.prototype._storageStub={length:0,isStub:!0,key:function(){},getItem:function(){},setItem:function(){},removeItem:function(){},clear:function(){}},s.prototype._getUrlParams=function(t,e){var n=[],r="",o="";return t.zoom&&n.push("zoom=z"),t.page&&(e?(o=this.options.firstPage===t.page.toString()?"":t.page+"/",n.length>0&&(r+="")):(r=this.options.firstPage===t.page.toString()?"":"page="+t.page).length>0&&n.length>0&&(r+="&")),{url:o,params:r+=n.join("&")}},s.calculateFirstPage=function(t){return t>0?"I":t<0?(Math.abs(t)+1).toString():"1"},s.prototype._updateFirstPageIfNeeded=function(t){Object(i.isNumber)(t.numerationOffset)&&(this.options.firstPage=s.calculateFirstPage(t.numerationOffset))},s.prototype._urlChanged=function(){if(t.location){var e=this.getPathInfo();e&&this.callback&&this.callback(e)}},s.prototype.getCrossOrigin=function(){return this.options.crossOrigin},s.prototype.getHashMode=function(){return this.options.hashMode},s.prototype.getIndexFileName=function(){return this.isIndexAvailableAsDefault?null:this.options.index},s.prototype.getImageFileName=function(t){var e=t.format?"."+t.format:"";return t.name+t.size+e},e.default=s}).call(this,n(7))},312:function(t,e,n){"use strict";n.r(e),(function(t){function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function r(e){this._navigator=e||(t.navigator?t.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}r.prototype.constructor=r,r.prototype._getBrowser=function(){var t,e=void 0!==this._navigator?this._navigator.userAgent.toLowerCase():"",n=function(t){var n=e.match(t);return n&&n.length>1&&n[1]||""},r=/CrOS/.test(e),o=n(/edge?\/(\d+(\.\d+)?)/i),i=o?o>=80?"chromiumEdge":"msedge":null,a=n(/version\/(\d+(\.\d+)?)/i),s=!1;return/opera|opr/i.test(e)?t={name:"Opera",opera:!0,version:a||n(/(?:opera|opr)[\s\/](\d+(\.\d+)?)/i)}:/yabrowser/i.test(e)?t={name:"Yandex Browser",yandexbrowser:!0,version:a||n(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/windows phone/i.test(e)?(s=!0,t={name:"Windows Phone IE",ie:!0},o?(t[i]=!0,t.version=o):(t.msie=!0,t.version=n(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(e)?(t={name:"Internet Explorer",msie:!0,ie:!0,version:n(/(?:msie |rv:)(\d+(\.\d+)?)/i)},/trident/i.test(e)&&("7.0"===t.version&&"4.0"===n(/(?:trident\/)(\d+(\.\d+)?)/i)&&(t.version="8.0"),"7.0"===t.version&&"5.0"===n(/(?:trident\/)(\d+(\.\d+)?)/i)&&(t.version="9.0"))):/silk/i.test(e)?t={name:"Amazon Silk",silk:!0,version:n(/silk\/(\d+(\.\d+)?)/i)}:r?t={name:"Chrome",chrome:!0,version:n(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/chrome.+? edge?/i.test(e)?((t={name:"Microsoft Edge",version:o})[i]=!0,t.ie="msedge"===i):/chrome|crios|crmo/i.test(e)?(t={name:"Chrome",chrome:!0,version:n(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)},/SamsungBrowser/i.test(e)&&(t.name="Samsung Browser",t.samsung=!0,t.version=n(/SamsungBrowser\/(\d+(\.\d+)?)/i))):t=/seamonkey\//i.test(e)?{name:"SeaMonkey",seamonkey:!0,version:n(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel/i.test(e)?{name:"Firefox",firefox:!0,version:n(/(?:firefox|iceweasel)[ \/](\d+(\.\d+)?)/i)}:/phantom/i.test(e)?{name:"PhantomJS",phantom:!0,version:n(/phantomjs\/(\d+(\.\d+)?)/i)}:/safari/i.test(e)?{name:"Safari",safari:!0,version:a}:{other:!0},/FBAN|FBIOS|FB_IAB|FBAV/i.test(e)&&(t.name="Facebook In-App",t.facebook=!0,t.inApp=!0),/\bFB[\w_]+\/(Messenger|MESSENGER)/i.test(e)&&(t.name="Messenger In-App",t.messenger=!0,t.inApp=!0),/\bTwitter/i.test(e)&&(t.name="Twitter In-App",t.twitter=!0,t.inApp=!0),/\bLine\//i.test(e)&&(t.name="Line In-App",t.line=!0,t.inApp=!0),/\bMicroMessenger\//i.test(e)&&(t.name="Wechat In-App",t.wechat=!0,t.inApp=!0),/\bInstagram/i.test(e)&&(t.name="Instagram In-App",t.instagram=!0,t.inApp=!0),s||t.msie||t.msedge||t.chromiumEdge||!/(apple)?webkit/i.test(e)?!t.opera&&/gecko\//i.test(e)&&(t.name=t.name||"Gecko",t.gecko=!0,t.version=t.version||n(/gecko\/(\d+(\.\d+)?)/i)):(t.name=t.name||"Webkit",t.webkit=!0,!t.version&&a&&(t.version=a)),t.name||(t.name="Other"),-1!==e.toLowerCase().indexOf("publisher")&&(t.publisher=!0),t},r.prototype._getFlash=function(){var e="Shockwave Flash",r="ShockwaveFlash.ShockwaveFlash",o="application/x-shockwave-flash",i=null;if(void 0!==this._navigator.plugins&&"object"===n(this._navigator.plugins[e])){var a=this._navigator.plugins[e].description;!a||void 0!==this._navigator.mimeTypes&&this._navigator.mimeTypes[o]&&!this._navigator.mimeTypes[o].enabledPlugin||(a=a.replace(/^.*\s+(\S+\s+\S+$)/,"$1"),i=[parseInt(a.replace(/^(.*)\..*$/,"$1"),10),parseInt(a.replace(/^.*\.(.*)\s.*$/,"$1"),10),/[a-zA-Z]/.test(a)?parseInt(a.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0])}else if(void 0!==t.ActiveXObject)try{var s=new t.ActiveXObject(r);if(s){var l=s.GetVariable("$version");l&&(l=l.split(" ")[1].split(","),i=[parseInt(l[0],10),parseInt(l[1],10),parseInt(l[2],10)])}}catch(c){}return i},r.prototype._getOS=function(){var t=void 0!==this._navigator?this._navigator.userAgent.toLowerCase():"",e=function(e){var n=t.match(e);return n&&n.length>1&&n[1]||""},n={name:"Other",other:!0},r=e(/(ipod|iphone|ipad)/i).toLowerCase(),o="ontouchstart"in document.documentElement&&/macintosh/i.test(t),i=!/like android/i.test(t)&&/android/i.test(t),a=e(/version\/(\d+(\.\d+)?)/i);return r&&!o?n={name:"iOS",version:e(/os\s(\d+_*\d*_*\d*)/).split("_").join("."),ios:!0}:o?n={name:"iPadOS",version:e(/version\/(\d+.?\d*.?\d*)\s/i),ios:!0,ipados:!0}:i?n={name:"Android",version:e(/android\s(\d+\.*\d*\.*\d*)/),android:!0}:/mac os/.test(t)?n={name:"Mac OS",mac:!0}:/windows/i.test(t)?n={name:"Windows",windows:!0}:/playbook|blackberry|\bbb\d+/i.test(t)||/rim\stablet/i.test(t)?n={name:"Blackberry",blackberry:!0,version:a||e(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:/(web|hpw)os/i.test(t)?(n={name:"WebOS",webos:!0,version:a||e(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(t)&&(n.touchpad=!0)):/bada/i.test(t)?n={name:"Bada",bada:!0,version:e(/dolfin\/(\d+(\.\d+)?)/i)}:/tizen/i.test(t)?n={name:"Tizen",tizen:!0,version:e(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||a}:/sailfish/i.test(t)?n={name:"Sailfish",sailfish:!0,version:e(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel/i.test(t)&&/\((mobile|tablet);[^)]*rv:[\d.]+\)/i.test(t)&&(n={name:"Firefox OS",firefoxos:!0}),n},r.prototype._getDevice=function(){var t=void 0!==this._navigator?this._navigator.userAgent.toLowerCase():"",e={},n=!/like android/i.test(t)&&/android/i.test(t),r=/cros/.test(t);return e.name=t.match(/ipad/)||this.os.ipados?"ipad":t.match(/ipod/)?"ipod":t.match(/iphone/)?"iphone":n?"android":t.match(/windows phone/)?"wphone":t.match(/mobile/)?"mobile":t.match(/mac|win|linux/)||r?"desktop":"other",e[e.name]=!0,e},r.prototype._getLocales=function(){if(void 0!==this._navigator){if(this._navigator.languages&&this._navigator.languages.length>0){for(var t,e=[],n=0;nr[i]?1:-1}return n.length!==r.length?-1:0}n.r(e),r.prototype.constructor=r,r.prototype.getSupportedVersions=function(){var t=[];if(this.userAgentInfo.device.desktop){if(this.userAgentInfo.browser.ie)(this.userAgentInfo.browser.version||"7.0").split(".")[0]>10&&t.push("html");else t.push("html")}else{var e=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(e||n||r)if((n||e&&parseInt(this.userAgentInfo.os.version.split(".")[0],10)>=10||r&&parseInt(this.userAgentInfo.os.version.split(".")[0],10)>=6)&&!this.userAgentInfo.browser.firefox)t.push("mobile");else{var i=navigator.userAgent.indexOf("Mozilla/5.0")>-1&&navigator.userAgent.indexOf("Android ")>-1&&navigator.userAgent.indexOf("AppleWebKit")>-1&&-1===navigator.userAgent.indexOf("Chrome");(e&&o(this.userAgentInfo.os.version,"9")>=0||r&&1===o(this.userAgentInfo.os.version,"4.2")&&!i)&&t.push("mobile-old")}}return t},r.prototype.mainVersion=function(){var t=this.getSupportedVersions();if(this.priorities){for(var e=0;e0)return t[0];return null},r.prototype.isRenderable=function(){return!0},e.default=r},314:function(t,e){t.exports=function(t,e,n){for(var r=0,o={},i=0;i1?n.substring(o.start+t.length,o.end):"",o.post=n.slice(o.end+e.length),o}},315:function(t,e,n){var r=n(515),o=n(520),i=n(522),a=function(t){if(t instanceof a)return t;if(!(this instanceof a))return new a(t);var e;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 t)if(e=i.getRgba(t))this.setValues("rgb",e);else if(e=i.getHsla(t))this.setValues("hsl",e);else{if(!(e=i.getHwb(t)))throw new Error('Unable to parse color from string "'+t+'"');this.setValues("hwb",e)}else if("object"==typeof t)if(void 0!==(e=t).r||void 0!==e.red)this.setValues("rgb",e);else if(void 0!==e.l||void 0!==e.lightness)this.setValues("hsl",e);else if(void 0!==e.v||void 0!==e.value)this.setValues("hsv",e);else if(void 0!==e.w||void 0!==e.whiteness)this.setValues("hwb",e);else{if(void 0===e.c&&void 0===e.cyan)throw new Error("Unable to parse color from object "+JSON.stringify(t));this.setValues("cmyk",e)}};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 t=this.values.rgb,e=[],n=0;n<3;n++)e[n]=t[n]/255;return e.push(this.values.alpha),e},hslaArray:function(){return this.values.hsl.concat([this.values.alpha])},alpha:function(t){return void 0===t?this.values.alpha:(this.setValues("alpha",t),this)},red:function(t){return this.setChannel("rgb",0,t)},green:function(t){return this.setChannel("rgb",1,t)},blue:function(t){return this.setChannel("rgb",2,t)},hue:function(t){return t&&(t=(t%=360)<0?360+t:t),this.setChannel("hsl",0,t)},saturation:function(t){return this.setChannel("hsl",1,t)},lightness:function(t){return this.setChannel("hsl",2,t)},saturationv:function(t){return this.setChannel("hsv",1,t)},whiteness:function(t){return this.setChannel("hwb",1,t)},blackness:function(t){return this.setChannel("hwb",2,t)},value:function(t){return this.setChannel("hsv",2,t)},cyan:function(t){return this.setChannel("cmyk",0,t)},magenta:function(t){return this.setChannel("cmyk",1,t)},yellow:function(t){return this.setChannel("cmyk",2,t)},black:function(t){return this.setChannel("cmyk",3,t)},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 t=this.values.rgb,e=[],n=0;nn?(e+.05)/(n+.05):(n+.05)/(e+.05)},level:function(t){var e=this.contrast(t);return e>=7.1?"AAA":e>=4.5?"AA":""},dark:function(){var t=this.values.rgb;return(299*t[0]+587*t[1]+114*t[2])/1e3<128},light:function(){return!this.dark()},negate:function(){for(var t=[],e=0;e<3;e++)t[e]=255-this.values.rgb[e];return this.setValues("rgb",t),this},lighten:function(t){return this.values.hsl[2]+=this.values.hsl[2]*t,this.setValues("hsl",this.values.hsl),this},darken:function(t){return this.values.hsl[2]-=this.values.hsl[2]*t,this.setValues("hsl",this.values.hsl),this},saturate:function(t){return this.values.hsl[1]+=this.values.hsl[1]*t,this.setValues("hsl",this.values.hsl),this},desaturate:function(t){return this.values.hsl[1]-=this.values.hsl[1]*t,this.setValues("hsl",this.values.hsl),this},whiten:function(t){return this.values.hwb[1]+=this.values.hwb[1]*t,this.setValues("hwb",this.values.hwb),this},blacken:function(t){return this.values.hwb[2]+=this.values.hwb[2]*t,this.setValues("hwb",this.values.hwb),this},greyscale:function(){var t=this.values.rgb,e=.3*t[0]+.59*t[1]+.11*t[2];return this.setValues("rgb",[e,e,e]),this},clearer:function(t){return this.setValues("alpha",this.values.alpha-this.values.alpha*t),this},opaquer:function(t){return this.setValues("alpha",this.values.alpha+this.values.alpha*t),this},rotate:function(t){var e=this.values.hsl[0];return e=(e=(e+t)%360)<0?360+e:e,this.values.hsl[0]=e,this.setValues("hsl",this.values.hsl),this},mix:function(t,e){var n=this,r=t,o=void 0===e?.5:e,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 t=new a;return t.values=r(this.values),t}},a.prototype.getValues=function(t){for(var e={},n=0;n1&&(o-=1)),[360*o,100*i,100*c]},a.rgb.hwb=function(t){var e=t[0],n=t[1],r=t[2];return[a.rgb.hsl(t)[0],100*(1/255*Math.min(e,Math.min(n,r))),100*(r=1-1/255*Math.max(e,Math.max(n,r)))]},a.rgb.cmyk=function(t){var e,n=t[0]/255,r=t[1]/255,o=t[2]/255;return[100*((1-n-(e=Math.min(1-n,1-r,1-o)))/(1-e)||0),100*((1-r-e)/(1-e)||0),100*((1-o-e)/(1-e)||0),100*e]},a.rgb.keyword=function(t){var e=o[t];if(e)return e;var n,i=1/0;for(var a in r)if(r.hasOwnProperty(a)){var s=u(t,r[a]);s.04045?Math.pow((e+.055)/1.055,2.4):e/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*e+.7152*n+.0722*r),100*(.0193*e+.1192*n+.9505*r)]},a.rgb.lab=function(t){var e=a.rgb.xyz(t),n=e[0],r=e[1],o=e[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(t){var e,n,r,o,i,a=t[0]/360,s=t[1]/100,l=t[2]/100;if(0===s)return[i=255*l,i,i];e=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?e+6*(n-e)*r:2*r<1?n:3*r<2?e+(n-e)*(2/3-r)*6:e,o[c]=255*i;return o},a.hsl.hsv=function(t){var e=t[0],n=t[1]/100,r=t[2]/100,o=n,i=Math.max(r,.01);return n*=(r*=2)<=1?r:2-r,o*=i<=1?i:2-i,[e,100*(0===r?2*o/(i+o):2*n/(r+n)),100*((r+n)/2)]},a.hsv.rgb=function(t){var e=t[0]/60,n=t[1]/100,r=t[2]/100,o=Math.floor(e)%6,i=e-Math.floor(e),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(t){var e,n,r,o=t[0],i=t[1]/100,a=t[2]/100,s=Math.max(a,.01);return r=(2-i)*a,n=i*s,[o,100*(n=(n/=(e=(2-i)*s)<=1?e:2-e)||0),100*(r/=2)]},a.hwb.rgb=function(t){var e,n,r,o,i,a,s,l=t[0]/360,c=t[1]/100,u=t[2]/100,h=c+u;switch(h>1&&(c/=h,u/=h),r=6*l-(e=Math.floor(6*l)),0!=(1&e)&&(r=1-r),o=c+r*((n=1-u)-c),e){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(t){var e=t[0]/100,n=t[1]/100,r=t[2]/100,o=t[3]/100;return[255*(1-Math.min(1,e*(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(t){var e,n,r,o=t[0]/100,i=t[1]/100,a=t[2]/100;return n=-.9689*o+1.8758*i+.0415*a,r=.0557*o+-.204*i+1.057*a,e=(e=3.2406*o+-1.5372*i+-.4986*a)>.0031308?1.055*Math.pow(e,1/2.4)-.055:12.92*e,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*(e=Math.min(Math.max(0,e),1)),255*(n=Math.min(Math.max(0,n),1)),255*(r=Math.min(Math.max(0,r),1))]},a.xyz.lab=function(t){var e=t[0],n=t[1],r=t[2];return n/=100,r/=108.883,e=(e/=95.047)>.008856?Math.pow(e,1/3):7.787*e+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(e-n),200*(n-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]},a.lab.xyz=function(t){var e,n,r,o=t[0];e=t[1]/500+(n=(o+16)/116),r=n-t[2]/200;var i=Math.pow(n,3),a=Math.pow(e,3),s=Math.pow(r,3);return n=i>.008856?i:(n-16/116)/7.787,e=a>.008856?a:(e-16/116)/7.787,r=s>.008856?s:(r-16/116)/7.787,[e*=95.047,n*=100,r*=108.883]},a.lab.lch=function(t){var e,n=t[0],r=t[1],o=t[2];return(e=360*Math.atan2(o,r)/2/Math.PI)<0&&(e+=360),[n,Math.sqrt(r*r+o*o),e]},a.lch.lab=function(t){var e,n=t[0],r=t[1];return e=t[2]/360*2*Math.PI,[n,r*Math.cos(e),r*Math.sin(e)]},a.rgb.ansi16=function(t){var e=t[0],n=t[1],r=t[2],o=1 in arguments?arguments[1]:a.rgb.hsv(t)[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(e/255));return 2===o&&(i+=60),i},a.hsv.ansi16=function(t){return a.rgb.ansi16(a.hsv.rgb(t),t[2])},a.rgb.ansi256=function(t){var e=t[0],n=t[1],r=t[2];return e===n&&n===r?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},a.ansi16.rgb=function(t){var e=t%10;if(0===e||7===e)return t>50&&(e+=3.5),[e=e/10.5*255,e,e];var n=.5*(1+~~(t>50));return[(1&e)*n*255,(e>>1&1)*n*255,(e>>2&1)*n*255]},a.ansi256.rgb=function(t){if(t>=232){var e=10*(t-232)+8;return[e,e,e]}var n;return t-=16,[Math.floor(t/36)/5*255,Math.floor((n=t%36)/6)/5*255,n%6/5*255]},a.rgb.hex=function(t){var e=(((255&Math.round(t[0]))<<16)+((255&Math.round(t[1]))<<8)+(255&Math.round(t[2]))).toString(16).toUpperCase();return"000000".substring(e.length)+e},a.hex.rgb=function(t){var e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];var n=e[0];3===e[0].length&&(n=n.split("").map((function(t){return t+t})).join(""));var r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},a.rgb.hcg=function(t){var e,n=t[0]/255,r=t[1]/255,o=t[2]/255,i=Math.max(Math.max(n,r),o),a=Math.min(Math.min(n,r),o),s=i-a;return e=s<=0?0:i===n?(r-o)/s%6:i===r?2+(o-n)/s:4+(n-r)/s+4,e/=6,[360*(e%=1),100*s,100*(s<1?a/(1-s):0)]},a.hsl.hcg=function(t){var e=t[1]/100,n=t[2]/100,r=1,o=0;return(r=n<.5?2*e*n:2*e*(1-n))<1&&(o=(n-.5*r)/(1-r)),[t[0],100*r,100*o]},a.hsv.hcg=function(t){var e=t[1]/100,n=t[2]/100,r=e*n,o=0;return r<1&&(o=(n-r)/(1-r)),[t[0],100*r,100*o]},a.hcg.rgb=function(t){var e=t[0]/360,n=t[1]/100,r=t[2]/100;if(0===n)return[255*r,255*r,255*r];var o=[0,0,0],i=e%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(t){var e=t[1]/100,n=e+t[2]/100*(1-e),r=0;return n>0&&(r=e/n),[t[0],100*r,100*n]},a.hcg.hsl=function(t){var e=t[1]/100,n=t[2]/100*(1-e)+.5*e,r=0;return n>0&&n<.5?r=e/(2*n):n>=.5&&n<1&&(r=e/(2*(1-n))),[t[0],100*r,100*n]},a.hcg.hwb=function(t){var e=t[1]/100,n=e+t[2]/100*(1-e);return[t[0],100*(n-e),100*(1-n)]},a.hwb.hcg=function(t){var e=t[1]/100,n=1-t[2]/100,r=n-e,o=0;return r<1&&(o=(n-r)/(1-r)),[t[0],100*r,100*o]},a.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]},a.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]},a.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]},a.gray.hsl=a.gray.hsv=function(t){return[0,0,t[0]]},a.gray.hwb=function(t){return[0,100,t[0]]},a.gray.cmyk=function(t){return[0,0,0,t[0]]},a.gray.lab=function(t){return[t[0],0,0]},a.gray.hex=function(t){var e=255&Math.round(t[0]/100*255),n=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".substring(n.length)+n},a.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]}},317:function(t,e,n){"use strict";t.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]}},318:function(t,e,n){var r=n(314),o=n(523)("css-color-function:parse");function i(t){function e(e){var n=e.exec(t);if(n)return t=t.slice(n[0].length),n.slice(1)}function n(){e(/^\s+/)}function i(){var t=e(/^\)/);if(t)return o("rparen"),t}function a(){var t=e(/^([\+\-\*])/);if(t){var n={type:"modifier"};return n.value=t[0],o("modifier %o",n),n}}function s(){var t=e(/^([^\)\s]+)/);if(t){var n={type:"number"};return n.value=t[0],o("number %o",n),n}}function l(){for(var t,e=[];t=a()||h()||s();)e.push(t),n();return o("args %o",e),e}function c(){var t=e(/^(\w+)\(/);if(t){n();var r={type:"function"};return r.name=t[0],r.arguments=l(),i(),o("adjuster %o",r),r}}function u(){var t={type:"color"},r=e(/([^\)\s]+)/)[0];-1!=r.indexOf("(")&&(r+=e(/([^\)]*?\))/)[0]);return t.value=r,n(),t}function h(){if(t.match(/^color\(/)){var e=r("(",")",t);if(!e)throw new SyntaxError("Missing closing parenthese for '"+t+"'");if(""===e.body)throw new SyntaxError("color() function cannot be empty");t=e.body,n();var i,a={};for(a.type="function",a.name="color",a.arguments=[h()||u()],o("function arguments %o",a.arguments);i=c();)a.arguments.push(i),n();return t=e.post,n(),o("function %o",a),a}}return"string"!=typeof t&&(t=t.toString()),o("string %s",t),h()}t.exports=i},319:function(t,e){!function(e){"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="object"==typeof t,u=e.regeneratorRuntime;if(u)c&&(t.exports=u);else{(u=e.regeneratorRuntime=c?t.exports:{}).wrap=w;var h="suspendedStart",p="suspendedYield",f="executing",d="completed",g={},v={};v[a]=function(){return this};var m=Object.getPrototypeOf,y=m&&m(m(T([])));y&&y!==r&&o.call(y,a)&&(v=y);var b=E.prototype=C.prototype=Object.create(v);k.prototype=b.constructor=E,E.constructor=k,E[l]=k.displayName="GeneratorFunction",u.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===k||"GeneratorFunction"===(e.displayName||e.name))},u.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,E):(t.__proto__=E,l in t||(t[l]="GeneratorFunction")),t.prototype=Object.create(b),t},u.awrap=function(t){return{__await:t}},A(_.prototype),_.prototype[s]=function(){return this},u.AsyncIterator=_,u.async=function(t,e,n,r){var o=new _(w(t,e,n,r));return u.isGeneratorFunction(e)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},A(b),b[l]="Generator",b[a]=function(){return this},b.toString=function(){return"[object Generator]"},u.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},u.values=T,O.prototype={constructor:O,reset:function(t){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),!t)for(var e in this)"t"===e.charAt(0)&&o.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=n)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,o){return s.type="throw",s.arg=t,e.next=r,o&&(e.method="next",e.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;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),P(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:T(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=n),g}}}function w(t,e,n,r){var o=e&&e.prototype instanceof C?e:C,i=Object.create(o.prototype),a=new O(r||[]);return i._invoke=S(t,n,a),i}function x(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(r){return{type:"throw",arg:r}}}function C(){}function k(){}function E(){}function A(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function _(t){function e(n,r,i,a){var s=x(t[n],t,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(t){e("next",t,i,a)}),(function(t){e("throw",t,i,a)})):Promise.resolve(c).then((function(t){l.value=t,i(l)}),a)}a(s.arg)}var n;function r(t,r){function o(){return new Promise((function(n,o){e(t,r,n,o)}))}return n=n?n.then(o,o):o()}this._invoke=r}function S(t,e,n){var r=h;return function(o,i){if(r===f)throw new Error("Generator is already running");if(r===d){if("throw"===o)throw i;return R()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=I(a,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===h)throw r=d,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=f;var l=x(t,e,n);if("normal"===l.type){if(r=n.done?d:p,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r=d,n.method="throw",n.arg=l.arg)}}}function I(t,e){var r=t.iterator[e.method];if(r===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=n,I(t,e),"throw"===e.method))return g;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var o=x(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,g;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=n),e.delegate=null,g):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,g)}function M(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(M,this),this.reset(!0)}function T(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r1&&void 0!==arguments[1]?arguments[1]:function(){},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},i=arguments.length>3?arguments[3]:void 0,a=t.document.getElementsByTagName("head")[0],s=t.document.createElement("script");s.type="text/javascript",s.src=e,Object(r.getNonce)()&&s.setAttribute("nonce",Object(r.getNonce)()),i&&s.setAttribute("crossOrigin",i),s.onload=function(){n(s)},s.onerror=function(t){o(t)},a.appendChild(s)}}).call(this,n(7))},504:function(t,e,n){t.exports=n(505)},505:function(t,e,n){"use strict";n.r(e),(function(t){n.d(e,"Publication",(function(){return I})),n.d(e,"SKIN_TEMPLATES",(function(){return M}));var r=n(506),o=n(507),i=n(508),a=n(311);n.d(e,"HistoryApiAdapter",(function(){return a.default}));var s=n(312);n.d(e,"UserAgentDetector",(function(){return s.default}));var l=n(313);n.d(e,"PublicationDetector",(function(){return l.default}));var c=n(14);n.d(e,"PageResourceState",(function(){return c.default})),n.d(e,"PageResourceType",(function(){return c.PageResourceType}));var u=n(49),h=n(23),p=n(15),f=n(20),d=n(12),g=n(510),v=n(511),m=n(512),y=n(50);n.d(e,"loadScript",(function(){return y.default}));var b,w,x=n(29),C=n(513);n(319);function k(t,e,n,r,o,i,a){try{var s=t[i](a),l=s.value}catch(c){return void n(c)}s.done?e(l):Promise.resolve(l).then(r,o)}function E(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){k(i,r,o,a,s,"next",t)}function s(t){k(i,r,o,a,s,"throw",t)}a(void 0)}))}}function A(){return(A=Object.assign||function(t){for(var e=1;e2)for(var r=e.length-3;r>=0;r--)n.push(e[r]+"."+n[n.length-1]);return n}function i(i){var a=Object(m.default)(i,33432),s=Object(m.default)(i,33423);if(!a||!s)throw new Error("Protection error");var l=a.split(",");e.embed.salt=s,e.hosting.salt=s;for(var c=0,u=l.length;c0){var p=!1;window.addEventListener("message",(function(i){if(i.source===h){p=!0;var a=r(i.origin),s=!1;if(n(a)){var l=v.default.hex_sha256(v.default.hex_sha256(a)+e.embed.salt);s=-1!==e.embed.hashes.indexOf(l)}else for(var c=o(a),u=0;u0){var f=!1,d=window.location.hostname;if(n(d)){var g=v.default.hex_sha256(v.default.hex_sha256(d)+e.hosting.salt);-1!==e.hosting.hashes.indexOf(g)&&(f=!0)}else for(var y=o(d),b=0;b1)&&t.preventDefault()}),{passive:!1});var l='

'+o.LoginWindow.SECURITY_PAS_TITLE+'

'+o.LoginWindow.SECURITY_PAS_SUBMIT_BUTTON+'
';if(document.getElementsByTagName("body")[0].innerHTML=l,r){var c=document.getElementsByClassName("security-close-button")[0];c.style.opacity=1,c.onclick=function(){window.history.go(-1)}}"ar"!==i&&"he"!==i||(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(o.LoginWindow.SECURITY_PAS_WRONG)}})}})},I.prototype._renderDomainFail=function(){var e=this;Object(f.default)({url:this.options.adapter.translatePath("assets/workspace.json"),responseType:"json",callback:function(n){var r=e.userAgentInfo.locale;e.options.extensions&&e.options.extensions.workspaceProps&&(n=Object(p.default)(n,e.options.extensions.workspaceProps)),n.locales||(n.locales=["en","ar","de","es","fi","fr","he","it","ja","nl","no","pl","pt","ru","sv","tr","zh"]),-1===n.locales.indexOf(r)&&(r=n.locales[0]||"en"),Object(f.default)({url:e.options.adapter.translatePath("static/locales/"+r+".json"),responseType:"json",callback:function(n){e._resetViewport();var o=t.document.createElement("style"),i=" \n .security-container{\n overflow: hidden;\n text-align: center;\n display: inline-block;\n vertical-align: middle;\n width: 100%;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%)\n }\n .security-container svg{\n width: 200px;\n }\n .password-title{\n width: 90%;\n overflow: hidden;\n font-family: Arial, sans-serif;\n font-weight: bold;\n font-size: 24px;\n color: #737b7d;\n margin: 0 0 40px 0;\n display: inline-block;\n }\n ";o.appendChild(t.document.createTextNode(i)),document.getElementsByTagName("head")[0].appendChild(o);var a='

'+n.LoginWindow.DOMAIN_ERROR+'

';document.getElementsByTagName("body")[0].innerHTML=a,"ar"!==r&&"he"!==r||(document.getElementsByClassName("security-container")[0].setAttribute("dir","rtl"),document.getElementsByTagName("svg")[0].style.transform="scaleX(-1)"),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)}})}})},I.prototype.goToPage=function(t){this._app&&Object(h.isFunction)(this._app.goToPage)&&this._app.goToPage(t)},I.prototype._startRenderVersion=function(e){var n=this;this._checkLoadPolyfill(),"mobile"!==e&&"mobile-old"!==e||this._resetViewport(),this.options.container.innerHTML="";var r=t.document.createElement("div");r.style.width="100px",r.style.height="100px",this.options.container.appendChild(r),function t(){var o=n.options.container.getBoundingClientRect();document.body.contains(n.options.container)&&!(0===o.width||0===o.height)?(n.options.container.removeChild(r),n._renderVersion(e)):setTimeout((function(){t()}),1e3)}()},I.prototype._checkLoadPolyfill=function(){if(!("Promise"in window&&"Symbol"in window)||this.userAgentInfo.os.ios&&this.userAgentInfo.os.version.split(".")[0]<=8){var t=document.createElement("script");t.async=!1,t.src=this.options.adapter.translatePath("static/polyfills.js");var e=this.options.adapter.getCrossOrigin();e&&t.setAttribute("crossOrigin",e),document.head.appendChild(t)}},I.prototype._renderVersion=function(t){var e=this,r=new o.default(this.options.container,this.options.adapter,this.options.preloader,this.userAgentInfo.browser,t),i=this.options.onPublicationLoad,a=this,s=function(t){function e(){r.preloader.removeEventListener("transitionend",e,!1),clearInterval(a.progressInterval),r.remove((function(){Object(h.isFunction)(a.app.onReady)&&a.app.onReady()}))}a.publication?(a.publication.style.transition="opacity 0.25s ease-in-out",a.publication.addEventListener("transitionend",e,!1),a.publication.style.opacity=1,a.userAgentInfo.browser.firefox&&(a.publication.style.visibility="visible")):e(),t&&(a.app=t),i(t)};(this.options.onPublicationLoad=function(t){a._isLoaded=!0,a._app=t,a._hasProgress&&s(t)},this.options.onProgress=function(t){r.progress(t)},this.options.onInit=function(t,e){if(a._isLoaded=!1,a._hasProgress=!1,a.publication=t,!0!==e){var n=0,o=function(){r.progress(n++),a._isLoaded&&(clearInterval(a.progressInterval),s(a._app)),n>100&&(n=0)};r.progress(100),setTimeout((function(){a._isLoaded?s(a._app):a.progressInterval=setInterval(o,a.options.preloader&&a.options.preloader.progressSpeed||10)}),500)}else a._hasProgress=!0;void 0!==a.publication&&(t.style.opacity=0,a.userAgentInfo.browser.firefox&&(a.publication.style.visibility="hidden"))},this.options.preloader&&this.options.preloader.loop)?this.options.onInit(void 0,!1):(this.options.onInit(),this.options.userAgentInfo=this.userAgentInfo,E(regeneratorRuntime.mark((function r(){var o;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,Promise.all([n.e(3),n.e(5)]).then(n.bind(null,527));case 2:o=r.sent,e.application=new o.App(e.options,t);case 4:case"end":return r.stop()}}),r)})))())},I.prototype._renderMessage=function(e){var n=this,r=function(t,e){for(var n in e)if(e.hasOwnProperty(n))if("style"===n)for(var r in e[n])e[n].hasOwnProperty(r)&&(t.style[r]=e[n][r]);else"id"===n?t.id=e[n]:"class"===n?t.className=e[n]:o(n,e[n],t)},o=function(t,e,n){var o=document.createElement(t);return r(o,e),n&&(n.appendChild(o),n[t]=o),o};this._resetViewport();var i=document.getElementById("preloader-bg");i&&i.parentNode.removeChild(i),Object(f.default)({url:this.options.adapter.translatePath("assets/workspace.json"),responseType:"json",callback:function(o){var i=t.document.getElementsByTagName("head")[0],a=t.document.createElement("style");a.type="text/css",a.rel="stylesheet",n.userAgentInfo.browser.ie&&n.userAgentInfo.browser.version.split(".")[0]<9?a.styleSheet.cssText=g.legacyStyle:n.userAgentInfo.os.ios&&n.userAgentInfo.os.version.split(".")[0]<9||n.userAgentInfo.os.android&&n.userAgentInfo.os.version.split(".")[0]<=4&&n.userAgentInfo.os.version.split(".")[1]<4&&!n.userAgentInfo.browser.chrome?a.textContent=g.legacyStyle:a.textContent=g.style,i.appendChild(a),n.options.container.innerHTML="",r(n.options.container,g.container);var s=n.userAgentInfo.locale;n.options.extensions&&n.options.extensions.workspaceProps&&(o=Object(p.default)(o,n.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(s)&&(s=o.locales[0]||"en");var l=document.getElementById("notice-text"),c=document.getElementById("download-button");"ar"!==s&&"he"!==s||(l.setAttribute("dir","rtl"),c.setAttribute("dir","rtl")),n.api.trigger("develop",{action:"version",data:"blank"}),Object(f.default)({url:n.options.adapter.translatePath("static/locales/"+s+".json"),responseType:"json",callback:function(t){if(l.innerHTML=t.Other.UNSUPPORTED_BROWSER,o.downloads.enabled&&o.downloads.url&&o.downloads.allPagesVisible&&"version"===e){c.href="linkPdf";var r=Object(d.formatSize)(o.downloads.size);c.innerHTML=t.SaveWindow.SAVE_BUTTON+" (PDF, "+r+")",c.onclick=function(t){var e=n.options.adapter.translatePath("assets/common/downloads/"+encodeURIComponent(o.downloads.url));t.currentTarget.href=e}}else c.parentNode.removeChild(c)},errorback:function(){c.parentNode.removeChild(c),l.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(){n.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."}})},I.prototype._resetViewport=function(){for(var t=document.getElementsByTagName("meta"),e=document.head&&document.head.removeChild?document.head:document.getElementsByTagName("head")[0],n=0;n0&&"none"!==t}function s(t){var e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return e?{r:parseInt(e[1],16),g:parseInt(e[2],16),b:parseInt(e[3],16)}:null}function l(e,n,r,o,a){var s={backgroundColor:"#0b97c4",titleColor:"#fff",titleText:"",coverSrc:"",logoLink:{image:null,url:"http://flippingbook.com"}},l=this,c="mobile"===a?"fixed":"absolute";this.browser=o,this.adapter=n,this.options=i(s,r),this.preloader=t.document.createElement("div"),this.preloader.id="preloader",this.preloader.style.width="100%",this.preloader.style.height=window.innerHeight+"px",this.preloader.style.position=c,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(){l.preloader.style.height=window.innerHeight+"px",l._setCoverSize()},t.addEventListener("resize",this._resize),this._preventZoom=function(t){t.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(){l._resize()}),10)}l.prototype._preventer=function(t){t.preventDefault()},l.prototype._renderCoverPreloader=function(){var e=t.document.createElement("div"),n=t.document.createElement("h3");this.preloader.style.textAlign="center",this._applyCoverStyles(),e.className="preloader-container",n.className="preloader-title",n.innerText=Object(r.decodeHtml)(this.options.titleText),e.appendChild(n),this.coverContainer=t.document.createElement("div"),this.coverContainer.className="preloader-cover",e.appendChild(this.coverContainer),void 0!==this.options.logoLink&&this.options.logoLink.image&&(this.logoContainer=t.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)},l.prototype._renderNewPreloader=function(){var e=t.document.createElement("div"),n=t.document.createElement("h3"),o=this;this._applyNewStyles(),e.className="preloader-title-container",n.className="preloader-title",n.innerText=Object(r.decodeHtml)(this.options.titleText),e.appendChild(n),this.preloader.appendChild(e),this.browser.msie?this._renderFallbackPreloader():a()?this._render3dPreloader():this._renderFallbackPreloader(),void 0!==this.options.logoLink&&this.options.logoLink.image&&(this.logoContainer=t.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(){o.preloader.className="show-on"}),10)},l.prototype._render3dPreloader=function(){var e=t.document.createElement("div"),n=t.document.createElement("div");this._apply3dBookStyles(),n.className="book-preloader",n.innerHTML='\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
',e.appendChild(n),e.className="book-preloader-shell",this.preloader.appendChild(e),setTimeout((function(){n.className="book-preloader animation",this.bookInt=setInterval((function(){n.className="book-preloader",setTimeout((function(){n.className="book-preloader animation"}),100)}),3300)}),400)},l.prototype._renderFallbackPreloader=function(){var e=t.document.createElement("div"),n=t.document.createElement("div");this._applyFallbackStyles(),e.className="loading",n.className="inner",e.appendChild(n),this.preloader.appendChild(e)},l.prototype._resize=function(){},l.prototype._preventZoom=function(){},l.prototype._applyCoverStyles=function(){var e=this.adapter.translatePath(this.options.coverSrc),n=t.document.createElement("style");Object(o.getNonce)()&&n.setAttribute("nonce",Object(o.getNonce)());var r="\n .preloader-container{\n overflow: hidden;\n text-align: center;\n display: inline-block;\n vertical-align: middle;\n width: 500px;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%)\n }\n \n .preloader-title{\n max-height: 55px;\n width: 100%;\n overflow: hidden;\n font-family: Arial, sans-serif;\n font-weight: bold;\n font-size: 24px;\n margin: 0;\n display: inline-block;\n color: ".concat(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('").concat(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: 250px;\n height: 190px;\n background-position: 50% 50%;\n background-repeat: no-repeat;\n background-size: contain;\n margin: 0 100px;\n box-sizing: content-box;\n }\n \n @media all and (max-width: 1300px), all and (max-height: 768px){\n .preloader-container{\n width: 500px;\n }\n .preloader-title{\n width: 500px;\n max-height: 55px;\n }\n .preloader-cover{\n width: 240px;\n height: 240px;\n margin: 50px 0;\n }\n .preloader-logo{\n width: 240px;\n height: 90px;\n }\n }\n @media all and (max-width: 600px), all and (max-height: 600px){\n .preloader-container{\n width: 500px;\n }\n .preloader-title{\n width: 500px;\n max-height: 55px;\n }\n .preloader-cover{\n width: 200px;\n height: 200px;\n margin: 20px 0 30px 0;\n }\n .preloader-logo{\n width: 200px;\n height: 85px;\n margin: 0 100px;\n }\n }\n @media all and (max-width: 550px), all and (max-height: 450px){\n .preloader-container{\n width: 350px;\n }\n .preloader-title{\n width: 350px;\n max-height: 40px;\n font-size: 18px;\n }\n .preloader-cover{\n width: 160px;\n height: 160px;\n margin: 10px 0;\n }\n .preloader-logo{\n width: 160px;\n height: 40px;\n margin: 0 80px;\n }\n }\n @media all and (max-width: 400px), all and (max-height: 300px){\n .preloader-container{\n width: 190px;\n }\n .preloader-title{\n width: 190px;\n max-height: 40px;\n font-size: 16px;\n }\n .preloader-cover{\n width: 100px;\n height: 100px;\n margin: 10px 0;\n }\n .preloader-logo{\n width: 100px;\n height: 34px;\n margin: 0 40px;\n }\n }\n \n @media all and (max-width: 242px), all and (max-height: 212px){\n \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 ");n.appendChild(t.document.createTextNode(r)),n.id="preloader-cover-styles",this._styleTags.push(n),document.getElementsByTagName("head")[0].appendChild(n)},l.prototype._applyNewStyles=function(){var e=t.document.createElement("style");Object(o.getNonce)()&&e.setAttribute("nonce",Object(o.getNonce)());var n=584,r=n/2,i=180,a=68,s=28,l=150,c=124,u=l/2,h=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, Arial, sans serif;\n \n line-height: 1.2;\n display: inline-block;\n color: ".concat(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: ").concat(1.2*a,"px;\n width: ").concat(1.2*n,"px;\n margin: ").concat(1.2*-i,"px 0 0 -").concat(1.2*r,"px;\n }\n \n .preloader-title {\n max-height: ").concat(1.2*a,"px;\n font-size: ").concat(1.2*s,"px;\n }\n \n .preloader-logo {\n bottom: ").concat(1.3*h,"px;\n margin-left: ").concat(-1.3*u,"px;\n width: ").concat(1.3*l,"px;\n height: ").concat(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, #preloader.show-off{\n \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: ").concat(a,"px;\n width: ").concat(n,"px;\n margin: -").concat(i,"px 0 0 -").concat(r,"px;\n }\n \n .preloader-title {\n max-height: ").concat(a,"px;\n font-size: ").concat(s,"px;\n }\n \n .preloader-logo {\n bottom: ").concat(h,"px;\n margin-left: -").concat(u,"px;\n width: ").concat(l,"px;\n height: ").concat(c,"px;\n }\n }\n \n @media all and (max-width: 620px), all and (max-height: 600px) {\n .preloader-title-container {\n height: ").concat(.8*a,"px;\n width: ").concat(.8*n,"px;\n margin: ").concat(.8*-i,"px 0 0 -").concat(.8*r,"px;\n }\n \n .preloader-title {\n max-height: ").concat(.8*a,"px;\n font-size: ").concat(.8*s,"px;\n }\n \n .preloader-logo {\n bottom: ").concat(.8*h,"px;\n margin-left: ").concat(-.8*u,"px;\n width: ").concat(.8*l,"px;\n height: ").concat(.8*c,"px;\n }\n }\n \n @media all and (max-width: 510px), all and (max-height: 450px) {\n .preloader-title-container {\n height: ").concat(.7*a,"px;\n width: ").concat(.7*n,"px;\n margin: ").concat(.7*-i,"px 0 0 -").concat(.7*r,"px;\n }\n \n .preloader-title {\n max-height: ").concat(.7*a,"px;\n font-size: ").concat(.7*s,"px;\n }\n \n .preloader-logo {\n bottom: ").concat(.5*h,"px;\n margin-left: ").concat(-.6*u,"px;\n width: ").concat(.6*l,"px;\n height: ").concat(.6*c,"px;\n }\n }\n \n @media all and (max-width: 430px){\n .preloader-title-container {\n height: ").concat(.6*a,"px;\n width: ").concat(.6*n,"px;\n margin-left: ").concat(-.6*r,"px;\n }\n \n .preloader-title {\n max-height: ").concat(.6*a,"px;\n font-size: ").concat(.6*s,"px;\n }\n }\n \n @media all and (max-width: 350px) {\n .preloader-title-container {\n height: ").concat(.45*a,"px;\n width: ").concat(.45*n,"px;\n margin-left: ").concat(-.45*r,"px;\n }\n \n .preloader-title {\n max-height: ").concat(.45*a,"px;\n font-size: ").concat(.45*s,"px;\n }\n }\n \n @media all and (max-height: 300px) {\n .preloader-title-container {\n margin-top: ").concat(.57*-i,"px;\n } \n \n .preloader-logo {\n bottom: ").concat(.3*h,"px;\n margin-left: ").concat(-.4*u,"px;\n width: ").concat(.4*l,"px;\n height: ").concat(.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(t.document.createTextNode(p)),e.id="preloader-new-styles",this._styleTags.push(e),document.getElementsByTagName("head")[0].appendChild(e)},l.prototype._apply3dBookStyles=function(){var e=t.document.createElement("style");Object(o.getNonce)()&&e.setAttribute("nonce",Object(o.getNonce)());var n=60,r=.75*n,i=n/10,a=2,l=-160,c=-20,u=n/2,h=n/2-a,p=s(this.options.backgroundColor),f=.85;"#000000"===this.options.backgroundColor&&(p.r=35,p.g=35,p.b=35),p.r=(p.r*f).toFixed(0),p.g=(p.g*f).toFixed(0),p.b=(p.b*f).toFixed(0);var d="\n .preloader{\n will-change: opacity;\n }\n .book-preloader-shell {\n border: none;\n width: ".concat(n,"px;\n height: ").concat(r,"px;\n position: absolute;\n top: 50%;\n left: 50%;\n margin-top: -").concat(r,"px;\n margin-left: -").concat(u,"px;\n background-color: ").concat(this.options.backgroundColor,";\n box-sizing: border-box;\n }\n .book-preloader {\n width: 100%;\n height: 100%;\n perspective: ").concat(n*(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: ").concat(a,"px solid ").concat(this.options.titleColor,";\n border-left: 0px solid rgba(255, 255, 255, 0.6);\n box-sizing: border-box;\n width: ").concat(n/2,"px;\n height: ").concat(r,"px;\n position: absolute;\n left: ").concat(h,"px;\n top: 0;\n border-radius: 0 ").concat(i,"px ").concat(i,"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: ").concat(this.options.backgroundColor,";\n }\n \n .first-page-root{\n animation-name: none;\n transform: rotateY(").concat(l,"deg);\n display: block;\n }\n .sec-page-root{\n animation-name: none;\n transform: rotateY(").concat(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(").concat(p.r,", ").concat(p.g,", ").concat(p.b,");\n }\n 85% {\n background-color: ").concat(this.options.backgroundColor,";\n }\n 100% {\n transform: rotateY(").concat(l-22,"deg);\n }\n }\n ");e.appendChild(t.document.createTextNode(d)),e.id="preloader-3dbook-styles",this._styleTags.push(e),document.getElementsByTagName("head")[0].appendChild(e)},l.prototype._applyFallbackStyles=function(){var e=t.document.createElement("style");Object(o.getNonce)()&&e.setAttribute("nonce",Object(o.getNonce)());var n=s(this.options.titleColor),r='\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: '.concat(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(').concat(n.r,", ").concat(n.g,", ").concat(n.b,", 0), rgba(").concat(n.r,", ").concat(n.g,", ").concat(n.b,", 0.5) 90%);\n background-image: -moz-linear-gradient(top, rgba(").concat(n.r,", ").concat(n.g,", ").concat(n.b,", 0), rgba(").concat(n.r,", ").concat(n.g,", ").concat(n.b,", 0.5) 90%);\n background-image: linear-gradient(to bottom, rgba(").concat(n.r,", ").concat(n.g,", ").concat(n.b,", 0), rgba(").concat(n.r,", ").concat(n.g,", ").concat(n.b,", 0.5) 90%);\n }\n #preloader .inner:after {\n background-image: -webkit-linear-gradient(top, rgba(").concat(n.r,", ").concat(n.g,", ").concat(n.b,", 1), rgba(").concat(n.r,", ").concat(n.g,", ").concat(n.b,", 0.5) 90%);\n background-image: -moz-linear-gradient(top, rgba(").concat(n.r,", ").concat(n.g,", ").concat(n.b,", 1), rgba(").concat(n.r,", ").concat(n.g,", ").concat(n.b,", 0.5) 90%);\n background-image: linear-gradient(to bottom, rgba(").concat(n.r,", ").concat(n.g,", ").concat(n.b,", 1), rgba(").concat(n.r,", ").concat(n.g,", ").concat(n.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(t.document.createTextNode(r)),e.id="preloader-fallback-styles",this._styleTags.push(e),document.getElementsByTagName("head")[0].appendChild(e)},l.prototype._injectImage=function(){var t=this;this.coverIMG=new Image,this.coverIMG.onload=function(){t.coverContainer.appendChild(t.coverIMG),t._setCoverSize(),t.progress(100)},this.coverIMG.src=this.adapter.translatePath(this.options.coverSrc)},l.prototype._tuneLogoSize=function(){if(void 0!==this.options.logoLink&&this.options.logoLink.image){var t=this,e=t.logoContainer,n=document.createElement("canvas"),r=n.getContext("2d"),i=new Image,a=function(){var n=t.logoContainer.getBoundingClientRect();t.logoIMGRect.width(this.coverIMG.naturalHeight||this.coverIMG.height)){var e=t.width/this.coverIMG.naturalWidth;this.coverIMG.style.left="0px",this.coverIMG.style.height=this.coverIMG.naturalHeight*e+"px",this.coverIMG.style.width=t.width+"px",this.coverIMG.style.top=(t.height-this.coverIMG.height)/2+"px"}else{var n=t.height/this.coverIMG.naturalHeight;this.coverIMG.style.top="0px",this.coverIMG.style.width=this.coverIMG.naturalWidth*n+"px",this.coverIMG.style.height=t.height+"px",this.coverIMG.style.left=(t.width-this.coverIMG.width)/2+"px"}}},l.prototype.progress=function(t){if(""!==this.options.coverSrc&&this.options.coverSrc){var e=this.coverIMG.width*t/100;this.coverIMG.style.clip="rect(auto, ".concat(e,"px, auto, auto)")}},l.prototype.remove=function(e){e=e||function(){};var n=this;setTimeout((function(){n.preloader&&(n.preloader.className="show-off",setTimeout((function(){n.preloader&&(n.bookInt&&clearInterval(n.bookInt),t.removeEventListener("resize",n._resize),n.preloader.removeEventListener("touchstart",n._preventZoom,!0),n.preloader.parentNode&&n.preloader.parentNode.removeChild(n.preloader),delete n.preloader,n._styleTags.forEach((function(t){t.parentNode.removeChild(t)})),e())}),800))}),1e3)},e.default=l}).call(this,n(7))},508:function(t,e,n){"use strict";n.r(e),(function(t){var r=n(310);function o(){return(o=Object.assign||function(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{},n={mappings:{},firstPage:"1"};this.embed=!1,this.options=o(n,e),r.default.call(this,this.options.mappings);var i=this;void 0!==t.addEventListener?t.addEventListener("hashchange",(function(){i._hashChanged()})):void 0!==t.attachEvent&&t.attachEvent("onhashchange",(function(){i._hashChanged()})),this._parseQueryString()}i.prototype=new r.default,i.constructor=i,i.prototype.setPath=function(e){var n="";e.page===this.options.firstPage?(e.zoom||e.productId)&&(n+=e.page):n+=e.page,e.zoom&&(n+="/z"),e.productId&&(n+="/"+e.productId),t.location&&t.location.hash!==n&&(t.location.hash=n)},i.prototype.getPathInfo=function(){return t.location?this._getInfoFromHash(t.location.hash):null},i.prototype.getShareUrl=function(e){var n=r.default.prototype.getShareUrl.call(this);if(e&&t.location){var o="",i=this._getInfoFromHash(t.location.hash);if(i){for(var a in i)if(i.hasOwnProperty(a)){var s=i[a];switch(a){case"page":a="p";break;case"zoom":a="z";break;case"productId":a="id"}o.length>0&&(o+="&"),o+=encodeURIComponent(a)+"="+("boolean"==typeof s?"1":encodeURIComponent(s))}if(o.length>0)if(-1!==n.indexOf("?")){var l=n.split("?");l[1].length>0&&(l[1]+="&"),l[1]+=o,n=l.join("?")}else n+="?"+o}}return n},i.prototype.getEmbedPrefix=function(){return"fbp"},i.prototype.getLocalStorage=function(){return this._checkStorage("localStorage")?window.localStorage:this._storageStub},i.prototype.getSessionStorage=function(){return this._checkStorage("sessionStorage")?window.sessionStorage:this._storageStub},i.prototype._checkStorage=function(t){var e="test";try{return window[t].setItem(e,e),window[t].removeItem(e),!0}catch(n){return!1}},i.prototype._storageStub={length:0,isStub:!0,key:function(){},getItem:function(){},setItem:function(){},removeItem:function(){},clear:function(){}},i.prototype._hashChanged=function(){if(t.location){var e=t.location.hash,n=this._getInfoFromHash(e);n&&this.callback&&this.callback(n)}},i.prototype._getInfoFromHash=function(t){if("#"===t.substring(0,1)&&(t=t.slice(1)),0===t.length)return null;var e=t.split("/"),n={};return n.page=encodeURIComponent(e[0]),2===e.length?"z"!==e[1]?n.productId=encodeURIComponent(e[1]):n.zoom=!0:e.length>2&&(n.zoom="z"===e[1],n.productId=encodeURIComponent(e[2])),n},i.prototype._parseQueryString=function(){if(t.location){var e=t.location.search.replace("?","");if(e.length){for(var n={},r=e.split("&"),o=0;o1?decodeURIComponent(i[1]):null}for(var a=["p","page","z","zoom","id"],s=!1,l=0,c=a.length;l0&&(f+="&"),f=encodeURIComponent(d)+"="+(n[d]?encodeURIComponent(n[d]):""));t.location.search=f.length>0?"?"+f:""}}}},e.default=i}).call(this,n(7))},509:function(t,e,n){"use strict";function r(){this.callback=null,this.isReady=!0}n.r(e),r.prototype.ready=function(){this.isReady=!0},r.prototype.setCallback=function(t){this.callback=t},r.prototype.getPathInfo=function(){throw new Error("Method getPathInfo() should be overridden")},r.prototype.setPath=function(){throw new Error("Method setPath() should be overridden")},r.prototype.getShareUrl=function(){throw new Error("Method getShareUrl() should be overridden")},r.prototype.getEmbedUrl=function(){throw new Error("Method getEmbedUrl() should be overridden")},r.prototype.translatePath=function(){throw new Error("Method translatePath() should be overridden")},r.prototype.getFirstPage=function(){throw new Error("Method getEmbedPrefix() should be overridden")},r.prototype.getCurrentPage=function(){throw new Error("Method getEmbedPrefix() should be overridden")},r.prototype.getVersions=function(){throw new Error("Method getEmbedPrefix() should be overridden")},r.prototype.getEmbedPrefix=function(){throw new Error("Method getEmbedPrefix() should be overridden")},r.prototype.getModulesUrl=function(){throw new Error("Method getModulesUrl() should be overridden")},r.prototype.getHashMode=function(){throw new Error("Method getOptions() should be overridden")},r.prototype.getIndexFileName=function(){throw new Error("Method getOptions() should be overridden")},e.default=r},510:function(t){t.exports=JSON.parse('{"container":{"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"}}}},"style":".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);}","legacyStyle":".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;}"}')},511:function(t,e,n){"use strict";n.r(e);var r=0,o="";function i(t){return f(h(v(t)))}function a(t){return d(h(v(t)))}function s(t,e){return g(h(v(t)),e)}function l(t,e){return f(p(v(t),v(e)))}function c(t,e){return d(p(v(t),v(e)))}function u(t,e,n){return g(p(v(t),v(e)),n)}function h(t){return y(I(m(t),8*t.length))}function p(t,e){var n=m(t);n.length>16&&(n=I(n,8*t.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=I(r.concat(m(e)),512+8*e.length);return y(I(o.concat(a),768))}function f(t){for(var e,n=r?"0123456789ABCDEF":"0123456789abcdef",o="",i=0;i>>4&15)+n.charAt(15&e);return o}function d(t){for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n="",r=t.length,i=0;i8*t.length?n+=o:n+=e.charAt(a>>>6*(3-s)&63);return n}function g(t,e){var n,r,o,i,a=e.length,s=Array(),l=Array(Math.ceil(t.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+=e.charAt(s[n]);var u=Math.ceil(8*t.length/(Math.log(e.length)/Math.log(2)));for(n=c.length;n>>6&31,128|63&e):e<=65535?r+=String.fromCharCode(224|e>>>12&15,128|e>>>6&63,128|63&e):e<=2097151&&(r+=String.fromCharCode(240|e>>>18&7,128|e>>>12&63,128|e>>>6&63,128|63&e));return r}function m(t){for(var e=Array(t.length>>2),n=0;n>5]|=(255&t.charCodeAt(n/8))<<24-n%32;return e}function y(t){for(var e="",n=0;n<32*t.length;n+=8)e+=String.fromCharCode(t[n>>5]>>>24-n%32&255);return e}function b(t,e){return t>>>e|t<<32-e}function w(t,e){return t>>>e}function x(t,e,n){return t&e^~t&n}function C(t,e,n){return t&e^t&n^e&n}function k(t){return b(t,2)^b(t,13)^b(t,22)}function E(t){return b(t,6)^b(t,11)^b(t,25)}function A(t){return b(t,7)^b(t,18)^w(t,3)}function _(t){return b(t,17)^b(t,19)^w(t,10)}var S=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 I(t,e){var n,r,o,i,a,s,l,c,u,h,p,f,d=new Array(1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225),g=new Array(64);for(t[e>>5]|=128<<24-e%32,t[15+(e+64>>9<<4)]=e,u=0;u>16)+(e>>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=u,e.default=P},512:function(t,e,n){"use strict";function r(t,e){var n=new DataView(t);if(255!==n.getUint8(0)||216!==n.getUint8(1))return!1;for(var r=t.byteLength,i=2;i4?l:e+8,a-1)}function s(t,e,n){for(var r="",o=e;o '"+n+"'");t.arguments.forEach((function(t){"function"==t.type&&"color"==t.name&&(t.value=l(t),t.type="color",delete t.name)})),a[n](e,t.arguments)})),e.rgbString()}t.exports=s},515:function(t,e,n){(function(e){var n=function(){"use strict";function t(n,r,o,i){"object"==typeof r&&(o=r.depth,i=r.prototype,r.filter,r=r.circular);var s=[],l=[],c=void 0!==e;function u(n,o){if(null===n)return null;if(0==o)return n;var h,p;if("object"!=typeof n)return n;if(t.__isArray(n))h=[];else if(t.__isRegExp(n))h=new RegExp(n.source,a(n)),n.lastIndex&&(h.lastIndex=n.lastIndex);else if(t.__isDate(n))h=new Date(n.getTime());else{if(c&&e.isBuffer(n))return h=e.allocUnsafe?e.allocUnsafe(n.length):new e(n.length),n.copy(h),h;void 0===i?(p=Object.getPrototypeOf(n),h=Object.create(p)):(h=Object.create(i),p=i)}if(r){var f=s.indexOf(n);if(-1!=f)return l[f];s.push(n),l.push(h)}for(var d in n){var g;p&&(g=Object.getOwnPropertyDescriptor(p,d)),g&&null==g.set||(h[d]=u(n[d],o-1))}return h}return void 0===r&&(r=!0),void 0===o&&(o=1/0),u(n,o)}function n(t){return Object.prototype.toString.call(t)}function r(t){return"object"==typeof t&&"[object Date]"===n(t)}function o(t){return"object"==typeof t&&"[object Array]"===n(t)}function i(t){return"object"==typeof t&&"[object RegExp]"===n(t)}function a(t){var e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),e}return t.clonePrototype=function(t){if(null===t)return null;var e=function(){};return e.prototype=t,new e},t.__objToStr=n,t.__isDate=r,t.__isArray=o,t.__isRegExp=i,t.__getRegExpFlags=a,t}();t.exports&&(t.exports=n)}).call(this,n(516).Buffer)},516:function(t,e,n){"use strict";(function(t){var r=n(517),o=n(518),i=n(519);function a(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(e){return!1}}function s(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function l(t,e){if(s()=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|t}function b(t){return+t!=t&&(t=0),c.alloc(+t)}function w(t,e){if(c.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return J(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Q(t).length;default:if(r)return J(t).length;e=(""+e).toLowerCase(),r=!0}}function x(t,e,n){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return B(this,e,n);case"utf8":case"utf-8":return T(this,e,n);case"ascii":return L(this,e,n);case"latin1":case"binary":return j(this,e,n);case"base64":return O(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function C(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function k(t,e,n,r,o){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(o)return-1;n=t.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof e&&(e=c.from(e,r)),c.isBuffer(e))return 0===e.length?-1:E(t,e,n,r,o);if("number"==typeof e)return e&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):E(t,[e],n,r,o);throw new TypeError("val must be string, number or Buffer")}function E(t,e,n,r,o){var i,a=1,s=t.length,l=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;a=2,s/=2,l/=2,n/=2}function c(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(o){var u=-1;for(i=n;is&&(n=s-l),i=n;i>=0;i--){for(var h=!0,p=0;po&&(r=o):r=o;var i=e.length;if(i%2!=0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var a=0;a239?4:c>223?3:c>191?2:1;if(o+h<=n)switch(h){case 1:c<128&&(u=c);break;case 2:128==(192&(i=t[o+1]))&&(l=(31&c)<<6|63&i)>127&&(u=l);break;case 3:i=t[o+1],a=t[o+2],128==(192&i)&&128==(192&a)&&(l=(15&c)<<12|(63&i)<<6|63&a)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:i=t[o+1],a=t[o+2],s=t[o+3],128==(192&i)&&128==(192&a)&&128==(192&s)&&(l=(15&c)<<18|(63&i)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(u=l)}null===u?(u=65533,h=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),o+=h}return F(r)}e.Buffer=c,e.SlowBuffer=b,e.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:a(),e.kMaxLength=s(),c.poolSize=8192,c._augment=function(t){return t.__proto__=c.prototype,t},c.from=function(t,e,n){return u(null,t,e,n)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(t,e,n){return p(null,t,e,n)},c.allocUnsafe=function(t){return f(null,t)},c.allocUnsafeSlow=function(t){return f(null,t)},c.isBuffer=function(t){return!(null==t||!t._isBuffer)},c.compare=function(t,e){if(!c.isBuffer(t)||!c.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,r=e.length,o=0,i=Math.min(n,r);o0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),""},c.prototype.compare=function(t,e,n,r,o){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),e<0||n>t.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&e>=n)return 0;if(r>=o)return-1;if(e>=n)return 1;if(this===t)return 0;for(var i=(o>>>=0)-(r>>>=0),a=(n>>>=0)-(e>>>=0),s=Math.min(i,a),l=this.slice(r,o),u=t.slice(e,n),h=0;ho)&&(n=o),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return A(this,t,e,n);case"utf8":case"utf-8":return _(this,t,e,n);case"ascii":return S(this,t,e,n);case"latin1":case"binary":return I(this,t,e,n);case"base64":return M(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,t,e,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var R=4096;function F(t){var e=t.length;if(e<=R)return String.fromCharCode.apply(String,t);for(var n="",r=0;rr)&&(n=r);for(var o="",i=e;in)throw new RangeError("Trying to access beyond buffer length")}function z(t,e,n,r,o,i){if(!c.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||et.length)throw new RangeError("Index out of range")}function D(t,e,n,r){e<0&&(e=65535+e+1);for(var o=0,i=Math.min(t.length-n,2);o>>8*(r?o:1-o)}function V(t,e,n,r){e<0&&(e=4294967295+e+1);for(var o=0,i=Math.min(t.length-n,4);o>>8*(r?o:3-o)&255}function Y(t,e,n,r,o,i){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function G(t,e,n,r,i){return i||Y(t,e,n,4,34028234663852886e22,-34028234663852886e22),o.write(t,e,n,r,23,4),n+4}function H(t,e,n,r,i){return i||Y(t,e,n,8,17976931348623157e292,-17976931348623157e292),o.write(t,e,n,r,52,8),n+8}c.prototype.slice=function(t,e){var n,r=this.length;if((t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e0&&(o*=256);)r+=this[t+--e]*o;return r},c.prototype.readUInt8=function(t,e){return e||U(t,1,this.length),this[t]},c.prototype.readUInt16LE=function(t,e){return e||U(t,2,this.length),this[t]|this[t+1]<<8},c.prototype.readUInt16BE=function(t,e){return e||U(t,2,this.length),this[t]<<8|this[t+1]},c.prototype.readUInt32LE=function(t,e){return e||U(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},c.prototype.readUInt32BE=function(t,e){return e||U(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},c.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||U(t,e,this.length);for(var r=this[t],o=1,i=0;++i=(o*=128)&&(r-=Math.pow(2,8*e)),r},c.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||U(t,e,this.length);for(var r=e,o=1,i=this[t+--r];r>0&&(o*=256);)i+=this[t+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*e)),i},c.prototype.readInt8=function(t,e){return e||U(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},c.prototype.readInt16LE=function(t,e){e||U(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(t,e){e||U(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(t,e){return e||U(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},c.prototype.readInt32BE=function(t,e){return e||U(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},c.prototype.readFloatLE=function(t,e){return e||U(t,4,this.length),o.read(this,t,!0,23,4)},c.prototype.readFloatBE=function(t,e){return e||U(t,4,this.length),o.read(this,t,!1,23,4)},c.prototype.readDoubleLE=function(t,e){return e||U(t,8,this.length),o.read(this,t,!0,52,8)},c.prototype.readDoubleBE=function(t,e){return e||U(t,8,this.length),o.read(this,t,!1,52,8)},c.prototype.writeUIntLE=function(t,e,n,r){(t=+t,e|=0,n|=0,r)||z(this,t,e,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[e]=255&t;++i=0&&(i*=256);)this[e+o]=t/i&255;return e+n},c.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||z(this,t,e,1,255,0),c.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},c.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||z(this,t,e,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):D(this,t,e,!0),e+2},c.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||z(this,t,e,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):D(this,t,e,!1),e+2},c.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||z(this,t,e,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):V(this,t,e,!0),e+4},c.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||z(this,t,e,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):V(this,t,e,!1),e+4},c.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e|=0,!r){var o=Math.pow(2,8*n-1);z(this,t,e,n,o-1,-o)}var i=0,a=1,s=0;for(this[e]=255&t;++i>0)-s&255;return e+n},c.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e|=0,!r){var o=Math.pow(2,8*n-1);z(this,t,e,n,o-1,-o)}var i=n-1,a=1,s=0;for(this[e+i]=255&t;--i>=0&&(a*=256);)t<0&&0===s&&0!==this[e+i+1]&&(s=1),this[e+i]=(t/a>>0)-s&255;return e+n},c.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||z(this,t,e,1,127,-128),c.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},c.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||z(this,t,e,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):D(this,t,e,!0),e+2},c.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||z(this,t,e,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):D(this,t,e,!1),e+2},c.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||z(this,t,e,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):V(this,t,e,!0),e+4},c.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||z(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):V(this,t,e,!1),e+4},c.prototype.writeFloatLE=function(t,e,n){return G(this,t,e,!0,n)},c.prototype.writeFloatBE=function(t,e,n){return G(this,t,e,!1,n)},c.prototype.writeDoubleLE=function(t,e,n){return H(this,t,e,!0,n)},c.prototype.writeDoubleBE=function(t,e,n){return H(this,t,e,!1,n)},c.prototype.copy=function(t,e,n,r){if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e=0;--o)t[o+e]=this[o+n];else if(i<1e3||!c.TYPED_ARRAY_SUPPORT)for(o=0;o>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(i=e;i55295&&n<57344){if(!o){if(n>56319){(e-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(e-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(e-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(e-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((e-=1)<0)break;i.push(n)}else if(n<2048){if((e-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function Z(t){for(var e=[],n=0;n>8,o=n%256,i.push(o),i.push(r);return i}function Q(t){return r.toByteArray(q(t))}function tt(t,e,n,r){for(var o=0;o=e.length||o>=t.length);++o)e[o+n]=t[o];return o}function et(t){return t!=t}}).call(this,n(7))},517:function(t,e,n){"use strict";e.byteLength=u,e.toByteArray=p,e.fromByteArray=g;for(var r=[],o=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=a.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function u(t){var e=c(t),n=e[0],r=e[1];return 3*(n+r)/4-r}function h(t,e,n){return 3*(e+n)/4-n}function p(t){var e,n,r=c(t),a=r[0],s=r[1],l=new i(h(t,a,s)),u=0,p=s>0?a-4:a;for(n=0;n>16&255,l[u++]=e>>8&255,l[u++]=255&e;return 2===s&&(e=o[t.charCodeAt(n)]<<2|o[t.charCodeAt(n+1)]>>4,l[u++]=255&e),1===s&&(e=o[t.charCodeAt(n)]<<10|o[t.charCodeAt(n+1)]<<4|o[t.charCodeAt(n+2)]>>2,l[u++]=e>>8&255,l[u++]=255&e),l}function f(t){return r[t>>18&63]+r[t>>12&63]+r[t>>6&63]+r[63&t]}function d(t,e,n){for(var r,o=[],i=e;il?l:s+a));return 1===o?(e=t[n-1],i.push(r[e>>2]+r[e<<4&63]+"==")):2===o&&(e=(t[n-2]<<8)+t[n-1],i.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"=")),i.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},518:function(t,e){e.read=function(t,e,n,r,o){var i,a,s=8*o-r-1,l=(1<>1,u=-7,h=n?o-1:0,p=n?-1:1,f=t[e+h];for(h+=p,i=f&(1<<-u)-1,f>>=-u,u+=s;u>0;i=256*i+t[e+h],h+=p,u-=8);for(a=i&(1<<-u)-1,i>>=-u,u+=r;u>0;a=256*a+t[e+h],h+=p,u-=8);if(0===i)i=1-c;else{if(i===l)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,r),i-=c}return(f?-1:1)*a*Math.pow(2,i-r)},e.write=function(t,e,n,r,o,i){var a,s,l,c=8*i-o-1,u=(1<>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,f=r?0:i-1,d=r?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=u):(a=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-a))<1&&(a--,l*=2),(e+=a+h>=1?p/l:p*Math.pow(2,1-h))*l>=2&&(a++,l/=2),a+h>=u?(s=0,a=u):a+h>=1?(s=(e*l-1)*Math.pow(2,o),a+=h):(s=e*Math.pow(2,h-1)*Math.pow(2,o),a=0));o>=8;t[n+f]=255&s,f+=d,s/=256,o-=8);for(a=a<0;t[n+f]=255&a,f+=d,a/=256,c-=8);t[n+f-d]|=128*g}},519:function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},520:function(t,e,n){var r=n(316),o=n(521),i={};function a(t){var e=function(e){return null==e?e:(arguments.length>1&&(e=Array.prototype.slice.call(arguments)),t(e))};return"conversion"in t&&(e.conversion=t.conversion),e}function s(t){var e=function(e){if(null==e)return e;arguments.length>1&&(e=Array.prototype.slice.call(arguments));var n=t(e);if("object"==typeof n)for(var r=n.length,o=0;o=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))}function a(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),this.useColors){var n="color: "+this.color;e.splice(1,0,n,"color: inherit");var r=0,o=0;e[0].replace(/%[a-zA-Z%]/g,(function(t){"%%"!==t&&(r++,"%c"===t&&(o=r))})),e.splice(o,0,n)}}function s(){var t;return"object"===("undefined"==typeof console?"undefined":o(console))&&console.log&&(t=console).log.apply(t,arguments)}function l(t){try{t?e.storage.setItem("debug",t):e.storage.removeItem("debug")}catch(n){}}function c(){var t;try{t=e.storage.getItem("debug")}catch(n){}return!t&&void 0!==r&&"env"in r&&(t=Object({NODE_ENV:"production",VERSION_TAG:"4.3.109",BUILD_NUM:"535"}).DEBUG),t}function u(){try{return localStorage}catch(t){}}e.log=s,e.formatArgs=a,e.save=l,e.load=c,e.useColors=i,e.storage=u(),e.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"],t.exports=n(524)(e),t.exports.formatters.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}).call(this,n(30))},524:function(t,e,n){"use strict";function r(t){function e(t){for(var e=0,n=0;n100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var l=parseFloat(e[1]);switch((e[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return l*s;case"weeks":case"week":case"w":return l*a;case"days":case"day":case"d":return l*i;case"hours":case"hour":case"hrs":case"hr":case"h":return l*o;case"minutes":case"minute":case"mins":case"min":case"m":return l*r;case"seconds":case"second":case"secs":case"sec":case"s":return l*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return l;default:return}}}}function c(t){var e=Math.abs(t);return e>=i?Math.round(t/i)+"d":e>=o?Math.round(t/o)+"h":e>=r?Math.round(t/r)+"m":e>=n?Math.round(t/n)+"s":t+"ms"}function u(t){var e=Math.abs(t);return e>=i?h(t,e,i,"day"):e>=o?h(t,e,o,"hour"):e>=r?h(t,e,r,"minute"):e>=n?h(t,e,n,"second"):t+" ms"}function h(t,e,n,r){var o=e>=1.5*n;return Math.round(t/n)+" "+r+(o?"s":"")}t.exports=function(t,e){e=e||{};var n=typeof t;if("string"===n&&t.length>0)return l(t);if("number"===n&&isFinite(t))return e.long?u(t):c(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}},526:function(t,e,n){var r=n(315);function o(t){return function(e,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=e[t]()*o):o*="alpha"==t?1:255):o=Number(o),e[t](a(e[t](),o,r))}}function i(t){return function(e,n){var r;"modifier"==n[0].type&&(r=n.shift().value);var o=parseFloat(n[0].value,10);e[t](a(e[t](),o,r))}}function a(t,e,n){switch(n){case"+":return t+e;case"-":return t-e;case"*":return t*e;default:return e}}function s(t,e,n){e.hue();for(var r=e.clone(),o=e.whiteness(),i=e.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(e)>t?(a=l,s=c):(o=l,i=c)}return r}e.red=o("red"),e.blue=o("blue"),e.green=o("green"),e.alpha=e.a=o("alpha"),e.rgb=function(){},e.hue=e.h=i("hue"),e.saturation=e.s=i("saturation"),e.lightness=e.l=i("lightness"),e.whiteness=e.w=i("whiteness"),e.blackness=e.b=i("blackness"),e.blend=function(t,e){var n=t.alpha();t.alpha(1);var o=new r(e[0].value),i=1-parseInt(e[1].value,10)/100;t.mix(o,i).alpha(n)},e.tint=function(t,n){n.unshift({type:"argument",value:"white"}),e.blend(t,n)},e.shade=function(t,n){n.unshift({type:"argument",value:"black"}),e.blend(t,n)},e.contrast=function(t,e){0==e.length&&e.push({type:"argument",value:"100%"});var n=1-parseInt(e[0].value,10)/100,o=t.luminosity()<.5?new r({h:t.hue(),w:100,b:0}):new r({h:t.hue(),w:0,b:100}),i=o,a=4.5;if(t.contrast(o)>a){var l=(i=s(a,t,o)).alpha();i.alpha(1),i.mix(o,n).alpha(l)}t.hwb(i.hwb())}},7:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"==typeof window&&(n=window)}t.exports=n}});