jekyll-theme-hydejack 7.5.1 → 7.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/_includes/footer.html +1 -1
- data/_includes/head/meta.html +1 -1
- data/_includes/head/styles.html +1 -1
- data/_includes/header.txt +1 -1
- data/_includes/scripts.html +1 -1
- data/_layouts/compress.html +1 -1
- data/_layouts/list.html +1 -11
- data/assets/css/{hydejack-7.5.1.css → hydejack-7.5.2.css} +0 -0
- data/assets/img/COLOURlovers.com-Hydejack.png +0 -0
- data/assets/img/caleb-george-old.jpg +0 -0
- data/assets/img/caleb-george.jpg +0 -0
- data/assets/img/docs/google-fonts.png +0 -0
- data/assets/js/hydejack-7.5.2.js +249 -0
- data/assets/version.json +1 -1
- metadata +9 -7
- data/assets/img/oldschool-bg.jpg +0 -0
- data/assets/img/pretentious-bg.jpg +0 -0
- data/assets/js/hydejack-7.5.1.js +0 -249
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1a69f51f687f8e464c1d1ea805b3815026efa6de
|
4
|
+
data.tar.gz: 824c4cb45b51f9a185073a63c5097d8d17d5df18
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c8ba9b55b00635f292c9a10d6c293c92f036e217d2efdcf7146eb391837b0f3038a0068a29f1935ee71e2ad93279dfb7f620b73a4a3048cf6af848d6b7e1c37b
|
7
|
+
data.tar.gz: c2cbe14af1e72255a8905fd038baa0d3942b7b89bf2181cf59039c49ee66e421b189c8b6de2e0c4ff3504e06c18c69ae73df22320f4f16d089eeaeaecc6db664
|
data/README.md
CHANGED
@@ -103,17 +103,17 @@ This table details what is and isn't included in each respective version.
|
|
103
103
|
|
104
104
|
[license]: LICENSE.md
|
105
105
|
[pro]: licenses/PRO.md
|
106
|
-
[docs]: docs/7.5.
|
106
|
+
[docs]: docs/7.5.2/index.md
|
107
107
|
|
108
|
-
[kit]: https://github.com/qwtel/hydejack-starter-kit/archive/v7.5.
|
108
|
+
[kit]: https://github.com/qwtel/hydejack-starter-kit/archive/v7.5.2.zip
|
109
109
|
[src]: https://github.com/qwtel/hydejack
|
110
110
|
[git]: https://github.com/qwtel/hydejack-starter-kit
|
111
111
|
[gem]: https://rubygems.org/gems/jekyll-theme-hydejack
|
112
112
|
[buy]: https://app.simplegoods.co/i/AQTTVBOE
|
113
113
|
|
114
114
|
[gpss]: https://developers.google.com/speed/pagespeed/insights/?url=https%3A%2F%2Fqwtel.com%2Fhydejack%2F
|
115
|
-
[wiki]: https://github.com/qwtel/hydejack/blob/master/docs/7.5.
|
116
|
-
[pdf]: https://github.com/qwtel/hydejack/releases/download/v7.5.
|
115
|
+
[wiki]: https://github.com/qwtel/hydejack/blob/master/docs/7.5.2/index.md
|
116
|
+
[pdf]: https://github.com/qwtel/hydejack/releases/download/v7.5.2/Documentation._.Hydejack.pdf
|
117
117
|
[hy-push-state]: https://qwtel.com/hy-push-state/
|
118
118
|
[hy-drawer]: https://qwtel.com/hy-drawer/
|
119
119
|
[rouge]: http://rouge.jneen.net
|
data/_includes/footer.html
CHANGED
@@ -11,6 +11,6 @@
|
|
11
11
|
{% endfor %}
|
12
12
|
</small></nav>
|
13
13
|
{% endif %}
|
14
|
-
<p><small>Powered by <a class="external" href="https://qwtel.com/hydejack/">Hydejack</a> v<span id="_version">7.5.
|
14
|
+
<p><small>Powered by <a class="external" href="https://qwtel.com/hydejack/">Hydejack</a> v<span id="_version">7.5.2</span></small></p>
|
15
15
|
<hr class="sr-only"/>
|
16
16
|
</footer>
|
data/_includes/head/meta.html
CHANGED
data/_includes/head/styles.html
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
<!--[if gt IE 8]><!---->
|
2
|
-
{% capture style_url %}{% link assets/css/hydejack-7.5.
|
2
|
+
{% capture style_url %}{% link assets/css/hydejack-7.5.2.css %}{% endcapture %}
|
3
3
|
|
4
4
|
{% if site.hydejack.no_inline_css or jekyll.environment == 'development' %}
|
5
5
|
<link rel="stylesheet" href="{{ style_url | relative_url }}">
|
data/_includes/header.txt
CHANGED
data/_includes/scripts.html
CHANGED
@@ -26,7 +26,7 @@
|
|
26
26
|
{% endif %}
|
27
27
|
|
28
28
|
<!--[if gt IE 9]><!---->
|
29
|
-
{% capture js_url %}{% link assets/js/hydejack-7.5.
|
29
|
+
{% capture js_url %}{% link assets/js/hydejack-7.5.2.js %}{% endcapture %}
|
30
30
|
<script>loadJSDeferred('{{ js_url | relative_url }}');</script>
|
31
31
|
{% include my-scripts.html %}
|
32
32
|
<!--<![endif]-->
|
data/_layouts/compress.html
CHANGED
@@ -10,6 +10,6 @@
|
|
10
10
|
/\___/ \ \____/
|
11
11
|
\/__/ \/___/
|
12
12
|
|
13
|
-
Powered by Hydejack v7.5.
|
13
|
+
Powered by Hydejack v7.5.2 <https://qwtel.com/hydejack/>
|
14
14
|
-->{% capture _LINE_FEED %}
|
15
15
|
{% endcapture %}{% if site.compress_html.ignore.envs contains jekyll.environment %}{{ content }}{% else %}{% capture _content %}{{ content }}{% endcapture %}{% assign _profile = site.compress_html.profile %}{% if site.compress_html.endings == "all" %}{% assign _endings = "html head body li dt dd p rt rp optgroup option colgroup caption thead tbody tfoot tr td th" | split: " " %}{% else %}{% assign _endings = site.compress_html.endings %}{% endif %}{% for _element in _endings %}{% capture _end %}</{{ _element }}>{% endcapture %}{% assign _content = _content | remove: _end %}{% endfor %}{% if _profile and _endings %}{% assign _profile_endings = _content | size | plus: 1 %}{% endif %}{% for _element in site.compress_html.startings %}{% capture _start %}<{{ _element }}>{% endcapture %}{% assign _content = _content | remove: _start %}{% endfor %}{% if _profile and site.compress_html.startings %}{% assign _profile_startings = _content | size | plus: 1 %}{% endif %}{% if site.compress_html.comments == "all" %}{% assign _comments = "<!-- -->" | split: " " %}{% else %}{% assign _comments = site.compress_html.comments %}{% endif %}{% if _comments.size == 2 %}{% capture _comment_befores %}.{{ _content }}{% endcapture %}{% assign _comment_befores = _comment_befores | split: _comments.first %}{% for _comment_before in _comment_befores %}{% if forloop.first %}{% continue %}{% endif %}{% capture _comment_outside %}{% if _carry %}{{ _comments.first }}{% endif %}{{ _comment_before }}{% endcapture %}{% capture _comment %}{% unless _carry %}{{ _comments.first }}{% endunless %}{{ _comment_outside | split: _comments.last | first }}{% if _comment_outside contains _comments.last %}{{ _comments.last }}{% assign _carry = false %}{% else %}{% assign _carry = true %}{% endif %}{% endcapture %}{% assign _content = _content | remove_first: _comment %}{% endfor %}{% if _profile %}{% assign _profile_comments = _content | size | plus: 1 %}{% endif %}{% endif %}{% assign _pre_befores = _content | split: "<pre" %}{% assign _content = "" %}{% for _pre_before in _pre_befores %}{% assign _pres = _pre_before | split: "</pre>" %}{% assign _pres_after = "" %}{% if _pres.size != 0 %}{% if site.compress_html.blanklines %}{% assign _lines = _pres.last | split: _LINE_FEED %}{% capture _pres_after %}{% for _line in _lines %}{% assign _trimmed = _line | split: " " | join: " " %}{% if _trimmed != empty or forloop.last %}{% unless forloop.first %}{{ _LINE_FEED }}{% endunless %}{{ _line }}{% endif %}{% endfor %}{% endcapture %}{% else %}{% assign _pres_after = _pres.last | split: " " | join: " " %}{% endif %}{% endif %}{% capture _content %}{{ _content }}{% if _pre_before contains "</pre>" %}<pre{{ _pres.first }}</pre>{% endif %}{% unless _pre_before contains "</pre>" and _pres.size == 1 %}{{ _pres_after }}{% endunless %}{% endcapture %}{% endfor %}{% if _profile %}{% assign _profile_collapse = _content | size | plus: 1 %}{% endif %}{% if site.compress_html.clippings == "all" %}{% assign _clippings = "html head title base link meta style body article section nav aside h1 h2 h3 h4 h5 h6 hgroup header footer address p hr blockquote ol ul li dl dt dd figure figcaption main div table caption colgroup col tbody thead tfoot tr td th" | split: " " %}{% else %}{% assign _clippings = site.compress_html.clippings %}{% endif %}{% for _element in _clippings %}{% assign _edges = " <e;<e; </e>;</e>;</e> ;</e>" | replace: "e", _element | split: ";" %}{% assign _content = _content | replace: _edges[0], _edges[1] | replace: _edges[2], _edges[3] | replace: _edges[4], _edges[5] %}{% endfor %}{% if _profile and _clippings %}{% assign _profile_clippings = _content | size | plus: 1 %}{% endif %}{{ _content }}{% if _profile %} <table id="compress_html_profile_{{ site.time | date: "%Y%m%d" }}" class="compress_html_profile"> <thead> <tr> <td>Step <td>Bytes <tbody> <tr> <td>raw <td>{{ content | size }}{% if _profile_endings %} <tr> <td>endings <td>{{ _profile_endings }}{% endif %}{% if _profile_startings %} <tr> <td>startings <td>{{ _profile_startings }}{% endif %}{% if _profile_comments %} <tr> <td>comments <td>{{ _profile_comments }}{% endif %}{% if _profile_collapse %} <tr> <td>collapse <td>{{ _profile_collapse }}{% endif %}{% if _profile_clippings %} <tr> <td>clippings <td>{{ _profile_clippings }}{% endif %} </table>{% endif %}{% endif %}</html>
|
data/_layouts/list.html
CHANGED
@@ -22,17 +22,7 @@
|
|
22
22
|
layout: base
|
23
23
|
---
|
24
24
|
|
25
|
-
{% assign
|
26
|
-
{% if category %}
|
27
|
-
{% assign posts = site.categories[page.slug] %}
|
28
|
-
{% else %}
|
29
|
-
{% assign tag = site.featured_tags | where: "slug", page.slug | first %}
|
30
|
-
{% if tag %}
|
31
|
-
{% assign posts = site.tags[page.slug] %}
|
32
|
-
{% else %}
|
33
|
-
{% assign posts = site.posts %}
|
34
|
-
{% endif %}
|
35
|
-
{% endif %}
|
25
|
+
{% assign posts = site.categories[page.slug] | default:site.tags[page.slug] | default:site.posts %}
|
36
26
|
|
37
27
|
{% if page.title.size > 0 %}
|
38
28
|
<header>
|
File without changes
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,249 @@
|
|
1
|
+
/*!
|
2
|
+
* __ __ __ __
|
3
|
+
* /\ \/\ \ /\ \ __ /\ \
|
4
|
+
* \ \ \_\ \ __ __ \_\ \ __ /\_\ __ ___ \ \ \/'\
|
5
|
+
* \ \ _ \ /\ \/\ \ /'_` \ /'__`\ \/\ \ /'__`\ /'___\\ \ , <
|
6
|
+
* \ \ \ \ \\ \ \_\ \ /\ \L\ \ /\ __/ \ \ \ /\ \L\.\_ /\ \__/ \ \ \\`\
|
7
|
+
* \ \_\ \_\\/`____ \\ \___,_\\ \____\ _\ \ \\ \__/.\_\\ \____\ \ \_\ \_\
|
8
|
+
* \/_/\/_/ `/___/> \\/__,_ / \/____//\ \_\ \\/__/\/_/ \/____/ \/_/\/_/
|
9
|
+
* /\___/ \ \____/
|
10
|
+
* \/__/ \/___/
|
11
|
+
*
|
12
|
+
* Powered by Hydejack v7.5.2 <https://qwtel.com/hydejack/>
|
13
|
+
*/
|
14
|
+
!function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=27)}([function(t,e){var n=t.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},function(t,e,n){n(46),t.exports=n(0).Function.bind},function(t,e,n){var r=n(4),o=n(0),i=n(7),s=n(40),u=n(15),a=function t(e,n,a){var c,l,f,h,p=e&t.F,d=e&t.G,y=e&t.S,b=e&t.P,v=e&t.B,m=d?r:y?r[n]||(r[n]={}):(r[n]||{}).prototype,g=d?o:o[n]||(o[n]={}),w=g.prototype||(g.prototype={});d&&(a=n);for(c in a)l=!p&&m&&void 0!==m[c],f=(l?m:a)[c],h=v&&l?u(f,r):b&&"function"==typeof f?u(Function.call,f):f,m&&s(m,c,f,e&t.U),g[c]!=f&&i(g,c,h),b&&w[c]!=f&&(w[c]=f)};r.core=o,a.F=1,a.G=2,a.S=4,a.P=8,a.B=16,a.W=32,a.U=64,a.R=128,t.exports=a},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){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){var r=n(21)("wks"),o=n(9),i=n(4).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,n){var r=n(34),o=n(39);t.exports=n(8)?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){t.exports=!n(5)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},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){var r=n(11);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(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){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){n(33),t.exports=n(0).Array.forEach},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var r=n(16);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){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){var r=n(15),o=n(10),i=n(18),s=n(19),u=n(41);t.exports=function(t,e){var n=1==t,a=2==t,c=3==t,l=4==t,f=6==t,h=5==t||f,p=e||u;return function(e,u,d){for(var y,b,v=i(e),m=o(v),g=r(u,d,3),w=s(m.length),_=0,x=n?p(e,w):a?p(e,0):void 0;w>_;_++)if((h||_ in m)&&(y=m[_],b=g(y,_,v),t))if(n)x[_]=b;else if(b)switch(t){case 3:return!0;case 5:return y;case 6:return _;case 2:x.push(y)}else if(l)return!1;return f?-1:c||l?l:x}}},function(t,e,n){var r=n(12);t.exports=function(t){return Object(r(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){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(0),o=n(4),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n(44)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(t,e,n){var r=n(10),o=n(12);t.exports=function(t){return r(o(t))}},function(t,e,n){var r=n(22),o=n(19),i=n(59);t.exports=function(t){return function(e,n,s){var u,a=r(e),c=o(a.length),l=i(s,c);if(t&&n!=n){for(;c>l;)if((u=a[l++])!=u)return!0}else for(;c>l;l++)if((t||l in a)&&a[l]===n)return t||l||0;return!t&&-1}}},function(t,e,n){var r=n(6)("unscopables"),o=Array.prototype;void 0==o[r]&&n(7)(o,r,{}),t.exports=function(t){o[r][t]=!0}},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){function r(t,e){return Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)+Math.pow(t[2]-e[2],2)}var o=n(25),i={};for(var s in o)o.hasOwnProperty(s)&&(i[o[s]]=s);var u=t.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var a in u)if(u.hasOwnProperty(a)){if(!("channels"in u[a]))throw new Error("missing channels property: "+a);if(!("labels"in u[a]))throw new Error("missing channel labels property: "+a);if(u[a].labels.length!==u[a].channels)throw new Error("channel and label counts mismatch: "+a);var c=u[a].channels,l=u[a].labels;delete u[a].channels,delete u[a].labels,Object.defineProperty(u[a],"channels",{value:c}),Object.defineProperty(u[a],"labels",{value:l})}u.rgb.hsl=function(t){var e,n,r,o=t[0]/255,i=t[1]/255,s=t[2]/255,u=Math.min(o,i,s),a=Math.max(o,i,s),c=a-u;return a===u?e=0:o===a?e=(i-s)/c:i===a?e=2+(s-o)/c:s===a&&(e=4+(o-i)/c),e=Math.min(60*e,360),e<0&&(e+=360),r=(u+a)/2,n=a===u?0:r<=.5?c/(a+u):c/(2-a-u),[e,100*n,100*r]},u.rgb.hsv=function(t){var e,n,r,o=t[0],i=t[1],s=t[2],u=Math.min(o,i,s),a=Math.max(o,i,s),c=a-u;return n=0===a?0:c/a*1e3/10,a===u?e=0:o===a?e=(i-s)/c:i===a?e=2+(s-o)/c:s===a&&(e=4+(o-i)/c),e=Math.min(60*e,360),e<0&&(e+=360),r=a/255*1e3/10,[e,n,r]},u.rgb.hwb=function(t){var e=t[0],n=t[1],r=t[2],o=u.rgb.hsl(t)[0],i=1/255*Math.min(e,Math.min(n,r));return r=1-1/255*Math.max(e,Math.max(n,r)),[o,100*i,100*r]},u.rgb.cmyk=function(t){var e,n,r,o,i=t[0]/255,s=t[1]/255,u=t[2]/255;return o=Math.min(1-i,1-s,1-u),e=(1-i-o)/(1-o)||0,n=(1-s-o)/(1-o)||0,r=(1-u-o)/(1-o)||0,[100*e,100*n,100*r,100*o]},u.rgb.keyword=function(t){var e=i[t];if(e)return e;var n,s=1/0;for(var u in o)if(o.hasOwnProperty(u)){var a=o[u],c=r(t,a);c<s&&(s=c,n=u)}return n},u.keyword.rgb=function(t){return o[t]},u.rgb.xyz=function(t){var e=t[0]/255,n=t[1]/255,r=t[2]/255;return e=e>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92,r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92,[100*(.4124*e+.3576*n+.1805*r),100*(.2126*e+.7152*n+.0722*r),100*(.0193*e+.1192*n+.9505*r)]},u.rgb.lab=function(t){var e,n,r,o=u.rgb.xyz(t),i=o[0],s=o[1],a=o[2];return i/=95.047,s/=100,a/=108.883,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,s=s>.008856?Math.pow(s,1/3):7.787*s+16/116,a=a>.008856?Math.pow(a,1/3):7.787*a+16/116,e=116*s-16,n=500*(i-s),r=200*(s-a),[e,n,r]},u.hsl.rgb=function(t){var e,n,r,o,i,s=t[0]/360,u=t[1]/100,a=t[2]/100;if(0===u)return i=255*a,[i,i,i];n=a<.5?a*(1+u):a+u-a*u,e=2*a-n,o=[0,0,0];for(var c=0;c<3;c++)r=s+1/3*-(c-1),r<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},u.hsl.hsv=function(t){var e,n,r=t[0],o=t[1]/100,i=t[2]/100,s=o,u=Math.max(i,.01);return i*=2,o*=i<=1?i:2-i,s*=u<=1?u:2-u,n=(i+o)/2,e=0===i?2*s/(u+s):2*o/(i+o),[r,100*e,100*n]},u.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),u=255*r*(1-n*i),a=255*r*(1-n*(1-i));switch(r*=255,o){case 0:return[r,a,s];case 1:return[u,r,s];case 2:return[s,r,a];case 3:return[s,u,r];case 4:return[a,s,r];case 5:return[r,s,u]}},u.hsv.hsl=function(t){var e,n,r,o=t[0],i=t[1]/100,s=t[2]/100,u=Math.max(s,.01);return r=(2-i)*s,e=(2-i)*u,n=i*u,n/=e<=1?e:2-e,n=n||0,r/=2,[o,100*n,100*r]},u.hwb.rgb=function(t){var e,n,r,o,i=t[0]/360,s=t[1]/100,u=t[2]/100,a=s+u;a>1&&(s/=a,u/=a),e=Math.floor(6*i),n=1-u,r=6*i-e,0!=(1&e)&&(r=1-r),o=s+r*(n-s);var c,l,f;switch(e){default:case 6:case 0:c=n,l=o,f=s;break;case 1:c=o,l=n,f=s;break;case 2:c=s,l=n,f=o;break;case 3:c=s,l=o,f=n;break;case 4:c=o,l=s,f=n;break;case 5:c=n,l=s,f=o}return[255*c,255*l,255*f]},u.cmyk.rgb=function(t){var e,n,r,o=t[0]/100,i=t[1]/100,s=t[2]/100,u=t[3]/100;return e=1-Math.min(1,o*(1-u)+u),n=1-Math.min(1,i*(1-u)+u),r=1-Math.min(1,s*(1-u)+u),[255*e,255*n,255*r]},u.xyz.rgb=function(t){var e,n,r,o=t[0]/100,i=t[1]/100,s=t[2]/100;return e=3.2406*o+-1.5372*i+-.4986*s,n=-.9689*o+1.8758*i+.0415*s,r=.0557*o+-.204*i+1.057*s,e=e>.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,e=Math.min(Math.max(0,e),1),n=Math.min(Math.max(0,n),1),r=Math.min(Math.max(0,r),1),[255*e,255*n,255*r]},u.xyz.lab=function(t){var e,n,r,o=t[0],i=t[1],s=t[2];return o/=95.047,i/=100,s/=108.883,o=o>.008856?Math.pow(o,1/3):7.787*o+16/116,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,s=s>.008856?Math.pow(s,1/3):7.787*s+16/116,e=116*i-16,n=500*(o-i),r=200*(i-s),[e,n,r]},u.lab.xyz=function(t){var e,n,r,o=t[0],i=t[1],s=t[2];n=(o+16)/116,e=i/500+n,r=n-s/200;var u=Math.pow(n,3),a=Math.pow(e,3),c=Math.pow(r,3);return n=u>.008856?u:(n-16/116)/7.787,e=a>.008856?a:(e-16/116)/7.787,r=c>.008856?c:(r-16/116)/7.787,e*=95.047,n*=100,r*=108.883,[e,n,r]},u.lab.lch=function(t){var e,n,r,o=t[0],i=t[1],s=t[2];return e=Math.atan2(s,i),n=360*e/2/Math.PI,n<0&&(n+=360),r=Math.sqrt(i*i+s*s),[o,r,n]},u.lch.lab=function(t){var e,n,r,o=t[0],i=t[1],s=t[2];return r=s/360*2*Math.PI,e=i*Math.cos(r),n=i*Math.sin(r),[o,e,n]},u.rgb.ansi16=function(t){var e=t[0],n=t[1],r=t[2],o=1 in arguments?arguments[1]:u.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},u.hsv.ansi16=function(t){return u.rgb.ansi16(u.hsv.rgb(t),t[2])},u.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)},u.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,e];var n=.5*(1+~~(t>50));return[(1&e)*n*255,(e>>1&1)*n*255,(e>>2&1)*n*255]},u.ansi256.rgb=function(t){if(t>=232){var e=10*(t-232)+8;return[e,e,e]}t-=16;var n;return[Math.floor(t/36)/5*255,Math.floor((n=t%36)/6)/5*255,n%6/5*255]},u.rgb.hex=function(t){var e=((255&Math.round(t[0]))<<16)+((255&Math.round(t[1]))<<8)+(255&Math.round(t[2])),n=e.toString(16).toUpperCase();return"000000".substring(n.length)+n},u.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]},u.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),u=Math.min(Math.min(r,o),i),a=s-u;return e=a<1?u/(1-a):0,n=a<=0?0:s===r?(o-i)/a%6:s===o?2+(i-r)/a:4+(r-o)/a+4,n/=6,n%=1,[360*n,100*a,100*e]},u.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),r<1&&(o=(n-.5*r)/(1-r)),[t[0],100*r,100*o]},u.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]},u.hcg.rgb=function(t){var e=t[0]/360,n=t[1]/100,r=t[2]/100;if(0===n)return[255*r,255*r,255*r];var o=[0,0,0],i=e%1*6,s=i%1,u=1-s,a=0;switch(Math.floor(i)){case 0:o[0]=1,o[1]=s,o[2]=0;break;case 1:o[0]=u,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=s;break;case 3:o[0]=0,o[1]=u,o[2]=1;break;case 4:o[0]=s,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=u}return a=(1-n)*r,[255*(n*o[0]+a),255*(n*o[1]+a),255*(n*o[2]+a)]},u.hcg.hsv=function(t){var e=t[1]/100,n=t[2]/100,r=e+n*(1-e),o=0;return r>0&&(o=e/r),[t[0],100*o,100*r]},u.hcg.hsl=function(t){var e=t[1]/100,n=t[2]/100,r=n*(1-e)+.5*e,o=0;return r>0&&r<.5?o=e/(2*r):r>=.5&&r<1&&(o=e/(2*(1-r))),[t[0],100*o,100*r]},u.hcg.hwb=function(t){var e=t[1]/100,n=t[2]/100,r=e+n*(1-e);return[t[0],100*(r-e),100*(1-r)]},u.hwb.hcg=function(t){var e=t[1]/100,n=t[2]/100,r=1-n,o=r-e,i=0;return o<1&&(i=(r-o)/(1-o)),[t[0],100*o,100*i]},u.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]},u.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]},u.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]},u.gray.hsl=u.gray.hsv=function(t){return[0,0,t[0]]},u.gray.hwb=function(t){return[0,100,t[0]]},u.gray.cmyk=function(t){return[0,0,0,t[0]]},u.gray.lab=function(t){return[t[0],0,0]},u.gray.hex=function(t){var e=255&Math.round(t[0]/100*255),n=(e<<16)+(e<<8)+e,r=n.toString(16).toUpperCase();return"000000".substring(r.length)+r},u.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]}},function(t,e,n){"use strict";function r(t,e){function n(){this.constructor=t}zn(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function o(t){return"function"==typeof t}function i(t){setTimeout(function(){throw t})}function s(t){return null!=t&&"object"===(void 0===t?"undefined":Vn(t))}function u(){try{return Hn.apply(this,arguments)}catch(t){return Yn.e=t,Yn}}function a(t){return Hn=t,u}function c(t){return t.reduce(function(t,e){return t.concat(e instanceof Gn?e.errors:e)},[])}function l(t){return t instanceof tr||"syncErrorThrowable"in t&&t[Zn]}function f(t,e,n){if(t){if(t instanceof tr)return t;if(t[Zn])return t[Zn]()}return t||e||n?new tr(t,e,n):new tr(Xn)}function h(){}function p(t){return t?1===t.length?t[0]:function(e){return t.reduce(function(t,e){return e(t)},e)}:h}function d(t){if(t||(t=Wn.Promise||Promise),!t)throw new Error("no Promise impl found");return t}function y(){return function(t){return t.lift(new cr(t))}}function b(t){return t?v(t):xr}function v(t){return new rr(function(e){return t.schedule(function(){return e.complete()})})}function m(t){return t&&"function"==typeof t.schedule}function g(t,e){return new rr(e?function(n){var r=new Jn,o=0;return r.add(e.schedule(function(){if(o===t.length)return void n.complete();n.next(t[o++]),n.closed||r.add(this.schedule())})),r}:Sr(t))}function w(t){var e=new rr(function(e){e.next(t),e.complete()});return e._isScalar=!0,e.value=t,e}function _(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[t.length-1];switch(m(n)?t.pop():n=void 0,t.length){case 0:return b(n);case 1:return n?g(t,n):w(t[0]);default:return g(t,n)}}function x(t,e){return new rr(e?function(n){return e.schedule(S,0,{error:t,subscriber:n})}:function(e){return e.error(t)})}function S(t){var e=t.error;t.subscriber.error(e)}function E(t,e){return void 0===e&&(e=0),function(n){return n.lift(new Or(t,e))}}function O(t){return t}function j(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new Ir(t,e))}}function k(t){return t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}function T(t,e,n,r){var o=new qr(t,n,r);return Wr(e)(o)}function A(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=null,r=null;return m(t[t.length-1])&&(r=t.pop()),"function"==typeof t[t.length-1]&&(n=t.pop()),1===t.length&&$n(t[0])&&(t=t[0]),g(t,r).lift(new $r(n))}function P(t){return t&&"function"==typeof t[nr]}function C(t){return t&&"function"==typeof t[Ur]}function M(t,e){return new rr(e?function(n){var r=new Jn;return r.add(e.schedule(function(){return t.then(function(t){r.add(e.schedule(function(){n.next(t),r.add(e.schedule(function(){return n.complete()}))}))},function(t){r.add(e.schedule(function(){return n.error(t)}))})})),r}:Fr(t))}function N(t,e){if(!t)throw new Error("Iterable cannot be null");return new rr(e?function(n){var r,o=new Jn;return o.add(function(){r&&"function"==typeof r.return&&r.return()}),o.add(e.schedule(function(){r=t[Ur](),o.add(e.schedule(function(){if(!n.closed){var t,e;try{var o=r.next();t=o.value,e=o.done}catch(t){return void n.error(t)}e?n.complete():(n.next(t),this.schedule())}}))})),o}:Hr(t))}function R(t,e){return new rr(e?function(n){var r=new Jn;return r.add(e.schedule(function(){var o=t[nr]();r.add(o.subscribe({next:function(t){r.add(e.schedule(function(){return n.next(t)}))},error:function(t){r.add(e.schedule(function(){return n.error(t)}))},complete:function(){r.add(e.schedule(function(){return n.complete()}))}}))})),r}:zr(t))}function I(t,e){if(!e)return t instanceof rr?t:new rr(Wr(t));if(null!=t){if(P(t))return R(t,e);if(k(t))return M(t,e);if(Br(t))return g(t,e);if(C(t)||"string"==typeof t)return N(t,e)}throw new TypeError((null!==t&&(void 0===t?"undefined":Yr(t))||t)+" is not observable")}function L(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof e?function(r){return r.pipe(L(function(n,r){return I(t(n,r)).pipe(j(function(t,o){return e(n,t,r,o)}))},n))}:("number"==typeof e&&(n=e),function(e){return e.lift(new Gr(t,n))})}function D(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),L(O,t)}function q(){return D(1)}function F(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 1===t.length||2===t.length&&m(t[1])?I(t[0]):q()(_.apply(void 0,t))}function U(t){return new rr(function(e){var n;try{n=t()}catch(t){return void e.error(t)}return(n?I(n):b()).subscribe(e)})}function H(t,e,n,r){return o(n)&&(r=n,n=void 0),r?H(t,e,n).pipe(j(function(t){return $n(t)?r.apply(void 0,t):r(t)})):new rr(function(r){function o(t){arguments.length>1?r.next(Array.prototype.slice.call(arguments)):r.next(t)}z(t,e,o,r,n)})}function z(t,e,n,r,o){var i;if(X(t)){var s=t;t.addEventListener(e,n,o),i=function(){return s.removeEventListener(e,n,o)}}else if(W(t)){var u=t;t.on(e,n),i=function(){return u.off(e,n)}}else if(B(t)){var a=t;t.addListener(e,n),i=function(){return a.removeListener(e,n)}}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(var c=0,l=t.length;c<l;c++)z(t[c],e,n,r,o)}r.add(i)}function B(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}function W(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}function X(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}function $(t){return!$n(t)&&t-parseFloat(t)+1>=0}function V(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=Number.POSITIVE_INFINITY,r=null,o=t[t.length-1];return m(o)?(r=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof o&&(n=t.pop()),null===r&&1===t.length&&t[0]instanceof rr?t[0]:D(n)(g(t,r))}function Y(){return Jr}function G(t,e,n){void 0===t&&(t=0);var r=-1;return $(e)?r=Number(e)<1&&1||Number(e):m(e)&&(n=e),m(n)||(n=Pr),new rr(function(e){var o=$(t)?t:+t-n.now();return n.schedule(K,o,{index:0,period:r,subscriber:e})})}function K(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)}}function J(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[t.length-1];return"function"==typeof n&&t.pop(),g(t,void 0).lift(new Zr(n))}function Z(t){var e=!0;return t.forEach(function(t){var n=window.Modernizr[t];e=e&&n}),e}function Q(){this.style.display="none",this.style.visibility="hidden"}function tt(){for(;this.firstChild;)this.removeChild(this.firstChild)}function et(t,e,n){return rr.create(function(r){var o=t.animate(e,n);return o.addEventListener("finish",function(t){r.next(t),requestAnimationFrame(r.complete.bind(r))}),function(){"finished"!==o.playState&&o.cancel()}})}function nt(){var t=void 0,e=void 0,n=new Promise(function(n,r){t=n,e=r});return n.resolve=t,n.reject=e,n}function rt(t,e){t.outerHTML=window.katex.renderToString(e,{displayMode:"math/tex; mode=display"===t.type})}function ot(t,e){try{var n=t.previousElementSibling;rt(t,e),n&&n.classList&&n.classList.contains("MathJax_Preview")&&Q.call(n)}catch(t){console.error(t)}finally{t.style.willChange=""}}function it(t){return t.textContent.replace("% <![CDATA[","").replace("%]]>","")}function st(t){ao.call(t,function(t){ot(t,it(t))})}function ut(){if(lo){var t=document.querySelectorAll('script[type^="math/tex"]');t.length&&(fo&&ho?st(t):(window.loadJSDeferred(document.getElementById("_katexJS").href,function(){(fo=!0)&&ho&&ut()}),window.loadCSS(document.getElementById("_katexCSS").href).onload=function(){ho=!0,fo&&ho&&ut()}))}}function at(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ct(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}function lt(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)}function ft(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ht(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function pt(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}function dt(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)}function yt(t){return function(e){var n=new qo(t),r=e.lift(n);return n.caught=r}}function bt(t,e){return L(t,e,1)}function vt(t){t.debouncedNext()}function mt(t,e){return function(n){return n.lift(new zo(t,e))}}function gt(t,e){return function(n){return n.lift(new Wo(t,e))}}function wt(t,e,n){return function(r){return r.lift(new $o(t,e,n))}}function _t(t){return function(e){return 0===t?b():e.lift(new Yo(t))}}function xt(t,e){return e?function(n){return n.pipe(xt(function(n,r){return I(t(n,r)).pipe(j(function(t,o){return e(n,t,r,o)}))}))}:function(e){return e.lift(new Ko(t))}}function St(t){return function(e){return e.lift(new Zo(t))}}function Et(t){return function(e){return e.lift(new ti(t))}}function Ot(t,e){return function(n){var r;if(r="function"==typeof t?t:function(){return t},"function"==typeof e)return n.lift(new ni(r,e));var o=Object.create(n,pr);return o.source=n,o.subjectFactory=r,o}}function jt(){return function(t){return t.lift(new ri)}}function kt(t,e){function n(){return!n.pred.apply(n.thisArg,arguments)}return n.pred=t,n.thisArg=e,n}function Tt(t,e){return function(n){return[gt(t,e)(n),gt(kt(t,e))(n)]}}function At(t){return function(e){return e.lift(new ii(t))}}function Pt(t){return function(e){return e.lift(new ui(t))}}function Ct(){return new ur}function Mt(){return function(t){return y()(Ot(Ct)(t))}}function Nt(t){return function(e){return e.lift(new ci(t))}}function Rt(t){return function(e){return e.lift(new fi(t))}}function It(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){var n=t[t.length-1];m(n)?t.pop():n=null;var r=t.length;return 1!==r||n?r>0?F(g(t,n),e):F(b(n),e):F(w(t[0]),e)}}function Lt(t,e){return"function"==typeof e?function(n){return n.pipe(Lt(function(n,r){return I(t(n,r)).pipe(j(function(t,o){return e(n,t,r,o)}))}))}:function(e){return e.lift(new pi(t))}}function Dt(t){return function(e){return e.lift(new yi(t))}}function qt(t){return void 0===t&&(t=Pr),j(function(e){return new vi(e,t.now())})}function Ft(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){var n;"function"==typeof t[t.length-1]&&(n=t.pop());var r=t;return e.lift(new mi(r,n))}}function Ut(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return e.lift.call(J.apply(void 0,[e].concat(t)))}}function Ht(t,e,n,r,o){return rr.create(function(i){var s=void 0,u=requestAnimationFrame(function a(c){s=s||c;var l=c-s;l<r?(i.next(t(l,e,n,r,o)),u=requestAnimationFrame(a)):(i.next(t(r,e,n,r,o)),u=requestAnimationFrame(function(){return i.complete()}))});return function(){u&&cancelAnimationFrame(u)}})}function zt(t,e,n,r){return n*Math.sin(t/r*(Math.PI/2))+e}function Bt(t){return Array.isArray(t)?t:Array.from(t)}function Wt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Xt(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}function $t(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)}function Vt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Yt(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}function Gt(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)}function Kt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Jt(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}function Zt(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)}function Qt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function te(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}function ee(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)}function ne(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function re(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}function oe(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)}function ie(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function se(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}function ue(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)}function ae(t,e){return t?t(e):e}function ce(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()}function le(t){for(var e=t,n=!1,r=!1,o=!1,i=0;i<e.length;i++){var s=e.charAt(i);n&&/[a-zA-Z]/.test(s)&&s.toUpperCase()===s?(e=e.substr(0,i)+"-"+e.substr(i),n=!1,o=r,r=!0,i++):r&&o&&/[a-zA-Z]/.test(s)&&s.toLowerCase()===s?(e=e.substr(0,i-1)+"-"+e.substr(i-1),o=r,r=!1,n=!0):(n=s.toLowerCase()===s,o=r,r=s.toUpperCase()===s)}return e}function fe(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=[].map.call(e,function(t){return t.trim()}).filter(function(t){return t.length}).join("-");return 0===r.length?"":1===r.length?r.toLowerCase():(r=le(r),r.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,function(t,e){return e.toUpperCase()}))}function he(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function pe(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}function de(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)}function ye(){var t="function"==typeof window.HTMLElement?window.HTMLElement:function(){};return Reflect.construct(t,[],this.__proto__.constructor)}function be(t){return document.createRange().createContextualFragment(t)}function ve(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function me(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}function ge(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)}function we(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}function _e(){var t=window.matchMedia(Qi).matches;window._isDesktop!==t&&(window._isDesktop=t,window._drawer.persistent=t,window._drawer.opened=t)}function xe(t){window._isDesktop||(t.preventDefault(),window._drawer.toggle())}function Se(){return io&&!navigator.standalone?[35,135]:[0,150]}function Ee(t){for(var e=this;e!==document&&e!==document.documentElement;){if(os.call(e,t))return e;e=e.parentNode}return null}function Oe(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 je(t){var e=t.hash,n=t.origin,r=t.pathname,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.location;return""!==e&&n===o.origin&&r===o.pathname}function ke(){var t=document.documentElement,e=document.body,n="scrollHeight";return t[n]||e[n]}function Te(){return window.pageYOffset||document.body.scrollTop}function Ae(t){return document.createRange().createContextualFragment(t)}function Pe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ce(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}function Me(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)}function Ne(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Re(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ie(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}function Le(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)}function De(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function qe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Fe(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}function Ue(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)}function He(){if(ds.a.XMLHttpRequest)return new ds.a.XMLHttpRequest;if(ds.a.XDomainRequest)return new ds.a.XDomainRequest;throw new Error("CORS is not supported by your browser")}function ze(){if(ds.a.XMLHttpRequest)return new ds.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 ds.a.ActiveXObject(t))break}catch(t){}return new ds.a.ActiveXObject(t)}catch(t){throw new Error("XMLHttpRequest is not supported by your browser")}}function Be(t,e){return void 0===e&&(e=null),new bs({method:"GET",url:t,headers:e})}function We(t,e,n){return new bs({method:"POST",url:t,body:e,headers:n})}function Xe(t,e){return new bs({method:"DELETE",url:t,headers:e})}function $e(t,e,n){return new bs({method:"PUT",url:t,body:e,headers:n})}function Ve(t,e,n){return new bs({method:"PATCH",url:t,body:e,headers:n})}function Ye(t,e){return ys(new bs({method:"GET",url:t,responseType:"json",headers:e}))}function Ge(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}}function Ke(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Je(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}function Ze(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)}function Qe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function tn(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}function en(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)}function nn(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function rn(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}function on(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)}function sn(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function un(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}function an(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)}function cn(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ln(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}function fn(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)}function hn(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function pn(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}function dn(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)}function yn(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function bn(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}function vn(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)}function mn(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function gn(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}function wn(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)}function _n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function xn(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}function Sn(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)}function En(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}function On(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function jn(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.color,n=void 0===e?"#4fb1ba":e,r=t.themeColor;if(this.themeColor&&(this.themeColor.content=r||n),this.rules)try{var o=Vs()(n),i=o.darken(.1);this.rules[0].style.color=n,this.rules[0].style.borderColor=o.fade(Qs).string(),this.rules[1].style.borderColor=n,this.rules[2].style.outlineColor=n,this.rules[3].style.backgroundColor=n,this.rules[3].style.borderColor=n,this.rules[4].style.boxShadow="0 0 0 3px "+o.fade(.5),this.rules[5].style.backgroundColor=i,this.rules[5].style.borderColor=i,this.rules[6].style.backgroundColor=n,this.rules[6].style.borderColor=n,this.rules[7].style.backgroundColor=i,this.rules[7].style.borderColor=i,this.rules[this.rules.length-1].style.backgroundColor=n}catch(t){console.error(t)}}function kn(t){var e=t.background,n=t.color,r=t.image,o=t.overlay;return""+n+(r||e)+(""===o?"overlay":"")}function Tn(t){var e=t.background,n=t.image;if(e||!n||""===n||"none"===n||n===this.prevImage)return _({});var r=new Image,o=H(r,"load").pipe(_t(1),St(function(){r.src=""}));return r.src=n,o}function An(){window.DISQUS.reset({reload:!0,config:function(){this.page.url=window.location.href,this.page.title=document.title}})}function Pn(){document.getElementById("disqus_thread")&&(window.DISQUS?An():(window.disqus_config=function(){this.page.url=window.location.href,this.page.title=document.title},window.loadJSDeferred(document.getElementById("_disqusJS").href)))}function Cn(t,e,n,r){var o=r.animationMain,i=r.settings;if(!o)return t;var s=t.pipe(gt(function(t){return"title"===t.flipType}),Lt(function(t){var e=t.anchor;if(!e)return _({});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 _({});tt.call(r),r.appendChild(n),o.style.position="fixed",o.style.opacity=1;var s=e.getBoundingClientRect(),u=n.getBoundingClientRect(),a=parseInt(getComputedStyle(e).fontSize,10),c=parseInt(getComputedStyle(n).fontSize,10),l=s.left-u.left,f=s.top-u.top,h=a/c;return e.style.opacity=0,et(n,[{transform:"translate3d("+l+"px, "+f+"px, 0) scale("+h+")"},{transform:"translate3d(0, 0, 0) scale(1)"}],i).pipe(wt({complete:function(){o.style.position="absolute"}}))}));return t.pipe(Lt(function(t){var r=t.flipType;return e.pipe(gt(function(){return"title"===r}),j(function(t){var e=nu(t.replaceEls,1),n=e[0],r=n.querySelector(ru);return r&&(r.style.opacity=0),r}),Ut(n,function(t){return t}),wt(function(t){t&&(t.style.opacity=1),o.style.opacity=0}),St(function(){o.style.opacity=0}))})).subscribe(),s}function Mn(t){if(!t)return _({});var e=new Image,n=H(e,"load").pipe(_t(1),St(function(){e.src=""}));return e.src=t.currentSrc||t.src,n}function Nn(t,e,n,r){var o=this,i=r.animationMain,s=r.settings;if(!i)return t;var u=t.pipe(gt(function(t){return"project"===t.flipType}),Lt(function(t){var e=t.anchor,n=e.querySelector(".project-card-img");if(!e||!n)return _({});var r=i.querySelector(".page");if(!r)return _({});var o=e.parentNode.querySelector(".project-card-title"),u=o&&o.textContent||"|",a=document.createElement("h1");a.classList.add("page-title"),a.style.opacity=0,a.textContent=u;var c=document.createElement("div");c.classList.add("post-date"),c.classList.add("heading"),c.style.opacity=0,c.textContent="|",tt.call(r),r.appendChild(a),r.appendChild(c);var l=document.createElement("div");l.classList.add("sixteen-nine"),n.parentNode.insertBefore(l,n),n.classList.add("lead"),n.style.transformOrigin="left top",r.appendChild(n),i.style.position="fixed",i.style.opacity=1;var f=l.getBoundingClientRect(),h=n.getBoundingClientRect();return et(n,[{transform:"translate3d("+(f.left-h.left)+"px, "+(f.top-h.top)+"px, 0) scale("+f.width/h.width+")"},{transform:"translate3d(0, 0, 0) scale(1)"}],s).pipe(wt({complete:function(){i.style.position="absolute"}}))}));return t.pipe(Lt(function(t){var r=t.flipType;return e.pipe(gt(function(){return"project"===r}),Lt(function(t){var e=ou(t.replaceEls,1),r=e[0],s=r.querySelector(".img");if(!s)return _({});s.style.opacity=0;var u=s.querySelector("img");return Mn.call(o,u).pipe(Ut(n),wt(function(){s.style.opacity=1,i.style.opacity=0}),Lt(function(){return u?et(i,[{opacity:1},{opacity:0}],{duration:500}):_({})}),St(function(){i.style.opacity=0}))}))})).subscribe(),u}function Rn(t){var e=document.getElementById("_permalink-template"),n=document.importNode(e.content,!0);n.querySelector(".permalink").href="#"+t.id,t.appendChild(n)}function In(t,e){var n=e.pathname,r=document.getElementById("_error-template"),o=document.importNode(r.content,!0),i=o.querySelector(".this-link");return i&&(i.href=n,i.textContent=n),t.appendChild(o),t.lastElementChild}function Ln(t){return t&&t.classList?t.classList.contains("flip-title")?"title":t.classList.contains("flip-project")?"project":t.getAttribute&&t.getAttribute("data-flip"):null}function Dn(t){return"push"===t||navigator.standalone||!oo}function qn(){return!oo||!!navigator.standalone}function Fn(t){var e=t.type,n=t.main;return Dn(e)?et(n,pu,yu).pipe(Et({main:n})):_({main:n})}function Un(t){var e=t.type,n=su(t.replaceEls,1),r=n[0],o=t.flipType;return Dn(e)?et(r,du,yu).pipe(Et({main:r,flipType:o})):_({main:r,flipType:o})}Object.defineProperty(e,"__esModule",{value:!0});var Hn,zn=(n(28),n(29),n(30),n(31),n(32),n(13),n(1),"function"==typeof Symbol&&Symbol.iterator,function(t,e){return(zn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)}),Bn=!1,Wn={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){(new Error).stack}Bn=t},get useDeprecatedSynchronousErrorHandling(){return Bn}},Xn={closed:!0,next:function(t){},error:function(t){if(Wn.useDeprecatedSynchronousErrorHandling)throw t;i(t)},complete:function(){}},$n=Array.isArray||function(t){return t&&"number"==typeof t.length},Vn="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},Yn={e:{}},Gn=function(t){function e(n){var r=t.call(this,n?n.length+" errors occurred during unsubscription:\n "+n.map(function(t,e){return e+1+") "+t.toString()}).join("\n "):"")||this;return r.errors=n,r.name="UnsubscriptionError",Object.setPrototypeOf(r,e.prototype),r}return r(e,t),e}(Error),Kn="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},Jn=function(){function t(t){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}return t.prototype.unsubscribe=function(){var t,e=!1;if(!this.closed){var n=this,r=n._parent,i=n._parents,u=n._unsubscribe,l=n._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var f=-1,h=i?i.length:0;r;)r.remove(this),r=++f<h&&i[f]||null;if(o(u)){var p=a(u).call(this);p===Yn&&(e=!0,t=t||(Yn.e instanceof Gn?c(Yn.e.errors):[Yn.e]))}if($n(l))for(f=-1,h=l.length;++f<h;){var d=l[f];if(s(d)){var p=a(d.unsubscribe).call(d);if(p===Yn){e=!0,t=t||[];var y=Yn.e;y instanceof Gn?t=t.concat(c(y.errors)):t.push(y)}}}if(e)throw new Gn(t)}},t.prototype.add=function(e){if(!e||e===t.EMPTY)return t.EMPTY;if(e===this)return this;var n=e;switch(void 0===e?"undefined":Kn(e)){case"function":n=new t(e);case"object":if(n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if("function"!=typeof n._addParent){var r=n;n=new t,n._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}return(this._subscriptions||(this._subscriptions=[])).push(n),n._addParent(this),n},t.prototype.remove=function(t){var e=this._subscriptions;if(e){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}},t.prototype._addParent=function(t){var e=this,n=e._parent,r=e._parents;n&&n!==t?r?-1===r.indexOf(t)&&r.push(t):this._parents=[t]:this._parent=t},t.EMPTY=function(t){return t.closed=!0,t}(new t),t}(),Zn="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("rxSubscriber"):"@@rxSubscriber",Qn="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},tr=function(t){function e(e,n,r){var o=t.call(this)||this;switch(o.syncErrorValue=null,o.syncErrorThrown=!1,o.syncErrorThrowable=!1,o.isStopped=!1,arguments.length){case 0:o.destination=Xn;break;case 1:if(!e){o.destination=Xn;break}if("object"===(void 0===e?"undefined":Qn(e))){if(l(e)){var i=e[Zn]();o.syncErrorThrowable=i.syncErrorThrowable,o.destination=i,i.add(o)}else o.syncErrorThrowable=!0,o.destination=new er(o,e);break}default:o.syncErrorThrowable=!0,o.destination=new er(o,e,n,r)}return o}return r(e,t),e.prototype[Zn]=function(){return this},e.create=function(t,n,r){var o=new e(t,n,r);return o.syncErrorThrowable=!1,o},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this,e=t._parent,n=t._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=e,this._parents=n,this},e}(Jn),er=function(t){function e(e,n,r,i){var s=t.call(this)||this;s._parentSubscriber=e;var u,a=s;return o(n)?u=n:n&&(u=n.next,r=n.error,i=n.complete,n!==Xn&&(a=Object.create(n),o(a.unsubscribe)&&s.add(a.unsubscribe.bind(a)),a.unsubscribe=s.unsubscribe.bind(s))),s._context=a,s._next=u,s._error=r,s._complete=i,s}return r(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;Wn.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber,n=Wn.useDeprecatedSynchronousErrorHandling;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):i(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;i(t)}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var n=function(){return t._complete.call(t._context)};Wn.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){if(this.unsubscribe(),Wn.useDeprecatedSynchronousErrorHandling)throw t;i(t)}},e.prototype.__tryOrSetError=function(t,e,n){if(!Wn.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(e){return Wn.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=e,t.syncErrorThrown=!0,!0):(i(e),!0)}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(tr),nr="function"==typeof Symbol&&Symbol.observable||"@@observable",rr=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(t,e,n){var r=this.operator,o=f(t,e,n);if(r?r.call(o,this.source):o.add(this.source||Wn.useDeprecatedSynchronousErrorHandling&&!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),Wn.useDeprecatedSynchronousErrorHandling&&o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){Wn.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),t.error(e)}},t.prototype.forEach=function(t,e){var n=this;return new(e=d(e))(function(e,r){var o;o=n.subscribe(function(e){try{t(e)}catch(t){r(t),o&&o.unsubscribe()}},r,e)})},t.prototype._subscribe=function(t){var e=this.source;return e&&e.subscribe(t)},t.prototype[nr]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 0===t.length?this:p(t)(this)},t.prototype.toPromise=function(t){var e=this;return new(t=d(t))(function(t,n){var r;e.subscribe(function(t){return r=t},function(t){return n(t)},function(){return t(r)})})},t.create=function(e){return new t(e)},t}(),or=function(t){function e(){var n=t.call(this,"object unsubscribed")||this;return n.name="ObjectUnsubscribedError",Object.setPrototypeOf(n,e.prototype),n}return r(e,t),e}(Error),ir=function(t){function e(e,n){var r=t.call(this)||this;return r.subject=e,r.subscriber=n,r.closed=!1,r}return r(e,t),e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},e}(Jn),sr=function(t){function e(e){var n=t.call(this,e)||this;return n.destination=e,n}return r(e,t),e}(tr),ur=function(t){function e(){var e=t.call(this)||this;return e.observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return r(e,t),e.prototype[Zn]=function(){return new sr(this)},e.prototype.lift=function(t){var e=new ar(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new or;if(!this.isStopped)for(var e=this.observers,n=e.length,r=e.slice(),o=0;o<n;o++)r[o].next(t)},e.prototype.error=function(t){if(this.closed)throw new or;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,n=e.length,r=e.slice(),o=0;o<n;o++)r[o].error(t);this.observers.length=0},e.prototype.complete=function(){if(this.closed)throw new or;this.isStopped=!0;for(var t=this.observers,e=t.length,n=t.slice(),r=0;r<e;r++)n[r].complete();this.observers.length=0},e.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},e.prototype._trySubscribe=function(e){if(this.closed)throw new or;return t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){if(this.closed)throw new or;return this.hasError?(t.error(this.thrownError),Jn.EMPTY):this.isStopped?(t.complete(),Jn.EMPTY):(this.observers.push(t),new ir(this,t))},e.prototype.asObservable=function(){var t=new rr;return t.source=this,t},e.create=function(t,e){return new ar(t,e)},e}(rr),ar=function(t){function e(e,n){var r=t.call(this)||this;return r.destination=e,r.source=n,r}return r(e,t),e.prototype.next=function(t){var e=this.destination;e&&e.next&&e.next(t)},e.prototype.error=function(t){var e=this.destination;e&&e.error&&this.destination.error(t)},e.prototype.complete=function(){var t=this.destination;t&&t.complete&&this.destination.complete()},e.prototype._subscribe=function(t){return this.source?this.source.subscribe(t):Jn.EMPTY},e}(ur),cr=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var n=this.connectable;n._refCount++;var r=new lr(t,n),o=e.subscribe(r);return r.closed||(r.connection=n.connect()),o},t}(),lr=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return r(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(!t)return void(this.connection=null);this.connectable=null;var e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);var n=this.connection,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()},e}(tr),fr=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 r(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 Jn,t.add(this.source.subscribe(new dr(this.getSubject(),this))),t.closed?(this._connection=null,t=Jn.EMPTY):this._connection=t),t},e.prototype.refCount=function(){return y()(this)},e}(rr),hr=fr.prototype,pr={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:hr._subscribe},_isComplete:{value:hr._isComplete,writable:!0},getSubject:{value:hr.getSubject},connect:{value:hr.connect},refCount:{value:hr.refCount}},dr=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return r(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}(sr),yr=function(t){function e(e,n){return t.call(this)||this}return r(e,t),e.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},e}(Jn),br=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r.pending=!1,r}return r(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this},e.prototype.requestAsyncId=function(t,e,n){return void 0===n&&(n=0),setInterval(t.flush.bind(t,this),n)},e.prototype.recycleAsyncId=function(t,e,n){return void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending?e:clearInterval(e)&&void 0||void 0},e.prototype.execute=function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var n=!1,r=void 0;try{this.work(t)}catch(t){n=!0,r=!!t&&t||new Error(t)}if(n)return this.unsubscribe(),r},e.prototype._unsubscribe=function(){var t=this.id,e=this.scheduler,n=e.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null},e}(yr),vr=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return r(e,t),e.prototype.schedule=function(e,n){return void 0===n&&(n=0),n>0?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}(br),mr=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}(),gr=function(t){function e(n,r){void 0===r&&(r=mr.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 r(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)return void e.push(t);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}(mr),wr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e}(gr),_r=new wr(vr),xr=new rr(function(t){return t.complete()}),Sr=function(t){return function(e){for(var n=0,r=t.length;n<r&&!e.closed;n++)e.next(t[n]);e.closed||e.complete()}},Er=function(){function t(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}return t.prototype.observe=function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}},t.prototype.do=function(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}},t.prototype.accept=function(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)},t.prototype.toObservable=function(){switch(this.kind){case"N":return _(this.value);case"E":return x(this.error);case"C":return b()}throw new Error("unexpected notification kind value")},t.createNext=function(e){return void 0!==e?new t("N",e):t.undefinedValueNotification},t.createError=function(e){return new t("E",void 0,e)},t.createComplete=function(){return t.completeNotification},t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}(),Or=function(){function t(t,e){void 0===e&&(e=0),this.scheduler=t,this.delay=e}return t.prototype.call=function(t,e){return e.subscribe(new jr(t,this.scheduler,this.delay))},t}(),jr=function(t){function e(e,n,r){void 0===r&&(r=0);var o=t.call(this,e)||this;return o.scheduler=n,o.delay=r,o}return r(e,t),e.dispatch=function(t){var e=t.notification,n=t.destination;e.observe(n),this.unsubscribe()},e.prototype.scheduleMessage=function(t){this.add(this.scheduler.schedule(e.dispatch,this.delay,new kr(t,this.destination)))},e.prototype._next=function(t){this.scheduleMessage(Er.createNext(t))},e.prototype._error=function(t){this.scheduleMessage(Er.createError(t))},e.prototype._complete=function(){this.scheduleMessage(Er.createComplete())},e}(tr),kr=function(){function t(t,e){this.notification=t,this.destination=e}return t}(),Tr=function(t){function e(e,n,r){void 0===e&&(e=Number.POSITIVE_INFINITY),void 0===n&&(n=Number.POSITIVE_INFINITY);var o=t.call(this)||this;return o.scheduler=r,o._events=[],o._infiniteTimeWindow=!1,o._bufferSize=e<1?1:e,o._windowTime=n<1?1:n,n===Number.POSITIVE_INFINITY?(o._infiniteTimeWindow=!0,o.next=o.nextInfiniteTimeWindow):o.next=o.nextTimeWindow,o}return r(e,t),e.prototype.nextInfiniteTimeWindow=function(e){var n=this._events;n.push(e),n.length>this._bufferSize&&n.shift(),t.prototype.next.call(this,e)},e.prototype.nextTimeWindow=function(e){this._events.push(new Ar(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 or;if(this.isStopped||this.hasError?e=Jn.EMPTY:(this.observers.push(t),e=new ir(this,t)),o&&t.add(t=new jr(t,o)),n)for(var s=0;s<i&&!t.closed;s++)t.next(r[s]);else for(var s=0;s<i&&!t.closed;s++)t.next(r[s].value);return this.hasError?t.error(this.thrownError):this.isStopped&&t.complete(),e},e.prototype._getNow=function(){return(this.scheduler||_r).now()},e.prototype._trimBufferThenGetEvents=function(){for(var t=this._getNow(),e=this._bufferSize,n=this._windowTime,r=this._events,o=r.length,i=0;i<o&&!(t-r[i].time<n);)i++;return o>e&&(i=Math.max(i,o-e)),i>0&&r.splice(0,i),r},e}(ur),Ar=function(){function t(t,e){this.time=t,this.value=e}return t}(),Pr=new gr(br),Cr=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return r(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}(br),Mr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(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(++r<o&&(t=n.shift()));if(this.active=!1,e){for(;++r<o&&(t=n.shift());)t.unsubscribe();throw e}},e}(gr),Nr=new Mr(Cr),Rr=function(t){function e(){var n=t.call(this,"argument out of range")||this;return n.name="ArgumentOutOfRangeError",Object.setPrototypeOf(n,e.prototype),n}return r(e,t),e}(Error),Ir=(Error,Error,function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new Lr(t,this.project,this.thisArg))},t}()),Lr=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.project=n,o.count=0,o.thisArg=r||o,o}return r(e,t),e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(tr),Dr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(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}(tr),qr=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 r(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}(tr),Fr=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,i),e}},Ur=function(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}(),Hr=function(t){return function(e){for(var n=t[Ur]();;){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}},zr=function(t){return function(e){var n=t[nr]();if("function"!=typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(e)}},Br=function(t){return t&&"number"==typeof t.length&&"function"!=typeof t},Wr=function(t){if(t instanceof rr)return function(e){return t._isScalar?(e.next(t.value),void e.complete()):t.subscribe(e)};if(t&&"function"==typeof t[nr])return zr(t);if(Br(t))return Sr(t);if(k(t))return Fr(t);if(t&&"function"==typeof t[Ur])return Hr(t);var e=s(t)?"an invalid object":"'"+t+"'",n="You provided "+e+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.";throw new TypeError(n)},Xr={},$r=function(){function t(t){this.resultSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new Vr(t,this.resultSelector))},t}(),Vr=function(t){function e(e,n){var r=t.call(this,e)||this;return r.resultSelector=n,r.active=0,r.values=[],r.observables=[],r}return r(e,t),e.prototype._next=function(t){this.values.push(Xr),this.observables.push(t)},e.prototype._complete=function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(var n=0;n<e;n++){var r=t[n];this.add(T(this,r,r,n))}}},e.prototype.notifyComplete=function(t){0==(this.active-=1)&&this.destination.complete()},e.prototype.notifyNext=function(t,e,n,r,o){var i=this.values,s=i[n],u=this.toRespond?s===Xr?--this.toRespond:this.toRespond:0;i[n]=e,0===u&&(this.resultSelector?this._tryResultSelector(i):this.destination.next(i.slice()))},e.prototype._tryResultSelector=function(t){var e;try{e=this.resultSelector.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(Dr),Yr="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},Gr=function(){function t(t,e){void 0===e&&(e=Number.POSITIVE_INFINITY),this.project=t,this.concurrent=e}return t.prototype.call=function(t,e){return e.subscribe(new Kr(t,this.project,this.concurrent))},t}(),Kr=function(t){function e(e,n,r){void 0===r&&(r=Number.POSITIVE_INFINITY);var o=t.call(this,e)||this;return o.project=n,o.concurrent=r,o.hasCompleted=!1,o.buffer=[],o.active=0,o.index=0,o}return r(e,t),e.prototype._next=function(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this.active++,this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){this.add(T(this,t,e,n))},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete()},e.prototype.notifyNext=function(t,e,n,r,o){this.destination.next(e)},e.prototype.notifyComplete=function(t){var e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(Dr),Jr=(Object.prototype.toString,new rr(h)),Zr=function(){function t(t){this.resultSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new Qr(t,this.resultSelector))},t}(),Qr=function(t){function e(e,n,r){void 0===r&&(r=Object.create(null));var o=t.call(this,e)||this;return o.iterators=[],o.active=0,o.resultSelector="function"==typeof n?n:null,o.values=r,o}return r(e,t),e.prototype._next=function(t){var e=this.iterators;$n(t)?e.push(new eo(t)):"function"==typeof t[Ur]?e.push(new to(t[Ur]())):e.push(new no(this.destination,this,t))},e.prototype._complete=function(){var t=this.iterators,e=t.length;if(0===e)return void this.destination.complete();this.active=e;for(var n=0;n<e;n++){var r=t[n];r.stillUnsubscribed?this.add(r.subscribe(r,n)):this.active--}},e.prototype.notifyInactive=function(){0===--this.active&&this.destination.complete()},e.prototype.checkIterators=function(){for(var t=this.iterators,e=t.length,n=this.destination,r=0;r<e;r++){var o=t[r];if("function"==typeof o.hasValue&&!o.hasValue())return}for(var i=!1,s=[],r=0;r<e;r++){var o=t[r],u=o.next();if(o.hasCompleted()&&(i=!0),u.done)return void n.complete();s.push(u.value)}this.resultSelector?this._tryresultSelector(s):n.next(s),i&&n.complete()},e.prototype._tryresultSelector=function(t){var e;try{e=this.resultSelector.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(tr),to=function(){function t(t){this.iterator=t,this.nextResult=t.next()}return t.prototype.hasValue=function(){return!0},t.prototype.next=function(){var t=this.nextResult;return this.nextResult=this.iterator.next(),t},t.prototype.hasCompleted=function(){var t=this.nextResult;return t&&t.done},t}(),eo=function(){function t(t){this.array=t,this.index=0,this.length=0,this.length=t.length}return t.prototype[Ur]=function(){return this},t.prototype.next=function(t){var e=this.index++,n=this.array;return e<this.length?{value:n[e],done:!1}:{value:null,done:!0}},t.prototype.hasValue=function(){return this.array.length>this.index},t.prototype.hasCompleted=function(){return this.array.length===this.index},t}(),no=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 r(e,t),e.prototype[Ur]=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 T(this,this.observable,this,e)},e}(Dr),ro=navigator.userAgent.toLowerCase(),oo=ro.indexOf("safari")>0&&ro.indexOf("chrome")<0,io=oo&&ro.indexOf("mobile")>0,so=ro.indexOf("ucbrowser")>0,uo=ro.indexOf("fxios")>0&&ro.indexOf("safari")>0,ao=Array.prototype.forEach,co=["classlist","eventlistener","queryselector"],lo=Z(co),fo=!1,ho=!1;ut();var po="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)}),t.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=void 0;return(n=t.has(e))&&(t.size--,t.splice(t.indexOf(e),1)),n},t.clear=function(){for(;t.pop(););t.size=0},t},yo=function t(e,n){at(this,t),this.setupComponent(e,n),this.connectComponent()},bo=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},vo=function(t){return"[object HTMLCollection]"===Object.prototype.toString.call(t)},mo=function(t){return"[object NodeList]"===Object.prototype.toString.call(t)},go=function(t,e){function n(t){"string"==typeof t?this.appendChild(e(t)):this.appendChild(t)}return function(r,o){for(var i=arguments.length,s=Array(i>2?i-2:0),u=2;u<i;u++)s[u-2]=arguments[u];var a=t(r);for(var c in o)a.setAttribute(c,o[c]);var l=s[0],f=void 0;return bo(l)||(f=vo(l))||(f=mo(l))?(f&&(l=Array.prototype.slice.call(l,0)),Array.prototype.forEach.call(l,n,a)):Array.prototype.forEach.call(s,function(t){"string"==typeof t?a.appendChild(e(t)):a.appendChild(t)}),a}},wo=go(document.createElement.bind(document),document.createTextNode.bind(document)),_o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),xo=new po(["customevent"]),So=Symbol||function(t){return"_"+t},Eo=So("sroot"),Oo=So("state");window.process=window.process||{},window.process.env=window.process.env||{},window.requestIdleCallback=window.requestIdleCallback||function(t){return window.setTimeout(t,0)},window.cancelIdleCallback=window.cancelIdleCallback||window.clearTimeout;var jo=function t(){ft(this,t)},ko=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:jo;return function(t){function e(){return ft(this,e),ct(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return lt(e,t),_o(e,[{key:"setupComponent",value:function(t,e){var n=this.constructor.defaults;this[Oo]=Object.assign({},n,e),this.setupProperties(this),this[Eo]=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[Eo]}},{key:"getEl",value:function(){return this[Eo]}},{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[Oo][t]=e}},{key:"setupProperties",value:function(){var t=this,e=this.constructor.sideEffects;Object.keys(this[Oo]).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[Oo][t]},set:function(r){var o=n[Oo][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()}}]),e}(t)},To=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),Ao=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var s=o.get;if(void 0!==s)return s.call(r)},Po=function(t){return function(t){function e(){return ht(this,e),pt(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return dt(e,t),To(e,[{key:"setupComponent",value:function(t,n){var r=this,o={};this.subjects={},this.subjects.disconnect=new ur,this.subjects.document=new Tr,Object.keys(this.constructor.types).map(function(t){r.subjects[t]=new Tr(1),o[t]=function(e){return r.subjects[t].next(e)}}),Object.defineProperty(this.constructor,"sideEffects",{get:function(){return o},set:function(){},enumerable:!0,configurable:!0}),Ao(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"setupComponent",this).call(this,t,n)}},{key:"connectComponent",value:function(){var t=this;Ao(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"connectComponent",this).call(this),this.subjects.document.next(document),Object.keys(this.constructor.types).map(function(e){return t.subjects[e].next(t[e])})}},{key:"disconnectComponent",value:function(){Ao(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"disconnectComponent",this).call(this),this.subjects.disconnect.next({})}},{key:"adaptComponent",value:function(){Ao(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"adaptComponent",this).call(this),this.subjects.document.next(document)}}]),e}(t)},Co=function(t){return null==t?null:t.trim().replace(/^\[?(.*?)\]?$/,"$1").split(",").map(function(t){return t.trim()})||null};Co.stringify=function(t){return t&&t.length>0?t.join(","):null};var Mo=function(t){var e=function(e){if(null==e)return null;var n=Co(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)?Co.stringify(n):null},e},No=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)};No.stringify=function(t){return t?"":null};var Ro=function(t){return null==t?null:Number(t)};Ro.stringify=function(t){return null==t?null:""+t};var Io=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},Lo=function(t){if(null==t)return null;var e=t.trim&&t.trim()||t,n=e.match(/^\/?(.*?)(\/([gimy]*))?$/);return new RegExp(n[1],n[3])};Lo.stringify=function(t){return t&&t.toString()||null};var Do=function(t){return t};Do.stringify=function(t){return t};var qo=function(){function t(t){this.selector=t}return t.prototype.call=function(t,e){return e.subscribe(new Fo(t,this.selector,this.caught))},t}(),Fo=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.selector=n,o.caught=r,o}return r(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(T(this,n))}},e}(Dr),Uo=function(){function t(t,e){this.dueTime=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new Ho(t,this.dueTime,this.scheduler))},t}(),Ho=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.dueTime=n,o.scheduler=r,o.debouncedSubscription=null,o.lastValue=null,o.hasValue=!1,o}return r(e,t),e.prototype._next=function(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(vt,this.dueTime,this))},e.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},e.prototype.debouncedNext=function(){if(this.clearDebounce(),this.hasValue){var t=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}},e.prototype.clearDebounce=function(){var t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)},e}(tr),zo=function(){function t(t,e){this.compare=t,this.keySelector=e}return t.prototype.call=function(t,e){return e.subscribe(new Bo(t,this.compare,this.keySelector))},t}(),Bo=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 r(e,t),e.prototype.compare=function(t,e){return t===e},e.prototype._next=function(t){var e=this.keySelector,n=t;if(e&&(n=a(this.keySelector)(t))===Yn)return this.destination.error(Yn.e);var r=!1;if(this.hasKey){if((r=a(this.compare)(this.key,n))===Yn)return this.destination.error(Yn.e)}else this.hasKey=!0;!1===Boolean(r)&&(this.key=n,this.destination.next(t))},e}(tr),Wo=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new Xo(t,this.predicate,this.thisArg))},t}(),Xo=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 r(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}(tr),$o=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 Vo(t,this.nextOrObserver,this.error,this.complete))},t}(),Vo=function(t){function e(e,n,r,i){var s=t.call(this,e)||this;return s._tapNext=h,s._tapError=h,s._tapComplete=h,s._tapError=r||h,s._tapComplete=i||h,o(n)?(s._context=s,s._tapNext=n):n&&(s._context=n,s._tapNext=n.next||h,s._tapError=n.error||h,s._tapComplete=n.complete||h),s}return r(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}(tr),Yo=function(){function t(t){if(this.total=t,this.total<0)throw new Rr}return t.prototype.call=function(t,e){return e.subscribe(new Go(t,this.total))},t}(),Go=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.count=0,r}return r(e,t),e.prototype._next=function(t){var e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))},e}(tr),Ko=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new Jo(t,this.project))},t}(),Jo=function(t){function e(e,n){var r=t.call(this,e)||this;return r.project=n,r.hasSubscription=!1,r.hasCompleted=!1,r.index=0,r}return r(e,t),e.prototype._next=function(t){this.hasSubscription||this.tryNext(t)},e.prototype.tryNext=function(t){var e=this.index++,n=this.destination;try{var r=this.project(t,e);this.hasSubscription=!0,this.add(T(this,r,t,e))}catch(t){n.error(t)}},e.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()},e.prototype.notifyNext=function(t,e,n,r,o){this.destination.next(e)},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.remove(t),this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},e}(Dr),Zo=function(){function t(t){this.callback=t}return t.prototype.call=function(t,e){return e.subscribe(new Qo(t,this.callback))},t}(),Qo=function(t){function e(e,n){var r=t.call(this,e)||this;return r.add(new Jn(n)),r}return r(e,t),e}(tr),ti=function(){function t(t){this.value=t}return t.prototype.call=function(t,e){return e.subscribe(new ei(t,this.value))},t}(),ei=function(t){function e(e,n){var r=t.call(this,e)||this;return r.value=n,r}return r(e,t),e.prototype._next=function(t){this.destination.next(this.value)},e}(tr),ni=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}(),ri=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new oi(t))},t}(),oi=function(t){function e(e){var n=t.call(this,e)||this;return n.hasPrev=!1,n}return r(e,t),e.prototype._next=function(t){this.hasPrev?this.destination.next([this.prev,t]):this.hasPrev=!0,this.prev=t},e}(tr),ii=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){return e.subscribe(new si(t,this.notifier,e))},t}(),si=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.notifier=n,o.source=r,o.sourceIsBeingSubscribedTo=!0,o}return r(e,t),e.prototype.notifyNext=function(t,e,n,r,o){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)},e.prototype.notifyComplete=function(e){if(!1===this.sourceIsBeingSubscribedTo)return t.prototype.complete.call(this)},e.prototype.complete=function(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries||this.subscribeToRetries(),!this.retriesSubscription||this.retriesSubscription.closed)return t.prototype.complete.call(this);this._unsubscribeAndRecycle(),this.notifications.next()}},e.prototype._unsubscribe=function(){var t=this,e=t.notifications,n=t.retriesSubscription;e&&(e.unsubscribe(),this.notifications=null),n&&(n.unsubscribe(),this.retriesSubscription=null),this.retries=null},e.prototype._unsubscribeAndRecycle=function(){var e=this._unsubscribe;return this._unsubscribe=null,t.prototype._unsubscribeAndRecycle.call(this),this._unsubscribe=e,this},e.prototype.subscribeToRetries=function(){this.notifications=new ur;var e=a(this.notifier)(this.notifications);if(e===Yn)return t.prototype.complete.call(this);this.retries=e,this.retriesSubscription=T(this,e)},e}(Dr),ui=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){var n=new ai(t),r=e.subscribe(n);return r.add(T(n,this.notifier)),r},t}(),ai=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.hasValue=!1,e}return r(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}(Dr),ci=function(){function t(t){this.total=t}return t.prototype.call=function(t,e){return e.subscribe(new li(t,this.total))},t}(),li=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.count=0,r}return r(e,t),e.prototype._next=function(t){++this.count>this.total&&this.destination.next(t)},e}(tr),fi=function(){function t(t){this.predicate=t}return t.prototype.call=function(t,e){return e.subscribe(new hi(t,this.predicate))},t}(),hi=function(t){function e(e,n){var r=t.call(this,e)||this;return r.predicate=n,r.skipping=!0,r.index=0,r}return r(e,t),e.prototype._next=function(t){var e=this.destination;this.skipping&&this.tryCallPredicate(t),this.skipping||e.next(t)},e.prototype.tryCallPredicate=function(t){try{var e=this.predicate(t,this.index++);this.skipping=Boolean(e)}catch(t){this.destination.error(t)}},e}(tr),pi=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new di(t,this.project))},t}(),di=function(t){function e(e,n){var r=t.call(this,e)||this;return r.project=n,r.index=0,r}return r(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=T(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}(Dr),yi=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){var n=new bi(t),r=T(n,this.notifier);return r&&!r.closed?(n.add(r),e.subscribe(n)):n},t}(),bi=function(t){function e(e){return t.call(this,e)||this}return r(e,t),e.prototype.notifyNext=function(t,e,n,r,o){this.complete()},e.prototype.notifyComplete=function(){},e}(Dr),vi=function(){function t(t,e){this.value=t,this.timestamp=e}return t}(),mi=function(){function t(t,e){this.observables=t,this.project=e}return t.prototype.call=function(t,e){return e.subscribe(new gi(t,this.observables,this.project))},t}(),gi=function(t){function e(e,n,r){var o=t.call(this,e)||this;o.observables=n,o.project=r,o.toRespond=[];var i=n.length;o.values=new Array(i);for(var s=0;s<i;s++)o.toRespond.push(s);for(var s=0;s<i;s++){var u=n[s];o.add(T(o,u,u,s))}return o}return r(e,t),e.prototype.notifyNext=function(t,e,n,r,o){this.values[n]=e;var i=this.toRespond;if(i.length>0){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}(Dr),wi=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var s,u=t[Symbol.iterator]();!(r=(s=u.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&u.return&&u.return()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),_i=function(t){return function(e){return t.pipe(Lt(function(t){return t?e:Y()}))}},xi=function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return function(e){return 0===n.length?e.pipe(Ft(t),gt(function(t){return wi(t,2)[1]}),j(function(t){return wi(t,1)[0]})):e.pipe(Ft.apply(void 0,[t].concat(n)),gt(function(t){return Bt(t).slice(1).every(function(t){return t})}),j(function(t){return wi(t,1)[0]}))}},Si=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var s,u=t[Symbol.iterator]();!(r=(s=u.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&u.return&&u.return()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),Ei=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),Oi=Math.min.bind(Math),ji=Math.max.bind(Math),ki=function(t){return function(t){function e(){return Wt(this,e),Xt(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return $t(e,t),Ei(e,[{key:"calcIsInRange",value:function(t,e){switch(this.align){case"left":return t>this.range[0]&&(e||t<this.range[1]);case"right":return t<window.innerWidth-this.range[0]&&(e||t>window.innerWidth-this.range[1]);default:throw Error()}}},{key:"calcIsSwipe",value:function(t){var e=Si(t,3),n=e[0].clientX,r=e[1].clientX,o=e[2];return n!==r||o>0&&o<this.drawerWidth}},{key:"calcWillOpen",value:function(t){var e=Si(t,4),n=e[2],r=e[3];switch(this.align){case"left":return r>.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=t-e,o=n+r;return ji(0,Oi(this.drawerWidth,o));case"right":var i=t-e,s=n+i;return Oi(0,ji(-this.drawerWidth,s));default:throw Error()}}},{key:"calcMovableDrawerWidth",value:function(){return-parseFloat(getComputedStyle(this.contentEl)[this.align])}}]),e}(t)},Ti=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),Ai="attributeStyleMap"in Element.prototype&&"CSS"in window&&CSS.number,Pi=function(t){return function(t){function e(){return Vt(this,e),Yt(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return Gt(e,t),Ti(e,[{key:"histId",value:function(){return this.el.id||this.constructor.componentName}},{key:"prepareInteraction",value:function(){Ai?(this.contentEl.attributeStyleMap.set("will-change","transform"),this.scrimEl.attributeStyleMap.set("will-change","opacity")):(this.contentEl.style.willChange="transform",this.scrimEl.style.willChange="opacity"),this.contentEl.classList.remove("hy-drawer-opened"),this.fireEvent("prepare")}},{key:"cleanupInteraction",value:function(t){Ai?(this.contentEl.attributeStyleMap.delete("will-change"),this.scrimEl.attributeStyleMap.delete("will-change"),t?(this.scrimEl.attributeStyleMap.set("pointer-events",new CSSKeywordValue("all")),this.contentEl.classList.add("hy-drawer-opened")):(this.scrimEl.attributeStyleMap.delete("pointer-events"),this.contentEl.classList.remove("hy-drawer-opened"))):(this.scrimEl.style.willChange="",this.contentEl.style.willChange="",t?(this.scrimEl.style.pointerEvents="all",this.contentEl.classList.add("hy-drawer-opened")):(this.scrimEl.style.pointerEvents="",this.contentEl.classList.remove("hy-drawer-opened"))),this.fireEvent("transitioned",{detail:t})}},{key:"updateDOM",value:function(t){this.translateX=t;var e="left"===this.align?1:-1,n=this.opacity=t/this.drawerWidth*e;this.moveCallback&&this.moveCallback({translateX:t,opacity:n}),Ai?(this.contentEl.attributeStyleMap.set("transform",new CSSTransformValue([new CSSTranslate(CSS.px(t),CSS.px(0))])),this.scrimEl.attributeStyleMap.set("opacity",this.opacity)):(this.contentEl.style.transform="translateX("+t+"px)",this.scrimEl.style.opacity=this.opacity)}}]),e}(t)},Ci=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var s,u=t[Symbol.iterator]();!(r=(s=u.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&u.return&&u.return()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),Mi=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),Ni=Math.abs.bind(Math),Ri=function(t){return function(t){function e(){return Kt(this,e),Jt(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return Zt(e,t),Mi(e,[{key:"getStartObservable",value:function(){return A(this.subjects.document,this.subjects.mouseEvents).pipe(Lt(function(t){var e=Ci(t,2),n=e[0],r=e[1],o=H(n,"touchstart",{passive:!0}).pipe(gt(function(t){return 1===t.touches.length}),j(function(t){return t.touches[0]}));return r?V(o,H(n,"mousedown").pipe(wt(function(t){return t.event=t,t}))):o}))}},{key:"getMoveObservable",value:function(t,e){return A(this.subjects.document,this.subjects.mouseEvents,this.subjects.preventDefault).pipe(Lt(function(n){var r=Ci(n,3),o=r[0],i=r[1],s=r[2],u=H(o,"touchmove",{passive:!s}).pipe(j(function(t){return t.touches[0].event=t,t.touches[0]}));return i?V(u,H(o,"mousemove",{passive:!s}).pipe(_i(V(t.pipe(Et(!0)),e.pipe(Et(!1)))),wt(function(t){return t.event=t,t}))):u}))}},{key:"getEndObservable",value:function(){return A(this.subjects.document,this.subjects.mouseEvents).pipe(Lt(function(t){var e=Ci(t,2),n=e[0],r=e[1],o=H(n,"touchend",{passive:!0}).pipe(gt(function(t){return 0===t.touches.length}),j(function(t){return t.changedTouches[0]}));return r?V(o,H(n,"mouseup",{passive:!0})):o}))}},{key:"getIsSlidingObservable",value:function(t,e,n){return this.getIsSlidingObservable2(t,e).pipe(_t(1),It(void 0),At(function(){return n}))}},{key:"getIsSlidingObservable2",value:function(t,e){var n=this;return this.threshold?t.pipe(Ft(e),Rt(function(t){var e=Ci(t,2),r=e[0],o=r.clientX,i=r.clientY,s=e[1],u=s.clientX,a=s.clientY;return Ni(a-i)<n.threshold&&Ni(u-o)<n.threshold}),j(function(t){var e=Ci(t,2),n=e[0],r=n.clientX,o=n.clientY,i=e[1],s=i.clientX,u=i.clientY;return Ni(s-r)>=Ni(u-o)})):t.pipe(Ft(e),j(function(t){var e=Ci(t,2),r=e[0],o=r.clientX,i=r.clientY,s=r.event,u=e[1],a=u.clientX,c=u.clientY,l=Ni(a-o)>=Ni(c-i);return n.preventDefault&&l&&s.preventDefault(),l}))}}]),e}(t)},Ii=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var s,u=t[Symbol.iterator]();!(r=(s=u.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&u.return&&u.return()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),Li=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),Di=function(t){return function(t){function e(){return Qt(this,e),te(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return ee(e,t),Li(e,[{key:"setupObservables",value:function(){var t=this;H(window,"resize",{passive:!0}).pipe(Dt(this.subjects.disconnect),Mt(),It({})).pipe(Dt(this.subjects.disconnect)).subscribe(function(){t.opened&&t.contentEl.classList.remove("hy-drawer-opened"),t.drawerWidth=t.calcMovableDrawerWidth(),t.opened&&t.contentEl.classList.add("hy-drawer-opened")});var e=this.subjects.persistent.pipe(j(function(t){return!t})),n=this.getStartObservable().pipe(Dt(this.subjects.disconnect),xi(e),Mt()),r=U(function(){return t.translateX$.pipe(j(function(e){return"left"===t.align?e>0:e<t.drawerWidth}))}),o=n.pipe(Ft(r),j(function(e){var n=Ii(e,2),r=n[0].clientX,o=n[1];return t.calcIsInRange(r,o)}),wt(function(e){e&&(t.mouseEvents&&t.contentEl.classList.add("hy-drawer-grabbing"),t.prepareInteraction())}),Mt()),i=this.getEndObservable().pipe(Dt(this.subjects.disconnect),xi(e,o),Mt()),s=this.getMoveObservable(n,i).pipe(Dt(this.subjects.disconnect),xi(e,o),Mt()),u=this.getIsSlidingObservable(s,n,i).pipe(wt(function(e){e&&t.fireEvent("slidestart",{detail:t.opened})}));this.translateX$=U(function(){return V(t.tween$,s.pipe(xi(u),wt(function(e){var n=e.event;t.preventDefault&&n.preventDefault()}),E(Nr),Ft(n,t.startTranslateX$),j(function(e){var n=Ii(e,3),r=n[0].clientX,o=n[1].clientX,i=n[2];return t.calcTranslateX(r,o,i)})),A(t.subjects.opened,t.subjects.align).pipe(wt(function(e){var n=Ii(e,1),r=n[0];return t.cleanupInteraction(r)}),j(function(e){var n=Ii(e,2),r=n[0],o=n[1];return r?t.drawerWidth*("left"===o?1:-1):0})))}).pipe(Dt(this.subjects.disconnect),Mt()),this.startTranslateX$=this.translateX$.pipe(Pt(n));var a=this.translateX$.pipe(qt(),jt(),gt(function(t){var e=Ii(t,2),n=e[0].timestamp;return e[1].timestamp-n>0}),j(function(t){var e=Ii(t,2),n=e[0],r=n.value,o=n.timestamp,i=e[1];return(i.value-r)/(i.timestamp-o)}),It(0)),c=i.pipe(wt(function(){return t.contentEl.classList.remove("hy-drawer-grabbing")}),Ft(n,this.translateX$,a),gt(this.calcIsSwipe.bind(this)),j(this.calcWillOpen.bind(this)),wt(function(e){return t.fireEvent("slideend",{detail:e})})),l=V(c,this.animateTo$.pipe(wt(this.prepareInteraction.bind(this))));this.tween$=l.pipe(wt(function(e){return t.setInternalState("opened",e)}),Ft(this.translateX$),Lt(function(e){var r=Ii(e,2),o=r[0],i=r[1],s="left"===t.align?1:-1;return Ht(zt,i,(o?t.drawerWidth*s:0)-i,200+.15*t.drawerWidth).pipe(wt({complete:function(){return t.subjects.opened.next(o)}}),Dt(n),Dt(t.subjects.align.pipe(Nt(1))),Mt())})),this.translateX$.subscribe(this.updateDOM.bind(this)),H(this.scrimEl,"click").pipe(Dt(this.subjects.disconnect)).subscribe(function(){return t.close()}),e.pipe(Dt(this.subjects.disconnect)).subscribe(function(e){t.scrimEl.style.display=e?"block":"none"}),this.subjects.align.pipe(Dt(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(Dt(this.subjects.disconnect),Lt(function(e){return e?t.contentEl.classList.add("hy-drawer-grab"):t.contentEl.classList.remove("hy-drawer-grab"),e?n.pipe(Ft(o)):Y()})).subscribe(function(t){var e=Ii(t,2),n=e[0].event;e[1]&&n&&n.preventDefault()}),this.fireEvent("init",{detail:this.opened})}}]),e}(Ri(Pi(ki(t))))},qi=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),Fi=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var s=o.get;if(void 0!==s)return s.call(r)},Ui=new po([].concat(function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}(xo),["eventlistener","queryselector","requestanimationframe","classlist","opacity","csstransforms","csspointerevents"])),Hi=function(t){return function(t){function e(){return ne(this,e),re(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return oe(e,t),qi(e,[{key:"setupComponent",value:function(t,n){Fi(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"setupComponent",this).call(this,t,n),this.animateTo$=new ur,this.scrimEl=this.sroot.querySelector(".hy-drawer-scrim"),this.contentEl=this.sroot.querySelector(".hy-drawer-content"),this.contentEl.classList.add("hy-drawer-"+this.align)}},{key:"connectComponent",value:function(){this.setupObservables(),Fi(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"connectComponent",this).call(this)}},{key:"open",value:function(){arguments.length>0&&void 0!==arguments[0]&&!arguments[0]?this.opened=!0:this.animateTo$.next(!0)}},{key:"close",value:function(){arguments.length>0&&void 0!==arguments[0]&&!arguments[0]?this.opened=!1:this.animateTo$.next(!1)}},{key:"toggle",value:function(){arguments.length>0&&void 0!==arguments[0]&&!arguments[0]?this.opened=!this.opened:this.animateTo$.next(!this.opened)}}],[{key:"componentName",get:function(){return"hy-drawer"}},{key:"types",get:function(){return{opened:No,align:Io(["left","right"]),persistent:No,range:Mo(Ro),threshold:Ro,preventDefault:No,mouseEvents:No}}},{key:"defaults",get:function(){return{opened:!1,align:"left",persistent:!1,range:[0,100],threshold:10,preventDefault:!1,mouseEvents:!1}}}]),e}(Di(Po(ko(t))))},zi=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),Bi=Ui,Wi=function(t){function e(){return ie(this,e),se(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return ue(e,t),zi(e,[{key:"setupShadowDOM",value:function(t){if(!t)throw Error("No element provided");var e=new DocumentFragment;return e.appendChild(wo("div",{class:"hy-drawer-scrim"})),e.appendChild(wo("div",{class:"hy-drawer-content"},t.children)),t.appendChild(e),t}}]),e}(Hi(yo)),Xi=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var s=o.get;if(void 0!==s)return s.call(r)},$i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),Vi=new po([].concat(function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}(xo),["template","customelements"])),Yi=null,Gi=function(t){return function(t){function e(){var t;he(this,e);for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];var i=pe(this,(t=e.__proto__||Object.getPrototypeOf(e)).call.apply(t,[this].concat(r)));return i.setupComponent(i,i.getStateFromAttributes()),i}return de(e,t),$i(e,null,[{key:"getObservedAttributes",value:function(){var t=this.types;return Object.keys(t).map(function(t){return ce(t)})}}]),$i(e,[{key:"reflectAttribute",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=ce(t);n&&(Yi=r);var o=this.constructor.types,i=o[t],s=i.stringify(e);null==s?this.removeAttribute(r):this.setAttribute(r,s)}},{key:"getStateFromAttributes",value:function(){var t=this,e=this.constructor.types,n={};return Object.keys(e).forEach(function(r){var o=ce(r),i=t.hasAttribute(o)?t.getAttribute(o):null,s=ae(e[r],i);null!=s&&(n[r]=s)}),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(Yi===t)Yi=null;else if(e!==n){var r=this.constructor.types,o=fe(t),i=ae(r[o],n);this[o]=null!=i?i:this.constructor.defaults[o]}}},{key:"setInternalState",value:function(t,n){Xi(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"setInternalState",this).call(this,t,n),this.reflectAttribute(t,n,!0)}},{key:"setupShadowDOM",value:function(t){var e=this.getTemplate();if(e){if("attachShadow"in Element.prototype)return t.attachShadow({mode:"open"}),t.shadowRoot.appendChild(e),t.shadowRoot;throw Error("ShadowDOM API not supported")}return t}},{key:"getEl",value:function(){return this}},{key:"getTemplate",value:function(){var t=this.constructor.componentName;return document.querySelector('link[href*="'+t+'"]').import.querySelector("#"+t+"-template").content.cloneNode(!0)}},{key:"template",get:function(){return this.getTemplate()}}]),e}(t)};Object.setPrototypeOf&&(Object.setPrototypeOf(ye.prototype,HTMLElement.prototype),Object.setPrototypeOf(ye,HTMLElement));var Ki=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),Ji=(new po([].concat(we(Vi),we(Ui))),function(t){function e(){return ve(this,e),me(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return ge(e,t),Ki(e,[{key:"getTemplate",value:function(){return be('<div class="hy-drawer-scrim"></div> <div class="hy-drawer-content"> <slot></slot> </div> <style> @media screen { .hy-drawer-scrim { position: fixed; top: 0; left: 0; height: 100vh; width: 100vw; z-index: 20; opacity: 0; pointer-events: none; background: rgba(0, 0, 0, 0.5); transform: translateX(0); -webkit-tap-highlight-color: transparent; } .hy-drawer-content { position: fixed; top: 0; height: 100vh; z-index: 30; overflow-x: hidden; overflow-y: auto; transform: translateX(0); width: 300px; background: #e8e8e8; box-shadow: 0 0 15px rgba(0, 0, 0, 0.25); contain: strict; -webkit-overflow-scrolling: touch; } .hy-drawer-content.hy-drawer-left { left: -300px; } .hy-drawer-content.hy-drawer-right { right: -300px; } .hy-drawer-content.hy-drawer-left.hy-drawer-opened { left: 0 !important; transform: translateX(0) !important; } .hy-drawer-content.hy-drawer-right.hy-drawer-opened { right: 0 !important; transform: translateX(0) !important; } .hy-drawer-grab { cursor: move; cursor: -webkit-grab; cursor: -moz-grab; cursor: grab; } .hy-drawer-grabbing { cursor: -webkit-grabbing; cursor: -moz-grabbing; cursor: grabbing; } } @media print { .hy-drawer-scrim { display: none !important; } .hy-drawer-content { transform: none !important; } } @media screen { .hy-drawer-content { @apply --hy-drawer-content-container; width: var(--hy-drawer-width, 300px); background: var(--hy-drawer-background, #e8e8e8); box-shadow: var(--hy-drawer-box-shadow, 0 0 15px rgba(0, 0, 0, 0.25)); z-index: var(--hy-drawer-z-index, 30); } .hy-drawer-content.hy-drawer-left { left: calc( -1 * var(--hy-drawer-slide-width, var(--hy-drawer-width, 300px)) ); } .hy-drawer-content.hy-drawer-right { right: calc( -1 * var(--hy-drawer-slide-width, var(--hy-drawer-width, 300px)) ); } .hy-drawer-scrim { @apply --hy-drawer-scrim-container; background: var(--hy-drawer-scrim-background, rgba(0, 0, 0, 0.5)); z-index: var(--hy-drawer-scrim-z-index, 20); } } </style>')}}],[{key:"observedAttributes",get:function(){return this.getObservedAttributes()}}]),e}(Gi(Hi(ye)))),Zi=(n(49),new po([].concat(function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}(Bi),["cssremunit","classlist","eventlistener","matchmedia"]))),Qi="(min-width: 64em)";if(!window._noDrawer&&Z(Zi)&&!so){var ts=document.getElementsByTagName("hy-drawer")[0],es=document.getElementById("_menu");window._isDesktop=window.matchMedia(Qi).matches,window._drawer="customElements"in window&&"attachShadow"in Element.prototype?function(t){return window._isDesktop&&t.setAttribute("opened",""),window._isDesktop&&t.setAttribute("persistent",""),t.setAttribute("align","left"),t.setAttribute("range",Se().join(",")),t.setAttribute("threshold",oo?0:10),t.setAttribute("prevent-default",""),customElements.define("hy-drawer",Ji),t}(ts):function(t){return new Wi(t,{opened:window._isDesktop,persistent:window._isDesktop,align:"left",range:Se(),threshold:oo?0:10,preventDefault:!0})}(ts),ts.classList.add("loaded"),es.addEventListener("click",xe),H(window,"resize",{passive:!0}).subscribe(_e)}var ns=(n(54),n(64),window.URL);if(!(ns&&ns.prototype&&"href"in ns.prototype)){ns=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})},ns.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 rs=window.URL||window.webkitURL||window.mozURL;ns.createObjectURL=function(t){return rs.createObjectURL.apply(rs,arguments)},ns.revokeObjectURL=function(t){return rs.revokeObjectURL.apply(rs,arguments)},Object.defineProperty(ns.prototype,"toString",{enumerable:!1})}var os=Element.prototype.matches||Element.prototype.matchesSelector||Element.prototype.msMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.webkitMatchesSelector||Element.prototype.oMatchesSelector,is="push",ss=function(t){return function(e){return t.pipe(Lt(function(t){return t?Y():e}))}},us=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var s,u=t[Symbol.iterator]();!(r=(s=u.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&u.return&&u.return()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),as=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),cs=function(t){return function(t){function e(){return Pe(this,e),Ce(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return Me(e,t),as(e,[{key:"histId",value:function(){return this.el.id||this.constructor.componentName}},{key:"shouldLoadAnchor",value:function(t,e){return t&&""===t.target&&(!e||-1!==t.href.search(e))}},{key:"isPushEvent",value:function(t){var e=t.url,n=t.anchor,r=t.event,o=r.metaKey,i=r.ctrlKey;return!o&&!i&&this.shouldLoadAnchor(n,this.hrefRegex)&&!Oe(e,this)}},{key:"isHintEvent",value:function(t){var e=t.url,n=t.anchor;return this.shouldLoadAnchor(n,this.hrefRegex)&&!Oe(e,this)&&!je(e,this)}},{key:"isHashChange",value:function(t){var e=us(t,2),n=e[0].url.pathname,r=e[1],o=r.url,i=o.pathname,s=o.hash,u=r.type;return i===n&&("pop"===u||u===is&&""!==s)}}]),e}(t)},ls=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),fs=function(t){return function(t){function e(){return Re(this,e),Ie(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return Le(e,t),ls(e,[{key:"assignScrollPosition",value:function(t){var e=this.histId();return Object.assign(t,Ne({},e,Object.assign(t[e]||{},{scrollTop:Te(),scrollHeight:ke()})))}},{key:"manageScrollPostion",value:function(t){var e=t.type,n=t.url.hash;switch(e){case is:this.scrollHashIntoView(n,{behavior:"smooth",block:"start",inline:"nearest"});break;case"pop":this.restoreScrollPostion();break;case INIT:}}},{key:"scrollHashIntoView",value:function(t,e){if(t){var n=document.getElementById(t.substr(1));n&&n.scrollIntoView(e)}else window.scroll(window.pageXOffset,0)}},{key:"restoreScrollPostion",value:function(){var t=this.histId(),e=window.history.state&&window.history.state[t]||{},n=e.scrollTop;null!=n&&window.scroll(window.pageXOffset,n)}},{key:"restoreScrollPostionOnReload",value:function(){0!=Te()||this.restoreScrollPostion()}}]),e}(t)},hs=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),ps=function(t){return function(t){function e(){return qe(this,e),Fe(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return Ue(e,t),hs(e,[{key:"updateHistoryState",value:function(t){var e=t.type,n=t.replace,r=t.url.href;if(!Oe(this))switch(e){case"init":case is:var o=this.histId(),i=n||r===window.location.href?"replaceState":"pushState",s=Object.assign(window.history.state||{},De({},o,{}));window.history[i](s,document.title,r)}}},{key:"updateHistoryStateHash",value:function(t){var e=t.type,n=t.url;if(!Oe(this)&&e===is){var r=this.histId();window.history.pushState(De({},r,{}),document.title,n)}}},{key:"updateHistoryTitle",value:function(t){var e=t.type,n=t.title;document.title=n,Oe(this)||e!==is||window.history.replaceState(window.history.state,n,window.location)}},{key:"saveScrollPosition",value:function(){if(!Oe(this)){var t=this.assignScrollPosition(window.history.state||{});window.history.replaceState(t,document.title,window.location)}}}]),e}(fs(t))},ds=n(69),ys=j(function(t,e){return t.response}),bs=function(t){function e(e){var n=t.call(this)||this,r={async:!0,createXHR:function(){return this.crossDomain?He():ze()},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 r(e,t),e.prototype._subscribe=function(t){return new vs(t,this.request)},e.create=function(){var t=function(t){return new e(t)};return t.get=Be,t.post=We,t.delete=Xe,t.put=$e,t.patch=Ve,t.getJSON=Ye,t}(),e}(rr),vs=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||ds.a.FormData&&n.body instanceof ds.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 r(e,t),e.prototype.next=function(t){this.done=!0;var e=this,n=e.xhr,r=e.request,o=e.destination,i=new ms(t,n,r);o.next(i)},e.prototype.send=function(){var t=this,e=t.request,n=t.request,r=n.user,o=n.method,i=n.url,s=n.async,u=n.password,c=n.headers,l=n.body,f=e.createXHR,h=a(f).call(e);if(h===Yn)this.error(Yn.e);else{this.xhr=h,this.setupEvents(h,e);if((r?a(h.open).call(h,o,i,s,r,u):a(h.open).call(h,o,i,s))===Yn)return this.error(Yn.e),null;if(s&&(h.timeout=e.timeout,h.responseType=e.responseType),"withCredentials"in h&&(h.withCredentials=!!e.withCredentials),this.setHeaders(h,c),(l?a(h.send).call(h,l):a(h.send).call(h))===Yn)return this.error(Yn.e),null}return h},e.prototype.serializeBody=function(t,e){if(!t||"string"==typeof t)return t;if(ds.a.FormData&&t instanceof ds.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){function n(t){var e=n,r=e.subscriber,o=e.progressSubscriber,i=e.request;o&&o.error(t),r.error(new ws(this,i))}function r(t){}function o(t){var e=o,n=e.subscriber,r=e.progressSubscriber,i=e.request;if(4===this.readyState){var s=1223===this.status?204:this.status,u="text"===this.responseType?this.response||this.responseText:this.response;0===s&&(s=u?200:0),s<400?(r&&r.complete(),n.next(t),n.complete()):(r&&r.error(t),n.error(new gs("ajax error "+s,this,i)))}}var i=e.progressSubscriber;if(t.ontimeout=n,n.request=e,n.subscriber=this,n.progressSubscriber=i,t.upload&&"withCredentials"in t){if(i){var s;s=function(t){s.progressSubscriber.next(t)},ds.a.XDomainRequest?t.onprogress=s:t.upload.onprogress=s,s.progressSubscriber=i}var u;u=function(t){var e=u,n=e.progressSubscriber,r=e.subscriber,o=e.request;n&&n.error(t),r.error(new gs("ajax error",this,o))},t.onerror=u,u.request=e,u.subscriber=this,u.progressSubscriber=i}t.onreadystatechange=r,r.subscriber=this,r.progressSubscriber=i,r.request=e,t.onload=o,o.subscriber=this,o.progressSubscriber=i,o.request=e},e.prototype.unsubscribe=function(){var e=this,n=e.done,r=e.xhr;!n&&r&&4!==r.readyState&&"function"==typeof r.abort&&r.abort(),t.prototype.unsubscribe.call(this)},e}(tr),ms=function(){function t(t,e,n){this.originalEvent=t,this.xhr=e,this.request=n,this.status=e.status,this.responseType=e.responseType||n.responseType,this.response=Ge(this.responseType,e)}return t}(),gs=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=Ge(i.responseType,r),Object.setPrototypeOf(i,e.prototype),i}return r(e,t),e}(Error),ws=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 r(e,t),e}(gs),_s=bs.create,xs=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var s,u=t[Symbol.iterator]();!(r=(s=u.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&u.return&&u.return()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),Ss=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),Es=function(t){return function(t){function e(){return Ke(this,e),Je(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return Ze(e,t),Ss(e,[{key:"makeRequest",value:function(t){var e=this;return _s({method:"GET",responseType:"text",url:t.url,crossDomain:Oe(this),headers:{Accept:"text/html"}}).pipe(j(function(e){var n=e.response;return Object.assign(t,{response:n})}),yt(function(n){return e.recoverIfResponse(t,n)}))}},{key:"recoverIfResponse",value:function(t,e){var n=e.status,r=e.xhr;return _(r&&r.response&&n>400&&n<598?Object.assign(t,{response:r.response}):Object.assign(t,{error:e}))}},{key:"getFetch$",value:function(t,e,n){return t.url.href===e.url.href&&null==e.error?_(e):n.pipe(_t(1))}},{key:"getResponse",value:function(t,e){var n=xs(e,2),r=n[0],o=n[1];return J(this.getFetch$(r,o,t).pipe(j(function(t){return Object.assign(t,r)})),this.animPromise,function(t){return t})}}]),e}(t)},Os=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var s,u=t[Symbol.iterator]();!(r=(s=u.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&u.return&&u.return()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),js=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),ks=function(t){return function(t){function e(){return Qe(this,e),tn(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return en(e,t),js(e,[{key:"tempRemoveScriptTags",value:function(t){var e=this,n=[];return t.forEach(function(t){return Array.from(t.querySelectorAll(e.scriptSelector)).forEach(function(t){var e=[t,t.previousSibling];t.parentNode.removeChild(t),n.push(e)})}),n}},{key:"insertScript",value:function(t){var e=Os(t,2),n=e[0],r=e[1],o=document.write;return document.write=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];var o=document.createElement("div");o.innerHTML=e.join(),Array.from(o.childNodes).forEach(function(t){r.parentNode.insertBefore(t,r.nextSibling)})},""!==n.src?rr.create(function(t){n.addEventListener("load",function(e){document.write=o,t.complete(e)}),n.addEventListener("error",function(e){document.write=o,t.error(e)}),r.parentNode.insertBefore(n,r.nextSibling)}):_({}).pipe(wt(function(){r.parentNode.insertBefore(n,r.nextSibling),document.write=o}))}},{key:"reinsertScriptTags",value:function(t){return this.scriptSelector?I(t.scripts).pipe(bt(this.insertScript.bind(this)),yt(function(e){throw Object.assign(t,{error:e})})).toPromise().then(function(){return t}):_(t)}}]),e}(t)},Ts=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var s,u=t[Symbol.iterator]();!(r=(s=u.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&u.return&&u.return()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),As=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),Ps=function(t){return function(t){function e(){return nn(this,e),rn(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return on(e,t),As(e,[{key:"getTitle",value:function(t){return(t.querySelector("title")||{}).textContent}},{key:"getReplaceElements",value:function(t){if(this.replaceIds.length>0)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=t.response,n=Ae(e),r=this.getTitle(n),o=this.getReplaceElements(n);if(o.some(function(t){return null==t}))throw Object.assign(t,{replaceElMissing:!0});var i=this.scriptSelector?this.tempRemoveScriptTags(o):[];return Object.assign(t,{title:r,replaceEls:o,scripts:i})}},{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=Ts(t,1),n=e[0];this.el.innerHTML=n.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),Oe(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){}}}},{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){}}}},{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){}}}}]),e}(ks(t))},Cs=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),Ms=function(t){return function(t){function e(){return sn(this,e),un(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return an(e,t),Cs(e,[{key:"onStart",value:function(t){var e=this;this.animPromise=G(this.duration);var n=function(t){e.animPromise=t};this.fireEvent("start",{detail:Object.assign(t,{waitUntil:n})})}},{key:"onDOMError",value:function(t){var e=t.replaceElMissing,n=t.url;if(e){window.history.back(),setTimeout(function(){document.location.href=n},100)}else this.fireEvent("error",{detail:t})}},{key:"onNetworkError",value:function(t){this.fireEvent("networkerror",{detail:t})}},{key:"onError",value:function(t){this.fireEvent("error",{detail:t})}},{key:"onReady",value:function(t){this.fireEvent("ready",{detail:t})}},{key:"onAfter",value:function(t){this.fireEvent("after",{detail:t})}},{key:"onProgress",value:function(t){this.fireEvent("progress",{detail:t})}},{key:"onLoad",value:function(t){this.fireEvent("load",{detail:t})}}]),e}(t)},Ns=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),Rs=function(t){return function(t){function e(){return cn(this,e),ln(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return fn(e,t),Ns(e,[{key:"setupEventListeners",value:function(){var t=this;if("MutationObserver"in window&&"WeakSet"in window){var e=new WeakSet,n=this.pushSubject.next.bind(this.pushSubject),r=this.hintSubject.next.bind(this.hintSubject),o=function(t){e.has(t)||(e.add(t),t.addEventListener("click",n),t.addEventListener("mouseenter",r,{passive:!0}),t.addEventListener("touchstart",r,{passive:!0}),t.addEventListener("focus",r,{passive:!0}))},i=function(e){e instanceof Element&&(os.call(e,t.linkSelector)?o(e):Array.from(e.querySelectorAll(t.linkSelector)).forEach(o))},s=function(t){e.delete(t),t.removeEventListener("click",n),t.removeEventListener("mouseenter",r,{passive:!0}),t.removeEventListener("touchstart",r,{passive:!0}),t.removeEventListener("focus",r,{passive:!0})},u=function(e){e instanceof Element&&(os.call(e,t.linkSelector)?s(e):Array.from(e.querySelectorAll(t.linkSelector)).forEach(s))};rr.create(function(e){var n=e.next.bind(e);t.mutationObserver=new MutationObserver(function(t){return Array.from(t).forEach(n)}),t.mutationObserver.observe(t.el,{childList:!0,subtree:!0})}).subscribe(function(e){var n=e.addedNodes,r=e.removedNodes;Array.from(r).forEach(u.bind(t)),Array.from(n).forEach(i.bind(t))}),this.subjects.linkSelector.subscribe(function(){Array.from(e).forEach(s),i.call(t,t.el)})}else this.el.addEventListener("click",function(e){var n=Ee.call(e.target,t.linkSelector);n&&n.href&&(e.currentTarget=n,pushSubject.next(e))})}}]),e}(t)},Is=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var s,u=t[Symbol.iterator]();!(r=(s=u.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&u.return&&u.return()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),Ls=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),Ds=function(t){return function(t){function e(){return hn(this,e),pn(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return dn(e,t),Ls(e,[{key:"compareContext",value:function(t,e){return t.url.href===e.url.href&&t.error===e.error&&t.cacheNr===e.cacheNr}},{key:"setupObservables",value:function(){var t=this;this.cacheNr=1,this.pushSubject=new ur,this.hintSubject=new ur;var e=this.pushSubject.pipe(Dt(this.subjects.disconnect),j(function(e){return{type:is,url:new ns(e.currentTarget.href,t.href),anchor:e.currentTarget,event:e,cacheNr:t.cacheNr}}),gt(this.isPushEvent.bind(this)),wt(function(e){e.event.preventDefault(),t.saveScrollPosition()})),n=H(window,"popstate").pipe(Dt(this.subjects.disconnect),gt(function(){return window.history.state&&window.history.state[t.histId()]}),j(function(e){return{type:"pop",url:new ns(window.location,t.href),event:e,cacheNr:t.cacheNr}})),r=this.reload$.pipe(Dt(this.subjects.disconnect)),o=V(e,n,r).pipe(It({url:new ns(this.initialHref)}),wt(function(e){var n=e.url;return t._url=n}),jt(),Mt(),Tt(this.isHashChange)).map(function(t){return t.pipe(j(function(t){return Is(t,2)[1]}),Mt())}),i=Is(o,2),s=i[0],u=i[1],a=U(function(){return V(u.pipe(Et(!0)),t.fetch$.pipe(Et(!1)))}).pipe(It(!1),Mt()),c=this.hintSubject.pipe(Dt(this.subjects.disconnect),ss(a),j(function(e){return{type:"hint",url:new ns(e.currentTarget.href,t.href),anchor:e.currentTarget,event:e,cacheNr:t.cacheNr}}),gt(this.isHintEvent.bind(this))),l=V(c,u).pipe(mt(this.compareContext.bind(this)),Lt(this.makeRequest.bind(this)),It({url:{}}),Mt());this.fetch$=u.pipe(wt(function(e){t.updateHistoryState(e),t.onStart(e)}),Ft(l),Lt(this.getResponse.bind(this,l)),Mt());var f=this.fetch$.pipe(Tt(function(t){return!t.error})),h=Is(f,2),p=h[0],d=h[1];p.pipe(j(this.responseToContent.bind(this)),wt(function(e){t.onReady(e),t.updateDOM(e),t.onAfter(e),t.manageScrollPostion(e)}),wt({error:function(e){return t.onDOMError(e)}}),yt(function(t,e){return e}),Lt(this.reinsertScriptTags.bind(this)),wt({error:function(e){return t.onError(e)}}),yt(function(t,e){return e})).subscribe(this.onLoad.bind(this)),s.subscribe(function(e){t.updateHistoryStateHash(e),t.manageScrollPostion(e)}),d.subscribe(this.onNetworkError.bind(this)),u.pipe(Lt(function(e){return U(function(){return t.animPromise}).pipe(Dt(t.fetch$),Et(e))})).subscribe(this.onProgress.bind(this)),this.setupEventListeners()}}]),e}(Rs(Ms(Ps(Es(ps(cs(t)))))))},qs=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),Fs=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var s=o.get;if(void 0!==s)return s.call(r)},Us=new po([].concat(function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}(xo),["documentfragment","eventlistener","history","promises","queryselector","requestanimationframe"]));DocumentFragment.prototype.getElementById=DocumentFragment.prototype.getElementById||function(t){return this.querySelector("#"+t)};var Hs=function(t){return function(t){function e(){return yn(this,e),bn(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return vn(e,t),qs(e,[{key:"setupComponent",value:function(t,n){Fs(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"setupComponent",this).call(this,t,n),this.saveScrollPosition=this.saveScrollPosition.bind(this),this.reload$=new ur}},{key:"setupShadowDOM",value:function(t){return t}},{key:"connectComponent",value:function(){"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"),this.restoreScrollPostionOnReload(),window.addEventListener("beforeunload",this.saveScrollPosition),this.setupObservables(),Fs(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"connectComponent",this).call(this);var t=new ns(this.initialHref);this.updateHistoryState({type:"init",replace:!0,url:t});var n=this.getReplaceElements(document);Oe(this)&&this.rewriteURLs(n),this.fireEvent("init"),this.onLoad({type:"init",title:this.getTitle(document),replaceEls:n,url:t,cacheNr:this.cacheNr})}},{key:"disconnectComponent",value:function(){Fs(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"disconnectComponent",this).call(this),window.removeEventListener("beforeunload",this.saveScrollPosition)}},{key:"assign",value:function(t){this.reload$.next({type:is,url:new ns(t,this.href),cacheNr:++this.cacheNr})}},{key:"reload",value:function(){this.reload$.next({type:is,url:new ns(this.href),cacheNr:++this.cacheNr,replace:!0})}},{key:"replace",value:function(t){this.reload$.next({type:is,url:new ns(t,this.href),cacheNr:++this.cacheNr,replace:!0})}},{key:"hash",get:function(){return this._url.hash}},{key:"host",get:function(){return this._url.host}},{key:"hostname",get:function(){return this._url.hostname}},{key:"href",get:function(){return this._url.href}},{key:"origin",get:function(){return this._url.origin}},{key:"pathname",get:function(){return this._url.pathname}},{key:"port",get:function(){return this._url.port}},{key:"protocol",get:function(){return this._url.protocol}},{key:"search",get:function(){return this._url.search}}],[{key:"componentName",get:function(){return"hy-push-state"}},{key:"types",get:function(){return{replaceIds:Co,linkSelector:Do,duration:Ro,hrefRegex:Lo,scriptSelector:Do,initialHref:Do}}},{key:"defaults",get:function(){return{replaceIds:[],linkSelector:"a[href]:not(.no-push-state)",duration:0,hrefRegex:null,scriptSelector:null,initialHref:window.location.href}}}]),e}(Ds(Po(ko(t))))},zs=Us,Bs=function(t){function e(){return mn(this,e),gn(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return wn(e,t),e}(Hs(yo)),Ws=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),Xs=(new po([].concat(En(Vi),En(Us))),function(t){function e(){return _n(this,e),xn(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return Sn(e,t),Ws(e,[{key:"getTemplate",value:function(){return null}}],[{key:"observedAttributes",get:function(){return this.getObservedAttributes()}}]),e}(Gi(Hs(ye)))),$s=(n(71),n(73)),Vs=n.n($s),Ys=n(79),Gs=n.n(Ys),Ks=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var s,u=t[Symbol.iterator]();!(r=(s=u.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&u.return&&u.return()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),Js=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),Zs=Array.prototype.find,Qs=.8,tu=function(){function t(e){On(this,t);var n=document.getElementById("_main"),r=document.getElementById("_pageStyle"),o=Zs.call(document.styleSheets,function(t){return t.ownerNode===r})||{};this.sidebar=document.getElementById("_sidebar"),this.fadeDuration=e,this.rules=o.cssRules||o.rules,this.prevHash=kn(Gs()(n)),this.themeColor=document.querySelector('meta[name="theme-color"]')}return Js(t,[{key:"fetchImage",value:function(t){var e=Gs()(t),n=e.background,r=e.color,o=e.image,i=e.overlay,s=kn(e);return s===this.prevHash?b():Tn.call(this,e).pipe(j(function(){var t=document.createElement("div");return t.classList.add("sidebar-bg"),"none"!==o&&""===i&&t.classList.add("sidebar-overlay"),n?t.style.background=n:(t.style.backgroundColor=r,""!==o&&"none"!==o&&(t.style.backgroundImage="url("+o+")")),[t,e,s]}))}},{key:"fade",value:function(t,e){var n=Ks(t,1),r=n[0],o=Ks(e,3),i=o[0],s=o[1],u=o[2];return r.parentNode.insertBefore(i,r.nextElementSibling),jn.call(this,s),this.prevHash=u,et(i,[{opacity:0},{opacity:1}],{duration:this.fadeDuration}).pipe(St(function(){return r.parentNode.removeChild(r)}))}}]),t}(),eu=tu;Pn();var nu=(n(80),function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var s,u=t[Symbol.iterator]();!(r=(s=u.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&u.return&&u.return()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}()),ru=".page-title, .post-title",ou=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var s,u=t[Symbol.iterator]();!(r=(s=u.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&u.return&&u.return()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),iu=["title","projects"],su=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var s,u=t[Symbol.iterator]();!(r=(s=u.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&u.return&&u.return()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),uu=new po([].concat(function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}(zs),["classlist","cssanimations","cssremunit","documentfragment","eventlistener","history","matchmedia","opacity","queryselector","requestanimationframe"])),au="_main",cu="a[href]:not(.external):not(.no-push-state)",lu='script:not([type^="math/tex"])',fu=/^((?!(\/assets\/)).)*$/,hu=250,pu=[{opacity:1},{opacity:0}],du=[{opacity:0,transform:"translateY(-3rem)"},{opacity:1,transform:"translateY(0)"}],yu={duration:hu,easing:"cubic-bezier(0,0,0.32,1)"},bu=Array.prototype.forEach,vu=Object.assign.bind(Object);if(!window._noPushState&&Z(uu)&&!uo){var mu=!!navigator.standalone||window.matchMedia("(display-mode: standalone)").matches,gu=document.getElementsByTagName("hy-push-state")[0],wu=document.querySelector(".navbar .content .nav-btn-bar"),_u=function(t){var e=document.getElementById("_animation-template"),n=document.importNode(e.content,!0);return t.parentNode.insertBefore(n,t),t.previousElementSibling}(gu),xu=function(t){var e=document.getElementById("_loading-template"),n=document.importNode(e.content,!0);return t.appendChild(n),t.lastElementChild}(document.querySelector(".navbar .content"));mu&&function(t,e,n){var r=document.getElementById(e),o=document.importNode(r.content,!0);o.querySelector(".nav-btn").addEventListener("click",n),t.appendChild(o),t.lastElementChild}(wu,"_back-template",function(){return window.history.back()});var Su=document.getElementById("_main");bu.call(Su.querySelectorAll("h1[id], h2[id], h3[id], h4[id], h5[id], h6[id]"),Rn),Su.classList.remove("fade-in");var Eu=H(gu,"hy-push-state-start").pipe(j(function(t){var e=t.detail;return vu(e,{flipType:Ln(e.anchor)})}),Mt()),Ou=H(gu,"hy-push-state-ready").pipe(j(function(t){return t.detail}),Mt()),ju=H(gu,"hy-push-state-after").pipe(j(function(t){return t.detail}),Mt()),ku=H(gu,"hy-push-state-progress").pipe(j(function(t){return t.detail}),Mt()),Tu=H(gu,"hy-push-state-networkerror").pipe(j(function(t){return t.detail}),Mt()),Au=Eu.pipe(j(function(t){return vu(t,{main:document.getElementById("_main")})}),wt(function(t){var e=t.type,n=t.main;!window._isDesktop&&window._drawer&&window._drawer.opened&&window._drawer.close(),Dn(e)&&(n.style.pointerEvents="none",n.style.opacity=0)}),xt(Fn),wt(function(t){var e=t.main;tt.call(e),window.scroll(window.pageXOffset,0)}),Mt());ku.subscribe(function(){xu.style.display="block"}),Ou.subscribe(function(t){var e=su(t.replaceEls,1),n=e[0];xu.style.display="none",n.classList.remove("fade-in"),bu.call(n.querySelectorAll("h1[id], h2[id], h3[id], h4[id], h5[id], h6[id]"),Rn),n.style.pointerEvents="none"});var Pu=ju.pipe(Lt(Un),wt(function(t){t.main.style.pointerEvents=""}),Mt()),Cu=function(t,e,n,r){var o=t.pipe(gt(function(t){var e=t.flipType;return!iu.includes(e)}));return V(Cn(t,e,n,r),Nn(t,e,n,r),o)}(Eu,Ou,V(Pu,Tu),{animationMain:_u,settings:yu}).pipe(Mt());Eu.pipe(j(function(t){var e=nt();return t.waitUntil(e),e}),Lt(function(t){return G(hu).pipe(Ut(Au,Cu,function(){return t}))})).subscribe(function(t){return t.resolve()}),Au.subscribe(),Cu.subscribe();var Mu=new eu(600);ju.pipe(Lt(function(t){var e=su(t.replaceEls,1),n=e[0];return Mu.fetchImage(n).pipe(Ut(Pu,function(t){return t}),Dt(Eu))}),It([document.querySelector(".sidebar-bg")]),jt(),L(function(t){var e=su(t,2),n=e[0],r=e[1];return Mu.fade(n,r)})).subscribe(),Pu.pipe(wt(ut),wt(Pn),gt(function(){return!!window.ga}),function(t,e){return void 0===e&&(e=Pr),function(n){return n.lift(new Uo(t,e))}}(500)).subscribe(function(){window.ga("set","page",window.location.pathname),window.ga("send","pageview")}),Tu.subscribe(function(t){var e=t.url;xu.style.display="none",tt.call(_u.querySelector(".page"));var n=document.getElementById("_main");tt.call(n),n.style.pointerEvents="",n.style.opacity="",In(n,e)}),oo&&!navigator.standalone&&(H(window,"popstate").pipe(gt(function(){return window.history.state&&window.history.state["hy-push-state"]&&!window.history.state["hy-push-state"].hash})).subscribe(function(){var t=window.history.state["hy-push-state"].scrollHeight;document.body.style.minHeight=t+"px"}),V(ju,ku,Tu).pipe(E(Nr)).subscribe(function(){document.body.style.minHeight=""})),window._pushState="customElements"in window?function(t){return t.setAttribute("replace-ids",au),t.setAttribute("link-selector",cu),t.setAttribute("duration",hu),qn()&&t.setAttribute("scroll-restoration",""),t.setAttribute("href-regex",fu),t.setAttribute("script-selector",lu),customElements.define("hy-push-state",Xs),t}(gu):function(t){return new Bs(t,{replaceIds:au.split(","),linkSelector:cu,duration:hu,scrollRestoration:qn(),hrefRegex:fu,scriptSelector:lu})}(gu)}},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){var r={},o={};!function(t,e){function n(t){if("number"==typeof t)return t;var e={};for(var n in t)e[n]=t[n];return e}function r(){this._delay=0,this._endDelay=0,this._fill="none",this._iterationStart=0,this._iterations=1,this._duration=0,this._playbackRate=1,this._direction="normal",this._easing="linear",this._easingFunction=S}function o(){return t.isDeprecated("Invalid timing inputs","2016-03-02","TypeError exceptions will be thrown instead.",!0)}function i(e,n,o){var i=new r;return n&&(i.fill="both",i.duration="auto"),"number"!=typeof e||isNaN(e)?void 0!==e&&Object.getOwnPropertyNames(e).forEach(function(n){if("auto"!=e[n]){if(("number"==typeof i[n]||"duration"==n)&&("number"!=typeof e[n]||isNaN(e[n])))return;if("fill"==n&&-1==_.indexOf(e[n]))return;if("direction"==n&&-1==x.indexOf(e[n]))return;if("playbackRate"==n&&1!==e[n]&&t.isDeprecated("AnimationEffectTiming.playbackRate","2014-11-28","Use Animation.playbackRate instead."))return;i[n]=e[n]}}):i.duration=e,i}function s(t){return"number"==typeof t&&(t=isNaN(t)?{duration:0}:{duration:t}),t}function u(e,n){return e=t.numericTimingToObject(e),i(e,n)}function a(t,e,n,r){return t<0||t>1||n<0||n>1?S: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 u=0;return n<1?u=(r-1)/(n-1):1==n&&t<1&&(u=(e-1)/(t-1)),1+u*(o-1)}for(var a=0,c=1;a<c;){var l=(a+c)/2,f=i(t,n,l);if(Math.abs(o-f)<1e-5)return i(e,r,l);f<o?a=l:c=l}return i(e,r,l)}}function c(t,e){return function(n){if(n>=1)return 1;var r=1/t;return(n+=e*r)-n%r}}function l(t){T||(T=document.createElement("div").style),T.animationTimingFunction="",T.animationTimingFunction=t;var e=T.animationTimingFunction;if(""==e&&o())throw new TypeError(t+" is not a valid value for easing");return e}function f(t){if("linear"==t)return S;var e=P.exec(t);if(e)return a.apply(this,e.slice(1).map(Number));var n=C.exec(t);return n?c(Number(n[1]),{start:E,middle:O,end:j}[n[2]]):k[t]||S}function h(t){return Math.abs(p(t)/t.playbackRate)}function p(t){return 0===t.duration||0===t.iterations?0:t.duration*t.iterations}function d(t,e,n){if(null==e)return M;var r=n.delay+t+n.endDelay;return e<Math.min(n.delay,r)?N:e>=Math.min(n.delay+t,r)?R:I}function y(t,e,n,r,o){switch(r){case N:return"backwards"==e||"both"==e?0:null;case I:return n-o;case R:return"forwards"==e||"both"==e?t:null;case M:return null}}function b(t,e,n,r,o){var i=o;return 0===t?e!==N&&(i+=n):i+=r/t,i}function v(t,e,n,r,o,i){var s=t===1/0?e%1:t%1;return 0!==s||n!==R||0===r||0===o&&0!==i||(s=1),s}function m(t,e,n,r){return t===R&&e===1/0?1/0:1===n?Math.floor(r)-1:Math.floor(r)}function g(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}function w(t,e,n){var r=d(t,e,n),o=y(t,n.fill,e,r,n.delay);if(null===o)return null;var i=b(n.duration,r,n.iterations,o,n.iterationStart),s=v(i,n.iterationStart,r,n.iterations,o,n.duration),u=m(r,n.iterations,s,i),a=g(n.direction,u,s);return n._easingFunction(a)}var _="backwards|forwards|both|none".split("|"),x="reverse|alternate|alternate-reverse".split("|"),S=function(t){return t};r.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)&&o())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)&&o())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=f(l(t)),this._setMember("easing",t)},get easing(){return this._easing},set iterations(t){if((isNaN(t)||t<0)&&o())throw new TypeError("iterations must be non-negative, received: "+t);this._setMember("iterations",t)},get iterations(){return this._iterations}};var E=1,O=.5,j=0,k={ease:a(.25,.1,.25,1),"ease-in":a(.42,0,1,1),"ease-out":a(0,0,.58,1),"ease-in-out":a(.42,0,.58,1),"step-start":c(1,E),"step-middle":c(1,O),"step-end":c(1,j)},T=null,A="\\s*(-?\\d+\\.?\\d*|-?\\.\\d+)\\s*",P=new RegExp("cubic-bezier\\("+A+","+A+","+A+","+A+"\\)"),C=/steps\(\s*(\d+)\s*,\s*(start|middle|end)\s*\)/,M=0,N=1,R=2,I=3;t.cloneTimingInput=n,t.makeTiming=i,t.numericTimingToObject=s,t.normalizeTimingInput=u,t.calculateActiveDuration=h,t.calculateIterationProgress=w,t.calculatePhase=d,t.normalizeEasing=l,t.parseEasingFunction=f}(r),function(t,e){function n(t,e){return t in l?l[t][e]||e:e}function r(t){return"display"===t||0===t.lastIndexOf("animation",0)||0===t.lastIndexOf("transition",0)}function o(t,e,o){if(!r(t)){var i=u[t];if(i){a.style[t]=e;for(var s in i){var c=i[s],l=a.style[c];o[c]=n(c,l)}}else o[t]=n(t,e)}}function i(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;s<i;s++)o={},o.offset="offset"in t?t.offset:1==i?1:s/(i-1),"easing"in t&&(o.easing=t.easing),"composite"in t&&(o.composite=t.composite),o[n]=r[s],e.push(o)}return e.sort(function(t,e){return t.offset-e.offset}),e}function s(e){if(null==e)return[];window.Symbol&&Symbol.iterator&&Array.prototype.from&&e[Symbol.iterator]&&(e=Array.from(e)),Array.isArray(e)||(e=i(e));for(var n=e.map(function(e){var n={};for(var r in e){var i=e[r];if("offset"==r){if(null!=i){if(i=Number(i),!isFinite(i))throw new TypeError("Keyframe offsets must be numbers.");if(i<0||i>1)throw new TypeError("Keyframe offsets must be between 0 and 1.")}}else if("composite"==r){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"==r?t.normalizeEasing(i):""+i;o(r,i,n)}return void 0==n.offset&&(n.offset=null),void 0==n.easing&&(n.easing="linear"),n}),r=!0,s=-1/0,u=0;u<n.length;u++){var a=n[u].offset;if(null!=a){if(a<s)throw new TypeError("Keyframes are not loosely sorted by offset. Sort or specify offsets.");s=a}else r=!1}return n=n.filter(function(t){return t.offset>=0&&t.offset<=1}),r||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;o++){var i=n[o].offset;if(null!=i){for(var s=1;s<o-e;s++)n[e+s].offset=r+(i-r)*s/(o-e);e=o,r=i}}}(),n}var u={background:["backgroundImage","backgroundPosition","backgroundSize","backgroundRepeat","backgroundAttachment","backgroundOrigin","backgroundClip","backgroundColor"],border:["borderTopColor","borderTopStyle","borderTopWidth","borderRightColor","borderRightStyle","borderRightWidth","borderBottomColor","borderBottomStyle","borderBottomWidth","borderLeftColor","borderLeftStyle","borderLeftWidth"],borderBottom:["borderBottomWidth","borderBottomStyle","borderBottomColor"],borderColor:["borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"],borderLeft:["borderLeftWidth","borderLeftStyle","borderLeftColor"],borderRadius:["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],borderRight:["borderRightWidth","borderRightStyle","borderRightColor"],borderTop:["borderTopWidth","borderTopStyle","borderTopColor"],borderWidth:["borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth"],flex:["flexGrow","flexShrink","flexBasis"],font:["fontFamily","fontSize","fontStyle","fontVariant","fontWeight","lineHeight"],margin:["marginTop","marginRight","marginBottom","marginLeft"],outline:["outlineColor","outlineStyle","outlineWidth"],padding:["paddingTop","paddingRight","paddingBottom","paddingLeft"]},a=document.createElementNS("http://www.w3.org/1999/xhtml","div"),c={thin:"1px",medium:"3px",thick:"5px"},l={borderBottomWidth:c,borderLeftWidth:c,borderRightWidth:c,borderTopWidth:c,fontSize:{"xx-small":"60%","x-small":"75%",small:"89%",medium:"100%",large:"120%","x-large":"150%","xx-large":"200%"},fontWeight:{normal:"400",bold:"700"},outlineWidth:c,textShadow:{none:"0px 0px 0px transparent"},boxShadow:{none:"0px 0px 0px 0px transparent"}};t.convertToArrayForm=i,t.normalizeKeyframes=s}(r),function(t){var e={};t.isDeprecated=function(t,n,r,o){var i=o?"are":"is",s=new Date,u=new Date(n);return u.setMonth(u.getMonth()+3),!(s<u&&(t in e||console.warn("Web Animations: "+t+" "+i+" deprecated and will stop working on "+u.toDateString()+". "+r),e[t]=!0,1))},t.deprecated=function(e,n,r,o){var i=o?"are":"is";if(t.isDeprecated(e,n,r,o))throw new Error(e+" "+i+" no longer supported. "+r)}}(r),function(){if(document.documentElement.animate){var t=document.documentElement.animate([],0),e=!0;if(t&&(e=!1,"play|currentTime|pause|reverse|playbackRate|cancel|finish|startTime|playState".split("|").forEach(function(n){void 0===t[n]&&(e=!0)})),!e)return}!function(t,e,n){function r(t){for(var e={},n=0;n<t.length;n++)for(var r in t[n])if("offset"!=r&&"easing"!=r&&"composite"!=r){var o={offset:t[n].offset,easing:t[n].easing,value:t[n][r]};e[r]=e[r]||[],e[r].push(o)}for(var i in e){var s=e[i];if(0!=s[0].offset||1!=s[s.length-1].offset)throw{type:DOMException.NOT_SUPPORTED_ERR,name:"NotSupportedError",message:"Partial keyframes are not supported"}}return e}function o(n){var r=[];for(var o in n)for(var i=n[o],s=0;s<i.length-1;s++){var u=s,a=s+1,c=i[u].offset,l=i[a].offset,f=c,h=l;0==s&&(f=-1/0,0==l&&(a=u)),s==i.length-2&&(h=1/0,1==c&&(u=a)),r.push({applyFrom:f,applyTo:h,startOffset:i[u].offset,endOffset:i[a].offset,easingFunction:t.parseEasingFunction(i[u].easing),property:o,interpolation:e.propertyInterpolation(o,i[u].value,i[a].value)})}return r.sort(function(t,e){return t.startOffset-e.startOffset}),r}e.convertEffectInput=function(n){var i=t.normalizeKeyframes(n),s=r(i),u=o(s);return function(t,n){if(null!=n)u.filter(function(t){return n>=t.applyFrom&&n<t.applyTo}).forEach(function(r){var o=n-r.startOffset,i=r.endOffset-r.startOffset,s=0==i?0:r.easingFunction(o/i);e.apply(t,r.property,r.interpolation(s))});else for(var r in s)"offset"!=r&&"easing"!=r&&"composite"!=r&&e.clear(t,r)}}}(r,o),function(t,e,n){function r(t){return t.replace(/-(.)/g,function(t,e){return e.toUpperCase()})}function o(t,e,n){u[n]=u[n]||[],u[n].push([t,e])}function i(t,e,n){for(var i=0;i<n.length;i++)o(t,e,r(n[i]))}function s(n,o,i){var s=n;/-/.test(n)&&!t.isDeprecated("Hyphenated property names","2016-03-22","Use camelCase instead.",!0)&&(s=r(n)),"initial"!=o&&"initial"!=i||("initial"==o&&(o=a[s]),"initial"==i&&(i=a[s]));for(var c=o==i?[]:u[s],l=0;c&&l<c.length;l++){var f=c[l][0](o),h=c[l][0](i);if(void 0!==f&&void 0!==h){var p=c[l][1](f,h);if(p){var d=e.Interpolation.apply(null,p);return function(t){return 0==t?o:1==t?i:d(t)}}}}return e.Interpolation(!1,!0,function(t){return t?i:o})}var u={};e.addPropertiesHandler=i;var a={backgroundColor:"transparent",backgroundPosition:"0% 0%",borderBottomColor:"currentColor",borderBottomLeftRadius:"0px",borderBottomRightRadius:"0px",borderBottomWidth:"3px",borderLeftColor:"currentColor",borderLeftWidth:"3px",borderRightColor:"currentColor",borderRightWidth:"3px",borderSpacing:"2px",borderTopColor:"currentColor",borderTopLeftRadius:"0px",borderTopRightRadius:"0px",borderTopWidth:"3px",bottom:"auto",clip:"rect(0px, 0px, 0px, 0px)",color:"black",fontSize:"100%",fontWeight:"400",height:"auto",left:"auto",letterSpacing:"normal",lineHeight:"120%",marginBottom:"0px",marginLeft:"0px",marginRight:"0px",marginTop:"0px",maxHeight:"none",maxWidth:"none",minHeight:"0px",minWidth:"0px",opacity:"1.0",outlineColor:"invert",outlineOffset:"0px",outlineWidth:"3px",paddingBottom:"0px",paddingLeft:"0px",paddingRight:"0px",paddingTop:"0px",right:"auto",strokeDasharray:"none",strokeDashoffset:"0px",textIndent:"0px",textShadow:"0px 0px 0px transparent",top:"auto",transform:"",verticalAlign:"0px",visibility:"visible",width:"auto",wordSpacing:"normal",zIndex:"auto"};e.propertyInterpolation=s}(r,o),function(t,e,n){function r(e){var n=t.calculateActiveDuration(e),r=function(r){return t.calculateIterationProgress(n,r,e)};return r._totalDuration=e.delay+n+e.endDelay,r}e.KeyframeEffect=function(n,o,i,s){var u,a=r(t.normalizeTimingInput(i)),c=e.convertEffectInput(o),l=function(){c(n,u)};return l._update=function(t){return null!==(u=a(t))},l._clear=function(){c(n,null)},l._hasSameTarget=function(t){return n===t},l._target=n,l._totalDuration=a._totalDuration,l._id=s,l}}(r,o),function(t,e){function n(t,e){return!(!e.namespaceURI||-1==e.namespaceURI.indexOf("/svg"))&&(s in t||(t[s]=/Trident|MSIE|IEMobile|Edge|Android 4/i.test(t.navigator.userAgent)),t[s])}function r(t,e,n){n.enumerable=!0,n.configurable=!0,Object.defineProperty(t,e,n)}function o(t){this._element=t,this._surrogateStyle=document.createElementNS("http://www.w3.org/1999/xhtml","div").style,this._style=t.style,this._length=0,this._isAnimatedProperty={},this._updateSvgTransformAttr=n(window,t),this._savedTransformAttr=null;for(var e=0;e<this._style.length;e++){var r=this._style[e];this._surrogateStyle[r]=this._style[r]}this._updateIndices()}function i(t){if(!t._webAnimationsPatchedStyle){var e=new o(t);try{r(t,"style",{get:function(){return e}})}catch(e){t.style._set=function(e,n){t.style[e]=n},t.style._clear=function(e){t.style[e]=""}}t._webAnimationsPatchedStyle=t.style}}var s="_webAnimationsUpdateSvgTransformAttr",u={cssText:1,length:1,parentRule:1},a={getPropertyCSSValue:1,getPropertyPriority:1,getPropertyValue:1,item:1,removeProperty:1,setProperty:1},c={removeProperty:1,setProperty:1};o.prototype={get cssText(){return this._surrogateStyle.cssText},set cssText(t){for(var e={},n=0;n<this._surrogateStyle.length;n++)e[this._surrogateStyle[n]]=!0;this._surrogateStyle.cssText=t,this._updateIndices();for(var n=0;n<this._surrogateStyle.length;n++)e[this._surrogateStyle[n]]=!0;for(var r in e)this._isAnimatedProperty[r]||this._style.setProperty(r,this._surrogateStyle.getPropertyValue(r))},get length(){return this._surrogateStyle.length},get parentRule(){return this._style.parentRule},_updateIndices:function(){for(;this._length<this._surrogateStyle.length;)Object.defineProperty(this,this._length,{configurable:!0,enumerable:!1,get:function(t){return function(){return this._surrogateStyle[t]}}(this._length)}),this._length++;for(;this._length>this._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]}};for(var l in a)o.prototype[l]=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}}(l,l in c);for(var f in document.documentElement.style)f in u||f in a||function(t){r(o.prototype,t,{get:function(){return this._surrogateStyle[t]},set:function(e){this._surrogateStyle[t]=e,this._updateIndices(),this._isAnimatedProperty[t]||(this._style[t]=e)}})}(f);t.apply=function(e,n,r){i(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){function n(t,e,r){if("number"==typeof t&&"number"==typeof e)return t*(1-r)+e*r;if("boolean"==typeof t&&"boolean"==typeof e)return r<.5?t:e;if(t.length==e.length){for(var o=[],i=0;i<t.length;i++)o.push(n(t[i],e[i],r));return o}throw"Mismatched interpolation arguments "+t+":"+e}t.Interpolation=function(t,e,r){return function(o){return r(n(t,e,o))}}}(o),function(t,e){function n(t,e,n){return Math.max(Math.min(t,n),e)}function r(e,r,o){var i=t.dot(e,r);i=n(i,-1,1);var s=[];if(1===i)s=e;else for(var u=Math.acos(i),a=1*Math.sin(o*u)/Math.sqrt(1-i*i),c=0;c<4;c++)s.push(e[c]*(Math.cos(o*u)-i*a)+r[c]*a);return s}var o=function(){function t(t,e){for(var n=[[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]],r=0;r<4;r++)for(var o=0;o<4;o++)for(var i=0;i<4;i++)n[r][o]+=e[r][i]*t[i][o];return n}function e(t){return 0==t[0][2]&&0==t[0][3]&&0==t[1][2]&&0==t[1][3]&&0==t[2][0]&&0==t[2][1]&&1==t[2][2]&&0==t[2][3]&&0==t[3][2]&&1==t[3][3]}function n(n,r,o,i,s){for(var u=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]],a=0;a<4;a++)u[a][3]=s[a];for(var a=0;a<3;a++)for(var c=0;c<3;c++)u[3][a]+=n[c]*u[c][a];var l=i[0],f=i[1],h=i[2],p=i[3],d=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]];d[0][0]=1-2*(f*f+h*h),d[0][1]=2*(l*f-h*p),d[0][2]=2*(l*h+f*p),d[1][0]=2*(l*f+h*p),d[1][1]=1-2*(l*l+h*h),d[1][2]=2*(f*h-l*p),d[2][0]=2*(l*h-f*p),d[2][1]=2*(f*h+l*p),d[2][2]=1-2*(l*l+f*f),u=t(u,d);var y=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]];o[2]&&(y[2][1]=o[2],u=t(u,y)),o[1]&&(y[2][1]=0,y[2][0]=o[0],u=t(u,y)),o[0]&&(y[2][0]=0,y[1][0]=o[0],u=t(u,y));for(var a=0;a<3;a++)for(var c=0;c<3;c++)u[a][c]*=r[a];return e(u)?[u[0][0],u[0][1],u[1][0],u[1][1],u[3][0],u[3][1]]:u[0].concat(u[1],u[2],u[3])}return n}();t.composeMatrix=o,t.quat=r}(o),function(t,e,n){t.sequenceNumber=0;var r=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()};e.Animation=function(e){this.id="",e&&e._id&&(this.id=e._id),this._sequenceNumber=t.sequenceNumber++,this._currentTime=0,this._startTime=null,this._paused=!1,this._playbackRate=1,this._inTimeline=!0,this._finishedFlag=!0,this.onfinish=null,this._finishHandlers=[],this._effect=e,this._inEffect=this._effect._update(0),this._idle=!0,this._currentTimePending=!1},e.Animation.prototype={_ensureAlive:function(){this.playbackRate<0&&0===this.currentTime?this._inEffect=this._effect._update(-1):this._inEffect=this._effect._update(this.currentTime),this._inTimeline||!this._inEffect&&this._finishedFlag||(this._inTimeline=!0,e.timeline._animations.push(this))},_tickCurrentTime:function(t,e){t!=this._currentTime&&(this._currentTime=t,this._isFinished&&!e&&(this._currentTime=this._playbackRate>0?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 r(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=[],t<b.currentTime&&(t=b.currentTime),b._animations.sort(o),b._animations=u(t,!0,b._animations)[0],e.forEach(function(e){e[1](t)}),s(),f=void 0}function o(t,e){return t._sequenceNumber-e._sequenceNumber}function i(){this._animations=[],this.currentTime=window.performance&&performance.now?performance.now():0}function s(){d.forEach(function(t){t()}),d.length=0}function u(t,n,r){y=!0,p=!1,e.timeline.currentTime=t,h=!1;var o=[],i=[],s=[],u=[];return r.forEach(function(e){e._tick(t,n),e._inEffect?(i.push(e._effect),e._markTarget()):(o.push(e._effect),e._unmarkTarget()),e._needsTick&&(h=!0);var r=e._inEffect||e._needsTick;e._inTimeline=r,r?s.push(e):u.push(e)}),d.push.apply(d,o),d.push.apply(d,i),h&&requestAnimationFrame(function(){}),y=!1,[s,u]}var a=window.requestAnimationFrame,c=[],l=0;window.requestAnimationFrame=function(t){var e=l++;return 0==c.length&&a(r),c.push([e,t]),e},window.cancelAnimationFrame=function(t){c.forEach(function(e){e[0]==t&&(e[1]=function(){})})},i.prototype={_play:function(n){n._timing=t.normalizeTimingInput(n.timing);var r=new e.Animation(n);return r._idle=!1,r._timeline=this,this._animations.push(r),e.restart(),e.applyDirtiedAnimation(r),r}};var f=void 0,h=!1,p=!1;e.restart=function(){return h||(h=!0,requestAnimationFrame(function(){}),p=!0),p},e.applyDirtiedAnimation=function(t){if(!y){t._markTarget();var n=t._targetAnimations();n.sort(o),u(e.timeline.currentTime,!1,n.slice())[1].forEach(function(t){var e=b._animations.indexOf(t);-1!==e&&b._animations.splice(e,1)}),s()}};var d=[],y=!1,b=new i;e.timeline=b}(r,o),function(t,e){function n(t,e){for(var n=0,r=0;r<t.length;r++)n+=t[r]*e[r];return n}function r(t,e){return[t[0]*e[0]+t[4]*e[1]+t[8]*e[2]+t[12]*e[3],t[1]*e[0]+t[5]*e[1]+t[9]*e[2]+t[13]*e[3],t[2]*e[0]+t[6]*e[1]+t[10]*e[2]+t[14]*e[3],t[3]*e[0]+t[7]*e[1]+t[11]*e[2]+t[15]*e[3],t[0]*e[4]+t[4]*e[5]+t[8]*e[6]+t[12]*e[7],t[1]*e[4]+t[5]*e[5]+t[9]*e[6]+t[13]*e[7],t[2]*e[4]+t[6]*e[5]+t[10]*e[6]+t[14]*e[7],t[3]*e[4]+t[7]*e[5]+t[11]*e[6]+t[15]*e[7],t[0]*e[8]+t[4]*e[9]+t[8]*e[10]+t[12]*e[11],t[1]*e[8]+t[5]*e[9]+t[9]*e[10]+t[13]*e[11],t[2]*e[8]+t[6]*e[9]+t[10]*e[10]+t[14]*e[11],t[3]*e[8]+t[7]*e[9]+t[11]*e[10]+t[15]*e[11],t[0]*e[12]+t[4]*e[13]+t[8]*e[14]+t[12]*e[15],t[1]*e[12]+t[5]*e[13]+t[9]*e[14]+t[13]*e[15],t[2]*e[12]+t[6]*e[13]+t[10]*e[14]+t[14]*e[15],t[3]*e[12]+t[7]*e[13]+t[11]*e[14]+t[15]*e[15]]}function o(t){var e=t.rad||0;return((t.deg||0)/360+(t.grad||0)/400+(t.turn||0))*(2*Math.PI)+e}function i(t){switch(t.t){case"rotatex":var e=o(t.d[0]);return[1,0,0,0,0,Math.cos(e),Math.sin(e),0,0,-Math.sin(e),Math.cos(e),0,0,0,0,1];case"rotatey":var e=o(t.d[0]);return[Math.cos(e),0,-Math.sin(e),0,0,1,0,0,Math.sin(e),0,Math.cos(e),0,0,0,0,1];case"rotate":case"rotatez":var e=o(t.d[0]);return[Math.cos(e),Math.sin(e),0,0,-Math.sin(e),Math.cos(e),0,0,0,0,1,0,0,0,0,1];case"rotate3d":var n=t.d[0],r=t.d[1],i=t.d[2],e=o(t.d[3]),s=n*n+r*r+i*i;if(0===s)n=1,r=0,i=0;else if(1!==s){var u=Math.sqrt(s);n/=u,r/=u,i/=u}var a=Math.sin(e/2),c=a*Math.cos(e/2),l=a*a;return[1-2*(r*r+i*i)*l,2*(n*r*l+i*c),2*(n*i*l-r*c),0,2*(n*r*l-i*c),1-2*(n*n+i*i)*l,2*(r*i*l+n*c),0,2*(n*i*l+r*c),2*(r*i*l-n*c),1-2*(n*n+r*r)*l,0,0,0,0,1];case"scale":return[t.d[0],0,0,0,0,t.d[1],0,0,0,0,1,0,0,0,0,1];case"scalex":return[t.d[0],0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];case"scaley":return[1,0,0,0,0,t.d[0],0,0,0,0,1,0,0,0,0,1];case"scalez":return[1,0,0,0,0,1,0,0,0,0,t.d[0],0,0,0,0,1];case"scale3d":return[t.d[0],0,0,0,0,t.d[1],0,0,0,0,t.d[2],0,0,0,0,1];case"skew":var f=o(t.d[0]),h=o(t.d[1]);return[1,Math.tan(h),0,0,Math.tan(f),1,0,0,0,0,1,0,0,0,0,1];case"skewx":var e=o(t.d[0]);return[1,0,0,0,Math.tan(e),1,0,0,0,0,1,0,0,0,0,1];case"skewy":var e=o(t.d[0]);return[1,Math.tan(e),0,0,0,1,0,0,0,0,1,0,0,0,0,1];case"translate":var n=t.d[0].px||0,r=t.d[1].px||0;return[1,0,0,0,0,1,0,0,0,0,1,0,n,r,0,1];case"translatex":var n=t.d[0].px||0;return[1,0,0,0,0,1,0,0,0,0,1,0,n,0,0,1];case"translatey":var r=t.d[0].px||0;return[1,0,0,0,0,1,0,0,0,0,1,0,0,r,0,1];case"translatez":var i=t.d[0].px||0;return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,i,1];case"translate3d":var n=t.d[0].px||0,r=t.d[1].px||0,i=t.d[2].px||0;return[1,0,0,0,0,1,0,0,0,0,1,0,n,r,i,1];case"perspective":return[1,0,0,0,0,1,0,0,0,0,1,t.d[0].px?-1/t.d[0].px:0,0,0,0,1];case"matrix":return[t.d[0],t.d[1],0,0,t.d[2],t.d[3],0,0,0,0,1,0,t.d[4],t.d[5],0,1];case"matrix3d":return t.d}}function s(t){return 0===t.length?[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]:t.map(i).reduce(r)}function u(t){return[a(s(t))]}var a=function(){function t(t){return t[0][0]*t[1][1]*t[2][2]+t[1][0]*t[2][1]*t[0][2]+t[2][0]*t[0][1]*t[1][2]-t[0][2]*t[1][1]*t[2][0]-t[1][2]*t[2][1]*t[0][0]-t[2][2]*t[0][1]*t[1][0]}function e(e){for(var n=1/t(e),r=e[0][0],o=e[0][1],i=e[0][2],s=e[1][0],u=e[1][1],a=e[1][2],c=e[2][0],l=e[2][1],f=e[2][2],h=[[(u*f-a*l)*n,(i*l-o*f)*n,(o*a-i*u)*n,0],[(a*c-s*f)*n,(r*f-i*c)*n,(i*s-r*a)*n,0],[(s*l-u*c)*n,(c*o-r*l)*n,(r*u-o*s)*n,0]],p=[],d=0;d<3;d++){for(var y=0,b=0;b<3;b++)y+=e[3][b]*h[b][d];p.push(y)}return p.push(1),h.push(p),h}function r(t){return[[t[0][0],t[1][0],t[2][0],t[3][0]],[t[0][1],t[1][1],t[2][1],t[3][1]],[t[0][2],t[1][2],t[2][2],t[3][2]],[t[0][3],t[1][3],t[2][3],t[3][3]]]}function o(t,e){for(var n=[],r=0;r<4;r++){for(var o=0,i=0;i<4;i++)o+=t[i]*e[i][r];n.push(o)}return n}function i(t){var e=s(t);return[t[0]/e,t[1]/e,t[2]/e]}function s(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1]+t[2]*t[2])}function u(t,e,n,r){return[n*t[0]+r*e[0],n*t[1]+r*e[1],n*t[2]+r*e[2]]}function a(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function c(c){var l=[c.slice(0,4),c.slice(4,8),c.slice(8,12),c.slice(12,16)];if(1!==l[3][3])return null;for(var f=[],h=0;h<4;h++)f.push(l[h].slice());for(var h=0;h<3;h++)f[h][3]=0;if(0===t(f))return null;var p,d=[];l[0][3]||l[1][3]||l[2][3]?(d.push(l[0][3]),d.push(l[1][3]),d.push(l[2][3]),d.push(l[3][3]),p=o(d,r(e(f)))):p=[0,0,0,1];var y=l[3].slice(0,3),b=[];b.push(l[0].slice(0,3));var v=[];v.push(s(b[0])),b[0]=i(b[0]);var m=[];b.push(l[1].slice(0,3)),m.push(n(b[0],b[1])),b[1]=u(b[1],b[0],1,-m[0]),v.push(s(b[1])),b[1]=i(b[1]),m[0]/=v[1],b.push(l[2].slice(0,3)),m.push(n(b[0],b[2])),b[2]=u(b[2],b[0],1,-m[1]),m.push(n(b[1],b[2])),b[2]=u(b[2],b[1],1,-m[2]),v.push(s(b[2])),b[2]=i(b[2]),m[1]/=v[2],m[2]/=v[2];var g=a(b[1],b[2]);if(n(b[0],g)<0)for(var h=0;h<3;h++)v[h]*=-1,b[h][0]*=-1,b[h][1]*=-1,b[h][2]*=-1;var w,_,x=b[0][0]+b[1][1]+b[2][2]+1;return x>1e-4?(w=.5/Math.sqrt(x),_=[(b[2][1]-b[1][2])*w,(b[0][2]-b[2][0])*w,(b[1][0]-b[0][1])*w,.25/w]):b[0][0]>b[1][1]&&b[0][0]>b[2][2]?(w=2*Math.sqrt(1+b[0][0]-b[1][1]-b[2][2]),_=[.25*w,(b[0][1]+b[1][0])/w,(b[0][2]+b[2][0])/w,(b[2][1]-b[1][2])/w]):b[1][1]>b[2][2]?(w=2*Math.sqrt(1+b[1][1]-b[0][0]-b[2][2]),_=[(b[0][1]+b[1][0])/w,.25*w,(b[1][2]+b[2][1])/w,(b[0][2]-b[2][0])/w]):(w=2*Math.sqrt(1+b[2][2]-b[0][0]-b[1][1]),_=[(b[0][2]+b[2][0])/w,(b[1][2]+b[2][1])/w,.25*w,(b[1][0]-b[0][1])/w]),[y,v,m,_,p]}return c}();t.dot=n,t.makeMatrixDecomposition=u,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],[n,e.substr(n.length)]}function n(t,e){e=e.replace(/^\s*/,"");var n=t(e);if(n)return[n[0],n[1].replace(/^\s*/,"")]}function r(t,r,o){t=n.bind(null,t);for(var i=[];;){var s=t(o);if(!s)return[i,o];if(i.push(s[0]),o=s[1],!(s=e(r,o))||""==s[1])return[i,o];o=s[1]}}function o(t,e){for(var n=0,r=0;r<e.length&&(!/\s|,/.test(e[r])||0!=n);r++)if("("==e[r])n++;else if(")"==e[r]&&(n--,0==n&&r++,n<=0))break;var o=t(e.substr(0,r));return void 0==o?void 0:[o,e.substr(r)]}function i(t,e){for(var n=t,r=e;n&&r;)n>r?n%=r:r%=n;return n=t*e/(n+r)}function s(t){return function(e){var n=t(e);return n&&(n[0]=void 0),n}}function u(t,e){return function(n){return t(n)||[e,n]}}function a(e,n){for(var r=[],o=0;o<e.length;o++){var i=t.consumeTrimmed(e[o],n);if(!i||""==i[0])return;void 0!==i[0]&&r.push(i[0]),n=i[1]}if(""==n)return r}function c(t,e,n,r,o){for(var s=[],u=[],a=[],c=i(r.length,o.length),l=0;l<c;l++){var f=e(r[l%r.length],o[l%o.length]);if(!f)return;s.push(f[0]),u.push(f[1]),a.push(f[2])}return[s,u,function(e){var r=e.map(function(t,e){return a[e](t)}).join(n);return t?t(r):r}]}function l(t,e,n){for(var r=[],o=[],i=[],s=0,u=0;u<n.length;u++)if("function"==typeof n[u]){var a=n[u](t[s],e[s++]);r.push(a[0]),o.push(a[1]),i.push(a[2])}else!function(t){r.push(!1),o.push(!1),i.push(function(){return n[t]})}(u);return[r,o,function(t){for(var e="",n=0;n<t.length;n++)e+=i[n](t[n]);return e}]}t.consumeToken=e,t.consumeTrimmed=n,t.consumeRepeated=r,t.consumeParenthesised=o,t.ignore=s,t.optional=u,t.consumeList=a,t.mergeNestedRepeated=c.bind(null,null),t.mergeWrappedNestedRepeated=c,t.mergeList=l}(o),function(t){function e(e){function n(e){var n=t.consumeToken(/^inset/i,e);if(n)return r.inset=!0,n;var n=t.consumeLengthOrPercent(e);if(n)return r.lengths.push(n[0]),n;var n=t.consumeColor(e);return n?(r.color=n[0],n):void 0}var r={inset:!1,lengths:[],color:null},o=t.consumeRepeated(n,/^/,e);if(o&&o[0].length)return[r,o[1]]}function n(n){var r=t.consumeRepeated(e,/^,/,n);if(r&&""==r[1])return r[0]}function r(e,n){for(;e.lengths.length<Math.max(e.lengths.length,n.lengths.length);)e.lengths.push({px:0});for(;n.lengths.length<Math.max(e.lengths.length,n.lengths.length);)n.lengths.push({px:0});if(e.inset==n.inset&&!!e.color==!!n.color){for(var r,o=[],i=[[],0],s=[[],0],u=0;u<e.lengths.length;u++){var a=t.mergeDimensions(e.lengths[u],n.lengths[u],2==u);i[0].push(a[0]),s[0].push(a[1]),o.push(a[2])}if(e.color&&n.color){var c=t.mergeColors(e.color,n.color);i[1]=c[0],s[1]=c[1],r=c[2]}return[i,s,function(t){for(var n=e.inset?"inset ":" ",i=0;i<o.length;i++)n+=o[i](t[0][i])+" ";return r&&(n+=r(t[1])),n}]}}function o(e,n,r,o){function i(t){return{inset:t,color:[0,0,0,0],lengths:[{px:0},{px:0},{px:0},{px:0}]}}for(var s=[],u=[],a=0;a<r.length||a<o.length;a++){var c=r[a]||i(o[a].inset),l=o[a]||i(r[a].inset);s.push(c),u.push(l)}return t.mergeNestedRepeated(e,n,s,u)}var i=o.bind(null,r,", ");t.addPropertiesHandler(n,i,["box-shadow","text-shadow"])}(o),function(t,e){function n(t){return t.toFixed(3).replace(/0+$/,"").replace(/\.$/,"")}function r(t,e,n){return Math.min(e,Math.max(t,n))}function o(t){if(/^\s*[-+]?(\d*\.)?\d+\s*$/.test(t))return Number(t)}function i(t,e){return[t,e,n]}function s(t,e){if(0!=t)return a(0,1/0)(t,e)}function u(t,e){return[t,e,function(t){return Math.round(r(1,1/0,t))}]}function a(t,e){return function(o,i){return[o,i,function(o){return n(r(t,e,o))}]}}function c(t){var e=t.trim().split(/\s*[\s,]\s*/);if(0!==e.length){for(var n=[],r=0;r<e.length;r++){var i=o(e[r]);if(void 0===i)return;n.push(i)}return n}}function l(t,e){if(t.length==e.length)return[t,e,function(t){return t.map(n).join(" ")}]}function f(t,e){return[t,e,Math.round]}t.clamp=r,t.addPropertiesHandler(c,l,["stroke-dasharray"]),t.addPropertiesHandler(o,a(0,1/0),["border-image-width","line-height"]),t.addPropertiesHandler(o,a(0,1),["opacity","shape-image-threshold"]),t.addPropertiesHandler(o,s,["flex-grow","flex-shrink"]),t.addPropertiesHandler(o,u,["orphans","widows"]),t.addPropertiesHandler(o,f,["z-index"]),t.parseNumber=o,t.parseNumberList=c,t.mergeNumbers=i,t.numberToString=n}(o),function(t,e){function n(t,e){if("visible"==t||"visible"==e)return[0,1,function(n){return n<=0?t:n>=1?e:"visible"}]}t.addPropertiesHandler(String,n,["visibility"])}(o),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){if(e[3])for(var n=0;n<3;n++)e[n]=Math.round(function(t){return Math.max(0,Math.min(255,t))}(e[n]/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=u.exec(t);s=e?e[0]:void 0}function n(){var t=Number(s);return e(),t}function r(){if("("!==s)return n();e();var t=i();return")"!==s?NaN:(e(),t)}function o(){for(var t=r();"*"===s||"/"===s;){var n=s;e();var o=r();"*"===n?t*=o:t/=o}return t}function i(){for(var t=o();"+"===s||"-"===s;){var n=s;e();var r=o();"+"===n?t+=r:t-=r}return t}var s,u=/([\+\-\w\.]+|[\(\)\*\/])/g;return e(),i()}function r(t,e){if("0"==(e=e.trim().toLowerCase())&&"px".search(t)>=0)return{px:0};if(/^[^(]*$|^calc/.test(e)){e=e.replace(/calc\(/g,"(");var r={};e=e.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],u=0;u<s.length;)s[u].test(i)?(i=i.replace(s[u],"$1"),u=0):u++;if("D"==i){for(var a in r){var c=n(e.replace(new RegExp("U"+a,"g"),"").replace(new RegExp(o,"g"),"*0"));if(!isFinite(c))return;r[a]=c}return r}}}function o(t,e){return i(t,e,!0)}function i(e,n,r){var o,i=[];for(o in e)i.push(o);for(o in n)i.indexOf(o)<0&&i.push(o);return e=i.map(function(t){return e[t]||0}),n=i.map(function(t){return n[t]||0}),[e,n,function(e){var n=e.map(function(n,o){return 1==e.length&&r&&(n=Math.max(n,0)),t.numberToString(n)+i[o]}).join(" + ");return e.length>1?"calc("+n+")":n}]}var s="px|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc",u=r.bind(null,new RegExp(s,"g")),a=r.bind(null,new RegExp(s+"|%","g")),c=r.bind(null,/deg|rad|grad|turn/g);t.parseLength=u,t.parseLengthOrPercent=a,t.consumeLengthOrPercent=t.consumeParenthesised.bind(null,a),t.parseAngle=c,t.mergeDimensions=i;var l=t.consumeParenthesised.bind(null,u),f=t.consumeRepeated.bind(void 0,l,/^/),h=t.consumeRepeated.bind(void 0,f,/^,/);t.consumeSizePairList=h;var p=function(t){var e=h(t);if(e&&""==e[1])return e[0]},d=t.mergeNestedRepeated.bind(void 0,o," "),y=t.mergeNestedRepeated.bind(void 0,d,",");t.mergeNonNegativeSizePair=d,t.addPropertiesHandler(p,y,["background-size"]),t.addPropertiesHandler(a,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(a,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]}function o(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)}function i(t){return"rect("+t+")"}var s=t.mergeWrappedNestedRepeated.bind(null,i,o,", ");t.parseBox=r,t.mergeBoxes=s,t.addPropertiesHandler(r,s,["clip"])}(o),function(t,e){function n(t){return function(e){var n=0;return t.map(function(t){return t===l?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],u=p[s];if(!u)return;var a=n[2].split(","),c=u[0];if(c.length<a.length)return;for(var l=[],d=0;d<c.length;d++){var y,b=a[d],v=c[d];if(void 0===(y=b?{A:function(e){return"0"==e.trim()?h:t.parseAngle(e)},N:t.parseNumber,T:t.parseLengthOrPercent,L:t.parseLength}[v.toUpperCase()](b):{a:h,n:l[0],t:f}[v]))return;l.push(y)}if(o.push({t:s,d:l}),r.lastIndex==e.length)return o}}function i(t){return t.toFixed(6).replace(".000000","")}function s(e,n){if(e.decompositionPair!==n){e.decompositionPair=n;var r=t.makeMatrixDecomposition(e)}if(n.decompositionPair!==e){n.decompositionPair=e;var o=t.makeMatrixDecomposition(n)}return null==r[0]||null==o[0]?[[!1],[!0],function(t){return t?n[0].d:e[0].d}]:(r[0].push(0),o[0].push(1),[r,o,function(e){var n=t.quat(r[0][3],o[0][3],e[5]);return t.composeMatrix(e[0],e[1],e[2],n,e[4]).map(i).join(",")}])}function u(t){return t.replace(/[xy]/,"")}function a(t){return t.replace(/(x|y|z|3d)?$/,"3d")}function c(e,n){var r=t.makeMatrixDecomposition&&!0,o=!1;if(!e.length||!n.length){e.length||(o=!0,e=n,n=[]);for(var i=0;i<e.length;i++){var c=e[i].t,l=e[i].d,f="scale"==c.substr(0,5)?1:0;n.push({t:c,d:l.map(function(t){if("number"==typeof t)return f;var e={};for(var n in t)e[n]=f;return e})})}}var h=[],d=[],y=[];if(e.length!=n.length){if(!r)return;var b=s(e,n);h=[b[0]],d=[b[1]],y=[["matrix",[b[2]]]]}else for(var i=0;i<e.length;i++){var c,v=e[i].t,m=n[i].t,g=e[i].d,w=n[i].d,_=p[v],x=p[m];if(function(t,e){return"perspective"==t&&"perspective"==e||("matrix"==t||"matrix3d"==t)&&("matrix"==e||"matrix3d"==e)}(v,m)){if(!r)return;var b=s([e[i]],[n[i]]);h.push(b[0]),d.push(b[1]),y.push(["matrix",[b[2]]])}else{if(v==m)c=v;else if(_[2]&&x[2]&&u(v)==u(m))c=u(v),g=_[2](g),w=x[2](w);else{if(!_[1]||!x[1]||a(v)!=a(m)){if(!r)return;var b=s(e,n);h=[b[0]],d=[b[1]],y=[["matrix",[b[2]]]];break}c=a(v),g=_[1](g),w=x[1](w)}for(var S=[],E=[],O=[],j=0;j<g.length;j++){var k="number"==typeof g[j]?t.mergeNumbers:t.mergeDimensions,b=k(g[j],w[j]);S[j]=b[0],E[j]=b[1],O.push(b[2])}h.push(S),d.push(E),y.push([c,O])}}if(o){var T=h;h=d,d=T}return[h,d,function(t){return t.map(function(t,e){var n=t.map(function(t,n){return y[e][1][n](t)}).join(",");return"matrix"==y[e][0]&&16==n.split(",").length&&(y[e][0]="matrix3d"),y[e][0]+"("+n+")"}).join(" ")}]}var l=null,f={px:0},h={deg:0},p={matrix:["NNNNNN",[l,l,0,0,l,l,0,0,0,0,1,0,l,l,0,1],r],matrix3d:["NNNNNNNNNNNNNNNN",r],rotate:["A"],rotatex:["A"],rotatey:["A"],rotatez:["A"],rotate3d:["NNNA"],perspective:["L"],scale:["Nn",n([l,l,1]),r],scalex:["N",n([l,1,1]),n([l,1])],scaley:["N",n([1,l,1]),n([1,l])],scalez:["N",n([1,1,l])],scale3d:["NNN",r],skew:["Aa",null,r],skewx:["A",null,n([l,h])],skewy:["A",null,n([h,l])],translate:["Tt",n([l,l,f]),r],translatex:["T",n([l,f,f]),n([l,f])],translatey:["T",n([f,l,f]),n([f,l])],translatez:["L",n([f,f,l])],translate3d:["TTL",r]};t.addPropertiesHandler(o,c,["transform"]),t.transformToSvgMatrix=function(e){var n=t.transformListToMatrix(o(e));return"matrix("+i(n[0])+" "+i(n[1])+" "+i(n[4])+" "+i(n[5])+" "+i(n[12])+" "+i(n[13])+")"}}(o),function(t){function e(t){var e=Number(t);if(!(isNaN(e)||e<100||e>900||e%100!=0))return e}function n(e){return e=100*Math.round(e/100),e=t.clamp(100,900,e),400===e?"normal":700===e?"bold":String(e)}function r(t,e){return[t,e,n]}t.addPropertiesHandler(e,r,["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 s=i[0];if(s[0]=s[0]||"center",s[1]=s[1]||"center",3==e&&(s[2]=s[2]||{px:0}),s.length==e){if(/top|bottom/.test(s[0])||/left|right/.test(s[1])){var a=s[0];s[0]=s[1],s[1]=a}if(/left|right|center|Object/.test(s[0])&&/top|bottom|center|Object/.test(s[1]))return s.map(function(t){return"object"==(void 0===t?"undefined":n(t))?t:u[t]})}}}function i(n){var o=t.consumeRepeated(r,/^/,n);if(o){for(var i=o[0],s=[{"%":50},{"%":50}],a=0,c=!1,l=0;l<i.length;l++){var f=i[l];"string"==typeof f?(c=/bottom|right/.test(f),a={left:0,right:0,center:a,top:1,bottom:1}[f],s[a]=u[f],"center"==f&&a++):(c&&(f=e(f),f["%"]=(f["%"]||0)+100),s[a]=f,a++,c=!1)}return[s,o[1]]}}function s(e){var n=t.consumeRepeated(i,/^,/,e);if(n&&""==n[1])return n[0]}var u={left:{"%":0},center:{"%":50},right:{"%":100},top:{"%":0},bottom:{"%":100}},a=t.mergeNestedRepeated.bind(null,t.mergeDimensions," ");t.addPropertiesHandler(o.bind(null,3),a,["transform-origin"]),t.addPropertiesHandler(o.bind(null,2),a,["perspective-origin"]),t.consumePosition=i,t.mergeOffsetList=a;var c=t.mergeNestedRepeated.bind(null,a,", ");t.addPropertiesHandler(s,c,["background-position","object-position"])}(o),function(t){function e(e){var n=t.consumeToken(/^circle/,e);if(n&&n[0])return["circle"].concat(t.consumeList([t.ignore(t.consumeToken.bind(void 0,/^\(/)),r,t.ignore(t.consumeToken.bind(void 0,/^at/)),t.consumePosition,t.ignore(t.consumeToken.bind(void 0,/^\)/))],n[1]));var i=t.consumeToken(/^ellipse/,e);if(i&&i[0])return["ellipse"].concat(t.consumeList([t.ignore(t.consumeToken.bind(void 0,/^\(/)),o,t.ignore(t.consumeToken.bind(void 0,/^at/)),t.consumePosition,t.ignore(t.consumeToken.bind(void 0,/^\)/))],i[1]));var s=t.consumeToken(/^polygon/,e);return s&&s[0]?["polygon"].concat(t.consumeList([t.ignore(t.consumeToken.bind(void 0,/^\(/)),t.optional(t.consumeToken.bind(void 0,/^nonzero\s*,|^evenodd\s*,/),"nonzero,"),t.consumeSizePairList,t.ignore(t.consumeToken.bind(void 0,/^\)/))],s[1])):void 0}function n(e,n){if(e[0]===n[0])return"circle"==e[0]?t.mergeList(e.slice(1),n.slice(1),["circle(",t.mergeDimensions," at ",t.mergeOffsetList,")"]):"ellipse"==e[0]?t.mergeList(e.slice(1),n.slice(1),["ellipse(",t.mergeNonNegativeSizePair," at ",t.mergeOffsetList,")"]):"polygon"==e[0]&&e[1]==n[1]?t.mergeList(e.slice(2),n.slice(2),["polygon(",e[1],s,")"]):void 0}var r=t.consumeParenthesised.bind(null,t.parseLengthOrPercent),o=t.consumeRepeated.bind(void 0,r,/^/),i=t.mergeNestedRepeated.bind(void 0,t.mergeDimensions," "),s=t.mergeNestedRepeated.bind(void 0,i,",");t.addPropertiesHandler(e,n,["shape-outside"])}(o),function(t,e){function n(t,e){e.concat([t]).forEach(function(e){e in document.documentElement.style&&(r[t]=e),o[e]=t})}var r={},o={};n("transform",["webkitTransform","msTransform"]),n("transformOrigin",["webkitTransformOrigin"]),n("perspective",["webkitPerspective"]),n("perspectiveOrigin",["webkitPerspectiveOrigin"]),t.propertyName=function(t){return r[t]||t},t.unprefixedPropertyName=function(t){return o[t]||t}}(o)}(),function(){if(void 0===document.createElement("div").animate([]).oncancel){var t;if(window.performance&&performance.now)var t=function(){return performance.now()};else var t=function(){return Date.now()};var e=function(t,e,n){this.target=t,this.currentTime=e,this.timelineTime=n,this.type="cancel",this.bubbles=!1,this.cancelable=!1,this.currentTarget=t,this.defaultPrevented=!1,this.eventPhase=Event.AT_TARGET,this.timeStamp=Date.now()},n=window.Element.prototype.animate;window.Element.prototype.animate=function(r,o){var i=n.call(this,r,o);i._cancelHandlers=[],i.oncancel=null;var s=i.cancel;i.cancel=function(){s.call(this);var n=new e(this,null,t()),r=this._cancelHandlers.concat(this.oncancel?[this.oncancel]:[]);setTimeout(function(){r.forEach(function(t){t.call(n.target,n)})},0)};var u=i.addEventListener;i.addEventListener=function(t,e){"function"==typeof e&&"cancel"==t?this._cancelHandlers.push(e):u.call(this,t,e)};var a=i.removeEventListener;return i.removeEventListener=function(t,e){if("cancel"==t){var n=this._cancelHandlers.indexOf(e);n>=0&&this._cancelHandlers.splice(n,1)}else a.call(this,t,e)},i}}}(),function(t){var e=document.documentElement,n=null,r=!1;try{var o=getComputedStyle(e).getPropertyValue("opacity"),i="0"==o?"1":"0";n=e.animate({opacity:[i,i]},{duration:1}),n.currentTime=0,r=getComputedStyle(e).getPropertyValue("opacity")==i}catch(t){}finally{n&&n.cancel()}if(!r){var s=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)),s.call(this,e,n)}}}(r),e.true=t}({},function(){return this}())},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){function o(t,e){return(void 0===t?"undefined":n(t))===e}function i(t){return t.replace(/([a-z])-([a-z])/g,function(t,e,n){return e+n.toUpperCase()}).replace(/^-/,"")}function s(){return"function"!=typeof e.createElement?e.createElement(arguments[0]):E?e.createElementNS.call(e,"http://www.w3.org/2000/svg",arguments[0]):e.createElement.apply(e,arguments)}function u(){var t=e.body;return t||(t=s(E?"svg":"body"),t.fake=!0),t}function a(t,n,r,o){var i,a,c,l,f="modernizr",h=s("div"),p=u();if(parseInt(r,10))for(;r--;)c=s("div"),c.id=o?o[r]:f+(r+1),h.appendChild(c);return i=s("style"),i.type="text/css",i.id="s"+f,(p.fake?p:h).appendChild(i),p.appendChild(h),i.styleSheet?i.styleSheet.cssText=t:i.appendChild(e.createTextNode(t)),h.id=f,p.fake&&(p.style.background="",p.style.overflow="hidden",l=S.style.overflow,S.style.overflow="hidden",S.appendChild(p)),a=n(h,t),p.fake?(p.parentNode.removeChild(p),S.style.overflow=l,S.offsetHeight):h.parentNode.removeChild(h),!!a}function c(t,e){return!!~(""+t).indexOf(e)}function l(t,e){return function(){return t.apply(e,arguments)}}function f(t,e,n){var r;for(var i in t)if(t[i]in e)return!1===n?t[i]:(r=e[t[i]],o(r,"function")?l(r,n||e):r);return!1}function h(t){return t.replace(/([A-Z])/g,function(t,e){return"-"+e.toLowerCase()}).replace(/^ms-/,"-ms-")}function p(e,n,r){var o;if("getComputedStyle"in t){o=getComputedStyle.call(t,e,n);var i=t.console;if(null!==o)r&&(o=o.getPropertyValue(r));else if(i){var s=i.error?"error":"log";i[s].call(i,"getComputedStyle returning null, its possible modernizr test results are inaccurate")}}else o=!n&&e.currentStyle&&e.currentStyle[r];return o}function d(e,n){var o=e.length;if("CSS"in t&&"supports"in t.CSS){for(;o--;)if(t.CSS.supports(h(e[o]),n))return!0;return!1}if("CSSSupportsRule"in t){for(var i=[];o--;)i.push("("+h(e[o])+":"+n+")");return i=i.join(" or "),a("@supports ("+i+") { #modernizr { position: absolute; } }",function(t){return"absolute"==p(t,null,"position")})}return r}function y(t,e,n,u){function a(){f&&(delete C.style,delete C.modElem)}if(u=!o(u,"undefined")&&u,!o(n,"undefined")){var l=d(t,n);if(!o(l,"undefined"))return l}for(var f,h,p,y,b,v=["modernizr","tspan","samp"];!C.style&&v.length;)f=!0,C.modElem=s(v.shift()),C.style=C.modElem.style;for(p=t.length,h=0;h<p;h++)if(y=t[h],b=C.style[y],c(y,"-")&&(y=i(y)),C.style[y]!==r){if(u||o(n,"undefined"))return a(),"pfx"!=e||y;try{C.style[y]=n}catch(t){}if(C.style[y]!=b)return a(),"pfx"!=e||y}return a(),!1}function b(t,e,n,r,i){var s=t.charAt(0).toUpperCase()+t.slice(1),u=(t+" "+k.join(s+" ")+s).split(" ");return o(e,"string")||o(e,"undefined")?y(u,e,r,i):(u=(t+" "+A.join(s+" ")+s).split(" "),f(u,e,n))}function v(t,e,n){return b(t,r,r,e,n)}var m=[],g={_version:"3.5.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){m.push({name:t,fn:e,options:n})},addAsyncTest:function(t){m.push({name:null,fn:t})}},w=function(){};w.prototype=g,w=new w,/*!
|
15
|
+
{
|
16
|
+
"name": "CustomEvent",
|
17
|
+
"property": "customevent",
|
18
|
+
"tags": ["customevent"],
|
19
|
+
"authors": ["Alberto Elias"],
|
20
|
+
"notes": [{
|
21
|
+
"name": "W3C DOM reference",
|
22
|
+
"href": "https://www.w3.org/TR/DOM-Level-3-Events/#interface-CustomEvent"
|
23
|
+
}, {
|
24
|
+
"name": "MDN documentation",
|
25
|
+
"href": "https://developer.mozilla.org/en/docs/Web/API/CustomEvent"
|
26
|
+
}],
|
27
|
+
"polyfills": ["eventlistener"]
|
28
|
+
}
|
29
|
+
!*/
|
30
|
+
w.addTest("customevent","CustomEvent"in t&&"function"==typeof t.CustomEvent),/*!
|
31
|
+
{
|
32
|
+
"name": "Event Listener",
|
33
|
+
"property": "eventlistener",
|
34
|
+
"authors": ["Andrew Betts (@triblondon)"],
|
35
|
+
"notes": [{
|
36
|
+
"name": "W3C Spec",
|
37
|
+
"href": "https://www.w3.org/TR/DOM-Level-2-Events/events.html#Events-Registration-interfaces"
|
38
|
+
}],
|
39
|
+
"polyfills": ["eventlistener"]
|
40
|
+
}
|
41
|
+
!*/
|
42
|
+
w.addTest("eventlistener","addEventListener"in t),/*!
|
43
|
+
{
|
44
|
+
"name": "History API",
|
45
|
+
"property": "history",
|
46
|
+
"caniuse": "history",
|
47
|
+
"tags": ["history"],
|
48
|
+
"authors": ["Hay Kranen", "Alexander Farkas"],
|
49
|
+
"notes": [{
|
50
|
+
"name": "W3C Spec",
|
51
|
+
"href": "https://www.w3.org/TR/html51/browsers.html#the-history-interface"
|
52
|
+
}, {
|
53
|
+
"name": "MDN documentation",
|
54
|
+
"href": "https://developer.mozilla.org/en-US/docs/Web/API/window.history"
|
55
|
+
}],
|
56
|
+
"polyfills": ["historyjs", "html5historyapi"]
|
57
|
+
}
|
58
|
+
!*/
|
59
|
+
w.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)}),/*!
|
60
|
+
{
|
61
|
+
"name": "QuerySelector",
|
62
|
+
"property": "queryselector",
|
63
|
+
"caniuse": "queryselector",
|
64
|
+
"tags": ["queryselector"],
|
65
|
+
"authors": ["Andrew Betts (@triblondon)"],
|
66
|
+
"notes": [{
|
67
|
+
"name" : "W3C Selectors reference",
|
68
|
+
"href": "https://www.w3.org/TR/selectors-api/#queryselectorall"
|
69
|
+
}],
|
70
|
+
"polyfills": ["css-selector-engine"]
|
71
|
+
}
|
72
|
+
!*/
|
73
|
+
w.addTest("queryselector","querySelector"in e&&"querySelectorAll"in e),/*!
|
74
|
+
{
|
75
|
+
"name": "ES6 Promises",
|
76
|
+
"property": "promises",
|
77
|
+
"caniuse": "promises",
|
78
|
+
"polyfills": ["es6promises"],
|
79
|
+
"authors": ["Krister Kari", "Jake Archibald"],
|
80
|
+
"tags": ["es6"],
|
81
|
+
"notes": [{
|
82
|
+
"name": "The ES6 promises spec",
|
83
|
+
"href": "https://github.com/domenic/promises-unwrapping"
|
84
|
+
},{
|
85
|
+
"name": "Chromium dashboard - ES6 Promises",
|
86
|
+
"href": "https://www.chromestatus.com/features/5681726336532480"
|
87
|
+
},{
|
88
|
+
"name": "JavaScript Promises: There and back again - HTML5 Rocks",
|
89
|
+
"href": "http://www.html5rocks.com/en/tutorials/es6/promises/"
|
90
|
+
}]
|
91
|
+
}
|
92
|
+
!*/
|
93
|
+
w.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 _=[],x=g._config.usePrefixes?" -webkit- -moz- -o- -ms- ".split(" "):["",""];g._prefixes=x;var S=e.documentElement;/*!
|
94
|
+
{
|
95
|
+
"name": "classList",
|
96
|
+
"caniuse": "classlist",
|
97
|
+
"property": "classlist",
|
98
|
+
"tags": ["dom"],
|
99
|
+
"builderAliases": ["dataview_api"],
|
100
|
+
"notes": [{
|
101
|
+
"name": "MDN Docs",
|
102
|
+
"href": "https://developer.mozilla.org/en/DOM/element.classList"
|
103
|
+
}]
|
104
|
+
}
|
105
|
+
!*/
|
106
|
+
w.addTest("classlist","classList"in S),/*!
|
107
|
+
{
|
108
|
+
"name": "Document Fragment",
|
109
|
+
"property": "documentfragment",
|
110
|
+
"notes": [{
|
111
|
+
"name": "W3C DOM Level 1 Reference",
|
112
|
+
"href": "https://www.w3.org/TR/REC-DOM-Level-1/level-one-core.html#ID-B63ED1A3"
|
113
|
+
}, {
|
114
|
+
"name": "SitePoint Reference",
|
115
|
+
"href": "http://reference.sitepoint.com/javascript/DocumentFragment"
|
116
|
+
}, {
|
117
|
+
"name": "QuirksMode Compatibility Tables",
|
118
|
+
"href": "http://www.quirksmode.org/m/w3c_core.html#t112"
|
119
|
+
}],
|
120
|
+
"authors": ["Ron Waldon (@jokeyrhyme)"],
|
121
|
+
"knownBugs": ["false-positive on Blackberry 9500, see QuirksMode note"],
|
122
|
+
"tags": []
|
123
|
+
}
|
124
|
+
!*/
|
125
|
+
w.addTest("documentfragment",function(){return"createDocumentFragment"in e&&"appendChild"in S});var E="svg"===S.nodeName.toLowerCase();/*!
|
126
|
+
{
|
127
|
+
"name": "CSS Opacity",
|
128
|
+
"caniuse": "css-opacity",
|
129
|
+
"property": "opacity",
|
130
|
+
"tags": ["css"]
|
131
|
+
}
|
132
|
+
!*/
|
133
|
+
w.addTest("opacity",function(){var t=s("a").style;return t.cssText=x.join("opacity:.55;"),/^0.55$/.test(t.opacity)}),/*!
|
134
|
+
{
|
135
|
+
"name": "CSS Pointer Events",
|
136
|
+
"caniuse": "pointer-events",
|
137
|
+
"property": "csspointerevents",
|
138
|
+
"authors": ["ausi"],
|
139
|
+
"tags": ["css"],
|
140
|
+
"builderAliases": ["css_pointerevents"],
|
141
|
+
"notes": [
|
142
|
+
{
|
143
|
+
"name": "MDN Docs",
|
144
|
+
"href": "https://developer.mozilla.org/en-US/docs/Web/CSS/pointer-events"
|
145
|
+
},{
|
146
|
+
"name": "Test Project Page",
|
147
|
+
"href": "https://ausi.github.com/Feature-detection-technique-for-pointer-events/"
|
148
|
+
},{
|
149
|
+
"name": "Test Project Wiki",
|
150
|
+
"href": "https://github.com/ausi/Feature-detection-technique-for-pointer-events/wiki"
|
151
|
+
},
|
152
|
+
{
|
153
|
+
"name": "Related Github Issue",
|
154
|
+
"href": "https://github.com/Modernizr/Modernizr/issues/80"
|
155
|
+
}
|
156
|
+
]
|
157
|
+
}
|
158
|
+
!*/
|
159
|
+
w.addTest("csspointerevents",function(){var t=s("a").style;return t.cssText="pointer-events:auto","auto"===t.pointerEvents}),/*!
|
160
|
+
{
|
161
|
+
"name": "CSS Font rem Units",
|
162
|
+
"caniuse": "rem",
|
163
|
+
"authors": ["nsfmc"],
|
164
|
+
"property": "cssremunit",
|
165
|
+
"tags": ["css"],
|
166
|
+
"builderAliases": ["css_remunit"],
|
167
|
+
"notes": [{
|
168
|
+
"name": "W3C Spec",
|
169
|
+
"href": "https://www.w3.org/TR/css3-values/#relative0"
|
170
|
+
},{
|
171
|
+
"name": "Font Size with rem by Jonathan Snook",
|
172
|
+
"href": "http://snook.ca/archives/html_and_css/font-size-with-rem"
|
173
|
+
}]
|
174
|
+
}
|
175
|
+
!*/
|
176
|
+
w.addTest("cssremunit",function(){var t=s("a").style;try{t.fontSize="3rem"}catch(t){}return/rem/.test(t.fontSize)});var O=g.testStyles=a;/*!
|
177
|
+
{
|
178
|
+
"name": "Touch Events",
|
179
|
+
"property": "touchevents",
|
180
|
+
"caniuse" : "touch",
|
181
|
+
"tags": ["media", "attribute"],
|
182
|
+
"notes": [{
|
183
|
+
"name": "Touch Events spec",
|
184
|
+
"href": "https://www.w3.org/TR/2013/WD-touch-events-20130124/"
|
185
|
+
}],
|
186
|
+
"warnings": [
|
187
|
+
"Indicates if the browser supports the Touch Events spec, and does not necessarily reflect a touchscreen device"
|
188
|
+
],
|
189
|
+
"knownBugs": [
|
190
|
+
"False-positive on some configurations of Nokia N900",
|
191
|
+
"False-positive on some BlackBerry 6.0 builds – https://github.com/Modernizr/Modernizr/issues/372#issuecomment-3112695"
|
192
|
+
]
|
193
|
+
}
|
194
|
+
!*/
|
195
|
+
w.addTest("touchevents",function(){var n;if("ontouchstart"in t||t.DocumentTouch&&e instanceof DocumentTouch)n=!0;else{var r=["@media (",x.join("touch-enabled),("),"heartz",")","{#modernizr{top:9px;position:absolute}}"].join("");O(r,function(t){n=9===t.offsetTop})}return n});var j="Moz O ms Webkit",k=g._config.usePrefixes?j.split(" "):[];g._cssomPrefixes=k;var T=function(e){var n,o=x.length,i=t.CSSRule;if(void 0===i)return r;if(!e)return!1;if(e=e.replace(/^@/,""),(n=e.replace(/-/g,"_").toUpperCase()+"_RULE")in i)return"@"+e;for(var s=0;s<o;s++){var u=x[s];if(u.toUpperCase()+"_"+n in i)return"@-"+u.toLowerCase()+"-"+e}return!1};g.atRule=T;var A=g._config.usePrefixes?j.toLowerCase().split(" "):[];g._domPrefixes=A;var P={elem:s("modernizr")};w._q.push(function(){delete P.elem});var C={style:P.elem.style};w._q.unshift(function(){delete C.style}),g.testAllProps=b;var M=g.prefixed=function(t,e,n){return 0===t.indexOf("@")?T(t):(-1!=t.indexOf("-")&&(t=i(t)),e?b(t,e,n):b(t,"pfx"))};/*!
|
196
|
+
{
|
197
|
+
"name": "requestAnimationFrame",
|
198
|
+
"property": "requestanimationframe",
|
199
|
+
"aliases": ["raf"],
|
200
|
+
"caniuse": "requestanimationframe",
|
201
|
+
"tags": ["animation"],
|
202
|
+
"authors": ["Addy Osmani"],
|
203
|
+
"notes": [{
|
204
|
+
"name": "W3C spec",
|
205
|
+
"href": "https://www.w3.org/TR/animation-timing/"
|
206
|
+
}],
|
207
|
+
"polyfills": ["raf"]
|
208
|
+
}
|
209
|
+
!*/
|
210
|
+
w.addTest("requestanimationframe",!!M("requestAnimationFrame",t),{aliases:["raf"]}),/*!
|
211
|
+
{
|
212
|
+
"name": "matchMedia",
|
213
|
+
"property": "matchmedia",
|
214
|
+
"caniuse" : "matchmedia",
|
215
|
+
"tags": ["matchmedia"],
|
216
|
+
"authors": ["Alberto Elias"],
|
217
|
+
"notes": [{
|
218
|
+
"name": "W3C CSSOM View Module",
|
219
|
+
"href": "https://drafts.csswg.org/cssom-view/#the-mediaquerylist-interface"
|
220
|
+
}, {
|
221
|
+
"name": "MDN documentation",
|
222
|
+
"href": "https://developer.mozilla.org/en-US/docs/Web/API/Window.matchMedia"
|
223
|
+
}],
|
224
|
+
"polyfills": ["matchmediajs"]
|
225
|
+
}
|
226
|
+
!*/
|
227
|
+
w.addTest("matchmedia",!!M("matchMedia",t)),g.testAllProps=v,/*!
|
228
|
+
{
|
229
|
+
"name": "CSS Animations",
|
230
|
+
"property": "cssanimations",
|
231
|
+
"caniuse": "css-animation",
|
232
|
+
"polyfills": ["transformie", "csssandpaper"],
|
233
|
+
"tags": ["css"],
|
234
|
+
"warnings": ["Android < 4 will pass this test, but can only animate a single property at a time"],
|
235
|
+
"notes": [{
|
236
|
+
"name" : "Article: 'Dispelling the Android CSS animation myths'",
|
237
|
+
"href": "https://goo.gl/OGw5Gm"
|
238
|
+
}]
|
239
|
+
}
|
240
|
+
!*/
|
241
|
+
w.addTest("cssanimations",v("animationName","a",!0)),/*!
|
242
|
+
{
|
243
|
+
"name": "CSS Transforms",
|
244
|
+
"property": "csstransforms",
|
245
|
+
"caniuse": "transforms2d",
|
246
|
+
"tags": ["css"]
|
247
|
+
}
|
248
|
+
!*/
|
249
|
+
w.addTest("csstransforms",function(){return-1===navigator.userAgent.indexOf("Android 2.")&&v("transform","scale(1)",!0)}),function(){var t,e,n,r,i,s,u;for(var a in m)if(m.hasOwnProperty(a)){if(t=[],e=m[a],e.name&&(t.push(e.name.toLowerCase()),e.options&&e.options.aliases&&e.options.aliases.length))for(n=0;n<e.options.aliases.length;n++)t.push(e.options.aliases[n].toLowerCase());for(r=o(e.fn,"function")?e.fn():e.fn,i=0;i<t.length;i++)s=t[i],u=s.split("."),1===u.length?w[u[0]]=r:(!w[u[0]]||w[u[0]]instanceof Boolean||(w[u[0]]=new Boolean(w[u[0]])),w[u[0]][u[1]]=r),_.push((r?"":"no-")+u.join("-"))}}(),delete g.addTest,delete g.addAsyncTest;for(var N=0;N<w._q.length;N++)w._q[N]();t.Modernizr=w}(window,document)},function(t,e){console.log(" __ __ __ __ \r\n/\\ \\/\\ \\ /\\ \\ __ /\\ \\ \r\n\\ \\ \\_\\ \\ __ __ \\_\\ \\ __ /\\_\\ __ ___ \\ \\ \\/'\\ \r\n \\ \\ _ \\ /\\ \\/\\ \\ /'_` \\ /'__`\\ \\/\\ \\ /'__`\\ /'___\\\\ \\ , < \r\n \\ \\ \\ \\ \\\\ \\ \\_\\ \\ /\\ \\L\\ \\ /\\ __/ \\ \\ \\ /\\ \\L\\.\\_ /\\ \\__/ \\ \\ \\\\`\\ \r\n \\ \\_\\ \\_\\\\/`____ \\\\ \\___,_\\\\ \\____\\ _\\ \\ \\\\ \\__/.\\_\\\\ \\____\\ \\ \\_\\ \\_\\\r\n \\/_/\\/_/ `/___/> \\\\/__,_ / \\/____//\\ \\_\\ \\\\/__/\\/_/ \\/____/ \\/_/\\/_/\r\n /\\___/ \\ \\____/ \r\n \\/__/ \\/___/ \n\n"),console.log("Powered by Hydejack v7.5.2 <https://qwtel.com/hydejack/>")},function(t,e){if(!("content"in document.createElement("template")))for(var n=document.getElementsByTagName("template"),r=n.length,o=0;o<r;++o){for(var i=n[o],s=i.childNodes,u=document.createDocumentFragment();s[0];)u.appendChild(s[0]);i.content=u}},function(t,e){if(window.ga&&!navigator.CookiesOK&&(!localStorage||!localStorage.getItem("hy:cookiesOK"))){var n=document.getElementById("_cookies-banner-template");if(n){var r=document.getElementsByTagName("hy-push-state")[0];r.insertBefore(document.importNode(n.content,!0),r.firstChild),document.getElementById("_cookies-ok").addEventListener("click",function(){localStorage&&localStorage.setItem("hy:cookiesOK",!0);var t=document.getElementById("_cookies-banner");t.parentNode.removeChild(t),window.ga(function(t){window.ga("set","anonymizeIp",void 0),localStorage&&localStorage.setItem("ga:clientId",t.get("clientId"))})},{once:!0})}}},function(t,e,n){"use strict";var r=n(2),o=n(17)(0),i=n(45)([].forEach,!0);r(r.P+r.F*!i,"Array",{forEach:function(t){return o(this,t,arguments[1])}})},function(t,e,n){var r=n(35),o=n(36),i=n(38),s=Object.defineProperty;e.f=n(8)?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return s(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(3);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e,n){t.exports=!n(8)&&!n(5)(function(){return 7!=Object.defineProperty(n(37)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(3),o=n(4).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,e,n){var r=n(3);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){var r=n(4),o=n(7),i=n(14),s=n(9)("src"),u=Function.toString,a=(""+u).split("toString");n(0).inspectSource=function(t){return u.call(t)},(t.exports=function(t,e,n,u){var c="function"==typeof n;c&&(i(n,"name")||o(n,"name",e)),t[e]!==n&&(c&&(i(n,s)||o(n,s,t[e]?""+t[e]:a.join(String(e)))),t===r?t[e]=n:u?t[e]?t[e]=n:o(t,e,n):(delete t[e],o(t,e,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[s]||u.call(this)})},function(t,e,n){var r=n(42);t.exports=function(t,e){return new(r(t))(e)}},function(t,e,n){var r=n(3),o=n(43),i=n(6)("species");t.exports=function(t){var e;return o(t)&&(e=t.constructor,"function"!=typeof e||e!==Array&&!o(e.prototype)||(e=void 0),r(e)&&null===(e=e[i])&&(e=void 0)),void 0===e?Array:e}},function(t,e,n){var r=n(11);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e){t.exports=!1},function(t,e,n){"use strict";var r=n(5);t.exports=function(t,e){return!!t&&r(function(){e?t.call(null,function(){},1):t.call(null)})}},function(t,e,n){var r=n(2);r(r.P,"Function",{bind:n(47)})},function(t,e,n){"use strict";var r=n(16),o=n(3),i=n(48),s=[].slice,u={},a=function(t,e,n){if(!(e in u)){for(var r=[],o=0;o<e;o++)r[o]="a["+o+"]";u[e]=Function("F,a","return new F("+r.join(",")+")")}return u[e](t,n)};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?a(e,o.length,o):i(e,o,t)};return o(e.prototype)&&(u.prototype=e.prototype),u}},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){var r=n(50);"string"==typeof r&&(r=[[t.i,r,""]]);var o={hmr:!0};o.transform=void 0,o.insertInto=void 0;n(52)(r,o);r.locals&&(t.exports=r.locals)},function(t,e,n){e=t.exports=n(51)(!1),e.push([t.i,"@media screen {\n .hy-drawer-scrim {\n position: fixed;\n top: 0;\n left: 0;\n height: 100vh;\n width: 100vw;\n z-index: 20;\n opacity: 0;\n pointer-events: none;\n background: rgba(0, 0, 0, 0.5);\n transform: translateX(0);\n -webkit-tap-highlight-color: transparent;\n }\n\n .hy-drawer-content {\n position: fixed;\n top: 0;\n height: 100vh;\n z-index: 30;\n overflow-x: hidden;\n overflow-y: auto;\n transform: translateX(0);\n width: 300px;\n background: #e8e8e8;\n box-shadow: 0 0 15px rgba(0, 0, 0, 0.25);\n contain: strict;\n -webkit-overflow-scrolling: touch;\n }\n\n .hy-drawer-content.hy-drawer-left {\n left: -300px;\n }\n\n .hy-drawer-content.hy-drawer-right {\n right: -300px;\n }\n\n .hy-drawer-content.hy-drawer-left.hy-drawer-opened {\n left: 0 !important;\n transform: translateX(0) !important;\n }\n\n .hy-drawer-content.hy-drawer-right.hy-drawer-opened {\n right: 0 !important;\n transform: translateX(0) !important;\n }\n\n .hy-drawer-grab {\n cursor: move;\n cursor: -webkit-grab;\n cursor: -moz-grab;\n cursor: grab;\n }\n\n .hy-drawer-grabbing {\n cursor: -webkit-grabbing;\n cursor: -moz-grabbing;\n cursor: grabbing;\n }\n}\n\n@media print {\n .hy-drawer-scrim {\n display: none !important;\n }\n\n .hy-drawer-content {\n transform: none !important;\n }\n}\n",""])},function(t,e){function n(t,e){var n=t[1]||"",o=t[3];if(!o)return n;if(e&&"function"==typeof btoa){var i=r(o);return[n].concat(o.sources.map(function(t){return"/*# sourceURL="+o.sourceRoot+t+" */"})).concat([i]).join("\n")}return[n].join("\n")}function r(t){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t))))+" */"}t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var r=n(e,t);return e[2]?"@media "+e[2]+"{"+r+"}":r}).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var r={},o=0;o<this.length;o++){var i=this[o][0];"number"==typeof i&&(r[i]=!0)}for(o=0;o<t.length;o++){var s=t[o];"number"==typeof s[0]&&r[s[0]]||(n&&!s[2]?s[2]=n:n&&(s[2]="("+s[2]+") and ("+n+")"),e.push(s))}},e}},function(t,e,n){function r(t,e){for(var n=0;n<t.length;n++){var r=t[n],o=d[r.id];if(o){o.refs++;for(var i=0;i<o.parts.length;i++)o.parts[i](r.parts[i]);for(;i<r.parts.length;i++)o.parts.push(l(r.parts[i],e))}else{for(var s=[],i=0;i<r.parts.length;i++)s.push(l(r.parts[i],e));d[r.id]={id:r.id,refs:1,parts:s}}}}function o(t,e){for(var n=[],r={},o=0;o<t.length;o++){var i=t[o],s=e.base?i[0]+e.base:i[0],u=i[1],a=i[2],c=i[3],l={css:u,media:a,sourceMap:c};r[s]?r[s].parts.push(l):n.push(r[s]={id:s,parts:[l]})}return n}function i(t,e){var n=v(t.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var r=w[w.length-1];if("top"===t.insertAt)r?r.nextSibling?n.insertBefore(e,r.nextSibling):n.appendChild(e):n.insertBefore(e,n.firstChild),w.push(e);else if("bottom"===t.insertAt)n.appendChild(e);else{if("object"!=typeof t.insertAt||!t.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var o=v(t.insertInto+" "+t.insertAt.before);n.insertBefore(e,o)}}function s(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t);var e=w.indexOf(t);e>=0&&w.splice(e,1)}function u(t){var e=document.createElement("style");return void 0===t.attrs.type&&(t.attrs.type="text/css"),c(e,t.attrs),i(t,e),e}function a(t){var e=document.createElement("link");return void 0===t.attrs.type&&(t.attrs.type="text/css"),t.attrs.rel="stylesheet",c(e,t.attrs),i(t,e),e}function c(t,e){Object.keys(e).forEach(function(n){t.setAttribute(n,e[n])})}function l(t,e){var n,r,o,i;if(e.transform&&t.css){if(!(i=e.transform(t.css)))return function(){};t.css=i}if(e.singleton){var c=g++;n=m||(m=u(e)),r=f.bind(null,n,c,!1),o=f.bind(null,n,c,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=a(e),r=p.bind(null,n,e),o=function(){s(n),n.href&&URL.revokeObjectURL(n.href)}):(n=u(e),r=h.bind(null,n),o=function(){s(n)});return r(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;r(t=e)}else o()}}function f(t,e,n,r){var o=n?"":r.css;if(t.styleSheet)t.styleSheet.cssText=x(e,o);else{var i=document.createTextNode(o),s=t.childNodes;s[e]&&t.removeChild(s[e]),s.length?t.insertBefore(i,s[e]):t.appendChild(i)}}function h(t,e){var n=e.css,r=e.media;if(r&&t.setAttribute("media",r),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}function p(t,e,n){var r=n.css,o=n.sourceMap,i=void 0===e.convertToAbsoluteUrls&&o;(e.convertToAbsoluteUrls||i)&&(r=_(r)),o&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */");var s=new Blob([r],{type:"text/css"}),u=t.href;t.href=URL.createObjectURL(s),u&&URL.revokeObjectURL(u)}var d={},y=function(t){var e;return function(){return void 0===e&&(e=t.apply(this,arguments)),e}}(function(){return window&&document&&document.all&&!window.atob}),b=function(t){return document.querySelector(t)},v=function(t){var e={};return function(t){if("function"==typeof t)return t();if(void 0===e[t]){var n=b.call(this,t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}e[t]=n}return e[t]}}(),m=null,g=0,w=[],_=n(53);t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");e=e||{},e.attrs="object"==typeof e.attrs?e.attrs:{},e.singleton||"boolean"==typeof e.singleton||(e.singleton=y()),e.insertInto||(e.insertInto="head"),e.insertAt||(e.insertAt="bottom");var n=o(t,e);return r(n,e),function(t){for(var i=[],s=0;s<n.length;s++){var u=n[s],a=d[u.id];a.refs--,i.push(a)}if(t){r(o(t,e),e)}for(var s=0;s<i.length;s++){var a=i[s];if(0===a.refs){for(var c=0;c<a.parts.length;c++)a.parts[c]();delete d[a.id]}}}};var x=function(){var t=[];return function(e,n){return t[e]=n,t.filter(Boolean).join("\n")}}()},function(t,e){t.exports=function(t){var e="undefined"!=typeof window&&window.location;if(!e)throw new Error("fixUrls requires window.location");if(!t||"string"!=typeof t)return t;var n=e.protocol+"//"+e.host,r=n+e.pathname.replace(/\/[^\/]*$/,"/");return t.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(t,e){var o=e.trim().replace(/^"(.*)"$/,function(t,e){return e}).replace(/^'(.*)'$/,function(t,e){return e});if(/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(o))return t;var i;return i=0===o.indexOf("//")?o:0===o.indexOf("/")?n+o:r+o.replace(/^\.\//,""),"url("+JSON.stringify(i)+")"})}},function(t,e,n){n(55),t.exports=n(0).Object.assign},function(t,e,n){var r=n(2);r(r.S+r.F,"Object",{assign:n(56)})},function(t,e,n){"use strict";var r=n(57),o=n(62),i=n(63),s=n(18),u=n(10),a=Object.assign;t.exports=!a||n(5)(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=a({},t)[n]||Object.keys(a({},e)).join("")!=r})?function(t,e){for(var n=s(t),a=arguments.length,c=1,l=o.f,f=i.f;a>c;)for(var h,p=u(arguments[c++]),d=l?r(p).concat(l(p)):r(p),y=d.length,b=0;y>b;)f.call(p,h=d[b++])&&(n[h]=p[h]);return n}:a},function(t,e,n){var r=n(58),o=n(61);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e,n){var r=n(14),o=n(22),i=n(23)(!1),s=n(60)("IE_PROTO");t.exports=function(t,e){var n,u=o(t),a=0,c=[];for(n in u)n!=s&&r(u,n)&&c.push(n);for(;e.length>a;)r(u,n=e[a++])&&(~i(c,n)||c.push(n));return c}},function(t,e,n){var r=n(20),o=Math.max,i=Math.min;t.exports=function(t,e){return t=r(t),t<0?o(t+e,0):i(t,e)}},function(t,e,n){var r=n(21)("keys"),o=n(9);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){n(65),t.exports=n(0).String.includes},function(t,e,n){"use strict";var r=n(2),o=n(66);r(r.P+r.F*n(68)("includes"),"String",{includes:function(t){return!!~o(this,t,"includes").indexOf(t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){var r=n(67),o=n(12);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){var r=n(3),o=n(11),i=n(6)("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(6)("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){"use strict";(function(t){n.d(e,"a",function(){return s});var r="undefined"!=typeof window&&window,o="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,i=void 0!==t&&t,s=r||i||o}).call(e,n(70))},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,n){n(72),t.exports=n(0).Array.find},function(t,e,n){"use strict";var r=n(2),o=n(17)(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(24)("find")},function(t,e,n){"use strict";function r(t,e){if(!(this instanceof r))return new r(t,e);if(e&&e in p&&(e=null),e&&!(e in f))throw new Error("Unknown model: "+e);var n,o;if(t)if(t instanceof r)this.model=t.model,this.color=t.color.slice(),this.valpha=t.valpha;else if("string"==typeof t){var i=l.get(t);if(null===i)throw new Error("Unable to parse color from string: "+t);this.model=i.model,o=f[this.model].channels,this.color=i.value.slice(0,o),this.valpha="number"==typeof i.value[o]?i.value[o]:1}else if(t.length){this.model=e||"rgb",o=f[this.model].channels;var s=h.call(t,0,o);this.color=c(s,o),this.valpha="number"==typeof t[o]?t[o]: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 u=Object.keys(t);"alpha"in t&&(u.splice(u.indexOf("alpha"),1),this.valpha="number"==typeof t.alpha?t.alpha:0);var a=u.sort().join("");if(!(a in d))throw new Error("Unable to parse color from object: "+JSON.stringify(t));this.model=d[a];var b=f[this.model].labels,v=[];for(n=0;n<b.length;n++)v.push(t[b[n]]);this.color=c(v)}else this.model="rgb",this.color=[0,0,0],this.valpha=1;if(y[this.model])for(o=f[this.model].channels,n=0;n<o;n++){var m=y[this.model][n];m&&(this.color[n]=m(this.color[n]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}function o(t,e){return Number(t.toFixed(e))}function i(t){return function(e){return o(e,t)}}function s(t,e,n){return t=Array.isArray(t)?t:[t],t.forEach(function(t){(y[t]||(y[t]=[]))[e]=n}),t=t[0],function(r){var o;return arguments.length?(n&&(r=n(r)),o=this[t](),o.color[e]=r,o):(o=this[t]().color[e],n&&(o=n(o)),o)}}function u(t){return function(e){return Math.max(0,Math.min(t,e))}}function a(t){return Array.isArray(t)?t:[t]}function c(t,e){for(var n=0;n<e;n++)"number"!=typeof t[n]&&(t[n]=0);return t}var l=n(74),f=n(77),h=[].slice,p=["keyword","gray","hex"],d={};Object.keys(f).forEach(function(t){d[h.call(f[t].labels).sort().join("")]=t});var y={};r.prototype={toString:function(){return this.string()},toJSON:function(){return this[this.model]()},string:function(t){var e=this.model in l.to?this:this.rgb();e=e.round("number"==typeof t?t:1);var n=1===e.valpha?e.color:e.color.concat(this.valpha);return l.to[e.model](n)},percentString:function(t){var e=this.rgb().round("number"==typeof t?t:1),n=1===e.valpha?e.color:e.color.concat(this.valpha);return l.to.rgb.percent(n)},array:function(){return 1===this.valpha?this.color.slice():this.color.concat(this.valpha)},object:function(){for(var t={},e=f[this.model].channels,n=f[this.model].labels,r=0;r<e;r++)t[n[r]]=this.color[r];return 1!==this.valpha&&(t.alpha=this.valpha),t},unitArray:function(){var t=this.rgb().color;return t[0]/=255,t[1]/=255,t[2]/=255,1!==this.valpha&&t.push(this.valpha),t},unitObject:function(){var t=this.rgb().object();return t.r/=255,t.g/=255,t.b/=255,1!==this.valpha&&(t.alpha=this.valpha),t},round:function(t){return t=Math.max(t||0,0),new r(this.color.map(i(t)).concat(this.valpha),this.model)},alpha:function(t){return arguments.length?new r(this.color.concat(Math.max(0,Math.min(1,t))),this.model):this.valpha},red:s("rgb",0,u(255)),green:s("rgb",1,u(255)),blue:s("rgb",2,u(255)),hue:s(["hsl","hsv","hsl","hwb","hcg"],0,function(t){return(t%360+360)%360}),saturationl:s("hsl",1,u(100)),lightness:s("hsl",2,u(100)),saturationv:s("hsv",1,u(100)),value:s("hsv",2,u(100)),chroma:s("hcg",1,u(100)),gray:s("hcg",2,u(100)),white:s("hwb",1,u(100)),wblack:s("hwb",2,u(100)),cyan:s("cmyk",0,u(100)),magenta:s("cmyk",1,u(100)),yellow:s("cmyk",2,u(100)),black:s("cmyk",3,u(100)),x:s("xyz",0,u(100)),y:s("xyz",1,u(100)),z:s("xyz",2,u(100)),l:s("lab",0,u(100)),a:s("lab",1),b:s("lab",2),keyword:function(t){return arguments.length?new r(t):f[this.model].keyword(this.color)},hex:function(t){return arguments.length?new r(t):l.to.hex(this.rgb().round().color)},rgbNumber:function(){var t=this.rgb().color;return(255&t[0])<<16|(255&t[1])<<8|255&t[2]},luminosity:function(){for(var t=this.rgb().color,e=[],n=0;n<t.length;n++){var r=t[n]/255;e[n]=r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4)}return.2126*e[0]+.7152*e[1]+.0722*e[2]},contrast:function(t){var e=this.luminosity(),n=t.luminosity();return e>n?(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 r.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+t)%360,n=n<0?360+n:n,e.color[0]=n,e},mix:function(t,e){var n=t.rgb(),o=this.rgb(),i=void 0===e?.5:e,s=2*i-1,u=n.alpha()-o.alpha(),a=((s*u==-1?s:(s+u)/(1+s*u))+1)/2,c=1-a;return r.rgb(a*n.red()+c*o.red(),a*n.green()+c*o.green(),a*n.blue()+c*o.blue(),n.alpha()*i+o.alpha()*(1-i))}},Object.keys(f).forEach(function(t){if(-1===p.indexOf(t)){var e=f[t].channels;r.prototype[t]=function(){if(this.model===t)return new r(this);if(arguments.length)return new r(arguments,t);var n="number"==typeof arguments[e]?e:this.valpha;return new r(a(f[this.model][t].raw(this.color)).concat(n),t)},r[t]=function(n){return"number"==typeof n&&(n=c(h.call(arguments),e)),new r(n,t)}}}),t.exports=r},function(t,e,n){function r(t,e,n){return Math.min(Math.max(e,t),n)}function o(t){var e=t.toString(16).toUpperCase();return e.length<2?"0"+e:e}var i=n(25),s=n(75),u={};for(var a in i)i.hasOwnProperty(a)&&(u[i[a]]=a);var c=t.exports={to:{}};c.get=function(t){var e,n,r=t.substring(0,3).toLowerCase();switch(r){case"hsl":e=c.get.hsl(t),n="hsl";break;case"hwb":e=c.get.hwb(t),n="hwb";break;default:e=c.get.rgb(t),n="rgb"}return e?{model:n,value:e}:null},c.get.rgb=function(t){if(!t)return null;var e,n,o,s=/^#([a-f0-9]{3,4})$/i,u=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i,a=/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/,c=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/,l=/(\D+)/,f=[0,0,0,1];if(e=t.match(u)){for(o=e[2],e=e[1],n=0;n<3;n++){var h=2*n;f[n]=parseInt(e.slice(h,h+2),16)}o&&(f[3]=Math.round(parseInt(o,16)/255*100)/100)}else if(e=t.match(s)){for(e=e[1],o=e[3],n=0;n<3;n++)f[n]=parseInt(e[n]+e[n],16);o&&(f[3]=Math.round(parseInt(o+o,16)/255*100)/100)}else if(e=t.match(a)){for(n=0;n<3;n++)f[n]=parseInt(e[n+1],0);e[4]&&(f[3]=parseFloat(e[4]))}else{if(!(e=t.match(c)))return(e=t.match(l))?"transparent"===e[1]?[0,0,0,0]:(f=i[e[1]])?(f[3]=1,f):null:null;for(n=0;n<3;n++)f[n]=Math.round(2.55*parseFloat(e[n+1]));e[4]&&(f[3]=parseFloat(e[4]))}for(n=0;n<3;n++)f[n]=r(f[n],0,255);return f[3]=r(f[3],0,1),f},c.get.hsl=function(t){if(!t)return null;var e=/^hsla?\(\s*([+-]?\d*[\.]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/,n=t.match(e);if(n){var o=parseFloat(n[4]);return[(parseFloat(n[1])%360+360)%360,r(parseFloat(n[2]),0,100),r(parseFloat(n[3]),0,100),r(isNaN(o)?1:o,0,1)]}return null},c.get.hwb=function(t){if(!t)return null;var e=/^hwb\(\s*([+-]?\d*[\.]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/,n=t.match(e);if(n){var o=parseFloat(n[4]);return[(parseFloat(n[1])%360+360)%360,r(parseFloat(n[2]),0,100),r(parseFloat(n[3]),0,100),r(isNaN(o)?1:o,0,1)]}return null},c.to.hex=function(){var t=s(arguments);return"#"+o(t[0])+o(t[1])+o(t[2])+(t[3]<1?o(Math.round(255*t[3])):"")},c.to.rgb=function(){var t=s(arguments);return t.length<4||1===t[3]?"rgb("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+")":"rgba("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+", "+t[3]+")"},c.to.rgb.percent=function(){var t=s(arguments),e=Math.round(t[0]/255*100),n=Math.round(t[1]/255*100),r=Math.round(t[2]/255*100);return t.length<4||1===t[3]?"rgb("+e+"%, "+n+"%, "+r+"%)":"rgba("+e+"%, "+n+"%, "+r+"%, "+t[3]+")"},c.to.hsl=function(){var t=s(arguments);return t.length<4||1===t[3]?"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)":"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+t[3]+")"},c.to.hwb=function(){var t=s(arguments),e="";return t.length>=4&&1!==t[3]&&(e=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+e+")"},c.to.keyword=function(t){return u[t.slice(0,3)]}},function(t,e,n){"use strict";var r=n(76),o=Array.prototype.concat,i=Array.prototype.slice,s=t.exports=function(t){for(var e=[],n=0,s=t.length;n<s;n++){var u=t[n];r(u)?e=o.call(e,i.call(u)):e.push(u)}return e};s.wrap=function(t){return function(){return t(s(arguments))}}},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){function r(t){var e=function(e){return void 0===e||null===e?e:(arguments.length>1&&(e=Array.prototype.slice.call(arguments)),t(e))};return"conversion"in t&&(e.conversion=t.conversion),e}function o(t){var e=function(e){if(void 0===e||null===e)return e;arguments.length>1&&(e=Array.prototype.slice.call(arguments));var n=t(e);if("object"===(void 0===n?"undefined":i(n)))for(var r=n.length,o=0;o<r;o++)n[o]=Math.round(n[o]);return n};return"conversion"in t&&(e.conversion=t.conversion),e}var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s=n(26),u=n(78),a={};Object.keys(s).forEach(function(t){a[t]={},Object.defineProperty(a[t],"channels",{value:s[t].channels}),Object.defineProperty(a[t],"labels",{value:s[t].labels});var e=u(t);Object.keys(e).forEach(function(n){var i=e[n];a[t][n]=o(i),a[t][n].raw=r(i)})}),t.exports=a},function(t,e,n){function r(){for(var t={},e=Object.keys(u),n=e.length,r=0;r<n;r++)t[e[r]]={distance:-1,parent:null};return t}function o(t){var e=r(),n=[t];for(e[t].distance=0;n.length;)for(var o=n.pop(),i=Object.keys(u[o]),s=i.length,a=0;a<s;a++){var c=i[a],l=e[c];-1===l.distance&&(l.distance=e[o].distance+1,l.parent=o,n.unshift(c))}return e}function i(t,e){return function(n){return e(t(n))}}function s(t,e){for(var n=[e[t].parent,t],r=u[e[t].parent][t],o=e[t].parent;e[o].parent;)n.unshift(e[o].parent),r=i(u[e[o].parent][o],r),o=e[o].parent;return r.conversion=n,r}var u=n(26);t.exports=function(t){for(var e=o(t),n={},r=Object.keys(e),i=r.length,u=0;u<i;u++){var a=r[u];null!==e[a].parent&&(n[a]=s(a,e))}return n}},function(t,e,n){"use strict";function r(t){return t.dataset}t.exports=function(){var t=document.createElement("div");return t.setAttribute("data-a-b","c"),Boolean(t.dataset&&"c"===t.dataset.aB)}()?r:function(t){function e(){return this.value}function n(t,e){void 0===e?this.removeAttribute(t):this.setAttribute(t,e)}for(var r={},o=t.attributes,i=0,s=o.length;i<s;i++){var u=o[i];if(u){var a=u.name;if(0===a.indexOf("data-")){var c=a.slice(5).replace(/-./g,function(t){return t.charAt(1).toUpperCase()}),l=u.value;Object.defineProperty(r,c,{enumerable:!0,get:e.bind({value:l||""}),set:n.bind(t,a)})}}}return r}},function(t,e,n){n(81),t.exports=n(0).Array.includes},function(t,e,n){"use strict";var r=n(2),o=n(23)(!0);r(r.P,"Array",{includes:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),n(24)("includes")}]);
|
data/assets/version.json
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-theme-hydejack
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 7.5.
|
4
|
+
version: 7.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Florian Klampfer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-07-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -317,7 +317,7 @@ files:
|
|
317
317
|
- assets/bower_components/webfontloader/src/modules/typekit.js
|
318
318
|
- assets/bower_components/webfontloader/webfontloader.gemspec
|
319
319
|
- assets/bower_components/webfontloader/webfontloader.js
|
320
|
-
- assets/css/hydejack-7.5.
|
320
|
+
- assets/css/hydejack-7.5.2.css
|
321
321
|
- assets/icomoon/fonts/icomoon.eot
|
322
322
|
- assets/icomoon/fonts/icomoon.svg
|
323
323
|
- assets/icomoon/fonts/icomoon.ttf
|
@@ -336,10 +336,12 @@ files:
|
|
336
336
|
- assets/icons/tile-small.png
|
337
337
|
- assets/icons/tile-wide.png
|
338
338
|
- assets/ieconfig.xml
|
339
|
-
- assets/img/
|
340
|
-
- assets/img/
|
339
|
+
- assets/img/COLOURlovers.com-Hydejack.png
|
340
|
+
- assets/img/caleb-george-old.jpg
|
341
|
+
- assets/img/caleb-george.jpg
|
342
|
+
- assets/img/docs/google-fonts.png
|
341
343
|
- assets/img/sidebar-bg.jpg
|
342
|
-
- assets/js/hydejack-7.5.
|
344
|
+
- assets/js/hydejack-7.5.2.js
|
343
345
|
- assets/manifest.json
|
344
346
|
- assets/version.json
|
345
347
|
- licenses/Apache-2.0.md
|
@@ -366,7 +368,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
366
368
|
version: '0'
|
367
369
|
requirements: []
|
368
370
|
rubyforge_project:
|
369
|
-
rubygems_version: 2.5.2
|
371
|
+
rubygems_version: 2.5.2.3
|
370
372
|
signing_key:
|
371
373
|
specification_version: 4
|
372
374
|
summary: A Jekyll theme with JavaScript powers. "Best theme by a mile". Combines the
|
data/assets/img/oldschool-bg.jpg
DELETED
Binary file
|
Binary file
|
data/assets/js/hydejack-7.5.1.js
DELETED
@@ -1,249 +0,0 @@
|
|
1
|
-
/*!
|
2
|
-
* __ __ __ __
|
3
|
-
* /\ \/\ \ /\ \ __ /\ \
|
4
|
-
* \ \ \_\ \ __ __ \_\ \ __ /\_\ __ ___ \ \ \/'\
|
5
|
-
* \ \ _ \ /\ \/\ \ /'_` \ /'__`\ \/\ \ /'__`\ /'___\\ \ , <
|
6
|
-
* \ \ \ \ \\ \ \_\ \ /\ \L\ \ /\ __/ \ \ \ /\ \L\.\_ /\ \__/ \ \ \\`\
|
7
|
-
* \ \_\ \_\\/`____ \\ \___,_\\ \____\ _\ \ \\ \__/.\_\\ \____\ \ \_\ \_\
|
8
|
-
* \/_/\/_/ `/___/> \\/__,_ / \/____//\ \_\ \\/__/\/_/ \/____/ \/_/\/_/
|
9
|
-
* /\___/ \ \____/
|
10
|
-
* \/__/ \/___/
|
11
|
-
*
|
12
|
-
* Powered by Hydejack v7.5.1 <https://qwtel.com/hydejack/>
|
13
|
-
*/
|
14
|
-
!function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=28)}([function(t,e,n){"use strict";(function(t){n.d(e,"a",function(){return s});var r="undefined"!=typeof window&&window,o="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,i=void 0!==t&&t,s=r||i||o}).call(e,n(49))},function(t,e){var n=t.exports={version:"2.5.4"};"number"==typeof __e&&(__e=n)},function(t,e,n){var r=n(5),o=n(1),i=n(8),s=n(41),a=n(16),u=function t(e,n,u){var c,l,f,h,p=e&t.F,d=e&t.G,y=e&t.S,b=e&t.P,v=e&t.B,m=d?r:y?r[n]||(r[n]={}):(r[n]||{}).prototype,g=d?o:o[n]||(o[n]={}),w=g.prototype||(g.prototype={});d&&(u=n);for(c in u)l=!p&&m&&void 0!==m[c],f=(l?m:u)[c],h=v&&l?a(f,r):b&&"function"==typeof f?a(Function.call,f):f,m&&s(m,c,f,e&t.U),g[c]!=f&&i(g,c,h),b&&w[c]!=f&&(w[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){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,n){n(46),t.exports=n(1).Function.bind},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){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){var r=n(22)("wks"),o=n(10),i=n(5).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,n){var r=n(35),o=n(40);t.exports=n(9)?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){t.exports=!n(6)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},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){var r=n(12);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(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){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){n(34),t.exports=n(1).Array.forEach},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var r=n(17);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){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){var r=n(16),o=n(11),i=n(19),s=n(20),a=n(42);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,b,v=i(e),m=o(v),g=r(a,d,3),w=s(m.length),_=0,x=n?p(e,w):u?p(e,0):void 0;w>_;_++)if((h||_ in m)&&(y=m[_],b=g(y,_,v),t))if(n)x[_]=b;else if(b)switch(t){case 3:return!0;case 5:return y;case 6:return _;case 2:x.push(y)}else if(l)return!1;return f?-1:c||l?l:x}}},function(t,e,n){var r=n(13);t.exports=function(t){return Object(r(t))}},function(t,e,n){var r=n(21),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):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(5),o=r["__core-js_shared__"]||(r["__core-js_shared__"]={});t.exports=function(t){return o[t]||(o[t]={})}},function(t,e,n){var r=n(11),o=n(13);t.exports=function(t){return r(o(t))}},function(t,e,n){var r=n(23),o=n(20),i=n(60);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){var r=n(7)("unscopables"),o=Array.prototype;void 0==o[r]&&n(8)(o,r,{}),t.exports=function(t){o[r][t]=!0}},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){function r(t,e){return Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)+Math.pow(t[2]-e[2],2)}var o=n(26),i={};for(var s in o)o.hasOwnProperty(s)&&(i[o[s]]=s);var a=t.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var u in a)if(a.hasOwnProperty(u)){if(!("channels"in a[u]))throw new Error("missing channels property: "+u);if(!("labels"in a[u]))throw new Error("missing channel labels property: "+u);if(a[u].labels.length!==a[u].channels)throw new Error("channel and label counts mismatch: "+u);var c=a[u].channels,l=a[u].labels;delete a[u].channels,delete a[u].labels,Object.defineProperty(a[u],"channels",{value:c}),Object.defineProperty(a[u],"labels",{value:l})}a.rgb.hsl=function(t){var e,n,r,o=t[0]/255,i=t[1]/255,s=t[2]/255,a=Math.min(o,i,s),u=Math.max(o,i,s),c=u-a;return u===a?e=0:o===u?e=(i-s)/c:i===u?e=2+(s-o)/c:s===u&&(e=4+(o-i)/c),e=Math.min(60*e,360),e<0&&(e+=360),r=(a+u)/2,n=u===a?0:r<=.5?c/(u+a):c/(2-u-a),[e,100*n,100*r]},a.rgb.hsv=function(t){var e,n,r,o=t[0],i=t[1],s=t[2],a=Math.min(o,i,s),u=Math.max(o,i,s),c=u-a;return n=0===u?0:c/u*1e3/10,u===a?e=0:o===u?e=(i-s)/c:i===u?e=2+(s-o)/c:s===u&&(e=4+(o-i)/c),e=Math.min(60*e,360),e<0&&(e+=360),r=u/255*1e3/10,[e,n,r]},a.rgb.hwb=function(t){var e=t[0],n=t[1],r=t[2],o=a.rgb.hsl(t)[0],i=1/255*Math.min(e,Math.min(n,r));return r=1-1/255*Math.max(e,Math.max(n,r)),[o,100*i,100*r]},a.rgb.cmyk=function(t){var e,n,r,o,i=t[0]/255,s=t[1]/255,a=t[2]/255;return o=Math.min(1-i,1-s,1-a),e=(1-i-o)/(1-o)||0,n=(1-s-o)/(1-o)||0,r=(1-a-o)/(1-o)||0,[100*e,100*n,100*r,100*o]},a.rgb.keyword=function(t){var e=i[t];if(e)return e;var n,s=1/0;for(var a in o)if(o.hasOwnProperty(a)){var u=o[a],c=r(t,u);c<s&&(s=c,n=a)}return n},a.keyword.rgb=function(t){return o[t]},a.rgb.xyz=function(t){var e=t[0]/255,n=t[1]/255,r=t[2]/255;return e=e>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92,r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92,[100*(.4124*e+.3576*n+.1805*r),100*(.2126*e+.7152*n+.0722*r),100*(.0193*e+.1192*n+.9505*r)]},a.rgb.lab=function(t){var e,n,r,o=a.rgb.xyz(t),i=o[0],s=o[1],u=o[2];return i/=95.047,s/=100,u/=108.883,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,s=s>.008856?Math.pow(s,1/3):7.787*s+16/116,u=u>.008856?Math.pow(u,1/3):7.787*u+16/116,e=116*s-16,n=500*(i-s),r=200*(s-u),[e,n,r]},a.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,i];n=u<.5?u*(1+a):u+a-u*a,e=2*u-n,o=[0,0,0];for(var c=0;c<3;c++)r=s+1/3*-(c-1),r<0&&r++,r>1&&r--,i=6*r<1?e+6*(n-e)*r:2*r<1?n:3*r<2?e+(n-e)*(2/3-r)*6:e,o[c]=255*i;return o},a.hsl.hsv=function(t){var e,n,r=t[0],o=t[1]/100,i=t[2]/100,s=o,a=Math.max(i,.01);return i*=2,o*=i<=1?i:2-i,s*=a<=1?a:2-a,n=(i+o)/2,e=0===i?2*s/(a+s):2*o/(i+o),[r,100*e,100*n]},a.hsv.rgb=function(t){var e=t[0]/60,n=t[1]/100,r=t[2]/100,o=Math.floor(e)%6,i=e-Math.floor(e),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]}},a.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,e=(2-i)*a,n=i*a,n/=e<=1?e:2-e,n=n||0,r/=2,[o,100*n,100*r]},a.hwb.rgb=function(t){var e,n,r,o,i=t[0]/360,s=t[1]/100,a=t[2]/100,u=s+a;u>1&&(s/=u,a/=u),e=Math.floor(6*i),n=1-a,r=6*i-e,0!=(1&e)&&(r=1-r),o=s+r*(n-s);var c,l,f;switch(e){default:case 6:case 0:c=n,l=o,f=s;break;case 1:c=o,l=n,f=s;break;case 2:c=s,l=n,f=o;break;case 3:c=s,l=o,f=n;break;case 4:c=o,l=s,f=n;break;case 5:c=n,l=s,f=o}return[255*c,255*l,255*f]},a.cmyk.rgb=function(t){var e,n,r,o=t[0]/100,i=t[1]/100,s=t[2]/100,a=t[3]/100;return e=1-Math.min(1,o*(1-a)+a),n=1-Math.min(1,i*(1-a)+a),r=1-Math.min(1,s*(1-a)+a),[255*e,255*n,255*r]},a.xyz.rgb=function(t){var e,n,r,o=t[0]/100,i=t[1]/100,s=t[2]/100;return e=3.2406*o+-1.5372*i+-.4986*s,n=-.9689*o+1.8758*i+.0415*s,r=.0557*o+-.204*i+1.057*s,e=e>.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,e=Math.min(Math.max(0,e),1),n=Math.min(Math.max(0,n),1),r=Math.min(Math.max(0,r),1),[255*e,255*n,255*r]},a.xyz.lab=function(t){var e,n,r,o=t[0],i=t[1],s=t[2];return o/=95.047,i/=100,s/=108.883,o=o>.008856?Math.pow(o,1/3):7.787*o+16/116,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,s=s>.008856?Math.pow(s,1/3):7.787*s+16/116,e=116*i-16,n=500*(o-i),r=200*(i-s),[e,n,r]},a.lab.xyz=function(t){var e,n,r,o=t[0],i=t[1],s=t[2];n=(o+16)/116,e=i/500+n,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,[e,n,r]},a.lab.lch=function(t){var e,n,r,o=t[0],i=t[1],s=t[2];return e=Math.atan2(s,i),n=360*e/2/Math.PI,n<0&&(n+=360),r=Math.sqrt(i*i+s*s),[o,r,n]},a.lch.lab=function(t){var e,n,r,o=t[0],i=t[1],s=t[2];return r=s/360*2*Math.PI,e=i*Math.cos(r),n=i*Math.sin(r),[o,e,n]},a.rgb.ansi16=function(t){var e=t[0],n=t[1],r=t[2],o=1 in arguments?arguments[1]:a.rgb.hsv(t)[2];if(0===(o=Math.round(o/50)))return 30;var i=30+(Math.round(r/255)<<2|Math.round(n/255)<<1|Math.round(e/255));return 2===o&&(i+=60),i},a.hsv.ansi16=function(t){return a.rgb.ansi16(a.hsv.rgb(t),t[2])},a.rgb.ansi256=function(t){var e=t[0],n=t[1],r=t[2];return e===n&&n===r?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},a.ansi16.rgb=function(t){var e=t%10;if(0===e||7===e)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];var n=.5*(1+~~(t>50));return[(1&e)*n*255,(e>>1&1)*n*255,(e>>2&1)*n*255]},a.ansi256.rgb=function(t){if(t>=232){var e=10*(t-232)+8;return[e,e,e]}t-=16;var n;return[Math.floor(t/36)/5*255,Math.floor((n=t%36)/6)/5*255,n%6/5*255]},a.rgb.hex=function(t){var e=((255&Math.round(t[0]))<<16)+((255&Math.round(t[1]))<<8)+(255&Math.round(t[2])),n=e.toString(16).toUpperCase();return"000000".substring(n.length)+n},a.hex.rgb=function(t){var e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];var n=e[0];3===e[0].length&&(n=n.split("").map(function(t){return t+t}).join(""));var r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},a.rgb.hcg=function(t){var e,n,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,n%=1,[360*n,100*u,100*e]},a.hsl.hcg=function(t){var e=t[1]/100,n=t[2]/100,r=1,o=0;return r=n<.5?2*e*n:2*e*(1-n),r<1&&(o=(n-.5*r)/(1-r)),[t[0],100*r,100*o]},a.hsv.hcg=function(t){var e=t[1]/100,n=t[2]/100,r=e*n,o=0;return r<1&&(o=(n-r)/(1-r)),[t[0],100*r,100*o]},a.hcg.rgb=function(t){var e=t[0]/360,n=t[1]/100,r=t[2]/100;if(0===n)return[255*r,255*r,255*r];var o=[0,0,0],i=e%1*6,s=i%1,a=1-s,u=0;switch(Math.floor(i)){case 0:o[0]=1,o[1]=s,o[2]=0;break;case 1:o[0]=a,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=s;break;case 3:o[0]=0,o[1]=a,o[2]=1;break;case 4:o[0]=s,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=a}return u=(1-n)*r,[255*(n*o[0]+u),255*(n*o[1]+u),255*(n*o[2]+u)]},a.hcg.hsv=function(t){var e=t[1]/100,n=t[2]/100,r=e+n*(1-e),o=0;return r>0&&(o=e/r),[t[0],100*o,100*r]},a.hcg.hsl=function(t){var e=t[1]/100,n=t[2]/100,r=n*(1-e)+.5*e,o=0;return r>0&&r<.5?o=e/(2*r):r>=.5&&r<1&&(o=e/(2*(1-r))),[t[0],100*o,100*r]},a.hcg.hwb=function(t){var e=t[1]/100,n=t[2]/100,r=e+n*(1-e);return[t[0],100*(r-e),100*(1-r)]},a.hwb.hcg=function(t){var e=t[1]/100,n=t[2]/100,r=1-n,o=r-e,i=0;return o<1&&(i=(r-o)/(1-o)),[t[0],100*o,100*i]},a.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]},a.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]},a.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]},a.gray.hsl=a.gray.hsv=function(t){return[0,0,t[0]]},a.gray.hwb=function(t){return[0,100,t[0]]},a.gray.cmyk=function(t){return[0,0,0,t[0]]},a.gray.lab=function(t){return[t[0],0,0]},a.gray.hex=function(t){var e=255&Math.round(t[0]/100*255),n=(e<<16)+(e<<8)+e,r=n.toString(16).toUpperCase();return"000000".substring(r.length)+r},a.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]}},function(t,e,n){"use strict";function r(t){return"function"==typeof t}function o(t){return null!=t&&"object"===(void 0===t?"undefined":On(t))}function i(){try{return wn.apply(this,arguments)}catch(t){return Sn.e=t,Sn}}function s(t){return wn=t,i}function a(t){return t.reduce(function(t,e){return t.concat(e instanceof En?e.errors:e)},[])}function u(t){return t instanceof Nn||"syncErrorThrowable"in t&&t[Cn]}function c(t,e,n){if(t){if(t instanceof Nn)return t;if(t[Cn])return t[Cn]()}return t||e||n?new Nn(t,e,n):new Nn(Pn)}function l(){}function f(t){return t?1===t.length?t[0]:function(e){return t.reduce(function(t,e){return e(t)},e)}:l}function h(t){var e=!0;return t.forEach(function(t){var n=window.Modernizr[t];e=e&&n}),e}function p(){this.style.display="none",this.style.visibility="hidden"}function d(){for(;this.firstChild;)this.removeChild(this.firstChild)}function y(t,e,n){return qn.create(function(r){var o=t.animate(e,n);return o.addEventListener("finish",function(t){r.next(t),requestAnimationFrame(r.complete.bind(r))}),function(){"finished"!==o.playState&&o.cancel()}})}function b(){var t=void 0,e=void 0,n=new Promise(function(n,r){t=n,e=r});return n.resolve=t,n.reject=e,n}function v(t,e){t.outerHTML=window.katex.renderToString(e,{displayMode:"math/tex; mode=display"===t.type})}function m(t,e){try{var n=t.previousElementSibling;v(t,e),n&&n.classList&&n.classList.contains("MathJax_Preview")&&p.call(n)}catch(t){console.error(t)}finally{t.style.willChange=""}}function g(t){return t.textContent.replace("% <![CDATA[","").replace("%]]>","")}function w(t){Bn.call(t,function(t){m(t,g(t))})}function _(){if(Xn){var t=document.querySelectorAll('script[type^="math/tex"]');t.length&&($n&&Vn?w(t):(window.loadJSDeferred(document.getElementById("_katexJS").href,function(){($n=!0)&&Vn&&_()}),window.loadCSS(document.getElementById("_katexCSS").href).onload=function(){Vn=!0,$n&&Vn&&_()}))}}function x(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function O(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}function S(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)}function j(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function E(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function k(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}function T(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)}function P(t){return t&&"function"==typeof t.schedule}function A(t){return t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}function C(t,e,n,r){var i=new Nr(t,n,r);if(i.closed)return null;if(e instanceof qn)return e._isScalar?(i.next(e.value),i.complete(),null):(i.syncErrorThrowable=!0,e.subscribe(i));if(Cr(e)){for(var s=0,a=e.length;s<a&&!i.closed;s++)i.next(e[s]);i.closed||i.complete()}else{if(A(e))return e.then(function(t){i.closed||(i.next(t),i.complete())},function(t){return i.error(t)}).then(null,function(t){_n.a.setTimeout(function(){throw t})}),i;if(e&&"function"==typeof e[Mr])for(var u=e[Mr]();;){var c=u.next();if(c.done){i.complete();break}if(i.next(c.value),i.closed)break}else if(e&&"function"==typeof e[In]){var l=e[In]();if("function"==typeof l.subscribe)return l.subscribe(new Nr(t,n,r));i.error(new TypeError("Provided object does not correctly implement Symbol.observable"))}else{var f=o(e)?"an invalid object":"'"+e+"'",h="You provided "+f+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.";i.error(new TypeError(h))}}return null}function M(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];var n=null,r=null;return P(t[t.length-1])&&(r=t.pop()),"function"==typeof t[t.length-1]&&(n=t.pop()),1===t.length&&xn(t[0])&&(t=t[0]),new Tr(t,r).lift(new qr(n))}function R(t){return!!t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}function N(t){return!!t&&"function"==typeof t.on&&"function"==typeof t.off}function L(t){return!!t&&"[object NodeList]"===Wr.call(t)}function I(t){return!!t&&"[object HTMLCollection]"===Wr.call(t)}function q(t){return!!t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}function D(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),function(r){return"number"==typeof e&&(n=e,e=null),r.lift(new Yr(t,e,n))}}function F(t){return t}function U(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),D(F,null,t)}function H(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];var n=Number.POSITIVE_INFINITY,r=null,o=t[t.length-1];return P(o)?(r=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof o&&(n=t.pop()),null===r&&1===t.length&&t[0]instanceof qn?t[0]:U(n)(new Tr(t,r))}function z(t,e,n){return function(r){return r.lift(new to(t,e,n))}}function B(t,e){return function(n){return n.lift(new ro(t,e))}}function W(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new so(t,e))}}function X(){return function(t){return t.lift(new co)}}function $(t){return function(e){return e.lift(new ho(t))}}function V(t){return function(e){return e.lift(new bo(t))}}function Y(){return function(t){return t.lift(new go(t))}}function J(t,e){return function(n){var r;if(r="function"==typeof t?t:function(){return t},"function"==typeof e)return n.lift(new Eo(r,e));var o=Object.create(n,So);return o.source=n,o.subjectFactory=r,o}}function K(){return new fr}function G(){return function(t){return Y()(J(K)(t))}}function Z(t){var e=t.value,n=t.subscriber;n.closed||(n.next(e),n.complete())}function Q(t){var e=t.err,n=t.subscriber;n.closed||n.error(e)}function tt(t){var e=t[Mr];if(!e&&"string"==typeof t)return new Mo(t);if(!e&&void 0!==t.length)return new Ro(t);if(!e)throw new TypeError("object is not iterable");return t[Mr]()}function et(t){var e=+t.length;return isNaN(e)?0:0!==e&&nt(e)?(e=rt(e)*Math.floor(Math.abs(e)),e<=0?0:e>No?No:e):e}function nt(t){return"number"==typeof t&&_n.a.isFinite(t)}function rt(t){var e=+t;return 0===e?e:isNaN(e)?e:e<0?-1:1}function ot(){return U(1)}function it(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return 1===t.length||2===t.length&&P(t[1])?Xo(t[0]):ot()(ko.apply(void 0,t))}function st(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return function(e){var n=t[t.length-1];P(n)?t.pop():n=null;var r=t.length;return 1===r?it(new Sr(t[0],n),e):r>1?it(new Tr(t,n),e):it(new Er(n),e)}}function at(t,e){return function(n){return n.lift(new Vo(t,e))}}function ut(t){return function(e){return 0===t?new Er:e.lift(new Zo(t))}}function ct(t){return function(e){return e.lift(new ei(t))}}function lt(t){return void 0===t&&(t=li),W(function(e){return new fi(e,t.now())})}function ft(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return function(e){var n;"function"==typeof t[t.length-1]&&(n=t.pop());var r=t;return e.lift(new pi(r,n))}}function ht(t,e,n,r,o){return qn.create(function(i){var s=void 0,a=requestAnimationFrame(function u(c){s=s||c;var l=c-s;l<r?(i.next(t(l,e,n,r,o)),a=requestAnimationFrame(u)):(i.next(t(r,e,n,r,o)),a=requestAnimationFrame(function(){return i.complete()}))});return function(){a&&cancelAnimationFrame(a)}})}function pt(t,e,n,r){return n*Math.sin(t/r*(Math.PI/2))+e}function dt(t){return Array.isArray(t)?t:Array.from(t)}function yt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function bt(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}function vt(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)}function mt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function gt(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}function wt(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)}function _t(t){return function(e){return e.lift(new Ei(t))}}function xt(t){return function(e){return e.lift(new Pi(t))}}function Ot(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function St(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}function jt(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)}function Et(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function kt(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}function Tt(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)}function Pt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function At(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}function Ct(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)}function Mt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Rt(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}function Nt(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)}function Lt(t,e){return t?t(e):e}function It(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()}function qt(t){for(var e=t,n=!1,r=!1,o=!1,i=0;i<e.length;i++){var s=e.charAt(i);n&&/[a-zA-Z]/.test(s)&&s.toUpperCase()===s?(e=e.substr(0,i)+"-"+e.substr(i),n=!1,o=r,r=!0,i++):r&&o&&/[a-zA-Z]/.test(s)&&s.toLowerCase()===s?(e=e.substr(0,i-1)+"-"+e.substr(i-1),o=r,r=!1,n=!0):(n=s.toLowerCase()===s,o=r,r=s.toUpperCase()===s)}return e}function Dt(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=[].map.call(e,function(t){return t.trim()}).filter(function(t){return t.length}).join("-");return 0===r.length?"":1===r.length?r.toLowerCase():(r=qt(r),r.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,function(t,e){return e.toUpperCase()}))}function Ft(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ut(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}function Ht(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)}function zt(){var t="function"==typeof window.HTMLElement?window.HTMLElement:function(){};return Reflect.construct(t,[],this.__proto__.constructor)}function Bt(t){return document.createRange().createContextualFragment(t)}function Wt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Xt(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}function $t(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)}function Vt(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}function Yt(){var t=window.matchMedia(Qi).matches;window._isDesktop!==t&&(window._isDesktop=t,window._drawer.persistent=t,window._drawer.opened=t)}function Jt(t){window._isDesktop||(t.preventDefault(),window._drawer.toggle())}function Kt(){return Un&&!navigator.standalone?[35,135]:[0,150]}function Gt(t){for(var e=this;e!==document&&e!==document.documentElement;){if(os.call(e,t))return e;e=e.parentNode}return null}function Zt(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 Qt(t){var e=t.hash,n=t.origin,r=t.pathname,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.location;return""!==e&&n===o.origin&&r===o.pathname}function te(){var t=document.documentElement,e=document.body,n="scrollHeight";return t[n]||e[n]}function ee(){return window.pageYOffset||document.body.scrollTop}function ne(t){return document.createRange().createContextualFragment(t)}function re(){if(_n.a.XMLHttpRequest)return new _n.a.XMLHttpRequest;if(_n.a.XDomainRequest)return new _n.a.XDomainRequest;throw new Error("CORS is not supported by your browser")}function oe(){if(_n.a.XMLHttpRequest)return new _n.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 _n.a.ActiveXObject(t))break}catch(t){}return new _n.a.ActiveXObject(t)}catch(t){throw new Error("XMLHttpRequest is not supported by your browser")}}function ie(t,e){return void 0===e&&(e=null),new us({method:"GET",url:t,headers:e})}function se(t,e,n){return new us({method:"POST",url:t,body:e,headers:n})}function ae(t,e){return new us({method:"DELETE",url:t,headers:e})}function ue(t,e,n){return new us({method:"PUT",url:t,body:e,headers:n})}function ce(t,e,n){return new us({method:"PATCH",url:t,body:e,headers:n})}function le(t,e){return as(new us({method:"GET",url:t,responseType:"json",headers:e}))}function fe(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}}function he(t){return function(e){var n=new ys(t),r=e.lift(n);return n.caught=r}}function pe(t,e){return function(n){return n.lift(new ms(t,e))}}function de(t,e){function n(){return!n.pred.apply(n.thisArg,arguments)}return n.pred=t,n.thisArg=e,n}function ye(t,e){return function(n){return[B(t,e)(n),B(de(t,e))(n)]}}function be(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ve(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}function me(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)}function ge(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function we(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _e(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}function xe(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)}function Oe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Se(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function je(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}function Ee(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)}function ke(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return function(e){return e.lift.call(Te.apply(void 0,[e].concat(t)))}}function Te(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];var n=t[t.length-1];return"function"==typeof n&&t.pop(),new Tr(t).lift(new Ps(n))}function Pe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ae(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}function Ce(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)}function Me(t,e){return D(t,e,1)}function Re(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ne(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}function Le(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)}function Ie(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function qe(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}function De(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)}function Fe(t){return!xn(t)&&t-parseFloat(t)+1>=0}function Ue(t){return t instanceof Date&&!isNaN(+t)}function He(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ze(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}function Be(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)}function We(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Xe(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}function $e(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)}function Ve(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ye(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}function Je(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)}function Ke(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ge(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}function Ze(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)}function Qe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function tn(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}function en(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)}function nn(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}function rn(t){t.debouncedNext()}function on(t){return function(e){return e.lift(new xa(t))}}function sn(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function an(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.color,n=void 0===e?"#4fb1ba":e,r=t.themeColor;if(this.themeColor&&(this.themeColor.content=r||n),this.rules)try{var o=ga()(n),i=o.darken(.1);this.rules[0].style.color=n,this.rules[0].style.borderColor=o.fade(Pa).string(),this.rules[1].style.borderColor=n,this.rules[2].style.outlineColor=n,this.rules[3].style.backgroundColor=n,this.rules[3].style.borderColor=n,this.rules[4].style.boxShadow="0 0 0 3px "+o.fade(.5),this.rules[5].style.backgroundColor=i,this.rules[5].style.borderColor=i,this.rules[6].style.backgroundColor=n,this.rules[6].style.borderColor=n,this.rules[7].style.backgroundColor=i,this.rules[7].style.borderColor=i,this.rules[this.rules.length-1].style.backgroundColor=n}catch(t){console.error(t)}}function un(t){var e=t.background,n=t.color,r=t.image,o=t.overlay;return""+n+(r||e)+(""===o?"overlay":"")}function cn(t){var e=t.background,n=t.image;if(e||!n||""===n||"none"===n||n===this.prevImage)return ko({});var r=new Image,o=$r(r,"load").pipe(ut(1),on(function(){r.src=""}));return r.src=n,o}function ln(){window.DISQUS.reset({reload:!0,config:function(){this.page.url=window.location.href,this.page.title=document.title}})}function fn(){document.getElementById("disqus_thread")&&(window.DISQUS?ln():(window.disqus_config=function(){this.page.url=window.location.href,this.page.title=document.title},window.loadJSDeferred(document.getElementById("_disqusJS").href)))}function hn(t,e,n,r){var o=r.animationMain,i=r.settings;if(!o)return t;var s=t.pipe(B(function(t){return"title"===t.flipType}),at(function(t){var e=t.anchor;if(!e)return ko({});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 ko({});d.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,y(n,[{transform:"translate3d("+l+"px, "+f+"px, 0) scale("+h+")"},{transform:"translate3d(0, 0, 0) scale(1)"}],i).pipe(z({complete:function(){o.style.position="absolute"}}))}));return t.pipe(at(function(t){var r=t.flipType;return e.pipe(B(function(){return"title"===r}),W(function(t){var e=Ma(t.replaceEls,1),n=e[0],r=n.querySelector(Ra);return r&&(r.style.opacity=0),r}),ke(n,function(t){return t}),z(function(t){t&&(t.style.opacity=1),o.style.opacity=0}),on(function(){o.style.opacity=0}))})).subscribe(),s}function pn(t){var e=document.getElementById("_permalink-template"),n=document.importNode(e.content,!0);n.querySelector(".permalink").href="#"+t.id,t.appendChild(n)}function dn(t,e){var n=e.pathname,r=document.getElementById("_error-template"),o=document.importNode(r.content,!0),i=o.querySelector(".this-link");return i&&(i.href=n,i.textContent=n),t.appendChild(o),t.lastElementChild}function yn(t){return t&&t.classList?t.classList.contains("flip-title")?"title":t.classList.contains("flip-project")?"project":t.getAttribute&&t.getAttribute("data-flip"):null}function bn(t){return"push"===t||navigator.standalone||!Fn}function vn(){return!Fn||!!navigator.standalone}function mn(t){var e=t.type,n=t.main;return bn(e)?y(n,za,Wa).pipe(_t({main:n})):ko({main:n})}function gn(t){var e=t.type,n=La(t.replaceEls,1),r=n[0],o=t.flipType;return bn(e)?y(r,Ba,Wa).pipe(_t({main:r,flipType:o})):ko({main:r,flipType:o})}Object.defineProperty(e,"__esModule",{value:!0});var wn,_n=(n(29),n(30),n(31),n(32),n(33),n(14),n(4),n(0)),xn=Array.isArray||function(t){return t&&"number"==typeof t.length},On="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},Sn={e:{}},jn=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},En=function(t){function e(e){t.call(this),this.errors=e;var n=Error.call(this,e?e.length+" errors occurred during unsubscription:\n "+e.map(function(t,e){return e+1+") "+t.toString()}).join("\n "):"");this.name=n.name="UnsubscriptionError",this.stack=n.stack,this.message=n.message}return jn(e,t),e}(Error),kn="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},Tn=function(){function t(t){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}return t.prototype.unsubscribe=function(){var t,e=!1;if(!this.closed){var n=this,i=n._parent,u=n._parents,c=n._unsubscribe,l=n._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var f=-1,h=u?u.length:0;i;)i.remove(this),i=++f<h&&u[f]||null;if(r(c)){var p=s(c).call(this);p===Sn&&(e=!0,t=t||(Sn.e instanceof En?a(Sn.e.errors):[Sn.e]))}if(xn(l))for(f=-1,h=l.length;++f<h;){var d=l[f];if(o(d)){var p=s(d.unsubscribe).call(d);if(p===Sn){e=!0,t=t||[];var y=Sn.e;y instanceof En?t=t.concat(a(y.errors)):t.push(y)}}}if(e)throw new En(t)}},t.prototype.add=function(e){if(!e||e===t.EMPTY)return t.EMPTY;if(e===this)return this;var n=e;switch(void 0===e?"undefined":kn(e)){case"function":n=new t(e);case"object":if(n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if("function"!=typeof n._addParent){var r=n;n=new t,n._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}return(this._subscriptions||(this._subscriptions=[])).push(n),n._addParent(this),n},t.prototype.remove=function(t){var e=this._subscriptions;if(e){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}},t.prototype._addParent=function(t){var e=this,n=e._parent,r=e._parents;n&&n!==t?r?-1===r.indexOf(t)&&r.push(t):this._parents=[t]:this._parent=t},t.EMPTY=function(t){return t.closed=!0,t}(new t),t}(),Pn={closed:!0,next:function(t){},error:function(t){throw t},complete:function(){}},An=_n.a.Symbol,Cn="function"==typeof An&&"function"==typeof An.for?An.for("rxSubscriber"):"@@rxSubscriber",Mn="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},Rn=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Nn=function(t){function e(e,n,r){switch(t.call(this),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=Pn;break;case 1:if(!e){this.destination=Pn;break}if("object"===(void 0===e?"undefined":Mn(e))){if(u(e)){var o=e[Cn]();this.syncErrorThrowable=o.syncErrorThrowable,this.destination=o,o.add(this)}else this.syncErrorThrowable=!0,this.destination=new Ln(this,e);break}default:this.syncErrorThrowable=!0,this.destination=new Ln(this,e,n,r)}}return Rn(e,t),e.prototype[Cn]=function(){return this},e.create=function(t,n,r){var o=new e(t,n,r);return o.syncErrorThrowable=!1,o},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this,e=t._parent,n=t._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=e,this._parents=n,this},e}(Tn),Ln=function(t){function e(e,n,o,i){t.call(this),this._parentSubscriber=e;var s,a=this;r(n)?s=n:n&&(s=n.next,o=n.error,i=n.complete,n!==Pn&&(a=Object.create(n),r(a.unsubscribe)&&this.add(a.unsubscribe.bind(a)),a.unsubscribe=this.unsubscribe.bind(this))),this._context=a,this._next=s,this._error=o,this._complete=i}return Rn(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber;if(this._error)e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else{if(!e.syncErrorThrowable)throw this.unsubscribe(),t;e.syncErrorValue=t,e.syncErrorThrown=!0,this.unsubscribe()}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var n=function(){return t._complete.call(t._context)};e.syncErrorThrowable?(this.__tryOrSetError(e,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){throw this.unsubscribe(),t}},e.prototype.__tryOrSetError=function(t,e,n){try{e.call(this._context,n)}catch(e){return t.syncErrorValue=e,t.syncErrorThrown=!0,!0}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(Nn),In=function(t){var e,n=t.Symbol;return"function"==typeof n?n.observable?e=n.observable:(e=n("observable"),n.observable=e):e="@@observable",e}(_n.a),qn=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(t,e,n){var r=this.operator,o=c(t,e,n);if(r?r.call(o,this.source):o.add(this.source||!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.syncErrorThrown=!0,t.syncErrorValue=e,t.error(e)}},t.prototype.forEach=function(t,e){var n=this;if(e||(_n.a.Rx&&_n.a.Rx.config&&_n.a.Rx.config.Promise?e=_n.a.Rx.config.Promise:_n.a.Promise&&(e=_n.a.Promise)),!e)throw new Error("no Promise impl found");return new e(function(e,r){var o;o=n.subscribe(function(e){if(o)try{t(e)}catch(t){r(t),o.unsubscribe()}else t(e)},r,e)})},t.prototype._subscribe=function(t){return this.source.subscribe(t)},t.prototype[In]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return 0===t.length?this:f(t)(this)},t.prototype.toPromise=function(t){var e=this;if(t||(_n.a.Rx&&_n.a.Rx.config&&_n.a.Rx.config.Promise?t=_n.a.Rx.config.Promise:_n.a.Promise&&(t=_n.a.Promise)),!t)throw new Error("no Promise impl found");return new t(function(t,n){var r;e.subscribe(function(t){return r=t},function(t){return n(t)},function(){return t(r)})})},t.create=function(e){return new t(e)},t}(),Dn=navigator.userAgent.toLowerCase(),Fn=Dn.indexOf("safari")>0&&Dn.indexOf("chrome")<0,Un=Fn&&Dn.indexOf("mobile")>0,Hn=Dn.indexOf("ucbrowser")>0,zn=Dn.indexOf("fxios")>0&&Dn.indexOf("safari")>0,Bn=Array.prototype.forEach,Wn=["classlist","eventlistener","queryselector"],Xn=h(Wn),$n=!1,Vn=!1;_();var Yn="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)}),t.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=void 0;return(n=t.has(e))&&(t.size--,t.splice(t.indexOf(e),1)),n},t.clear=function(){for(;t.pop(););t.size=0},t},Jn=function t(e,n){x(this,t),this.setupComponent(e,n),this.connectComponent()},Kn=function(t,e){function n(t){"string"==typeof t?this.appendChild(e(t)):this.appendChild(t)}return function(r,o,i){var s=t(r);for(var a in o)s.setAttribute(a,o[a]);if(i)if("string"==typeof i)s.appendChild(e(i));else if(i.length){var u=Array.prototype.slice.call(i,0);Array.prototype.forEach.call(u,n,s)}else s.appendChild(i);return s}},Gn=Kn(document.createElement.bind(document),document.createTextNode.bind(document)),Zn=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),Qn=new Yn(["customevent"]),tr=Symbol||function(t){return"_"+t},er=tr("sroot"),nr=tr("state");window.process=window.process||{},window.process.env=window.process.env||{};var rr=function t(){j(this,t)},or=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rr;return function(t){function e(){return j(this,e),O(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return S(e,t),Zn(e,[{key:"setupComponent",value:function(t,e){var n=this.constructor.defaults;this[nr]=Object.assign({},n,e),this.setupProperties(this),this[er]=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[er]}},{key:"getEl",value:function(){return this[er]}},{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[nr][t]=e}},{key:"setupProperties",value:function(){var t=this,e=this.constructor.sideEffects;Object.keys(this[nr]).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[nr][t]},set:function(r){var o=n[nr][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()}}]),e}(t)},ir=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},sr=function(t){function e(){var e=t.call(this,"object unsubscribed");this.name=e.name="ObjectUnsubscribedError",this.stack=e.stack,this.message=e.message}return ir(e,t),e}(Error),ar=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},ur=function(t){function e(e,n){t.call(this),this.subject=e,this.subscriber=n,this.closed=!1}return ar(e,t),e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},e}(Tn),cr=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},lr=function(t){function e(e){t.call(this,e),this.destination=e}return cr(e,t),e}(Nn),fr=function(t){function e(){t.call(this),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}return cr(e,t),e.prototype[Cn]=function(){return new lr(this)},e.prototype.lift=function(t){var e=new hr(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new sr;if(!this.isStopped)for(var e=this.observers,n=e.length,r=e.slice(),o=0;o<n;o++)r[o].next(t)},e.prototype.error=function(t){if(this.closed)throw new sr;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,n=e.length,r=e.slice(),o=0;o<n;o++)r[o].error(t);this.observers.length=0},e.prototype.complete=function(){if(this.closed)throw new sr;this.isStopped=!0;for(var t=this.observers,e=t.length,n=t.slice(),r=0;r<e;r++)n[r].complete();this.observers.length=0},e.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},e.prototype._trySubscribe=function(e){if(this.closed)throw new sr;return t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){if(this.closed)throw new sr;return this.hasError?(t.error(this.thrownError),Tn.EMPTY):this.isStopped?(t.complete(),Tn.EMPTY):(this.observers.push(t),new ur(this,t))},e.prototype.asObservable=function(){var t=new qn;return t.source=this,t},e.create=function(t,e){return new hr(t,e)},e}(qn),hr=function(t){function e(e,n){t.call(this),this.destination=e,this.source=n}return cr(e,t),e.prototype.next=function(t){var e=this.destination;e&&e.next&&e.next(t)},e.prototype.error=function(t){var e=this.destination;e&&e.error&&this.destination.error(t)},e.prototype.complete=function(){var t=this.destination;t&&t.complete&&this.destination.complete()},e.prototype._subscribe=function(t){return this.source?this.source.subscribe(t):Tn.EMPTY},e}(fr),pr=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),dr=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var s=o.get;if(void 0!==s)return s.call(r)},yr=function(t){return function(t){function e(){return E(this,e),k(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return T(e,t),pr(e,[{key:"setupComponent",value:function(t,n){var r=this;this.subjects={};var o={};this.subjects.disconnect=new fr,this.subjects.adapt=new fr;var i=this.constructor.types;Object.keys(i).map(function(t){r.subjects[t]=new fr,o[t]=function(e){return r.subjects[t].next(e)}}),Object.defineProperty(this.constructor,"sideEffects",{get:function(){return o},set:function(){},enumerable:!0,configurable:!0}),dr(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"setupComponent",this).call(this,t,n)}},{key:"connectComponent",value:function(){var t=this;dr(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"connectComponent",this).call(this),this.subjects.adapt.next(document);var n=this.constructor.types;Object.keys(n).map(function(e){t.subjects[e].next(t[e])})}},{key:"disconnectComponent",value:function(){this.subjects.disconnect.next({}),dr(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"disconnectComponent",this).call(this)}},{key:"adaptComponent",value:function(){this.subjects.adapt.next(document),dr(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"adaptComponent",this).call(this)}}],[{key:"sideEffects",get:function(){}}]),e}(t)},br=function(t){return null==t?null:t.trim().replace(/^\[?(.*?)\]?$/,"$1").split(",").map(function(t){return t.trim()})||null};br.stringify=function(t){return t&&t.length>0?t.join(","):null};var vr=function(t){var e=function(e){if(null==e)return null;var n=br(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)?br.stringify(n):null},e},mr=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)};mr.stringify=function(t){return t?"":null};var gr=function(t){return null==t?null:Number(t)};gr.stringify=function(t){return null==t?null:""+t};var wr=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},_r=function(t){if(null==t)return null;var e=t.trim&&t.trim()||t,n=e.match(/^\/?(.*?)(\/([gimy]*))?$/);return new RegExp(n[1],n[3])};_r.stringify=function(t){return t&&t.toString()||null};var xr=function(t){return t};xr.stringify=function(t){return t};var Or=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Sr=function(t){function e(e,n){t.call(this),this.value=e,this.scheduler=n,this._isScalar=!0,n&&(this._isScalar=!1)}return Or(e,t),e.create=function(t,n){return new e(t,n)},e.dispatch=function(t){var e=t.done,n=t.value,r=t.subscriber;if(e)return void r.complete();r.next(n),r.closed||(t.done=!0,this.schedule(t))},e.prototype._subscribe=function(t){var n=this.value,r=this.scheduler;if(r)return r.schedule(e.dispatch,0,{done:!1,value:n,subscriber:t});t.next(n),t.closed||t.complete()},e}(qn),jr=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Er=function(t){function e(e){t.call(this),this.scheduler=e}return jr(e,t),e.create=function(t){return new e(t)},e.dispatch=function(t){t.subscriber.complete()},e.prototype._subscribe=function(t){var n=this.scheduler;if(n)return n.schedule(e.dispatch,0,{subscriber:t});t.complete()},e}(qn),kr=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Tr=function(t){function e(e,n){t.call(this),this.array=e,this.scheduler=n,n||1!==e.length||(this._isScalar=!0,this.value=e[0])}return kr(e,t),e.create=function(t,n){return new e(t,n)},e.of=function(){for(var t=[],n=0;n<arguments.length;n++)t[n-0]=arguments[n];var r=t[t.length-1];P(r)?t.pop():r=null;var o=t.length;return o>1?new e(t,r):1===o?new Sr(t[0],r):new Er(r)},e.dispatch=function(t){var e=t.array,n=t.index,r=t.count,o=t.subscriber;if(n>=r)return void o.complete();o.next(e[n]),o.closed||(t.index=n+1,this.schedule(t))},e.prototype._subscribe=function(t){var n=this.array,r=n.length,o=this.scheduler;if(o)return o.schedule(e.dispatch,0,{array:n,index:0,count:r,subscriber:t});for(var i=0;i<r&&!t.closed;i++)t.next(n[i]);t.complete()},e}(qn),Pr=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Ar=function(t){function e(){t.apply(this,arguments)}return Pr(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}(Nn),Cr=function(t){return t&&"number"==typeof t.length},Mr=function(t){var e=t.Symbol;if("function"==typeof e)return e.iterator||(e.iterator=e("iterator polyfill")),e.iterator;var n=t.Set;if(n&&"function"==typeof(new n)["@@iterator"])return"@@iterator";var r=t.Map;if(r)for(var o=Object.getOwnPropertyNames(r.prototype),i=0;i<o.length;++i){var s=o[i];if("entries"!==s&&"size"!==s&&r.prototype[s]===r.prototype.entries)return s}return"@@iterator"}(_n.a),Rr=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Nr=function(t){function e(e,n,r){t.call(this),this.parent=e,this.outerValue=n,this.outerIndex=r,this.index=0}return Rr(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}(Nn),Lr=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Ir={},qr=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new Dr(t,this.project))},t}(),Dr=function(t){function e(e,n){t.call(this,e),this.project=n,this.active=0,this.values=[],this.observables=[]}return Lr(e,t),e.prototype._next=function(t){this.values.push(Ir),this.observables.push(t)},e.prototype._complete=function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(var n=0;n<e;n++){var r=t[n];this.add(C(this,r,r,n))}}},e.prototype.notifyComplete=function(t){0==(this.active-=1)&&this.destination.complete()},e.prototype.notifyNext=function(t,e,n,r,o){var i=this.values,s=i[n],a=this.toRespond?s===Ir?--this.toRespond:this.toRespond:0;i[n]=e,0===a&&(this.project?this._tryProject(i):this.destination.next(i.slice()))},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}(Ar),Fr=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Ur=function(t){function e(e){t.call(this),this.observableFactory=e}return Fr(e,t),e.create=function(t){return new e(t)},e.prototype._subscribe=function(t){return new Hr(t,this.observableFactory)},e}(qn),Hr=function(t){function e(e,n){t.call(this,e),this.factory=n,this.tryDefer()}return Fr(e,t),e.prototype.tryDefer=function(){try{this._callFactory()}catch(t){this._error(t)}},e.prototype._callFactory=function(){var t=this.factory();t&&this.add(C(this,t))},e}(Ar),zr=Ur.create,Br=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Wr=Object.prototype.toString,Xr=function(t){function e(e,n,r,o){t.call(this),this.sourceObj=e,this.eventName=n,this.selector=r,this.options=o}return Br(e,t),e.create=function(t,n,o,i){return r(o)&&(i=o,o=void 0),new e(t,n,i,o)},e.setupSubscription=function(t,n,r,o,i){var s;if(L(t)||I(t))for(var a=0,u=t.length;a<u;a++)e.setupSubscription(t[a],n,r,o,i);else if(q(t)){var c=t;t.addEventListener(n,r,i),s=function(){return c.removeEventListener(n,r,i)}}else if(N(t)){var l=t;t.on(n,r),s=function(){return l.off(n,r)}}else{if(!R(t))throw new TypeError("Invalid event target");var f=t;t.addListener(n,r),s=function(){return f.removeListener(n,r)}}o.add(new Tn(s))},e.prototype._subscribe=function(t){var n=this.sourceObj,r=this.eventName,o=this.options,i=this.selector,a=i?function(){for(var e=[],n=0;n<arguments.length;n++)e[n-0]=arguments[n];var r=s(i).apply(void 0,e);r===Sn?t.error(Sn.e):t.next(r)}:function(e){return t.next(e)};e.setupSubscription(n,r,a,t,o)},e}(qn),$r=Xr.create,Vr=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Yr=function(){function t(t,e,n){void 0===n&&(n=Number.POSITIVE_INFINITY),this.project=t,this.resultSelector=e,this.concurrent=n}return t.prototype.call=function(t,e){return e.subscribe(new Jr(t,this.project,this.resultSelector,this.concurrent))},t}(),Jr=function(t){function e(e,n,r,o){void 0===o&&(o=Number.POSITIVE_INFINITY),t.call(this,e),this.project=n,this.resultSelector=r,this.concurrent=o,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}return Vr(e,t),e.prototype._next=function(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this.active++,this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){this.add(C(this,t,e,n))},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete()},e.prototype.notifyNext=function(t,e,n,r,o){this.resultSelector?this._notifyResultSelector(t,e,n,r):this.destination.next(e)},e.prototype._notifyResultSelector=function(t,e,n,r){var o;try{o=this.resultSelector(t,e,n,r)}catch(t){return void this.destination.error(t)}this.destination.next(o)},e.prototype.notifyComplete=function(t){var e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(Ar),Kr=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Gr=function(t){function e(){t.call(this)}return Kr(e,t),e.create=function(){return new e},e.prototype._subscribe=function(t){l()},e}(qn),Zr=Gr.create,Qr=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},to=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 eo(t,this.nextOrObserver,this.error,this.complete))},t}(),eo=function(t){function e(e,n,r,o){t.call(this,e);var i=new Nn(n,r,o);i.syncErrorThrowable=!0,this.add(i),this.safeSubscriber=i}return Qr(e,t),e.prototype._next=function(t){var e=this.safeSubscriber;e.next(t),e.syncErrorThrown?this.destination.error(e.syncErrorValue):this.destination.next(t)},e.prototype._error=function(t){var e=this.safeSubscriber;e.error(t),e.syncErrorThrown?this.destination.error(e.syncErrorValue):this.destination.error(t)},e.prototype._complete=function(){var t=this.safeSubscriber;t.complete(),t.syncErrorThrown?this.destination.error(t.syncErrorValue):this.destination.complete()},e}(Nn),no=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},ro=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new oo(t,this.predicate,this.thisArg))},t}(),oo=function(t){function e(e,n,r){t.call(this,e),this.predicate=n,this.thisArg=r,this.count=0}return no(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}(Nn),io=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},so=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new ao(t,this.project,this.thisArg))},t}(),ao=function(t){function e(e,n,r){t.call(this,e),this.project=n,this.count=0,this.thisArg=r||this}return io(e,t),e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(Nn),uo=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},co=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new lo(t))},t}(),lo=function(t){function e(e){t.call(this,e),this.hasPrev=!1}return uo(e,t),e.prototype._next=function(t){this.hasPrev?this.destination.next([this.prev,t]):this.hasPrev=!0,this.prev=t},e}(Nn),fo=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},ho=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){return e.subscribe(new po(t,this.notifier,e))},t}(),po=function(t){function e(e,n,r){t.call(this,e),this.notifier=n,this.source=r,this.sourceIsBeingSubscribedTo=!0}return fo(e,t),e.prototype.notifyNext=function(t,e,n,r,o){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)},e.prototype.notifyComplete=function(e){if(!1===this.sourceIsBeingSubscribedTo)return t.prototype.complete.call(this)},e.prototype.complete=function(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries||this.subscribeToRetries(),!this.retriesSubscription||this.retriesSubscription.closed)return t.prototype.complete.call(this);this._unsubscribeAndRecycle(),this.notifications.next()}},e.prototype._unsubscribe=function(){var t=this,e=t.notifications,n=t.retriesSubscription;e&&(e.unsubscribe(),this.notifications=null),n&&(n.unsubscribe(),this.retriesSubscription=null),this.retries=null},e.prototype._unsubscribeAndRecycle=function(){var e=this,n=e.notifications,r=e.retries,o=e.retriesSubscription;return this.notifications=null,this.retries=null,this.retriesSubscription=null,t.prototype._unsubscribeAndRecycle.call(this),this.notifications=n,this.retries=r,this.retriesSubscription=o,this},e.prototype.subscribeToRetries=function(){this.notifications=new fr;var e=s(this.notifier)(this.notifications);if(e===Sn)return t.prototype.complete.call(this);this.retries=e,this.retriesSubscription=C(this,e)},e}(Ar),yo=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},bo=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){var n=new vo(t),r=e.subscribe(n);return r.add(C(n,this.notifier)),r},t}(),vo=function(t){function e(){t.apply(this,arguments),this.hasValue=!1}return yo(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}(Ar),mo=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},go=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var n=this.connectable;n._refCount++;var r=new wo(t,n),o=e.subscribe(r);return r.closed||(r.connection=n.connect()),o},t}(),wo=function(t){function e(e,n){t.call(this,e),this.connectable=n}return mo(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(!t)return void(this.connection=null);this.connectable=null;var e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);var n=this.connection,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()},e}(Nn),_o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},xo=function(t){function e(e,n){t.call(this),this.source=e,this.subjectFactory=n,this._refCount=0,this._isComplete=!1}return _o(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 Tn,t.add(this.source.subscribe(new jo(this.getSubject(),this))),t.closed?(this._connection=null,t=Tn.EMPTY):this._connection=t),t},e.prototype.refCount=function(){return Y()(this)},e}(qn),Oo=xo.prototype,So={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:Oo._subscribe},_isComplete:{value:Oo._isComplete,writable:!0},getSubject:{value:Oo.getSubject},connect:{value:Oo.connect},refCount:{value:Oo.refCount}},jo=function(t){function e(e,n){t.call(this,e),this.connectable=n}return _o(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}(lr),Eo=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}(),ko=Tr.of,To=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Po=function(t){function e(e,n){t.call(this),this.promise=e,this.scheduler=n}return To(e,t),e.create=function(t,n){return new e(t,n)},e.prototype._subscribe=function(t){var e=this,n=this.promise,r=this.scheduler;if(null==r)this._isScalar?t.closed||(t.next(this.value),t.complete()):n.then(function(n){e.value=n,e._isScalar=!0,t.closed||(t.next(n),t.complete())},function(e){t.closed||t.error(e)}).then(null,function(t){_n.a.setTimeout(function(){throw t})});else if(this._isScalar){if(!t.closed)return r.schedule(Z,0,{value:this.value,subscriber:t})}else n.then(function(n){e.value=n,e._isScalar=!0,t.closed||t.add(r.schedule(Z,0,{value:n,subscriber:t}))},function(e){t.closed||t.add(r.schedule(Q,0,{err:e,subscriber:t}))}).then(null,function(t){_n.a.setTimeout(function(){throw t})})},e}(qn),Ao=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Co=function(t){function e(e,n){if(t.call(this),this.scheduler=n,null==e)throw new Error("iterator cannot be null.");this.iterator=tt(e)}return Ao(e,t),e.create=function(t,n){return new e(t,n)},e.dispatch=function(t){var e=t.index,n=t.hasError,r=t.iterator,o=t.subscriber;if(n)return void o.error(t.error);var i=r.next();return i.done?void o.complete():(o.next(i.value),t.index=e+1,o.closed?void("function"==typeof r.return&&r.return()):void this.schedule(t))},e.prototype._subscribe=function(t){var n=this,r=n.iterator,o=n.scheduler;if(o)return o.schedule(e.dispatch,0,{index:0,iterator:r,subscriber:t});for(;;){var i=r.next();if(i.done){t.complete();break}if(t.next(i.value),t.closed){"function"==typeof r.return&&r.return();break}}},e}(qn),Mo=function(){function t(t,e,n){void 0===e&&(e=0),void 0===n&&(n=t.length),this.str=t,this.idx=e,this.len=n}return t.prototype[Mr]=function(){return this},t.prototype.next=function(){return this.idx<this.len?{done:!1,value:this.str.charAt(this.idx++)}:{done:!0,value:void 0}},t}(),Ro=function(){function t(t,e,n){void 0===e&&(e=0),void 0===n&&(n=et(t)),this.arr=t,this.idx=e,this.len=n}return t.prototype[Mr]=function(){return this},t.prototype.next=function(){return this.idx<this.len?{done:!1,value:this.arr[this.idx++]}:{done:!0,value:void 0}},t}(),No=Math.pow(2,53)-1,Lo=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Io=function(t){function e(e,n){t.call(this),this.arrayLike=e,this.scheduler=n,n||1!==e.length||(this._isScalar=!0,this.value=e[0])}return Lo(e,t),e.create=function(t,n){var r=t.length;return 0===r?new Er:1===r?new Sr(t[0],n):new e(t,n)},e.dispatch=function(t){var e=t.arrayLike,n=t.index,r=t.length,o=t.subscriber;if(!o.closed){if(n>=r)return void o.complete();o.next(e[n]),t.index=n+1,this.schedule(t)}},e.prototype._subscribe=function(t){var n=this,r=n.arrayLike,o=n.scheduler,i=r.length;if(o)return o.schedule(e.dispatch,0,{arrayLike:r,index:0,length:i,subscriber:t});for(var s=0;s<i&&!t.closed;s++)t.next(r[s]);t.complete()},e}(qn),qo=function(){function t(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}return t.prototype.observe=function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}},t.prototype.do=function(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}},t.prototype.accept=function(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)},t.prototype.toObservable=function(){switch(this.kind){case"N":return qn.of(this.value);case"E":return qn.throw(this.error);case"C":return qn.empty()}throw new Error("unexpected notification kind value")},t.createNext=function(e){return void 0!==e?new t("N",e):t.undefinedValueNotification},t.createError=function(e){return new t("E",void 0,e)},t.createComplete=function(){return t.completeNotification},t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}(),Do=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Fo=function(){function t(t,e){void 0===e&&(e=0),this.scheduler=t,this.delay=e}return t.prototype.call=function(t,e){return e.subscribe(new Uo(t,this.scheduler,this.delay))},t}(),Uo=function(t){function e(e,n,r){void 0===r&&(r=0),t.call(this,e),this.scheduler=n,this.delay=r}return Do(e,t),e.dispatch=function(t){var e=t.notification,n=t.destination;e.observe(n),this.unsubscribe()},e.prototype.scheduleMessage=function(t){this.add(this.scheduler.schedule(e.dispatch,this.delay,new Ho(t,this.destination)))},e.prototype._next=function(t){this.scheduleMessage(qo.createNext(t))},e.prototype._error=function(t){this.scheduleMessage(qo.createError(t))},e.prototype._complete=function(){this.scheduleMessage(qo.createComplete())},e}(Nn),Ho=function(){function t(t,e){this.notification=t,this.destination=e}return t}(),zo="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},Bo=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Wo=function(t){function e(e,n){t.call(this,null),this.ish=e,this.scheduler=n}return Bo(e,t),e.create=function(t,n){if(null!=t){if("function"==typeof t[In])return t instanceof qn&&!n?t:new e(t,n);if(xn(t))return new Tr(t,n);if(A(t))return new Po(t,n);if("function"==typeof t[Mr]||"string"==typeof t)return new Co(t,n);if(Cr(t))return new Io(t,n)}throw new TypeError((null!==t&&(void 0===t?"undefined":zo(t))||t)+" is not observable")},e.prototype._subscribe=function(t){var e=this.ish,n=this.scheduler;return null==n?e[In]().subscribe(t):e[In]().subscribe(new Uo(t,n,0))},e}(qn),Xo=Wo.create,$o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Vo=function(){function t(t,e){this.project=t,this.resultSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new Yo(t,this.project,this.resultSelector))},t}(),Yo=function(t){function e(e,n,r){t.call(this,e),this.project=n,this.resultSelector=r,this.index=0}return $o(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=C(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.resultSelector?this._tryNotifyNext(t,e,n,r):this.destination.next(e)},e.prototype._tryNotifyNext=function(t,e,n,r){var o;try{o=this.resultSelector(t,e,n,r)}catch(t){return void this.destination.error(t)}this.destination.next(o)},e}(Ar),Jo=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Ko=function(t){function e(){var e=t.call(this,"argument out of range");this.name=e.name="ArgumentOutOfRangeError",this.stack=e.stack,this.message=e.message}return Jo(e,t),e}(Error),Go=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Zo=function(){function t(t){if(this.total=t,this.total<0)throw new Ko}return t.prototype.call=function(t,e){return e.subscribe(new Qo(t,this.total))},t}(),Qo=function(t){function e(e,n){t.call(this,e),this.total=n,this.count=0}return Go(e,t),e.prototype._next=function(t){var e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))},e}(Nn),ti=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},ei=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){return e.subscribe(new ni(t,this.notifier))},t}(),ni=function(t){function e(e,n){t.call(this,e),this.notifier=n,this.add(C(this,n))}return ti(e,t),e.prototype.notifyNext=function(t,e,n,r,o){this.complete()},e.prototype.notifyComplete=function(){},e}(Ar),ri=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},oi=function(t){function e(e,n){t.call(this)}return ri(e,t),e.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},e}(Tn),ii=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},si=function(t){function e(e,n){t.call(this,e,n),this.scheduler=e,this.work=n,this.pending=!1}return ii(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t,this.pending=!0;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,e)),this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this},e.prototype.requestAsyncId=function(t,e,n){return void 0===n&&(n=0),_n.a.setInterval(t.flush.bind(t,this),n)},e.prototype.recycleAsyncId=function(t,e,n){return void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending?e:_n.a.clearInterval(e)&&void 0||void 0},e.prototype.execute=function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var n=!1,r=void 0;try{this.work(t)}catch(t){n=!0,r=!!t&&t||new Error(t)}if(n)return this.unsubscribe(),r},e.prototype._unsubscribe=function(){var t=this.id,e=this.scheduler,n=e.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null},e}(oi),ai=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}(),ui=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},ci=function(t){function e(){t.apply(this,arguments),this.actions=[],this.active=!1,this.scheduled=void 0}return ui(e,t),e.prototype.flush=function(t){var e=this.actions;if(this.active)return void e.push(t);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}(ai),li=new ci(si),fi=function(){function t(t,e){this.value=t,this.timestamp=e}return t}(),hi=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},pi=function(){function t(t,e){this.observables=t,this.project=e}return t.prototype.call=function(t,e){return e.subscribe(new di(t,this.observables,this.project))},t}(),di=function(t){function e(e,n,r){t.call(this,e),this.observables=n,this.project=r,this.toRespond=[];var o=n.length;this.values=new Array(o);for(var i=0;i<o;i++)this.toRespond.push(i);for(var i=0;i<o;i++){var s=n[i];this.add(C(this,s,s,i))}}return hi(e,t),e.prototype.notifyNext=function(t,e,n,r,o){this.values[n]=e;var i=this.toRespond;if(i.length>0){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}(Ar),yi=function(){function t(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}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),bi=function(t){return function(e){return t.pipe(at(function(t){return t?e:Zr()}))}},vi=function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return function(e){return 0===n.length?e.pipe(ft(t),B(function(t){return yi(t,2)[1]}),W(function(t){return yi(t,1)[0]})):e.pipe(ft.apply(void 0,[t].concat(n)),B(function(t){return dt(t).slice(1).every(function(t){return t})}),W(function(t){return yi(t,1)[0]}))}},mi=function(){function t(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}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),gi=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),wi=Math.min.bind(Math),_i=Math.max.bind(Math),xi=function(t){return function(t){function e(){return yt(this,e),bt(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return vt(e,t),gi(e,[{key:"calcIsInRange",value:function(t,e){switch(this.align){case"left":return t>this.range[0]&&(e||t<this.range[1]);case"right":return t<window.innerWidth-this.range[0]&&(e||t>window.innerWidth-this.range[1]);default:throw Error()}}},{key:"calcIsSwipe",value:function(t){var e=mi(t,3),n=e[0].clientX,r=e[1].clientX,o=e[2];return n!==r||o>0&&o<this.drawerWidth}},{key:"calcWillOpen",value:function(t){var e=mi(t,4),n=e[2],r=e[3];switch(this.align){case"left":return r>.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=t-e,o=n+r;return _i(0,wi(this.drawerWidth,o));case"right":var i=t-e,s=n+i;return wi(0,_i(-this.drawerWidth,s));default:throw Error()}}},{key:"calcMovableDrawerWidth",value:function(){return-parseFloat(getComputedStyle(this.contentEl)[this.align])}}]),e}(t)},Oi=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),Si=function(t){return function(t){function e(){return mt(this,e),gt(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return wt(e,t),Oi(e,[{key:"histId",value:function(){return this.el.id||this.constructor.componentName}},{key:"prepareInteraction",value:function(){this.contentEl.style.willChange="transform",this.scrimEl.style.willChange="opacity",this.contentEl.classList.remove("hy-drawer-opened"),this.fireEvent("prepare")}},{key:"cleanupInteraction",value:function(t){this.scrimEl.style.willChange="",this.contentEl.style.willChange="",t?(this.scrimEl.style.pointerEvents="all",this.contentEl.classList.add("hy-drawer-opened")):(this.scrimEl.style.pointerEvents="",this.contentEl.classList.remove("hy-drawer-opened")),this.fireEvent("transitioned",{detail:t})}},{key:"updateDOM",value:function(t){this.translateX=t;var e="left"===this.align?1:-1,n=this.opacity=t/this.drawerWidth*e;this.contentEl.style.transform="translateX("+t+"px)",this.scrimEl.style.opacity=this.opacity,this.fireEvent("move",{detail:{translateX:t,opacity:n}})}}]),e}(t)},ji=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Ei=function(){function t(t){this.value=t}return t.prototype.call=function(t,e){return e.subscribe(new ki(t,this.value))},t}(),ki=function(t){function e(e,n){t.call(this,e),this.value=n}return ji(e,t),e.prototype._next=function(t){this.destination.next(this.value)},e}(Nn),Ti=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Pi=function(){function t(t){this.predicate=t}return t.prototype.call=function(t,e){return e.subscribe(new Ai(t,this.predicate))},t}(),Ai=function(t){function e(e,n){t.call(this,e),this.predicate=n,this.skipping=!0,this.index=0}return Ti(e,t),e.prototype._next=function(t){var e=this.destination;this.skipping&&this.tryCallPredicate(t),this.skipping||e.next(t)},e.prototype.tryCallPredicate=function(t){try{var e=this.predicate(t,this.index++);this.skipping=Boolean(e)}catch(t){this.destination.error(t)}},e}(Nn),Ci=function(){function t(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}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),Mi=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),Ri=Math.abs.bind(Math),Ni=function(t){return function(t){function e(){return Ot(this,e),St(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return jt(e,t),Mi(e,[{key:"getStartObservable",value:function(){return M(this.subjects.adapt,this.subjects.mouseEvents).pipe(at(function(t){var e=Ci(t,2),n=e[0],r=e[1],o=$r(n,"touchstart",{passive:!0}).pipe(B(function(t){return 1===t.touches.length}),W(function(t){return t.touches[0]}));return r?H(o,$r(n,"mousedown").pipe(z(function(t){return Object.assign(t,{event:t})}))):o}))}},{key:"getMoveObservable",value:function(t,e){return M(this.subjects.adapt,this.subjects.mouseEvents,this.subjects.preventDefault).pipe(at(function(n){var r=Ci(n,3),o=r[0],i=r[1],s=r[2],a={passive:!s},u=$r(o,"touchmove",a).pipe(W(function(t){return Object.assign(t.touches[0],{event:t})}));return i?H(u,$r(o,"mousemove",{passive:!s}).pipe(bi(H(t.pipe(_t(!0)),e.pipe(_t(!1)))),W(function(t){return Object.assign(t,{event:t})}))):u}))}},{key:"getEndObservable",value:function(){return M(this.subjects.adapt,this.subjects.mouseEvents).pipe(at(function(t){var e=Ci(t,2),n=e[0],r=e[1],o=$r(n,"touchend",{passive:!0}).pipe(B(function(t){return 0===t.touches.length}),W(function(t){return t.changedTouches[0]}));return r?H(o,$r(n,"mouseup",{passive:!0})):o}))}},{key:"getIsSlidingObservable",value:function(t,e){var n=this;return this.threshold?t.pipe(ft(e),xt(function(t){var e=Ci(t,2),r=e[0],o=r.clientX,i=r.clientY,s=e[1],a=s.clientX,u=s.clientY;return Ri(u-i)<n.threshold&&Ri(a-o)<n.threshold}),W(function(t){var e=Ci(t,2),n=e[0],r=n.clientX,o=n.clientY,i=e[1],s=i.clientX,a=i.clientY;return Ri(s-r)>=Ri(a-o)})):t.pipe(ft(e),W(function(t){var e=Ci(t,2),r=e[0],o=r.clientX,i=r.clientY,s=r.event,a=e[1],u=a.clientX,c=a.clientY,l=Ri(u-o)>=Ri(c-i);return n.preventDefault&&l&&s.preventDefault(),l}))}}]),e}(t)},Li=function(){function t(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}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),Ii=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),qi=function(t){return function(t){function e(){return Et(this,e),kt(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return Tt(e,t),Ii(e,[{key:"setupObservables",value:function(){var t=this;$r(window,"resize",{passive:!0}).pipe(ct(this.subjects.disconnect),G(),st({})).pipe(ct(this.subjects.disconnect)).subscribe(function(){t.opened&&t.contentEl.classList.remove("hy-drawer-opened"),t.drawerWidth=t.calcMovableDrawerWidth(),t.opened&&t.contentEl.classList.add("hy-drawer-opened")});var e=this.subjects.persistent.pipe(ct(this.subjects.disconnect),W(function(t){return!t}),G()),n={},r=this.getStartObservable().pipe(ct(this.subjects.disconnect),vi(e),G()),o=zr(function(){return n.translateX$.pipe(W(function(e){return"left"===t.align?e>0:e<t.drawerWidth}))}),i=r.pipe(ft(o),W(function(e){var n=Li(e,2),r=n[0].clientX,o=n[1];return t.calcIsInRange(r,o)}),z(function(e){e&&(t.mouseEvents&&t.contentEl.classList.add("hy-drawer-grabbing"),t.prepareInteraction())}),G()),s=this.getEndObservable().pipe(ct(this.subjects.disconnect),vi(e,i),G()),a=this.getMoveObservable(r,s).pipe(ct(this.subjects.disconnect),vi(e,i),G()),u=this.getIsSlidingObservable(a,r).pipe(ut(1),st(void 0),$(function(){return s}),z(function(e){e&&t.fireEvent("slidestart",{detail:t.opened})}));n.translateX$=zr(function(){return H(a.pipe(vi(u),z(function(e){var n=e.event;t.preventDefault&&n.preventDefault()}),ft(r,n.startTranslateX$),W(function(e){var n=Li(e,3),r=n[0].clientX,o=n[1].clientX,i=n[2];return t.calcTranslateX(r,o,i)})),n.tween$,M(t.subjects.opened,t.subjects.align).pipe(z(function(e){var n=Li(e,1),r=n[0];return t.cleanupInteraction(r)}),W(function(e){var n=Li(e,2),r=n[0],o=n[1];return r?t.drawerWidth*("left"===o?1:-1):0})))}).pipe(ct(this.subjects.disconnect),G()),n.startTranslateX$=n.translateX$.pipe(V(r));var c=n.translateX$.pipe(lt(),X(),B(function(t){var e=Li(t,2),n=e[0].timestamp;return e[1].timestamp-n>0}),W(function(t){var e=Li(t,2),n=e[0],r=n.value,o=n.timestamp,i=e[1];return(i.value-r)/(i.timestamp-o)}),st(0)),l=s.pipe(z(function(){t.contentEl.classList.remove("hy-drawer-grabbing")}),ft(r,n.translateX$,c),B(this.calcIsSwipe.bind(this)),W(this.calcWillOpen.bind(this)),z(function(e){return t.fireEvent("slideend",{detail:e})})),f=H(l,this.animateTo$.pipe(z(this.prepareInteraction.bind(this))));n.tween$=f.pipe(z(function(e){t.setInternalState("opened",e)}),ft(n.translateX$),at(function(e){var n=Li(e,2),o=n[0],i=n[1],s="left"===t.align?1:-1;return ht(pt,i,(o?t.drawerWidth*s:0)-i,200+.15*t.drawerWidth).pipe(z({complete:function(){return t.subjects.opened.next(o)}}),ct(r),ct(t.subjects.align))})),n.translateX$.subscribe(this.updateDOM.bind(this)),$r(this.scrimEl,"click").pipe(ct(this.subjects.disconnect)).subscribe(function(){return t.close()}),e.pipe(ct(this.subjects.disconnect)).subscribe(function(e){t.scrimEl.style.display=e?"block":"none"}),this.subjects.align.pipe(ct(this.subjects.disconnect)).subscribe(function(e){var n="left"===e?"right":"left";t.contentEl.classList.remove("hy-drawer-"+n),t.contentEl.classList.add("hy-drawer-"+e)}),this.subjects.mouseEvents.pipe(ct(this.subjects.disconnect),at(function(e){return e?t.contentEl.classList.add("hy-drawer-grab"):t.contentEl.classList.remove("hy-drawer-grab"),e?r.pipe(ft(i)):Zr()})).subscribe(function(t){var e=Li(t,2),n=e[0].event;e[1]&&n&&n.preventDefault()})}}]),e}(Ni(Si(xi(t))))},Di=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),Fi=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var s=o.get;if(void 0!==s)return s.call(r)},Ui=new Yn([].concat(function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}(Qn),["eventlistener","queryselector","requestanimationframe","classlist","opacity","csstransforms","csspointerevents"]));window.process=window.process||{},window.process.env=window.process.env||{};var Hi=function(t){return function(t){function e(){return Pt(this,e),At(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return Ct(e,t),Di(e,[{key:"setupComponent",value:function(t,n){Fi(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"setupComponent",this).call(this,t,n),this.animateTo$=new fr,this.scrimEl=this.sroot.querySelector(".hy-drawer-scrim"),this.contentEl=this.sroot.querySelector(".hy-drawer-content"),this.contentEl.classList.add("hy-drawer-"+this.align)}},{key:"connectComponent",value:function(){this.setupObservables(),Fi(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"connectComponent",this).call(this),this.fireEvent("init",{detail:this.opened})}},{key:"open",value:function(){arguments.length>0&&void 0!==arguments[0]&&!arguments[0]?this.opened=!0:this.animateTo$.next(!0)}},{key:"close",value:function(){arguments.length>0&&void 0!==arguments[0]&&!arguments[0]?this.opened=!1:this.animateTo$.next(!1)}},{key:"toggle",value:function(){arguments.length>0&&void 0!==arguments[0]&&!arguments[0]?this.opened=!this.opened:this.animateTo$.next(!this.opened)}}],[{key:"componentName",get:function(){return"hy-drawer"}},{key:"types",get:function(){return{opened:mr,align:wr(["left","right"]),persistent:mr,range:vr(gr),threshold:gr,preventDefault:mr,mouseEvents:mr}}},{key:"defaults",get:function(){return{opened:!1,align:"left",persistent:!1,range:[0,100],threshold:10,preventDefault:!1,mouseEvents:!1}}}]),e}(qi(yr(or(t))))},zi=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),Bi=Ui,Wi=function(t){function e(){return Mt(this,e),Rt(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return Nt(e,t),zi(e,[{key:"setupShadowDOM",value:function(t){if(!t)throw Error("No element provided");var e=new DocumentFragment;return e.appendChild(Gn("div",{class:"hy-drawer-scrim"})),e.appendChild(Gn("div",{class:"hy-drawer-content"},t.children)),t.appendChild(e),t}}]),e}(Hi(Jn)),Xi=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var s=o.get;if(void 0!==s)return s.call(r)},$i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),Vi=new Yn([].concat(function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}(Qn),["template","customelements"])),Yi=null,Ji=function(t){return function(t){function e(){var t;Ft(this,e);for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];var i=Ut(this,(t=e.__proto__||Object.getPrototypeOf(e)).call.apply(t,[this].concat(r)));return i.setupComponent(i,i.getStateFromAttributes()),i}return Ht(e,t),$i(e,null,[{key:"getObservedAttributes",value:function(){var t=this.types;return Object.keys(t).map(function(t){return It(t)})}}]),$i(e,[{key:"reflectAttribute",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=It(t);n&&(Yi=r);var o=this.constructor.types,i=o[t],s=i.stringify(e);null==s?this.removeAttribute(r):this.setAttribute(r,s)}},{key:"getStateFromAttributes",value:function(){var t=this,e=this.constructor.types,n={};return Object.keys(e).forEach(function(r){var o=It(r),i=t.hasAttribute(o)?t.getAttribute(o):null,s=Lt(e[r],i);null!=s&&(n[r]=s)}),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(Yi===t)Yi=null;else if(e!==n){var r=this.constructor.types,o=Dt(t),i=Lt(r[o],n);this[o]=null!=i?i:this.constructor.defaults[o]}}},{key:"setInternalState",value:function(t,n){Xi(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"setInternalState",this).call(this,t,n),this.reflectAttribute(t,n,!0)}},{key:"setupShadowDOM",value:function(t){var e=this.getTemplate();if(e){if("attachShadow"in Element.prototype)return t.attachShadow({mode:"open"}),t.shadowRoot.appendChild(e),t.shadowRoot;throw Error("ShadowDOM API not supported")}return t}},{key:"getEl",value:function(){return this}},{key:"getTemplate",value:function(){var t=this.constructor.componentName;return document.querySelector('link[href*="'+t+'"]').import.querySelector("#"+t+"-template").content.cloneNode(!0)}},{key:"template",get:function(){return this.getTemplate()}}]),e}(t)};Object.setPrototypeOf&&(Object.setPrototypeOf(zt.prototype,HTMLElement.prototype),Object.setPrototypeOf(zt,HTMLElement));var Ki=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),Gi=(new Yn([].concat(Vt(Vi),Vt(Ui))),function(t){function e(){return Wt(this,e),Xt(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return $t(e,t),Ki(e,[{key:"getTemplate",value:function(){return Bt('<div class="hy-drawer-scrim"></div> <div class="hy-drawer-content"> <slot></slot> </div> <style> @media screen { .hy-drawer-scrim { position: fixed; top: 0; left: 0; height: 100vh; width: 100vw; z-index: 20; opacity: 0; pointer-events: none; background: rgba(0, 0, 0, 0.5); transform: translateX(0); -webkit-tap-highlight-color: transparent; } .hy-drawer-content { position: fixed; top: 0; height: 100vh; z-index: 30; overflow-x: hidden; overflow-y: auto; transform: translateX(0); width: 300px; background: #e8e8e8; box-shadow: 0 0 15px rgba(0, 0, 0, 0.25); contain: strict; -webkit-overflow-scrolling: touch; } .hy-drawer-content.hy-drawer-left { left: -300px; } .hy-drawer-content.hy-drawer-right { right: -300px; } .hy-drawer-content.hy-drawer-left.hy-drawer-opened { left: 0 !important; transform: translateX(0) !important; } .hy-drawer-content.hy-drawer-right.hy-drawer-opened { right: 0 !important; transform: translateX(0) !important; } .hy-drawer-grab { cursor: move; cursor: -webkit-grab; cursor: -moz-grab; cursor: grab; } .hy-drawer-grabbing { cursor: -webkit-grabbing; cursor: -moz-grabbing; cursor: grabbing; } } @media print { .hy-drawer-scrim { display: none !important; } .hy-drawer-content { transform: none !important; } } @media screen { .hy-drawer-content { @apply --hy-drawer-content-container; width: var(--hy-drawer-width, 300px); background: var(--hy-drawer-background, #e8e8e8); box-shadow: var(--hy-drawer-box-shadow, 0 0 15px rgba(0, 0, 0, 0.25)); z-index: var(--hy-drawer-z-index, 30); } .hy-drawer-content.hy-drawer-left { left: calc( -1 * var(--hy-drawer-slide-width, var(--hy-drawer-width, 300px)) ); } .hy-drawer-content.hy-drawer-right { right: calc( -1 * var(--hy-drawer-slide-width, var(--hy-drawer-width, 300px)) ); } .hy-drawer-scrim { @apply --hy-drawer-scrim-container; background: var(--hy-drawer-scrim-background, rgba(0, 0, 0, 0.5)); z-index: var(--hy-drawer-scrim-z-index, 20); } } </style>')}}],[{key:"observedAttributes",get:function(){return this.getObservedAttributes()}}]),e}(Ji(Hi(zt)))),Zi=(n(50),new Yn([].concat(function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}(Bi),["cssremunit","classlist","eventlistener","matchmedia"]))),Qi="(min-width: 64em)";if(!window._noDrawer&&h(Zi)&&!Hn){var ts=document.getElementsByTagName("hy-drawer")[0],es=document.getElementById("_menu");window._isDesktop=window.matchMedia(Qi).matches,window._drawer="customElements"in window&&"attachShadow"in Element.prototype?function(t){return window._isDesktop&&t.setAttribute("opened",""),window._isDesktop&&t.setAttribute("persistent",""),t.setAttribute("align","left"),t.setAttribute("range",Kt().join(",")),t.setAttribute("threshold",Fn?0:10),t.setAttribute("prevent-default",""),customElements.define("hy-drawer",Gi),t}(ts):function(t){return new Wi(t,{opened:window._isDesktop,persistent:window._isDesktop,align:"left",range:Kt(),threshold:Fn?0:10,preventDefault:!0})}(ts),ts.classList.add("loaded"),es.addEventListener("click",Jt),$r(window,"resize",{passive:!0}).subscribe(Yt)}var ns=(n(55),n(65),window.URL);if(!(ns&&ns.prototype&&"href"in ns.prototype)){ns=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})},ns.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 rs=window.URL||window.webkitURL||window.mozURL;ns.createObjectURL=function(t){return rs.createObjectURL.apply(rs,arguments)},ns.revokeObjectURL=function(t){return rs.revokeObjectURL.apply(rs,arguments)},Object.defineProperty(ns.prototype,"toString",{enumerable:!1})}var os=Element.prototype.matches||Element.prototype.matchesSelector||Element.prototype.msMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.webkitMatchesSelector||Element.prototype.oMatchesSelector,is="push",ss=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},as=W(function(t,e){return t.response}),us=function(t){function e(e){t.call(this);var n={async:!0,createXHR:function(){return this.crossDomain?re.call(this):oe()},crossDomain:!1,withCredentials:!1,headers:{},method:"GET",responseType:"json",timeout:0};if("string"==typeof e)n.url=e;else for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);this.request=n}return ss(e,t),e.prototype._subscribe=function(t){return new cs(t,this.request)},e.create=function(){var t=function(t){return new e(t)};return t.get=ie,t.post=se,t.delete=ae,t.put=ue,t.patch=ce,t.getJSON=le,t}(),e}(qn),cs=function(t){function e(e,n){t.call(this,e),this.request=n,this.done=!1;var r=n.headers=n.headers||{};n.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest"),"Content-Type"in r||_n.a.FormData&&n.body instanceof _n.a.FormData||void 0===n.body||(r["Content-Type"]="application/x-www-form-urlencoded; charset=UTF-8"),n.body=this.serializeBody(n.body,n.headers["Content-Type"]),this.send()}return ss(e,t),e.prototype.next=function(t){this.done=!0;var e=this,n=e.xhr,r=e.request,o=e.destination,i=new ls(t,n,r);o.next(i)},e.prototype.send=function(){var t=this,e=t.request,n=t.request,r=n.user,o=n.method,i=n.url,a=n.async,u=n.password,c=n.headers,l=n.body,f=e.createXHR,h=s(f).call(e);if(h===Sn)this.error(Sn.e);else{this.xhr=h,this.setupEvents(h,e);if((r?s(h.open).call(h,o,i,a,r,u):s(h.open).call(h,o,i,a))===Sn)return this.error(Sn.e),null;if(a&&(h.timeout=e.timeout,h.responseType=e.responseType),"withCredentials"in h&&(h.withCredentials=!!e.withCredentials),this.setHeaders(h,c),(l?s(h.send).call(h,l):s(h.send).call(h))===Sn)return this.error(Sn.e),null}return h},e.prototype.serializeBody=function(t,e){if(!t||"string"==typeof t)return t;if(_n.a.FormData&&t instanceof _n.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 encodeURI(e)+"="+encodeURI(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){function n(t){var e=n,r=e.subscriber,o=e.progressSubscriber,i=e.request;o&&o.error(t),r.error(new hs(this,i))}function r(t){var e=r,n=e.subscriber,o=e.progressSubscriber,i=e.request;if(4===this.readyState){var s=1223===this.status?204:this.status,a="text"===this.responseType?this.response||this.responseText:this.response;0===s&&(s=a?200:0),200<=s&&s<300?(o&&o.complete(),n.next(t),n.complete()):(o&&o.error(t),n.error(new fs("ajax error "+s,this,i)))}}var o=e.progressSubscriber;if(t.ontimeout=n,n.request=e,n.subscriber=this,n.progressSubscriber=o,t.upload&&"withCredentials"in t){if(o){var i;i=function(t){i.progressSubscriber.next(t)},_n.a.XDomainRequest?t.onprogress=i:t.upload.onprogress=i,i.progressSubscriber=o}var s;s=function(t){var e=s,n=e.progressSubscriber,r=e.subscriber,o=e.request;n&&n.error(t),r.error(new fs("ajax error",this,o))},t.onerror=s,s.request=e,s.subscriber=this,s.progressSubscriber=o}t.onreadystatechange=r,r.subscriber=this,r.progressSubscriber=o,r.request=e},e.prototype.unsubscribe=function(){var e=this,n=e.done,r=e.xhr;!n&&r&&4!==r.readyState&&"function"==typeof r.abort&&r.abort(),t.prototype.unsubscribe.call(this)},e}(Nn),ls=function(){function t(t,e,n){this.originalEvent=t,this.xhr=e,this.request=n,this.status=e.status,this.responseType=e.responseType||n.responseType,this.response=fe(this.responseType,e)}return t}(),fs=function(t){function e(e,n,r){t.call(this,e),this.message=e,this.xhr=n,this.request=r,this.status=n.status,this.responseType=n.responseType||r.responseType,this.response=fe(this.responseType,n)}return ss(e,t),e}(Error),hs=function(t){function e(e,n){t.call(this,"ajax timeout",e,n)}return ss(e,t),e}(fs),ps=us.create,ds=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},ys=function(){function t(t){this.selector=t}return t.prototype.call=function(t,e){return e.subscribe(new bs(t,this.selector,this.caught))},t}(),bs=function(t){function e(e,n,r){t.call(this,e),this.selector=n,this.caught=r}return ds(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(C(this,n))}},e}(Ar),vs=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},ms=function(){function t(t,e){this.compare=t,this.keySelector=e}return t.prototype.call=function(t,e){return e.subscribe(new gs(t,this.compare,this.keySelector))},t}(),gs=function(t){function e(e,n,r){t.call(this,e),this.keySelector=r,this.hasKey=!1,"function"==typeof n&&(this.compare=n)}return vs(e,t),e.prototype.compare=function(t,e){return t===e},e.prototype._next=function(t){var e=this.keySelector,n=t;if(e&&(n=s(this.keySelector)(t))===Sn)return this.destination.error(Sn.e);var r=!1;if(this.hasKey){if((r=s(this.compare)(this.key,n))===Sn)return this.destination.error(Sn.e)}else this.hasKey=!0;!1===Boolean(r)&&(this.key=n,this.destination.next(t))},e}(Nn),ws=function(t){return function(e){return t.pipe(at(function(t){return t?Zr():e}))}},_s=function(){function t(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}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),xs=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),Os=function(t){return function(t){function e(){return be(this,e),ve(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return me(e,t),xs(e,[{key:"histId",value:function(){return this.el.id||this.constructor.componentName}},{key:"shouldLoadAnchor",value:function(t,e){return t&&""===t.target&&(!e||-1!==t.href.search(e))}},{key:"isPushEvent",value:function(t){var e=t.url,n=t.anchor,r=t.event,o=r.metaKey,i=r.ctrlKey;return!o&&!i&&this.shouldLoadAnchor(n,this.hrefRegex)&&!Zt(e,this)}},{key:"isHintEvent",value:function(t){var e=t.url,n=t.anchor;return this.shouldLoadAnchor(n,this.hrefRegex)&&!Zt(e,this)&&!Qt(e,this)}},{key:"isHashChange",value:function(t){var e=_s(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===is&&""!==s)}}]),e}(t)},Ss=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),js=function(t){return function(t){function e(){return we(this,e),_e(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return xe(e,t),Ss(e,[{key:"scrollHashIntoView",value:function(t){if(t){var e=document.getElementById(t.substr(1));e&&e.scrollIntoView()}else window.scroll(window.pageXOffset,0)}},{key:"restoreScrollPostion",value:function(){var t=this.histId(),e=window.history.state&&window.history.state[t]||{};null!=e.scrollTop?(document.body.style.minHeight=e.scrollHeight,window.scroll(window.pageXOffset,e.scrollTop)):e.hash&&this.scrollHashIntoView(window.location.hash)}},{key:"manageScrollPostion",value:function(t){var e=t.type,n=t.url.hash;e===is&&this.scrollHashIntoView(n),"pop"===e&&this.scrollRestoration&&this.restoreScrollPostion()}},{key:"saveScrollPosition",value:function(t){var e=this.histId();return Object.assign(t,ge({},e,Object.assign(t[e]||{},{scrollTop:ee(),scrollHeight:te()})))}}]),e}(t)},Es=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),ks=function(t){return function(t){function e(){return Se(this,e),je(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return Ee(e,t),Es(e,[{key:"updateHistoryState",value:function(t){var e=t.type,n=t.replace,r=t.url,o=r.href,i=r.hash;if((e===is||"init"===e)&&!Zt(this)){var s=this.histId(),a=n||o===window.location.href?"replaceState":"pushState",u=Object.assign(window.history.state||{},Oe({},s,{hash:!!i}));window.history[a](u,document.title,o)}}},{key:"updateHistoryStateHash",value:function(t){var e=t.type,n=t.url,r=n.hash,o=n.href;if(e===is&&!Zt(this)){var i=this.histId(),s=Object.assign(window.history.state,Oe({},i,Object.assign(window.history.state[i],{hash:!0}))),a=Oe({},i,{hash:!0});window.history.replaceState(s,document.title,window.location.href),window.history.pushState(a,document.title,o)}this.scrollHashIntoView(r)}},{key:"updateHistoryTitle",value:function(t){var e=t.type,n=t.title;document.title=n,e!==is||Zt(this)||window.history.replaceState(window.history.state,n,window.location)}},{key:"saveScrollHistoryState",value:function(){if(!Zt(this)){var t=this.saveScrollPosition(window.history.state||{});window.history.replaceState(t,document.title,window.location)}}}]),e}(js(t))},Ts=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Ps=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new As(t,this.project))},t}(),As=function(t){function e(e,n,r){void 0===r&&(r=Object.create(null)),t.call(this,e),this.iterators=[],this.active=0,this.project="function"==typeof n?n:null,this.values=r}return Ts(e,t),e.prototype._next=function(t){var e=this.iterators;xn(t)?e.push(new Ms(t)):"function"==typeof t[Mr]?e.push(new Cs(t[Mr]())):e.push(new Rs(this.destination,this,t))},e.prototype._complete=function(){var t=this.iterators,e=t.length;if(0===e)return void this.destination.complete();this.active=e;for(var n=0;n<e;n++){var r=t[n];r.stillUnsubscribed?this.add(r.subscribe(r,n)):this.active--}},e.prototype.notifyInactive=function(){0===--this.active&&this.destination.complete()},e.prototype.checkIterators=function(){for(var t=this.iterators,e=t.length,n=this.destination,r=0;r<e;r++){var o=t[r];if("function"==typeof o.hasValue&&!o.hasValue())return}for(var i=!1,s=[],r=0;r<e;r++){var o=t[r],a=o.next();if(o.hasCompleted()&&(i=!0),a.done)return void n.complete();s.push(a.value)}this.project?this._tryProject(s):n.next(s),i&&n.complete()},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}(Nn),Cs=function(){function t(t){this.iterator=t,this.nextResult=t.next()}return t.prototype.hasValue=function(){return!0},t.prototype.next=function(){var t=this.nextResult;return this.nextResult=this.iterator.next(),t},t.prototype.hasCompleted=function(){var t=this.nextResult;return t&&t.done},t}(),Ms=function(){function t(t){this.array=t,this.index=0,this.length=0,this.length=t.length}return t.prototype[Mr]=function(){return this},t.prototype.next=function(t){var e=this.index++,n=this.array;return e<this.length?{value:n[e],done:!1}:{value:null,done:!0}},t.prototype.hasValue=function(){return this.array.length>this.index},t.prototype.hasCompleted=function(){return this.array.length===this.index},t}(),Rs=function(t){function e(e,n,r){t.call(this,e),this.parent=n,this.observable=r,this.stillUnsubscribed=!0,this.buffer=[],this.isComplete=!1}return Ts(e,t),e.prototype[Mr]=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 C(this,this.observable,this,e)},e}(Ar),Ns=function(){function t(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}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),Ls=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),Is=function(t){return function(t){function e(){return Pe(this,e),Ae(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return Ce(e,t),Ls(e,[{key:"recoverIfResponse",value:function(t,e){var n=e.status,r=e.xhr;return ko(r&&r.response&&n>400?Object.assign(t,{response:r.response}):Object.assign(t,{error:e}))}},{key:"getFetch$",value:function(t,e,n){return t.url.href===e.url.href&&null==e.error?ko(e):n.pipe(ut(1))}},{key:"getResponse",value:function(t,e){var n=Ns(e,2),r=n[0],o=n[1];return this.getFetch$(r,o,t).pipe(W(function(t){return Object.assign(t,r)}),ke(this.animPromise,function(t){return t}))}}]),e}(t)},qs=function(){function t(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}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),Ds=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),Fs=function(t){return function(t){function e(){return Re(this,e),Ne(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return Le(e,t),Ds(e,[{key:"tempRemoveScriptTags",value:function(t){var e=this,n=[];return t.forEach(function(t){return Array.from(t.querySelectorAll(e.scriptSelector)).forEach(function(t){var e=[t,t.previousSibling];t.parentNode.removeChild(t),n.push(e)})}),n}},{key:"insertScript",value:function(t){var e=qs(t,2),n=e[0],r=e[1],o=document.write;return document.write=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];var o=document.createElement("div");o.innerHTML=e.join(),Array.from(o.childNodes).forEach(function(t){r.parentNode.insertBefore(t,r.nextSibling)})},""!==n.src?qn.create(function(t){n.addEventListener("load",function(e){document.write=o,t.complete(e)}),n.addEventListener("error",function(e){document.write=o,t.error(e)}),r.parentNode.insertBefore(n,r.nextSibling)}):ko({}).pipe(z(function(){r.parentNode.insertBefore(n,r.nextSibling),document.write=o}))}},{key:"reinsertScriptTags",value:function(t){if(!this.scriptSelector)return ko(t);var e=t.scripts;return Xo(e).pipe(Me(this.insertScript.bind(this)),he(function(e){throw Object.assign(t,{error:e})})).toPromise().then(function(){return t})}}]),e}(t)},Us=function(){function t(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}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),Hs=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),zs=function(t){return function(t){function e(){return Ie(this,e),qe(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return De(e,t),Hs(e,[{key:"getTitle",value:function(t){return(t.querySelector("title")||{}).textContent}},{key:"getReplaceElements",value:function(t){if(this.replaceIds.length>0)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=t.response,n=ne(e),r=this.getTitle(n),o=this.getReplaceElements(n);if(o.some(function(t){return null==t}))throw Object.assign(t,{replaceElMissing:!0});var i=this.scriptSelector?this.tempRemoveScriptTags(o):[];return Object.assign(t,{title:r,replaceEls:o,scripts:i})}},{key:"replaceContentByIds",value:function(t){this.replaceIds.map(function(t){return document.getElementById(t)}).forEach(function(e,n){e.parentNode.replaceChild(t[n],e)})}},{key:"replaceContentWholesale",value:function(t){var e=Us(t,1),n=e[0];this.el.innerHTML=n.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),Zt(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){}}}},{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){}}}},{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){}}}}]),e}(Fs(t))},Bs=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Ws=function(t){function e(e,n,r){void 0===e&&(e=0),t.call(this),this.period=-1,this.dueTime=0,Fe(n)?this.period=Number(n)<1&&1||Number(n):P(n)&&(r=n),P(r)||(r=li),this.scheduler=r,this.dueTime=Ue(e)?+e-this.scheduler.now():e}return Bs(e,t),e.create=function(t,n,r){return void 0===t&&(t=0),new e(t,n,r)},e.dispatch=function(t){var e=t.index,n=t.period,r=t.subscriber,o=this;if(r.next(e),!r.closed){if(-1===n)return r.complete();t.index=e+1,o.schedule(t,n)}},e.prototype._subscribe=function(t){var n=this,r=n.period,o=n.dueTime;return n.scheduler.schedule(e.dispatch,o,{index:0,period:r,subscriber:t})},e}(qn),Xs=Ws.create,$s=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),Vs=function(t){return function(t){function e(){return He(this,e),ze(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return Be(e,t),$s(e,[{key:"onStart",value:function(t){var e=this;this.animPromise=Xs(this.duration);var n=function(t){e.animPromise=t};this.fireEvent("start",{detail:Object.assign(t,{waitUntil:n})})}},{key:"onDOMError",value:function(t){var e=t.replaceElMissing,n=t.url;if(e){window.history.back(),setTimeout(function(){document.location.href=n},100)}else this.fireEvent("error",{detail:t})}},{key:"onNetworkError",value:function(t){this.fireEvent("networkerror",{detail:t})}},{key:"onError",value:function(t){this.fireEvent("error",{detail:t})}},{key:"onReady",value:function(t){this.fireEvent("ready",{detail:t})}},{key:"onAfter",value:function(t){this.fireEvent("after",{detail:t})}},{key:"onProgress",value:function(t){this.fireEvent("progress",{detail:t})}},{key:"onLoad",value:function(t){this.fireEvent("load",{detail:t})}}]),e}(t)},Ys=function(){function t(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}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),Js=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),Ks=function(t){return function(t){function e(){return We(this,e),Xe(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return $e(e,t),Js(e,[{key:"compareContext",value:function(t,e){return t.url.href===e.url.href&&t.error===e.error&&t.cacheNr===e.cacheNr}},{key:"setupObservables",value:function(){var t=this;this.cacheNr=1;var e=new fr,n=new fr,r=e.pipe(ct(this.subjects.disconnect),W(function(e){return{type:is,url:new ns(e.currentTarget.href,t.href),anchor:e.currentTarget,event:e,cacheNr:t.cacheNr}}),B(this.isPushEvent.bind(this)),z(function(e){e.event.preventDefault(),t.saveScrollHistoryState()})),o=$r(window,"popstate").pipe(ct(this.subjects.disconnect),B(function(){return window.history.state&&window.history.state[t.histId()]}),W(function(e){return{type:"pop",url:new ns(window.location,t.href),event:e,cacheNr:t.cacheNr}})),i=this.reload$.pipe(ct(this.subjects.disconnect)),s=H(r,o,i).pipe(st({url:new ns(this.initialHref)}),z(function(e){var n=e.url;t._url=n}),X(),G(),ye(this.isHashChange)).map(function(t){return t.pipe(W(function(t){return Ys(t,2)[1]}),G())}),a=Ys(s,2),u=a[0],c=a[1],l=zr(function(){return H(c.pipe(_t(!0)),t.fetch$.pipe(_t(!1)))}).pipe(st(!1),G()),f=n.pipe(ct(this.subjects.disconnect),ws(l),W(function(e){return{type:"hint",url:new ns(e.currentTarget.href,t.href),anchor:e.currentTarget,event:e,cacheNr:t.cacheNr}}),B(this.isHintEvent.bind(this))),h=H(f,c).pipe(pe(this.compareContext.bind(this)),at(function(e){return ps({method:"GET",responseType:"text",url:e.url,crossDomain:Zt(t)}).pipe(W(function(t){var n=t.response;return Object.assign(e,{response:n})}),he(function(n){return t.recoverIfResponse(e,n)}))}),st({url:{}}),G());this.fetch$=c.pipe(z(function(e){t.updateHistoryState(e),t.onStart(e)}),ft(h),at(this.getResponse.bind(this,h)),G());var p=this.fetch$.pipe(ye(function(t){return!t.error})),d=Ys(p,2),y=d[0],b=d[1];if(y.pipe(W(this.responseToContent.bind(this)),z(function(e){t.onReady(e),t.updateDOM(e),t.onAfter(e),t.manageScrollPostion(e)}),z({error:function(e){return t.onDOMError(e)}}),he(function(t,e){return e}),at(this.reinsertScriptTags.bind(this)),z({error:function(e){return t.onError(e)}}),he(function(t,e){return e})).subscribe(this.onLoad.bind(this)),u.subscribe(this.updateHistoryStateHash.bind(this)),b.subscribe(this.onNetworkError.bind(this)),c.pipe(at(function(e){return zr(function(){return t.animPromise}).pipe(ct(t.fetch$),_t(e))})).subscribe(this.onProgress.bind(this)),"MutationObserver"in window&&"WeakSet"in window){var v=new WeakSet,m=e.next.bind(e),g=n.next.bind(n),w=function(t){v.has(t)||(v.add(t),t.addEventListener("click",m),t.addEventListener("mouseenter",g,{passive:!0}),t.addEventListener("touchstart",g,{passive:!0}),t.addEventListener("focus",g,{passive:!0}))},_=function(e){e instanceof Element&&(os.call(e,t.linkSelector)?w(e):Array.from(e.querySelectorAll(t.linkSelector)).forEach(w))},x=function(t){v.delete(t),t.removeEventListener("click",m),t.removeEventListener("mouseenter",g,{passive:!0}),t.removeEventListener("touchstart",g,{passive:!0}),t.removeEventListener("focus",g,{passive:!0})},O=function(e){e instanceof Element&&(os.call(e,t.linkSelector)?x(e):Array.from(e.querySelectorAll(t.linkSelector)).forEach(x))};qn.create(function(e){var n=e.next.bind(e);t.mutationObserver=new MutationObserver(function(t){return Array.from(t).forEach(n)}),t.mutationObserver.observe(t.el,{childList:!0,subtree:!0})}).subscribe(function(e){var n=e.addedNodes,r=e.removedNodes;Array.from(r).forEach(O.bind(t)),Array.from(n).forEach(_.bind(t))}),this.subjects.linkSelector.subscribe(function(){Array.from(v).forEach(x),_.call(t,t.el)})}else this.el.addEventListener("click",function(n){var r=Gt.call(n.target,t.linkSelector);r&&r.href&&(n.currentTarget=r,e.next(n))})}}]),e}(Vs(zs(Is(ks(Os(t))))))},Gs=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),Zs=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var s=o.get;if(void 0!==s)return s.call(r)},Qs=new Yn([].concat(function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}(Qn),["documentfragment","eventlistener","history","promises","queryselector","requestanimationframe"]));DocumentFragment.prototype.getElementById=DocumentFragment.prototype.getElementById||function(t){return this.querySelector("#"+t)},window.process=window.process||{},window.process.env=window.process.env||{};var ta=function(t){return function(t){function e(){return Ve(this,e),Ye(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return Je(e,t),Gs(e,[{key:"setupComponent",value:function(t,n){Zs(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"setupComponent",this).call(this,t,n),this.saveScrollHistoryState=this.saveScrollHistoryState.bind(this),this.reload$=new fr}},{key:"setupShadowDOM",value:function(t){return t}},{key:"connectComponent",value:function(){if("scrollRestoration"in window.history){var t=window.history.scrollRestoration;this.subjects.scrollRestoration.pipe(ct(this.subjects.disconnect)).subscribe(function(e){window.history.scrollRestoration=e?"manual":t})}this.restoreScrollPostion(),window.addEventListener("beforeunload",this.saveScrollHistoryState),this.setupObservables(),Zs(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"connectComponent",this).call(this);var n=new ns(this.initialHref);this.updateHistoryState({type:"init",replace:!0,url:n});var r=this.getReplaceElements(document);Zt(this)&&this.rewriteURLs(r),this.fireEvent("init"),this.onLoad({type:"init",title:this.getTitle(document),replaceEls:r,url:n,cacheNr:this.cacheNr})}},{key:"disconnectComponent",value:function(){Zs(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"disconnectComponent",this).call(this),window.removeEventListener("beforeunload",this.saveScrollHistoryState)}},{key:"assign",value:function(t){this.reload$.next({type:is,url:new ns(t,this.href),cacheNr:++this.cacheNr})}},{key:"reload",value:function(){this.reload$.next({type:is,cacheNr:++this.cacheNr,url:new ns(this.href),replace:!0})}},{key:"replace",value:function(t){this.reload$.next({type:is,url:new ns(t,this.href),cacheNr:++this.cacheNr,replace:!0})}},{key:"hash",get:function(){return this._url.hash}},{key:"host",get:function(){return this._url.host}},{key:"hostname",get:function(){return this._url.hostname}},{key:"href",get:function(){return this._url.href}},{key:"origin",get:function(){return this._url.origin}},{key:"pathname",get:function(){return this._url.pathname}},{key:"port",get:function(){return this._url.port}},{key:"protocol",get:function(){return this._url.protocol}},{key:"search",get:function(){return this._url.search}}],[{key:"componentName",get:function(){return"hy-push-state"}},{key:"types",get:function(){return{replaceIds:br,linkSelector:xr,scrollRestoration:mr,duration:gr,hrefRegex:_r,scriptSelector:xr,initialHref:xr}}},{key:"defaults",get:function(){return{replaceIds:[],linkSelector:"a[href]:not(.no-push-state)",scrollRestoration:!1,duration:0,hrefRegex:null,scriptSelector:null,initialHref:window.location.href}}}]),e}(Ks(yr(or(t))))},ea=Qs,na=function(t){function e(){return Ke(this,e),Ge(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return Ze(e,t),e}(ta(Jn)),ra=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),oa=(new Yn([].concat(nn(Vi),nn(Qs))),function(t){function e(){return Qe(this,e),tn(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return en(e,t),ra(e,[{key:"getTemplate",value:function(){return null}}],[{key:"observedAttributes",get:function(){return this.getObservedAttributes()}}]),e}(Ji(ta(zt)))),ia=function(){function t(t){t.requestAnimationFrame?(this.cancelAnimationFrame=t.cancelAnimationFrame.bind(t),this.requestAnimationFrame=t.requestAnimationFrame.bind(t)):t.mozRequestAnimationFrame?(this.cancelAnimationFrame=t.mozCancelAnimationFrame.bind(t),this.requestAnimationFrame=t.mozRequestAnimationFrame.bind(t)):t.webkitRequestAnimationFrame?(this.cancelAnimationFrame=t.webkitCancelAnimationFrame.bind(t),this.requestAnimationFrame=t.webkitRequestAnimationFrame.bind(t)):t.msRequestAnimationFrame?(this.cancelAnimationFrame=t.msCancelAnimationFrame.bind(t),this.requestAnimationFrame=t.msRequestAnimationFrame.bind(t)):t.oRequestAnimationFrame?(this.cancelAnimationFrame=t.oCancelAnimationFrame.bind(t),this.requestAnimationFrame=t.oRequestAnimationFrame.bind(t)):(this.cancelAnimationFrame=t.clearTimeout.bind(t),this.requestAnimationFrame=function(e){return t.setTimeout(e,1e3/60)})}return t}(),sa=new ia(_n.a),aa=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},ua=function(t){function e(e,n){t.call(this,e,n),this.scheduler=e,this.work=n}return aa(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=sa.requestAnimationFrame(e.flush.bind(e,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&&(sa.cancelAnimationFrame(n),e.scheduled=void 0)},e}(si),ca=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},la=function(t){function e(){t.apply(this,arguments)}return ca(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(++r<o&&(t=n.shift()));if(this.active=!1,e){for(;++r<o&&(t=n.shift());)t.unsubscribe();throw e}},e}(ci),fa=new la(ua),ha=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},pa=function(){function t(t,e){this.dueTime=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new da(t,this.dueTime,this.scheduler))},t}(),da=function(t){function e(e,n,r){t.call(this,e),this.dueTime=n,this.scheduler=r,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}return ha(e,t),e.prototype._next=function(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(rn,this.dueTime,this))},e.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},e.prototype.debouncedNext=function(){this.clearDebounce(),this.hasValue&&(this.destination.next(this.lastValue),this.lastValue=null,this.hasValue=!1)},e.prototype.clearDebounce=function(){var t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)},e}(Nn),ya=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},ba=function(){function t(t,e){this.project=t,this.resultSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new va(t,this.project,this.resultSelector))},t}(),va=function(t){function e(e,n,r){t.call(this,e),this.project=n,this.resultSelector=r,this.hasSubscription=!1,this.hasCompleted=!1,this.index=0}return ya(e,t),e.prototype._next=function(t){this.hasSubscription||this.tryNext(t)},e.prototype.tryNext=function(t){var e=this.index++,n=this.destination;try{var r=this.project(t,e);this.hasSubscription=!0,this.add(C(this,r,t,e))}catch(t){n.error(t)}},e.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()},e.prototype.notifyNext=function(t,e,n,r,o){var i=this,s=i.resultSelector,a=i.destination;s?this.trySelectResult(t,e,n,r):a.next(e)},e.prototype.trySelectResult=function(t,e,n,r){var o=this,i=o.resultSelector,s=o.destination;try{var a=i(t,e,n,r);s.next(a)}catch(t){s.error(t)}},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.remove(t),this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},e}(Ar),ma=(n(70),n(72)),ga=n.n(ma),wa=Er.create,_a=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},xa=function(){function t(t){this.callback=t}return t.prototype.call=function(t,e){return e.subscribe(new Oa(t,this.callback))},t}(),Oa=function(t){function e(e,n){t.call(this,e),this.add(new Tn(n))}return _a(e,t),e}(Nn),Sa=n(78),ja=n.n(Sa),Ea=function(){function t(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}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),ka=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),Ta=Array.prototype.find,Pa=.8,Aa=function(){function t(e){sn(this,t);var n=document.getElementById("_main"),r=document.getElementById("_pageStyle"),o=Ta.call(document.styleSheets,function(t){return t.ownerNode===r})||{};this.sidebar=document.getElementById("_sidebar"),this.fadeDuration=e,this.rules=o.cssRules||o.rules,this.prevHash=un(ja()(n)),this.themeColor=document.querySelector('meta[name="theme-color"]')}return ka(t,[{key:"fetchImage",value:function(t){var e=ja()(t),n=e.background,r=e.color,o=e.image,i=e.overlay,s=un(e);return s===this.prevHash?wa():cn.call(this,e).pipe(W(function(){var t=document.createElement("div");return t.classList.add("sidebar-bg"),"none"!==o&&""===i&&t.classList.add("sidebar-overlay"),n?t.style.background=n:(t.style.backgroundColor=r,""!==o&&"none"!==o&&(t.style.backgroundImage="url("+o+")")),[t,e,s]}))}},{key:"fade",value:function(t,e){var n=Ea(t,1),r=n[0],o=Ea(e,3),i=o[0],s=o[1],a=o[2];return r.parentNode.insertBefore(i,r.nextElementSibling),an.call(this,s),this.prevHash=a,y(i,[{opacity:0},{opacity:1}],{duration:this.fadeDuration}).pipe(on(function(){return r.parentNode.removeChild(r)}))}}]),t}(),Ca=Aa;fn();var Ma=(n(79),function(){function t(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}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}()),Ra=".page-title, .post-title",Na=["title"],La=function(){function t(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}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),Ia=new Yn([].concat(function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}(ea),["classlist","cssanimations","cssremunit","documentfragment","eventlistener","history","matchmedia","opacity","queryselector","requestanimationframe"])),qa="_main",Da="a[href]:not(.external):not(.no-push-state)",Fa='script:not([type^="math/tex"])',Ua=/^((?!(\/assets\/)).)*$/,Ha=250,za=[{opacity:1},{opacity:0}],Ba=[{opacity:0,transform:"translateY(-3rem)"},{opacity:1,transform:"translateY(0)"}],Wa={duration:Ha,easing:"cubic-bezier(0,0,0.32,1)"},Xa=Array.prototype.forEach,$a=Object.assign.bind(Object);if(!window._noPushState&&h(Ia)&&!zn){var Va=!!navigator.standalone||window.matchMedia("(display-mode: standalone)").matches,Ya=document.getElementsByTagName("hy-push-state")[0],Ja=document.querySelector(".navbar .content .nav-btn-bar"),Ka=function(t){var e=document.getElementById("_animation-template"),n=document.importNode(e.content,!0);return t.parentNode.insertBefore(n,t),t.previousElementSibling}(Ya),Ga=function(t){var e=document.getElementById("_loading-template"),n=document.importNode(e.content,!0);return t.appendChild(n),t.lastElementChild}(document.querySelector(".navbar .content"));Va&&function(t,e,n){var r=document.getElementById(e),o=document.importNode(r.content,!0);o.querySelector(".nav-btn").addEventListener("click",n),t.appendChild(o),t.lastElementChild}(Ja,"_back-template",function(){return window.history.back()});var Za=document.getElementById("_main");Xa.call(Za.querySelectorAll("h1[id], h2[id], h3[id], h4[id], h5[id], h6[id]"),pn),Za.classList.remove("fade-in");var Qa=$r(Ya,"hy-push-state-start").pipe(W(function(t){var e=t.detail;return $a(e,{flipType:yn(e.anchor)})}),G()),tu=$r(Ya,"hy-push-state-ready").pipe(W(function(t){return t.detail}),G()),eu=$r(Ya,"hy-push-state-after").pipe(W(function(t){return t.detail}),G()),nu=$r(Ya,"hy-push-state-progress").pipe(W(function(t){return t.detail}),G()),ru=$r(Ya,"hy-push-state-networkerror").pipe(W(function(t){return t.detail}),G()),ou=Qa.pipe(W(function(t){return $a(t,{main:document.getElementById("_main")})}),z(function(t){var e=t.type,n=t.main;!window._isDesktop&&window._drawer&&window._drawer.opened&&window._drawer.close(),bn(e)&&(n.style.pointerEvents="none",n.style.opacity=0)}),function(t,e){return function(n){return n.lift(new ba(t,e))}}(mn),z(function(t){var e=t.main;d.call(e),window.scroll(window.pageXOffset,0)}),G());nu.subscribe(function(){Ga.style.display="block"}),tu.subscribe(function(t){var e=La(t.replaceEls,1),n=e[0];Ga.style.display="none",n.classList.remove("fade-in"),Xa.call(n.querySelectorAll("h1[id], h2[id], h3[id], h4[id], h5[id], h6[id]"),pn),n.style.pointerEvents="none"});var iu=eu.pipe(at(gn),z(function(t){t.main.style.pointerEvents=""}),G()),su=function(t,e,n,r){var o=t.pipe(B(function(t){var e=t.flipType;return!Na.includes(e)}));return H(hn(t,e,n,r),o)}(Qa,tu,H(iu,ru),{animationMain:Ka,settings:Wa}).pipe(G());Qa.pipe(W(function(t){var e=b();return t.waitUntil(e),e}),at(function(t){return Xs(Ha).pipe(ke(ou,su,function(){return t}))})).subscribe(function(t){return t.resolve()}),ou.subscribe(),su.subscribe();var au=new Ca(600);eu.pipe(at(function(t){var e=La(t.replaceEls,1),n=e[0];return au.fetchImage(n).pipe(ke(iu,function(t){return t}),ct(Qa))}),st([document.querySelector(".sidebar-bg")]),X(),D(function(t){var e=La(t,2),n=e[0],r=e[1];return au.fade(n,r)})).subscribe(),iu.pipe(z(_),z(fn),B(function(){return!!window.ga}),function(t,e){return void 0===e&&(e=li),function(n){return n.lift(new pa(t,e))}}(500)).subscribe(function(){window.ga("set","page",window.location.pathname),window.ga("send","pageview")}),ru.subscribe(function(t){var e=t.url;Ga.style.display="none",d.call(Ka.querySelector(".page"));var n=document.getElementById("_main");d.call(n),n.style.pointerEvents="",n.style.opacity="",dn(n,e)}),Fn&&!navigator.standalone&&($r(window,"popstate").pipe(B(function(){return window.history.state&&window.history.state["hy-push-state"]&&!window.history.state["hy-push-state"].hash})).subscribe(function(){var t=window.history.state["hy-push-state"].scrollHeight;document.body.style.minHeight=t+"px"}),H(eu,nu,ru).pipe(function(t,e){return void 0===e&&(e=0),function(n){return n.lift(new Fo(t,e))}}(fa)).subscribe(function(){document.body.style.minHeight=""})),window._pushState="customElements"in window?function(t){return t.setAttribute("replace-ids",qa),t.setAttribute("link-selector",Da),t.setAttribute("duration",Ha),vn()&&t.setAttribute("scroll-restoration",""),t.setAttribute("href-regex",Ua),t.setAttribute("script-selector",Fa),customElements.define("hy-push-state",oa),t}(Ya):function(t){return new na(t,{replaceIds:qa.split(","),linkSelector:Da,duration:Ha,scrollRestoration:vn(),hrefRegex:Ua,scriptSelector:Fa})}(Ya)}},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){var r={},o={};!function(t,e){function n(t){if("number"==typeof t)return t;var e={};for(var n in t)e[n]=t[n];return e}function r(){this._delay=0,this._endDelay=0,this._fill="none",this._iterationStart=0,this._iterations=1,this._duration=0,this._playbackRate=1,this._direction="normal",this._easing="linear",this._easingFunction=O}function o(){return t.isDeprecated("Invalid timing inputs","2016-03-02","TypeError exceptions will be thrown instead.",!0)}function i(e,n,o){var i=new r;return n&&(i.fill="both",i.duration="auto"),"number"!=typeof e||isNaN(e)?void 0!==e&&Object.getOwnPropertyNames(e).forEach(function(n){if("auto"!=e[n]){if(("number"==typeof i[n]||"duration"==n)&&("number"!=typeof e[n]||isNaN(e[n])))return;if("fill"==n&&-1==_.indexOf(e[n]))return;if("direction"==n&&-1==x.indexOf(e[n]))return;if("playbackRate"==n&&1!==e[n]&&t.isDeprecated("AnimationEffectTiming.playbackRate","2014-11-28","Use Animation.playbackRate instead."))return;i[n]=e[n]}}):i.duration=e,i}function s(t){return"number"==typeof t&&(t=isNaN(t)?{duration:0}:{duration:t}),t}function a(e,n){return e=t.numericTimingToObject(e),i(e,n)}function u(t,e,n,r){return t<0||t>1||n<0||n>1?O: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<c;){var l=(u+c)/2,f=i(t,n,l);if(Math.abs(o-f)<1e-5)return i(e,r,l);f<o?u=l:c=l}return i(e,r,l)}}function c(t,e){return function(n){if(n>=1)return 1;var r=1/t;return(n+=e*r)-n%r}}function l(t){T||(T=document.createElement("div").style),T.animationTimingFunction="",T.animationTimingFunction=t;var e=T.animationTimingFunction;if(""==e&&o())throw new TypeError(t+" is not a valid value for easing");return e}function f(t){if("linear"==t)return O;var e=A.exec(t);if(e)return u.apply(this,e.slice(1).map(Number));var n=C.exec(t);return n?c(Number(n[1]),{start:S,middle:j,end:E}[n[2]]):k[t]||O}function h(t){return Math.abs(p(t)/t.playbackRate)}function p(t){return 0===t.duration||0===t.iterations?0:t.duration*t.iterations}function d(t,e,n){if(null==e)return M;var r=n.delay+t+n.endDelay;return e<Math.min(n.delay,r)?R:e>=Math.min(n.delay+t,r)?N:L}function y(t,e,n,r,o){switch(r){case R:return"backwards"==e||"both"==e?0:null;case L:return n-o;case N:return"forwards"==e||"both"==e?t:null;case M:return null}}function b(t,e,n,r,o){var i=o;return 0===t?e!==R&&(i+=n):i+=r/t,i}function v(t,e,n,r,o,i){var s=t===1/0?e%1:t%1;return 0!==s||n!==N||0===r||0===o&&0!==i||(s=1),s}function m(t,e,n,r){return t===N&&e===1/0?1/0:1===n?Math.floor(r)-1:Math.floor(r)}function g(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}function w(t,e,n){var r=d(t,e,n),o=y(t,n.fill,e,r,n.delay);if(null===o)return null;var i=b(n.duration,r,n.iterations,o,n.iterationStart),s=v(i,n.iterationStart,r,n.iterations,o,n.duration),a=m(r,n.iterations,s,i),u=g(n.direction,a,s);return n._easingFunction(u)}var _="backwards|forwards|both|none".split("|"),x="reverse|alternate|alternate-reverse".split("|"),O=function(t){return t};r.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)&&o())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)&&o())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=f(l(t)),this._setMember("easing",t)},get easing(){return this._easing},set iterations(t){if((isNaN(t)||t<0)&&o())throw new TypeError("iterations must be non-negative, received: "+t);this._setMember("iterations",t)},get iterations(){return this._iterations}};var S=1,j=.5,E=0,k={ease:u(.25,.1,.25,1),"ease-in":u(.42,0,1,1),"ease-out":u(0,0,.58,1),"ease-in-out":u(.42,0,.58,1),"step-start":c(1,S),"step-middle":c(1,j),"step-end":c(1,E)},T=null,P="\\s*(-?\\d+\\.?\\d*|-?\\.\\d+)\\s*",A=new RegExp("cubic-bezier\\("+P+","+P+","+P+","+P+"\\)"),C=/steps\(\s*(\d+)\s*,\s*(start|middle|end)\s*\)/,M=0,R=1,N=2,L=3;t.cloneTimingInput=n,t.makeTiming=i,t.numericTimingToObject=s,t.normalizeTimingInput=a,t.calculateActiveDuration=h,t.calculateIterationProgress=w,t.calculatePhase=d,t.normalizeEasing=l,t.parseEasingFunction=f}(r),function(t,e){function n(t,e){return t in l?l[t][e]||e:e}function r(t){return"display"===t||0===t.lastIndexOf("animation",0)||0===t.lastIndexOf("transition",0)}function o(t,e,o){if(!r(t)){var i=a[t];if(i){u.style[t]=e;for(var s in i){var c=i[s],l=u.style[c];o[c]=n(c,l)}}else o[t]=n(t,e)}}function i(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;s<i;s++)o={},o.offset="offset"in t?t.offset:1==i?1:s/(i-1),"easing"in t&&(o.easing=t.easing),"composite"in t&&(o.composite=t.composite),o[n]=r[s],e.push(o)}return e.sort(function(t,e){return t.offset-e.offset}),e}function s(e){if(null==e)return[];window.Symbol&&Symbol.iterator&&Array.prototype.from&&e[Symbol.iterator]&&(e=Array.from(e)),Array.isArray(e)||(e=i(e));for(var n=e.map(function(e){var n={};for(var r in e){var i=e[r];if("offset"==r){if(null!=i){if(i=Number(i),!isFinite(i))throw new TypeError("Keyframe offsets must be numbers.");if(i<0||i>1)throw new TypeError("Keyframe offsets must be between 0 and 1.")}}else if("composite"==r){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"==r?t.normalizeEasing(i):""+i;o(r,i,n)}return void 0==n.offset&&(n.offset=null),void 0==n.easing&&(n.easing="linear"),n}),r=!0,s=-1/0,a=0;a<n.length;a++){var u=n[a].offset;if(null!=u){if(u<s)throw new TypeError("Keyframes are not loosely sorted by offset. Sort or specify offsets.");s=u}else r=!1}return n=n.filter(function(t){return t.offset>=0&&t.offset<=1}),r||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;o++){var i=n[o].offset;if(null!=i){for(var s=1;s<o-e;s++)n[e+s].offset=r+(i-r)*s/(o-e);e=o,r=i}}}(),n}var a={background:["backgroundImage","backgroundPosition","backgroundSize","backgroundRepeat","backgroundAttachment","backgroundOrigin","backgroundClip","backgroundColor"],border:["borderTopColor","borderTopStyle","borderTopWidth","borderRightColor","borderRightStyle","borderRightWidth","borderBottomColor","borderBottomStyle","borderBottomWidth","borderLeftColor","borderLeftStyle","borderLeftWidth"],borderBottom:["borderBottomWidth","borderBottomStyle","borderBottomColor"],borderColor:["borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"],borderLeft:["borderLeftWidth","borderLeftStyle","borderLeftColor"],borderRadius:["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],borderRight:["borderRightWidth","borderRightStyle","borderRightColor"],borderTop:["borderTopWidth","borderTopStyle","borderTopColor"],borderWidth:["borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth"],flex:["flexGrow","flexShrink","flexBasis"],font:["fontFamily","fontSize","fontStyle","fontVariant","fontWeight","lineHeight"],margin:["marginTop","marginRight","marginBottom","marginLeft"],outline:["outlineColor","outlineStyle","outlineWidth"],padding:["paddingTop","paddingRight","paddingBottom","paddingLeft"]},u=document.createElementNS("http://www.w3.org/1999/xhtml","div"),c={thin:"1px",medium:"3px",thick:"5px"},l={borderBottomWidth:c,borderLeftWidth:c,borderRightWidth:c,borderTopWidth:c,fontSize:{"xx-small":"60%","x-small":"75%",small:"89%",medium:"100%",large:"120%","x-large":"150%","xx-large":"200%"},fontWeight:{normal:"400",bold:"700"},outlineWidth:c,textShadow:{none:"0px 0px 0px transparent"},boxShadow:{none:"0px 0px 0px 0px transparent"}};t.convertToArrayForm=i,t.normalizeKeyframes=s}(r),function(t){var e={};t.isDeprecated=function(t,n,r,o){var i=o?"are":"is",s=new Date,a=new Date(n);return a.setMonth(a.getMonth()+3),!(s<a&&(t in e||console.warn("Web Animations: "+t+" "+i+" deprecated and will stop working on "+a.toDateString()+". "+r),e[t]=!0,1))},t.deprecated=function(e,n,r,o){var i=o?"are":"is";if(t.isDeprecated(e,n,r,o))throw new Error(e+" "+i+" no longer supported. "+r)}}(r),function(){if(document.documentElement.animate){var t=document.documentElement.animate([],0),e=!0;if(t&&(e=!1,"play|currentTime|pause|reverse|playbackRate|cancel|finish|startTime|playState".split("|").forEach(function(n){void 0===t[n]&&(e=!0)})),!e)return}!function(t,e,n){function r(t){for(var e={},n=0;n<t.length;n++)for(var r in t[n])if("offset"!=r&&"easing"!=r&&"composite"!=r){var o={offset:t[n].offset,easing:t[n].easing,value:t[n][r]};e[r]=e[r]||[],e[r].push(o)}for(var i in e){var s=e[i];if(0!=s[0].offset||1!=s[s.length-1].offset)throw{type:DOMException.NOT_SUPPORTED_ERR,name:"NotSupportedError",message:"Partial keyframes are not supported"}}return e}function o(n){var r=[];for(var o in n)for(var i=n[o],s=0;s<i.length-1;s++){var a=s,u=s+1,c=i[a].offset,l=i[u].offset,f=c,h=l;0==s&&(f=-1/0,0==l&&(u=a)),s==i.length-2&&(h=1/0,1==c&&(a=u)),r.push({applyFrom:f,applyTo:h,startOffset:i[a].offset,endOffset:i[u].offset,easingFunction:t.parseEasingFunction(i[a].easing),property:o,interpolation:e.propertyInterpolation(o,i[a].value,i[u].value)})}return r.sort(function(t,e){return t.startOffset-e.startOffset}),r}e.convertEffectInput=function(n){var i=t.normalizeKeyframes(n),s=r(i),a=o(s);return function(t,n){if(null!=n)a.filter(function(t){return n>=t.applyFrom&&n<t.applyTo}).forEach(function(r){var o=n-r.startOffset,i=r.endOffset-r.startOffset,s=0==i?0:r.easingFunction(o/i);e.apply(t,r.property,r.interpolation(s))});else for(var r in s)"offset"!=r&&"easing"!=r&&"composite"!=r&&e.clear(t,r)}}}(r,o),function(t,e,n){function r(t){return t.replace(/-(.)/g,function(t,e){return e.toUpperCase()})}function o(t,e,n){a[n]=a[n]||[],a[n].push([t,e])}function i(t,e,n){for(var i=0;i<n.length;i++)o(t,e,r(n[i]))}function s(n,o,i){var s=n;/-/.test(n)&&!t.isDeprecated("Hyphenated property names","2016-03-22","Use camelCase instead.",!0)&&(s=r(n)),"initial"!=o&&"initial"!=i||("initial"==o&&(o=u[s]),"initial"==i&&(i=u[s]));for(var c=o==i?[]:a[s],l=0;c&&l<c.length;l++){var f=c[l][0](o),h=c[l][0](i);if(void 0!==f&&void 0!==h){var p=c[l][1](f,h);if(p){var d=e.Interpolation.apply(null,p);return function(t){return 0==t?o:1==t?i:d(t)}}}}return e.Interpolation(!1,!0,function(t){return t?i:o})}var a={};e.addPropertiesHandler=i;var u={backgroundColor:"transparent",backgroundPosition:"0% 0%",borderBottomColor:"currentColor",borderBottomLeftRadius:"0px",borderBottomRightRadius:"0px",borderBottomWidth:"3px",borderLeftColor:"currentColor",borderLeftWidth:"3px",borderRightColor:"currentColor",borderRightWidth:"3px",borderSpacing:"2px",borderTopColor:"currentColor",borderTopLeftRadius:"0px",borderTopRightRadius:"0px",borderTopWidth:"3px",bottom:"auto",clip:"rect(0px, 0px, 0px, 0px)",color:"black",fontSize:"100%",fontWeight:"400",height:"auto",left:"auto",letterSpacing:"normal",lineHeight:"120%",marginBottom:"0px",marginLeft:"0px",marginRight:"0px",marginTop:"0px",maxHeight:"none",maxWidth:"none",minHeight:"0px",minWidth:"0px",opacity:"1.0",outlineColor:"invert",outlineOffset:"0px",outlineWidth:"3px",paddingBottom:"0px",paddingLeft:"0px",paddingRight:"0px",paddingTop:"0px",right:"auto",strokeDasharray:"none",strokeDashoffset:"0px",textIndent:"0px",textShadow:"0px 0px 0px transparent",top:"auto",transform:"",verticalAlign:"0px",visibility:"visible",width:"auto",wordSpacing:"normal",zIndex:"auto"};e.propertyInterpolation=s}(r,o),function(t,e,n){function r(e){var n=t.calculateActiveDuration(e),r=function(r){return t.calculateIterationProgress(n,r,e)};return r._totalDuration=e.delay+n+e.endDelay,r}e.KeyframeEffect=function(n,o,i,s){var a,u=r(t.normalizeTimingInput(i)),c=e.convertEffectInput(o),l=function(){c(n,a)};return l._update=function(t){return null!==(a=u(t))},l._clear=function(){c(n,null)},l._hasSameTarget=function(t){return n===t},l._target=n,l._totalDuration=u._totalDuration,l._id=s,l}}(r,o),function(t,e){function n(t,e){return!(!e.namespaceURI||-1==e.namespaceURI.indexOf("/svg"))&&(s in t||(t[s]=/Trident|MSIE|IEMobile|Edge|Android 4/i.test(t.navigator.userAgent)),t[s])}function r(t,e,n){n.enumerable=!0,n.configurable=!0,Object.defineProperty(t,e,n)}function o(t){this._element=t,this._surrogateStyle=document.createElementNS("http://www.w3.org/1999/xhtml","div").style,this._style=t.style,this._length=0,this._isAnimatedProperty={},this._updateSvgTransformAttr=n(window,t),this._savedTransformAttr=null;for(var e=0;e<this._style.length;e++){var r=this._style[e];this._surrogateStyle[r]=this._style[r]}this._updateIndices()}function i(t){if(!t._webAnimationsPatchedStyle){var e=new o(t);try{r(t,"style",{get:function(){return e}})}catch(e){t.style._set=function(e,n){t.style[e]=n},t.style._clear=function(e){t.style[e]=""}}t._webAnimationsPatchedStyle=t.style}}var s="_webAnimationsUpdateSvgTransformAttr",a={cssText:1,length:1,parentRule:1},u={getPropertyCSSValue:1,getPropertyPriority:1,getPropertyValue:1,item:1,removeProperty:1,setProperty:1},c={removeProperty:1,setProperty:1};o.prototype={get cssText(){return this._surrogateStyle.cssText},set cssText(t){for(var e={},n=0;n<this._surrogateStyle.length;n++)e[this._surrogateStyle[n]]=!0;this._surrogateStyle.cssText=t,this._updateIndices();for(var n=0;n<this._surrogateStyle.length;n++)e[this._surrogateStyle[n]]=!0;for(var r in e)this._isAnimatedProperty[r]||this._style.setProperty(r,this._surrogateStyle.getPropertyValue(r))},get length(){return this._surrogateStyle.length},get parentRule(){return this._style.parentRule},_updateIndices:function(){for(;this._length<this._surrogateStyle.length;)Object.defineProperty(this,this._length,{configurable:!0,enumerable:!1,get:function(t){return function(){return this._surrogateStyle[t]}}(this._length)}),this._length++;for(;this._length>this._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]}};for(var l in u)o.prototype[l]=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}}(l,l in c);for(var f in document.documentElement.style)f in a||f in u||function(t){r(o.prototype,t,{get:function(){return this._surrogateStyle[t]},set:function(e){this._surrogateStyle[t]=e,this._updateIndices(),this._isAnimatedProperty[t]||(this._style[t]=e)}})}(f);t.apply=function(e,n,r){i(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){function n(t,e,r){if("number"==typeof t&&"number"==typeof e)return t*(1-r)+e*r;if("boolean"==typeof t&&"boolean"==typeof e)return r<.5?t:e;if(t.length==e.length){for(var o=[],i=0;i<t.length;i++)o.push(n(t[i],e[i],r));return o}throw"Mismatched interpolation arguments "+t+":"+e}t.Interpolation=function(t,e,r){return function(o){return r(n(t,e,o))}}}(o),function(t,e){function n(t,e,n){return Math.max(Math.min(t,n),e)}function r(e,r,o){var i=t.dot(e,r);i=n(i,-1,1);var s=[];if(1===i)s=e;else for(var a=Math.acos(i),u=1*Math.sin(o*a)/Math.sqrt(1-i*i),c=0;c<4;c++)s.push(e[c]*(Math.cos(o*a)-i*u)+r[c]*u);return s}var o=function(){function t(t,e){for(var n=[[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]],r=0;r<4;r++)for(var o=0;o<4;o++)for(var i=0;i<4;i++)n[r][o]+=e[r][i]*t[i][o];return n}function e(t){return 0==t[0][2]&&0==t[0][3]&&0==t[1][2]&&0==t[1][3]&&0==t[2][0]&&0==t[2][1]&&1==t[2][2]&&0==t[2][3]&&0==t[3][2]&&1==t[3][3]}function n(n,r,o,i,s){for(var a=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]],u=0;u<4;u++)a[u][3]=s[u];for(var u=0;u<3;u++)for(var c=0;c<3;c++)a[3][u]+=n[c]*a[c][u];var l=i[0],f=i[1],h=i[2],p=i[3],d=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]];d[0][0]=1-2*(f*f+h*h),d[0][1]=2*(l*f-h*p),d[0][2]=2*(l*h+f*p),d[1][0]=2*(l*f+h*p),d[1][1]=1-2*(l*l+h*h),d[1][2]=2*(f*h-l*p),d[2][0]=2*(l*h-f*p),d[2][1]=2*(f*h+l*p),d[2][2]=1-2*(l*l+f*f),a=t(a,d);var y=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]];o[2]&&(y[2][1]=o[2],a=t(a,y)),o[1]&&(y[2][1]=0,y[2][0]=o[0],a=t(a,y)),o[0]&&(y[2][0]=0,y[1][0]=o[0],a=t(a,y));for(var u=0;u<3;u++)for(var c=0;c<3;c++)a[u][c]*=r[u];return e(a)?[a[0][0],a[0][1],a[1][0],a[1][1],a[3][0],a[3][1]]:a[0].concat(a[1],a[2],a[3])}return n}();t.composeMatrix=o,t.quat=r}(o),function(t,e,n){t.sequenceNumber=0;var r=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()};e.Animation=function(e){this.id="",e&&e._id&&(this.id=e._id),this._sequenceNumber=t.sequenceNumber++,this._currentTime=0,this._startTime=null,this._paused=!1,this._playbackRate=1,this._inTimeline=!0,this._finishedFlag=!0,this.onfinish=null,this._finishHandlers=[],this._effect=e,this._inEffect=this._effect._update(0),this._idle=!0,this._currentTimePending=!1},e.Animation.prototype={_ensureAlive:function(){this.playbackRate<0&&0===this.currentTime?this._inEffect=this._effect._update(-1):this._inEffect=this._effect._update(this.currentTime),this._inTimeline||!this._inEffect&&this._finishedFlag||(this._inTimeline=!0,e.timeline._animations.push(this))},_tickCurrentTime:function(t,e){t!=this._currentTime&&(this._currentTime=t,this._isFinished&&!e&&(this._currentTime=this._playbackRate>0?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 r(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=[],t<b.currentTime&&(t=b.currentTime),b._animations.sort(o),b._animations=a(t,!0,b._animations)[0],e.forEach(function(e){e[1](t)}),s(),f=void 0}function o(t,e){return t._sequenceNumber-e._sequenceNumber}function i(){this._animations=[],this.currentTime=window.performance&&performance.now?performance.now():0}function s(){d.forEach(function(t){t()}),d.length=0}function a(t,n,r){y=!0,p=!1,e.timeline.currentTime=t,h=!1;var o=[],i=[],s=[],a=[];return r.forEach(function(e){e._tick(t,n),e._inEffect?(i.push(e._effect),e._markTarget()):(o.push(e._effect),e._unmarkTarget()),e._needsTick&&(h=!0);var r=e._inEffect||e._needsTick;e._inTimeline=r,r?s.push(e):a.push(e)}),d.push.apply(d,o),d.push.apply(d,i),h&&requestAnimationFrame(function(){}),y=!1,[s,a]}var u=window.requestAnimationFrame,c=[],l=0;window.requestAnimationFrame=function(t){var e=l++;return 0==c.length&&u(r),c.push([e,t]),e},window.cancelAnimationFrame=function(t){c.forEach(function(e){e[0]==t&&(e[1]=function(){})})},i.prototype={_play:function(n){n._timing=t.normalizeTimingInput(n.timing);var r=new e.Animation(n);return r._idle=!1,r._timeline=this,this._animations.push(r),e.restart(),e.applyDirtiedAnimation(r),r}};var f=void 0,h=!1,p=!1;e.restart=function(){return h||(h=!0,requestAnimationFrame(function(){}),p=!0),p},e.applyDirtiedAnimation=function(t){if(!y){t._markTarget();var n=t._targetAnimations();n.sort(o),a(e.timeline.currentTime,!1,n.slice())[1].forEach(function(t){var e=b._animations.indexOf(t);-1!==e&&b._animations.splice(e,1)}),s()}};var d=[],y=!1,b=new i;e.timeline=b}(r,o),function(t,e){function n(t,e){for(var n=0,r=0;r<t.length;r++)n+=t[r]*e[r];return n}function r(t,e){return[t[0]*e[0]+t[4]*e[1]+t[8]*e[2]+t[12]*e[3],t[1]*e[0]+t[5]*e[1]+t[9]*e[2]+t[13]*e[3],t[2]*e[0]+t[6]*e[1]+t[10]*e[2]+t[14]*e[3],t[3]*e[0]+t[7]*e[1]+t[11]*e[2]+t[15]*e[3],t[0]*e[4]+t[4]*e[5]+t[8]*e[6]+t[12]*e[7],t[1]*e[4]+t[5]*e[5]+t[9]*e[6]+t[13]*e[7],t[2]*e[4]+t[6]*e[5]+t[10]*e[6]+t[14]*e[7],t[3]*e[4]+t[7]*e[5]+t[11]*e[6]+t[15]*e[7],t[0]*e[8]+t[4]*e[9]+t[8]*e[10]+t[12]*e[11],t[1]*e[8]+t[5]*e[9]+t[9]*e[10]+t[13]*e[11],t[2]*e[8]+t[6]*e[9]+t[10]*e[10]+t[14]*e[11],t[3]*e[8]+t[7]*e[9]+t[11]*e[10]+t[15]*e[11],t[0]*e[12]+t[4]*e[13]+t[8]*e[14]+t[12]*e[15],t[1]*e[12]+t[5]*e[13]+t[9]*e[14]+t[13]*e[15],t[2]*e[12]+t[6]*e[13]+t[10]*e[14]+t[14]*e[15],t[3]*e[12]+t[7]*e[13]+t[11]*e[14]+t[15]*e[15]]}function o(t){var e=t.rad||0;return((t.deg||0)/360+(t.grad||0)/400+(t.turn||0))*(2*Math.PI)+e}function i(t){switch(t.t){case"rotatex":var e=o(t.d[0]);return[1,0,0,0,0,Math.cos(e),Math.sin(e),0,0,-Math.sin(e),Math.cos(e),0,0,0,0,1];case"rotatey":var e=o(t.d[0]);return[Math.cos(e),0,-Math.sin(e),0,0,1,0,0,Math.sin(e),0,Math.cos(e),0,0,0,0,1];case"rotate":case"rotatez":var e=o(t.d[0]);return[Math.cos(e),Math.sin(e),0,0,-Math.sin(e),Math.cos(e),0,0,0,0,1,0,0,0,0,1];case"rotate3d":var n=t.d[0],r=t.d[1],i=t.d[2],e=o(t.d[3]),s=n*n+r*r+i*i;if(0===s)n=1,r=0,i=0;else if(1!==s){var a=Math.sqrt(s);n/=a,r/=a,i/=a}var u=Math.sin(e/2),c=u*Math.cos(e/2),l=u*u;return[1-2*(r*r+i*i)*l,2*(n*r*l+i*c),2*(n*i*l-r*c),0,2*(n*r*l-i*c),1-2*(n*n+i*i)*l,2*(r*i*l+n*c),0,2*(n*i*l+r*c),2*(r*i*l-n*c),1-2*(n*n+r*r)*l,0,0,0,0,1];case"scale":return[t.d[0],0,0,0,0,t.d[1],0,0,0,0,1,0,0,0,0,1];case"scalex":return[t.d[0],0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];case"scaley":return[1,0,0,0,0,t.d[0],0,0,0,0,1,0,0,0,0,1];case"scalez":return[1,0,0,0,0,1,0,0,0,0,t.d[0],0,0,0,0,1];case"scale3d":return[t.d[0],0,0,0,0,t.d[1],0,0,0,0,t.d[2],0,0,0,0,1];case"skew":var f=o(t.d[0]),h=o(t.d[1]);return[1,Math.tan(h),0,0,Math.tan(f),1,0,0,0,0,1,0,0,0,0,1];case"skewx":var e=o(t.d[0]);return[1,0,0,0,Math.tan(e),1,0,0,0,0,1,0,0,0,0,1];case"skewy":var e=o(t.d[0]);return[1,Math.tan(e),0,0,0,1,0,0,0,0,1,0,0,0,0,1];case"translate":var n=t.d[0].px||0,r=t.d[1].px||0;return[1,0,0,0,0,1,0,0,0,0,1,0,n,r,0,1];case"translatex":var n=t.d[0].px||0;return[1,0,0,0,0,1,0,0,0,0,1,0,n,0,0,1];case"translatey":var r=t.d[0].px||0;return[1,0,0,0,0,1,0,0,0,0,1,0,0,r,0,1];case"translatez":var i=t.d[0].px||0;return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,i,1];case"translate3d":var n=t.d[0].px||0,r=t.d[1].px||0,i=t.d[2].px||0;return[1,0,0,0,0,1,0,0,0,0,1,0,n,r,i,1];case"perspective":return[1,0,0,0,0,1,0,0,0,0,1,t.d[0].px?-1/t.d[0].px:0,0,0,0,1];case"matrix":return[t.d[0],t.d[1],0,0,t.d[2],t.d[3],0,0,0,0,1,0,t.d[4],t.d[5],0,1];case"matrix3d":return t.d}}function s(t){return 0===t.length?[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]:t.map(i).reduce(r)}function a(t){return[u(s(t))]}var u=function(){function t(t){return t[0][0]*t[1][1]*t[2][2]+t[1][0]*t[2][1]*t[0][2]+t[2][0]*t[0][1]*t[1][2]-t[0][2]*t[1][1]*t[2][0]-t[1][2]*t[2][1]*t[0][0]-t[2][2]*t[0][1]*t[1][0]}function e(e){for(var n=1/t(e),r=e[0][0],o=e[0][1],i=e[0][2],s=e[1][0],a=e[1][1],u=e[1][2],c=e[2][0],l=e[2][1],f=e[2][2],h=[[(a*f-u*l)*n,(i*l-o*f)*n,(o*u-i*a)*n,0],[(u*c-s*f)*n,(r*f-i*c)*n,(i*s-r*u)*n,0],[(s*l-a*c)*n,(c*o-r*l)*n,(r*a-o*s)*n,0]],p=[],d=0;d<3;d++){for(var y=0,b=0;b<3;b++)y+=e[3][b]*h[b][d];p.push(y)}return p.push(1),h.push(p),h}function r(t){return[[t[0][0],t[1][0],t[2][0],t[3][0]],[t[0][1],t[1][1],t[2][1],t[3][1]],[t[0][2],t[1][2],t[2][2],t[3][2]],[t[0][3],t[1][3],t[2][3],t[3][3]]]}function o(t,e){for(var n=[],r=0;r<4;r++){for(var o=0,i=0;i<4;i++)o+=t[i]*e[i][r];n.push(o)}return n}function i(t){var e=s(t);return[t[0]/e,t[1]/e,t[2]/e]}function s(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1]+t[2]*t[2])}function a(t,e,n,r){return[n*t[0]+r*e[0],n*t[1]+r*e[1],n*t[2]+r*e[2]]}function u(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function c(c){var l=[c.slice(0,4),c.slice(4,8),c.slice(8,12),c.slice(12,16)];if(1!==l[3][3])return null;for(var f=[],h=0;h<4;h++)f.push(l[h].slice());for(var h=0;h<3;h++)f[h][3]=0;if(0===t(f))return null;var p,d=[];l[0][3]||l[1][3]||l[2][3]?(d.push(l[0][3]),d.push(l[1][3]),d.push(l[2][3]),d.push(l[3][3]),p=o(d,r(e(f)))):p=[0,0,0,1];var y=l[3].slice(0,3),b=[];b.push(l[0].slice(0,3));var v=[];v.push(s(b[0])),b[0]=i(b[0]);var m=[];b.push(l[1].slice(0,3)),m.push(n(b[0],b[1])),b[1]=a(b[1],b[0],1,-m[0]),v.push(s(b[1])),b[1]=i(b[1]),m[0]/=v[1],b.push(l[2].slice(0,3)),m.push(n(b[0],b[2])),b[2]=a(b[2],b[0],1,-m[1]),m.push(n(b[1],b[2])),b[2]=a(b[2],b[1],1,-m[2]),v.push(s(b[2])),b[2]=i(b[2]),m[1]/=v[2],m[2]/=v[2];var g=u(b[1],b[2]);if(n(b[0],g)<0)for(var h=0;h<3;h++)v[h]*=-1,b[h][0]*=-1,b[h][1]*=-1,b[h][2]*=-1;var w,_,x=b[0][0]+b[1][1]+b[2][2]+1;return x>1e-4?(w=.5/Math.sqrt(x),_=[(b[2][1]-b[1][2])*w,(b[0][2]-b[2][0])*w,(b[1][0]-b[0][1])*w,.25/w]):b[0][0]>b[1][1]&&b[0][0]>b[2][2]?(w=2*Math.sqrt(1+b[0][0]-b[1][1]-b[2][2]),_=[.25*w,(b[0][1]+b[1][0])/w,(b[0][2]+b[2][0])/w,(b[2][1]-b[1][2])/w]):b[1][1]>b[2][2]?(w=2*Math.sqrt(1+b[1][1]-b[0][0]-b[2][2]),_=[(b[0][1]+b[1][0])/w,.25*w,(b[1][2]+b[2][1])/w,(b[0][2]-b[2][0])/w]):(w=2*Math.sqrt(1+b[2][2]-b[0][0]-b[1][1]),_=[(b[0][2]+b[2][0])/w,(b[1][2]+b[2][1])/w,.25*w,(b[1][0]-b[0][1])/w]),[y,v,m,_,p]}return c}();t.dot=n,t.makeMatrixDecomposition=a,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],[n,e.substr(n.length)]}function n(t,e){e=e.replace(/^\s*/,"");var n=t(e);if(n)return[n[0],n[1].replace(/^\s*/,"")]}function r(t,r,o){t=n.bind(null,t);for(var i=[];;){var s=t(o);if(!s)return[i,o];if(i.push(s[0]),o=s[1],!(s=e(r,o))||""==s[1])return[i,o];o=s[1]}}function o(t,e){for(var n=0,r=0;r<e.length&&(!/\s|,/.test(e[r])||0!=n);r++)if("("==e[r])n++;else if(")"==e[r]&&(n--,0==n&&r++,n<=0))break;var o=t(e.substr(0,r));return void 0==o?void 0:[o,e.substr(r)]}function i(t,e){for(var n=t,r=e;n&&r;)n>r?n%=r:r%=n;return n=t*e/(n+r)}function s(t){return function(e){var n=t(e);return n&&(n[0]=void 0),n}}function a(t,e){return function(n){return t(n)||[e,n]}}function u(e,n){for(var r=[],o=0;o<e.length;o++){var i=t.consumeTrimmed(e[o],n);if(!i||""==i[0])return;void 0!==i[0]&&r.push(i[0]),n=i[1]}if(""==n)return r}function c(t,e,n,r,o){for(var s=[],a=[],u=[],c=i(r.length,o.length),l=0;l<c;l++){var f=e(r[l%r.length],o[l%o.length]);if(!f)return;s.push(f[0]),a.push(f[1]),u.push(f[2])}return[s,a,function(e){var r=e.map(function(t,e){return u[e](t)}).join(n);return t?t(r):r}]}function l(t,e,n){for(var r=[],o=[],i=[],s=0,a=0;a<n.length;a++)if("function"==typeof n[a]){var u=n[a](t[s],e[s++]);r.push(u[0]),o.push(u[1]),i.push(u[2])}else!function(t){r.push(!1),o.push(!1),i.push(function(){return n[t]})}(a);return[r,o,function(t){for(var e="",n=0;n<t.length;n++)e+=i[n](t[n]);return e}]}t.consumeToken=e,t.consumeTrimmed=n,t.consumeRepeated=r,t.consumeParenthesised=o,t.ignore=s,t.optional=a,t.consumeList=u,t.mergeNestedRepeated=c.bind(null,null),t.mergeWrappedNestedRepeated=c,t.mergeList=l}(o),function(t){function e(e){function n(e){var n=t.consumeToken(/^inset/i,e);if(n)return r.inset=!0,n;var n=t.consumeLengthOrPercent(e);if(n)return r.lengths.push(n[0]),n;var n=t.consumeColor(e);return n?(r.color=n[0],n):void 0}var r={inset:!1,lengths:[],color:null},o=t.consumeRepeated(n,/^/,e);if(o&&o[0].length)return[r,o[1]]}function n(n){var r=t.consumeRepeated(e,/^,/,n);if(r&&""==r[1])return r[0]}function r(e,n){for(;e.lengths.length<Math.max(e.lengths.length,n.lengths.length);)e.lengths.push({px:0});for(;n.lengths.length<Math.max(e.lengths.length,n.lengths.length);)n.lengths.push({px:0});if(e.inset==n.inset&&!!e.color==!!n.color){for(var r,o=[],i=[[],0],s=[[],0],a=0;a<e.lengths.length;a++){var u=t.mergeDimensions(e.lengths[a],n.lengths[a],2==a);i[0].push(u[0]),s[0].push(u[1]),o.push(u[2])}if(e.color&&n.color){var c=t.mergeColors(e.color,n.color);i[1]=c[0],s[1]=c[1],r=c[2]}return[i,s,function(t){for(var n=e.inset?"inset ":" ",i=0;i<o.length;i++)n+=o[i](t[0][i])+" ";return r&&(n+=r(t[1])),n}]}}function o(e,n,r,o){function i(t){return{inset:t,color:[0,0,0,0],lengths:[{px:0},{px:0},{px:0},{px:0}]}}for(var s=[],a=[],u=0;u<r.length||u<o.length;u++){var c=r[u]||i(o[u].inset),l=o[u]||i(r[u].inset);s.push(c),a.push(l)}return t.mergeNestedRepeated(e,n,s,a)}var i=o.bind(null,r,", ");t.addPropertiesHandler(n,i,["box-shadow","text-shadow"])}(o),function(t,e){function n(t){return t.toFixed(3).replace(/0+$/,"").replace(/\.$/,"")}function r(t,e,n){return Math.min(e,Math.max(t,n))}function o(t){if(/^\s*[-+]?(\d*\.)?\d+\s*$/.test(t))return Number(t)}function i(t,e){return[t,e,n]}function s(t,e){if(0!=t)return u(0,1/0)(t,e)}function a(t,e){return[t,e,function(t){return Math.round(r(1,1/0,t))}]}function u(t,e){return function(o,i){return[o,i,function(o){return n(r(t,e,o))}]}}function c(t){var e=t.trim().split(/\s*[\s,]\s*/);if(0!==e.length){for(var n=[],r=0;r<e.length;r++){var i=o(e[r]);if(void 0===i)return;n.push(i)}return n}}function l(t,e){if(t.length==e.length)return[t,e,function(t){return t.map(n).join(" ")}]}function f(t,e){return[t,e,Math.round]}t.clamp=r,t.addPropertiesHandler(c,l,["stroke-dasharray"]),t.addPropertiesHandler(o,u(0,1/0),["border-image-width","line-height"]),t.addPropertiesHandler(o,u(0,1),["opacity","shape-image-threshold"]),t.addPropertiesHandler(o,s,["flex-grow","flex-shrink"]),t.addPropertiesHandler(o,a,["orphans","widows"]),t.addPropertiesHandler(o,f,["z-index"]),t.parseNumber=o,t.parseNumberList=c,t.mergeNumbers=i,t.numberToString=n}(o),function(t,e){function n(t,e){if("visible"==t||"visible"==e)return[0,1,function(n){return n<=0?t:n>=1?e:"visible"}]}t.addPropertiesHandler(String,n,["visibility"])}(o),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){if(e[3])for(var n=0;n<3;n++)e[n]=Math.round(function(t){return Math.max(0,Math.min(255,t))}(e[n]/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=a.exec(t);s=e?e[0]:void 0}function n(){var t=Number(s);return e(),t}function r(){if("("!==s)return n();e();var t=i();return")"!==s?NaN:(e(),t)}function o(){for(var t=r();"*"===s||"/"===s;){var n=s;e();var o=r();"*"===n?t*=o:t/=o}return t}function i(){for(var t=o();"+"===s||"-"===s;){var n=s;e();var r=o();"+"===n?t+=r:t-=r}return t}var s,a=/([\+\-\w\.]+|[\(\)\*\/])/g;return e(),i()}function r(t,e){if("0"==(e=e.trim().toLowerCase())&&"px".search(t)>=0)return{px:0};if(/^[^(]*$|^calc/.test(e)){e=e.replace(/calc\(/g,"(");var r={};e=e.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;a<s.length;)s[a].test(i)?(i=i.replace(s[a],"$1"),a=0):a++;if("D"==i){for(var u in r){var c=n(e.replace(new RegExp("U"+u,"g"),"").replace(new RegExp(o,"g"),"*0"));if(!isFinite(c))return;r[u]=c}return r}}}function o(t,e){return i(t,e,!0)}function i(e,n,r){var o,i=[];for(o in e)i.push(o);for(o in n)i.indexOf(o)<0&&i.push(o);return e=i.map(function(t){return e[t]||0}),n=i.map(function(t){return n[t]||0}),[e,n,function(e){var n=e.map(function(n,o){return 1==e.length&&r&&(n=Math.max(n,0)),t.numberToString(n)+i[o]}).join(" + ");return e.length>1?"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=function(t){var e=h(t);if(e&&""==e[1])return e[0]},d=t.mergeNestedRepeated.bind(void 0,o," "),y=t.mergeNestedRepeated.bind(void 0,d,",");t.mergeNonNegativeSizePair=d,t.addPropertiesHandler(p,y,["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]}function o(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)}function i(t){return"rect("+t+")"}var s=t.mergeWrappedNestedRepeated.bind(null,i,o,", ");t.parseBox=r,t.mergeBoxes=s,t.addPropertiesHandler(r,s,["clip"])}(o),function(t,e){function n(t){return function(e){var n=0;return t.map(function(t){return t===l?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=p[s];if(!a)return;var u=n[2].split(","),c=a[0];if(c.length<u.length)return;for(var l=[],d=0;d<c.length;d++){var y,b=u[d],v=c[d];if(void 0===(y=b?{A:function(e){return"0"==e.trim()?h:t.parseAngle(e)},N:t.parseNumber,T:t.parseLengthOrPercent,L:t.parseLength}[v.toUpperCase()](b):{a:h,n:l[0],t:f}[v]))return;l.push(y)}if(o.push({t:s,d:l}),r.lastIndex==e.length)return o}}function i(t){return t.toFixed(6).replace(".000000","")}function s(e,n){if(e.decompositionPair!==n){e.decompositionPair=n;var r=t.makeMatrixDecomposition(e)}if(n.decompositionPair!==e){n.decompositionPair=e;var o=t.makeMatrixDecomposition(n)}return null==r[0]||null==o[0]?[[!1],[!0],function(t){return t?n[0].d:e[0].d}]:(r[0].push(0),o[0].push(1),[r,o,function(e){var n=t.quat(r[0][3],o[0][3],e[5]);return t.composeMatrix(e[0],e[1],e[2],n,e[4]).map(i).join(",")}])}function a(t){return t.replace(/[xy]/,"")}function u(t){return t.replace(/(x|y|z|3d)?$/,"3d")}function c(e,n){var r=t.makeMatrixDecomposition&&!0,o=!1;if(!e.length||!n.length){e.length||(o=!0,e=n,n=[]);for(var i=0;i<e.length;i++){var c=e[i].t,l=e[i].d,f="scale"==c.substr(0,5)?1:0;n.push({t:c,d:l.map(function(t){if("number"==typeof t)return f;var e={};for(var n in t)e[n]=f;return e})})}}var h=[],d=[],y=[];if(e.length!=n.length){if(!r)return;var b=s(e,n);h=[b[0]],d=[b[1]],y=[["matrix",[b[2]]]]}else for(var i=0;i<e.length;i++){var c,v=e[i].t,m=n[i].t,g=e[i].d,w=n[i].d,_=p[v],x=p[m];if(function(t,e){return"perspective"==t&&"perspective"==e||("matrix"==t||"matrix3d"==t)&&("matrix"==e||"matrix3d"==e)}(v,m)){if(!r)return;var b=s([e[i]],[n[i]]);h.push(b[0]),d.push(b[1]),y.push(["matrix",[b[2]]])}else{if(v==m)c=v;else if(_[2]&&x[2]&&a(v)==a(m))c=a(v),g=_[2](g),w=x[2](w);else{if(!_[1]||!x[1]||u(v)!=u(m)){if(!r)return;var b=s(e,n);h=[b[0]],d=[b[1]],y=[["matrix",[b[2]]]];break}c=u(v),g=_[1](g),w=x[1](w)}for(var O=[],S=[],j=[],E=0;E<g.length;E++){var k="number"==typeof g[E]?t.mergeNumbers:t.mergeDimensions,b=k(g[E],w[E]);O[E]=b[0],S[E]=b[1],j.push(b[2])}h.push(O),d.push(S),y.push([c,j])}}if(o){var T=h;h=d,d=T}return[h,d,function(t){return t.map(function(t,e){var n=t.map(function(t,n){return y[e][1][n](t)}).join(",");return"matrix"==y[e][0]&&16==n.split(",").length&&(y[e][0]="matrix3d"),y[e][0]+"("+n+")"}).join(" ")}]}var l=null,f={px:0},h={deg:0},p={matrix:["NNNNNN",[l,l,0,0,l,l,0,0,0,0,1,0,l,l,0,1],r],matrix3d:["NNNNNNNNNNNNNNNN",r],rotate:["A"],rotatex:["A"],rotatey:["A"],rotatez:["A"],rotate3d:["NNNA"],perspective:["L"],scale:["Nn",n([l,l,1]),r],scalex:["N",n([l,1,1]),n([l,1])],scaley:["N",n([1,l,1]),n([1,l])],scalez:["N",n([1,1,l])],scale3d:["NNN",r],skew:["Aa",null,r],skewx:["A",null,n([l,h])],skewy:["A",null,n([h,l])],translate:["Tt",n([l,l,f]),r],translatex:["T",n([l,f,f]),n([l,f])],translatey:["T",n([f,l,f]),n([f,l])],translatez:["L",n([f,f,l])],translate3d:["TTL",r]};t.addPropertiesHandler(o,c,["transform"]),t.transformToSvgMatrix=function(e){var n=t.transformListToMatrix(o(e));return"matrix("+i(n[0])+" "+i(n[1])+" "+i(n[4])+" "+i(n[5])+" "+i(n[12])+" "+i(n[13])+")"}}(o),function(t){function e(t){var e=Number(t);if(!(isNaN(e)||e<100||e>900||e%100!=0))return e}function n(e){return e=100*Math.round(e/100),e=t.clamp(100,900,e),400===e?"normal":700===e?"bold":String(e)}function r(t,e){return[t,e,n]}t.addPropertiesHandler(e,r,["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 s=i[0];if(s[0]=s[0]||"center",s[1]=s[1]||"center",3==e&&(s[2]=s[2]||{px:0}),s.length==e){if(/top|bottom/.test(s[0])||/left|right/.test(s[1])){var u=s[0];s[0]=s[1],s[1]=u}if(/left|right|center|Object/.test(s[0])&&/top|bottom|center|Object/.test(s[1]))return s.map(function(t){return"object"==(void 0===t?"undefined":n(t))?t:a[t]})}}}function i(n){var o=t.consumeRepeated(r,/^/,n);if(o){for(var i=o[0],s=[{"%":50},{"%":50}],u=0,c=!1,l=0;l<i.length;l++){var f=i[l];"string"==typeof f?(c=/bottom|right/.test(f),u={left:0,right:0,center:u,top:1,bottom:1}[f],s[u]=a[f],"center"==f&&u++):(c&&(f=e(f),f["%"]=(f["%"]||0)+100),s[u]=f,u++,c=!1)}return[s,o[1]]}}function s(e){var n=t.consumeRepeated(i,/^,/,e);if(n&&""==n[1])return n[0]}var a={left:{"%":0},center:{"%":50},right:{"%":100},top:{"%":0},bottom:{"%":100}},u=t.mergeNestedRepeated.bind(null,t.mergeDimensions," ");t.addPropertiesHandler(o.bind(null,3),u,["transform-origin"]),t.addPropertiesHandler(o.bind(null,2),u,["perspective-origin"]),t.consumePosition=i,t.mergeOffsetList=u;var c=t.mergeNestedRepeated.bind(null,u,", ");t.addPropertiesHandler(s,c,["background-position","object-position"])}(o),function(t){function e(e){var n=t.consumeToken(/^circle/,e);if(n&&n[0])return["circle"].concat(t.consumeList([t.ignore(t.consumeToken.bind(void 0,/^\(/)),r,t.ignore(t.consumeToken.bind(void 0,/^at/)),t.consumePosition,t.ignore(t.consumeToken.bind(void 0,/^\)/))],n[1]));var i=t.consumeToken(/^ellipse/,e);if(i&&i[0])return["ellipse"].concat(t.consumeList([t.ignore(t.consumeToken.bind(void 0,/^\(/)),o,t.ignore(t.consumeToken.bind(void 0,/^at/)),t.consumePosition,t.ignore(t.consumeToken.bind(void 0,/^\)/))],i[1]));var s=t.consumeToken(/^polygon/,e);return s&&s[0]?["polygon"].concat(t.consumeList([t.ignore(t.consumeToken.bind(void 0,/^\(/)),t.optional(t.consumeToken.bind(void 0,/^nonzero\s*,|^evenodd\s*,/),"nonzero,"),t.consumeSizePairList,t.ignore(t.consumeToken.bind(void 0,/^\)/))],s[1])):void 0}function n(e,n){if(e[0]===n[0])return"circle"==e[0]?t.mergeList(e.slice(1),n.slice(1),["circle(",t.mergeDimensions," at ",t.mergeOffsetList,")"]):"ellipse"==e[0]?t.mergeList(e.slice(1),n.slice(1),["ellipse(",t.mergeNonNegativeSizePair," at ",t.mergeOffsetList,")"]):"polygon"==e[0]&&e[1]==n[1]?t.mergeList(e.slice(2),n.slice(2),["polygon(",e[1],s,")"]):void 0}var r=t.consumeParenthesised.bind(null,t.parseLengthOrPercent),o=t.consumeRepeated.bind(void 0,r,/^/),i=t.mergeNestedRepeated.bind(void 0,t.mergeDimensions," "),s=t.mergeNestedRepeated.bind(void 0,i,",");t.addPropertiesHandler(e,n,["shape-outside"])}(o),function(t,e){function n(t,e){e.concat([t]).forEach(function(e){e in document.documentElement.style&&(r[t]=e),o[e]=t})}var r={},o={};n("transform",["webkitTransform","msTransform"]),n("transformOrigin",["webkitTransformOrigin"]),n("perspective",["webkitPerspective"]),n("perspectiveOrigin",["webkitPerspectiveOrigin"]),t.propertyName=function(t){return r[t]||t},t.unprefixedPropertyName=function(t){return o[t]||t}}(o)}(),function(){if(void 0===document.createElement("div").animate([]).oncancel){var t;if(window.performance&&performance.now)var t=function(){return performance.now()};else var t=function(){return Date.now()};var e=function(t,e,n){this.target=t,this.currentTime=e,this.timelineTime=n,this.type="cancel",this.bubbles=!1,this.cancelable=!1,this.currentTarget=t,this.defaultPrevented=!1,this.eventPhase=Event.AT_TARGET,this.timeStamp=Date.now()},n=window.Element.prototype.animate;window.Element.prototype.animate=function(r,o){var i=n.call(this,r,o);i._cancelHandlers=[],i.oncancel=null;var s=i.cancel;i.cancel=function(){s.call(this);var n=new e(this,null,t()),r=this._cancelHandlers.concat(this.oncancel?[this.oncancel]:[]);setTimeout(function(){r.forEach(function(t){t.call(n.target,n)})},0)};var a=i.addEventListener;i.addEventListener=function(t,e){"function"==typeof e&&"cancel"==t?this._cancelHandlers.push(e):a.call(this,t,e)};var u=i.removeEventListener;return i.removeEventListener=function(t,e){if("cancel"==t){var n=this._cancelHandlers.indexOf(e);n>=0&&this._cancelHandlers.splice(n,1)}else u.call(this,t,e)},i}}}(),function(t){var e=document.documentElement,n=null,r=!1;try{var o=getComputedStyle(e).getPropertyValue("opacity"),i="0"==o?"1":"0";n=e.animate({opacity:[i,i]},{duration:1}),n.currentTime=0,r=getComputedStyle(e).getPropertyValue("opacity")==i}catch(t){}finally{n&&n.cancel()}if(!r){var s=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)),s.call(this,e,n)}}}(r),e.true=t}({},function(){return this}())},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){function o(t,e){return(void 0===t?"undefined":n(t))===e}function i(t){return t.replace(/([a-z])-([a-z])/g,function(t,e,n){return e+n.toUpperCase()}).replace(/^-/,"")}function s(){return"function"!=typeof e.createElement?e.createElement(arguments[0]):S?e.createElementNS.call(e,"http://www.w3.org/2000/svg",arguments[0]):e.createElement.apply(e,arguments)}function a(){var t=e.body;return t||(t=s(S?"svg":"body"),t.fake=!0),t}function u(t,n,r,o){var i,u,c,l,f="modernizr",h=s("div"),p=a();if(parseInt(r,10))for(;r--;)c=s("div"),c.id=o?o[r]:f+(r+1),h.appendChild(c);return i=s("style"),i.type="text/css",i.id="s"+f,(p.fake?p:h).appendChild(i),p.appendChild(h),i.styleSheet?i.styleSheet.cssText=t:i.appendChild(e.createTextNode(t)),h.id=f,p.fake&&(p.style.background="",p.style.overflow="hidden",l=O.style.overflow,O.style.overflow="hidden",O.appendChild(p)),u=n(h,t),p.fake?(p.parentNode.removeChild(p),O.style.overflow=l,O.offsetHeight):h.parentNode.removeChild(h),!!u}function c(t,e){return!!~(""+t).indexOf(e)}function l(t,e){return function(){return t.apply(e,arguments)}}function f(t,e,n){var r;for(var i in t)if(t[i]in e)return!1===n?t[i]:(r=e[t[i]],o(r,"function")?l(r,n||e):r);return!1}function h(t){return t.replace(/([A-Z])/g,function(t,e){return"-"+e.toLowerCase()}).replace(/^ms-/,"-ms-")}function p(e,n,r){var o;if("getComputedStyle"in t){o=getComputedStyle.call(t,e,n);var i=t.console;if(null!==o)r&&(o=o.getPropertyValue(r));else if(i){var s=i.error?"error":"log";i[s].call(i,"getComputedStyle returning null, its possible modernizr test results are inaccurate")}}else o=!n&&e.currentStyle&&e.currentStyle[r];return o}function d(e,n){var o=e.length;if("CSS"in t&&"supports"in t.CSS){for(;o--;)if(t.CSS.supports(h(e[o]),n))return!0;return!1}if("CSSSupportsRule"in t){for(var i=[];o--;)i.push("("+h(e[o])+":"+n+")");return i=i.join(" or "),u("@supports ("+i+") { #modernizr { position: absolute; } }",function(t){return"absolute"==p(t,null,"position")})}return r}function y(t,e,n,a){function u(){f&&(delete C.style,delete C.modElem)}if(a=!o(a,"undefined")&&a,!o(n,"undefined")){var l=d(t,n);if(!o(l,"undefined"))return l}for(var f,h,p,y,b,v=["modernizr","tspan","samp"];!C.style&&v.length;)f=!0,C.modElem=s(v.shift()),C.style=C.modElem.style;for(p=t.length,h=0;h<p;h++)if(y=t[h],b=C.style[y],c(y,"-")&&(y=i(y)),C.style[y]!==r){if(a||o(n,"undefined"))return u(),"pfx"!=e||y;try{C.style[y]=n}catch(t){}if(C.style[y]!=b)return u(),"pfx"!=e||y}return u(),!1}function b(t,e,n,r,i){var s=t.charAt(0).toUpperCase()+t.slice(1),a=(t+" "+k.join(s+" ")+s).split(" ");return o(e,"string")||o(e,"undefined")?y(a,e,r,i):(a=(t+" "+P.join(s+" ")+s).split(" "),f(a,e,n))}function v(t,e,n){return b(t,r,r,e,n)}var m=[],g={_version:"3.5.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){m.push({name:t,fn:e,options:n})},addAsyncTest:function(t){m.push({name:null,fn:t})}},w=function(){};w.prototype=g,w=new w,/*!
|
15
|
-
{
|
16
|
-
"name": "CustomEvent",
|
17
|
-
"property": "customevent",
|
18
|
-
"tags": ["customevent"],
|
19
|
-
"authors": ["Alberto Elias"],
|
20
|
-
"notes": [{
|
21
|
-
"name": "W3C DOM reference",
|
22
|
-
"href": "https://www.w3.org/TR/DOM-Level-3-Events/#interface-CustomEvent"
|
23
|
-
}, {
|
24
|
-
"name": "MDN documentation",
|
25
|
-
"href": "https://developer.mozilla.org/en/docs/Web/API/CustomEvent"
|
26
|
-
}],
|
27
|
-
"polyfills": ["eventlistener"]
|
28
|
-
}
|
29
|
-
!*/
|
30
|
-
w.addTest("customevent","CustomEvent"in t&&"function"==typeof t.CustomEvent),/*!
|
31
|
-
{
|
32
|
-
"name": "Event Listener",
|
33
|
-
"property": "eventlistener",
|
34
|
-
"authors": ["Andrew Betts (@triblondon)"],
|
35
|
-
"notes": [{
|
36
|
-
"name": "W3C Spec",
|
37
|
-
"href": "https://www.w3.org/TR/DOM-Level-2-Events/events.html#Events-Registration-interfaces"
|
38
|
-
}],
|
39
|
-
"polyfills": ["eventlistener"]
|
40
|
-
}
|
41
|
-
!*/
|
42
|
-
w.addTest("eventlistener","addEventListener"in t),/*!
|
43
|
-
{
|
44
|
-
"name": "History API",
|
45
|
-
"property": "history",
|
46
|
-
"caniuse": "history",
|
47
|
-
"tags": ["history"],
|
48
|
-
"authors": ["Hay Kranen", "Alexander Farkas"],
|
49
|
-
"notes": [{
|
50
|
-
"name": "W3C Spec",
|
51
|
-
"href": "https://www.w3.org/TR/html51/browsers.html#the-history-interface"
|
52
|
-
}, {
|
53
|
-
"name": "MDN documentation",
|
54
|
-
"href": "https://developer.mozilla.org/en-US/docs/Web/API/window.history"
|
55
|
-
}],
|
56
|
-
"polyfills": ["historyjs", "html5historyapi"]
|
57
|
-
}
|
58
|
-
!*/
|
59
|
-
w.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)}),/*!
|
60
|
-
{
|
61
|
-
"name": "QuerySelector",
|
62
|
-
"property": "queryselector",
|
63
|
-
"caniuse": "queryselector",
|
64
|
-
"tags": ["queryselector"],
|
65
|
-
"authors": ["Andrew Betts (@triblondon)"],
|
66
|
-
"notes": [{
|
67
|
-
"name" : "W3C Selectors reference",
|
68
|
-
"href": "https://www.w3.org/TR/selectors-api/#queryselectorall"
|
69
|
-
}],
|
70
|
-
"polyfills": ["css-selector-engine"]
|
71
|
-
}
|
72
|
-
!*/
|
73
|
-
w.addTest("queryselector","querySelector"in e&&"querySelectorAll"in e),/*!
|
74
|
-
{
|
75
|
-
"name": "ES6 Promises",
|
76
|
-
"property": "promises",
|
77
|
-
"caniuse": "promises",
|
78
|
-
"polyfills": ["es6promises"],
|
79
|
-
"authors": ["Krister Kari", "Jake Archibald"],
|
80
|
-
"tags": ["es6"],
|
81
|
-
"notes": [{
|
82
|
-
"name": "The ES6 promises spec",
|
83
|
-
"href": "https://github.com/domenic/promises-unwrapping"
|
84
|
-
},{
|
85
|
-
"name": "Chromium dashboard - ES6 Promises",
|
86
|
-
"href": "https://www.chromestatus.com/features/5681726336532480"
|
87
|
-
},{
|
88
|
-
"name": "JavaScript Promises: There and back again - HTML5 Rocks",
|
89
|
-
"href": "http://www.html5rocks.com/en/tutorials/es6/promises/"
|
90
|
-
}]
|
91
|
-
}
|
92
|
-
!*/
|
93
|
-
w.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 _=[],x=g._config.usePrefixes?" -webkit- -moz- -o- -ms- ".split(" "):["",""];g._prefixes=x;var O=e.documentElement;/*!
|
94
|
-
{
|
95
|
-
"name": "classList",
|
96
|
-
"caniuse": "classlist",
|
97
|
-
"property": "classlist",
|
98
|
-
"tags": ["dom"],
|
99
|
-
"builderAliases": ["dataview_api"],
|
100
|
-
"notes": [{
|
101
|
-
"name": "MDN Docs",
|
102
|
-
"href": "https://developer.mozilla.org/en/DOM/element.classList"
|
103
|
-
}]
|
104
|
-
}
|
105
|
-
!*/
|
106
|
-
w.addTest("classlist","classList"in O),/*!
|
107
|
-
{
|
108
|
-
"name": "Document Fragment",
|
109
|
-
"property": "documentfragment",
|
110
|
-
"notes": [{
|
111
|
-
"name": "W3C DOM Level 1 Reference",
|
112
|
-
"href": "https://www.w3.org/TR/REC-DOM-Level-1/level-one-core.html#ID-B63ED1A3"
|
113
|
-
}, {
|
114
|
-
"name": "SitePoint Reference",
|
115
|
-
"href": "http://reference.sitepoint.com/javascript/DocumentFragment"
|
116
|
-
}, {
|
117
|
-
"name": "QuirksMode Compatibility Tables",
|
118
|
-
"href": "http://www.quirksmode.org/m/w3c_core.html#t112"
|
119
|
-
}],
|
120
|
-
"authors": ["Ron Waldon (@jokeyrhyme)"],
|
121
|
-
"knownBugs": ["false-positive on Blackberry 9500, see QuirksMode note"],
|
122
|
-
"tags": []
|
123
|
-
}
|
124
|
-
!*/
|
125
|
-
w.addTest("documentfragment",function(){return"createDocumentFragment"in e&&"appendChild"in O});var S="svg"===O.nodeName.toLowerCase();/*!
|
126
|
-
{
|
127
|
-
"name": "CSS Opacity",
|
128
|
-
"caniuse": "css-opacity",
|
129
|
-
"property": "opacity",
|
130
|
-
"tags": ["css"]
|
131
|
-
}
|
132
|
-
!*/
|
133
|
-
w.addTest("opacity",function(){var t=s("a").style;return t.cssText=x.join("opacity:.55;"),/^0.55$/.test(t.opacity)}),/*!
|
134
|
-
{
|
135
|
-
"name": "CSS Pointer Events",
|
136
|
-
"caniuse": "pointer-events",
|
137
|
-
"property": "csspointerevents",
|
138
|
-
"authors": ["ausi"],
|
139
|
-
"tags": ["css"],
|
140
|
-
"builderAliases": ["css_pointerevents"],
|
141
|
-
"notes": [
|
142
|
-
{
|
143
|
-
"name": "MDN Docs",
|
144
|
-
"href": "https://developer.mozilla.org/en-US/docs/Web/CSS/pointer-events"
|
145
|
-
},{
|
146
|
-
"name": "Test Project Page",
|
147
|
-
"href": "https://ausi.github.com/Feature-detection-technique-for-pointer-events/"
|
148
|
-
},{
|
149
|
-
"name": "Test Project Wiki",
|
150
|
-
"href": "https://github.com/ausi/Feature-detection-technique-for-pointer-events/wiki"
|
151
|
-
},
|
152
|
-
{
|
153
|
-
"name": "Related Github Issue",
|
154
|
-
"href": "https://github.com/Modernizr/Modernizr/issues/80"
|
155
|
-
}
|
156
|
-
]
|
157
|
-
}
|
158
|
-
!*/
|
159
|
-
w.addTest("csspointerevents",function(){var t=s("a").style;return t.cssText="pointer-events:auto","auto"===t.pointerEvents}),/*!
|
160
|
-
{
|
161
|
-
"name": "CSS Font rem Units",
|
162
|
-
"caniuse": "rem",
|
163
|
-
"authors": ["nsfmc"],
|
164
|
-
"property": "cssremunit",
|
165
|
-
"tags": ["css"],
|
166
|
-
"builderAliases": ["css_remunit"],
|
167
|
-
"notes": [{
|
168
|
-
"name": "W3C Spec",
|
169
|
-
"href": "https://www.w3.org/TR/css3-values/#relative0"
|
170
|
-
},{
|
171
|
-
"name": "Font Size with rem by Jonathan Snook",
|
172
|
-
"href": "http://snook.ca/archives/html_and_css/font-size-with-rem"
|
173
|
-
}]
|
174
|
-
}
|
175
|
-
!*/
|
176
|
-
w.addTest("cssremunit",function(){var t=s("a").style;try{t.fontSize="3rem"}catch(t){}return/rem/.test(t.fontSize)});var j=g.testStyles=u;/*!
|
177
|
-
{
|
178
|
-
"name": "Touch Events",
|
179
|
-
"property": "touchevents",
|
180
|
-
"caniuse" : "touch",
|
181
|
-
"tags": ["media", "attribute"],
|
182
|
-
"notes": [{
|
183
|
-
"name": "Touch Events spec",
|
184
|
-
"href": "https://www.w3.org/TR/2013/WD-touch-events-20130124/"
|
185
|
-
}],
|
186
|
-
"warnings": [
|
187
|
-
"Indicates if the browser supports the Touch Events spec, and does not necessarily reflect a touchscreen device"
|
188
|
-
],
|
189
|
-
"knownBugs": [
|
190
|
-
"False-positive on some configurations of Nokia N900",
|
191
|
-
"False-positive on some BlackBerry 6.0 builds – https://github.com/Modernizr/Modernizr/issues/372#issuecomment-3112695"
|
192
|
-
]
|
193
|
-
}
|
194
|
-
!*/
|
195
|
-
w.addTest("touchevents",function(){var n;if("ontouchstart"in t||t.DocumentTouch&&e instanceof DocumentTouch)n=!0;else{var r=["@media (",x.join("touch-enabled),("),"heartz",")","{#modernizr{top:9px;position:absolute}}"].join("");j(r,function(t){n=9===t.offsetTop})}return n});var E="Moz O ms Webkit",k=g._config.usePrefixes?E.split(" "):[];g._cssomPrefixes=k;var T=function(e){var n,o=x.length,i=t.CSSRule;if(void 0===i)return r;if(!e)return!1;if(e=e.replace(/^@/,""),(n=e.replace(/-/g,"_").toUpperCase()+"_RULE")in i)return"@"+e;for(var s=0;s<o;s++){var a=x[s];if(a.toUpperCase()+"_"+n in i)return"@-"+a.toLowerCase()+"-"+e}return!1};g.atRule=T;var P=g._config.usePrefixes?E.toLowerCase().split(" "):[];g._domPrefixes=P;var A={elem:s("modernizr")};w._q.push(function(){delete A.elem});var C={style:A.elem.style};w._q.unshift(function(){delete C.style}),g.testAllProps=b;var M=g.prefixed=function(t,e,n){return 0===t.indexOf("@")?T(t):(-1!=t.indexOf("-")&&(t=i(t)),e?b(t,e,n):b(t,"pfx"))};/*!
|
196
|
-
{
|
197
|
-
"name": "requestAnimationFrame",
|
198
|
-
"property": "requestanimationframe",
|
199
|
-
"aliases": ["raf"],
|
200
|
-
"caniuse": "requestanimationframe",
|
201
|
-
"tags": ["animation"],
|
202
|
-
"authors": ["Addy Osmani"],
|
203
|
-
"notes": [{
|
204
|
-
"name": "W3C spec",
|
205
|
-
"href": "https://www.w3.org/TR/animation-timing/"
|
206
|
-
}],
|
207
|
-
"polyfills": ["raf"]
|
208
|
-
}
|
209
|
-
!*/
|
210
|
-
w.addTest("requestanimationframe",!!M("requestAnimationFrame",t),{aliases:["raf"]}),/*!
|
211
|
-
{
|
212
|
-
"name": "matchMedia",
|
213
|
-
"property": "matchmedia",
|
214
|
-
"caniuse" : "matchmedia",
|
215
|
-
"tags": ["matchmedia"],
|
216
|
-
"authors": ["Alberto Elias"],
|
217
|
-
"notes": [{
|
218
|
-
"name": "W3C CSSOM View Module",
|
219
|
-
"href": "https://drafts.csswg.org/cssom-view/#the-mediaquerylist-interface"
|
220
|
-
}, {
|
221
|
-
"name": "MDN documentation",
|
222
|
-
"href": "https://developer.mozilla.org/en-US/docs/Web/API/Window.matchMedia"
|
223
|
-
}],
|
224
|
-
"polyfills": ["matchmediajs"]
|
225
|
-
}
|
226
|
-
!*/
|
227
|
-
w.addTest("matchmedia",!!M("matchMedia",t)),g.testAllProps=v,/*!
|
228
|
-
{
|
229
|
-
"name": "CSS Animations",
|
230
|
-
"property": "cssanimations",
|
231
|
-
"caniuse": "css-animation",
|
232
|
-
"polyfills": ["transformie", "csssandpaper"],
|
233
|
-
"tags": ["css"],
|
234
|
-
"warnings": ["Android < 4 will pass this test, but can only animate a single property at a time"],
|
235
|
-
"notes": [{
|
236
|
-
"name" : "Article: 'Dispelling the Android CSS animation myths'",
|
237
|
-
"href": "https://goo.gl/OGw5Gm"
|
238
|
-
}]
|
239
|
-
}
|
240
|
-
!*/
|
241
|
-
w.addTest("cssanimations",v("animationName","a",!0)),/*!
|
242
|
-
{
|
243
|
-
"name": "CSS Transforms",
|
244
|
-
"property": "csstransforms",
|
245
|
-
"caniuse": "transforms2d",
|
246
|
-
"tags": ["css"]
|
247
|
-
}
|
248
|
-
!*/
|
249
|
-
w.addTest("csstransforms",function(){return-1===navigator.userAgent.indexOf("Android 2.")&&v("transform","scale(1)",!0)}),function(){var t,e,n,r,i,s,a;for(var u in m)if(m.hasOwnProperty(u)){if(t=[],e=m[u],e.name&&(t.push(e.name.toLowerCase()),e.options&&e.options.aliases&&e.options.aliases.length))for(n=0;n<e.options.aliases.length;n++)t.push(e.options.aliases[n].toLowerCase());for(r=o(e.fn,"function")?e.fn():e.fn,i=0;i<t.length;i++)s=t[i],a=s.split("."),1===a.length?w[a[0]]=r:(!w[a[0]]||w[a[0]]instanceof Boolean||(w[a[0]]=new Boolean(w[a[0]])),w[a[0]][a[1]]=r),_.push((r?"":"no-")+a.join("-"))}}(),delete g.addTest,delete g.addAsyncTest;for(var R=0;R<w._q.length;R++)w._q[R]();t.Modernizr=w}(window,document)},function(t,e){console.log(" __ __ __ __ \r\n/\\ \\/\\ \\ /\\ \\ __ /\\ \\ \r\n\\ \\ \\_\\ \\ __ __ \\_\\ \\ __ /\\_\\ __ ___ \\ \\ \\/'\\ \r\n \\ \\ _ \\ /\\ \\/\\ \\ /'_` \\ /'__`\\ \\/\\ \\ /'__`\\ /'___\\\\ \\ , < \r\n \\ \\ \\ \\ \\\\ \\ \\_\\ \\ /\\ \\L\\ \\ /\\ __/ \\ \\ \\ /\\ \\L\\.\\_ /\\ \\__/ \\ \\ \\\\`\\ \r\n \\ \\_\\ \\_\\\\/`____ \\\\ \\___,_\\\\ \\____\\ _\\ \\ \\\\ \\__/.\\_\\\\ \\____\\ \\ \\_\\ \\_\\\r\n \\/_/\\/_/ `/___/> \\\\/__,_ / \\/____//\\ \\_\\ \\\\/__/\\/_/ \\/____/ \\/_/\\/_/\r\n /\\___/ \\ \\____/ \r\n \\/__/ \\/___/ \n\n"),console.log("Powered by Hydejack v7.5.1 <https://qwtel.com/hydejack/>")},function(t,e){if(!("content"in document.createElement("template")))for(var n=document.getElementsByTagName("template"),r=n.length,o=0;o<r;++o){for(var i=n[o],s=i.childNodes,a=document.createDocumentFragment();s[0];)a.appendChild(s[0]);i.content=a}},function(t,e){if(window.ga&&!navigator.CookiesOK&&(!localStorage||!localStorage.getItem("hy:cookiesOK"))){var n=document.getElementById("_cookies-banner-template");if(n){var r=document.getElementsByTagName("hy-push-state")[0];r.insertBefore(document.importNode(n.content,!0),r.firstChild),document.getElementById("_cookies-ok").addEventListener("click",function(){localStorage&&localStorage.setItem("hy:cookiesOK",!0);var t=document.getElementById("_cookies-banner");t.parentNode.removeChild(t),window.ga(function(t){window.ga("set","anonymizeIp",void 0),localStorage&&localStorage.setItem("ga:clientId",t.get("clientId"))})},{once:!0})}}},function(t,e,n){"use strict";var r=n(2),o=n(18)(0),i=n(45)([].forEach,!0);r(r.P+r.F*!i,"Array",{forEach:function(t){return o(this,t,arguments[1])}})},function(t,e,n){var r=n(36),o=n(37),i=n(39),s=Object.defineProperty;e.f=n(9)?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return s(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(3);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e,n){t.exports=!n(9)&&!n(6)(function(){return 7!=Object.defineProperty(n(38)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(3),o=n(5).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,e,n){var r=n(3);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){var r=n(5),o=n(8),i=n(15),s=n(10)("src"),a=Function.toString,u=(""+a).split("toString");n(1).inspectSource=function(t){return a.call(t)},(t.exports=function(t,e,n,a){var c="function"==typeof n;c&&(i(n,"name")||o(n,"name",e)),t[e]!==n&&(c&&(i(n,s)||o(n,s,t[e]?""+t[e]:u.join(String(e)))),t===r?t[e]=n:a?t[e]?t[e]=n:o(t,e,n):(delete t[e],o(t,e,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[s]||a.call(this)})},function(t,e,n){var r=n(43);t.exports=function(t,e){return new(r(t))(e)}},function(t,e,n){var r=n(3),o=n(44),i=n(7)("species");t.exports=function(t){var e;return o(t)&&(e=t.constructor,"function"!=typeof e||e!==Array&&!o(e.prototype)||(e=void 0),r(e)&&null===(e=e[i])&&(e=void 0)),void 0===e?Array:e}},function(t,e,n){var r=n(12);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){"use strict";var r=n(6);t.exports=function(t,e){return!!t&&r(function(){e?t.call(null,function(){},1):t.call(null)})}},function(t,e,n){var r=n(2);r(r.P,"Function",{bind:n(47)})},function(t,e,n){"use strict";var r=n(17),o=n(3),i=n(48),s=[].slice,a={},u=function(t,e,n){if(!(e in a)){for(var r=[],o=0;o<e;o++)r[o]="a["+o+"]";a[e]=Function("F,a","return new F("+r.join(",")+")")}return a[e](t,n)};t.exports=Function.bind||function(t){var e=r(this),n=s.call(arguments,1),a=function r(){var o=n.concat(s.call(arguments));return this instanceof r?u(e,o.length,o):i(e,o,t)};return o(e.prototype)&&(a.prototype=e.prototype),a}},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){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,n){var r=n(51);"string"==typeof r&&(r=[[t.i,r,""]]);var o={hmr:!0};o.transform=void 0,o.insertInto=void 0;n(53)(r,o);r.locals&&(t.exports=r.locals)},function(t,e,n){e=t.exports=n(52)(!1),e.push([t.i,"@media screen {\n .hy-drawer-scrim {\n position: fixed;\n top: 0;\n left: 0;\n height: 100vh;\n width: 100vw;\n z-index: 20;\n opacity: 0;\n pointer-events: none;\n background: rgba(0, 0, 0, 0.5);\n transform: translateX(0);\n -webkit-tap-highlight-color: transparent;\n }\n\n .hy-drawer-content {\n position: fixed;\n top: 0;\n height: 100vh;\n z-index: 30;\n overflow-x: hidden;\n overflow-y: auto;\n transform: translateX(0);\n width: 300px;\n background: #e8e8e8;\n box-shadow: 0 0 15px rgba(0, 0, 0, 0.25);\n contain: strict;\n -webkit-overflow-scrolling: touch;\n }\n\n .hy-drawer-content.hy-drawer-left {\n left: -300px;\n }\n\n .hy-drawer-content.hy-drawer-right {\n right: -300px;\n }\n\n .hy-drawer-content.hy-drawer-left.hy-drawer-opened {\n left: 0 !important;\n transform: translateX(0) !important;\n }\n\n .hy-drawer-content.hy-drawer-right.hy-drawer-opened {\n right: 0 !important;\n transform: translateX(0) !important;\n }\n\n .hy-drawer-grab {\n cursor: move;\n cursor: -webkit-grab;\n cursor: -moz-grab;\n cursor: grab;\n }\n\n .hy-drawer-grabbing {\n cursor: -webkit-grabbing;\n cursor: -moz-grabbing;\n cursor: grabbing;\n }\n}\n\n@media print {\n .hy-drawer-scrim {\n display: none !important;\n }\n\n .hy-drawer-content {\n transform: none !important;\n }\n}\n",""])},function(t,e){function n(t,e){var n=t[1]||"",o=t[3];if(!o)return n;if(e&&"function"==typeof btoa){var i=r(o);return[n].concat(o.sources.map(function(t){return"/*# sourceURL="+o.sourceRoot+t+" */"})).concat([i]).join("\n")}return[n].join("\n")}function r(t){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t))))+" */"}t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var r=n(e,t);return e[2]?"@media "+e[2]+"{"+r+"}":r}).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var r={},o=0;o<this.length;o++){var i=this[o][0];"number"==typeof i&&(r[i]=!0)}for(o=0;o<t.length;o++){var s=t[o];"number"==typeof s[0]&&r[s[0]]||(n&&!s[2]?s[2]=n:n&&(s[2]="("+s[2]+") and ("+n+")"),e.push(s))}},e}},function(t,e,n){function r(t,e){for(var n=0;n<t.length;n++){var r=t[n],o=d[r.id];if(o){o.refs++;for(var i=0;i<o.parts.length;i++)o.parts[i](r.parts[i]);for(;i<r.parts.length;i++)o.parts.push(l(r.parts[i],e))}else{for(var s=[],i=0;i<r.parts.length;i++)s.push(l(r.parts[i],e));d[r.id]={id:r.id,refs:1,parts:s}}}}function o(t,e){for(var n=[],r={},o=0;o<t.length;o++){var i=t[o],s=e.base?i[0]+e.base:i[0],a=i[1],u=i[2],c=i[3],l={css:a,media:u,sourceMap:c};r[s]?r[s].parts.push(l):n.push(r[s]={id:s,parts:[l]})}return n}function i(t,e){var n=v(t.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var r=w[w.length-1];if("top"===t.insertAt)r?r.nextSibling?n.insertBefore(e,r.nextSibling):n.appendChild(e):n.insertBefore(e,n.firstChild),w.push(e);else if("bottom"===t.insertAt)n.appendChild(e);else{if("object"!=typeof t.insertAt||!t.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var o=v(t.insertInto+" "+t.insertAt.before);n.insertBefore(e,o)}}function s(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t);var e=w.indexOf(t);e>=0&&w.splice(e,1)}function a(t){var e=document.createElement("style");return t.attrs.type="text/css",c(e,t.attrs),i(t,e),e}function u(t){var e=document.createElement("link");return t.attrs.type="text/css",t.attrs.rel="stylesheet",c(e,t.attrs),i(t,e),e}function c(t,e){Object.keys(e).forEach(function(n){t.setAttribute(n,e[n])})}function l(t,e){var n,r,o,i;if(e.transform&&t.css){if(!(i=e.transform(t.css)))return function(){};t.css=i}if(e.singleton){var c=g++;n=m||(m=a(e)),r=f.bind(null,n,c,!1),o=f.bind(null,n,c,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=u(e),r=p.bind(null,n,e),o=function(){s(n),n.href&&URL.revokeObjectURL(n.href)}):(n=a(e),r=h.bind(null,n),o=function(){s(n)});return r(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;r(t=e)}else o()}}function f(t,e,n,r){var o=n?"":r.css;if(t.styleSheet)t.styleSheet.cssText=x(e,o);else{var i=document.createTextNode(o),s=t.childNodes;s[e]&&t.removeChild(s[e]),s.length?t.insertBefore(i,s[e]):t.appendChild(i)}}function h(t,e){var n=e.css,r=e.media;if(r&&t.setAttribute("media",r),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}function p(t,e,n){var r=n.css,o=n.sourceMap,i=void 0===e.convertToAbsoluteUrls&&o;(e.convertToAbsoluteUrls||i)&&(r=_(r)),o&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */");var s=new Blob([r],{type:"text/css"}),a=t.href;t.href=URL.createObjectURL(s),a&&URL.revokeObjectURL(a)}var d={},y=function(t){var e;return function(){return void 0===e&&(e=t.apply(this,arguments)),e}}(function(){return window&&document&&document.all&&!window.atob}),b=function(t){return document.querySelector(t)},v=function(t){var e={};return function(t){if("function"==typeof t)return t();if(void 0===e[t]){var n=b.call(this,t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}e[t]=n}return e[t]}}(),m=null,g=0,w=[],_=n(54);t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");e=e||{},e.attrs="object"==typeof e.attrs?e.attrs:{},e.singleton||"boolean"==typeof e.singleton||(e.singleton=y()),e.insertInto||(e.insertInto="head"),e.insertAt||(e.insertAt="bottom");var n=o(t,e);return r(n,e),function(t){for(var i=[],s=0;s<n.length;s++){var a=n[s],u=d[a.id];u.refs--,i.push(u)}if(t){r(o(t,e),e)}for(var s=0;s<i.length;s++){var u=i[s];if(0===u.refs){for(var c=0;c<u.parts.length;c++)u.parts[c]();delete d[u.id]}}}};var x=function(){var t=[];return function(e,n){return t[e]=n,t.filter(Boolean).join("\n")}}()},function(t,e){t.exports=function(t){var e="undefined"!=typeof window&&window.location;if(!e)throw new Error("fixUrls requires window.location");if(!t||"string"!=typeof t)return t;var n=e.protocol+"//"+e.host,r=n+e.pathname.replace(/\/[^\/]*$/,"/");return t.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(t,e){var o=e.trim().replace(/^"(.*)"$/,function(t,e){return e}).replace(/^'(.*)'$/,function(t,e){return e});if(/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(o))return t;var i;return i=0===o.indexOf("//")?o:0===o.indexOf("/")?n+o:r+o.replace(/^\.\//,""),"url("+JSON.stringify(i)+")"})}},function(t,e,n){n(56),t.exports=n(1).Object.assign},function(t,e,n){var r=n(2);r(r.S+r.F,"Object",{assign:n(57)})},function(t,e,n){"use strict";var r=n(58),o=n(63),i=n(64),s=n(19),a=n(11),u=Object.assign;t.exports=!u||n(6)(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=u({},t)[n]||Object.keys(u({},e)).join("")!=r})?function(t,e){for(var n=s(t),u=arguments.length,c=1,l=o.f,f=i.f;u>c;)for(var h,p=a(arguments[c++]),d=l?r(p).concat(l(p)):r(p),y=d.length,b=0;y>b;)f.call(p,h=d[b++])&&(n[h]=p[h]);return n}:u},function(t,e,n){var r=n(59),o=n(62);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e,n){var r=n(15),o=n(23),i=n(24)(!1),s=n(61)("IE_PROTO");t.exports=function(t,e){var n,a=o(t),u=0,c=[];for(n in a)n!=s&&r(a,n)&&c.push(n);for(;e.length>u;)r(a,n=e[u++])&&(~i(c,n)||c.push(n));return c}},function(t,e,n){var r=n(21),o=Math.max,i=Math.min;t.exports=function(t,e){return t=r(t),t<0?o(t+e,0):i(t,e)}},function(t,e,n){var r=n(22)("keys"),o=n(10);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){n(66),t.exports=n(1).String.includes},function(t,e,n){"use strict";var r=n(2),o=n(67);r(r.P+r.F*n(69)("includes"),"String",{includes:function(t){return!!~o(this,t,"includes").indexOf(t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){var r=n(68),o=n(13);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){var r=n(3),o=n(12),i=n(7)("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(7)("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){n(71),t.exports=n(1).Array.find},function(t,e,n){"use strict";var r=n(2),o=n(18)(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(25)("find")},function(t,e,n){"use strict";function r(t,e){if(!(this instanceof r))return new r(t,e);if(e&&e in p&&(e=null),e&&!(e in f))throw new Error("Unknown model: "+e);var n,o;if(t)if(t instanceof r)this.model=t.model,this.color=t.color.slice(),this.valpha=t.valpha;else if("string"==typeof t){var i=l.get(t);if(null===i)throw new Error("Unable to parse color from string: "+t);this.model=i.model,o=f[this.model].channels,this.color=i.value.slice(0,o),this.valpha="number"==typeof i.value[o]?i.value[o]:1}else if(t.length){this.model=e||"rgb",o=f[this.model].channels;var s=h.call(t,0,o);this.color=c(s,o),this.valpha="number"==typeof t[o]?t[o]: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 a=Object.keys(t);"alpha"in t&&(a.splice(a.indexOf("alpha"),1),this.valpha="number"==typeof t.alpha?t.alpha:0);var u=a.sort().join("");if(!(u in d))throw new Error("Unable to parse color from object: "+JSON.stringify(t));this.model=d[u];var b=f[this.model].labels,v=[];for(n=0;n<b.length;n++)v.push(t[b[n]]);this.color=c(v)}else this.model="rgb",this.color=[0,0,0],this.valpha=1;if(y[this.model])for(o=f[this.model].channels,n=0;n<o;n++){var m=y[this.model][n];m&&(this.color[n]=m(this.color[n]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}function o(t,e){return Number(t.toFixed(e))}function i(t){return function(e){return o(e,t)}}function s(t,e,n){return t=Array.isArray(t)?t:[t],t.forEach(function(t){(y[t]||(y[t]=[]))[e]=n}),t=t[0],function(r){var o;return arguments.length?(n&&(r=n(r)),o=this[t](),o.color[e]=r,o):(o=this[t]().color[e],n&&(o=n(o)),o)}}function a(t){return function(e){return Math.max(0,Math.min(t,e))}}function u(t){return Array.isArray(t)?t:[t]}function c(t,e){for(var n=0;n<e;n++)"number"!=typeof t[n]&&(t[n]=0);return t}var l=n(73),f=n(76),h=[].slice,p=["keyword","gray","hex"],d={};Object.keys(f).forEach(function(t){d[h.call(f[t].labels).sort().join("")]=t});var y={};r.prototype={toString:function(){return this.string()},toJSON:function(){return this[this.model]()},string:function(t){var e=this.model in l.to?this:this.rgb();e=e.round("number"==typeof t?t:1);var n=1===e.valpha?e.color:e.color.concat(this.valpha);return l.to[e.model](n)},percentString:function(t){var e=this.rgb().round("number"==typeof t?t:1),n=1===e.valpha?e.color:e.color.concat(this.valpha);return l.to.rgb.percent(n)},array:function(){return 1===this.valpha?this.color.slice():this.color.concat(this.valpha)},object:function(){for(var t={},e=f[this.model].channels,n=f[this.model].labels,r=0;r<e;r++)t[n[r]]=this.color[r];return 1!==this.valpha&&(t.alpha=this.valpha),t},unitArray:function(){var t=this.rgb().color;return t[0]/=255,t[1]/=255,t[2]/=255,1!==this.valpha&&t.push(this.valpha),t},unitObject:function(){var t=this.rgb().object();return t.r/=255,t.g/=255,t.b/=255,1!==this.valpha&&(t.alpha=this.valpha),t},round:function(t){return t=Math.max(t||0,0),new r(this.color.map(i(t)).concat(this.valpha),this.model)},alpha:function(t){return arguments.length?new r(this.color.concat(Math.max(0,Math.min(1,t))),this.model):this.valpha},red:s("rgb",0,a(255)),green:s("rgb",1,a(255)),blue:s("rgb",2,a(255)),hue:s(["hsl","hsv","hsl","hwb","hcg"],0,function(t){return(t%360+360)%360}),saturationl:s("hsl",1,a(100)),lightness:s("hsl",2,a(100)),saturationv:s("hsv",1,a(100)),value:s("hsv",2,a(100)),chroma:s("hcg",1,a(100)),gray:s("hcg",2,a(100)),white:s("hwb",1,a(100)),wblack:s("hwb",2,a(100)),cyan:s("cmyk",0,a(100)),magenta:s("cmyk",1,a(100)),yellow:s("cmyk",2,a(100)),black:s("cmyk",3,a(100)),x:s("xyz",0,a(100)),y:s("xyz",1,a(100)),z:s("xyz",2,a(100)),l:s("lab",0,a(100)),a:s("lab",1),b:s("lab",2),keyword:function(t){return arguments.length?new r(t):f[this.model].keyword(this.color)},hex:function(t){return arguments.length?new r(t):l.to.hex(this.rgb().round().color)},rgbNumber:function(){var t=this.rgb().color;return(255&t[0])<<16|(255&t[1])<<8|255&t[2]},luminosity:function(){for(var t=this.rgb().color,e=[],n=0;n<t.length;n++){var r=t[n]/255;e[n]=r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4)}return.2126*e[0]+.7152*e[1]+.0722*e[2]},contrast:function(t){var e=this.luminosity(),n=t.luminosity();return e>n?(e+.05)/(n+.05):(n+.05)/(e+.05)},level:function(t){var e=this.contrast(t);return e>=7.1?"AAA":e>=4.5?"AA":""},dark:function(){var t=this.rgb().color;return(299*t[0]+587*t[1]+114*t[2])/1e3<128},light:function(){return!this.dark()},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 r.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+t)%360,n=n<0?360+n:n,e.color[0]=n,e},mix:function(t,e){var n=t.rgb(),o=this.rgb(),i=void 0===e?.5:e,s=2*i-1,a=n.alpha()-o.alpha(),u=((s*a==-1?s:(s+a)/(1+s*a))+1)/2,c=1-u;return r.rgb(u*n.red()+c*o.red(),u*n.green()+c*o.green(),u*n.blue()+c*o.blue(),n.alpha()*i+o.alpha()*(1-i))}},Object.keys(f).forEach(function(t){if(-1===p.indexOf(t)){var e=f[t].channels;r.prototype[t]=function(){if(this.model===t)return new r(this);if(arguments.length)return new r(arguments,t);var n="number"==typeof arguments[e]?e:this.valpha;return new r(u(f[this.model][t].raw(this.color)).concat(n),t)},r[t]=function(n){return"number"==typeof n&&(n=c(h.call(arguments),e)),new r(n,t)}}}),t.exports=r},function(t,e,n){function r(t,e,n){return Math.min(Math.max(e,t),n)}function o(t){var e=t.toString(16).toUpperCase();return e.length<2?"0"+e:e}var i=n(26),s=n(74),a={};for(var u in i)i.hasOwnProperty(u)&&(a[i[u]]=u);var c=t.exports={to:{}};c.get=function(t){var e,n,r=t.substring(0,3).toLowerCase();switch(r){case"hsl":e=c.get.hsl(t),n="hsl";break;case"hwb":e=c.get.hwb(t),n="hwb";break;default:e=c.get.rgb(t),n="rgb"}return e?{model:n,value:e}:null},c.get.rgb=function(t){if(!t)return null;var e,n,o,s=/^#([a-f0-9]{3,4})$/i,a=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i,u=/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/,c=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/,l=/(\D+)/,f=[0,0,0,1];if(e=t.match(a)){for(o=e[2],e=e[1],n=0;n<3;n++){var h=2*n;f[n]=parseInt(e.slice(h,h+2),16)}o&&(f[3]=Math.round(parseInt(o,16)/255*100)/100)}else if(e=t.match(s)){for(e=e[1],o=e[3],n=0;n<3;n++)f[n]=parseInt(e[n]+e[n],16);o&&(f[3]=Math.round(parseInt(o+o,16)/255*100)/100)}else if(e=t.match(u)){for(n=0;n<3;n++)f[n]=parseInt(e[n+1],0);e[4]&&(f[3]=parseFloat(e[4]))}else{if(!(e=t.match(c)))return(e=t.match(l))?"transparent"===e[1]?[0,0,0,0]:(f=i[e[1]])?(f[3]=1,f):null:null;for(n=0;n<3;n++)f[n]=Math.round(2.55*parseFloat(e[n+1]));e[4]&&(f[3]=parseFloat(e[4]))}for(n=0;n<3;n++)f[n]=r(f[n],0,255);return f[3]=r(f[3],0,1),f},c.get.hsl=function(t){if(!t)return null;var e=/^hsla?\(\s*([+-]?\d*[\.]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/,n=t.match(e);if(n){var o=parseFloat(n[4]);return[(parseFloat(n[1])%360+360)%360,r(parseFloat(n[2]),0,100),r(parseFloat(n[3]),0,100),r(isNaN(o)?1:o,0,1)]}return null},c.get.hwb=function(t){if(!t)return null;var e=/^hwb\(\s*([+-]?\d*[\.]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/,n=t.match(e);if(n){var o=parseFloat(n[4]);return[(parseFloat(n[1])%360+360)%360,r(parseFloat(n[2]),0,100),r(parseFloat(n[3]),0,100),r(isNaN(o)?1:o,0,1)]}return null},c.to.hex=function(){var t=s(arguments);return"#"+o(t[0])+o(t[1])+o(t[2])+(t[3]<1?o(Math.round(255*t[3])):"")},c.to.rgb=function(){var t=s(arguments);return t.length<4||1===t[3]?"rgb("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+")":"rgba("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+", "+t[3]+")"},c.to.rgb.percent=function(){var t=s(arguments),e=Math.round(t[0]/255*100),n=Math.round(t[1]/255*100),r=Math.round(t[2]/255*100);return t.length<4||1===t[3]?"rgb("+e+"%, "+n+"%, "+r+"%)":"rgba("+e+"%, "+n+"%, "+r+"%, "+t[3]+")"},c.to.hsl=function(){var t=s(arguments);return t.length<4||1===t[3]?"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)":"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+t[3]+")"},c.to.hwb=function(){var t=s(arguments),e="";return t.length>=4&&1!==t[3]&&(e=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+e+")"},c.to.keyword=function(t){return a[t.slice(0,3)]}},function(t,e,n){"use strict";var r=n(75),o=Array.prototype.concat,i=Array.prototype.slice,s=t.exports=function(t){for(var e=[],n=0,s=t.length;n<s;n++){var a=t[n];r(a)?e=o.call(e,i.call(a)):e.push(a)}return e};s.wrap=function(t){return function(){return t(s(arguments))}}},function(t,e,n){"use strict";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){function r(t){var e=function(e){return void 0===e||null===e?e:(arguments.length>1&&(e=Array.prototype.slice.call(arguments)),t(e))};return"conversion"in t&&(e.conversion=t.conversion),e}function o(t){var e=function(e){if(void 0===e||null===e)return e;arguments.length>1&&(e=Array.prototype.slice.call(arguments));var n=t(e);if("object"===(void 0===n?"undefined":i(n)))for(var r=n.length,o=0;o<r;o++)n[o]=Math.round(n[o]);return n};return"conversion"in t&&(e.conversion=t.conversion),e}var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s=n(27),a=n(77),u={};Object.keys(s).forEach(function(t){u[t]={},Object.defineProperty(u[t],"channels",{value:s[t].channels}),Object.defineProperty(u[t],"labels",{value:s[t].labels});var e=a(t);Object.keys(e).forEach(function(n){var i=e[n];u[t][n]=o(i),u[t][n].raw=r(i)})}),t.exports=u},function(t,e,n){function r(){for(var t={},e=Object.keys(a),n=e.length,r=0;r<n;r++)t[e[r]]={distance:-1,parent:null};return t}function o(t){var e=r(),n=[t];for(e[t].distance=0;n.length;)for(var o=n.pop(),i=Object.keys(a[o]),s=i.length,u=0;u<s;u++){var c=i[u],l=e[c];-1===l.distance&&(l.distance=e[o].distance+1,l.parent=o,n.unshift(c))}return e}function i(t,e){return function(n){return e(t(n))}}function s(t,e){for(var n=[e[t].parent,t],r=a[e[t].parent][t],o=e[t].parent;e[o].parent;)n.unshift(e[o].parent),r=i(a[e[o].parent][o],r),o=e[o].parent;return r.conversion=n,r}var a=n(27);t.exports=function(t){for(var e=o(t),n={},r=Object.keys(e),i=r.length,a=0;a<i;a++){var u=r[a];null!==e[u].parent&&(n[u]=s(u,e))}return n}},function(t,e,n){"use strict";function r(t){return t.dataset}t.exports=function(){var t=document.createElement("div");return t.setAttribute("data-a-b","c"),Boolean(t.dataset&&"c"===t.dataset.aB)}()?r:function(t){function e(){return this.value}function n(t,e){void 0===e?this.removeAttribute(t):this.setAttribute(t,e)}for(var r={},o=t.attributes,i=0,s=o.length;i<s;i++){var a=o[i];if(a){var u=a.name;if(0===u.indexOf("data-")){var c=u.slice(5).replace(/-./g,function(t){return t.charAt(1).toUpperCase()}),l=a.value;Object.defineProperty(r,c,{enumerable:!0,get:e.bind({value:l||""}),set:n.bind(t,u)})}}}return r}},function(t,e,n){n(80),t.exports=n(1).Array.includes},function(t,e,n){"use strict";var r=n(2),o=n(24)(!0);r(r.P,"Array",{includes:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),n(25)("includes")}]);
|