jekyll-theme-hydejack 6.0.0.pre.beta2 → 6.0.0.pre.beta3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f60e61d8d8c49226b4a8c5c4b4e0b4a7fb014429
4
- data.tar.gz: b1d61e7346be85e5b00238481a26ca6d757d79f6
3
+ metadata.gz: d25cc16b3abc1c550349906e5a3487394cfc83c0
4
+ data.tar.gz: 83f2611e3984784721dcad35a1453eb68cebeae7
5
5
  SHA512:
6
- metadata.gz: a09aaf0df840fc8222a66a53e9ddae29d42400967b289a0eb7688085e61f955296711f60d3baa75bfd44f8695fd454a2f8a856a9c779de056b118d74cb2f667b
7
- data.tar.gz: 4908cb5c8ffc57645a988dbfe1ab0c33e486b23da6affa74d14bcb55676d6d49cdacae23145f1bac68b71e693b19cc1db3014ab1120e524306b8f984b3fcf652
6
+ metadata.gz: bf407fdcf5a4e4d35b6d38878a289a56ec595e8d1b997d954997cf35c7a6f17fc914a0fd0a8572b47e283b208d1fb1641a2b33f434fa7c5d0829e33a65845dca
7
+ data.tar.gz: 0adb77bf1ff6b1bc8555c545980b99b6f891be59bedb6415fa383450a8e371be7c0433db4601cbe7f3b60207aefabed5a04e85ad4ffb2e61cfc9b8132718c2aa
data/README.md CHANGED
@@ -1,3 +1,21 @@
1
1
  # Hydejack
2
2
 
