-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.js
1 lines (1 loc) · 22.3 KB
/
main.js
1
(r=>{function M(r,n,t){return t.a=r,t.f=n,t}function f(t){return M(2,t,function(n){return function(r){return t(n,r)}})}function n(e){return M(3,e,function(t){return function(n){return function(r){return e(t,n,r)}}})}function P(u){return M(4,u,function(e){return function(t){return function(n){return function(r){return u(e,t,n,r)}}}})}function B(a){return M(5,a,function(u){return function(e){return function(t){return function(n){return function(r){return a(u,e,t,n,r)}}}}})}function s(r,n,t){return 2===r.a?r.f(n,t):r(n)(t)}function b(r,n,t,e){return 3===r.a?r.f(n,t,e):r(n)(t)(e)}function v(r,n,t,e,u){return 4===r.a?r.f(n,t,e,u):r(n)(t)(e)(u)}function D(r,n,t,e,u,a){return 5===r.a?r.f(n,t,e,u,a):r(n)(t)(e)(u)(a)}function a(r,n){for(var t,e=[],u=O(r,n,0,e);u&&(t=e.pop());u=O(t.a,t.b,0,e));return u}function O(r,n,t,e){if(r!==n){if("object"!=typeof r||null===r||null===n)return"function"==typeof r&&V(5),!1;if(100<t)e.push({a:r,b:n});else for(var u in r.$<0&&(r=rn(r),n=rn(n)),r)if(!O(r[u],n[u],t+1,e))return!1}return!0}function l(r,n,t){if("object"!=typeof r)return r===n?0:r<n?-1:1;if(void 0===r.$)return(t=(t=l(r.a,n.a))||l(r.b,n.b))||l(r.c,n.c);for(;r.b&&n.b&&!(t=l(r.a,n.a));r=r.b,n=n.b);return t||(r.b?1:n.b?-1:0)}var J=0;function Y(r,n){var t,e={};for(t in r)e[t]=r[t];for(t in n)e[t]=n[t];return e}function G(r,n){if("string"==typeof r)return r+n;if(!r.b)return n;var t={$:1,a:r.a,b:n};r=r.b;for(var e=t;r.b;r=r.b)e=e.b={$:1,a:r.a,b:n};return t}var d={$:0};function H(r,n){return{$:1,a:r,b:n}}var I=f(H);function h(r){for(var n=d,t=r.length;t--;)n={$:1,a:r[t],b:n};return n}function K(r){for(var n=[];r.b;r=r.b)n.push(r.a);return n}var Q=f(function(t,r){return h(K(r).sort(function(r,n){return l(t(r),t(n))}))}),W=n(function(r,n,t){for(var e=Array(r),u=0;u<r;u++)e[u]=t(n+u);return e}),U=f(function(r,n){for(var t=Array(r),e=0;e<r&&n.b;e++)t[e]=n.a,n=n.b;return t.length=e,{a:t,b:n}});function V(r){throw Error("https://github.com/elm/core/blob/1.0.0/hints/"+r+".md")}var X=f(function(r,n){return r+n}),Z=Math.ceil,rr=Math.floor,nr=Math.log,tr=f($);function $(r,n){switch(r.$){case 2:return r.b(n);case 5:return null===n?j(r.c):g("null",n);case 3:return ur(n)?er(r.b,n,h):g("a LIST",n);case 4:return ur(n)?er(r.b,n,ar):g("an ARRAY",n);case 6:var t=r.d;return"object"==typeof n&&null!==n&&t in n?(a=$(r.b,n[t]),A(a)?a:y(s(tn,t,a.a))):g("an OBJECT with a field named `"+t+"`",n);case 7:t=r.e;return ur(n)?t<n.length?(a=$(r.b,n[t]),A(a)?a:y(s(en,t,a.a))):g("a LONGER array. Need index "+t+" but only see "+n.length+" entries",n):g("an ARRAY",n);case 8:if("object"!=typeof n||null===n||ur(n))return g("an OBJECT",n);var e,u=d;for(e in n)if(n.hasOwnProperty(e)){var a=$(r.b,n[e]);if(!A(a))return y(s(tn,e,a.a));u={$:1,a:{a:e,b:a.a},b:u}}return j(_(u));case 9:for(var i=r.f,f=r.g,c=0;c<f.length;c++){a=$(f[c],n);if(!A(a))return a;i=i(a.a)}return j(i);case 10:a=$(r.b,n);return A(a)?$(r.h(a.a),n):a;case 11:for(var o=d,b=r.g;b.b;b=b.b){a=$(b.a,n);if(A(a))return a;o={$:1,a:a.a,b:o}}return y(un(_(o)));case 1:return y(s(nn,r.a,n));case 0:return j(r.a)}}function er(r,n,t){for(var e=n.length,u=Array(e),a=0;a<e;a++){var i=$(r,n[a]);if(!A(i))return y(s(en,a,i.a));u[a]=i.a}return j(t(u))}function ur(r){return Array.isArray(r)||"undefined"!=typeof FileList&&r instanceof FileList}function ar(n){return s(kn,n.length,function(r){return n[r]})}function g(r,n){return y(s(nn,"Expecting "+r,n))}function c(r,n){if(r===n)return!0;if(r.$!==n.$)return!1;switch(r.$){case 0:case 1:return r.a===n.a;case 2:return r.b===n.b;case 5:return r.c===n.c;case 3:case 4:case 8:return c(r.b,n.b);case 6:return r.d===n.d&&c(r.b,n.b);case 7:return r.e===n.e&&c(r.b,n.b);case 9:return r.f===n.f&&ir(r.g,n.g);case 10:return r.h===n.h&&c(r.b,n.b);case 11:return ir(r.g,n.g)}}function ir(r,n){var t=r.length;if(t!==n.length)return!1;for(var e=0;e<t;e++)if(!c(r[e],n[e]))return!1;return!0}function fr(r){return r}function cr(r){return{$:0,a:r}}var or=f(function(r,n){return{$:3,b:r,d:n}}),br=0;function sr(r){r={$:0,e:br++,f:r,g:null,h:[]};return $r(r),r}function vr(n){return{$:2,b:function(r){r({$:0,a:sr(n)})},c:null}}function lr(r,n){r.h.push(n),$r(r)}var dr=!1,hr=[];function $r(r){if(hr.push(r),!dr){for(dr=!0;r=hr.shift();)(n=>{for(;n.f;){var r=n.f.$;if(0===r||1===r){for(;n.g&&n.g.$!==r;)n.g=n.g.i;if(!n.g)return;n.f=n.g.b(n.f.a),n.g=n.g.i}else{if(2===r)return n.f.c=n.f.b(function(r){n.f=r,$r(n)});if(5===r){if(0===n.h.length)return;n.f=n.f.b(n.h.shift())}else n.g={$:3===r?0:1,b:n.f.b,i:n.g},n.f=n.f.d}}})(r);dr=!1}}function gr(r,n,t,e,u,a){var r=s(tr,r,n?n.flags:void 0),i=(A(r)||V(2),{}),n=t(r.a),f=n.a,c=a(o,f),t=((r,n)=>{var t,e;for(e in p){var u=p[e];u.a&&((t=t||{})[e]=u.a(e,n)),r[e]=((r,n)=>{var e={g:n,h:void 0},u=r.c,a=r.d,i=r.e,f=r.f;function c(t){return s(or,c,{$:5,b:function(r){var n=r.a;return 0===r.$?b(a,e,n,t):i&&f?v(u,e,n.i,n.j,t):b(u,e,i?n.i:n.j,t)}})}return e.h=sr(s(or,c,r.b))})(u,n)}return t})(i,o);function o(r,n){r=s(e,r,f);c(f=r.a,n),_r(i,r.b,u(f))}return _r(i,n.b,u(f)),t?{ports:t}:{}}var p={},pr=f(function(n,t){return{$:2,b:function(r){n.g(t),r({$:0,a:J})},c:null}});function mr(n){return function(r){return{$:1,k:n,l:r}}}function wr(r){return{$:2,m:r}}var yr,jr=[],kr=!1;function _r(r,n,t){if(jr.push({p:r,q:n,r:t}),!kr){kr=!0;for(var e;e=jr.shift();)((r,n,t)=>{var e,u={};for(e in Ar(!0,n,u,null),Ar(!1,t,u,null),r)lr(r[e],{$:"fx",a:u[e]||{i:d,j:d}})})(e.p,e.q,e.r);kr=!1}}function Ar(r,n,t,e){switch(n.$){case 1:var u=n.k,a=((r,n,t,e)=>{function u(r){for(var n=t;n;n=n.t)r=n.s(r);return r}return s(r?p[n].e:p[n].f,u,e)})(r,u,e,n.l);return void(t[u]=((r,n,t)=>(t=t||{i:d,j:d},r?t.i={$:1,a:n,b:t.i}:t.j={$:1,a:n,b:t.j},t))(r,a,t[u]));case 2:for(var i=n.m;i.b;i=i.b)Ar(r,i.a,t,e);return;case 3:Ar(r,n.o,t,{s:n.n,t:e})}}var Nr="undefined"!=typeof document?document:{};function xr(r){return{$:0,a:r}}var Er,o=f(function(a,i){return f(function(r,n){for(var t=[],e=0;n.b;n=n.b){var u=n.a;e+=u.b||0,t.push(u)}return e+=t.length,{$:1,c:i,d:zr(r),e:t,f:a,b:e}})})(void 0),Cr=(f(function(a,i){return f(function(r,n){for(var t=[],e=0;n.b;n=n.b){var u=n.a;e+=u.b.b||0,t.push(u)}return e+=t.length,{$:2,c:i,d:zr(r),e:t,f:a,b:e}})})(void 0),f(function(r,n){return{$:"a0",n:r,o:n}})),Lr=f(function(r,n){return{$:"a1",n:r,o:n}}),Fr=f(function(r,n){return{$:"a2",n:r,o:n}}),Sr=f(function(r,n){return{$:"a3",n:r,o:n}}),Tr=/^\s*(j\s*a\s*v\s*a\s*s\s*c\s*r\s*i\s*p\s*t\s*:|d\s*a\s*t\s*a\s*:\s*t\s*e\s*x\s*t\s*\/\s*h\s*t\s*m\s*l\s*(,|;))/i;function zr(r){for(var n={};r.b;r=r.b){var t,e=r.a,u=e.$,a=e.n,e=e.o;"a2"===u?"className"===a?qr(n,a,e):n[a]=e:(t=n[u]||(n[u]={}),"a3"===u&&"class"===a?qr(t,a,e):t[a]=e)}return n}function qr(r,n,t){var e=r[n];r[n]=e?e+" "+t:t}function m(r,n){var t=r.$;if(5===t)return m(r.k||(r.k=r.m()),n);if(0===t)return Nr.createTextNode(r.a);if(4===t){for(var e=r.k,u=r.j;4===e.$;)"object"!=typeof u?u=[u,e.j]:u.push(e.j),e=e.k;var a={j:u,p:n};(i=m(e,a)).elm_event_node_ref=a}else if(3===t)Rr(i=r.h(r.g),n,r.d);else{var i=r.f?Nr.createElementNS(r.f,r.c):Nr.createElement(r.c);yr&&"a"==r.c&&i.addEventListener("click",yr(i)),Rr(i,n,r.d);for(var f=r.e,c=0;c<f.length;c++)i.appendChild(m(1===t?f[c]:f[c].b,n))}return i}function Rr(r,n,t){for(var e in t){var u=t[e];"a1"===e?((r,n)=>{var t,e=r.style;for(t in n)e[t]=n[t]})(r,u):"a0"===e?((r,n,t)=>{var e,u=r.elmFs||(r.elmFs={});for(e in t){var a=t[e],i=u[e];if(a){if(i){if(i.q.$===a.$){i.q=a;continue}r.removeEventListener(e,i)}i=((c,r)=>{function o(r){var n=o.q,t=$(n.a,r);if(A(t)){for(var e,n=An(n),t=t.a,u=n?n<3?t.a:t.F:t,a=1==n?t.b:3==n&&t.ax,i=(a&&r.stopPropagation(),(2==n?t.b:3==n&&t.au)&&r.preventDefault(),c);e=i.j;){if("function"==typeof e)u=e(u);else for(var f=e.length;f--;)u=e[f](u);i=i.p}i(u,a)}}return o.q=r,o})(n,a),r.addEventListener(e,i,Er&&{passive:An(a)<2}),u[e]=i}else r.removeEventListener(e,i),u[e]=void 0}})(r,n,u):"a3"===e?((r,n)=>{for(var t in n){var e=n[t];void 0!==e?r.setAttribute(t,e):r.removeAttribute(t)}})(r,u):"a4"===e?((r,n)=>{for(var t in n){var e=n[t],u=e.f,e=e.o;void 0!==e?r.setAttributeNS(u,t,e):r.removeAttributeNS(u,t)}})(r,u):("value"!==e&&"checked"!==e||r[e]!==u)&&(r[e]=u)}}try{window.addEventListener("t",null,Object.defineProperty({},"passive",{get:function(){Er=!0}}))}catch(r){}function Mr(r,n){var t=[];return L(r,n,t,0),t}function C(r,n,t,e){n={$:n,r:t,s:e,t:void 0,u:void 0};return r.push(n),n}function L(r,n,t,e){if(r!==n){var u=r.$,a=n.$;if(u!==a){if(1!==u||2!==a)return void C(t,0,e,n);n=(r=>{for(var n=r.e,t=n.length,e=Array(t),u=0;u<t;u++)e[u]=n[u].b;return{$:1,c:r.c,d:r.d,e:e,f:r.f,b:r.b}})(n),a=1}switch(a){case 5:for(var i=r.l,f=n.l,c=i.length,o=c===f.length;o&&c--;)o=i[c]===f[c];if(o)return void(n.k=r.k);n.k=n.m();var b=[];return L(r.k,n.k,b,0),void(0<b.length&&C(t,1,e,b));case 4:for(var s=r.j,v=n.j,l=!1,d=r.k;4===d.$;)l=!0,"object"!=typeof s?s=[s,d.j]:s.push(d.j),d=d.k;for(var h=n.k;4===h.$;)l=!0,"object"!=typeof v?v=[v,h.j]:v.push(h.j),h=h.k;return l&&s.length!==v.length?void C(t,0,e,n):((l?((r,n)=>{for(var t=0;t<r.length;t++)if(r[t]!==n[t])return;return 1})(s,v):s===v)||C(t,2,e,v),void L(d,h,t,e+1));case 0:return void(r.a!==n.a&&C(t,3,e,n.a));case 1:return void Pr(r,n,t,e,Dr);case 2:return void Pr(r,n,t,e,Or);case 3:if(r.h!==n.h)return void C(t,0,e,n);b=Br(r.d,n.d),b=(b&&C(t,4,e,b),n.i(r.g,n.g));b&&C(t,5,e,b)}}}function Pr(r,n,t,e,u){var a;r.c!==n.c||r.f!==n.f?C(t,0,e,n):((a=Br(r.d,n.d))&&C(t,4,e,a),u(r,n,t,e))}function Br(r,n,t){var e,u,a,i,f;for(u in r)"a1"===u||"a0"===u||"a3"===u||"a4"===u?(a=Br(r[u],n[u]||{},u))&&((e=e||{})[u]=a):u in n?(a=r[u])===(i=n[u])&&"value"!==u&&"checked"!==u||"a0"===t&&((r,n)=>r.$==n.$&&c(r.a,n.a))(a,i)||((e=e||{})[u]=i):(e=e||{})[u]=t?"a1"===t?"":"a0"===t||"a3"===t?void 0:{f:r[u].f,o:void 0}:"string"==typeof r[u]?"":null;for(f in n)f in r||((e=e||{})[f]=n[f]);return e}function Dr(r,n,t,e){var u=r.e,a=n.e,r=u.length,n=a.length;n<r?C(t,6,e,{v:n,i:r-n}):r<n&&C(t,7,e,{v:r,e:a});for(var i=r<n?r:n,f=0;f<i;f++){var c=u[f];L(c,a[f],t,++e),e+=c.b||0}}function Or(r,n,t,e){for(var u=[],a={},i=[],f=r.e,c=n.e,o=f.length,b=c.length,s=0,v=0,l=e;s<o&&v<b;){var d=f[s],h=c[v],$=d.a,g=h.a,p=d.b,m=h.b,w=void 0,y=void 0;if($===g)L(p,m,u,++l),l+=p.b||0,s++,v++;else{var j,k,_,A,N=f[s+1],x=c[v+1];if(N&&(k=N.b,y=g===(j=N.a)),x&&(A=x.b,w=$===(_=x.a)),w&&y)L(p,A,u,++l),F(a,u,$,m,v,i),l+=p.b||0,S(a,u,$,k,++l),l+=k.b||0,s+=2,v+=2;else if(w)l++,F(a,u,g,m,v,i),L(p,A,u,l),l+=p.b||0,s+=1,v+=2;else if(y)S(a,u,$,p,++l),l+=p.b||0,L(k,m,u,++l),l+=k.b||0,s+=2,v+=1;else{if(!N||j!==_)break;S(a,u,$,p,++l),F(a,u,g,m,v,i),l+=p.b||0,L(k,A,u,++l),l+=k.b||0,s+=2,v+=2}}}for(;s<o;){p=(d=f[s]).b;S(a,u,d.a,p,++l),l+=p.b||0,s++}for(;v<b;){var E=E||[];F(a,u,(h=c[v]).a,h.b,void 0,E),v++}(0<u.length||0<i.length||E)&&C(t,8,e,{w:u,x:i,y:E})}var Jr="_elmW6BL";function F(r,n,t,e,u,a){var i,f=r[t];f?1===f.c?(a.push({r:u,A:f}),f.c=2,L(f.z,e,i=[],f.r),f.r=u,f.s.s={w:i,A:f}):F(r,n,t+Jr,e,u,a):(a.push({r:u,A:f={c:0,z:e,r:u,s:void 0}}),r[t]=f)}function S(r,n,t,e,u){var a,i=r[t];i?0===i.c?(i.c=2,L(e,i.z,a=[],u),C(n,9,u,{w:a,A:i})):S(r,n,t+Jr,e,u):(a=C(n,9,u,void 0),r[t]={c:1,z:e,r:u,s:a})}function Yr(r,n,t,e){!function r(n,t,e,u,a,i,f){var c=e[u];var o=c.r;for(;o===a;){var b,s=c.$;if(1===s?Yr(n,t.k,c.s,f):8===s?(c.t=n,c.u=f,0<(b=c.s.w).length&&r(n,t,b,0,a,i,f)):9===s?(c.t=n,c.u=f,(s=c.s)&&(s.A.s=n,0<(b=s.w).length)&&r(n,t,b,0,a,i,f)):(c.t=n,c.u=f),!(c=e[++u])||(o=c.r)>i)return u}var v=t.$;if(4===v){for(var l=t.k;4===l.$;)l=l.k;return r(n,l,e,u,a+1,i,n.elm_event_node_ref)}var d=t.e;var h=n.childNodes;for(var $=0;$<d.length;$++){var g=1===v?d[$]:d[$].b,p=++a+(g.b||0);if(a<=o&&o<=p&&(u=r(h[$],g,e,u,a,p,f),!(c=e[u])||(o=c.r)>i))return u;a=p}return u}(r,n,t,0,0,n.b,e)}function Gr(r,n,t,e){return 0===t.length?r:(Yr(r,n,t,e),Hr(r,t))}function Hr(r,n){for(var t=0;t<n.length;t++){var e=n[t],u=e.t,e=((r,n)=>{switch(n.$){case 0:return((r,n,t)=>{var e=r.parentNode;return(n=m(n,t)).elm_event_node_ref||(n.elm_event_node_ref=r.elm_event_node_ref),e&&n!==r&&e.replaceChild(n,r),n})(r,n.s,n.u);case 4:return Rr(r,n.u,n.s),r;case 3:return r.replaceData(0,r.length,n.s),r;case 1:return Hr(r,n.s);case 2:return r.elm_event_node_ref?r.elm_event_node_ref.j=n.s:r.elm_event_node_ref={j:n.s,p:n.u},r;case 6:for(var t=n.s,e=0;e<t.i;e++)r.removeChild(r.childNodes[t.v]);return r;case 7:for(var u=(t=n.s).e,e=t.v,a=r.childNodes[e];e<u.length;e++)r.insertBefore(m(u[e],n.u),a);return r;case 9:var i;return(t=n.s)?(void 0!==(i=t.A).r&&r.parentNode.removeChild(r),i.s=Hr(r,t.w)):r.parentNode.removeChild(r),r;case 8:return((r,n)=>{for(var t=n.s,e=((r,n)=>{if(r){for(var t=Nr.createDocumentFragment(),e=0;e<r.length;e++){var u=r[e].A;t.appendChild(2===u.c?u.s:m(u.z,n.u))}return t}})(t.y,n),u=(r=Hr(r,t.w),t.x),a=0;a<u.length;a++){var i=u[a],f=i.A,f=2===f.c?f.s:m(f.z,n.u);r.insertBefore(f,r.childNodes[i.r])}return e&&r.appendChild(e),r})(r,n);case 5:return n.s(r);default:V(10)}})(u,e);u===r&&(r=e)}return r}function Ir(r){if(3===r.nodeType)return{$:0,a:r.textContent};if(1!==r.nodeType)return{$:0,a:""};for(var n=d,t=r.attributes,e=t.length;e--;)var u=t[e],n={$:1,a:s(Sr,u.name,u.value),b:n};for(var a=r.tagName.toLowerCase(),i=d,f=r.childNodes,e=f.length;e--;)i={$:1,a:Ir(f[e]),b:i};return b(o,a,n,i)}var Kr=P(function(n,r,t,i){return gr(r,i,n.bP,n.cg,n.cb,function(t,r){var e=n.ch,u=i.node,a=Ir(u);return Wr(r,function(r){var r=e(r),n=Mr(a,r);u=Gr(u,a,n,t),a=r})})}),Qr="undefined"!=typeof requestAnimationFrame?requestAnimationFrame:function(r){return setTimeout(r,1e3/60)};function Wr(t,e){e(t);var u=0;function a(){u=1===u?0:(Qr(a),e(t),1)}return function(r,n){t=r,n?(e(t),2===u&&(u=1)):(0===u&&Qr(a),u=2)}}function Ur(r){return r.a}function Vr(r){return{$:1,a:r}}function Xr(r){var n=r.b;return s(Sn,1664525*r.a+n>>>0,n)}var w=I,Zr=n(function(r,n,t){for(;;){if(-2===t.$)return n;var e=t.d,u=r,a=b(r,t.b,t.c,b(Zr,r,n,t.e));r=u,n=a,t=e}}),rn=function(r){return b(Zr,n(function(r,n,t){return s(w,{a:r,b:n},t)}),d,r)},y=function(r){return{$:1,a:r}},nn=f(function(r,n){return{$:3,a:r,b:n}}),tn=f(function(r,n){return{$:0,a:r,b:n}}),en=f(function(r,n){return{$:1,a:r,b:n}}),j=function(r){return{$:0,a:r}},un=function(r){return{$:2,a:r}},an=X,fn=function(r){return{$:0,a:r}},t={$:1},e=function(r){return r+""},k=n(function(r,n,t){for(;;){if(!t.b)return n;var e=t.b,u=r,a=s(r,t.a,n);r=u,n=a,t=e}}),i=function(r){return b(k,f(function(r,n){return n+1}),0,r)},_=function(r){return b(k,w,d,r)},cn=P(function(r,n,t,e){return{$:0,a:r,b:n,c:t,d:e}}),on=[],bn=Z,sn=f(function(r,n){return nr(n)/nr(r)}),vn=bn(s(sn,2,32)),ln=v(cn,0,vn,on,on),dn=W,hn=rr,$n=function(r){return r.length},gn=f(function(r,n){return 0<l(r,n)?r:n}),pn=U,mn=f(function(r,n){for(;;){var t=s(pn,32,r),e=t.b,t=s(w,{$:0,a:t.a},n);if(!e.b)return _(t);r=e,n=t}}),wn=f(function(r,n){for(;;){var t=bn(n/32);if(1===t)return s(pn,32,r).a;r=s(mn,r,d),n=t}}),yn=f(function(r,n){var t,e;return n.f?(e=hn(s(sn,32,(t=32*n.f)-1)),r=r?_(n.j):n.j,r=s(wn,r,n.f),v(cn,$n(n.i)+t,s(gn,5,e*vn),r,n.i)):v(cn,$n(n.i),vn,on,n.i)}),jn=B(function(r,n,t,e,u){for(;;){if(n<0)return s(yn,!1,{j:e,f:t/32|0,i:u});var a={$:1,a:b(dn,32,n,r)};r=r,n=n-32,t=t,e=s(w,a,e),u=u}}),kn=f(function(r,n){var t;return 0<r?D(jn,n,r-(t=r%32)-32,r,d,b(dn,t,r-t,n)):ln}),A=function(r){return!r.$},_n=function(r){return{$:0,a:r}},An=function(r){switch(r.$){case 0:return 0;case 1:return 1;case 2:return 2;default:return 3}},Nn=function(r){return r},N=cr,I=N(0),xn=P(function(r,n,t,e){var u,a,i,f;return e.b?(u=e.a,(e=e.b).b?(a=e.a,(e=e.b).b?(i=e.a,(e=e.b).b?(f=e.b,s(r,u,s(r,a,s(r,i,s(r,e.a,500<t?b(k,r,n,_(f)):v(xn,r,n,t+1,f)))))):s(r,u,s(r,a,s(r,i,n)))):s(r,u,s(r,a,n))):s(r,u,n)):n}),u=n(function(r,n,t){return v(xn,r,n,0,t)}),x=f(function(t,r){return b(u,f(function(r,n){return s(w,t(r),n)}),d,r)}),E=or,En=f(function(n,r){return s(E,function(r){return N(n(r))},r)}),Cn=n(function(t,r,e){return s(E,function(n){return s(E,function(r){return N(s(t,n,r))},e)},r)}),Ln=pr,Fn=f(function(r,n){return vr(s(E,Ln(r),n))}),X=n(function(r,n,t){return s(En,function(r){return 0},(r=s(x,Fn(r),n),b(u,Cn(w),N(d),r)))}),Z=(p.Task={b:I,c:X,d:n(function(r,n,t){return N(0)}),e:f(function(r,n){return s(En,r,n)}),f:void 0},mr("Task"),Kr),Sn=f(function(r,n){return{$:0,a:r,b:n}});function Tn(n){return function(r){return{a:n,b:r}}}function zn(r){return((r=277803737*((r=r.a)^r>>>4+(r>>>28)))>>>22^r)>>>0}function qn(n){var r;return n.b?(r=i(n)-1,s(T,function(r){return{a:s(Hn,r,n),b:s(Yn,s(Un,r,n),s(Gn,r+1,n))}},s(In,0,r))):Tn({a:t,b:n})}function Rn(r){var n=(r=>{var r=s(x,i,s(et,function(r){return 2<i(r)&&ct(r)},tt(st(s(x,ft,r))))),n=s(vt,0,ot(r));return ut(s(et,function(r){return a(r,n)},r))})(r),t=(r=>2*i(s(et,it,tt(s(x,ft,r)))))(r),e=(r=>{var n;return r.b?(n=r.a.a,i(s(et,function(r){return 10===r.b&&a(r.a,n)},r.b))):0})(r),u=(r=>{var n,t,e,u;return r.b&&r.b.b&&r.b.b.b&&r.b.b.b.b&&r.b.b.b.b.b&&!r.b.b.b.b.b.b?(t=(u=(n=r.b).b).a.a,e=(u=u.b).a.a,u=u.b.a.a,a(r=r.a.a,n=n.a.a)&&a(r,t)&&a(r,e)&&a(r,u)?5:a(n,t)&&a(t,e)&&a(e,u)?4:0):0})(r);return{aM:r=(r=>2*i(s(et,function(r){return 15===ut(r)},tt(s(x,at,r)))))(r),aN:u,a0:e,a3:t,bd:n,bn:r+n+t+u+e}}function Mn(r){return s(Tt,"click",_n(r))}Pn=Nn;var Pn,W=s(E,function(r){return N((r=>{var n=Xr(s(Sn,0,1013904223));return Xr(s(Sn,n.a+r>>>0,n.b))})(r))},{$:2,b:function(r){r({$:0,a:Pn(Date.now())})},c:null}),Bn=f(function(r,n){return r(n)}),Dn=n(function(n,r,t){var e,u;return r.b?(e=r.b,u=(r=s(Bn,r.a,t)).b,s(E,function(r){return b(Dn,n,e,u)},s(Ln,n,r.a))):N(t)}),rr=n(function(r,n,t){return N(t)}),T=f(function(t,r){var e=r;return function(r){var r=e(r),n=r.b;return{a:t(r.a),b:n}}}),On=(p.Random={b:W,c:Dn,d:rr,e:f(function(r,n){return s(T,r,n)}),f:void 0},mr("Random")),U=f(function(r,n){return On(s(T,r,n))}),Jn=f(function(t,r){var e=r;return function(r){var r=e(r),n=r.b;return t(r.a)(n)}}),Yn=f(function(r,n){return n.b?b(u,w,n,r):r}),Gn=f(function(r,n){for(;;){if(r<=0)return n;if(!n.b)return n;r=r-1,n=n.b}}),Hn=f(function(r,n){return(r=>r.b?fn(r.a):t)(s(Gn,r,n))}),In=f(function(c,o){return function(r){var n=l(c,o)<0?{a:c,b:o}:{a:o,b:c},t=n.a,e=n.b-t+1;if(!(e-1&e))return{a:((e-1&zn(r))>>>0)+t,b:Xr(r)};for(var u=(-e>>>0)%e>>>0,a=r;;){var i=zn(a),f=Xr(a);if(0<=l(i,u))return{a:i%e+t,b:f};a=f}}}),Kn=n(function(r,n,t){for(;;){if(r<=0)return t;if(!n.b)return t;var e=n.a;r=r-1,n=n.b,t=s(w,e,t)}}),Qn=f(function(r,n){return _(b(Kn,r,n,d))}),Wn=n(function(r,n,t){if(0<n){var e,u,a,i,f,c={a:n,b:t};r:for(;;){n:for(;;){if(!c.b.b)return t;if(!c.b.b.b){if(1===c.a)break r;break}switch(c.a){case 1:break r;case 2:var o=c.b;return h([o.a,o.b.a]);case 3:if(c.b.b.b.b)return h([(o=c.b).a,(e=o.b).a,e.b.a]);break n;default:if(c.b.b.b.b&&c.b.b.b.b.b)return f=(i=(a=(u=(e=c.b).b).b).b).b,s(w,e.a,s(w,u.a,s(w,a.a,s(w,i.a,1e3<r?s(Qn,n-4,f):b(Wn,r+1,n-4,f)))));break n}}return t}return h([c.b.a])}return d}),Un=f(function(r,n){return b(Wn,0,r,n)}),Vn=f(function(a,i){return a<1?Tn({a:d,b:i}):s(Jn,function(r){function n(r){return t(0)(r)}var t,e=r.a,u=r.b,r=(t=function(r){return s(Vn,a-1,u)},f(function(r,n){var t=n.b;return{a:s(w,r,n.a),b:t}}));return 1===e.$?Tn({a:d,b:i}):s(T,r(e.a),n)},qn(i))}),Xn=f(function(r,n){return{$:0,a:r,b:n}}),Zn=h([0,1,2,3,4,5,6,7,8,9,10,11,12]),pr=h([0,1,2,3]),rt=s(U,Vr,s(T,Ur,s(Vn,5,s(f(function(r,n){return b(u,Yn,d,s(x,r,n))}),function(r){return s(x,Xn(r),Zn)},pr)))),nt=wr(d),tt=function(r){var n;return r.b?(n=r.a,r=tt(r.b),G(s(x,w(n),r),r)):h([d])},et=f(function(t,r){return b(u,f(function(r,n){return t(r)?s(w,r,n):n}),d,r)}),ut=function(r){return b(k,an,0,r)},at=function(r){switch(r.b){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;default:return 10}},it=function(r){return!(!r.b||!r.b.b||r.b.b.b)&&a(r.a,r.b.a)},ft=function(r){switch(r.b){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;case 11:return 12;default:return 13}},ct=function(r){var n,t;return!r.b||!r.b.b||(t=(n=r.b).b,a(r.a+1,r=n.a)&&ct(s(w,r,t)))},ot=function(r){return r.b?fn(b(k,gn,r.a,r.b)):t},bt=Q,st=function(r){return s(bt,Nn,r)},vt=f(function(r,n){return n.$?r:n.a}),lt=wr(d),I=f(function(r,n){switch(r.$){case 0:return{a:Y(n,{S:t}),b:rt};case 1:return{a:Y(n,{_:r.a}),b:lt};default:return{a:Y(n,{S:fn({a:r.a,b:Rn(n._)})}),b:lt}}}),z=o("div"),q=Lr,dt=function(r){switch(r){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;case 11:return 12;default:return 13}},ht=function(r){return s(bt,function(r){return dt(r.b)},r)},R=xr,$t=function(r){switch(r){case 0:return"A";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"T";case 10:return"J";case 11:return"Q";default:return"K"}},gt=function(r){switch(r){case 0:return"C";case 1:return"D";case 2:return"H";default:return"S"}},pt=function(r){var n=r.a;return G($t(r.b),gt(n))},mt=fr,wt=f(function(r,n){return s(Fr,r,mt(n))}),yt=wt("className"),jt=o("img"),kt=function(r){return s(wt,"src",Tr.test(r=r)?"":r)},_t=function(r){return s(jt,h([s(q,"width","25%"),yt("card"),kt("cards/"+pt(r)+".svg")]),d)},At=function(r){var n,r=r.S;return r.$?R("Calculate score!"):s(z,h([s(q,"color",a(n=(r=r.a).a,(r=r.b).bn)?"green":"red")]),h([s(z,d,h([R("Your calculation: "+e(n))])),s(z,d,h([R("Actual score: "+e(r.bn))])),s(z,d,h([R("Fifteens: "+e(r.aM))])),s(z,d,h([R("Runs: "+e(r.bd))])),s(z,d,h([R("Pairs: "+e(r.a3))])),s(z,d,h([R("Flush: "+e(r.aN))])),s(z,d,h([R("Nobs: "+e(r.a0))]))]))},Nt=o("table"),xt=o("tr"),Et={$:0},Ct=o("button"),Lt=fr,Ft=f(function(r,n){return s(Fr,r,Lt(n))})("disabled"),St=Cr,Tt=f(function(r,n){return s(St,r,{$:0,a:n})}),zt=o("td"),qt=f(function(r,n){r=a(r.S,t);return l(n,-1)<0?s(zt,h([Mn(Et)]),h([s(Ct,h([Ft(r),s(q,"width","100%"),s(q,"height","80px"),s(q,"font-size","40")]),h([R("New")]))])):a(n,-1)?s(zt,d,d):s(zt,h([Mn({$:2,a:n})]),h([s(Ct,h([Ft(!r),s(q,"width","100%"),s(q,"height","80px"),s(q,"font-size","40")]),h([R(e(n))]))]))}),Rt=f(function(r,n){return s(xt,d,s(x,qt(r),n))}),X=Z({bP:function(r){return{a:{_:d,S:t},b:rt}},cb:function(r){return nt},cg:I,ch:function(r){return s(z,h([s(q,"font-size","32px"),s(q,"font-family","sans-serif")]),h([(r=>{var n,t=r._;return t.b?(n=t.a,t=t.b,s(z,d,h([s(z,h([s(q,"width","100%"),s(q,"display","flex"),s(q,"gap","10px")]),h([_t(n),At(r)])),s(z,h([s(q,"width","100%"),s(q,"display","flex")]),s(x,_t,ht(t)))]))):R("")})(r),(r=>s(Nt,h([s(q,"table-layout","fixed"),s(q,"width","100%")]),h([s(Rt,r,h([0,1,2,3,4,5])),s(Rt,r,h([6,7,8,9,10,11])),s(Rt,r,h([12,13,14,15,16,17])),s(Rt,r,h([18,-1,20,21,22,23])),s(Rt,r,h([24,-1,-2,-1,28,29]))])))(r)]))}});Kr={Main:{init:X(_n(0))(0)}},r.Elm?function r(n,t){for(var e in t)e in n?"init"==e?V(6):r(n[e],t[e]):n[e]=t[e]}(r.Elm,Kr):r.Elm=Kr})(this);