new function(){function x(b,d,p,f,k,n){return{tag:b,key:d,attrs:p,children:f,text:k,dom:n,domSize:void 0,state:{},events:void 0,instance:void 0,skip:!1}}x.normalize=function(b){return b instanceof Array?x("[",void 0,void 0,x.normalizeChildren(b),void 0,void 0):null!=b&&"object"!==typeof b?x("#",void 0,void 0,b,void 0,void 0):b};x.normalizeChildren=function(b){for(var d=0;d=q&&y>=B;){var h=a[q],v=e[B];if(h===v)q++,B++;else if(null!=h&&null!=v&&h.key===v.key)q++,B++,n(c,h,v,g,t(a,q,b),r,m),r&&h.tag===v.tag&&w(c,l(h),b);else if(h=a[f],h===v)f--,B++;else if(null!=h&&null!=v&&h.key===v.key)n(c,h,v,g,t(a,f+1,b),r,m),B=q&&y>=B;){h=a[f];v=e[y];if(h===v)f--;else if(null!=h&&null!=v&&h.key===v.key)n(c,h,v,g,t(a,f+1,b),r,m),r&&h.tag===v.tag&&w(c,l(h),b), null!=h.dom&&(b=h.dom),f--;else{if(!k){k=a;var h=f,z={},x;for(x=0;xb.indexOf("?")?"?":"&";b+=m+f}return b}function k(b){try{return""!==b?JSON.parse(b):null}catch(d){throw Error(b);}}function n(b){return b.responseText}function l(b,d){if("function"===typeof b)if(d instanceof Array)for(var f=0;fm.status)w(l(d.type, b));else{var f=Error(m.responseText),h;for(h in b)f[h]=b[h];w.error(f)}}catch(k){w.error(k)}"function"===typeof u&&u()}};h?m.send(d.data):m.send();return w},jsonp:function(d){var k=t();void 0!==d.initialValue&&k(d.initialValue);var h=d.callbackName||"_mithril_"+Math.round(1E16*Math.random())+"_"+w++,m=b.document.createElement("script");b[h]=function(f){m.parentNode.removeChild(m);k(l(d.type,f));"function"===typeof u&&u();delete b[h]};m.onerror=function(){m.parentNode.removeChild(m);k.error(Error("JSONP request failed")); "function"===typeof u&&u();delete b[h]};null==d.data&&(d.data={});d.url=p(d.url,d.data);d.data[d.callbackKey||"callback"]=h;m.src=f(d.url,d.data);b.document.documentElement.appendChild(m);return k},setCompletionCallback:function(b){u=b}}}(window,console.error.bind(console)),D=function(){var b=[];return{subscribe:b.push.bind(b),unsubscribe:function(d){d=b.indexOf(d);-1