3
- Hydejack is a pretentious two-column [Jekyll](http://jekyllrb.com) theme, stolen by [`@qwtel`](https://twitter.com/qwtel) from [Hyde](http://hyde.getpoole.com). You could say it was.. [hydejacked](http://media3.giphy.com/media/makedRIckZBW8/giphy.gif).
3
+
4
+ ![Screenshot](https://qwtel.com/assets/img/projects/hydejack-v6@0,5x.jpg)
5
+
6
+ Hydejack is a complete, interactive, configureable, responsive, reactive, mobile-first, touch-enabled, animated, printable, tab-able, fast[^1], search engine-friendly and robust Jekyll theme that feels like a modern web app, while preserving what is great about *web pages*: Working URLs, hyperlinks, a working back button, a working refresh button and less than 50MB of JavaScript (tongue-in-cheek).
7
+
8
+ It can be hosted on GitHub Pages, where it has support for categories and tags, math blocks via KaTeX,
9
+ comments via Disqus, multiple authors, a sidebar that turns into a drawer menu on mobile, two different blog layouts, a wide array of social media icons and much more. It also looks pretty good.
10
+
11
+ The site works all the way down to IE10. It works in IE9 if you don't need fancy animations, and even IE5 if you don't need fancy anything. Rumor has it, you can even view it via [`lynx`](http://lynx.browser.org/).
12
+
13
+ ## Demo
14
+ All that being said, I think it's best to [see it in action](https://qwtel.com/hydejack/).
15
+
16
+ ## Download
17
+ You can download the latest version of Hydejack on [GitHub](https://github.com/qwtel/hydejack/releases/tag/v6.0.0-beta3), or use the [gem-based theme](https://rubygems.org/gems/jekyll-theme-hydejack/versions/6.0.0.pre.beta3).
18
+ For further instructions, check out the [Documentation](https://qwtel.com/hydejack/docs/6.0.0-beta3/).
19
+
20
+ ## Footnotes
21
+ [^1]: Hydejack is fast in two different ways. Its *perceived speed* hides latency through a combination of animations and a complex pre-fetching logic. *Load speed* is achieved through inlining critical CSS and removing non-essential requests from the critical rendering path.
@@ -11,5 +11,5 @@
11
11
  * Copyright (c) 2017 Florian Klampfer
12
12
  * Licensed under MIT
13
13
  * Powered by Hydejack (https://qwtel.com/hydejack/)
14
- * Version: 6.0.0-beta2
14
+ * Version: 6.0.0-beta3
15
15
  */
@@ -4,6 +4,6 @@
4
4
  {{ site.copyright | markdownify }}
5
5
  {% endif %}
6
6
  <p>
7
- <code>Powered by <a href="https://qwtel.com/hydejack/">Hydejack</a> v<span id="_version">6.0.0-beta2</span></code>
7
+ <code>Powered by <a href="https://qwtel.com/hydejack/">Hydejack</a> v<span id="_version">6.0.0-beta3</span></code>
8
8
  </p>
9
9
  </footer>
@@ -30,7 +30,7 @@
30
30
  {% else %}
31
31
  {% assign description = site.description | markdownify %}
32
32
  {% endif %}
33
- <meta name="description" content="{{ description | strip_html | truncatewords: 50 }}">
33
+ <meta name="description" content="{{ description | strip_html | truncatewords:50 }}">
34
34
 
35
35
  <!-- =============== -->
36
36
  <!-- LINKS -->
@@ -51,7 +51,6 @@
51
51
  <!-- SCRIPTS -->
52
52
  <!-- =============== -->
53
53
  <script>
54
- window._version = '6.0.0-beta2';
55
54
  {% include scripts/load-js-deferred.min.js %}
56
55
  {% include scripts/loadCSS.min.js %}
57
56
  {% include scripts/cssrelpreload.min.js %}
@@ -72,7 +71,7 @@
72
71
  {{ include_to_scssify | scssify }}
73
72
  </style>
74
73
 
75
- {% capture style_url %}{% link assets/css/hydejack.css %}?v=6.0.0-beta2{% endcapture %}
74
+ {% capture style_url %}{% link assets/css/hydejack.css %}?v=6.0.0-beta3{% endcapture %}
76
75
  <link rel="preload" href="{{ style_url | relative_url }}" as="style" onload="this.rel='stylesheet'">
77
76
 
78
77
  {% include page-style.html %}
@@ -1,10 +1,11 @@
1
1
  {% assign post = include.post %}
2
+ {% assign format = include.format | default:"%d %b %Y" %}
2
3
 
3
4
  <li class="h4">
4
5
  <a href="{{ post.url | relative_url }}" data-flip="title">
5
6
  <span>{{ post.title }}</span>
6
7
  </a>
7
8
  <small><time datetime="{{ post.date | date_to_xmlschema }}">
8
- {{ post.date | date: include.format }}
9
+ {{ post.date | date:format }}
9
10
  </time></small>
10
11
  </li>
@@ -17,7 +17,7 @@
17
17
  {% endcapture %}
18
18
 
19
19
  <p class="post-date heading">
20
- <time datetime="{{ post.date | date_to_xmlschema }}">{{ post.date | date: "%m/%d/%y" }}</time>
20
+ <time datetime="{{ post.date | date_to_xmlschema }}">{{ post.date | date: "%d %b %Y" }}</time>
21
21
  <span>{{ categories_content }} {{ tags_content }}</span>
22
22
  </p>
23
23
  </header>
@@ -7,7 +7,7 @@
7
7
  <ul class="related-posts">
8
8
  {% if site.use_lsi %}
9
9
  {% for post in site.related_posts limit:3 %}
10
- {% include post-list-item.html post=post format="%m/%d/%y" %}
10
+ {% include post-list-item.html post=post %}
11
11
  {% endfor %}
12
12
  {% elsif post.categories.first %}
13
13
  {% assign category_posts = site.categories[post.categories.first] %}
@@ -18,7 +18,7 @@
18
18
  {% continue %}
19
19
  {% endif %}
20
20
  {% if forloop.index < 4 or plusone == true %}
21
- {% include post-list-item.html post=post format="%m/%d/%y" %}
21
+ {% include post-list-item.html post=post %}
22
22
  {% endif %}
23
23
  {% endfor %}
24
24
  {% elsif post.tags.first %}
@@ -30,12 +30,12 @@
30
30
  {% continue %}
31
31
  {% endif %}
32
32
  {% if forloop.index < 4 or plusone == true %}
33
- {% include post-list-item.html post=post format="%m/%d/%y" %}
33
+ {% include post-list-item.html post=post %}
34
34
  {% endif %}
35
35
  {% endfor %}
36
36
  {% else %}
37
37
  {% for post in site.related_posts limit:3 %}
38
- {% include post-list-item.html post=post format="%m/%d/%y" %}
38
+ {% include post-list-item.html post=post %}
39
39
  {% endfor %}
40
40
  {% endif %}
41
41
  </ul>
@@ -24,7 +24,7 @@
24
24
  {% unless page.redirect %}
25
25
 
26
26
  <!--[if gt IE 9]><!---->
27
- {% capture js_url %}{% link assets/js/hydejack.js %}?v=6.0.0-beta2{% endcapture %}
27
+ {% capture js_url %}{% link assets/js/hydejack.js %}?v=6.0.0-beta3{% endcapture %}
28
28
  <script>loadJSDeferred('{{ js_url | relative_url }}');</script>
29
29
  <!--<![endif]-->
30
30
 
@@ -4,7 +4,7 @@
4
4
  <header class="container sidebar-sticky" role="banner">
5
5
  <div class="sidebar-about">
6
6
  <h1><a id="_title" href="{{ '/' | relative_url }}">{{ site.title }}</a></h1>
7
- {{ site.description | markdownify }}
7
+ {{ site.description | truncatewords:50 | markdownify }}
8
8
  </div>
9
9
 
10
10
  <nav class="sidebar-nav heading" role="navigation">
@@ -53,7 +53,7 @@
53
53
  }
54
54
  {% endif %}
55
55
 
56
- {% if site.mark_external %}
56
+ {% unless site.no_mark_external %}
57
57
  @media screen {
58
58
  a[href*="//"]::after, a.no-push-state::after {
59
59
  content: "\00A0\ea7e";
@@ -69,4 +69,4 @@
69
69
  -moz-osx-font-smoothing: grayscale;
70
70
  }
71
71
  }
72
- {% endif %}
72
+ {% endunless %}
@@ -4,8 +4,8 @@ layout: compress
4
4
 
5
5
  {% assign author = site.data.authors[page.author] | default:site.data.authors.first[1] %}
6
6
 
7
- {% assign color = site.color | default:'#A85641' %}
8
- {% assign image = site.image | default:'/assets/img/nap.jpg' %}
7
+ {% assign color = site.color | default:'#967954' %}
8
+ {% assign image = site.image | default:'/assets/img/gst.jpg' %}
9
9
 
10
10
  {% if page.categories.size > 0 %}
11
11
  {% assign category_name = page.categories.first %}
@@ -20,7 +20,7 @@
20
20
  Copyright (c) 2017 Florian Klampfer
21
21
  Licensed under MIT
22
22
  Powered by Hydejack (https://qwtel.com/hydejack/)
23
- Version: 6.0.0-beta2
23
+ Version: 6.0.0-beta3
24
24
  -->{% capture _LINE_FEED %}
25
25
  {% 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 %}
26
26
  </html>
@@ -5,7 +5,7 @@ layout: base
5
5
  <div class="page">
6
6
  <h1 class="page-title">{{ page.title | default:"Home"}}</h1>
7
7
  {% capture message %}
8
- Looks like you are using the `{{ page.layout }}` layout. This layout is not supported by Hydejack. Instead use `blog` or `list`. For more information see the [Hydejack Documentation](https://qwtel.com/hydejack/docs/6.0.0-beta2).
8
+ Looks like you are using the `{{ page.layout }}` layout. This layout is not supported by Hydejack. Instead use `blog` or `list`. For more information see the [Hydejack Documentation](https://qwtel.com/hydejack/docs/6.0.0-beta3/).
9
9
  {% endcapture %}
10
10
  {% include message.html text=message %}
11
11
 
@@ -14,7 +14,7 @@ Looks like you are using the `{{ page.layout }}` layout. This layout is not supp
14
14
  <h2>Posts</h2>
15
15
  <ul class="related-posts">
16
16
  {% for post in site.posts %}
17
- {% include post-list-item.html post=post format="%m/%d/%y" %}
17
+ {% include post-list-item.html post=post %}
18
18
  {% endfor %}
19
19
  </ul>
20
20
 
@@ -27,6 +27,6 @@ layout: base
27
27
  <ul class="related-posts">
28
28
  {% assign date = currentdate %}
29
29
  {% endif %}
30
- {% include post-list-item.html post=post format="%m/%d" %}
30
+ {% include post-list-item.html post=post format="%d %b" %}
31
31
  {% if forloop.last %}</ul>{% endif %}
32
32
  {% endfor %}
Binary file
Binary file
@@ -11,9 +11,9 @@
11
11
  * Copyright (c) 2017 Florian Klampfer
12
12
  * Licensed under MIT
13
13
  * Powered by Hydejack (https://qwtel.com/hydejack/)
14
- * Version: 6.0.0-beta2
14
+ * Version: 6.0.0-beta3
15
15
  */
16
- !function t(e,r,n){function i(s,a){if(!r[s]){if(!e[s]){var u="function"==typeof require&&require;if(!a&&u)return u(s,!0);if(o)return o(s,!0);var c=new Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}var l=r[s]={exports:{}};e[s][0].call(l.exports,function(t){var r=e[s][1][t];return i(r||t)},l,l.exports,t,e,r,n)}return r[s].exports}for(var o="function"==typeof require&&require,s=0;s<n.length;s++)i(n[s]);return i}({1:[function(t,e,r){"use strict";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 i(t,e){return(void 0===t?"undefined":n(t))===e}function o(t){return t.replace(/([a-z])-([a-z])/g,function(t,e,r){return e+r.toUpperCase()}).replace(/^-/,"")}function s(){return"function"!=typeof e.createElement?e.createElement(arguments[0]):O?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(O?"svg":"body"),t.fake=!0),t}function u(t,r,n,i){var o,u,c,l,h="modernizr",p=s("div"),f=a();if(parseInt(n,10))for(;n--;)c=s("div"),c.id=i?i[n]:h+(n+1),p.appendChild(c);return o=s("style"),o.type="text/css",o.id="s"+h,(f.fake?f:p).appendChild(o),f.appendChild(p),o.styleSheet?o.styleSheet.cssText=t:o.appendChild(e.createTextNode(t)),p.id=h,f.fake&&(f.style.background="",f.style.overflow="hidden",l=S.style.overflow,S.style.overflow="hidden",S.appendChild(f)),u=r(p,t),f.fake?(f.parentNode.removeChild(f),S.style.overflow=l,S.offsetHeight):p.parentNode.removeChild(p),!!u}function c(t,e){return!!~(""+t).indexOf(e)}function l(t,e){return function(){return t.apply(e,arguments)}}function h(t,e,r){var n;for(var o in t)if(t[o]in e)return!1===r?t[o]:(n=e[t[o]],i(n,"function")?l(n,r||e):n);return!1}function p(t){return t.replace(/([A-Z])/g,function(t,e){return"-"+e.toLowerCase()}).replace(/^ms-/,"-ms-")}function f(e,r,n){var i;if("getComputedStyle"in t){i=getComputedStyle.call(t,e,r);var o=t.console;if(null!==i)n&&(i=i.getPropertyValue(n));else if(o){var s=o.error?"error":"log";o[s].call(o,"getComputedStyle returning null, its possible modernizr test results are inaccurate")}}else i=!r&&e.currentStyle&&e.currentStyle[n];return i}function d(e,n){var i=e.length;if("CSS"in t&&"supports"in t.CSS){for(;i--;)if(t.CSS.supports(p(e[i]),n))return!0;return!1}if("CSSSupportsRule"in t){for(var o=[];i--;)o.push("("+p(e[i])+":"+n+")");return o=o.join(" or "),u("@supports ("+o+") { #modernizr { position: absolute; } }",function(t){return"absolute"==f(t,null,"position")})}return r}function b(t,e,n,a){function u(){h&&(delete P.style,delete P.modElem)}if(a=!i(a,"undefined")&&a,!i(n,"undefined")){var l=d(t,n);if(!i(l,"undefined"))return l}for(var h,p,f,b,m,v=["modernizr","tspan","samp"];!P.style&&v.length;)h=!0,P.modElem=s(v.shift()),P.style=P.modElem.style;for(f=t.length,p=0;f>p;p++)if(b=t[p],m=P.style[b],c(b,"-")&&(b=o(b)),P.style[b]!==r){if(a||i(n,"undefined"))return u(),"pfx"!=e||b;try{P.style[b]=n}catch(t){}if(P.style[b]!=m)return u(),"pfx"!=e||b}return u(),!1}function m(t,e,r,n,o){var s=t.charAt(0).toUpperCase()+t.slice(1),a=(t+" "+T.join(s+" ")+s).split(" ");return i(e,"string")||i(e,"undefined")?b(a,e,n,o):(a=(t+" "+M.join(s+" ")+s).split(" "),h(a,e,r))}function v(t,e,n){return m(t,r,r,e,n)}var y=[],g={_version:"3.4.0",_config:{classPrefix:"",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(t,e){var r=this;setTimeout(function(){e(r[t])},0)},addTest:function(t,e,r){y.push({name:t,fn:e,options:r})},addAsyncTest:function(t){y.push({name:null,fn:t})}},w=function(){};w.prototype=g,w=new w,w.addTest("eventlistener","addEventListener"in t),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)}),w.addTest("queryselector","querySelector"in e&&"querySelectorAll"in e);var x=[],_=g._config.usePrefixes?" -webkit- -moz- -o- -ms- ".split(" "):["",""];g._prefixes=_;var S=e.documentElement;w.addTest("classlist","classList"in S),w.addTest("documentfragment",function(){return"createDocumentFragment"in e&&"appendChild"in S});var O="svg"===S.nodeName.toLowerCase();w.addTest("opacity",function(){var t=s("a").style;return t.cssText=_.join("opacity:.55;"),/^0.55$/.test(t.opacity)}),w.addTest("csspointerevents",function(){var t=s("a").style;return t.cssText="pointer-events:auto","auto"===t.pointerEvents}),w.addTest("cssremunit",function(){var t=s("a").style;try{t.fontSize="3rem"}catch(t){}return/rem/.test(t.fontSize)});var k=g.testStyles=u;w.addTest("touchevents",function(){var r;if("ontouchstart"in t||t.DocumentTouch&&e instanceof DocumentTouch)r=!0;else{var n=["@media (",_.join("touch-enabled),("),"heartz",")","{#modernizr{top:9px;position:absolute}}"].join("");k(n,function(t){r=9===t.offsetTop})}return r});var j="Moz O ms Webkit",T=g._config.usePrefixes?j.split(" "):[];g._cssomPrefixes=T;var E=function(e){var n,i=_.length,o=t.CSSRule;if(void 0===o)return r;if(!e)return!1;if(e=e.replace(/^@/,""),(n=e.replace(/-/g,"_").toUpperCase()+"_RULE")in o)return"@"+e;for(var s=0;i>s;s++){var a=_[s];if(a.toUpperCase()+"_"+n in o)return"@-"+a.toLowerCase()+"-"+e}return!1};g.atRule=E;var M=g._config.usePrefixes?j.toLowerCase().split(" "):[];g._domPrefixes=M;var A={elem:s("modernizr")};w._q.push(function(){delete A.elem});var P={style:A.elem.style};w._q.unshift(function(){delete P.style}),g.testAllProps=m;var C=g.prefixed=function(t,e,r){return 0===t.indexOf("@")?E(t):(-1!=t.indexOf("-")&&(t=o(t)),e?m(t,e,r):m(t,"pfx"))};w.addTest("requestanimationframe",!!C("requestAnimationFrame",t),{aliases:["raf"]}),w.addTest("matchmedia",!!C("matchMedia",t)),g.testAllProps=v,w.addTest("cssanimations",v("animationName","a",!0)),w.addTest("csstransforms",function(){return-1===navigator.userAgent.indexOf("Android 2.")&&v("transform","scale(1)",!0)}),function(){var t,e,r,n,o,s,a;for(var u in y)if(y.hasOwnProperty(u)){if(t=[],e=y[u],e.name&&(t.push(e.name.toLowerCase()),e.options&&e.options.aliases&&e.options.aliases.length))for(r=0;r<e.options.aliases.length;r++)t.push(e.options.aliases[r].toLowerCase());for(n=i(e.fn,"function")?e.fn():e.fn,o=0;o<t.length;o++)s=t[o],a=s.split("."),1===a.length?w[a[0]]=n:(!w[a[0]]||w[a[0]]instanceof Boolean||(w[a[0]]=new Boolean(w[a[0]])),w[a[0]][a[1]]=n),x.push((n?"":"no-")+a.join("-"))}}(),delete g.addTest,delete g.addAsyncTest;for(var N=0;N<w._q.length;N++)w._q[N]();t.Modernizr=w}(window,document)},{}],2:[function(t,e,r){"use strict";console.log(" __ __ __ __ \r\n/\\ \\/\\ \\ /\\ \\ __ /\\ \\ \r\n\\ \\ \\_\\ \\ __ __ \\_\\ \\ __ /\\_\\ __ ___ \\ \\ \\/'\\ \r\n \\ \\ _ \\ /\\ \\/\\ \\ /'_` \\ /'__`\\ \\/\\ \\ /'__`\\ /'___\\\\ \\ , < \r\n \\ \\ \\ \\ \\\\ \\ \\_\\ \\ /\\ \\L\\ \\ /\\ __/ \\ \\ \\ /\\ \\L\\.\\_ /\\ \\__/ \\ \\ \\\\`\\ \r\n \\ \\_\\ \\_\\\\/`____ \\\\ \\___,_\\\\ \\____\\ _\\ \\ \\\\ \\__/.\\_\\\\ \\____\\ \\ \\_\\ \\_\\\r\n \\/_/\\/_/ `/___/> \\\\/__,_ / \\/____//\\ \\_\\ \\\\/__/\\/_/ \\/____/ \\/_/\\/_/\r\n /\\___/ \\ \\____/ \r\n \\/__/ \\/___/ "),console.log("Copyright (c) 2017 Florian Klampfer"),console.log("Licensed under MIT"),console.log("Powered by Hydejack (https://qwtel.com/hydejack)"),console.log("Version: "+window._version)},{}],3:[function(t,e,r){"use strict";function n(t){for(var e=!0,r=0;r<t.length;r+=1){var n=t[r],i=window.Modernizr[n];e=e&&i}return e}function i(t){t.style.display="block",t.style.visibility="visible"}function o(t){t.style.display="none",t.style.visibility="hidden"}function s(t){t.style.display="",t.style.visibility=""}function a(t,e){return(t.matches||t.matchesSelector||t.msMatchesSelector||t.mozMatchesSelector||t.webkitMatchesSelector||t.oMatchesSelector).call(t,e)}function u(t,e,r){return c.Observable.create(function(n){return t.animate(e,r).addEventListener("finish",function(t){n.next(t),n.complete()}),function(){}})}Object.defineProperty(r,"__esModule",{value:!0}),r.unhide=void 0,r.hasFeatures=n,r.show=i,r.hide=o,r.unshow=s,r.matches=a,r.animate=u;var c=t("rxjs/Observable");r.unhide=s},{"rxjs/Observable":117}],4:[function(t,e,r){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.color,r=void 0===e?"#00f":e;this.rules[0].style.color=r,this.rules[0].style.borderColor=(0,p.default)(r).fade(g).string(),this.rules[1].style.borderColor=r,this.rules[2].style.outlineColor=r,this.rules[3].style.backgroundColor=r}Object.defineProperty(r,"__esModule",{value:!0});var o=function(){function t(t,e){var r=[],n=!0,i=!1,o=void 0;try{for(var s,a=t[Symbol.iterator]();!(n=(s=a.next()).done)&&(r.push(s.value),!e||r.length!==e);n=!0);}catch(t){i=!0,o=t}finally{try{!n&&a.return&&a.return()}finally{if(i)throw o}}return r}return function(e,r){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),a=t("rxjs/Observable"),u=t("rxjs/observable/empty"),c=t("rxjs/observable/fromEvent"),l=t("rxjs/observable/timer"),h=t("color"),p=function(t){return t&&t.__esModule?t:{default:t}}(h),f=t("rxjs/operator/do"),d=t("rxjs/operator/finally"),b=t("rxjs/operator/map"),m=t("rxjs/operator/zip"),v=t("./common"),y=Array.prototype.find,g=.8,w=function(){function t(e){var r,i=e.duration;n(this,t),this.sidebar=document.getElementById("_sidebar"),this.duration=i;var o=document.getElementById("_pageStyle"),s=(r=document.styleSheets,y).call(r,function(t){return t.ownerNode===o});this.rules=s.cssRules||s.rules,this.lastImage=document.getElementById("_main").getAttribute("data-image")}return s(t,[{key:"fetchImage",value:function(t){var e,r=this,n=t.color,o=t.image;if(o===this.lastImage)return u.empty.call(a.Observable);var s=void 0;if(""===o)s=l.timer.call(a.Observable,this.duration);else{var h,p=new Image;s=(h=(h=c.fromEvent.call(a.Observable,p,"load"),m.zipProto).call(h,l.timer.call(a.Observable,this.duration),function(t){return t}),d._finally).call(h,function(){p.src=""}),p.src=o}return(e=(e=s,f._do).call(e,function(){i.call(r,t),r.lastImage=o}),b.map).call(e,function(){var t=document.createElement("div");return t.classList.add("sidebar-bg"),t.style.backgroundColor=n,""!==o&&(t.style.backgroundImage="url("+o+")"),t})}},{key:"crossFade",value:function(t){var e,r=o(t,2),n=r[0],i=r[1];return n.parentNode.insertBefore(i,n.nextElementSibling),(e=(0,v.animate)(i,[{opacity:0},{opacity:1}],{duration:this.duration}),d._finally).call(e,function(){return n.parentNode.removeChild(n)})}}]),t}();r.default=w},{"./common":3,color:17,"rxjs/Observable":117,"rxjs/observable/empty":131,"rxjs/observable/fromEvent":132,"rxjs/observable/timer":133,"rxjs/operator/do":137,"rxjs/operator/finally":140,"rxjs/operator/map":141,"rxjs/operator/zip":150}],5:[function(t,e,r){"use strict";function n(){window.isDesktop!==window.matchMedia(c).matches&&(window.isDesktop=!window.isDesktop,window.drawer.persistent=window.isDesktop,window.drawer.jumpTo(window.isDesktop))}function i(t){window.isDesktop||(t.preventDefault(),window.drawer.toggle())}var o=t("y-drawer/src/vanilla"),s=function(t){return t&&t.__esModule?t:{default:t}}(o),a=t("./common"),u=["eventlistener","queryselector","matchmedia","requestanimationframe","classlist","opacity","csstransforms","csspointerevents","cssremunit"],c="(min-width: 50em)";if((0,a.hasFeatures)(u)){window.isDesktop=window.matchMedia(c).matches;var l=document.getElementById("_yDrawer");!function(t){window.drawer=t,window.addEventListener("resize",n),document.getElementById("_menu").addEventListener("click",i)}(new s.default(l,{opened:window.isDesktop,persistent:window.isDesktop,transitionDuration:150})),l.classList.add("loaded")}},{"./common":3,"y-drawer/src/vanilla":178}],6:[function(t,e,r){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(r,"__esModule",{value:!0});var i=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),o=t("rxjs/Observable"),s=t("rxjs/observable/empty"),a=function(){function t(e){var r=e.shadowMain,i=e.duration;n(this,t),this.shadowMain=r,this.duration=i}return i(t,null,[{key:"create",value:function(e){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return null!=t.types[e]?new(Function.prototype.bind.apply(t.types[e],[null].concat(n))):new(Function.prototype.bind.apply(t,[null].concat(n)))}}]),i(t,[{key:"start",value:function(){return this.shadowMain.style.opacity=0,this.shadowMain.style.willChange="",s.empty.call(o.Observable)}},{key:"ready",value:function(){return s.empty.call(o.Observable)}}]),t}();r.default=a,a.types={}},{"rxjs/Observable":117,"rxjs/observable/empty":131}],7:[function(t,e,r){"use strict"},{}],8:[function(t,e,r){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(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 o(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)}var s=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),a=t("rxjs/Observable"),u=t("rxjs/observable/timer"),c=t("rxjs/operator/do"),l=t("rxjs/operator/finally"),h=t("../common"),p=t("./flip"),f=function(t){return t&&t.__esModule?t:{default:t}}(p),d=function(t){function e(){return n(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return o(e,t),s(e,[{key:"start",value:function(t){var e,r=this,n=document.createElement("h1");n.classList.add("page-title"),n.textContent=t.textContent,n.style.transformOrigin="left top",this.shadowMain.querySelector(".page").innerHTML="",this.shadowMain.querySelector(".page").appendChild(n),this.shadowMain.style.position="fixed",this.shadowMain.style.opacity=1;var i=t.getBoundingClientRect(),o=parseInt(getComputedStyle(t).fontSize,10),s=n.getBoundingClientRect(),a=parseInt(getComputedStyle(n).fontSize,10),u=i.left-s.left,l=i.top-s.top,p=o/a;return t.style.opacity=0,(e=(0,h.animate)(n,[{transform:"translate3d("+u+"px, "+l+"px, 0) scale("+p+")"},{transform:"translate3d(0, 0, 0) scale(1)"}],{duration:this.duration,easing:"cubic-bezier(0,0,0.32,1)"}),c._do).call(e,function(){r.shadowMain.style.position="absolute"})}},{key:"ready",value:function(t){var e,r=this;this.shadowMain.style.willChange="opacity";var n=t.querySelector(".page-title, .post-title");return null!=n&&(n.style.opacity=0,n.style.willChange="opacity"),(e=(e=u.timer.call(a.Observable,this.duration+100),c._do).call(e,function(){null!=n&&(n.style.opacity=1,n.style.willChange="")}),l._finally).call(e,function(){r.shadowMain.style.opacity=0,r.shadowMain.style.willChange=""})}}]),e}(f.default);f.default.types.title=d},{"../common":3,"./flip":6,"rxjs/Observable":117,"rxjs/observable/timer":133,"rxjs/operator/do":137,"rxjs/operator/finally":140}],9:[function(t,e,r){"use strict";t("core-js/fn/array/for-each"),t("core-js/fn/array/find"),t("core-js/fn/function/bind"),t("core-js/fn/number/constructor"),t("core-js/fn/object/assign"),t("core-js/fn/object/define-property"),t("core-js/fn/object/keys"),t("core-js/fn/array/reduce"),t("web-animations-js"),t("../lib/modernizr"),t("../lib/version"),t("./katex"),t("./drawer"),t("./push-state")},{"../lib/modernizr":1,"../lib/version":2,"./drawer":5,"./katex":10,"./push-state":11,"core-js/fn/array/find":18,"core-js/fn/array/for-each":19,"core-js/fn/array/reduce":20,"core-js/fn/function/bind":21,"core-js/fn/number/constructor":22,"core-js/fn/object/assign":23,"core-js/fn/object/define-property":24,"core-js/fn/object/keys":25,"web-animations-js":174}],10:[function(t,e,r){"use strict";function n(t){Array.prototype.forEach.call(t,function(t){t.style.willChange="content"})}function i(t,e){t.outerHTML=l.default.renderToString(e,{displayMode:"math/tex; mode=display"===t.type})}function o(t,e){try{var r=t.previousElementSibling;i(t,e),r&&(0,h.matches)(r,".MathJax_Preview")&&(0,h.hide)(r)}catch(t){console.error(t)}finally{t.style.willChange=""}}function s(t){return t.textContent.replace("% <![CDATA[","").replace("%]]>","")}function a(t){Array.prototype.forEach.call(t,function(t){o(t,s(t))})}function u(){if((0,h.hasFeatures)(p)){var t=document.querySelectorAll('script[type^="math/tex"]');t.length&&(n(t),a(t))}}Object.defineProperty(r,"__esModule",{value:!0}),r.default=u;var c=t("katex"),l=function(t){return t&&t.__esModule?t:{default:t}}(c),h=t("./common"),p=["eventlistener","queryselector"];if((0,h.hasFeatures)(p)){var f=document.getElementsByTagName("style")[0];loadCSS("https://unpkg.com/katex@0.6.0/dist/katex.min.css",f).addEventListener("load",u)}},{"./common":3,katex:91}],11:[function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function i(){return u._catch.call(this,function(t,e){return console.error(t),e})}var o=function(){function t(t,e){var r=[],n=!0,i=!1,o=void 0;try{for(var s,a=t[Symbol.iterator]();!(n=(s=a.next()).done)&&(r.push(s.value),!e||r.length!==e);n=!0);}catch(t){i=!0,o=t}finally{try{!n&&a.return&&a.return()}finally{if(i)throw o}}return r}return function(e,r){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=t("rxjs/Observable"),a=t("rxjs/observable/fromEvent"),u=t("rxjs/operator/catch"),c=t("rxjs/operator/do"),l=t("rxjs/operator/debounceTime"),h=t("rxjs/operator/exhaustMap"),p=t("rxjs/operator/filter"),f=t("rxjs/operator/map"),d=t("rxjs/operator/mergeMap"),b=t("rxjs/operator/pairwise"),m=t("rxjs/operator/share"),v=t("rxjs/operator/startWith"),y=t("rxjs/operator/switchMap"),g=t("rxjs/operator/takeUntil"),w=t("rxjs/operator/zip"),x=t("y-push-state/src/vanilla"),_=n(x),S=t("elem-dataset"),O=n(S),k=t("./common"),j=t("./cross-fader"),T=n(j),E=t("./katex"),M=n(E),A=t("./flip/flip"),P=n(A);t("./flip/title"),t("./flip/project");var C=["eventlistener","queryselector","requestanimationframe","classlist","documentfragment","history","opacity","cssanimations"];if((0,k.hasFeatures)(C)){var N,R=navigator.userAgent.toLowerCase(),z=R.indexOf("safari")>0&&R.indexOf("chrome")<0,F=new T.default({duration:500}),q=document.getElementById("_yPushState"),I=document.createElement("div");I.classList.add("shadow-main"),I.innerHTML='\n <div class="content container">\n <div class="page"></div>\n </div>',q.parentNode.insertBefore(I,q);var D=document.createElement("div");D.classList.add("loading"),D.innerHTML='\n <span class="sr-only">Loading...</span>\n <div class="sk-folding-cube">\n <div class="sk-cube1 sk-cube"></div>\n <div class="sk-cube2 sk-cube"></div>\n <div class="sk-cube4 sk-cube"></div>\n <div class="sk-cube3 sk-cube"></div>\n </div>\n ',q.parentNode.insertBefore(D,q);var L=(N=(N=(N=(N=a.fromEvent.call(s.Observable,q,"y-push-state-start"),f.map).call(N,function(t){return t.detail}),f.map).call(N,function(t){return[t,document.getElementById("_main")]}),c._do).call(N,function(){!window.isDesktop&&window.drawer.opened&&window.drawer.close()}),m.share).call(N),U=(N=(N=a.fromEvent.call(s.Observable,q,"y-push-state-ready"),f.map).call(N,function(t){return t.detail}),m.share).call(N),B=(N=a.fromEvent.call(s.Observable,q,"y-push-state-progress"),f.map).call(N,function(t){return t.detail}),H=(N=(N=a.fromEvent.call(s.Observable,q,"y-push-state-after"),f.map).call(N,function(t){return t.detail}),m.share).call(N);z&&(a.fromEvent.call(s.Observable,window,"popstate").subscribe(function(){document.body.style.minHeight="999999px"}),H.subscribe(function(){document.body.style.minHeight=""})),(N=y.switchMap.call(L,function(t){var e=o(t,1),r=e[0],n=r.event.currentTarget,i=P.default.create(n.getAttribute&&n.getAttribute("data-flip"),{shadowMain:I,currentTarget:n,duration:250});return r.flip=i,i.start(n)}),i).call(N).subscribe(),(N=(N=(N=c._do.call(L,function(t){o(t,2)[1].style.opacity=0}),p.filter).call(N,function(t){return"push"===o(t,1)[0].type||!z}),h.exhaustMap).call(N,function(t){var e,r=o(t,2),n=r[0].type,i=r[1];return(e=(e=(0,k.animate)(i,[{opacity:1},{opacity:0}],{duration:250,easing:"cubic-bezier(0,0,0.32,1)"}),c._do).call(e,function(){"push"===n&&window.scroll(0,0)}),w.zipProto).call(e,H)}),i).call(N).subscribe(),(N=c._do.call(B,function(){D.style.display="block"}),i).call(N).subscribe(),(N=(N=(N=c._do.call(U,function(){D.style.display="none"}),p.filter).call(N,function(t){return"push"===t.type||!z}),y.switchMap).call(N,function(t){var e,r=t.flip,n=o(t.content,1),i=n[0];return(e=r.ready(i),g.takeUntil).call(e,L)}),i).call(N).subscribe(),(N=(N=(N=(N=y.switchMap.call(U,function(t){var e,r=o(t.content,1),n=r[0];return(e=F.fetchImage((0,O.default)(n)),g.takeUntil).call(e,L)}),v.startWith).call(N,document.querySelector(".sidebar-bg")),b.pairwise).call(N),d.mergeMap).call(N,F.crossFade.bind(F)),i).call(N).subscribe(),(N=(N=(N=p.filter.call(H,function(t){return"push"===t.type||!z}),f.map).call(N,function(t){return[t,document.querySelector("main")]}),y.switchMap).call(N,function(t){var e=o(t,2),r=e[1];return(0,k.animate)(r,[{transform:"translateY(-2rem)",opacity:0},{transform:"translateY(0)",opacity:1}],{duration:250,easing:"cubic-bezier(0,0,0.32,1)"})}),i).call(N).subscribe(),(N=(N=l.debounceTime.call(H,500),c._do).call(N,function(){window.ga&&window.ga("send","pageview"),(0,M.default)()}),i).call(N).subscribe(),new _.default(q,{replaceIds:["_main"],linkSelector:'a[href^="/"]',duration:250,noPopDuration:z,scrollRestoration:!z}).startHistory()}},{"./common":3,"./cross-fader":4,"./flip/flip":6,"./flip/project":7,"./flip/title":8,"./katex":10,"elem-dataset":89,"rxjs/Observable":117,"rxjs/observable/fromEvent":132,"rxjs/operator/catch":134,"rxjs/operator/debounceTime":136,"rxjs/operator/do":137,"rxjs/operator/exhaustMap":138,"rxjs/operator/filter":139,"rxjs/operator/map":141,"rxjs/operator/mergeMap":143,"rxjs/operator/pairwise":145,"rxjs/operator/share":146,"rxjs/operator/startWith":147,"rxjs/operator/switchMap":148,"rxjs/operator/takeUntil":149,"rxjs/operator/zip":150,"y-push-state/src/vanilla":278}],12:[function(t,e,r){function n(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 i=t("color-name"),o={};for(var s in i)i.hasOwnProperty(s)&&(o[i[s]]=s);var a=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var 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,r,n,i=t[0]/255,o=t[1]/255,s=t[2]/255,a=Math.min(i,o,s),u=Math.max(i,o,s),c=u-a;return u===a?e=0:i===u?e=(o-s)/c:o===u?e=2+(s-i)/c:s===u&&(e=4+(i-o)/c),e=Math.min(60*e,360),e<0&&(e+=360),n=(a+u)/2,r=u===a?0:n<=.5?c/(u+a):c/(2-u-a),[e,100*r,100*n]},a.rgb.hsv=function(t){var e,r,n,i=t[0],o=t[1],s=t[2],a=Math.min(i,o,s),u=Math.max(i,o,s),c=u-a;return r=0===u?0:c/u*1e3/10,u===a?e=0:i===u?e=(o-s)/c:o===u?e=2+(s-i)/c:s===u&&(e=4+(i-o)/c),e=Math.min(60*e,360),e<0&&(e+=360),n=u/255*1e3/10,[e,r,n]},a.rgb.hwb=function(t){var e=t[0],r=t[1],n=t[2],i=a.rgb.hsl(t)[0],o=1/255*Math.min(e,Math.min(r,n));return n=1-1/255*Math.max(e,Math.max(r,n)),[i,100*o,100*n]},a.rgb.cmyk=function(t){var e,r,n,i,o=t[0]/255,s=t[1]/255,a=t[2]/255;return i=Math.min(1-o,1-s,1-a),e=(1-o-i)/(1-i)||0,r=(1-s-i)/(1-i)||0,n=(1-a-i)/(1-i)||0,[100*e,100*r,100*n,100*i]},a.rgb.keyword=function(t){var e=o[t];if(e)return e;var r,s=1/0;for(var a in i)if(i.hasOwnProperty(a)){var u=i[a],c=n(t,u);c<s&&(s=c,r=a)}return r},a.keyword.rgb=function(t){return i[t]},a.rgb.xyz=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255;return e=e>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92,r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92,[100*(.4124*e+.3576*r+.1805*n),100*(.2126*e+.7152*r+.0722*n),100*(.0193*e+.1192*r+.9505*n)]},a.rgb.lab=function(t){var e,r,n,i=a.rgb.xyz(t),o=i[0],s=i[1],u=i[2];return o/=95.047,s/=100,u/=108.883,o=o>.008856?Math.pow(o,1/3):7.787*o+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,r=500*(o-s),n=200*(s-u),[e,r,n]},a.hsl.rgb=function(t){var e,r,n,i,o,s=t[0]/360,a=t[1]/100,u=t[2]/100;if(0===a)return o=255*u,[o,o,o];r=u<.5?u*(1+a):u+a-u*a,e=2*u-r,i=[0,0,0];for(var c=0;c<3;c++)n=s+1/3*-(c-1),n<0&&n++,n>1&&n--,o=6*n<1?e+6*(r-e)*n:2*n<1?r:3*n<2?e+(r-e)*(2/3-n)*6:e,i[c]=255*o;return i},a.hsl.hsv=function(t){var e,r,n=t[0],i=t[1]/100,o=t[2]/100,s=i,a=Math.max(o,.01);return o*=2,i*=o<=1?o:2-o,s*=a<=1?a:2-a,r=(o+i)/2,e=0===o?2*s/(a+s):2*i/(o+i),[n,100*e,100*r]},a.hsv.rgb=function(t){var e=t[0]/60,r=t[1]/100,n=t[2]/100,i=Math.floor(e)%6,o=e-Math.floor(e),s=255*n*(1-r),a=255*n*(1-r*o),u=255*n*(1-r*(1-o));switch(n*=255,i){case 0:return[n,u,s];case 1:return[a,n,s];case 2:return[s,n,u];case 3:return[s,a,n];case 4:return[u,s,n];case 5:return[n,s,a]}},a.hsv.hsl=function(t){var e,r,n,i=t[0],o=t[1]/100,s=t[2]/100,a=Math.max(s,.01);return n=(2-o)*s,e=(2-o)*a,r=o*a,r/=e<=1?e:2-e,r=r||0,n/=2,[i,100*r,100*n]},a.hwb.rgb=function(t){var e,r,n,i,o=t[0]/360,s=t[1]/100,a=t[2]/100,u=s+a;u>1&&(s/=u,a/=u),e=Math.floor(6*o),r=1-a,n=6*o-e,0!=(1&e)&&(n=1-n),i=s+n*(r-s);var c,l,h;switch(e){default:case 6:case 0:c=r,l=i,h=s;break;case 1:c=i,l=r,h=s;break;case 2:c=s,l=r,h=i;break;case 3:c=s,l=i,h=r;break;case 4:c=i,l=s,h=r;break;case 5:c=r,l=s,h=i}return[255*c,255*l,255*h]},a.cmyk.rgb=function(t){var e,r,n,i=t[0]/100,o=t[1]/100,s=t[2]/100,a=t[3]/100;return e=1-Math.min(1,i*(1-a)+a),r=1-Math.min(1,o*(1-a)+a),n=1-Math.min(1,s*(1-a)+a),[255*e,255*r,255*n]},a.xyz.rgb=function(t){var e,r,n,i=t[0]/100,o=t[1]/100,s=t[2]/100;return e=3.2406*i+-1.5372*o+-.4986*s,r=-.9689*i+1.8758*o+.0415*s,n=.0557*i+-.204*o+1.057*s,e=e>.0031308?1.055*Math.pow(e,1/2.4)-.055:12.92*e,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,e=Math.min(Math.max(0,e),1),r=Math.min(Math.max(0,r),1),n=Math.min(Math.max(0,n),1),[255*e,255*r,255*n]},a.xyz.lab=function(t){var e,r,n,i=t[0],o=t[1],s=t[2];return i/=95.047,o/=100,s/=108.883,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,o=o>.008856?Math.pow(o,1/3):7.787*o+16/116,s=s>.008856?Math.pow(s,1/3):7.787*s+16/116,e=116*o-16,r=500*(i-o),n=200*(o-s),[e,r,n]},a.lab.xyz=function(t){var e,r,n,i=t[0],o=t[1],s=t[2];r=(i+16)/116,e=o/500+r,n=r-s/200;var a=Math.pow(r,3),u=Math.pow(e,3),c=Math.pow(n,3);return r=a>.008856?a:(r-16/116)/7.787,e=u>.008856?u:(e-16/116)/7.787,n=c>.008856?c:(n-16/116)/7.787,e*=95.047,r*=100,n*=108.883,[e,r,n]},a.lab.lch=function(t){var e,r,n,i=t[0],o=t[1],s=t[2];return e=Math.atan2(s,o),r=360*e/2/Math.PI,r<0&&(r+=360),n=Math.sqrt(o*o+s*s),[i,n,r]},a.lch.lab=function(t){var e,r,n,i=t[0],o=t[1],s=t[2];return n=s/360*2*Math.PI,e=o*Math.cos(n),r=o*Math.sin(n),[i,e,r]},a.rgb.ansi16=function(t){var e=t[0],r=t[1],n=t[2],i=1 in arguments?arguments[1]:a.rgb.hsv(t)[2];if(0===(i=Math.round(i/50)))return 30;var o=30+(Math.round(n/255)<<2|Math.round(r/255)<<1|Math.round(e/255));return 2===i&&(o+=60),o},a.hsv.ansi16=function(t){return a.rgb.ansi16(a.hsv.rgb(t),t[2])},a.rgb.ansi256=function(t){var e=t[0],r=t[1],n=t[2];return e===r&&r===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(n/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 r=.5*(1+~~(t>50));return[(1&e)*r*255,(e>>1&1)*r*255,(e>>2&1)*r*255]},a.ansi256.rgb=function(t){if(t>=232){var e=10*(t-232)+8;return[e,e,e]}t-=16;var r;return[Math.floor(t/36)/5*255,Math.floor((r=t%36)/6)/5*255,r%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])),r=e.toString(16).toUpperCase();return"000000".substring(r.length)+r},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 r=e[0];3===e[0].length&&(r=r.split("").map(function(t){return t+t}).join(""));var n=parseInt(r,16);return[n>>16&255,n>>8&255,255&n]},a.rgb.hcg=function(t){var e,r,n=t[0]/255,i=t[1]/255,o=t[2]/255,s=Math.max(Math.max(n,i),o),a=Math.min(Math.min(n,i),o),u=s-a;return e=u<1?a/(1-u):0,r=u<=0?0:s===n?(i-o)/u%6:s===i?2+(o-n)/u:4+(n-i)/u+4,r/=6,r%=1,[360*r,100*u,100*e]},a.hsl.hcg=function(t){var e=t[1]/100,r=t[2]/100,n=1,i=0;return n=r<.5?2*e*r:2*e*(1-r),n<1&&(i=(r-.5*n)/(1-n)),[t[0],100*n,100*i]},a.hsv.hcg=function(t){var e=t[1]/100,r=t[2]/100,n=e*r,i=0;return n<1&&(i=(r-n)/(1-n)),[t[0],100*n,100*i]},a.hcg.rgb=function(t){var e=t[0]/360,r=t[1]/100,n=t[2]/100;if(0===r)return[255*n,255*n,255*n];var i=[0,0,0],o=e%1*6,s=o%1,a=1-s,u=0;switch(Math.floor(o)){case 0:i[0]=1,i[1]=s,i[2]=0;break;case 1:i[0]=a,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=s;break;case 3:i[0]=0,i[1]=a,i[2]=1;break;case 4:i[0]=s,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=a}return u=(1-r)*n,[255*(r*i[0]+u),255*(r*i[1]+u),255*(r*i[2]+u)]},a.hcg.hsv=function(t){var e=t[1]/100,r=t[2]/100,n=e+r*(1-e),i=0;return n>0&&(i=e/n),[t[0],100*i,100*n]},a.hcg.hsl=function(t){var e=t[1]/100,r=t[2]/100,n=r*(1-e)+.5*e,i=0;return n>0&&n<.5?i=e/(2*n):n>=.5&&n<1&&(i=e/(2*(1-n))),[t[0],100*i,100*n]},a.hcg.hwb=function(t){var e=t[1]/100,r=t[2]/100,n=e+r*(1-e);return[t[0],100*(n-e),100*(1-n)]},a.hwb.hcg=function(t){var e=t[1]/100,r=t[2]/100,n=1-r,i=n-e,o=0;return i<1&&(o=(n-i)/(1-i)),[t[0],100*i,100*o]},a.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]},a.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]},a.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]},a.gray.hsl=a.gray.hsv=function(t){return[0,0,t[0]]},a.gray.hwb=function(t){return[0,100,t[0]]},a.gray.cmyk=function(t){return[0,0,0,t[0]]},a.gray.lab=function(t){return[t[0],0,0]},a.gray.hex=function(t){var e=255&Math.round(t[0]/100*255),r=(e<<16)+(e<<8)+e,n=r.toString(16).toUpperCase();return"000000".substring(n.length)+n},
16
+ !function t(e,r,n){function i(s,a){if(!r[s]){if(!e[s]){var u="function"==typeof require&&require;if(!a&&u)return u(s,!0);if(o)return o(s,!0);var c=new Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}var l=r[s]={exports:{}};e[s][0].call(l.exports,function(t){var r=e[s][1][t];return i(r||t)},l,l.exports,t,e,r,n)}return r[s].exports}for(var o="function"==typeof require&&require,s=0;s<n.length;s++)i(n[s]);return i}({1:[function(t,e,r){"use strict";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 i(t,e){return(void 0===t?"undefined":n(t))===e}function o(t){return t.replace(/([a-z])-([a-z])/g,function(t,e,r){return e+r.toUpperCase()}).replace(/^-/,"")}function s(){return"function"!=typeof e.createElement?e.createElement(arguments[0]):O?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(O?"svg":"body"),t.fake=!0),t}function u(t,r,n,i){var o,u,c,l,h="modernizr",p=s("div"),f=a();if(parseInt(n,10))for(;n--;)c=s("div"),c.id=i?i[n]:h+(n+1),p.appendChild(c);return o=s("style"),o.type="text/css",o.id="s"+h,(f.fake?f:p).appendChild(o),f.appendChild(p),o.styleSheet?o.styleSheet.cssText=t:o.appendChild(e.createTextNode(t)),p.id=h,f.fake&&(f.style.background="",f.style.overflow="hidden",l=S.style.overflow,S.style.overflow="hidden",S.appendChild(f)),u=r(p,t),f.fake?(f.parentNode.removeChild(f),S.style.overflow=l,S.offsetHeight):p.parentNode.removeChild(p),!!u}function c(t,e){return!!~(""+t).indexOf(e)}function l(t,e){return function(){return t.apply(e,arguments)}}function h(t,e,r){var n;for(var o in t)if(t[o]in e)return!1===r?t[o]:(n=e[t[o]],i(n,"function")?l(n,r||e):n);return!1}function p(t){return t.replace(/([A-Z])/g,function(t,e){return"-"+e.toLowerCase()}).replace(/^ms-/,"-ms-")}function f(e,r,n){var i;if("getComputedStyle"in t){i=getComputedStyle.call(t,e,r);var o=t.console;if(null!==i)n&&(i=i.getPropertyValue(n));else if(o){var s=o.error?"error":"log";o[s].call(o,"getComputedStyle returning null, its possible modernizr test results are inaccurate")}}else i=!r&&e.currentStyle&&e.currentStyle[n];return i}function d(e,n){var i=e.length;if("CSS"in t&&"supports"in t.CSS){for(;i--;)if(t.CSS.supports(p(e[i]),n))return!0;return!1}if("CSSSupportsRule"in t){for(var o=[];i--;)o.push("("+p(e[i])+":"+n+")");return o=o.join(" or "),u("@supports ("+o+") { #modernizr { position: absolute; } }",function(t){return"absolute"==f(t,null,"position")})}return r}function b(t,e,n,a){function u(){h&&(delete P.style,delete P.modElem)}if(a=!i(a,"undefined")&&a,!i(n,"undefined")){var l=d(t,n);if(!i(l,"undefined"))return l}for(var h,p,f,b,m,v=["modernizr","tspan","samp"];!P.style&&v.length;)h=!0,P.modElem=s(v.shift()),P.style=P.modElem.style;for(f=t.length,p=0;f>p;p++)if(b=t[p],m=P.style[b],c(b,"-")&&(b=o(b)),P.style[b]!==r){if(a||i(n,"undefined"))return u(),"pfx"!=e||b;try{P.style[b]=n}catch(t){}if(P.style[b]!=m)return u(),"pfx"!=e||b}return u(),!1}function m(t,e,r,n,o){var s=t.charAt(0).toUpperCase()+t.slice(1),a=(t+" "+T.join(s+" ")+s).split(" ");return i(e,"string")||i(e,"undefined")?b(a,e,n,o):(a=(t+" "+M.join(s+" ")+s).split(" "),h(a,e,r))}function v(t,e,n){return m(t,r,r,e,n)}var y=[],g={_version:"3.4.0",_config:{classPrefix:"",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(t,e){var r=this;setTimeout(function(){e(r[t])},0)},addTest:function(t,e,r){y.push({name:t,fn:e,options:r})},addAsyncTest:function(t){y.push({name:null,fn:t})}},w=function(){};w.prototype=g,w=new w,w.addTest("eventlistener","addEventListener"in t),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)}),w.addTest("queryselector","querySelector"in e&&"querySelectorAll"in e);var x=[],_=g._config.usePrefixes?" -webkit- -moz- -o- -ms- ".split(" "):["",""];g._prefixes=_;var S=e.documentElement;w.addTest("classlist","classList"in S),w.addTest("documentfragment",function(){return"createDocumentFragment"in e&&"appendChild"in S});var O="svg"===S.nodeName.toLowerCase();w.addTest("opacity",function(){var t=s("a").style;return t.cssText=_.join("opacity:.55;"),/^0.55$/.test(t.opacity)}),w.addTest("csspointerevents",function(){var t=s("a").style;return t.cssText="pointer-events:auto","auto"===t.pointerEvents}),w.addTest("cssremunit",function(){var t=s("a").style;try{t.fontSize="3rem"}catch(t){}return/rem/.test(t.fontSize)});var k=g.testStyles=u;w.addTest("touchevents",function(){var r;if("ontouchstart"in t||t.DocumentTouch&&e instanceof DocumentTouch)r=!0;else{var n=["@media (",_.join("touch-enabled),("),"heartz",")","{#modernizr{top:9px;position:absolute}}"].join("");k(n,function(t){r=9===t.offsetTop})}return r});var j="Moz O ms Webkit",T=g._config.usePrefixes?j.split(" "):[];g._cssomPrefixes=T;var E=function(e){var n,i=_.length,o=t.CSSRule;if(void 0===o)return r;if(!e)return!1;if(e=e.replace(/^@/,""),(n=e.replace(/-/g,"_").toUpperCase()+"_RULE")in o)return"@"+e;for(var s=0;i>s;s++){var a=_[s];if(a.toUpperCase()+"_"+n in o)return"@-"+a.toLowerCase()+"-"+e}return!1};g.atRule=E;var M=g._config.usePrefixes?j.toLowerCase().split(" "):[];g._domPrefixes=M;var A={elem:s("modernizr")};w._q.push(function(){delete A.elem});var P={style:A.elem.style};w._q.unshift(function(){delete P.style}),g.testAllProps=m;var C=g.prefixed=function(t,e,r){return 0===t.indexOf("@")?E(t):(-1!=t.indexOf("-")&&(t=o(t)),e?m(t,e,r):m(t,"pfx"))};w.addTest("requestanimationframe",!!C("requestAnimationFrame",t),{aliases:["raf"]}),w.addTest("matchmedia",!!C("matchMedia",t)),g.testAllProps=v,w.addTest("cssanimations",v("animationName","a",!0)),w.addTest("csstransforms",function(){return-1===navigator.userAgent.indexOf("Android 2.")&&v("transform","scale(1)",!0)}),function(){var t,e,r,n,o,s,a;for(var u in y)if(y.hasOwnProperty(u)){if(t=[],e=y[u],e.name&&(t.push(e.name.toLowerCase()),e.options&&e.options.aliases&&e.options.aliases.length))for(r=0;r<e.options.aliases.length;r++)t.push(e.options.aliases[r].toLowerCase());for(n=i(e.fn,"function")?e.fn():e.fn,o=0;o<t.length;o++)s=t[o],a=s.split("."),1===a.length?w[a[0]]=n:(!w[a[0]]||w[a[0]]instanceof Boolean||(w[a[0]]=new Boolean(w[a[0]])),w[a[0]][a[1]]=n),x.push((n?"":"no-")+a.join("-"))}}(),delete g.addTest,delete g.addAsyncTest;for(var N=0;N<w._q.length;N++)w._q[N]();t.Modernizr=w}(window,document)},{}],2:[function(t,e,r){"use strict";console.log(" __ __ __ __ \r\n/\\ \\/\\ \\ /\\ \\ __ /\\ \\ \r\n\\ \\ \\_\\ \\ __ __ \\_\\ \\ __ /\\_\\ __ ___ \\ \\ \\/'\\ \r\n \\ \\ _ \\ /\\ \\/\\ \\ /'_` \\ /'__`\\ \\/\\ \\ /'__`\\ /'___\\\\ \\ , < \r\n \\ \\ \\ \\ \\\\ \\ \\_\\ \\ /\\ \\L\\ \\ /\\ __/ \\ \\ \\ /\\ \\L\\.\\_ /\\ \\__/ \\ \\ \\\\`\\ \r\n \\ \\_\\ \\_\\\\/`____ \\\\ \\___,_\\\\ \\____\\ _\\ \\ \\\\ \\__/.\\_\\\\ \\____\\ \\ \\_\\ \\_\\\r\n \\/_/\\/_/ `/___/> \\\\/__,_ / \\/____//\\ \\_\\ \\\\/__/\\/_/ \\/____/ \\/_/\\/_/\r\n /\\___/ \\ \\____/ \r\n \\/__/ \\/___/ "),console.log("Copyright (c) 2017 Florian Klampfer"),console.log("Licensed under MIT"),console.log("Powered by Hydejack (https://qwtel.com/hydejack)"),console.log("Version: 6.0.0-beta3")},{}],3:[function(t,e,r){"use strict";function n(t){for(var e=!0,r=0;r<t.length;r+=1){var n=t[r],i=window.Modernizr[n];e=e&&i}return e}function i(t){t.style.display="block",t.style.visibility="visible"}function o(t){t.style.display="none",t.style.visibility="hidden"}function s(t){t.style.display="",t.style.visibility=""}function a(t,e){return(t.matches||t.matchesSelector||t.msMatchesSelector||t.mozMatchesSelector||t.webkitMatchesSelector||t.oMatchesSelector).call(t,e)}function u(t,e,r){return c.Observable.create(function(n){return t.animate(e,r).addEventListener("finish",function(t){n.next(t),n.complete()}),function(){}})}Object.defineProperty(r,"__esModule",{value:!0}),r.unhide=void 0,r.hasFeatures=n,r.show=i,r.hide=o,r.unshow=s,r.matches=a,r.animate=u;var c=t("rxjs/Observable");r.unhide=s},{"rxjs/Observable":117}],4:[function(t,e,r){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.color,r=void 0===e?"#00f":e;this.rules[0].style.color=r,this.rules[0].style.borderColor=(0,p.default)(r).fade(g).string(),this.rules[1].style.borderColor=r,this.rules[2].style.outlineColor=r,this.rules[3].style.backgroundColor=r}Object.defineProperty(r,"__esModule",{value:!0});var o=function(){function t(t,e){var r=[],n=!0,i=!1,o=void 0;try{for(var s,a=t[Symbol.iterator]();!(n=(s=a.next()).done)&&(r.push(s.value),!e||r.length!==e);n=!0);}catch(t){i=!0,o=t}finally{try{!n&&a.return&&a.return()}finally{if(i)throw o}}return r}return function(e,r){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),a=t("rxjs/Observable"),u=t("rxjs/observable/empty"),c=t("rxjs/observable/fromEvent"),l=t("rxjs/observable/timer"),h=t("color"),p=function(t){return t&&t.__esModule?t:{default:t}}(h),f=t("rxjs/operator/do"),d=t("rxjs/operator/finally"),b=t("rxjs/operator/map"),m=t("rxjs/operator/zip"),v=t("./common"),y=Array.prototype.find,g=.8,w=function(){function t(e){var r,i=e.duration;n(this,t),this.sidebar=document.getElementById("_sidebar"),this.duration=i;var o=document.getElementById("_pageStyle"),s=(r=document.styleSheets,y).call(r,function(t){return t.ownerNode===o});this.rules=s.cssRules||s.rules,this.lastImage=document.getElementById("_main").getAttribute("data-image")}return s(t,[{key:"fetchImage",value:function(t){var e,r=this,n=t.color,o=t.image;if(o===this.lastImage)return u.empty.call(a.Observable);var s=void 0;if(""===o)s=l.timer.call(a.Observable,this.duration);else{var h,p=new Image;s=(h=(h=c.fromEvent.call(a.Observable,p,"load"),m.zipProto).call(h,l.timer.call(a.Observable,this.duration),function(t){return t}),d._finally).call(h,function(){p.src=""}),p.src=o}return(e=(e=s,f._do).call(e,function(){i.call(r,t),r.lastImage=o}),b.map).call(e,function(){var t=document.createElement("div");return t.classList.add("sidebar-bg"),t.style.backgroundColor=n,""!==o&&(t.style.backgroundImage="url("+o+")"),t})}},{key:"crossFade",value:function(t){var e,r=o(t,2),n=r[0],i=r[1];return n.parentNode.insertBefore(i,n.nextElementSibling),(e=(0,v.animate)(i,[{opacity:0},{opacity:1}],{duration:this.duration}),d._finally).call(e,function(){return n.parentNode.removeChild(n)})}}]),t}();r.default=w},{"./common":3,color:17,"rxjs/Observable":117,"rxjs/observable/empty":131,"rxjs/observable/fromEvent":132,"rxjs/observable/timer":133,"rxjs/operator/do":137,"rxjs/operator/finally":140,"rxjs/operator/map":141,"rxjs/operator/zip":150}],5:[function(t,e,r){"use strict";function n(){window.isDesktop!==window.matchMedia(c).matches&&(window.isDesktop=!window.isDesktop,window.drawer.persistent=window.isDesktop,window.drawer.jumpTo(window.isDesktop))}function i(t){window.isDesktop||(t.preventDefault(),window.drawer.toggle())}var o=t("y-drawer/src/vanilla"),s=function(t){return t&&t.__esModule?t:{default:t}}(o),a=t("./common"),u=["eventlistener","queryselector","matchmedia","requestanimationframe","classlist","opacity","csstransforms","csspointerevents","cssremunit"],c="(min-width: 50em)";if((0,a.hasFeatures)(u)){window.isDesktop=window.matchMedia(c).matches;var l=document.getElementById("_yDrawer");!function(t){window.drawer=t,window.addEventListener("resize",n),document.getElementById("_menu").addEventListener("click",i)}(new s.default(l,{opened:window.isDesktop,persistent:window.isDesktop,transitionDuration:150})),l.classList.add("loaded")}},{"./common":3,"y-drawer/src/vanilla":178}],6:[function(t,e,r){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(r,"__esModule",{value:!0});var i=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),o=t("rxjs/Observable"),s=t("rxjs/observable/empty"),a=function(){function t(e){var r=e.shadowMain,i=e.duration;n(this,t),this.shadowMain=r,this.duration=i}return i(t,null,[{key:"create",value:function(e){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return null!=t.types[e]?new(Function.prototype.bind.apply(t.types[e],[null].concat(n))):new(Function.prototype.bind.apply(t,[null].concat(n)))}}]),i(t,[{key:"start",value:function(){return this.shadowMain.style.opacity=0,this.shadowMain.style.willChange="",s.empty.call(o.Observable)}},{key:"ready",value:function(){return s.empty.call(o.Observable)}}]),t}();r.default=a,a.types={}},{"rxjs/Observable":117,"rxjs/observable/empty":131}],7:[function(t,e,r){"use strict"},{}],8:[function(t,e,r){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(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 o(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)}var s=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),a=t("rxjs/Observable"),u=t("rxjs/observable/timer"),c=t("rxjs/operator/do"),l=t("rxjs/operator/finally"),h=t("../common"),p=t("./flip"),f=function(t){return t&&t.__esModule?t:{default:t}}(p),d=function(t){function e(){return n(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return o(e,t),s(e,[{key:"start",value:function(t){var e,r=this,n=document.createElement("h1");n.classList.add("page-title"),n.textContent=t.textContent,n.style.transformOrigin="left top",this.shadowMain.querySelector(".page").innerHTML="",this.shadowMain.querySelector(".page").appendChild(n),this.shadowMain.style.position="fixed",this.shadowMain.style.opacity=1;var i=t.getBoundingClientRect(),o=parseInt(getComputedStyle(t).fontSize,10),s=n.getBoundingClientRect(),a=parseInt(getComputedStyle(n).fontSize,10),u=i.left-s.left,l=i.top-s.top,p=o/a;return t.style.opacity=0,(e=(0,h.animate)(n,[{transform:"translate3d("+u+"px, "+l+"px, 0) scale("+p+")"},{transform:"translate3d(0, 0, 0) scale(1)"}],{duration:this.duration,easing:"cubic-bezier(0,0,0.32,1)"}),c._do).call(e,function(){r.shadowMain.style.position="absolute"})}},{key:"ready",value:function(t){var e,r=this;this.shadowMain.style.willChange="opacity";var n=t.querySelector(".page-title, .post-title");return null!=n&&(n.style.opacity=0,n.style.willChange="opacity"),(e=(e=u.timer.call(a.Observable,this.duration+100),c._do).call(e,function(){null!=n&&(n.style.opacity=1,n.style.willChange="")}),l._finally).call(e,function(){r.shadowMain.style.opacity=0,r.shadowMain.style.willChange=""})}}]),e}(f.default);f.default.types.title=d},{"../common":3,"./flip":6,"rxjs/Observable":117,"rxjs/observable/timer":133,"rxjs/operator/do":137,"rxjs/operator/finally":140}],9:[function(t,e,r){"use strict";t("core-js/fn/array/for-each"),t("core-js/fn/array/find"),t("core-js/fn/function/bind"),t("core-js/fn/number/constructor"),t("core-js/fn/object/assign"),t("core-js/fn/object/define-property"),t("core-js/fn/object/keys"),t("core-js/fn/array/reduce"),t("web-animations-js"),t("../lib/modernizr"),t("../lib/version"),t("./katex"),t("./drawer"),t("./push-state")},{"../lib/modernizr":1,"../lib/version":2,"./drawer":5,"./katex":10,"./push-state":11,"core-js/fn/array/find":18,"core-js/fn/array/for-each":19,"core-js/fn/array/reduce":20,"core-js/fn/function/bind":21,"core-js/fn/number/constructor":22,"core-js/fn/object/assign":23,"core-js/fn/object/define-property":24,"core-js/fn/object/keys":25,"web-animations-js":174}],10:[function(t,e,r){"use strict";function n(t){Array.prototype.forEach.call(t,function(t){t.style.willChange="content"})}function i(t,e){t.outerHTML=l.default.renderToString(e,{displayMode:"math/tex; mode=display"===t.type})}function o(t,e){try{var r=t.previousElementSibling;i(t,e),r&&(0,h.matches)(r,".MathJax_Preview")&&(0,h.hide)(r)}catch(t){console.error(t)}finally{t.style.willChange=""}}function s(t){return t.textContent.replace("% <![CDATA[","").replace("%]]>","")}function a(t){Array.prototype.forEach.call(t,function(t){o(t,s(t))})}function u(){if((0,h.hasFeatures)(p)){var t=document.querySelectorAll('script[type^="math/tex"]');t.length&&(n(t),a(t))}}Object.defineProperty(r,"__esModule",{value:!0}),r.default=u;var c=t("katex"),l=function(t){return t&&t.__esModule?t:{default:t}}(c),h=t("./common"),p=["eventlistener","queryselector"];if((0,h.hasFeatures)(p)){var f=document.getElementsByTagName("style")[0];loadCSS("https://unpkg.com/katex@0.6.0/dist/katex.min.css",f).addEventListener("load",u)}},{"./common":3,katex:91}],11:[function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function i(){return u._catch.call(this,function(t,e){return console.error(t),e})}var o=function(){function t(t,e){var r=[],n=!0,i=!1,o=void 0;try{for(var s,a=t[Symbol.iterator]();!(n=(s=a.next()).done)&&(r.push(s.value),!e||r.length!==e);n=!0);}catch(t){i=!0,o=t}finally{try{!n&&a.return&&a.return()}finally{if(i)throw o}}return r}return function(e,r){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=t("rxjs/Observable"),a=t("rxjs/observable/fromEvent"),u=t("rxjs/operator/catch"),c=t("rxjs/operator/do"),l=t("rxjs/operator/debounceTime"),h=t("rxjs/operator/exhaustMap"),p=t("rxjs/operator/filter"),f=t("rxjs/operator/map"),d=t("rxjs/operator/mergeMap"),b=t("rxjs/operator/pairwise"),m=t("rxjs/operator/share"),v=t("rxjs/operator/startWith"),y=t("rxjs/operator/switchMap"),g=t("rxjs/operator/takeUntil"),w=t("rxjs/operator/zip"),x=t("y-push-state/src/vanilla"),_=n(x),S=t("elem-dataset"),O=n(S),k=t("./common"),j=t("./cross-fader"),T=n(j),E=t("./katex"),M=n(E),A=t("./flip/flip"),P=n(A);t("./flip/title"),t("./flip/project");var C=["eventlistener","queryselector","requestanimationframe","classlist","documentfragment","history","opacity","cssanimations"];if((0,k.hasFeatures)(C)){var N,R=navigator.userAgent.toLowerCase(),z=R.indexOf("safari")>0&&R.indexOf("chrome")<0,F=new T.default({duration:500}),q=document.getElementById("_yPushState"),I=document.createElement("div");I.classList.add("shadow-main"),I.innerHTML='\n <div class="content container">\n <div class="page"></div>\n </div>',q.parentNode.insertBefore(I,q);var D=document.createElement("div");D.classList.add("loading"),D.innerHTML='\n <span class="sr-only">Loading...</span>\n <div class="sk-folding-cube">\n <div class="sk-cube1 sk-cube"></div>\n <div class="sk-cube2 sk-cube"></div>\n <div class="sk-cube4 sk-cube"></div>\n <div class="sk-cube3 sk-cube"></div>\n </div>\n ',q.parentNode.insertBefore(D,q);var L=(N=(N=(N=(N=a.fromEvent.call(s.Observable,q,"y-push-state-start"),f.map).call(N,function(t){return t.detail}),f.map).call(N,function(t){return[t,document.getElementById("_main")]}),c._do).call(N,function(){!window.isDesktop&&window.drawer.opened&&window.drawer.close()}),m.share).call(N),U=(N=(N=a.fromEvent.call(s.Observable,q,"y-push-state-ready"),f.map).call(N,function(t){return t.detail}),m.share).call(N),B=(N=a.fromEvent.call(s.Observable,q,"y-push-state-progress"),f.map).call(N,function(t){return t.detail}),H=(N=(N=a.fromEvent.call(s.Observable,q,"y-push-state-after"),f.map).call(N,function(t){return t.detail}),m.share).call(N);z&&(a.fromEvent.call(s.Observable,window,"popstate").subscribe(function(){document.body.style.minHeight="999999px"}),H.subscribe(function(){document.body.style.minHeight=""})),(N=y.switchMap.call(L,function(t){var e=o(t,1),r=e[0],n=r.event.currentTarget,i=P.default.create(n.getAttribute&&n.getAttribute("data-flip"),{shadowMain:I,currentTarget:n,duration:250});return r.flip=i,i.start(n)}),i).call(N).subscribe(),(N=(N=(N=c._do.call(L,function(t){o(t,2)[1].style.opacity=0}),p.filter).call(N,function(t){return"push"===o(t,1)[0].type||!z}),h.exhaustMap).call(N,function(t){var e,r=o(t,2),n=r[0].type,i=r[1];return(e=(e=(0,k.animate)(i,[{opacity:1},{opacity:0}],{duration:250,easing:"cubic-bezier(0,0,0.32,1)"}),c._do).call(e,function(){"push"===n&&window.scroll(0,0)}),w.zipProto).call(e,H)}),i).call(N).subscribe(),(N=c._do.call(B,function(){D.style.display="block"}),i).call(N).subscribe(),(N=(N=(N=c._do.call(U,function(){D.style.display="none"}),p.filter).call(N,function(t){return"push"===t.type||!z}),y.switchMap).call(N,function(t){var e,r=t.flip,n=o(t.content,1),i=n[0];return(e=r.ready(i),g.takeUntil).call(e,L)}),i).call(N).subscribe(),(N=(N=(N=(N=y.switchMap.call(U,function(t){var e,r=o(t.content,1),n=r[0];return(e=F.fetchImage((0,O.default)(n)),g.takeUntil).call(e,L)}),v.startWith).call(N,document.querySelector(".sidebar-bg")),b.pairwise).call(N),d.mergeMap).call(N,F.crossFade.bind(F)),i).call(N).subscribe(),(N=(N=(N=p.filter.call(H,function(t){return"push"===t.type||!z}),f.map).call(N,function(t){return[t,document.querySelector("main")]}),y.switchMap).call(N,function(t){var e=o(t,2),r=e[1];return(0,k.animate)(r,[{transform:"translateY(-2rem)",opacity:0},{transform:"translateY(0)",opacity:1}],{duration:250,easing:"cubic-bezier(0,0,0.32,1)"})}),i).call(N).subscribe(),(N=(N=l.debounceTime.call(H,500),c._do).call(N,function(){window.ga&&window.ga("send","pageview"),(0,M.default)()}),i).call(N).subscribe(),new _.default(q,{replaceIds:["_main"],linkSelector:'a[href^="/"]',duration:250,noPopDuration:z,scrollRestoration:!z}).startHistory()}},{"./common":3,"./cross-fader":4,"./flip/flip":6,"./flip/project":7,"./flip/title":8,"./katex":10,"elem-dataset":89,"rxjs/Observable":117,"rxjs/observable/fromEvent":132,"rxjs/operator/catch":134,"rxjs/operator/debounceTime":136,"rxjs/operator/do":137,"rxjs/operator/exhaustMap":138,"rxjs/operator/filter":139,"rxjs/operator/map":141,"rxjs/operator/mergeMap":143,"rxjs/operator/pairwise":145,"rxjs/operator/share":146,"rxjs/operator/startWith":147,"rxjs/operator/switchMap":148,"rxjs/operator/takeUntil":149,"rxjs/operator/zip":150,"y-push-state/src/vanilla":278}],12:[function(t,e,r){function n(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 i=t("color-name"),o={};for(var s in i)i.hasOwnProperty(s)&&(o[i[s]]=s);var a=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var 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,r,n,i=t[0]/255,o=t[1]/255,s=t[2]/255,a=Math.min(i,o,s),u=Math.max(i,o,s),c=u-a;return u===a?e=0:i===u?e=(o-s)/c:o===u?e=2+(s-i)/c:s===u&&(e=4+(i-o)/c),e=Math.min(60*e,360),e<0&&(e+=360),n=(a+u)/2,r=u===a?0:n<=.5?c/(u+a):c/(2-u-a),[e,100*r,100*n]},a.rgb.hsv=function(t){var e,r,n,i=t[0],o=t[1],s=t[2],a=Math.min(i,o,s),u=Math.max(i,o,s),c=u-a;return r=0===u?0:c/u*1e3/10,u===a?e=0:i===u?e=(o-s)/c:o===u?e=2+(s-i)/c:s===u&&(e=4+(i-o)/c),e=Math.min(60*e,360),e<0&&(e+=360),n=u/255*1e3/10,[e,r,n]},a.rgb.hwb=function(t){var e=t[0],r=t[1],n=t[2],i=a.rgb.hsl(t)[0],o=1/255*Math.min(e,Math.min(r,n));return n=1-1/255*Math.max(e,Math.max(r,n)),[i,100*o,100*n]},a.rgb.cmyk=function(t){var e,r,n,i,o=t[0]/255,s=t[1]/255,a=t[2]/255;return i=Math.min(1-o,1-s,1-a),e=(1-o-i)/(1-i)||0,r=(1-s-i)/(1-i)||0,n=(1-a-i)/(1-i)||0,[100*e,100*r,100*n,100*i]},a.rgb.keyword=function(t){var e=o[t];if(e)return e;var r,s=1/0;for(var a in i)if(i.hasOwnProperty(a)){var u=i[a],c=n(t,u);c<s&&(s=c,r=a)}return r},a.keyword.rgb=function(t){return i[t]},a.rgb.xyz=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255;return e=e>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92,r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92,[100*(.4124*e+.3576*r+.1805*n),100*(.2126*e+.7152*r+.0722*n),100*(.0193*e+.1192*r+.9505*n)]},a.rgb.lab=function(t){var e,r,n,i=a.rgb.xyz(t),o=i[0],s=i[1],u=i[2];return o/=95.047,s/=100,u/=108.883,o=o>.008856?Math.pow(o,1/3):7.787*o+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,r=500*(o-s),n=200*(s-u),[e,r,n]},a.hsl.rgb=function(t){var e,r,n,i,o,s=t[0]/360,a=t[1]/100,u=t[2]/100;if(0===a)return o=255*u,[o,o,o];r=u<.5?u*(1+a):u+a-u*a,e=2*u-r,i=[0,0,0];for(var c=0;c<3;c++)n=s+1/3*-(c-1),n<0&&n++,n>1&&n--,o=6*n<1?e+6*(r-e)*n:2*n<1?r:3*n<2?e+(r-e)*(2/3-n)*6:e,i[c]=255*o;return i},a.hsl.hsv=function(t){var e,r,n=t[0],i=t[1]/100,o=t[2]/100,s=i,a=Math.max(o,.01);return o*=2,i*=o<=1?o:2-o,s*=a<=1?a:2-a,r=(o+i)/2,e=0===o?2*s/(a+s):2*i/(o+i),[n,100*e,100*r]},a.hsv.rgb=function(t){var e=t[0]/60,r=t[1]/100,n=t[2]/100,i=Math.floor(e)%6,o=e-Math.floor(e),s=255*n*(1-r),a=255*n*(1-r*o),u=255*n*(1-r*(1-o));switch(n*=255,i){case 0:return[n,u,s];case 1:return[a,n,s];case 2:return[s,n,u];case 3:return[s,a,n];case 4:return[u,s,n];case 5:return[n,s,a]}},a.hsv.hsl=function(t){var e,r,n,i=t[0],o=t[1]/100,s=t[2]/100,a=Math.max(s,.01);return n=(2-o)*s,e=(2-o)*a,r=o*a,r/=e<=1?e:2-e,r=r||0,n/=2,[i,100*r,100*n]},a.hwb.rgb=function(t){var e,r,n,i,o=t[0]/360,s=t[1]/100,a=t[2]/100,u=s+a;u>1&&(s/=u,a/=u),e=Math.floor(6*o),r=1-a,n=6*o-e,0!=(1&e)&&(n=1-n),i=s+n*(r-s);var c,l,h;switch(e){default:case 6:case 0:c=r,l=i,h=s;break;case 1:c=i,l=r,h=s;break;case 2:c=s,l=r,h=i;break;case 3:c=s,l=i,h=r;break;case 4:c=i,l=s,h=r;break;case 5:c=r,l=s,h=i}return[255*c,255*l,255*h]},a.cmyk.rgb=function(t){var e,r,n,i=t[0]/100,o=t[1]/100,s=t[2]/100,a=t[3]/100;return e=1-Math.min(1,i*(1-a)+a),r=1-Math.min(1,o*(1-a)+a),n=1-Math.min(1,s*(1-a)+a),[255*e,255*r,255*n]},a.xyz.rgb=function(t){var e,r,n,i=t[0]/100,o=t[1]/100,s=t[2]/100;return e=3.2406*i+-1.5372*o+-.4986*s,r=-.9689*i+1.8758*o+.0415*s,n=.0557*i+-.204*o+1.057*s,e=e>.0031308?1.055*Math.pow(e,1/2.4)-.055:12.92*e,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,e=Math.min(Math.max(0,e),1),r=Math.min(Math.max(0,r),1),n=Math.min(Math.max(0,n),1),[255*e,255*r,255*n]},a.xyz.lab=function(t){var e,r,n,i=t[0],o=t[1],s=t[2];return i/=95.047,o/=100,s/=108.883,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,o=o>.008856?Math.pow(o,1/3):7.787*o+16/116,s=s>.008856?Math.pow(s,1/3):7.787*s+16/116,e=116*o-16,r=500*(i-o),n=200*(o-s),[e,r,n]},a.lab.xyz=function(t){var e,r,n,i=t[0],o=t[1],s=t[2];r=(i+16)/116,e=o/500+r,n=r-s/200;var a=Math.pow(r,3),u=Math.pow(e,3),c=Math.pow(n,3);return r=a>.008856?a:(r-16/116)/7.787,e=u>.008856?u:(e-16/116)/7.787,n=c>.008856?c:(n-16/116)/7.787,e*=95.047,r*=100,n*=108.883,[e,r,n]},a.lab.lch=function(t){var e,r,n,i=t[0],o=t[1],s=t[2];return e=Math.atan2(s,o),r=360*e/2/Math.PI,r<0&&(r+=360),n=Math.sqrt(o*o+s*s),[i,n,r]},a.lch.lab=function(t){var e,r,n,i=t[0],o=t[1],s=t[2];return n=s/360*2*Math.PI,e=o*Math.cos(n),r=o*Math.sin(n),[i,e,r]},a.rgb.ansi16=function(t){var e=t[0],r=t[1],n=t[2],i=1 in arguments?arguments[1]:a.rgb.hsv(t)[2];if(0===(i=Math.round(i/50)))return 30;var o=30+(Math.round(n/255)<<2|Math.round(r/255)<<1|Math.round(e/255));return 2===i&&(o+=60),o},a.hsv.ansi16=function(t){return a.rgb.ansi16(a.hsv.rgb(t),t[2])},a.rgb.ansi256=function(t){var e=t[0],r=t[1],n=t[2];return e===r&&r===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(n/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 r=.5*(1+~~(t>50));return[(1&e)*r*255,(e>>1&1)*r*255,(e>>2&1)*r*255]},a.ansi256.rgb=function(t){if(t>=232){var e=10*(t-232)+8;return[e,e,e]}t-=16;var r;return[Math.floor(t/36)/5*255,Math.floor((r=t%36)/6)/5*255,r%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])),r=e.toString(16).toUpperCase();return"000000".substring(r.length)+r},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 r=e[0];3===e[0].length&&(r=r.split("").map(function(t){return t+t}).join(""));var n=parseInt(r,16);return[n>>16&255,n>>8&255,255&n]},a.rgb.hcg=function(t){var e,r,n=t[0]/255,i=t[1]/255,o=t[2]/255,s=Math.max(Math.max(n,i),o),a=Math.min(Math.min(n,i),o),u=s-a;return e=u<1?a/(1-u):0,r=u<=0?0:s===n?(i-o)/u%6:s===i?2+(o-n)/u:4+(n-i)/u+4,r/=6,r%=1,[360*r,100*u,100*e]},a.hsl.hcg=function(t){var e=t[1]/100,r=t[2]/100,n=1,i=0;return n=r<.5?2*e*r:2*e*(1-r),n<1&&(i=(r-.5*n)/(1-n)),[t[0],100*n,100*i]},a.hsv.hcg=function(t){var e=t[1]/100,r=t[2]/100,n=e*r,i=0;return n<1&&(i=(r-n)/(1-n)),[t[0],100*n,100*i]},a.hcg.rgb=function(t){var e=t[0]/360,r=t[1]/100,n=t[2]/100;if(0===r)return[255*n,255*n,255*n];var i=[0,0,0],o=e%1*6,s=o%1,a=1-s,u=0;switch(Math.floor(o)){case 0:i[0]=1,i[1]=s,i[2]=0;break;case 1:i[0]=a,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=s;break;case 3:i[0]=0,i[1]=a,i[2]=1;break;case 4:i[0]=s,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=a}return u=(1-r)*n,[255*(r*i[0]+u),255*(r*i[1]+u),255*(r*i[2]+u)]},a.hcg.hsv=function(t){var e=t[1]/100,r=t[2]/100,n=e+r*(1-e),i=0;return n>0&&(i=e/n),[t[0],100*i,100*n]},a.hcg.hsl=function(t){var e=t[1]/100,r=t[2]/100,n=r*(1-e)+.5*e,i=0;return n>0&&n<.5?i=e/(2*n):n>=.5&&n<1&&(i=e/(2*(1-n))),[t[0],100*i,100*n]},a.hcg.hwb=function(t){var e=t[1]/100,r=t[2]/100,n=e+r*(1-e);return[t[0],100*(n-e),100*(1-n)]},a.hwb.hcg=function(t){var e=t[1]/100,r=t[2]/100,n=1-r,i=n-e,o=0;return i<1&&(o=(n-i)/(1-i)),[t[0],100*i,100*o]},a.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]},a.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]},a.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]},a.gray.hsl=a.gray.hsv=function(t){return[0,0,t[0]]},a.gray.hwb=function(t){return[0,100,t[0]]},a.gray.cmyk=function(t){return[0,0,0,t[0]]},a.gray.lab=function(t){return[t[0],0,0]},a.gray.hex=function(t){var e=255&Math.round(t[0]/100*255),r=(e<<16)+(e<<8)+e,n=r.toString(16).toUpperCase();return"000000".substring(n.length)+n},
17
17
  a.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]}},{"color-name":15}],13:[function(t,e,r){function n(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 i(t){var e=function(e){if(void 0===e||null===e)return e;arguments.length>1&&(e=Array.prototype.slice.call(arguments));var r=t(e);if("object"==typeof r)for(var n=r.length,i=0;i<n;i++)r[i]=Math.round(r[i]);return r};return"conversion"in t&&(e.conversion=t.conversion),e}var o=t("./conversions"),s=t("./route"),a={};Object.keys(o).forEach(function(t){a[t]={},Object.defineProperty(a[t],"channels",{value:o[t].channels}),Object.defineProperty(a[t],"labels",{value:o[t].labels});var e=s(t);Object.keys(e).forEach(function(r){var o=e[r];a[t][r]=i(o),a[t][r].raw=n(o)})}),e.exports=a},{"./conversions":12,"./route":14}],14:[function(t,e,r){function n(){for(var t={},e=u.length,r=0;r<e;r++)t[u[r]]={distance:-1,parent:null};return t}function i(t){var e=n(),r=[t];for(e[t].distance=0;r.length;)for(var i=r.pop(),o=Object.keys(a[i]),s=o.length,u=0;u<s;u++){var c=o[u],l=e[c];-1===l.distance&&(l.distance=e[i].distance+1,l.parent=i,r.unshift(c))}return e}function o(t,e){return function(r){return e(t(r))}}function s(t,e){for(var r=[e[t].parent,t],n=a[e[t].parent][t],i=e[t].parent;e[i].parent;)r.unshift(e[i].parent),n=o(a[e[i].parent][i],n),i=e[i].parent;return n.conversion=r,n}var a=t("./conversions"),u=Object.keys(a);e.exports=function(t){for(var e=i(t),r={},n=Object.keys(e),o=n.length,a=0;a<o;a++){var u=n[a];null!==e[u].parent&&(r[u]=s(u,e))}return r}},{"./conversions":12}],15:[function(t,e,r){e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},{}],16:[function(t,e,r){function n(t,e,r){return Math.min(Math.max(e,t),r)}function i(t){var e=t.toString(16).toUpperCase();return e.length<2?"0"+e:e}var o=t("color-name"),s=t("simple-swizzle"),a={};for(var u in o)o.hasOwnProperty(u)&&(a[o[u]]=u);var c=e.exports={to:{}};c.get=function(t){var e,r,n=t.substring(0,3).toLowerCase();switch(n){case"hsl":e=c.get.hsl(t),r="hsl";break;case"hwb":e=c.get.hwb(t),r="hwb";break;default:e=c.get.rgb(t),r="rgb"}return e?{model:r,value:e}:null},c.get.rgb=function(t){if(!t)return null;var e,r,i,s=[0,0,0,1];if(e=t.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(i=e[2],e=e[1],r=0;r<3;r++){var a=2*r;s[r]=parseInt(e.slice(a,a+2),16)}i&&(s[3]=Math.round(parseInt(i,16)/255*100)/100)}else if(e=t.match(/^#([a-f0-9]{3,4})$/i)){for(e=e[1],i=e[3],r=0;r<3;r++)s[r]=parseInt(e[r]+e[r],16);i&&(s[3]=Math.round(parseInt(i+i,16)/255*100)/100)}else if(e=t.match(/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/)){for(r=0;r<3;r++)s[r]=parseInt(e[r+1],0);e[4]&&(s[3]=parseFloat(e[4]))}else{if(!(e=t.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/)))return(e=t.match(/(\D+)/))?"transparent"===e[1]?[0,0,0,0]:(s=o[e[1]])?(s[3]=1,s):null:null;for(r=0;r<3;r++)s[r]=Math.round(2.55*parseFloat(e[r+1]));e[4]&&(s[3]=parseFloat(e[4]))}for(r=0;r<3;r++)s[r]=n(s[r],0,255);return s[3]=n(s[3],0,1),s},c.get.hsl=function(t){if(!t)return null;var e=t.match(/^hsla?\(\s*([+-]?\d*[\.]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/);if(e){var r=parseFloat(e[4]);return[(parseFloat(e[1])%360+360)%360,n(parseFloat(e[2]),0,100),n(parseFloat(e[3]),0,100),n(isNaN(r)?1:r,0,1)]}return null},c.get.hwb=function(t){if(!t)return null;var e=t.match(/^hwb\(\s*([+-]?\d*[\.]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/);if(e){var r=parseFloat(e[4]);return[(parseFloat(e[1])%360+360)%360,n(parseFloat(e[2]),0,100),n(parseFloat(e[3]),0,100),n(isNaN(r)?1:r,0,1)]}return null},c.to.hex=function(){var t=s(arguments);return"#"+i(t[0])+i(t[1])+i(t[2])+(t[3]<1?i(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),r=Math.round(t[1]/255*100),n=Math.round(t[2]/255*100);return t.length<4||1===t[3]?"rgb("+e+"%, "+r+"%, "+n+"%)":"rgba("+e+"%, "+r+"%, "+n+"%, "+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)]}},{"color-name":15,"simple-swizzle":173}],17:[function(t,e,r){"use strict";function n(t,e){if(!(this instanceof n))return new n(t,e);if(e&&e in f&&(e=null),e&&!(e in h))throw new Error("Unknown model: "+e);var r,i;if(t)if(t instanceof n)this.model=t.model,this.color=t.color.slice(),this.valpha=t.valpha;else if("string"==typeof t){var o=l.get(t);if(null===o)throw new Error("Unable to parse color from string: "+t);this.model=o.model,i=h[this.model].channels,this.color=o.value.slice(0,i),this.valpha="number"==typeof o.value[i]?o.value[i]:1}else if(t.length){this.model=e||"rgb",i=h[this.model].channels;var s=p.call(t,0,i);this.color=c(s,i),this.valpha="number"==typeof t[i]?t[i]: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 m=h[this.model].labels,v=[];for(r=0;r<m.length;r++)v.push(t[m[r]]);this.color=c(v)}else this.model="rgb",this.color=[0,0,0],this.valpha=1;if(b[this.model])for(i=h[this.model].channels,r=0;r<i;r++){var y=b[this.model][r];y&&(this.color[r]=y(this.color[r]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}function i(t,e){return Number(t.toFixed(e))}function o(t){return function(e){return i(e,t)}}function s(t,e,r){return t=Array.isArray(t)?t:[t],t.forEach(function(t){(b[t]||(b[t]=[]))[e]=r}),t=t[0],function(n){var i;return arguments.length?(r&&(n=r(n)),i=this[t](),i.color[e]=n,i):(i=this[t]().color[e],r&&(i=r(i)),i)}}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 r=0;r<e;r++)"number"!=typeof t[r]&&(t[r]=0);return t}var l=t("color-string"),h=t("color-convert"),p=[].slice,f=["keyword","gray","hex"],d={};Object.keys(h).forEach(function(t){d[p.call(h[t].labels).sort().join("")]=t});var b={};n.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 r=1===e.valpha?e.color:e.color.concat(this.valpha);return l.to[e.model](r)},percentString:function(t){var e=this.rgb().round("number"==typeof t?t:1),r=1===e.valpha?e.color:e.color.concat(this.valpha);return l.to.rgb.percent(r)},array:function(){return 1===this.valpha?this.color.slice():this.color.concat(this.valpha)},object:function(){for(var t={},e=h[this.model].channels,r=h[this.model].labels,n=0;n<e;n++)t[r[n]]=this.color[n];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 n(this.color.map(o(t)).concat(this.valpha),this.model)},alpha:function(t){return arguments.length?new n(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 n(t):h[this.model].keyword(this.color)},hex:function(t){return arguments.length?new n(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=[],r=0;r<t.length;r++){var n=t[r]/255;e[r]=n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4)}return.2126*e[0]+.7152*e[1]+.0722*e[2]},contrast:function(t){var e=this.luminosity(),r=t.luminosity();return e>r?(e+.05)/(r+.05):(r+.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 n.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(),r=e.color[0];return r=(r+t)%360,r=r<0?360+r:r,e.color[0]=r,e},mix:function(t,e){var r=this.rgb(),i=t.rgb(),o=void 0===e?.5:e,s=2*o-1,a=r.alpha()-i.alpha(),u=((s*a==-1?s:(s+a)/(1+s*a))+1)/2,c=1-u;return n.rgb(u*r.red()+c*i.red(),u*r.green()+c*i.green(),u*r.blue()+c*i.blue(),r.alpha()*o+i.alpha()*(1-o))}},Object.keys(h).forEach(function(t){if(-1===f.indexOf(t)){var e=h[t].channels;n.prototype[t]=function(){if(this.model===t)return new n(this);if(arguments.length)return new n(arguments,t);var r="number"==typeof arguments[e]?e:this.valpha;return new n(u(h[this.model][t].raw(this.color)).concat(r),t)},n[t]=function(r){return"number"==typeof r&&(r=c(p.call(arguments),e)),new n(r,t)}}}),e.exports=n},{"color-convert":13,"color-string":16}],18:[function(t,e,r){t("../../modules/es6.array.find"),e.exports=t("../../modules/_core").Array.find},{"../../modules/_core":36,"../../modules/es6.array.find":81}],19:[function(t,e,r){t("../../modules/es6.array.for-each"),e.exports=t("../../modules/_core").Array.forEach},{"../../modules/_core":36,"../../modules/es6.array.for-each":82}],20:[function(t,e,r){t("../../modules/es6.array.reduce"),e.exports=t("../../modules/_core").Array.reduce},{"../../modules/_core":36,"../../modules/es6.array.reduce":83}],21:[function(t,e,r){t("../../modules/es6.function.bind"),e.exports=t("../../modules/_core").Function.bind},{"../../modules/_core":36,"../../modules/es6.function.bind":84}],22:[function(t,e,r){t("../../modules/es6.number.constructor"),e.exports=Number},{"../../modules/es6.number.constructor":85}],23:[function(t,e,r){t("../../modules/es6.object.assign"),e.exports=t("../../modules/_core").Object.assign},{"../../modules/_core":36,"../../modules/es6.object.assign":86}],24:[function(t,e,r){t("../../modules/es6.object.define-property");var n=t("../../modules/_core").Object;e.exports=function(t,e,r){return n.defineProperty(t,e,r)}},{"../../modules/_core":36,"../../modules/es6.object.define-property":87}],25:[function(t,e,r){t("../../modules/es6.object.keys"),e.exports=t("../../modules/_core").Object.keys},{"../../modules/_core":36,"../../modules/es6.object.keys":88}],26:[function(t,e,r){e.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},{}],27:[function(t,e,r){var n=t("./_wks")("unscopables"),i=Array.prototype;void 0==i[n]&&t("./_hide")(i,n,{}),e.exports=function(t){i[n][t]=!0}},{"./_hide":46,"./_wks":80}],28:[function(t,e,r){var n=t("./_is-object");e.exports=function(t){if(!n(t))throw TypeError(t+" is not an object!");return t}},{"./_is-object":53}],29:[function(t,e,r){var n=t("./_to-iobject"),i=t("./_to-length"),o=t("./_to-index");e.exports=function(t){return function(e,r,s){var a,u=n(e),c=i(u.length),l=o(s,c);if(t&&r!=r){for(;c>l;)if((a=u[l++])!=a)return!0}else for(;c>l;l++)if((t||l in u)&&u[l]===r)return t||l||0;return!t&&-1}}},{"./_to-index":73,"./_to-iobject":75,"./_to-length":76}],30:[function(t,e,r){var n=t("./_ctx"),i=t("./_iobject"),o=t("./_to-object"),s=t("./_to-length"),a=t("./_array-species-create");e.exports=function(t,e){var r=1==t,u=2==t,c=3==t,l=4==t,h=6==t,p=5==t||h,f=e||a;return function(e,a,d){for(var b,m,v=o(e),y=i(v),g=n(a,d,3),w=s(y.length),x=0,_=r?f(e,w):u?f(e,0):void 0;w>x;x++)if((p||x in y)&&(b=y[x],m=g(b,x,v),t))if(r)_[x]=m;else if(m)switch(t){case 3:return!0;case 5:return b;case 6:return x;case 2:_.push(b)}else if(l)return!1;return h?-1:c||l?l:_}}},{"./_array-species-create":33,"./_ctx":37,"./_iobject":51,"./_to-length":76,"./_to-object":77}],31:[function(t,e,r){var n=t("./_a-function"),i=t("./_to-object"),o=t("./_iobject"),s=t("./_to-length");e.exports=function(t,e,r,a,u){n(e);var c=i(t),l=o(c),h=s(c.length),p=u?h-1:0,f=u?-1:1;if(r<2)for(;;){if(p in l){a=l[p],p+=f;break}if(p+=f,u?p<0:h<=p)throw TypeError("Reduce of empty array with no initial value")}for(;u?p>=0:h>p;p+=f)p in l&&(a=e(a,l[p],p,c));return a}},{"./_a-function":26,"./_iobject":51,"./_to-length":76,"./_to-object":77}],32:[function(t,e,r){var n=t("./_is-object"),i=t("./_is-array"),o=t("./_wks")("species");e.exports=function(t){var e;return i(t)&&(e=t.constructor,"function"!=typeof e||e!==Array&&!i(e.prototype)||(e=void 0),n(e)&&null===(e=e[o])&&(e=void 0)),void 0===e?Array:e}},{"./_is-array":52,"./_is-object":53,"./_wks":80}],33:[function(t,e,r){var n=t("./_array-species-constructor");e.exports=function(t,e){return new(n(t))(e)}},{"./_array-species-constructor":32}],34:[function(t,e,r){"use strict";var n=t("./_a-function"),i=t("./_is-object"),o=t("./_invoke"),s=[].slice,a={},u=function(t,e,r){if(!(e in a)){for(var n=[],i=0;i<e;i++)n[i]="a["+i+"]";a[e]=Function("F,a","return new F("+n.join(",")+")")}return a[e](t,r)};e.exports=Function.bind||function(t){var e=n(this),r=s.call(arguments,1),a=function(){var n=r.concat(s.call(arguments));return this instanceof a?u(e,n.length,n):o(e,n,t)};return i(e.prototype)&&(a.prototype=e.prototype),a}},{"./_a-function":26,"./_invoke":50,"./_is-object":53}],35:[function(t,e,r){var n={}.toString;e.exports=function(t){return n.call(t).slice(8,-1)}},{}],36:[function(t,e,r){var n=e.exports={version:"2.4.0"};"number"==typeof __e&&(__e=n)},{}],37:[function(t,e,r){var n=t("./_a-function");e.exports=function(t,e,r){if(n(t),void 0===e)return t;switch(r){case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,i){return t.call(e,r,n,i)}}return function(){return t.apply(e,arguments)}}},{"./_a-function":26}],38:[function(t,e,r){e.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},{}],39:[function(t,e,r){e.exports=!t("./_fails")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},{"./_fails":43}],40:[function(t,e,r){var n=t("./_is-object"),i=t("./_global").document,o=n(i)&&n(i.createElement);e.exports=function(t){return o?i.createElement(t):{}}},{"./_global":44,"./_is-object":53}],41:[function(t,e,r){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],42:[function(t,e,r){var n=t("./_global"),i=t("./_core"),o=t("./_hide"),s=t("./_redefine"),a=t("./_ctx"),u=function(t,e,r){var c,l,h,p,f=t&u.F,d=t&u.G,b=t&u.S,m=t&u.P,v=t&u.B,y=d?n:b?n[e]||(n[e]={}):(n[e]||{}).prototype,g=d?i:i[e]||(i[e]={}),w=g.prototype||(g.prototype={});d&&(r=e);for(c in r)l=!f&&y&&void 0!==y[c],h=(l?y:r)[c],p=v&&l?a(h,n):m&&"function"==typeof h?a(Function.call,h):h,y&&s(y,c,h,t&u.U),g[c]!=h&&o(g,c,p),m&&w[c]!=h&&(w[c]=h)};n.core=i,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},{"./_core":36,"./_ctx":37,"./_global":44,"./_hide":46,"./_redefine":66}],43:[function(t,e,r){e.exports=function(t){try{return!!t()}catch(t){return!0}}},{}],44:[function(t,e,r){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},{}],45:[function(t,e,r){var n={}.hasOwnProperty;e.exports=function(t,e){return n.call(t,e)}},{}],46:[function(t,e,r){var n=t("./_object-dp"),i=t("./_property-desc");e.exports=t("./_descriptors")?function(t,e,r){return n.f(t,e,i(1,r))}:function(t,e,r){return t[e]=r,t}},{"./_descriptors":39,"./_object-dp":56,"./_property-desc":65}],47:[function(t,e,r){e.exports=t("./_global").document&&document.documentElement},{"./_global":44}],48:[function(t,e,r){e.exports=!t("./_descriptors")&&!t("./_fails")(function(){return 7!=Object.defineProperty(t("./_dom-create")("div"),"a",{get:function(){return 7}}).a})},{"./_descriptors":39,"./_dom-create":40,"./_fails":43}],49:[function(t,e,r){var n=t("./_is-object"),i=t("./_set-proto").set;e.exports=function(t,e,r){var o,s=e.constructor;return s!==r&&"function"==typeof s&&(o=s.prototype)!==r.prototype&&n(o)&&i&&i(t,o),t}},{"./_is-object":53,"./_set-proto":67}],50:[function(t,e,r){e.exports=function(t,e,r){var n=void 0===r;switch(e.length){case 0:return n?t():t.call(r);case 1:return n?t(e[0]):t.call(r,e[0]);case 2:return n?t(e[0],e[1]):t.call(r,e[0],e[1]);case 3:return n?t(e[0],e[1],e[2]):t.call(r,e[0],e[1],e[2]);case 4:return n?t(e[0],e[1],e[2],e[3]):t.call(r,e[0],e[1],e[2],e[3])}return t.apply(r,e)}},{}],51:[function(t,e,r){var n=t("./_cof");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==n(t)?t.split(""):Object(t)}},{"./_cof":35}],52:[function(t,e,r){var n=t("./_cof");e.exports=Array.isArray||function(t){return"Array"==n(t)}},{"./_cof":35}],53:[function(t,e,r){e.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},{}],54:[function(t,e,r){"use strict";var n=t("./_object-keys"),i=t("./_object-gops"),o=t("./_object-pie"),s=t("./_to-object"),a=t("./_iobject"),u=Object.assign;e.exports=!u||t("./_fails")(function(){var t={},e={},r=Symbol(),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach(function(t){e[t]=t}),7!=u({},t)[r]||Object.keys(u({},e)).join("")!=n})?function(t,e){for(var r=s(t),u=arguments.length,c=1,l=i.f,h=o.f;u>c;)for(var p,f=a(arguments[c++]),d=l?n(f).concat(l(f)):n(f),b=d.length,m=0;b>m;)h.call(f,p=d[m++])&&(r[p]=f[p]);return r}:u},{"./_fails":43,"./_iobject":51,"./_object-gops":60,"./_object-keys":62,"./_object-pie":63,"./_to-object":77}],55:[function(t,e,r){var n=t("./_an-object"),i=t("./_object-dps"),o=t("./_enum-bug-keys"),s=t("./_shared-key")("IE_PROTO"),a=function(){},u=function(){var e,r=t("./_dom-create")("iframe"),n=o.length;for(r.style.display="none",t("./_html").appendChild(r),r.src="javascript:",e=r.contentWindow.document,e.open(),e.write("<script>document.F=Object</script>"),e.close(),u=e.F;n--;)delete u.prototype[o[n]];return u()};e.exports=Object.create||function(t,e){var r;return null!==t?(a.prototype=n(t),r=new a,a.prototype=null,r[s]=t):r=u(),void 0===e?r:i(r,e)}},{"./_an-object":28,"./_dom-create":40,"./_enum-bug-keys":41,"./_html":47,"./_object-dps":57,"./_shared-key":68}],56:[function(t,e,r){var n=t("./_an-object"),i=t("./_ie8-dom-define"),o=t("./_to-primitive"),s=Object.defineProperty;r.f=t("./_descriptors")?Object.defineProperty:function(t,e,r){if(n(t),e=o(e,!0),n(r),i)try{return s(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[e]=r.value),t}},{"./_an-object":28,"./_descriptors":39,"./_ie8-dom-define":48,"./_to-primitive":78}],57:[function(t,e,r){var n=t("./_object-dp"),i=t("./_an-object"),o=t("./_object-keys");e.exports=t("./_descriptors")?Object.defineProperties:function(t,e){i(t);for(var r,s=o(e),a=s.length,u=0;a>u;)n.f(t,r=s[u++],e[r]);return t}},{"./_an-object":28,"./_descriptors":39,"./_object-dp":56,"./_object-keys":62}],58:[function(t,e,r){var n=t("./_object-pie"),i=t("./_property-desc"),o=t("./_to-iobject"),s=t("./_to-primitive"),a=t("./_has"),u=t("./_ie8-dom-define"),c=Object.getOwnPropertyDescriptor;r.f=t("./_descriptors")?c:function(t,e){if(t=o(t),e=s(e,!0),u)try{return c(t,e)}catch(t){}if(a(t,e))return i(!n.f.call(t,e),t[e])}},{"./_descriptors":39,"./_has":45,"./_ie8-dom-define":48,"./_object-pie":63,"./_property-desc":65,"./_to-iobject":75,"./_to-primitive":78}],59:[function(t,e,r){var n=t("./_object-keys-internal"),i=t("./_enum-bug-keys").concat("length","prototype");r.f=Object.getOwnPropertyNames||function(t){return n(t,i)}},{"./_enum-bug-keys":41,"./_object-keys-internal":61}],60:[function(t,e,r){r.f=Object.getOwnPropertySymbols},{}],61:[function(t,e,r){var n=t("./_has"),i=t("./_to-iobject"),o=t("./_array-includes")(!1),s=t("./_shared-key")("IE_PROTO");e.exports=function(t,e){var r,a=i(t),u=0,c=[];for(r in a)r!=s&&n(a,r)&&c.push(r);for(;e.length>u;)n(a,r=e[u++])&&(~o(c,r)||c.push(r));return c}},{"./_array-includes":29,"./_has":45,"./_shared-key":68,"./_to-iobject":75}],62:[function(t,e,r){var n=t("./_object-keys-internal"),i=t("./_enum-bug-keys");e.exports=Object.keys||function(t){return n(t,i)}},{"./_enum-bug-keys":41,"./_object-keys-internal":61}],63:[function(t,e,r){r.f={}.propertyIsEnumerable},{}],64:[function(t,e,r){var n=t("./_export"),i=t("./_core"),o=t("./_fails");e.exports=function(t,e){var r=(i.Object||{})[t]||Object[t],s={};s[t]=e(r),n(n.S+n.F*o(function(){r(1)}),"Object",s)}},{"./_core":36,"./_export":42,"./_fails":43}],65:[function(t,e,r){e.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},{}],66:[function(t,e,r){var n=t("./_global"),i=t("./_hide"),o=t("./_has"),s=t("./_uid")("src"),a=Function.toString,u=(""+a).split("toString");t("./_core").inspectSource=function(t){return a.call(t)},(e.exports=function(t,e,r,a){var c="function"==typeof r;c&&(o(r,"name")||i(r,"name",e)),t[e]!==r&&(c&&(o(r,s)||i(r,s,t[e]?""+t[e]:u.join(String(e)))),t===n?t[e]=r:a?t[e]?t[e]=r:i(t,e,r):(delete t[e],i(t,e,r)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[s]||a.call(this)})},{"./_core":36,"./_global":44,"./_has":45,"./_hide":46,"./_uid":79}],67:[function(t,e,r){var n=t("./_is-object"),i=t("./_an-object"),o=function(t,e){if(i(t),!n(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,r,n){try{n=t("./_ctx")(Function.call,t("./_object-gopd").f(Object.prototype,"__proto__").set,2),n(e,[]),r=!(e instanceof Array)}catch(t){r=!0}return function(t,e){return o(t,e),r?t.__proto__=e:n(t,e),t}}({},!1):void 0),check:o}},{"./_an-object":28,"./_ctx":37,"./_is-object":53,"./_object-gopd":58}],68:[function(t,e,r){var n=t("./_shared")("keys"),i=t("./_uid");e.exports=function(t){return n[t]||(n[t]=i(t))}},{"./_shared":69,"./_uid":79}],69:[function(t,e,r){var n=t("./_global"),i=n["__core-js_shared__"]||(n["__core-js_shared__"]={});e.exports=function(t){return i[t]||(i[t]={})}},{"./_global":44}],70:[function(t,e,r){var n=t("./_fails");e.exports=function(t,e){return!!t&&n(function(){e?t.call(null,function(){},1):t.call(null)})}},{"./_fails":43}],71:[function(t,e,r){var n=t("./_export"),i=t("./_defined"),o=t("./_fails"),s=t("./_string-ws"),a="["+s+"]",u="​…",c=RegExp("^"+a+a+"*"),l=RegExp(a+a+"*$"),h=function(t,e,r){var i={},a=o(function(){return!!s[t]()||u[t]()!=u}),c=i[t]=a?e(p):s[t];r&&(i[r]=c),n(n.P+n.F*a,"String",i)},p=h.trim=function(t,e){return t=String(i(t)),1&e&&(t=t.replace(c,"")),2&e&&(t=t.replace(l,"")),t};e.exports=h},{"./_defined":38,"./_export":42,"./_fails":43,"./_string-ws":72}],72:[function(t,e,r){e.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},{}],73:[function(t,e,r){var n=t("./_to-integer"),i=Math.max,o=Math.min;e.exports=function(t,e){return t=n(t),t<0?i(t+e,0):o(t,e)}},{"./_to-integer":74}],74:[function(t,e,r){var n=Math.ceil,i=Math.floor;e.exports=function(t){return isNaN(t=+t)?0:(t>0?i:n)(t)}},{}],75:[function(t,e,r){var n=t("./_iobject"),i=t("./_defined");e.exports=function(t){return n(i(t))}},{"./_defined":38,"./_iobject":51}],76:[function(t,e,r){var n=t("./_to-integer"),i=Math.min;e.exports=function(t){return t>0?i(n(t),9007199254740991):0}},{"./_to-integer":74}],77:[function(t,e,r){var n=t("./_defined");e.exports=function(t){return Object(n(t))}},{"./_defined":38}],78:[function(t,e,r){var n=t("./_is-object");e.exports=function(t,e){if(!n(t))return t;var r,i;if(e&&"function"==typeof(r=t.toString)&&!n(i=r.call(t)))return i;if("function"==typeof(r=t.valueOf)&&!n(i=r.call(t)))return i;if(!e&&"function"==typeof(r=t.toString)&&!n(i=r.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":53}],79:[function(t,e,r){var n=0,i=Math.random();e.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+i).toString(36))}},{}],80:[function(t,e,r){var n=t("./_shared")("wks"),i=t("./_uid"),o=t("./_global").Symbol,s="function"==typeof o;(e.exports=function(t){return n[t]||(n[t]=s&&o[t]||(s?o:i)("Symbol."+t))}).store=n},{"./_global":44,"./_shared":69,"./_uid":79}],81:[function(t,e,r){"use strict";var n=t("./_export"),i=t("./_array-methods")(5),o=!0;"find"in[]&&Array(1).find(function(){o=!1}),n(n.P+n.F*o,"Array",{find:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),t("./_add-to-unscopables")("find")},{"./_add-to-unscopables":27,"./_array-methods":30,"./_export":42}],82:[function(t,e,r){"use strict";var n=t("./_export"),i=t("./_array-methods")(0),o=t("./_strict-method")([].forEach,!0);n(n.P+n.F*!o,"Array",{forEach:function(t){return i(this,t,arguments[1])}})},{"./_array-methods":30,"./_export":42,"./_strict-method":70}],83:[function(t,e,r){"use strict";var n=t("./_export"),i=t("./_array-reduce");n(n.P+n.F*!t("./_strict-method")([].reduce,!0),"Array",{reduce:function(t){return i(this,t,arguments.length,arguments[1],!1)}})},{"./_array-reduce":31,"./_export":42,"./_strict-method":70}],84:[function(t,e,r){var n=t("./_export");n(n.P,"Function",{bind:t("./_bind")})},{"./_bind":34,"./_export":42}],85:[function(t,e,r){"use strict";var n=t("./_global"),i=t("./_has"),o=t("./_cof"),s=t("./_inherit-if-required"),a=t("./_to-primitive"),u=t("./_fails"),c=t("./_object-gopn").f,l=t("./_object-gopd").f,h=t("./_object-dp").f,p=t("./_string-trim").trim,f=n.Number,d=f,b=f.prototype,m="Number"==o(t("./_object-create")(b)),v="trim"in String.prototype,y=function(t){var e=a(t,!1);if("string"==typeof e&&e.length>2){e=v?e.trim():p(e,3);var r,n,i,o=e.charCodeAt(0);if(43===o||45===o){if(88===(r=e.charCodeAt(2))||120===r)return NaN}else if(48===o){switch(e.charCodeAt(1)){case 66:case 98:n=2,i=49;break;case 79:case 111:n=8,i=55;break;default:return+e}for(var s,u=e.slice(2),c=0,l=u.length;c<l;c++)if((s=u.charCodeAt(c))<48||s>i)return NaN;return parseInt(u,n)}}return+e};if(!f(" 0o1")||!f("0b1")||f("+0x1")){f=function(t){var e=arguments.length<1?0:t,r=this;return r instanceof f&&(m?u(function(){b.valueOf.call(r)}):"Number"!=o(r))?s(new d(y(e)),r,f):y(e)};for(var g,w=t("./_descriptors")?c(d):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),x=0;w.length>x;x++)i(d,g=w[x])&&!i(f,g)&&h(f,g,l(d,g));f.prototype=b,b.constructor=f,t("./_redefine")(n,"Number",f)}},{"./_cof":35,"./_descriptors":39,"./_fails":43,"./_global":44,"./_has":45,"./_inherit-if-required":49,"./_object-create":55,"./_object-dp":56,"./_object-gopd":58,"./_object-gopn":59,"./_redefine":66,"./_string-trim":71,"./_to-primitive":78}],86:[function(t,e,r){var n=t("./_export");n(n.S+n.F,"Object",{assign:t("./_object-assign")})},{"./_export":42,"./_object-assign":54}],87:[function(t,e,r){var n=t("./_export");n(n.S+n.F*!t("./_descriptors"),"Object",{defineProperty:t("./_object-dp").f})},{"./_descriptors":39,"./_export":42,"./_object-dp":56}],88:[function(t,e,r){var n=t("./_to-object"),i=t("./_object-keys");t("./_object-sap")("keys",function(){
18
18
  return function(t){return i(n(t))}})},{"./_object-keys":62,"./_object-sap":64,"./_to-object":77}],89:[function(t,e,r){"use strict";function n(t){return t.dataset}e.exports=function(){var t=document.createElement("div");return t.setAttribute("data-a-b","c"),Boolean(t.dataset&&"c"===t.dataset.aB)}()?n:function(t){function e(){return this.value}function r(t,e){void 0===e?this.removeAttribute(t):this.setAttribute(t,e)}for(var n={},i=t.attributes,o=0,s=i.length;o<s;o++){var a=i[o];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(n,c,{enumerable:!0,get:e.bind({value:l||""}),set:r.bind(t,u)})}}}return n}},{}],90:[function(t,e,r){"use strict";e.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))}},{}],91:[function(t,e,r){var n=t("./src/ParseError"),i=t("./src/Settings"),o=t("./src/buildTree"),s=t("./src/parseTree"),a=t("./src/utils"),u=function(t,e,r){a.clearNode(e);var n=new i(r),u=s(t,n),c=o(u,t,n).toNode();e.appendChild(c)};"undefined"!=typeof document&&"CSS1Compat"!==document.compatMode&&("undefined"!=typeof console&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),u=function(){throw new n("KaTeX doesn't work in quirks mode.")});var c=function(t,e){var r=new i(e),n=s(t,r);return o(n,t,r).toMarkup()},l=function(t,e){var r=new i(e);return s(t,r)};e.exports={render:u,renderToString:c,__parse:l,ParseError:n}},{"./src/ParseError":95,"./src/Settings":97,"./src/buildTree":102,"./src/parseTree":111,"./src/utils":114}],92:[function(t,e,r){function n(t){this.input=t,this.pos=0}function i(t,e,r,n){this.text=t,this.start=e,this.end=r,this.lexer=n}var o=t("match-at"),s=t("./ParseError");i.prototype.range=function(t,e){return t.lexer!==this.lexer?new i(e):new i(e,this.start,t.end,this.lexer)};var a=new RegExp("([ \r\n\t]+)|([!-\\[\\]-‧‪-퟿豈-￿]|[�-�][�-�]|\\\\(?:[a-zA-Z]+|[^�-�]))");n.prototype.lex=function(){var t=this.input,e=this.pos;if(e===t.length)return new i("EOF",e,e,this);var r=o(a,t,e);if(null===r)throw new s("Unexpected character: '"+t[e]+"'",new i(t[e],e,e+1,this));var n=r[2]||" ",u=this.pos;return this.pos+=r[0].length,new i(n,u,this.pos,this)},e.exports=n},{"./ParseError":95,"match-at":115}],93:[function(t,e,r){function n(t,e){this.lexer=new i(t),this.macros=e,this.stack=[],this.discardedWhiteSpace=[]}var i=t("./Lexer");n.prototype.nextToken=function(){for(;;){0===this.stack.length&&this.stack.push(this.lexer.lex());var t=this.stack.pop(),e=t.text;if("\\"!==e.charAt(0)||!this.macros.hasOwnProperty(e))return t;var r=this.macros[e];if("string"==typeof r){var n=new i(r);r=[];for(var o=n.lex();"EOF"!==o.text;)r.push(o),o=n.lex();r.reverse(),this.macros[e]=r}this.stack=this.stack.concat(r)}},n.prototype.get=function(t){this.discardedWhiteSpace=[];var e=this.nextToken();if(t)for(;" "===e.text;)this.discardedWhiteSpace.push(e),e=this.nextToken();return e},n.prototype.unget=function(t){for(this.stack.push(t);0!==this.discardedWhiteSpace.length;)this.stack.push(this.discardedWhiteSpace.pop())},e.exports=n},{"./Lexer":92}],94:[function(t,e,r){function n(t){this.style=t.style,this.color=t.color,this.size=t.size,this.phantom=t.phantom,this.font=t.font,void 0===t.parentStyle?this.parentStyle=t.style:this.parentStyle=t.parentStyle,void 0===t.parentSize?this.parentSize=t.size:this.parentSize=t.parentSize}n.prototype.extend=function(t){var e={style:this.style,size:this.size,color:this.color,parentStyle:this.style,parentSize:this.size,phantom:this.phantom,font:this.font};for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);return new n(e)},n.prototype.withStyle=function(t){return this.extend({style:t})},n.prototype.withSize=function(t){return this.extend({size:t})},n.prototype.withColor=function(t){return this.extend({color:t})},n.prototype.withPhantom=function(){return this.extend({phantom:!0})},n.prototype.withFont=function(t){return this.extend({font:t||this.font})},n.prototype.reset=function(){return this.extend({})};var i={"katex-blue":"#6495ed","katex-orange":"#ffa500","katex-pink":"#ff00af","katex-red":"#df0030","katex-green":"#28ae7b","katex-gray":"gray","katex-purple":"#9d38bd","katex-blueA":"#ccfaff","katex-blueB":"#80f6ff","katex-blueC":"#63d9ea","katex-blueD":"#11accd","katex-blueE":"#0c7f99","katex-tealA":"#94fff5","katex-tealB":"#26edd5","katex-tealC":"#01d1c1","katex-tealD":"#01a995","katex-tealE":"#208170","katex-greenA":"#b6ffb0","katex-greenB":"#8af281","katex-greenC":"#74cf70","katex-greenD":"#1fab54","katex-greenE":"#0d923f","katex-goldA":"#ffd0a9","katex-goldB":"#ffbb71","katex-goldC":"#ff9c39","katex-goldD":"#e07d10","katex-goldE":"#a75a05","katex-redA":"#fca9a9","katex-redB":"#ff8482","katex-redC":"#f9685d","katex-redD":"#e84d39","katex-redE":"#bc2612","katex-maroonA":"#ffbde0","katex-maroonB":"#ff92c6","katex-maroonC":"#ed5fa6","katex-maroonD":"#ca337c","katex-maroonE":"#9e034e","katex-purpleA":"#ddd7ff","katex-purpleB":"#c6b9fc","katex-purpleC":"#aa87ff","katex-purpleD":"#7854ab","katex-purpleE":"#543b78","katex-mintA":"#f5f9e8","katex-mintB":"#edf2df","katex-mintC":"#e0e5cc","katex-grayA":"#f6f7f7","katex-grayB":"#f0f1f2","katex-grayC":"#e3e5e6","katex-grayD":"#d6d8da","katex-grayE":"#babec2","katex-grayF":"#888d93","katex-grayG":"#626569","katex-grayH":"#3b3e40","katex-grayI":"#21242c","katex-kaBlue":"#314453","katex-kaGreen":"#71B307"};n.prototype.getColor=function(){return this.phantom?"transparent":i[this.color]||this.color},e.exports=n},{}],95:[function(t,e,r){function n(t,e){var r,i,o="KaTeX parse error: "+t;if(e&&e.lexer&&e.start<=e.end){var s=e.lexer.input;r=e.start,i=e.end,r===s.length?o+=" at end of input: ":o+=" at position "+(r+1)+": ";var a,u=s.slice(r,i).replace(/[^]/g,"$&̲");a=r>15?"…"+s.slice(r-15,r):s.slice(0,r);var c;c=i+15<s.length?s.slice(i,i+15)+"…":s.slice(i),o+=a+u+c}var l=new Error(o);return l.name="ParseError",l.__proto__=n.prototype,l.position=r,l}n.prototype.__proto__=Error.prototype,e.exports=n},{}],96:[function(t,e,r){function n(t,e){this.gullet=new a(t,e.macros),this.settings=e,this.leftrightDepth=0}function i(t,e,r){this.result=t,this.isFunction=e,this.token=r}var o=t("./functions"),s=t("./environments"),a=t("./MacroExpander"),u=t("./symbols"),c=t("./utils"),l=t("./unicodeRegexes").cjkRegex,h=t("./parseData"),p=t("./ParseError"),f=h.ParseNode;n.prototype.expect=function(t,e){if(this.nextToken.text!==t)throw new p("Expected '"+t+"', got '"+this.nextToken.text+"'",this.nextToken);!1!==e&&this.consume()},n.prototype.consume=function(){this.nextToken=this.gullet.get("math"===this.mode)},n.prototype.switchMode=function(t){this.gullet.unget(this.nextToken),this.mode=t,this.consume()},n.prototype.parse=function(){return this.mode="math",this.consume(),this.parseInput()},n.prototype.parseInput=function(){var t=this.parseExpression(!1);return this.expect("EOF",!1),t};var d=["}","\\end","\\right","&","\\\\","\\cr"];n.prototype.parseExpression=function(t,e){for(var r=[];;){var n=this.nextToken;if(-1!==d.indexOf(n.text))break;if(e&&n.text===e)break;if(t&&o[n.text]&&o[n.text].infix)break;var i=this.parseAtom();if(!i){if(!this.settings.throwOnError&&"\\"===n.text[0]){var s=this.handleUnsupportedCmd();r.push(s);continue}break}r.push(i)}return this.handleInfixNodes(r)},n.prototype.handleInfixNodes=function(t){for(var e,r=-1,n=0;n<t.length;n++){var i=t[n];if("infix"===i.type){if(-1!==r)throw new p("only one infix operator per group",i.value.token);r=n,e=i.value.replaceWith}}if(-1!==r){var o,s,a=t.slice(0,r),u=t.slice(r+1);o=1===a.length&&"ordgroup"===a[0].type?a[0]:new f("ordgroup",a,this.mode),s=1===u.length&&"ordgroup"===u[0].type?u[0]:new f("ordgroup",u,this.mode);var c=this.callFunction(e,[o,s],null);return[new f(c.type,c,this.mode)]}return t};n.prototype.handleSupSubscript=function(t){var e=this.nextToken,r=e.text;this.consume();var n=this.parseGroup();if(n){if(n.isFunction){if(o[n.result].greediness>1)return this.parseFunction(n);throw new p("Got function '"+n.result+"' with no arguments as "+t,e)}return n.result}if(this.settings.throwOnError||"\\"!==this.nextToken.text[0])throw new p("Expected group after '"+r+"'",e);return this.handleUnsupportedCmd()},n.prototype.handleUnsupportedCmd=function(){for(var t=this.nextToken.text,e=[],r=0;r<t.length;r++)e.push(new f("textord",t[r],"text"));var n=new f("text",{body:e,type:"text"},this.mode),i=new f("color",{color:this.settings.errorColor,value:[n],type:"color"},this.mode);return this.consume(),i},n.prototype.parseAtom=function(){var t=this.parseImplicitGroup();if("text"===this.mode)return t;for(var e,r;;){var n=this.nextToken;if("\\limits"===n.text||"\\nolimits"===n.text){if(!t||"op"!==t.type)throw new p("Limit controls must follow a math operator",n);var i="\\limits"===n.text;t.value.limits=i,t.value.alwaysHandleSupSub=!0,this.consume()}else if("^"===n.text){if(e)throw new p("Double superscript",n);e=this.handleSupSubscript("superscript")}else if("_"===n.text){if(r)throw new p("Double subscript",n);r=this.handleSupSubscript("subscript")}else{if("'"!==n.text)break;var o=new f("textord","\\prime",this.mode),s=[o];for(this.consume();"'"===this.nextToken.text;)s.push(o),this.consume();e=new f("ordgroup",s,this.mode)}}return e||r?new f("supsub",{base:t,sup:e,sub:r},this.mode):t};var b=["\\tiny","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],m=["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"];n.prototype.parseImplicitGroup=function(){var t=this.parseSymbol();if(null==t)return this.parseFunction();var e,r=t.result;if("\\left"===r){var n=this.parseFunction(t);++this.leftrightDepth,e=this.parseExpression(!1),--this.leftrightDepth,this.expect("\\right",!1);var i=this.parseFunction();return new f("leftright",{body:e,left:n.value.value,right:i.value.value},this.mode)}if("\\begin"===r){var o=this.parseFunction(t),a=o.value.name;if(!s.hasOwnProperty(a))throw new p("No such environment: "+a,o.value.nameGroup);var u=s[a],l=this.parseArguments("\\begin{"+a+"}",u),h={mode:this.mode,envName:a,parser:this,positions:l.pop()},d=u.handler(h,l);this.expect("\\end",!1);var v=this.nextToken,y=this.parseFunction();if(y.value.name!==a)throw new p("Mismatch: \\begin{"+a+"} matched by \\end{"+y.value.name+"}",v);return d.position=y.position,d}return c.contains(b,r)?(e=this.parseExpression(!1),new f("sizing",{size:"size"+(c.indexOf(b,r)+1),value:e},this.mode)):c.contains(m,r)?(e=this.parseExpression(!0),new f("styling",{style:r.slice(1,r.length-5),value:e},this.mode)):this.parseFunction(t)},n.prototype.parseFunction=function(t){if(t||(t=this.parseGroup()),t){if(t.isFunction){var e=t.result,r=o[e];if("text"===this.mode&&!r.allowedInText)throw new p("Can't use function '"+e+"' in text mode",t.token);var n=this.parseArguments(e,r),i=t.token,s=this.callFunction(e,n,n.pop(),i);return new f(s.type,s,this.mode)}return t.result}return null},n.prototype.callFunction=function(t,e,r,n){var i={funcName:t,parser:this,positions:r,token:n};return o[t].handler(i,e)},n.prototype.parseArguments=function(t,e){var r=e.numArgs+e.numOptionalArgs;if(0===r)return[[this.pos]];for(var n=e.greediness,s=[this.pos],a=[],u=0;u<r;u++){var c,l=this.nextToken,h=e.argTypes&&e.argTypes[u];if(u<e.numOptionalArgs){if(!(c=h?this.parseGroupOfType(h,!0):this.parseGroup(!0))){a.push(null),s.push(this.pos);continue}}else if(!(c=h?this.parseGroupOfType(h):this.parseGroup())){if(this.settings.throwOnError||"\\"!==this.nextToken.text[0])throw new p("Expected group after '"+t+"'",l);c=new i(this.handleUnsupportedCmd(this.nextToken.text),!1)}var f;if(c.isFunction){if(!(o[c.result].greediness>n))throw new p("Got function '"+c.result+"' as argument to '"+t+"'",l);f=this.parseFunction(c)}else f=c.result;a.push(f),s.push(this.pos)}return a.push(s),a},n.prototype.parseGroupOfType=function(t,e){var r=this.mode;if("original"===t&&(t=r),"color"===t)return this.parseColorGroup(e);if("size"===t)return this.parseSizeGroup(e);if(this.switchMode(t),"text"===t)for(;" "===this.nextToken.text;)this.consume();var n=this.parseGroup(e);return this.switchMode(r),n},n.prototype.parseStringGroup=function(t,e){if(e&&"["!==this.nextToken.text)return null;var r=this.mode;this.mode="text",this.expect(e?"[":"{");for(var n="",i=this.nextToken,o=i;this.nextToken.text!==(e?"]":"}");){if("EOF"===this.nextToken.text)throw new p("Unexpected end of input in "+t,i.range(this.nextToken,n));o=this.nextToken,n+=o.text,this.consume()}return this.mode=r,this.expect(e?"]":"}"),i.range(o,n)},n.prototype.parseRegexGroup=function(t,e){var r=this.mode;this.mode="text";for(var n=this.nextToken,i=n,o="";"EOF"!==this.nextToken.text&&t.test(o+this.nextToken.text);)i=this.nextToken,o+=i.text,this.consume();if(""===o)throw new p("Invalid "+e+": '"+n.text+"'",n);return this.mode=r,n.range(i,o)},n.prototype.parseColorGroup=function(t){var e=this.parseStringGroup("color",t);if(!e)return null;var r=/^(#[a-z0-9]+|[a-z]+)$/i.exec(e.text);if(!r)throw new p("Invalid color: '"+e.text+"'",e);return new i(new f("color",r[0],this.mode),!1)},n.prototype.parseSizeGroup=function(t){var e;if(!(e=t||"{"===this.nextToken.text?this.parseStringGroup("size",t):this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2}$/,"size")))return null;var r=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e.text);if(!r)throw new p("Invalid size: '"+e.text+"'",e);var n={number:+(r[1]+r[2]),unit:r[3]};if("em"!==n.unit&&"ex"!==n.unit&&"mu"!==n.unit)throw new p("Invalid unit: '"+n.unit+"'",e);return new i(new f("color",n,this.mode),!1)},n.prototype.parseGroup=function(t){var e=this.nextToken;if(this.nextToken.text===(t?"[":"{")){this.consume();var r=this.parseExpression(!1,t?"]":null),n=this.nextToken;return this.expect(t?"]":"}"),"text"===this.mode&&this.formLigatures(r),new i(new f("ordgroup",r,this.mode,e,n),!1)}return t?null:this.parseSymbol()},n.prototype.formLigatures=function(t){var e,r=t.length-1;for(e=0;e<r;++e){var n=t[e],i=n.value;"-"===i&&"-"===t[e+1].value&&(e+1<r&&"-"===t[e+2].value?(t.splice(e,3,new f("textord","---","text",n,t[e+2])),r-=2):(t.splice(e,2,new f("textord","--","text",n,t[e+1])),r-=1)),"'"!==i&&"`"!==i||t[e+1].value!==i||(t.splice(e,2,new f("textord",i+i,"text",n,t[e+1])),r-=1)}},n.prototype.parseSymbol=function(){var t=this.nextToken;return o[t.text]?(this.consume(),new i(t.text,!0,t)):u[this.mode][t.text]?(this.consume(),new i(new f(u[this.mode][t.text].group,t.text,this.mode,t),!1,t)):"text"===this.mode&&l.test(t.text)?(this.consume(),new i(new f("textord",t.text,this.mode,t),!1,t)):null},n.prototype.ParseNode=f,e.exports=n},{"./MacroExpander":93,"./ParseError":95,"./environments":105,"./functions":108,"./parseData":110,"./symbols":112,"./unicodeRegexes":113,"./utils":114}],97:[function(t,e,r){function n(t,e){return void 0===t?e:t}function i(t){t=t||{},this.displayMode=n(t.displayMode,!1),this.throwOnError=n(t.throwOnError,!0),this.errorColor=n(t.errorColor,"#cc0000"),this.macros=t.macros||{}}e.exports=i},{}],98:[function(t,e,r){function n(t,e,r,n){this.id=t,this.size=e,this.cramped=n,this.sizeMultiplier=r,this.metrics=s[e>0?e-1:0]}var i,o=t("./fontMetrics.js").sigmas,s=[{},{},{}];for(var a in o)if(o.hasOwnProperty(a))for(i=0;i<3;i++)s[i][a]=o[a][i];for(i=0;i<3;i++)s[i].emPerEx=o.xHeight[i]/o.quad[i];n.prototype.sup=function(){return l[h[this.id]]},n.prototype.sub=function(){return l[p[this.id]]},n.prototype.fracNum=function(){return l[f[this.id]]},n.prototype.fracDen=function(){return l[d[this.id]]},n.prototype.cramp=function(){return l[b[this.id]]},n.prototype.cls=function(){return u[this.size]+(this.cramped?" cramped":" uncramped")},n.prototype.reset=function(){return c[this.size]},n.prototype.isTight=function(){return this.size>=2};var u=["displaystyle textstyle","textstyle","scriptstyle","scriptscriptstyle"],c=["reset-textstyle","reset-textstyle","reset-scriptstyle","reset-scriptscriptstyle"],l=[new n(0,0,1,!1),new n(1,0,1,!0),new n(2,1,1,!1),new n(3,1,1,!0),new n(4,2,.7,!1),new n(5,2,.7,!0),new n(6,3,.5,!1),new n(7,3,.5,!0)],h=[4,5,4,5,6,7,6,7],p=[5,5,5,5,7,7,7,7],f=[2,3,4,5,6,7,6,7],d=[3,3,5,5,7,7,7,7],b=[1,1,3,3,5,5,7,7];e.exports={DISPLAY:l[0],TEXT:l[2],SCRIPT:l[4],SCRIPTSCRIPT:l[6]}},{"./fontMetrics.js":106}],99:[function(t,e,r){var n=t("./domTree"),i=t("./fontMetrics"),o=t("./symbols"),s=t("./utils"),a=["\\Gamma","\\Delta","\\Theta","\\Lambda","\\Xi","\\Pi","\\Sigma","\\Upsilon","\\Phi","\\Psi","\\Omega"],u=["ı","ȷ","£"],c=function(t,e,r,s,a){o[r][t]&&o[r][t].replace&&(t=o[r][t].replace);var u,c=i.getCharacterMetrics(t,e);if(c){var l=c.italic;"text"===r&&(l=0),u=new n.symbolNode(t,c.height,c.depth,l,c.skew,a)}else"undefined"!=typeof console&&console.warn("No character metrics for '"+t+"' in style '"+e+"'"),u=new n.symbolNode(t,0,0,0,0,a);return s&&(s.style.isTight()&&u.classes.push("mtight"),s.getColor()&&(u.style.color=s.getColor())),u},l=function(t,e,r,n){return"\\"===t||"main"===o[e][t].font?c(t,"Main-Regular",e,r,n):c(t,"AMS-Regular",e,r,n.concat(["amsrm"]))},h=function(t,e,r,n,i){if("mathord"===i)return p(t,e,r,n);if("textord"===i)return c(t,"Main-Regular",e,r,n.concat(["mathrm"]));throw new Error("unexpected type: "+i+" in mathDefault")},p=function(t,e,r,n){return/[0-9]/.test(t.charAt(0))||s.contains(u,t)||s.contains(a,t)?c(t,"Main-Italic",e,r,n.concat(["mainit"])):c(t,"Math-Italic",e,r,n.concat(["mathit"]))},f=function(t,e,r){var n=t.mode,a=t.value;o[n][a]&&o[n][a].replace&&(a=o[n][a].replace);var l=["mord"],f=e.font;if(f){if("mathit"===f||s.contains(u,a))return p(a,n,e,l);var d=_[f].fontName;return i.getCharacterMetrics(a,d)?c(a,d,n,e,l.concat([f])):h(a,n,e,l,r)}return h(a,n,e,l,r)},d=function(t){var e=0,r=0,n=0;if(t.children)for(var i=0;i<t.children.length;i++)t.children[i].height>e&&(e=t.children[i].height),t.children[i].depth>r&&(r=t.children[i].depth),t.children[i].maxFontSize>n&&(n=t.children[i].maxFontSize);t.height=e,t.depth=r,t.maxFontSize=n},b=function(t,e,r){var i=new n.span(t,e,r);return d(i),i},m=function(t,e){t.children=e.concat(t.children),d(t)},v=function(t){var e=new n.documentFragment(t);return d(e),e},y=function(t,e){var r=b([],[new n.symbolNode("​")]);return r.style.fontSize=e/t.style.sizeMultiplier+"em",b(["fontsize-ensurer","reset-"+t.size,"size5"],[r])},g=function(t,e,r,i){var o,s,a;if("individualShift"===e){var u=t;for(t=[u[0]],o=-u[0].shift-u[0].elem.depth,s=o,a=1;a<u.length;a++){var c=-u[a].shift-s-u[a].elem.depth,l=c-(u[a-1].elem.height+u[a-1].elem.depth);s+=c,t.push({type:"kern",size:l}),t.push(u[a])}}else if("top"===e){var h=r;for(a=0;a<t.length;a++)"kern"===t[a].type?h-=t[a].size:h-=t[a].elem.height+t[a].elem.depth;o=h}else o="bottom"===e?-r:"shift"===e?-t[0].elem.depth-r:"firstBaseline"===e?-t[0].elem.depth:0;var p=0;for(a=0;a<t.length;a++)"elem"===t[a].type&&(p=Math.max(p,t[a].elem.maxFontSize));var f=y(i,p),d=[];for(s=o,a=0;a<t.length;a++)if("kern"===t[a].type)s+=t[a].size;else{var m=t[a].elem,v=-m.depth-s;s+=m.height+m.depth;var g=b([],[f,m]);g.height-=v,g.depth+=v,g.style.top=v+"em",d.push(g)}var w=b(["baseline-fix"],[f,new n.symbolNode("​")]);d.push(w);var x=b(["vlist"],d);return x.height=Math.max(s,x.height),x.depth=Math.max(-o,x.depth),x},w={size1:.5,size2:.7,size3:.8,size4:.9,size5:1,size6:1.2,size7:1.44,size8:1.73,size9:2.07,size10:2.49},x={"\\qquad":{size:"2em",className:"qquad"},"\\quad":{size:"1em",className:"quad"},"\\enspace":{size:"0.5em",className:"enspace"},"\\;":{size:"0.277778em",className:"thickspace"},"\\:":{size:"0.22222em",className:"mediumspace"},"\\,":{size:"0.16667em",className:"thinspace"},"\\!":{size:"-0.16667em",className:"negativethinspace"}},_={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}};e.exports={fontMap:_,makeSymbol:c,mathsym:l,makeSpan:b,makeFragment:v,makeVList:g,makeOrd:f,prependChildren:m,sizingMultiplier:w,spacingFunctions:x}},{"./domTree":104,"./fontMetrics":106,"./symbols":112,"./utils":114}],100:[function(t,e,r){var n=t("./ParseError"),i=t("./Style"),o=t("./buildCommon"),s=t("./delimiter"),a=t("./domTree"),u=t("./fontMetrics"),c=t("./utils"),l=o.makeSpan,h=function(t){return t instanceof a.span&&"mspace"===t.classes[0]},p=function(t){return t&&"mbin"===t.classes[0]},f=function(t,e){return t?c.contains(["mbin","mopen","mrel","mop","mpunct"],t.classes[0]):e},d=function(t,e){return t?c.contains(["mrel","mclose","mpunct"],t.classes[0]):e},b=function(t,e,r){for(var n=[],i=0;i<t.length;i++){var s=t[i],u=S(s,e);u instanceof a.documentFragment?Array.prototype.push.apply(n,u.children):n.push(u)}var c=null;for(i=0;i<n.length;i++)h(n[i])?(c=c||[],c.push(n[i]),n.splice(i,1),i--):c&&(n[i]instanceof a.symbolNode&&(n[i]=l([].concat(n[i].classes),[n[i]])),o.prependChildren(n[i],c),c=null);for(c&&Array.prototype.push.apply(n,c),i=0;i<n.length;i++)p(n[i])&&(f(n[i-1],r)||d(n[i+1],r))&&(n[i].classes[0]="mord");return n},m=function(t){if(t instanceof a.documentFragment){if(t.children.length)return m(t.children[t.children.length-1])}else if(c.contains(["mord","mop","mbin","mrel","mopen","mclose","mpunct","minner"],t.classes[0]))return t.classes[0];return null},v=function(t,e){return!!t&&("op"===t.type?t.value.limits&&(e.style.size===i.DISPLAY.size||t.value.alwaysHandleSupSub):"accent"===t.type?g(t.value.base):null)},y=function(t){return!!t&&("ordgroup"===t.type?1===t.value.length?y(t.value[0]):t:"color"===t.type?1===t.value.value.length?y(t.value.value[0]):t:"font"===t.type?y(t.value.body):t)},g=function(t){var e=y(t);return"mathord"===e.type||"textord"===e.type||"bin"===e.type||"rel"===e.type||"inner"===e.type||"open"===e.type||"close"===e.type||"punct"===e.type},w=function(t,e){return l(e.concat(["sizing","reset-"+t.size,"size5",t.style.reset(),i.TEXT.cls(),"nulldelimiter"]))},x={};x.mathord=function(t,e){return o.makeOrd(t,e,"mathord")},x.textord=function(t,e){return o.makeOrd(t,e,"textord")},x.bin=function(t,e){return o.mathsym(t.value,t.mode,e,["mbin"])},x.rel=function(t,e){return o.mathsym(t.value,t.mode,e,["mrel"])},x.open=function(t,e){return o.mathsym(t.value,t.mode,e,["mopen"])},x.close=function(t,e){return o.mathsym(t.value,t.mode,e,["mclose"])},x.inner=function(t,e){return o.mathsym(t.value,t.mode,e,["minner"])},x.punct=function(t,e){return o.mathsym(t.value,t.mode,e,["mpunct"])},x.ordgroup=function(t,e){return l(["mord",e.style.cls()],b(t.value,e.reset(),!0),e)},x.text=function(t,e){for(var r=e.withFont(t.value.style),n=b(t.value.body,r,!0),i=0;i<n.length-1;i++)n[i].tryCombine(n[i+1])&&(n.splice(i+1,1),i--);return l(["mord","text",r.style.cls()],n,r)},x.color=function(t,e){var r=b(t.value.value,e.withColor(t.value.color),!1);return new o.makeFragment(r)},x.supsub=function(t,e){if(v(t.value.base,e))return x[t.value.base.type](t,e);var r,n,s,c,h,p=S(t.value.base,e.reset()),f=e.style;t.value.sup&&(h=e.withStyle(f.sup()),s=S(t.value.sup,h),r=l([f.reset(),f.sup().cls()],[s],h)),t.value.sub&&(h=e.withStyle(f.sub()),c=S(t.value.sub,h),n=l([f.reset(),f.sub().cls()],[c],h));var d,b;g(t.value.base)?(d=0,b=0):(d=p.height-f.metrics.supDrop,b=p.depth+f.metrics.subDrop);var y;y=f===i.DISPLAY?f.metrics.sup1:f.cramped?f.metrics.sup3:f.metrics.sup2;var w,_=i.TEXT.sizeMultiplier*f.sizeMultiplier,O=.5/u.metrics.ptPerEm/_+"em";if(t.value.sup)if(t.value.sub){d=Math.max(d,y,s.depth+.25*f.metrics.xHeight),b=Math.max(b,f.metrics.sub2);var k=u.metrics.defaultRuleThickness;if(d-s.depth-(c.height-b)<4*k){b=4*k-(d-s.depth)+c.height;var j=.8*f.metrics.xHeight-(d-s.depth);j>0&&(d+=j,b-=j)}w=o.makeVList([{type:"elem",elem:n,shift:b},{type:"elem",elem:r,shift:-d}],"individualShift",null,e),p instanceof a.symbolNode&&(w.children[0].style.marginLeft=-p.italic+"em"),w.children[0].style.marginRight=O,w.children[1].style.marginRight=O}else d=Math.max(d,y,s.depth+.25*f.metrics.xHeight),w=o.makeVList([{type:"elem",elem:r}],"shift",-d,e),w.children[0].style.marginRight=O;else b=Math.max(b,f.metrics.sub1,c.height-.8*f.metrics.xHeight),w=o.makeVList([{type:"elem",elem:n}],"shift",b,e),w.children[0].style.marginRight=O,p instanceof a.symbolNode&&(w.children[0].style.marginLeft=-p.italic+"em");var T=m(p)||"mord";return l([T],[p,l(["msupsub"],[w])],e)},x.genfrac=function(t,e){var r=e.style;"display"===t.value.size?r=i.DISPLAY:"text"===t.value.size&&(r=i.TEXT);var n,a=r.fracNum(),c=r.fracDen();n=e.withStyle(a);var h=S(t.value.numer,n),p=l([r.reset(),a.cls()],[h],n);n=e.withStyle(c);var f,d=S(t.value.denom,n),b=l([r.reset(),c.cls()],[d],n);f=t.value.hasBarLine?u.metrics.defaultRuleThickness/e.style.sizeMultiplier:0;var m,v,y;r.size===i.DISPLAY.size?(m=r.metrics.num1,v=f>0?3*f:7*u.metrics.defaultRuleThickness,y=r.metrics.denom1):(f>0?(m=r.metrics.num2,v=f):(m=r.metrics.num3,v=3*u.metrics.defaultRuleThickness),y=r.metrics.denom2);var g;if(0===f){var x=m-h.depth-(d.height-y);x<v&&(m+=.5*(v-x),y+=.5*(v-x)),g=o.makeVList([{type:"elem",elem:b,shift:y},{type:"elem",elem:p,shift:-m}],"individualShift",null,e)}else{var _=r.metrics.axisHeight;m-h.depth-(_+.5*f)<v&&(m+=v-(m-h.depth-(_+.5*f))),_-.5*f-(d.height-y)<v&&(y+=v-(_-.5*f-(d.height-y)));var O=l([e.style.reset(),i.TEXT.cls(),"frac-line"]);O.height=f;var k=-(_-.5*f);g=o.makeVList([{type:"elem",elem:b,shift:y},{type:"elem",elem:O,shift:k},{type:"elem",elem:p,shift:-m}],"individualShift",null,e)}g.height*=r.sizeMultiplier/e.style.sizeMultiplier,g.depth*=r.sizeMultiplier/e.style.sizeMultiplier;var j;j=r.size===i.DISPLAY.size?r.metrics.delim1:r.metrics.delim2;var T,E;return T=null==t.value.leftDelim?w(e,["mopen"]):s.customSizedDelim(t.value.leftDelim,j,!0,e.withStyle(r),t.mode,["mopen"]),E=null==t.value.rightDelim?w(e,["mclose"]):s.customSizedDelim(t.value.rightDelim,j,!0,e.withStyle(r),t.mode,["mclose"]),l(["mord",e.style.reset(),r.cls()],[T,l(["mfrac"],[g]),E],e)};var _=function(t,e){var r=t.number;return"ex"===t.unit?r*=e.metrics.emPerEx:"mu"===t.unit&&(r/=18),r};x.array=function(t,e){var r,i,s=t.value.body.length,a=0,h=new Array(s),p=e.style,f=1/u.metrics.ptPerEm,d=5*f,b=12*f,m=c.deflt(t.value.arraystretch,1),v=m*b,y=.7*v,g=.3*v,w=0;for(r=0;r<t.value.body.length;++r){var x=t.value.body[r],O=y,k=g;a<x.length&&(a=x.length);var j=new Array(x.length);for(i=0;i<x.length;++i){var T=S(x[i],e);k<T.depth&&(k=T.depth),O<T.height&&(O=T.height),j[i]=T}var E=0;t.value.rowGaps[r]&&(E=_(t.value.rowGaps[r].value,p))>0&&(E+=g,k<E&&(k=E),E=0),j.height=O,j.depth=k,w+=O,j.pos=w,w+=k+E,h[r]=j}var M,A,P=w/2+p.metrics.axisHeight,C=t.value.cols||[],N=[];for(i=0,A=0;i<a||A<C.length;++i,++A){for(var R=C[A]||{},z=!0;"separator"===R.type;){if(z||(M=l(["arraycolsep"],[]),M.style.width=u.metrics.doubleRuleSep+"em",N.push(M)),"|"!==R.separator)throw new n("Invalid separator type: "+R.separator);var F=l(["vertical-separator"],[]);F.style.height=w+"em",F.style.verticalAlign=-(w-P)+"em",N.push(F),A++,R=C[A]||{},z=!1}if(!(i>=a)){var q;(i>0||t.value.hskipBeforeAndAfter)&&0!==(q=c.deflt(R.pregap,d))&&(M=l(["arraycolsep"],[]),M.style.width=q+"em",N.push(M));var I=[];for(r=0;r<s;++r){var D=h[r],L=D[i];if(L){var U=D.pos-P;L.depth=D.depth,L.height=D.height,I.push({type:"elem",elem:L,shift:U})}}I=o.makeVList(I,"individualShift",null,e),I=l(["col-align-"+(R.align||"c")],[I]),N.push(I),(i<a-1||t.value.hskipBeforeAndAfter)&&0!==(q=c.deflt(R.postgap,d))&&(M=l(["arraycolsep"],[]),M.style.width=q+"em",N.push(M))}}return h=l(["mtable"],N),l(["mord"],[h],e)},x.spacing=function(t,e){return"\\ "===t.value||"\\space"===t.value||" "===t.value||"~"===t.value?"text"===t.mode?o.makeOrd(t,e,"textord"):l(["mspace"],[o.mathsym(t.value,t.mode,e)],e):l(["mspace",o.spacingFunctions[t.value].className],[],e)},x.llap=function(t,e){var r=l(["inner"],[S(t.value.body,e.reset())]),n=l(["fix"],[]);return l(["mord","llap",e.style.cls()],[r,n],e)},x.rlap=function(t,e){var r=l(["inner"],[S(t.value.body,e.reset())]),n=l(["fix"],[]);return l(["mord","rlap",e.style.cls()],[r,n],e)},x.op=function(t,e){var r,n,s=!1;"supsub"===t.type&&(r=t.value.sup,n=t.value.sub,t=t.value.base,s=!0);var a=e.style,h=["\\smallint"],p=!1;a.size===i.DISPLAY.size&&t.value.symbol&&!c.contains(h,t.value.body)&&(p=!0);var f,d=0,m=0;if(t.value.symbol){var v=p?"Size2-Regular":"Size1-Regular";f=o.makeSymbol(t.value.body,v,"math",e,["mop","op-symbol",p?"large-op":"small-op"]),d=(f.height-f.depth)/2-a.metrics.axisHeight*a.sizeMultiplier,m=f.italic}else if(t.value.value){var y=b(t.value.value,e,!0);f=l(["mop"],y,e)}else{for(var g=[],w=1;w<t.value.body.length;w++)g.push(o.mathsym(t.value.body[w],t.mode));f=l(["mop"],g,e)}if(s){f=l([],[f]);var x,_,O,k,j;if(r){j=e.withStyle(a.sup());var T=S(r,j);x=l([a.reset(),a.sup().cls()],[T],j),_=Math.max(u.metrics.bigOpSpacing1,u.metrics.bigOpSpacing3-T.depth)}if(n){j=e.withStyle(a.sub());var E=S(n,j);O=l([a.reset(),a.sub().cls()],[E],j),k=Math.max(u.metrics.bigOpSpacing2,u.metrics.bigOpSpacing4-E.height)}var M,A,P;if(r)if(n){if(!r&&!n)return f;P=u.metrics.bigOpSpacing5+O.height+O.depth+k+f.depth+d,M=o.makeVList([{type:"kern",size:u.metrics.bigOpSpacing5},{type:"elem",elem:O},{type:"kern",size:k},{type:"elem",elem:f},{type:"kern",size:_},{type:"elem",elem:x},{type:"kern",size:u.metrics.bigOpSpacing5}],"bottom",P,e),M.children[0].style.marginLeft=-m+"em",M.children[2].style.marginLeft=m+"em"}else P=f.depth+d,M=o.makeVList([{type:"elem",elem:f},{type:"kern",size:_},{type:"elem",elem:x},{type:"kern",size:u.metrics.bigOpSpacing5}],"bottom",P,e),M.children[1].style.marginLeft=m+"em";else A=f.height-d,M=o.makeVList([{type:"kern",size:u.metrics.bigOpSpacing5},{type:"elem",elem:O},{type:"kern",size:k},{type:"elem",elem:f}],"top",A,e),M.children[0].style.marginLeft=-m+"em";return l(["mop","op-limits"],[M],e)}return t.value.symbol&&(f.style.top=d+"em"),f},x.mod=function(t,e){var r=[];if("bmod"===t.value.modType?(e.style.isTight()||r.push(l(["mspace","negativemediumspace"],[],e)),r.push(l(["mspace","thickspace"],[],e))):e.style.size===i.DISPLAY.size?r.push(l(["mspace","quad"],[],e)):"mod"===t.value.modType?r.push(l(["mspace","twelvemuspace"],[],e)):r.push(l(["mspace","eightmuspace"],[],e)),"pod"!==t.value.modType&&"pmod"!==t.value.modType||r.push(o.mathsym("(",t.mode)),"pod"!==t.value.modType){var n=[o.mathsym("m",t.mode),o.mathsym("o",t.mode),o.mathsym("d",t.mode)];"bmod"===t.value.modType?(r.push(l(["mbin"],n,e)),r.push(l(["mspace","thickspace"],[],e)),e.style.isTight()||r.push(l(["mspace","negativemediumspace"],[],e))):(Array.prototype.push.apply(r,n),r.push(l(["mspace","sixmuspace"],[],e)))}return t.value.value&&Array.prototype.push.apply(r,b(t.value.value,e,!1)),"pod"!==t.value.modType&&"pmod"!==t.value.modType||r.push(o.mathsym(")",t.mode)),o.makeFragment(r)},x.katex=function(t,e){var r=l(["k"],[o.mathsym("K",t.mode)],e),n=l(["a"],[o.mathsym("A",t.mode)],e);n.height=.75*(n.height+.2),n.depth=.75*(n.height-.2);var i=l(["t"],[o.mathsym("T",t.mode)],e),s=l(["e"],[o.mathsym("E",t.mode)],e);s.height=s.height-.2155,s.depth=s.depth+.2155;var a=l(["x"],[o.mathsym("X",t.mode)],e);return l(["mord","katex-logo"],[r,n,i,s,a],e)},x.overline=function(t,e){var r=e.style,n=S(t.value.body,e.withStyle(r.cramp())),s=u.metrics.defaultRuleThickness/r.sizeMultiplier,a=l([r.reset(),i.TEXT.cls(),"overline-line"]);a.height=s,a.maxFontSize=1;var c=o.makeVList([{type:"elem",elem:n},{type:"kern",size:3*s},{type:"elem",elem:a},{type:"kern",size:s}],"firstBaseline",null,e);return l(["mord","overline"],[c],e)},x.underline=function(t,e){var r=e.style,n=S(t.value.body,e),s=u.metrics.defaultRuleThickness/r.sizeMultiplier,a=l([r.reset(),i.TEXT.cls(),"underline-line"]);a.height=s,a.maxFontSize=1;var c=o.makeVList([{type:"kern",size:s
19
19
  },{type:"elem",elem:a},{type:"kern",size:3*s},{type:"elem",elem:n}],"top",n.height,e);return l(["mord","underline"],[c],e)},x.sqrt=function(t,e){var r=e.style,n=S(t.value.body,e.withStyle(r.cramp())),a=u.metrics.defaultRuleThickness/r.sizeMultiplier,c=l([r.reset(),i.TEXT.cls(),"sqrt-line"],[],e);c.height=a,c.maxFontSize=1;var h=a;r.id<i.TEXT.id&&(h=r.metrics.xHeight);var p=a+h/4,f=(n.height+n.depth)*r.sizeMultiplier,d=f+p+a,b=l(["sqrt-sign"],[s.customSizedDelim("\\surd",d,!1,e,t.mode)],e),m=b.height+b.depth-a;m>n.height+n.depth+p&&(p=(p+m-n.height-n.depth)/2);var v=-(n.height+p+a)+b.height;b.style.top=v+"em",b.height-=v,b.depth+=v;var y;if(y=0===n.height&&0===n.depth?l():o.makeVList([{type:"elem",elem:n},{type:"kern",size:p},{type:"elem",elem:c},{type:"kern",size:a}],"firstBaseline",null,e),t.value.index){var g=e.withStyle(i.SCRIPTSCRIPT),w=S(t.value.index,g),x=l([r.reset(),i.SCRIPTSCRIPT.cls()],[w],g),_=Math.max(b.height,y.height),O=Math.max(b.depth,y.depth),k=.6*(_-O),j=o.makeVList([{type:"elem",elem:x}],"shift",-k,e),T=l(["root"],[j]);return l(["mord","sqrt"],[T,b,y],e)}return l(["mord","sqrt"],[b,y],e)},x.sizing=function(t,e){var r=b(t.value.value,e.withSize(t.value.size),!1),n=e.style,i=o.sizingMultiplier[t.value.size];i*=n.sizeMultiplier;for(var s=0;s<r.length;s++){var a=c.indexOf(r[s].classes,"sizing");a<0?(r[s].classes.push("sizing","reset-"+e.size,t.value.size,n.cls()),r[s].maxFontSize=i):r[s].classes[a+1]==="reset-"+t.value.size&&(r[s].classes[a+1]="reset-"+e.size)}return o.makeFragment(r)},x.styling=function(t,e){for(var r={display:i.DISPLAY,text:i.TEXT,script:i.SCRIPT,scriptscript:i.SCRIPTSCRIPT},n=r[t.value.style],s=e.withStyle(n),a=b(t.value.value,s,!1),u=0;u<a.length;u++){var l=c.indexOf(a[u].classes,n.reset());l<0?a[u].classes.push(e.style.reset(),n.cls()):a[u].classes[l]=e.style.reset()}return new o.makeFragment(a)},x.font=function(t,e){var r=t.value.font;return S(t.value.body,e.withFont(r))},x.delimsizing=function(t,e){var r=t.value.value;return"."===r?l([t.value.mclass]):s.sizedDelim(r,t.value.size,e,t.mode,[t.value.mclass])},x.leftright=function(t,e){for(var r=b(t.value.body,e.reset(),!0),n=0,i=0,o=!1,a=0;a<r.length;a++)r[a].isMiddle?o=!0:(n=Math.max(r[a].height,n),i=Math.max(r[a].depth,i));var u=e.style;n*=u.sizeMultiplier,i*=u.sizeMultiplier;var c;if(c="."===t.value.left?w(e,["mopen"]):s.leftRightDelim(t.value.left,n,i,e,t.mode,["mopen"]),r.unshift(c),o)for(a=1;a<r.length;a++)r[a].isMiddle&&(r[a]=s.leftRightDelim(r[a].isMiddle.value,n,i,r[a].isMiddle.options,t.mode,[]));var h;return h="."===t.value.right?w(e,["mclose"]):s.leftRightDelim(t.value.right,n,i,e,t.mode,["mclose"]),r.push(h),l(["minner",u.cls()],r,e)},x.middle=function(t,e){var r;return"."===t.value.value?r=w(e,[]):(r=s.sizedDelim(t.value.value,1,e,t.mode,[]),r.isMiddle={value:t.value.value,options:e}),r},x.rule=function(t,e){var r=l(["mord","rule"],[],e),n=e.style,i=0;t.value.shift&&(i=_(t.value.shift,n));var o=_(t.value.width,n),s=_(t.value.height,n);return i/=n.sizeMultiplier,o/=n.sizeMultiplier,s/=n.sizeMultiplier,r.style.borderRightWidth=o+"em",r.style.borderTopWidth=s+"em",r.style.bottom=i+"em",r.width=o,r.height=s+i,r.depth=-i,r},x.kern=function(t,e){var r=l(["mord","rule"],[],e),n=e.style,i=0;return t.value.dimension&&(i=_(t.value.dimension,n)),i/=n.sizeMultiplier,r.style.marginLeft=i+"em",r},x.accent=function(t,e){var r,n=t.value.base,i=e.style;if("supsub"===t.type){var s=t;t=s.value.base,n=t.value.base,s.value.base=n,r=S(s,e.reset())}var a,u=S(n,e.withStyle(i.cramp()));if(g(n)){var c=y(n);a=S(c,e.withStyle(i.cramp())).skew}else a=0;var h=Math.min(u.height,i.metrics.xHeight),p=o.makeSymbol(t.value.accent,"Main-Regular","math",e);p.italic=0;var f="\\vec"===t.value.accent?"accent-vec":null,d=l(["accent-body",f],[l([],[p])]);d=o.makeVList([{type:"elem",elem:u},{type:"kern",size:-h},{type:"elem",elem:d}],"firstBaseline",null,e),d.children[1].style.marginLeft=2*a+"em";var b=l(["mord","accent"],[d],e);return r?(r.children[0]=b,r.height=Math.max(b.height,r.height),r.classes[0]="mord",r):b},x.phantom=function(t,e){var r=b(t.value.value,e.withPhantom(),!1);return new o.makeFragment(r)},x.mclass=function(t,e){var r=b(t.value.value,e,!0);return l([t.value.mclass],r,e)};var S=function(t,e){if(!t)return l();if(x[t.type]){var r,i=x[t.type](t,e);return e.style!==e.parentStyle&&(r=e.style.sizeMultiplier/e.parentStyle.sizeMultiplier,i.height*=r,i.depth*=r),e.size!==e.parentSize&&(r=o.sizingMultiplier[e.size]/o.sizingMultiplier[e.parentSize],i.height*=r,i.depth*=r),i}throw new n("Got group of unknown type: '"+t.type+"'")},O=function(t,e){t=JSON.parse(JSON.stringify(t));var r=b(t,e,!0),n=l(["base",e.style.cls()],r,e),i=l(["strut"]),o=l(["strut","bottom"]);i.style.height=n.height+"em",o.style.height=n.height+n.depth+"em",o.style.verticalAlign=-n.depth+"em";var s=l(["katex-html"],[i,o,n]);return s.setAttribute("aria-hidden","true"),s};e.exports=O},{"./ParseError":95,"./Style":98,"./buildCommon":99,"./delimiter":103,"./domTree":104,"./fontMetrics":106,"./utils":114}],101:[function(t,e,r){var n=t("./buildCommon"),i=t("./fontMetrics"),o=t("./mathMLTree"),s=t("./ParseError"),a=t("./symbols"),u=t("./utils"),c=n.makeSpan,l=n.fontMap,h=function(t,e){return a[e][t]&&a[e][t].replace&&(t=a[e][t].replace),new o.TextNode(t)},p=function(t,e){var r=e.font;if(!r)return null;var n=t.mode;if("mathit"===r)return"italic";var o=t.value;if(u.contains(["\\imath","\\jmath"],o))return null;a[n][o]&&a[n][o].replace&&(o=a[n][o].replace);var s=l[r].fontName;return i.getCharacterMetrics(o,s)?l[e.font].variant:null},f={};f.mathord=function(t,e){var r=new o.MathNode("mi",[h(t.value,t.mode)]),n=p(t,e);return n&&r.setAttribute("mathvariant",n),r},f.textord=function(t,e){var r,n=h(t.value,t.mode),i=p(t,e)||"normal";return/[0-9]/.test(t.value)?(r=new o.MathNode("mn",[n]),e.font&&r.setAttribute("mathvariant",i)):(r=new o.MathNode("mi",[n]),r.setAttribute("mathvariant",i)),r},f.bin=function(t){return new o.MathNode("mo",[h(t.value,t.mode)])},f.rel=function(t){return new o.MathNode("mo",[h(t.value,t.mode)])},f.open=function(t){return new o.MathNode("mo",[h(t.value,t.mode)])},f.close=function(t){return new o.MathNode("mo",[h(t.value,t.mode)])},f.inner=function(t){return new o.MathNode("mo",[h(t.value,t.mode)])},f.punct=function(t){var e=new o.MathNode("mo",[h(t.value,t.mode)]);return e.setAttribute("separator","true"),e},f.ordgroup=function(t,e){var r=d(t.value,e);return new o.MathNode("mrow",r)},f.text=function(t,e){var r=d(t.value.body,e);return new o.MathNode("mtext",r)},f.color=function(t,e){var r=d(t.value.value,e),n=new o.MathNode("mstyle",r);return n.setAttribute("mathcolor",t.value.color),n},f.supsub=function(t,e){var r=[b(t.value.base,e)];t.value.sub&&r.push(b(t.value.sub,e)),t.value.sup&&r.push(b(t.value.sup,e));var n;return n=t.value.sub?t.value.sup?"msubsup":"msub":"msup",new o.MathNode(n,r)},f.genfrac=function(t,e){var r=new o.MathNode("mfrac",[b(t.value.numer,e),b(t.value.denom,e)]);if(t.value.hasBarLine||r.setAttribute("linethickness","0px"),null!=t.value.leftDelim||null!=t.value.rightDelim){var n=[];if(null!=t.value.leftDelim){var i=new o.MathNode("mo",[new o.TextNode(t.value.leftDelim)]);i.setAttribute("fence","true"),n.push(i)}if(n.push(r),null!=t.value.rightDelim){var s=new o.MathNode("mo",[new o.TextNode(t.value.rightDelim)]);s.setAttribute("fence","true"),n.push(s)}return new o.MathNode("mrow",n)}return r},f.array=function(t,e){return new o.MathNode("mtable",t.value.body.map(function(t){return new o.MathNode("mtr",t.map(function(t){return new o.MathNode("mtd",[b(t,e)])}))}))},f.sqrt=function(t,e){return t.value.index?new o.MathNode("mroot",[b(t.value.body,e),b(t.value.index,e)]):new o.MathNode("msqrt",[b(t.value.body,e)])},f.leftright=function(t,e){var r=d(t.value.body,e);if("."!==t.value.left){var n=new o.MathNode("mo",[h(t.value.left,t.mode)]);n.setAttribute("fence","true"),r.unshift(n)}if("."!==t.value.right){var i=new o.MathNode("mo",[h(t.value.right,t.mode)]);i.setAttribute("fence","true"),r.push(i)}return new o.MathNode("mrow",r)},f.middle=function(t,e){var r=new o.MathNode("mo",[h(t.value.middle,t.mode)]);return r.setAttribute("fence","true"),r},f.accent=function(t,e){var r=new o.MathNode("mo",[h(t.value.accent,t.mode)]),n=new o.MathNode("mover",[b(t.value.base,e),r]);return n.setAttribute("accent","true"),n},f.spacing=function(t){var e;return"\\ "===t.value||"\\space"===t.value||" "===t.value||"~"===t.value?e=new o.MathNode("mtext",[new o.TextNode(" ")]):(e=new o.MathNode("mspace"),e.setAttribute("width",n.spacingFunctions[t.value].size)),e},f.op=function(t,e){return t.value.symbol?new o.MathNode("mo",[h(t.value.body,t.mode)]):t.value.value?new o.MathNode("mo",d(t.value.value,e)):new o.MathNode("mi",[new o.TextNode(t.value.body.slice(1))])},f.mod=function(t,e){var r=[];if("pod"!==t.value.modType&&"pmod"!==t.value.modType||r.push(new o.MathNode("mo",[h("(",t.mode)])),"pod"!==t.value.modType&&r.push(new o.MathNode("mo",[h("mod",t.mode)])),t.value.value){var n=new o.MathNode("mspace");n.setAttribute("width","0.333333em"),r.push(n),r=r.concat(d(t.value.value,e))}return"pod"!==t.value.modType&&"pmod"!==t.value.modType||r.push(new o.MathNode("mo",[h(")",t.mode)])),new o.MathNode("mo",r)},f.katex=function(t){return new o.MathNode("mtext",[new o.TextNode("KaTeX")])},f.font=function(t,e){var r=t.value.font;return b(t.value.body,e.withFont(r))},f.delimsizing=function(t){var e=[];"."!==t.value.value&&e.push(h(t.value.value,t.mode));var r=new o.MathNode("mo",e);return"mopen"===t.value.mclass||"mclose"===t.value.mclass?r.setAttribute("fence","true"):r.setAttribute("fence","false"),r},f.styling=function(t,e){var r=d(t.value.value,e),n=new o.MathNode("mstyle",r),i={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},s=i[t.value.style];return n.setAttribute("scriptlevel",s[0]),n.setAttribute("displaystyle",s[1]),n},f.sizing=function(t,e){var r=d(t.value.value,e),i=new o.MathNode("mstyle",r);return i.setAttribute("mathsize",n.sizingMultiplier[t.value.size]+"em"),i},f.overline=function(t,e){var r=new o.MathNode("mo",[new o.TextNode("‾")]);r.setAttribute("stretchy","true");var n=new o.MathNode("mover",[b(t.value.body,e),r]);return n.setAttribute("accent","true"),n},f.underline=function(t,e){var r=new o.MathNode("mo",[new o.TextNode("‾")]);r.setAttribute("stretchy","true");var n=new o.MathNode("munder",[b(t.value.body,e),r]);return n.setAttribute("accentunder","true"),n},f.rule=function(t){return new o.MathNode("mrow")},f.kern=function(t){return new o.MathNode("mrow")},f.llap=function(t,e){var r=new o.MathNode("mpadded",[b(t.value.body,e)]);return r.setAttribute("lspace","-1width"),r.setAttribute("width","0px"),r},f.rlap=function(t,e){var r=new o.MathNode("mpadded",[b(t.value.body,e)]);return r.setAttribute("width","0px"),r},f.phantom=function(t,e){var r=d(t.value.value,e);return new o.MathNode("mphantom",r)},f.mclass=function(t,e){var r=d(t.value.value,e);return new o.MathNode("mstyle",r)};var d=function(t,e){for(var r=[],n=0;n<t.length;n++){var i=t[n];r.push(b(i,e))}return r},b=function(t,e){if(!t)return new o.MathNode("mrow");if(f[t.type])return f[t.type](t,e);throw new s("Got group of unknown type: '"+t.type+"'")},m=function(t,e,r){var n=d(t,r),i=new o.MathNode("mrow",n),s=new o.MathNode("annotation",[new o.TextNode(e)]);s.setAttribute("encoding","application/x-tex");var a=new o.MathNode("semantics",[i,s]),u=new o.MathNode("math",[a]);return c(["katex-mathml"],[u])};e.exports=m},{"./ParseError":95,"./buildCommon":99,"./fontMetrics":106,"./mathMLTree":109,"./symbols":112,"./utils":114}],102:[function(t,e,r){var n=t("./buildHTML"),i=t("./buildMathML"),o=t("./buildCommon"),s=t("./Options"),a=t("./Settings"),u=t("./Style"),c=o.makeSpan,l=function(t,e,r){r=r||new a({});var o=u.TEXT;r.displayMode&&(o=u.DISPLAY);var l=new s({style:o,size:"size5"}),h=i(t,e,l),p=n(t,l),f=c(["katex"],[h,p]);return r.displayMode?c(["katex-display"],[f]):f};e.exports=l},{"./Options":94,"./Settings":97,"./Style":98,"./buildCommon":99,"./buildHTML":100,"./buildMathML":101}],103:[function(t,e,r){var n=t("./ParseError"),i=t("./Style"),o=t("./buildCommon"),s=t("./fontMetrics"),a=t("./symbols"),u=t("./utils"),c=o.makeSpan,l=function(t,e){return a.math[t]&&a.math[t].replace?s.getCharacterMetrics(a.math[t].replace,e):s.getCharacterMetrics(t,e)},h=function(t,e,r,n){return o.makeSymbol(t,"Size"+e+"-Regular",r,n)},p=function(t,e,r,n){n=n||[];var i=c(n.concat(["style-wrap",r.style.reset(),e.cls()]),[t],r),o=e.sizeMultiplier/r.style.sizeMultiplier;return i.height*=o,i.depth*=o,i.maxFontSize=e.sizeMultiplier,i},f=function(t,e,r,n,i,s){var a=o.makeSymbol(t,"Main-Regular",i,n),u=p(a,e,n,s);if(r){var c=(1-n.style.sizeMultiplier/e.sizeMultiplier)*n.style.metrics.axisHeight;u.style.top=c+"em",u.height-=c,u.depth+=c}return u},d=function(t,e,r,n,o,s){var a=h(t,e,o,n),u=p(c(["delimsizing","size"+e],[a],n),i.TEXT,n,s);if(r){var l=(1-n.style.sizeMultiplier)*n.style.metrics.axisHeight;u.style.top=l+"em",u.height-=l,u.depth+=l}return u},b=function(t,e,r){var n;return"Size1-Regular"===e?n="delim-size1":"Size4-Regular"===e&&(n="delim-size4"),{type:"elem",elem:c(["delimsizinginner",n],[c([],[o.makeSymbol(t,e,r)])])}},m=function(t,e,r,n,s,a){var u,h,f,d;u=f=d=t,h=null;var m="Size1-Regular";"\\uparrow"===t?f=d="⏐":"\\Uparrow"===t?f=d="‖":"\\downarrow"===t?u=f="⏐":"\\Downarrow"===t?u=f="‖":"\\updownarrow"===t?(u="\\uparrow",f="⏐",d="\\downarrow"):"\\Updownarrow"===t?(u="\\Uparrow",f="‖",d="\\Downarrow"):"["===t||"\\lbrack"===t?(u="⎡",f="⎢",d="⎣",m="Size4-Regular"):"]"===t||"\\rbrack"===t?(u="⎤",f="⎥",d="⎦",m="Size4-Regular"):"\\lfloor"===t?(f=u="⎢",d="⎣",m="Size4-Regular"):"\\lceil"===t?(u="⎡",f=d="⎢",m="Size4-Regular"):"\\rfloor"===t?(f=u="⎥",d="⎦",m="Size4-Regular"):"\\rceil"===t?(u="⎤",f=d="⎥",m="Size4-Regular"):"("===t?(u="⎛",f="⎜",d="⎝",m="Size4-Regular"):")"===t?(u="⎞",f="⎟",d="⎠",m="Size4-Regular"):"\\{"===t||"\\lbrace"===t?(u="⎧",h="⎨",d="⎩",f="⎪",m="Size4-Regular"):"\\}"===t||"\\rbrace"===t?(u="⎫",h="⎬",d="⎭",f="⎪",m="Size4-Regular"):"\\lgroup"===t?(u="⎧",d="⎩",f="⎪",m="Size4-Regular"):"\\rgroup"===t?(u="⎫",d="⎭",f="⎪",m="Size4-Regular"):"\\lmoustache"===t?(u="⎧",d="⎭",f="⎪",m="Size4-Regular"):"\\rmoustache"===t?(u="⎫",d="⎩",f="⎪",m="Size4-Regular"):"\\surd"===t&&(u="",d="⎷",f="",m="Size4-Regular");var v=l(u,m),y=v.height+v.depth,g=l(f,m),w=g.height+g.depth,x=l(d,m),_=x.height+x.depth,S=0,O=1;if(null!==h){var k=l(h,m);S=k.height+k.depth,O=2}var j=y+_+S,T=Math.ceil((e-j)/(O*w)),E=j+T*O*w,M=n.style.metrics.axisHeight;r&&(M*=n.style.sizeMultiplier);var A=E/2-M,P=[];P.push(b(d,m,s));var C;if(null===h)for(C=0;C<T;C++)P.push(b(f,m,s));else{for(C=0;C<T;C++)P.push(b(f,m,s));for(P.push(b(h,m,s)),C=0;C<T;C++)P.push(b(f,m,s))}P.push(b(u,m,s));var N=o.makeVList(P,"bottom",A,n);return p(c(["delimsizing","mult"],[N],n),i.TEXT,n,a)},v=["(",")","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\\lceil","\\rceil","\\surd"],y=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\\lmoustache","\\rmoustache"],g=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],w=[0,1.2,1.8,2.4,3],x=function(t,e,r,i,o){if("<"===t||"\\lt"===t?t="\\langle":">"!==t&&"\\gt"!==t||(t="\\rangle"),u.contains(v,t)||u.contains(g,t))return d(t,e,!1,r,i,o);if(u.contains(y,t))return m(t,w[e],!1,r,i,o);throw new n("Illegal delimiter: '"+t+"'")},_=[{type:"small",style:i.SCRIPTSCRIPT},{type:"small",style:i.SCRIPT},{type:"small",style:i.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],S=[{type:"small",style:i.SCRIPTSCRIPT},{type:"small",style:i.SCRIPT},{type:"small",style:i.TEXT},{type:"stack"}],O=[{type:"small",style:i.SCRIPTSCRIPT},{type:"small",style:i.SCRIPT},{type:"small",style:i.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],k=function(t){return"small"===t.type?"Main-Regular":"large"===t.type?"Size"+t.size+"-Regular":"stack"===t.type?"Size4-Regular":void 0},j=function(t,e,r,n){for(var i=Math.min(2,3-n.style.size),o=i;o<r.length&&"stack"!==r[o].type;o++){var s=l(t,k(r[o])),a=s.height+s.depth;if("small"===r[o].type&&(a*=r[o].style.sizeMultiplier),a>e)return r[o]}return r[r.length-1]},T=function(t,e,r,n,i,o){"<"===t||"\\lt"===t?t="\\langle":">"!==t&&"\\gt"!==t||(t="\\rangle");var s;s=u.contains(g,t)?_:u.contains(v,t)?O:S;var a=j(t,e,s,n);return"small"===a.type?f(t,a.style,r,n,i,o):"large"===a.type?d(t,a.size,r,n,i,o):"stack"===a.type?m(t,e,r,n,i,o):void 0},E=function(t,e,r,n,i,o){var a=n.style.metrics.axisHeight*n.style.sizeMultiplier,u=5/s.metrics.ptPerEm,c=Math.max(e-a,r+a),l=Math.max(c/500*901,2*c-u);return T(t,l,!0,n,i,o)};e.exports={sizedDelim:x,customSizedDelim:T,leftRightDelim:E}},{"./ParseError":95,"./Style":98,"./buildCommon":99,"./fontMetrics":106,"./symbols":112,"./utils":114}],104:[function(t,e,r){function n(t,e,r){this.classes=t||[],this.children=e||[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={},this.attributes={},r&&(r.style.isTight()&&this.classes.push("mtight"),r.getColor()&&(this.style.color=r.getColor()))}function i(t){this.children=t||[],this.height=0,this.depth=0,this.maxFontSize=0}function o(t,e,r,n,i,o,a){this.value=t||"",this.height=e||0,this.depth=r||0,this.italic=n||0,this.skew=i||0,this.classes=o||[],this.style=a||{},this.maxFontSize=0,s.cjkRegex.test(t)&&(s.hangulRegex.test(t)?this.classes.push("hangul_fallback"):this.classes.push("cjk_fallback")),/[îïíì]/.test(this.value)&&(this.value=c[this.value])}var s=t("./unicodeRegexes"),a=t("./utils"),u=function(t){t=t.slice();for(var e=t.length-1;e>=0;e--)t[e]||t.splice(e,1);return t.join(" ")};n.prototype.setAttribute=function(t,e){this.attributes[t]=e},n.prototype.tryCombine=function(t){return!1},n.prototype.toNode=function(){var t=document.createElement("span");t.className=u(this.classes);for(var e in this.style)Object.prototype.hasOwnProperty.call(this.style,e)&&(t.style[e]=this.style[e]);for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&t.setAttribute(r,this.attributes[r]);for(var n=0;n<this.children.length;n++)t.appendChild(this.children[n].toNode());return t},n.prototype.toMarkup=function(){var t="<span";this.classes.length&&(t+=' class="',t+=a.escape(u(this.classes)),t+='"');var e="";for(var r in this.style)this.style.hasOwnProperty(r)&&(e+=a.hyphenate(r)+":"+this.style[r]+";");e&&(t+=' style="'+a.escape(e)+'"');for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&(t+=" "+n+'="',t+=a.escape(this.attributes[n]),t+='"');t+=">";for(var i=0;i<this.children.length;i++)t+=this.children[i].toMarkup();return t+="</span>"},i.prototype.toNode=function(){for(var t=document.createDocumentFragment(),e=0;e<this.children.length;e++)t.appendChild(this.children[e].toNode());return t},i.prototype.toMarkup=function(){for(var t="",e=0;e<this.children.length;e++)t+=this.children[e].toMarkup();return t};var c={"î":"ı̂","ï":"ı̈","í":"ı́","ì":"ı̀"};o.prototype.tryCombine=function(t){if(!t||!(t instanceof o)||this.italic>0||u(this.classes)!==u(t.classes)||this.skew!==t.skew||this.maxFontSize!==t.maxFontSize)return!1;for(var e in this.style)if(this.style.hasOwnProperty(e)&&this.style[e]!==t.style[e])return!1;for(e in t.style)if(t.style.hasOwnProperty(e)&&this.style[e]!==t.style[e])return!1;return this.value+=t.value,this.height=Math.max(this.height,t.height),this.depth=Math.max(this.depth,t.depth),this.italic=t.italic,!0},o.prototype.toNode=function(){var t=document.createTextNode(this.value),e=null;this.italic>0&&(e=document.createElement("span"),e.style.marginRight=this.italic+"em"),this.classes.length>0&&(e=e||document.createElement("span"),e.className=u(this.classes));for(var r in this.style)this.style.hasOwnProperty(r)&&(e=e||document.createElement("span"),e.style[r]=this.style[r]);return e?(e.appendChild(t),e):t},o.prototype.toMarkup=function(){var t=!1,e="<span";this.classes.length&&(t=!0,e+=' class="',e+=a.escape(u(this.classes)),e+='"');var r="";this.italic>0&&(r+="margin-right:"+this.italic+"em;");for(var n in this.style)this.style.hasOwnProperty(n)&&(r+=a.hyphenate(n)+":"+this.style[n]+";");r&&(t=!0,e+=' style="'+a.escape(r)+'"');var i=a.escape(this.value);return t?(e+=">",e+=i,e+="</span>"):i},e.exports={span:n,documentFragment:i,symbolNode:o}},{"./unicodeRegexes":113,"./utils":114}],105:[function(t,e,r){function n(t,e){for(var r=[],n=[r],i=[];;){var o=t.parseExpression(!1,null);r.push(new u("ordgroup",o,t.mode));var a=t.nextToken.text;if("&"===a)t.consume();else{if("\\end"===a)break;if("\\\\"!==a&&"\\cr"!==a)throw new s("Expected & or \\\\ or \\end",t.nextToken);var c=t.parseFunction();i.push(c.value.size),r=[],n.push(r)}}return e.body=n,e.rowGaps=i,new u(e.type,e,t.mode)}function i(t,r,n){"string"==typeof t&&(t=[t]),"number"==typeof r&&(r={numArgs:r});for(var i={numArgs:r.numArgs||0,argTypes:r.argTypes,greediness:1,allowedInText:!!r.allowedInText,numOptionalArgs:r.numOptionalArgs||0,handler:n},o=0;o<t.length;++o)e.exports[t[o]]=i}var o=t("./parseData"),s=t("./ParseError"),a=t("./Style"),u=o.ParseNode;i("array",{numArgs:1},function(t,e){var r=e[0];r=r.value.map?r.value:[r];var i=r.map(function(t){var e=t.value;if(-1!=="lcr".indexOf(e))return{type:"align",align:e};if("|"===e)return{type:"separator",separator:"|"};throw new s("Unknown column alignment: "+t.value,t)}),o={type:"array",cols:i,hskipBeforeAndAfter:!0};return o=n(t.parser,o)}),i(["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix"],{},function(t){var e={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[t.envName],r={type:"array",hskipBeforeAndAfter:!1};return r=n(t.parser,r),e&&(r=new u("leftright",{body:[r],left:e[0],right:e[1]},t.mode)),r}),i("cases",{},function(t){var e={type:"array",arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:a.TEXT.metrics.quad},{type:"align",align:"l",pregap:0,postgap:0}]};return e=n(t.parser,e),e=new u("leftright",{body:[e],left:"\\{",right:"."},t.mode)}),i("aligned",{},function(t){var e={type:"array",cols:[]};e=n(t.parser,e);var r=new u("ordgroup",[],t.mode),i=0;e.value.body.forEach(function(t){var e;for(e=1;e<t.length;e+=2)t[e].value.unshift(r);i<t.length&&(i=t.length)});for(var o=0;o<i;++o){var s="r",a=0;o%2==1?s="l":o>0&&(a=2),e.value.cols[o]={type:"align",align:s,pregap:a,postgap:0}}return e})},{"./ParseError":95,"./Style":98,"./parseData":110}],106:[function(t,e,r){var n=(t("./Style"),t("./unicodeRegexes").cjkRegex),i={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25]},o={defaultRuleThickness:.04,bigOpSpacing1:.111,bigOpSpacing2:.166,bigOpSpacing3:.2,bigOpSpacing4:.6,bigOpSpacing5:.1,ptPerEm:10,doubleRuleSep:.2},s=t("./fontMetricsData"),a={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"A","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","Þ":"o","ß":"B","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"a","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","þ":"o","ÿ":"y","А":"A","Б":"B","В":"B","Г":"F","Д":"A","Е":"E","Ж":"K","З":"3","И":"N","Й":"N","К":"K","Л":"N","М":"M","Н":"H","О":"O","П":"N","Р":"P","С":"C","Т":"T","У":"y","Ф":"O","Х":"X","Ц":"U","Ч":"h","Ш":"W","Щ":"W","Ъ":"B","Ы":"X","Ь":"B","Э":"3","Ю":"X","Я":"R","а":"a","б":"b","в":"a","г":"r","д":"y","е":"e","ж":"m","з":"e","и":"n","й":"n","к":"n","л":"n","м":"m","н":"n","о":"o","п":"n","р":"p","с":"c","т":"o","у":"y","ф":"b","х":"x","ц":"n","ч":"n","ш":"w","щ":"w","ъ":"a","ы":"m","ь":"a","э":"e","ю":"m","я":"r"},u=function(t,e){var r=t.charCodeAt(0);t[0]in a?r=a[t[0]].charCodeAt(0):n.test(t[0])&&(r="M".charCodeAt(0));var i=s[e][r];if(i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}};e.exports={metrics:o,sigmas:i,getCharacterMetrics:u}},{"./Style":98,"./fontMetricsData":107,"./unicodeRegexes":113}],107:[function(t,e,r){e.exports={"AMS-Regular":{65:[0,.68889,0,0],66:[0,.68889,0,0],67:[0,.68889,0,0],68:[0,.68889,0,0],69:[0,.68889,0,0],70:[0,.68889,0,0],71:[0,.68889,0,0],72:[0,.68889,0,0],73:[0,.68889,0,0],74:[.16667,.68889,0,0],75:[0,.68889,0,0],76:[0,.68889,0,0],77:[0,.68889,0,0],78:[0,.68889,0,0],79:[.16667,.68889,0,0],80:[0,.68889,0,0],81:[.16667,.68889,0,0],82:[0,.68889,0,0],83:[0,.68889,0,0],84:[0,.68889,0,0],85:[0,.68889,0,0],86:[0,.68889,0,0],87:[0,.68889,0,0],88:[0,.68889,0,0],89:[0,.68889,0,0],90:[0,.68889,0,0],107:[0,.68889,0,0],165:[0,.675,.025,0],174:[.15559,.69224,0,0],240:[0,.68889,0,0],295:[0,.68889,0,0],710:[0,.825,0,0],732:[0,.9,0,0],770:[0,.825,0,0],771:[0,.9,0,0],989:[.08167,.58167,0,0],1008:[0,.43056,.04028,0],8245:[0,.54986,0,0],8463:[0,.68889,0,0],8487:[0,.68889,0,0],8498:[0,.68889,0,0],8502:[0,.68889,0,0],8503:[0,.68889,0,0],8504:[0,.68889,0,0],8513:[0,.68889,0,0],8592:[-.03598,.46402,0,0],8594:[-.03598,.46402,0,0],8602:[-.13313,.36687,0,0],8603:[-.13313,.36687,0,0],8606:[.01354,.52239,0,0],8608:[.01354,.52239,0,0],8610:[.01354,.52239,0,0],8611:[.01354,.52239,0,0],8619:[0,.54986,0,0],8620:[0,.54986,0,0],8621:[-.13313,.37788,0,0],8622:[-.13313,.36687,0,0],8624:[0,.69224,0,0],8625:[0,.69224,0,0],8630:[0,.43056,0,0],8631:[0,.43056,0,0],8634:[.08198,.58198,0,0],8635:[.08198,.58198,0,0],8638:[.19444,.69224,0,0],8639:[.19444,.69224,0,0],8642:[.19444,.69224,0,0],8643:[.19444,.69224,0,0],8644:[.1808,.675,0,0],8646:[.1808,.675,0,0],8647:[.1808,.675,0,0],8648:[.19444,.69224,0,0],8649:[.1808,.675,0,0],8650:[.19444,.69224,0,0],8651:[.01354,.52239,0,0],8652:[.01354,.52239,0,0],8653:[-.13313,.36687,0,0],8654:[-.13313,.36687,0,0],8655:[-.13313,.36687,0,0],8666:[.13667,.63667,0,0],8667:[.13667,.63667,0,0],8669:[-.13313,.37788,0,0],8672:[-.064,.437,0,0],8674:[-.064,.437,0,0],8705:[0,.825,0,0],8708:[0,.68889,0,0],8709:[.08167,.58167,0,0],8717:[0,.43056,0,0],8722:[-.03598,.46402,0,0],8724:[.08198,.69224,0,0],8726:[.08167,.58167,0,0],8733:[0,.69224,0,0],8736:[0,.69224,0,0],8737:[0,.69224,0,0],8738:[.03517,.52239,0,0],8739:[.08167,.58167,0,0],8740:[.25142,.74111,0,0],8741:[.08167,.58167,0,0],8742:[.25142,.74111,0,0],8756:[0,.69224,0,0],8757:[0,.69224,0,0],8764:[-.13313,.36687,0,0],8765:[-.13313,.37788,0,0],8769:[-.13313,.36687,0,0],8770:[-.03625,.46375,0,0],8774:[.30274,.79383,0,0],8776:[-.01688,.48312,0,0],8778:[.08167,.58167,0,0],8782:[.06062,.54986,0,0],8783:[.06062,.54986,0,0],8785:[.08198,.58198,0,0],8786:[.08198,.58198,0,0],8787:[.08198,.58198,0,0],8790:[0,.69224,0,0],8791:[.22958,.72958,0,0],8796:[.08198,.91667,0,0],8806:[.25583,.75583,0,0],8807:[.25583,.75583,0,0],8808:[.25142,.75726,0,0],8809:[.25142,.75726,0,0],8812:[.25583,.75583,0,0],8814:[.20576,.70576,0,0],8815:[.20576,.70576,0,0],8816:[.30274,.79383,0,0],8817:[.30274,.79383,0,0],8818:[.22958,.72958,0,0],8819:[.22958,.72958,0,0],8822:[.1808,.675,0,0],8823:[.1808,.675,0,0],8828:[.13667,.63667,0,0],8829:[.13667,.63667,0,0],8830:[.22958,.72958,0,0],8831:[.22958,.72958,0,0],8832:[.20576,.70576,0,0],8833:[.20576,.70576,0,0],8840:[.30274,.79383,0,0],8841:[.30274,.79383,0,0],8842:[.13597,.63597,0,0],8843:[.13597,.63597,0,0],8847:[.03517,.54986,0,0],8848:[.03517,.54986,0,0],8858:[.08198,.58198,0,0],8859:[.08198,.58198,0,0],8861:[.08198,.58198,0,0],8862:[0,.675,0,0],8863:[0,.675,0,0],8864:[0,.675,0,0],8865:[0,.675,0,0],8872:[0,.69224,0,0],8873:[0,.69224,0,0],8874:[0,.69224,0,0],8876:[0,.68889,0,0],8877:[0,.68889,0,0],8878:[0,.68889,0,0],8879:[0,.68889,0,0],8882:[.03517,.54986,0,0],8883:[.03517,.54986,0,0],8884:[.13667,.63667,0,0],8885:[.13667,.63667,0,0],8888:[0,.54986,0,0],8890:[.19444,.43056,0,0],8891:[.19444,.69224,0,0],8892:[.19444,.69224,0,0],8901:[0,.54986,0,0],8903:[.08167,.58167,0,0],8905:[.08167,.58167,0,0],8906:[.08167,.58167,0,0],8907:[0,.69224,0,0],8908:[0,.69224,0,0],8909:[-.03598,.46402,0,0],8910:[0,.54986,0,0],8911:[0,.54986,0,0],8912:[.03517,.54986,0,0],8913:[.03517,.54986,0,0],8914:[0,.54986,0,0],8915:[0,.54986,0,0],8916:[0,.69224,0,0],8918:[.0391,.5391,0,0],8919:[.0391,.5391,0,0],8920:[.03517,.54986,0,0],8921:[.03517,.54986,0,0],8922:[.38569,.88569,0,0],8923:[.38569,.88569,0,0],8926:[.13667,.63667,0,0],8927:[.13667,.63667,0,0],8928:[.30274,.79383,0,0],8929:[.30274,.79383,0,0],8934:[.23222,.74111,0,0],8935:[.23222,.74111,0,0],8936:[.23222,.74111,0,0],8937:[.23222,.74111,0,0],8938:[.20576,.70576,0,0],8939:[.20576,.70576,0,0],8940:[.30274,.79383,0,0],8941:[.30274,.79383,0,0],8994:[.19444,.69224,0,0],8995:[.19444,.69224,0,0],9416:[.15559,.69224,0,0],9484:[0,.69224,0,0],9488:[0,.69224,0,0],9492:[0,.37788,0,0],9496:[0,.37788,0,0],9585:[.19444,.68889,0,0],9586:[.19444,.74111,0,0],9632:[0,.675,0,0],9633:[0,.675,0,0],9650:[0,.54986,0,0],9651:[0,.54986,0,0],9654:[.03517,.54986,0,0],9660:[0,.54986,0,0],9661:[0,.54986,0,0],9664:[.03517,.54986,0,0],9674:[.11111,.69224,0,0],9733:[.19444,.69224,0,0],10003:[0,.69224,0,0],10016:[0,.69224,0,0],10731:[.11111,.69224,0,0],10846:[.19444,.75583,0,0],10877:[.13667,.63667,0,0],10878:[.13667,.63667,0,0],10885:[.25583,.75583,0,0],10886:[.25583,.75583,0,0],10887:[.13597,.63597,0,0],10888:[.13597,.63597,0,0],10889:[.26167,.75726,0,0],10890:[.26167,.75726,0,0],10891:[.48256,.98256,0,0],10892:[.48256,.98256,0,0],10901:[.13667,.63667,0,0],10902:[.13667,.63667,0,0],10933:[.25142,.75726,0,0],10934:[.25142,.75726,0,0],10935:[.26167,.75726,0,0],10936:[.26167,.75726,0,0],10937:[.26167,.75726,0,0],10938:[.26167,.75726,0,0],10949:[.25583,.75583,0,0],10950:[.25583,.75583,0,0],10955:[.28481,.79383,0,0],10956:[.28481,.79383,0,0],57350:[.08167,.58167,0,0],57351:[.08167,.58167,0,0],57352:[.08167,.58167,0,0],57353:[0,.43056,.04028,0],57356:[.25142,.75726,0,0],57357:[.25142,.75726,0,0],57358:[.41951,.91951,0,0],57359:[.30274,.79383,0,0],57360:[.30274,.79383,0,0],57361:[.41951,.91951,0,0],57366:[.25142,.75726,0,0],57367:[.25142,.75726,0,0],57368:[.25142,.75726,0,0],57369:[.25142,.75726,0,0],57370:[.13597,.63597,0,0],57371:[.13597,.63597,0,0]},"Caligraphic-Regular":{48:[0,.43056,0,0],49:[0,.43056,0,0],50:[0,.43056,0,0],51:[.19444,.43056,0,0],52:[.19444,.43056,0,0],53:[.19444,.43056,0,0],54:[0,.64444,0,0],55:[.19444,.43056,0,0],56:[0,.64444,0,0],57:[.19444,.43056,0,0],65:[0,.68333,0,.19445],66:[0,.68333,.03041,.13889],67:[0,.68333,.05834,.13889],68:[0,.68333,.02778,.08334],69:[0,.68333,.08944,.11111],70:[0,.68333,.09931,.11111],71:[.09722,.68333,.0593,.11111],72:[0,.68333,.00965,.11111],73:[0,.68333,.07382,0],74:[.09722,.68333,.18472,.16667],75:[0,.68333,.01445,.05556],76:[0,.68333,0,.13889],77:[0,.68333,0,.13889],78:[0,.68333,.14736,.08334],79:[0,.68333,.02778,.11111],80:[0,.68333,.08222,.08334],81:[.09722,.68333,0,.11111],82:[0,.68333,0,.08334],83:[0,.68333,.075,.13889],84:[0,.68333,.25417,0],85:[0,.68333,.09931,.08334],86:[0,.68333,.08222,0],87:[0,.68333,.08222,.08334],88:[0,.68333,.14643,.13889],89:[.09722,.68333,.08222,.08334],90:[0,.68333,.07944,.13889]},"Fraktur-Regular":{33:[0,.69141,0,0],34:[0,.69141,0,0],38:[0,.69141,0,0],39:[0,.69141,0,0],40:[.24982,.74947,0,0],41:[.24982,.74947,0,0],42:[0,.62119,0,0],43:[.08319,.58283,0,0],44:[0,.10803,0,0],45:[.08319,.58283,0,0],46:[0,.10803,0,0],47:[.24982,.74947,0,0],48:[0,.47534,0,0],49:[0,.47534,0,0],50:[0,.47534,0,0],51:[.18906,.47534,0,0],52:[.18906,.47534,0,0],53:[.18906,.47534,0,0],54:[0,.69141,0,0],55:[.18906,.47534,0,0],56:[0,.69141,0,0],57:[.18906,.47534,0,0],58:[0,.47534,0,0],59:[.12604,.47534,0,0],
@@ -1,5 +1,3 @@
1
- ---
2
- ---
3
1
  {
4
- "version": "6.0.0-beta2"
2
+ "version": "6.0.0-beta3"
5
3
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-hydejack
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.0.0.pre.beta2
4
+ version: 6.0.0.pre.beta3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Florian Klampfer
@@ -160,7 +160,10 @@ files:
160
160
  - assets/icomoon/selection.json
161
161
  - assets/icomoon/style.css
162
162
  - assets/img/doc.jpg
163
+ - assets/img/free-flat-devices.jpg
164
+ - assets/img/free-flat-devices@0,5x.jpg
163
165
  - assets/img/google-fonts.png
166
+ - assets/img/gst.jpg
164
167
  - assets/img/nap.jpg
165
168
  - assets/js/hydejack.js
166
169
  - assets/resume.json