text: var todo=function(r){"use strict";var n=["Invalid_argument",-3];function t(r,n,t){for(var e=new Array(t),u=0,i=n;u<t;)e[u]=r[i],u=u+1|0,i=i+1|0;return e}function e(r,t,e){if(t<0||t>=r.length)throw[n,"index out of bounds"];return r[t]=e,0}function u(r,t){if(t<0||t>=r.length)throw[n,"index out of bounds"];return r[t]}function i(r,n){for(var t=new Array(r),e=0,u=r-1|0;e<=u;++e)t[e]=n;return t}function o(r,n){for(;;){var e=n,u=r,i=u.length,a=i-e.length|0;if(0===a)return u.apply(null,e);if(!(a<0))return function(r,n){return function(t){return o(r,n.concat([t]))}}(u,e);n=t(e,i,0|-a),r=u.apply(null,t(e,0,i))}}function a(r,n){var t=r.length;return 1===t?r(n):function(r,n,t){switch(t){case 1:return r(n);case 2:return function(t){return r(n,t)};case 3:return function(t,e){return r(n,t,e)};case 4:return function(t,e,u){return r(n,t,e,u)};case 5:return function(t,e,u,i){return r(n,t,e,u,i)};case 6:return function(t,e,u,i,o){return r(n,t,e,u,i,o)};case 7:return function(t,e,u,i,o,a){return r(n,t,e,u,i,o,a)};default:return o(r,[n])}}(r,n,t)}function c(r,n,t){var e=r.length;return 2===e?r(n,t):function(r,n,t,e){switch(e){case 1:return o(r(n),[t]);case 2:return r(n,t);case 3:return function(e){return r(n,t,e)};case 4:return function(e,u){return r(n,t,e,u)};case 5:return function(e,u,i){return r(n,t,e,u,i)};case 6:return function(e,u,i,o){return r(n,t,e,u,i,o)};case 7:return function(e,u,i,o,a){return r(n,t,e,u,i,o,a)};default:return o(r,[n,t])}}(r,n,t,e)}function f(r,n,t,e){var u=r.length;return 3===u?r(n,t,e):function(r,n,t,e,u){switch(u){case 1:return o(r(n),[t,e]);case 2:return o(r(n,t),[e]);case 3:return r(n,t,e);case 4:return function(u){return r(n,t,e,u)};case 5:return function(u,i){return r(n,t,e,u,i)};case 6:return function(u,i,o){return r(n,t,e,u,i,o)};case 7:return function(u,i,o,a){return r(n,t,e,u,i,o,a)};default:return o(r,[n,t,e])}}(r,n,t,e,u)}function v(r,n){return n.tag=r,n}n.tag=248;var s=function(r,n){for(var t in r)n(t)};function d(r,t){for(;;){var e=t,u=r;if(u===e)return!0;var i=typeof u;if("string"===i||"number"===i||"boolean"===i||"undefined"===i||null===u)return!1;var o=typeof e;if("function"===i||"function"===o)throw[n,"equal: functional value"];if("number"===o||"undefined"===o||null===e)return!1;var a=0|u.tag,c=0|e.tag;if(250!==a)if(250!==c){if(248===a)return u[1]===e[1];if(251===a)throw[n,"equal: abstract value"];if(a!==c)return!1;if(256===a)return u[1]===e[1];var f=0|u.length;if(f!==(0|e.length))return!1;if(!Array.isArray(u)){var v=u,l=e,g=[!0],h=function(r,n){return function(t){return r.hasOwnProperty(t)?0:(n[0]=!1,0)}}(l,g),p=function(r,n,t){return function(e){return r.hasOwnProperty(e)&&d(n[e],r[e])?0:(t[0]=!1,0)}}(v,l,g);return s(v,h),g[0]&&s(l,p),g[0]}for(var b=u,m=e,y=0,w=f;;){var k=y;if(k===w)return!0;if(!d(b[k],m[k]))return!1;y=k+1|0}}else t=e[0];else r=u[0]}}var l=[0];function g(r){var n=[r,(l[0]+=1,l[0])];return n.tag=248,n}g("Pervasives.Exit");function h(r,n){return r?[r[0],h(r[1],n)]:n}function p(r,n){for(;;){var t=n,e=r;if(!e)return t;n=[e[0],t],r=e[1]}}function b(r){return p(r,0)}function m(r,n){for(;;){var t=n;if(!t)return!1;if(d(t[0],r))return!0;n=t[1]}}var y=function(r){return function(n){for(var t=0,e=n;;){var u=e,i=t;if(!u)return p(i,0);var o=u[1],c=u[0];a(r,c)?(e=o,t=[c,i]):e=o}}};g("Js_exn.Error");function w(r,n){for(var t=0,e=n.length-1|0;t<=e;++t)a(r,n[t]);return 0}function k(r,n){var t=n.length;if(0===t)return[];for(var e=i(t,a(r,n[0])),u=1,o=t-1|0;u<=o;++u)e[u]=a(r,n[u]);return e}function E(r,n){var t=n.length;if(0===t)return[];for(var e=i(t,c(r,0,n[0])),u=1,o=t-1|0;u<=o;++u)e[u]=c(r,u,n[u]);return e}function x(r,n,t){for(var e=n,u=0,i=t.length-1|0;u<=i;++u)e=c(r,e,t[u]);return e}g("Array.Bottom");var A=function(r,n){return delete r[n],0};function S(r){for(var n={},t=0,e=r.length-1|0;t<=e;++t){var u=r[t];n[u[0]]=u[1]}return n}var L=[];function M(r){if(void 0===r){var n=[L,0];return n.tag=256,n}if(null!==r&&r[0]===L){var t=r[1]+1|0,e=[L,t];return e.tag=256,e}return r}function O(r){return null==r?void 0:M(r)}function P(r){return void 0===r?void 0:M(r)}function N(r){if(null!==r&&r[0]===L){var n=r[1];return 0===n?void 0:[L,n-1|0]}return r}function C(r,n){return r.classList.add(n),0}function B(r){return function(n){return P(r[n])}}function T(r){return O(r.nextSibling)}function j(r,n){return r.removeAttribute(n),0}function q(r,n,t){return r.removeAttributeNS(n,t),0}function I(r,n){return r.classList.remove(n),0}function _(r,n){return r.removeChild(n),0}function z(r,n){return A(r,n)}function J(r,n){return r.style.removeProperty(n),0}function W(r,n,t){return r.setAttribute(n,t),0}function D(r,n,t,e){return r.setAttributeNS(n,t,e),0}function F(r){return function(n,t){return r[n]=t,0}}function G(r,n,t,e){return r.style.setProperty(n,t,e?"important":""),0}var H=[];function K(r,n){return void 0!==r?(a(n,N(r)),0):0}function Q(r,n,t){return x(function(n,t){var e=n[0];return[e+1|0,f(r,n[1],e,t)]},[0,n],t)[1]}function R(r,n){return function(r,n){return r===n}(r,n)}function U(r){switch(r){case 0:return"abort";case 1:return"beforeinput";case 2:return"beforeunload";case 3:return"blur";case 4:return"change";case 5:return"click";case 6:return"dblclick";case 7:return"dragend";case 8:return"dragenter";case 9:return"dragexit";case 10:return"dragleave";case 11:return"dragover";case 12:return"dragstart";case 13:return"drop";case 14:return"focus";case 15:return"focusin";case 16:return"focusout";case 17:return"input";case 18:return"keydown";case 19:return"keypress";case 20:return"keyup";case 21:return"load";case 22:return"mousedown";case 23:return"mouseenter";case 24:return"mouseleave";case 25:return"mousemove";case 26:return"mouseout";case 27:return"mouseup";case 28:return"popstate";case 29:return"readystatechange";case 30:case 31:return;case 32:return"resize";case 33:return"scroll";case 34:return"select";case 35:return"submit";case 36:return"touchcancel";case 37:return"touchend";case 38:return"touchmove";case 39:return"touchstart";case 40:return"transitioncancel";case 41:return"transitionend";case 42:return"transitionrun";case 43:return"transitionstart";case 44:return"unhandledrejection";case 45:return"unload";case 46:return"wheel"}}function V(r){var n=Math.pow(2,r+0|0);return function(r){return 0!=(r&n)}}var X=[function(r,n){return r|n},0,function(r){return Math.pow(2,r+0|0)},V,function(r){return V(31)(r)?r&(-1^Math.pow(2,31))|Math.pow(2,30):r}],Y=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46];function Z(r,n){return v(5,[X[2](r),n])}function $(r){if("number"!=typeof r)switch(0|r.tag){case 0:return T(r[0][0]);case 12:for(var n=r[0][0],t=n.length;;){if(0===t)return;var e=t-1|0,i=u(n,e);if("number"!=typeof i)switch(0|i.tag){case 0:return T(i[0][0]);case 12:return $(i);default:t=e;continue}else t=e}default:return}}function rr(r,n,t){return!!d(r,t[1])&&n===t[2]}function nr(r){return"number"==typeof r?[r]:12===r.tag?r[0][0]:[r]}function tr(r,n){return 1!==r.length?v(12,[[r,M(n)]]):u(r,0)}function er(r,n,t){return void 0!==t?function(r,n,t){return r.insertBefore(n,t),0}(r,n,N(t)):function(r,n){return r.appendChild(n),0}(r,n)}function ur(r,n,t){return x(function(n,t){for(var e=t;;){var u=e;if("number"==typeof u)return n;switch(0|u.tag){case 0:var i=u[0][0];return er(r,i,n),T(i);case 10:var o=u[0];if(void 0!==o){var a=N(o);return er(r,a,n),O(a.nextSibling)}return n;case 11:var c=u[0][2];if(void 0!==c){e=c[0];continue}return n;case 12:return ur(r,u[0][0],n);default:return n}}},t,n)}function ir(r,n,t,e,u){return w(function(e){if("number"==typeof e)return 0;switch(0|e.tag){case 0:var i=e[0];return a(r,i[5])&&u&&u[0]===i[0]?ir(r,n,t,i[3],u[1]):0;case 2:var o=e[0],c=o[3];if(void 0!==c){var f=c,v=o[1];if(a(r,f[1])){return ir(r,n,function(r){return a(t,a(v,r))},[f[0]],u)}return 0}return 0;case 5:return a(r,e[0])?K(a(e[1],n),t):0;case 6:var s=e[1];if(void 0!==s&&a(r,N(s))){var d=k(function(r){return r[1]},e[0]);return ir(r,n,t,d,u)}return 0;case 11:var l=e[0][2];if(void 0!==l){var g=l;return a(r,g[1])?ir(r,n,t,[g[0]],u):0}return 0;case 12:var h=e[0],p=h[1];return void 0!==p&&a(r,N(p))?ir(r,n,t,h[0],u):0;default:return 0}},e)}function or(r,n,o,c,f,s){var l=void 0!==r&&r,g=void 0!==n&&n,p=void 0!==o?o:0,b=function(r){for(;;){var n=r;if("number"==typeof n)return 0;switch(0|n.tag){case 0:var t=n[0];return Y(f,t[0],t[1],t[3],t[5],function(r){return 0});case 1:var e=n[0];return void 0!==e?q(f,e,n[1]):j(f,n[1]);case 2:var i=n[0][3];return void 0!==i?(or(void 0,!0,void 0,void 0,f,s)(nr(i[0]),H),0):0;case 3:return I(f,n[0]);case 7:return z(f,n[0]);case 9:return J(f,n[0]);case 10:var o=n[0];return void 0!==o?_(f,N(o)):0;case 11:var a=n[0][2];if(void 0!==a){r=a[0];continue}return 0;case 12:for(var c=n[0][0],v=0,d=c.length-1|0;v<=d;++v)b(u(c,v));return 0;default:return 0}}},y=function(r,n,t,o,a){var c=i(a.length,0),f=Q(function(n,i,o){var a=n[4],f=n[1],v=n[0],s=void 0!==v?u(v,f):0,d=n[3],l=L(r,t,s,n[2],o),g=X[0](d,l[1]);l[3]&&b(s),e(c,i,l[0]);var p=h(a,l[4]);return[v,f+1|0,l[2],g,p]},[o,0,n,X[1],0],a),v=f[1];return K(f[0],function(r){for(var n=v,t=r.length-1|0;n<=t;++n)b(u(r,n));return 0}),[c,f[2],f[3],f[4]]},A=function(r,n,u,i){var o,a,c=S(u),f=S(E(function(r,n){return[n,r]},Object.keys(c))),v=0===(a=(o=u).length)?[]:t(o,0,a),s=[],d=Q(function(r,t,u){var i,o=u[0],a=r[2],d=c[o],l=void 0!==d?(K(P(f[o]),function(r){return e(v,r,[o,0])}),d):0,g=r[1],p=L(!0,n,l,r[0],u[1]),m=X[0](g,p[1]);p[3]&&b(l),i=p[0],s[t]=[o,i];var y=h(a,p[4]);return[p[2],m,y]},[r,X[1],0],i);return w(b,k(function(r){return r[1]},v)),[s,d[0],d[1],d[2]]},L=function(r,n,t,e,i){for(;;){var o=i;if("number"==typeof o)return[o,X[1],e,"number"!=typeof t,0];switch(0|o.tag){case 0:var c=o[0][4];if(void 0!==c){i=c;continue}return[0,X[1],e,!0,0];case 1:var l=o[2],g=o[1],h=o[0];if("number"!=typeof t&&1===t.tag&&d(h,t[0])&&g===t[1]&&l===t[2])return[o,X[1],e,!1,0];if(1===1)return void 0!==h?D(f,h,g,l):W(f,g,l),[o,X[1],e,!0,0];break;case 2:var b=o[0],w=b[2],x=b[0],S=0;if("number"==typeof t||2!==t.tag)S=1;else{var L=t[0],P=L[3];if(void 0!==P){var j=P[0],q=L[0];if(w===L[2]){var I=r?ur(f,[j],e):$(j);return[t,X[1],I,!1,0]}var _=or(r,n,void 0,e,f,s)(nr(j),nr(a(q,w))),z=_[2],J=tr(_[0],z);return[v(2,[[q,L[1],w,[J,z]]]),z,_[1],!1,_[3]]}S=1}if(1===S){var H=or(r,n,void 0,e,f,s)(void 0,nr(a(x,w))),K=H[2],Q=tr(H[0],K);return[v(2,[[x,b[1],w,[Q,K]]]),K,H[1],!0,H[3]]}break;case 3:var U=o[0];if("number"!=typeof t&&3===t.tag&&U===t[0])return[o,X[1],e,!1,0];if(1===1)return C(f,U),[o,X[1],e,!0,0];break;case 4:var V=o[2],Y=o[1],Z=o[0],ir=0;if("number"==typeof t||t.tag)ir=1;else{var ar=t[0],cr=ar[4];if(void 0!==cr){var fr=cr,vr=ar[0];if(o===fr||rr(Z,Y,ar)){if(r&&er(f,vr,e),o===fr){var sr=T(vr);return[t,X[4](ar[5]),sr,!1,0]}var dr=or(void 0,void 0,void 0,void 0,vr,Z)(ar[3],V),lr=dr[2];return[v(0,[[vr,ar[1],ar[2],dr[0],ar[4],lr]]),X[4](lr),dr[1],!1,dr[3]]}ir=1}else ir=1}if(1===ir){var gr=O(f,e,(sn=s,void 0!==(vn=Z)?M(N(vn)):sn),Y,V,o),hr=T(gr[0]);return[v(0,[gr]),X[4](gr[5]),hr,!0,0]}break;case 5:var pr=o[0];return[o,pr,e,"number"==typeof t||5!==t.tag||!d(pr,t[0]),0];case 6:var br=o[0];if("number"!=typeof t&&6===t.tag){var mr=A(e,n,t[0],br),yr=mr[2];return[v(6,[mr[0],M(yr)]),yr,mr[1],!1,mr[3]]}if(1===1){var wr=k(function(r){return r[1]},br),kr=y(!1,e,n,void 0,wr),Er=kr[2];return[v(6,[E(function(r){return function(n,t){return[u(r,n)[0],t]}}(br),kr[0]),M(Er)]),Er,kr[1],!0,kr[3]]}break;case 7:var xr=o[1],Ar=o[0],Sr=0;if("number"==typeof t||7!==t.tag)Sr=1;else{var Lr=!1;if(Ar===t[0]){var Mr=!1;if(xr===t[1]){var Or=B(f)(Ar);Mr=void 0!==Or?xr===N(Or):""===xr}Lr=Mr}if(Lr)return[o,X[1],e,!1,0];Sr=1}if(1===Sr)return F(f)(Ar,xr),[o,X[1],e,!0,0];break;case 8:var Pr=o[1],Nr=o[0];if("number"!=typeof t&&8===t.tag){var Cr=t[2],Br=t[0];if(n&&!Cr||d(Nr,Br)&&m(Nr,p)){var Tr=y(r,e,!0,Cr&&d(Nr,Br)?t[1]:void 0,Pr),jr=Tr[3];return[v(8,[Nr,Tr[0],!0]),Tr[2],Tr[1],!1,Cr?jr:[Nr,jr]]}return[o,X[2](31),e,!1,0]}if(1===1){if(n){var qr=y(r,e,!1,void 0,Pr);return[v(8,[Nr,qr[0],!0]),qr[2],qr[1],!0,[Nr,qr[3]]]}return[o,X[2](31),e,!0,0]}break;case 9:var Ir=o[2],_r=o[1],zr=o[0];if("number"!=typeof t&&9===t.tag&&zr===t[0]&&_r===t[1]&&Ir===t[2])return[o,X[1],e,!1,0];if(1===1)return G(f,zr,_r,Ir),[o,X[1],e,!0,0];break;case 10:var Jr=o[1],Wr=0;if("number"==typeof t||10!==t.tag)Wr=1;else{var Dr=t[0];if(void 0!==Dr){var Fr=N(Dr);return Jr!==t[1]&&(fn=Jr,Fr.textContent=fn),r&&er(f,Fr,e),[v(10,[M(Fr),Jr]),X[1],e,!1,0]}Wr=1}if(1===Wr){var Gr=(cn=Jr,document.createTextNode(cn));return er(f,Gr,e),[v(10,[M(Gr),Jr]),X[1],e,!0,0]}break;case 11:var Hr=o[0],Kr=Hr[1],Qr=Hr[0],Rr=0;if("number"==typeof t||11!==t.tag)Rr=1;else{var Ur=t[0],Vr=Ur[2];if(void 0!==Vr){var Xr=Vr,Yr=Xr[0];if(R(Kr,Ur[1])&&R(Qr,Ur[0])){var Zr=r?ur(f,[Yr],e):$(Yr);return[t,Xr[1],Zr,!1,0]}Rr=1}else Rr=1}if(1===Rr){var $r,rn=a(Kr,Qr);if("number"==typeof t||11!==t.tag)$r=[!0,void 0];else{var nn=t[0][2];$r=void 0!==nn?[!1,nr(nn[0])]:[!0,void 0]}var tn=y(r,e,n,$r[1],nr(rn)),en=tn[2];return[v(11,[[Qr,Kr,[tr(tn[0],en),en]]]),en,tn[1],$r[0],tn[3]]}break;case 12:var un;un="number"==typeof t||12!==t.tag?[!0,void 0]:[!1,t[0][0]];var on=y(r,e,n,un[1],o[0][0]),an=on[2];return[v(12,[[on[0],M(an)]]),an,on[1],un[0],on[3]]}}var cn,fn,vn,sn},O=function(r,n,t,e,u,i){var o=void 0!==t?t:function(r){var n=r.length;return n>=3&&"s"===r[0]&&"v"===r[1]&&"g"===r[2]&&(3===n||"."===r[3]||"#"===r[3])}(e)?"http://www.w3.org/2000/svg":void 0,a=function(r,n){var t=n.indexOf("#"),e=n.indexOf("."),u=t>0?t:n.length,i=e>0?e:n.length,o=t>=0||e>=0?n.slice(0,Math.min(u,i)):n,a=void 0!==r?document.createElementNS(r,o):document.createElement(o);return u<i&&W(a,"id",n.slice(u+1|0,i)),e>0&&W(a,"class",n.slice(i+1|0).replace(/\./g," ")),a}(o,e);er(r,a,n);var c=or(void 0,void 0,void 0,void 0,a,o)(void 0,u);return[a,o,e,c[0],i,c[2]]},V=function(r,n,t,e,u){var i=U(41);if(void 0!==i){var o=i,c=or(void 0,!0,r,void 0,n,t)(e,e),f=c[3],v=c[2],s=c[0],d={capture:!0,passive:!0,once:!1},l=[void 0],g=function(r){var e=r.propertyName;return function(r,n){for(;;){var t=n;if(!t)return!1;if(a(r,t[0]))return!0;n=t[1]}}(function(r){return void 0===r||e===r},f)?K(l[0],function(r){return n.removeEventListener(o,r,d),X[3](31)(v)?V(f,n,t,s,u):a(u,0)}):0};return n.addEventListener(o,g,d),l[0]=g,0}return a(u,0)},Y=function(r,n,t,e,u,i){var o=function(t){return _(r,n),a(i,0)},c=function(r){return X[3](31)(u)?V(void 0,n,t,e,o):o()};if(X[3](30)(u)){var f=n,v=e,s=c,d=[0],l=function(r){var n=d[0]-1|0;return 0===n?a(s,0):(d[0]=n,0)},g=function(r,n){return x(function(n,t){if("number"==typeof t||t.tag)return n;var e=t[0];return n+(X[3](31)(e[5])?(Y(r,e[0],e[1],e[3],e[5],l),1):X[3](30)(e[5])?g(e[0],e[3]):0)|0},0,n)};return d[0]=g(f,v),0}return c()};return function(r,n){return y(l,c,g,r,n)}}var ar=[function(r,n,t){return v(1,[r,n,t])},function(r){return v(3,[r])},function(r,n,t){return v(2,[[r,n,t,void 0]])},function(r,n){return r?n:0},[],function(r,n,t){return v(4,[r,n,t])},function(r){return v(6,[r,void 0])},function(r,n){return void 0!==r?a(n,N(r)):0},function(r,n,t,o,c){var v=i(Y.length,void 0),s=[[X[1],void 0]],d=[c],l=function(i){var c=function(r){return d[0]=f(o,d[0],c,r),l(0)},g=a(t,d[0]),h=c,p=g,m=s[0],y=m[0],w=or(void 0,void 0,void 0,void 0,n,r)(m[1],p),k=w[2];if(s[0]=[k,w[0]],y!==k){for(var E={capture:!0,passive:!0,once:!1},x=0,A=Y.length-1|0;x<=A;++x){var S=u(Y,x),L=X[3](S)(y);if(L!==X[3](S)(k)){var M=U(S);if(void 0!==M){var O=M;if(L){var P=u(v,x);void 0!==P&&n.removeEventListener(O,P,E)}else{var N=function(r){return function(t){var e=function(r){var t=r.parentElement;return null==t?0:t===n?[r,0]:[r,e(t)]},u=e(t.target),i=s[0][1];return ir(X[3](r),t,h,void 0!==i?i:H,b(u))}}(S);n.addEventListener(O,N,E),e(v,x,N)}}}}return 0}return 0};return l(0)},function(r){return Z(0,r)},function(r){return Z(1,r)},function(r){return Z(2,r)},function(r){return Z(3,r)},function(r){return Z(4,r)},function(r){return Z(5,r)},function(r){return Z(6,r)},function(r){return Z(7,r)},function(r){return Z(8,r)},function(r){return Z(9,r)},function(r){return Z(10,r)},function(r){return Z(11,r)},function(r){return Z(12,r)},function(r){return Z(13,r)},function(r){return Z(14,r)},function(r){return Z(15,r)},function(r){return Z(16,r)},function(r){return Z(17,r)},function(r){return Z(18,r)},function(r){return Z(19,r)},function(r){return Z(20,r)},function(r){return Z(21,r)},function(r){return Z(22,r)},function(r){return Z(23,r)},function(r){return Z(24,r)},function(r){return Z(25,r)},function(r){return Z(26,r)},function(r){return Z(27,r)},function(r){return Z(28,r)},function(r){return Z(29,r)},function(r){return Z(32,r)},function(r){return Z(33,r)},function(r){return Z(34,r)},function(r){return Z(35,r)},function(r){return Z(36,r)},function(r){return Z(37,r)},function(r){return Z(38,r)},function(r){return Z(39,r)},function(r){return Z(40,r)},function(r){return Z(41,r)},function(r){return Z(42,r)},function(r){return Z(43,r)},function(r){return Z(44,r)},function(r){return Z(45,r)},function(r){return Z(46,r)},function(r,n){return v(7,[r,n])},function(r,n){return v(8,[r,n,!1])},function(r,n,t){return v(9,[n,t,void 0!==r&&r])},function(r){return v(10,[void 0,r])},function(r,n){return v(11,[[n,r,void 0]])},function(r){return v(12,[[r,void 0]])}],cr=ar[0],fr=ar[1],vr=ar[3],sr=ar[5],dr=ar[6],lr=ar[8],gr=ar[12],hr=ar[14],pr=ar[27],br=ar[54],mr=ar[57],yr=ar[58];var wr,kr=(wr=function(r){return void 0!==r.contentEditable?r:null},[function(r){return null===(n=a(wr,r))?void 0:M(n);var n},function(r){return function(r){switch(r){case"false":return 1;case"inherit":return 2;case"true":return 0;default:return 3}}(r.contentEditable)},function(r,n){return r.contentEditable=function(r){switch(r){case 0:return"true";case 1:return"false";case 2:return"inherit";case 3:return""}}(n),0},function(r){return function(r){switch(r){case"ltr":return 0;case"rtl":return 1;default:return 2}}(r.dir)},function(r,n){return r.dir=function(r){switch(r){case 0:return"ltr";case 1:return"rtl";case 2:return""}}(n),0}]),Er=kr[0];function xr(r){var n=a(Er,r);if(void 0!==n)return N(n).value}var Ar=["",0,0];function Sr(r,n){return[r,n,!1,!1]}function Lr(r){return function(r,n,t){for(;;){var e=t,u=n;if(!e)return u;t=e[1],n=c(r,u,e[0])}}(function(r,n){var t=r[0];return[n[2]?t:t+1|0,r[1]+1|0]},[0,0],r[1])}function Mr(r,n){var t=function(n,t){return[r[0],function r(n,t){return t?[a(n,t[0]),r(n,t[1])]:0}(function(r){return r[0]===n?a(t,r):r},r[1]),r[2]]};return function(n){if("number"==typeof n)return[r[0],y(function(r){return!r[2]})(r[1]),r[2]];switch(0|n.tag){case 0:var e=r[2];return["",[Sr(e,n[0]),r[1]],e+1|0];case 1:var u=n[0];return[r[0],y(function(r){return r[0]!==u})(r[1]),r[2]];case 2:var i=n[1];return t(n[0],function(r){return[r[0],i,r[2],r[3]]});case 3:return[n[0],r[1],r[2]];case 4:return t(n[0],function(r){return[r[0],r[1],r[2],!0]});case 5:return t(n[0],function(r){return[r[0],r[1],!r[2],r[3]]})}}}function Or(r){return sr(void 0,"li",[vr(r[2],fr("completed")),vr(r[3],fr("editing")),sr(void 0,"div.view",[sr(void 0,"input.toggle",[cr(void 0,"type","checkbox"),vr(r[2],cr(void 0,"checked","")),hr(function(n){return v(5,[r[0]])})]),sr(void 0,"label",[mr(r[1])]),sr(void 0,"button.destroy",[hr(function(n){return v(1,[r[0]])})])])])}function Pr(r){var n=Lr(r),t=n[0];return[sr(void 0,"header.header",[sr(void 0,"h1",[mr("todos")]),sr(void 0,"input.new-todo",[cr(void 0,"placeholder","What needs to be done?"),cr(void 0,"autofocus",""),br("value",r[0]),gr(function(r){var n=xr(r.target);return v(3,[void 0!==n?n:""])}),pr(function(r){if("Enter"!==r.key);else{var n=xr(r.target);if(void 0!==n){var t=n.trim();return""!==t?v(0,[t]):void 0}}})])]),sr(void 0,"section.main",[sr(void 0,"input#toggle-all.toggle-all",[cr(void 0,"type","checkbox")]),sr(void 0,"label",[cr(void 0,"for","toggle-all"),mr("Mark all as complete")]),sr(void 0,"ul.todo-list",[dr(k(function(r){return[String(r[0]),yr(Or,r)]},function(r){if(!r)return[];for(var n=i(function(r,n){for(;;){var t=r;if(!n)return t;n=n[1],r=t+1|0}}(0,r),r[0]),t=1,e=r[1];;){var u=e,o=t;if(!u)return n;n[o]=u[0],e=u[1],t=o+1|0}}(b(r[1]))))])]),sr(void 0,"footer.footer",[sr(void 0,"span.todo-count",[sr(void 0,"strong",[mr(String(t)),mr(" "+(1===t?"item":"items")+" left")])]),vr((n[1]-t|0)>0,sr(void 0,"button.clear-completed",[mr("Clear completed"),hr(function(r){return 0})]))])]}var Nr=[Ar,function(r){return String(r[0])},Sr,Lr,Mr,Or,Pr],Cr=document.getElementById("container");return null!=Cr&&lr(void 0,Cr,Pr,Mr,Ar),r.valueOfEventTarget=xr,r.Todo=Nr,r}({});
  