-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprod.min.js
1 lines (1 loc) · 58.1 KB
/
prod.min.js
1
!function(t){"use strict";function q(n,r,t){return t.a=n,t.f=r,t}function h(t){return q(2,t,function(r){return function(n){return t(r,n)}})}function m(e){return q(3,e,function(t){return function(r){return function(n){return e(t,r,n)}}})}function n(u){return q(4,u,function(e){return function(t){return function(r){return function(n){return u(e,t,r,n)}}}})}function r(a){return q(5,a,function(u){return function(e){return function(t){return function(r){return function(n){return a(u,e,t,r,n)}}}}})}function e(o){return q(6,o,function(a){return function(u){return function(e){return function(t){return function(r){return function(n){return o(a,u,e,t,r,n)}}}}}})}function c(i){return q(7,i,function(o){return function(a){return function(u){return function(e){return function(t){return function(r){return function(n){return i(o,a,u,e,t,r,n)}}}}}}})}function H(c){return q(8,c,function(i){return function(o){return function(a){return function(u){return function(e){return function(t){return function(r){return function(n){return c(i,o,a,u,e,t,r,n)}}}}}}}})}function z(f){return q(9,f,function(c){return function(i){return function(o){return function(a){return function(u){return function(e){return function(t){return function(r){return function(n){return f(c,i,o,a,u,e,t,r,n)}}}}}}}}})}function p(n,r,t){return 2===n.a?n.f(r,t):n(r)(t)}function y(n,r,t,e){return 3===n.a?n.f(r,t,e):n(r)(t)(e)}function l(n,r,t,e,u){return 4===n.a?n.f(r,t,e,u):n(r)(t)(e)(u)}function w(n,r,t,e,u,a){return 5===n.a?n.f(r,t,e,u,a):n(r)(t)(e)(u)(a)}function G(n,r,t,e,u,a,o){return 6===n.a?n.f(r,t,e,u,a,o):n(r)(t)(e)(u)(a)(o)}function I(n,r,t,e,u,a,o,i){return 7===n.a?n.f(r,t,e,u,a,o,i):n(r)(t)(e)(u)(a)(o)(i)}var U=m(function(n,r,t){for(var e=Array(n),u=0;u<n;u++)e[u]=t(r+u);return e}),F=h(function(n,r){for(var t=Array(n),e=0;e<n&&r.b;e++)t[e]=r.a,r=r.b;return t.length=e,{a:t,b:r}}),W=(h(function(n,r){return r[n]}),m(function(n,r,t){for(var e=t.length,u=Array(e),a=0;a<e;a++)u[a]=t[a];return u[n]=r,u}),h(function(n,r){for(var t=r.length,e=Array(t+1),u=0;u<t;u++)e[u]=r[u];return e[t]=n,e}),m(function(n,r,t){for(var e=t.length,u=0;u<e;u++)r=p(n,t[u],r);return r}),m(function(n,r,t){for(var e=t.length-1;0<=e;e--)r=p(n,t[e],r);return r}));h(function(n,r){for(var t=r.length,e=Array(t),u=0;u<t;u++)e[u]=n(r[u]);return e}),m(function(n,r,t){for(var e=t.length,u=Array(e),a=0;a<e;a++)u[a]=p(n,r+a,t[a]);return u}),m(function(n,r,t){return t.slice(n,r)}),m(function(n,r,t){for(var e=r.length,u=n-e,n=e+(u=t.length<u?t.length:u),a=Array(n),o=0;o<e;o++)a[o]=r[o];for(o=0;o<u;o++)a[o+e]=t[o];return a}),h(function(n,r){return r}),h(function(n,r){return console.log(n+": <internals>"),r});function J(n){throw Error("https://github.com/elm/core/blob/1.0.0/hints/"+n+".md")}function k(n,r){for(var t,e=[],u=V(n,r,0,e);u&&(t=e.pop());u=V(t.a,t.b,0,e));return u}function V(n,r,t,e){if(n!==r){if("object"!=typeof n||null===n||null===r)return"function"==typeof n&&J(5),!1;if(100<t)e.push({a:n,b:r});else for(var u in n.$<0&&(n=rt(n),r=rt(r)),n)if(!V(n[u],r[u],t+1,e))return!1}return!0}h(k),h(function(n,r){return!k(n,r)});function b(n,r,t){if("object"!=typeof n)return n===r?0:n<r?-1:1;if(void 0===n.$)return(t=(t=b(n.a,r.a))||b(n.b,r.b))||b(n.c,r.c);for(;n.b&&r.b&&!(t=b(n.a,r.a));n=n.b,r=r.b);return t||(n.b?1:r.b?-1:0)}h(function(n,r){return b(n,r)<0}),h(function(n,r){return b(n,r)<1}),h(function(n,r){return 0<b(n,r)}),h(function(n,r){return 0<=b(n,r)});var X=h(function(n,r){n=b(n,r);return n<0?ut:n?et:tt}),Y=0;function A(n,r){var t,e={};for(t in n)e[t]=n[t];for(t in r)e[t]=r[t];return e}h(C);function C(n,r){if("string"==typeof n)return n+r;if(!n.b)return r;var t={$:1,a:n.a,b:r};n=n.b;for(var e=t;n.b;n=n.b)e=e.b={$:1,a:n.a,b:r};return t}var j={$:0};function K(n,r){return{$:1,a:n,b:r}}var Q=h(K);function _(n){for(var r=j,t=n.length;t--;)r={$:1,a:n[t],b:r};return r}function Z(n){for(var r=[];n.b;n=n.b)r.push(n.a);return r}var nn=m(function(n,r,t){for(var e=[];r.b&&t.b;r=r.b,t=t.b)e.push(p(n,r.a,t.a));return _(e)}),rn=(n(function(n,r,t,e){for(var u=[];r.b&&t.b&&e.b;r=r.b,t=t.b,e=e.b)u.push(y(n,r.a,t.a,e.a));return _(u)}),r(function(n,r,t,e,u){for(var a=[];r.b&&t.b&&e.b&&u.b;r=r.b,t=t.b,e=e.b,u=u.b)a.push(l(n,r.a,t.a,e.a,u.a));return _(a)}),e(function(n,r,t,e,u,a){for(var o=[];r.b&&t.b&&e.b&&u.b&&a.b;r=r.b,t=t.b,e=e.b,u=u.b,a=a.b)o.push(w(n,r.a,t.a,e.a,u.a,a.a));return _(o)}),h(function(t,n){return _(Z(n).sort(function(n,r){return b(t(n),t(r))}))}));h(function(t,n){return _(Z(n).sort(function(n,r){n=p(t,n,r);return n===tt?0:n===ut?-1:1}))}),h(function(n,r){return n+r}),h(function(n,r){return n-r}),h(function(n,r){return n*r}),h(function(n,r){return n/r}),h(function(n,r){return n/r|0}),h(Math.pow),h(function(n,r){return r%n}),h(function(n,r){r%=n;return 0===n?J(11):0<r&&n<0||r<0&&0<n?r+n:r}),h(Math.atan2);var tn=Math.ceil,en=Math.floor,un=Math.round,an=Math.log;h(function(n,r){return n&&r}),h(function(n,r){return n||r}),h(function(n,r){return n!==r});var on=h(function(n,r){return n+r});h(function(n,r){return n+r});h(function(n,r){for(var t=r.length,e=Array(t),u=0;u<t;){var a=r.charCodeAt(u);55296>a||a>56319?(e[u]=n(r[u]),u++):(e[u]=n(r[u]+r[u+1]),u+=2)}return e.join("")}),h(function(n,r){for(var t=[],e=r.length,u=0;u<e;){var a=r[u],o=r.charCodeAt(u);u++,o<55296||56319<o||(a+=r[u],u++),n(a)&&t.push(a)}return t.join("")});m(function(n,r,t){for(var e=t.length,u=0;u<e;){var a=t[u],o=t.charCodeAt(u);u++,o<55296||56319<o||(a+=t[u],u++),r=p(n,a,r)}return r}),m(function(n,r,t){for(var e=t.length;e--;){var u=t[e],a=t.charCodeAt(e);r=p(n,u=a<56320||57343<a?u:t[--e]+u,r)}return r});var cn=h(function(n,r){return r.split(n)}),fn=h(function(n,r){return r.join(n)}),bn=m(function(n,r,t){return t.slice(n,r)});h(function(n,r){for(var t=r.length;t--;){var e=r[t],u=r.charCodeAt(t);if(n(e=u<56320||57343<u?e:r[--t]+e))return!0}return!1});var sn=h(function(n,r){for(var t=r.length;t--;){var e=r[t],u=r.charCodeAt(t);if(!n(e=u<56320||57343<u?e:r[--t]+e))return!1}return!0}),dn=h(function(n,r){return!!~r.indexOf(n)}),ln=(h(function(n,r){return 0==r.indexOf(n)}),h(function(n,r){return n.length<=r.length&&r.lastIndexOf(n)==r.length-n.length}),h(function(n,r){var t=n.length;if(t<1)return j;for(var e=0,u=[];-1<(e=r.indexOf(n,e));)u.push(e),e+=t;return _(u)}));var vn={$:2,b:function(n){return"number"!=typeof n||(n<=-2147483647||2147483647<=n||(0|n)!==n)&&(!isFinite(n)||n%1)?Bn("an INT",n):ct(n)}},$n={$:2,b:function(n){return"boolean"==typeof n?ct(n):Bn("a BOOL",n)}},gn={$:2,b:function(n){return"number"==typeof n?ct(n):Bn("a FLOAT",n)}},hn={$:2,b:function(n){return ct(n)}},mn={$:2,b:function(n){return"string"==typeof n?ct(n):n instanceof String?ct(n+""):Bn("a STRING",n)}};var pn=h(function(n,r){return{$:6,d:n,b:r}});h(function(n,r){return{$:7,e:n,b:r}});var yn=h(function(n,r){return{$:10,b:r,h:n}});var wn=h(function(n,r){return{$:9,f:n,g:[r]}}),kn=m(function(n,r,t){return{$:9,f:n,g:[r,t]}}),An=n(function(n,r,t,e){return{$:9,f:n,g:[r,t,e]}}),Cn=r(function(n,r,t,e,u){return{$:9,f:n,g:[r,t,e,u]}}),jn=e(function(n,r,t,e,u,a){return{$:9,f:n,g:[r,t,e,u,a]}}),_n=c(function(n,r,t,e,u,a,o){return{$:9,f:n,g:[r,t,e,u,a,o]}}),En=(H(function(n,r,t,e,u,a,o,i){return{$:9,f:n,g:[r,t,e,u,a,o,i]}}),z(function(n,r,t,e,u,a,o,i,c){return{$:9,f:n,g:[r,t,e,u,a,o,i,c]}}),h(function(n,r){try{return s(n,JSON.parse(r))}catch(n){return $(p(at,"This is not valid JSON! "+n.message,r))}})),xn=h(s);function s(n,r){switch(n.$){case 2:return n.b(r);case 5:return null===r?ct(n.c):Bn("null",r);case 3:return Nn(r)?Tn(n.b,r,_):Bn("a LIST",r);case 4:return Nn(r)?Tn(n.b,r,Ln):Bn("an ARRAY",r);case 6:var t=n.d;return"object"==typeof r&&null!==r&&t in r?(a=s(n.b,r[t]),zt(a)?a:$(p(ot,t,a.a))):Bn("an OBJECT with a field named `"+t+"`",r);case 7:t=n.e;return Nn(r)?t<r.length?(a=s(n.b,r[t]),zt(a)?a:$(p(it,t,a.a))):Bn("a LONGER array. Need index "+t+" but only see "+r.length+" entries",r):Bn("an ARRAY",r);case 8:if("object"!=typeof r||null===r||Nn(r))return Bn("an OBJECT",r);var e,u=j;for(e in r)if(r.hasOwnProperty(e)){var a=s(n.b,r[e]);if(!zt(a))return $(p(ot,e,a.a));u={$:1,a:{a:e,b:a.a},b:u}}return ct(yt(u));case 9:for(var o=n.f,i=n.g,c=0;c<i.length;c++){a=s(i[c],r);if(!zt(a))return a;o=o(a.a)}return ct(o);case 10:a=s(n.b,r);return zt(a)?s(n.h(a.a),r):a;case 11:for(var f=j,b=n.g;b.b;b=b.b){a=s(b.a,r);if(zt(a))return a;f={$:1,a:a.a,b:f}}return $(ft(yt(f)));case 1:return $(p(at,n.a,r));case 0:return ct(n.a)}}function Tn(n,r,t){for(var e=r.length,u=Array(e),a=0;a<e;a++){var o=s(n,r[a]);if(!zt(o))return $(p(it,a,o.a));u[a]=o.a}return ct(t(u))}function Nn(n){return Array.isArray(n)||"function"==typeof FileList&&n instanceof FileList}function Ln(r){return p(Ht,r.length,function(n){return r[n]})}function Bn(n,r){return $(p(at,"Expecting "+n,r))}function Rn(n,r){if(n===r)return!0;if(n.$!==r.$)return!1;switch(n.$){case 0:case 1:return n.a===r.a;case 2:return n.b===r.b;case 5:return n.c===r.c;case 3:case 4:case 8:return Rn(n.b,r.b);case 6:return n.d===r.d&&Rn(n.b,r.b);case 7:return n.e===r.e&&Rn(n.b,r.b);case 9:return n.f===r.f&&On(n.g,r.g);case 10:return n.h===r.h&&Rn(n.b,r.b);case 11:return On(n.g,r.g)}}function On(n,r){var t=n.length;if(t!==r.length)return!1;for(var e=0;e<t;e++)if(!Rn(n[e],r[e]))return!1;return!0}var Mn=h(function(n,r){return JSON.stringify(r,null,n)+""});function Pn(n){return n}var Dn=m(function(n,r,t){return t[n]=r,t});function Sn(n){return{$:0,a:n}}var qn=h(function(n,r){return{$:3,b:n,d:r}});h(function(n,r){return{$:4,b:n,d:r}});var Hn=0;function zn(n){n={$:0,e:Hn++,f:n,g:null,h:[]};return Jn(n),n}function Gn(r){return{$:2,b:function(n){n({$:0,a:zn(r)})},c:null}}function In(n,r){n.h.push(r),Jn(n)}var Un=h(function(r,t){return{$:2,b:function(n){In(r,t),n({$:0,a:Y})},c:null}});var Fn=!1,Wn=[];function Jn(n){if(Wn.push(n),!Fn){for(Fn=!0;n=Wn.shift();)!function(r){for(;r.f;){var n=r.f.$;if(0===n||1===n){for(;r.g&&r.g.$!==n;)r.g=r.g.i;if(!r.g)return;r.f=r.g.b(r.f.a),r.g=r.g.i}else{if(2===n)return r.f.c=r.f.b(function(n){r.f=n,Jn(r)});if(5===n){if(0===r.h.length)return;r.f=r.f.b(r.h.shift())}else r.g={$:3===n?0:1,b:r.f.b,i:r.g},r.f=r.f.d}}}(n);Fn=!1}}n(function(n,r,t,e){return Vn(r,e,n.by,n.bR,n.bO,function(){return function(){}})});function Vn(n,r,t,e,u,a){var o=p(xn,n,r?r.flags:void 0),i=(zt(o)||J(2),{}),c=(o=t(o.a)).a,f=a(b,c),n=function(n,r){var t,e;for(e in d){var u=d[e];u.a&&((t=t||{})[e]=u.a(e,r)),n[e]=function(n,r){var e={g:r,h:void 0},u=n.c,a=n.d,o=n.e,i=n.f;return e.h=zn(p(qn,function n(t){return p(qn,n,{$:5,b:function(n){var r=n.a;return 0===n.$?y(a,e,r,t):o&&i?l(u,e,r.i,r.j,t):y(u,e,o?r.i:r.j,t)}})},n.b))}(u,r)}return t}(i,b);function b(n,r){o=p(e,n,c),f(c=o.a,r),rr(i,o.b,u(c))}return rr(i,o.b,u(c)),n?{ports:n}:{}}var d={};var Xn=h(function(r,t){return{$:2,b:function(n){r.g(t),n({$:0,a:Y})},c:null}}),Yn=h(function(n,r){return p(Un,n.h,{$:0,a:r})});function Kn(r){return function(n){return{$:1,k:r,l:n}}}function Qn(n){return{$:2,m:n}}h(function(n,r){return{$:3,n:n,o:r}});var Zn=[],nr=!1;function rr(n,r,t){if(Zn.push({p:n,q:r,r:t}),!nr){nr=!0;for(var e;e=Zn.shift();)!function(n,r,t){var e,u={};for(e in tr(!0,r,u,null),tr(!1,t,u,null),n)In(n[e],{$:"fx",a:u[e]||{i:j,j:j}})}(e.p,e.q,e.r);nr=!1}}function tr(n,r,t,e){switch(r.$){case 1:var u=r.k,a=function(n,r,t,e){return p(n?d[r].e:d[r].f,function(n){for(var r=t;r;r=r.t)n=r.s(n);return n},e)}(n,u,e,r.l);return void(t[u]=function(n,r,t){return t=t||{i:j,j:j},n?t.i={$:1,a:r,b:t.i}:t.j={$:1,a:r,b:t.j},t}(n,a,t[u]));case 2:for(var o=r.m;o.b;o=o.b)tr(n,o.a,t,e);return;case 3:tr(n,r.o,t,{s:r.n,t:e})}}function er(n){d[n]&&J(3)}var ur=h(function(n,r){return r});function ar(n){var t,o=[],i=d[n].u,c=(t=0,{$:2,b:function(n){var r=setTimeout(function(){n({$:0,a:Y})},t);return function(){clearTimeout(r)}},c:null});return d[n].b=c,d[n].c=m(function(n,r,t){for(;r.b;r=r.b)for(var e=o,u=i(r.a),a=0;a<e.length;a++)e[a](u);return c}),{subscribe:function(n){o.push(n)},unsubscribe:function(n){(n=(o=o.slice()).indexOf(n))<0||o.splice(n,1)}}}var or;h(function(r,t){return function(n){return r(t(n))}});var ir="undefined"!=typeof document?document:{};n(function(n,r,t,e){e=e.node;return e.parentNode.replaceChild(pr(n,function(){}),e),{}});function cr(n){return{$:0,a:n}}var fr=h(function(a,o){return h(function(n,r){for(var t=[],e=0;r.b;r=r.b){var u=r.a;e+=u.b||0,t.push(u)}return e+=t.length,{$:1,c:o,d:hr(n),e:t,f:a,b:e}})}),f=fr(void 0);h(function(a,o){return h(function(n,r){for(var t=[],e=0;r.b;r=r.b){var u=r.a;e+=u.b.b||0,t.push(u)}return e+=t.length,{$:2,c:o,d:hr(n),e:t,f:a,b:e}})})(void 0);h(function(n,r){return{$:4,j:n,k:r,b:1+(r.b||0)}});h(function(n,r){return{$:5,l:[n,r],m:function(){return n(r)},k:void 0}}),m(function(n,r,t){return{$:5,l:[n,r,t],m:function(){return p(n,r,t)},k:void 0}}),n(function(n,r,t,e){return{$:5,l:[n,r,t,e],m:function(){return y(n,r,t,e)},k:void 0}}),r(function(n,r,t,e,u){return{$:5,l:[n,r,t,e,u],m:function(){return l(n,r,t,e,u)},k:void 0}}),e(function(n,r,t,e,u,a){return{$:5,l:[n,r,t,e,u,a],m:function(){return w(n,r,t,e,u,a)},k:void 0}}),c(function(n,r,t,e,u,a,o){return{$:5,l:[n,r,t,e,u,a,o],m:function(){return G(n,r,t,e,u,a,o)},k:void 0}}),H(function(n,r,t,e,u,a,o,i){return{$:5,l:[n,r,t,e,u,a,o,i],m:function(){return I(n,r,t,e,u,a,o,i)},k:void 0}}),z(function(n,r,t,e,u,a,o,i,c){return{$:5,l:[n,r,t,e,u,a,o,i,c],m:function(){return function(n,r,t,e,u,a,o,i,c){return 8===n.a?n.f(r,t,e,u,a,o,i,c):n(r)(t)(e)(u)(a)(o)(i)(c)}(n,r,t,e,u,a,o,i,c)},k:void 0}});var br=h(function(n,r){return{$:"a0",n:n,o:r}}),sr=h(function(n,r){return{$:"a1",n:n,o:r}}),dr=h(function(n,r){return{$:"a2",n:n,o:r}}),lr=h(function(n,r){return{$:"a3",n:n,o:r}});m(function(n,r,t){return{$:"a4",n:r,o:{f:n,o:t}}});h(function(n,r){return"a0"===r.$?p(br,r.n,function(n,r){var t=Ut(r);return{$:r.$,a:t?y(It,t<3?$r:gr,u(n),r.a):p(a,n,r.a)}}(n,r.o)):r});var vr,$r=h(function(n,r){return{a:n(r.a),b:r.b}}),gr=h(function(n,r){return{E:n(r.E),aC:r.aC,ay:r.ay}});function hr(n){for(var r={};n.b;n=n.b){var t,e=n.a,u=e.$,a=e.n,e=e.o;"a2"===u?"className"===a?mr(r,a,e):r[a]=e:(t=r[u]||(r[u]={}),"a3"===u&&"class"===a?mr(t,a,e):t[a]=e)}return r}function mr(n,r,t){var e=n[r];n[r]=e?e+" "+t:t}function pr(n,r){var t=n.$;if(5===t)return pr(n.k||(n.k=n.m()),r);if(0===t)return ir.createTextNode(n.a);if(4===t){for(var e=n.k,u=n.j;4===e.$;)"object"!=typeof u?u=[u,e.j]:u.push(e.j),e=e.k;var a={j:u,p:r};(o=pr(e,a)).elm_event_node_ref=a}else if(3===t)yr(o=n.h(n.g),r,n.d);else{var o=n.f?ir.createElementNS(n.f,n.c):ir.createElement(n.c);or&&"a"==n.c&&o.addEventListener("click",or(o)),yr(o,r,n.d);for(var i=n.e,c=0;c<i.length;c++)o.appendChild(pr(1===t?i[c]:i[c].b,r))}return o}function yr(n,r,t){for(var e in t){var u=t[e];"a1"===e?function(n,r){var t,e=n.style;for(t in r)e[t]=r[t]}(n,u):"a0"===e?function(n,r,t){var e,u=n.elmFs||(n.elmFs={});for(e in t){var a=t[e],o=u[e];if(a){if(o){if(o.q.$===a.$){o.q=a;continue}n.removeEventListener(e,o)}o=function(c,n){function f(n){var r=f.q,t=s(r.a,n);if(zt(t)){for(var e,r=Ut(r),t=t.a,u=r?r<3?t.a:t.E:t,a=1==r?t.b:3==r&&t.aC,o=(a&&n.stopPropagation(),(2==r?t.b:3==r&&t.ay)&&n.preventDefault(),c);e=o.j;){if("function"==typeof e)u=e(u);else for(var i=e.length;i--;)u=e[i](u);o=o.p}o(u,a)}}return f.q=n,f}(r,a),n.addEventListener(e,o,vr&&{passive:Ut(a)<2}),u[e]=o}else n.removeEventListener(e,o),u[e]=void 0}}(n,r,u):"a3"===e?function(n,r){for(var t in r){var e=r[t];void 0!==e?n.setAttribute(t,e):n.removeAttribute(t)}}(n,u):"a4"===e?function(n,r){for(var t in r){var e=r[t],u=e.f,e=e.o;void 0!==e?n.setAttributeNS(u,t,e):n.removeAttributeNS(u,t)}}(n,u):("value"!==e&&"checked"!==e||n[e]!==u)&&(n[e]=u)}}try{window.addEventListener("t",null,Object.defineProperty({},"passive",{get:function(){vr=!0}}))}catch(n){}function wr(n,r){var t=[];return kr(n,r,t,0),t}function T(n,r,t,e){r={$:r,r:t,s:e,t:void 0,u:void 0};return n.push(r),r}function kr(n,r,t,e){if(n!==r){var u=n.$,a=r.$;if(u!==a){if(1!==u||2!==a)return void T(t,0,e,r);r=function(n){for(var r=n.e,t=r.length,e=Array(t),u=0;u<t;u++)e[u]=r[u].b;return{$:1,c:n.c,d:n.d,e:e,f:n.f,b:n.b}}(r),a=1}switch(a){case 5:for(var o=n.l,i=r.l,c=o.length,f=c===i.length;f&&c--;)f=o[c]===i[c];if(f)return void(r.k=n.k);r.k=r.m();var b=[];return kr(n.k,r.k,b,0),void(0<b.length&&T(t,1,e,b));case 4:for(var s=n.j,d=r.j,l=!1,v=n.k;4===v.$;)l=!0,"object"!=typeof s?s=[s,v.j]:s.push(v.j),v=v.k;for(var $=r.k;4===$.$;)l=!0,"object"!=typeof d?d=[d,$.j]:d.push($.j),$=$.k;return l&&s.length!==d.length?void T(t,0,e,r):((l?function(n,r){for(var t=0;t<n.length;t++)if(n[t]!==r[t])return;return 1}(s,d):s===d)||T(t,2,e,d),void kr(v,$,t,e+1));case 0:return void(n.a!==r.a&&T(t,3,e,r.a));case 1:return void Ar(n,r,t,e,jr);case 2:return void Ar(n,r,t,e,_r);case 3:if(n.h!==r.h)return void T(t,0,e,r);b=Cr(n.d,r.d),b=(b&&T(t,4,e,b),r.i(n.g,r.g));b&&T(t,5,e,b)}}}function Ar(n,r,t,e,u){var a;n.c!==r.c||n.f!==r.f?T(t,0,e,r):((a=Cr(n.d,r.d))&&T(t,4,e,a),u(n,r,t,e))}function Cr(n,r,t){var e,u,a,o,i;for(u in n)"a1"===u||"a0"===u||"a3"===u||"a4"===u?(a=Cr(n[u],r[u]||{},u))&&((e=e||{})[u]=a):u in r?(a=n[u])===(o=r[u])&&"value"!==u&&"checked"!==u||"a0"===t&&function(n,r){return n.$==r.$&&Rn(n.a,r.a)}(a,o)||((e=e||{})[u]=o):(e=e||{})[u]=t?"a1"===t?"":"a0"===t||"a3"===t?void 0:{f:n[u].f,o:void 0}:"string"==typeof n[u]?"":null;for(i in r)i in n||((e=e||{})[i]=r[i]);return e}function jr(n,r,t,e){var u=n.e,a=r.e,n=u.length,r=a.length;r<n?T(t,6,e,{v:r,i:n-r}):n<r&&T(t,7,e,{v:n,e:a});for(var o=n<r?n:r,i=0;i<o;i++){var c=u[i];kr(c,a[i],t,++e),e+=c.b||0}}function _r(n,r,t,e){for(var u=[],a={},o=[],i=n.e,c=r.e,f=i.length,b=c.length,s=0,d=0,l=e;s<f&&d<b;){var v=i[s],$=c[d],g=v.a,h=$.a,m=v.b,p=$.b,y=void 0,w=void 0;if(g===h)kr(m,p,u,++l),l+=m.b||0,s++,d++;else{var k,A,C,j,_=i[s+1],E=c[d+1];if(_&&(A=_.b,w=h===(k=_.a)),E&&(j=E.b,y=g===(C=E.a)),y&&w)kr(m,j,u,++l),xr(a,u,g,p,d,o),l+=m.b||0,Tr(a,u,g,A,++l),l+=A.b||0,s+=2,d+=2;else if(y)l++,xr(a,u,h,p,d,o),kr(m,j,u,l),l+=m.b||0,s+=1,d+=2;else if(w)Tr(a,u,g,m,++l),l+=m.b||0,kr(A,p,u,++l),l+=A.b||0,s+=2,d+=1;else{if(!_||k!==C)break;Tr(a,u,g,m,++l),xr(a,u,h,p,d,o),l+=m.b||0,kr(A,j,u,++l),l+=A.b||0,s+=2,d+=2}}}for(;s<f;){m=(v=i[s]).b;Tr(a,u,v.a,m,++l),l+=m.b||0,s++}for(;d<b;){var x=x||[];xr(a,u,($=c[d]).a,$.b,void 0,x),d++}(0<u.length||0<o.length||x)&&T(t,8,e,{w:u,x:o,y:x})}var Er="_elmW6BL";function xr(n,r,t,e,u,a){var o,i=n[t];i?1===i.c?(a.push({r:u,A:i}),i.c=2,kr(i.z,e,o=[],i.r),i.r=u,i.s.s={w:o,A:i}):xr(n,r,t+Er,e,u,a):(a.push({r:u,A:i={c:0,z:e,r:u,s:void 0}}),n[t]=i)}function Tr(n,r,t,e,u){var a,o=n[t];o?0===o.c?(o.c=2,kr(e,o.z,a=[],u),T(r,9,u,{w:a,A:o})):Tr(n,r,t+Er,e,u):(a=T(r,9,u,void 0),n[t]={c:1,z:e,r:u,s:a})}function Nr(n,r,t,e){!function n(r,t,e,u,a,o,i){var c=e[u];var f=c.r;for(;f===a;){var b,s=c.$;if(1===s?Nr(r,t.k,c.s,i):8===s?(c.t=r,c.u=i,0<(b=c.s.w).length&&n(r,t,b,0,a,o,i)):9===s?(c.t=r,c.u=i,(s=c.s)&&(s.A.s=r,0<(b=s.w).length)&&n(r,t,b,0,a,o,i)):(c.t=r,c.u=i),!(c=e[++u])||(f=c.r)>o)return u}var d=t.$;if(4===d){for(var l=t.k;4===l.$;)l=l.k;return n(r,l,e,u,a+1,o,r.elm_event_node_ref)}var v=t.e;var $=r.childNodes;for(var g=0;g<v.length;g++){var h=1===d?v[g]:v[g].b,m=++a+(h.b||0);if(a<=f&&f<=m&&(u=n($[g],h,e,u,a,m,i),!(c=e[u])||(f=c.r)>o))return u;a=m}return u}(n,r,t,0,0,r.b,e)}function Lr(n,r,t,e){return 0===t.length?n:(Nr(n,r,t,e),Br(n,t))}function Br(n,r){for(var t=0;t<r.length;t++){var e=r[t],u=e.t,e=function(n,r){switch(r.$){case 0:return function(n,r,t){var e=n.parentNode,r=pr(r,t);r.elm_event_node_ref||(r.elm_event_node_ref=n.elm_event_node_ref);e&&r!==n&&e.replaceChild(r,n);return r}(n,r.s,r.u);case 4:return yr(n,r.u,r.s),n;case 3:return n.replaceData(0,n.length,r.s),n;case 1:return Br(n,r.s);case 2:return n.elm_event_node_ref?n.elm_event_node_ref.j=r.s:n.elm_event_node_ref={j:r.s,p:r.u},n;case 6:for(var t=r.s,e=0;e<t.i;e++)n.removeChild(n.childNodes[t.v]);return n;case 7:for(var u=(t=r.s).e,e=t.v,a=n.childNodes[e];e<u.length;e++)n.insertBefore(pr(u[e],r.u),a);return n;case 9:var o;return(t=r.s)?(void 0!==(o=t.A).r&&n.parentNode.removeChild(n),o.s=Br(n,t.w)):n.parentNode.removeChild(n),n;case 8:return function(n,r){for(var t=r.s,e=function(n,r){if(n){for(var t=ir.createDocumentFragment(),e=0;e<n.length;e++){var u=n[e].A;t.appendChild(2===u.c?u.s:pr(u.z,r.u))}return t}}(t.y,r),u=(n=Br(n,t.w),t.x),a=0;a<u.length;a++){var o=u[a],i=o.A,i=2===i.c?i.s:pr(i.z,r.u);n.insertBefore(i,n.childNodes[o.r])}e&&n.appendChild(e);return n}(n,r);case 5:return r.s(n);default:J(10)}}(u,e);u===n&&(n=e)}return n}function Rr(n){if(3===n.nodeType)return{$:0,a:n.textContent};if(1!==n.nodeType)return{$:0,a:""};for(var r=j,t=n.attributes,e=t.length;e--;)var u=t[e],r={$:1,a:p(lr,u.name,u.value),b:r};for(var a=n.tagName.toLowerCase(),o=j,i=n.childNodes,e=i.length;e--;)o={$:1,a:Rr(i[e]),b:o};return y(f,a,r,o)}var Or=n(function(r,n,t,o){return Vn(n,o,r.by,r.bR,r.bO,function(t,n){var e=r.bS,u=o.node,a=Rr(u);return Pr(n,function(n){var n=e(n),r=wr(a,n);u=Lr(u,a,r,t),a=n})})}),Mr=(n(function(r,n,t,e){return Vn(n,e,r.by,r.bR,r.bO,function(e,n){var u=r.aA&&r.aA(e),a=r.bS,o=ir.title,i=ir.body,c=Rr(i);return Pr(n,function(n){or=u;var n=a(n),r=f("body")(j)(n.bk),t=wr(c,r);i=Lr(i,c,t,e),c=r,or=0,o!==n.bQ&&(ir.title=o=n.bQ)})})}),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame:function(n){return setTimeout(n,1e3/60)});function Pr(t,e){e(t);var u=0;function a(){u=1===u?0:(Mr(a),e(t),1)}return function(n,r){t=n,r?(e(t),2===u&&(u=1)):(0===u&&Mr(a),u=2)}}h(function(n,r){return p(le,ee,{$:2,b:function(){r&&history.go(r),n()},c:null})}),h(function(n,r){return p(le,ee,{$:2,b:function(){history.pushState({},"",r),n()},c:null})}),h(function(n,r){return p(le,ee,{$:2,b:function(){history.replaceState({},"",r),n()},c:null})});var Dr={addEventListener:function(){},removeEventListener:function(){}},Sr="undefined"!=typeof window?window:Dr;m(function(t,e,u){return Gn({$:2,b:function(n){function r(n){zn(u(n))}return t.addEventListener(e,r,vr&&{passive:!0}),function(){t.removeEventListener(e,r)}},c:null})}),h(function(n,r){n=s(n,r);return zt(n)?E(n.a):x});function qr(t,e){return{$:2,b:function(r){Mr(function(){var n=document.getElementById(t);r(n?{$:0,a:e(n)}:{$:1,a:Ft(t)})})},c:null}}h(function(r,n){return qr(n,function(n){return n[r](),Y})});h(function(n,r){return t=function(){return Sr.scroll(n,r),Y},{$:2,b:function(n){Mr(function(){n({$:0,a:t()})})},c:null};var t});m(function(n,r,t){return qr(n,function(n){return n.scrollLeft=r,n.scrollTop=t,Y})});h(function(n,r){return n&r}),h(function(n,r){return n|r}),h(function(n,r){return n^r});h(function(n,r){return r<<n}),h(function(n,r){return r>>n});Dr=h(function(n,r){return r>>>n});h(function(t,e){return{$:2,b:function(n){var r=setInterval(function(){zn(e)},t);return function(){clearInterval(r)}},c:null}});var Hr=m(function(e,u,a){return{$:2,b:function(r){function t(n){r(u(a.av.a(n)))}var n=new XMLHttpRequest;n.addEventListener("error",function(){t(gu)}),n.addEventListener("timeout",function(){t(pu)}),n.addEventListener("load",function(){t(function(n,r){return p(200<=r.status&&r.status<300?$u:lu,function(n){return{aE:n.responseURL,bL:n.status,bM:n.statusText,aM:function(n){if(!n)return wu;for(var r=wu,t=n.split("\r\n"),e=t.length;e--;){var u,a,o=t[e],i=o.indexOf(": ");0<i&&(u=o.substring(0,i),a=o.substring(2+i),r=y(Ru,u,function(n){return E(ku(n)?a+", "+n.a:a)},r))}return r}(n.getAllResponseHeaders())}}(r),n(r.response))}(a.av.b,n))}),ku(a.bb)&&function(r,t,e){t.upload.addEventListener("progress",function(n){t.c||zn(p(Au,r,{a:e,b:mu({bK:n.loaded,a8:n.total})}))}),t.addEventListener("progress",function(n){t.c||zn(p(Au,r,{a:e,b:hu({bH:n.loaded,a8:n.lengthComputable?E(n.total):x})}))})}(e,n,a.bb.a);try{n.open(a.bA,a.aE,!0)}catch(n){return t(vu(a.aE))}return function(n,r){for(var t=r.aM;t.b;t=t.b)n.setRequestHeader(t.a.a,t.a.b);n.timeout=r.bP.a||0,n.responseType=r.av.d,n.withCredentials=r.bi}(n,a),a.bk.a&&n.setRequestHeader("Content-Type",a.bk.a),n.send(a.bk.b),function(){n.c=!0,n.abort()}},c:null}});var zr=m(function(n,r,t){return{$:0,d:n,b:r,a:t}}),Gr=h(function(r,t){return{$:0,d:t.d,b:t.b,a:function(n){return r(t.a(n))}}});var Ir=h(function(n,r){return{$:0,a:n,b:r}});h(function(n,r){return new Blob([r],{type:n})});function Ur(n){return p(dt,"\n ",p(lt,"\n",n))}function Fr(n){return y(vt,h(function(n,r){return r+1}),0,n)}function Wr(n){return 97<=(n=pt(n))&&n<=122}function Jr(n){return(n=pt(n))<=90&&65<=n}function Vr(n){return Wr(n)||Jr(n)||function(n){n=pt(n);return n<=57&&48<=n}(n)}function Xr(n){return n.a}function Yr(n){return n}function Kr(n){return y(oe,fe(v),ue(j),n)}function Qr(n){var r=n.b;return p(me,1664525*n.a+r>>>0,r)}var E=function(n){return{$:0,a:n}},x={$:1},v=Q,Zr=W,nt=(m(function(t,n,r){var e=r.c,r=r.d,u=h(function(n,r){return y(Zr,n.$?t:u,r,n.a)});return y(Zr,u,y(Zr,t,n,r),e)}),m(function(n,r,t){for(;;){if(-2===t.$)return r;var e=t.d,u=n,a=y(n,t.b,t.c,y(nt,n,r,t.e));n=u,r=a,t=e}})),rt=function(n){return y(nt,m(function(n,r,t){return p(v,{a:n,b:r},t)}),j,n)},tt=1,et=2,ut=0,$=function(n){return{$:1,a:n}},at=h(function(n,r){return{$:3,a:n,b:r}}),ot=h(function(n,r){return{$:0,a:n,b:r}}),it=h(function(n,r){return{$:1,a:n,b:r}}),ct=function(n){return{$:0,a:n}},ft=function(n){return{$:2,a:n}},bt=sn,st=Mn,N=function(n){return n+""},dt=h(function(n,r){return p(fn,n,Z(r))}),lt=h(function(n,r){return _(p(cn,n,r))}),vt=m(function(n,r,t){for(;;){if(!t.b)return r;var e=t.b,u=n,a=p(n,t.a,r);n=u,r=a,t=e}}),$t=nn,gt=m(function(n,r,t){for(;;){if(1<=b(n,r))return t;var e=n,u=r-1,a=p(v,r,t);n=e,r=u,t=a}}),ht=h(function(n,r){return y(gt,n,r,j)}),mt=h(function(n,r){return y($t,n,p(ht,0,Fr(r)-1),r)}),pt=function(n){var r=n.charCodeAt(0);return r<55296||56319<r?r:1024*(r-55296)+n.charCodeAt(1)-56320+65536},yt=function(n){return y(vt,v,j,n)},wt=function(n){var r=n.charCodeAt(0);return isNaN(r)?x:E(r<55296||56319<r?{a:n[0],b:n.slice(1)}:{a:n[0]+n[1],b:n.slice(2)})},kt=h(function(n,r){return"\n\n("+N(n+1)+(") "+Ur(At(r)))}),At=function(n){return p(Ct,n,j)},Ct=h(function(n,r){for(;;)switch(n.$){case 0:var t=n.a,e=n.b,u=(u=a=void 0,1!==(u=wt(t)).$&&(a=(u=u.a).b,function(n){return Wr(n)||Jr(n)}(u.a))&&p(bt,Vr,a)),a=e,u=p(v,u?"."+t:"['"+t+"']",r);n=a,r=u;continue;case 1:var e=n.b,t="["+N(n.a)+"]",a=e,u=p(v,t,r);n=a,r=u;continue;case 2:var o=n.a;if(o.b){if(o.b.b)return i=(r.b?"The Json.Decode.oneOf at json"+p(dt,"",yt(r)):"Json.Decode.oneOf")+" failed in the following "+N(Fr(o))+" ways:",p(dt,"\n\n",p(v,i,p(mt,kt,o)));n=a=e=o.a,r=u=r;continue}return"Ran into a Json.Decode.oneOf with no possibilities"+(r.b?" at json"+p(dt,"",yt(r)):"!");default:var i,o=n.a,c=n.b;return(i=r.b?"Problem with the value at json"+p(dt,"",yt(r))+":\n\n ":"Problem with the given value:\n\n")+(Ur(p(st,4,c))+"\n\n")+o}var a,u}),jt=n(function(n,r,t,e){return{$:0,a:n,b:r,c:t,d:e}}),_t=[],Et=tn,xt=h(function(n,r){return an(r)/an(n)}),Tt=Et(p(xt,2,32)),Nt=l(jt,0,Tt,_t,_t),Lt=U,Bt=(h(function(n,r){return n(r)}),h(function(n,r){return r(n)}),en),Rt=function(n){return n.length},Ot=h(function(n,r){return 0<b(n,r)?n:r}),Mt=F,Pt=h(function(n,r){for(;;){var t=p(Mt,32,n),e=t.b,t=p(v,{$:0,a:t.a},r);if(!e.b)return yt(t);n=e,r=t}}),Dt=h(function(n,r){for(;;){var t=Et(r/32);if(1===t)return p(Mt,32,n).a;n=p(Pt,n,j),r=t}}),St=h(function(n,r){var t,e;return r.h?(e=Bt(p(xt,32,(t=32*r.h)-1)),n=n?yt(r.k):r.k,n=p(Dt,n,r.h),l(jt,Rt(r.j)+t,p(Ot,5,e*Tt),n,r.j)):l(jt,Rt(r.j),Tt,_t,r.j)}),qt=r(function(n,r,t,e,u){for(;;){if(r<0)return p(St,!1,{k:e,h:t/32|0,j:u});var a={$:1,a:y(Lt,32,r,n)};n=n,r=r-32,t=t,e=p(v,a,e),u=u}}),Ht=h(function(n,r){var t,e;return 0<n?(e=y(Lt,t=n%32,n-t,r),w(qt,r,n-t-32,n,j,e)):Nt}),zt=function(n){return!n.$},Gt=yn,a=wn,It=kn,u=function(n){return{$:0,a:n}},Ut=function(n){switch(n.$){case 0:return 0;case 1:return 1;case 2:return 2;default:return 3}},Ft=Yr,Wt=e(function(n,r,t,e,u,a){return{aJ:a,aO:r,aT:e,aV:t,aY:n,aZ:u}}),Jt=dn,Vt=function(n){return n.length},Xt=bn,Yt=h(function(n,r){return n<1?r:y(Xt,n,Vt(r),r)}),Kt=ln,Qt=h(function(n,r){return n<1?"":y(Xt,0,n,r)}),Zt=function(n){for(var r=0,t=n.charCodeAt(0),e=43==t||45==t?1:0,u=e;u<n.length;++u){var a=n.charCodeAt(u);if(a<48||57<a)return x;r=10*r+a-48}return u==e?x:E(45==t?-r:r)},ne=r(function(n,r,t,e,u){var a,o;return""===u||p(Jt,"@",u)?x:(a=p(Kt,":",u)).b?a.b.b||1===(o=Zt(p(Yt,(a=a.a)+1,u))).$?x:(o=o,E(G(Wt,n,p(Qt,a,u),o,r,t,e))):E(G(Wt,n,u,x,r,t,e))}),re=n(function(n,r,t,e){var u;return""===e?x:(u=p(Kt,"/",e)).b?w(ne,n,p(Yt,u=u.a,e),r,t,p(Qt,u,e)):w(ne,n,"/",r,t,e)}),te=m(function(n,r,t){var e;return""===t?x:(e=p(Kt,"?",t)).b?l(re,n,E(p(Yt,(e=e.a)+1,t)),r,p(Qt,e,t)):l(re,n,x,r,t)}),ee=(h(function(n,r){var t;return""===r?x:(t=p(Kt,"#",r)).b?y(te,n,E(p(Yt,(t=t.a)+1,r)),p(Qt,t,r)):y(te,n,x,r)}),function(n){for(;;)0}),ue=Sn,Q=ue(0),ae=n(function(n,r,t,e){var u,a,o,i;return e.b?(u=e.a,(e=e.b).b?(a=e.a,(e=e.b).b?(o=e.a,(e=e.b).b?(i=e.b,p(n,u,p(n,a,p(n,o,p(n,e.a,500<t?y(vt,n,r,yt(i)):l(ae,n,r,t+1,i)))))):p(n,u,p(n,a,p(n,o,r)))):p(n,u,p(n,a,r))):p(n,u,r)):r}),oe=m(function(n,r,t){return l(ae,n,r,0,t)}),L=h(function(t,n){return y(oe,h(function(n,r){return p(v,t(n),r)}),j,n)}),ie=qn,ce=h(function(r,n){return p(ie,function(n){return ue(r(n))},n)}),fe=m(function(t,n,e){return p(ie,function(r){return p(ie,function(n){return ue(p(t,r,n))},e)},n)}),be=Xn,se=h(function(n,r){return Gn(p(ie,be(n),r))}),W=m(function(n,r,t){return p(ce,function(n){return 0},Kr(p(L,se(n),r)))}),sn=m(function(n,r,t){return ue(0)}),Mn=h(function(n,r){return p(ce,n,r)}),de=(d.Task={b:Q,c:W,d:sn,e:Mn,f:void 0},Kn("Task")),le=h(function(n,r){return de(p(ce,n,r))}),nn=Or,o=pn,ve={$:1},$e=Qn,ge=m(function(n,r,t){return{a:n,c:r,at:t}}),he=h(function(n,r){return{d:j,n:_([y(ge,1,"Group 1",!0)]),a:n,c:r}}),me=h(function(n,r){return{$:0,a:n,b:r}}),tn=Dr;h(function(n,r){return{$:0,a:n,b:r}});Ye=Yr;function pe(n){return((n=277803737*((n=n.a)^n>>>4+(n>>>28)))>>>22^n)>>>0}function ye(n){return{$:21,a:n}}function we(n){return{$:2,a:n}}function ke(n){return{$:0,a:n}}function Ae(n){return{$:1,a:n}}function Ce(n){return bu(_([p(a,E,n),u(x)]))}function je(n){var r,t,e,u,a,o,i,c;return-1===n.$&&-1===n.d.$&&-1===n.e.$?-1!==n.e.d.$||n.e.d.a?(e=(c=n.e).b,u=c.c,a=c.d,c=c.e,w(R,1,n.b,n.c,w(R,0,(r=n.d).b,r.c,r.d,r.e),w(R,0,e,u,a,c))):(e=(t=n.e).b,u=t.c,o=(a=t.d).d,i=a.e,c=t.e,w(R,0,a.b,a.c,w(R,1,n.b,n.c,w(R,0,(r=n.d).b,r.c,r.d,r.e),o),w(R,1,e,u,i,c))):n}function _e(n){var r,t,e,u,a,o,i,c,f;return-1===n.$&&-1===n.d.$&&-1===n.e.$?-1!==n.d.d.$||n.d.d.a?(o=(f=n.e).b,i=f.c,c=f.d,f=f.e,w(R,1,r=n.b,t=n.c,w(R,0,(u=n.d).b,u.c,u.d,u=u.e),w(R,0,o,i,c,f))):(r=n.b,t=n.c,u=(e=n.d).e,o=(a=n.e).b,i=a.c,c=a.d,f=a.e,w(R,0,e.b,e.c,w(R,1,(a=e.d).b,a.c,a.d,a.e),w(R,1,r,t,u,w(R,0,o,i,c,f)))):n}function Ee(n){var r,t,e,u,a,o;return-1===n.$&&-1===n.d.$?(r=n.a,t=n.b,e=n.c,o=(u=n.d).d,a=n.e,1===u.a?-1!==o.$||o.a?-1===(o=je(n)).$?(n=o.e,w(_u,o.a,o.b,o.c,Ee(o.d),n)):yu:w(R,r,t,e,Ee(u),a):w(R,r,t,e,Ee(u),a)):yu}function xe(n){return{$:4,a:n}}function Te(n){return 1===n.$?{$:2,a:n.a}:{$:3,a:n.a}}function Ne(n){return Qu(Iu({bi:!1,bk:n.bk,av:n.av,aM:n.aM,bA:n.bA,bP:n.bP,bb:n.bb,aE:n.aE}))}function Le(n){return Qu(Iu({bi:!0,bk:n.bk,av:n.av,aM:n.aM,bA:n.bA,bP:n.bP,bb:n.bb,aE:n.aE}))}function Be(n){return n.O?Le:Ne}function Re(n){var r=n.aj,r=(n=n.a).$?r+"/new":r+("/"+N(n.a));return y(na,r,ye,du)}function Oe(e){return p(L,function(n){return A(n,{f:p(L,function(t){var n=function(){function n(r){return p(B,j,p(fa,function(n){return n.f},p(M,function(n){return k(n.a,r)&&2===n.R},e)))}var r=t.g;if(1===r.$)return x;switch(r.a.$){case 1:return p(B,x,p(fa,function(n){return n.B},p(M,function(n){return k(n.az,E(0))},n(r.a.a))));case 2:return p(B,x,p(fa,function(n){return n.B},p(M,function(n){return k(n.az,E(1))},n(r.a.a))));default:return t.B}}();return A(t,{B:n})},n.f)})},e)}function Me(n){return n.b?E(n.a):x}function Pe(n){return p(wa,function(n){var r;return Aa(_([{a:"id",b:Ca(n.a)},{a:"name",b:(r=n.c).$?ka:Ca(r.a)},{a:"_delete",b:pa(n.an)},{a:"game_positions",b:p(wa,function(n){return Aa(_([{a:"position",b:ya(n.aa)},{a:"first_hammer",b:pa(n.aI)},{a:"team_id",b:(r=n.B).$?ka:ya(r.a)},{a:"winner_id",b:(r=n.g).$||1!==r.a.$?ka:Ca(r.a.a)},{a:"loser_id",b:(r=n.g).$||2!==r.a.$?ka:Ca(r.a.a)}]));var r},n.f)},{a:"coords",b:Aa(_([{a:"group_id",b:ya((r=n.m).W)},{a:"col",b:ya(r.M)},{a:"row",b:ya(r.P)}]))}]))},n)}function De(n){return Aa(_([{a:"id",b:(r=n.a).$?ka:ya(r.a)},{a:"name_en",b:Ca(n.c)},{a:"groups",b:p(wa,function(n){return Aa(_([{a:"id",b:ya(n.a)},{a:"name",b:Ca(n.c)}]))},n.n)},{a:"games",b:Pe(n.d)}]));var r}function Se(n){switch(n.$){case 0:return n.a;case 1:return"Server is taking too long to respond. Please try again later.";case 2:return"Unable to reach server.";case 3:return"Request failed with status code: "+N(n.a);default:return n.a}}function qe(n){return n.b}function He(n){return P(p(dt," ",p(L,Xr,p(Ja,qe,n))))}function g(n){return p(Ya,"click",u(n))}function ze(n){return n.b?E(y(vt,Ot,n.a,n.b)):x}function Ge(n){return{$:1,a:n}}function Ie(n){return p(Ya,"dblclick",u(n))}function Ue(n){return p(B,10,ze(p(L,function(n){return n.m.M+5},n)))}function Fe(n){return p(Ja,function(n){return!n.an},n)}function We(n){return{$:3,a:n}}function Je(n){return{a:n,b:!0}}function Ve(n){return p(Io,"input",p(a,Je,p(a,n,Uo)))}function Xe(n){return{$:14,a:n}}var Ye,U=p(ie,function(n){return ue(function(n){var r=Qr(p(me,0,1013904223));return Qr(p(me,r.a+n>>>0,r.b))}(n))},{$:2,b:function(n){n({$:0,a:Ye(Date.now())})},c:null}),Ke=h(function(n,r){return n(r)}),Qe=m(function(r,n,t){var e,u;return n.b?(e=n.b,n=p(Ke,n.a,t),u=n.b,p(ie,function(n){return y(Qe,r,e,u)},p(be,r,n.a))):ue(t)}),en=m(function(n,r,t){return ue(t)}),Ze=h(function(t,n){var e=n;return function(n){var n=e(n),r=n.b;return{a:t(n.a),b:r}}}),F=h(function(n,r){return p(Ze,n,r)}),nu=(d.Random={b:U,c:Qe,d:en,e:F,f:void 0},Kn("Random")),yn=h(function(n,r){return nu(p(Ze,n,r))}),ru=h(function(c,f){return function(n){var r=b(c,f)<0?{a:c,b:f}:{a:f,b:c},t=r.a,e=r.b-t+1;if(!(e-1&e))return{a:((e-1&pe(n))>>>0)+t,b:Qr(n)};for(var u=(-e>>>0)%e>>>0,a=n;;){var o=pe(a),i=Qr(a);if(0<=b(o,u))return{a:o%e+t,b:i};a=i}}}),tu=n(function(u,n,r,t){var a=n,o=r,i=t;return function(n){var n=a(n),r=n.a,n=o(n.b),t=n.a,n=i(n.b),e=n.b;return{a:y(u,r,t,n.a),b:e}}}),eu=p(yn,function(n){return{$:0,a:n}},function(n){var r=m(function(n,r,t){return Qr(p(me,n,(1|r^t)>>>0))}),t=p(ru,0,4294967295);return p(Ke,l(tu,r,t,t,t),n)}),uu={$:0},au=uu,wn=n(function(n,r,t,e){return{d:e,n:t,a:n,c:r}}),ou=m(function(n,r,t){return{M:r,W:n,P:t}}),iu=c(function(n,r,t,e,u,a,o){return{m:u,am:n,a:r,an:e,c:t,f:o,R:a}}),cu=r(function(n,r,t,e,u){return{g:t,aI:r,aa:n,az:u,B:e}}),kn=$n,fu=vn,dn=function(n){return{$:3,b:n}},bn=An,ln=jn,Xn=_n,bu=function(n){return{$:11,g:n}},i=mn,su=function(n){return n.toLowerCase()},B=h(function(n,r){return r.$?n:r.a}),Mn=(Q=p(Gt,function(n){return u("won"===n?0:1)},i),W=bu(_([p(a,Ae,p(o,"winner_id",i)),p(a,we,p(o,"loser_id",i)),p(a,ke,p(o,"team_id",fu))])),W=G(ln,cu,p(o,"position",fu),p(o,"first_hammer",kn),Ce(W),Ce(p(o,"team_id",fu)),Ce(p(o,"result",Q))),Q=p(Gt,function(n){switch(su(n)){case"active":return u(1);case"complete":return u(2);default:return u(0)}},i),sn=l(bn,ou,p(o,"group_id",fu),p(o,"col",fu),p(o,"row",fu)),I(Xn,iu(x),p(o,"id",i),Ce(p(o,"name",i)),u(!1),p(o,"coords",sn),p(a,B(0),Ce(p(o,"state",Q))),p(o,"game_positions",dn(W)))),Or=l(bn,ge,p(o,"id",fu),p(o,"name",i),u(!0)),pn=Cn,du=w(pn,wn,Ce(p(o,"id",fu)),p(o,"name",i),p(o,"groups",dn(Or)),p(o,"games",dn(Mn))),lu=h(function(n,r){return{$:3,a:n,b:r}}),vu=function(n){return{$:0,a:n}},$u=h(function(n,r){return{$:4,a:n,b:r}}),gu={$:2},hu=function(n){return{$:1,a:n}},mu=function(n){return{$:0,a:n}},pu={$:1},yu={$:-2},wu=yu,ku=function(n){return!n.$},Au=Yn,Cu=X,ju=h(function(n,r){for(;;){if(-2===r.$)return x;var t=r.c,e=r.d,u=r.e;switch(p(Cu,n,r.b)){case 0:n=n,r=e;continue;case 1:return E(t);default:n=n,r=u;continue}}}),R=r(function(n,r,t,e,u){return{$:-1,a:n,b:r,c:t,d:e,e:u}}),_u=r(function(n,r,t,e,u){var a,o,i,c;return-1!==u.$||u.a?-1!==e.$||e.a||-1!==e.d.$||e.d.a?w(R,n,r,t,e,u):(a=e.d,c=e.e,w(R,0,e.b,e.c,w(R,1,a.b,a.c,a.d,a.e),w(R,1,r,t,c,u))):(a=u.b,o=u.c,i=u.d,u=u.e,-1!==e.$||e.a?w(R,n,a,o,w(R,0,r,t,e,i),u):w(R,0,r,t,w(R,1,e.b,e.c,e.d,c=e.e),w(R,1,a,o,i,u)))}),Eu=m(function(n,r,t){if(-2===t.$)return w(R,0,n,r,yu,yu);var e=t.a,u=t.b,a=t.c,o=t.d,i=t.e;switch(p(Cu,n,u)){case 0:return w(_u,e,u,a,y(Eu,n,r,o),i);case 1:return w(R,e,u,r,o,i);default:return w(_u,e,u,a,o,y(Eu,n,r,i))}}),xu=m(function(n,r,t){n=y(Eu,n,r,t);return-1!==n.$||n.a?n:w(R,1,n.b,n.c,n.d,n.e)}),Tu=c(function(n,r,t,e,u,a,o){if(-1!==a.$||a.a){for(;;){if(-1!==o.$||1!==o.a)break;if(-1!==o.d.$)return _e(r);if(1===o.d.a)return _e(r);break}return r}return w(R,t,a.b,a.c,a.d,w(R,0,e,u,a.e,o))}),Nu=h(function(n,r){var t,e,u,a,o,i,c;return-2===r.$?yu:(t=r.a,u=r.c,a=r.d,o=r.e,b(n,e=r.b)<0?-1===a.$&&1===a.a?-1!==(i=a.d).$||i.a?-1===(i=je(r)).$?(c=i.e,w(_u,i.a,i.b,i.c,p(Nu,n,i.d),c)):yu:w(R,t,e,u,p(Nu,n,a),o):w(R,t,e,u,p(Nu,n,a),o):p(Lu,n,I(Tu,n,r,t,e,u,a,o)))}),Lu=h(function(n,r){var t,e,u,a,o;return-1===r.$?(t=r.a,e=r.c,u=r.d,a=r.e,k(n,r=r.b)?-1===(o=function(n){for(;;){if(-1!==n.$||-1!==n.d.$)return n;n=n.d}}(a)).$?w(_u,t,o.b,o.c,u,Ee(a)):yu:w(_u,t,r,e,u,p(Nu,n,a))):yu}),Bu=h(function(n,r){n=p(Nu,n,r);return-1!==n.$||n.a?n:w(R,1,n.b,n.c,n.d,n.e)}),Ru=m(function(n,r,t){r=r(p(ju,n,t));return r.$?p(Bu,n,t):y(xu,n,r.a,t)}),Ou={$:0},Mu=m(function(n,r,t){return r(n(t))}),Pu=En,Du=h(function(n,r){return y(zr,"",Yr,p(Mu,r,n))}),Su=h(function(n,r){return r.$?$(n(r.a)):ct(r.a)}),qu={$:2},Hu={$:1},zu=h(function(n,r){switch(r.$){case 0:return $({$:0,a:r.a});case 1:return $(Hu);case 2:return $(qu);case 3:return $({$:3,a:r.a.bL});default:return p(Su,xe,n(r.b))}}),Gu=h(function(n,r){return p(Du,n,zu(function(n){return p(Su,At,p(Pu,r,n))}))}),Iu=function(n){return{$:1,a:n}},Uu=h(function(n,r){return{a$:n,a9:r}}),Dr=ue(p(Uu,wu,j)),Fu=function(t){return{$:2,b:function(n){var r=t.f;2===r.$&&r.c&&r.c(),t.f=null,n({$:0,a:Y})},c:null}},Wu=Gn,Ju=m(function(t,n,e){for(;;){if(!n.b)return ue(e);var u,r=n.a,a=n.b;if(r.$)return u=r.a,p(ie,function(n){var r=u.bb;return y(Ju,t,a,1===r.$?e:y(xu,r.a,n,e))},Wu(y(Hr,t,be(t),u)));var o=r.a,r=p(ju,o,e);if(1!==r.$)return p(ie,function(n){return y(Ju,t,a,p(Bu,o,e))},Fu(r.a));t=t,n=a,e=e}}),U=n(function(n,r,t,e){return p(ie,function(n){return ue(p(Uu,n,t))},y(Ju,n,r,e.a$))}),Vu=m(function(n,r,t){n=n(r);return n.$?t:p(v,n.a,t)}),Xu=h(function(n,r){return y(oe,Vu(n),j,r)}),Yu=n(function(n,r,t,e){var u=e.b;return k(r,e.a)?E(p(be,n,u(t))):x}),en=m(function(n,r,t){return p(ie,function(n){return ue(t)},Kr(p(Xu,y(Yu,n,r.a,r.b),t.a9)))}),F=h(function(n,r){var t;return r.$?Iu({bi:(t=r.a).bi,bk:t.bk,av:p(Gr,n,t.av),aM:t.aM,bA:t.bA,bP:t.bP,bb:t.bb,aE:t.aE}):{$:0,a:r.a}}),Ku=h(function(n,r){return{$:0,a:n,b:r}}),yn=h(function(n,r){return p(Ku,r.a,p(Mu,r.b,n))}),Qu=(d.Http={b:Dr,c:U,d:en,e:F,f:yn},Kn("Http")),Zu=(Kn("Http"),e(function(n,r,t,e,u,a){return p(Be,r,{bk:a,av:p(Gu,p(Mu,Te,e),u),aM:r.aM,bA:n,bP:r.bP,bb:r.bb,aE:t})})),$n=n(function(n,r,t,e){return G(Zu,"GET",n,r,t,e,Ou)}),vn=h(function(n,r){return{$:0,a:n,b:r}}),An={aM:_([p(vn,"Accept","application/json")]),O:!1,bP:x,bb:x},jn=p(vn,"Cache-Control","no-store, must-revalidate, no-cache, max-age=0"),na=$n(A(An,{aM:p(v,jn,An.aM)})),ra=function(n){return{$:20,a:n}},_n=h(function(n,r){return{a:n,c:r}}),mn=y(It,_n,p(o,"id",fu),p(o,"short_name",i)),ta=dn(mn),O=$e(j),ea=function(n){return{$:5,c:n}},ua=Qn(j),aa={$:4},oa={$:0},ia={$:3},ca=h(function(n,r){for(;;){if(!r.b)return!1;var t=r.b;if(n(r.a))return!0;n=n,r=t}}),M=h(function(n,r){for(;;){if(!r.b)return x;var t=r.a,e=r.b;if(n(t))return E(t);n=n,r=e}}),fa=h(function(n,r){return r.$?x:E(n(r.a))}),ba=h(function(n,r){function t(n){return k(n.g,E(r))?A(n,{g:x}):n}return p(L,function(n){return A(n,{f:p(L,t,n.f)})},n)}),sa=(ln=Yr,er(kn="dragstart"),d[kn]={e:ur,u:ln,a:ar},Kn(kn)),da=h(function(r,n){return p(M,function(n){return k(n.m,r)},n)}),la=n(function(n,r,t,e){return{$:0,a:n,b:r,c:t,d:e}}),Xn=r(function(a,n,r,t,e){var o=n,i=r,c=t,f=e;return function(n){var n=o(n),r=n.a,n=i(n.b),t=n.a,n=c(n.b),e=n.a,n=f(n.b),u=n.b;return{a:l(a,r,t,e,n.a),b:u}}}),va=tn(0),sn=p(Ze,va,p(ru,-2147483648,2147483647)),Q=h(function(n,r){var t=r.c,e=r.d;return l(la,r.a,va(n<<12|4294905855&r.b),t,e)}),$a=p(Ze,p(Mu,Q(4),function(n){var r=n.d;return l(la,n.a,n.b,va(2147483648|1073741823&n.c),r)}),w(Xn,la,sn,sn,sn,sn)),ga={$:0},ha=h(function(n,r){switch(r.$){case 3:return{$:3,a:n(r.a)};case 1:return ve;case 0:return ga;default:return{$:2,a:r.a}}}),ma=h(function(n,r){var t;return r.b?(t=r.b,k(n,r=r.a)?t:p(v,r,p(ma,n,t))):j}),pa=Pn,ya=Pn,wa=h(function(n,r){return y(vt,function(t){return h(function(n,r){return r.push(t(n)),r})}(n),[],r)}),ka=null,Aa=function(n){return y(vt,h(function(n,r){return y(Dn,n.a,n.b,r)}),{},n)},Ca=Pn,W=e(function(n,r,t,e,u,a){return G(Zu,n,r,t,e,u,p(Ir,"application/json",p(st,0,a)))}),ja=W("PATCH")(An),_a=W("POST")(An),Ea=h(function(n,r){var t,n=n.aj,e=m(function(n,r,t){return l(n,r,ye,du,De(t))});return 3===r.$?(t=(r=r.a).a).$?y(e,_a,n,r):y(e,ja,n+("/"+N(t.a)),r):O}),xa=rn,Ta=on,Na=m(function(n,r,t){return 0<n?y(Na,n>>1,C(r,r),1&n?C(t,r):t):t}),La=h(function(n,r){return y(Na,n,r,"")}),Ba=m(function(n,r,t){return C(p(La,n-Vt(t),function(n){return p(Ta,n,"")}(r)),t)}),Ra=function(n){return Z(n).join("")},Oa=h(function(n,r){for(;;){if(!r)return Ra(n);var t=function(){switch(15&r){case 0:return"0";case 1:return"1";case 2:return"2";case 3:return"3";case 4:return"4";case 5:return"5";case 6:return"6";case 7:return"7";case 8:return"8";case 9:return"9";case 10:return"a";case 11:return"b";case 12:return"c";case 13:return"d";case 14:return"e";default:return"f"}}();n=p(v,t,n),r=r>>>4}}),Ma=h(function(n,r){var t=r.b,e=r.c,u=r.d;return C(y(Ba,8,"0",p(Oa,j,r.a)),C(n,C(y(Ba,4,"0",p(Oa,j,t>>>16)),C(n,C(y(Ba,4,"0",p(Oa,j,65535&t)),C(n,C(y(Ba,4,"0",p(Oa,j,e>>>16)),C(n,C(y(Ba,4,"0",p(Oa,j,65535&e)),y(Ba,8,"0",p(Oa,j,u)))))))))))})("-"),Pa=function(n){return n.toUpperCase()},Da=n(function(n,r,t,e){return{$:2,a:n,b:r,c:t,d:e}}),Sa=m(function(n,r,t){var e,u={a:r,b:t,c:n};n:for(;;)switch(u.a.$){case 0:return{a:{$:1,a:s=u.a.a},b:x};case 1:return{a:uu,b:x};case 2:switch(u.b.$){case 1:var a=u.a.a;return{a:l(Da,s=u.b.a,a,0,x),b:x};case 2:var a=u.a.a,o=u.b;return{a:l(Da,s=o.a,a,0,f=o.d),b:x};default:break n}case 3:if(2!==u.b.$||u.c)break n;return s=(e=u.b).a,k(u.a.a,a=e.b)?{a:{$:1,a:s},b:x}:{a:t,b:x};case 4:switch(u.b.$){case 1:var i=u.a,a=i.a,c=i.b,f=i.c;return{a:l(Da,s=u.b.a,a,c,E(f)),b:x};case 2:var i=u.a,a=i.a,c=i.b,f=i.c,b=u.b,s=b.a;return k(c,b.c)?{a:t,b:x}:{a:l(Da,s,a,c,E(f)),b:x};default:break n}default:switch(u.b.$){case 1:var d=u.a,a=d.a,f=d.b;return{a:uu,b:E({a:s=u.b.a,b:a,c:f})};case 2:d=u.a,a=d.a,f=d.b;return{a:uu,b:E({a:s=u.b.a,b:a,c:f})};default:break n}}return{a:t,b:x}})(!1),qa=m(function(r,t,n){return p(L,function(n){return r(n)?t(n):n},n)}),bn=h(function(n,i){switch(n.$){case 0:var r=Ma(p(Ke,$a,n.a).a);return{a:A(i,{ao:E(r)}),b:O};case 1:var r=n.a,t=p(Sa,r,i.H),c=t.a,f=t.b;return{a:function(){for(;;){if(f.$)break;if(f.a.a.$){var r,t,e,u;if(1===f.a.b.$)return r=(n=f.a).a.a,t=(n=n.b.a).a,e=n.b,u=function(n){return k(n.a,t)?A(n,{f:p(L,function(n){return k(n.aa,e)?A(n,{g:E(r)}):n},n.f)}):n},A(i,{b:p(ha,function(n){return A(n,{d:Oe(p(L,u,p(ba,n.d,r)))})},i.b),i:!0,H:c});break}var n,a,o;if(f.a.b.$)break;return a=(n=f.a).a.a,o=n.b.a,A(i,{b:p(ha,function(n){return A(n,{d:y(qa,function(n){return k(n.a,a)},function(n){return A(n,{m:o})},n.d)})},i.b),i:!0,H:c})}return A(i,{H:c})}(),b:p(B,O,p(fa,p(Mu,function(n){return n.bq},sa),function(n){return n.$?x:E({bo:n.a,bq:n.b})}(r)))};case 2:return{a:A(i,{e:E(oa)}),b:O};case 3:var e=n.a;return{a:A(i,{b:p(ha,l=function(n){return A(n,{c:e})},i.b),i:!0}),b:O};case 4:return{a:A(i,{i:!0,e:x}),b:O};case 5:return{a:A(i,{b:p(ha,l=function(n){var r=Fr(n.n)+1,r=y(ge,r,"Group "+N(r),!0);return A(n,{n:C(n.n,_([r]))})},i.b),i:!0}),b:O};case 6:return{a:A(i,{e:E({$:1,a:o=n.a})}),b:O};case 7:var u=A(o=n.a,{at:!o.at}),a=function(n){return y(qa,function(n){return k(n.a,u.a)},function(n){return u},n)};return{a:A(i,{b:p(ha,l=function(n){return A(n,{n:a(n.n)})},i.b),i:!0}),b:O};case 8:u=A(o=n.a,{c:e=n.b});return{a:A(i,{e:E({$:1,a:u})}),b:O};case 9:var o=n.a,a=function(n){return y(qa,function(n){return k(n.a,o.a)},function(n){return o},n)};return{a:A(i,{b:p(ha,l=function(n){return A(n,{n:a(n.n)})},i.b),i:!0,e:x}),b:O};case 10:o=n.a;return{a:A(i,{b:p(ha,l=function(n){return A(n,{n:p(ma,o,n.n)})},i.b),i:!0,e:x}),b:O};case 11:var b=n.a;return{a:A(i,{b:p(ha,l=function(n){return A(n,{d:1!==p(da,b,n=n.d).$||(r=i.ao).$?n:C(n,_([I(iu,x,r.a,x,!1,b,0,_([w(cu,0,!1,x,x,x),w(cu,1,!0,x,x,x)]))]))});var r},i.b),i:!0}),b:eu};case 12:var s=n.a,d=function(t){return k(t.a,s.a)?A(t,{an:!0,f:j}):A(t,{f:p(L,function(n){var r=n.g;n:for(;;){if(r.$)break;switch(r.a.$){case 1:case 2:return k(r.a.a,t.a)?A(n,{g:x}):n;default:break n}}return n},t.f)})};return{a:A(i,{b:p(ha,l=function(n){return A(n,{d:p(L,d,n.d)})},i.b),i:!0,e:x}),b:O};case 13:return{a:A(i,{e:E({$:2,a:s=n.a})}),b:O};case 14:var e=n.a,d=h(function(n,r){var t=""===e?x:E(e);return A(r,{am:p(ca,function(n){var r,n={a:n.c,b:t};return!n.a.$&&!n.b.$&&(r=n.b.a,k(Pa(n.a.a),Pa(r)))},n)?E("Name is already being used."):x,c:t})}),l=h(function(r,t){return A(t,{d:y(qa,function(n){return k(n.a,r.a)},function(n){return p(d,t.d,r)},t.d)})});return{a:!(t=i.e).$&&2===t.a.$&&(t=t.a.a,3===(r=i.b).$)?A(i,{b:{$:3,a:p(l,t,r=r.a)},i:!0,e:E({$:2,a:p(d,r.d,t)})}):i,b:O};case 15:var v=n.a,$=n.b,d=m(function(o,i,n){var r=function(){var n=p(lt,"_",$);if(!n.b)return x;var r,t=n.a,e=n.b,u=(n=Me(e)).$||(n=Zt(n.a)).$||(r=n.a,(n=p(M,function(n){return k(n.a,r)},o)).$)?x:E(n.a.a),a=function(){var r,n=Me(e);return n.$||(r=n.a,(n=p(M,function(n){return k(n.a,r)},i)).$)?x:E(n.a.a)}();switch(t){case"team":return p(fa,ke,u);case"winner":return p(fa,Ae,a);case"loser":return p(fa,we,a);default:return x}}();return A(n,{f:p(L,function(n){return k(n.aa,v)?A(n,{g:r,B:r.$||r.a.$?x:E(r.a.a)}):n},n.f)})}),l=m(function(r,t,e){return A(e,{d:Oe(p(L,function(n){return k(n.a,r.a)?y(d,t,e.d,r):n},e.d))})});return{a:function(){var n,r,t={a:i.e,b:i.ac,c:i.b};return t.a.$||2!==t.a.a.$||3!==t.b.$||3!==t.c.$?i:A(i,{b:{$:3,a:y(l,n=t.a.a.a,r=t.b.a,t=t.c.a)},i:!0,e:E({$:2,a:y(d,r,t.d,n)})})}(),b:O};case 16:return{a:A(i,{e:x}),b:O};case 17:return{a:A(i,{i:!1}),b:p(Ea,i.U,i.b)};case 18:return{a:A(i,{e:E(ia)}),b:O};case 19:return{a:A(i,{b:ve,i:!1,e:x}),b:Re(i.U)};case 20:return{a:A(i,{ac:f=n.a}),b:O};case 21:f=n.a,l=function(n){return A(n,{n:p(xa,function(n){return n.a},n.n)})};return{a:A(i,{b:function(){switch(f.$){case 3:return{$:3,a:l(f.a)};case 1:return ve;default:return i.b}}(),X:2===f.$?E(3===(g=f.a).$&&422===g.a?"Validation failed and bracket was not saved. Possibly this bracket name is already being used in your event.":"Unable to save bracket. Please try again later."):x}),b:O};case 22:return{a:A(i,{X:E(f=n.a)}),b:O};case 23:return{a:A(i,{e:E(aa)}),b:O};case 24:return{a:A(i,{b:p(ha,function(n){return p(he,n.a,n.c)},i.b),i:!0,e:x}),b:O};default:return{a:A(i,{e:x}),b:O}}var g}),Ha=h(function(n,r){return p(dr,n,Ca(r))}),P=Ha("className"),za=f("h3"),Ga=f("p"),D=cr,Ia={$:5},Ua={$:17},Fa=f("a"),Wa=f("button"),Ja=h(function(t,n){return y(oe,h(function(n,r){return t(n)?p(v,n,r):r}),j,n)}),Cn=h(function(n,r){return p(dr,n,pa(r))}),Va=Cn("disabled"),S=f("div"),Xa=br,Ya=h(function(n,r){return p(Xa,n,{$:0,a:r})}),Ka={$:2},Qa=f("h2"),Za=h(function(r,n){return p(B,4,ze(p(L,function(n){return n.m.P+3},p(Ja,function(n){return k(n.m.W,r.a)},n))))}),no=f("table"),ro={$:1},to=h(function(n,r){return{$:0,a:n,b:r}}),eo=h(function(n,r){return p(lr,function(n){return/^(on|formAction$)/i.test(n)?"data-"+n:n}(n),function(n){return/^\s*(javascript:|data:text\/html)/i.test(n)?"":n}(r))}),uo=m(function(n,r,t){return n(r(t))}),ao=h(function(n,r){return p(Xa,n,{$:3,a:r})}),oo=m(function(n,r,t){var e=r.aC,u=r.ay;return p(ao,n,p(a,function(n){return{E:n,ay:u,aC:e}},t))}),io=hn,co=h(function(n,r){return _([p(eo,"draggable","true"),y(oo,"dragstart",{ay:!1,aC:!0},p(a,p(uo,n,to(r)),io)),y(oo,"dragend",{ay:!1,aC:!0},u(n(ro)))])}),fo=sr,bo=h(function(r,n){function t(n){return!r.$&&1===r.a.$&&k(n,r.a.a)}return _([p(S,C(_([He(_([{a:"game-result-connector",b:!0},{a:"dragging-connector",b:t({$:1,a:n})}]))]),p(co,Ge,{$:1,a:{$:1,a:n}})),_([p(S,_([P("game-result-connector-icon game-result-connector-winner")]),_([D("W")]))])),p(S,C(_([He(_([{a:"game-result-connector",b:!0},{a:"dragging-connector",b:t({$:2,a:n})}]))]),p(co,Ge,{$:1,a:{$:2,a:n}})),_([p(S,_([P("game-result-connector-icon game-result-connector-loser")]),_([D("L")]))]))])}),so=m(function(n,r,t){return{$:4,a:n,b:r,c:t}}),lo=h(function(n,r){return{$:5,a:n,b:r}}),wn=n(function(n,r,t,e){return{aN:r,bd:n,be:t,bf:e}}),Or=h(function(n,r){return y(oe,o,r,n)}),Mn=gn,Yn=un,vo=w(pn,wn,p(Or,_(["currentTarget","clientWidth"]),fu),p(Or,_(["currentTarget","clientHeight"]),fu),p(a,Yn,p(Or,_(["offsetX"]),Mn)),p(a,Yn,p(Or,_(["offsetY"]),Mn))),$o=p(a,Yn,p(Or,_(["timeStamp"]),Mn)),go=h(function(n,r){return _([y(oo,"dragenter",{ay:!0,aC:!0},u(n({$:2,a:r}))),y(oo,"dragleave",{ay:!0,aC:!0},u(n({$:3,a:r}))),y(oo,"dragover",{ay:!0,aC:!1},p(a,n,y(It,so(r),$o,vo))),y(oo,"drop",{ay:!0,aC:!0},p(a,p(uo,n,lo(r)),vo))])}),ho=c(function(n,r,a,o,t,e,i){var u=e?{a:"game-bottom",b:!0}:{a:"game-top",b:!0},c=function(){var n=i.g;if(n.$)return"TBD";switch(n.a.$){case 0:var r=n.a.a,t=p(M,function(n){return k(n.a,r)},a);return t.$?"TBD":t.a.c;case 1:var r=n.a.a,t=p(M,function(n){return k(n.a,r)},o);return t.$?"TBD":(e=t.a,(t=i.B).$?"W: "+p(B,"TDB",e.c):(u=t.a,p(B,p(B,"",e.c),p(fa,function(n){return n.c},p(M,function(n){return k(n.a,u)},a)))));default:var e,u,r=n.a.a,t=p(M,function(n){return k(n.a,r)},o);return t.$?"TBD":(e=t.a,(t=i.B).$?"L: "+p(B,"TDB",e.c):(u=t.a,p(B,p(B,"",e.c),p(fa,function(n){return n.c},p(M,function(n){return k(n.a,u)},a)))))}}(),r=!(t.R&&!k(i.g,x)||(n={a:n,b:r}).a.$||1!==n.a.a.$||n.b.$||1!==n.b.a.$||!k(n.b.a.a,{a:t.a,b:e}));return p(S,C(_([He(_([u,{a:"drop-target",b:r}]))]),p(go,Ge,{$:1,a:{a:t.a,b:e}})),_([D(c)]))}),mo=r(function(t,e,u,a,o){var n=!t.$&&!t.a.$&&k(t.a.a,o.a);return p(S,C(_([He(_([{a:"game",b:!0},{a:"dragging-game",b:n}])),p(fo,"left",N(50*o.m.M)+"px"),p(fo,"top",N(50*o.m.P)+"px"),Ie({$:13,a:o})]),p(co,Ge,{$:0,a:o.a})),_([p(S,_([P("d-flex game-header")]),_([p(S,_([P("game-name flex-fill")]),_([D(p(B,"TDB",o.c))])),2===o.R?D(""):p(S,_([P("game-delete align-self-end"),g({$:12,a:o})]),_([D("✘")]))])),p(S,_([P("game-body d-flex")]),_([p(S,_([P("game-positions flex-fill")]),p(mt,h(function(n,r){return I(ho,t,e,u,a,o,n,r)}),o.f)),p(S,_([P("align-self-end ml-1")]),p(bo,t,o.a))]))]))}),po=r(function(n,r,t,e,u){return p(S,_([P("games")]),p(L,l(mo,n,r,t,e),u))}),yo=f("tr"),wo=f("td"),ko=e(function(n,r,t,e,u,a){e=y(ou,e.a,a,u),u=!((a={a:r,b:t}).a.$||a.a.a.$||a.b.$||a.b.a.$||!k(a.b.a.a,e)),r=Fe(n.d);p(da,e,r);return p(wo,C(_([p(fo,"width",N(50)+"px"),p(fo,"height",N(50)+"px"),He(_([{a:"drop-target",b:u}]))]),C(p(go,Ge,{$:0,a:e}),_([Ie({$:11,a:e})]))),_([D("")]))}),Ao=r(function(n,r,t,e,u){var a=Fe(n.d);return p(yo,j,p(L,w(ko,n,r,t,e,u),p(ht,0,Ue(a)-1)))}),Co=m(function(n,r,t){return{V:r,aK:n,ae:t}}),jo=h(function(n,r){return r.b?y(oe,v,r,n):n}),_o=lr("fill"),Eo=lr("height"),xo=lr("points"),X=fr("http://www.w3.org/2000/svg"),To=X("polyline"),No=lr("stroke"),Lo=lr("stroke-dasharray"),Bo=lr("stroke-opacity"),Ro=X("svg"),Oo=lr("width"),Mo=h(function(n,i){function r(n){return N(n.a)+(","+N(n.b))+" "}var t=p(Xu,Yr,(t=p(L,function(o){var n=h(function(n,r){var t=E({a:50*o.m.M+1,b:50*o.m.P+(n?57:32)}),e=h(function(r,n){var t=p(M,function(n){return k(n.a,r)},i);return t.$?x:E({a:50*(t=t.a).m.M+175,b:50*t.m.P+(n?57:32)})}),u=r.g;n:for(;;){if(u.$)break;switch(u.a.$){case 1:var a={a:p(e,u.a.a,0),b:t};return a.a.$||a.b.$?x:E(y(Co,0,a.a.a,a.b.a));case 2:a={a:p(e,u.a.a,1),b:t};return a.a.$||a.b.$?x:E(y(Co,1,a.a.a,a.b.a));default:break n}}return x});return p(mt,n,o.f)},i),y(oe,jo,j,t)));return p(S,_([P("group-lines")]),_([p(Ro,_([Oo(N(50*(Ue(i)+1))),Eo(N(50*(p(Za,n,i)-1)))]),p(L,function(n){return p(To,_([_o("none"),Bo("0.5"),Lo("3"),No(n.aK?"red":"green"),xo(C(r({a:n.V.a+6,b:n.V.b}),C(r({a:n.V.a+11,b:n.V.b}),C(r({a:n.ae.a-8,b:n.ae.b}),r({a:n.ae.a-3,b:n.ae.b})))))]),j)},t))]))}),Po=r(function(n,r,t,e,u){var a=Fe(r.d),o=p(Ja,function(n){return k(n.m.W,u.a)},a);return p(S,_([P("group-container")]),_([p(S,_([P("d-flex")]),_([p(S,_([P("group-name btn btn-default"),g({$:7,a:u})]),_([D("☷ "+u.c)])),p(S,_([P("btn btn-default px-0"),g({$:6,a:u})]),_([D("✎")]))])),p(S,_([P("group")]),_(u.at?[p(Mo,u,o),p(no,j,p(L,l(Ao,r,t,e,u),p(ht,0,p(Za,u,a)-1))),w(po,t,e,n,a,o)]:[p(S,_([P("text-muted group-hide")]),_([D("...")]))]))]))}),Do=n(function(n,r,t,e){return p(S,j,p(L,l(Po,n,r,t,e),r.n))}),En={$:25},So=f("h5"),qo=p(S,_([P("modal-content")]),_([p(S,_([P("modal-header")]),_([p(So,_([P("modal-title")]),_([D("Confirm Clear")]))])),p(S,_([P("modal-body")]),_([p(Ga,j,_([D("DANGER: This will empty out the bracket so you can start over. Nothing will be saved until you click the Save button, but you will lose any changes made since the last save. Are you sure you want to continue?")]))])),p(S,_([P("modal-footer")]),_([p(Wa,_([g({$:24}),P("btn btn-danger mr-2")]),_([D("Continue")])),p(Wa,_([g(En),P("btn btn-secondary mr-2")]),_([D("Cancel")]))]))])),Ho={$:4},zo=Ha("id"),Go=f("input"),Io=h(function(n,r){return p(Xa,n,{$:1,a:r})}),Uo=p(Or,_(["target","value"]),i),Fo=Ha("title"),Wo=function(n){return n.trim()},Jo=Ha("value"),Vo={$:16},Xo=h(function(n,r){return{$:15,a:n,b:r}}),Yo=Ha("htmlFor"),Ko=f("i"),Qo=f("label"),Zo=f("option"),ni=f("select"),ri=Cn("selected"),ti=m(function(n,r,e){var t,u,a=m(function(n,r,t){r=!(r=r.g).$&&!r.a.$&&k(r.a.a,t.a);return p(Zo,_([Jo("team_"+N(t.a)),ri(r)]),_([D(t.c)]))}),o=Fe(r.d),i=(r=C(p(L,function(n){return E({$:1,a:n.a})},o),p(L,function(n){return E({$:2,a:n.a})},o)),p(Xu,Yr,p(Ja,function(r){function t(n){return k(r,n.g)}return 1===r.$||!r.a.$||!p(Ja,function(n){return!k(n.a,e.a)&&!!p(Ja,t,n.f).b},o).b},p(Ja,function(n){return!(k(n,E({$:1,a:e.a}))||k(n,E({$:2,a:e.a})))},r)))),c=(t=p(Ja,function(n){return!k(n.a,e.a)},o),u=h(function(r,n){return p(ca,function(n){n=n.g;return!n.$&&!n.a.$&&k(n.a.a,r.a)},n.f)}),p(Ja,function(n){return!p(Ja,u(n),t).b},n)),f=m(function(n,r,t){var e=function(){function n(r){return p(fa,function(n){return p(B,"TBD",n.c)},p(M,function(n){return k(n.a,r)},o))}switch(t.$){case 1:return E("Winner of "+p(B,"TBD",n(t.a)));case 2:return E("Loser of "+p(B,"TBD",n(t.a)));default:return x}}(),u=function(){switch(t.$){case 1:return E("winner_"+t.a);case 2:return E("loser_"+t.a);default:return x}}(),r=k(r.g,E(t)),u={a:u,b:e};return u.a.$||u.b.$?D(""):(e=u.b.a,p(Zo,_([Jo(u.a.a),ri(r)]),_([D(e)])))}),b=h(function(n,r){return C(_([p(Zo,j,j)]),C(p(L,p(a,n,r),c),p(L,p(f,n,r),i)))}),r=h(function(n,r){return p(S,_([P("form-group")]),_([p(Qo,_([Yo("editing-game")]),_([D("Team")])),p(ni,_([P("form-control"),zo("editing-game"),Ve(Xo(n)),Va(!!e.R&&!k(r.g,x))]),p(b,n,r))]))});return p(S,_([P("modal-content")]),_([p(S,_([P("modal-header")]),_([p(So,_([P("modal-title")]),_([D("Edit Game")]))])),p(S,_([P("modal-body")]),C(_([(n=e.am).$?D(""):(n=n.a,p(S,_([P("alert alert-danger")]),_([D(n)]))),p(S,_([P("form-group")]),_([p(Qo,_([Yo("editing-game-name")]),_([D("Game Name")])),p(Go,_([P("form-control"),zo("editing-game-name"),Jo(p(B,"",e.c)),Ve(Xe)]),j)]))]),p(mt,r,e.f))),p(S,_([P("modal-footer d-flex justify-content-between")]),_([p(S,_([P("text-left")]),_([e.R?p(Ko,_([P("text-danger")]),_([D("Teams cannot be assigned after game starts.")])):D("")])),p(Wa,_([g(Vo),P("btn btn-primary mr-2"),Va(!k(e.am,x))]),_([D("Close")]))]))]))}),ei=h(function(n,r){return{$:8,a:n,b:r}}),ui=h(function(n,r){var t=""===Wo(r.c),n=Fe(n.d),n=!!p(Ja,function(n){return k(n.m.W,r.a)},n).b;return p(S,_([P("modal-content")]),_([p(S,_([P("modal-header")]),_([p(So,_([P("modal-title")]),_([D("Group Name")]))])),p(S,_([P("modal-body")]),_([p(S,_([P("form-group")]),_([p(Go,_([P("form-control"),zo("editing-group-name"),Jo(r.c),Ve(ei(r))]),j)]))])),p(S,_([P("modal-footer d-flex justify-content-between")]),_([p(Wa,_([g({$:10,a:r}),P("btn btn-danger mr-2"),Va(n),Fo(n?"Remove games from this group first":"")]),_([D("Remove")])),p(Wa,_([g({$:9,a:r}),P("btn btn-primary"),Va(t),Fo(t?"Name is required":"")]),_([D("Close")]))]))]))}),ai=p(S,_([P("modal-content")]),_([p(S,_([P("modal-header")]),_([p(So,_([P("modal-title")]),_([D("Confirm Revert")]))])),p(S,_([P("modal-body")]),_([p(Ga,j,_([D("DANGER: This will revert all of your changes since the last save. Are you sure you want to continue?")]))])),p(S,_([P("modal-footer")]),_([p(Wa,_([g({$:19}),P("btn btn-danger mr-2")]),_([D("Continue")])),p(Wa,_([g(En),P("btn btn-secondary mr-2")]),_([D("Cancel")]))]))])),oi=m(function(t,e,u){return p(S,_([P("modal"),p(fo,"display","block")]),_([p(S,_([P("modal-dialog")]),_([function(){if(t.$)return D("");switch(t.a.$){case 0:return r=""===Wo(n=u.c),p(S,_([P("modal-content")]),_([p(S,_([P("modal-header")]),_([p(So,_([P("modal-title")]),_([D("Bracket Name")]))])),p(S,_([P("modal-body")]),_([p(S,_([P("form-group")]),_([p(Go,_([P("form-control"),zo("editing-bracket-name"),Jo(n),Ve(We)]),j)]))])),p(S,_([P("modal-footer d-flex justify-content-between")]),_([p(Wa,_([g(Ho),P("btn btn-primary"),Va(r),Fo(r?"Name is required":"")]),_([D("Close")]))]))]));case 1:return p(ui,u,t.a.a);case 2:return y(ti,e,u,t.a.a);case 3:return ai;default:return qo}var n,r}()]))]))}),ii=m(function(n,r,t){var e=n.U,u=n.e,a=n.H,o=n.i,n=n.X,n=n.$?D(""):(n=n.a,p(S,_([P("alert alert-danger w-75")]),_([D(n)]))),i=!k(u,x),c=function(n){switch(n.$){case 0:return x;case 1:return x;default:return E(n.b)}}(a),a=function(n){switch(n.$){case 0:return x;case 1:return E(r=n.a);default:var r=n.a;return E(r)}}(a);return p(S,_([He(_([{a:"modal-open",b:i}]))]),_([p(S,_([P("py-3")]),_([n,(n=t.c,p(S,_([P("d-flex bracket-name")]),_([p(Qa,_([g(Ka)]),_([D(n)])),p(Qa,_([P("ml-2"),g(Ka)]),_([D("✎")]))]))),l(Do,r,t,a,c),p(Wa,_([P("btn btn-primary"),g(Ia)]),_([D("Add Group")])),i?y(oi,u,r,t):p(S,_([P("save-buttons")]),_([p(Wa,_([P("btn btn-primary mr-1"),Va(!o||!Fr(t.d)),g(Ua)]),_([D("Save")])),p(Fa,_([P("btn btn-secondary"),(n=e.au,p(Ha,"href",/^javascript:/i.test((n=n).replace(/\s/g,""))?"":n))]),_([D("Exit")]))]))])),p(S,_([He(_([{a:"modal-backdrop",b:i},{a:"show",b:i}]))]),j)]))}),Dr=nn({by:function(n){return{a:{b:n.a.$?{$:3,a:p(he,x,"Playoffs")}:ve,i:!1,H:au,U:n,X:x,ao:x,e:x,ac:ve},b:$e(_([function(n){return y(na,n.aD,ra,ta)}(n),n.a.$?O:Re(n),eu]))}},bO:function(n){return ua},bR:bn,bS:function(n){var r={a:n.ac,b:n.b};n:for(;;){r:for(;;){t:for(;;){e:for(;;)switch(r.a.$){case 3:switch(r.b.$){case 3:return y(ii,n,r.a.a,r.b.a);case 0:break n;case 1:break t;default:var t=r.b.a;return p(Ga,_([P("mt-5 text-center text-danger")]),_([D(Se(t))]))}case 0:return p(za,_([P("mt-5 text-center")]),_([D("Initializing...")]));case 1:if(0!==r.b.$)break r;break n;default:switch(r.b.$){case 0:break n;case 1:break t;default:break e}}t=r.a.a;return p(Ga,_([P("mt-5 text-center text-danger")]),_([D(Se(t))]))}return p(za,_([P("mt-5 text-center")]),_([D("Loading...")]))}return p(za,_([P("mt-5 text-center")]),_([D("Loading...")]))}return p(za,_([P("mt-5 text-center")]),_([D("Initializing...")]))}});U={BracketBuilder:{init:Dr(p(Gt,function(e){return p(Gt,function(t){return p(Gt,function(r){return p(Gt,function(n){return u({au:n,aj:r,a:t,aD:e})},p(o,"backUrl",i))},p(o,"bracketsUrl",i))},p(o,"id",bu(_([ea(x),p(a,E,fu)]))))},p(o,"teamsUrl",i)))(0)}},t.Elm?function n(r,t){for(var e in t)e in r?"init"==e?J(6):n(r[e],t[e]):r[e]=t[e]}(t.Elm,U):t.Elm=U}(this);