-
Notifications
You must be signed in to change notification settings - Fork 0
/
bundle.js
1 lines (1 loc) · 132 KB
/
bundle.js
1
!function(){"use strict";let t={};(function(){!function(t){function n(t,n,e){return e.a=t,e.f=n,e}function e(t){return n(2,t,(function(n){return function(e){return t(n,e)}}))}function r(t){return n(3,t,(function(n){return function(e){return function(r){return t(n,e,r)}}}))}function a(t){return n(4,t,(function(n){return function(e){return function(r){return function(a){return t(n,e,r,a)}}}}))}function i(t){return n(5,t,(function(n){return function(e){return function(r){return function(a){return function(i){return t(n,e,r,a,i)}}}}}))}function o(t){return n(6,t,(function(n){return function(e){return function(r){return function(a){return function(i){return function(o){return t(n,e,r,a,i,o)}}}}}}))}function u(t){return n(7,t,(function(n){return function(e){return function(r){return function(a){return function(i){return function(o){return function(u){return t(n,e,r,a,i,o,u)}}}}}}}))}function c(t){return n(8,t,(function(n){return function(e){return function(r){return function(a){return function(i){return function(o){return function(u){return function(c){return t(n,e,r,a,i,o,u,c)}}}}}}}}))}function s(t){return n(9,t,(function(n){return function(e){return function(r){return function(a){return function(i){return function(o){return function(u){return function(c){return function(s){return t(n,e,r,a,i,o,u,c,s)}}}}}}}}}))}function f(t,n,e){return 2===t.a?t.f(n,e):t(n)(e)}function l(t,n,e,r){return 3===t.a?t.f(n,e,r):t(n)(e)(r)}function d(t,n,e,r,a){return 4===t.a?t.f(n,e,r,a):t(n)(e)(r)(a)}function m(t,n,e,r,a,i){return 5===t.a?t.f(n,e,r,a,i):t(n)(e)(r)(a)(i)}function b(t,n,e,r,a,i,o){return 6===t.a?t.f(n,e,r,a,i,o):t(n)(e)(r)(a)(i)(o)}function h(t,n,e,r,a,i,o,u){return 7===t.a?t.f(n,e,r,a,i,o,u):t(n)(e)(r)(a)(i)(o)(u)}function v(t,n,e,r,a,i,o,u,c){return 8===t.a?t.f(n,e,r,a,i,o,u,c):t(n)(e)(r)(a)(i)(o)(u)(c)}function p(t,n,e,r,a,i,o,u,c,s){return 9===t.a?t.f(n,e,r,a,i,o,u,c,s):t(n)(e)(r)(a)(i)(o)(u)(c)(s)}var g=r((function(t,n,e){for(var r=Array(t),a=0;t>a;a++)r[a]=e(n+a);return r})),w=e((function(t,n){for(var e=Array(t),r=0;t>r&&n.b;r++)e[r]=n.a,n=n.b;return e.length=r,x(e,n)}));function y(t){throw Error("https://github.com/elm/core/blob/1.0.0/hints/"+t+".md")}function $(t,n){for(var e,r=[],a=k(t,n,0,r);a&&(e=r.pop());a=k(e.a,e.b,0,r));return a}function k(t,n,e,r){if(t===n)return!0;if("object"!=typeof t||null===t||null===n)return"function"==typeof t&&y(5),!1;if(e>100)return r.push(x(t,n)),!0;for(var a in 0>t.$&&(t=_e(t),n=_e(n)),t)if(!k(t[a],n[a],e+1,r))return!1;return!0}function E(t,n,e){if("object"!=typeof t)return t===n?0:n>t?-1:1;if(void 0===t.$)return(e=E(t.a,n.a))||(e=E(t.b,n.b))?e:E(t.c,n.c);for(;t.b&&n.b&&!(e=E(t.a,n.a));t=t.b,n=n.b);return e||(t.b?1:n.b?-1:0)}var T=e((function(t,n){var e=E(t,n);return 0>e?Ne:e?Me:Ce}));function x(t,n){return{a:t,b:n}}function _(t,n,e){return{a:t,b:n,c:e}}function C(t,n){var e={};for(var r in t)e[r]=t[r];for(var r in n)e[r]=n[r];return e}function M(t,n){if("string"==typeof t)return t+n;if(!t.b)return n;var e=A(t.a,n);t=t.b;for(var r=e;t.b;t=t.b)r=r.b=A(t.a,n);return e}var N={$:0};function A(t,n){return{$:1,a:t,b:n}}var P=e(A);function S(t){for(var n=N,e=t.length;e--;)n=A(t[e],n);return n}function D(t){for(var n=[];t.b;t=t.b)n.push(t.a);return n}var L=r((function(t,n,e){for(var r=[];n.b&&e.b;n=n.b,e=e.b)r.push(f(t,n.a,e.a));return S(r)})),j=e((function(t,n){return S(D(n).sort((function(n,e){return E(t(n),t(e))})))})),I=e((function(t,n){return S(D(n).sort((function(n,e){var r=f(t,n,e);return r===Ce?0:r===Ne?-1:1})))})),O=e((function(t,n){return t+n})),F=e(Math.pow),W=e((function(t,n){var e=n%t;return 0===t?y(11):e>0&&0>t||0>e&&t>0?e+t:e})),R=Math.ceil,H=Math.floor,X=Math.log,U=e((function(t,n){return t+n}));var q=r((function(t,n,e){for(var r=e.length,a=0;r>a;){var i=e[a],o=e.charCodeAt(a);a++,55296>o||o>56319||(i+=e[a],a++),n=f(t,i,n)}return n})),z=r((function(t,n,e){for(var r=e.length;r--;){var a=e[r],i=e.charCodeAt(r);56320>i||i>57343||(a=e[--r]+a),n=f(t,a,n)}return n})),B=e((function(t,n){return n.split(t)})),Y=e((function(t,n){return n.join(t)})),J=r((function(t,n,e){return e.slice(t,n)}));var G=e((function(t,n){for(var e=n.length;e--;){var r=n[e],a=n.charCodeAt(e);if(56320>a||a>57343||(r=n[--e]+r),!t(r))return!1}return!0})),V=e((function(t,n){return n.indexOf(t)>-1})),Z=e((function(t,n){return 0===n.indexOf(t)})),K=e((function(t,n){return n.length>=t.length&&n.lastIndexOf(t)===n.length-t.length})),Q=e((function(t,n){var e=t.length;if(1>e)return N;for(var r=0,a=[];(r=n.indexOf(t,r))>-1;)a.push(r),r+=e;return S(a)}));function tt(t){return t+""}function nt(t){return{$:2,b:t}}var et=nt((function(t){return"number"!=typeof t?Tt("an INT",t):t>-2147483647&&2147483647>t&&(0|t)===t?Le(t):!isFinite(t)||t%1?Tt("an INT",t):Le(t)})),rt=nt((function(t){return"boolean"==typeof t?Le(t):Tt("a BOOL",t)})),at=nt((function(t){return"number"==typeof t?Le(t):Tt("a FLOAT",t)})),it=nt((function(t){return"string"==typeof t?Le(t):t instanceof String?Le(t+""):Tt("a STRING",t)}));var ot=e((function(t,n){return{$:6,d:t,b:n}})),ut=e((function(t,n){return{$:7,e:t,b:n}}));function ct(t,n){return{$:9,f:t,g:n}}var st=e((function(t,n){return{$:10,b:n,h:t}}));var ft=e((function(t,n){return ct(t,[n])})),lt=r((function(t,n,e){return ct(t,[n,e])})),dt=a((function(t,n,e,r){return ct(t,[n,e,r])})),mt=i((function(t,n,e,r,a){return ct(t,[n,e,r,a])})),bt=o((function(t,n,e,r,a,i){return ct(t,[n,e,r,a,i])})),ht=u((function(t,n,e,r,a,i,o){return ct(t,[n,e,r,a,i,o])})),vt=c((function(t,n,e,r,a,i,o,u){return ct(t,[n,e,r,a,i,o,u])})),pt=s((function(t,n,e,r,a,i,o,u,c){return ct(t,[n,e,r,a,i,o,u,c])})),gt=e((function(t,n){try{return yt(t,JSON.parse(n))}catch(t){return Ae(f(Pe,"This is not valid JSON! "+t.message,n))}})),wt=e((function(t,n){return yt(t,n)}));function yt(t,n){switch(t.$){case 2:return t.b(n);case 5:return null===n?Le(t.c):Tt("null",n);case 3:return kt(n)?$t(t.b,n,S):Tt("a LIST",n);case 4:return kt(n)?$t(t.b,n,Et):Tt("an ARRAY",n);case 6:var e=t.d;if("object"!=typeof n||null===n||!(e in n))return Tt("an OBJECT with a field named `"+e+"`",n);var r=yt(t.b,n[e]);return Tr(r)?r:Ae(f(Se,e,r.a));case 7:var a=t.e;if(!kt(n))return Tt("an ARRAY",n);if(a>=n.length)return Tt("a LONGER array. Need index "+a+" but only see "+n.length+" entries",n);r=yt(t.b,n[a]);return Tr(r)?r:Ae(f(De,a,r.a));case 8:if("object"!=typeof n||null===n||kt(n))return Tt("an OBJECT",n);var i=N;for(var o in n)if(n.hasOwnProperty(o)){r=yt(t.b,n[o]);if(!Tr(r))return Ae(f(Se,o,r.a));i=A(x(o,r.a),i)}return Le(tr(i));case 9:for(var u=t.f,c=t.g,s=0;c.length>s;s++){r=yt(c[s],n);if(!Tr(r))return r;u=u(r.a)}return Le(u);case 10:r=yt(t.b,n);return Tr(r)?yt(t.h(r.a),n):r;case 11:for(var l=N,d=t.g;d.b;d=d.b){r=yt(d.a,n);if(Tr(r))return r;l=A(r.a,l)}return Ae(je(tr(l)));case 1:return Ae(f(Pe,t.a,n));case 0:return Le(t.a)}}function $t(t,n,e){for(var r=n.length,a=Array(r),i=0;r>i;i++){var o=yt(t,n[i]);if(!Tr(o))return Ae(f(De,i,o.a));a[i]=o.a}return Le(e(a))}function kt(t){return Array.isArray(t)||"undefined"!=typeof FileList&&t instanceof FileList}function Et(t){return f(Er,t.length,(function(n){return t[n]}))}function Tt(t,n){return Ae(f(Pe,"Expecting "+t,n))}function xt(t,n){if(t===n)return!0;if(t.$!==n.$)return!1;switch(t.$){case 0:case 1:return t.a===n.a;case 2:return t.b===n.b;case 5:return t.c===n.c;case 3:case 4:case 8:return xt(t.b,n.b);case 6:return t.d===n.d&&xt(t.b,n.b);case 7:return t.e===n.e&&xt(t.b,n.b);case 9:return t.f===n.f&&_t(t.g,n.g);case 10:return t.h===n.h&&xt(t.b,n.b);case 11:return _t(t.g,n.g)}}function _t(t,n){var e=t.length;if(e!==n.length)return!1;for(var r=0;e>r;r++)if(!xt(t[r],n[r]))return!1;return!0}var Ct=e((function(t,n){return JSON.stringify(n,null,t)+""}));function Mt(t){return t}var Nt=r((function(t,n,e){return e[t]=n,e}));function At(t){return{$:0,a:t}}function Pt(t){return{$:2,b:t,c:null}}var St=e((function(t,n){return{$:3,b:t,d:n}})),Dt=e((function(t,n){return{$:4,b:t,d:n}}));var Lt=0;function jt(t){var n={$:0,e:Lt++,f:t,g:null,h:[]};return Ht(n),n}function It(t){return Pt((function(n){n(At(jt(t)))}))}function Ot(t,n){t.h.push(n),Ht(t)}var Ft=e((function(t,n){return Pt((function(e){Ot(t,n),e(At(0))}))}));var Wt=!1,Rt=[];function Ht(t){if(Rt.push(t),!Wt){for(Wt=!0;t=Rt.shift();)Xt(t);Wt=!1}}function Xt(t){for(;t.f;){var n=t.f.$;if(0===n||1===n){for(;t.g&&t.g.$!==n;)t.g=t.g.i;if(!t.g)return;t.f=t.g.b(t.f.a),t.g=t.g.i}else{if(2===n)return void(t.f.c=t.f.b((function(n){t.f=n,Ht(t)})));if(5===n){if(0===t.h.length)return;t.f=t.f.b(t.h.shift())}else t.g={$:3===n?0:1,b:t.f.b,i:t.g},t.f=t.f.d}}}function Ut(t,n,e,r,a,i){var o=f(wt,t,n?n.flags:void 0);Tr(o)||y(2);var u={},c=(o=e(o.a)).a,s=i(d,c),l=function(t,n){var e;for(var r in qt){var a=qt[r];a.a&&((e=e||{})[r]=a.a(r,n)),t[r]=Bt(a,n)}return e}(u,d);function d(t,n){s(c=(o=f(r,t,c)).a,n),tn(u,o.b,a(c))}return tn(u,o.b,a(c)),l?{ports:l}:{}}var qt={};function zt(t,n,e,r,a){return{b:t,c:n,d:e,e:r,f:a}}function Bt(t,n){var e={g:n,h:void 0},r=t.c,a=t.d,i=t.e,o=t.f;function u(t){return f(St,u,{$:5,b:function(n){var u=n.a;return 0===n.$?l(a,e,u,t):i&&o?d(r,e,u.i,u.j,t):l(r,e,i?u.i:u.j,t)}})}return e.h=jt(f(St,u,t.b))}var Yt=e((function(t,n){return Pt((function(e){t.g(n),e(At(0))}))})),Jt=e((function(t,n){return f(Ft,t.h,{$:0,a:n})}));function Gt(t){return function(n){return{$:1,k:t,l:n}}}function Vt(t){return{$:2,m:t}}var Zt=e((function(t,n){return{$:3,n:t,o:n}})),Kt=[],Qt=!1;function tn(t,n,e){if(Kt.push({p:t,q:n,r:e}),!Qt){Qt=!0;for(var r;r=Kt.shift();)nn(r.p,r.q,r.r);Qt=!1}}function nn(t,n,e){var r={};for(var a in en(!0,n,r,null),en(!1,e,r,null),t)Ot(t[a],{$:"fx",a:r[a]||{i:N,j:N}})}function en(t,n,e,r){switch(n.$){case 1:var a=n.k,i=function(t,n,e,r){function a(t){for(var n=e;n;n=n.t)t=n.s(t);return t}return f(t?qt[n].e:qt[n].f,a,r)}(t,a,r,n.l);return void(e[a]=function(t,n,e){return e=e||{i:N,j:N},t?e.i=A(n,e.i):e.j=A(n,e.j),e}(t,i,e[a]));case 2:for(var o=n.m;o.b;o=o.b)en(t,o.a,e,r);return;case 3:return void en(t,n.o,e,{s:n.n,t:r})}}function rn(t){qt[t]&&y(3)}function an(t,n){return rn(t),qt[t]={e:on,u:n,a:un},Gt(t)}var on=e((function(t,n){return n}));function un(t){var n,e=[],a=qt[t].u,i=(n=0,Pt((function(t){var e=setTimeout((function(){t(At(0))}),n);return function(){clearTimeout(e)}})));return qt[t].b=i,qt[t].c=r((function(t,n){for(;n.b;n=n.b)for(var r=e,o=a(n.a),u=0;r.length>u;u++)r[u](o);return i})),{subscribe:function(t){e.push(t)},unsubscribe:function(t){var n=(e=e.slice()).indexOf(t);0>n||e.splice(n,1)}}}var cn,sn=e((function(t,n){return function(e){return t(n(e))}}));function fn(t,n){var e=N,a=qt[t].u,i=At(null);return qt[t].b=i,qt[t].c=r((function(t,n){return e=n,i})),{send:function(t){var r=f(wt,a,t);Tr(r)||y(4);for(var i=r.a,o=e;o.b;o=o.b)n(o.a(i))}}}function ln(t,n){for(var e in n)e in t?"init"==e?y(6):ln(t[e],n[e]):t[e]=n[e]}var dn="undefined"!=typeof document?document:{};function mn(t,n){t.appendChild(n)}function bn(t){return{$:0,a:t}}var hn=e((function(t,n){return e((function(e,r){for(var a=[],i=0;r.b;r=r.b){var o=r.a;i+=o.b||0,a.push(o)}return i+=a.length,{$:1,c:n,d:En(e),e:a,f:t,b:i}}))}))(void 0),vn=(e((function(t,n){return e((function(e,r){for(var a=[],i=0;r.b;r=r.b){var o=r.a;i+=o.b.b||0,a.push(o)}return i+=a.length,{$:2,c:n,d:En(e),e:a,f:t,b:i}}))}))(void 0),e((function(t,n){return{$:4,j:t,k:n,b:1+(n.b||0)}})));var pn=e((function(t,n){return{$:"a0",n:t,o:n}})),gn=e((function(t,n){return{$:"a1",n:t,o:n}})),wn=e((function(t,n){return{$:"a2",n:t,o:n}})),yn=e((function(t,n){return{$:"a3",n:t,o:n}}));function $n(t){return/^\s*(javascript:|data:text\/html)/i.test(t)?"":t}var kn;function En(t){for(var n={};t.b;t=t.b){var e=t.a,r=e.$,a=e.n,i=e.o;if("a2"!==r){var o=n[r]||(n[r]={});"a3"===r&&"class"===a?Tn(o,a,i):o[a]=i}else"className"===a?Tn(n,a,i):n[a]=i}return n}function Tn(t,n,e){var r=t[n];t[n]=r?r+" "+e:e}function xn(t,n){var e=t.$;if(5===e)return xn(t.k||(t.k=t.m()),n);if(0===e)return dn.createTextNode(t.a);if(4===e){for(var r=t.k,a=t.j;4===r.$;)"object"!=typeof a?a=[a,r.j]:a.push(r.j),r=r.k;var i={j:a,p:n};return(o=xn(r,i)).elm_event_node_ref=i,o}if(3===e)return _n(o=t.h(t.g),n,t.d),o;var o=t.f?dn.createElementNS(t.f,t.c):dn.createElement(t.c);cn&&"a"==t.c&&o.addEventListener("click",cn(o)),_n(o,n,t.d);for(var u=t.e,c=0;u.length>c;c++)mn(o,xn(1===e?u[c]:u[c].b,n));return o}function _n(t,n,e){for(var r in e){var a=e[r];"a1"===r?Cn(t,a):"a0"===r?An(t,n,a):"a3"===r?Mn(t,a):"a4"===r?Nn(t,a):("value"!==r&&"checked"!==r||t[r]!==a)&&(t[r]=a)}}function Cn(t,n){var e=t.style;for(var r in n)e[r]=n[r]}function Mn(t,n){for(var e in n){var r=n[e];void 0!==r?t.setAttribute(e,r):t.removeAttribute(e)}}function Nn(t,n){for(var e in n){var r=n[e],a=r.f,i=r.o;void 0!==i?t.setAttributeNS(a,e,i):t.removeAttributeNS(a,e)}}function An(t,n,e){var r=t.elmFs||(t.elmFs={});for(var a in e){var i=e[a],o=r[a];if(i){if(o){if(o.q.$===i.$){o.q=i;continue}t.removeEventListener(a,o)}o=Pn(n,i),t.addEventListener(a,o,kn&&{passive:2>Nr(i)}),r[a]=o}else t.removeEventListener(a,o),r[a]=void 0}}try{window.addEventListener("t",null,Object.defineProperty({},"passive",{get:function(){kn=!0}}))}catch(t){}function Pn(t,n){function e(n){var r=e.q,a=yt(r.a,n);if(Tr(a)){for(var i,o=Nr(r),u=a.a,c=o?3>o?u.a:u.bF:u,s=1==o?u.b:3==o&&u.bh,f=(s&&n.stopPropagation(),(2==o?u.b:3==o&&u.be)&&n.preventDefault(),t);i=f.j;){if("function"==typeof i)c=i(c);else for(var l=i.length;l--;)c=i[l](c);f=f.p}f(c,s)}}return e.q=n,e}function Sn(t,n){return t.$==n.$&&xt(t.a,n.a)}function Dn(t,n){var e=[];return jn(t,n,e,0),e}function Ln(t,n,e,r){var a={$:n,r:e,s:r,t:void 0,u:void 0};return t.push(a),a}function jn(t,n,e,r){if(t!==n){var a=t.$,i=n.$;if(a!==i){if(1!==a||2!==i)return void Ln(e,0,r,n);n=function(t){for(var n=t.e,e=n.length,r=Array(e),a=0;e>a;a++)r[a]=n[a].b;return{$:1,c:t.c,d:t.d,e:r,f:t.f,b:t.b}}(n),i=1}switch(i){case 5:for(var o=t.l,u=n.l,c=o.length,s=c===u.length;s&&c--;)s=o[c]===u[c];if(s)return void(n.k=t.k);n.k=n.m();var f=[];return jn(t.k,n.k,f,0),void(f.length>0&&Ln(e,1,r,f));case 4:for(var l=t.j,d=n.j,m=!1,b=t.k;4===b.$;)m=!0,"object"!=typeof l?l=[l,b.j]:l.push(b.j),b=b.k;for(var h=n.k;4===h.$;)m=!0,"object"!=typeof d?d=[d,h.j]:d.push(h.j),h=h.k;return m&&l.length!==d.length?void Ln(e,0,r,n):((m?function(t,n){for(var e=0;t.length>e;e++)if(t[e]!==n[e])return!1;return!0}(l,d):l===d)||Ln(e,2,r,d),void jn(b,h,e,r+1));case 0:return void(t.a!==n.a&&Ln(e,3,r,n.a));case 1:return void In(t,n,e,r,Fn);case 2:return void In(t,n,e,r,Wn);case 3:if(t.h!==n.h)return void Ln(e,0,r,n);var v=On(t.d,n.d);v&&Ln(e,4,r,v);var p=n.i(t.g,n.g);return void(p&&Ln(e,5,r,p))}}}function In(t,n,e,r,a){if(t.c===n.c&&t.f===n.f){var i=On(t.d,n.d);i&&Ln(e,4,r,i),a(t,n,e,r)}else Ln(e,0,r,n)}function On(t,n,e){var r;for(var a in t)if("a1"!==a&&"a0"!==a&&"a3"!==a&&"a4"!==a)if(a in n){var i=t[a],o=n[a];i===o&&"value"!==a&&"checked"!==a||"a0"===e&&Sn(i,o)||((r=r||{})[a]=o)}else(r=r||{})[a]=e?"a1"===e?"":"a0"===e||"a3"===e?void 0:{f:t[a].f,o:void 0}:"string"==typeof t[a]?"":null;else{var u=On(t[a],n[a]||{},a);u&&((r=r||{})[a]=u)}for(var c in n)c in t||((r=r||{})[c]=n[c]);return r}function Fn(t,n,e,r){var a=t.e,i=n.e,o=a.length,u=i.length;o>u?Ln(e,6,r,{v:u,i:o-u}):u>o&&Ln(e,7,r,{v:o,e:i});for(var c=u>o?o:u,s=0;c>s;s++){var f=a[s];jn(f,i[s],e,++r),r+=f.b||0}}function Wn(t,n,e,r){for(var a=[],i={},o=[],u=t.e,c=n.e,s=u.length,f=c.length,l=0,d=0,m=r;s>l&&f>d;){var b=(_=u[l]).a,h=(C=c[d]).a,v=_.b,p=C.b,g=void 0,w=void 0;if(b!==h){var y=u[l+1],$=c[d+1];if(y){var k=y.a,E=y.b;w=h===k}if($){var T=$.a,x=$.b;g=b===T}if(g&&w)jn(v,x,a,++m),Hn(i,a,b,p,d,o),m+=v.b||0,Xn(i,a,b,E,++m),m+=E.b||0,l+=2,d+=2;else if(g)m++,Hn(i,a,h,p,d,o),jn(v,x,a,m),m+=v.b||0,l+=1,d+=2;else if(w)Xn(i,a,b,v,++m),m+=v.b||0,jn(E,p,a,++m),m+=E.b||0,l+=2,d+=1;else{if(!y||k!==T)break;Xn(i,a,b,v,++m),Hn(i,a,h,p,d,o),m+=v.b||0,jn(E,x,a,++m),m+=E.b||0,l+=2,d+=2}}else jn(v,p,a,++m),m+=v.b||0,l++,d++}for(;s>l;){var _;m++,Xn(i,a,(_=u[l]).a,v=_.b,m),m+=v.b||0,l++}for(;f>d;){var C,M=M||[];Hn(i,a,(C=c[d]).a,C.b,void 0,M),d++}(a.length>0||o.length>0||M)&&Ln(e,8,r,{w:a,x:o,y:M})}var Rn="_elmW6BL";function Hn(t,n,e,r,a,i){var o=t[e];if(!o)return i.push({r:a,A:o={c:0,z:r,r:a,s:void 0}}),void(t[e]=o);if(1===o.c){i.push({r:a,A:o}),o.c=2;var u=[];return jn(o.z,r,u,o.r),o.r=a,void(o.s.s={w:u,A:o})}Hn(t,n,e+Rn,r,a,i)}function Xn(t,n,e,r,a){var i=t[e];if(i){if(0===i.c){i.c=2;var o=[];return jn(r,i.z,o,a),void Ln(n,9,a,{w:o,A:i})}Xn(t,n,e+Rn,r,a)}else{var u=Ln(n,9,a,void 0);t[e]={c:1,z:r,r:a,s:u}}}function Un(t,n,e,r){qn(t,n,e,0,0,n.b,r)}function qn(t,n,e,r,a,i,o){for(var u=e[r],c=u.r;c===a;){var s=u.$;if(1===s)Un(t,n.k,u.s,o);else if(8===s){u.t=t,u.u=o,(f=u.s.w).length>0&&qn(t,n,f,0,a,i,o)}else if(9===s){u.t=t,u.u=o;var f,l=u.s;if(l)l.A.s=t,(f=l.w).length>0&&qn(t,n,f,0,a,i,o)}else u.t=t,u.u=o;if(!(u=e[++r])||(c=u.r)>i)return r}var d=n.$;if(4===d){for(var m=n.k;4===m.$;)m=m.k;return qn(t,m,e,r,a+1,i,t.elm_event_node_ref)}for(var b=n.e,h=t.childNodes,v=0;b.length>v;v++){a++;var p=1===d?b[v]:b[v].b,g=a+(p.b||0);if(!(a>c||c>g||(u=e[r=qn(h[v],p,e,r,a,g,o)])&&(c=u.r)<=i))return r;a=g}return r}function zn(t,n,e,r){return 0===e.length?t:(Un(t,n,e,r),Bn(t,e))}function Bn(t,n){for(var e=0;n.length>e;e++){var r=n[e],a=r.t,i=Yn(a,r);a===t&&(t=i)}return t}function Yn(t,n){switch(n.$){case 0:return function(t,n,e){var r=t.parentNode,a=xn(n,e);a.elm_event_node_ref||(a.elm_event_node_ref=t.elm_event_node_ref);r&&a!==t&&r.replaceChild(a,t);return a}(t,n.s,n.u);case 4:return _n(t,n.u,n.s),t;case 3:return t.replaceData(0,t.length,n.s),t;case 1:return Bn(t,n.s);case 2:return t.elm_event_node_ref?t.elm_event_node_ref.j=n.s:t.elm_event_node_ref={j:n.s,p:n.u},t;case 6:for(var e=n.s,r=0;e.i>r;r++)t.removeChild(t.childNodes[e.v]);return t;case 7:for(var a=(e=n.s).e,i=t.childNodes[r=e.v];a.length>r;r++)t.insertBefore(xn(a[r],n.u),i);return t;case 9:if(!(e=n.s))return t.parentNode.removeChild(t),t;var o=e.A;return void 0!==o.r&&t.parentNode.removeChild(t),o.s=Bn(t,e.w),t;case 8:return function(t,n){var e=n.s,r=function(t,n){if(!t)return;for(var e=dn.createDocumentFragment(),r=0;t.length>r;r++){var a=t[r].A;mn(e,2===a.c?a.s:xn(a.z,n.u))}return e}(e.y,n);t=Bn(t,e.w);for(var a=e.x,i=0;a.length>i;i++){var o=a[i],u=o.A,c=2===u.c?u.s:xn(u.z,n.u);t.insertBefore(c,t.childNodes[o.r])}r&&mn(t,r);return t}(t,n);case 5:return n.s(t);default:y(10)}}function Jn(t){if(3===t.nodeType)return bn(t.textContent);if(1!==t.nodeType)return bn("");for(var n=N,e=t.attributes,r=e.length;r--;){var a=e[r];n=A(f(yn,a.name,a.value),n)}var i=t.tagName.toLowerCase(),o=N,u=t.childNodes;for(r=u.length;r--;)o=A(Jn(u[r]),o);return l(hn,i,n,o)}var Gn=a((function(t,n,e,r){return Ut(n,r,t.cn,t.cR,t.cK,(function(n,e){var r=t.bf&&t.bf(n),a=t.cT,i=dn.title,o=dn.body,u=Jn(o);return Zn(e,(function(t){cn=r;var e=a(t),c=hn("body")(N)(e.b8),s=Dn(u,c);o=zn(o,u,s,n),u=c,cn=0,i!==e.cO&&(dn.title=i=e.cO)}))}))})),Vn="undefined"!=typeof requestAnimationFrame?requestAnimationFrame:function(t){return setTimeout(t,1e3/60)};function Zn(t,n){n(t);var e=0;function r(){e=1===e?0:(Vn(r),n(t),1)}return function(a,i){t=a,i?(n(t),2===e&&(e=1)):(0===e&&Vn(r),e=2)}}function Kn(){return Jr(dn.location.href).a||y(1)}var Qn=e((function(t,n){return f(ca,Gr,Pt((function(){history.pushState({},"",n),t()})))})),te=e((function(t,n){return f(ca,Gr,Pt((function(){history.replaceState({},"",n),t()})))})),ne={addEventListener:function(){},removeEventListener:function(){}},ee="undefined"!=typeof document?document:ne,re="undefined"!=typeof window?window:ne,ae=r((function(t,n,e){return It(Pt((function(){function r(t){jt(e(t))}return t.addEventListener(n,r,kn&&{passive:!0}),function(){t.removeEventListener(n,r)}})))})),ie=e((function(t,n){var e=yt(t,n);return Tr(e)?ke(e.a):Ee}));function oe(t,n){return Pt((function(e){Vn((function(){var r=document.getElementById(t);e(r?At(n(r)):{$:1,a:Dr(t)})}))}))}var ue=e((function(t,n){return oe(n,(function(n){return n[t](),0}))}));var ce=e((function(t,n){return e=function(){return re.scroll(t,n),0},Pt((function(t){Vn((function(){t(At(e()))}))}));var e}));var se=r((function(t,n,e){return Pt((function(r){function a(t){r(n(e.cg.a(t)))}var i=new XMLHttpRequest;i.addEventListener("error",(function(){a(Ma)})),i.addEventListener("timeout",(function(){a(Pa)})),i.addEventListener("load",(function(){a(function(t,n){return f(n.status>=200&&300>n.status?Ca:xa,function(t){return{T:t.responseURL,bY:t.status,cH:t.statusText,ci:fe(t.getAllResponseHeaders())}}(n),t(n.response))}(e.cg.b,i))})),La(e.cP)&&function(t,n,e){n.upload.addEventListener("progress",(function(r){n.c||jt(f(ja,t,x(e,Aa({cG:r.loaded,bW:r.total}))))})),n.addEventListener("progress",(function(r){n.c||jt(f(ja,t,x(e,Na({cC:r.loaded,bW:r.lengthComputable?ke(r.total):Ee}))))}))}(t,i,e.cP.a);try{i.open(e.cs,e.T,!0)}catch(t){return a(_a(e.T))}return function(t,n){for(var e=n.ci;e.b;e=e.b)t.setRequestHeader(e.a.a,e.a.b);t.timeout=n.cN.a||0,t.responseType=n.cg.d,t.withCredentials=n.b5}(i,e),e.b8.a&&i.setRequestHeader("Content-Type",e.b8.a),i.send(e.b8.b),function(){i.c=!0,i.abort()}}))}));function fe(t){if(!t)return Da;for(var n=Da,e=t.split("\r\n"),r=e.length;r--;){var a=e[r],i=a.indexOf(": ");if(i>0){var o=a.substring(0,i),u=a.substring(i+2);n=l(Ga,o,(function(t){return ke(La(t)?u+", "+t.a:u)}),n)}}return n}var le=r((function(t,n,e){return{$:0,d:t,b:n,a:e}})),de=e((function(t,n){return{$:0,d:n.d,b:n.b,a:function(e){return t(n.a(e))}}})),me=e((function(t,n){return{$:0,a:t,b:n}}));var be=e((function(t,n){return Pt((function(){var e=setInterval((function(){jt(n)}),t);return function(){clearInterval(e)}}))}));var he=e((function(t,n){var e="g";t.ct&&(e+="m"),t.b9&&(e+="i");try{return ke(RegExp(n,e))}catch(t){return Ee}})),ve=e((function(t,n){return null!==n.match(t)})),pe=r((function(t,n,e){for(var r,a=[],i=0,o=e,u=n.lastIndex,c=-1;i++<t&&(r=n.exec(o))&&c!=n.lastIndex;){for(var s=r.length-1,f=Array(s);s>0;){var l=r[s];f[--s]=l?ke(l):Ee}a.push(d(ls,r[0],r.index,i,S(f))),c=n.lastIndex}return n.lastIndex=u,S(a)})),ge=i((function(t,n,e,r,a){for(var i=t.length,o=a.length>=n+i,u=0;o&&i>u;){var c=a.charCodeAt(n);o=t[u++]===a[n++]&&(10===c?(e++,r=1):(r++,55296==(63488&c)?t[u++]===a[n++]:1))}return _(o?n:-1,e,r)})),we=r((function(t,n,e){return e.length>n?55296==(63488&e.charCodeAt(n))?t(e.substr(n,2))?n+2:-1:t(e[n])?"\n"===e[n]?-2:n+1:-1:-1})),ye=i((function(t,n,e,r,a){for(var i=a.indexOf(t,n),o=0>i?a.length:i+t.length;o>n;){var u=a.charCodeAt(n++);10===u?(r=1,e++):(r++,55296==(63488&u)&&n++)}return _(i,e,r)})),$e=e((function(t,n){return{$:0,a:t,b:n}})),ke=function(t){return{$:0,a:t}},Ee={$:1},Te=P,xe=r((function(t,n,e){for(;;){if(-2===e.$)return n;var r=e.d,a=t,i=l(t,e.b,e.c,l(xe,t,n,e.e));t=a,n=i,e=r}})),_e=function(t){return l(xe,r((function(t,n,e){return f(Te,x(t,n),e)})),N,t)},Ce=1,Me=2,Ne=0,Ae=function(t){return{$:1,a:t}},Pe=e((function(t,n){return{$:3,a:t,b:n}})),Se=e((function(t,n){return{$:0,a:t,b:n}})),De=e((function(t,n){return{$:1,a:t,b:n}})),Le=function(t){return{$:0,a:t}},je=function(t){return{$:2,a:t}},Ie=O,Oe=G,Fe=Ct,We=tt,Re=e((function(t,n){return f(Y,t,D(n))})),He=e((function(t,n){return S(f(B,t,n))})),Xe=function(t){return f(Re,"\n ",f(He,"\n",t))},Ue=r((function(t,n,e){for(;;){if(!e.b)return n;var r=e.b,a=t,i=f(t,e.a,n);t=a,n=i,e=r}})),qe=function(t){return l(Ue,e((function(t,n){return n+1})),0,t)},ze=L,Be=r((function(t,n,e){for(;;){if(E(t,n)>=1)return e;var r=t,a=n-1,i=f(Te,n,e);t=r,n=a,e=i}})),Ye=e((function(t,n){return l(Be,t,n,N)})),Je=e((function(t,n){return l(ze,t,f(Ye,0,qe(n)-1),n)})),Ge=function(t){var n=t.charCodeAt(0);return 55296>n||n>56319?n:1024*(n-55296)+t.charCodeAt(1)-56320+65536},Ve=function(t){var n=Ge(t);return n>=97&&122>=n},Ze=function(t){var n=Ge(t);return 90>=n&&n>=65},Ke=function(t){return Ve(t)||Ze(t)},Qe=function(t){return Ve(t)||Ze(t)||function(t){var n=Ge(t);return 57>=n&&n>=48}(t)},tr=function(t){return l(Ue,Te,N,t)},nr=function(t){var n=t.charCodeAt(0);return isNaN(n)?Ee:ke(55296>n||n>56319?x(t[0],t.slice(1)):x(t[0]+t[1],t.slice(2)))},er=e((function(t,n){return"\n\n("+We(t+1)+") "+Xe(rr(n))})),rr=function(t){return f(ar,t,N)},ar=e((function(t,n){t:for(;;)switch(t.$){case 0:var e=t.a,r=t.b,a=function(){var t=nr(e);if(1===t.$)return!1;var n=t.a,r=n.b;return Ke(n.a)&&f(Oe,Qe,r)}();t=r,n=f(Te,a?"."+e:"['"+e+"']",n);continue t;case 1:r=t.b;var i="["+We(t.a)+"]";t=r,n=f(Te,i,n);continue t;case 2:var o=t.a;if(o.b){if(o.b.b){var u=(n.b?"The Json.Decode.oneOf at json"+f(Re,"",tr(n)):"Json.Decode.oneOf")+" failed in the following "+We(qe(o))+" ways:";return f(Re,"\n\n",f(Te,u,f(Je,er,o)))}t=r=o.a,n=n;continue t}return"Ran into a Json.Decode.oneOf with no possibilities"+(n.b?" at json"+f(Re,"",tr(n)):"!");default:var c=t.a,s=t.b;return(u=n.b?"Problem with the value at json"+f(Re,"",tr(n))+":\n\n ":"Problem with the given value:\n\n")+(Xe(f(Fe,4,s))+"\n\n")+c}})),ir=32,or=a((function(t,n,e,r){return{$:0,a:t,b:n,c:e,d:r}})),ur=[],cr=R,sr=e((function(t,n){return X(n)/X(t)})),fr=cr(f(sr,2,ir)),lr=d(or,0,fr,ur,ur),dr=g,mr=e((function(t,n){return t(n)})),br=H,hr=function(t){return t.length},vr=e((function(t,n){return E(t,n)>0?t:n})),pr=w,gr=e((function(t,n){for(;;){var e=f(pr,ir,t),r=e.b,a=f(Te,{$:0,a:e.a},n);if(!r.b)return tr(a);t=r,n=a}})),wr=function(t){return t.a},yr=e((function(t,n){for(;;){var e=cr(n/ir);if(1===e)return f(pr,ir,t).a;t=f(gr,t,N),n=e}})),$r=e((function(t,n){if(n.f){var e=n.f*ir,r=br(f(sr,ir,e-1)),a=t?tr(n.h):n.h,i=f(yr,a,n.f);return d(or,hr(n.g)+e,f(vr,5,r*fr),i,n.g)}return d(or,hr(n.g),fr,ur,n.g)})),kr=i((function(t,n,e,r,a){for(;;){if(0>n)return f($r,!1,{h:r,f:e/ir|0,g:a});var i={$:1,a:l(dr,ir,n,t)};t=t,n=n-ir,e=e,r=f(Te,i,r),a=a}})),Er=e((function(t,n){if(t>0){var e=t%ir;return m(kr,n,t-e-ir,t,N,l(dr,e,t-e,n))}return lr})),Tr=function(t){return!t.$},xr=st,_r=ft,Cr=lt,Mr=function(t){return{$:0,a:t}},Nr=function(t){switch(t.$){case 0:return 0;case 1:return 1;case 2:return 2;default:return 3}},Ar=function(t){return{$:1,a:t}},Pr=function(t){return{$:0,a:t}},Sr=function(t){return t},Dr=Sr,Lr=o((function(t,n,e,r,a,i){return{a8:i,bx:n,cA:r,bJ:e,bM:t,bN:a}})),jr=V,Ir=function(t){return t.length},Or=J,Fr=e((function(t,n){return 1>t?n:l(Or,t,Ir(n),n)})),Wr=Q,Rr=function(t){return""===t},Hr=e((function(t,n){return 1>t?"":l(Or,0,t,n)})),Xr=function(t){for(var n=0,e=t.charCodeAt(0),r=43==e||45==e?1:0,a=r;t.length>a;++a){var i=t.charCodeAt(a);if(48>i||i>57)return Ee;n=10*n+i-48}return a==r?Ee:ke(45==e?-n:n)},Ur=i((function(t,n,e,r,a){if(Rr(a)||f(jr,"@",a))return Ee;var i=f(Wr,":",a);if(i.b){if(i.b.b)return Ee;var o=i.a,u=Xr(f(Fr,o+1,a));if(1===u.$)return Ee;var c=u;return ke(b(Lr,t,f(Hr,o,a),c,n,e,r))}return ke(b(Lr,t,a,Ee,n,e,r))})),qr=a((function(t,n,e,r){if(Rr(r))return Ee;var a=f(Wr,"/",r);if(a.b){var i=a.a;return m(Ur,t,f(Fr,i,r),n,e,f(Hr,i,r))}return m(Ur,t,"/",n,e,r)})),zr=r((function(t,n,e){if(Rr(e))return Ee;var r=f(Wr,"?",e);if(r.b){var a=r.a;return d(qr,t,ke(f(Fr,a+1,e)),n,f(Hr,a,e))}return d(qr,t,Ee,n,e)})),Br=e((function(t,n){if(Rr(n))return Ee;var e=f(Wr,"#",n);if(e.b){var r=e.a;return l(zr,t,ke(f(Fr,r+1,n)),f(Hr,r,n))}return l(zr,t,Ee,n)})),Yr=Z,Jr=function(t){return f(Yr,"http://",t)?f(Br,0,f(Fr,7,t)):f(Yr,"https://",t)?f(Br,1,f(Fr,8,t)):Ee},Gr=function(){},Vr=At,Zr=Vr(0),Kr=a((function(t,n,e,r){if(r.b){var a=r.a,i=r.b;if(i.b){var o=i.a,u=i.b;if(u.b){var c=u.a,s=u.b;if(s.b){var m=s.b;return f(t,a,f(t,o,f(t,c,f(t,s.a,e>500?l(Ue,t,n,tr(m)):d(Kr,t,n,e+1,m)))))}return f(t,a,f(t,o,f(t,c,n)))}return f(t,a,f(t,o,n))}return f(t,a,n)}return n})),Qr=r((function(t,n,e){return d(Kr,t,n,0,e)})),ta=e((function(t,n){return l(Qr,e((function(n,e){return f(Te,t(n),e)})),N,n)})),na=St,ea=e((function(t,n){return f(na,(function(n){return Vr(t(n))}),n)})),ra=r((function(t,n,e){return f(na,(function(n){return f(na,(function(e){return Vr(f(t,n,e))}),e)}),n)})),aa=function(t){return l(Qr,ra(Te),Vr(N),t)},ia=Yt,oa=e((function(t,n){var e=n;return It(f(na,ia(t),e))}));qt.Task=zt(Zr,r((function(t,n){return f(ea,(function(){return 0}),aa(f(ta,oa(t),n)))})),r((function(){return Vr(0)})),e((function(t,n){return f(ea,t,n)})));var ua=Gt("Task"),ca=e((function(t,n){return ua(f(ea,t,n))})),sa=function(t){var n=t.cx,r=t.cy,a=function(){a.a(n(Kn()))};return Gn({bf:function(t){return a.a=t,re.addEventListener("popstate",a),0>re.navigator.userAgent.indexOf("Trident")||re.addEventListener("hashchange",a),e((function(n,e){if(!(e.ctrlKey||e.metaKey||e.shiftKey||e.button>=1||n.target||n.hasAttribute("download"))){e.preventDefault();var a=n.href,i=Kn(),o=Jr(a).a;t(r(o&&i.bM===o.bM&&i.bx===o.bx&&i.bJ.a===o.bJ.a?Pr(o):Ar(a)))}}))},cn:function(n){return l(t.cn,n,Kn(),a)},cT:t.cT,cR:t.cR,cK:t.cK})},fa=ut,la=function(t){return{$:3,a:t}},da={$:15},ma={$:0},ba={$:9},ha=function(t){return{$:0,a:t}},va={$:1},pa=Vt,ga={ax:"",V:!1,e:""},wa=function(t){return{$:11,a:t}},ya=pa(N),$a=r((function(t,n,e){return{bF:e,cB:n,aR:t}})),ka=r((function(t,n,e){return{cf:t,cv:e,cQ:n}})),Ea=rt,Ta=ot,xa=e((function(t,n){return{$:3,a:t,b:n}})),_a=function(t){return{$:0,a:t}},Ca=e((function(t,n){return{$:4,a:t,b:n}})),Ma={$:2},Na=function(t){return{$:1,a:t}},Aa=function(t){return{$:0,a:t}},Pa={$:1},Sa={$:-2},Da=Sa,La=function(t){return!t.$},ja=Jt,Ia=T,Oa=e((function(t,n){t:for(;;){if(-2===n.$)return Ee;var e=n.c,r=n.d,a=n.e;switch(f(Ia,t,n.b)){case 0:t=t,n=r;continue t;case 1:return ke(e);default:t=t,n=a;continue t}}})),Fa=i((function(t,n,e,r,a){return{$:-1,a:t,b:n,c:e,d:r,e:a}})),Wa=i((function(t,n,e,r,a){if(-1!==a.$||a.a){if(-1!==r.$||r.a||-1!==r.d.$||r.d.a)return m(Fa,t,n,e,r,a);var i=r.d;f=r.e;return m(Fa,0,r.b,r.c,m(Fa,1,i.b,i.c,i.d,i.e),m(Fa,1,n,e,f,a))}var o=a.b,u=a.c,c=a.d,s=a.e;if(-1!==r.$||r.a)return m(Fa,t,o,u,m(Fa,0,n,e,r,c),s);var f;return m(Fa,0,n,e,m(Fa,1,r.b,r.c,r.d,f=r.e),m(Fa,1,o,u,c,s))})),Ra=r((function(t,n,e){if(-2===e.$)return m(Fa,0,t,n,Sa,Sa);var r=e.a,a=e.b,i=e.c,o=e.d,u=e.e;switch(f(Ia,t,a)){case 0:return m(Wa,r,a,i,l(Ra,t,n,o),u);case 1:return m(Fa,r,a,n,o,u);default:return m(Wa,r,a,i,o,l(Ra,t,n,u))}})),Ha=r((function(t,n,e){var r=l(Ra,t,n,e);if(-1!==r.$||r.a)return r;return m(Fa,1,r.b,r.c,r.d,r.e)})),Xa=function(t){if(-1===t.$&&-1===t.d.$&&-1===t.e.$){if(-1!==t.e.d.$||t.e.d.a){var n=t.d,e=t.e;o=e.b,u=e.c,r=e.d,f=e.e;return m(Fa,1,t.b,t.c,m(Fa,0,n.b,n.c,n.d,n.e),m(Fa,0,o,u,r,f))}var r,a=t.d,i=t.e,o=i.b,u=i.c,c=(r=i.d,r.d),s=r.e,f=i.e;return m(Fa,0,r.b,r.c,m(Fa,1,t.b,t.c,m(Fa,0,a.b,a.c,a.d,a.e),c),m(Fa,1,o,u,s,f))}return t},Ua=function(t){if(-1===t.$&&-1===t.d.$&&-1===t.e.$){if(-1!==t.d.d.$||t.d.d.a){var n=t.d,e=n.d,r=t.e;f=r.b,l=r.c,d=r.d,b=r.e;return m(Fa,1,a=t.b,i=t.c,m(Fa,0,n.b,n.c,e,c=n.e),m(Fa,0,f,l,d,b))}var a=t.b,i=t.c,o=t.d,u=o.d,c=o.e,s=t.e,f=s.b,l=s.c,d=s.d,b=s.e;return m(Fa,0,o.b,o.c,m(Fa,1,u.b,u.c,u.d,u.e),m(Fa,1,a,i,c,m(Fa,0,f,l,d,b)))}return t},qa=u((function(t,n,e,r,a,i,o){if(-1!==i.$||i.a){t:for(;;){if(-1===o.$&&1===o.a){if(-1===o.d.$){if(1===o.d.a){return Ua(n)}break t}return Ua(n)}break t}return n}return m(Fa,e,i.b,i.c,i.d,m(Fa,0,r,a,i.e,o))})),za=function(t){if(-1===t.$&&-1===t.d.$){var n=t.a,e=t.b,r=t.c,a=t.d,i=a.d,o=t.e;if(1===a.a){if(-1!==i.$||i.a){var u=Xa(t);if(-1===u.$){var c=u.e;return m(Wa,u.a,u.b,u.c,za(u.d),c)}return Sa}return m(Fa,n,e,r,za(a),o)}return m(Fa,n,e,r,za(a),o)}return Sa},Ba=e((function(t,n){if(-2===n.$)return Sa;var e=n.a,r=n.b,a=n.c,i=n.d,o=n.e;if(0>E(t,r)){if(-1===i.$&&1===i.a){var u=i.d;if(-1!==u.$||u.a){var c=Xa(n);if(-1===c.$){var s=c.e;return m(Wa,c.a,c.b,c.c,f(Ba,t,c.d),s)}return Sa}return m(Fa,e,r,a,f(Ba,t,i),o)}return m(Fa,e,r,a,f(Ba,t,i),o)}return f(Ya,t,h(qa,t,n,e,r,a,i,o))})),Ya=e((function(t,n){if(-1===n.$){var e=n.a,r=n.b,a=n.c,i=n.d,o=n.e;if($(t,r)){var u=function(t){for(;;){if(-1!==t.$||-1!==t.d.$)return t;t=t.d}}(o);return-1===u.$?m(Wa,e,u.b,u.c,i,za(o)):Sa}return m(Wa,e,r,a,i,f(Ba,t,o))}return Sa})),Ja=e((function(t,n){var e=f(Ba,t,n);if(-1!==e.$||e.a)return e;return m(Fa,1,e.b,e.c,e.d,e.e)})),Ga=r((function(t,n,e){var r=n(f(Oa,t,e));return r.$?f(Ja,t,e):l(Ha,t,r.a,e)})),Va={$:0},Za=r((function(t,n,e){return n(t(e))})),Ka=e((function(t,n){return l(le,"",Sr,f(Za,n,t))})),Qa=e((function(t,n){return{$:0,a:t,b:n}})),ti=function(t){return{$:0,a:t}},ni=function(t){return{$:1,a:t}},ei=gt,ri=function(t){return{$:11,g:t}},ai=it,ii=function(t){var n=f(ei,ri(S([f(Ta,"mistake",ai),f(Ta,"problem",ai)])),t);return n.$?"Supposedly something went wrong, but the server didn't articulate well enough about it:\n"+rr(n.a):n.a},oi=e((function(t,n){switch(n.$){case 0:return Ae(x(ti("Bad URL"),"The request made to the server was done awkwardly, so the server didn't know what to do."));case 1:return Ae(x(ti("Timeout"),"The server took too long."));case 2:return Ae(x(ti("Offline"),"Either you or the server is offline."));case 3:var e=n.a,r=n.b;return Ae(x(ni(e.bY),function(){switch(e.bY){case 400:return ii(r);case 500:return"The server hurt itself in the process of fulfilling your request:\n"+ii(r);case 404:return"The server apparently doesn't know what it's meant to do.";default:return"The server...????"}}()));default:var a=f(ei,t,r=n.b);if(a.$){var i=a.a;return Ae(x(ti("Malformed JSON"),"The server spoke in a different language, and we couldn't understand it.\n"+rr(i)))}return Le(a.a)}})),ui=function(t){return{$:1,a:t}},ci=e((function(t,n){return{bP:t,bZ:n}})),si=Vr(f(ci,Da,N)),fi=function(t){return Pt((function(n){var e=t.f;2===e.$&&e.c&&e.c(),t.f=null,n(At(0))}))},li=It,di=r((function(t,n,e){t:for(;;){if(n.b){var r=n.a,a=n.b;if(r.$){var i=r.a;return f(na,(function(n){var r=i.cP;return l(di,t,a,1===r.$?e:l(Ha,r.a,n,e))}),li(l(se,t,ia(t),i)))}var o=r.a,u=f(Oa,o,e);if(1===u.$){t=t,n=a,e=e;continue t}return f(na,(function(){return l(di,t,a,f(Ja,o,e))}),fi(u.a))}return Vr(e)}})),mi=a((function(t,n,e,r){return f(na,(function(t){return Vr(f(ci,t,e))}),l(di,t,n,r.bP))})),bi=r((function(t,n,e){var r=t(n);return r.$?e:f(Te,r.a,e)})),hi=e((function(t,n){return l(Qr,bi(t),N,n)})),vi=a((function(t,n,e,r){var a=r.b;return $(n,r.a)?ke(f(ia,t,a(e))):Ee})),pi=r((function(t,n,e){return f(na,(function(){return Vr(e)}),aa(f(hi,l(vi,t,n.a,n.b),e.bZ)))})),gi=e((function(t,n){if(n.$){var e=n.a;return ui({b5:e.b5,b8:e.b8,cg:f(de,t,e.cg),ci:e.ci,cs:e.cs,cN:e.cN,cP:e.cP,T:e.T})}return{$:0,a:n.a}})),wi=e((function(t,n){return{$:0,a:t,b:n}}));qt.Http=zt(si,mi,pi,gi,e((function(t,n){return f(wi,n.a,f(Za,n.b,t))})));var yi,$i=Gt("Http"),ki=o((function(t,n,e,r,a,i){return o={b8:a.$?Va:f(me,"application/json",f(Fe,0,a.a)),cg:f(Ka,r,oi(i)),ci:M(S([f(Qa,"X-Requested-With","XMLHttpRequest")]),e.$?N:S([f(Qa,"X-Session-Id",e.a)])),cs:t?"GET":"POST",cN:Ee,cP:Ee,T:n},$i(ui({b5:!1,b8:o.b8,cg:o.cg,ci:o.ci,cs:o.cs,cN:o.cN,cP:o.cP,T:o.T}));var o})),Ei=a((function(t,n,e,r){var a,i=(a=t.a2).$?Ee:ke(a.a.a2);return b(ki,1,M(t.bx,n),i,e,Ee,r)})),Ti=et,xi=function(t){return{$:3,b:t}},_i=dt,Ci=r((function(t,n,e){return{$:7,a:t,b:n,c:e}})),Mi=a((function(t,n,e,r){return{$:1,a:t,b:n,c:e,d:r}})),Ni=a((function(t,n,e,r){return{$:0,a:t,b:n,c:e,d:r}})),Ai=r((function(t,n,e){return{$:4,a:t,b:n,c:e}})),Pi=a((function(t,n,e,r){return{$:2,a:t,b:n,c:e,d:r}})),Si=a((function(t,n,e,r){return{$:3,a:t,b:n,c:e,d:r}})),Di=a((function(t,n,e,r){return{$:6,a:t,b:n,c:e,d:r}})),Li=a((function(t,n,e,r){return{$:5,a:t,b:n,c:e,d:r}})),ji=mt,Ii=function(t){return ri(S([f(_r,ke,t),Mr(Ee)]))},Oi=function(t){switch(t){case"game-started":return m(ji,Ni,f(Ta,"game",ai),f(Ta,"gameName",ai),Ii(f(Ta,"target",ai)),Ii(f(Ta,"targetName",ai)));case"game-ended":return m(ji,Mi,f(Ta,"game",ai),f(Ta,"gameName",ai),f(Ta,"winner",ai),f(Ta,"winnerName",ai));case"killed":return m(ji,Pi,f(Ta,"game",ai),f(Ta,"gameName",ai),f(Ta,"by",ai),f(Ta,"name",ai));case"killed-self":return m(ji,Si,f(Ta,"game",ai),f(Ta,"gameName",ai),Ii(f(Ta,"target",ai)),Ii(f(Ta,"targetName",ai)));case"kicked":return d(_i,Ai,f(Ta,"game",ai),f(Ta,"gameName",ai),f(Ta,"reason",ai));case"kicked-new-target":return m(ji,Li,f(Ta,"game",ai),f(Ta,"gameName",ai),f(Ta,"target",ai),f(Ta,"targetName",ai));case"shuffle":return m(ji,Di,f(Ta,"game",ai),f(Ta,"gameName",ai),Ii(f(Ta,"target",ai)),Ii(f(Ta,"targetName",ai)));case"announcement":return d(_i,Ci,f(Ta,"game",ai),f(Ta,"gameName",ai),f(Ta,"message",ai));default:return Mr({$:8,a:t})}},Fi=a((function(t,n,e,r){return d(Ei,t,"notifications?from="+We(e)+"&limit="+We(r),n,d(_i,ka,f(Ta,"end",Ea),f(Ta,"unread",Ti),f(Ta,"notifications",xi(d(_i,$a,f(Ta,"time",Ti),f(Ta,"read",Ea),f(xr,Oi,f(Ta,"type",ai)))))))})),Wi=function(t){return t.a2.$?ya:d(Fi,t,wa,0,5)},Ri={bl:"",ab:!1,af:Ee,cz:N,ay:Ee,R:N,aA:{b4:0,bv:0,a_:0},cI:N},Hi={bo:N,aG:Da,aX:"",cm:{b6:N,cc:x("",""),bo:"",bC:!1,x:"",a1:N,aP:0,aR:0},u:!1,af:!1,bd:"",ay:Ee,aN:!1},Xi=r((function(t,n,e){return C(t,{V:e,e:n})})),Ui={aE:Ee,as:!1,v:ga,W:0,J:!1,at:!1,i:l(Xi,ga,"",!0),Y:0,aX:Ee,_:!1,m:x(!0,!0),av:Ee,aw:"",aa:!1,u:!1,ad:Ee,af:Ee,x:ga,bd:l(Xi,ga,"",!0),a1:N,ay:Ee,aj:!1,ak:!1,aq:!1,aP:0},qi={u:!1,bd:ga,ah:ga,ay:Ee},zi={a6:N,cm:{a6:"",bv:N,cu:N,x:""},aW:""},Bi=function(t){return{ax:t,V:!0,e:t}},Yi={a6:ga,X:0,a7:ga,u:!1,a$:!1,x:ga,G:Bi(""),bd:Bi(""),ay:Ee},Ji=Zt,Gi={$:1},Vi=function(t){return t.a+"="+t.b},Zi=function(t){return t.b?"?"+f(Re,"&",f(ta,Vi,t)):""},Ki=a((function(t,n,e,r){var a=M(function(t){switch(t.$){case 0:return"/";case 1:return"";default:return t.a+"/"}}(t),M(f(Re,"/",n),Zi(e)));return 1===r.$?a:a+"#"+r.a})),Qi=te,to=e((function(t,n){return f(Qi,n,d(Ki,Gi,S([t.cA]),N,t.a8))})),no=r((function(t,n,e){return t(n(e))})),eo=Dt,ro=e((function(t,n){return ua(f(eo,f(no,f(no,Vr,t),Ae),f(na,f(no,f(no,Vr,t),Le),n)))})),ao=function(t){return oe(t,(function(t){var n,e,r=t.getBoundingClientRect(),a=re.pageXOffset,i=re.pageYOffset;return{bU:(n=ee.body,e=ee.documentElement,{b1:Math.max(n.scrollWidth,n.offsetWidth,e.scrollWidth,e.offsetWidth,e.clientWidth),aZ:Math.max(n.scrollHeight,n.offsetHeight,e.scrollHeight,e.offsetHeight,e.clientHeight)}),b0:{b2:a,cV:i,b1:ee.documentElement.clientWidth,aZ:ee.documentElement.clientHeight},ce:{b2:a+r.left,cV:i+r.top,b1:r.width,aZ:r.height}}}))},io=ce,oo=e((function(t,n){return n.$?ya:f(ro,(function(){return t}),""===n.a?f(io,0,0):f(na,(function(t){return f(io,0,t.ce.cV)}),ao(n.a)))})),uo=function(t){var n=t.bN;return!n.$&&""===n.a},co={$:3},so=function(t){return{$:1,a:t}},fo=function(t){return{$:10,a:t}},lo={$:5},mo=function(t){return{$:8,a:t}},bo={$:7},ho=function(t){return{$:7,a:t}},vo=e((function(t,n){return{$:0,a:t,b:n}})),po=e((function(t,n){return{$:5,a:t,b:n}})),go=e((function(t,n){return{$:0,a:t,b:n}})),wo=function(t){return{$:3,a:t}},yo={$:2},$o=function(t){return{$:0,a:t}},ko=e((function(t,n){return{$:2,a:t,b:n}})),Eo={$:1},To=function(t){return{$:5,a:t}},xo=function(t){return{$:4,a:t}},_o=c((function(t,n,e,r,a,i,o,u){return{b6:u,cc:t,bo:e,bC:r,x:n,a1:a,aP:i,aR:o}})),Co=r((function(t,n,e){return{cl:n,bF:t,aR:e}})),Mo=c((function(t,n,e,r,a,i,o,u){return{a4:e,bD:u,cp:r,cq:a,cr:i,a_:o,x:n,aW:t}})),No=function(t){return{$:1,a:t}},Ao=f(xr,(function(t){switch(t){case"starting":return Mr(0);case"started":return Mr(1);case"ended":return Mr(2);default:return No("Invalid game state")}}),ai),Po=pt,So=function(t){return{$:5,c:t}},Do=function(t){return ri(S([So(Ee),f(_r,ke,t)]))},Lo=e((function(t,n){return x(t,n)})),jo=r((function(t,n,e){return d(Ei,t,"game?game="+e,n,p(Po,_o,l(Cr,Lo,f(Ta,"creator",ai),f(Ta,"creatorName",ai)),f(Ta,"name",ai),f(Ta,"description",ai),f(Ta,"joinDisabled",Ea),f(Ta,"players",xi(p(Po,Mo,f(Ta,"username",ai),f(Ta,"name",ai),f(Ta,"alive",Ea),f(Ta,"killTime",Do(Ti)),f(Ta,"killer",Do(ai)),f(Ta,"killerName",Do(ai)),f(Ta,"kills",Ti),f(Ta,"joined",Ti)))),f(Ta,"state",Ao),f(Ta,"time",Ti),f(Ta,"announcements",xi(d(_i,Co,f(Ta,"message",ai),f(Ta,"includeDead",Ea),f(Ta,"time",Ti))))))})),Io=o((function(t,n,e,r,a,i){return{bo:n,bC:r,x:t,bd:e,a1:a,aP:i}})),Oo=o((function(t,n,e,r,a,i){return{a4:e,bl:i,bD:a,a_:r,x:n,aW:t}})),Fo=ht,Wo=r((function(t,n,e){return d(Ei,t,"game-settings?game="+e,n,h(Fo,Io,f(Ta,"name",ai),f(Ta,"description",ai),f(Ta,"password",ai),f(Ta,"joinDisabled",Ea),f(Ta,"players",xi(h(Fo,Oo,f(Ta,"username",ai),f(Ta,"name",ai),f(Ta,"alive",Ea),f(Ta,"kills",Ti),f(Ta,"joined",Ti),Ii(f(Ta,"code",ai))))),f(Ta,"state",Ao)))})),Ro=r((function(t,n,e){return{a6:e,a7:n,x:t}})),Ho=e((function(t,n){return d(Ei,t,"user-settings",n,d(_i,Ro,f(Ta,"name",ai),f(Ta,"email",ai),f(Ta,"bio",ai)))})),Xo=a((function(t,n,e,r){return{a6:n,bv:r,cu:e,x:t}})),Uo=u((function(t,n,e,r,a,i,o){return{a4:i,aX:t,a_:a,x:n,a1:r,aP:e,cS:o}})),qo=i((function(t,n,e,r,a){return{aX:t,x:n,a1:a,aP:e,aR:r}})),zo=bt,Bo=vt,Yo=r((function(t,n,e){return d(Ei,t,"user?user="+e,n,m(ji,Xo,f(Ta,"name",ai),f(Ta,"bio",ai),f(Ta,"myGames",xi(b(zo,qo,f(Ta,"game",ai),f(Ta,"name",ai),f(Ta,"state",Ao),f(Ta,"time",Ti),f(Ta,"players",Ti)))),f(Ta,"games",xi(v(Bo,Uo,f(Ta,"game",ai),f(Ta,"name",ai),f(Ta,"state",Ao),f(Ta,"players",Ti),f(Ta,"kills",Ti),f(Ta,"alive",Ea),f(Ta,"updated",Ti))))))})),Jo=function(t){return{$:6,a:t}},Go=function(t){return{$:0,a:t}},Vo=function(t){return{$:1,a:t}},Zo=r((function(t,n,e){return{b4:n,bv:e,a_:t}})),Ko=e((function(t,n){return d(Ei,t,"stats",n,d(_i,Zo,f(Ta,"kills",Ti),f(Ta,"active",Ti),f(Ta,"games",Ti)))})),Qo=null,tu=an("start",(function(){return Qo})),nu=e((function(t,n){return{cz:n,cI:t}})),eu=m(ji,a((function(t,n,e,r){return{aX:t,bu:n,aP:e,aR:r}})),f(Ta,"game",ai),f(Ta,"gameName",ai),f(Ta,"state",Ao),f(Ta,"time",Ti)),ru=b(zo,i((function(t,n,e,r,a){return{bl:e,aX:r,bu:a,cL:t,cM:n}})),f(Ta,"target",ai),f(Ta,"targetName",ai),f(Ta,"code",ai),f(Ta,"game",ai),f(Ta,"gameName",ai)),au=e((function(t,n){return d(Ei,t,"statuses?all=true",n,l(Cr,nu,f(Ta,"statuses",xi(ru)),f(Ta,"others",xi(eu))))})),iu=function(t){return so(pa(S(t.a2.$?[f(Ji,Jo,f(Ko,t,Go)),tu(0)]:[f(Ji,Jo,f(au,t,Vo)),tu(0)])))},ou=function(t){return{$:4,a:t}},uu=function(t){return oe(t,(function(t){return{bU:{b1:t.scrollWidth,aZ:t.scrollHeight},b0:{b2:t.scrollLeft,cV:t.scrollTop,b1:t.clientWidth,aZ:t.clientHeight}}}))},cu=pa(S([f(ro,(function(t){return{$:3,a:t}}),uu("game-desc")),f(ro,ou,uu("game-announcement"))])),su=e((function(t,n){var e=n.bN;if(e.$)return iu(t);var r,a,i=(a=(r=f(He,"&",e.a)).b?ke(r.a):Ee).$?"":a.a;if(f(Yr,"@",i)){var o=f(Fr,1,i);return so(pa(S([f(Ji,To,l(Yo,t,go(o),o)),tu(0)])))}if(f(Yr,"!",i)){var u=f(Fr,1,i);return so(pa(S([f(Ji,mo,l(jo,t,vo(u),u)),tu(0)])))}if("terms"===i)return $o(Eo);if("privacy"===i)return $o(yo);if("about"===i)return $o(co);if("game"===i)return $o(lo);if("settings"===i)return so(pa(S([f(Ji,xo,f(Ho,t,wo)),tu(0)])));if("create-game"===i)return f(ko,bo,f(Ji,ho,cu));if(f(Yr,"settings!",i)){var c=f(Fr,Ir("settings!"),i);return so(pa(S([f(Ji,ho,l(Wo,t,po(c),c)),tu(0)])))}return f(Yr,"reset-",i)?$o({$:8,a:f(Fr,Ir("reset-"),i)}):""===i||f(jr,"=",i)?iu(t):$o(fo(x(ni(404),"We don't have a page for this URL.")))})),fu=r((function(t,n,e){var r,a=t.a,i=(r=x(t.b,t.c)).a.$||r.b.$?va:ha({a2:r.a.a,aW:r.b.a}),o={bx:a,a2:i},u=function(t){return x({r:!1,aK:!0,N:ga,O:Ee,w:ga,ae:!1,l:{cf:!1,cv:N,cQ:0},y:!0,z:Ee,aL:4,al:ga,am:!1,an:ga,H:ga,ao:ga,aO:Ee,ap:ga},Wi(t))}(o),c=u.a,s=u.b,l=function(){var t=f(su,o,n);switch(t.$){case 0:return x(t.a,ya);case 1:return x(ba,t.a);default:return x(t.a,t.b)}}(),d=l.b;return x({D:ma,E:Ri,aX:Hi,n:Ui,s:c,bx:a,L:e,C:l.a,aM:qi,a2:i,T:n,aB:zi,U:Yi},pa(S([uo(n)?f(to,n,e):d,f(Ji,la,s),f(oo,da,n.a8)])))})),lu=function(t){return{$:10,a:t}},du=function(t){return{$:11,a:t}},mu={$:1},bu=function(t){return{$:12,a:t}},hu=Vt,vu=e((function(t,n){return{$:0,a:t,b:n}})),pu=e((function(t,n){return{bL:n,b_:t}})),gu=Vr(f(pu,Da,Da)),wu=e((function(t,n){var e=t.a,r=t.b,a=f(Oa,e,n);return l(Ha,e,1===a.$?S([r]):f(Te,r,a.a),n)})),yu=r((function(t,n,e){for(;;){if(-2===e.$)return n;var r=e.e,a=t,i=l(t,e.b,e.c,l(yu,t,n,e.d));t=a,n=i,e=r}})),$u=o((function(t,n,a,i,o,u){var c=l(yu,r((function(e,r,i){t:for(;;){var o=i.a,u=i.b;if(o.b){var c=o.a,s=c.a,f=c.b,m=o.b;if(0>E(s,e)){e=e,r=r,i=x(m,l(t,s,f,u));continue t}return E(s,e)>0?x(o,l(a,e,r,u)):x(m,d(n,s,f,r,u))}return x(o,l(a,e,r,u))}})),x(_e(i),u),o),s=c.a,f=c.b;return l(Ue,e((function(n,e){return l(t,n.a,n.b,e)})),f,s)})),ku=e((function(t,n){return{$:0,a:t,b:n}})),Eu=be,Tu=r((function(t,n,e){if(n.b){var r=n.a,a=n.b,i=li(f(Eu,r,f(ja,t,r)));return f(na,(function(n){return l(Tu,t,a,l(Ha,r,n,e))}),i)}return Vr(e)})),xu=r((function(t,n,e){var i=e.bL,o=r((function(t,n,e){var r=e.c;return _(e.a,e.b,f(na,(function(){return r}),fi(n)))})),u=l(Ue,wu,Da,n),c=b($u,r((function(t,n,e){var r=e.b,a=e.c;return _(f(Te,t,e.a),r,a)})),a((function(t,n,e,r){var a=r.c;return _(r.a,l(Ha,t,e,r.b),a)})),o,u,i,_(N,Da,Vr(0))),s=c.a,d=c.b;return f(na,(function(t){return Vr(f(pu,u,t))}),f(na,(function(){return l(Tu,t,s,d)}),c.c))})),_u=Sr,Cu=(yi=_u,Pt((function(t){t(At(yi(Date.now())))})));qt.Time=zt(gu,xu,r((function(t,n,e){var r=f(Oa,n,e.b_);if(1===r.$)return Vr(e);var a=r.a;return f(na,(function(){return Vr(e)}),f(na,(function(n){return aa(f(ta,(function(e){return f(ia,t,e(n))}),a))}),Cu))})),0,e((function(t,n){return f(vu,n.a,f(no,t,n.b))})));var Mu,Nu,Au=Gt("Time"),Pu=e((function(t,n){return Au(f(vu,t,n))})),Su=hu(N),Du=(Mu="onBeforeUnload",Nu=So(0),rn(Mu),qt[Mu]={f:sn,u:Nu,a:fn},Gt(Mu)),Lu=r((function(t,n,e){return{$:0,a:t,b:n,c:e}})),ju=e((function(t,n){return{bI:n,bZ:t}})),Iu=Vr(f(ju,N,Da)),Ou=function(t){var n=t.b;return x(M(function(t){return t?"w_":"d_"}(t.a),n),t)},Fu=function(t){return l(Ue,e((function(t,n){return l(Ha,t.a,t.b,n)})),Da,t)},Wu=e((function(t,n){return{bq:n,L:t}})),Ru=r((function(t,n,e){return f(ea,(function(t){return x(n,t)}),l(ae,e.a?re:ee,e.b,(function(e){return f(ja,t,f(Wu,n,e))})))})),Hu=e((function(t,n){return l(yu,Ha,n,t)}));qt["Browser.Events"]=zt(Iu,r((function(t,n,e){var i=r((function(n,e,r){var a=r.c;return _(r.a,r.b,f(Te,l(Ru,t,n,e),a))})),o=r((function(t,n,e){var r=e.b,a=e.c;return _(f(Te,n,e.a),r,a)})),u=a((function(t,n,e,r){var a=r.c;return _(r.a,l(Ha,t,n,r.b),a)})),c=f(ta,Ou,n),s=b($u,o,u,i,e.bI,Fu(c),_(N,Da,N)),d=s.b,m=s.c;return f(na,(function(t){return Vr(f(ju,c,f(Hu,d,Fu(t))))}),f(na,(function(){return aa(m)}),aa(f(ta,fi,s.a))))})),r((function(t,n,e){var r=n.L,a=n.bq,i=f(hi,(function(t){var n=t.b,e=n.c;return $(t.a,r)?f(ie,e,a):Ee}),e.bZ);return f(na,(function(){return Vr(e)}),aa(f(ta,ia(t),i)))})),0,e((function(t,n){return l(Lu,n.a,n.b,f(_r,t,n.c))})));var Xu,Uu,qu=Gt("Browser.Events"),zu=r((function(t,n,e){return qu(l(Lu,t,n,e))})),Bu=f(zu,0,"click"),Yu=f(zu,0,"keydown"),Ju=function(t){return{$:4,a:t}},Gu={$:3},Vu={$:4},Zu={$:9},Ku=e((function(t,n){return{$:9,a:t,b:n}})),Qu={$:2},tc=function(t){return{$:14,a:t}},nc={$:13},ec=function(t){return C(t,{l:{cf:!1,cv:N,cQ:0}})},rc=function(t){return C(t,{cI:N})},ac=function(t){return C(t,{v:ga,W:0,i:l(Xi,ga,"",!0),Y:0,_:!1,x:ga,bd:l(Xi,ga,"",!0)})},ic=function(t){return C(t,{a6:ga,X:0,a7:ga,x:ga,G:Bi(""),bd:Bi("")})},oc=function(t){return C(t,{n:ac(t.n),U:ic(t.U)})},uc=ue("focus"),cc=function(t){return f(ca,Gr,Pt((function(){try{re.location=t}catch(t){dn.location.reload(!1)}})))},sc=function(t){return l(Ue,e((function(t,n){return l(Nt,t.a,t.b,n)})),{},t)},fc=i((function(t,n,e,r,a){var i,o=(i=t.a2).$?Ee:ke(i.a.a2);return b(ki,0,M(t.bx,n),o,e,ke(r),a)})),lc=e((function(t,n){return m(fc,t,"logout",n,sc(N),Mr(0))})),dc=an("logout",(function(){return Qo})),mc=Qn,bc=e((function(t,n){var e=f(su,t,n);switch(e.$){case 0:return x(C(t,{C:e.a}),f(oo,da,n.a8));case 1:return x(t,r=e.a);default:var r=e.b;return x(C(t,{n:Ui,C:e.a}),r)}})),hc=function(t){switch(t.C.$){case 0:case 10:return f(bc,t,t.T);case 6:return t.a2.$?x(t,f(mc,t.L,"?")):f(bc,t,t.T);case 7:var n=x(t.a2,t.n.aX);if(1===n.a.$){if(n.b.$){return x(t,f(mc,t.L,"?"))}return x(t,f(mc,t.L,"?!"+n.b.a))}return f(bc,t,t.T);default:return x(t,ya)}},vc=an("preventUnload",(function(){return Qo})),pc=e((function(t,n){return l(Ue,function(t){return e((function(n,e){return e.push(t(n)),e}))}(t),[],n)})),gc=Mt,wc=an("saveSession",(function(t){var n=t.b;return f(pc,Sr,S([gc(t.a),gc(n)]))})),yc=e((function(t,n){return 1===t.$?n:n+":"+We(t.a)})),$c=r((function(t,n,e){return 1===n.$?e:M(e,M(t,n.a))})),kc=function(t){return t.b},Ec=function(t){return!($(t.x.e,t.x.ax)&&$(t.i.e,t.i.ax)&&$(t.bd.e,t.bd.ax)&&$(t.m.a,t.m.b))},Tc=function(t){return!($(t.x.e,t.x.ax)&&$(t.a7.e,t.a7.ax)&&$(t.a6.e,t.a6.ax)&&Rr(t.bd.e))},xc=function(t){return Tc(t.U)||Ec(t.n)},_c={$:1},Cc={$:16},Mc=function(t){return{$:8,a:t}},Nc=function(t){return{$:15,a:t}},Ac=function(t){return{$:13,a:t}},Pc=r((function(t,n,e){return{$:6,a:t,b:n,c:e}})),Sc={$:5},Dc=e((function(t,n){return{$:0,a:t,b:n}})),Lc=function(t){return t.toLowerCase()},jc=r((function(t,n,e){return m(fc,t,"create-user",n(e.aW),sc(S([x("username",gc(Lc(e.aW))),x("name",gc(e.x)),x("password",gc(e.bd)),x("email",gc(e.a7))])),f(Ta,"session",ai))})),Ic=r((function(t,n,e){return m(fc,t,"forgot-password",n,sc(S([x("username",gc(e))])),Mr(0))})),Oc=a((function(t,n,e,r){return m(fc,t,"login",n(e),sc(S([x("username",gc(Lc(e))),x("password",gc(r))])),f(Ta,"session",ai))})),Fc=e((function(t,n){return m(fc,t,"read",n,sc(N),Mr(0))})),Wc=K,Rc=function(t){return f(Wc,"(Invalid session)",t.b)?_c:Sc},Hc=r((function(t,n,e){switch(t.$){case 0:var r=t.a;return _(C(e,{aL:r}),f(ro,(function(){return Cc}),uc(function(){switch(r){case 0:return"sign-up-input";case 1:return"login-input";case 2:return e.l.cQ?"read-btn":"refresh-btn";case 3:return"my-profile";default:return""}}())),Sc);case 1:return _(C(e,{aL:4}),ya,Sc);case 2:return _(C(e,{aK:!e.aK}),ya,Sc);case 3:var a=t.a,i=t.b.e,o=!!(0,t.b.I)(i).$;return _(function(){switch(a){case 0:return C(e,{w:l(Xi,e.w,i,o)});case 1:return C(e,{N:l(Xi,e.N,i,o)});case 2:return C(e,{ap:l(Xi,e.ap,i,o)});case 3:return C(e,{an:l(Xi,e.an,i,o)});case 4:return C(e,{al:l(Xi,e.al,i,o)});case 5:return C(e,{H:l(Xi,e.H,i,o)});default:return C(e,{ao:l(Xi,e.ao,i,o)})}}(),ya,Sc);case 4:return _(C(e,{r:!0,O:Ee}),d(Oc,n,Pc(0),e.w.e,e.N.e),Sc);case 5:return _(C(e,{am:!0,aO:Ee}),l(jc,n,Pc(1),{a6:"",a7:e.al.e,x:e.an.e,bd:e.H.e,aW:e.ap.e}),Sc);case 6:var u=t.a,c=t.b,s=t.c;if(s.$){var m=s.a.b;return _(C(e,u?{am:!1,aO:ke(m)}:{r:!1,O:ke(m)}),ya,Sc)}var b=s.a;return _(C(e,u?{am:!1,H:ga,ao:ga}:{r:!1,N:ga}),ya,f(Dc,b,Lc(c)));case 7:return _(C(e,{r:!0,O:Ee}),l(Ic,n,Mc,e.w.e),Sc);case 8:return _(C(e,(v=t.a).$?{r:!1,O:ke(m=v.a.b)}:{r:!1}),ya,Sc);case 9:return _(e,ya,_c);case 10:return _(C(e,{y:!0,z:Ee}),Wi(n),Sc);case 11:return(v=t.a).$?_(C(e,{y:!1,z:ke((m=v.a).b)}),ya,Rc(m)):_(C(e,{l:h=v.a,y:!1,z:Ee}),ya,Sc);case 12:return _(C(e,{y:!0,z:Ee}),d(Fi,n,Ac,qe(e.l.cv),5),Sc);case 13:var h;return(v=t.a).$?_(C(e,{y:!1,z:ke((m=v.a).b)}),ya,Rc(m)):_(C(e,{l:C(h=v.a,{cv:M(e.l.cv,h.cv)}),y:!1}),ya,Sc);case 14:return _(C(e,{ae:!0,z:Ee}),f(Fc,n,Nc),Sc);case 15:var v;if((v=t.a).$)return _(C(e,{ae:!1,z:ke((m=v.a).b)}),ya,Rc(m));var p=e.l;return _(C(e,{ae:!1,l:C(p,{cv:f(ta,(function(t){return C(t,{cB:!0})}),p.cv),cQ:0})}),ya,Sc);default:return _(e,ya,Sc)}})),Xc=function(t){return{$:2,a:t}},Uc={$:8},qc={$:0},zc=function(t){return{$:6,a:t}},Bc=an("done",(function(){return Qo})),Yc=e((function(t,n){return l(Qr,e((function(n,e){return t(n)?f(Te,n,e):e})),N,n)})),Jc=a((function(t,n,e,r){return m(fc,t,"kill?game="+e,n,sc(S([x("code",gc(r))])),Mr(0))})),Gc=e((function(t,n){for(;;){if(!n.b)return!1;var e=n.b;if(t(n.a))return!0;t=t,n=e}})),Vc=e((function(t,n){return f(Gc,(function(n){return $(n,t)}),n)})),Zc=r((function(t,n,e){switch(t.$){case 0:if((o=t.a).$){var r=o.a;return _(e,Bc(0),Xc(fo(r)))}return _(C(e,{aA:o.a}),Bc(0),Xc(qc));case 1:if((o=t.a).$){r=o.a;return _(e,Bc(0),Ju(S([Xc(fo(r)),Rc(r)])))}return _(C(e,{cz:o.a.cz,R:N,cI:o.a.cI}),Bc(0),Xc(qc));case 2:return _(C(e,{bl:"",af:ke(i=t.a),ay:Ee}),f(ro,(function(){return Uc}),uc("kill-modal-input")),Sc);case 3:return _(C(e,{af:Ee}),ya,Sc);case 4:return _(C(e,{bl:t.a.e}),ya,Sc);case 5:var a=e.af;if(a.$)return _(e,ya,Sc);var i=a.a;return _(C(e,{ab:!0,ay:Ee}),d(Jc,n,zc,i,e.bl),Sc);case 6:var o;return(o=t.a).$?_(C(e,{ab:!1,ay:ke((r=o.a).b)}),ya,Rc(r)):_(C(e,{ab:!1,af:Ee}),pa(S([f(au,n,Vo),tu(0)])),Sc);case 7:return _(C(e,{R:f(Vc,i=t.a,e.R)?f(Yc,(function(t){return!$(i,t)}),e.R):f(Te,i,e.R)}),ya,Sc);default:return _(e,ya,Sc)}})),Kc={$:9},Qc=e((function(t,n){return{$:7,a:t,b:n}})),ts=function(t){return{$:1,a:t}},ns=e((function(t,n){var e=x(t.cq,t.cp);if(e.a.$||e.b.$)return n;var r,a=e.a.a,i=e.b.a,o=(r=f(Oa,a,n)).$?i:f(vr,r.a,i);return l(Ha,a,o,n)})),es=e((function(t,n){return Mr(Fu(l(ze,Lo,t,n)))})),rs=e((function(t,n){return M(f(Re,"/",t),Zi(n))})),as=e((function(t,n){return{$:0,a:t,b:n}})),is=function(t){return encodeURIComponent(t)},os=e((function(t,n){return f(as,is(t),is(n))})),us=r((function(t,n,e){return d(Ei,t,f(rs,S(["names"]),S([f(os,"games",f(Re,",",e)),f(os,"defaultGame","Nonexistent game")])),n,f(xr,es(e),f(Ta,"games",xi(ai))))})),cs=function(t){return!t.b},ss=a((function(t,n,e,r){return m(fc,t,"join?game="+e,n,sc(S([x("password",gc(r))])),f(Ta,"name",ai))})),fs=r((function(t,n,e){return m(fc,t,"leave?game="+e,n,sc(N),Mr(""))})),ls=a((function(t,n,e,r){return{ba:n,k:t,cw:e,cJ:r}})),ds=pe(Infinity),ms=hn("a"),bs=e((function(t,n){return f(wn,t,gc(n))})),hs=bs("className"),vs=e((function(t,n){return n.b?l(Qr,Te,n,t):t})),ps=function(t){return l(Qr,vs,N,t)},gs=function(t){return f(bs,"href",/^javascript:/i.test((n=t).replace(/\s/g,""))?"":n);var n},ws=yn("rel"),ys=bs("target"),$s=bn,ks=$s,Es=r((function(t,n,e){return f(ms,S([gs(n),ws("noopener noreferrer"),ys("_blank"),hs(e)]),S([ks(t)]))})),Ts=hn("em"),xs=hn("strong"),_s=e((function(t,n){var e=t.aF,r=t.aI?S([f(Ts,N,n)]):n;return e?S([f(xs,N,r)]):r})),Cs=r((function(t,n,e){var r,a,i=n.ba+Ir(n.k),o=ps(S([e.aH,$(n.ba,e.ac)?N:f(_s,e,S([ks(l(Or,e.ac,n.ba,t))])),(r=f(Hr,1,n.k),"@"===r?f(_s,e,S([f(ms,S([hs("link"),gs("?"+n.k)]),S([ks(n.k)]))])):"!"===r?f(_s,e,S([f(ms,S([hs("link profile-game-name"),gs("?"+n.k)]),S([ks(function(){var t=e.aY;if(t.$)return n.k;var r=t.a,a=f(Oa,f(Fr,1,n.k),r);return a.$?n.k:a.a}())]))])):"*"===r?N:f(_s,e,S("\\"===r?[ks(f(Fr,1,n.k))]:[l(Es,n.k,n.k,"link")])))])),u=C(e,{bt:(a=x(f(Hr,1,n.k),e.aY),"!"===a.a&&1===a.b.$?f(Te,f(Fr,1,n.k),e.bt):e.bt),aH:o,ac:i});return"*"===n.k?C(u,{aI:!e.aI}):"**"===n.k?C(u,{aF:!e.aF}):u})),Ms=he,Ns=/.^/,As=function(t){var n=function(t){return f(Ms,{b9:!1,ct:!1},t)}(t);return n.$?Ns:n.a},Ps=As("\\bhttps?://[-A-Za-z0-9+@#/%?=~_|!:,.;&]*[-A-Za-z0-9#/=_]|@[a-z0-9_-]{3,20}(?=[^\\w-])|![0-9a-f]{5}|\\*{1,2}|\\\\."),Ss=e((function(t,n){var e=l(Ue,Cs(n),{aF:!1,bt:N,aY:t,aH:N,aI:!1,ac:0},f(ds,Ps,n));return{bt:e.bt,by:M(e.aH,$(e.ac,Ir(n))?N:f(_s,e,S([ks(f(Fr,e.ac,n))])))}})),Ds=F,Ls=r((function(t,n,e){switch(t.$){case 0:var r=t.a;if((m=t.b).$){var a=m.a;return _(e,Bc(0),Xc(fo(a)))}var i=m.a,o=f(Ss,Ee,i.bo);return _(C(e,{bo:o.by,aG:(p=i.a1,l(Ue,ns,Da,p)),aX:r,cm:i,aN:!1}),pa(S([Bc(0),cs(o.bt)?ya:l(us,n,ts,o.bt)])),Xc(lo));case 1:return _((m=t.a).$?e:C(e,{bo:f(Ss,ke(m.a),e.cm.bo).by}),ya,Sc);case 2:return _(C(e,{bd:t.a.e}),ya,Sc);case 3:return _(C(e,{af:!0}),f(ro,(function(){return Kc}),uc("join-modal-input")),Sc);case 4:return _(C(e,{af:!1}),ya,Sc);case 5:var u=n.a2;if(u.$)return _(e,ya,Sc);var c=u.a.aW;return _(C(e,{u:!0,ay:Ee}),d(ss,n,Qc({$:0,a:c}),e.aX,e.bd),Sc);case 6:var s=n.a2;if(s.$)return _(e,ya,Sc);c=s.a.aW;return _(C(e,{u:!0,ay:Ee}),l(fs,n,Qc(function(t){return{$:1,a:t}}(c)),e.aX),Sc);case 7:var m,b=e.cm,h=x(m=t.b,t.a);if(h.b.$){c=h.b.a;return _(C(e,{cm:C(b,{a1:f(Yc,(function(t){return!$(t.aW,c)}),b.a1)}),u:!1}),ya,Sc)}if(h.a.$)return _(C(e,{u:!1,ay:ke((a=h.a.a).b)}),ya,Rc(a));var v=h.a.a,c=h.b.a;return _(C(e,{cm:C(b,{a1:f(Te,{a4:!0,bD:f(Ds,2,53)-1,cp:Ee,cq:Ee,cr:Ee,a_:0,x:v,aW:c},b.a1)}),u:!1,af:!1,bd:""}),ya,Sc);case 8:return _(C(e,{aN:!0}),ya,Sc);default:return _(e,ya,Sc)}var p})),js=function(t){return{$:17,a:t}},Is=function(t){return{$:19,a:t}},Os={$:20},Fs=e((function(t,n){return{$:11,a:t,b:n}})),Ws=function(t){return{$:3,a:t}},Rs=function(t){return{$:7,a:t}},Hs=function(t){return{$:15,a:t}},Xs=function(t){return{$:13,a:t}},Us=Mt,qs=i((function(t,n,e,r,a){return m(fc,t,"announce?game="+e,n,sc(S([x("message",gc(r)),x("includeDead",Us(a))])),Mr(0))})),zs=r((function(t,n,e){return m(fc,t,"create-game",n,e,f(Ta,"game",ai))})),Bs=r((function(t,n,e){return m(fc,t,"delete-game?game="+e,n,sc(N),Mr(0))})),Ys=function(t){return f(hi,Sr,t)},Js=i((function(t,n,e,r,a){return m(fc,t,"leave?game="+e,n,sc(S([x("user",gc(r)),x("reason",gc(a))])),Mr(0))})),Gs=a((function(t,n,e,r){return m(fc,t,"game-settings?game="+e,n,r,Mr(e))})),Vs=r((function(t,n,e){return m(fc,t,"shuffle?game="+e,n,sc(N),Mr(0))})),Zs=r((function(t,n,e){return m(fc,t,"start?game="+e,n,sc(N),Mr(0))})),Ks=r((function(t,n,e){switch(t.$){case 0:var r=t.a,a=t.b.e,i=t.b.cE,o=$((0,t.b.I)(a),Ee);return _(function(){switch(r){case 0:return C(e,{x:l(Xi,e.x,a,o)});case 1:return C(e,{i:l(Xi,e.i,a,o),Y:i});case 2:return C(e,{bd:l(Xi,e.bd,a,o)});case 3:return C(e,{aw:a});default:return C(e,{v:l(Xi,e.v,a,o),W:i})}}(),ya,Sc);case 1:return _(C(e,{m:x(t.a,e.m.b)}),ya,Sc);case 2:return _(C(e,{_:t.a}),ya,Sc);case 3:return _((P=t.a).$?e:C(e,{Y:P.a.bU.aZ}),ya,Sc);case 4:return _((P=t.a).$?e:C(e,{W:P.a.bU.aZ}),ya,Sc);case 5:var u=t.a;if((P=t.b).$){var c=P.a;return _(e,Bc(0),Ju(S([Xc(fo(c)),Rc(c)])))}var s=P.a.x,b=P.a.bd,h=P.a.bC,v=P.a.a1,p=P.a.aP;return _(C(e,{as:!1,v:ga,W:0,i:Bi(P.a.bo),Y:0,aX:ke(u),_:!1,m:x(!h,!h),x:Bi(s),bd:Bi(b),a1:v,aj:!1,aP:p}),pa(S([Bc(0),cu])),Xc(bo));case 6:var g=$(e.aX,Ee),w=sc(Ys(S([g||!$(e.x.e,e.x.ax)?ke(x("name",gc(e.x.e))):Ee,g||!$(e.i.e,e.i.ax)?ke(x("description",gc(e.i.e))):Ee,g||!$(e.bd.e,e.bd.ax)?ke(x("password",gc(e.bd.e))):Ee,$(e.m.a,e.m.b)?Ee:ke(x("joinDisabled",Us(!e.m.a)))])));return _(C(e,{u:!0,ay:Ee}),(D=e.aX).$?l(zs,n,Rs,w):d(Gs,n,Rs,D.a,w),Sc);case 7:if((P=t.a).$)return _(C(e,{u:!1,ay:ke((c=P.a).b)}),ya,Rc(c));var y=P.a;return _(C(e,{i:Bi(e.i.e),aX:ke(y),m:x(e.m.a,e.m.a),u:!1,x:Bi(e.x.e),bd:Bi(e.bd.e)}),ya,$(e.aX,Ee)?Ws("?settings!"+y):Sc);case 8:return _(C(e,{av:Ee,aw:"",af:ke(E=t.a)}),f(ro,(function(){return Os}),uc("kick-modal-input")),Sc);case 9:return _(C(e,{af:Ee}),ya,Sc);case 10:var k=x(e.aX,e.af);if(k.a.$||k.b.$)return _(e,ya,Sc);y=k.a.a;var E=k.b.a;return _(C(e,{av:Ee,aa:!0}),m(Js,n,Fs(E),y,E,e.aw),Sc);case 11:E=t.a;return(P=t.b).$?_(C(e,{av:ke((c=P.a).b),aa:!1}),ya,Rc(c)):_(C(e,{aa:!1,af:Ee,a1:f(Yc,(function(t){return!$(t.aW,E)}),e.a1)}),ya,Sc);case 12:var T=e.aX;if(T.$)return _(e,ya,Sc);y=T.a;return _(C(e,{ay:Ee,aq:!0}),l(Zs,n,Xs,y),Sc);case 13:return(P=t.a).$?_(C(e,{ay:ke((c=P.a).b),aq:!1}),ya,Rc(c)):_(C(e,{aq:!1,aP:1}),ya,Sc);case 14:var M=e.aX;if(M.$)return _(e,ya,Sc);y=M.a;return _(C(e,{ad:Ee,aj:!1,ak:!0}),l(Vs,n,Hs,y),Sc);case 15:return(P=t.a).$?_(C(e,{ad:ke((c=P.a).b),aj:!1,ak:!1}),ya,Rc(c)):_(C(e,{aj:!0,ak:!1}),ya,Sc);case 16:var N=e.aX;if(N.$)return _(e,ya,Sc);y=N.a;return _(C(e,{aE:Ee,as:!1,J:!0}),m(qs,n,js,y,e.v.e,!e.aP||e._),Sc);case 17:return(P=t.a).$?_(C(e,{aE:ke((c=P.a).b),J:!1}),ya,Rc(c)):_(C(e,{as:!0,v:ga,J:!1}),ya,Sc);case 18:var A=e.aX;if(A.$)return _(ac(e),ya,Ws("?"));y=A.a;return _(C(e,{at:!0,ad:Ee}),l(Bs,n,Is,y),Sc);case 19:var P;return(P=t.a).$?_(C(e,{at:!1,ad:ke((c=P.a).b)}),ya,Rc(c)):_(C(e,{at:!1}),ya,Ws("?"));default:return _(e,ya,Sc)}var D})),Qs=function(t){return{$:2,a:t}},tf=a((function(t,n,e,r){return m(fc,t,"reset-password",n,sc(S([x("id",gc(e)),x("password",gc(r))])),l(Cr,Lo,f(Ta,"session",ai),f(Ta,"username",ai)))})),nf=a((function(t,n,e,r){switch(t.$){case 0:var a=t.a,i=t.b.e,o=$((0,t.b.I)(i),Ee);return _(C(e,a?{ah:l(Xi,e.ah,i,o)}:{bd:l(Xi,e.bd,i,o)}),ya,Sc);case 1:return _(C(e,{u:!0,ay:Ee}),d(tf,n,Qs,r,e.bd.e),Sc);default:var u=t.a;if(u.$)return _(C(e,{u:!1,ay:ke(u.a.b)}),ya,Sc);var c=u.a,s=c.a,m=c.b;return _(C(e,{u:!1,bd:ga,ah:ga}),ya,Ju(S([Ws("?"),f(Dc,s,m)])))}})),ef=function(t){return{$:1,a:t}},rf={$:4},af=r((function(t,n,e){if(t.$)return _((r=t.a).$?e:C(e,{a6:f(Ss,ke(r.a),e.cm.a6).by}),ya,Sc);var r,a=t.a;if((r=t.b).$){var i=r.a;return _(e,Bc(0),Xc(fo(i)))}var o=r.a,u=f(Ss,Ee,o.a6);return _(C(e,{a6:u.by,cm:o,aW:a}),pa(S([Bc(0),cs(u.bt)?ya:l(us,n,ef,u.bt)])),Xc(rf))})),of=function(t){return{$:5,a:t}},uf={$:6},cf=function(t){return{$:1,a:t}},sf=f(ro,cf,uu("user-bio")),ff=r((function(t,n,e){return m(fc,t,"user-settings",n,e,Mr(0))})),lf=r((function(t,n,e){switch(t.$){case 0:var r=t.a,a=t.b.e,i=t.b.cE,o=!!(0,t.b.I)(a).$;return _(function(){switch(r){case 0:return C(e,{x:l(Xi,e.x,a,o)});case 1:return C(e,{a7:l(Xi,e.a7,a,o)});case 2:return C(e,{a6:l(Xi,e.a6,a,o),X:i});case 3:return C(e,{bd:l(Xi,e.bd,a,o)});default:return C(e,{G:l(Xi,e.G,a,o)})}}(),ya,Sc);case 1:return _((f=t.a).$?e:C(e,{X:f.a.bU.aZ}),ya,Sc);case 2:return _(e,ya,_c);case 3:if((f=t.a).$){var u=f.a;return _(e,Bc(0),Ju(S([Xc(fo(u)),Rc(u)])))}var c=f.a.x,s=f.a.a7;return _(C(e,{a6:Bi(f.a.a6),X:0,a7:Bi(s),x:Bi(c)}),pa(S([Bc(0),sf])),Xc(uf));case 4:return _(C(e,{u:!0,ay:Ee}),l(ff,n,of,sc(Ys(S([$(e.x.e,e.x.ax)?Ee:ke(x("name",gc(e.x.e))),$(e.a7.e,e.a7.ax)?Ee:ke(x("email",gc(e.a7.e))),$(e.a6.e,e.a6.ax)?Ee:ke(x("bio",gc(e.a6.e))),Rr(e.bd.e)?Ee:ke(x("password",gc(e.bd.e))),Rr(e.bd.e)?Ee:ke(x("oldPassword",gc(e.G.e)))])))),Sc);default:var f;return(f=t.a).$?_(C(e,{u:!1,ay:ke((u=f.a).b)}),ya,Rc(u)):_(C(e,{a6:Bi(e.a6.e),a7:Bi(e.a7.e),u:!1,x:Bi(e.x.e),G:Bi(""),bd:Bi("")}),ya,Sc)}})),df=e((function(t,n){t:for(;;){var e=n.a,r=n.b;switch(t.$){case 0:var a=t.a,i=t.b,o=C(e,{E:rc(e.E),s:ec(e.s),a2:ha({a2:a,aW:i})}),u=hc(o),c=u.b;return x(u.a,pa(S([wc(x(a,i)),c,r,f(Ji,la,Wi(o))])));case 1:if($(e.a2,va))return x(e,r);if(xc(e))return x(C(e,{D:Qu}),r);var s=f(mf,nc,e);return x(o=s.a,pa(S([s.b,r])));case 2:return x(C(e,{C:t.a}),r);case 3:return x(e,pa(S([f(mc,e.L,t.a),r])));case 4:var l=t.a;if(l.b){var d=l.a;t=Ju(l.b),n=f(df,d,x(e,r));continue t}return x(e,r);default:return x(e,r)}}})),mf=e((function(t,n){switch(t.$){case 0:var e=t.a,r=t.b;return e&&xc(n)?x(C(n,{D:(E=r,{$:1,a:E})}),f(ro,(function(){return da}),uc("confirm-leave-btn"))):x(e?n:oc(C(n,{D:ma})),r.$?cc(a=r.a):f(mc,n.L,function(t){return l($c,"#",t.a8,l($c,"?",t.bN,M(f(yc,t.bJ,M(t.bM?"https://":"http://",t.bx)),t.cA)))}(a=r.a)));case 1:var a;if(uo(a=t.a))return x(C(n,{T:a}),f(to,a,n.L));var i=f(bc,n,a),o=i.b;return x(C(i.a,{T:a}),o);case 2:return x(C(n,{D:ma}),ya);case 3:var u=l(Hc,t.a,n,n.s),c=u.b;return f(df,u.c,x(C(n,{s:u.a}),f(Ji,la,c)));case 4:var s=l(lf,t.a,n,n.U);c=s.b;return f(df,s.c,x(C(n,{U:s.a}),f(Ji,xo,c)));case 5:var m=l(af,t.a,n,n.aB);c=m.b;return f(df,m.c,x(C(n,{aB:m.a}),f(Ji,To,c)));case 6:var b=l(Zc,t.a,n,n.E);c=b.b;return f(df,b.c,x(C(n,{E:b.a}),f(Ji,Jo,c)));case 7:var h=l(Ks,t.a,n,n.n);c=h.b;return f(df,h.c,x(C(n,{n:h.a}),f(Ji,ho,c)));case 8:var v=l(Ls,t.a,n,n.aX);c=v.b;return f(df,v.c,x(C(n,{aX:v.a}),f(Ji,mo,c)));case 9:var p=t.a,g=d(nf,t.b,n,n.aM,p);c=g.b;return f(df,g.c,x(C(n,{aM:g.a}),f(Ji,Ku(p),c)));case 10:return x(n,xc(n)?vc(0):ya);case 11:return x(n,f(Ji,la,Wi(n)));case 12:if("Escape"===t.a){var w=l(Hc,mu,n,n.s).a,y=l(Ks,Zu,n,n.n).a,$=l(Ls,Vu,n,n.aX).a;return x(C(n,{D:ma,E:l(Zc,Gu,n,n.E).a,aX:$,n:y,s:w}),ya)}return x(n,ya);case 13:var k=hc(oc(C(n,{D:ma,a2:va})));o=k.b;return x(k.a,pa(S([dc(0),f(lc,n,tc),o])));case 14:default:return x(n,ya)}var E})),bf={$:2},hf=vn,vf=hf,pf=hn("blockquote"),gf=hn("div"),wf=hn("h1"),yf=hn("h2"),$f=bs("id"),kf=hn("p"),Ef=S([f(gf,S([hs("main content text")]),S([f(wf,N,S([ks("About and help")])),f(kf,N,S([ks("If you have any questions or something isn't working, you can email "),f(ms,S([hs("link"),gs("mailto:[email protected]")]),S([ks("[email protected]")])),ks(" or send a message to "),l(Es,"Ovinus Real","https://www.facebook.com/ovinus.genuine","link"),ks(" on Facebook.")])),f(yf,N,S([ks("How do I join?")])),f(kf,N,S([ks('Once you find the game page (the link to which you should have received), click on the "Join" button on the top right (make sure you\'re logged in first) and enter in the passphrase. If you want to leave, you can click the "Leave" button on the top right.')])),f(yf,S([$f("elimination-sequences")]),S([ks("What are elimination sequences?")])),f(kf,N,S([ks('When a game starts, each player is assigned an elimination sequence and a target. The player must locate their target and "eliminate" them according to the game\'s rules. Then, the target is obligated to reveal their elimination sequence to the player. On the website, the player clicks the "Eliminate" button and enters in their target\'s elimination sequence to eliminate them, and the website will assign them a new target to find.')])),f(yf,S([$f("formatting")]),S([ks("Formatting")])),f(kf,N,S([ks("User bios and game descriptions support basic formatting. The following")])),f(pf,N,S([f(kf,N,S([ks("Mention a user: @example\nMention a game: !28a5b\nPost links: https://gunn.app/\n\n**Bold**, *italics*, ***both bold and italics***. Escaping characters: \\* lmunkler\\@example.com")]))])),f(kf,N,S([ks("produces")])),f(pf,N,S([f(kf,N,S([ks("Mention a user: "),f(ms,S([hs("link"),gs("?@example")]),S([ks("@example")])),ks("\nMention a game: "),f(ms,S([hs("link"),gs("?!28a5b")]),S([ks("Example game")])),ks("\nPost links: "),l(Es,"https://gunn.app/","https://gunn.app/","link"),ks("\n\n"),f(xs,N,S([ks("Bold")])),ks(", "),f(Ts,N,S([ks("italics")])),ks(", "),f(xs,N,S([f(Ts,N,S([ks("both bold and italics")]))])),ks(". Escaping characters: * [email protected]")]))]))]))]),Tf=hn("article"),xf=hn("iframe"),_f=e((function(t,n){var e=function(){switch(n.aP){case 0:return 1;case 1:return 0;default:return 2}}(),r=function(){switch(t.aP){case 0:return 1;case 1:return 0;default:return 2}}(),a=f(Ia,r,e);return 1===a?f(Ia,n.aR,t.aR):a})),Cf=function(t){switch(t){case 0:return"Awaiting players";case 1:return"Ongoing";default:return"Ended"}},Mf=hn("span"),Nf=function(t){var n=t.aX,e=t.bu,r=t.aP;return f(ms,S([hs("other-game"),gs("?!"+n)]),S([f(Mf,S([hs("other-game-name")]),S([ks(e)])),f(Mf,S([hs("other-game-status"),function(){switch(r){case 0:return hs("will-start");case 1:return hs("started");default:return hs("ended")}}()]),S([ks(Cf(r))]))]))},Af=function(t){return{$:4,a:t}},Pf={$:5},Sf=function(t){return{$:7,a:t}},Df=e((function(t,n){return f(yn,function(t){return/^(on|formAction$)/i.test(t)?"data-"+t:t}(t),$n(n))})),Lf=Df,jf=hn("button"),If=function(t){return hs(f(Re," ",f(ta,wr,f(Yc,kc,t))))},Of=e((function(t,n){return f(wn,t,Us(n))})),Ff=Of("disabled"),Wf=hn("form"),Rf=tt,Hf=hn("input"),Xf=W,Uf=e((function(t,n){return l(Qr,Ta,n,t)})),qf=at,zf=hn("label"),Bf=a((function(t,n,e,r){return{cE:r,cF:e,I:n,e:t}})),Yf=i((function(t,n,e,r,a){return t(d(Bf,n,e,r,a))})),Jf=bs("name"),Gf=pn,Vf=e((function(t,n){return f(Gf,t,{$:0,a:n})})),Zf=bs("placeholder"),Kf=gn,Qf=hn("textarea"),tl=bs("type"),nl=bs("value"),el=e((function(t,n){return f(zf,S([hs("input-wrapper"),If(S([x("error",(a=n.I(n.e),!a.$&&!Rr(a.a)))]))]),S([f(Mf,S([hs("label")]),S([ks(n.M)])),f(gf,S([hs("input")]),M(S([f("textarea"===n.aT?Qf:Hf,M(S([Zf(n.P),nl(n.e),f(Vf,"input",m(ji,Yf(t),f(Uf,S(["target","value"]),ai),Mr(n.I),f(Uf,S(["target","scrollWidth"]),qf),f(Uf,S(["target","scrollHeight"]),qf))),Jf(n.x)]),M("textarea"===n.aT?N:S([tl(n.aT)]),M((r=n.aZ,r.$?N:S([f(Kf,"height",r.a)])),M((e=n.a9,e.$?N:S([$f(e.a)])),n.a5)))),N)]),function(){var t=n.a0;if(t.$)return N;var e=t.a;return.7>Ir(n.e)/e?N:S([f(Mf,S([hs("count")]),S([ks(We(Ir(n.e))+"/"+We(e))]))])}())),f(Mf,S([hs("problem")]),function(){var t=n.I(n.e);if(t.$)return N;var e=t.a;return Rr(e)?N:S([ks(e)])}()),f(Mf,S([hs("sublabel")]),n.a3)]));var e,r,a})),rl={a5:N,aZ:Ee,a9:Ee,M:"",a0:Ee,x:"",P:"",a3:N,aT:"text",I:function(){return Ee},e:""},al=function(t){return f(Vf,"click",Mr(t))},il=function(t){return x(t,!0)},ol=e((function(t,n){return f(Gf,t,{$:2,a:n})})),ul=function(t){return f(ol,"submit",f(_r,il,Mr(t)))},cl=e((function(t,n){return f(Gf,t,{$:1,a:n})})),sl=function(t){return l(Ue,Ie,0,t)},fl=z,ll=e((function(t,n){return f(Tf,S([hs("target"),(i=sl(f(ta,Ge,l(fl,Te,N,n.bu))),f(Kf,"background-color","rgba(255, 0, 0, "+Rf(f(Xf,793,i)/3965)+")"))]),S([f(Mf,S([hs("leaderboard-link")]),S([ks("See leaderboard for "),f(ms,S([hs("game-link link"),gs("?!"+n.aX)]),S([ks(n.bu)]))])),f(Mf,S([hs("flex")]),S([ks(" ")])),f(Mf,S([hs("target-label")]),S([ks("Your target is")])),f(ms,S([hs("target-name link"),gs("?@"+n.cL)]),S([ks(n.cM)])),f(jf,S([hs("button kill-btn"),al((a=n.aX,{$:2,a:a}))]),S([ks("Eliminate")])),(r=t.af,r.$?ks(""):$(r.a,n.aX)?f(gf,S([hs("modal-back show"),al(Gu)]),S([f(Wf,S([hs("modal kill-modal"),f(cl,"click",Mr(x(Uc,!0))),ul(Pf)]),S([f(el,Af,C(rl,{a5:S([f(Lf,"autocapitalize","none")]),a9:ke("kill-modal-input"),M:"Target's elimination sequence",P:"hunter2",e:t.bl})),f(Hf,S([hs("button submit-btn"),If(S([x("loading",t.ab)])),tl("submit"),nl("Eliminate"),Ff(t.ab)]),N),function(){var n=t.ay;if(n.$)return ks("");var e=n.a;return f(Mf,S([hs("problematic-error")]),S([ks(e)]))}()]))])):ks("")),f(Mf,S([hs("flex")]),S([ks(" ")])),f(gf,S([hs("kill-code")]),S([f(Mf,S([hs("kill-code-header")]),S([ks("Your private code\n")])),(e=f(Vc,n.aX,t.R),f(Mf,S([hs("code copy-btn"),If(S([x("revealed",e)])),f(Lf,"data-clipboard-text",n.bl),al(Sf(n.aX))]),S([ks(n.bl)]))),f(Mf,S([hs("kill-code-subtitle")]),S([ks("\nClick to reveal these words to give when you are eliminated. "),f(ms,S([hs("link"),gs("?about#elimination-sequences")]),S([ks("Learn more.")]))]))])),f(Mf,S([hs("flex")]),S([ks(" ")]))]));var e,r,a,i})),dl=I,ml=e((function(t,n){var e,r;return t.a2.$?S([f(gf,S([hs("main front-text")]),S([f(xf,S([hs("video-embed"),(e="https://www.youtube.com/embed/ECQi_w-MJ84?autoplay=1&mute=1&controls=0&loop=1&playlist=ECQi_w-MJ84",f(bs,"src",$n(e)))]),N),f(wf,S([hs("website-title")]),S([ks("Elimination")])),l(Es,"Watch the video","https://www.youtube.com/watch?v=ECQi_w-MJ84","link watch-video-link")])),f(Tf,S([hs("main content welcome")]),S([f(kf,N,S([ks("Elimination is a game involving hunting people down for words. "),f(ms,S([hs("link"),gs("?about")]),S([ks("Learn more.")]))])),f(yf,S([hs("stats-header")]),S([ks("Site-wide statistics")])),f(gf,S([hs("stats")]),S([f(gf,S([hs("stat")]),S([f(Mf,S([hs("stat-name")]),S([ks("Global elimination count")])),f(Mf,S([hs("stat-value")]),S([ks(We(n.aA.a_))]))])),f(gf,S([hs("stat")]),S([f(Mf,S([hs("stat-name")]),S([ks("Ongoing games")])),f(Mf,S([hs("stat-value")]),S([ks(We(n.aA.b4))]))])),f(gf,S([hs("stat")]),S([f(Mf,S([hs("stat-name")]),S([ks("Total games")])),f(Mf,S([hs("stat-value")]),S([ks(We(n.aA.bv))]))]))]))]))]):M(S([f(gf,S([hs("main targets")]),ps(S([S([f(ms,S([hs("button small-screen-create-game-btn"),gs("?create-game")]),S([ks("Create game")]))]),cs(n.cI)?S([f(kf,S([hs("no-statuses")]),S([ks((r=n.cz,cs(r)?"To join a game, follow the link to a game page and click the Join button.":f(Gc,(function(t){return!t.aP}),r)?"When the game starts, you'll see your target and code here.":f(Gc,(function(t){return 1===t.aP}),r)?"You were eliminated! You can spectate by clicking on the game below.":"You aren't in any ongoing games. See the final results of previous games by clicking on them below."))]))]):f(ta,ll(n),n.cI)])))]),cs(n.cz)?N:S([f(gf,S([hs("other-games-wrapper")]),S([f(yf,S([hs("other-games-header")]),S([ks("Other games you've joined")])),f(gf,S([hs("other-games")]),f(ta,Nf,f(dl,_f,n.cz)))]))]))})),bl=function(t){return{$:2,a:t}},hl={$:5},vl={$:6},pl={$:8},gl={$:3},wl=function(t){return t?"—":"·"},yl=function(t){return f(Re,"",t)},$l=e((function(t,n){return br(t/n)})),kl=r((function(t,n,e){for(;;){if(!e.b)return n+t;var r=e.a,a=e.b;if(0>E(r.bg,n))return n+r.b;t=t,n=n,e=a}})),El=e((function(t,n){var e=t.b;return l(kl,t.a,f($l,n,6e4),e)})),Tl=function(t){var n=f($l,t,1440)+719468,e=(0>n?n-146096:n)/146097|0,r=n-146097*e,a=(r-(r/1460|0)+(r/36524|0)-(r/146096|0))/365|0,i=r-(365*a+(a/4|0)-(a/100|0)),o=(5*i+2)/153|0,u=o+(10>o?3:-9);return{bn:i-((153*o+2)/5|0)+1,bG:u,b3:a+400*e+(u>2?0:1)}},xl=e((function(t,n){return Tl(f(El,t,n)).bn})),_l=e((function(t,n){return f(Xf,24,f($l,f(El,t,n),60))})),Cl=e((function(t,n){return f(Xf,1e3,n)})),Ml=e((function(t,n){return f(Xf,60,f(El,t,n))})),Nl=e((function(t,n){switch(Tl(f(El,t,n)).bG){case 1:return 0;case 2:return 1;case 3:return 2;case 4:return 3;case 5:return 4;case 6:return 5;case 7:return 6;case 8:return 7;case 9:return 8;case 10:return 9;case 11:return 10;default:return 11}})),Al=U,Pl=r((function(t,n,e){return t>0?l(Pl,t>>1,M(n,n),1&t?M(e,n):e):e})),Sl=e((function(t,n){return l(Pl,t,n,"")})),Dl=r((function(t,n,e){return M(f(Sl,t-Ir(e),function(t){return f(Al,t,"")}(n)),e)})),Ll=e((function(t,n){return l(Dl,t,"0",We(n))})),jl=e((function(t,n){return f(Xf,60,f($l,n,1e3))})),Il=e((function(t,n){return Tl(f(El,t,n)).b3})),Ol=f(ku,0,N),Fl=function(t){return hn(function(t){return"script"==t?"p":t}(t))},Wl=function(t){var n=function(t){return f(Ll,4,f(Il,Ol,t))+"-"+f(Ll,2,function(t){switch(t){case 0:return 1;case 1:return 2;case 2:return 3;case 3:return 4;case 4:return 5;case 5:return 6;case 6:return 7;case 7:return 8;case 8:return 9;case 9:return 10;case 10:return 11;default:return 12}}(f(Nl,Ol,t)))+"-"+f(Ll,2,f(xl,Ol,t))+"T"+f(Ll,2,f(_l,Ol,t))+":"+f(Ll,2,f(Ml,Ol,t))+":"+f(Ll,2,f(jl,Ol,t))+"."+f(Ll,3,f(Cl,Ol,t))+"Z"}(_u(t));return l(Fl,"local-time",S([f(Lf,"datetime",n),f(Lf,"year","numeric"),f(Lf,"month","long"),f(Lf,"day","numeric"),f(Lf,"weekday","long"),f(Lf,"hour","numeric"),f(Lf,"minute","2-digit")]),S([ks(n)]))},Rl=e((function(t,n){return f(Mf,N,S([ks(function(){switch(t){case 0:return"Awaiting players since ";case 1:return"Ongoing since ";default:return"Ended on "}}()),Wl(n)]))})),Hl=e((function(t,n){return f(gf,S([hs("item")]),S([f(gf,S([hs("announcement")]),S([ks(n.bF)])),f(Mf,S([hs("item-info")]),S([Wl(n.aR),ks(yl(S([" "+wl(0)+" ",n.cl?"To all players":"To alive players only"])))]))]))})),Xl=r((function(t,n,e){return f(ms,S([hs("item"),If(S([x("dead",!e.a4),x("winner",n&&e.a4)])),gs("?@"+e.aW)]),S([f(Mf,S([hs("item-name")]),S([ks(e.x)])),f(Mf,S([hs("item-info")]),M(function(){var t=_(e.cp,e.cq,e.cr);if(t.a.$||t.b.$||t.c.$)return S([ks(n?"Winner":"Alive")]);var r=t.a.a,a=t.c.a;return S([ks("Eliminated on "),Wl(r),ks(" by "+a)])}(),S([ks(yl(S([" "+wl(0)+" ",We(e.a_),1===e.a_?" elimination":" eliminations"])))])))]))})),Ul=hn("section"),ql=j,zl=r((function(t,n,e){t:for(;;){if(t>0){if(n.b){var r=n.a;t=t-1,n=n.b,e=f(Te,r,e);continue t}return e}return e}})),Bl=e((function(t,n){return tr(l(zl,t,n,N))})),Yl=r((function(t,n,e){if(n>0){var r=x(n,e);t:for(;;){n:for(;;){if(!r.b.b)return e;if(!r.b.b.b){if(1===r.a)break t;break n}switch(r.a){case 1:break t;case 2:var a=r.b;return S([a.a,a.b.a]);case 3:if(r.b.b.b.b){var i=r.b,o=i.b;return S([i.a,o.a,o.b.a])}break n;default:if(r.b.b.b.b&&r.b.b.b.b.b){var u=r.b,c=u.b,s=c.b,d=s.b,m=d.a,b=d.b;return f(Te,u.a,f(Te,c.a,f(Te,s.a,f(Te,m,t>1e3?f(Bl,n-4,b):l(Yl,t+1,n-4,b)))))}break n}}return e}return S([r.b.a])}return N})),Jl=e((function(t,n){return l(Yl,0,t,n)})),Gl=e((function(t,n){return S([f(Tf,S([hs("main content profile")]),S([f(gf,S([hs("profile-info")]),S([f(wf,S([hs("profile-name")]),M(S([f(ms,S([hs("link"),gs("?!"+n.aX)]),S([ks(n.cm.x)])),f(Mf,S([hs("flex")]),S([ks(" ")]))]),function(){var e=t.a2;if(e.$)return n.cm.aP?N:S(n.cm.bC?[f(jf,S([hs("button join-btn"),Ff(!0)]),S([ks("Joining has been disabled")]))]:[f(jf,S([hs("button join-btn"),Ff(!0)]),S([ks("You need to be signed in to join")]))]);var r=e.a.aW;return S([$(r,n.cm.cc.a)?f(ms,S([hs("icon-btn settings-btn"),gs("?settings!"+n.aX)]),S([ks("Settings")])):ks(""),n.cm.aP?ks(""):f(Gc,(function(t){return $(t.aW,r)}),n.cm.a1)?f(jf,S([hs("button join-btn"),If(S([x("loading",n.u)])),Ff(n.u),al(vl)]),S([ks("Leave")])):n.cm.bC?f(jf,S([hs("button join-btn"),Ff(!0)]),S([ks("Joining has been disabled")])):f(jf,S([hs("button join-btn"),al(gl)]),S([ks("Join")]))])}())),f(gf,S([hs("modal-back"),If(S([x("show",n.af)])),al(Vu)]),S([f(Wf,S([hs("modal join-modal"),f(cl,"click",Mr(x(Kc,!0))),ul(hl)]),S([f(el,bl,C(rl,{a5:S([f(Lf,"autocapitalize","none"),f(Lf,"autocorrect","off")]),a9:ke("join-modal-input"),M:"Passphrase",P:"hunter2",e:n.bd})),f(Hf,S([hs("button submit-btn"),If(S([x("loading",n.u)])),tl("submit"),nl("Join"),Ff(n.u)]),N),function(){var t=n.ay;if(t.$)return ks("");var e=t.a;return f(Mf,S([hs("problematic-error")]),S([ks(e)]))}()]))])),f(Mf,S([hs("profile-subtitle")]),S([ks("Created by "),(r=n.cm.cc,a=r.a,i=r.b,f(ms,S([hs("link"),gs("?@"+a)]),S([ks(i)])))])),f(kf,S([hs("profile-desc")]),n.bo),f(kf,S([hs("profile-desc profile-stats")]),S([f(Rl,n.cm.aP,n.cm.aR),ks(yl(S([" "+wl(0)+" ",We(qe(f(Yc,(function(t){return t.a4}),n.cm.a1)))," of "+We(qe(n.cm.a1)),1===qe(n.cm.a1)?" participant":" participants"," alive"])))]))])),f(gf,S([hs("lists")]),S([cs(n.cm.b6)?ks(""):f(Ul,S([hs("list")]),f(Te,f(yf,N,S([ks("Announcements")])),(e=f(ta,Hl(t),tr(f(ql,(function(t){return t.aR}),n.cm.b6))),n.aN||5>=qe(e)?e:M(f(Jl,5,e),S([f(jf,S([hs("button"),al(pl)]),S([ks("Show all")]))]))))),f(Ul,S([hs("list")]),f(Te,f(yf,N,S([ks(n.cm.aP?"Leaderboard by most eliminations":"Participants ("+We(qe(n.cm.a1))+")")])),f(ta,f(Xl,t,2===n.cm.aP),f(dl,(function(t){return function(e){var r=f(Ia,e.a_,t.a_);if(1===r){var a=x(t.cp,e.cp);if(a.a.$){if(a.b.$){var i=x(f(Oa,t.aW,n.aG),f(Oa,e.aW,n.aG));return i.a.$||i.b.$?f(Ia,e.bD,t.bD):f(Ia,i.b.a,i.a.a)}return 0}if(a.b.$){return 2}return f(Ia,a.b.a,a.a.a)}return r}}),n.cm.a1))))]))]))]);var e,r,a,i})),Vl={$:16},Zl=e((function(t,n){return{$:0,a:t,b:n}})),Kl=function(t){return{$:2,a:t}},Ql=function(t){return{$:1,a:t}},td={$:18},nd={$:6},ed={$:14},rd={$:12},ad=Of("checked"),id=f(Uf,S(["target","checked"]),Ea),od=function(t){return f(Vf,"change",f(_r,t,id))},ud={$:10},cd=e((function(t,n){return f(gf,S([hs("member-item"),If(S([x("member-dead",!n.a4)]))]),S([f(gf,S([hs("member")]),S([f(ms,S([hs("link member-link"),gs("?@"+n.aW)]),S([ks(n.x)])),f(Mf,S([hs("member-info")]),S([ks("Joined "),Wl(n.bD),ks(yl(S([" "+wl(0)+" ",We(n.a_),1===n.a_?" elimination":" eliminations"," "+wl(0)+" ",n.a4?"Alive":"Eliminated"])))])),function(){var t=n.bl;if(t.$)return ks("");var e=t.a;return f(Mf,S([hs("member-info")]),S([ks("Elimination sequence: "+e)]))}()])),2===t.aP?ks(""):f(jf,S([hs("button kick-btn"),al((r=n.aW,{$:8,a:r}))]),S([ks("Kick")])),(e=t.af,e.$?ks(""):$(e.a,n.aW)?f(gf,S([hs("modal-back show"),al(Zu)]),S([f(Wf,S([hs("modal kick-modal"),f(cl,"click",Mr(x(Os,!0))),ul(ud)]),S([f(el,Zl(3),C(rl,{a9:ke("kick-modal-input"),M:"Kick reason (optional)",P:"Undesirable.",e:t.aw})),f(Hf,S([hs("button submit-btn"),If(S([x("loading",t.aa)])),tl("submit"),nl("Kick"),Ff(t.aa)]),N),function(){var n=t.av;if(n.$)return ks("");var e=n.a;return f(Mf,S([hs("problematic-error")]),S([ks(e)]))}()]))])):ks(""))]));var e,r})),sd=e((function(t,n){return S([f(gf,S([hs("main content settings")]),S([f(wf,N,Ys(S([ke(ks("Game settings")),ke(f(Mf,S([hs("flex")]),S([ks(" ")]))),$(n.aX,Ee)||n.aP?Ee:ke(f(jf,S([hs("button"),If(S([x("loading",n.aq)])),Ff(2>qe(n.a1)||n.aq),al(rd)]),S([ks("Start game")]))),function(){var t=n.aX;if(t.$)return Ee;var e=t.a;return ke(f(ms,S([hs("button"),gs("?!"+e)]),S([ks("View game page")])))}()]))),function(){var t=x(n.aX,n.aP);if(t.a.$||t.b)return ks("");var e=t.a.a;return f(pf,S([hs("advertise-game-banner")]),S([ks("Have people join by sending them a link to "),f(ms,S([hs("link"),gs("?!"+e)]),S([ks("https://orbiit.github.io/elimination/?!"+e)])),ks(" and giving them the passphrase.")]))}(),f(Wf,S([ul(nd)]),S([f(gf,S([hs("input-row")]),S([f(el,Zl(0),C(rl,{M:"Name",a0:ke(100),P:"The People's Elimination Game",a3:S([ks("Required.")]),I:function(t){return Rr(t)?ke($(n.aX,Ee)?"":"The name cannot be empty."):Ir(t)>100?ke("The name cannot be over 100 characters long."):Ee},e:n.x.e})),n.aP?ks(""):f(el,Zl(2),C(rl,{a5:S([f(Lf,"autocapitalize","none"),f(Lf,"autocorrect","off")]),M:"Passphrase to join",a0:ke(200),P:"hunter2",a3:S([ks("Share this passphrase to people who you want to join. Passphrases are case insensitive."),f(zf,S([hs("checkbox-label")]),S([f(Hf,S([tl("checkbox"),hs("checkbox"),ad(n.m.a),od(Ql)]),N),ks(" Allow people to join")]))]),I:function(t){return Ir(t)>200?ke("The passphrase cannot be over 200 characters long."):Ee},e:n.bd.e}))])),f(gf,S([hs("input-row")]),S([f(el,Zl(1),C(rl,{aZ:ke(Rf(n.Y+6)+"px"),a9:ke("game-desc"),M:"Description and rules",a0:ke(2e3),P:"Please pick up the bowling balls from the front office by February 30th. Eliminations may only occur when the student is not carrying their bowling ball. Eliminations may not occur during Mr. Leasio's classes. Inappropriate behaviour will result in immediate disqualification. Targets will be shuffled every week. Good luck!",a3:S([ks("List rules for elimination here, such as how they can be blocked, and when and where eliminations are allowed to be made. "),f(ms,S([hs("link"),gs("?about#formatting")]),S([ks("Basic formatting")])),ks(" is available.")]),aT:"textarea",I:function(t){return Ir(t)>2e3?ke("Description can only be at most 2000 characters long."):Ee},e:n.i.e}))])),(e=n.x.V&&n.i.V&&n.bd.V,r=Ec(n),f(Hf,S([hs("button submit-btn"),If(S([x("loading",n.u)])),tl("submit"),nl($(n.aX,Ee)?"Create":r?"Save":"Saved"),Ff(n.u||!r||!e)]),N)),function(){var t=n.ay;if(t.$)return ks("");var e=t.a;return f(Mf,S([hs("problematic-error")]),S([ks(e)]))}()])),$(n.aX,Ee)||2===n.aP?ks(""):f(Wf,S([ul(Vl)]),S([f(gf,S([hs("input-row")]),S([f(el,Zl(4),C(rl,{aZ:ke(Rf(n.W+6)+"px"),a9:ke("game-announcement"),M:"Send an announcement",a0:ke(2e3),P:"A reminder: we have always been at war with Eastasia.",a3:1===n.aP?S([f(zf,S([hs("checkbox-label")]),S([f(Hf,S([tl("checkbox"),hs("checkbox"),ad(n._),od(Kl)]),N),ks(" Also send a notification to eliminated players")]))]):N,aT:"textarea",I:function(t){return Ir(t)>2e3?ke("Announcement can only be at most 2000 characters long."):Rr(t)?ke(""):Ee},e:n.v.e}))])),f(Hf,S([hs("button submit-btn"),If(S([x("loading",n.J)])),tl("submit"),nl(n.J?"Sending":n.as?"Sent":"Send"),Ff(n.J||!n.v.V)]),N),function(){var t=n.aE;if(t.$)return ks("");var e=t.a;return f(Mf,S([hs("problematic-error")]),S([ks(e)]))}()])),f(gf,S([hs("members")]),M(S([f(yf,S([hs("members-header")]),S([ks("Participants ("+We(qe(n.a1))+")"),f(Mf,S([hs("flex")]),S([ks(" ")])),1===n.aP?f(jf,S([hs("button"),If(S([x("loading",n.ak)])),Ff(n.ak),al(ed)]),S([ks(n.aj?"Targets shuffled":"Shuffle targets")])):ks("")])),function(){var t=n.ad;if(t.$)return ks("");var e=t.a;return f(Mf,S([hs("problematic-error")]),S([ks(e)]))}()]),cs(n.a1)?S([f(gf,S([hs("delete-game-wrapper")]),S([f(kf,S([hs("delete-game")]),S([ks("Accidentally created a game?")])),f(jf,S([hs("button"),If(S([x("loading",n.at)])),al(td)]),S([ks("Delete game")]))]))]):f(ta,cd(n),tr(f(ql,(function(t){return t.bD}),n.a1)))))]))]);var e,r})),fd=S([f(Tf,S([hs("main content loading-wrapper")]),S([f(kf,S([hs("loading-text")]),S([ks("[temporary content]")]))]))]),ld=hn("li"),dd=hn("ul"),md=S([f(gf,S([hs("main content text")]),S([f(wf,N,S([ks("Privacy policy")])),f(kf,N,S([ks("Our services collect and store all user data you give us to remember that games and users exist. Examples of data collected include, but are not limited to:")])),f(dd,N,S([f(ld,N,S([ks("Usernames")])),f(ld,N,S([ks("Account emails")])),f(ld,N,S([ks("Display names")])),f(ld,N,S([ks("User-submitted bios")])),f(ld,N,S([ks("The games you created")])),f(ld,N,S([ks("The games you joined")])),f(ld,N,S([ks("Game names")])),f(ld,N,S([ks("User-submitted game descriptions")])),f(ld,N,S([ks("Game passphrases (not encrypted)")])),f(ld,N,S([ks("Whether you were killed in a game")]))])),f(kf,N,S([ks("We also collect user passwords, but we "),l(Es,"salt","https://en.wikipedia.org/wiki/Salt","link"),ks(" and encrypt them before storing them. Game passphrases are NOT encrypted so that game creators can return to their game settings page to see what it is.")])),f(kf,N,S([ks("Only usernames, user display names, user bios, game names, game descriptions, the games you created and joined, and other game-related personal information are publicized.")])),f(kf,N,S([ks("User information is stored in an unencrypted "),l(Es,"lowdb","https://github.com/typicode/lowdb","link"),ks(" database without backups on a laptop. This means that someone with access to our database will be able to access a few other data such as everyone's encrypted passwords. We are not responsible for spontaneous data loss. We do not sell your user information because we don't know to whom it should be sold.")])),f(kf,N,S([ks("If you would like to download or delete all your data, please email "),f(ms,S([gs("mailto:[email protected]"),hs("link")]),S([ks("[email protected]")])),ks(". This is not because we want to discourage users from doing this; rather, we have not gotten to implementing an automatic and more user-friendly method yet.")]))]))]),bd=e((function(t,n){return{$:0,a:t,b:n}})),hd={$:1},vd='Must be at least 6 characters long. We recommend using a memorable sentence, such as "Do not use example passwords."',pd=function(t){return"Do not use example passwords."===t?ke("Yeah, don't."):Ir(t)>200?ke("Passwords can't be over 200 characters."):6>Ir(t)?ke("Password too short. It must be at least six characters long."):Ee},gd=e((function(t,n){return n.$?t:n.a})),wd=e((function(t,n){return S([f(Wf,S([hs("main content text"),ul(hd)]),S([f(wf,N,S([ks("Reset your password")])),f(el,bd(0),C(rl,{M:"Password",a0:ke(200),x:"password",P:"hunter2",a3:S([ks(vd)]),aT:"password",I:function(t){return Rr(t)?ke(""):pd(t)},e:n.bd.e})),f(el,bd(1),C(rl,{M:"Password again",x:"password",P:"hunter2",aT:"password",I:function(t){return $(t,n.bd.e)?Ee:ke("Passwords do not match!")},e:n.ah.e})),f(Hf,S([hs("button submit-btn"),If(S([x("loading",n.u)])),tl("submit"),nl("Reset"),Ff(n.u||!(n.bd.V&&n.ah.V))]),N),f(Mf,S([hs("problematic-error")]),S([ks(f(gd,"",n.ay))]))]))])})),yd=S([f(gf,S([hs("main content text")]),S([f(wf,N,S([ks("Terms of use")])),f(kf,N,S([ks("Please do not do anything illegal or taboo with our service.")]))]))]),$d=function(t){return f(ms,S([hs("item"),If(S([x("winner",2===t.aP&&t.a4)])),gs("?!"+t.aX)]),S([f(Mf,S([hs("item-name")]),S([ks(t.x)])),f(Mf,S([hs("item-info")]),S([ks(yl(S([We(t.a1),1===t.a1?" participant":" participants"," "+wl(0)+" ",Cf(t.aP)," "+wl(0)+" ",t.a4?2===t.aP?"Winner":"Alive":"Eliminated"," "+wl(0)+" ",We(t.a_),1===t.a_?" elimination":" eliminations"])))]))]))},kd=e((function(t,n){return f(ms,S([hs("item"),gs("?!"+n.aX)]),S([f(Mf,S([hs("item-name")]),S([ks(n.x)])),f(Mf,S([hs("item-info")]),S([ks(yl(S([We(n.a1),1===n.a1?" participant":" participants"," "+wl(0)+" "]))),f(Rl,n.aP,n.aR)]))]))})),Ed=e((function(t,n){return S([f(Tf,S([hs("main content profile")]),S([f(gf,S([hs("profile-info")]),S([f(wf,S([hs("profile-name")]),S([f(ms,S([hs("link"),gs("?@"+n.aW)]),S([ks(n.cm.x)])),f(Mf,S([hs("flex")]),S([ks(" ")])),(e=t.a2,e.$?ks(""):$(e.a.aW,n.aW)?f(ms,S([hs("icon-btn settings-btn"),gs("?settings")]),S([ks("Settings")])):ks(""))])),f(Mf,S([hs("profile-subtitle")]),S([ks("@"+n.aW)])),f(kf,S([hs("profile-desc")]),n.a6),f(kf,S([hs("profile-desc profile-stats")]),S([ks("Total eliminations: "+We(sl(f(ta,(function(t){return t.a_}),n.cm.bv))))]))])),f(gf,S([hs("lists")]),S([cs(n.cm.cu)?ks(""):f(Ul,S([hs("list")]),f(Te,f(yf,N,S([ks("Games I created ("+We(qe(n.cm.cu))+")")])),f(ta,kd(t),tr(f(ql,(function(t){return t.aR}),n.cm.cu))))),cs(n.cm.bv)?ks(""):f(Ul,S([hs("list")]),f(Te,f(yf,N,S([ks("Games in which I participate ("+We(qe(n.cm.bv))+")")])),f(ta,$d,tr(f(ql,(function(t){return t.cS}),n.cm.bv)))))]))]))]);var e})),Td=e((function(t,n){return{$:0,a:t,b:n}})),xd={$:2},_d={$:4},Cd="For password reset forms. You can also turn on email notifications if you want.",Md=e((function(t){return t})),Nd=e((function(t,n){return{bp:n,bE:t}})),Ad=e((function(t,n){return{$:1,a:t,b:n}})),Pd=r((function(t,n,e){return{$:0,a:t,b:n,c:e}})),Sd=e((function(t,n){var e=n;return function(n){var r=e(n);if(1===r.$)return f(Ad,r.a,r.b);var a=r.a,i=r.c,o=t(r.b)(i);if(1===o.$){var u=o.a;return f(Ad,a||u,o.b)}u=o.a;return l(Pd,a||u,o.b,o.c)}})),Dd=we,Ld=i((function(t,n,e,r,a){for(;;){var i=l(Dd,t,n,a.a);if($(i,-1))return l(Pd,0>E(a.b,n),0,{bm:r,c:a.c,d:a.d,b:n,bT:e,a:a.a});if($(i,-2))t=t,n=n+1,e=e+1,r=1,a=a;else t=t,n=i,e=e,r=r+1,a=a}})),jd=function(t){return function(n){return m(Ld,t,n.b,n.bT,n.bm,n)}},Id=e((function(t,n){var e=n;return function(n){var r=e(n);if(1===r.$)return f(Ad,r.a,r.b);var a=r.b,i=r.c;return l(Pd,r.a,f(t,l(Or,n.b,i.b,n.a),a),i)}})),Od=function(t){return f(Id,Md,t)},Fd=e((function(t,n){return{$:1,a:t,b:n}})),Wd=a((function(t,n,e,r){return{bm:n,cb:r,ay:e,bT:t}})),Rd={$:0},Hd=e((function(t,n){return f(Fd,Rd,d(Wd,t.bT,t.bm,n,t.c))})),Xd=function(t){return n={$:12,a:t},function(t){return f(Ad,!1,f(Hd,t,n))};var n},Ud=function(t){return function(n){return l(Pd,!1,t,n)}},qd=f(Sd,(function(t){return Rr(t)?Xd("domain is empty"):f(jr,".",t)?Ud(t):Xd("domain is not valid")}),Od(jd((function(t){return Qe(t)||"-"===t||"."===t})))),zd=(Xu={$:10},function(t){return $(Ir(t.a),t.b)?l(Pd,!1,0,t):f(Ad,!1,f(Hd,t,Xu))}),Bd=r((function(t,n,e){var r=n,a=e;return function(n){var e=r(n);if(1===e.$)return f(Ad,e.a,e.b);var i=e.a,o=e.b,u=a(e.c);if(1===u.$){var c=u.a;return f(Ad,i||c,u.b)}c=u.a;var s=u.c;return l(Pd,i||c,f(t,o,u.b),s)}})),Yd=e((function(t,n){return l(Bd,Md,t,n)})),Jd=e((function(t,n){return l(Bd,mr,t,n)})),Gd=q,Vd=function(t){return Rr(t)?Xd("local part is empty"):f(Yr,".",t)?Xd("local part cannot start with ."):f(Wc,".",t)?Xd("local part cannot end with ."):f(jr,"..",t)?Xd("local part cannot contain .."):l(Gd,e((function(t,n){return n&&function(t){return Qe(t)||"!"===t||"#"===t||"$"===t||"%"===t||"&"===t||"*"===t||"_"===t||"-"===t||"~"===t||"|"===t||"+"===t||"="===t||"`"===t||"{"===t||"}"===t||"."===t}(t)})),!0,t)?Ud(t):Xd("local part contains invalid characters")},Zd=ye,Kd=a((function(t,n,e,r){return f(Fd,Rd,d(Wd,t,n,e,r))})),Qd=e((function(t,n){return{$:0,a:t,b:n}})),tm=f(Sd,Vd,Od(function(t){var n=t.a,e=t.b;return function(t){var r=m(Zd,n,t.b,t.bT,t.bm,t.a),a=r.a,i=r.b,o=r.c;return $(a,-1)?f(Ad,!1,d(Kd,i,o,e,t.c)):l(Pd,0>E(t.b,a),0,{bm:o,c:t.c,d:t.d,b:a,bT:i,a:t.a})}}(function(t){return f(Qd,t,{$:0,a:t})}("@")))),nm=ge,em=function(t){var n=t.a,e=t.b,r=!Rr(n);return function(t){var a=m(nm,n,t.b,t.bT,t.bm,t.a),i=a.a,o=a.b,u=a.c;return $(i,-1)?f(Ad,!1,f(Hd,t,e)):l(Pd,r,0,{bm:u,c:t.c,d:t.d,b:i,bT:o,a:t.a})}},rm=f(Jd,f(Jd,Ud(Nd),f(Yd,tm,function(t){return em(f(Qd,t,{$:8,a:t}))}("@"))),f(Yd,qd,zd)),am=e((function(t,n){return n.$?Ae(n.a):Le(t(n.a))})),im=r((function(t,n,e){return{bm:n,ay:e,bT:t}})),om=function(t){return l(im,t.bT,t.bm,t.ay)},um=e((function(t,n){t:for(;;)switch(t.$){case 0:return n;case 1:var e=t.b;t=t.a,n=f(Te,e,n);continue t;default:var r=t.b;t=t.a,n=f(um,r,n);continue t}})),cm=e((function(t,n){var e=t({bm:1,c:N,d:1,b:0,bT:1,a:n});return e.$?Ae(f(um,e.b,N)):Le(e.b)})),sm=e((function(t,n){var e=f(cm,t,n);return e.$?Ae(f(ta,om,e.a)):Le(e.a)})),fm=e((function(t,n){return n.$?t:n.a})),lm=function(t){return Ir(t)>320?ke("Emails can't be over 320 characters. (Some article I read says it actually can't be over 254 characters, so...)"):(n=t,f(fm,!1,f(am,Md(!0),f(sm,rm,n)))?Ee:ke("That does not look like an email."));var n},dm="Lets others be able to find and eliminate you, which makes the game fair.",mm=function(t){return Ir(t)>50?ke("Names cannot be over 50 characters long. Sorry if your name is actually over 50 characters long!"):Rr(t)?ke("You need to have a name."):Ee},bm=e((function(t,n){return S([f(gf,S([hs("main content settings")]),S([f(wf,N,S([f(Mf,N,S([ks("User settings")])),f(Mf,S([hs("flex")]),S([ks(" ")])),f(ms,S([hs("button"),gs((a=t.a2,a.$?"?":"?@"+a.a.aW))]),S([ks("View profile")])),f(jf,S([hs("button"),If(S([x("loading",n.a$)])),al(xd),Ff(n.a$)]),S([ks("Sign out")]))])),f(Wf,S([ul(_d)]),S([f(gf,S([hs("input-row")]),S([f(el,Td(0),C(rl,{M:"Display name",a0:ke(50),P:"Billy Chelontuvier",a3:S([ks(dm)]),I:mm,e:n.x.e})),f(el,Td(1),C(rl,{M:"Email",a0:ke(320),P:"[email protected]",a3:S([ks(Cd)]),aT:"email",I:lm,e:n.a7.e}))])),f(gf,S([hs("input-row")]),S([f(el,Td(2),C(rl,{aZ:ke(Rf(n.X+6)+"px"),a9:ke("user-bio"),M:"Bio",a0:ke(2e3),P:"Introduce yourself here",a3:S([f(ms,S([hs("link"),gs("?about#formatting")]),S([ks("Basic formatting")])),ks(" is available.")]),aT:"textarea",I:function(t){return Ir(t)>2e3?ke("Bio can only be at most 2000 characters long."):Ee},e:n.a6.e}))])),f(yf,N,S([ks("Change your password")])),f(gf,S([hs("input-row")]),S([f(el,Td(3),C(rl,{M:"New password",a0:ke(200),P:"hunter2",a3:S([ks(vd)]),aT:"password",I:function(t){return Rr(t)?Ee:pd(t)},e:n.bd.e})),f(el,Td(4),C(rl,{M:"Old password",P:"hunter2",aT:"password",e:n.G.e}))])),(e=n.x.V&&n.a7.V&&n.a6.V&&n.bd.V&&n.G.V,r=Tc(n),f(Hf,S([hs("button submit-btn"),If(S([x("loading",n.u)])),tl("submit"),nl(r?"Save":"Saved"),Ff(n.u||!r||!e)]),N)),function(){var t=n.ay;if(t.$)return ks("");var e=t.a;return f(Mf,S([hs("problematic-error")]),S([ks(e)]))}()]))]))]);var e,r,a})),hm=function(t){var n=t.C;switch(n.$){case 0:return f(ta,vf(Jo),f(ml,t,t.E));case 1:return yd;case 2:return md;case 3:return Ef;case 4:return f(ta,vf(To),f(Ed,t,t.aB));case 5:return f(ta,vf(mo),f(Gl,t,t.aX));case 6:return f(ta,vf(xo),f(bm,t,t.U));case 7:return f(ta,vf(ho),f(sd,t,t.n));case 8:return f(ta,vf(Ku(n.a)),f(wd,t,t.aM));case 10:return function(t){var n=t.a,e=t.b;return S([f(Tf,S([hs("main content http-error")]),S([f(gf,S([hs("http-error-content")]),S([function(){if(n.$){var t=n.a;return f(wf,S([hs("status-code")]),S([ks(We(t))]))}var e=n.a;return f(wf,S([hs("status-code is-text")]),S([ks(e)]))}(),f(kf,S([hs("problem")]),S([ks(e)])),f(ms,S([gs("?"),hs("button return-home")]),S([ks("Return home")]))]))]))])}(n.a);default:return fd}},vm=r((function(t,n,e){return S([f(gf,S([hs("modal-back show")]),S([f(gf,S([hs("modal unsaved-changes")]),S([f(kf,S([hs("confirm-msg")]),S([ks(n)])),f(gf,S([hs("confirm-btn-wrapper")]),S([e,f(jf,S([hs("button cancel-btn"),al(t)]),S([ks("Cancel")]))]))]))]))])})),pm=e((function(t,n){return l(vm,n,"You have unsaved changes. Are you sure you want to leave?",f(jf,S([hs("button"),$f("confirm-leave-btn"),al(t)]),S([ks("Leave")])))})),gm=e((function(t,n){return l(vm,n,"You have unsaved changes. Are you sure you want to sign out?",f(jf,S([hs("button"),$f("confirm-leave-btn"),al(t)]),S([ks("Sign out")])))})),wm=S([f(hn("footer"),S([hs("footer")]),S([f(Mf,N,S([ks("From the creators of "),l(Es,"UGWA","https://gunn.app/","link"),ks(".")])),f(Mf,S([hs("flex")]),S([ks(" ")])),f(Mf,N,S([l(Es,"Github","https://github.com/Orbiit/elimination","link"),ks(" "+wl(0)+" "),f(ms,S([gs("?about"),hs("link")]),S([ks("Help")])),ks(" "+wl(0)+" "),f(ms,S([gs("?privacy"),hs("link")]),S([ks("Privacy policy")])),ks(" "+wl(0)+" "),f(ms,S([gs("?terms"),hs("link")]),S([ks("Terms of use")]))]))]))]),ym={$:12},$m={$:14},km={$:10},Em={$:9},Tm=e((function(t,n){return{$:3,a:t,b:n}})),xm={$:7},_m={$:2},Cm=function(t){return f(gf,S([hs("header-window")]),S([f(kf,S([hs("auth-note")]),S([f(jf,S([hs("link"),al(_m)]),S([ks("Back")]))])),f(kf,S([hs("auth-note")]),S([ks("We'll send instructions for resetting your password to the email with which you signed up.")])),f(Wf,S([ul(xm)]),S([f(el,Tm(0),C(rl,{a5:S([f(Lf,"autocapitalize","none"),f(Lf,"autocorrect","off")]),a9:ke("login-input"),M:"Username",x:"username",P:"billygamer5",I:function(t){return Rr(t)?ke(""):Ee},e:t.w.e})),f(Hf,S([hs("button submit-btn"),If(S([x("loading",t.r)])),tl("submit"),nl("Send"),Ff(t.r||!t.w.V)]),N)])),f(Mf,S([hs("problematic-error")]),S([ks(f(gd,"",t.O))])),f(kf,S([hs("auth-note")]),S([ks("If receiving the email doesn't work, check your spam folder, then message "),l(Es,"Ovinus Real","https://www.facebook.com/ovinus.real","link"),ks(" or email "),f(ms,S([gs("mailto:[email protected]"),hs("link")]),S([ks("[email protected]")])),ks(" for a password reset link.")]))]))},Mm=hn("header"),Nm=i((function(t,n,e,r,a){return f(gf,S([hs("header-window-wrapper"),If(S([x("open",$(t.aL,r))])),f(cl,"click",Mr(x(Cc,!0)))]),f(Te,f(jf,S([hs(n),f(cl,"click",Mr(x((i=r,{$:0,a:i}),!0)))]),e),a));var i})),Am={$:4},Pm=function(t){return f(gf,S([hs("header-window")]),S([f(Wf,S([ul(Am)]),S([f(el,Tm(0),C(rl,{a5:S([f(Lf,"autocapitalize","none"),f(Lf,"autocorrect","off")]),a9:ke("login-input"),M:"Username",x:"username",P:"billygamer5",I:function(t){return Rr(t)?ke(""):Ee},e:t.w.e})),f(el,Tm(1),C(rl,{M:"Password",x:"password",P:"hunter2",aT:"password",I:function(t){return Rr(t)?ke(""):Ee},e:t.N.e})),f(Hf,S([hs("button submit-btn"),If(S([x("loading",t.r)])),tl("submit"),nl("Log in"),Ff(t.r||!(t.w.V&&t.N.V))]),N)])),f(Mf,S([hs("problematic-error")]),S([ks(f(gd,"",t.O))])),f(kf,S([hs("auth-note")]),S([f(jf,S([hs("link"),al(_m)]),S([ks("Forgot your password?")]))]))]))},Sm=function(t){var n=t.aR,e=t.cB,r=t.bF;return f(gf,S([hs("notif"),If(S([x("unread",!e)]))]),S([f(Mf,S([hs("notif-timestamp")]),S([Wl(n)])),function(){switch(r.$){case 0:var t=r.a,n=r.b,e=x(r.c,r.d);if(e.a.$||e.b.$)return f(Mf,S([hs("notif-msg")]),S([f(ms,S([hs("link notif-name"),gs("?!"+t)]),S([ks(n)])),ks(" has started! See the home page for your target.")]));var a=e.a.a,i=e.b.a;return f(Mf,S([hs("notif-msg")]),S([f(ms,S([hs("link notif-name"),gs("?!"+t)]),S([ks(n)])),ks(" has started! Your target is "),f(ms,S([hs("link notif-name"),gs("?@"+a)]),S([ks(i)])),ks(".")]));case 1:t=r.a,n=r.b;var o=r.c,u=r.d;return f(Mf,S([hs("notif-msg")]),S([f(ms,S([hs("link notif-name"),gs("?!"+t)]),S([ks(n)])),ks(" has ended! "),f(ms,S([hs("link notif-name"),gs("?@"+o)]),S([ks(u)])),ks(" was the last one standing.")]));case 2:t=r.a,n=r.b;var c=r.c,s=r.d;return f(Mf,S([hs("notif-msg")]),S([f(ms,S([hs("link notif-name"),gs("?@"+c)]),S([ks(s)])),ks(" has just eliminated you in "),f(ms,S([hs("link notif-name"),gs("?!"+t)]),S([ks(n)])),ks(".")]));case 3:t=r.a,n=r.b;var l=x(r.c,r.d);if(l.a.$||l.b.$)return f(Mf,S([hs("notif-msg")]),S([ks("Your target has marked themself as eliminated in "),f(ms,S([hs("link notif-name"),gs("?!"+t)]),S([ks(n)])),ks(". Check the home page for your new target.")]));a=l.a.a,i=l.b.a;return f(Mf,S([hs("notif-msg")]),S([ks("Your target has marked themself as eliminated in "),f(ms,S([hs("link notif-name"),gs("?!"+t)]),S([ks(n)])),ks(", so your new target is "),f(ms,S([hs("link notif-name"),gs("?@"+a)]),S([ks(i)])),ks(".")]));case 4:t=r.a,n=r.b;var d=r.c;return f(Mf,S([hs("notif-msg")]),S([ks("You were kicked from "),f(ms,S([hs("link notif-name"),gs("?!"+t)]),S([ks(n)])),ks(""===d?" for unknown reasons.":' because "'+d+'".')]));case 5:t=r.a,n=r.b,a=r.c,i=r.d;return f(Mf,S([hs("notif-msg")]),S([ks("Your target was kicked from "),f(ms,S([hs("link notif-name"),gs("?!"+t)]),S([ks(n)])),ks(", so your new target is "),f(ms,S([hs("link notif-name"),gs("?@"+a)]),S([ks(i)])),ks(".")]));case 6:t=r.a,n=r.b;var m=x(r.c,r.d);if(m.a.$||m.b.$)return f(Mf,S([hs("notif-msg")]),S([ks("The targets of everyone who is still alive in "),f(ms,S([hs("link notif-name"),gs("?!"+t)]),S([ks(n)])),ks(" have been shuffled. See the home page for your new target.")]));a=m.a.a,i=m.b.a;return f(Mf,S([hs("notif-msg")]),S([ks("The targets of everyone who is still alive in "),f(ms,S([hs("link notif-name"),gs("?!"+t)]),S([ks(n)])),ks(" have been shuffled. Your new target is "),f(ms,S([hs("link notif-name"),gs("?@"+a)]),S([ks(i)])),ks(".")]));case 7:t=r.a,n=r.b;var b=r.c;return f(Mf,S([hs("notif-msg")]),S([ks("An announcement from "),f(ms,S([hs("link notif-name"),gs("?!"+t)]),S([ks(n)])),ks(': "'+b+'"')]));default:var h=r.a;return f(Mf,S([hs("notif-msg")]),S([ks('(Indistinct "'+h+'" message)')]))}}()]))},Dm={$:5},Lm=ve,jm=As("^[a-zA-Z0-9_-]{3,20}$"),Im=function(t){return f(Wf,S([hs("header-window"),ul(Dm)]),S([f(el,Tm(2),C(rl,{a5:S([f(Lf,"autocapitalize","none"),f(Lf,"autocorrect","off")]),a9:ke("sign-up-input"),M:"Username",a0:ke(20),x:"username",P:"billygamer5",a3:S([ks("Only letters, digits, underscores, and hyphens are allowed. This cannot be changed later.")]),aT:"text",I:function(t){return Rr(t)?ke(""):Ir(n=t)>20?ke("Username cannot be over 20 characters long."):f(Lm,jm,n)?Ee:ke("Usernames must be at least three characters long and may only contain lowercase letters, digits, underscores, and hyphens.");var n},e:t.ap.e})),f(el,Tm(3),C(rl,{M:"Full name",a0:ke(50),x:"name",P:"Billy Chelontuvier",a3:S([ks(dm)]),I:function(t){return Rr(t)?ke(""):mm(t)},e:t.an.e})),f(el,Tm(4),C(rl,{M:"Email",a0:ke(320),x:"email",P:"[email protected]",a3:S([ks(Cd)]),aT:"email",I:function(t){return Rr(t)?ke(""):lm(t)},e:t.al.e})),f(el,Tm(5),C(rl,{M:"Password",a0:ke(200),x:"password",P:"hunter2",a3:S([ks(vd)]),aT:"password",I:function(t){return Rr(t)?ke(""):pd(t)},e:t.H.e})),f(el,Tm(6),C(rl,{M:"Password again",x:"password",P:"hunter2",aT:"password",I:function(n){return $(n,t.H.e)?Ee:ke("Passwords do not match!")},e:t.ao.e})),f(Hf,S([hs("button submit-btn"),If(S([x("loading",t.am)])),tl("submit"),nl("Sign up"),Ff(t.am||!(t.ap.V&&t.an.V&&t.al.V&&t.H.V&&t.ao.V))]),N),f(Mf,S([hs("problematic-error")]),S([ks(f(gd,"",t.aO))])),f(kf,S([hs("auth-note")]),S([ks("Read our "),f(ms,S([gs("?privacy"),hs("link")]),S([ks("Privacy policy")])),ks(" to see what we do with these data.")]))]))},Om=r((function(t,n,e){var r=t.a2;return S([f(Mm,S([hs("header"),If(S([x("on-welcome-page",!!r.$&&e)]))]),M(S([f(ms,S([gs("?"),hs("site-name link")]),S([ks("Elimination")])),f(Mf,S([hs("flex")]),S([ks(" ")]))]),function(){if(r.$)return S([m(Nm,n,"header-btn auth-btn",S([ks("Log in")]),1,S([n.aK?Pm(n):Cm(n)])),m(Nm,n,"header-btn auth-btn",S([ks("Sign up")]),0,S([Im(n)]))]);var t=r.a.aW;return S([e?f(ms,S([hs("button create-game-btn"),gs("?create-game")]),S([ks("Create game")])):ks(""),m(Nm,n,"icon-btn header-btn notif-btn",S([ks("Notifications ("),f(Mf,S([If(S([x("show-unread",n.l.cQ>0)]))]),S([ks(We(n.l.cQ))])),ks(")")]),2,S([f(gf,S([hs("header-window notifs")]),S([f(yf,S([hs("notif-header")]),S([ks("Notifications"),f(Mf,S([hs("flex")]),S([ks(" ")])),f(jf,S([hs("button small-btn notif-action-btn"),If(S([x("loading",n.ae)])),$f("read-btn"),Ff(n.ae||!n.l.cQ),al($m)]),S([ks("Mark as read")])),f(jf,S([hs("button small-btn notif-action-btn"),$f("refresh-btn"),Ff(n.y),al(km)]),S([ks("Refresh")]))])),f(gf,N,f(ta,Sm,n.l.cv)),function(){var t=n.z;if(t.$)return ks("");var e=t.a;return f(Mf,S([hs("problematic-error")]),S([ks(e)]))}(),n.y?f(jf,S([hs("button load-more-btn loading"),Ff(!0)]),S([ks("Loading")])):n.l.cf?ks(""):f(jf,S([hs("button load-more-btn"),al(ym)]),S([ks("Load more")]))]))])),m(Nm,n,"header-btn auth-btn username-btn",S([f(Mf,S([hs("username")]),S([ks(t)])),f(Mf,S([hs("username-dropdown-arrow")]),N)]),3,S([f(gf,S([hs("header-window username-list")]),S([f(ms,S([hs("username-item link"),gs("?@"+t),$f("my-profile"),al(mu)]),S([ks("My profile")])),f(ms,S([hs("username-item link"),gs("?settings"),al(mu)]),S([ks("Account settings")])),f(gf,S([hs("username-divider")]),N),f(jf,S([hs("username-item link"),al(Em)]),S([ks("Sign out")]))]))]))])}()))])})),Fm=sa({cn:fu,cx:function(t){return{$:1,a:t}},cy:$e(!0),cK:function(t){return hu(S([4!==t.s.aL?Bu(Mr(la(mu))):Su,Du(lu),Yu(f(_r,bu,f(Ta,"key",ai))),f(Pu,3e5,du)]))},cR:mf,cT:function(t){return{b8:ps(S([f(ta,vf(la),l(Om,t,t.s,$(t.C,qc))),hm(t),function(){var n=t.D;switch(n.$){case 1:return f(pm,f($e,!1,n.a),bf);case 2:return f(gm,nc,bf);default:return N}}(),wm])),cO:(n=t.s.l.cQ,e=M(xc(t)?"*":"",n?" ("+We(n)+")":""),$(t.C,qc)?"Elimination"+e:function(t){var n=t.C;switch(n.$){case 0:return"";case 1:return"Terms of use";case 2:return"Privacy policy";case 3:return"About";case 4:return t.aB.aW;case 5:return t.aX.cm.x;case 6:return"Settings";case 7:return $(t.n.aX,Ee)?"Create a game":"Game settings";case 8:return"Reset password";case 10:var e=n.a.a;return e.$?We(e.a):e.a;default:return"Loading"}}(t)+(e+" | Elimination"))};var n,e}});Uu={Main:{init:Fm(f(xr,(function(t){return f(xr,(function(n){return f(xr,(function(e){return Mr(_(t,n,e))}),f(fa,2,ri(S([So(Ee),f(_r,ke,ai)]))))}),f(fa,1,ri(S([So(Ee),f(_r,ke,ai)]))))}),f(fa,0,ai)))(0)}},t.Elm?ln(t.Elm,Uu):t.Elm=Uu}(this)}).call(t);var n=t.Elm;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;var e,r=(function(t){t.exports=function(){var t,n,e={version:"0.2.0"},r=e.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};function a(t,n,e){return n>t?n:t>e?e:t}function i(t){return 100*(-1+t)}function o(t,n,e){var a;return(a="translate3d"===r.positionUsing?{transform:"translate3d("+i(t)+"%,0,0)"}:"translate"===r.positionUsing?{transform:"translate("+i(t)+"%,0)"}:{"margin-left":i(t)+"%"}).transition="all "+n+"ms "+e,a}e.configure=function(t){var n,e;for(n in t)void 0!==(e=t[n])&&t.hasOwnProperty(n)&&(r[n]=e);return this},e.status=null,e.set=function(t){var n=e.isStarted();t=a(t,r.minimum,1),e.status=1===t?null:t;var i=e.render(!n),s=i.querySelector(r.barSelector),f=r.speed,l=r.easing;return u((function(n){""===r.positionUsing&&(r.positionUsing=e.getPositioningCSS()),c(s,o(t,f,l)),1===t?(c(i,{transition:"none",opacity:1}),setTimeout((function(){c(i,{transition:"all "+f+"ms linear",opacity:0}),setTimeout((function(){e.remove(),n()}),f)}),f)):setTimeout(n,f)})),this},e.isStarted=function(){return"number"==typeof e.status},e.start=function(){e.status||e.set(0);var t=function(){setTimeout((function(){e.status&&(e.trickle(),t())}),r.trickleSpeed)};return r.trickle&&t(),this},e.done=function(t){return t||e.status?e.inc(.3+.5*Math.random()).set(1):this},e.inc=function(t){var n=e.status;return n?("number"!=typeof t&&(t=(1-n)*a(Math.random()*n,.1,.95)),n=a(n+t,0,.994),e.set(n)):e.start()},e.trickle=function(){return e.inc(Math.random()*r.trickleRate)},t=0,n=0,e.promise=function(r){return r&&"resolved"!==r.state()?(0===n&&e.start(),t++,n++,r.always((function(){0==--n?(t=0,e.done()):e.set((t-n)/t)})),this):this},e.render=function(t){if(e.isRendered())return document.getElementById("nprogress");f(document.documentElement,"nprogress-busy");var n=document.createElement("div");n.id="nprogress",n.innerHTML=r.template;var a,o=n.querySelector(r.barSelector),u=t?"-100":i(e.status||0),s=document.querySelector(r.parent);return c(o,{transition:"all 0 linear",transform:"translate3d("+u+"%,0,0)"}),r.showSpinner||(a=n.querySelector(r.spinnerSelector))&&m(a),s!=document.body&&f(s,"nprogress-custom-parent"),s.appendChild(n),n},e.remove=function(){l(document.documentElement,"nprogress-busy"),l(document.querySelector(r.parent),"nprogress-custom-parent");var t=document.getElementById("nprogress");t&&m(t)},e.isRendered=function(){return!!document.getElementById("nprogress")},e.getPositioningCSS=function(){var t=document.body.style,n="WebkitTransform"in t?"Webkit":"MozTransform"in t?"Moz":"msTransform"in t?"ms":"OTransform"in t?"O":"";return n+"Perspective"in t?"translate3d":n+"Transform"in t?"translate":"margin"};var u=function(){var t=[];function n(){var e=t.shift();e&&e(n)}return function(e){t.push(e),1==t.length&&n()}}(),c=function(){var t=["Webkit","O","Moz","ms"],n={};function e(t){return t.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,(function(t,n){return n.toUpperCase()}))}function r(n){var e=document.body.style;if(n in e)return n;for(var r,a=t.length,i=n.charAt(0).toUpperCase()+n.slice(1);a--;)if((r=t[a]+i)in e)return r;return n}function a(t){return t=e(t),n[t]||(n[t]=r(t))}function i(t,n,e){n=a(n),t.style[n]=e}return function(t,n){var e,r,a=arguments;if(2==a.length)for(e in n)void 0!==(r=n[e])&&n.hasOwnProperty(e)&&i(t,e,r);else i(t,a[1],a[2])}}();function s(t,n){return("string"==typeof t?t:d(t)).indexOf(" "+n+" ")>=0}function f(t,n){var e=d(t),r=e+n;s(e,n)||(t.className=r.substring(1))}function l(t,n){var e,r=d(t);s(t,n)&&(e=r.replace(" "+n+" "," "),t.className=e.substring(1,e.length-1))}function d(t){return(" "+(t.className||"")+" ").replace(/\s+/gi," ")}function m(t){t&&t.parentNode&&t.parentNode.removeChild(t)}return e}()}(e={exports:{}},e.exports),e.exports);let a=!1;document.addEventListener("keydown",(t=>{"Tab"===t.key?(document.body.classList.add("focus-visible"),a=!0):"SPAN"===t.target.tagName&&"Enter"===t.key&&t.target.click()})),document.addEventListener("keyup",(t=>{"Tab"===t.key&&(a=!1)})),document.addEventListener("focusin",(()=>{a||document.body.classList.remove("focus-visible")})),self,function(){var t=window.Document.prototype.createElement,n=window.Document.prototype.createElementNS,e=window.Document.prototype.importNode,r=window.Document.prototype.prepend,a=window.Document.prototype.append,i=window.DocumentFragment.prototype.prepend,o=window.DocumentFragment.prototype.append,u=window.Node.prototype.cloneNode,c=window.Node.prototype.appendChild,s=window.Node.prototype.insertBefore,f=window.Node.prototype.removeChild,l=window.Node.prototype.replaceChild,d=Object.getOwnPropertyDescriptor(window.Node.prototype,"textContent"),m=window.Element.prototype.attachShadow,b=Object.getOwnPropertyDescriptor(window.Element.prototype,"innerHTML"),h=window.Element.prototype.getAttribute,v=window.Element.prototype.setAttribute,p=window.Element.prototype.removeAttribute,g=window.Element.prototype.getAttributeNS,w=window.Element.prototype.setAttributeNS,y=window.Element.prototype.removeAttributeNS,$=window.Element.prototype.insertAdjacentElement,k=window.Element.prototype.insertAdjacentHTML,E=window.Element.prototype.prepend,T=window.Element.prototype.append,x=window.Element.prototype.before,_=window.Element.prototype.after,C=window.Element.prototype.replaceWith,M=window.Element.prototype.remove,N=window.HTMLElement,A=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML"),P=window.HTMLElement.prototype.insertAdjacentElement,S=window.HTMLElement.prototype.insertAdjacentHTML,D=new Set;function L(t){var n=D.has(t);return t=/^[a-z][.0-9_a-z]*-[-.0-9_a-z]*$/.test(t),!n&&t}"annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" ").forEach((function(t){return D.add(t)}));var j=document.contains?document.contains.bind(document):document.documentElement.contains.bind(document.documentElement);function I(t){var n=t.isConnected;if(void 0!==n)return n;if(j(t))return!0;for(;t&&!(t.__CE_isImportDocument||t instanceof Document);)t=t.parentNode||(window.ShadowRoot&&t instanceof ShadowRoot?t.host:void 0);return!(!t||!(t.__CE_isImportDocument||t instanceof Document))}function O(t){var n=t.children;if(n)return Array.prototype.slice.call(n);for(n=[],t=t.firstChild;t;t=t.nextSibling)t.nodeType===Node.ELEMENT_NODE&&n.push(t);return n}function F(t,n){for(;n&&n!==t&&!n.nextSibling;)n=n.parentNode;return n&&n!==t?n.nextSibling:null}function W(t,n,e){for(var r=t;r;){if(r.nodeType===Node.ELEMENT_NODE){var a=r;n(a);var i=a.localName;if("link"===i&&"import"===a.getAttribute("rel")){if(r=a.import,void 0===e&&(e=new Set),r instanceof Node&&!e.has(r))for(e.add(r),r=r.firstChild;r;r=r.nextSibling)W(r,n,e);r=F(t,a);continue}if("template"===i){r=F(t,a);continue}if(a=a.__CE_shadowRoot)for(a=a.firstChild;a;a=a.nextSibling)W(a,n,e)}r=r.firstChild?r.firstChild:F(t,r)}}function R(){var t=!(null==ut||!ut.noDocumentConstructionObserver),n=!(null==ut||!ut.shadyDomFastWalk);this.h=[],this.a=[],this.f=!1,this.shadyDomFastWalk=n,this.C=!t}function H(t,n,e,r){var a=window.ShadyDom;if(t.shadyDomFastWalk&&a&&a.inUse){if(n.nodeType===Node.ELEMENT_NODE&&e(n),n.querySelectorAll)for(t=a.nativeMethods.querySelectorAll.call(n,"*"),n=0;t.length>n;n++)e(t[n])}else W(n,e,r)}function X(t,n){t.f&&H(t,n,(function(n){return U(t,n)}))}function U(t,n){if(t.f&&!n.__CE_patched){n.__CE_patched=!0;for(var e=0;t.h.length>e;e++)t.h[e](n);for(e=0;t.a.length>e;e++)t.a[e](n)}}function q(t,n){var e=[];for(H(t,n,(function(t){return e.push(t)})),n=0;e.length>n;n++){var r=e[n];1===r.__CE_state?t.connectedCallback(r):Y(t,r)}}function z(t,n){var e=[];for(H(t,n,(function(t){return e.push(t)})),n=0;e.length>n;n++){var r=e[n];1===r.__CE_state&&t.disconnectedCallback(r)}}function B(t,n,e){var r=(e=void 0===e?{}:e).D,a=e.upgrade||function(n){return Y(t,n)},i=[];for(H(t,n,(function(n){if(t.f&&U(t,n),"link"===n.localName&&"import"===n.getAttribute("rel")){var e=n.import;e instanceof Node&&(e.__CE_isImportDocument=!0,e.__CE_registry=document.__CE_registry),e&&"complete"===e.readyState?e.__CE_documentLoadHandled=!0:n.addEventListener("load",(function(){var e=n.import;if(!e.__CE_documentLoadHandled){e.__CE_documentLoadHandled=!0;var i=new Set;r&&(r.forEach((function(t){return i.add(t)})),i.delete(e)),B(t,e,{D:i,upgrade:a})}}))}else i.push(n)}),r),n=0;i.length>n;n++)a(i[n])}function Y(t,n){try{var e=n.ownerDocument,r=e.__CE_registry,a=r&&(e.defaultView||e.__CE_isImportDocument)?rt(r,n.localName):void 0;if(a&&void 0===n.__CE_state){a.constructionStack.push(n);try{try{if(new a.constructorFunction!==n)throw Error("The custom element constructor did not produce the element being upgraded.")}finally{a.constructionStack.pop()}}catch(t){throw n.__CE_state=2,t}if(n.__CE_state=1,n.__CE_definition=a,a.attributeChangedCallback&&n.hasAttributes()){var i=a.observedAttributes;for(a=0;i.length>a;a++){var o=i[a],u=n.getAttribute(o);null!==u&&t.attributeChangedCallback(n,o,null,u,null)}}I(n)&&t.connectedCallback(n)}}catch(t){G(t)}}function J(e,r,a,i){var o=r.__CE_registry;if(o&&(null===i||"http://www.w3.org/1999/xhtml"===i)&&(o=rt(o,a)))try{var u=new o.constructorFunction;if(void 0===u.__CE_state||void 0===u.__CE_definition)throw Error("Failed to construct '"+a+"': The returned value was not constructed with the HTMLElement constructor.");if("http://www.w3.org/1999/xhtml"!==u.namespaceURI)throw Error("Failed to construct '"+a+"': The constructed element's namespace must be the HTML namespace.");if(u.hasAttributes())throw Error("Failed to construct '"+a+"': The constructed element must not have any attributes.");if(null!==u.firstChild)throw Error("Failed to construct '"+a+"': The constructed element must not have any children.");if(null!==u.parentNode)throw Error("Failed to construct '"+a+"': The constructed element must not have a parent node.");if(u.ownerDocument!==r)throw Error("Failed to construct '"+a+"': The constructed element's owner document is incorrect.");if(u.localName!==a)throw Error("Failed to construct '"+a+"': The constructed element's local name is incorrect.");return u}catch(o){return G(o),r=null===i?t.call(r,a):n.call(r,i,a),Object.setPrototypeOf(r,HTMLUnknownElement.prototype),r.__CE_state=2,r.__CE_definition=void 0,U(e,r),r}return U(e,r=null===i?t.call(r,a):n.call(r,i,a)),r}function G(t){var n=t.message,e=t.sourceURL||t.fileName||"",r=t.line||t.lineNumber||0,a=void 0;void 0===ErrorEvent.prototype.initErrorEvent?a=new ErrorEvent("error",{cancelable:!0,message:n,filename:e,lineno:r,colno:t.column||t.columnNumber||0,error:t}):((a=document.createEvent("ErrorEvent")).initErrorEvent("error",!1,!0,n,e,r),a.preventDefault=function(){Object.defineProperty(this,"defaultPrevented",{configurable:!0,get:function(){return!0}})}),void 0===a.error&&Object.defineProperty(a,"error",{configurable:!0,enumerable:!0,get:function(){return t}}),window.dispatchEvent(a),a.defaultPrevented||console.error(t)}function V(){var t=this;this.a=void 0,this.w=new Promise((function(n){t.g=n}))}function Z(t){var n=document;this.g=void 0,this.b=t,this.a=n,B(this.b,this.a),"loading"===this.a.readyState&&(this.g=new MutationObserver(this.A.bind(this)),this.g.observe(this.a,{childList:!0,subtree:!0}))}function K(t){t.g&&t.g.disconnect()}function Q(t){this.j=new Map,this.l=new Map,this.u=new Map,this.o=!1,this.s=new Map,this.i=function(t){return t()},this.c=!1,this.m=[],this.b=t,this.v=t.C?new Z(t):void 0}function tt(t,n){if(!L(n))throw new SyntaxError("The element name '"+n+"' is not valid.");if(rt(t,n))throw Error("A custom element with name '"+n+"' has already been defined.");if(t.o)throw Error("A custom element is already being defined.")}function nt(t,n,e){var r;t.o=!0;try{var a=e.prototype;if(!(a instanceof Object))throw new TypeError("The custom element constructor's prototype is not an object.");var i=function(t){var n=a[t];if(void 0!==n&&!(n instanceof Function))throw Error("The '"+t+"' callback must be a function.");return n},o=i("connectedCallback"),u=i("disconnectedCallback"),c=i("adoptedCallback"),s=(r=i("attributeChangedCallback"))&&e.observedAttributes||[]}catch(t){throw t}finally{t.o=!1}return t.l.set(n,e={localName:n,constructorFunction:e,connectedCallback:o,disconnectedCallback:u,adoptedCallback:c,attributeChangedCallback:r,observedAttributes:s,constructionStack:[]}),t.u.set(e.constructorFunction,e),e}function et(t){if(!1!==t.c){t.c=!1;for(var n=[],e=t.m,r=new Map,a=0;e.length>a;a++)r.set(e[a],[]);for(B(t.b,document,{upgrade:function(e){if(void 0===e.__CE_state){var a=e.localName,i=r.get(a);i?i.push(e):t.l.has(a)&&n.push(e)}}}),a=0;n.length>a;a++)Y(t.b,n[a]);for(a=0;e.length>a;a++){for(var i=e[a],o=r.get(i),u=0;o.length>u;u++)Y(t.b,o[u]);(i=t.s.get(i))&&i.resolve(void 0)}e.length=0}}function rt(t,n){var e=t.l.get(n);if(e)return e;if(e=t.j.get(n)){t.j.delete(n);try{return nt(t,n,e())}catch(t){G(t)}}}function at(t,n,e){function r(n){return function(e){for(var r=[],a=0;arguments.length>a;++a)r[a]=arguments[a];a=[];for(var i=[],o=0;r.length>o;o++){var u=r[o];if(u instanceof Element&&I(u)&&i.push(u),u instanceof DocumentFragment)for(u=u.firstChild;u;u=u.nextSibling)a.push(u);else a.push(u)}for(n.apply(this,r),r=0;i.length>r;r++)z(t,i[r]);if(I(this))for(r=0;a.length>r;r++)(i=a[r])instanceof Element&&q(t,i)}}void 0!==e.prepend&&(n.prepend=r(e.prepend)),void 0!==e.append&&(n.append=r(e.append))}function it(t){function e(n,e){Object.defineProperty(n,"innerHTML",{enumerable:e.enumerable,configurable:!0,get:e.get,set:function(n){var r=this,a=void 0;if(I(this)&&(a=[],H(t,this,(function(t){t!==r&&a.push(t)}))),e.set.call(this,n),a)for(var i=0;a.length>i;i++){var o=a[i];1===o.__CE_state&&t.disconnectedCallback(o)}return this.ownerDocument.__CE_registry?B(t,this):X(t,this),n}})}function r(n,e){n.insertAdjacentElement=function(n,r){var a=I(r);return n=e.call(this,n,r),a&&z(t,r),I(n)&&q(t,r),n}}function a(n,e){function r(n,e){for(var r=[];n!==e;n=n.nextSibling)r.push(n);for(e=0;r.length>e;e++)B(t,r[e])}n.insertAdjacentHTML=function(t,n){if("beforebegin"===(t=t.toLowerCase())){var a=this.previousSibling;e.call(this,t,n),r(a||this.parentNode.firstChild,this)}else if("afterbegin"===t)a=this.firstChild,e.call(this,t,n),r(this.firstChild,a);else if("beforeend"===t)a=this.lastChild,e.call(this,t,n),r(a||this.firstChild,null);else{if("afterend"!==t)throw new SyntaxError("The value provided ("+t+") is not one of 'beforebegin', 'afterbegin', 'beforeend', or 'afterend'.");a=this.nextSibling,e.call(this,t,n),r(this.nextSibling,a)}}}m&&(Element.prototype.attachShadow=function(n){if(n=m.call(this,n),t.f&&!n.__CE_patched){n.__CE_patched=!0;for(var e=0;t.h.length>e;e++)t.h[e](n)}return this.__CE_shadowRoot=n}),b&&b.get?e(Element.prototype,b):A&&A.get?e(HTMLElement.prototype,A):function(t,n){t.f=!0,t.a.push(n)}(t,(function(t){e(t,{enumerable:!0,configurable:!0,get:function(){return u.call(this,!0).innerHTML},set:function(t){var e="template"===this.localName,r=e?this.content:this,a=n.call(document,this.namespaceURI,this.localName);for(a.innerHTML=t;r.childNodes.length>0;)f.call(r,r.childNodes[0]);for(t=e?a.content:a;t.childNodes.length>0;)c.call(r,t.childNodes[0])}})})),Element.prototype.setAttribute=function(n,e){if(1!==this.__CE_state)return v.call(this,n,e);var r=h.call(this,n);v.call(this,n,e),e=h.call(this,n),t.attributeChangedCallback(this,n,r,e,null)},Element.prototype.setAttributeNS=function(n,e,r){if(1!==this.__CE_state)return w.call(this,n,e,r);var a=g.call(this,n,e);w.call(this,n,e,r),r=g.call(this,n,e),t.attributeChangedCallback(this,e,a,r,n)},Element.prototype.removeAttribute=function(n){if(1!==this.__CE_state)return p.call(this,n);var e=h.call(this,n);p.call(this,n),null!==e&&t.attributeChangedCallback(this,n,e,null,null)},Element.prototype.removeAttributeNS=function(n,e){if(1!==this.__CE_state)return y.call(this,n,e);var r=g.call(this,n,e);y.call(this,n,e);var a=g.call(this,n,e);r!==a&&t.attributeChangedCallback(this,e,r,a,n)},P?r(HTMLElement.prototype,P):$&&r(Element.prototype,$),S?a(HTMLElement.prototype,S):k&&a(Element.prototype,k),at(t,Element.prototype,{prepend:E,append:T}),function(t){function n(n){return function(e){for(var r=[],a=0;arguments.length>a;++a)r[a]=arguments[a];a=[];for(var i=[],o=0;r.length>o;o++){var u=r[o];if(u instanceof Element&&I(u)&&i.push(u),u instanceof DocumentFragment)for(u=u.firstChild;u;u=u.nextSibling)a.push(u);else a.push(u)}for(n.apply(this,r),r=0;i.length>r;r++)z(t,i[r]);if(I(this))for(r=0;a.length>r;r++)(i=a[r])instanceof Element&&q(t,i)}}var e=Element.prototype;void 0!==x&&(e.before=n(x)),void 0!==_&&(e.after=n(_)),void 0!==C&&(e.replaceWith=function(n){for(var e=[],r=0;arguments.length>r;++r)e[r]=arguments[r];r=[];for(var a=[],i=0;e.length>i;i++){var o=e[i];if(o instanceof Element&&I(o)&&a.push(o),o instanceof DocumentFragment)for(o=o.firstChild;o;o=o.nextSibling)r.push(o);else r.push(o)}for(i=I(this),C.apply(this,e),e=0;a.length>e;e++)z(t,a[e]);if(i)for(z(t,this),e=0;r.length>e;e++)(a=r[e])instanceof Element&&q(t,a)}),void 0!==M&&(e.remove=function(){var n=I(this);M.call(this),n&&z(t,this)})}(t)}R.prototype.connectedCallback=function(t){var n=t.__CE_definition;if(n.connectedCallback)try{n.connectedCallback.call(t)}catch(t){G(t)}},R.prototype.disconnectedCallback=function(t){var n=t.__CE_definition;if(n.disconnectedCallback)try{n.disconnectedCallback.call(t)}catch(t){G(t)}},R.prototype.attributeChangedCallback=function(t,n,e,r,a){var i=t.__CE_definition;if(i.attributeChangedCallback&&i.observedAttributes.indexOf(n)>-1)try{i.attributeChangedCallback.call(t,n,e,r,a)}catch(t){G(t)}},V.prototype.resolve=function(t){if(this.a)throw Error("Already resolved.");this.a=t,this.g(t)},Z.prototype.A=function(t){var n=this.a.readyState;for("interactive"!==n&&"complete"!==n||K(this),n=0;t.length>n;n++)for(var e=t[n].addedNodes,r=0;e.length>r;r++)B(this.b,e[r])},Q.prototype.B=function(t,n){var e=this;if(!(n instanceof Function))throw new TypeError("Custom element constructor getters must be functions.");tt(this,t),this.j.set(t,n),this.m.push(t),this.c||(this.c=!0,this.i((function(){return et(e)})))},Q.prototype.define=function(t,n){var e=this;if(!(n instanceof Function))throw new TypeError("Custom element constructors must be functions.");tt(this,t),nt(this,t,n),this.m.push(t),this.c||(this.c=!0,this.i((function(){return et(e)})))},Q.prototype.upgrade=function(t){B(this.b,t)},Q.prototype.get=function(t){if(t=rt(this,t))return t.constructorFunction},Q.prototype.whenDefined=function(t){if(!L(t))return Promise.reject(new SyntaxError("'"+t+"' is not a valid custom element name."));var n=this.s.get(t);if(n)return n.w;n=new V,this.s.set(t,n);var e=this.l.has(t)||this.j.has(t);return t=-1===this.m.indexOf(t),e&&t&&n.resolve(void 0),n.w},Q.prototype.polyfillWrapFlushCallback=function(t){this.v&&K(this.v);var n=this.i;this.i=function(e){return t((function(){return n(e)}))}},window.CustomElementRegistry=Q,Q.prototype.define=Q.prototype.define,Q.prototype.upgrade=Q.prototype.upgrade,Q.prototype.get=Q.prototype.get,Q.prototype.whenDefined=Q.prototype.whenDefined,Q.prototype.polyfillDefineLazy=Q.prototype.B,Q.prototype.polyfillWrapFlushCallback=Q.prototype.polyfillWrapFlushCallback;var ot={};var ut=window.customElements;function ct(){var n=new R;!function(n){function e(){var e=this.constructor,r=document.__CE_registry.u.get(e);if(!r)throw Error("Failed to construct a custom element: The constructor was not registered with `customElements`.");var a=r.constructionStack;if(0===a.length)return a=t.call(document,r.localName),Object.setPrototypeOf(a,e.prototype),a.__CE_state=1,a.__CE_definition=r,U(n,a),a;var i=a.length-1,o=a[i];if(o===ot)throw Error("Failed to construct '"+r.localName+"': This element was already constructed.");return a[i]=ot,Object.setPrototypeOf(o,e.prototype),U(n,o),o}e.prototype=N.prototype,Object.defineProperty(HTMLElement.prototype,"constructor",{writable:!0,configurable:!0,enumerable:!1,value:e}),window.HTMLElement=e}(n),function(t){Document.prototype.createElement=function(n){return J(t,this,n,null)},Document.prototype.importNode=function(n,r){return n=e.call(this,n,!!r),this.__CE_registry?B(t,n):X(t,n),n},Document.prototype.createElementNS=function(n,e){return J(t,this,e,n)},at(t,Document.prototype,{prepend:r,append:a})}(n),at(n,DocumentFragment.prototype,{prepend:i,append:o}),function(t){function n(n,e){Object.defineProperty(n,"textContent",{enumerable:e.enumerable,configurable:!0,get:e.get,set:function(n){if(this.nodeType===Node.TEXT_NODE)e.set.call(this,n);else{var r=void 0;if(this.firstChild){var a=this.childNodes,i=a.length;if(i>0&&I(this)){r=Array(i);for(var o=0;i>o;o++)r[o]=a[o]}}if(e.set.call(this,n),r)for(n=0;r.length>n;n++)z(t,r[n])}}})}Node.prototype.insertBefore=function(n,e){if(n instanceof DocumentFragment){var r=O(n);if(n=s.call(this,n,e),I(this))for(e=0;r.length>e;e++)q(t,r[e]);return n}return r=n instanceof Element&&I(n),e=s.call(this,n,e),r&&z(t,n),I(this)&&q(t,n),e},Node.prototype.appendChild=function(n){if(n instanceof DocumentFragment){var e=O(n);if(n=c.call(this,n),I(this))for(var r=0;e.length>r;r++)q(t,e[r]);return n}return e=n instanceof Element&&I(n),r=c.call(this,n),e&&z(t,n),I(this)&&q(t,n),r},Node.prototype.cloneNode=function(n){return n=u.call(this,!!n),this.ownerDocument.__CE_registry?B(t,n):X(t,n),n},Node.prototype.removeChild=function(n){var e=n instanceof Element&&I(n),r=f.call(this,n);return e&&z(t,n),r},Node.prototype.replaceChild=function(n,e){if(n instanceof DocumentFragment){var r=O(n);if(n=l.call(this,n,e),I(this))for(z(t,e),e=0;r.length>e;e++)q(t,r[e]);return n}r=n instanceof Element&&I(n);var a=l.call(this,n,e),i=I(this);return i&&z(t,e),r&&z(t,n),i&&q(t,n),a},d&&d.get?n(Node.prototype,d):function(t,n){t.f=!0,t.h.push(n)}(t,(function(t){n(t,{enumerable:!0,configurable:!0,get:function(){for(var t=[],n=this.firstChild;n;n=n.nextSibling)n.nodeType!==Node.COMMENT_NODE&&t.push(n.textContent);return t.join("")},set:function(t){for(;this.firstChild;)f.call(this,this.firstChild);null!=t&&""!==t&&c.call(this,document.createTextNode(t))}})}))}(n),it(n),n=new Q(n),document.__CE_registry=n,Object.defineProperty(window,"customElements",{configurable:!0,enumerable:!0,value:n})}ut&&!ut.forcePolyfill&&"function"==typeof ut.define&&"function"==typeof ut.get||ct(),window.__CE_installPolyfill=ct}();const i=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],o=["January","February","March","April","May","June","July","August","September","October","November","December"];function u(t){return"0".concat(t).slice(-2)}function c(t,n){const e=t.getDay(),r=t.getDate(),a=t.getMonth(),s=t.getFullYear(),f=t.getHours(),l=t.getMinutes(),d=t.getSeconds();return n.replace(/%([%aAbBcdeHIlmMpPSwyYZz])/g,(function(n){let m;switch(n[1]){case"%":return"%";case"a":return i[e].slice(0,3);case"A":return i[e];case"b":return o[a].slice(0,3);case"B":return o[a];case"c":return""+t;case"d":return u(r);case"e":return r+"";case"H":return u(f);case"I":return u(c(t,"%l"));case"l":return 0===f||12===f?"12":(f+12)%12+"";case"m":return u(a+1);case"M":return u(l);case"p":return f>11?"PM":"AM";case"P":return f>11?"pm":"am";case"S":return u(d);case"w":return e+"";case"y":return u(s%100);case"Y":return s+"";case"Z":return m=(""+t).match(/\((\w+)\)$/),m?m[1]:"";case"z":return m=(""+t).match(/\w([+-]\d\d\d\d) /),m?m[1]:""}return""}))}function s(t){let n;return function(){if(n)return n;if("Intl"in window)try{return n=new Intl.DateTimeFormat(void 0,t),n}catch(t){if(!(t instanceof RangeError))throw t}}}let f=null;const l=s({day:"numeric",month:"short"});function d(){if(null!==f)return f;const t=l();if(t){const n=t.format(new Date(0));return f=!!n.match(/^\d/),f}return!1}let m=null;const b=s({day:"numeric",month:"short",year:"numeric"});function h(t){const n=t.closest("[lang]");return n instanceof HTMLElement&&n.lang?n.lang:"default"}const v=new WeakMap;class p extends HTMLElement{static get observedAttributes(){return["datetime","day","format","lang","hour","minute","month","second","title","weekday","year"]}connectedCallback(){const t=this.getFormattedTitle();t&&!this.hasAttribute("title")&&this.setAttribute("title",t);const n=this.getFormattedDate();n&&(this.textContent=n)}attributeChangedCallback(t,n,e){const r=this.getFormattedTitle();if("datetime"===t){const t=Date.parse(e);isNaN(t)?v.delete(this):v.set(this,new Date(t))}const a=this.getFormattedTitle(),i=this.getAttribute("title");"title"===t||!a||i&&i!==r||this.setAttribute("title",a);const o=this.getFormattedDate();o&&(this.textContent=o)}get date(){return v.get(this)}getFormattedTitle(){const t=this.date;if(!t)return;const n=g();if(n)return n.format(t);try{return t.toLocaleString()}catch(n){if(n instanceof RangeError)return""+t;throw n}}getFormattedDate(){}}const g=s({day:"numeric",month:"short",year:"numeric",hour:"numeric",minute:"2-digit",timeZoneName:"short"}),w=new WeakMap;class y extends p{attributeChangedCallback(t,n,e){"hour"!==t&&"minute"!==t&&"second"!==t&&"time-zone-name"!==t||w.delete(this),super.attributeChangedCallback(t,n,e)}getFormattedDate(){const t=this.date;if(!t)return;const n=function(t,n){const e={weekday:{short:"%a",long:"%A"},day:{numeric:"%e","2-digit":"%d"},month:{short:"%b",long:"%B"},year:{numeric:"%Y","2-digit":"%y"}};let r=d()?"weekday day month year":"weekday month day, year";for(const n in e){const a=e[n][t.getAttribute(n)];r=r.replace(n,a||"")}return r=r.replace(/(\s,)|(,\s$)/,""),c(n,r).replace(/\s+/," ").trim()}(this,t)||"",e=function(t,n){const e={},r=t.getAttribute("hour");"numeric"!==r&&"2-digit"!==r||(e.hour=r);const a=t.getAttribute("minute");"numeric"!==a&&"2-digit"!==a||(e.minute=a);const i=t.getAttribute("second");"numeric"!==i&&"2-digit"!==i||(e.second=i);const o=t.getAttribute("time-zone-name");"short"!==o&&"long"!==o||(e.timeZoneName=o);if(0===Object.keys(e).length)return;let u=w.get(t);u||(u=s(e),w.set(t,u));const f=u();if(f)return f.format(n);return c(n,e.second?"%H:%M:%S":"%H:%M")}(this,t)||"";return"".concat(n," ").concat(e).trim()}}window.customElements.get("local-time")||(window.LocalTimeElement=y,window.customElements.define("local-time",y));class ${constructor(t,n){this.date=t,this.locale=n}toString(){const t=this.timeElapsed();if(t)return t;{const t=this.timeAhead();return t||"on ".concat(this.formatDate())}}timeElapsed(){const t=(new Date).getTime()-this.date.getTime();return t>=0&&30>Math.round(Math.round(Math.round(Math.round(t/1e3)/60)/60)/24)?this.timeAgoFromMs(t):null}timeAhead(){const t=this.date.getTime()-(new Date).getTime();return t>=0&&30>Math.round(Math.round(Math.round(Math.round(t/1e3)/60)/60)/24)?this.timeUntil():null}timeAgo(){const t=(new Date).getTime()-this.date.getTime();return this.timeAgoFromMs(t)}timeAgoFromMs(t){const n=Math.round(t/1e3),e=Math.round(n/60),r=Math.round(e/60),a=Math.round(r/24),i=Math.round(a/30),o=Math.round(i/12);return 0>t||10>n?k(this.locale,0,"second"):45>n?k(this.locale,-n,"second"):90>n||45>e?k(this.locale,-e,"minute"):90>e||24>r?k(this.locale,-r,"hour"):36>r||30>a?k(this.locale,-a,"day"):18>i?k(this.locale,-i,"month"):k(this.locale,-o,"year")}microTimeAgo(){const t=(new Date).getTime()-this.date.getTime(),n=Math.round(Math.round(t/1e3)/60),e=Math.round(n/60),r=Math.round(e/24),a=Math.round(Math.round(r/30)/12);return 1>n?"1m":60>n?"".concat(n,"m"):24>e?"".concat(e,"h"):365>r?"".concat(r,"d"):"".concat(a,"y")}timeUntil(){const t=this.date.getTime()-(new Date).getTime();return this.timeUntilFromMs(t)}timeUntilFromMs(t){const n=Math.round(t/1e3),e=Math.round(n/60),r=Math.round(e/60),a=Math.round(r/24),i=Math.round(a/30),o=Math.round(i/12);return 18>i&&12>i?45>a&&30>a?36>r&&24>r?90>e&&45>e?90>n&&45>n?k(this.locale,10>n?0:n,"second"):k(this.locale,e,"minute"):k(this.locale,r,"hour"):k(this.locale,a,"day"):k(this.locale,i,"month"):k(this.locale,o,"year")}microTimeUntil(){const t=this.date.getTime()-(new Date).getTime(),n=Math.round(Math.round(t/1e3)/60),e=Math.round(n/60),r=Math.round(e/24),a=Math.round(Math.round(r/30)/12);return 365>r?24>e?60>n?n>1?"".concat(n,"m"):"1m":"".concat(e,"h"):"".concat(r,"d"):"".concat(a,"y")}formatDate(){let t=d()?"%e %b":"%b %e";var n;return n=this.date,(new Date).getUTCFullYear()!==n.getUTCFullYear()&&(t+=function(){if(null!==m)return m;const t=b();if(t){const n=t.format(new Date(0));return m=!!n.match(/\d,/),m}return!0}()?", %Y":" %Y"),c(this.date,t)}formatTime(){const t=E();return t?t.format(this.date):c(this.date,"%l:%M%P")}}function k(t,n,e){const r=function(t,n){if("Intl"in window&&"RelativeTimeFormat"in window.Intl)try{return new Intl.RelativeTimeFormat(t,n)}catch(t){if(!(t instanceof RangeError))throw t}}(t,{numeric:"auto"});return r?r.format(n,e):function(t,n){if(0===t)switch(n){case"year":case"quarter":case"month":case"week":return"this ".concat(n);case"day":return"today";case"hour":case"minute":return"in 0 ".concat(n,"s");case"second":return"now"}else if(1===t)switch(n){case"year":case"quarter":case"month":case"week":return"next ".concat(n);case"day":return"tomorrow";case"hour":case"minute":case"second":return"in 1 ".concat(n)}else if(-1===t)switch(n){case"year":case"quarter":case"month":case"week":return"last ".concat(n);case"day":return"yesterday";case"hour":case"minute":case"second":return"1 ".concat(n," ago")}else if(t>1)switch(n){case"year":case"quarter":case"month":case"week":case"day":case"hour":case"minute":case"second":return"in ".concat(t," ").concat(n,"s")}else if(-1>t)switch(n){case"year":case"quarter":case"month":case"week":case"day":case"hour":case"minute":case"second":return"".concat(-t," ").concat(n,"s ago")}throw new RangeError("Invalid unit argument for format() '".concat(n,"'"))}(n,e)}const E=s({hour:"numeric",minute:"2-digit"});class T extends p{getFormattedDate(){const t=this.date;if(t)return""+new $(t,h(this))}connectedCallback(){x.push(this),_||(C(),_=setInterval(C,6e4)),super.connectedCallback()}disconnectedCallback(){const t=x.indexOf(this);-1!==t&&x.splice(t,1),x.length||_&&(clearInterval(_),_=null)}}const x=[];let _;function C(){let t,n,e;for(n=0,e=x.length;e>n;n++)t=x[n],t.textContent=t.getFormattedDate()||""}window.customElements.get("relative-time")||(window.RelativeTimeElement=T,window.customElements.define("relative-time",T));class M extends T{getFormattedDate(){const t=this.getAttribute("format"),n=this.date;if(n)return"micro"===t?new $(n,h(this)).microTimeAgo():new $(n,h(this)).timeAgo()}}window.customElements.get("time-ago")||(window.TimeAgoElement=M,window.customElements.define("time-ago",M));class N extends T{getFormattedDate(){const t=this.getAttribute("format"),n=this.date;if(n)return"micro"===t?new $(n,h(this)).microTimeUntil():new $(n,h(this)).timeUntil()}}window.customElements.get("time-until")||(window.TimeUntilElement=N,window.customElements.define("time-until",N));const A="[elimination] session",P="[elimination] username",S=n.Main.init({flags:["https://sheep.thingkingland.app/assassin/",localStorage.getItem(A),localStorage.getItem(P)]});let D;S.ports.saveSession.subscribe((([t,n])=>{localStorage.setItem(A,t),localStorage.setItem(P,n)})),S.ports.logout.subscribe((()=>{localStorage.removeItem(A),localStorage.removeItem(P)})),window.addEventListener("beforeunload",(t=>{D=!1,S.ports.onBeforeUnload.send(null),D&&(t.preventDefault(),t.returnValue="")})),S.ports.preventUnload.subscribe((()=>{D=!0})),S.ports.start.subscribe((()=>{r.start()})),S.ports.done.subscribe((()=>{r.done()}))}();