*/!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var a=typeof r;if("string"===a||"number"===a)e.push(r);else if(Array.isArray(r)&&r.length){var c=o.apply(null,r);c&&e.push(c)}else if("object"===a)for(var i in r)n.call(r,i)&&r[i]&&e.push(i)}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},109:function(e,t,n){"use strict";var r=n(153),o=n(155);function a(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=v,t.resolve=function(e,t){return v(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?v(e,!1,!0).resolveObject(t):t},t.format=function(e){o.isString(e)&&(e=v(e));return e instanceof a?e.format():a.prototype.format.call(e)},t.Url=a;var c=/^([a-z0-9.+-]+:)/i,i=/:[0-9]*$/,l=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,s=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),u=["'"].concat(s),b=["%","/","?",";","#"].concat(u),m=["/","?","#"],d=/^[+a-z0-9A-Z_-]{0,63}$/,p=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,h={javascript:!0,"javascript:":!0},g={javascript:!0,"javascript:":!0},f={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},O=n(156);functionv(e,t,n){if(e&&o.isObject(e)&&einstanceofa)returne;varr=newa;returnr.parse(e,t,n),r}a.prototype.parse=function(e,t,n){if(!o.isString(e))thrownewTypeError("Parameter 'url' must be a string, not "+typeofe);vara=e.indexOf("?"),i=-1!==a&&a<e.indexOf("#")?"?":"#",s=e.split(i);s[0]=s[0].replace(/\\/g,"/");varv=e=s.join(i);if(v=v.trim(),!n&&1===e.split("#").length){varj=l.exec(v);if(j)returnthis.path=v,this.href=v,this.pathname=j[1],j[2]?(this.search=j[2],this.query=t?O.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}vary=c.exec(v);if(y){var_=(y=y[0]).toLowerCase();this.protocol=_,v=v.substr(y.length)}if(n||y||v.match(/^\/\/[^@\/]+@[^@\/]+/)){vark="//"===v.substr(0,2);!k||y&&g[y]||(v=v.substr(2),this.slashes=!0)}if(!g[y]&&(k||y&&!f[y])){for(varw,C,E=-1,x=0;x<m.length;x++){-1!==(S=v.indexOf(m[x]))&&(-1===E||S<E)&&(E=S)}-1!==(C=-1===E?v.lastIndexOf("@"):v.lastIndexOf("@",E))&&(w=v.slice(0,C),v=v.slice(C+1),this.auth=decodeURIComponent(w)),E=-1;for(x=0;x<b.length;x++){varS;-1!==(S=v.indexOf(b[x]))&&(-1===E||S<E)&&(E=S)}-1===E&&(E=v.length),this.host=v.slice(0,E),v=v.slice(E),this.parseHost(),this.hostname=this.hostname||"";varT="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!T)for(varP=this.hostname.split(/\./),N=(x=0,P.length);x<N;x++){varB=P[x];if(B&&!B.match(d)){for(varR="",A=0,I=B.length;A<I;A++)B.charCodeAt(A)>127?R+="x":R+=B[A];if(!R.match(d)){varM=P.slice(0,x),z=P.slice(x+1),L=B.match(p);L&&(M.push(L[1]),z.unshift(L[2])),z.length&&(v="/"+z.join(".")+v),this.hostname=M.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),T||(this.hostname=r.toASCII(this.hostname));varH=this.port?":"+this.port:"",D=this.hostname||"";this.host=D+H,this.href+=this.host,T&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==v[0]&&(v="/"+v))}if(!h[_])for(x=0,N=u.length;x<N;x++){varV=u[x];if(-1!==v.indexOf(V)){varF=encodeURIComponent(V);F===V&&(F=escape(V)),v=v.split(V).join(F)}}varU=v.indexOf("#");-1!==U&&(this.hash=v.substr(U),v=v.slice(0,U));varq=v.indexOf("?");if(-1!==q?(this.search=v.substr(q),this.query=v.substr(q+1),t&&(this.query=O.parse(this.query)),v=v.slice(0,q)):t&&(this.search="",this.query={}),v&&(this.pathname=v),f[_]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){H=this.pathname||"";varG=this.search||"";this.path=H+G}returnthis.href=this.format(),this},a.prototype.format=function(){vare=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");vart=this.protocol||"",n=this.pathname||"",r=this.hash||"",a=!1,c="";this.host?a
e.exports=function(){"use strict";functione(e,t){for(varn=0;n<t.length;n++){varr=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"inr&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}functiont(e,t){returnfunction(e){if(Array.isArray(e))returne}(e)||function(e,t){varn=[],r=!0,o=!1,a=void0;try{for(varc,i=e[Symbol.iterator]();!(r=(c=i.next()).done)&&(n.push(c.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==i.return||i.return()}finally{if(o)throwa}}returnn}(e,t)||function(){thrownewTypeError("Invalid attempt to destructure non-iterable instance")}()}returnfunction(){functionn(){!function(e,t){if(!(einstanceoft))thrownewTypeError("Cannot call a class as a function")}(this,n)}varr,o,a;returnr=n,(o=[{key:"getColorAsync",value:function(e,t,n){e.complete?t.call(e,this.getColor(e,n),n&&n.data):this._bindImageEvents(e,t,n)}},{key:"getColor",value:function(e,t){t=t||{};varn=this._getDefaultColor(t),r=this._getOriginalSize(e),o=this._prepareSizeAndPosition(r,t),a=null,c=n;if(!(o.srcWidth&&o.srcHeight&&o.destWidth&&o.destHeight))returnthis._prepareResult(n,newError("FastAverageColor: Incorrect sizes."));if(!this._ctx&&(this._canvas=this._makeCanvas(),this._ctx=this._canvas.getContext&&this._canvas.getContext("2d"),!this._ctx))returnthis._prepareResult(n,newError("FastAverageColor: Canvas Context 2D is not supported in this browser."));this._canvas.width=o.destWidth,this._canvas.height=o.destHeight;try{this._ctx.clearRect(0,0,o.destWidth,o.destHeight),this._ctx.drawImage(e,o.srcLeft,o.srcTop,o.srcWidth,o.srcHeight,0,0,o.destWidth,o.destHeight);vari=this._ctx.getImageData(0,0,o.destWidth,o.destHeight).data;c=this.getColorFromArray4(i,t)}catch(e){a=e}returnthis._prepareResult(c,a)}},{key:"getColorFromArray4",value:function(e,t){t=t||{};varn=e.length;if(n<4)returnthis._getDefaultColor(t);varr=n-n%4,o=4*(t.step||1),a="_"+(t.algorithm||"sqrt")+"Algorithm";if("function"!=typeofthis[a])thrownewError("FastAverageColor: ".concat(t.algorithm," is unknown algorithm."));returnthis[a](e,r,o)}},{key:"destroy",value:function(){deletethis._canvas,deletethis._ctx}},{key:"_getDefaultColor",value:function(e){returnthis._getOption(e,"defaultColor",[255,255,255,255])}},{key:"_getOption",value:function(e,t,n){returnvoid0===e[t]?n:e[t]}},{key:"_prepareSizeAndPosition",value:function(e,t){varn,r=this._getOption(t,"left",0),o=this._getOption(t,"top",0),a=this._getOption(t,"width",e.width),c=this._getOption(t,"height",e.height),i=a,l=c;return"precision"===t.mode?{srcLeft:r,srcTop:o,srcWidth:a,srcHeight:c,destWidth:i,destHeight:l}:(a>c?(n=a/c,i=100,l=Math.round(i/n)):(n=c/a,l=100,i=Math.round(l/n)),(i>a||l>c||i<10||l<10)&&(i=a,l=c),{srcLeft:r,srcTop:o,srcWidth:a,srcHeight:c,destWidth:i,destHeight:l})}},{key:"_simpleAlgorithm",value:function(e,t,n){for(varr=0,o=0,a=0,c=0,i=0,l=0;l<t;l+=n){vars=e[l+3];r+=e[l]*s,o+=e[l+1]*s,a+=e[l+2]*s,c+=s,i++}returnc?[Math.round(r/c),Math.round(o/c),Math.round(a/c),Math.round(c/i)]:[0,0,0,0]}},{key:"_sqrtAlgorithm",value:function(e,t,n){for(varr=0,o=0,a=0,c=0,i=0,l=0;l<t;l+=n){vars=e[l],u=e[l+1],b=e[l+2],m=e[l+3];r+=s*s*m,o+=u*u*m,a+=b*b*m,c+=m,i++}returnc?[Math.round(Math.sqrt(r/c)),Math.round(Math.sqrt(o/c)),Math.round(Math.sqrt(a/c)),Math.round(c/i)]:[0,0,0,0]}},{key:"_dominantAlgorithm",value:function(e,n,r){for(varo={},a=0;a<n;a+=r){varc=e[a],i=e[a+1],l=e[a+2],s=e[a+3],u=Math.round(c/24)+","+Math.round(i/24)+","+Math.round(l/24);o[u]?o[u]=[o[u][0]+c*s,o[u][1]+i*s,o[u][2]+l*s,o[u][3]+s,o[u][4]+1]:o[u]=[c*s,i*s,l*s,s,1]}varb=t(Object.keys(o).map((function(e){returno[e]})).sort((function(e,t){varn=e[4],r=t[4];returnn>r?-1:n===r?0:1}))[0],5),m=b[0],d=b[1],p=b[2],h=b[3],g=b[4];returnh?[Math.round(m/h),Math.round(d/h),Math.round(p/h),Math.round(h/g)]:[0,0,0,0]}},{key:"_bindImageEvents",value:function(e,t,n){varr=this,o=(n=n||{})&&n.data,a=this._getDefaultColor(n),c=function(){s(),t.call(e,r.getColor(e,n),o)},i=function(){s(),t.call(e,r._prepareResult(a,newError("Image error")),o)},l=function(){s(),t.call(e,r._prepareResult(a,newError("Im