- Commit
- 13ea2546106dc7fc77720c422b55df8ad3180e63
- Parent
- 7ecc26d8096a330619ef376de0a9146d6e40b1ce
- Author
- Gark Garcia <37553739+GarkGarcia@users.noreply.github.com>
- Date
Refactored the Icon.popResult function.
A simple SVG markup editor for the web
Refactored the Icon.popResult function.
5 files changed, 19 insertions, 23 deletions
Status | File Name | N° Changes | Insertions | Deletions |
Modified | build/config.json | 2 | 1 | 1 |
Modified | script.min.js | 6 | 3 | 3 |
Modified | src/Icon.elm | 9 | 0 | 9 |
Modified | src/Main.elm | 23 | 14 | 9 |
Modified | src/Types.elm | 2 | 1 | 1 |
diff --git a/build/config.json b/build/config.json @@ -1,5 +1,5 @@ { - "srcs": ["src/Main.elm", "src/View.elm", "src/Types.elm", "src/Editor.elm"], + "srcs": ["src/Main.elm"], "template": "build/template.html", "stylesheet": "styles.css", "icon": "assets/icon.svg",
diff --git a/script.min.js b/script.min.js @@ -1,2 +1,2 @@ -/* Thiago Brevidelli ⓒ 2019. ALL RIGHTS RESERVED */ -(function(e){'use strict';var sa=Math.floor,ia=String.fromCharCode;function a(e,a,t){return t.a=e,t.f=a,t}function t(e){return a(2,e,function(t){return function(a){return e(t,a)}})}function b(e){return a(3,e,function(t){return function(a){return function(b){return e(t,a,b)}}})}function n(e){return a(4,e,function(t){return function(a){return function(b){return function(n){return e(t,a,b,n)}}}})}function d(t){return a(5,t,function(n){return function(a){return function(b){return function(s){return function(d){return t(n,a,b,s,d)}}}}})}function s(t){return a(6,t,function(n){return function(a){return function(b){return function(s){return function(d){return function(e){return t(n,a,b,s,d,e)}}}}}})}function i(t){return a(7,t,function(n){return function(a){return function(b){return function(s){return function(d){return function(e){return function(i){return t(n,a,b,s,d,e,i)}}}}}}})}function l(t){return a(8,t,function(n){return function(a){return function(b){return function(s){return function(d){return function(e){return function(i){return function(l){return t(n,a,b,s,d,e,i,l)}}}}}}}})}function o(t){return a(9,t,function(n){return function(a){return function(b){return function(s){return function(d){return function(e){return function(l){return function(o){return function(c){return t(n,a,b,s,d,e,l,o,c)}}}}}}}}})}function $(e,t,a){return 2===e.a?e.f(t,a):e(t)(a)}function h(e,t,a,b){return 3===e.a?e.f(t,a,b):e(t)(a)(b)}function r(e,t,a,b,n){return 4===e.a?e.f(t,a,b,n):e(t)(a)(b)(n)}function g(t,n,a,b,s,d){return 5===t.a?t.f(n,a,b,s,d):t(n)(a)(b)(s)(d)}function u(t,n,a,b,s,d,e){return 6===t.a?t.f(n,a,b,s,d,e):t(n)(a)(b)(s)(d)(e)}function p(t,n,a,b,s,d,e,i){return 7===t.a?t.f(n,a,b,s,d,e,i):t(n)(a)(b)(s)(d)(e)(i)}function m(t,n,a,b,s,d,e,i,l){return 8===t.a?t.f(n,a,b,s,d,e,i,l):t(n)(a)(b)(s)(d)(e)(i)(l)}function c(e,a){return{$:1,a:e,b:a}}function v(e){for(var a=$a,t=e.length;t--;)a=c(e[t],a);return a}function y(e){for(var a=[];e.b;e=e.b)a.push(e.a);return a}function k(e,a){for(var t,b=[],n=j(e,a,0,b);n&&(t=b.pop());n=j(t.a,t.b,0,b));return n}function j(e,a,t,b){if(100<t)return b.push(w(e,a)),!0;if(e===a)return!0;if("object"!=typeof e||null===e||null===a)return"function"==typeof e&&O(5),!1;for(var n in 0>e.$&&(e=wn(e),a=wn(a)),e)if(!j(e[n],a[n],t+1,b))return!1;return!0}function A(e,a,t){if("object"!=typeof e)return e===a?0:e<a?-1:1;if("undefined"==typeof e.$)return(t=A(e.a,a.a))?t:(t=A(e.b,a.b))?t:A(e.c,a.c);for(;e.b&&a.b&&!(t=A(e.a,a.a));e=e.b,a=a.b);return t||(e.b?1:a.b?-1:0)}function w(e,a){return{a:e,b:a}}function E(e,a,t){return{a:e,b:a,c:t}}function C(e){return e}function L(e,a){var t={};for(var b in e)t[b]=e[b];for(var b in a)t[b]=a[b];return t}function T(e,a){if("string"==typeof e)return e+a;if(!e.b)return a;var t=c(e.a,a);e=e.b;for(var b=t;e.b;e=e.b)b=b.b=c(e.a,a);return t}function _(){return"<internals>"}function O(e){throw new Error("https://github.com/elm/core/blob/1.0.0/hints/"+e+".md")}function I(e){return{$:2,b:e}}function N(e,a){return{$:9,f:e,g:a}}function H(e,a){switch(e.$){case 2:return e.b(a);case 5:return null===a?ad(e.c):q("null",a);case 3:return R(a)?B(e.b,a,v):q("a LIST",a);case 4:return R(a)?B(e.b,a,W):q("an ARRAY",a);case 6:var t=e.d;if("object"!=typeof a||null===a||!(t in a))return q("an OBJECT with a field named `"+t+"`",a);var b=H(e.b,a[t]);return pn(b)?b:ed($(bd,t,b.a));case 7:var n=e.e;if(!R(a))return q("an ARRAY",a);if(n>=a.length)return q("a LONGER array. Need index "+n+" but only see "+a.length+" entries",a);var b=H(e.b,a[n]);return pn(b)?b:ed($(nd,n,b.a));case 8:if("object"!=typeof a||null===a||R(a))return q("an OBJECT",a);var d=$a;for(var s in a)if(a.hasOwnProperty(s)){var b=H(e.b,a[s]);if(!pn(b))return ed($(bd,s,b.a));d=c(w(s,b.a),d)}return ad(Dn(d));case 9:for(var b,l=e.f,o=e.g,h=0;h<o.length;h++){if(b=H(o[h],a),!pn(b))return b;l=l(b.a)}return ad(l);case 10:var b=H(e.b,a);return pn(b)?H(e.h(b.a),a):b;case 11:for(var b,r=$a,g=e.g;g.b;g=g.b){if(b=H(g.a,a),pn(b))return b;r=c(b.a,r)}return ed(dd(Dn(r)));case 1:return ed($(td,e.a,K(a)));case 0:return ad(e.a);}}function B(e,a,t){for(var b,n=a.length,d=Array(n),s=0;s<n;s++){if(b=H(e,a[s]),!pn(b))return ed($(nd,s,b.a));d[s]=b.a}return ad(t(d))}function R(e){return Array.isArray(e)||"undefined"!=typeof FileList&&e instanceof FileList}function W(e){return $(Mn,e.length,function(a){return e[a]})}function q(e,a){return ed($(td,"Expecting "+e,K(a)))}function U(e,a){if(e===a)return!0;if(e.$!==a.$)return!1;switch(e.$){case 0:case 1:return e.a===a.a;case 2:return e.b===a.b;case 5:return e.c===a.c;case 3:case 4:case 8:return U(e.b,a.b);case 6:return e.d===a.d&&U(e.b,a.b);case 7:return e.e===a.e&&U(e.b,a.b);case 9:return e.f===a.f&&D(e.g,a.g);case 10:return e.h===a.h&&U(e.b,a.b);case 11:return D(e.g,a.g);}}function D(e,a){var t=e.length;if(t!==a.length)return!1;for(var b=0;b<t;b++)if(!U(e[b],a[b]))return!1;return!0}function K(e){return e}function S(e){return e}function z(e){return{$:0,a:e}}function X(e){return{$:1,a:e}}function Y(e){return{$:2,b:e,c:null}}function G(e){return{$:5,b:e}}function P(e){var a={$:0,e:Jt++,f:e,g:null,h:[]};return J(a),a}function F(e){return Y(function(a){a(z(P(e)))})}function V(e,a){e.h.push(a),J(e)}function J(e){if(Zt.push(e),!Qt){for(Qt=!0;e=Zt.shift();)M(e);Qt=!1}}function M(e){for(;e.f;){var a=e.f.$;if(0===a||1===a){for(;e.g&&e.g.$!==a;)e.g=e.g.i;if(!e.g)return;e.f=e.g.b(e.f.a),e.g=e.g.i}else{if(2===a)return void(e.f.c=e.f.b(function(a){e.f=a,J(e)}));if(5===a){if(0===e.h.length)return;e.f=e.f.b(e.h.shift())}else e.g={$:3===a?0:1,b:e.f.b,i:e.g},e.f=e.f.d}}}function Q(e,a,t,b,n,d){function s(e,a){i=$(b,e,o),c(o=i.a,a),ne(l,i.b,n(o))}var i=$(Xt,e,K(a?a.flags:void 0));pn(i)||O(2);var l={};i=t(i.a);var o=i.a,c=d(s,o),h=Z(l,s);return ne(l,i.b,n(o)),h?{ports:h}:{}}function Z(e,a){var t;for(var b in ab){var n=ab[b];n.a&&(t=t||{},t[b]=n.a(b,a)),e[b]=ae(n,a)}return t}function ee(e,a,t,b,n){return{b:e,c:a,d:t,e:b,f:n}}function ae(e,a){function t(e){return $(Ft,t,G(function(a){var t=a.a;return 0===a.$?h(d,b,t,e):s&&i?r(n,b,t.i,t.j,e):h(n,b,s?t.i:t.j,e)}))}var b={g:a,h:void 0},n=e.c,d=e.d,s=e.e,i=e.f;return b.h=P($(Ft,t,e.b))}function te(e){return function(a){return{$:1,k:e,l:a}}}function be(e){return{$:2,m:e}}function ne(e,a,t){var b={};for(var n in de(!0,a,b,null),de(!1,t,b,null),e)V(e[n],{$:"fx",a:b[n]||{i:$a,j:$a}})}function de(e,a,t,b){switch(a.$){case 1:var n=a.k,d=se(e,n,b,a.l);return void(t[n]=ie(e,d,t[n]));case 2:for(var s=a.m;s.b;s=s.b)de(e,s.a,t,b);return;case 3:return void de(e,a.o,t,{p:a.n,q:b});}}function se(e,a,t,b){var n=e?ab[a].e:ab[a].f;return $(n,function(e){for(var a=t;a;a=a.q)e=a.p(e);return e},b)}function ie(e,a,t){return t=t||{i:$a,j:$a},e?t.i=c(a,t.i):t.j=c(a,t.j),t}function le(e,a){for(var t in a)t in e?"init"==t?O(6):le(e[t],a[t]):e[t]=a[t]}function oe(e,a){e.appendChild(a)}function ce(e){return{$:0,a:e}}function $e(e,a){return{$:5,l:e,m:a,k:void 0}}function he(e){return"script"==e?"p":e}function re(e){return /^(on|formAction$)/i.test(e)?"data-"+e:e}function ge(e){return /^javascript:/i.test(e.replace(/\s/g,""))?"":e}function ue(e){return /^\s*(javascript:|data:text\/html)/i.test(e)?"":e}function fe(e,a){var t=Cd(a);return{$:a.$,a:t?h(wd,3>t?Lb:Tb,Ed(e),a.a):$(Ad,e,a.a)}}function pe(e){for(var a={};e.b;e=e.b){var t=e.a,b=t.$,n=t.n,d=t.o;if("a2"===b){"className"===n?me(a,n,S(d)):a[n]=S(d);continue}var s=a[b]||(a[b]={});"a3"===b&&"class"===n?me(s,n,d):s[n]=d}return a}function me(e,a,t){var b=e[a];e[a]=b?b+" "+t:t}function ve(e,a){var t=e.$;if(5===t)return ve(e.k||(e.k=e.m()),a);if(0===t)return ib.createTextNode(e.a);if(4===t){for(var b=e.k,n=e.j;4===b.$;)"object"==typeof n?n.push(b.j):n=[n,b.j],b=b.k;var d={j:n,p:a},s=ve(b,d);return s.elm_event_node_ref=d,s}if(3===t){var s=e.h(e.g);return ye(s,a,e.d),s}var s=e.f?ib.createElementNS(e.f,e.c):ib.createElement(e.c);oa&&"a"==e.c&&s.addEventListener("click",oa(s)),ye(s,a,e.d);for(var l=e.e,o=0;o<l.length;o++)oe(s,ve(1===t?l[o]:l[o].b,a));return s}function ye(e,a,t){for(var b in t){var n=t[b];"a1"==b?ke(e,n):"a0"==b?Ae(e,a,n):"a3"==b?xe(e,n):"a4"==b?je(e,n):("value"!=b&&"checked"!=b||e[b]!==n)&&(e[b]=n)}}function ke(e,a){var t=e.style;for(var b in a)t[b]=a[b]}function xe(e,a){for(var t in a){var b=a[t];"undefined"==typeof b?e.removeAttribute(t):e.setAttribute(t,b)}}function je(e,a){for(var t in a){var b=a[t],n=b.f,d=b.o;"undefined"==typeof d?e.removeAttributeNS(n,t):e.setAttributeNS(n,t,d)}}function Ae(e,a,t){var b=e.elmFs||(e.elmFs={});for(var n in t){var d=t[n],s=b[n];if(!d){e.removeEventListener(n,s),b[n]=void 0;continue}if(s){var i=s.q;if(i.$===d.$){s.q=d;continue}e.removeEventListener(n,s)}s=we(a,d),e.addEventListener(n,s,ca&&{passive:2>Cd(d)}),b[n]=s}}function we(e,a){function t(a){var b=t.q,n=H(b.a,a);if(pn(n)){for(var d,s,l=Cd(b),o=n.a,c=l?3>l?o.a:o.u:o,$=1==l?o.b:3==l&&o.aj,h=($&&a.stopPropagation(),(2==l?o.b:3==l&&o.ag)&&a.preventDefault(),e);d=h.j;){if("function"==typeof d)c=d(c);else for(var s=d.length;s--;)c=d[s](c);h=h.p}h(c,$)}}return t.q=a,t}function Ee(e,a){return e.$==a.$&&U(e.a,a.a)}function Ce(e,a){var t=[];return Te(e,a,t,0),t}function Le(e,a,t,b){var n={$:a,r:t,s:b,t:void 0,u:void 0};return e.push(n),n}function Te(e,a,t,b){if(e!==a){var n=e.$,d=a.$;if(n!==d)if(1===n&&2===d)a=Ge(a),d=1;else return void Le(t,0,b,a);switch(d){case 5:for(var s=e.l,l=a.l,o=s.length,c=o===l.length;c&&o--;)c=s[o]===l[o];if(c)return void(a.k=e.k);a.k=a.m();var $=[];return Te(e.k,a.k,$,0),void(0<$.length&&Le(t,1,b,$));case 4:for(var h=e.j,r=a.j,g=!1,u=e.k;4===u.$;)g=!0,"object"==typeof h?h.push(u.j):h=[h,u.j],u=u.k;for(var f=a.k;4===f.$;)g=!0,"object"==typeof r?r.push(f.j):r=[r,f.j],f=f.k;return g&&h.length!==r.length?void Le(t,0,b,a):((g?!_e(h,r):h!==r)&&Le(t,2,b,r),void Te(u,f,t,b+1));case 0:return void(e.a!==a.a&&Le(t,3,b,a.a));case 1:return void Oe(e,a,t,b,Ne);case 2:return void Oe(e,a,t,b,He);case 3:if(e.h!==a.h)return void Le(t,0,b,a);var p=Ie(e.d,a.d);p&&Le(t,4,b,p);var m=a.i(e.g,a.g);return void(m&&Le(t,5,b,m));}}}function _e(e,a){for(var t=0;t<e.length;t++)if(e[t]!==a[t])return!1;return!0}function Oe(e,a,t,b,n){if(e.c!==a.c||e.f!==a.f)return void Le(t,0,b,a);var d=Ie(e.d,a.d);d&&Le(t,4,b,d),n(e,a,t,b)}function Ie(e,a,t){var b;for(var n in e){if("a1"==n||"a0"==n||"a3"==n||"a4"==n){var d=Ie(e[n],a[n]||{},n);d&&(b=b||{},b[n]=d);continue}if(!(n in a)){b=b||{},b[n]=t?"a1"===t?"":"a0"===t||"a3"===t?void 0:{f:e[n].f,o:void 0}:"string"==typeof e[n]?"":null;continue}var s=e[n],i=a[n];s===i&&"value"!=n&&"checked"!=n||"a0"===t&&Ee(s,i)||(b=b||{},b[n]=i)}for(var l in a)l in e||(b=b||{},b[l]=a[l]);return b}function Ne(e,a,t,b){var n=e.e,d=a.e,s=n.length,l=d.length;s>l?Le(t,6,b,{v:l,i:s-l}):s<l&&Le(t,7,b,{v:s,e:d});for(var o,c=s<l?s:l,$=0;$<c;$++)o=n[$],Te(o,d[$],t,++b),b+=o.b||0}function He(e,a,t,b){for(var n=[],d={},s=[],i=e.e,l=a.e,o=i.length,c=l.length,$=0,h=0,r=b;$<o&&h<c;){var g=i[$],u=l[h],f=g.a,p=u.a,m=g.b,v=u.b,k=void 0,j=void 0;if(f===p){r++,Te(m,v,n,r),r+=m.b||0,$++,h++;continue}var A=i[$+1],w=l[h+1];if(A){var E=A.a,C=A.b;j=p===E}if(w){var L=w.a,T=w.b;k=f===L}if(k&&j){r++,Te(m,T,n,r),Be(d,n,f,v,h,s),r+=m.b||0,r++,Re(d,n,f,C,r),r+=C.b||0,$+=2,h+=2;continue}if(k){r++,Be(d,n,p,v,h,s),Te(m,T,n,r),r+=m.b||0,$+=1,h+=2;continue}if(j){r++,Re(d,n,f,m,r),r+=m.b||0,r++,Te(C,v,n,r),r+=C.b||0,$+=2,h+=1;continue}if(A&&E===L){r++,Re(d,n,f,m,r),Be(d,n,p,v,h,s),r+=m.b||0,r++,Te(C,T,n,r),r+=C.b||0,$+=2,h+=2;continue}break}for(;$<o;){r++;var g=i[$],m=g.b;Re(d,n,g.a,m,r),r+=m.b||0,$++}for(;h<c;){var _=_||[],u=l[h];Be(d,n,u.a,u.b,void 0,_),h++}(0<n.length||0<s.length||_)&&Le(t,8,b,{w:n,x:s,y:_})}function Be(e,a,t,b,n,d){var s=e[t];if(!s)return s={c:0,z:b,r:n,s:void 0},d.push({r:n,A:s}),void(e[t]=s);if(1===s.c){d.push({r:n,A:s}),s.c=2;var i=[];return Te(s.z,b,i,s.r),s.r=n,void(s.s.s={w:i,A:s})}Be(e,a,t+"_elmW6BL",b,n,d)}function Re(e,a,t,b,n){var d=e[t];if(!d){var s=Le(a,9,n,void 0);return void(e[t]={c:1,z:b,r:n,s:s})}if(0===d.c){d.c=2;var i=[];return Te(b,d.z,i,n),void Le(a,9,n,{w:i,A:d})}Re(e,a,t+"_elmW6BL",b,n)}function We(e,a,t,b){qe(e,a,t,0,0,a.b,b)}function qe(e,a,t,b,n,d,s){for(var l,o=t[b],c=o.r;c===n;){if(l=o.$,1===l)We(e,a.k,o.s,s);else if(8===l){o.t=e,o.u=s;var $=o.s.w;0<$.length&&qe(e,a,$,0,n,d,s)}else if(9===l){o.t=e,o.u=s;var h=o.s;if(h){h.A.s=e;var $=h.w;0<$.length&&qe(e,a,$,0,n,d,s)}}else o.t=e,o.u=s;if(b++,!(o=t[b])||(c=o.r)>d)return b}var r=a.$;if(4===r){for(var g=a.k;4===g.$;)g=g.k;return qe(e,g,t,b,n+1,d,e.elm_event_node_ref)}for(var u=a.e,f=e.childNodes,p=0;p<u.length;p++){n++;var m=1===r?u[p]:u[p].b,v=n+(m.b||0);if(n<=c&&c<=v&&(b=qe(f[p],m,t,b,n,v,s),!(o=t[b])||(c=o.r)>d))return b;n=v}return b}function Ue(e,a,t,b){return 0===t.length?e:(We(e,a,t,b),De(e,t))}function De(e,a){for(var t=0;t<a.length;t++){var b=a[t],n=b.t,d=Ke(n,b);n===e&&(e=d)}return e}function Ke(e,a){switch(a.$){case 0:return Se(e,a.s,a.u);case 4:return ye(e,a.u,a.s),e;case 3:return e.replaceData(0,e.length,a.s),e;case 1:return De(e,a.s);case 2:return e.elm_event_node_ref?e.elm_event_node_ref.j=a.s:e.elm_event_node_ref={j:a.s,p:a.u},e;case 6:for(var t=a.s,b=0;b<t.i;b++)e.removeChild(e.childNodes[t.v]);return e;case 7:for(var t=a.s,n=t.e,b=t.v,d=e.childNodes[b];b<n.length;b++)e.insertBefore(ve(n[b],a.u),d);return e;case 9:var t=a.s;if(!t)return e.parentNode.removeChild(e),e;var s=t.A;return"undefined"!=typeof s.r&&e.parentNode.removeChild(e),s.s=De(e,t.w),e;case 8:return ze(e,a);case 5:return a.s(e);default:O(10);}}function Se(e,a,t){var b=e.parentNode,n=ve(a,t);return n.elm_event_node_ref||(n.elm_event_node_ref=e.elm_event_node_ref),b&&n!==e&&b.replaceChild(n,e),n}function ze(e,a){var t=a.s,b=Xe(t.y,a);e=De(e,t.w);for(var n=t.x,d=0;d<n.length;d++){var s=n[d],l=s.A,o=2===l.c?l.s:ve(l.z,a.u);e.insertBefore(o,e.childNodes[s.r])}return b&&oe(e,b),e}function Xe(e,a){if(e){for(var t=ib.createDocumentFragment(),b=0;b<e.length;b++){var n=e[b],d=n.A;oe(t,2===d.c?d.s:ve(d.z,a.u))}return t}}function Ye(e){if(3===e.nodeType)return ce(e.textContent);if(1!==e.nodeType)return ce("");for(var a=$a,t=e.attributes,b=t.length;b--;){var n=t[b],d=n.name,s=n.value;a=c($(wb,d,s),a)}for(var l=e.tagName.toLowerCase(),o=$a,r=e.childNodes,b=r.length;b--;)o=c(Ye(r[b]),o);return h(cb,l,a,o)}function Ge(e){for(var a=e.e,t=a.length,b=Array(t),n=0;n<t;n++)b[n]=a[n].b;return{$:1,c:e.c,d:e.d,e:b,f:e.f,b:e.b}}function Pe(e,a){for(var t=a.i;t.b;t=t.b)e.setRequestHeader(t.a.a,t.a.b);e.timeout=a.n.a||0,e.responseType=a.t.d,e.withCredentials=a.D}function Fe(e,a){return $(200<=a.status&&300>a.status?hs:cs,Ve(a),e(a.response))}function Ve(e){return{y:e.responseURL,a7:e.status,bL:e.statusText,i:Je(e.getAllResponseHeaders())}}function Je(e){if(!e)return Yd;for(var a=Yd,t=e.split("\r\n"),b=t.length;b--;){var n=t[b],d=n.indexOf(": ");if(0<d){var s=n.substring(0,d),l=n.substring(d+2);a=h(ss,s,function(e){return Qn(is(e)?l+", "+e.a:l)},a)}}return a}function Me(e,a,t){a.upload.addEventListener("progress",function(b){a.c||P($(os,e,w(t,us({bK:b.loaded,ah:b.total}))))}),a.addEventListener("progress",function(b){a.c||P($(os,e,w(t,gs({bG:b.loaded,ah:b.lengthComputable?Qn(b.total):Zn}))))})}function Qe(){return _b||(_b=document.createElement("a"))}function Ze(e){if("function"==typeof MouseEvent)e.dispatchEvent(new MouseEvent("click"));else{var a=document.createEvent("MouseEvents");a.initMouseEvent("click",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),document.body.appendChild(e),e.dispatchEvent(a),document.body.removeChild(e)}}function ea(e){return Y(function(a){Ob=document.createElement("input"),Ob.type="file",Ob.accept=$(pd,",",e),Ob.addEventListener("change",function(e){a(z(e.target.files[0]))}),Ze(Ob)})}function aa(e,a){function t(){b=1===b?0:(bn(t),a(e),1)}a(e);var b=0;return function(n,d){e=n,d?(a(e),2==b&&(b=1)):(0==b&&bn(t),b=2)}}function ta(e,a){return Y(function(t){bn(function(){var b=document.getElementById(e);t(b?z(a(b)):X(p$(e)))})})}function ba(e){return Y(function(a){bn(function(){a(z(e()))})})}function na(){return ki(function(){return $(hi,pi,$(ci,Mi,$(gi,Gi,$(hi,li(ui),Ii))))})}function da(){return ki(function(){return Ji(v([Fi,Ri,na()]))})}var la,oa,ca,$a={$:0},ha=t(c),ra=b(function(e,a,t){for(var b=[];a.b&&t.b;a=a.b,t=t.b)b.push($(e,a.a,t.a));return v(b)}),ga=n(function(e,a,t,b){for(var n=[];a.b&&t.b&&b.b;a=a.b,t=t.b,b=b.b)n.push(h(e,a.a,t.a,b.a));return v(n)}),ua=d(function(e,a,t,b,n){for(var d=[];a.b&&t.b&&b.b&&n.b;a=a.b,t=t.b,b=b.b,n=n.b)d.push(r(e,a.a,t.a,b.a,n.a));return v(d)}),fa=s(function(e,a,t,b,n,d){for(var s=[];a.b&&t.b&&b.b&&n.b&&d.b;a=a.b,t=t.b,b=b.b,n=n.b,d=d.b)s.push(g(e,a.a,t.a,b.a,n.a,d.a));return v(s)}),pa=t(function(e,a){return v(y(a).sort(function(t,a){return A(e(t),e(a))}))}),ma=t(function(e,a){return v(y(a).sort(function(t,a){var b=$(e,t,a);return b===yn?0:b===xn?-1:1}))}),va=t(k),ya=t(function(e,a){return!k(e,a)}),ka=t(function(e,a){return 0>A(e,a)}),xa=t(function(e,a){return 1>A(e,a)}),ja=t(function(e,a){return 0<A(e,a)}),Aa=t(function(e,a){return 0<=A(e,a)}),wa=t(function(e,a){var t=A(e,a);return 0>t?xn:t?kn:yn}),Ea=0,Ca=t(T),La=b(function(e,a,t){for(var b=Array(e),n=0;n<e;n++)b[n]=t(a+n);return b}),Ta=t(function(e,a){for(var t=Array(e),b=0;b<e&&a.b;b++)t[b]=a.a,a=a.b;return t.length=b,w(t,a)}),_a=t(function(e,a){return a[e]}),Oa=b(function(e,a,t){for(var b=t.length,n=Array(b),d=0;d<b;d++)n[d]=t[d];return n[e]=a,n}),Ia=t(function(e,a){for(var t=a.length,b=Array(t+1),n=0;n<t;n++)b[n]=a[n];return b[t]=e,b}),Na=b(function(e,a,t){for(var b=t.length,n=0;n<b;n++)a=$(e,t[n],a);return a}),Ha=b(function(e,a,t){for(var b=t.length-1;0<=b;b--)a=$(e,t[b],a);return a}),Ba=t(function(e,a){for(var t=a.length,b=Array(t),n=0;n<t;n++)b[n]=e(a[n]);return b}),Ra=b(function(e,a,t){for(var b=t.length,n=Array(b),d=0;d<b;d++)n[d]=$(e,a+d,t[d]);return n}),Wa=b(function(e,a,t){return t.slice(e,a)}),qa=b(function(e,a,t){var b=a.length,n=e-b;n>t.length&&(n=t.length);for(var d=b+n,s=Array(d),l=0;l<b;l++)s[l]=a[l];for(var l=0;l<n;l++)s[l+b]=t[l];return s}),Ua=t(function(e,a){return a}),Da=t(function(e,a){return console.log(e+": "+_(a)),a}),Ka=t(function(e,a){return e+a}),Sa=t(function(e,a){return e-a}),za=t(function(e,a){return e*a}),Xa=t(function(e,a){return e/a}),Ya=t(function(e,a){return 0|e/a}),Ga=t(Math.pow),Pa=t(function(e,t){return t%e}),Fa=t(function(e,a){var t=a%e;return 0===e?O(11):0<t&&0>e||0>t&&0<e?t+e:t}),Va=Math.PI,Ja=Math.E,Ma=Math.cos,Qa=Math.sin,Za=Math.tan,et=Math.acos,at=Math.asin,tt=Math.atan,bt=t(Math.atan2),nt=Math.ceil,dt=Math.round,st=Math.sqrt,it=Math.log,lt=isNaN,ot=t(function(e,a){return e&&a}),ct=t(function(e,a){return e||a}),$t=t(function(e,a){return e!==a}),ht=t(function(e,a){return e+a}),rt=t(function(e,a){return e+a}),gt=t(function(e,a){for(var t=a.length,b=Array(t),n=0;n<t;){var d=a.charCodeAt(n);if(55296<=d&&56319>=d){b[n]=e(C(a[n]+a[n+1])),n+=2;continue}b[n]=e(C(a[n])),n++}return b.join("")}),ut=t(function(e,a){for(var t=[],b=a.length,n=0;n<b;){var d=a[n],s=a.charCodeAt(n);n++,55296<=s&&56319>=s&&(d+=a[n],n++),e(C(d))&&t.push(d)}return t.join("")}),ft=b(function(e,a,t){for(var b=t.length,n=0;n<b;){var d=t[n],s=t.charCodeAt(n);n++,55296<=s&&56319>=s&&(d+=t[n],n++),a=$(e,C(d),a)}return a}),pt=b(function(e,a,t){for(var b=t.length;b--;){var n=t[b],d=t.charCodeAt(b);56320<=d&&57343>=d&&(b--,n=t[b]+n),a=$(e,C(n),a)}return a}),mt=t(function(e,a){return a.split(e)}),vt=t(function(e,a){return a.join(e)}),yt=b(function(e,a,t){return t.slice(e,a)}),kt=t(function(e,a){for(var t=a.length;t--;){var b=a[t],n=a.charCodeAt(t);if(56320<=n&&57343>=n&&(t--,b=a[t]+b),e(C(b)))return!0}return!1}),xt=t(function(e,a){for(var t=a.length;t--;){var b=a[t],n=a.charCodeAt(t);if(56320<=n&&57343>=n&&(t--,b=a[t]+b),!e(C(b)))return!1}return!0}),jt=t(function(e,a){return-1<a.indexOf(e)}),At=t(function(e,a){return 0===a.indexOf(e)}),wt=t(function(e,a){return a.length>=e.length&&a.lastIndexOf(e)===a.length-e.length}),Et=t(function(e,a){var t=e.length;if(1>t)return $a;for(var b=0,n=[];-1<(b=a.indexOf(e,b));)n.push(b),b+=t;return v(n)}),Ct=I(function(e){return"number"==typeof e?-2147483647<e&&2147483647>e&&(0|e)===e?ad(e):isFinite(e)&&!(e%1)?ad(e):q("an INT",e):q("an INT",e)}),Lt=I(function(e){return"boolean"==typeof e?ad(e):q("a BOOL",e)}),Tt=I(function(e){return"number"==typeof e?ad(e):q("a FLOAT",e)}),_t=I(function(e){return ad(K(e))}),Ot=I(function(e){return"string"==typeof e?ad(e):e instanceof String?ad(e+""):q("a STRING",e)}),It=t(function(e,a){return{$:6,d:e,b:a}}),Nt=t(function(e,a){return{$:7,e:e,b:a}}),Ht=t(function(e,a){return{$:10,b:a,h:e}}),Bt=t(function(e,a){return N(e,[a])}),Rt=b(function(e,a,t){return N(e,[a,t])}),Wt=n(function(e,a,t,b){return N(e,[a,t,b])}),qt=d(function(e,a,t,b,n){return N(e,[a,t,b,n])}),Ut=s(function(e,a,t,b,n,d){return N(e,[a,t,b,n,d])}),Dt=i(function(e,a,t,b,n,d,s){return N(e,[a,t,b,n,d,s])}),Kt=l(function(e,a,t,b,n,d,s,i){return N(e,[a,t,b,n,d,s,i])}),St=o(function(e,a,t,b,n,d,s,i,l){return N(e,[a,t,b,n,d,s,i,l])}),zt=t(function(e,a){try{var t=JSON.parse(a);return H(e,t)}catch(t){return ed($(td,"This is not valid JSON! "+t.message,K(a)))}}),Xt=t(function(e,a){return H(e,S(a))}),Yt=t(function(e,a){return JSON.stringify(S(a),null,e)+""}),Gt=b(function(e,a,t){return t[e]=S(a),t}),Pt=K(null),Ft=t(function(e,a){return{$:3,b:e,d:a}}),Vt=t(function(e,a){return{$:4,b:e,d:a}}),Jt=0,Mt=t(function(e,a){return Y(function(t){V(e,a),t(z(Ea))})}),Qt=!1,Zt=[],eb=n(function(e,a,t,b){return Q(a,b,e.bz,e.bW,e.bT,function(){return function(){}})}),ab={},tb=t(function(e,a){return Y(function(t){e.g(a),t(z(Ea))})}),bb=t(function(e,a){return $(Mt,e.h,{$:0,a:a})}),nb=t(function(e,a){return{$:3,n:e,o:a}}),db=t(function(e,a){return a}),sb=t(function(e,a){return function(t){return e(a(t))}}),ib="undefined"==typeof document?{}:document,lb=n(function(e,a,t,b){var n=b.node;return n.parentNode.replaceChild(ve(e,function(){}),n),{}}),ob=t(function(e,a){return t(function(t,b){for(var n,d=[],s=0;b.b;b=b.b)n=b.a,s+=n.b||0,d.push(n);return s+=d.length,{$:1,c:a,d:pe(t),e:d,f:e,b:s}})}),cb=ob(void 0),$b=t(function(e,a){return t(function(t,b){for(var n,d=[],s=0;b.b;b=b.b)n=b.a,s+=n.b.b||0,d.push(n);return s+=d.length,{$:2,c:a,d:pe(t),e:d,f:e,b:s}})}),hb=$b(void 0),rb=t(function(e,a){return{$:4,j:e,k:a,b:1+(a.b||0)}}),gb=t(function(e,t){return $e([e,t],function(){return e(t)})}),ub=b(function(e,t,a){return $e([e,t,a],function(){return $(e,t,a)})}),fb=n(function(e,t,a,b){return $e([e,t,a,b],function(){return h(e,t,a,b)})}),pb=d(function(e,t,a,b,n){return $e([e,t,a,b,n],function(){return r(e,t,a,b,n)})}),mb=s(function(t,n,a,b,s,d){return $e([t,n,a,b,s,d],function(){return g(t,n,a,b,s,d)})}),vb=i(function(t,n,a,b,s,d,e){return $e([t,n,a,b,s,d,e],function(){return u(t,n,a,b,s,d,e)})}),yb=l(function(t,n,a,b,s,d,e,i){return $e([t,n,a,b,s,d,e,i],function(){return p(t,n,a,b,s,d,e,i)})}),kb=o(function(t,n,a,b,s,d,e,i,l){return $e([t,n,a,b,s,d,e,i,l],function(){return m(t,n,a,b,s,d,e,i,l)})}),xb=t(function(e,a){return{$:"a0",n:e,o:a}}),jb=t(function(e,a){return{$:"a1",n:e,o:a}}),Ab=t(function(e,a){return{$:"a2",n:e,o:a}}),wb=t(function(e,a){return{$:"a3",n:e,o:a}}),Eb=b(function(e,a,t){return{$:"a4",n:a,o:{f:e,o:t}}}),Cb=t(function(e,a){return"a0"===a.$?$(xb,a.n,fe(e,a.o)):a}),Lb=t(function(e,a){return w(e(a.a),a.b)}),Tb=t(function(e,a){return{u:e(a.u),aj:a.aj,ag:a.ag}});try{window.addEventListener("t",null,Object.defineProperty({},"passive",{get:function(){ca=!0}}))}catch(a){}var _b,Ob,Ib,Nb,Hb=/.^/,Bb=t(function(e,a){var t="g";e.aP&&(t+="m"),e.am&&(t+="i");try{return Qn(new RegExp(a,t))}catch(e){return Zn}}),Rb=t(function(e,a){return null!==a.match(e)}),Wb=b(function(e,a,t){for(var b,n=[],d=0,s=a.lastIndex,l=-1;d++<e&&(b=a.exec(t))&&l!=a.lastIndex;){for(var o,c=b.length-1,$=Array(c);0<c;)o=b[c],$[--c]=o?Qn(o):Zn;n.push(r(Hd,b[0],b.index,d,v($))),l=a.lastIndex}return a.lastIndex=s,v(n)}),qb=n(function(e,a,t,b){function n(a){if(d++>=e)return a;for(var b=arguments.length-3,n=Array(b);0<b;){var s=arguments[b];n[--b]=s?Qn(s):Zn}return t(r(Hd,a,arguments[arguments.length-2],d,v(n)))}var d=0;return b.replace(a,n)}),Ub=b(function(e,a,t){for(var b,d=t,s=[],i=a.lastIndex,l=a.lastIndex;e--&&(b=a.exec(d),!!b);)s.push(d.slice(i,b.index)),i=a.lastIndex;return s.push(d.slice(i)),a.lastIndex=l,v(s)}),Db=b(function(e,a,t){return Y(function(b){function n(e){b(a(t.t.a(e)))}var d=new XMLHttpRequest;d.addEventListener("error",function(){n(rs)}),d.addEventListener("timeout",function(){n(fs)}),d.addEventListener("load",function(){n(Fe(t.t.b,d))}),is(t.o)&&Me(e,d,t.o.a);try{d.open(t.m,t.y,!0)}catch(a){return n($s(t.y))}return Pe(d,t),t.bj.a&&d.setRequestHeader("Content-Type",t.bj.a),d.send(t.bj.b),function(){d.c=!0,d.abort()}})}),Kb=b(function(e,a,t){return{$:0,d:e,b:a,a:t}}),Sb=t(function(e,a){return{$:0,d:a.d,b:a.b,a:function(t){return e(a.a(t))}}}),zb=t(function(e,a){return{$:0,a:e,b:a}}),Xb=t(function(e,a){return new Blob([a],{type:e})}),Yb=I(function(e){return"undefined"!=typeof File&&e instanceof File?ad(e):q("a FILE",e)}),Gb=b(function(e,a,t){return Y(function(){var b=new Blob([t],{type:a});if(navigator.msSaveOrOpenBlob)return void navigator.msSaveOrOpenBlob(b,e);var n=Qe(),d=URL.createObjectURL(b);n.href=d,n.download=e,Ze(n),URL.revokeObjectURL(d)})}),Pb=d(function(e,a,t,b,n){for(var d,s=e.length,l=a+s<=n.length,o=0;l&&o<s;)d=n.charCodeAt(a),l=e[o++]===n[a++]&&(10===d?(t++,b=1):(b++,55296==(63488&d)?e[o++]===n[a++]:1));return E(l?a:-1,t,b)}),Fb=b(function(e,a,t){return t.length<=a?-1:55296==(63488&t.charCodeAt(a))?e(C(t.substr(a,2)))?a+2:-1:e(C(t[a]))?"\n"===t[a]?-2:a+1:-1}),Vb=b(function(e,a,t){return t.charCodeAt(a)===e}),Jb=t(function(e,a){for(;e<a.length;e++){var t=a.charCodeAt(e);if(48>t||57<t)return e}return e}),Mb=b(function(e,a,t){for(var b,n=0;a<t.length&&(b=t.charCodeAt(a)-48,!(0>b||e<=b));a++)n=e*n+b;return w(a,n)}),Qb=t(function(e,a){for(var t,b=0;e<a.length;e++)if(t=a.charCodeAt(e),48<=t&&57>=t)b=16*b+t-48;else if(65<=t&&70>=t)b=16*b+t-55;else if(97<=t&&102>=t)b=16*b+t-87;else break;return w(e,b)}),Zb=d(function(e,a,t,b,n){for(var d=n.indexOf(e,a),s=0>d?n.length:d+e.length;a<s;){var i=n.charCodeAt(a++);10===i?(b=1,t++):(b++,55296==(63488&i)&&a++)}return E(d,t,b)}),en=Ib||n(function(e,a,t,b){return Q(a,b,e.bz,e.bW,e.bT,function(a,t){var n=e.bY,d=b.node,s=Ye(d);return aa(t,function(e){var t=n(e),b=Ce(s,t);d=Ue(d,s,b,a),s=t})})}),an=Nb||n(function(e,a,t,b){return Q(a,b,e.bz,e.bW,e.bT,function(a,t){var b=e.Q&&e.Q(a),n=e.bY,d=ib.title,s=ib.body,i=Ye(s);return aa(t,function(e){oa=b;var t=n(e),l=cb("body")($a)(t.bj),o=Ce(i,l);s=Ue(s,i,o,a),i=l,oa=0,d!==t.bV&&(ib.title=d=t.bV)})})}),tn="undefined"==typeof cancelAnimationFrame?function(e){clearTimeout(e)}:cancelAnimationFrame,bn="undefined"==typeof requestAnimationFrame?function(e){return setTimeout(e,1e3/60)}:requestAnimationFrame,nn=t(function(e,a){return $(yl,El,Y(function(){a&&history.go(a),e()}))}),dn=t(function(e,a){return $(yl,El,Y(function(){history.pushState({},"",a),e()}))}),sn=t(function(e,a){return $(yl,El,Y(function(){history.replaceState({},"",a),e()}))}),ln={addEventListener:function(){},removeEventListener:function(){}},on="undefined"==typeof document?ln:document,cn="undefined"==typeof window?ln:window,$n=b(function(e,a,t){return F(Y(function(){function b(e){P(t(e))}return e.addEventListener(a,b,ca&&{passive:!0}),function(){e.removeEventListener(a,b)}}))}),hn=t(function(e,a){var t=H(e,a);return pn(t)?Qn(t.a):Zn}),rn=t(function(e,a){return ta(a,function(a){return a[e](),Ea})}),gn=t(function(e,a){return ba(function(){return cn.scroll(e,a),Ea})}),un=b(function(e,a,t){return ta(e,function(e){return e.scrollLeft=a,e.scrollTop=t,Ea})}),fn=function(e){return e},pn=function(e){return!e.$},mn=32,vn=n(function(e,a,t,b){return{$:0,a:e,b:a,c:t,d:b}}),yn=1,kn=2,xn=0,jn=b(function(e,a,b){foldr:for(;;){if(-2===b.$)return a;var n=b.b,d=b.c,s=b.d,i=b.e,l=e,o=h(e,n,d,h(jn,e,a,i));e=l,a=o,b=s;continue foldr}}),An=ha,wn=function(e){return h(jn,b(function(e,a,t){return $(An,w(e,a),t)}),$a,e)},En=function(e){return h(jn,b(function(e,a,t){return $(An,e,t)}),$a,e)},Cn=function(e){return En(e)},Ln=Ha,Tn=b(function(e,a,b){var n=b.c,d=b.d,s=t(function(a,t){if(!a.$){var b=a.a;return h(Ln,s,t,b)}var n=a.a;return h(Ln,e,t,n)});return h(Ln,s,h(Ln,e,a,d),n)}),_n=function(e){return h(Tn,An,$a,e)},On=nt,In=t(function(e,a){return it(a)/it(e)}),Nn=On($(In,2,mn)),Hn=[],Bn=r(vn,0,Nn,Hn,Hn),Rn=function(e){return{$:1,a:e}},Wn=function(e){return{$:0,a:e}},qn=Ta,Un=b(function(e,a,t){foldl:for(;;){if(!t.b)return a;var b=t.a,n=t.b,d=e,s=$(e,b,a);e=d,a=s,t=n;continue foldl}}),Dn=function(e){return h(Un,An,$a,e)},Kn=t(function(e,a){compressNodes:for(;;){var t=$(qn,mn,e),b=t.a,n=t.b,d=$(An,Wn(b),a);if(!n.b)return Dn(d);e=n,a=d;continue compressNodes}}),Sn=t(function(e,a){return a(e)}),zn=function(e){var a=e.a;return a},Xn=t(function(e,a){treeFromBuilder:for(;;){var t=On(a/mn);if(1===t)return $(qn,mn,e).a;var b=$(Kn,e,$a);e=b,a=t;continue treeFromBuilder}}),Yn=t(function(e,a){return e(a)}),Gn=t(function(e,a){return 0<A(e,a)?e:a}),Pn=function(e){return e.length},Fn=t(function(e,a){if(!a.e)return r(vn,Pn(a.g),Nn,Hn,a.g);var t=a.e*mn,b=sa($(In,mn,t-1)),n=e?Dn(a.h):a.h,d=$(Xn,n,a.e);return r(vn,Pn(a.g)+t,$(Gn,5,b*Nn),d,a.g)}),Vn=La,Jn=d(function(e,a,t,b,n){initializeHelp:for(;;){if(0>a)return $(Fn,!1,{h:b,e:0|t/mn,g:n});var d=Rn(h(Vn,mn,a,e)),s=e,i=a-mn,l=t,o=$(An,d,b),c=n;e=s,a=i,t=l,b=o,n=c;continue initializeHelp}}),Mn=t(function(e,a){if(0>=e)return Bn;var t=e%mn,b=h(Vn,t,e-t,a);return g(Jn,a,e-t-mn,e,$a,b)}),Qn=function(e){return{$:0,a:e}},Zn={$:1},ed=function(e){return{$:1,a:e}},ad=function(e){return{$:0,a:e}},td=t(function(e,a){return{$:3,a:e,b:a}}),bd=t(function(e,a){return{$:0,a:e,b:a}}),nd=t(function(e,a){return{$:1,a:e,b:a}}),dd=function(e){return{$:2,a:e}},sd=function(e){var a=e.charCodeAt(0);return 55296<=a&&56319>=a?1024*(a-55296)+e.charCodeAt(1)-56320+65536:a},id=function(e){var a=sd(e);return 97<=a&&122>=a},ld=function(e){var a=sd(e);return 90>=a&&65<=a},od=function(e){return id(e)||ld(e)},cd=function(e){var a=sd(e);return 57>=a&&48<=a},$d=function(e){return id(e)||ld(e)||cd(e)},hd=function(e){return h(Un,t(function(e,a){return a+1}),0,e)},rd=b(function(e,a,t){rangeHelp:for(;;)if(1>A(e,a)){var b=e,n=a-1,d=$(An,a,t);e=b,a=n,t=d;continue rangeHelp}else return t}),gd=t(function(e,a){return h(rd,e,a,$a)}),ud=t(function(e,a){return h(ra,e,$(gd,0,hd(a)-1),a)}),fd=function(e){return e+""},pd=t(function(e,a){return $(vt,e,y(a))}),md=function(e){var a=e.charCodeAt(0);return a?Qn(55296<=a&&56319>=a?w(C(e[0]+e[1]),e.slice(2)):w(C(e[0]),e.slice(1))):Zn},vd=t(function(e,a){return v($(mt,e,a))}),yd=function(e){return $(pd,"\n ",$(vd,"\n",e))},kd=t(function(e,a){return"\n\n("+(fd(e+1)+(") "+yd(xd(a))))}),xd=function(e){return $(jd,e,$a)},jd=t(function(e,a){errorToStringHelp:for(;;)switch(e.$){case 0:var t=e.a,b=e.b,n=function(){var e=md(t);if(1===e.$)return!1;var a=e.a,b=a.a,n=a.b;return od(b)&&$(xt,$d,n)}(),d=n?"."+t:"['"+(t+"']"),s=b,l=$(An,d,a);e=s,a=l;continue errorToStringHelp;case 1:var o=e.a,b=e.b,i="["+(fd(o)+"]"),s=b,l=$(An,i,a);e=s,a=l;continue errorToStringHelp;case 2:var c=e.a;if(!c.b)return"Ran into a Json.Decode.oneOf with no possibilities"+function(){return a.b?" at json"+$(pd,"",Dn(a)):"!"}();if(!c.b.b){var b=c.a,s=b,l=a;e=s,a=l;continue errorToStringHelp}else{var h=function(){return a.b?"The Json.Decode.oneOf at json"+$(pd,"",Dn(a)):"Json.Decode.oneOf"}(),r=h+(" failed in the following "+(fd(hd(c))+" ways:"));return $(pd,"\n\n",$(An,r,$(ud,kd,c)))}default:var g=e.a,u=e.b,r=function(){return a.b?"Problem with the value at json"+($(pd,"",Dn(a))+":\n\n "):"Problem with the given value:\n\n"}();return r+(yd($(Yt,4,u))+("\n\n"+g));}}),Ad=Bt,wd=Rt,Ed=function(e){return{$:0,a:e}},Cd=function(e){switch(e.$){case 0:return 0;case 1:return 1;case 2:return 2;default:return 3;}},Ld=cb("img"),Td=t(function(e,a){return $(Ab,e,K(a))}),_d=function(e){return $(Td,"src",ue(e))},Od={at:$(Ld,v([_d("assets/download.svg")]),$a),av:$(Ld,v([_d("assets/error.svg")]),$a),aA:$(Ld,v([_d("assets/github.svg")]),$a),aM:$(Ld,v([_d("assets/logo.svg")]),$a),aO:$(Ld,v([_d("assets/moon.svg")]),$a),ba:$(Ld,v([_d("assets/sun.svg")]),$a),bd:$(Ld,v([_d("assets/upload.svg")]),$a)},Id=function(e){return{$:1,a:e}},Nd=t(function(e,a){if(!a.$){var t=a.a;return t}return e}),Hd=n(function(e,a,t,b){return{by:a,bB:e,bC:t,a8:b}}),Bd=function(e){return $(Bb,{am:!1,aP:!1},e)},Rd=Hb,Wd={ab:!1,bq:w(0,0),ac:"example.svg",W:Od,X:"",aI:!0,ad:Id(0),bX:$(Nd,Rd,Bd("!|#|\\$|%|&|'|\\(|\\)|\\*|\\+|,|\\/|:|;|=|\\?|@|\\[|\\]"))},qd=t(function(e,a){return{$:1,a:e,b:a}}),Ud=function(e){return{$:0,a:e}},Dd=be,Kd=t(function(t,b){if(!b.$){var n=b.a;return ad(t(n))}var a=b.a;return ed(a)}),Sd=t(function(e,t){if(!t.$){var b=t.a;return b}return e}),zd=b(function(e,a,t){return a(e(t))}),Xd={$:-2},Yd=Xd,Gd=wa,Pd=t(function(e,a){get:for(;;){if(-2===a.$)return Zn;var t=a.b,b=a.c,n=a.d,d=a.e,s=$(Gd,e,t);switch(s){case 0:var i=e,l=n;e=i,a=l;continue get;case 1:return Qn(b);default:var i=e,l=d;e=i,a=l;continue get;}}}),Fd=d(function(t,a,b,n,d){return{$:-1,a:t,b:a,c:b,d:n,e:d}}),Vd=d(function(e,a,t,b,n){if(-1===n.$&&!n.a){var d=n.a,s=n.b,i=n.c,l=n.d,o=n.e;if(-1===b.$&&!b.a){var c=b.a,$=b.b,h=b.c,r=b.d,u=b.e;return g(Fd,0,a,t,g(Fd,1,$,h,r,u),g(Fd,1,s,i,l,o))}return g(Fd,e,s,i,g(Fd,0,a,t,b,l),o)}if(-1===b.$&&!b.a&&-1===b.d.$&&!b.d.a){var f=b.a,$=b.b,h=b.c,p=b.d,m=p.a,v=p.b,y=p.c,k=p.d,x=p.e,u=b.e;return g(Fd,0,$,h,g(Fd,1,v,y,k,x),g(Fd,1,a,t,u,n))}return g(Fd,e,a,t,b,n)}),Jd=b(function(e,a,t){if(-2===t.$)return g(Fd,0,e,a,Xd,Xd);var b=t.a,n=t.b,d=t.c,s=t.d,i=t.e,l=$(Gd,e,n);return 0===l?g(Vd,b,n,d,h(Jd,e,a,s),i):1===l?g(Fd,b,n,a,s,i):g(Vd,b,n,d,s,h(Jd,e,a,i))}),Md=b(function(e,a,t){var b=h(Jd,e,a,t);if(-1===b.$&&!b.a){var n=b.a,d=b.b,s=b.c,i=b.d,l=b.e;return g(Fd,1,d,s,i,l)}return b}),Qd=function(e){getMin:for(;;)if(-1===e.$&&-1===e.d.$){var a=e.d;e=a;continue getMin}else return e},Zd=function(e){if(-1===e.$&&-1===e.d.$&&-1===e.e.$){if(-1===e.e.d.$&&!e.e.d.a){var a=e.a,t=e.b,b=e.c,n=e.d,d=n.a,s=n.b,i=n.c,l=n.d,o=n.e,c=e.e,$=c.a,h=c.b,r=c.c,u=c.d,f=u.a,p=u.b,m=u.c,y=u.d,x=u.e,j=c.e;return g(Fd,0,p,m,g(Fd,1,t,b,g(Fd,0,s,i,l,o),y),g(Fd,1,h,r,x,j))}var a=e.a,t=e.b,b=e.c,A=e.d,d=A.a,s=A.b,i=A.c,l=A.d,o=A.e,w=e.e,$=w.a,h=w.b,r=w.c,u=w.d,j=w.e;return 1===a?g(Fd,1,t,b,g(Fd,0,s,i,l,o),g(Fd,0,h,r,u,j)):g(Fd,1,t,b,g(Fd,0,s,i,l,o),g(Fd,0,h,r,u,j))}return e},es=function(e){if(-1===e.$&&-1===e.d.$&&-1===e.e.$){if(-1===e.d.d.$&&!e.d.d.a){var a=e.a,t=e.b,b=e.c,n=e.d,d=n.a,s=n.b,i=n.c,l=n.d,o=l.a,c=l.b,$=l.c,h=l.d,r=l.e,u=n.e,f=e.e,p=f.a,m=f.b,y=f.c,x=f.d,j=f.e;return g(Fd,0,s,i,g(Fd,1,c,$,h,r),g(Fd,1,t,b,u,g(Fd,0,m,y,x,j)))}var a=e.a,t=e.b,b=e.c,A=e.d,d=A.a,s=A.b,i=A.c,w=A.d,u=A.e,E=e.e,p=E.a,m=E.b,y=E.c,x=E.d,j=E.e;return 1===a?g(Fd,1,t,b,g(Fd,0,s,i,w,u),g(Fd,0,m,y,x,j)):g(Fd,1,t,b,g(Fd,0,s,i,w,u),g(Fd,0,m,y,x,j))}return e},as=i(function(e,a,t,b,n,d,s){if(-1===d.$&&!d.a){var i=d.a,l=d.b,o=d.c,c=d.d,$=d.e;return g(Fd,t,l,o,c,g(Fd,0,b,n,$,s))}_n2$2:for(;;)if(-1!==s.$||1!==s.a)break _n2$2;else if(-1===s.d.$){if(1===s.d.a){var h=s.a,r=s.d,u=r.a;return es(a)}break _n2$2}else{var f=s.a,p=s.d;return es(a)}return a}),ts=function(e){if(-1===e.$&&-1===e.d.$){var a=e.a,t=e.b,b=e.c,n=e.d,d=n.a,s=n.d,i=e.e;if(1===d){if(-1===s.$&&!s.a){s.a;return g(Fd,a,t,b,ts(n),i)}var l=Zd(e);if(-1===l.$){var o=l.a,c=l.b,$=l.c,h=l.d,r=l.e;return g(Vd,o,c,$,ts(h),r)}return Xd}return g(Fd,a,t,b,ts(n),i)}return Xd},bs=t(function(e,a){if(-2===a.$)return Xd;var t=a.a,b=a.b,n=a.c,d=a.d,s=a.e;if(0>A(e,b)){if(-1===d.$&&1===d.a){var i=d.a,l=d.d;if(-1===l.$&&!l.a){l.a;return g(Fd,t,b,n,$(bs,e,d),s)}var o=Zd(a);if(-1===o.$){var c=o.a,h=o.b,r=o.c,u=o.d,f=o.e;return g(Vd,c,h,r,$(bs,e,u),f)}return Xd}return g(Fd,t,b,n,$(bs,e,d),s)}return $(ns,e,p(as,e,a,t,b,n,d,s))}),ns=t(function(e,a){if(-1===a.$){var t=a.a,b=a.b,n=a.c,d=a.d,s=a.e;if(k(e,b)){var i=Qd(s);if(-1===i.$){var l=i.b,o=i.c;return g(Vd,t,l,o,d,ts(s))}return Xd}return g(Vd,t,b,n,d,$(bs,e,s))}return Xd}),ds=t(function(e,a){var t=$(bs,e,a);if(-1===t.$&&!t.a){var b=t.a,n=t.b,d=t.c,s=t.d,i=t.e;return g(Fd,1,n,d,s,i)}return t}),ss=b(function(e,a,t){var b=a($(Pd,e,t));if(!b.$){var n=b.a;return h(Md,e,n,t)}return $(ds,e,t)}),is=function(e){return!e.$},ls=tb,os=bb,cs=t(function(e,a){return{$:3,a:e,b:a}}),$s=function(e){return{$:0,a:e}},hs=t(function(e,a){return{$:4,a:e,b:a}}),rs={$:2},gs=function(e){return{$:1,a:e}},us=function(e){return{$:0,a:e}},fs={$:1},ps=t(function(e,a){return h(Kb,"",fn,$(zd,a,e))}),ms=t(function(a,t){if(!t.$){var b=t.a;return ad(b)}var n=t.a;return ed(a(n))}),vs=function(e){return{$:4,a:e}},ys=function(e){return{$:3,a:e}},ks=function(e){return{$:0,a:e}},xs={$:2},js={$:1},As=t(function(e,a){switch(a.$){case 0:var t=a.a;return ed(ks(t));case 1:return ed(js);case 2:return ed(xs);case 3:var b=a.a;return ed(ys(b.a7));default:var n=a.b;return $(ms,vs,e(n));}}),ws=function(e){return $(ps,e,As(ad))},Es={$:0},Cs=function(e){return{$:1,a:e}},Ls=z,Ts=t(function(e,a){return{a_:e,a9:a}}),_s=Ls($(Ts,Yd,$a)),Os=Ft,Is=function(e){return Y(function(a){var t=e.f;2===t.$&&t.c&&t.c(),e.f=null,a(z(0))})},Ns=b(function(e,a,t){updateReqs:for(;;){if(!a.b)return Ls(t);var b=a.a,n=a.b;if(!b.$){var d=b.a,s=$(Pd,d,t);if(1===s.$){var i=e,l=t;e=i,a=n,t=l;continue updateReqs}else{var o=s.a;return $(Os,function(){return h(Ns,e,n,$(ds,d,t))},Is(o))}}else{var c=b.a;return $(Os,function(a){var b=c.o;if(1===b.$)return h(Ns,e,n,t);var d=b.a;return h(Ns,e,n,h(Md,d,a,t))},F(h(Db,e,ls(e),c)))}}}),Hs=n(function(e,a,t,b){return $(Os,function(e){return Ls($(Ts,e,t))},h(Ns,e,a,b.a_))}),Bs=n(function(e,t,n,s){if(!s.b)return t;var i=s.a,a=s.b;if(!a.b)return $(e,i,t);var l=a.a,b=a.b;if(!b.b)return $(e,i,$(e,l,t));var o=b.a,c=b.b;if(!c.b)return $(e,i,$(e,l,$(e,o,t)));var g=c.a,d=c.b,u=500<n?h(Un,e,t,Dn(d)):r(Bs,e,t,n+1,d);return $(e,i,$(e,l,$(e,o,$(e,g,u))))}),Rs=b(function(e,a,t){return r(Bs,e,a,0,t)}),Ws=b(function(e,a,t){var b=e(a);if(!b.$){var n=b.a;return $(An,n,t)}return t}),qs=t(function(e,a){return h(Rs,Ws(e),$a,a)}),Us=b(function(e,a,t){return $(Os,function(n){return $(Os,function(a){return Ls($(e,n,a))},t)},a)}),Ds=function(e){return h(Rs,Us(An),Ls($a),e)},Ks=n(function(e,a,t,b){var n=b.a,d=b.b;return k(a,n)?Qn($(ls,e,d(t))):Zn}),Ss=b(function(e,a,t){var b=a.a,n=a.b;return $(Os,function(){return Ls(t)},Ds($(qs,h(Ks,e,b,n),t.a9)))}),zs=function(e){return{$:0,a:e}},Xs=t(function(e,a){if(!a.$){var t=a.a;return zs(t)}var b=a.a;return Cs({D:b.D,bj:b.bj,t:$(Sb,e,b.t),i:b.i,m:b.m,n:b.n,o:b.o,y:b.y})}),Ys=t(function(e,a){return{$:0,a:e,b:a}}),Gs=t(function(e,a){var t=a.a,b=a.b;return $(Ys,t,$(zd,b,e))});ab.Http=ee(_s,Hs,Ss,Xs,Gs);var Ps=te("Http"),Fs=te("Http"),Vs=function(e){return Ps(Cs({D:!1,bj:e.bj,t:e.t,i:e.i,m:e.m,n:e.n,o:e.o,y:e.y}))},Js=function(e){return Vs({bj:Es,t:e.t,i:$a,m:"GET",n:Zn,o:Zn,y:e.y})},Ms=Dd(v([Js({t:ws(qd(0)),y:"assets/logo.svg"}),Js({t:ws(qd(1)),y:"assets/download.svg"}),Js({t:ws(qd(2)),y:"assets/upload.svg"}),Js({t:ws(qd(3)),y:"assets/moon.svg"}),Js({t:ws(qd(4)),y:"assets/sun.svg"}),Js({t:ws(qd(5)),y:"assets/github.svg"}),Js({t:ws(qd(6)),y:"assets/error.svg"}),Js({t:ws(function(e){return $(Sd,Ud(""),$(Kd,Ud,e))}),y:"assets/example.svg"})])),Qs={$:0},Zs=function(e){if(!e.$)return Qs;if(6===e.a)return Qs;var a=e.a;return Id(a+1)},ei=t(function(e,a){return $(wb,re(e),ue(a))}),ai=function(e){var a=e.a,t=e.b;return $(ei,a,t)},ti=t(function(e,a){return h(Rs,t(function(a,t){return $(An,e(a),t)}),$a,a)}),bi=function(e){return ob(he(e))}("http://www.w3.org/2000/svg"),ni=ce,di=ni,si=function(e){return h(bi,e.Y,$(ti,ai,e.aa),$(ti,ii,e.V))},ii=function(e){switch(e.$){case 0:var a=e.a;return si(a);case 1:var t=e.a;return di(t);default:var t=e.a;return di("");}},li=b(function(e,t,b){return $(e,b,t)}),oi=function(e){return e},ci=t(function(e,a){return t(function(t,b){var n=h(oi,a,t,b);if(!n.c.$){var d=n.a,s=n.b,i=n.c.a;return h(oi,e(i),d,s)}var l=n.a,o=n.b,c=n.c.a;return E(l,o,ed(c))})}),$i=b(function(e,a,b){return t(function(t,n){var d=h(oi,b,t,n);if(!d.c.$){var s=d.a,i=d.b,l=d.c.a;return E(s,i,ad(e(l)))}var o=d.a,c=d.b,$=d.c.a;return E(o,c,ed(a($)))})}),hi=t(function(e,a){return h($i,e,fn,a)}),ri=b(function(e,a,t){return $(e,t,a)}),gi=t(function(e,a){return $(ci,$(ri,hi,e),a)}),ui=t(function(e){return e}),fi=t(function(e,a){return $(gi,a,$(hi,li(ui),e))}),pi=function(e){return{$:0,a:e}},mi=t(function(e,a){return $(gi,a,$(hi,ui,e))}),vi=function(e){return{$:2,a:e}},yi=function(e){return t(function(a,t){return E(a,t,ad(e))})},ki=function(e){return $(ci,e,yi(0))},xi=t(function(e,a){var t=b(function(t,b,n){accumulate:for(;;){var d=h(oi,a,b,n);if(!d.c.$){var s=d.a,i=d.b;return E(s,i,ad(Dn(t)))}var l=d.a,o=d.b,c=d.c.a,r=h(oi,e,b,n);if(!r.c.$){var s=r.a,i=r.b,g=r.c.a,u=$(An,g,t),f=s,p=i;t=u,b=f,n=p;continue accumulate}else return E(l,o,ed(c))}});return t($a)}),ji=function(e){return e.length},Ai=yt,wi=t(function(e,a){return 1>e?a:h(Ai,e,ji(a),a)}),Ei=At,Ci=function(e){return t(function(a,t){if($(Ei,e,t.l)){var b=ji(e),n=t.w+b,d=$(wi,b,t.l);return E(a,L(t,{l:d,w:n}),ad(e))}return E(a,t,ed(v(["expected \""+(e+"\"")])))})},Li=$i(fn),Ti=t(function(e,a){return $(Li,ui(v([e])),a)}),_i=d(function(e,a,t,b,n){var d=$(Ei,"^",t)?t:"^"+t,s=h(Wb,1,$(Nd,Rd,e(d)),n.l);if(s.b&&!s.b.b){var i=s.a,l=ji(i.bB),o=n.w+l,c=$(wi,l,n.l);return E(b,L(n,{l:c,w:o}),ad(a(i)))}return E(b,n,ed(v(["expected input matching Regexp /"+(d+"/")])))}),Oi=$(zd,$(_i,Bd,function(e){return e.bB}),fn),Ii=$(Ti,"optional whitespace",Oi("\\s*")),Ni=$(Ti,"expected any character",function(e){return fn(t(function(a,t){var b=md(t.l);if(!b.$){var n=b.a,d=n.a,s=n.b;return e(d)?E(a,L(t,{l:s,w:t.w+1}),ad(d)):E(a,t,ed(v(["could not satisfy predicate"])))}return E(a,t,ed(v(["could not satisfy predicate"])))}))}(ui(!0))),Hi=b(function(e,a,t){return e(a(t))}),Bi=function(e){return y(e).join("")},Ri=ki(function(){return $(hi,$(Hi,vi,Bi),$(fi,$(fi,Ii,Ci("<!--")),$(xi,Ni,Ci("-->"))))}),Wi=b(function(e,a,t){return{aa:a,V:t,Y:e}}),qi=t(function(e,a){return t(function(t,b){var n=h(oi,e,t,b);if(!n.c.$){var d=n;return d}var s=n.c.a,i=h(oi,a,t,b);if(!i.c.$){var d=i;return d}var l=i.c.a;return E(t,b,ed(T(s,l)))})}),Ui=t(function(e,a){return $(qi,a,yi(e))}),Di=t(function(e,a){return w(e,a)}),Ki=$(gi,$(Ui,"",$(mi,$(fi,Ci("=\""),Oi("[^\"]*")),Ci("\""))),$(hi,Di,Oi("[^=>/]+"))),Si=t(function(e,a){return $(gi,e,$(hi,ri(ui),a))}),zi=function(e){var a=b(function(a,t,b){accumulate:for(;;){var n=h(oi,e,t,b);if(!n.c.$){var d=n.a,s=n.b,i=n.c.a;if(k(b,s))return E(d,s,Dn(a));var l=$(An,i,a);a=l,t=d,b=s;continue accumulate}else return E(t,b,Dn(a))}});return t(function(e,t){var b=h(a,$a,e,t),n=b.a,d=b.b,s=b.c;return E(n,d,ad(s))})},Xi=t(function(e,a){return $(gi,zi($(Si,a,e)),$(hi,An,a))}),Yi=t(function(e,a){return $(qi,$(Xi,e,a),yi($a))}),Gi=h(li,gi,$(gi,Oi("[^/>\\s]+"),$(hi,b(function(e,a,t){return h(Wi,a,t,$a)}),Ci("<"))),$(mi,$(fi,Ii,$(Yi,Ii,Ki)),Ii)),Pi=function(e){return{$:1,a:e}},Fi=ki(function(){return $(hi,Pi,$(fi,Ii,Oi("[^<]+")))}),Vi=t(function(e,a){return E(e,a,ed($a))}),Ji=function(e){return h(Rs,qi,Vi,e)},Mi=function(e){var a=$(hi,function(a){return L(e,{V:a})},$(mi,$(mi,$(fi,$(fi,Ii,Ci(">")),zi(da())),Ii),Ci("</"+(e.Y+">"))));return ki(function(){return Ji(v([$(fi,$(fi,Ii,Ci("/>")),yi(e)),a]))})},Qi=na();na=function(){return Qi};var Zi=da();da=function(){return Zi};var el=$(hi,Bi,$(fi,$(fi,Ii,Ci("<?xml")),$(xi,Ni,Ci("?>")))),al=b(function(e,a,t){return{aq:e,l:a,w:t}}),tl=function(e){return h(al,e,e,0)},bl=b(function(e,a,t){var b=h(oi,e,a,tl(t));if(!b.c.$){var n=b.a,d=b.b,s=b.c.a;return ad(E(n,d,s))}var n=b.a,d=b.b,i=b.c.a;return ed(E(n,d,i))}),nl=function(e){var a=h(bl,$(fi,$(Ui,"",el),Zi),$a,e);if(!a.$){var t=a.a,b=t.c;return ad(b)}var n=a.a,d=n.b,s=n.c;return ed($(pd," or ",s))},dl=t(function(e,a){if(!a.$){var t=a.a;return e(t)}var b=a.a;return ed(b)}),sl=ob("http://www.w3.org/2000/svg"),il=sl("svg"),ll=function(e){return $(dl,function(e){if(!e.$){var a=e.a;return"svg"===a.Y?ad($(il,$(ti,ai,a.aa),$(ti,ii,a.V))):ed("Top element is not svg")}return ed("Top element is not svg")},nl(e))},ol=b(function(e,a,t){return 0===a?L(e,{aM:t}):1===a?L(e,{at:t}):2===a?L(e,{bd:t}):3===a?L(e,{aO:t}):4===a?L(e,{ba:t}):5===a?L(e,{aA:t}):L(e,{av:t})}),cl=b(function(e,a,t){var b=$(Sd,e.W,$(Kd,$(ol,e.W,a),ll(t)));return L(e,{W:b})}),$l=function(e){return{$:1,a:e}},hl=function(e){return{$:5,a:e}},rl=Ls(0),gl=t(function(e,a){return $(Os,function(t){return Ls(e(t))},a)}),ul=t(function(e,a){return F($(Os,ls(e),a))}),fl=b(function(e,a){return $(gl,function(){return 0},Ds($(ti,ul(e),a)))}),pl=b(function(){return Ls(0)}),ml=t(function(e,a){return $(gl,e,a)});ab.Task=ee(rl,fl,pl,ml);var vl=te("Task"),yl=t(function(e,a){return vl($(gl,e,a))}),kl=function(e){return e.name},xl=function(e){return Y(function(a){var t=new FileReader;return t.addEventListener("loadend",function(){a(z(t.result))}),t.readAsText(e),function(){t.abort()}})},jl=t(function(e,a){return $(yl,a,ea(e))}),Al=t(function(e,a){if(!a.$)return w(e,$(jl,v(["image/svg+xml"]),function(e){return hl($l(e))}));var t=a.a;return w(L(e,{ac:kl(t)}),$(yl,Ud,xl(t)))}),wl=Dd($a),El=function(e){never:for(;;){var a=e;e=a;continue never}},Cl=b(function(e,a,t){return $(yl,El,h(Gb,e,a,t))}),Ll=t(function(e,a){switch(e.$){case 0:var t=e.a;return w(L(a,{X:t}),wl);case 1:var b=e.a,n=e.b,d=$(Sd,a,$(Kd,$(cl,a,b),n));return w(L(d,{ad:Zs(d.ad)}),wl);case 2:var s=e.a;return w(L(a,{aI:s}),wl);case 3:return w(L(a,{ab:!a.ab}),wl);case 4:return w(a,h(Cl,a.ac,"image/svg+xml",a.X));case 5:var i=e.a;return $(Al,a,i);default:var l=e.a;return w(L(a,{bq:l}),wl);}}),Tl=cb("code"),_l=cb("pre"),Ol=ni,Il=function(e){return v([e])},Nl=Td("className"),Hl=cb("div"),Bl=t(function(e,a){return h(Rs,t(function(a,t){return e(a)?$(An,a,t):t}),$a,a)}),Rl=function(e){var a=e.b;return a},Wl=function(e){return Nl($(pd," ",$(ti,zn,$(Bl,Rl,e))))},ql=function(e){return""===e},Ul=cb("span"),Dl=function(e){return"elmsh"+function(){return 0===e?"0":1===e?"-comm":2===e?"1":3===e?"2":4===e?"3":5===e?"4":6===e?"5":7===e?"6":"7"}()},Kl=function(e){var a=e.bU,t=e.bH,b=e.bh;return!t&&ql(b)?Ol(a):$(Ul,v([Wl(v([w(Dl(t),t),w("elmsh-"+b,""!==b)]))]),v([Ol(a)]))},Sl=b(function(e,a,t){var b=t.bu,n=t.bw;return $(Hl,v([Wl(v([w("elmsh-line",!0),w("elmsh-hl",k(n,Qn(0))),w("elmsh-add",k(n,Qn(1))),w("elmsh-del",k(n,Qn(2)))])),$(ei,"data-elmsh-lc",fd(e+a))]),$(ti,Kl,b))}),zl=t(function(e,a){return a.b?h(Rs,An,a,e):e}),Xl=function(e){return h(Rs,zl,$a,e)},Yl=function(e){return $(Tl,v([Nl("elmsh")]),Xl($(ti,function(e){var a=e.bw,t=e.bu;return k(a,Zn)?$(ti,Kl,t):v([$(Ul,v([Wl(v([w("elmsh-hl",k(a,Qn(0))),w("elmsh-add",k(a,Qn(1))),w("elmsh-del",k(a,Qn(2)))]))]),$(ti,Kl,t))])},e)))},Gl=t(function(e,a){if(1===e.$)return $(_l,v([Nl("elmsh")]),v([Yl(a)]));var t=e.a;return $(_l,v([Nl("elmsh")]),Il($(Tl,$a,$(ud,Sl(t),a))))}),Pl=t(function(e,a){return $(Gl,e,a)}),Fl=b(function(e,a,t){return{ao:a,aU:t,a2:e}}),Vl=function(e){return h(Fl,e.a2,e.ao,e.aU)},Jl=t(function(e,a){bagToList:for(;;)switch(e.$){case 0:return a;case 1:var t=e.a,b=e.b,n=t,d=$(An,b,a);e=n,a=d;continue bagToList;default:var t=e.a,s=e.b,n=t,d=$(Jl,s,a);e=n,a=d;continue bagToList;}}),Ml=t(function(e,a){var t=e({ao:1,c:$a,d:1,b:0,a2:1,a:a});if(!t.$){var b=t.b;return ad(b)}var n=t.b;return ed($(Jl,n,$a))}),Ql=t(function(e,t){var b=$(Ml,e,t);if(!b.$){var n=b.a;return ad(n)}var a=b.a;return ed($(ti,Vl,a))}),Zl=t(function(e,a){return{$:1,a:e,b:a}}),eo=b(function(e,a,t){return{$:0,a:e,b:a,c:t}}),ao=t(function(e,t){return function(b){var n=t(b);if(!n.$){var d=n.a,s=n.b,a=n.c;return h(eo,d,e(s),a)}var d=n.a,i=n.b;return $(Zl,d,i)}}),to=ao,bo=function(e){return{$:1,a:e}},no=function(e){return{$:0,a:e}},so=function(e){if(!e.$){var t=e.a;return no(t)}var b=e.a;return bo(b)},io=n(function(e,a,t,b){loopHelp:for(;;){var n=t(a),d=n(b);if(!d.$){var s=d.a,i=d.b,l=d.c;if(!i.$){var o=i.a,c=e||s,r=t;e=c,a=o,t=r,b=l;continue loopHelp}else{var g=i.a;return h(eo,e||s,g,l)}}else{var s=d.a,u=d.b;return $(Zl,e||s,u)}}}),lo=t(function(e,a){return function(t){return r(io,!1,e,a,t)}}),oo=t(function(e,a){return $(lo,e,function(e){return $(to,so,a(e))})}),co=function(e){return{$:1,a:e}},$o=function(e){return{$:0,a:e}},ho=t(function(e,t){return function(b){var n=t(b);if(1===n.$){var d=n.a,s=n.b;return $(Zl,d,s)}var d=n.a,i=n.b,a=n.c;return h(eo,d,$(e,h(Ai,b.b,a.b,b.a),i),a)}}),ro=function(e){return $(ho,ui,e)},go={$:0},uo=t(function(e,a){return{$:2,a:e,b:a}}),fo=b(function(e,a,t){oneOfHelp:for(;;){if(!t.b)return $(Zl,!1,a);var b=t.a,n=t.b,d=b(e);if(!d.$){var s=d;return s}var s=d,i=s.a,l=s.b;if(i)return s;var o=e,c=$(uo,a,l);e=o,a=c,t=n;continue oneOfHelp}}),po=function(e){return function(a){return h(fo,a,go,e)}},mo=function(e){return function(a){return h(eo,!1,e,a)}},vo={$:11},yo=t(function(e,a){return{$:1,a:e,b:a}}),ko=n(function(e,a,t,b){return{ao:a,bm:b,aU:t,a2:e}}),xo=t(function(e,a){return $(yo,go,r(ko,e.a2,e.ao,a,e.c))}),jo=Fb,Ao=t(function(e,a){return function(t){var b=h(jo,e,t.b,t.a);return k(b,-1)?$(Zl,!1,$(xo,t,a)):k(b,-2)?h(eo,!0,0,{ao:1,c:t.c,d:t.d,b:t.b+1,a2:t.a2+1,a:t.a}):h(eo,!0,0,{ao:t.ao+1,c:t.c,d:t.d,b:b,a2:t.a2,a:t.a})}}),wo=function(e){return $(Ao,e,vo)},Eo=d(function(e,a,t,b,n){chompWhileHelp:for(;;){var d=h(jo,e,a,n.a);if(k(d,-1))return h(eo,0>A(n.b,a),0,{ao:b,c:n.c,d:n.d,b:a,a2:t,a:n.a});if(k(d,-2)){var s=e,i=a+1,l=t+1,o=1,c=n;e=s,a=i,t=l,b=o,n=c;continue chompWhileHelp}else{var s=e,i=d,l=t,o=b+1,c=n;e=s,a=i,t=l,b=o,n=c;continue chompWhileHelp}}}),Co=function(e){return function(a){return g(Eo,e,a.b,a.a2,a.ao,a)}},Lo=b(function(e,t,n){return function(d){var s=t(d);if(1===s.$){var i=s.a,l=s.b;return $(Zl,i,l)}var o=s.a,c=s.b,a=s.c,r=n(a);if(1===r.$){var g=r.a,l=r.b;return $(Zl,o||g,l)}var g=r.a,u=r.b,b=r.c;return h(eo,o||g,$(e,c,u),b)}}),To=t(function(e,a){return h(Lo,ui,e,a)}),_o=To,Oo=function(e){return $(_o,$(_o,mo(0),wo(e)),Co(e))},Io=function(e){return"\n"===e},No={$:0},Ho=t(function(e,t){return function(n){var d=t(n);if(1===d.$){var s=d.a,i=d.b;return $(Zl,s,i)}var l=d.a,o=d.b,a=d.c,c=e(o),r=c(a);if(1===r.$){var g=r.a,i=r.b;return $(Zl,l||g,i)}var g=r.a,u=r.b,b=r.c;return h(eo,l||g,u,b)}}),Bo=Ho,Ro=function(e){return{$:8,a:e}},Wo=t(function(e,a){return{$:0,a:e,b:a}}),qo=function(e){var a=e.a,t=e.b,b=!ql(a);return function(e){var n=g(Pb,a,e.b,e.a2,e.ao,e.a),d=n.a,s=n.b,i=n.c;return k(d,-1)?$(Zl,!1,$(xo,e,t)):h(eo,b,0,{ao:i,c:e.c,d:e.d,b:d,a2:s,a:e.a})}},Uo=function(e){return qo($(Wo,e,Ro(e)))},Do=function(e){return{$:12,a:e}},Ko=function(e){return function(a){return $(Zl,!1,$(xo,a,e))}},So=function(e){return Ko(Do(e))},zo=function(e){return function(a){return k(ji(a.a),a.b)?h(eo,!1,0,a):$(Zl,!1,$(xo,a,e))}}({$:10}),Xo=b(function(e,a,t){return $(Bo,function(t){return e(T(t,a))},t)}),Yo=b(function(e,a,t){return $(Bo,function(t){return e($(An,t,a))},t)}),Go=t(function(e,a){return $(_o,a,Co(e))}),Po=t(function(e,a){var t=e.as,b=e.aH,n=e.au,d=e.aE;return po(v([$(to,ui($(An,t(n),a)),Uo(n)),$(to,ui(a),zo),h(Xo,Po(e),a,po(d)),h(Yo,Po(e),a,$(to,t,ro($(Go,b,wo(ui(!0))))))]))}),Fo=b(function(e,a,t){var b=a.as,n=a.aH,d=a.ai,s=a.au,i=a.aE;return po(v([$(Bo,function(t){return 1===e?mo(t):h(Fo,e-1,a,t)},$(to,ui($(An,b(s),t)),Uo(s))),h(Yo,$(Fo,e+1,a),t,$(to,b,ro($(Go,n,Uo(d))))),h(Xo,Po(a),t,po(i)),$(to,ui(t),zo),h(Yo,$(Fo,e,a),t,$(to,b,ro($(Go,n,wo(ui(!0))))))]))}),Vo=t(function(e,a){var t=e.ai,b=e.au,n=e.aH,d=w(md(e.ai),md(e.au));if(1===d.a.$){d.a;return So("Trying to parse a delimited helper, but the start token cannot be an empty string!")}if(1===d.b.$){d.b;return So("Trying to parse a delimited helper, but the end token cannot be an empty string!")}var s=d.a.a,i=s.a,l=d.b.a,o=l.a;return e.aG?h(Fo,1,L(e,{aH:function(e){return n(e)&&!k(e,i)&&!k(e,o)}}),a):$(Po,L(e,{aH:function(e){return n(e)&&!k(e,o)}}),a)}),Jo=function(e){var a=e.ai,t=e.aH,b=e.as;return $(Bo,function(a){return $(Vo,e,v([a]))},$(to,ui(b(a)),Uo(a)))},Mo={$:1},Qo=function(e){return{$:3,a:e}},Zo={$:2},ec=$(to,function(){return w(Zo,"\n")},Uo("\n")),ac=$(to,Il,ec),tc={as:function(e){return w(Qo(2),e)},au:"\"",aE:v([ac]),aG:!1,aH:$(Hi,function(e){return!e},Io),ai:"\""},bc=Jo(L(tc,{as:function(e){return w(Mo,e)},au:"-->",ai:"<!--"})),nc=$(_o,$(_o,mo(0),wo(function(e){return"<"===e})),po(v([wo(function(e){return"/"===e||"!"===e}),mo(0)]))),dc=function(e){return" "===e||"\t"===e},sc=function(e){return dc(e)||Io(e)},ic=Jo(tc),lc=Jo(L(tc,{au:"'",ai:"'"})),oc=po(v([ic,lc,$(to,function(e){return v([w(Qo(2),e)])},ro(Oo(function(e){return!sc(e)&&">"!==e})))])),cc=po(v([$(to,function(e){return w(No,e)},ro(Oo(dc))),ec])),$c=function(e){return po(v([h(Yo,$c,e,cc),h(Xo,mo,e,oc),mo(e)]))},hc=function(e){return po(v([h(Yo,hc,e,cc),h(Yo,$c,e,$(to,function(){return w(No,"=")},Uo("="))),mo(e)]))},rc=function(e){return ld(e)||id(e)||cd(e)},gc=function(e){return rc(e)||"-"===e},uc=function(e){return gc(e)||"_"===e},fc=function(e){return po(v([$(to,$o,h(Yo,hc,e,$(to,function(e){return w(Qo(1),e)},ro(Oo(uc))))),$(to,function(a){return $o($(An,a,e))},cc),$(to,function(a){return $o($(An,w(No,a),e))},ro(Oo(function(e){return!sc(e)&&">"!==e}))),mo(co(e))]))},pc=function(e){return po(v([$(Bo,function(a){return $(oo,$(An,a,e),fc)},$(to,function(e){return w(Qo(0),e)},ro($(Go,gc,wo(rc))))),mo(e)]))},mc=function(e){return $(Bo,pc,$(to,function(a){return $(An,w(No,a),e)},ro(nc)))},vc=$(oo,$a,function(e){return po(v([$(to,function(a){return $o($(An,a,e))},cc),$(to,function(a){return $o(T(a,e))},bc),$(to,function(a){return $o($(An,w(No,a),e))},ro(Oo(function(e){return"<"!==e&&!Io(e)}))),$(to,$o,mc(e)),mo(co(e))]))}),yc=function(e){return{bu:e,bw:Zn}},kc=t(function(e,a){var t=a.a,b=a.b;switch(t.$){case 0:return{bh:"",bH:0,bU:b};case 1:return{bh:"",bH:1,bU:b};case 2:return{bh:"",bH:0,bU:b};default:var n=t.a,d=e(n),s=d.a,i=d.b;return{bh:i,bH:s,bU:b};}}),xc=b(function(e,a,t){var b=a.a,n=a.b,d=t.a,s=t.b,i=t.c;if(k(b,Zo))return E($(An,yc(s),d),v([$(kc,e,w(b,n))]),Zn);if(k(Qn(b),i)){if(s.b){var l=s.a,o=s.b;return E(d,$(An,L(l,{bU:T(n,l.bU)}),o),i)}return E(d,$(An,$(kc,e,w(b,n)),s),i)}return E(d,$(An,$(kc,e,w(b,n)),s),Qn(b))}),jc=t(function(e,a){return function(e){var a=e.a,t=e.b;return $(An,yc(t),a)}(h(Un,xc(e),E($a,$a,Zn),a))}),Ac=$(zd,Ql(vc),Kd(jc(function(e){return 0===e?w(4,"xml-t"):1===e?w(6,"xml-a"):w(3,"xlm-av")}))),wc=$(zd,Ac,Kd(fn)),Ec=function(e){return $(Sd,$(_l,$a,v([$(Tl,$a,v([Ol(e.X)]))])),$(Kd,Pl(Zn),wc(""===e.X?"<svg ...> ... </svg>":e.X)))},Cc=function(e){return{$:0,a:e}},Lc=xb,Tc=t(function(e,a){return $(Lc,e,Cc(a))}),_c=t(function(e,a){return h(Rs,It,a,e)}),Oc=Ct,Ic=function(e){return $(Tc,"scroll",$(Ad,e,h(wd,function(e){return function(a){return w(e,a)}},$(_c,v(["target","scrollLeft"]),Oc),$(_c,v(["target","scrollTop"]),Oc))))},Nc=function(e){return{$:6,a:e}},Hc=cb("textarea"),Bc=t(function(e,a){return $(Ab,e,K(a))}),Rc=Bc("spellcheck"),Wc=Td("value"),qc=function(e){return w(e,!0)},Uc=function(e){return{$:1,a:e}},Dc=t(function(e,a){return $(Lc,e,Uc(a))}),Kc=$(_c,v(["target","value"]),Ot),Sc=function(e){return $(Dc,"input",$(Ad,qc,$(Ad,e,Kc)))},zc=function(e){return $(Hc,v([Wc(e.X),Sc(Ud),Ic(Nc),Rc(!1)]),$a)},Xc=fd,Yc=function(e){return $(jb,"transform",e)},Gc=function(e){var a=e.a,t=e.b;return Yc("translate("+(Xc(-a)+("px, "+(Xc(-t)+"px)"))))},Pc=Td("id"),Fc=function(e){return $(Hl,v([Pc("editor")]),v([$(Hl,v([Gc(e.bq)]),v([Ec(e)])),zc(e)]))},Vc={$:4},Jc={$:0},Mc={$:3},Qc=function(e){return{$:2,a:e}},Zc=function(e){return $(Tc,"error",Ed(e))},e$=function(e){return $(Tc,"load",Ed(e))},a$=function(e){return e.aI?Zc(Qc(!1)):e$(Qc(!0))},t$=function(e){var a=e.bB;switch(a){case"!":return"%21";case"#":return"%23";case"$":return"%24";case"%":return"%25";case"&":return"%26";case"'":return"%27";case"(":return"%28";case")":return"%29";case"*":return"%2A";case"+":return"%2B";case",":return"%2C";case"/":return"%2F";case":":return"%3A";case";":return"%3B";case"=":return"%3D";case"?":return"%3F";case"@":return"%40";case"[":return"%5B";case"]":return"%5D";default:return a;}},b$=qb(1/0),n$=function(e){return"data:image/svg+xml;utf8,"+h(b$,e.bX,t$,e.X)},d$=cb("button"),s$=function(e){return $(Tc,"click",Ed(e))},i$=function(e){return $(Hl,v([Pc("display"),Nl(e.ab?"dark":"")]),v([$(Ld,v([_d(n$(e)),a$(e)]),$a),e.W.av,$(d$,v([s$(Vc)]),v([e.W.at])),$(d$,v([s$(hl(Jc))]),v([e.W.bd])),$(d$,v([s$(Mc)]),v([e.ab?e.W.ba:e.W.aO]))]))},l$=cb("a"),o$=function(e){return $(Td,"href",ge(e))},c$=wb("rel"),$$=Td("target"),h$=function(e){return $(l$,v([o$("https://github.com/GarkGarcia/RawSvg"),$$("_blank"),c$("noopener noreferrer")]),v([e.W.aA]))},r$=gb,g$=function(e){return $(Hl,v([Pc("container"),Nl(e.aI?"":"error")]),v([$(Hl,v([Pc("title")]),v([e.W.aM,h$(e)])),i$(e),$(r$,Fc,e)]))},u$=function(e){return{$:1,a:e}},f$=function(e){return{$:0,a:e}},p$=fn,m$=Et,v$=t(function(e,a){return 1>e?"":h(Ai,0,e,a)}),y$=function(e){for(var a,t=0,b=e.charCodeAt(0),n=43==b||45==b?1:0,d=n;d<e.length;++d){if(a=e.charCodeAt(d),48>a||57<a)return Zn;t=10*t+a-48}return d==n?Zn:Qn(45==b?-t:t)},k$=s(function(e,a,t,b,n,d){return{az:d,aC:a,aR:b,aT:t,aX:e,aY:n}}),x$=d(function(e,a,t,b,n){if(ql(n)||$(jt,"@",n))return Zn;var d=$(m$,":",n);if(!d.b)return Qn(u(k$,e,n,Zn,a,t,b));if(!d.b.b){var s=d.a,i=y$($(wi,s+1,n));if(1===i.$)return Zn;return Qn(u(k$,e,$(v$,s,n),i,a,t,b))}return Zn}),j$=n(function(e,a,t,b){if(ql(b))return Zn;var n=$(m$,"/",b);if(!n.b)return g(x$,e,"/",a,t,b);var d=n.a;return g(x$,e,$(wi,d,b),a,t,$(v$,d,b))}),A$=b(function(e,a,t){if(ql(t))return Zn;var b=$(m$,"?",t);if(!b.b)return r(j$,e,Zn,a,t);var n=b.a;return r(j$,e,Qn($(wi,n+1,t)),a,$(v$,n,t))}),w$=t(function(e,a){if(ql(a))return Zn;var t=$(m$,"#",a);if(!t.b)return h(A$,e,Zn,a);var b=t.a;return h(A$,e,Qn($(wi,b+1,a)),$(v$,b,a))}),E$=function(e){return $(Ei,"http://",e)?$(w$,0,$(wi,7,e)):$(Ei,"https://",e)?$(w$,1,$(wi,8,e)):Zn},C$=be($a),L$=an({bz:function(){return w(Wd,Ms)},bT:function(){return C$},bW:Ll,bY:function(e){return{bj:function(){var a=e.ad;return a.$?$a:v([$(r$,g$,e)])}(),bV:"RawSvg"}}});(function(a){e.Elm?le(e.Elm,a):e.Elm=a})({Main:{init:L$(Ed(0))(0)}})})(this);- \ No newline at end of file +/* Thiago Brevidelli ⓒ 2019. ALL RIGHTS RESERVED */ +(function(e){'use strict';var sa=Math.floor,ia=String.fromCharCode;function a(e,a,t){return t.a=e,t.f=a,t}function t(e){return a(2,e,function(t){return function(a){return e(t,a)}})}function b(e){return a(3,e,function(t){return function(a){return function(b){return e(t,a,b)}}})}function n(e){return a(4,e,function(t){return function(a){return function(b){return function(n){return e(t,a,b,n)}}}})}function d(t){return a(5,t,function(n){return function(a){return function(b){return function(s){return function(d){return t(n,a,b,s,d)}}}}})}function s(t){return a(6,t,function(n){return function(a){return function(b){return function(s){return function(d){return function(e){return t(n,a,b,s,d,e)}}}}}})}function i(t){return a(7,t,function(n){return function(a){return function(b){return function(s){return function(d){return function(e){return function(i){return t(n,a,b,s,d,e,i)}}}}}}})}function l(t){return a(8,t,function(n){return function(a){return function(b){return function(s){return function(d){return function(e){return function(i){return function(l){return t(n,a,b,s,d,e,i,l)}}}}}}}})}function o(t){return a(9,t,function(n){return function(a){return function(b){return function(s){return function(d){return function(e){return function(l){return function(o){return function(c){return t(n,a,b,s,d,e,l,o,c)}}}}}}}}})}function $(e,t,a){return 2===e.a?e.f(t,a):e(t)(a)}function h(e,t,a,b){return 3===e.a?e.f(t,a,b):e(t)(a)(b)}function r(e,t,a,b,n){return 4===e.a?e.f(t,a,b,n):e(t)(a)(b)(n)}function g(t,n,a,b,s,d){return 5===t.a?t.f(n,a,b,s,d):t(n)(a)(b)(s)(d)}function u(t,n,a,b,s,d,e){return 6===t.a?t.f(n,a,b,s,d,e):t(n)(a)(b)(s)(d)(e)}function p(t,n,a,b,s,d,e,i){return 7===t.a?t.f(n,a,b,s,d,e,i):t(n)(a)(b)(s)(d)(e)(i)}function m(t,n,a,b,s,d,e,i,l){return 8===t.a?t.f(n,a,b,s,d,e,i,l):t(n)(a)(b)(s)(d)(e)(i)(l)}function c(e,a){return{$:1,a:e,b:a}}function v(e){for(var a=$a,t=e.length;t--;)a=c(e[t],a);return a}function y(e){for(var a=[];e.b;e=e.b)a.push(e.a);return a}function k(e,a){for(var t,b=[],n=j(e,a,0,b);n&&(t=b.pop());n=j(t.a,t.b,0,b));return n}function j(e,a,t,b){if(100<t)return b.push(w(e,a)),!0;if(e===a)return!0;if("object"!=typeof e||null===e||null===a)return"function"==typeof e&&O(5),!1;for(var n in 0>e.$&&(e=wn(e),a=wn(a)),e)if(!j(e[n],a[n],t+1,b))return!1;return!0}function A(e,a,t){if("object"!=typeof e)return e===a?0:e<a?-1:1;if("undefined"==typeof e.$)return(t=A(e.a,a.a))?t:(t=A(e.b,a.b))?t:A(e.c,a.c);for(;e.b&&a.b&&!(t=A(e.a,a.a));e=e.b,a=a.b);return t||(e.b?1:a.b?-1:0)}function w(e,a){return{a:e,b:a}}function E(e,a,t){return{a:e,b:a,c:t}}function C(e){return e}function L(e,a){var t={};for(var b in e)t[b]=e[b];for(var b in a)t[b]=a[b];return t}function T(e,a){if("string"==typeof e)return e+a;if(!e.b)return a;var t=c(e.a,a);e=e.b;for(var b=t;e.b;e=e.b)b=b.b=c(e.a,a);return t}function _(){return"<internals>"}function O(e){throw new Error("https://github.com/elm/core/blob/1.0.0/hints/"+e+".md")}function I(e){return{$:2,b:e}}function N(e,a){return{$:9,f:e,g:a}}function H(e,a){switch(e.$){case 2:return e.b(a);case 5:return null===a?ad(e.c):q("null",a);case 3:return R(a)?B(e.b,a,v):q("a LIST",a);case 4:return R(a)?B(e.b,a,W):q("an ARRAY",a);case 6:var t=e.d;if("object"!=typeof a||null===a||!(t in a))return q("an OBJECT with a field named `"+t+"`",a);var b=H(e.b,a[t]);return pn(b)?b:ed($(bd,t,b.a));case 7:var n=e.e;if(!R(a))return q("an ARRAY",a);if(n>=a.length)return q("a LONGER array. Need index "+n+" but only see "+a.length+" entries",a);var b=H(e.b,a[n]);return pn(b)?b:ed($(nd,n,b.a));case 8:if("object"!=typeof a||null===a||R(a))return q("an OBJECT",a);var d=$a;for(var s in a)if(a.hasOwnProperty(s)){var b=H(e.b,a[s]);if(!pn(b))return ed($(bd,s,b.a));d=c(w(s,b.a),d)}return ad(Dn(d));case 9:for(var b,l=e.f,o=e.g,h=0;h<o.length;h++){if(b=H(o[h],a),!pn(b))return b;l=l(b.a)}return ad(l);case 10:var b=H(e.b,a);return pn(b)?H(e.h(b.a),a):b;case 11:for(var b,r=$a,g=e.g;g.b;g=g.b){if(b=H(g.a,a),pn(b))return b;r=c(b.a,r)}return ed(dd(Dn(r)));case 1:return ed($(td,e.a,K(a)));case 0:return ad(e.a);}}function B(e,a,t){for(var b,n=a.length,d=Array(n),s=0;s<n;s++){if(b=H(e,a[s]),!pn(b))return ed($(nd,s,b.a));d[s]=b.a}return ad(t(d))}function R(e){return Array.isArray(e)||"undefined"!=typeof FileList&&e instanceof FileList}function W(e){return $(Mn,e.length,function(a){return e[a]})}function q(e,a){return ed($(td,"Expecting "+e,K(a)))}function U(e,a){if(e===a)return!0;if(e.$!==a.$)return!1;switch(e.$){case 0:case 1:return e.a===a.a;case 2:return e.b===a.b;case 5:return e.c===a.c;case 3:case 4:case 8:return U(e.b,a.b);case 6:return e.d===a.d&&U(e.b,a.b);case 7:return e.e===a.e&&U(e.b,a.b);case 9:return e.f===a.f&&D(e.g,a.g);case 10:return e.h===a.h&&U(e.b,a.b);case 11:return D(e.g,a.g);}}function D(e,a){var t=e.length;if(t!==a.length)return!1;for(var b=0;b<t;b++)if(!U(e[b],a[b]))return!1;return!0}function K(e){return e}function S(e){return e}function z(e){return{$:0,a:e}}function X(e){return{$:1,a:e}}function Y(e){return{$:2,b:e,c:null}}function G(e){return{$:5,b:e}}function P(e){var a={$:0,e:Jt++,f:e,g:null,h:[]};return J(a),a}function F(e){return Y(function(a){a(z(P(e)))})}function V(e,a){e.h.push(a),J(e)}function J(e){if(Zt.push(e),!Qt){for(Qt=!0;e=Zt.shift();)M(e);Qt=!1}}function M(e){for(;e.f;){var a=e.f.$;if(0===a||1===a){for(;e.g&&e.g.$!==a;)e.g=e.g.i;if(!e.g)return;e.f=e.g.b(e.f.a),e.g=e.g.i}else{if(2===a)return void(e.f.c=e.f.b(function(a){e.f=a,J(e)}));if(5===a){if(0===e.h.length)return;e.f=e.f.b(e.h.shift())}else e.g={$:3===a?0:1,b:e.f.b,i:e.g},e.f=e.f.d}}}function Q(e,a,t,b,n,d){function s(e,a){i=$(b,e,o),c(o=i.a,a),ne(l,i.b,n(o))}var i=$(Xt,e,K(a?a.flags:void 0));pn(i)||O(2);var l={};i=t(i.a);var o=i.a,c=d(s,o),h=Z(l,s);return ne(l,i.b,n(o)),h?{ports:h}:{}}function Z(e,a){var t;for(var b in ab){var n=ab[b];n.a&&(t=t||{},t[b]=n.a(b,a)),e[b]=ae(n,a)}return t}function ee(e,a,t,b,n){return{b:e,c:a,d:t,e:b,f:n}}function ae(e,a){function t(e){return $(Ft,t,G(function(a){var t=a.a;return 0===a.$?h(d,b,t,e):s&&i?r(n,b,t.i,t.j,e):h(n,b,s?t.i:t.j,e)}))}var b={g:a,h:void 0},n=e.c,d=e.d,s=e.e,i=e.f;return b.h=P($(Ft,t,e.b))}function te(e){return function(a){return{$:1,k:e,l:a}}}function be(e){return{$:2,m:e}}function ne(e,a,t){var b={};for(var n in de(!0,a,b,null),de(!1,t,b,null),e)V(e[n],{$:"fx",a:b[n]||{i:$a,j:$a}})}function de(e,a,t,b){switch(a.$){case 1:var n=a.k,d=se(e,n,b,a.l);return void(t[n]=ie(e,d,t[n]));case 2:for(var s=a.m;s.b;s=s.b)de(e,s.a,t,b);return;case 3:return void de(e,a.o,t,{p:a.n,q:b});}}function se(e,a,t,b){var n=e?ab[a].e:ab[a].f;return $(n,function(e){for(var a=t;a;a=a.q)e=a.p(e);return e},b)}function ie(e,a,t){return t=t||{i:$a,j:$a},e?t.i=c(a,t.i):t.j=c(a,t.j),t}function le(e,a){for(var t in a)t in e?"init"==t?O(6):le(e[t],a[t]):e[t]=a[t]}function oe(e,a){e.appendChild(a)}function ce(e){return{$:0,a:e}}function $e(e,a){return{$:5,l:e,m:a,k:void 0}}function he(e){return"script"==e?"p":e}function re(e){return /^(on|formAction$)/i.test(e)?"data-"+e:e}function ge(e){return /^javascript:/i.test(e.replace(/\s/g,""))?"":e}function ue(e){return /^\s*(javascript:|data:text\/html)/i.test(e)?"":e}function fe(e,a){var t=Cd(a);return{$:a.$,a:t?h(wd,3>t?Lb:Tb,Ed(e),a.a):$(Ad,e,a.a)}}function pe(e){for(var a={};e.b;e=e.b){var t=e.a,b=t.$,n=t.n,d=t.o;if("a2"===b){"className"===n?me(a,n,S(d)):a[n]=S(d);continue}var s=a[b]||(a[b]={});"a3"===b&&"class"===n?me(s,n,d):s[n]=d}return a}function me(e,a,t){var b=e[a];e[a]=b?b+" "+t:t}function ve(e,a){var t=e.$;if(5===t)return ve(e.k||(e.k=e.m()),a);if(0===t)return ib.createTextNode(e.a);if(4===t){for(var b=e.k,n=e.j;4===b.$;)"object"==typeof n?n.push(b.j):n=[n,b.j],b=b.k;var d={j:n,p:a},s=ve(b,d);return s.elm_event_node_ref=d,s}if(3===t){var s=e.h(e.g);return ye(s,a,e.d),s}var s=e.f?ib.createElementNS(e.f,e.c):ib.createElement(e.c);oa&&"a"==e.c&&s.addEventListener("click",oa(s)),ye(s,a,e.d);for(var l=e.e,o=0;o<l.length;o++)oe(s,ve(1===t?l[o]:l[o].b,a));return s}function ye(e,a,t){for(var b in t){var n=t[b];"a1"==b?ke(e,n):"a0"==b?Ae(e,a,n):"a3"==b?xe(e,n):"a4"==b?je(e,n):("value"!=b&&"checked"!=b||e[b]!==n)&&(e[b]=n)}}function ke(e,a){var t=e.style;for(var b in a)t[b]=a[b]}function xe(e,a){for(var t in a){var b=a[t];"undefined"==typeof b?e.removeAttribute(t):e.setAttribute(t,b)}}function je(e,a){for(var t in a){var b=a[t],n=b.f,d=b.o;"undefined"==typeof d?e.removeAttributeNS(n,t):e.setAttributeNS(n,t,d)}}function Ae(e,a,t){var b=e.elmFs||(e.elmFs={});for(var n in t){var d=t[n],s=b[n];if(!d){e.removeEventListener(n,s),b[n]=void 0;continue}if(s){var i=s.q;if(i.$===d.$){s.q=d;continue}e.removeEventListener(n,s)}s=we(a,d),e.addEventListener(n,s,ca&&{passive:2>Cd(d)}),b[n]=s}}function we(e,a){function t(a){var b=t.q,n=H(b.a,a);if(pn(n)){for(var d,s,l=Cd(b),o=n.a,c=l?3>l?o.a:o.u:o,$=1==l?o.b:3==l&&o.aj,h=($&&a.stopPropagation(),(2==l?o.b:3==l&&o.ag)&&a.preventDefault(),e);d=h.j;){if("function"==typeof d)c=d(c);else for(var s=d.length;s--;)c=d[s](c);h=h.p}h(c,$)}}return t.q=a,t}function Ee(e,a){return e.$==a.$&&U(e.a,a.a)}function Ce(e,a){var t=[];return Te(e,a,t,0),t}function Le(e,a,t,b){var n={$:a,r:t,s:b,t:void 0,u:void 0};return e.push(n),n}function Te(e,a,t,b){if(e!==a){var n=e.$,d=a.$;if(n!==d)if(1===n&&2===d)a=Ge(a),d=1;else return void Le(t,0,b,a);switch(d){case 5:for(var s=e.l,l=a.l,o=s.length,c=o===l.length;c&&o--;)c=s[o]===l[o];if(c)return void(a.k=e.k);a.k=a.m();var $=[];return Te(e.k,a.k,$,0),void(0<$.length&&Le(t,1,b,$));case 4:for(var h=e.j,r=a.j,g=!1,u=e.k;4===u.$;)g=!0,"object"==typeof h?h.push(u.j):h=[h,u.j],u=u.k;for(var f=a.k;4===f.$;)g=!0,"object"==typeof r?r.push(f.j):r=[r,f.j],f=f.k;return g&&h.length!==r.length?void Le(t,0,b,a):((g?!_e(h,r):h!==r)&&Le(t,2,b,r),void Te(u,f,t,b+1));case 0:return void(e.a!==a.a&&Le(t,3,b,a.a));case 1:return void Oe(e,a,t,b,Ne);case 2:return void Oe(e,a,t,b,He);case 3:if(e.h!==a.h)return void Le(t,0,b,a);var p=Ie(e.d,a.d);p&&Le(t,4,b,p);var m=a.i(e.g,a.g);return void(m&&Le(t,5,b,m));}}}function _e(e,a){for(var t=0;t<e.length;t++)if(e[t]!==a[t])return!1;return!0}function Oe(e,a,t,b,n){if(e.c!==a.c||e.f!==a.f)return void Le(t,0,b,a);var d=Ie(e.d,a.d);d&&Le(t,4,b,d),n(e,a,t,b)}function Ie(e,a,t){var b;for(var n in e){if("a1"==n||"a0"==n||"a3"==n||"a4"==n){var d=Ie(e[n],a[n]||{},n);d&&(b=b||{},b[n]=d);continue}if(!(n in a)){b=b||{},b[n]=t?"a1"===t?"":"a0"===t||"a3"===t?void 0:{f:e[n].f,o:void 0}:"string"==typeof e[n]?"":null;continue}var s=e[n],i=a[n];s===i&&"value"!=n&&"checked"!=n||"a0"===t&&Ee(s,i)||(b=b||{},b[n]=i)}for(var l in a)l in e||(b=b||{},b[l]=a[l]);return b}function Ne(e,a,t,b){var n=e.e,d=a.e,s=n.length,l=d.length;s>l?Le(t,6,b,{v:l,i:s-l}):s<l&&Le(t,7,b,{v:s,e:d});for(var o,c=s<l?s:l,$=0;$<c;$++)o=n[$],Te(o,d[$],t,++b),b+=o.b||0}function He(e,a,t,b){for(var n=[],d={},s=[],i=e.e,l=a.e,o=i.length,c=l.length,$=0,h=0,r=b;$<o&&h<c;){var g=i[$],u=l[h],f=g.a,p=u.a,m=g.b,v=u.b,k=void 0,j=void 0;if(f===p){r++,Te(m,v,n,r),r+=m.b||0,$++,h++;continue}var A=i[$+1],w=l[h+1];if(A){var E=A.a,C=A.b;j=p===E}if(w){var L=w.a,T=w.b;k=f===L}if(k&&j){r++,Te(m,T,n,r),Be(d,n,f,v,h,s),r+=m.b||0,r++,Re(d,n,f,C,r),r+=C.b||0,$+=2,h+=2;continue}if(k){r++,Be(d,n,p,v,h,s),Te(m,T,n,r),r+=m.b||0,$+=1,h+=2;continue}if(j){r++,Re(d,n,f,m,r),r+=m.b||0,r++,Te(C,v,n,r),r+=C.b||0,$+=2,h+=1;continue}if(A&&E===L){r++,Re(d,n,f,m,r),Be(d,n,p,v,h,s),r+=m.b||0,r++,Te(C,T,n,r),r+=C.b||0,$+=2,h+=2;continue}break}for(;$<o;){r++;var g=i[$],m=g.b;Re(d,n,g.a,m,r),r+=m.b||0,$++}for(;h<c;){var _=_||[],u=l[h];Be(d,n,u.a,u.b,void 0,_),h++}(0<n.length||0<s.length||_)&&Le(t,8,b,{w:n,x:s,y:_})}function Be(e,a,t,b,n,d){var s=e[t];if(!s)return s={c:0,z:b,r:n,s:void 0},d.push({r:n,A:s}),void(e[t]=s);if(1===s.c){d.push({r:n,A:s}),s.c=2;var i=[];return Te(s.z,b,i,s.r),s.r=n,void(s.s.s={w:i,A:s})}Be(e,a,t+"_elmW6BL",b,n,d)}function Re(e,a,t,b,n){var d=e[t];if(!d){var s=Le(a,9,n,void 0);return void(e[t]={c:1,z:b,r:n,s:s})}if(0===d.c){d.c=2;var i=[];return Te(b,d.z,i,n),void Le(a,9,n,{w:i,A:d})}Re(e,a,t+"_elmW6BL",b,n)}function We(e,a,t,b){qe(e,a,t,0,0,a.b,b)}function qe(e,a,t,b,n,d,s){for(var l,o=t[b],c=o.r;c===n;){if(l=o.$,1===l)We(e,a.k,o.s,s);else if(8===l){o.t=e,o.u=s;var $=o.s.w;0<$.length&&qe(e,a,$,0,n,d,s)}else if(9===l){o.t=e,o.u=s;var h=o.s;if(h){h.A.s=e;var $=h.w;0<$.length&&qe(e,a,$,0,n,d,s)}}else o.t=e,o.u=s;if(b++,!(o=t[b])||(c=o.r)>d)return b}var r=a.$;if(4===r){for(var g=a.k;4===g.$;)g=g.k;return qe(e,g,t,b,n+1,d,e.elm_event_node_ref)}for(var u=a.e,f=e.childNodes,p=0;p<u.length;p++){n++;var m=1===r?u[p]:u[p].b,v=n+(m.b||0);if(n<=c&&c<=v&&(b=qe(f[p],m,t,b,n,v,s),!(o=t[b])||(c=o.r)>d))return b;n=v}return b}function Ue(e,a,t,b){return 0===t.length?e:(We(e,a,t,b),De(e,t))}function De(e,a){for(var t=0;t<a.length;t++){var b=a[t],n=b.t,d=Ke(n,b);n===e&&(e=d)}return e}function Ke(e,a){switch(a.$){case 0:return Se(e,a.s,a.u);case 4:return ye(e,a.u,a.s),e;case 3:return e.replaceData(0,e.length,a.s),e;case 1:return De(e,a.s);case 2:return e.elm_event_node_ref?e.elm_event_node_ref.j=a.s:e.elm_event_node_ref={j:a.s,p:a.u},e;case 6:for(var t=a.s,b=0;b<t.i;b++)e.removeChild(e.childNodes[t.v]);return e;case 7:for(var t=a.s,n=t.e,b=t.v,d=e.childNodes[b];b<n.length;b++)e.insertBefore(ve(n[b],a.u),d);return e;case 9:var t=a.s;if(!t)return e.parentNode.removeChild(e),e;var s=t.A;return"undefined"!=typeof s.r&&e.parentNode.removeChild(e),s.s=De(e,t.w),e;case 8:return ze(e,a);case 5:return a.s(e);default:O(10);}}function Se(e,a,t){var b=e.parentNode,n=ve(a,t);return n.elm_event_node_ref||(n.elm_event_node_ref=e.elm_event_node_ref),b&&n!==e&&b.replaceChild(n,e),n}function ze(e,a){var t=a.s,b=Xe(t.y,a);e=De(e,t.w);for(var n=t.x,d=0;d<n.length;d++){var s=n[d],l=s.A,o=2===l.c?l.s:ve(l.z,a.u);e.insertBefore(o,e.childNodes[s.r])}return b&&oe(e,b),e}function Xe(e,a){if(e){for(var t=ib.createDocumentFragment(),b=0;b<e.length;b++){var n=e[b],d=n.A;oe(t,2===d.c?d.s:ve(d.z,a.u))}return t}}function Ye(e){if(3===e.nodeType)return ce(e.textContent);if(1!==e.nodeType)return ce("");for(var a=$a,t=e.attributes,b=t.length;b--;){var n=t[b],d=n.name,s=n.value;a=c($(wb,d,s),a)}for(var l=e.tagName.toLowerCase(),o=$a,r=e.childNodes,b=r.length;b--;)o=c(Ye(r[b]),o);return h(cb,l,a,o)}function Ge(e){for(var a=e.e,t=a.length,b=Array(t),n=0;n<t;n++)b[n]=a[n].b;return{$:1,c:e.c,d:e.d,e:b,f:e.f,b:e.b}}function Pe(e,a){for(var t=a.i;t.b;t=t.b)e.setRequestHeader(t.a.a,t.a.b);e.timeout=a.n.a||0,e.responseType=a.t.d,e.withCredentials=a.D}function Fe(e,a){return $(200<=a.status&&300>a.status?vs:ps,Ve(a),e(a.response))}function Ve(e){return{y:e.responseURL,a7:e.status,bL:e.statusText,i:Je(e.getAllResponseHeaders())}}function Je(e){if(!e)return Qd;for(var a=Qd,t=e.split("\r\n"),b=t.length;b--;){var n=t[b],d=n.indexOf(": ");if(0<d){var s=n.substring(0,d),l=n.substring(d+2);a=h(rs,s,function(e){return Qn(gs(e)?l+", "+e.a:l)},a)}}return a}function Me(e,a,t){a.upload.addEventListener("progress",function(b){a.c||P($(fs,e,w(t,xs({bK:b.loaded,ah:b.total}))))}),a.addEventListener("progress",function(b){a.c||P($(fs,e,w(t,ks({bG:b.loaded,ah:b.lengthComputable?Qn(b.total):Zn}))))})}function Qe(){return _b||(_b=document.createElement("a"))}function Ze(e){if("function"==typeof MouseEvent)e.dispatchEvent(new MouseEvent("click"));else{var a=document.createEvent("MouseEvents");a.initMouseEvent("click",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),document.body.appendChild(e),e.dispatchEvent(a),document.body.removeChild(e)}}function ea(e){return Y(function(a){Ob=document.createElement("input"),Ob.type="file",Ob.accept=$(pd,",",e),Ob.addEventListener("change",function(e){a(z(e.target.files[0]))}),Ze(Ob)})}function aa(e,a){function t(){b=1===b?0:(bn(t),a(e),1)}a(e);var b=0;return function(n,d){e=n,d?(a(e),2==b&&(b=1)):(0==b&&bn(t),b=2)}}function ta(e,a){return Y(function(t){bn(function(){var b=document.getElementById(e);t(b?z(a(b)):X(E$(e)))})})}function ba(e){return Y(function(a){bn(function(){a(z(e()))})})}function na(){return Li(function(){return $(vi,Ai,$(pi,nl,$(ki,Zi,$(vi,ui(xi),Ui))))})}function da(){return Li(function(){return bl(v([al,zi,na()]))})}var la,oa,ca,$a={$:0},ha=t(c),ra=b(function(e,a,t){for(var b=[];a.b&&t.b;a=a.b,t=t.b)b.push($(e,a.a,t.a));return v(b)}),ga=n(function(e,a,t,b){for(var n=[];a.b&&t.b&&b.b;a=a.b,t=t.b,b=b.b)n.push(h(e,a.a,t.a,b.a));return v(n)}),ua=d(function(e,a,t,b,n){for(var d=[];a.b&&t.b&&b.b&&n.b;a=a.b,t=t.b,b=b.b,n=n.b)d.push(r(e,a.a,t.a,b.a,n.a));return v(d)}),fa=s(function(e,a,t,b,n,d){for(var s=[];a.b&&t.b&&b.b&&n.b&&d.b;a=a.b,t=t.b,b=b.b,n=n.b,d=d.b)s.push(g(e,a.a,t.a,b.a,n.a,d.a));return v(s)}),pa=t(function(e,a){return v(y(a).sort(function(t,a){return A(e(t),e(a))}))}),ma=t(function(e,a){return v(y(a).sort(function(t,a){var b=$(e,t,a);return b===yn?0:b===xn?-1:1}))}),va=t(k),ya=t(function(e,a){return!k(e,a)}),ka=t(function(e,a){return 0>A(e,a)}),xa=t(function(e,a){return 1>A(e,a)}),ja=t(function(e,a){return 0<A(e,a)}),Aa=t(function(e,a){return 0<=A(e,a)}),wa=t(function(e,a){var t=A(e,a);return 0>t?xn:t?kn:yn}),Ea=0,Ca=t(T),La=b(function(e,a,t){for(var b=Array(e),n=0;n<e;n++)b[n]=t(a+n);return b}),Ta=t(function(e,a){for(var t=Array(e),b=0;b<e&&a.b;b++)t[b]=a.a,a=a.b;return t.length=b,w(t,a)}),_a=t(function(e,a){return a[e]}),Oa=b(function(e,a,t){for(var b=t.length,n=Array(b),d=0;d<b;d++)n[d]=t[d];return n[e]=a,n}),Ia=t(function(e,a){for(var t=a.length,b=Array(t+1),n=0;n<t;n++)b[n]=a[n];return b[t]=e,b}),Na=b(function(e,a,t){for(var b=t.length,n=0;n<b;n++)a=$(e,t[n],a);return a}),Ha=b(function(e,a,t){for(var b=t.length-1;0<=b;b--)a=$(e,t[b],a);return a}),Ba=t(function(e,a){for(var t=a.length,b=Array(t),n=0;n<t;n++)b[n]=e(a[n]);return b}),Ra=b(function(e,a,t){for(var b=t.length,n=Array(b),d=0;d<b;d++)n[d]=$(e,a+d,t[d]);return n}),Wa=b(function(e,a,t){return t.slice(e,a)}),qa=b(function(e,a,t){var b=a.length,n=e-b;n>t.length&&(n=t.length);for(var d=b+n,s=Array(d),l=0;l<b;l++)s[l]=a[l];for(var l=0;l<n;l++)s[l+b]=t[l];return s}),Ua=t(function(e,a){return a}),Da=t(function(e,a){return console.log(e+": "+_(a)),a}),Ka=t(function(e,a){return e+a}),Sa=t(function(e,a){return e-a}),za=t(function(e,a){return e*a}),Xa=t(function(e,a){return e/a}),Ya=t(function(e,a){return 0|e/a}),Ga=t(Math.pow),Pa=t(function(e,t){return t%e}),Fa=t(function(e,a){var t=a%e;return 0===e?O(11):0<t&&0>e||0>t&&0<e?t+e:t}),Va=Math.PI,Ja=Math.E,Ma=Math.cos,Qa=Math.sin,Za=Math.tan,et=Math.acos,at=Math.asin,tt=Math.atan,bt=t(Math.atan2),nt=Math.ceil,dt=Math.round,st=Math.sqrt,it=Math.log,lt=isNaN,ot=t(function(e,a){return e&&a}),ct=t(function(e,a){return e||a}),$t=t(function(e,a){return e!==a}),ht=t(function(e,a){return e+a}),rt=t(function(e,a){return e+a}),gt=t(function(e,a){for(var t=a.length,b=Array(t),n=0;n<t;){var d=a.charCodeAt(n);if(55296<=d&&56319>=d){b[n]=e(C(a[n]+a[n+1])),n+=2;continue}b[n]=e(C(a[n])),n++}return b.join("")}),ut=t(function(e,a){for(var t=[],b=a.length,n=0;n<b;){var d=a[n],s=a.charCodeAt(n);n++,55296<=s&&56319>=s&&(d+=a[n],n++),e(C(d))&&t.push(d)}return t.join("")}),ft=b(function(e,a,t){for(var b=t.length,n=0;n<b;){var d=t[n],s=t.charCodeAt(n);n++,55296<=s&&56319>=s&&(d+=t[n],n++),a=$(e,C(d),a)}return a}),pt=b(function(e,a,t){for(var b=t.length;b--;){var n=t[b],d=t.charCodeAt(b);56320<=d&&57343>=d&&(b--,n=t[b]+n),a=$(e,C(n),a)}return a}),mt=t(function(e,a){return a.split(e)}),vt=t(function(e,a){return a.join(e)}),yt=b(function(e,a,t){return t.slice(e,a)}),kt=t(function(e,a){for(var t=a.length;t--;){var b=a[t],n=a.charCodeAt(t);if(56320<=n&&57343>=n&&(t--,b=a[t]+b),e(C(b)))return!0}return!1}),xt=t(function(e,a){for(var t=a.length;t--;){var b=a[t],n=a.charCodeAt(t);if(56320<=n&&57343>=n&&(t--,b=a[t]+b),!e(C(b)))return!1}return!0}),jt=t(function(e,a){return-1<a.indexOf(e)}),At=t(function(e,a){return 0===a.indexOf(e)}),wt=t(function(e,a){return a.length>=e.length&&a.lastIndexOf(e)===a.length-e.length}),Et=t(function(e,a){var t=e.length;if(1>t)return $a;for(var b=0,n=[];-1<(b=a.indexOf(e,b));)n.push(b),b+=t;return v(n)}),Ct=I(function(e){return"number"==typeof e?-2147483647<e&&2147483647>e&&(0|e)===e?ad(e):isFinite(e)&&!(e%1)?ad(e):q("an INT",e):q("an INT",e)}),Lt=I(function(e){return"boolean"==typeof e?ad(e):q("a BOOL",e)}),Tt=I(function(e){return"number"==typeof e?ad(e):q("a FLOAT",e)}),_t=I(function(e){return ad(K(e))}),Ot=I(function(e){return"string"==typeof e?ad(e):e instanceof String?ad(e+""):q("a STRING",e)}),It=t(function(e,a){return{$:6,d:e,b:a}}),Nt=t(function(e,a){return{$:7,e:e,b:a}}),Ht=t(function(e,a){return{$:10,b:a,h:e}}),Bt=t(function(e,a){return N(e,[a])}),Rt=b(function(e,a,t){return N(e,[a,t])}),Wt=n(function(e,a,t,b){return N(e,[a,t,b])}),qt=d(function(e,a,t,b,n){return N(e,[a,t,b,n])}),Ut=s(function(e,a,t,b,n,d){return N(e,[a,t,b,n,d])}),Dt=i(function(e,a,t,b,n,d,s){return N(e,[a,t,b,n,d,s])}),Kt=l(function(e,a,t,b,n,d,s,i){return N(e,[a,t,b,n,d,s,i])}),St=o(function(e,a,t,b,n,d,s,i,l){return N(e,[a,t,b,n,d,s,i,l])}),zt=t(function(e,a){try{var t=JSON.parse(a);return H(e,t)}catch(t){return ed($(td,"This is not valid JSON! "+t.message,K(a)))}}),Xt=t(function(e,a){return H(e,S(a))}),Yt=t(function(e,a){return JSON.stringify(S(a),null,e)+""}),Gt=b(function(e,a,t){return t[e]=S(a),t}),Pt=K(null),Ft=t(function(e,a){return{$:3,b:e,d:a}}),Vt=t(function(e,a){return{$:4,b:e,d:a}}),Jt=0,Mt=t(function(e,a){return Y(function(t){V(e,a),t(z(Ea))})}),Qt=!1,Zt=[],eb=n(function(e,a,t,b){return Q(a,b,e.bz,e.bW,e.bT,function(){return function(){}})}),ab={},tb=t(function(e,a){return Y(function(t){e.g(a),t(z(Ea))})}),bb=t(function(e,a){return $(Mt,e.h,{$:0,a:a})}),nb=t(function(e,a){return{$:3,n:e,o:a}}),db=t(function(e,a){return a}),sb=t(function(e,a){return function(t){return e(a(t))}}),ib="undefined"==typeof document?{}:document,lb=n(function(e,a,t,b){var n=b.node;return n.parentNode.replaceChild(ve(e,function(){}),n),{}}),ob=t(function(e,a){return t(function(t,b){for(var n,d=[],s=0;b.b;b=b.b)n=b.a,s+=n.b||0,d.push(n);return s+=d.length,{$:1,c:a,d:pe(t),e:d,f:e,b:s}})}),cb=ob(void 0),$b=t(function(e,a){return t(function(t,b){for(var n,d=[],s=0;b.b;b=b.b)n=b.a,s+=n.b.b||0,d.push(n);return s+=d.length,{$:2,c:a,d:pe(t),e:d,f:e,b:s}})}),hb=$b(void 0),rb=t(function(e,a){return{$:4,j:e,k:a,b:1+(a.b||0)}}),gb=t(function(e,t){return $e([e,t],function(){return e(t)})}),ub=b(function(e,t,a){return $e([e,t,a],function(){return $(e,t,a)})}),fb=n(function(e,t,a,b){return $e([e,t,a,b],function(){return h(e,t,a,b)})}),pb=d(function(e,t,a,b,n){return $e([e,t,a,b,n],function(){return r(e,t,a,b,n)})}),mb=s(function(t,n,a,b,s,d){return $e([t,n,a,b,s,d],function(){return g(t,n,a,b,s,d)})}),vb=i(function(t,n,a,b,s,d,e){return $e([t,n,a,b,s,d,e],function(){return u(t,n,a,b,s,d,e)})}),yb=l(function(t,n,a,b,s,d,e,i){return $e([t,n,a,b,s,d,e,i],function(){return p(t,n,a,b,s,d,e,i)})}),kb=o(function(t,n,a,b,s,d,e,i,l){return $e([t,n,a,b,s,d,e,i,l],function(){return m(t,n,a,b,s,d,e,i,l)})}),xb=t(function(e,a){return{$:"a0",n:e,o:a}}),jb=t(function(e,a){return{$:"a1",n:e,o:a}}),Ab=t(function(e,a){return{$:"a2",n:e,o:a}}),wb=t(function(e,a){return{$:"a3",n:e,o:a}}),Eb=b(function(e,a,t){return{$:"a4",n:a,o:{f:e,o:t}}}),Cb=t(function(e,a){return"a0"===a.$?$(xb,a.n,fe(e,a.o)):a}),Lb=t(function(e,a){return w(e(a.a),a.b)}),Tb=t(function(e,a){return{u:e(a.u),aj:a.aj,ag:a.ag}});try{window.addEventListener("t",null,Object.defineProperty({},"passive",{get:function(){ca=!0}}))}catch(a){}var _b,Ob,Ib,Nb,Hb=/.^/,Bb=t(function(e,a){var t="g";e.aP&&(t+="m"),e.am&&(t+="i");try{return Qn(new RegExp(a,t))}catch(e){return Zn}}),Rb=t(function(e,a){return null!==a.match(e)}),Wb=b(function(e,a,t){for(var b,n=[],d=0,s=a.lastIndex,l=-1;d++<e&&(b=a.exec(t))&&l!=a.lastIndex;){for(var o,c=b.length-1,$=Array(c);0<c;)o=b[c],$[--c]=o?Qn(o):Zn;n.push(r(Hd,b[0],b.index,d,v($))),l=a.lastIndex}return a.lastIndex=s,v(n)}),qb=n(function(e,a,t,b){function n(a){if(d++>=e)return a;for(var b=arguments.length-3,n=Array(b);0<b;){var s=arguments[b];n[--b]=s?Qn(s):Zn}return t(r(Hd,a,arguments[arguments.length-2],d,v(n)))}var d=0;return b.replace(a,n)}),Ub=b(function(e,a,t){for(var b,d=t,s=[],i=a.lastIndex,l=a.lastIndex;e--&&(b=a.exec(d),!!b);)s.push(d.slice(i,b.index)),i=a.lastIndex;return s.push(d.slice(i)),a.lastIndex=l,v(s)}),Db=b(function(e,a,t){return Y(function(b){function n(e){b(a(t.t.a(e)))}var d=new XMLHttpRequest;d.addEventListener("error",function(){n(ys)}),d.addEventListener("timeout",function(){n(js)}),d.addEventListener("load",function(){n(Fe(t.t.b,d))}),gs(t.o)&&Me(e,d,t.o.a);try{d.open(t.m,t.y,!0)}catch(a){return n(ms(t.y))}return Pe(d,t),t.bj.a&&d.setRequestHeader("Content-Type",t.bj.a),d.send(t.bj.b),function(){d.c=!0,d.abort()}})}),Kb=b(function(e,a,t){return{$:0,d:e,b:a,a:t}}),Sb=t(function(e,a){return{$:0,d:a.d,b:a.b,a:function(t){return e(a.a(t))}}}),zb=t(function(e,a){return{$:0,a:e,b:a}}),Xb=t(function(e,a){return new Blob([a],{type:e})}),Yb=I(function(e){return"undefined"!=typeof File&&e instanceof File?ad(e):q("a FILE",e)}),Gb=b(function(e,a,t){return Y(function(){var b=new Blob([t],{type:a});if(navigator.msSaveOrOpenBlob)return void navigator.msSaveOrOpenBlob(b,e);var n=Qe(),d=URL.createObjectURL(b);n.href=d,n.download=e,Ze(n),URL.revokeObjectURL(d)})}),Pb=d(function(e,a,t,b,n){for(var d,s=e.length,l=a+s<=n.length,o=0;l&&o<s;)d=n.charCodeAt(a),l=e[o++]===n[a++]&&(10===d?(t++,b=1):(b++,55296==(63488&d)?e[o++]===n[a++]:1));return E(l?a:-1,t,b)}),Fb=b(function(e,a,t){return t.length<=a?-1:55296==(63488&t.charCodeAt(a))?e(C(t.substr(a,2)))?a+2:-1:e(C(t[a]))?"\n"===t[a]?-2:a+1:-1}),Vb=b(function(e,a,t){return t.charCodeAt(a)===e}),Jb=t(function(e,a){for(;e<a.length;e++){var t=a.charCodeAt(e);if(48>t||57<t)return e}return e}),Mb=b(function(e,a,t){for(var b,n=0;a<t.length&&(b=t.charCodeAt(a)-48,!(0>b||e<=b));a++)n=e*n+b;return w(a,n)}),Qb=t(function(e,a){for(var t,b=0;e<a.length;e++)if(t=a.charCodeAt(e),48<=t&&57>=t)b=16*b+t-48;else if(65<=t&&70>=t)b=16*b+t-55;else if(97<=t&&102>=t)b=16*b+t-87;else break;return w(e,b)}),Zb=d(function(e,a,t,b,n){for(var d=n.indexOf(e,a),s=0>d?n.length:d+e.length;a<s;){var i=n.charCodeAt(a++);10===i?(b=1,t++):(b++,55296==(63488&i)&&a++)}return E(d,t,b)}),en=Ib||n(function(e,a,t,b){return Q(a,b,e.bz,e.bW,e.bT,function(a,t){var n=e.bY,d=b.node,s=Ye(d);return aa(t,function(e){var t=n(e),b=Ce(s,t);d=Ue(d,s,b,a),s=t})})}),an=Nb||n(function(e,a,t,b){return Q(a,b,e.bz,e.bW,e.bT,function(a,t){var b=e.Q&&e.Q(a),n=e.bY,d=ib.title,s=ib.body,i=Ye(s);return aa(t,function(e){oa=b;var t=n(e),l=cb("body")($a)(t.bj),o=Ce(i,l);s=Ue(s,i,o,a),i=l,oa=0,d!==t.bV&&(ib.title=d=t.bV)})})}),tn="undefined"==typeof cancelAnimationFrame?function(e){clearTimeout(e)}:cancelAnimationFrame,bn="undefined"==typeof requestAnimationFrame?function(e){return setTimeout(e,1e3/60)}:requestAnimationFrame,nn=t(function(e,a){return $(Tl,Bl,Y(function(){a&&history.go(a),e()}))}),dn=t(function(e,a){return $(Tl,Bl,Y(function(){history.pushState({},"",a),e()}))}),sn=t(function(e,a){return $(Tl,Bl,Y(function(){history.replaceState({},"",a),e()}))}),ln={addEventListener:function(){},removeEventListener:function(){}},on="undefined"==typeof document?ln:document,cn="undefined"==typeof window?ln:window,$n=b(function(e,a,t){return F(Y(function(){function b(e){P(t(e))}return e.addEventListener(a,b,ca&&{passive:!0}),function(){e.removeEventListener(a,b)}}))}),hn=t(function(e,a){var t=H(e,a);return pn(t)?Qn(t.a):Zn}),rn=t(function(e,a){return ta(a,function(a){return a[e](),Ea})}),gn=t(function(e,a){return ba(function(){return cn.scroll(e,a),Ea})}),un=b(function(e,a,t){return ta(e,function(e){return e.scrollLeft=a,e.scrollTop=t,Ea})}),fn=function(e){return e},pn=function(e){return!e.$},mn=32,vn=n(function(e,a,t,b){return{$:0,a:e,b:a,c:t,d:b}}),yn=1,kn=2,xn=0,jn=b(function(e,a,b){foldr:for(;;){if(-2===b.$)return a;var n=b.b,d=b.c,s=b.d,i=b.e,l=e,o=h(e,n,d,h(jn,e,a,i));e=l,a=o,b=s;continue foldr}}),An=ha,wn=function(e){return h(jn,b(function(e,a,t){return $(An,w(e,a),t)}),$a,e)},En=function(e){return h(jn,b(function(e,a,t){return $(An,e,t)}),$a,e)},Cn=function(e){return En(e)},Ln=Ha,Tn=b(function(e,a,b){var n=b.c,d=b.d,s=t(function(a,t){if(!a.$){var b=a.a;return h(Ln,s,t,b)}var n=a.a;return h(Ln,e,t,n)});return h(Ln,s,h(Ln,e,a,d),n)}),_n=function(e){return h(Tn,An,$a,e)},On=nt,In=t(function(e,a){return it(a)/it(e)}),Nn=On($(In,2,mn)),Hn=[],Bn=r(vn,0,Nn,Hn,Hn),Rn=function(e){return{$:1,a:e}},Wn=function(e){return{$:0,a:e}},qn=Ta,Un=b(function(e,a,t){foldl:for(;;){if(!t.b)return a;var b=t.a,n=t.b,d=e,s=$(e,b,a);e=d,a=s,t=n;continue foldl}}),Dn=function(e){return h(Un,An,$a,e)},Kn=t(function(e,a){compressNodes:for(;;){var t=$(qn,mn,e),b=t.a,n=t.b,d=$(An,Wn(b),a);if(!n.b)return Dn(d);e=n,a=d;continue compressNodes}}),Sn=t(function(e,a){return a(e)}),zn=function(e){var a=e.a;return a},Xn=t(function(e,a){treeFromBuilder:for(;;){var t=On(a/mn);if(1===t)return $(qn,mn,e).a;var b=$(Kn,e,$a);e=b,a=t;continue treeFromBuilder}}),Yn=t(function(e,a){return e(a)}),Gn=t(function(e,a){return 0<A(e,a)?e:a}),Pn=function(e){return e.length},Fn=t(function(e,a){if(!a.e)return r(vn,Pn(a.g),Nn,Hn,a.g);var t=a.e*mn,b=sa($(In,mn,t-1)),n=e?Dn(a.h):a.h,d=$(Xn,n,a.e);return r(vn,Pn(a.g)+t,$(Gn,5,b*Nn),d,a.g)}),Vn=La,Jn=d(function(e,a,t,b,n){initializeHelp:for(;;){if(0>a)return $(Fn,!1,{h:b,e:0|t/mn,g:n});var d=Rn(h(Vn,mn,a,e)),s=e,i=a-mn,l=t,o=$(An,d,b),c=n;e=s,a=i,t=l,b=o,n=c;continue initializeHelp}}),Mn=t(function(e,a){if(0>=e)return Bn;var t=e%mn,b=h(Vn,t,e-t,a);return g(Jn,a,e-t-mn,e,$a,b)}),Qn=function(e){return{$:0,a:e}},Zn={$:1},ed=function(e){return{$:1,a:e}},ad=function(e){return{$:0,a:e}},td=t(function(e,a){return{$:3,a:e,b:a}}),bd=t(function(e,a){return{$:0,a:e,b:a}}),nd=t(function(e,a){return{$:1,a:e,b:a}}),dd=function(e){return{$:2,a:e}},sd=function(e){var a=e.charCodeAt(0);return 55296<=a&&56319>=a?1024*(a-55296)+e.charCodeAt(1)-56320+65536:a},id=function(e){var a=sd(e);return 97<=a&&122>=a},ld=function(e){var a=sd(e);return 90>=a&&65<=a},od=function(e){return id(e)||ld(e)},cd=function(e){var a=sd(e);return 57>=a&&48<=a},$d=function(e){return id(e)||ld(e)||cd(e)},hd=function(e){return h(Un,t(function(e,a){return a+1}),0,e)},rd=b(function(e,a,t){rangeHelp:for(;;)if(1>A(e,a)){var b=e,n=a-1,d=$(An,a,t);e=b,a=n,t=d;continue rangeHelp}else return t}),gd=t(function(e,a){return h(rd,e,a,$a)}),ud=t(function(e,a){return h(ra,e,$(gd,0,hd(a)-1),a)}),fd=function(e){return e+""},pd=t(function(e,a){return $(vt,e,y(a))}),md=function(e){var a=e.charCodeAt(0);return a?Qn(55296<=a&&56319>=a?w(C(e[0]+e[1]),e.slice(2)):w(C(e[0]),e.slice(1))):Zn},vd=t(function(e,a){return v($(mt,e,a))}),yd=function(e){return $(pd,"\n ",$(vd,"\n",e))},kd=t(function(e,a){return"\n\n("+(fd(e+1)+(") "+yd(xd(a))))}),xd=function(e){return $(jd,e,$a)},jd=t(function(e,a){errorToStringHelp:for(;;)switch(e.$){case 0:var t=e.a,b=e.b,n=function(){var e=md(t);if(1===e.$)return!1;var a=e.a,b=a.a,n=a.b;return od(b)&&$(xt,$d,n)}(),d=n?"."+t:"['"+(t+"']"),s=b,l=$(An,d,a);e=s,a=l;continue errorToStringHelp;case 1:var o=e.a,b=e.b,i="["+(fd(o)+"]"),s=b,l=$(An,i,a);e=s,a=l;continue errorToStringHelp;case 2:var c=e.a;if(!c.b)return"Ran into a Json.Decode.oneOf with no possibilities"+function(){return a.b?" at json"+$(pd,"",Dn(a)):"!"}();if(!c.b.b){var b=c.a,s=b,l=a;e=s,a=l;continue errorToStringHelp}else{var h=function(){return a.b?"The Json.Decode.oneOf at json"+$(pd,"",Dn(a)):"Json.Decode.oneOf"}(),r=h+(" failed in the following "+(fd(hd(c))+" ways:"));return $(pd,"\n\n",$(An,r,$(ud,kd,c)))}default:var g=e.a,u=e.b,r=function(){return a.b?"Problem with the value at json"+($(pd,"",Dn(a))+":\n\n "):"Problem with the given value:\n\n"}();return r+(yd($(Yt,4,u))+("\n\n"+g));}}),Ad=Bt,wd=Rt,Ed=function(e){return{$:0,a:e}},Cd=function(e){switch(e.$){case 0:return 0;case 1:return 1;case 2:return 2;default:return 3;}},Ld=cb("img"),Td=t(function(e,a){return $(Ab,e,K(a))}),_d=function(e){return $(Td,"src",ue(e))},Od={at:$(Ld,v([_d("assets/download.svg")]),$a),av:$(Ld,v([_d("assets/error.svg")]),$a),aA:$(Ld,v([_d("assets/github.svg")]),$a),aM:$(Ld,v([_d("assets/logo.svg")]),$a),aO:$(Ld,v([_d("assets/moon.svg")]),$a),ba:$(Ld,v([_d("assets/sun.svg")]),$a),bd:$(Ld,v([_d("assets/upload.svg")]),$a)},Id=function(e){return{$:1,a:e}},Nd=t(function(e,a){if(!a.$){var t=a.a;return t}return e}),Hd=n(function(e,a,t,b){return{by:a,bB:e,bC:t,a8:b}}),Bd=function(e){return $(Bb,{am:!1,aP:!1},e)},Rd=Hb,Wd={ab:!1,bq:w(0,0),ac:"example.svg",W:Od,X:"",aI:!0,ad:Id(0),bX:$(Nd,Rd,Bd("!|#|\\$|%|&|'|\\(|\\)|\\*|\\+|,|\\/|:|;|=|\\?|@|\\[|\\]"))},qd=function(e){return{$:1,a:e}},Ud=function(e){return{$:6,a:e}},Dd=function(e){return{$:5,a:e}},Kd=function(e){return{$:0,a:e}},Sd=function(e){return{$:3,a:e}},zd=function(e){return{$:4,a:e}},Xd=function(e){return{$:2,a:e}},Yd=function(e){return{$:1,a:e}},Gd=function(e){return{$:0,a:e}},Pd=be,Fd=t(function(t,b){if(!b.$){var n=b.a;return ad(t(n))}var a=b.a;return ed(a)}),Vd=t(function(e,t){if(!t.$){var b=t.a;return b}return e}),Jd=b(function(e,a,t){return a(e(t))}),Md={$:-2},Qd=Md,Zd=wa,es=t(function(e,a){get:for(;;){if(-2===a.$)return Zn;var t=a.b,b=a.c,n=a.d,d=a.e,s=$(Zd,e,t);switch(s){case 0:var i=e,l=n;e=i,a=l;continue get;case 1:return Qn(b);default:var i=e,l=d;e=i,a=l;continue get;}}}),as=d(function(t,a,b,n,d){return{$:-1,a:t,b:a,c:b,d:n,e:d}}),ts=d(function(e,a,t,b,n){if(-1===n.$&&!n.a){var d=n.a,s=n.b,i=n.c,l=n.d,o=n.e;if(-1===b.$&&!b.a){var c=b.a,$=b.b,h=b.c,r=b.d,u=b.e;return g(as,0,a,t,g(as,1,$,h,r,u),g(as,1,s,i,l,o))}return g(as,e,s,i,g(as,0,a,t,b,l),o)}if(-1===b.$&&!b.a&&-1===b.d.$&&!b.d.a){var f=b.a,$=b.b,h=b.c,p=b.d,m=p.a,v=p.b,y=p.c,k=p.d,x=p.e,u=b.e;return g(as,0,$,h,g(as,1,v,y,k,x),g(as,1,a,t,u,n))}return g(as,e,a,t,b,n)}),bs=b(function(e,a,t){if(-2===t.$)return g(as,0,e,a,Md,Md);var b=t.a,n=t.b,d=t.c,s=t.d,i=t.e,l=$(Zd,e,n);return 0===l?g(ts,b,n,d,h(bs,e,a,s),i):1===l?g(as,b,n,a,s,i):g(ts,b,n,d,s,h(bs,e,a,i))}),ns=b(function(e,a,t){var b=h(bs,e,a,t);if(-1===b.$&&!b.a){var n=b.a,d=b.b,s=b.c,i=b.d,l=b.e;return g(as,1,d,s,i,l)}return b}),ds=function(e){getMin:for(;;)if(-1===e.$&&-1===e.d.$){var a=e.d;e=a;continue getMin}else return e},ss=function(e){if(-1===e.$&&-1===e.d.$&&-1===e.e.$){if(-1===e.e.d.$&&!e.e.d.a){var a=e.a,t=e.b,b=e.c,n=e.d,d=n.a,s=n.b,i=n.c,l=n.d,o=n.e,c=e.e,$=c.a,h=c.b,r=c.c,u=c.d,f=u.a,p=u.b,m=u.c,y=u.d,x=u.e,j=c.e;return g(as,0,p,m,g(as,1,t,b,g(as,0,s,i,l,o),y),g(as,1,h,r,x,j))}var a=e.a,t=e.b,b=e.c,A=e.d,d=A.a,s=A.b,i=A.c,l=A.d,o=A.e,w=e.e,$=w.a,h=w.b,r=w.c,u=w.d,j=w.e;return 1===a?g(as,1,t,b,g(as,0,s,i,l,o),g(as,0,h,r,u,j)):g(as,1,t,b,g(as,0,s,i,l,o),g(as,0,h,r,u,j))}return e},is=function(e){if(-1===e.$&&-1===e.d.$&&-1===e.e.$){if(-1===e.d.d.$&&!e.d.d.a){var a=e.a,t=e.b,b=e.c,n=e.d,d=n.a,s=n.b,i=n.c,l=n.d,o=l.a,c=l.b,$=l.c,h=l.d,r=l.e,u=n.e,f=e.e,p=f.a,m=f.b,y=f.c,x=f.d,j=f.e;return g(as,0,s,i,g(as,1,c,$,h,r),g(as,1,t,b,u,g(as,0,m,y,x,j)))}var a=e.a,t=e.b,b=e.c,A=e.d,d=A.a,s=A.b,i=A.c,w=A.d,u=A.e,E=e.e,p=E.a,m=E.b,y=E.c,x=E.d,j=E.e;return 1===a?g(as,1,t,b,g(as,0,s,i,w,u),g(as,0,m,y,x,j)):g(as,1,t,b,g(as,0,s,i,w,u),g(as,0,m,y,x,j))}return e},ls=i(function(e,a,t,b,n,d,s){if(-1===d.$&&!d.a){var i=d.a,l=d.b,o=d.c,c=d.d,$=d.e;return g(as,t,l,o,c,g(as,0,b,n,$,s))}_n2$2:for(;;)if(-1!==s.$||1!==s.a)break _n2$2;else if(-1===s.d.$){if(1===s.d.a){var h=s.a,r=s.d,u=r.a;return is(a)}break _n2$2}else{var f=s.a,p=s.d;return is(a)}return a}),os=function(e){if(-1===e.$&&-1===e.d.$){var a=e.a,t=e.b,b=e.c,n=e.d,d=n.a,s=n.d,i=e.e;if(1===d){if(-1===s.$&&!s.a){s.a;return g(as,a,t,b,os(n),i)}var l=ss(e);if(-1===l.$){var o=l.a,c=l.b,$=l.c,h=l.d,r=l.e;return g(ts,o,c,$,os(h),r)}return Md}return g(as,a,t,b,os(n),i)}return Md},cs=t(function(e,a){if(-2===a.$)return Md;var t=a.a,b=a.b,n=a.c,d=a.d,s=a.e;if(0>A(e,b)){if(-1===d.$&&1===d.a){var i=d.a,l=d.d;if(-1===l.$&&!l.a){l.a;return g(as,t,b,n,$(cs,e,d),s)}var o=ss(a);if(-1===o.$){var c=o.a,h=o.b,r=o.c,u=o.d,f=o.e;return g(ts,c,h,r,$(cs,e,u),f)}return Md}return g(as,t,b,n,$(cs,e,d),s)}return $($s,e,p(ls,e,a,t,b,n,d,s))}),$s=t(function(e,a){if(-1===a.$){var t=a.a,b=a.b,n=a.c,d=a.d,s=a.e;if(k(e,b)){var i=ds(s);if(-1===i.$){var l=i.b,o=i.c;return g(ts,t,l,o,d,os(s))}return Md}return g(ts,t,b,n,d,$(cs,e,s))}return Md}),hs=t(function(e,a){var t=$(cs,e,a);if(-1===t.$&&!t.a){var b=t.a,n=t.b,d=t.c,s=t.d,i=t.e;return g(as,1,n,d,s,i)}return t}),rs=b(function(e,a,t){var b=a($(es,e,t));if(!b.$){var n=b.a;return h(ns,e,n,t)}return $(hs,e,t)}),gs=function(e){return!e.$},us=tb,fs=bb,ps=t(function(e,a){return{$:3,a:e,b:a}}),ms=function(e){return{$:0,a:e}},vs=t(function(e,a){return{$:4,a:e,b:a}}),ys={$:2},ks=function(e){return{$:1,a:e}},xs=function(e){return{$:0,a:e}},js={$:1},As=t(function(e,a){return h(Kb,"",fn,$(Jd,a,e))}),ws=t(function(a,t){if(!t.$){var b=t.a;return ad(b)}var n=t.a;return ed(a(n))}),Es=function(e){return{$:4,a:e}},Cs=function(e){return{$:3,a:e}},Ls=function(e){return{$:0,a:e}},Ts={$:2},_s={$:1},Os=t(function(e,a){switch(a.$){case 0:var t=a.a;return ed(Ls(t));case 1:return ed(_s);case 2:return ed(Ts);case 3:var b=a.a;return ed(Cs(b.a7));default:var n=a.b;return $(ws,Es,e(n));}}),Is=function(e){return $(As,e,Os(ad))},Ns={$:0},Hs=function(e){return{$:1,a:e}},Bs=z,Rs=t(function(e,a){return{a_:e,a9:a}}),Ws=Bs($(Rs,Qd,$a)),qs=Ft,Us=function(e){return Y(function(a){var t=e.f;2===t.$&&t.c&&t.c(),e.f=null,a(z(0))})},Ds=b(function(e,a,t){updateReqs:for(;;){if(!a.b)return Bs(t);var b=a.a,n=a.b;if(!b.$){var d=b.a,s=$(es,d,t);if(1===s.$){var i=e,l=t;e=i,a=n,t=l;continue updateReqs}else{var o=s.a;return $(qs,function(){return h(Ds,e,n,$(hs,d,t))},Us(o))}}else{var c=b.a;return $(qs,function(a){var b=c.o;if(1===b.$)return h(Ds,e,n,t);var d=b.a;return h(Ds,e,n,h(ns,d,a,t))},F(h(Db,e,us(e),c)))}}}),Ks=n(function(e,a,t,b){return $(qs,function(e){return Bs($(Rs,e,t))},h(Ds,e,a,b.a_))}),Ss=n(function(e,t,n,s){if(!s.b)return t;var i=s.a,a=s.b;if(!a.b)return $(e,i,t);var l=a.a,b=a.b;if(!b.b)return $(e,i,$(e,l,t));var o=b.a,c=b.b;if(!c.b)return $(e,i,$(e,l,$(e,o,t)));var g=c.a,d=c.b,u=500<n?h(Un,e,t,Dn(d)):r(Ss,e,t,n+1,d);return $(e,i,$(e,l,$(e,o,$(e,g,u))))}),zs=b(function(e,a,t){return r(Ss,e,a,0,t)}),Xs=b(function(e,a,t){var b=e(a);if(!b.$){var n=b.a;return $(An,n,t)}return t}),Ys=t(function(e,a){return h(zs,Xs(e),$a,a)}),Gs=b(function(e,a,t){return $(qs,function(n){return $(qs,function(a){return Bs($(e,n,a))},t)},a)}),Ps=function(e){return h(zs,Gs(An),Bs($a),e)},Fs=n(function(e,a,t,b){var n=b.a,d=b.b;return k(a,n)?Qn($(us,e,d(t))):Zn}),Vs=b(function(e,a,t){var b=a.a,n=a.b;return $(qs,function(){return Bs(t)},Ps($(Ys,h(Fs,e,b,n),t.a9)))}),Js=function(e){return{$:0,a:e}},Ms=t(function(e,a){if(!a.$){var t=a.a;return Js(t)}var b=a.a;return Hs({D:b.D,bj:b.bj,t:$(Sb,e,b.t),i:b.i,m:b.m,n:b.n,o:b.o,y:b.y})}),Qs=t(function(e,a){return{$:0,a:e,b:a}}),Zs=t(function(e,a){var t=a.a,b=a.b;return $(Qs,t,$(Jd,b,e))});ab.Http=ee(Ws,Ks,Vs,Ms,Zs);var ei=te("Http"),ai=te("Http"),ti=function(e){return ei(Hs({D:!1,bj:e.bj,t:e.t,i:e.i,m:e.m,n:e.n,o:e.o,y:e.y}))},bi=function(e){return ti({bj:Ns,t:e.t,i:$a,m:"GET",n:Zn,o:Zn,y:e.y})},ni=Pd(v([bi({t:Is(function(e){return Yd($(Fd,Kd,e))}),y:"assets/logo.svg"}),bi({t:Is(function(e){return Yd($(Fd,qd,e))}),y:"assets/download.svg"}),bi({t:Is(function(e){return Yd($(Fd,Xd,e))}),y:"assets/upload.svg"}),bi({t:Is(function(e){return Yd($(Fd,Sd,e))}),y:"assets/moon.svg"}),bi({t:Is(function(e){return Yd($(Fd,zd,e))}),y:"assets/sun.svg"}),bi({t:Is(function(e){return Yd($(Fd,Dd,e))}),y:"assets/github.svg"}),bi({t:Is(function(e){return Yd($(Fd,Ud,e))}),y:"assets/error.svg"}),bi({t:Is(function(e){return $(Vd,Gd(""),$(Fd,Gd,e))}),y:"assets/example.svg"})])),di={$:0},si=function(e){if(!e.$)return di;if(6===e.a)return di;var a=e.a;return Id(a+1)},ii=t(function(e,a){return $(wb,re(e),ue(a))}),li=function(e){var a=e.a,t=e.b;return $(ii,a,t)},oi=t(function(e,a){return h(zs,t(function(a,t){return $(An,e(a),t)}),$a,a)}),ci=function(e){return ob(he(e))}("http://www.w3.org/2000/svg"),$i=ce,hi=$i,ri=function(e){return h(ci,e.Y,$(oi,li,e.aa),$(oi,gi,e.V))},gi=function(e){switch(e.$){case 0:var a=e.a;return ri(a);case 1:var t=e.a;return hi(t);default:var t=e.a;return hi("");}},ui=b(function(e,t,b){return $(e,b,t)}),fi=function(e){return e},pi=t(function(e,a){return t(function(t,b){var n=h(fi,a,t,b);if(!n.c.$){var d=n.a,s=n.b,i=n.c.a;return h(fi,e(i),d,s)}var l=n.a,o=n.b,c=n.c.a;return E(l,o,ed(c))})}),mi=b(function(e,a,b){return t(function(t,n){var d=h(fi,b,t,n);if(!d.c.$){var s=d.a,i=d.b,l=d.c.a;return E(s,i,ad(e(l)))}var o=d.a,c=d.b,$=d.c.a;return E(o,c,ed(a($)))})}),vi=t(function(e,a){return h(mi,e,fn,a)}),yi=b(function(e,a,t){return $(e,t,a)}),ki=t(function(e,a){return $(pi,$(yi,vi,e),a)}),xi=t(function(e){return e}),ji=t(function(e,a){return $(ki,a,$(vi,ui(xi),e))}),Ai=function(e){return{$:0,a:e}},wi=t(function(e,a){return $(ki,a,$(vi,xi,e))}),Ei=function(e){return{$:2,a:e}},Ci=function(e){return t(function(a,t){return E(a,t,ad(e))})},Li=function(e){return $(pi,e,Ci(0))},Ti=t(function(e,a){var t=b(function(t,b,n){accumulate:for(;;){var d=h(fi,a,b,n);if(!d.c.$){var s=d.a,i=d.b;return E(s,i,ad(Dn(t)))}var l=d.a,o=d.b,c=d.c.a,r=h(fi,e,b,n);if(!r.c.$){var s=r.a,i=r.b,g=r.c.a,u=$(An,g,t),f=s,p=i;t=u,b=f,n=p;continue accumulate}else return E(l,o,ed(c))}});return t($a)}),_i=function(e){return e.length},Oi=yt,Ii=t(function(e,a){return 1>e?a:h(Oi,e,_i(a),a)}),Ni=At,Hi=function(e){return t(function(a,t){if($(Ni,e,t.l)){var b=_i(e),n=t.w+b,d=$(Ii,b,t.l);return E(a,L(t,{l:d,w:n}),ad(e))}return E(a,t,ed(v(["expected \""+(e+"\"")])))})},Bi=mi(fn),Ri=t(function(e,a){return $(Bi,xi(v([e])),a)}),Wi=d(function(e,a,t,b,n){var d=$(Ni,"^",t)?t:"^"+t,s=h(Wb,1,$(Nd,Rd,e(d)),n.l);if(s.b&&!s.b.b){var i=s.a,l=_i(i.bB),o=n.w+l,c=$(Ii,l,n.l);return E(b,L(n,{l:c,w:o}),ad(a(i)))}return E(b,n,ed(v(["expected input matching Regexp /"+(d+"/")])))}),qi=$(Jd,$(Wi,Bd,function(e){return e.bB}),fn),Ui=$(Ri,"optional whitespace",qi("\\s*")),Di=$(Ri,"expected any character",function(e){return fn(t(function(a,t){var b=md(t.l);if(!b.$){var n=b.a,d=n.a,s=n.b;return e(d)?E(a,L(t,{l:s,w:t.w+1}),ad(d)):E(a,t,ed(v(["could not satisfy predicate"])))}return E(a,t,ed(v(["could not satisfy predicate"])))}))}(xi(!0))),Ki=b(function(e,a,t){return e(a(t))}),Si=function(e){return y(e).join("")},zi=Li(function(){return $(vi,$(Ki,Ei,Si),$(ji,$(ji,Ui,Hi("<!--")),$(Ti,Di,Hi("-->"))))}),Xi=b(function(e,a,t){return{aa:a,V:t,Y:e}}),Yi=t(function(e,a){return t(function(t,b){var n=h(fi,e,t,b);if(!n.c.$){var d=n;return d}var s=n.c.a,i=h(fi,a,t,b);if(!i.c.$){var d=i;return d}var l=i.c.a;return E(t,b,ed(T(s,l)))})}),Gi=t(function(e,a){return $(Yi,a,Ci(e))}),Pi=t(function(e,a){return w(e,a)}),Fi=$(ki,$(Gi,"",$(wi,$(ji,Hi("=\""),qi("[^\"]*")),Hi("\""))),$(vi,Pi,qi("[^=>/]+"))),Vi=t(function(e,a){return $(ki,e,$(vi,yi(xi),a))}),Ji=function(e){var a=b(function(a,t,b){accumulate:for(;;){var n=h(fi,e,t,b);if(!n.c.$){var d=n.a,s=n.b,i=n.c.a;if(k(b,s))return E(d,s,Dn(a));var l=$(An,i,a);a=l,t=d,b=s;continue accumulate}else return E(t,b,Dn(a))}});return t(function(e,t){var b=h(a,$a,e,t),n=b.a,d=b.b,s=b.c;return E(n,d,ad(s))})},Mi=t(function(e,a){return $(ki,Ji($(Vi,a,e)),$(vi,An,a))}),Qi=t(function(e,a){return $(Yi,$(Mi,e,a),Ci($a))}),Zi=h(ui,ki,$(ki,qi("[^/>\\s]+"),$(vi,b(function(e,a,t){return h(Xi,a,t,$a)}),Hi("<"))),$(wi,$(ji,Ui,$(Qi,Ui,Fi)),Ui)),el=function(e){return{$:1,a:e}},al=Li(function(){return $(vi,el,$(ji,Ui,qi("[^<]+")))}),tl=t(function(e,a){return E(e,a,ed($a))}),bl=function(e){return h(zs,Yi,tl,e)},nl=function(e){var a=$(vi,function(a){return L(e,{V:a})},$(wi,$(wi,$(ji,$(ji,Ui,Hi(">")),Ji(da())),Ui),Hi("</"+(e.Y+">"))));return Li(function(){return bl(v([$(ji,$(ji,Ui,Hi("/>")),Ci(e)),a]))})},dl=na();na=function(){return dl};var sl=da();da=function(){return sl};var il=$(vi,Si,$(ji,$(ji,Ui,Hi("<?xml")),$(Ti,Di,Hi("?>")))),ll=b(function(e,a,t){return{aq:e,l:a,w:t}}),ol=function(e){return h(ll,e,e,0)},cl=b(function(e,a,t){var b=h(fi,e,a,ol(t));if(!b.c.$){var n=b.a,d=b.b,s=b.c.a;return ad(E(n,d,s))}var n=b.a,d=b.b,i=b.c.a;return ed(E(n,d,i))}),$l=function(e){var a=h(cl,$(ji,$(Gi,"",il),sl),$a,e);if(!a.$){var t=a.a,b=t.c;return ad(b)}var n=a.a,d=n.b,s=n.c;return ed($(pd," or ",s))},hl=t(function(e,a){if(!a.$){var t=a.a;return e(t)}var b=a.a;return ed(b)}),rl=ob("http://www.w3.org/2000/svg"),gl=rl("svg"),ul=function(e){return $(hl,function(e){if(!e.$){var a=e.a;return"svg"===a.Y?ad($(gl,$(oi,li,a.aa),$(oi,gi,a.V))):ed("Top element is not svg")}return ed("Top element is not svg")},$l(e))},fl=t(function(e,a){switch(a.$){case 0:var t=a.a;return L(e,{aM:t});case 1:var t=a.a;return L(e,{at:t});case 2:var t=a.a;return L(e,{bd:t});case 3:var t=a.a;return L(e,{aO:t});case 4:var t=a.a;return L(e,{ba:t});case 5:var t=a.a;return L(e,{aA:t});default:var t=a.a;return L(e,{av:t});}}),pl=t(function(e,a){switch(a.$){case 0:var t=a.a;return Kd(e(t));case 1:var t=a.a;return qd(e(t));case 2:var t=a.a;return Xd(e(t));case 3:var t=a.a;return Sd(e(t));case 4:var t=a.a;return zd(e(t));case 5:var t=a.a;return Dd(e(t));default:var t=a.a;return Ud(e(t));}}),ml=function(e){switch(e.$){case 0:var a=e.a;return a;case 1:var a=e.a;return a;case 2:var a=e.a;return a;case 3:var a=e.a;return a;case 4:var a=e.a;return a;case 5:var a=e.a;return a;default:var a=e.a;return a;}},vl=t(function(e,a){var t=$(Vd,e.W,$(Fd,fl(e.W),function(e){var a=ml(e);if(!a.$){var t=a.a;return ad($(pl,function(){return t},e))}var b=a.a;return ed(b)}($(pl,ul,a))));return L(e,{W:t})}),yl=function(e){return{$:1,a:e}},kl=function(e){return{$:5,a:e}},xl=Bs(0),jl=t(function(e,a){return $(qs,function(t){return Bs(e(t))},a)}),Al=t(function(e,a){return F($(qs,us(e),a))}),wl=b(function(e,a){return $(jl,function(){return 0},Ps($(oi,Al(e),a)))}),El=b(function(){return Bs(0)}),Cl=t(function(e,a){return $(jl,e,a)});ab.Task=ee(xl,wl,El,Cl);var Ll=te("Task"),Tl=t(function(e,a){return Ll($(jl,e,a))}),_l=function(e){return e.name},Ol=function(e){return Y(function(a){var t=new FileReader;return t.addEventListener("loadend",function(){a(z(t.result))}),t.readAsText(e),function(){t.abort()}})},Il=t(function(e,a){return $(Tl,a,ea(e))}),Nl=t(function(e,a){if(!a.$)return w(e,$(Il,v(["image/svg+xml"]),function(e){return kl(yl(e))}));var t=a.a;return w(L(e,{ac:_l(t)}),$(Tl,Gd,Ol(t)))}),Hl=Pd($a),Bl=function(e){never:for(;;){var a=e;e=a;continue never}},Rl=b(function(e,a,t){return $(Tl,Bl,h(Gb,e,a,t))}),Wl=t(function(e,a){switch(e.$){case 0:var t=e.a;return w(L(a,{X:t}),Hl);case 1:var b=e.a,n=$(Vd,a,$(Fd,vl(a),b));return w(L(n,{ad:si(n.ad)}),Hl);case 2:var d=e.a;return w(L(a,{aI:d}),Hl);case 3:return w(L(a,{ab:!a.ab}),Hl);case 4:return w(a,h(Rl,a.ac,"image/svg+xml",a.X));case 5:var s=e.a;return $(Nl,a,s);default:var i=e.a;return w(L(a,{bq:i}),Hl);}}),ql=cb("code"),Ul=cb("pre"),Dl=$i,Kl=function(e){return v([e])},Sl=Td("className"),zl=cb("div"),Xl=t(function(e,a){return h(zs,t(function(a,t){return e(a)?$(An,a,t):t}),$a,a)}),Yl=function(e){var a=e.b;return a},Gl=function(e){return Sl($(pd," ",$(oi,zn,$(Xl,Yl,e))))},Pl=function(e){return""===e},Fl=cb("span"),Vl=function(e){return"elmsh"+function(){return 0===e?"0":1===e?"-comm":2===e?"1":3===e?"2":4===e?"3":5===e?"4":6===e?"5":7===e?"6":"7"}()},Jl=function(e){var a=e.bU,t=e.bH,b=e.bh;return!t&&Pl(b)?Dl(a):$(Fl,v([Gl(v([w(Vl(t),t),w("elmsh-"+b,""!==b)]))]),v([Dl(a)]))},Ml=b(function(e,a,t){var b=t.bu,n=t.bw;return $(zl,v([Gl(v([w("elmsh-line",!0),w("elmsh-hl",k(n,Qn(0))),w("elmsh-add",k(n,Qn(1))),w("elmsh-del",k(n,Qn(2)))])),$(ii,"data-elmsh-lc",fd(e+a))]),$(oi,Jl,b))}),Ql=t(function(e,a){return a.b?h(zs,An,a,e):e}),Zl=function(e){return h(zs,Ql,$a,e)},eo=function(e){return $(ql,v([Sl("elmsh")]),Zl($(oi,function(e){var a=e.bw,t=e.bu;return k(a,Zn)?$(oi,Jl,t):v([$(Fl,v([Gl(v([w("elmsh-hl",k(a,Qn(0))),w("elmsh-add",k(a,Qn(1))),w("elmsh-del",k(a,Qn(2)))]))]),$(oi,Jl,t))])},e)))},ao=t(function(e,a){if(1===e.$)return $(Ul,v([Sl("elmsh")]),v([eo(a)]));var t=e.a;return $(Ul,v([Sl("elmsh")]),Kl($(ql,$a,$(ud,Ml(t),a))))}),to=t(function(e,a){return $(ao,e,a)}),bo=b(function(e,a,t){return{ao:a,aU:t,a2:e}}),no=function(e){return h(bo,e.a2,e.ao,e.aU)},so=t(function(e,a){bagToList:for(;;)switch(e.$){case 0:return a;case 1:var t=e.a,b=e.b,n=t,d=$(An,b,a);e=n,a=d;continue bagToList;default:var t=e.a,s=e.b,n=t,d=$(so,s,a);e=n,a=d;continue bagToList;}}),io=t(function(e,a){var t=e({ao:1,c:$a,d:1,b:0,a2:1,a:a});if(!t.$){var b=t.b;return ad(b)}var n=t.b;return ed($(so,n,$a))}),lo=t(function(e,t){var b=$(io,e,t);if(!b.$){var n=b.a;return ad(n)}var a=b.a;return ed($(oi,no,a))}),oo=t(function(e,a){return{$:1,a:e,b:a}}),co=b(function(e,a,t){return{$:0,a:e,b:a,c:t}}),$o=t(function(e,t){return function(b){var n=t(b);if(!n.$){var d=n.a,s=n.b,a=n.c;return h(co,d,e(s),a)}var d=n.a,i=n.b;return $(oo,d,i)}}),ho=$o,ro=function(e){return{$:1,a:e}},go=function(e){return{$:0,a:e}},uo=function(e){if(!e.$){var t=e.a;return go(t)}var b=e.a;return ro(b)},fo=n(function(e,a,t,b){loopHelp:for(;;){var n=t(a),d=n(b);if(!d.$){var s=d.a,i=d.b,l=d.c;if(!i.$){var o=i.a,c=e||s,r=t;e=c,a=o,t=r,b=l;continue loopHelp}else{var g=i.a;return h(co,e||s,g,l)}}else{var s=d.a,u=d.b;return $(oo,e||s,u)}}}),po=t(function(e,a){return function(t){return r(fo,!1,e,a,t)}}),mo=t(function(e,a){return $(po,e,function(e){return $(ho,uo,a(e))})}),vo=function(e){return{$:1,a:e}},yo=function(e){return{$:0,a:e}},ko=t(function(e,t){return function(b){var n=t(b);if(1===n.$){var d=n.a,s=n.b;return $(oo,d,s)}var d=n.a,i=n.b,a=n.c;return h(co,d,$(e,h(Oi,b.b,a.b,b.a),i),a)}}),xo=function(e){return $(ko,xi,e)},jo={$:0},Ao=t(function(e,a){return{$:2,a:e,b:a}}),wo=b(function(e,a,t){oneOfHelp:for(;;){if(!t.b)return $(oo,!1,a);var b=t.a,n=t.b,d=b(e);if(!d.$){var s=d;return s}var s=d,i=s.a,l=s.b;if(i)return s;var o=e,c=$(Ao,a,l);e=o,a=c,t=n;continue oneOfHelp}}),Eo=function(e){return function(a){return h(wo,a,jo,e)}},Co=function(e){return function(a){return h(co,!1,e,a)}},Lo={$:11},To=t(function(e,a){return{$:1,a:e,b:a}}),_o=n(function(e,a,t,b){return{ao:a,bm:b,aU:t,a2:e}}),Oo=t(function(e,a){return $(To,jo,r(_o,e.a2,e.ao,a,e.c))}),Io=Fb,No=t(function(e,a){return function(t){var b=h(Io,e,t.b,t.a);return k(b,-1)?$(oo,!1,$(Oo,t,a)):k(b,-2)?h(co,!0,0,{ao:1,c:t.c,d:t.d,b:t.b+1,a2:t.a2+1,a:t.a}):h(co,!0,0,{ao:t.ao+1,c:t.c,d:t.d,b:b,a2:t.a2,a:t.a})}}),Ho=function(e){return $(No,e,Lo)},Bo=d(function(e,a,t,b,n){chompWhileHelp:for(;;){var d=h(Io,e,a,n.a);if(k(d,-1))return h(co,0>A(n.b,a),0,{ao:b,c:n.c,d:n.d,b:a,a2:t,a:n.a});if(k(d,-2)){var s=e,i=a+1,l=t+1,o=1,c=n;e=s,a=i,t=l,b=o,n=c;continue chompWhileHelp}else{var s=e,i=d,l=t,o=b+1,c=n;e=s,a=i,t=l,b=o,n=c;continue chompWhileHelp}}}),Ro=function(e){return function(a){return g(Bo,e,a.b,a.a2,a.ao,a)}},Wo=b(function(e,t,n){return function(d){var s=t(d);if(1===s.$){var i=s.a,l=s.b;return $(oo,i,l)}var o=s.a,c=s.b,a=s.c,r=n(a);if(1===r.$){var g=r.a,l=r.b;return $(oo,o||g,l)}var g=r.a,u=r.b,b=r.c;return h(co,o||g,$(e,c,u),b)}}),qo=t(function(e,a){return h(Wo,xi,e,a)}),Uo=qo,Do=function(e){return $(Uo,$(Uo,Co(0),Ho(e)),Ro(e))},Ko=function(e){return"\n"===e},So={$:0},zo=t(function(e,t){return function(n){var d=t(n);if(1===d.$){var s=d.a,i=d.b;return $(oo,s,i)}var l=d.a,o=d.b,a=d.c,c=e(o),r=c(a);if(1===r.$){var g=r.a,i=r.b;return $(oo,l||g,i)}var g=r.a,u=r.b,b=r.c;return h(co,l||g,u,b)}}),Xo=zo,Yo=function(e){return{$:8,a:e}},Go=t(function(e,a){return{$:0,a:e,b:a}}),Po=function(e){var a=e.a,t=e.b,b=!Pl(a);return function(e){var n=g(Pb,a,e.b,e.a2,e.ao,e.a),d=n.a,s=n.b,i=n.c;return k(d,-1)?$(oo,!1,$(Oo,e,t)):h(co,b,0,{ao:i,c:e.c,d:e.d,b:d,a2:s,a:e.a})}},Fo=function(e){return Po($(Go,e,Yo(e)))},Vo=function(e){return{$:12,a:e}},Jo=function(e){return function(a){return $(oo,!1,$(Oo,a,e))}},Mo=function(e){return Jo(Vo(e))},Qo=function(e){return function(a){return k(_i(a.a),a.b)?h(co,!1,0,a):$(oo,!1,$(Oo,a,e))}}({$:10}),Zo=b(function(e,a,t){return $(Xo,function(t){return e(T(t,a))},t)}),ec=b(function(e,a,t){return $(Xo,function(t){return e($(An,t,a))},t)}),ac=t(function(e,a){return $(Uo,a,Ro(e))}),tc=t(function(e,a){var t=e.as,b=e.aH,n=e.au,d=e.aE;return Eo(v([$(ho,xi($(An,t(n),a)),Fo(n)),$(ho,xi(a),Qo),h(Zo,tc(e),a,Eo(d)),h(ec,tc(e),a,$(ho,t,xo($(ac,b,Ho(xi(!0))))))]))}),bc=b(function(e,a,t){var b=a.as,n=a.aH,d=a.ai,s=a.au,i=a.aE;return Eo(v([$(Xo,function(t){return 1===e?Co(t):h(bc,e-1,a,t)},$(ho,xi($(An,b(s),t)),Fo(s))),h(ec,$(bc,e+1,a),t,$(ho,b,xo($(ac,n,Fo(d))))),h(Zo,tc(a),t,Eo(i)),$(ho,xi(t),Qo),h(ec,$(bc,e,a),t,$(ho,b,xo($(ac,n,Ho(xi(!0))))))]))}),nc=t(function(e,a){var t=e.ai,b=e.au,n=e.aH,d=w(md(e.ai),md(e.au));if(1===d.a.$){d.a;return Mo("Trying to parse a delimited helper, but the start token cannot be an empty string!")}if(1===d.b.$){d.b;return Mo("Trying to parse a delimited helper, but the end token cannot be an empty string!")}var s=d.a.a,i=s.a,l=d.b.a,o=l.a;return e.aG?h(bc,1,L(e,{aH:function(e){return n(e)&&!k(e,i)&&!k(e,o)}}),a):$(tc,L(e,{aH:function(e){return n(e)&&!k(e,o)}}),a)}),dc=function(e){var a=e.ai,t=e.aH,b=e.as;return $(Xo,function(a){return $(nc,e,v([a]))},$(ho,xi(b(a)),Fo(a)))},sc={$:1},ic=function(e){return{$:3,a:e}},lc={$:2},oc=$(ho,function(){return w(lc,"\n")},Fo("\n")),cc=$(ho,Kl,oc),$c={as:function(e){return w(ic(2),e)},au:"\"",aE:v([cc]),aG:!1,aH:$(Ki,function(e){return!e},Ko),ai:"\""},hc=dc(L($c,{as:function(e){return w(sc,e)},au:"-->",ai:"<!--"})),rc=$(Uo,$(Uo,Co(0),Ho(function(e){return"<"===e})),Eo(v([Ho(function(e){return"/"===e||"!"===e}),Co(0)]))),gc=function(e){return" "===e||"\t"===e},uc=function(e){return gc(e)||Ko(e)},fc=dc($c),pc=dc(L($c,{au:"'",ai:"'"})),mc=Eo(v([fc,pc,$(ho,function(e){return v([w(ic(2),e)])},xo(Do(function(e){return!uc(e)&&">"!==e})))])),vc=Eo(v([$(ho,function(e){return w(So,e)},xo(Do(gc))),oc])),yc=function(e){return Eo(v([h(ec,yc,e,vc),h(Zo,Co,e,mc),Co(e)]))},kc=function(e){return Eo(v([h(ec,kc,e,vc),h(ec,yc,e,$(ho,function(){return w(So,"=")},Fo("="))),Co(e)]))},xc=function(e){return ld(e)||id(e)||cd(e)},jc=function(e){return xc(e)||"-"===e},Ac=function(e){return jc(e)||"_"===e},wc=function(e){return Eo(v([$(ho,yo,h(ec,kc,e,$(ho,function(e){return w(ic(1),e)},xo(Do(Ac))))),$(ho,function(a){return yo($(An,a,e))},vc),$(ho,function(a){return yo($(An,w(So,a),e))},xo(Do(function(e){return!uc(e)&&">"!==e}))),Co(vo(e))]))},Ec=function(e){return Eo(v([$(Xo,function(a){return $(mo,$(An,a,e),wc)},$(ho,function(e){return w(ic(0),e)},xo($(ac,jc,Ho(xc))))),Co(e)]))},Cc=function(e){return $(Xo,Ec,$(ho,function(a){return $(An,w(So,a),e)},xo(rc)))},Lc=$(mo,$a,function(e){return Eo(v([$(ho,function(a){return yo($(An,a,e))},vc),$(ho,function(a){return yo(T(a,e))},hc),$(ho,function(a){return yo($(An,w(So,a),e))},xo(Do(function(e){return"<"!==e&&!Ko(e)}))),$(ho,yo,Cc(e)),Co(vo(e))]))}),Tc=function(e){return{bu:e,bw:Zn}},_c=t(function(e,a){var t=a.a,b=a.b;switch(t.$){case 0:return{bh:"",bH:0,bU:b};case 1:return{bh:"",bH:1,bU:b};case 2:return{bh:"",bH:0,bU:b};default:var n=t.a,d=e(n),s=d.a,i=d.b;return{bh:i,bH:s,bU:b};}}),Oc=b(function(e,a,t){var b=a.a,n=a.b,d=t.a,s=t.b,i=t.c;if(k(b,lc))return E($(An,Tc(s),d),v([$(_c,e,w(b,n))]),Zn);if(k(Qn(b),i)){if(s.b){var l=s.a,o=s.b;return E(d,$(An,L(l,{bU:T(n,l.bU)}),o),i)}return E(d,$(An,$(_c,e,w(b,n)),s),i)}return E(d,$(An,$(_c,e,w(b,n)),s),Qn(b))}),Ic=t(function(e,a){return function(e){var a=e.a,t=e.b;return $(An,Tc(t),a)}(h(Un,Oc(e),E($a,$a,Zn),a))}),Nc=$(Jd,lo(Lc),Fd(Ic(function(e){return 0===e?w(4,"xml-t"):1===e?w(6,"xml-a"):w(3,"xlm-av")}))),Hc=$(Jd,Nc,Fd(fn)),Bc=function(e){return $(Vd,$(Ul,$a,v([$(ql,$a,v([Dl(e.X)]))])),$(Fd,to(Zn),Hc(""===e.X?"<svg ...> ... </svg>":e.X)))},Rc=function(e){return{$:0,a:e}},Wc=xb,qc=t(function(e,a){return $(Wc,e,Rc(a))}),Uc=t(function(e,a){return h(zs,It,a,e)}),Dc=Ct,Kc=function(e){return $(qc,"scroll",$(Ad,e,h(wd,function(e){return function(a){return w(e,a)}},$(Uc,v(["target","scrollLeft"]),Dc),$(Uc,v(["target","scrollTop"]),Dc))))},Sc=function(e){return{$:6,a:e}},zc=cb("textarea"),Xc=t(function(e,a){return $(Ab,e,K(a))}),Yc=Xc("spellcheck"),Gc=Td("value"),Pc=function(e){return w(e,!0)},Fc=function(e){return{$:1,a:e}},Vc=t(function(e,a){return $(Wc,e,Fc(a))}),Jc=$(Uc,v(["target","value"]),Ot),Mc=function(e){return $(Vc,"input",$(Ad,Pc,$(Ad,e,Jc)))},Qc=function(e){return $(zc,v([Gc(e.X),Mc(Gd),Kc(Sc),Yc(!1)]),$a)},Zc=fd,e$=function(e){return $(jb,"transform",e)},a$=function(e){var a=e.a,t=e.b;return e$("translate("+(Zc(-a)+("px, "+(Zc(-t)+"px)"))))},t$=Td("id"),b$=function(e){return $(zl,v([t$("editor")]),v([$(zl,v([a$(e.bq)]),v([Bc(e)])),Qc(e)]))},n$={$:4},d$={$:0},s$={$:3},i$=function(e){return{$:2,a:e}},l$=function(e){return $(qc,"error",Ed(e))},o$=function(e){return $(qc,"load",Ed(e))},c$=function(e){return e.aI?l$(i$(!1)):o$(i$(!0))},$$=function(e){var a=e.bB;switch(a){case"!":return"%21";case"#":return"%23";case"$":return"%24";case"%":return"%25";case"&":return"%26";case"'":return"%27";case"(":return"%28";case")":return"%29";case"*":return"%2A";case"+":return"%2B";case",":return"%2C";case"/":return"%2F";case":":return"%3A";case";":return"%3B";case"=":return"%3D";case"?":return"%3F";case"@":return"%40";case"[":return"%5B";case"]":return"%5D";default:return a;}},h$=qb(1/0),r$=function(e){return"data:image/svg+xml;utf8,"+h(h$,e.bX,$$,e.X)},g$=cb("button"),u$=function(e){return $(qc,"click",Ed(e))},f$=function(e){return $(zl,v([t$("display"),Sl(e.ab?"dark":"")]),v([$(Ld,v([_d(r$(e)),c$(e)]),$a),e.W.av,$(g$,v([u$(n$)]),v([e.W.at])),$(g$,v([u$(kl(d$))]),v([e.W.bd])),$(g$,v([u$(s$)]),v([e.ab?e.W.ba:e.W.aO]))]))},p$=cb("a"),m$=function(e){return $(Td,"href",ge(e))},v$=wb("rel"),y$=Td("target"),k$=function(e){return $(p$,v([m$("https://github.com/GarkGarcia/RawSvg"),y$("_blank"),v$("noopener noreferrer")]),v([e.W.aA]))},x$=gb,j$=function(e){return $(zl,v([t$("container"),Sl(e.aI?"":"error")]),v([$(zl,v([t$("title")]),v([e.W.aM,k$(e)])),f$(e),$(x$,b$,e)]))},A$=function(e){return{$:1,a:e}},w$=function(e){return{$:0,a:e}},E$=fn,C$=Et,L$=t(function(e,a){return 1>e?"":h(Oi,0,e,a)}),T$=function(e){for(var a,t=0,b=e.charCodeAt(0),n=43==b||45==b?1:0,d=n;d<e.length;++d){if(a=e.charCodeAt(d),48>a||57<a)return Zn;t=10*t+a-48}return d==n?Zn:Qn(45==b?-t:t)},_$=s(function(e,a,t,b,n,d){return{az:d,aC:a,aR:b,aT:t,aX:e,aY:n}}),O$=d(function(e,a,t,b,n){if(Pl(n)||$(jt,"@",n))return Zn;var d=$(C$,":",n);if(!d.b)return Qn(u(_$,e,n,Zn,a,t,b));if(!d.b.b){var s=d.a,i=T$($(Ii,s+1,n));if(1===i.$)return Zn;return Qn(u(_$,e,$(L$,s,n),i,a,t,b))}return Zn}),I$=n(function(e,a,t,b){if(Pl(b))return Zn;var n=$(C$,"/",b);if(!n.b)return g(O$,e,"/",a,t,b);var d=n.a;return g(O$,e,$(Ii,d,b),a,t,$(L$,d,b))}),N$=b(function(e,a,t){if(Pl(t))return Zn;var b=$(C$,"?",t);if(!b.b)return r(I$,e,Zn,a,t);var n=b.a;return r(I$,e,Qn($(Ii,n+1,t)),a,$(L$,n,t))}),H$=t(function(e,a){if(Pl(a))return Zn;var t=$(C$,"#",a);if(!t.b)return h(N$,e,Zn,a);var b=t.a;return h(N$,e,Qn($(Ii,b+1,a)),$(L$,b,a))}),B$=function(e){return $(Ni,"http://",e)?$(H$,0,$(Ii,7,e)):$(Ni,"https://",e)?$(H$,1,$(Ii,8,e)):Zn},R$=be($a),W$=an({bz:function(){return w(Wd,ni)},bT:function(){return R$},bW:Wl,bY:function(e){return{bj:function(){var a=e.ad;return a.$?$a:v([$(x$,j$,e)])}(),bV:"RawSvg"}}});(function(a){e.Elm?le(e.Elm,a):e.Elm=a})({Main:{init:W$(Ed(0))(0)}})})(this);+ \ No newline at end of file
diff --git a/src/Icon.elm b/src/Icon.elm @@ -46,15 +46,6 @@ map f icon = Error s -> Error (f s) -popResult : Icon (Result a b) -> Result a (Icon b) -popResult icon = - case unwrap icon of - Ok b -> - Ok (map (\_ -> b) icon) - - Err err -> - Err err - load : Icons s -> Icon s -> Icons s load icons icon = case icon of
diff --git a/src/Main.elm b/src/Main.elm @@ -34,7 +34,7 @@ update msg model = Load icon -> let loaded = - Result.withDefault model (Result.map (load model) (Icon.popResult icon)) + Result.withDefault model (Result.map (load model) icon) in ({ loaded | load = increment loaded.load }, Cmd.none) @@ -56,8 +56,13 @@ update msg model = load : Model -> Icon String -> Model load model icon = let + pop i = + case Icon.unwrap i of + Ok data -> Ok (Icon.map (\_ -> data) i) + + Err err -> Err err icons = - Result.withDefault model.icons (Result.map (Icon.load model.icons) (Icon.popResult (Icon.map parse icon))) + Result.withDefault model.icons (Result.map (Icon.load model.icons) (pop (Icon.map parse icon))) in { model | icons = icons } @@ -108,31 +113,31 @@ loadContent = Cmd.batch [ Http.get { url = "assets/logo.svg" - , expect = Http.expectString (\res -> Load (Icon.Logo res)) + , expect = Http.expectString (\res -> Load (Result.map Icon.Logo res)) } , Http.get { url = "assets/download.svg" - , expect = Http.expectString (\res -> Load (Icon.Download res)) + , expect = Http.expectString (\res -> Load (Result.map Icon.Download res)) } , Http.get { url = "assets/upload.svg" - , expect = Http.expectString (\res -> Load (Icon.Upload res)) + , expect = Http.expectString (\res -> Load (Result.map Icon.Upload res)) } , Http.get { url = "assets/moon.svg" - , expect = Http.expectString (\res -> Load (Icon.Moon res)) + , expect = Http.expectString (\res -> Load (Result.map Icon.Moon res)) } , Http.get { url = "assets/sun.svg" - , expect = Http.expectString (\res -> Load (Icon.Sun res)) + , expect = Http.expectString (\res -> Load (Result.map Icon.Sun res)) } , Http.get { url = "assets/github.svg" - , expect = Http.expectString (\res -> Load (Icon.Github res)) + , expect = Http.expectString (\res -> Load (Result.map Icon.Github res)) } , Http.get { url = "assets/error.svg" - , expect = Http.expectString (\res -> Load (Icon.Error res)) + , expect = Http.expectString (\res -> Load (Result.map Icon.Error res)) } , Http.get { url = "assets/example.svg"
diff --git a/src/Types.elm b/src/Types.elm @@ -23,7 +23,7 @@ type Load = Loaded | Loading Int type Msg = Update String - | Load (Icon (Result Http.Error String)) + | Load (Result Http.Error (Icon String)) | Validation Bool | ToggleDarkMode | Download