/*!
* __ __ __ __
* /\ \/\ \ /\ \ __ /\ \
* \ \ \_\ \ __ __ \_\ \ __ /\_\ __ ___ \ \ \/'\
* \ \ _ \ /\ \/\ \ /'_` \ /'__`\ \/\ \ /'__`\ /'___\\ \ , <
* \ \ \ \ \\ \ \_\ \ /\ \L\ \ /\ __/ \ \ \ /\ \L\.\_ /\ \__/ \ \ \\`\
* \ \_\ \_\\/`____ \\ \___,_\\ \____\ _\ \ \\ \__/.\_\\ \____\ \ \_\ \_\
* \/_/\/_/ `/___/> \\/__,_ / \/____//\ \_\ \\/__/\/_/ \/____/ \/_/\/_/
* /\___/ \ \____/
* \/__/ \/___/
*
* Powered by Hydejack v8.1.0
*/!function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=30)}([,function(t,e,n){"use strict";(function(t){n.d(e,"a",function(){return i});var r="undefined"!=typeof window&&window,o="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,i=r||void 0!==t&&t||o}).call(this,n(9))},,function(t,e){var n=t.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},function(t,e,n){n(50),t.exports=n(3).Function.bind},function(t,e){var 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.exports=function(t){return"object"===(void 0===t?"undefined":n(t))?null!==t:"function"==typeof t}},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e,n){var r=n(6),o=n(3),i=n(14),s=n(59),a=n(25),u=function t(e,n,u){var c,l,f,h,p=e&t.F,d=e&t.G,y=e&t.P,v=e&t.B,m=d?r:e&t.S?r[n]||(r[n]={}):(r[n]||{}).prototype,b=d?o:o[n]||(o[n]={}),g=b.prototype||(b.prototype={});for(c in d&&(u=n),u)f=((l=!p&&m&&void 0!==m[c])?m:u)[c],h=v&&l?a(f,r):y&&"function"==typeof f?a(Function.call,f):f,m&&s(m,c,f,e&t.U),b[c]!=f&&i(b,c,h),y&&g[c]!=f&&(g[c]=f)};r.core=o,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},function(t,e,n){var r=n(53)("wks"),o=n(26),i=n(6).Symbol,s="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=s&&i[t]||(s?i:o)("Symbol."+t))}).store=r},function(t,e){var n,r="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};n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"===("undefined"==typeof window?"undefined":r(window))&&(n=window)}t.exports=n},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){t.exports=!n(12)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(65),o=n(60);t.exports=n(13)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){n(66),t.exports=n(3).Array.forEach},function(t,e,n){"use strict";t.exports=function(){var t=document.createElement("div");return t.setAttribute("data-a-b","c"),Boolean(t.dataset&&"c"===t.dataset.aB)}()?function(t){return t.dataset}:function(t){var e={},n=t.attributes;function r(){return this.value}function o(t,e){void 0===e?this.removeAttribute(t):this.setAttribute(t,e)}for(var i=0,s=n.length;i.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)]},s.rgb.lab=function(t){var e=s.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))]},s.hsl.rgb=function(t){var e,n,r,o,i,s=t[0]/360,a=t[1]/100,u=t[2]/100;if(0===a)return[i=255*u,i,i];e=2*u-(n=u<.5?u*(1+a):u+a-u*a),o=[0,0,0];for(var c=0;c<3;c++)(r=s+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},s.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)]},s.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),s=255*r*(1-n),a=255*r*(1-n*i),u=255*r*(1-n*(1-i));switch(r*=255,o){case 0:return[r,u,s];case 1:return[a,r,s];case 2:return[s,r,u];case 3:return[s,a,r];case 4:return[u,s,r];case 5:return[r,s,a]}},s.hsv.hsl=function(t){var e,n,r,o=t[0],i=t[1]/100,s=t[2]/100,a=Math.max(s,.01);return r=(2-i)*s,n=i*a,[o,100*(n=(n/=(e=(2-i)*a)<=1?e:2-e)||0),100*(r/=2)]},s.hwb.rgb=function(t){var e,n,r,o,i,s,a,u=t[0]/360,c=t[1]/100,l=t[2]/100,f=c+l;switch(f>1&&(c/=f,l/=f),n=1-l,r=6*u-(e=Math.floor(6*u)),0!=(1&e)&&(r=1-r),o=c+r*(n-c),e){default:case 6:case 0:i=n,s=o,a=c;break;case 1:i=o,s=n,a=c;break;case 2:i=c,s=n,a=o;break;case 3:i=c,s=o,a=n;break;case 4:i=o,s=c,a=n;break;case 5:i=n,s=c,a=o}return[255*i,255*s,255*a]},s.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))]},s.xyz.rgb=function(t){var e,n,r,o=t[0]/100,i=t[1]/100,s=t[2]/100;return n=-.9689*o+1.8758*i+.0415*s,r=.0557*o+-.204*i+1.057*s,e=(e=3.2406*o+-1.5372*i+-.4986*s)>.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))]},s.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))]},s.lab.xyz=function(t){var e,n,r,o=t[0],i=t[1],s=t[2];e=i/500+(n=(o+16)/116),r=n-s/200;var a=Math.pow(n,3),u=Math.pow(e,3),c=Math.pow(r,3);return n=a>.008856?a:(n-16/116)/7.787,e=u>.008856?u:(e-16/116)/7.787,r=c>.008856?c:(r-16/116)/7.787,[e*=95.047,n*=100,r*=108.883]},s.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]},s.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)]},s.rgb.ansi16=function(t){var e=t[0],n=t[1],r=t[2],o=1 in arguments?arguments[1]:s.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},s.hsv.ansi16=function(t){return s.rgb.ansi16(s.hsv.rgb(t),t[2])},s.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)},s.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]},s.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]},s.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},s.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]},s.rgb.hcg=function(t){var e,n,r=t[0]/255,o=t[1]/255,i=t[2]/255,s=Math.max(Math.max(r,o),i),a=Math.min(Math.min(r,o),i),u=s-a;return e=u<1?a/(1-u):0,n=u<=0?0:s===r?(o-i)/u%6:s===o?2+(i-r)/u:4+(r-o)/u+4,n/=6,[360*(n%=1),100*u,100*e]},s.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]},s.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]},s.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,i=[0,0,0],s=e%1*6,a=s%1,u=1-a;switch(Math.floor(s)){case 0:i[0]=1,i[1]=a,i[2]=0;break;case 1:i[0]=u,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=a;break;case 3:i[0]=0,i[1]=u,i[2]=1;break;case 4:i[0]=a,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=u}return o=(1-n)*r,[255*(n*i[0]+o),255*(n*i[1]+o),255*(n*i[2]+o)]},s.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]},s.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]},s.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)]},s.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]},s.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]},s.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]},s.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]},s.gray.hsl=s.gray.hsv=function(t){return[0,0,t[0]]},s.gray.hwb=function(t){return[0,100,t[0]]},s.gray.cmyk=function(t){return[0,0,0,t[0]]},s.gray.lab=function(t){return[t[0],0,0]},s.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},s.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]}},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]}},function(t,e,n){var r=n(8)("unscopables"),o=Array.prototype;void 0==o[r]&&n(14)(o,r,{}),t.exports=function(t){o[r][t]=!0}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(20),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e,n){var r=n(11);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e,n){var r=n(25),o=n(22),i=n(57),s=n(21),a=n(56);t.exports=function(t,e){var n=1==t,u=2==t,c=3==t,l=4==t,f=6==t,h=5==t||f,p=e||a;return function(e,a,d){for(var y,v,m=i(e),b=o(m),g=r(a,d,3),w=s(b.length),_=0,E=n?p(e,w):u?p(e,0):void 0;w>_;_++)if((h||_ in b)&&(v=g(y=b[_],_,m),t))if(n)E[_]=v;else if(v)switch(t){case 3:return!0;case 5:return y;case 6:return _;case 2:E.push(y)}else if(l)return!1;return f?-1:c||l?l:E}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){var r=n(24);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},,function(t,e,n){"use strict";var r=n(40),o=n(37),i=[].slice,s=["keyword","gray","hex"],a={};Object.keys(o).forEach(function(t){a[i.call(o[t].labels).sort().join("")]=t});var u={};function c(t,e){if(!(this instanceof c))return new c(t,e);if(e&&e in s&&(e=null),e&&!(e in o))throw new Error("Unknown model: "+e);var n,l;if(t)if(t instanceof c)this.model=t.model,this.color=t.color.slice(),this.valpha=t.valpha;else if("string"==typeof t){var f=r.get(t);if(null===f)throw new Error("Unable to parse color from string: "+t);this.model=f.model,l=o[this.model].channels,this.color=f.value.slice(0,l),this.valpha="number"==typeof f.value[l]?f.value[l]:1}else if(t.length){this.model=e||"rgb",l=o[this.model].channels;var p=i.call(t,0,l);this.color=h(p,l),this.valpha="number"==typeof t[l]?t[l]:1}else if("number"==typeof t)t&=16777215,this.model="rgb",this.color=[t>>16&255,t>>8&255,255&t],this.valpha=1;else{this.valpha=1;var d=Object.keys(t);"alpha"in t&&(d.splice(d.indexOf("alpha"),1),this.valpha="number"==typeof t.alpha?t.alpha:0);var y=d.sort().join("");if(!(y in a))throw new Error("Unable to parse color from object: "+JSON.stringify(t));this.model=a[y];var v=o[this.model].labels,m=[];for(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":""},isDark:function(){var t=this.rgb().color;return(299*t[0]+587*t[1]+114*t[2])/1e3<128},isLight:function(){return!this.isDark()},negate:function(){for(var t=this.rgb(),e=0;e<3;e++)t.color[e]=255-t.color[e];return t},lighten:function(t){var e=this.hsl();return e.color[2]+=e.color[2]*t,e},darken:function(t){var e=this.hsl();return e.color[2]-=e.color[2]*t,e},saturate:function(t){var e=this.hsl();return e.color[1]+=e.color[1]*t,e},desaturate:function(t){var e=this.hsl();return e.color[1]-=e.color[1]*t,e},whiten:function(t){var e=this.hwb();return e.color[1]+=e.color[1]*t,e},blacken:function(t){var e=this.hwb();return e.color[2]+=e.color[2]*t,e},grayscale:function(){var t=this.rgb().color,e=.3*t[0]+.59*t[1]+.11*t[2];return c.rgb(e,e,e)},fade:function(t){return this.alpha(this.valpha-this.valpha*t)},opaquer:function(t){return this.alpha(this.valpha+this.valpha*t)},rotate:function(t){var e=this.hsl(),n=e.color[0];return n=(n=(n+t)%360)<0?360+n:n,e.color[0]=n,e},mix:function(t,e){var n=t.rgb(),r=this.rgb(),o=void 0===e?.5:e,i=2*o-1,s=n.alpha()-r.alpha(),a=((i*s==-1?i:(i+s)/(1+i*s))+1)/2,u=1-a;return c.rgb(a*n.red()+u*r.red(),a*n.green()+u*r.green(),a*n.blue()+u*r.blue(),n.alpha()*o+r.alpha()*(1-o))}},Object.keys(o).forEach(function(t){if(-1===s.indexOf(t)){var e=o[t].channels;c.prototype[t]=function(){if(this.model===t)return new c(this);if(arguments.length)return new c(arguments,t);var n="number"==typeof arguments[e]?e:this.valpha;return new c(function(t){return Array.isArray(t)?t:[t]}(o[this.model][t].raw(this.color)).concat(n),t)},c[t]=function(n){return"number"==typeof n&&(n=h(i.call(arguments),e)),new c(n,t)}}}),t.exports=c},function(t,e,n){var r="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};!function(){"use strict";function n(){var t=window,e=document;if(!("scrollBehavior"in e.documentElement.style&&!0!==t.__forceSmoothScrollPolyfill__)){var n=t.HTMLElement||t.Element,o=468,i={scroll:t.scroll||t.scrollTo,scrollBy:t.scrollBy,elementScroll:n.prototype.scroll||u,scrollIntoView:n.prototype.scrollIntoView},s=t.performance&&t.performance.now?t.performance.now.bind(t.performance):Date.now,a=function(t){return new RegExp(["MSIE ","Trident/","Edge/"].join("|")).test(t)}(t.navigator.userAgent)?1:0;t.scroll=t.scrollTo=function(){void 0!==arguments[0]&&(!0!==c(arguments[0])?d.call(t,e.body,void 0!==arguments[0].left?~~arguments[0].left:t.scrollX||t.pageXOffset,void 0!==arguments[0].top?~~arguments[0].top:t.scrollY||t.pageYOffset):i.scroll.call(t,void 0!==arguments[0].left?arguments[0].left:"object"!==r(arguments[0])?arguments[0]:t.scrollX||t.pageXOffset,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:t.scrollY||t.pageYOffset))},t.scrollBy=function(){void 0!==arguments[0]&&(c(arguments[0])?i.scrollBy.call(t,void 0!==arguments[0].left?arguments[0].left:"object"!==r(arguments[0])?arguments[0]:0,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:0):d.call(t,e.body,~~arguments[0].left+(t.scrollX||t.pageXOffset),~~arguments[0].top+(t.scrollY||t.pageYOffset)))},n.prototype.scroll=n.prototype.scrollTo=function(){if(void 0!==arguments[0])if(!0!==c(arguments[0])){var t=arguments[0].left,e=arguments[0].top;d.call(this,this,void 0===t?this.scrollLeft:~~t,void 0===e?this.scrollTop:~~e)}else{if("number"==typeof arguments[0]&&void 0===arguments[1])throw new SyntaxError("Value could not be converted");i.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left:"object"!==r(arguments[0])?~~arguments[0]:this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top:void 0!==arguments[1]?~~arguments[1]:this.scrollTop)}},n.prototype.scrollBy=function(){void 0!==arguments[0]&&(!0!==c(arguments[0])?this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior}):i.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop))},n.prototype.scrollIntoView=function(){if(!0!==c(arguments[0])){var n=function(t){var n;do{n=(t=t.parentNode)===e.body}while(!1===n&&!1===h(t));return n=null,t}(this),r=n.getBoundingClientRect(),o=this.getBoundingClientRect();n!==e.body?(d.call(this,n,n.scrollLeft+o.left-r.left,n.scrollTop+o.top-r.top),"fixed"!==t.getComputedStyle(n).position&&t.scrollBy({left:r.left,top:r.top,behavior:"smooth"})):t.scrollBy({left:o.left,top:o.top,behavior:"smooth"})}else i.scrollIntoView.call(this,void 0===arguments[0]||arguments[0])}}function u(t,e){this.scrollLeft=t,this.scrollTop=e}function c(t){if(null===t||"object"!==(void 0===t?"undefined":r(t))||void 0===t.behavior||"auto"===t.behavior||"instant"===t.behavior)return!0;if("object"===(void 0===t?"undefined":r(t))&&"smooth"===t.behavior)return!1;throw new TypeError("behavior member of ScrollOptions "+t.behavior+" is not a valid value for enumeration ScrollBehavior.")}function l(t,e){return"Y"===e?t.clientHeight+a1?1:a),r=e.startX+(e.x-e.startX)*n,i=e.startY+(e.y-e.startY)*n,e.method.call(e.scrollable,r,i),r===e.x&&i===e.y||t.requestAnimationFrame(p.bind(t,e))}function d(n,r,o){var a,c,l,f,h=s();n===e.body?(a=t,c=t.scrollX||t.pageXOffset,l=t.scrollY||t.pageYOffset,f=i.scroll):(a=n,c=n.scrollLeft,l=n.scrollTop,f=u),p({scrollable:a,method:f,startTime:h,startX:c,startY:l,x:r,y:o})}}"object"===r(e)&&void 0!==t?t.exports={polyfill:n}:n()}()},function(t,e,n){"use strict";n.r(e);n(75),n(71),n(70);var r=n(29),o=n.n(r),i=(n(69),n(68),n(67),n(15),"undefined"!=typeof Set&&1===new Set([1]).size?Set:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return(t=t.filter(function(e,n){return n===t.indexOf(e)})).size=t.length,t.has=function(e){return t.indexOf(e)>-1},t.add=function(e){return t.has(e)||(t.size++,t.push(e)),t},t.delete=function(e){var n;return(n=t.has(e))&&(t.size--,t.splice(t.indexOf(e),1)),n},t.clear=function(){for(;t.pop(););t.size=0},t});function s(t,e){return t?t(e):e}function a(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-";return t.replace(/([a-z\d])([A-Z])/g,"$1"+e+"$2").replace(/([A-Z]+)([A-Z][a-z\d]+)/g,"$1"+e+"$2").toLowerCase()}var u=function(){function t(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:d;return function(e){function n(){return c(this,n),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(n,t),u(n,[{key:"setupComponent",value:function(t,e){var n=this.constructor.defaults;this[p]=Object.assign({},n,e),this.setupProperties(this),this[h]=this.setupShadowDOM(t)}},{key:"setupShadowDOM",value:function(t){return t}},{key:"connectComponent",value:function(){}},{key:"disconnectComponent",value:function(){}},{key:"adoptComponent",value:function(){}},{key:"getRoot",value:function(){return this[h]}},{key:"getEl",value:function(){return this[h]}},{key:"fireEvent",value:function(t,e){var n=this.constructor.componentName,r=new CustomEvent(n+"-"+t,e);this.el.dispatchEvent(r)}},{key:"setInternalState",value:function(t,e){this[p][t]=e}},{key:"setupProperties",value:function(){var t=this,e=this.constructor.sideEffects;Object.keys(this[p]).forEach(function(n){var r=e[n];t.setupProperty(n,r)})}},{key:"setupProperty",value:function(t,e){var n=this;Object.defineProperty(this,t,{get:function(){return n[p][t]},set:function(r){var o=n[p][t];n.setInternalState(t,r),e&&e.call(n,r,o)},enumerable:!0,configurable:!0})}},{key:"sroot",get:function(){return this.getRoot()}},{key:"el",get:function(){return this.getEl()}}]),n}()},v=function(){function t(t,e){for(var n=0;n2&&void 0!==arguments[2]&&arguments[2],r=a(t);n&&(b=r);var o=this.constructor.types[t].stringify(e);null==o?this.removeAttribute(r):this.setAttribute(r,o)}},{key:"getStateFromAttributes",value:function(){var t=this,e=this.constructor.types,n={};return Object.keys(e).forEach(function(r){var o=a(r),i=t.hasAttribute(o)?t.getAttribute(o):null,u=s(e[r],i);null!=u&&(n[r]=u)}),n}},{key:"connectedCallback",value:function(){this.connectComponent()}},{key:"disconnectedCallback",value:function(){this.disconnectComponent()}},{key:"adoptedCallback",value:function(){this.adoptComponent()}},{key:"attributeChangedCallback",value:function(t,e,n){if(b===t)b=null;else if(e!==n){var r=this.constructor.types,o=function(){for(var t=arguments.length,e=Array(t),n=0;n0?t.prototype.schedule.call(this,e,n):(this.delay=n,this.state=e,this.scheduler.flush(this),this)},e.prototype.execute=function(e,n){return n>0||this.closed?t.prototype.execute.call(this,e,n):this._execute(e,n)},e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0?t.prototype.requestAsyncId.call(this,e,n,r):e.flush(this)},e}(Q),et=function(){function t(e,n){void 0===n&&(n=t.now),this.SchedulerAction=e,this.now=n}return t.prototype.schedule=function(t,e,n){return void 0===e&&(e=0),new this.SchedulerAction(this,t).schedule(n,e)},t.now=Date.now?Date.now:function(){return+new Date},t}(),nt=function(t){function e(n,r){void 0===r&&(r=et.now);var o=t.call(this,n,function(){return e.delegate&&e.delegate!==o?e.delegate.now():r()})||this;return o.actions=[],o.active=!1,o.scheduled=void 0,o}return E(e,t),e.prototype.schedule=function(n,r,o){return void 0===r&&(r=0),e.delegate&&e.delegate!==this?e.delegate.schedule(n,r,o):t.prototype.schedule.call(this,n,r,o)},e.prototype.flush=function(t){var e=this.actions;if(this.active)e.push(t);else{var n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}},e}(et),rt=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return E(e,t),e}(nt))(tt),ot=new X(function(t){return t.complete()});function it(t){return t?function(t){return new X(function(e){return t.schedule(function(){return e.complete()})})}(t):ot}function st(t){return t&&"function"==typeof t.schedule}var at=function(t){return function(e){for(var n=0,r=t.length;nthis._bufferSize&&n.shift(),t.prototype.next.call(this,e)},e.prototype.nextTimeWindow=function(e){this._events.push(new mt(this._getNow(),e)),this._trimBufferThenGetEvents(),t.prototype.next.call(this,e)},e.prototype._subscribe=function(t){var e,n=this._infiniteTimeWindow,r=n?this._events:this._trimBufferThenGetEvents(),o=this.scheduler,i=r.length;if(this.closed)throw new Y;if(this.isStopped||this.hasError?e=D.EMPTY:(this.observers.push(t),e=new G(this,t)),o&&t.add(t=new dt(t,o)),n)for(var s=0;se&&(i=Math.max(i,o-e)),i>0&&r.splice(0,i),r},e}(J),mt=function(){return function(t,e){this.time=t,this.value=e}}(),bt=function(){function t(t,e){for(var n=0;n0?t.join(","):null};var St=function(t){var e=function(e){if(null==e)return null;var n=Et(e).map(t);return n.reduce(function(t,e){return t&&null!==e},!0)?n:null};return e.stringify=function(e){var n=e&&e.map&&e.map(t.stringify);return n&&n.reduce(function(t,e){return t&&null!==e},!0)?Et.stringify(n):null},e},xt=function(t){if(null==t)return!1;var e=t.trim&&t.trim()||t;return!("false"===e||"null"===e||"undefined"===e||"0"===e||!1===e)};xt.stringify=function(t){return t?"":null};var Tt=function(t){return null==t?null:Number(t)};Tt.stringify=function(t){return null==t?null:""+t};var Ot=function(t){var e=function(e){if(null==e)return null;var n=t.indexOf(e);return n>-1?t[n]:null};return e.stringify=function(e){return-1!==t.indexOf(e)?e:null},e},Ct=function(t){if(null==t)return null;var e=(t.trim&&t.trim()||t).match(/^\/?(.*?)(\/([gimy]*))?$/);return new RegExp(e[1],e[3])};Ct.stringify=function(t){return t&&t.toString()||null};var Nt=function(t){return t};Nt.stringify=function(t){return t};var kt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return E(e,t),e.prototype.notifyNext=function(t,e,n,r,o){this.destination.next(e)},e.prototype.notifyError=function(t,e){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(U),jt=function(t){function e(e,n,r){var o=t.call(this)||this;return o.parent=e,o.outerValue=n,o.outerIndex=r,o.index=0,o}return E(e,t),e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},e.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(U),At=function(t){return function(e){return t.then(function(t){e.closed||(e.next(t),e.complete())},function(t){return e.error(t)}).then(null,O),e}};var Mt=function(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}(),Pt=function(t){return function(e){for(var n=t[Mt]();;){var r=n.next();if(r.done){e.complete();break}if(e.next(r.value),e.closed)break}return"function"==typeof n.return&&e.add(function(){n.return&&n.return()}),e}},Rt=function(t){return function(e){var n=t[z]();if("function"!=typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(e)}},Lt=function(t){return t&&"number"==typeof t.length&&"function"!=typeof t};function It(t){return t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}var Dt=function(t){if(t instanceof X)return function(e){return t._isScalar?(e.next(t.value),void e.complete()):t.subscribe(e)};if(t&&"function"==typeof t[z])return Rt(t);if(Lt(t))return at(t);if(It(t))return At(t);if(t&&"function"==typeof t[Mt])return Pt(t);var e=j(t)?"an invalid object":"'"+t+"'";throw new TypeError("You provided "+e+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.")};function Ft(t,e,n,r){var o=new jt(t,n,r);return Dt(e)(o)}var qt={};function Ht(){for(var t=[],e=0;e0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(kt);function Jt(t){return t}function Zt(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),Yt(Jt,t)}function Qt(){for(var t=[],e=0;e1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof o&&(n=t.pop()),null===r&&1===t.length&&t[0]instanceof X?t[0]:Zt(n)(ut(t,r))}var te=new X(W);Object.prototype.toString;function ee(t,e,n,r){return S(n)&&(r=n,n=void 0),r?ee(t,e,n).pipe(zt(function(t){return N(t)?r.apply(void 0,t):r(t)})):new X(function(r){!function t(e,n,r,o,i){var s;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(e)){var a=e;e.addEventListener(n,r,i),s=function(){return a.removeEventListener(n,r,i)}}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(e)){var u=e;e.on(n,r),s=function(){return u.off(n,r)}}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(e)){var c=e;e.addListener(n,r),s=function(){return c.removeListener(n,r)}}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(var l=0,f=e.length;l1?r.next(Array.prototype.slice.call(arguments)):r.next(t)},r,n)})}var ne=n(1);function re(t,e){return void 0===e&&(e=null),new le({method:"GET",url:t,headers:e})}function oe(t,e,n){return new le({method:"POST",url:t,body:e,headers:n})}function ie(t,e){return new le({method:"DELETE",url:t,headers:e})}function se(t,e,n){return new le({method:"PUT",url:t,body:e,headers:n})}function ae(t,e,n){return new le({method:"PATCH",url:t,body:e,headers:n})}var ue=zt(function(t,e){return t.response});function ce(t,e){return ue(new le({method:"GET",url:t,responseType:"json",headers:e}))}var le=function(t){function e(e){var n=t.call(this)||this,r={async:!0,createXHR:function(){return this.crossDomain?function(){if(ne.a.XMLHttpRequest)return new ne.a.XMLHttpRequest;if(ne.a.XDomainRequest)return new ne.a.XDomainRequest;throw new Error("CORS is not supported by your browser")}():function(){if(ne.a.XMLHttpRequest)return new ne.a.XMLHttpRequest;var t=void 0;try{for(var e=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"],n=0;n<3;n++)try{if(t=e[n],new ne.a.ActiveXObject(t))break}catch(t){}return new ne.a.ActiveXObject(t)}catch(t){throw new Error("XMLHttpRequest is not supported by your browser")}}()},crossDomain:!0,withCredentials:!1,headers:{},method:"GET",responseType:"json",timeout:0};if("string"==typeof e)r.url=e;else for(var o in e)e.hasOwnProperty(o)&&(r[o]=e[o]);return n.request=r,n}return E(e,t),e.prototype._subscribe=function(t){return new fe(t,this.request)},e.create=function(){var t=function(t){return new e(t)};return t.get=re,t.post=oe,t.delete=ie,t.put=se,t.patch=ae,t.getJSON=ce,t}(),e}(X),fe=function(t){function e(e,n){var r=t.call(this,e)||this;r.request=n,r.done=!1;var o=n.headers=n.headers||{};return n.crossDomain||o["X-Requested-With"]||(o["X-Requested-With"]="XMLHttpRequest"),"Content-Type"in o||ne.a.FormData&&n.body instanceof ne.a.FormData||void 0===n.body||(o["Content-Type"]="application/x-www-form-urlencoded; charset=UTF-8"),n.body=r.serializeBody(n.body,n.headers["Content-Type"]),r.send(),r}return E(e,t),e.prototype.next=function(t){this.done=!0;var e=this.xhr,n=this.request,r=this.destination,o=new he(t,e,n);r.next(o)},e.prototype.send=function(){var t=this.request,e=this.request,n=e.user,r=e.method,o=e.url,i=e.async,s=e.password,a=e.headers,u=e.body,c=R(t.createXHR).call(t);if(c===M)this.error(M.e);else{this.xhr=c,this.setupEvents(c,t);if((n?R(c.open).call(c,r,o,i,n,s):R(c.open).call(c,r,o,i))===M)return this.error(M.e),null;if(i&&(c.timeout=t.timeout,c.responseType=t.responseType),"withCredentials"in c&&(c.withCredentials=!!t.withCredentials),this.setHeaders(c,a),(u?R(c.send).call(c,u):R(c.send).call(c))===M)return this.error(M.e),null}return c},e.prototype.serializeBody=function(t,e){if(!t||"string"==typeof t)return t;if(ne.a.FormData&&t instanceof ne.a.FormData)return t;if(e){var n=e.indexOf(";");-1!==n&&(e=e.substring(0,n))}switch(e){case"application/x-www-form-urlencoded":return Object.keys(t).map(function(e){return encodeURIComponent(e)+"="+encodeURIComponent(t[e])}).join("&");case"application/json":return JSON.stringify(t);default:return t}},e.prototype.setHeaders=function(t,e){for(var n in e)e.hasOwnProperty(n)&&t.setRequestHeader(n,e[n])},e.prototype.setupEvents=function(t,e){var n=e.progressSubscriber;function r(t){var e=r,n=e.subscriber,o=e.progressSubscriber,i=e.request;o&&o.error(t),n.error(new ye(this,i))}if(t.ontimeout=r,r.request=e,r.subscriber=this,r.progressSubscriber=n,t.upload&&"withCredentials"in t){var o,i;if(n)o=function(t){o.progressSubscriber.next(t)},ne.a.XDomainRequest?t.onprogress=o:t.upload.onprogress=o,o.progressSubscriber=n;i=function(t){var e=i,n=e.progressSubscriber,r=e.subscriber,o=e.request;n&&n.error(t),r.error(new pe("ajax error",this,o))},t.onerror=i,i.request=e,i.subscriber=this,i.progressSubscriber=n}function s(t){}function a(t){var e=a,n=e.subscriber,r=e.progressSubscriber,o=e.request;if(4===this.readyState){var i=1223===this.status?204:this.status,s="text"===this.responseType?this.response||this.responseText:this.response;0===i&&(i=s?200:0),i<400?(r&&r.complete(),n.next(t),n.complete()):(r&&r.error(t),n.error(new pe("ajax error "+i,this,o)))}}t.onreadystatechange=s,s.subscriber=this,s.progressSubscriber=n,s.request=e,t.onload=a,a.subscriber=this,a.progressSubscriber=n,a.request=e},e.prototype.unsubscribe=function(){var e=this.done,n=this.xhr;!e&&n&&4!==n.readyState&&"function"==typeof n.abort&&n.abort(),t.prototype.unsubscribe.call(this)},e}(U),he=function(){return function(t,e,n){this.originalEvent=t,this.xhr=e,this.request=n,this.status=e.status,this.responseType=e.responseType||n.responseType,this.response=de(this.responseType,e)}}(),pe=function(t){function e(n,r,o){var i=t.call(this,n)||this;return i.name="AjaxError",i.message=n,i.xhr=r,i.request=o,i.status=r.status,i.responseType=r.responseType||o.responseType,i.response=de(i.responseType,r),Object.setPrototypeOf(i,e.prototype),i}return E(e,t),e}(Error);function de(t,e){switch(t){case"json":return"response"in e?e.responseType?e.response:JSON.parse(e.response||e.responseText||"null"):JSON.parse(e.responseText||"null");case"xml":return e.responseXML;case"text":default:return"response"in e?e.response:e.responseText}}var ye=function(t){function e(n,r){var o=t.call(this,"ajax timeout",n,r)||this;return o.name="AjaxTimeoutError",Object.setPrototypeOf(o,e.prototype),o}return E(e,t),e}(pe),ve=le.create;function me(){for(var t=[],e=0;e0?ut(t,n):it(n):ct(t[0]),e)}}function ge(t){return function(e){return e.lift(new we(t))}}var we=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){var n=new _e(t),r=Ft(n,this.notifier);return r&&!r.closed?(n.add(r),e.subscribe(n)):n},t}(),_e=function(t){function e(e){return t.call(this,e)||this}return E(e,t),e.prototype.notifyNext=function(t,e,n,r,o){this.complete()},e.prototype.notifyComplete=function(){},e}(kt);function Ee(t,e){return"function"==typeof e?function(n){return n.pipe(Ee(function(n,r){return $t(t(n,r)).pipe(zt(function(t,o){return e(n,t,r,o)}))}))}:function(e){return e.lift(new Se(t))}}var Se=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new xe(t,this.project))},t}(),xe=function(t){function e(e,n){var r=t.call(this,e)||this;return r.project=n,r.index=0,r}return E(e,t),e.prototype._next=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){var r=this.innerSubscription;r&&r.unsubscribe(),this.add(this.innerSubscription=Ft(this,t,e,n))},e.prototype._complete=function(){var e=this.innerSubscription;e&&!e.closed||t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.innerSubscription=null},e.prototype.notifyComplete=function(e){this.remove(e),this.innerSubscription=null,this.isStopped&&t.prototype._complete.call(this)},e.prototype.notifyNext=function(t,e,n,r,o){this.destination.next(e)},e}(kt);function Te(){return function(t){return t.lift(new Oe(t))}}var Oe=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var n=this.connectable;n._refCount++;var r=new Ce(t,n),o=e.subscribe(r);return r.closed||(r.connection=n.connect()),o},t}(),Ce=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return E(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var n=this.connection,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},e}(U),Ne=function(t){function e(e,n){var r=t.call(this)||this;return r.source=e,r.subjectFactory=n,r._refCount=0,r._isComplete=!1,r}return E(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new D).add(this.source.subscribe(new je(this.getSubject(),this))),t.closed?(this._connection=null,t=D.EMPTY):this._connection=t),t},e.prototype.refCount=function(){return Te()(this)},e}(X).prototype,ke={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:Ne._subscribe},_isComplete:{value:Ne._isComplete,writable:!0},getSubject:{value:Ne.getSubject},connect:{value:Ne.connect},refCount:{value:Ne.refCount}},je=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return E(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(K);var Ae=function(){function t(t,e){this.subjectFactory=t,this.selector=e}return t.prototype.call=function(t,e){var n=this.selector,r=this.subjectFactory(),o=n(r).subscribe(t);return o.add(e.subscribe(r)),o},t}();function Me(){return new J}function Pe(){return function(t){return Te()(function(t,e){return function(n){var r;if(r="function"==typeof t?t:function(){return t},"function"==typeof e)return n.lift(new Ae(r,e));var o=Object.create(n,ke);return o.source=n,o.subjectFactory=r,o}}(Me)(t))}}function Re(t,e){return function(n){return n.lift(new Le(t,e))}}var Le=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new Ie(t,this.predicate,this.thisArg))},t}(),Ie=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.predicate=n,o.thisArg=r,o.count=0,o}return E(e,t),e.prototype._next=function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}e&&this.destination.next(t)},e}(U);function De(t,e){return function(n){return n.lift(new Fe(t,e))}}var Fe=function(){function t(t,e){this.compare=t,this.keySelector=e}return t.prototype.call=function(t,e){return e.subscribe(new qe(t,this.compare,this.keySelector))},t}(),qe=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.keySelector=r,o.hasKey=!1,"function"==typeof n&&(o.compare=n),o}return E(e,t),e.prototype.compare=function(t,e){return t===e},e.prototype._next=function(t){var e=t;if(this.keySelector&&(e=R(this.keySelector)(t))===M)return this.destination.error(M.e);var n=!1;if(this.hasKey){if((n=R(this.compare)(this.key,e))===M)return this.destination.error(M.e)}else this.hasKey=!0;!1===Boolean(n)&&(this.key=e,this.destination.next(t))},e}(U);function He(t,e,n){return function(r){return r.lift(new Ue(t,e,n))}}var Ue=function(){function t(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}return t.prototype.call=function(t,e){return e.subscribe(new Be(t,this.nextOrObserver,this.error,this.complete))},t}(),Be=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i._tapNext=W,i._tapError=W,i._tapComplete=W,i._tapError=r||W,i._tapComplete=o||W,S(n)?(i._context=i,i._tapNext=n):n&&(i._context=n,i._tapNext=n.next||W,i._tapError=n.error||W,i._tapComplete=n.complete||W),i}return E(e,t),e.prototype._next=function(t){try{this._tapNext.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.next(t)},e.prototype._error=function(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)},e.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()},e}(U),ze="attributeStyleMap"in Element.prototype&&"CSS"in window&&CSS.number;var We=function(){function t(t,e){for(var n=0;n1.2))break;n=i,r=a,o=s}return n}},{key:"selectByDpr_",value:function(t){for(var e=this.sources_,n=0,r=1/0,o=0;o1&&void 0!==arguments[1]?arguments[1]:window.location;return e!==r.protocol||n!==r.host}(n),headers:{Accept:"image/*"}}).pipe(zt(function(t){var e=t.response;return URL.createObjectURL(e)}),He(function(t){return i.set(o,t)})):i.has(o)?lt(i.get(o)):te}},{key:"setImgSrcAndLoad",value:function(t){var e=ee(this.img,"load");return this.img.src=t,e}},{key:"updateAttr",value:function(t){var e=this;return function(n){return null==n||!1===n?e.img.removeAttribute(t):e.img.setAttribute(t,!0===n?"":n)}}},{key:"loadImageFallback",value:function(){this.el.hasAttribute("sizes")&&this.img.setAttribute("sizes",this.getAttribute("sizes")),this.el.hasAttribute("crossorigin")&&this.img.setAttribute("crossorigin",this.getAttribute("crossorigin")),this.el.hasAttribute("referrerpolicy")&&this.img.setAttribute("referrerpolicy",this.getAttribute("referrerpolicy")),this.srcset&&(this.img.srcset=this.srcset),this.src&&(this.img.src=this.src),null!=this.sizer.parentNode&&this.el.removeChild(this.sizer),null==this.img.parentNode&&this.el.appendChild(this.img),this.fireEvent("load")}},{key:"updateSizerStyle",value:function(t){var e=Je(t,3),n=e[0],r=e[1],o=e[2],i=n.contentRect.width;ze?(this.sizer.attributeStyleMap.set("position","relative"),null!=r&&null!=o?r>=i?(this.sizer.attributeStyleMap.set("width",CSS.percent(100)),this.sizer.attributeStyleMap.set("padding-top",CSS.percent(o/r*100))):(this.sizer.attributeStyleMap.set("width",CSS.px(r)),this.sizer.attributeStyleMap.set("height",CSS.px(o))):(this.sizer.attributeStyleMap.set("width",CSS.percent(100)),this.sizer.attributeStyleMap.set("height",CSS.percent(100)))):(this.sizer.style.position="relative",null!=r&&null!=o?r>=i?(this.sizer.style.width="100%",this.sizer.style.paddingTop=o/r*100+"%"):(this.sizer.style.width=r+"px",this.sizer.style.height=o+"px"):(this.sizer.style.width="100%",this.sizer.style.height="100%"))}},{key:"disconnectComponent",value:function(){Qe(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"disconnectComponent",this).call(this),this.cache&&this.cache.forEach(function(t){URL.revokeObjectURL(t)})}},{key:"loadImage",value:function(){this.loadImage$.next(!0)}}],[{key:"componentName",get:function(){return"hy-img"}},{key:"defaults",get:function(){return{root:null,rootMargin:"0px",src:null,srcset:null,width:null,height:null,dataWidth:null,dataHeight:null,alt:null,decoding:null,longdesc:null,ismap:!1,usemap:null}}},{key:"types",get:function(){return{root:Nt,rootMargin:Nt,src:Nt,srcset:Nt,width:Tt,height:Tt,dataWidth:Tt,dataHeight:Tt,alt:Nt,decoding:Ot(["sync","async","auto"]),longdesc:Nt,ismap:xt,usemap:Nt}}}]),n}()},nn=function(){function t(t,e){for(var n=0;n0&&an.indexOf("chrome")<0,cn=an.indexOf("mobile")>0,ln=un&&cn,fn=an.indexOf("ucbrowser")>0,hn=an.indexOf("firefox")>0,pn=an.indexOf("fxios")>0&&an.indexOf("safari")>0,dn="attributeStyleMap"in Element.prototype&&"CSS"in window&&CSS.number;function yn(t){var e=!0;return t.forEach(function(t){var n=window.Modernizr[t];e=e&&n}),e}function vn(){for(;this.firstChild;)this.removeChild(this.firstChild)}function mn(t,e,n){return X.create(function(r){var o=t.animate(e,n);return o.addEventListener("finish",function(t){return r.next(t),requestAnimationFrame(function(){return requestAnimationFrame(r.complete.bind(r))})}),function(){"finished"!==o.playState&&o.cancel()}})}function bn(t){var e=document.getElementById(t);return e&&document.importNode(e.content,!0)}function gn(t){return new X(function(e){var n;try{n=t()}catch(t){return void e.error(t)}return(n?$t(n):it()).subscribe(e)})}yn(on)?window.customElements.define("hy-img",sn):Array.prototype.forEach.call(document.getElementsByTagName("hy-img"),function(t){return t.innerHTML=t.children[0].innerText});var wn=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return E(e,t),e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0?t.prototype.requestAsyncId.call(this,e,n,r):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame(function(){return e.flush(null)})))},e.prototype.recycleAsyncId=function(e,n,r){if(void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,n,r);0===e.actions.length&&(cancelAnimationFrame(n),e.scheduled=void 0)},e}(Q),_n=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return E(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,n=this.actions,r=-1,o=n.length;t=t||n.shift();do{if(e=t.execute(t.state,t.delay))break}while(++r0){var s=i.indexOf(n);-1!==s&&i.splice(s,1)}},e.prototype.notifyComplete=function(){},e.prototype._next=function(t){if(0===this.toRespond.length){var e=[t].concat(this.values);this.project?this._tryProject(e):this.destination.next(e)}},e.prototype._tryProject=function(t){var e;try{e=this.project.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(kt);var Tn=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){var n=new On(t),r=e.subscribe(n);return r.add(Ft(n,this.notifier)),r},t}(),On=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.hasValue=!1,e}return E(e,t),e.prototype._next=function(t){this.value=t,this.hasValue=!0},e.prototype.notifyNext=function(t,e,n,r,o){this.emitValue()},e.prototype.notifyComplete=function(){this.emitValue()},e.prototype.emitValue=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))},e}(kt),Cn=new nt(Q);var Nn=function(){return function(t,e){this.value=t,this.timestamp=e}}();function kn(){return function(t){return t.lift(new jn)}}var jn=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new An(t))},t}(),An=function(t){function e(e){var n=t.call(this,e)||this;return n.hasPrev=!1,n}return E(e,t),e.prototype._next=function(t){this.hasPrev?this.destination.next([this.prev,t]):this.hasPrev=!0,this.prev=t},e}(U);var Mn=function(){function t(t){this.total=t}return t.prototype.call=function(t,e){return e.subscribe(new Pn(t,this.total))},t}(),Pn=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.count=0,r}return E(e,t),e.prototype._next=function(t){++this.count>this.total&&this.destination.next(t)},e}(U);function Rn(t,e,n,r,o){return X.create(function(i){var s=void 0,a=requestAnimationFrame(function u(c){var l=c-(s=s||c);l1?e-1:0),r=1;rn&&(e||ti);default:throw Error()}}},{key:"calcIsSwipe",value:function(t){var e=Fn(t,3),n=e[0].clientX,r=e[1].clientX,o=e[2];return n!==r||o>0&&o.15||!(r<-.15)&&n>=this.drawerWidth/2;case"right":return-r>.15||!(-r<-.15)&&n<=-this.drawerWidth/2;default:throw Error()}}},{key:"calcTranslateX",value:function(t,e,n){switch(this.align){case"left":var r=n+(t-e);return Un(0,Hn(this.drawerWidth,r));case"right":var o=n+(t-e);return Hn(0,Un(-this.drawerWidth,o));default:throw Error()}}},{key:"calcMovableDrawerWidth",value:function(){return-parseFloat(getComputedStyle(this.contentEl)[this.align])}}]),n}()},zn=function(){function t(t,e){for(var n=0;n=ir(a-o)})):t.pipe(En(e),zt(function(t){var e=rr(t,2),r=e[0],o=r.clientX,i=r.clientY,s=r.event,a=e[1],u=a.clientX,c=a.clientY,l=ir(u-o)>=ir(c-i);return n.preventDefault&&l&&s.preventDefault(),l}))}}]),n}()},ar=function(){return function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var s,a=t[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),ur=function(){function t(t,e){for(var n=0;n0}),zt(function(t){var e=ar(t,2),n=e[0],r=n.value,o=n.timestamp,i=e[1];return(i.value-r)/(i.timestamp-o)}),be(0)),c=Qt(i.pipe(He(function(){return t.contentEl.classList.remove("hy-drawer-grabbing")}),En(n,this.translateX$,u),Re(this.calcIsSwipe.bind(this)),zt(this.calcWillOpen.bind(this)),He(function(e){return t.fireEvent("slideend",{detail:e})})),this.animateTo$.pipe(He(this.prepareInteraction.bind(this))));this.tween$=c.pipe(He(function(e){return t.setInternalState("opened",e)}),En(this.translateX$),Ee(function(e){var r=ar(e,2),o=r[0],i=r[1],s="left"===t.align?1:-1;return Rn(Ln,i,(o?t.drawerWidth*s:0)-i,200+.15*t.drawerWidth).pipe(He({complete:function(){return t.subjects.opened.next(o)}}),ge(n),ge(t.subjects.align.pipe(function(t){return function(e){return e.lift(new Mn(t))}}(1))),Pe())})),this.translateX$.subscribe(this.updateDOM.bind(this)),ee(this.scrimEl,"click").pipe(ge(this.subjects.disconnect)).subscribe(function(){return t.close()}),e.pipe(ge(this.subjects.disconnect)).subscribe(function(e){t.scrimEl.style.display=e?"block":"none"}),this.subjects.align.pipe(ge(this.subjects.disconnect)).subscribe(function(e){t.contentEl.classList.remove("hy-drawer-left"),t.contentEl.classList.remove("hy-drawer-right"),t.contentEl.classList.add("hy-drawer-"+e)}),this.subjects.mouseEvents.pipe(ge(this.subjects.disconnect),Ee(function(e){return e?t.contentEl.classList.add("hy-drawer-grab"):t.contentEl.classList.remove("hy-drawer-grab"),e?n.pipe(En(o)):te})).subscribe(function(t){var e=ar(t,2),n=e[0].event;e[1]&&n&&n.preventDefault()}),this.fireEvent("init",{detail:this.opened})}}]),n}()},lr=function(){function t(t,e){for(var n=0;n0&&void 0!==arguments[0])||arguments[0]?this.animateTo$.next(!0):this.opened=!0}},{key:"close",value:function(){!(arguments.length>0&&void 0!==arguments[0])||arguments[0]?this.animateTo$.next(!1):this.opened=!1}},{key:"toggle",value:function(){!(arguments.length>0&&void 0!==arguments[0])||arguments[0]?this.animateTo$.next(!this.opened):this.opened=!this.opened}}],[{key:"componentName",get:function(){return"hy-drawer"}},{key:"types",get:function(){return{opened:xt,align:Ot(["left","right"]),persistent:xt,range:St(Tt),threshold:Tt,preventDefault:xt,touchEvents:xt,mouseEvents:xt}}},{key:"defaults",get:function(){return{opened:!1,align:"left",persistent:!1,range:[0,100],threshold:10,preventDefault:!1,touchEvents:!1,mouseEvents:!1}}}]),n}()},dr=function(){function t(t,e){for(var n=0;n
')}}],[{key:"observedAttributes",get:function(){return this.getObservedAttributes()}}]),e}(),br=function(){return function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var s,a=t[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();var gr=new i([].concat(function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e=p&&window.scrollTo(0,f-p)},{once:!0});var d=!0;u.pipe(En(s)).subscribe(function(e){var n=br(e,2),r=n[0],i=n[1];d?(d=!1,o(r,h?1:0,i)):o(r,t.opacity,i)}),window._drawer=function(t,e){return e&&t.setAttribute("opened",""),un&&t.setAttribute("threshold",0),cn||t.setAttribute("mouse-events",""),hn&&t.removeAttribute("prevent-default"),window.customElements.define("hy-drawer",mr),t}(t,h)}():setTimeout(i,300)}()});n(47);var Or=window.URL;if(!(Or&&Or.prototype&&"href"in Or.prototype)){(Or=function(t,e){if(!t)throw new TypeError("Invalid argument");var n=document.implementation.createHTMLDocument("");if(e){var r=n.createElement("base");r.href=e,n.head.appendChild(r)}var o=n.createElement("a");if(o.href=t,n.body.appendChild(o),":"===o.protocol||!/:/.test(o.href))throw new TypeError("Invalid URL");Object.defineProperty(this,"_anchorElement",{value:o})}).prototype={toString:function(){return this.href},get href(){return this._anchorElement.href},set href(t){this._anchorElement.href=t},get protocol(){return this._anchorElement.protocol},set protocol(t){this._anchorElement.protocol=t},get host(){return this._anchorElement.host},set host(t){this._anchorElement.host=t},get hostname(){return this._anchorElement.hostname},set hostname(t){this._anchorElement.hostname=t},get port(){return this._anchorElement.port},set port(t){this._anchorElement.port=t},get pathname(){return this._anchorElement.pathname},set pathname(t){this._anchorElement.pathname=t},get search(){return this._anchorElement.search},set search(t){this._anchorElement.search=t},get hash(){return this._anchorElement.hash},set hash(t){this._anchorElement.hash=t}};var Cr=window.URL||window.webkitURL||window.mozURL;Or.createObjectURL=function(t){return Cr.createObjectURL.apply(Cr,arguments)},Or.revokeObjectURL=function(t){return Cr.revokeObjectURL.apply(Cr,arguments)},Object.defineProperty(Or.prototype,"toString",{enumerable:!1})}var Nr=Element.prototype.matches||Element.prototype.matchesSelector||Element.prototype.msMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.webkitMatchesSelector||Element.prototype.oMatchesSelector;function kr(t){var e=t.protocol,n=t.host,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.location;return e!==r.protocol||n!==r.host}function jr(){return window.pageYOffset||document.body.scrollTop}var Ar="push";function Mr(t,e){return function(n){return[Re(t,e)(n),Re(function(t,e){function n(){return!n.pred.apply(n.thisArg,arguments)}return n.pred=t,n.thisArg=e,n}(t,e))(n)]}}function Pr(t){return function(e){var n=new Rr(t),r=e.lift(n);return n.caught=r}}var Rr=function(){function t(t){this.selector=t}return t.prototype.call=function(t,e){return e.subscribe(new Lr(t,this.selector,this.caught))},t}(),Lr=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.selector=n,o.caught=r,o}return E(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=void 0;try{n=this.selector(e,this.caught)}catch(e){return void t.prototype.error.call(this,e)}this._unsubscribeAndRecycle(),this.add(Ft(this,n))}},e}(kt),Ir=function(){return function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var s,a=t[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),Dr=function(){function t(t,e){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:window.location;return""!==e&&n===o.origin&&r===o.pathname}(e,this)}},{key:"isHashChange",value:function(t){var e=Ir(t,2),n=e[0].url.pathname,r=e[1],o=r.url,i=o.pathname,s=o.hash,a=r.type;return i===n&&("pop"===a||a===Ar&&""!==s)}}]),n}()},qr=function(){function t(t,e){for(var n=0;nthis.index},t.prototype.hasCompleted=function(){return this.array.length===this.index},t}(),Gr=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.parent=n,o.observable=r,o.stillUnsubscribed=!0,o.buffer=[],o.isComplete=!1,o}return E(e,t),e.prototype[Mt]=function(){return this},e.prototype.next=function(){var t=this.buffer;return 0===t.length&&this.isComplete?{value:null,done:!0}:{value:t.shift(),done:!1}},e.prototype.hasValue=function(){return this.buffer.length>0},e.prototype.hasCompleted=function(){return 0===this.buffer.length&&this.isComplete},e.prototype.notifyComplete=function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()},e.prototype.notifyNext=function(t,e,n,r,o){this.buffer.push(e),this.parent.checkIterators()},e.prototype.subscribe=function(t,e){return Ft(this,this.observable,this,e)},e}(kt),Kr=function(){return function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var s,a=t[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),Jr=function(){function t(t,e){for(var n=0;n400&&n<598?lt(Object.assign(t,{response:r.response})):lt(Object.assign(t,{error:e}))}},{key:"getFetch$",value:function(t,e,n){return t.url.href===e.url.href&&null==e.error?lt(e):n.pipe(Kn(1))}},{key:"getResponse",value:function(t,e){var n=Kr(e,2),r=n[0],o=n[1];return Wr(this.getFetch$(r,o,t).pipe(zt(function(t){return Object.assign(t,r)})),this.animPromise,function(t){return t})}}]),n}()};var Qr=function(){return function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var s,a=t[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),to=function(){function t(t,e){for(var n=0;n0)return this.replaceIds.map(function(e){return t.getElementById(e)});if(this.el.id)return[t.getElementById(this.el.id)];var e=Array.from(document.getElementsByTagName(this.el.tagName)).indexOf(this.el);return[t.querySelectorAll(this.el.tagName)[e]]}},{key:"responseToContent",value:function(t){var e=function(t){return document.createRange().createContextualFragment(t)}(t.response),n=this.getTitle(e),r=this.getReplaceElements(e);if(r.some(function(t){return null==t}))throw Object.assign(t,{replaceElMissing:!0});var o=this.scriptSelector?this.tempRemoveScriptTags(r):[];return Object.assign(t,{title:n,replaceEls:r,scripts:o})}},{key:"replaceContentByIds",value:function(t){this.replaceIds.map(function(t){return document.getElementById(t)}).forEach(function(e,n){return e.parentNode.replaceChild(t[n],e)})}},{key:"replaceContentWholesale",value:function(t){var e=no(t,1)[0];this.el.innerHTML=e.innerHTML}},{key:"replaceContent",value:function(t){this.replaceIds.length>0?this.replaceContentByIds(t):this.replaceContentWholesale(t)}},{key:"updateDOM",value:function(t){try{var e=t.replaceEls;this.updateHistoryTitle(t),kr(this)&&this.rewriteURLs(e),this.replaceContent(e)}catch(e){throw Object.assign(t,{error:e})}}},{key:"rewriteURLs",value:function(t){var e=this;t.forEach(function(t){t.querySelectorAll("[href]").forEach(e.rewriteURL("href")),t.querySelectorAll("[src]").forEach(e.rewriteURL("src")),t.querySelectorAll("img[srcset]").forEach(e.rewriteURLSrcSet("srcset")),t.querySelectorAll("blockquote[cite]").forEach(e.rewriteURL("cite")),t.querySelectorAll("del[cite]").forEach(e.rewriteURL("cite")),t.querySelectorAll("ins[cite]").forEach(e.rewriteURL("cite")),t.querySelectorAll("q[cite]").forEach(e.rewriteURL("cite")),t.querySelectorAll("img[longdesc]").forEach(e.rewriteURL("longdesc")),t.querySelectorAll("frame[longdesc]").forEach(e.rewriteURL("longdesc")),t.querySelectorAll("iframe[longdesc]").forEach(e.rewriteURL("longdesc")),t.querySelectorAll("img[usemap]").forEach(e.rewriteURL("usemap")),t.querySelectorAll("input[usemap]").forEach(e.rewriteURL("usemap")),t.querySelectorAll("object[usemap]").forEach(e.rewriteURL("usemap")),t.querySelectorAll("form[action]").forEach(e.rewriteURL("action")),t.querySelectorAll("button[formaction]").forEach(e.rewriteURL("formaction")),t.querySelectorAll("input[formaction]").forEach(e.rewriteURL("formaction")),t.querySelectorAll("video[poster]").forEach(e.rewriteURL("poster")),t.querySelectorAll("object[data]").forEach(e.rewriteURL("data")),t.querySelectorAll("object[codebase]").forEach(e.rewriteURL("codebase")),t.querySelectorAll("object[archive]").forEach(e.rewriteURLList("archive"))})}},{key:"rewriteURL",value:function(t){var e=this;return function(n){try{n.setAttribute(t,new URL(n.getAttribute(t),e.href).href)}catch(t){0}}}},{key:"rewriteURLSrcSet",value:function(t){var e=this;return function(n){try{n.setAttribute(t,n.getAttribute(t).split(/\s*,\s*/).map(function(t){var n=t.split(/\s+/);return n[0]=new URL(n[0],e.href).href,n.join(" ")}).join(", "))}catch(t){0}}}},{key:"rewriteURLList",value:function(t){var e=this;return function(n){try{n.setAttribute(t,n.getAttribute(t).split(/[\s,]+/).map(function(t){return new URL(t,e.href).href}).join(", "))}catch(t){0}}}}]),n}()};function io(t){return!N(t)&&t-parseFloat(t)+1>=0}function so(t,e,n){void 0===t&&(t=0);var r=-1;return io(e)?r=Number(e)<1?1:Number(e):st(e)&&(n=e),st(n)||(n=Cn),new X(function(e){var o=io(t)?t:+t-n.now();return n.schedule(ao,o,{index:0,period:r,subscriber:e})})}function ao(t){var e=t.index,n=t.period,r=t.subscriber;if(r.next(e),!r.closed){if(-1===n)return r.complete();t.index=e+1,this.schedule(t,n)}}var uo=function(){function t(t,e){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:window.location;return e!==r.protocol||n!==r.host}(r),headers:{Accept:"image/*"}}).pipe(zt(function(t){var e=t.response;return URL.createObjectURL(e)}),Pr(function(){return lt(n)}))}},{key:"fetchImage",value:function(t){var e=Mo()(t),n=e.background,r=e.color,o=e.image,i=e.overlay,s=Lo(e);return s===this.prevHash?it():this.fetchImage2(e).pipe(zt(function(t){var a=document.createElement("div");return a.classList.add("sidebar-bg"),"none"!==o&&""===i&&a.classList.add("sidebar-overlay"),n?a.style.background=n:(a.style.backgroundColor=r,t&&(a.style.backgroundImage="url("+t+")",a.objectURL=t)),[a,e,s]}))}},{key:"updateStyle",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.color,r=void 0===n?"#4fb1ba":n,o=e.themeColor,i=void 0===o?"#193747":o;if(this.themeColorEl&&window.setTimeout(function(){return t.themeColorEl.content=i},250),this.rules)try{var s=Co()(r),a=s.darken(.1);this.rules[0].style.color=r,this.rules[0].style.borderColor=s.fade(.8).string(),this.rules[1].style.borderColor=r,this.rules[2].style.outlineColor=r,this.rules[3].style.backgroundColor=r,this.rules[3].style.borderColor=r,this.rules[4].style.boxShadow="0 0 0 3px "+s.fade(.5),this.rules[5].style.backgroundColor=a,this.rules[5].style.borderColor=a,this.rules[6].style.backgroundColor=r,this.rules[6].style.borderColor=r,this.rules[7].style.backgroundColor=a,this.rules[7].style.borderColor=a,this.rules[this.rules.length-1].style.backgroundColor=r}catch(t){console.error(t)}}},{key:"fade",value:function(t,e){var n=Po(t,1)[0],r=Po(e,3),o=r[0],i=r[1],s=r[2];return n.parentNode.insertBefore(o,n.nextElementSibling),this.updateStyle(i),this.prevHash=s,mn(o,[{opacity:0},{opacity:1}],{duration:this.fadeDuration,easing:"ease"}).pipe(No(function(){n.objectURL&&URL.revokeObjectURL(n.objectURL),n.parentNode.removeChild(n)}))}}]),t}(),Do=!1,Fo=!1;function qo(t){try{for(var e=t.previousElementSibling;e&&!e.classList.contains("MathJax_Preview");)e=e.previousElementSibling;var n=t.textContent.replace("% ","");t.outerHTML=window.katex.renderToString(n,{displayMode:"math/tex; mode=display"===t.type}),e&&function(){this.style.display="none",this.style.visibility="hidden"}.call(e)}catch(t){0}}var Ho=yn(["classlist","eventlistener","queryselector"])?function(){var t=document.querySelectorAll('script[type^="math/tex"]');t.length&&(Do&&Fo?Array.from(t).forEach(qo):(loadJS(document.getElementById("_hrefKatexJS").href).addEventListener("load",function(){(Do=!0)&&Fo&&Ho()}),loadCSS(document.getElementById("_hrefKatexCSS").href).addEventListener("load",function(){Fo=!0,Do&&Fo&&Ho()})))}:function(){};Ho();n(35);var Uo=function(){return function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var s,a=t[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),Bo=".page-title, .post-title";var zo=["title"];function Wo(t,e,n,r){var o=t.pipe(Re(function(t){var e=t.flipType;return!zo.includes(e)}));return Qt(function(t,e,n,r){var o=r.animationMain,i=r.settings;if(!o)return t;var s=t.pipe(Re(function(t){return"title"===t.flipType}),Ee(function(t){var e=t.anchor;if(!e)return lt({});var n=document.createElement("h1");n.classList.add("page-title"),n.textContent=e.textContent,n.style.transformOrigin="left top";var r=o.querySelector(".page");if(!r)return lt({});vn.call(r),r.appendChild(n),o.style.position="fixed",o.style.opacity=1;var s=e.getBoundingClientRect(),a=n.getBoundingClientRect(),u=parseInt(getComputedStyle(e).fontSize,10),c=parseInt(getComputedStyle(n).fontSize,10),l=s.left-a.left,f=s.top-a.top,h=u/c;return e.style.opacity=0,mn(n,[{transform:"translate3d("+l+"px, "+f+"px, 0) scale("+h+")"},{transform:"translate3d(0, 0, 0) scale(1)"}],i).pipe(He({complete:function(){o.style.position="absolute"}}))}));return t.pipe(Ee(function(t){var r=t.flipType;return Wr(e.pipe(Re(function(){return"title"===r}),zt(function(t){var e=Uo(t.replaceEls,1)[0].querySelector(Bo);return e&&(e.style.opacity=0),e})),n,function(t){return t}).pipe(He(function(t){t&&(t.style.opacity=1),o.style.opacity=0}),No(function(){o.style.opacity=0}))})).subscribe(),s}(t,e,n,r),o)}var Vo=function(){return function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var s,a=t[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();var Xo=new i([].concat(function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e .content > .nav-btn-bar"),r=function(t){var e=bn("_animation-template");return t.parentNode.insertBefore(e,t),t.previousElementSibling}(e),o=function(t){var e=bn("_loading-template");return t.appendChild(e),t.lastElementChild}(n);t&&function(t,e,n){var r=bn(e);r.querySelector(".nav-btn").addEventListener("click",n),t.appendChild(r),t.lastElementChild}(n,"_back-template",function(){return window.history.back()});var i=ee(e,"hy-push-state-start").pipe(zt(function(t){var e=t.detail;return Object.assign(e,{flipType:function(t){return t&&t.classList?t.classList.contains("flip-title")?"title":t.classList.contains("flip-project")?"project":t.getAttribute&&t.getAttribute("data-flip"):null}(e.anchor)})}),Pe()),s=ee(e,"hy-push-state-ready").pipe(zt(function(t){return t.detail}),Pe()),a=ee(e,"hy-push-state-after").pipe(zt(function(t){return t.detail}),Pe()),u=ee(e,"hy-push-state-progress").pipe(zt(function(t){return t.detail}),Pe()),c=ee(e,"hy-push-state-networkerror").pipe(zt(function(t){return t.detail}),Pe()),l=i.pipe(zt(function(t){return Object.assign(t,{main:document.getElementById("_main")})}),He(function(t){return t.main.style.pointerEvents="none"}),function t(e,n){return n?function(r){return r.pipe(t(function(t,r){return $t(e(t,r)).pipe(zt(function(e,o){return n(t,e,r,o)}))}))}:function(t){return t.lift(new xo(e))}}(Jo),He(function(t){var e=t.main;return vn.call(e)}),Pe());u.subscribe(function(){return o.style.display="block"}),s.pipe(be({replaceEls:[document.getElementById("_main")]})).subscribe(function(t){var e=Vo(t.replaceEls,1)[0];e.classList.remove("fade-in"),requestAnimationFrame(function(){return o.style.display="none"}),requestIdleCallback(function(){return Array.from(e.querySelectorAll("h1[id], h2[id], h3[id], h4[id], h5[id], h6[id]")).forEach(Ko)})}),a.pipe(be({replaceEls:[document.getElementById("_main")]})).subscribe(function(t){var e=Vo(t.replaceEls,1)[0];Array.from(e.querySelectorAll('li[id^="fn:"]')).forEach(function(t){t.tabIndex=0}),Array.from(e.querySelectorAll('a[href^="#fn:"]')).forEach(function(t){return t.addEventListener("click",function(t){return document.getElementById(t.currentTarget.hash.substr(1)).focus()})})});var f=a.pipe(Ee(Zo),Pe()),h=Wo(i,s,Qt(f,c),{animationMain:r,settings:Go}).pipe(Pe());i.pipe(Ee(function(t){var e=Wr(so(250),l,h).toPromise();return t.transitionUntil(e),e})).subscribe(),l.subscribe(),h.subscribe();var p=new Io(1e3);a.pipe(Ee(function(t){var e=Vo(t.replaceEls,1)[0];return Wr(p.fetchImage(e),f,function(t){return t}).pipe(ge(i))}),be([document.querySelector(".sidebar-bg")]),kn(),Yt(function(t){var e=Vo(t,2),n=e[0],r=e[1];return p.fade(n,r)})).subscribe(),f.subscribe(function(){return Ho()}),c.pipe(Ee(function(t){var e=t.url;o.style.display="none";var n=document.getElementById("_main");return n.style.pointerEvents="",vn.call(r.querySelector(".page")),vn.call(n),function(t,e){var n=e.pathname,r=bn("_error-template"),o=r.querySelector(".this-link");o&&(o.href=n,o.textContent=n),t.appendChild(r),t.lastElementChild}(n,e),mn(n,Yo,Go)})).subscribe(),window._pushState=function(t){return window.customElements.define("hy-push-state",So),t}(e)}),o.a.polyfill()},function(t,e,n){var r=n(20),o=Math.max,i=Math.min;t.exports=function(t,e){return(t=r(t))<0?o(t+e,0):i(t,e)}},function(t,e,n){var r=n(22),o=n(10);t.exports=function(t){return r(o(t))}},function(t,e,n){var r=n(32),o=n(21),i=n(31);t.exports=function(t){return function(e,n,s){var a,u=r(e),c=o(u.length),l=i(s,c);if(t&&n!=n){for(;c>l;)if((a=u[l++])!=a)return!0}else for(;c>l;l++)if((t||l in u)&&u[l]===n)return t||l||0;return!t&&-1}}},function(t,e,n){"use strict";var r=n(7),o=n(33)(!0);r(r.P,"Array",{includes:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),n(19)("includes")},function(t,e,n){n(34),t.exports=n(3).Array.includes},function(t,e,n){var r=n(17);function o(t){var e=function(){for(var t={},e=Object.keys(r),n=e.length,o=0;o1&&(e=Array.prototype.slice.call(arguments));var n=t(e);if("object"===(void 0===n?"undefined":r(n)))for(var o=n.length,i=0;i1&&(e=Array.prototype.slice.call(arguments)),t(e))};return"conversion"in t&&(e.conversion=t.conversion),e}(o)})}),t.exports=s},function(t,e){t.exports=function(t){return!(!t||"string"==typeof t)&&(t instanceof Array||Array.isArray(t)||t.length>=0&&(t.splice instanceof Function||Object.getOwnPropertyDescriptor(t,t.length-1)&&"String"!==t.constructor.name))}},function(t,e,n){"use strict";var r=n(38),o=Array.prototype.concat,i=Array.prototype.slice,s=t.exports=function(t){for(var e=[],n=0,s=t.length;n=4&&1!==t[3]&&(e=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+e+")"},a.to.keyword=function(t){return i[t.slice(0,3)]}},function(t,e,n){"use strict";var r=n(7),o=n(23)(5),i=!0;"find"in[]&&Array(1).find(function(){i=!1}),r(r.P+r.F*i,"Array",{find:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),n(19)("find")},function(t,e,n){n(41),t.exports=n(3).Array.find},function(t,e,n){var r=n(8)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[r]=!1,!"/./"[t](e)}catch(t){}}return!0}},function(t,e,n){var r=n(5),o=n(11),i=n(8)("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[i])?!!e:"RegExp"==o(t))}},function(t,e,n){var r=n(44),o=n(10);t.exports=function(t,e,n){if(r(e))throw TypeError("String#"+n+" doesn't accept regex!");return String(o(t))}},function(t,e,n){"use strict";var r=n(7),o=n(45);r(r.P+r.F*n(43)("includes"),"String",{includes:function(t){return!!~o(this,t,"includes").indexOf(t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){n(46),t.exports=n(3).String.includes},function(t,e){t.exports=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},function(t,e,n){"use strict";var r=n(24),o=n(5),i=n(48),s=[].slice,a={};t.exports=Function.bind||function(t){var e=r(this),n=s.call(arguments,1),u=function r(){var o=n.concat(s.call(arguments));return this instanceof r?function(t,e,n){if(!(e in a)){for(var r=[],o=0;o \\\\/__,_ / \\/____//\\ \\_\\ \\\\/__/\\/_/ \\/____/ \\/_/\\/_/\r\n /\\___/ \\ \\____/ \r\n \\/__/ \\/___/ \n\n"),console.log("Powered by Hydejack v8.1.0 ")},function(t,e){var 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};!function(t,e,r){var o=[],i={_version:"3.6.0",_config:{classPrefix:"",enableClasses:!0,enableJSClass:!0,usePrefixes:!1},_q:[],on:function(t,e){var n=this;setTimeout(function(){e(n[t])},0)},addTest:function(t,e,n){o.push({name:t,fn:e,options:n})},addAsyncTest:function(t){o.push({name:null,fn:t})}},s=function(){};s.prototype=i,(s=new s).addTest("customelements","customElements"in t),s.addTest("customevent","CustomEvent"in t&&"function"==typeof t.CustomEvent),s.addTest("eventlistener","addEventListener"in t),s.addTest("history",function(){var e=navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone")||"file:"===location.protocol)&&(t.history&&"pushState"in t.history)}),s.addTest("queryselector","querySelector"in e&&"querySelectorAll"in e),s.addTest("promises",function(){return"Promise"in t&&"resolve"in t.Promise&&"reject"in t.Promise&&"all"in t.Promise&&"race"in t.Promise&&function(){var e;return new t.Promise(function(t){e=t}),"function"==typeof e}()});var a=[];function u(t,e){return(void 0===t?"undefined":n(t))===e}var c=i._config.usePrefixes?" -webkit- -moz- -o- -ms- ".split(" "):["",""];i._prefixes=c;var l=e.documentElement;function f(t){return t.replace(/([a-z])-([a-z])/g,function(t,e,n){return e+n.toUpperCase()}).replace(/^-/,"")}s.addTest("classlist","classList"in l),s.addTest("documentfragment",function(){return"createDocumentFragment"in e&&"appendChild"in l});var h="svg"===l.nodeName.toLowerCase();function p(){return"function"!=typeof e.createElement?e.createElement(arguments[0]):h?e.createElementNS.call(e,"http://www.w3.org/2000/svg",arguments[0]):e.createElement.apply(e,arguments)}function d(t,n,r,o){var i,s,a,u,c="modernizr",f=p("div"),d=function(){var t=e.body;return t||((t=p(h?"svg":"body")).fake=!0),t}();if(parseInt(r,10))for(;r--;)(a=p("div")).id=o?o[r]:c+(r+1),f.appendChild(a);return(i=p("style")).type="text/css",i.id="s"+c,(d.fake?d:f).appendChild(i),d.appendChild(f),i.styleSheet?i.styleSheet.cssText=t:i.appendChild(e.createTextNode(t)),f.id=c,d.fake&&(d.style.background="",d.style.overflow="hidden",u=l.style.overflow,l.style.overflow="hidden",l.appendChild(d)),s=n(f,t),d.fake?(d.parentNode.removeChild(d),l.style.overflow=u,l.offsetHeight):f.parentNode.removeChild(f),!!s}s.addTest("opacity",function(){var t=p("a").style;return t.cssText=c.join("opacity:.55;"),/^0.55$/.test(t.opacity)}),s.addTest("csspointerevents",function(){var t=p("a").style;return t.cssText="pointer-events:auto","auto"===t.pointerEvents}),s.addTest("cssremunit",function(){var t=p("a").style;try{t.fontSize="3rem"}catch(t){}return/rem/.test(t.fontSize)});var y=i.testStyles=d;s.addTest("touchevents",function(){var n;if("ontouchstart"in t||t.DocumentTouch&&e instanceof DocumentTouch)n=!0;else{var r=["@media (",c.join("touch-enabled),("),"heartz",")","{#modernizr{top:9px;position:absolute}}"].join("");y(r,function(t){n=9===t.offsetTop})}return n});var v=i._config.usePrefixes?"Moz O ms Webkit".split(" "):[];i._cssomPrefixes=v;var m=function(e){var n,o=c.length,i=t.CSSRule;if(void 0===i)return r;if(!e)return!1;if((n=(e=e.replace(/^@/,"")).replace(/-/g,"_").toUpperCase()+"_RULE")in i)return"@"+e;for(var s=0;s1||n<0||n>1?h:function(o){function i(t,e,n){return 3*t*(1-n)*(1-n)*n+3*e*(1-n)*n*n+n*n*n}if(o<=0){var s=0;return t>0?s=e/t:!e&&n>0&&(s=r/n),s*o}if(o>=1){var a=0;return n<1?a=(r-1)/(n-1):1==n&&t<1&&(a=(e-1)/(t-1)),1+a*(o-1)}for(var u=0,c=1;u=1)return 1;var r=1/t;return(n+=e*r)-n%r}}function a(t){m||(m=document.createElement("div").style),m.animationTimingFunction="",m.animationTimingFunction=t;var e=m.animationTimingFunction;if(""==e&&r())throw new TypeError(t+" is not a valid value for easing");return e}function u(t){if("linear"==t)return h;var e=g.exec(t);if(e)return i.apply(this,e.slice(1).map(Number));var n=w.exec(t);return n?s(Number(n[1]),{start:p,middle:d,end:y}[n[2]]):v[t]||h}function c(t,e,n){if(null==e)return _;var r=n.delay+t+n.endDelay;return e=Math.min(n.delay+t,r)?S:x}var l="backwards|forwards|both|none".split("|"),f="reverse|alternate|alternate-reverse".split("|"),h=function(t){return t};n.prototype={_setMember:function(e,n){this["_"+e]=n,this._effect&&(this._effect._timingInput[e]=n,this._effect._timing=t.normalizeTimingInput(this._effect._timingInput),this._effect.activeDuration=t.calculateActiveDuration(this._effect._timing),this._effect._animation&&this._effect._animation._rebuildUnderlyingAnimation())},get playbackRate(){return this._playbackRate},set delay(t){this._setMember("delay",t)},get delay(){return this._delay},set endDelay(t){this._setMember("endDelay",t)},get endDelay(){return this._endDelay},set fill(t){this._setMember("fill",t)},get fill(){return this._fill},set iterationStart(t){if((isNaN(t)||t<0)&&r())throw new TypeError("iterationStart must be a non-negative number, received: "+timing.iterationStart);this._setMember("iterationStart",t)},get iterationStart(){return this._iterationStart},set duration(t){if("auto"!=t&&(isNaN(t)||t<0)&&r())throw new TypeError("duration must be non-negative or auto, received: "+t);this._setMember("duration",t)},get duration(){return this._duration},set direction(t){this._setMember("direction",t)},get direction(){return this._direction},set easing(t){this._easingFunction=u(a(t)),this._setMember("easing",t)},get easing(){return this._easing},set iterations(t){if((isNaN(t)||t<0)&&r())throw new TypeError("iterations must be non-negative, received: "+t);this._setMember("iterations",t)},get iterations(){return this._iterations}};var p=1,d=.5,y=0,v={ease:i(.25,.1,.25,1),"ease-in":i(.42,0,1,1),"ease-out":i(0,0,.58,1),"ease-in-out":i(.42,0,.58,1),"step-start":s(1,p),"step-middle":s(1,d),"step-end":s(1,y)},m=null,b="\\s*(-?\\d+\\.?\\d*|-?\\.\\d+)\\s*",g=new RegExp("cubic-bezier\\("+b+","+b+","+b+","+b+"\\)"),w=/steps\(\s*(\d+)\s*,\s*(start|middle|end)\s*\)/,_=0,E=1,S=2,x=3;t.cloneTimingInput=function(t){if("number"==typeof t)return t;var e={};for(var n in t)e[n]=t[n];return e},t.makeTiming=o,t.numericTimingToObject=function(t){return"number"==typeof t&&(t=isNaN(t)?{duration:0}:{duration:t}),t},t.normalizeTimingInput=function(e,n){return o(e=t.numericTimingToObject(e),n)},t.calculateActiveDuration=function(t){return Math.abs(function(t){return 0===t.duration||0===t.iterations?0:t.duration*t.iterations}(t)/t.playbackRate)},t.calculateIterationProgress=function(t,e,n){var r=c(t,e,n),o=function(t,e,n,r,o){switch(r){case E:return"backwards"==e||"both"==e?0:null;case x:return n-o;case S:return"forwards"==e||"both"==e?t:null;case _:return null}}(t,n.fill,e,r,n.delay);if(null===o)return null;var i=function(t,e,n,r,o){var i=o;return 0===t?e!==E&&(i+=n):i+=r/t,i}(n.duration,r,n.iterations,o,n.iterationStart),s=function(t,e,n,r,o,i){var s=t===1/0?e%1:t%1;return 0!==s||n!==S||0===r||0===o&&0!==i||(s=1),s}(i,n.iterationStart,r,n.iterations,o,n.duration),a=function(t,e,n,r){return t===S&&e===1/0?1/0:1===n?Math.floor(r)-1:Math.floor(r)}(r,n.iterations,s,i),u=function(t,e,n){var r=t;if("normal"!==t&&"reverse"!==t){var o=e;"alternate-reverse"===t&&(o+=1),r="normal",o!==1/0&&o%2!=0&&(r="reverse")}return"normal"===r?n:1-n}(n.direction,a,s);return n._easingFunction(u)},t.calculatePhase=c,t.normalizeEasing=a,t.parseEasingFunction=u}(r),function(t,e){function n(t,e){return t in u&&u[t][e]||e}function r(t,e,r){if(!function(t){return"display"===t||0===t.lastIndexOf("animation",0)||0===t.lastIndexOf("transition",0)}(t)){var o=i[t];if(o)for(var a in s.style[t]=e,o){var u=o[a],c=s.style[u];r[u]=n(u,c)}else r[t]=n(t,e)}}function o(t){var e=[];for(var n in t)if(!(n in["easing","offset","composite"])){var r=t[n];Array.isArray(r)||(r=[r]);for(var o,i=r.length,s=0;s1)throw new TypeError("Keyframe offsets must be between 0 and 1.")}}else if("composite"==o){if("add"==i||"accumulate"==i)throw{type:DOMException.NOT_SUPPORTED_ERR,name:"NotSupportedError",message:"add compositing is not supported"};if("replace"!=i)throw new TypeError("Invalid composite mode "+i+".")}else i="easing"==o?t.normalizeEasing(i):""+i;r(o,i,n)}return void 0==n.offset&&(n.offset=null),void 0==n.easing&&(n.easing="linear"),n}),i=!0,s=-1/0,a=0;a=0&&t.offset<=1}),i||function(){var t=n.length;null==n[t-1].offset&&(n[t-1].offset=1),t>1&&null==n[0].offset&&(n[0].offset=0);for(var e=0,r=n[0].offset,o=1;o=t.applyFrom&&nthis._surrogateStyle.length;)this._length--,Object.defineProperty(this,this._length,{configurable:!0,enumerable:!1,value:void 0})},_set:function(e,n){this._style[e]=n,this._isAnimatedProperty[e]=!0,this._updateSvgTransformAttr&&"transform"==t.unprefixedPropertyName(e)&&(null==this._savedTransformAttr&&(this._savedTransformAttr=this._element.getAttribute("transform")),this._element.setAttribute("transform",t.transformToSvgMatrix(n)))},_clear:function(e){this._style[e]=this._surrogateStyle[e],this._updateSvgTransformAttr&&"transform"==t.unprefixedPropertyName(e)&&(this._savedTransformAttr?this._element.setAttribute("transform",this._savedTransformAttr):this._element.removeAttribute("transform"),this._savedTransformAttr=null),delete this._isAnimatedProperty[e]}},a)r.prototype[c]=function(t,e){return function(){var n=this._surrogateStyle[t].apply(this._surrogateStyle,arguments);return e&&(this._isAnimatedProperty[arguments[0]]||this._style[t].apply(this._style,arguments),this._updateIndices()),n}}(c,c in u);for(var l in document.documentElement.style)l in s||l in a||function(t){n(r.prototype,t,{get:function(){return this._surrogateStyle[t]},set:function(e){this._surrogateStyle[t]=e,this._updateIndices(),this._isAnimatedProperty[t]||(this._style[t]=e)}})}(l);t.apply=function(e,n,r){o(e),e.style._set(t.propertyName(n),r)},t.clear=function(e,n){e._webAnimationsPatchedStyle&&e.style._clear(t.propertyName(n))}}(o),function(t){window.Element.prototype.animate=function(e,n){var r="";return n&&n.id&&(r=n.id),t.timeline._play(t.KeyframeEffect(this,e,n,r))}}(o),function(t,e){o.Interpolation=function(t,e,n){return function(r){return n(function t(e,n,r){if("number"==typeof e&&"number"==typeof n)return e*(1-r)+n*r;if("boolean"==typeof e&&"boolean"==typeof n)return r<.5?e:n;if(e.length==n.length){for(var o=[],i=0;i0?this._totalDuration:0),this._ensureAlive())},get currentTime(){return this._idle||this._currentTimePending?null:this._currentTime},set currentTime(t){t=+t,isNaN(t)||(e.restart(),this._paused||null==this._startTime||(this._startTime=this._timeline.currentTime-t/this._playbackRate),this._currentTimePending=!1,this._currentTime!=t&&(this._idle&&(this._idle=!1,this._paused=!0),this._tickCurrentTime(t,!0),e.applyDirtiedAnimation(this)))},get startTime(){return this._startTime},set startTime(t){t=+t,isNaN(t)||this._paused||this._idle||(this._startTime=t,this._tickCurrentTime((this._timeline.currentTime-this._startTime)*this.playbackRate),e.applyDirtiedAnimation(this))},get playbackRate(){return this._playbackRate},set playbackRate(t){if(t!=this._playbackRate){var n=this.currentTime;this._playbackRate=t,this._startTime=null,"paused"!=this.playState&&"idle"!=this.playState&&(this._finishedFlag=!1,this._idle=!1,this._ensureAlive(),e.applyDirtiedAnimation(this)),null!=n&&(this.currentTime=n)}},get _isFinished(){return!this._idle&&(this._playbackRate>0&&this._currentTime>=this._totalDuration||this._playbackRate<0&&this._currentTime<=0)},get _totalDuration(){return this._effect._totalDuration},get playState(){return this._idle?"idle":null==this._startTime&&!this._paused&&0!=this.playbackRate||this._currentTimePending?"pending":this._paused?"paused":this._isFinished?"finished":"running"},_rewind:function(){if(this._playbackRate>=0)this._currentTime=0;else{if(!(this._totalDuration<1/0))throw new DOMException("Unable to rewind negative playback rate animation with infinite duration","InvalidStateError");this._currentTime=this._totalDuration}},play:function(){this._paused=!1,(this._isFinished||this._idle)&&(this._rewind(),this._startTime=null),this._finishedFlag=!1,this._idle=!1,this._ensureAlive(),e.applyDirtiedAnimation(this)},pause:function(){this._isFinished||this._paused||this._idle?this._idle&&(this._rewind(),this._idle=!1):this._currentTimePending=!0,this._startTime=null,this._paused=!0},finish:function(){this._idle||(this.currentTime=this._playbackRate>0?this._totalDuration:0,this._startTime=this._totalDuration-this.currentTime,this._currentTimePending=!1,e.applyDirtiedAnimation(this))},cancel:function(){this._inEffect&&(this._inEffect=!1,this._idle=!0,this._paused=!1,this._isFinished=!0,this._finishedFlag=!0,this._currentTime=0,this._startTime=null,this._effect._update(null),e.applyDirtiedAnimation(this))},reverse:function(){this.playbackRate*=-1,this.play()},addEventListener:function(t,e){"function"==typeof e&&"finish"==t&&this._finishHandlers.push(e)},removeEventListener:function(t,e){if("finish"==t){var n=this._finishHandlers.indexOf(e);n>=0&&this._finishHandlers.splice(n,1)}},_fireEvents:function(t){if(this._isFinished){if(!this._finishedFlag){var e=new function(t,e,n){this.target=t,this.currentTime=e,this.timelineTime=n,this.type="finish",this.bubbles=!1,this.cancelable=!1,this.currentTarget=t,this.defaultPrevented=!1,this.eventPhase=Event.AT_TARGET,this.timeStamp=Date.now()}(this,this._currentTime,t),n=this._finishHandlers.concat(this.onfinish?[this.onfinish]:[]);setTimeout(function(){n.forEach(function(t){t.call(e.target,e)})},0),this._finishedFlag=!0}}else this._finishedFlag=!1},_tick:function(t,e){this._idle||this._paused||(null==this._startTime?e&&(this.startTime=t-this._currentTime/this.playbackRate):this._isFinished||this._tickCurrentTime((t-this._startTime)*this.playbackRate)),e&&(this._currentTimePending=!1,this._fireEvents(t))},get _needsTick(){return this.playState in{pending:1,running:1}||!this._finishedFlag},_targetAnimations:function(){var t=this._effect._target;return t._activeAnimations||(t._activeAnimations=[]),t._activeAnimations},_markTarget:function(){var t=this._targetAnimations();-1===t.indexOf(this)&&t.push(this)},_unmarkTarget:function(){var t=this._targetAnimations(),e=t.indexOf(this);-1!==e&&t.splice(e,1)}}}(r,o),function(t,e,n){function r(t){var e=c;c=[],t1e-4?(v=.5/Math.sqrt(b),m=[(h[2][1]-h[1][2])*v,(h[0][2]-h[2][0])*v,(h[1][0]-h[0][1])*v,.25/v]):h[0][0]>h[1][1]&&h[0][0]>h[2][2]?m=[.25*(v=2*Math.sqrt(1+h[0][0]-h[1][1]-h[2][2])),(h[0][1]+h[1][0])/v,(h[0][2]+h[2][0])/v,(h[2][1]-h[1][2])/v]:h[1][1]>h[2][2]?(v=2*Math.sqrt(1+h[1][1]-h[0][0]-h[2][2]),m=[(h[0][1]+h[1][0])/v,.25*v,(h[1][2]+h[2][1])/v,(h[0][2]-h[2][0])/v]):(v=2*Math.sqrt(1+h[2][2]-h[0][0]-h[1][1]),m=[(h[0][2]+h[2][0])/v,(h[1][2]+h[2][1])/v,.25*v,(h[1][0]-h[0][1])/v]),[f,p,d,m,c]}}();t.dot=n,t.makeMatrixDecomposition=function(t){return[a(s(t))]},t.transformListToMatrix=s}(o),function(t){function e(t,e){var n=t.exec(e);if(n)return[n=t.ignoreCase?n[0].toLowerCase():n[0],e.substr(n.length)]}function n(t,e){var n=t(e=e.replace(/^\s*/,""));if(n)return[n[0],n[1].replace(/^\s*/,"")]}function r(t,e,n,r,o){for(var i=[],s=[],a=[],u=function(t,e){for(var n=t,r=e;n&&r;)n>r?n%=r:r%=n;return t*e/(n+r)}(r.length,o.length),c=0;c=1?e:"visible"}]},["visibility"])}(),function(t,e){function n(t){t=t.trim(),i.fillStyle="#000",i.fillStyle=t;var e=i.fillStyle;if(i.fillStyle="#fff",i.fillStyle=t,e==i.fillStyle){i.fillRect(0,0,1,1);var n=i.getImageData(0,0,1,1).data;i.clearRect(0,0,1,1);var r=n[3]/255;return[n[0]*r,n[1]*r,n[2]*r,r]}}function r(e,n){return[e,n,function(e){function n(t){return Math.max(0,Math.min(255,t))}if(e[3])for(var r=0;r<3;r++)e[r]=Math.round(n(e[r]/e[3]));return e[3]=t.numberToString(t.clamp(0,1,e[3])),"rgba("+e.join(",")+")"}]}var o=document.createElementNS("http://www.w3.org/1999/xhtml","canvas");o.width=o.height=1;var i=o.getContext("2d");t.addPropertiesHandler(n,r,["background-color","border-bottom-color","border-left-color","border-right-color","border-top-color","color","fill","flood-color","lighting-color","outline-color","stop-color","stroke","text-decoration-color"]),t.consumeColor=t.consumeParenthesised.bind(null,n),t.mergeColors=r}(o),function(t,e){function n(t){function e(){var e=s.exec(t);i=e?e[0]:void 0}function n(){if("("!==i)return function(){var t=Number(i);return e(),t}();e();var t=o();return")"!==i?NaN:(e(),t)}function r(){for(var t=n();"*"===i||"/"===i;){var r=i;e();var o=n();"*"===r?t*=o:t/=o}return t}function o(){for(var t=r();"+"===i||"-"===i;){var n=i;e();var o=r();"+"===n?t+=o:t-=o}return t}var i,s=/([\+\-\w\.]+|[\(\)\*\/])/g;return e(),o()}function r(t,e){if("0"==(e=e.trim().toLowerCase())&&"px".search(t)>=0)return{px:0};if(/^[^(]*$|^calc/.test(e)){var r={};e=(e=e.replace(/calc\(/g,"(")).replace(t,function(t){return r[t]=null,"U"+t});for(var o="U("+t.source+")",i=e.replace(/[-+]?(\d*\.)?\d+([Ee][-+]?\d+)?/g,"N").replace(new RegExp("N"+o,"g"),"D").replace(/\s[+-]\s/g,"O").replace(/\s/g,""),s=[/N\*(D)/g,/(N|D)[*\/]N/g,/(N|D)O\1/g,/\((N|D)\)/g],a=0;a1?"calc("+n+")":n}]}var s="px|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc",a=r.bind(null,new RegExp(s,"g")),u=r.bind(null,new RegExp(s+"|%","g")),c=r.bind(null,/deg|rad|grad|turn/g);t.parseLength=a,t.parseLengthOrPercent=u,t.consumeLengthOrPercent=t.consumeParenthesised.bind(null,u),t.parseAngle=c,t.mergeDimensions=i;var l=t.consumeParenthesised.bind(null,a),f=t.consumeRepeated.bind(void 0,l,/^/),h=t.consumeRepeated.bind(void 0,f,/^,/);t.consumeSizePairList=h;var p=t.mergeNestedRepeated.bind(void 0,o," "),d=t.mergeNestedRepeated.bind(void 0,p,",");t.mergeNonNegativeSizePair=p,t.addPropertiesHandler(function(t){var e=h(t);if(e&&""==e[1])return e[0]},d,["background-size"]),t.addPropertiesHandler(u,o,["border-bottom-width","border-image-width","border-left-width","border-right-width","border-top-width","flex-basis","font-size","height","line-height","max-height","max-width","outline-width","width"]),t.addPropertiesHandler(u,i,["border-bottom-left-radius","border-bottom-right-radius","border-top-left-radius","border-top-right-radius","bottom","left","letter-spacing","margin-bottom","margin-left","margin-right","margin-top","min-height","min-width","outline-offset","padding-bottom","padding-left","padding-right","padding-top","perspective","right","shape-margin","stroke-dashoffset","text-indent","top","vertical-align","word-spacing"])}(o),function(t,e){function n(e){return t.consumeLengthOrPercent(e)||t.consumeToken(/^auto/,e)}function r(e){var r=t.consumeList([t.ignore(t.consumeToken.bind(null,/^rect/)),t.ignore(t.consumeToken.bind(null,/^\(/)),t.consumeRepeated.bind(null,n,/^,/),t.ignore(t.consumeToken.bind(null,/^\)/))],e);if(r&&4==r[0].length)return r[0]}var o=t.mergeWrappedNestedRepeated.bind(null,function(t){return"rect("+t+")"},function(e,n){return"auto"==e||"auto"==n?[!0,!1,function(r){var o=r?e:n;if("auto"==o)return"auto";var i=t.mergeDimensions(o,o);return i[2](i[0])}]:t.mergeDimensions(e,n)},", ");t.parseBox=r,t.mergeBoxes=o,t.addPropertiesHandler(r,o,["clip"])}(o),function(t,e){function n(t){return function(e){var n=0;return t.map(function(t){return t===c?e[n++]:t})}}function r(t){return t}function o(e){if("none"==(e=e.toLowerCase().trim()))return[];for(var n,r=/\s*(\w+)\(([^)]*)\)/g,o=[],i=0;n=r.exec(e);){if(n.index!=i)return;i=n.index+n[0].length;var s=n[1],a=h[s];if(!a)return;var u=n[2].split(","),c=a[0];if(c.length900||e%100!=0))return e},function(t,n){return[t,n,e]},["font-weight"])}(o),function(t){function e(t){var e={};for(var n in t)e[n]=-t[n];return e}function r(e){return t.consumeToken(/^(left|center|right|top|bottom)\b/i,e)||t.consumeLengthOrPercent(e)}function o(e,o){var i=t.consumeRepeated(r,/^/,o);if(i&&""==i[1]){var a=i[0];if(a[0]=a[0]||"center",a[1]=a[1]||"center",3==e&&(a[2]=a[2]||{px:0}),a.length==e){if(/top|bottom/.test(a[0])||/left|right/.test(a[1])){var u=a[0];a[0]=a[1],a[1]=u}if(/left|right|center|Object/.test(a[0])&&/top|bottom|center|Object/.test(a[1]))return a.map(function(t){return"object"==(void 0===t?"undefined":n(t))?t:s[t]})}}}function i(n){var o=t.consumeRepeated(r,/^/,n);if(o){for(var i=o[0],a=[{"%":50},{"%":50}],u=0,c=!1,l=0;l=0&&this._cancelHandlers.splice(n,1)}else a.call(this,t,e)},o}}}(),function(t){var e=document.documentElement,n=null,r=!1;try{var o="0"==getComputedStyle(e).getPropertyValue("opacity")?"1":"0";(n=e.animate({opacity:[o,o]},{duration:1})).currentTime=0,r=getComputedStyle(e).getPropertyValue("opacity")==o}catch(t){}finally{n&&n.cancel()}if(!r){var i=window.Element.prototype.animate;window.Element.prototype.animate=function(e,n){return window.Symbol&&Symbol.iterator&&Array.prototype.from&&e[Symbol.iterator]&&(e=Array.from(e)),Array.isArray(e)||null===e||(e=t.convertToArrayForm(e)),i.call(this,e,n)}}}(r),e.true={}}(0,function(){return this}())},function(t,e){!function(t,e){"use strict";if("IntersectionObserver"in t&&"IntersectionObserverEntry"in t&&"intersectionRatio"in t.IntersectionObserverEntry.prototype)"isIntersecting"in t.IntersectionObserverEntry.prototype||Object.defineProperty(t.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var n=[];o.prototype.THROTTLE_TIMEOUT=100,o.prototype.POLL_INTERVAL=null,o.prototype.USE_MUTATION_OBSERVER=!0,o.prototype.observe=function(t){if(!this._observationTargets.some(function(e){return e.element==t})){if(!t||1!=t.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:t,entry:null}),this._monitorIntersections(),this._checkForIntersections()}},o.prototype.unobserve=function(t){this._observationTargets=this._observationTargets.filter(function(e){return e.element!=t}),this._observationTargets.length||(this._unmonitorIntersections(),this._unregisterInstance())},o.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorIntersections(),this._unregisterInstance()},o.prototype.takeRecords=function(){var t=this._queuedEntries.slice();return this._queuedEntries=[],t},o.prototype._initThresholds=function(t){var e=t||[0];return Array.isArray(e)||(e=[e]),e.sort().filter(function(t,e,n){if("number"!=typeof t||isNaN(t)||t<0||t>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return t!==n[e-1]})},o.prototype._parseRootMargin=function(t){var e=(t||"0px").split(/\s+/).map(function(t){var e=/^(-?\d*\.?\d+)(px|%)$/.exec(t);if(!e)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(e[1]),unit:e[2]}});return e[1]=e[1]||e[0],e[2]=e[2]||e[0],e[3]=e[3]||e[1],e},o.prototype._monitorIntersections=function(){this._monitoringIntersections||(this._monitoringIntersections=!0,this.POLL_INTERVAL?this._monitoringInterval=setInterval(this._checkForIntersections,this.POLL_INTERVAL):(i(t,"resize",this._checkForIntersections,!0),i(e,"scroll",this._checkForIntersections,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in t&&(this._domObserver=new MutationObserver(this._checkForIntersections),this._domObserver.observe(e,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))))},o.prototype._unmonitorIntersections=function(){this._monitoringIntersections&&(this._monitoringIntersections=!1,clearInterval(this._monitoringInterval),this._monitoringInterval=null,s(t,"resize",this._checkForIntersections,!0),s(e,"scroll",this._checkForIntersections,!0),this._domObserver&&(this._domObserver.disconnect(),this._domObserver=null))},o.prototype._checkForIntersections=function(){var e=this._rootIsInDom(),n=e?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};this._observationTargets.forEach(function(o){var i=o.element,s=u(i),a=this._rootContainsTarget(i),c=o.entry,l=e&&a&&this._computeTargetAndRootIntersection(i,n),f=o.entry=new r({time:t.performance&&performance.now&&performance.now(),target:i,boundingClientRect:s,rootBounds:n,intersectionRect:l});c?e&&a?this._hasCrossedThreshold(c,f)&&this._queuedEntries.push(f):c&&c.isIntersecting&&this._queuedEntries.push(f):this._queuedEntries.push(f)},this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)},o.prototype._computeTargetAndRootIntersection=function(n,r){if("none"!=t.getComputedStyle(n).display){for(var o=u(n),i=l(n),s=!1;!s;){var c=null,f=1==i.nodeType?t.getComputedStyle(i):{};if("none"==f.display)return;if(i==this.root||i==e?(s=!0,c=r):i!=e.body&&i!=e.documentElement&&"visible"!=f.overflow&&(c=u(i)),c&&!(o=a(c,o)))break;i=l(i)}return o}},o.prototype._getRootRect=function(){var t;if(this.root)t=u(this.root);else{var n=e.documentElement,r=e.body;t={top:0,left:0,right:n.clientWidth||r.clientWidth,width:n.clientWidth||r.clientWidth,bottom:n.clientHeight||r.clientHeight,height:n.clientHeight||r.clientHeight}}return this._expandRectByRootMargin(t)},o.prototype._expandRectByRootMargin=function(t){var e=this._rootMarginValues.map(function(e,n){return"px"==e.unit?e.value:e.value*(n%2?t.width:t.height)/100}),n={top:t.top-e[0],right:t.right+e[1],bottom:t.bottom+e[2],left:t.left-e[3]};return n.width=n.right-n.left,n.height=n.bottom-n.top,n},o.prototype._hasCrossedThreshold=function(t,e){var n=t&&t.isIntersecting?t.intersectionRatio||0:-1,r=e.isIntersecting?e.intersectionRatio||0:-1;if(n!==r)for(var o=0;o=0&&a>=0&&{top:n,bottom:r,left:o,right:i,width:s,height:a}}function u(t){var e;try{e=t.getBoundingClientRect()}catch(t){}return e?(e.width&&e.height||(e={top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.right-e.left,height:e.bottom-e.top}),e):{top:0,bottom:0,left:0,right:0,width:0,height:0}}function c(t,e){for(var n=e;n;){if(n==t)return!0;n=l(n)}return!1}function l(t){var e=t.parentNode;return e&&11==e.nodeType&&e.host?e.host:e}}(window,document)},function(t,e){var n,r,o=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(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(){try{n="function"==typeof setTimeout?setTimeout:i}catch(t){n=i}try{r="function"==typeof clearTimeout?clearTimeout:s}catch(t){r=s}}();var u,c=[],l=!1,f=-1;function h(){l&&u&&(l=!1,u.length?c=u.concat(c):f=-1,c.length&&p())}function p(){if(!l){var t=a(h);l=!0;for(var e=c.length;e;){for(u=c,c=[];++f1)for(var n=1;n=0&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},n(73),e.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(this,n(9))},function(t,e,n){(function(t,e){var 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};
/**
@license @nocompile
Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
/**
@license @nocompile
Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
(function(){"use strict";var r,o="function"==typeof Object.defineProperties?Object.defineProperty:function(t,e,n){t!=Array.prototype&&t!=Object.prototype&&(t[e]=n.value)},i="undefined"!=typeof window&&window===this?this:void 0!==t&&null!=t?t:this;function s(){s=function(){},i.Symbol||(i.Symbol=u)}var a,u=function(){var t=0;return function(e){return"jscomp_symbol_"+(e||"")+t++}}();function c(){s();var t=i.Symbol.iterator;t||(t=i.Symbol.iterator=i.Symbol("iterator")),"function"!=typeof Array.prototype[t]&&o(Array.prototype,t,{configurable:!0,writable:!0,value:function(){return l(this)}}),c=function(){}}function l(t){var e=0;return function(t){return c(),(t={next:t})[i.Symbol.iterator]=function(){return this},t}(function(){return e\x20\t\r\n\f]+)/i.exec(e)||["",""])[1].toLowerCase()];if(n)for(var r=0;r"+e+""+n[r]+">";for(b.body.innerHTML=e,t.a(b);this.content.firstChild;)u.call(this.content,this.content.firstChild);if(e=b.body,n)for(r=0;r"+this.innerHTML+""},set:function(t){if(!this.parentNode)throw Error("Failed to set the 'outerHTML' property on 'Element': This element has no parent node.");for(b.body.innerHTML=t,t=this.ownerDocument.createDocumentFragment();b.body.firstChild;)c.call(t,b.body.firstChild);l.call(this.parentNode,t,this)},configurable:!0})};x(t.prototype),T(t.prototype),t.a=function(n){for(var r,o=0,i=(n=e(n,"template")).length;o]/g,N=function(t){switch(t){case"&":return"&";case"<":return"<";case">":return">";case'"':return""";case"Â ":return" "}},k=(w=function(t){for(var e={},n=0;n",u=k[f]?h:h+t(u,l)+""+f+">";break t;case Node.TEXT_NODE:u=u.data,u=c&&j[c.localName]?u:u.replace(C,N);break t;case Node.COMMENT_NODE:u="\x3c!--"+u.data+"--\x3e";break t;default:throw window.console.error(u),Error("not implemented")}}o+=u}return o}}if(n||m){t.b=function(t,e){var n=i.call(t,!1);return this.R&&this.R(n),e&&(c.call(n.content,i.call(t.content,!0)),M(n.content,t.content)),n};var M=function(n,r){if(r.querySelectorAll&&0!==(r=e(r,"template")).length)for(var o,i,s=0,a=(n=e(n,"template")).length;s]/g;function $t(t){switch(t){case"&":return"&";case"<":return"<";case">":return">";case'"':return""";case"Â ":return" "}}function Yt(t){for(var e={},n=0;n",a=Gt[l]?f:f+Jt(a,c)+""+l+">";break t;case Node.TEXT_NODE:a=a.data,a=u&&Kt[u.localName]?a:a.replace(Xt,$t);break t;case Node.COMMENT_NODE:a="\x3c!--"+a.data+"--\x3e";break t;default:throw window.console.error(a),Error("not implemented")}}r+=a}return r}var Zt=document.createTreeWalker(document,NodeFilter.SHOW_ALL,null,!1),Qt=document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT,null,!1);function te(t){var e=[];for(Zt.currentNode=t,t=Zt.firstChild();t;)e.push(t),t=Zt.nextSibling();return e}var ee={parentNode:function(t){return Zt.currentNode=t,Zt.parentNode()},firstChild:function(t){return Zt.currentNode=t,Zt.firstChild()},lastChild:function(t){return Zt.currentNode=t,Zt.lastChild()},previousSibling:function(t){return Zt.currentNode=t,Zt.previousSibling()},nextSibling:function(t){return Zt.currentNode=t,Zt.nextSibling()}};ee.childNodes=te,ee.parentElement=function(t){return Qt.currentNode=t,Qt.parentNode()},ee.firstElementChild=function(t){return Qt.currentNode=t,Qt.firstChild()},ee.lastElementChild=function(t){return Qt.currentNode=t,Qt.lastChild()},ee.previousElementSibling=function(t){return Qt.currentNode=t,Qt.previousSibling()},ee.nextElementSibling=function(t){return Qt.currentNode=t,Qt.nextSibling()},ee.children=function(t){var e=[];for(Qt.currentNode=t,t=Qt.firstChild();t;)e.push(t),t=Qt.nextSibling();return bt(e)},ee.innerHTML=function(t){return Jt(t,function(t){return te(t)})},ee.textContent=function(t){switch(t.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:t=document.createTreeWalker(t,NodeFilter.SHOW_TEXT,null,!1);for(var e,n="";e=t.nextNode();)n+=e.nodeValue;return n;default:return t.nodeValue}};var ne=et.K,re=[Node.prototype,Element.prototype,HTMLElement.prototype];function oe(t){var e;t:{for(e=0;eo.assignedNodes.length&&(o.fa=!0)}o.fa&&(o.fa=!1,mn(this,e))}for(n=this.m,e=[],o=0;oe.indexOf(r))||e.push(r);for(n=0;n "+e}))}return{value:t=t.replace(Wo,function(t,e,n){return'[dir="'+n+'"] '+e+", "+e+'[dir="'+n+'"]'}),Va:e,stop:i}}(i,o,e,n),r=r||t.stop,o=t.Va,i=t.value),o+i}),o&&(t=jo(t)),t},xo.prototype.c=function(t){return t.match(Ho)?this.b(t,Ro):Ao(t.trim(),Ro)},i.Object.defineProperties(xo.prototype,{a:{configurable:!0,enumerable:!0,get:function(){return"style-scope"}}});var Po=/:(nth[-\w]+)\(([^)]+)\)/,Ro=":not(.style-scope)",Lo=",",Io=/(^|[\s>+~]+)((?:\[.+?\]|[^\s>+~=[])+)/g,Do=/[[.:#*]/,Fo=":host",qo=":root",Ho="::slotted",Uo=new RegExp("^("+Ho+")"),Bo=/(:host)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,zo=/(?:::slotted)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,Wo=/(.*):dir\((?:(ltr|rtl))\)/,Vo=".",Xo=":",$o="class",Yo="should_not_match",Go=new xo;function Ko(t,e,n,r){this.M=t||null,this.b=e||null,this.ua=n||[],this.U=null,this.Y=r||"",this.a=this.I=this.O=null}function Jo(t){return t?t.__styleInfo:null}function Zo(t,e){return t.__styleInfo=e}function Qo(t){var e=this.matches||this.matchesSelector||this.mozMatchesSelector||this.msMatchesSelector||this.oMatchesSelector||this.webkitMatchesSelector;return e&&e.call(this,t)}Ko.prototype.c=function(){return this.M},Ko.prototype._getStyleRules=Ko.prototype.c;var ti=navigator.userAgent.match("Trident");function ei(){}function ni(t){if(!t.C){var e={},n={};ri(t,n)&&(e.L=n,t.rules=null),e.cssText=t.parsedCssText.replace(ho,"").replace(ao,""),t.C=e}}function ri(t,e){var n=t.C;if(!n){n=t.parsedCssText;for(var r;t=ao.exec(n);)"inherit"===(r=(t[2]||t[3]).trim())&&"unset"===r||(e[t[1].trim()]=r),r=!0;return r}if(n.L)return Object.assign(e,n.L),!0}function oi(t,e,n){return e&&(e=0<=e.indexOf(";")?ii(t,e,n):function t(e,n){var r=e.indexOf("var(");if(-1===r)return n(e,"","","");t:{for(var o=0,i=r+3,s=e.length;i *"===i||"html"===i,a=0===i.indexOf(":host")&&!s;"shady"===n&&(a=!(s=i===o+" > *."+o||-1!==i.indexOf("html"))&&0===i.indexOf(o)),"shadow"===n&&(s=":host > *"===i||"html"===i,a=a&&!s),(s||a)&&(n=o,a&&(e.G||(e.G=ko(Go,e,Go.b,t?Vo+t:"",o)),n=e.G||o),r({gb:n,ab:a,Db:s}))}}(t,e,o,function(o){Qo.call(t.rb||t,o.gb)&&(o.ab?ri(e,n):ri(e,r))})},null,!0),{fb:r,Za:n}}function ai(t,e,n,r){var o=So(e),i=No(o.is,o.Y),s=new RegExp("(?:^|[^.#[:])"+(e.extends?"\\"+i.slice(0,-1)+"\\]":i)+"($|[.:[\\s>+~])"),a=function(t,e){t=t.b;var n={};if(!oo&&t)for(var r=0,o=t[r];r=c._useCount&&c.parentNode&&c.parentNode.removeChild(c)),oo?i.a?(i.a.textContent=o,r=i.a):o&&(r=go(o,a,t.shadowRoot,i.b)):r?r.parentNode||(ti&&-1e&&-1==[34,35,60,62,63,96].indexOf(e)?t:encodeURIComponent(t)}function r(t){var e=t.charCodeAt(0);return 32e&&-1==[34,35,60,62,96].indexOf(e)?t:encodeURIComponent(t)}function o(t,o,s){function a(t){m.push(t)}var u=o||"scheme start",p=0,d="",y=!1,v=!1,m=[];t:for(;(void 0!=t[p-1]||0==p)&&!this.i;){var b=t[p];switch(u){case"scheme start":if(!b||!f.test(b)){if(o){a("Invalid scheme.");break t}d="",u="no scheme";continue}d+=b.toLowerCase(),u="scheme";break;case"scheme":if(b&&h.test(b))d+=b.toLowerCase();else{if(":"!=b){if(o){void 0!=b&&a("Code point not allowed in scheme: "+b);break t}d="",p=0,u="no scheme";continue}if(this.h=d,d="",o)break t;void 0!==c[this.h]&&(this.F=!0),u="file"==this.h?"relative":this.F&&s&&s.h==this.h?"relative or authority":this.F?"authority first slash":"scheme data"}break;case"scheme data":"?"==b?(this.s="?",u="query"):"#"==b?(this.D="#",u="fragment"):void 0!=b&&"\t"!=b&&"\n"!=b&&"\r"!=b&&(this.ra+=n(b));break;case"no scheme":if(s&&void 0!==c[s.h]){u="relative";continue}a("Missing scheme."),i.call(this),this.i=!0;break;case"relative or authority":if("/"!=b||"/"!=t[p+1]){a("Expected /, got: "+b),u="relative";continue}u="authority ignore slashes";break;case"relative":if(this.F=!0,"file"!=this.h&&(this.h=s.h),void 0==b){this.j=s.j,this.o=s.o,this.l=s.l.slice(),this.s=s.s,this.u=s.u,this.g=s.g;break t}if("/"==b||"\\"==b)"\\"==b&&a("\\ is an invalid code point."),u="relative slash";else if("?"==b)this.j=s.j,this.o=s.o,this.l=s.l.slice(),this.s="?",this.u=s.u,this.g=s.g,u="query";else{if("#"!=b){u=t[p+1];var g=t[p+2];("file"!=this.h||!f.test(b)||":"!=u&&"|"!=u||void 0!=g&&"/"!=g&&"\\"!=g&&"?"!=g&&"#"!=g)&&(this.j=s.j,this.o=s.o,this.u=s.u,this.g=s.g,this.l=s.l.slice(),this.l.pop()),u="relative path";continue}this.j=s.j,this.o=s.o,this.l=s.l.slice(),this.s=s.s,this.D="#",this.u=s.u,this.g=s.g,u="fragment"}break;case"relative slash":if("/"!=b&&"\\"!=b){"file"!=this.h&&(this.j=s.j,this.o=s.o,this.u=s.u,this.g=s.g),u="relative path";continue}"\\"==b&&a("\\ is an invalid code point."),u="file"==this.h?"file host":"authority ignore slashes";break;case"authority first slash":if("/"!=b){a("Expected '/', got: "+b),u="authority ignore slashes";continue}u="authority second slash";break;case"authority second slash":if(u="authority ignore slashes","/"!=b){a("Expected '/', got: "+b);continue}break;case"authority ignore slashes":if("/"!=b&&"\\"!=b){u="authority";continue}a("Expected authority, got: "+b);break;case"authority":if("@"==b){for(y&&(a("@ already seen."),d+="%40"),y=!0,b=0;b