neft
Version:
JavaScript. Everywhere.
74 lines (72 loc) • 453 kB
JavaScript
var Neft, setImmediate;
setImmediate = (function() {
var callAll, queue, ready, running, update;
ready = false;
running = false;
queue = [];
callAll = function() {
var args, func, i, j, length, ref;
running = false;
length = queue.length;
for (i = j = 0, ref = length; j < ref; i = j += 2) {
func = queue.shift();
args = queue.shift();
func.apply(null, args);
}
};
update = (function() {
var Mutation, calls, element, observer;
if (!(Mutation = window.MutationObserver || window.WebKitMutationObserver)) {
return;
}
calls = 0;
observer = new Mutation(callAll);
element = document.createTextNode('');
observer.observe(element, {
characterData: true
});
return function() {
var ref;
return element.data = (ref = ++calls % 2) != null ? ref : {
"a": "b"
};
};
})();
update || (update = (function() {
var channel;
if ((typeof window !== "undefined" && window !== null ? window.setImmediate : void 0) || (typeof MessageChannel === "undefined" || MessageChannel === null)) {
return;
}
channel = new MessageChannel();
channel.port1.onmessage = callAll;
return function() {
return channel.port2.postMessage(0);
};
})());
update || (update = (function() {
return function() {
return setTimeout(callAll, 0);
};
})());
setTimeout(function() {
ready = true;
return callAll();
});
return function(func) {
var argc, args, i, j, ref;
argc = arguments.length;
if (argc > 1) {
args = new Array(argc - 1);
for (i = j = 1, ref = argc; j < ref; i = j += 1) {
args[i - 1] = arguments[i];
}
}
queue.push(func, args);
if (ready && !running) {
update();
running = true;
}
};
})();
Neft = (function(){function t(t,i){var e=t[i];return e in n?n[e]:"undefined"!=typeof Neft&&Neft[i]||"function"==typeof require&&require(i)||function(){throw new Error("Cannot find module '"+i+"'")}()}var n={a:{},b:{},c:{},d:{},e:{},f:{},g:{},h:{},i:{},j:{},k:{},l:{},m:{},n:{},o:{},p:{},q:{},r:{},s:{},t:{},u:{},v:{},w:{},x:{},y:{},z:{},A:{},B:{},C:{},D:{},E:{},F:{},G:{},H:{},I:{},J:{},K:{},L:{},M:{},N:{},O:{},P:{},Q:{},R:{},S:{},T:{},U:{},V:{},W:{},X:{},Y:{},Z:{},_:{},aa:{},ba:{},ca:{},da:{},ea:{},fa:{},ga:{},ha:{},ia:{},ja:{},ka:{},la:{},ma:{},na:{},oa:{},pa:{},qa:{},ra:{},sa:{},ta:{},ua:{},va:{},wa:{},xa:{},ya:{},za:{},Aa:{},Ba:{},Ca:{},Da:{},Ea:{},Fa:{},Ga:{},Ha:{},Ia:{},Ja:{},Ka:{},La:{},Ma:{},Na:{},Oa:{},Pa:{},Qa:{},Ra:{},Sa:{},Ta:{},Ua:{},Va:{},Wa:{},Xa:{},Ya:{},Za:{},$a:{},_a:{},ab:{},bb:{},cb:{},db:{},eb:{},fb:{},gb:{},hb:{},ib:{},jb:{},kb:{},lb:{},mb:{},nb:{},ob:{},pb:{},qb:{},rb:{},sb:{},tb:{},ub:{},vb:{},wb:{},xb:{},yb:{},zb:{},Ab:{},Bb:{},Cb:{},Db:{},Eb:{},Fb:{},Gb:{},Hb:{},Ib:{},Jb:{},Kb:{},Lb:{},Mb:{},Nb:{}};n["a"]=function(){var i={exports:n["a"]},e=(t.Ob(null,{}),i.exports),r=function(t,n){function i(){this.Pb=t}for(var e in n)s.Qb(n,e)&&(t[e]=n[e]);return i.Rb=n.Rb,t.Rb=new i,t.Sb=n.Rb,t},s={}.Tb;return i.exports=function(t){var n,i,s;return i=t.Ub=function(t,r,o){var u,h,c,f,l,a,b;switch(null==r&&(r=""),typeof r){case"object":r=e.Vb(r);break;case"string":r=r.split(".");break;default:throw new TypeError}for(h=c=0,a=r.Wb;a>c;h=++c){if(l=r[h],!l.Wb&&h)throw new ReferenceError("utils.get(): empty properties are not supported");if(s(l)){if(l=l.substring(0,l.indexOf("[]")),r=r.splice(h),r[0]=r[0].substring(l.Wb+2),r[0].Wb||r.Xb(),null==o&&(o=new n),l.Wb&&(t=t[l]),"undefined"==typeof t)return;for(f=0,b=t.Wb;b>f;f++)u=t[f],i(u,r.Yb("."),o);if(!o.Wb)return;return o}if(l.Wb&&(t=t[l]),"object"!=typeof t&&"function"!=typeof t){h!==r.Wb-1&&(t=void 0);break}}return o&&"undefined"!=typeof t&&o.Zb(t),t},i.$b=n=function(t){function n(){n.Sb.Pb._b(this,arguments)}return r(n,t),n}(Array),s=t.ac=function(t){return/\[\]$/.bc(t)}},i.exports}(),n["b"]=function(){var i,e={exports:n["b"]},r=(t.Ob(null,{}),e.exports);return i=Array.cc,e.exports=function(t){return t.dc=function(){var t,n;return n=[Array.Rb,Object.Rb],t=[Array,Object],function(e,s){var o,u,h,c,f,l,a,b,d,v,x,p,R,g,m;for(null==s&&(s={}),v=null!=s.ec?s.ec:s.ec=!1,x=null!=s.fc?s.fc:s.fc=!1,b=null!=s.gc?s.gc:s.gc=!1,d=s.hc=!x&&b,a=[],c=[],g={},b&&(o={}),x&&(R={}),u=function(t){var i,e,s,o,h,f;s=a.Zb(t),c.Zb(o=[]);for(e in t)f=t[e],t.Tb(e)&&f&&"object"==typeof f&&(v&&r.ic(t,e)?o.Zb(null):(~(i=a.indexOf(f))||(i=u(f)),o.Zb(i)));return x&&(h=getPrototypeOf(t))&&(~n.indexOf(h)?i=null:~(i=a.indexOf(h))||(i=u(h)),o.Zb(i)),s-1},p=function(n,e){var r,s,u,h,f,l,a,p,m,y,w;y=i(n)?[]:{},l=c[e],p=0,a=null;for(h in n)w=n[h],n.Tb(h)&&(y[h]=w,u=!1,w&&"object"==typeof w&&(null==a&&(a=[]),f=w=l[p++],null!==w&&(u=!0,a.Zb(h))),v&&(s=getObjOwnPropDesc(n,h),u&&(s.jc=w),w=s),y[h]=w);return x&&getPrototypeOf(n)&&(m=l[p++],null!==m&&(R[e]=m)),b&&(r=n.Pb)&&(d||n.Tb("constructor"))&&(~t.indexOf(r)||(o[e]=r)),a&&(g[e]=a),y},u(e),h=f=0,l=a.Wb;l>f;h=++f)m=a[h],a[h]=p(m,h);return{kc:s,lc:a,mc:g,fc:R,gc:o}}}(),t.nc=function(){var n;return n={jc:null},function(i){var e,r,s,o,u,h,c,f,l,a,b,d,v,x,p,R,g,m,y,w,C,E,W,S,A,F,P;if(p=i.kc,x=i.lc,S=i.mc,w=i.fc,e=i.gc,m=p.ec,y=p.fc,R=p.gc,g=p.hc,F=[],m)for(d in S)for(A=S[d],i=x[d],s=0,c=A.Wb;c>s;s++)C=A[s],F.Zb(i[C].jc),i[C].jc=x[i[C].jc];else for(d in S)for(A=S[d],i=x[d],o=0,f=A.Wb;f>o;o++)C=A[o],F.Zb(i[C]),i[C]=x[i[C]];if(m)for(h=0,l=x.Wb;l>h;h++){i=x[h];for(u in i)P=i[u],i.Tb(u)&&defObjProp(i,u,P)}for(d in w)E=w[d],x[d]=t.oc(x[d],x[E]);if(g)for(d in e)r=e[d],v=x[d]=t.oc(x[d],r.Rb),"function"==typeof r.fromAssembled&&r.fromAssembled(v);else if(R)for(d in e)r=e[d],n.jc=r,defObjProp(x[d],"constructor",n);W=0;for(d in S)for(A=S[d],i=x[d],b=0,a=A.Wb;a>b;b++)C=A[b],i[C]=x[F[W++]];return x[0]}}()},e.exports}(),n["c"]=function(){var i,e,r,s,o,u,h,c={exports:n["c"]},r=(t.Ob(null,{}),c.exports),f=[].slice;return h=null,r=c.exports,u=Array.Rb.Xb,o=Array.cc,i=function(){},s=function(){var t,n;return t=function(t,n,i,e){var r,s,o;return r=0,s=t.Wb,(o=function(){return r===s?i.Qb(e):(r++,n.Qb(e,t[r-1],r-1,t,o))})()},n=function(t,n,i,e){var r,s,o,u;return s=Object.pc(t),r=0,o=s.Wb,(u=function(){var h;return r===o?i.Qb(e):(h=s[r],n.Qb(e,h,t[h],t,u),r++)})()},function(i,e,r,s){var u;return u=o(i)?t:n,u(i,e,r,s),null}}(),e=function(){function t(){this.qc=[],this.Wb=0}return t.Rb.rc=function(t,n,i){return this.qc.Zb(t,n,i),this.Wb++,this},t.Rb.sc=function(t,n){var i,e,r,s,o,u,c,f,l,a,b;if("function"==typeof t&&null==n&&(n=t,t=null),!this.qc.Wb)return n();if(this.Wb--,o=this.qc.Xb(),s=this.qc.Xb(),u=this.qc.Xb(),"string"==typeof o&&(o=h.Ub(s,o)),"function"!=typeof o)throw new TypeError("ASync Stack::callNext(): function to call is not a function");if(c=o.Wb||Math.tc((null!=t?t.Wb:void 0)||0,(null!=u?u.Wb:void 0)||0)+1,b=null,r=!1,e=function(){return r=!0,n._b(this,arguments)},u=Object.uc(u||null),u[c-1]=e,(void 0===u.Wb||u.Wb<c)&&(u.Wb=c),t)for(f=l=0,a=t.Wb;a>l;f=++l)i=t[f],f!==c-1&&void 0===u[f]&&(u[f]=i);return b=h.vc(o,s,u),b&&e(b),null},t.Rb.wc=function(t,n){var e,r;if(null==t&&(t=i),null==n&&(n=null),"function"!=typeof t)throw new TypeError("ASync runAll(): passed callback is not a function");return this.qc.Wb?(r=function(i){return function(){var r,s;return s=arguments[0],r=2<=arguments.Wb?f.Qb(arguments,1):[],null!=s?t.Qb(n,s):i.qc.Wb?e(r):t._b(n,arguments)}}(this),e=function(t){return function(n){return t.sc(n,r)}}(this),e(),null):t.Qb(n,null)},t.Rb.xc=function(t,n){var e,r,s,o;if(null==t&&(t=i),null==n&&(n=null),r=s=this.qc.Wb/3,e=0,!r)return t.Qb(n);for(o=function(i){return++e,e>r?void 0:i?(e=r,t.Qb(n,i)):e===r?t.Qb(n):void 0};s--;)this.sc(o);return null},t}(),c.exports=function(){return h=arguments[0],h.yc={zc:s,Ac:e}},c.exports}(),n["d"]=function(){var i,e,r,s,o,u,h,c,f,l,a,b,d,v,x,p,R,g,m,y,w,C,E,W={exports:n["d"]},S=t.Ob(null,{Bc:"src/utils/namespace.litcoffee",Cc:"src/utils/stringifying.litcoffee",Dc:"src/utils/async.litcoffee"}),A=W.exports;switch(E=Object.Rb.Ec,o=Function.Rb.Ec,a=Array.cc,y=Array.Rb,C=y.Xb,g=y.Fc,r=Object.uc,c=Object.Gc,h=Object.Hc,R=Object.pc,l=Object.Tb,u=Object.Ic,s=Object.Jc,m=Math.Kc,S("./namespace")(A),S("./stringifying")(A),S("./async")(A),A.Lc=A.Mc=A.Nc=A.Oc=A.Pc=A.Qc=A.Rc=!1,!0){case null!=("undefined"!=typeof Qt&&null!==Qt?Qt.include:void 0):A.Nc=A.Pc=!0;break;case"undefined"!=typeof android&&null!==android:A.Nc=A.Qc=!0;break;case"undefined"!=typeof ios&&null!==ios:A.Nc=A.Rc=!0;break;case null!=("undefined"!=typeof window&&null!==window?window.Sc:void 0):A.Nc=A.Oc=!0;break;case"undefined"!=typeof process&&null!==process&&"[object process]"===Object.Rb.Ec.Qb(process):A.Lc=A.Mc=!0}return A.Tc=function(){},A.Uc=Object.Uc||function(t,n){return 0===t&&0===n?1/t===1/n:t!==t?n!==n:t===n},A.Vc=function(t){return"number"==typeof t&&isFinite(t)},A.Wc=function(t){return"number"==typeof t&&isFinite(t)&&t>-9007199254740992&&9007199254740992>t&&Math.floor(t)===t},v=A.Xc=function(t){return null===t||"string"==typeof t||"number"==typeof t||"boolean"==typeof t||"undefined"==typeof t},d=A.Yc=function(t){return null!==t&&"object"==typeof t},A.Zc=function(t){var n;return d(t)?(n=c(t),n?n===Object.Rb&&!c(n):!0):!1},A.$c=function(t){return"[object Arguments]"===E.Qb(t)},x=A._c=function(t,n){var i,e;for(i in n)e=n[i],n.Tb(i)&&(t[i]=e);return t},A.ad=function(t){var n,i,e,r,s,o;for(n=i=1,s=arguments.Wb;s>i;n=i+=1)if(null!=(r=arguments[n]))for(e in r)o=r[e],r.Tb(e)&&(t[e]=o);return t},p=A.bd=function(t,n){var i,e,r;for(i in n)r=n[i],l.Qb(n,i)&&(e=t[i],!r||"object"!=typeof r||a(r)||!e||"object"!=typeof e||a(e)?t[i]=r:p(e,r));return t},A.cd=function(t,n){var i,e;for(i in n)e=n[i],l.Qb(n,i)&&i in t&&!l.Qb(t,i)&&(t[i]=e);return t},A.dd=function(t,n){var i;a(t)?(i=t.indexOf(n),-1!==i&&(0===i?t.Xb():i===t.Wb-1?t.Fc():t.splice(i,1))):delete t[n]},A.ed=function(t,n){var i;i=t.indexOf(n),-1!==i&&(t[i]=t[t.Wb-1],t.Fc())},A.fd=function(t,n){for(var i;t&&!i;)i=u(t,n),t=c(t);return i},A.ic=function(){var t;return Object.Rb.__lookupGetter__&&(t=Object.Rb.ic),function(t,n){var i,e;return(i=A.fd(t,n))?(null!=(e=i.Ub)?e.trueGetter:void 0)||i.Ub:void 0}}(),A.gd=function(){return Object.Rb.__lookupSetter__?Function.Qb.Ob(Object.Rb.__lookupSetter__):function(t,n){var i;return i=A.fd(t,n),null!=i?i.hd:void 0}}(),s(A,"WRITABLE",{jc:1}),s(A,"ENUMERABLE",{jc:2}),s(A,"CONFIGURABLE",{jc:4}),A.Jc=function(){var t,n,i,e,r,o,u;return i=A.id,n=A.jd,t=A.kd,r={ld:!0,md:!0},u=A._c({nd:!0,jc:null},r),e=A._c({Ub:void 0,hd:void 0},r),o="undefined"!=typeof navigator&&null!==navigator?/^((?!chrome).)*safari/i.bc(navigator.od):!1,function(r,h,c,f,l){var a,b;return void 0===l?(b=u,u.jc=f,u.nd=c&i):(o&&f&&(a=f,f=function(){return this!==r&&this.Tb(h)?this[h]:a.Qb(this)}),b=e,e.Ub="function"==typeof f?f:void 0,e.hd="function"==typeof l?l:void 0),b.ld=c&n,b.md=c&t,s(r,h,b),r}}(),A.pd=function(t,n,i,e){var r,s,o;if(!(r=A.fd(t,n)))throw new Error("utils.overrideProperty object must has the given property");if(!r.md)throw new Error("utils.overrideProperty the given property is not configurable");return s=A.kd,r.nd&&(s|=A.id),r.ld&&(s|=A.jd),void 0!==i&&void 0!==e?(null!=r.Ub&&(i="function"==typeof i?i(r.Ub):r.Ub),null!=r.hd&&(e="function"==typeof e?e(r.hd):r.hd)):typeof i==(o=typeof r.jc)&&"function"===o&&(i=i(r.jc)),A.Jc(t,n,s,i,e)},i=A.Vb=function(t){var n,i,e,s,o,u;if(a(t))return t.slice();if(d(t)){for(s=c(t),u=s===Object.Rb?{}:r(s),o=R(t),n=0,e=o.Wb;e>n;n++)i=o[n],u[i]=t[i];return u}return t},e=A.qd=function(t){var n,r,s,o,u;if(u=i(t),d(u))for(o=R(u),n=0,s=o.Wb;s>n;n++)r=o[n],u[r]=e(u[r]);return u},A.rd=function(t){var n;if("string"==typeof t)return""===t;if(a(t))return!t.Wb;for(n in t)return!1;return!0},A.sd=function(t){return t[t.Wb-1]},A.td=function(t){var n,i,e,r,s,o,u;if(a(t))for(n=i=0,o=t.Wb;o>i;n=i+=1)t.Fc();else for(u=R(t),e=0,s=u.Wb;s>e;e++)r=u[e],delete t[r];return t},w=A.oc=function(){var t;return"function"==typeof Object.oc?Object.oc:(t={},t.ud={vd:1},1===t.vd?function(t,n){return t.ud=n,t}:function(t,n){var i;return"object"==typeof t?(i=r(n),x(i,t)):x(t,n),i})}(),f=A.wd=function(t,n){var i,e;if("string"==typeof t)return!!~t.indexOf(n);if(a(t))return!!~Array.Rb.indexOf.Qb(t,n);for(i in t)if(e=t[i],l.Qb(t,i)&&e===n)return!0;return!1},A.xd=function(t,n,i){var e,r,s,o,u,h;for(o=R(t),null==i&&(i=o),e=r=0,u=o.Wb;u>r;e=++r)s=o[e],h=n?n(s,t[s],t):t[s],i[e]=h;return i},A.yd=function(t,n,i,e){var r,s,o,u,h,c;for(null==e&&(e={}),s=o=0,h=t.Wb;h>o;s=++o)r=t[s],u=n?n(s,r,t):s,c=i?i(s,r,t):r,null!=u&&(e[u]=c);return e},A.zd=function(t){return t.Wb?t[0].toUpperCase()+t.slice(1):""},A.Ad=function(){var t,n;return n=/'|"/g,t="\\$&",function(i){return i.Wb?i.Bd(n,t):i}}(),A.Cd=function(t){var n;for(null==t&&(t=8),n="";;)if(n+=m().Ec(16).slice(2),n.Wb>=t)break;return n.Wb!==t&&(n=n.slice(0,t)),n},A.Dd=function(t,n,i,e){var r,s;try{return t._b(n,i)}catch(s){return r=s,"function"==typeof e?e(r):void 0===e?r:e}},A.vc=function(t,n,i){var e,r;try{t._b(n,i)}catch(r){return e=r}},A.Ed=function(t,n){switch(t.Wb){case 0:return function(){return t.Qb(n)};case 1:return function(i){return t.Qb(n,i)};case 2:return function(i,e){return t.Qb(n,i,e)};case 3:return function(i,e,r){return t.Qb(n,i,e,r)};case 4:return function(i,e,r,s){return t.Qb(n,i,e,r,s)};case 5:return function(i,e,r,s,o){return t.Qb(n,i,e,r,s,o)};case 6:return function(i,e,r,s,o,u){return t.Qb(n,i,e,r,s,o,u)};case 7:return function(i,e,r,s,o,u,h){return t.Qb(n,i,e,r,s,o,u,h)};default:return function(){return t._b(n,arguments)}}},A.Fd=function(t){var n;return n={Gd:t.Gd,Hd:t.Hd},A._c(n,t),n},A.Id=function(t){var n;return n=a(t)?[]:{},x(n,t),n},b=A.Jd=function(){var t,n,i;return t=function(t,n){return t===n},n=function(t,n,i,e){var r,s,o,u,h;if(c(t)!==c(n))return!1;if(t.Wb!==n.Wb)return!1;if(0>=e)return!0;for(o=u=0,h=t.Wb;h>u;o=++u)if(r=t[o],s=n[o],s&&"object"==typeof s){if(!b(r,s,i,e-1))return!1}else if(!i(r,s))return!1;return!0},i=function(t,n,i,e){var r,s;if(c(t)!==c(n))return!1;for(r in t)if(s=t[r],t.Tb(r)&&!n.Tb(r))return!1;for(r in n)if(s=n[r],n.Tb(r)&&!t.Tb(r))return!1;if(0>=e)return!0;for(r in t)if(s=t[r],t.Tb(r))if(s&&"object"==typeof s){if(!b(s,n[r],i,e-1))return!1}else if(!i(s,n[r]))return!1;return!0},function(e,r,s,o){return null==s&&(s=t),null==o&&(o=1/0),"number"==typeof s&&(o=s,s=t),0>o?s(e,r):a(e)&&a(r)?n(e,r,s,o):d(e)&&d(r)?i(e,r,s,o):s(e,r)}}(),W.exports}(),n["e"]=function(){var i,e={exports:n["e"]},r=t.Ob(null,{Kd:"src/utils/index.litcoffee"});e.exports,{}.Tb;return i=r("src/utils"),e.exports}(),n["f"]=function(){var i,e,r={exports:n["f"]},s=(t.Ob(null,{}),r.exports,function(t,n){function i(){this.Pb=t}for(var e in n)o.Qb(n,e)&&(t[e]=n[e]);return i.Rb=n.Rb,t.Rb=new i,t.Sb=n.Rb,t}),o={}.Tb;return e=function(){var t;return(null!=(t=window.Ld)?t.Md:void 0)?window.Ld:Date}(),i=window.console.Nd,r.exports=function(){return/chrome|safari/i.bc(navigator.od)||"undefined"!=typeof webkit&&null!==webkit?function(t){var n;return n=function(t){function n(){return n.Sb.Pb._b(this,arguments)}return s(n,t),n.Od=function(){var t,n;return n=["",""],t=function(t,i,e){return null==i&&(i="normal"),n[0]="%c"+e,n[1]="color: "+t+"; font-weight: "+i,n},{Pd:t.Ob(null,"black",null),Qd:t.Ob(null,"green",null),Rd:t.Ob(null,"gray",null),Sd:t.Ob(null,"blue",null),Td:t.Ob(null,"orange",null),Ud:t.Ob(null,"red",null),Vd:t.Ob(null,"black","bold")}}(),n.Wd=e.Md.Ob(e),n.Xd=function(t){return n.Wd()-t},n.Rb.Yd=function(t){return i._b(window.console,t)},n.Rb.Zd=function(t){return this.Yd(t)},n}(t)}:{}}(),r.exports}(),n["g"]=function(){var i,e,r,s,o,u,h,c,f={exports:n["g"]},l=t.Ob(null,{Kd:"src/utils/index.litcoffee",$d:"src/assert/index.litcoffee",_d:"src/log/impls/browser/index.coffee"}),a=(f.exports,[].slice);return c=l("src/utils"),r=Function.Ob,u=Array.cc,h=Array.Rb.ae,s=function(t){var n,i,e,r;for(r="",i=0,e=t.Wb;e>i;i++)n=t[i],r+=n+" → ";return r.substring(0,r.Wb-3)},i=function(){function t(t,n){var i,s,o,u,h,f,l,a;if(this.be=n,this.ce=t,t)for(i=c.Vb(t),i.ae(this),l=e.de,o=0,h=l.Wb;h>o;o++)f=l[o],this[f]=r._b(this[f],i);for(u in this)a=this[u],this[u]=a;return"function"==typeof this.Nd?(s=function(t){return function(){return!0}}(this),c._c(s,this)):void 0}var n,i,o,u,f,l;for(t.de=["log","info","warn","error","time","ok"],t.ee=50,t.Od={Pd:function(t){return"LOG: "+t},Qd:function(t){return"OK: "+t},Rd:function(t){return""+t},Sd:function(t){return"INFO: "+t},Td:function(t){return"WARN: "+t},Ud:function(t){return"ERROR: "+t}},t.Wd=Date.Md,t.Xd=function(n){return t.Wd()-n},t.fe=new Array(t.ee),l=t.fe,i=u=0,f=l.Wb;f>u;i=++u)n=l[i],t.fe[i]=[0,""];return t.Rb.Yd=("undefined"!=typeof console&&null!==console?console.Nd.Ob(console):void 0)||function(){},t.Rb.Zd=("undefined"!=typeof console&&null!==console?console.ge.Ob(console):void 0)||function(){},i=0,t.Rb.he=1<<i++,t.Rb.ie=1<<i++,t.Rb.je=1<<i++,t.Rb.ke=1<<i++,t.Rb.le=1<<i++,t.Rb.me=1<<i++,t.Rb.ne=(1<<i++)-1,t.Rb.oe=t.Rb.ne,t.Rb.Nd=function(){o(this,this.he)&&this.Yd(e.Od.Pd(s(arguments)))},t.Rb.pe=function(){o(this,this.ie)&&this.Yd(e.Od.Sd(s(arguments)))},t.Rb.qe=function(){o(this,this.je)&&this.Yd(e.Od.Qd(s(arguments)))},t.Rb.re=function(){o(this,this.ke)&&this.Yd(e.Od.Td(s(arguments)))},t.Rb.ge=function(){o(this,this.le)&&this.Zd(e.Od.Ud(s(arguments)))},t.Rb.Wd=function(){var t,n,r,u,h;if(!o(this,this.me))return-1;for(u=e.fe,i=n=0,r=u.Wb;r>n;i=++n)if(h=u[i],!h[0]){t=i,u[i][0]=e.Wd(),u[i][1]=s(arguments);break}return t},t.Rb.se=function(t){var n,i,r;-1!==t&&(r=e.fe[t],n=e.Xd(r[0]),n=n.toFixed(2),i=r[1]+": "+n+" ms",this.Yd(e.Od.Rd(i)),r[0]=0)},t.Rb.te=function(){var t;return t=1<=arguments.Wb?a.Qb(arguments,0):[],this.ce&&h._b(t,this.ce),new e(t,this)},t}(),o=function(){switch(!0){case c.Lc:return l("./impls/node/index.coffee");case c.Oc:return l("./impls/browser/index.coffee")}}(),e="function"==typeof o?o(i):i,f.exports=new e,f.exports}(),n["h"]=function(){var i,e={exports:n["h"]},r=t.Ob(null,{Kd:"src/utils/index.litcoffee",$d:"src/assert/index.litcoffee"});e.exports;return i=r("src/utils"),e.exports=function(t){var n;return n=function(){function n(){this.ue={}}var e,r,s;return r=t.ve,e=function(){},s=t.we(),n.xe=function(t,n,i,e){var s;return t&&(s=t.ue[n])?r(t,s,i,e):void 0},n.ye=function(t,n,e){var r;return r=function(){var t,i;return i=this.ue,(t=i[n])||(t=i[n]=[null,null,null,null],"function"==typeof e&&e(this,n)),s.ze=this,s.Ae=t,s},i.Jc(t,n,null,r,null),r},n.Be=function(t,i,e){return n.ye(t.Rb,i,e)},n}()},e.exports}(),n["i"]=function(){var i,e,r,s,o,u={exports:n["i"]},h=t.Ob(null,{Kd:"src/utils/index.litcoffee",$d:"src/assert/index.litcoffee",Ce:"src/signal/emitter.coffee"}),c=u.exports;return o=h("src/utils"),i=c.De=1<<30,c.uc=function(t,n){var i;return i=s(t),void 0===n?i:t[n]=i},c.rd=function(t){var n,i,e,r;for(r=t.Ae,i=0,e=r.Wb;e>i;i+=2)if(n=r[i],null!==n)return!1;return!0},r=function(t,n,e,r){var s,o,u,h,c,f,l;for(h=0,c=n.Wb,f=0,s=!1;c>h;){if(u=n[h],null===u)s=!0;else if(o=n[h+1],0>=f&&u.Qb(o||t,e,r)===i&&(f=i,s))break;h+=2}if(s)for(l=0;c>h;)u=n[h],null===u?l-=2:l>0&&(n[h+l]=u,n[h+l+1]=n[h+1],n[h]=null,n[h+1]=null),h+=2;return f},s=function(t){var n;return n=function(t,i){return n.Ee(t,i)},n.ze=t,n.Ae=[],o.oc(n,e),n},e={Fe:function(t,n){return r(this.ze,this.Ae,t,n)},Ee:function(t,n){var i,e,r;for(null==n&&(n=null),e=this.Ae,i=r=e.Wb;(i-=2)>=0&&null===e[i];);i+2===r?e.Zb(t,n):(e[i+2]=t,e[i+3]=n)},Ge:function(t,n){var i,e;for(null==n&&(n=null),e=this.Ae,i=0;;){if(i=e.indexOf(t,i),-1===i||e[i+1]===n)break;i+=2}e[i]=null,e[i+1]=null},He:function(){var t,n,i,e,r;for(r=this.Ae,n=i=0,e=r.Wb;e>i;n=++i)t=r[n],r[n]=null}},c.Ie=h("./emitter")({uc:c.uc,we:s,ve:r}),u.exports}(),n["j"]=function(){var i,e,r,s={exports:n["j"]},o=t.Ob(null,{Kd:"src/utils/index.litcoffee",$d:"src/assert/index.litcoffee",Je:"src/signal/index.litcoffee"}),u=(s.exports,function(t,n){function i(){this.Pb=t}for(var e in n)h.Qb(n,e)&&(t[e]=n[e]);return i.Rb=n.Rb,t.Rb=new i,t.Sb=n.Rb,t}),h={}.Tb;return r=o("src/utils"),e=o("src/signal"),s.exports=i=function(t){function n(t){var i,e,s,o;if(!(this instanceof n))return new n(t);if(n.Sb.Pb.Qb(this),this.Wb=0,r.Yc(t))for(i=e=0,s=t.Wb;s>e;i=++e)o=t[i],this[i]=o,this.Wb++}var i,s,o,h;for(u(n,t),n.Ke="List",n.Le="List",h=Object.Hc(Array.Rb),i=0,o=h.Wb;o>i;i++)s=h[i],"constructor"!==s&&(n.Rb[s]=Array.Rb[s]);return e.Ie.Be(n,"onChange"),e.Ie.Be(n,"onInsert"),e.Ie.Be(n,"onPop"),n.Rb.hd=function(t,n){var i;return i=this[t],i===n?n:(this[t]=n,this.onChange.Fe(i,t),n)},n.Rb.Me=function(t){return this.Zb(t),this.onInsert.Fe(t,this.Wb-1),t},n.Rb.Ne=function(t,n){return this.splice(t,0,n),this.onInsert.Fe(n,t),n},n.Rb.Oe=function(t){var n,i,e;for(n=0,i=t.Wb;i>n;n++)e=t[n],this.Me(e);return this},n.Rb.dd=function(t){var n;return n=this.Pe(t),-1!==n&&this.Fc(n),t},n.Rb.Fc=function(t){var n;return void 0===t&&(t=this.Wb-1),n=this[t],this.splice(t,1),this.onPop.Fe(n,t),n},n.Rb.td=function(){for(;this.Wb>0;)this.Fc()},n.Rb.Pe=function(t){return this.indexOf(t)},n.Rb.wd=function(t){return-1!==this.Pe(t)},n.Rb.Qe=function(){var t,n,i,e,r;for(t=new Array(this.Wb),n=i=0,e=this.Wb;e>i;n=++i)r=this[n],t[n]=r;return t},n}(e.Ie),s.exports}(),n["k"]=function(){var i,e,r,s={exports:n["k"]},o=t.Ob(null,{Kd:"src/utils/index.litcoffee",$d:"src/assert/index.litcoffee",Je:"src/signal/index.litcoffee"}),u=(s.exports,function(t,n){function i(){this.Pb=t}for(var e in n)h.Qb(n,e)&&(t[e]=n[e]);return i.Rb=n.Rb,t.Rb=new i,t.Sb=n.Rb,t}),h={}.Tb;return r=o("src/utils"),e=o("src/signal"),s.exports=i=function(t){function n(t){return this instanceof n?(n.Sb.Pb.Qb(this),r.Jc(this,"_signals",r.id,this.ue),r.Jc(this,"_keys",r.id,null),r.Jc(this,"_values",r.id,null),r.Jc(this,"_items",r.id,null),r.Jc(this,"_dirty",r.id,i),void(r.Yc(t)&&r._c(this,t))):new n(t)}var i,s,o,h,c,f;return u(n,t),n.Ke="Dict",n.Le="Dict",o=1,c=2,s=4,i=(s<<1)-1,n.Re=function(t){return t=r.Dd(JSON.Se,JSON,[t],t),new n(t)},h=r.kd|r.id,r.Jc(n.Rb,"constructor",h,n),f=h,r.Jc(n.Rb,"length",f,function(){return this.pc().Wb},null),e.Ie.Be(n,"onChange"),r.Jc(n.Rb,"set",h,function(t,n){var e;return e=this[t],e===n?n:(this[t]=n,this.Te|=i,this.onChange.Fe(t,e),n)}),r.Jc(n.Rb,"has",h,function(t){return void 0!==this[t]}),r.Jc(n.Rb,"extend",h,function(t){var n,i;for(n in t)i=t[n],t.Tb(n)&&this.hd(n,i);return this}),r.Jc(n.Rb,"pop",h,function(t){var n;return n=this[t],delete this[t],this.Te|=i,this.onChange.Fe(t,n),n}),r.Jc(n.Rb,"clear",h,function(){var t,n;for(t in this)n=this[t],this.Fc(t)}),r.Jc(n.Rb,"keys",h,function(){var t,n,i,e;if(this.Te&o){this.Te^=o,t=null!=this.Ue?this.Ue:this.Ue=[],n=0;for(i in this)e=this[i],t[n]=i,n++;t.Wb=n}return this.Ue}),r.Jc(n.Rb,"values",h,function(){var t,n,i,e;if(this.Te&c){this.Te^=c,t=null!=this.Ve?this.Ve:this.Ve=[],n=0;for(i in this)e=this[i],t[n]=e,n++;t.Wb=n}return this.Ve}),r.Jc(n.Rb,"items",h,function(){var t,n,i,e;if(this.Te&s){t=null!=this.Ve?this.Ve:this.Ve=[],n=0;for(i in this)e=this[i],null==t[n]&&(t[n]=["",null]),t[n][0]=i,t[n][1]=e,n++;t.Wb=n}return this.Ve}),n}(e.Ie),s.exports}(),n["l"]=function(){var i,e={exports:n["l"]},r=t.Ob(null,{Kd:"src/utils/index.litcoffee"}),s=e.exports;return i=r("src/utils"),s.Ub=function(t,n){var e;return e=localStorage.We(t),e=i.Dd(JSON.Se,null,[e],e),n(null,e)},s.hd=function(t,n,e){return i.Yc(n)&&(n=i.Dd(JSON.Xe,null,[n],n)),localStorage.setItem(t,n),e(null)},s.dd=function(t,n){return localStorage.removeItem(t),n(null)},e.exports}(),n["m"]=function(){var i,e={exports:n["m"]},r=t.Ob(null,{Ye:"src/db/implementations/browser/localStorage.coffee"});e.exports;return i=r("./browser/localStorage"),e.exports=function(){return null!=window.localStorage?i:void 0}(),e.exports}(),n["n"]=function(){var i,e,r={exports:n["n"]},s=t.Ob(null,{Kd:"src/utils/index.litcoffee"}),o=r.exports;return e=s("src/utils"),i=Object.uc(null),o.Ub=function(t,n){var r;return r=i[t],r=e.qd(r),n(null,r)},o.hd=function(t,n,e){return i[t]=n,e(null)},o.dd=function(t,n){return i[t]=void 0,n(null)},r.exports}(),n["o"]=function(){var i,e={exports:n["o"]},r=t.Ob(null,{Kd:"src/utils/index.litcoffee",Ze:"src/db/implementations/browser.coffee",$e:"src/db/implementations/memory.coffee"});e.exports;return i=r("src/utils"),e.exports=function(){var t;return i.Oc&&(t=r("./implementations/browser")),t||(t=r("./implementations/memory")),t}(),e.exports}(),n["p"]=function(){var i,e,r,s,o,u,h,c,f,l,a,b={exports:n["p"]},d=t.Ob(null,{Kd:"src/utils/index.litcoffee",$d:"src/assert/index.litcoffee",_e:"src/list/index.litcoffee",af:"src/dict/index.litcoffee",bf:"src/db/implementation.coffee"}),v=b.exports,x=function(t,n){function i(){this.Pb=t}for(var e in n)p.Qb(n,e)&&(t[e]=n[e]);return i.Rb=n.Rb,t.Rb=new i,t.Sb=n.Rb,t},p={}.Tb;return f=d("src/utils"),o=d("src/list"),s=d("src/dict"),u=function(){},c=d("./implementation"),a=Object.uc(null),l=Object.uc(null),v.cf=1<<29,i=v.cf,v.Ub=function(t,n,i){return"function"==typeof n&&(i=n,n=0),n&v.cf&&null!=l[t]?i(null,l[t].df()):void c.Ub(t,function(s,o){var u;return null==s&&o?(n&v.cf&&(Array.cc(o)?o=new r(t,o,n):f.Yc(o)&&(o=new e(t,o,n)),o=(null!=(u=l[t])?u.df():void 0)||o),i(null,o)):i(s,o)})},v.hd=function(t,n,i){var e;null==i&&(i=u),null!=(e=l[t])&&e.Ge(),c.hd(t,n,i)},v.dd=function(t,n,i){var e;null==i&&(i=u),"function"==typeof n&&(i=n,n=null),null!=n?v.Ub(t,function(e,r){var s,o,u,h,a,b,d,v,x;if(null!=e)return i(e);if(!Array.cc(r))return i(new Error("'"+t+"' is not an array"));if(v=l[t])if(-1!==(o=v.ef().indexOf(n)))v.Fc(o);else for(x=v.ef(),s=h=0,b=x.Wb;b>h;s=++h)if(u=x[s],f.Jd(u,n)){v.Fc(s);break}if(-1!==(o=r.indexOf(n)))r.splice(o,1);else for(s=a=0,d=r.Wb;d>a;s=++a)if(u=r[s],f.Jd(u,n)){r.splice(s,1);break}return c.hd(t,r,i)}):(null!=(e=l[t])&&e.Ge(),c.dd(t,i))},v.Me=function(t,n,i){null==i&&(i=u),v.Ub(t,function(e,r){var s;return null!=e?i(e):(null==r&&(r=[]),Array.cc(r)?(null!=(s=l[t])&&s.Me(n),r.Zb(n),c.hd(t,r,i)):i(new Error("'"+t+"' is not an array")))})},h=function(t,n){return f.Jc(t,n,null,function(){return Object.Gc(this)[n]},function(t){return Object.Gc(this)[n]=t})},r=function(t){function n(t,e,r){n.Sb.Pb.Qb(this,e),this.ff=t,this.gf=0,l[t]=this,this.onChange(i),this.onInsert(i),this.onPop(i)}var i;return x(n,t),i=function(t){this.gf>0&&c.hd(this.ff,this.hf,u)},n.Rb.df=function(){return this.gf+=1,this},n.Rb.Ge=function(){--a[this.ff]||(l[this.ff]=null)},n}(o),e=function(t){function n(t,e,r){n.Sb.Pb.Qb(this,e),f.Jc(this,"_key",0,t),f.Jc(this,"_watchersCount",f.id,0),l[t]=this,this.onChange(i)}var i;return x(n,t),i=function(t){this.gf>0&&c.hd(this.ff,this,u)},n.Rb.df=function(){return this.gf+=1,this},n.Rb.Ge=function(){--a[this.ff]||(l[this.ff]=null)},n}(s),b.exports}(),n["q"]=function(){var i,e={exports:n["q"]};t.Ob(null,{}),e.exports;return i=Array.cc,e.exports=function(t){return function(n,e,r){if(r&&!i(e))throw new t.if(n,"array",n+" must be an array")}},e.exports}(),n["r"]=function(){var i,e={exports:n["r"]},r=t.Ob(null,{$d:"src/assert/index.litcoffee",Kd:"src/utils/index.litcoffee"});e.exports;return i=r("src/utils"),e.exports=function(t){return function(n,e,r){var s,o;if(r){if(!i.Yc(e))throw new t.if(n,"object",n+" must be an object");if(o=null!=r?r.ec:void 0)for(s in e)if(!~o.indexOf(s))throw new t.if(n,"object.properties",n+" doesn't provide "+s+" property")}}},e.exports}(),n["s"]=function(){var i={exports:n["s"]};t.Ob(null,{}),i.exports;return i.exports=function(t){return function(){}},i.exports}(),n["t"]=function(){var i={exports:n["t"]};t.Ob(null,{$d:"src/assert/index.litcoffee"}),i.exports;return i.exports=function(t){return function(n,i,e){if(!i||i>e)throw new t.if(n,"max","Maximum range of "+n+" is "+e)}},i.exports}(),n["u"]=function(){var i={exports:n["u"]};t.Ob(null,{$d:"src/assert/index.litcoffee"}),i.exports;return i.exports=function(t){return function(n,i,e){if(!i||e>i)throw new t.if(n,"min","Minimum range of "+n+" is "+e)}},i.exports}(),n["v"]=function(){var i,e={exports:n["v"]},r=t.Ob(null,{$d:"src/assert/index.litcoffee",Kd:"src/utils/index.litcoffee"});e.exports;return i=r("src/utils"),e.exports=function(t){return function(n,e,r){var s;if(s=Array.cc(r)?i.wd(r,e):r.Tb(e),!s)throw new t.if(n,"options","Passed "+n+" value is not acceptable")}},e.exports}(),n["w"]=function(){var i={exports:n["w"]};t.Ob(null,{$d:"src/assert/index.litcoffee"}),i.exports;return i.exports=function(t){return function(n,i,e){if(!e.bc(i))throw new t.if(n,"regexp",n+" doesn't pass the regular expression")}},i.exports}(),n["x"]=function(){var i={exports:n["x"]};t.Ob(null,{$d:"src/assert/index.litcoffee"}),i.exports;return i.exports=function(t){return function(n,i,e){if(typeof i!==e)throw new t.if(n,"type",n+" must be a "+e)}},i.exports}(),n["y"]=function(){var i,e,r,s={exports:n["y"]},o=t.Ob(null,{Kd:"src/utils/index.litcoffee",$d:"src/assert/index.litcoffee",jf:"src/schema/validators/array.litcoffee",kf:"src/schema/validators/object.litcoffee",lf:"src/schema/validators/optional.litcoffee",mf:"src/schema/validators/max.litcoffee",nf:"src/schema/validators/min.litcoffee",of:"src/schema/validators/options.litcoffee",pf:"src/schema/validators/regexp.litcoffee",qf:"src/schema/validators/type.litcoffee"}),u=(s.exports,function(t,n){function i(){this.Pb=t}for(var e in n)h.Qb(n,e)&&(t[e]=n[e]);return i.Rb=n.Rb,t.Rb=new i,t.Sb=n.Rb,t}),h={}.Tb;return r=o("src/utils"),e=function(t){function n(t,i,e){this.rf=t,this.sf=i,this.Hd=e,n.Sb.Pb._b(this,arguments)}return u(n,t),n.Rb.Gd="SchemaError",n.Rb.Hd="",n}(Error),s.exports=i=function(){function t(t){var n,i,e;this.tf=t,i=this.tf;for(e in i)n=i[e]}var n;return t.if=e,t.Rb.tf=null,n={uf:o("./validators/array")(t),vf:o("./validators/object")(t),wf:o("./validators/optional")(t),tc:o("./validators/max")(t),xf:o("./validators/min")(t),yf:o("./validators/options")(t),zf:o("./validators/regexp")(t),Af:o("./validators/type")(t)},t.Rb.Bf=function(t){var i,s,o,u,h,c,f,l,a,b,d;for(h in t)if(!this.tf.Tb(h))throw new e(h,null,"Unexpected "+h+" property");u=this.tf;for(h in u){if(c=u[h],d=r.Ub(t,h),null==d){if(c.wf)continue;throw new e(h,"optional","Required property "+h+" not found")}for(l in c)if(a=c[l],f=n[l],d instanceof r.Ub.$b)for(i=s=0,o=d.Wb;o>s;i=++s)b=d[i],f(h,b,a);else f(h,d,a)}return!0},t}(),s.exports}(),n["z"]=function(){var i,e={exports:n["z"]},r=t.Ob(null,{Kd:"src/utils/index.litcoffee",Cf:"src/networking/impl/browser/request.coffee",Df:"src/networking/impl/browser/response.coffee"});e.exports;return i=r("src/utils"),e.exports=function(t){var n;return n={},{Ef:r("./request.coffee")(t),Ff:r("./response.coffee")(t,n),Gf:function(i){var e,r;e=!1,n.Hf=window.Jf.If=function(n){var e;return e=i.Kf({Lf:t.Ef.Mf,Af:t.Ef.Nf,Of:n})},window.addEventListener("popstate",function(){return e?n.Hf(location.Pf+location.Qf):void 0}),document.addEventListener("click",function(t){var e;return e=t.Rf,"A"!==e.nodeName||e.getAttribute("target")?void 0:0!==e.Sf.indexOf(i.Tf)||/^\/static\//.bc(e.Pf)?void 0:(t.preventDefault(),n.Hf(e.Pf+e.Qf))}),r=function(){"complete"===document.readyState&&setTimeout(function(){return e=!0,n.Hf(location.Pf+location.Qf)})},"complete"===document.readyState?r():document.addEventListener("readystatechange",r)},Uf:function(n,e,r){var s,o,u,h,c,f,l,a;s=t.Ef,a=new XMLHttpRequest,f=n.Of.Ec(),f=i.wd(f,"?")?f+"&now="+Date.Md():f+"?now="+Date.Md(),a.Vf(n.Lf,f,!0),c=n.Wf;for(h in c)l=c[h],a.setRequestHeader(h,l);return a.setRequestHeader("X-Expected-Type",n.Af),(o=i.Dd(JSON.Xe,null,[n.Xf],null))&&a.setRequestHeader("X-Cookies",o),a.Yf=function(){var t;return t=a.Zf,n.Af===s.$f&&"string"==typeof t&&(t=i.Dd(JSON.Se,null,[t],t)),(o=a.getResponseHeader("X-Cookies"))&&(o=i.Dd(JSON.Se,null,[o],null)),r({_f:a._f,ag:t,Xf:o})},a.bg=function(){return r({_f:a._f,ag:a.Zf})},u=i.Yc(n.ag)?i.Dd(JSON.Xe,null,[n.ag],n.ag):n.ag,a.cg(u)}}},e.exports}(),n["A"]=function(){var i,e,r={exports:n["A"]},s=t.Ob(null,{Kd:"src/utils/index.litcoffee",$d:"src/assert/index.litcoffee",dg:"src/networking/impl/browser/index.coffee"});r.exports;return e=s("src/utils"),i=function(){switch(!0){case e.Lc:return s("./impl/node/index");case e.Oc:return s("./impl/browser/index");case e.Rc:return s("./impl/ios/index");case e.Pc:return s("./impl/qt/index");case e.Qc:return s("./impl/android/index")}}(),r.exports=function(t){return i(t)},r.exports}(),n["B"]=function(){var i={exports:n["B"]};t.Ob(null,{}),i.exports;return i.exports=function(t){},i.exports}(),n["C"]=function(){var i,e,r,s={exports:n["C"]},o=t.Ob(null,{Kd:"src/utils/index.litcoffee",$d:"src/assert/index.litcoffee",Je:"src/signal/index.litcoffee"}),u=(s.exports,function(t,n){function i(){this.Pb=t}for(var e in n)h.Qb(n,e)&&(t[e]=n[e]);return i.Rb=n.Rb,t.Rb=new i,t.Sb=n.Rb,t}),h={}.Tb;return r=o("src/utils"),e=o("src/signal"),i=e.Ie.xe,s.exports=function(t){var n;return n=function(n){function s(){t.Qb(this),this.eg=""}var o,h,c,f,l;return u(s,n),s.Ke="Text",s.Le="File.Element.Text",h=s.fg=t.gg.Zb(s)-1,f=t.hg,c=f++,o=s.hg=f,s.ig=function(n,i){return null==i&&(i=new s),t.ig(n,i),i.eg=n[c],i},s.Rb.Vb=function(t){return null==t&&(t=new s),s.Sb.Vb.Qb(this,t),t.eg=this.eg,t},e.Ie.Be(s,"onTextChange"),l=r.kd,r.Jc(s.Rb,"text",l,function(){return this.eg},function(n){var e;return e=this.eg,e===n?!1:(this.eg=n,i(this,"onTextChange",e),t.lg.kg.jg(this),!0)}),s.Rb.mg=function(t){return t||(t=new Array(o),t[0]=h),s.Sb.mg.Qb(this,t),t[c]=this.ng,t},s}(t)},s.exports}(),n["D"]=function(){var i,e,r,s,o={exports:n["D"]};t.Ob(null,{}),o.exports;return i={ud:null,og:!0,pg:!0,qg:!0,rg:!0,sg:!0,tg:!0,ug:!0,vg:!0,wg:!0,xg:!0,yg:!0,zg:!0,Ag:!0,Bg:!0,Cg:!0,Dg:!0,Eg:!0,Fg:!0,Gg:!0},s=function(t){return!/^(?:neft:|style:)/.bc(t)},e=function(t,n){var i,e,s,o,u;if(t.Hg){for(o="",u=t.Hg,e=0,s=u.Wb;s>e;e++)i=u[e],o+=r(i,n);return o}return""},r=function(t,n){var r,o,u,h,c,f,l;if(t.Ig===!1)return"";if(void 0!==t.eg)return t.eg;if(n&&(f=n[t.Gd])&&(t=f(t)||t),c=t.Gd,!c||!s(c))return e(t,n);l="<"+c,u=t.Jg;for(r in u)o=u[r],u.Tb(r)&&null!=o&&"function"!=typeof o&&s(r)&&(l+=" "+r+'="'+o+'"');return h=e(t,n),!h&&i[c]?l+" />":l+">"+h+"</"+c+">"},o.exports={Kg:e,Lg:r},o.exports;
}(),n["E"]=function(){var i,e={exports:n["E"]},r=(t.Ob(null,{}),e.exports);return i=function(t){var n,i,e,r;for(n=new Array(t),i=e=0,r=t;r>e;i=e+=1)n[i]=0;return n},r.Mg=function(){return"undefined"!=typeof Int8Array?Int8Array:i}(),r.Ng=function(){return"undefined"!=typeof Uint8Array?Uint8Array:i}(),r.Og=function(){return"undefined"!=typeof Int16Array?Int16Array:i}(),r.Pg=function(){return"undefined"!=typeof Uint16Array?Uint16Array:i}(),r.Qg=function(){return"undefined"!=typeof Int32Array?Int32Array:i}(),r.Rg=function(){return"undefined"!=typeof Uint32Array?Uint32Array:i}(),r.Sg=function(){return"undefined"!=typeof Float32Array?Float32Array:i}(),r.Tg=function(){return"undefined"!=typeof Float64Array?Float64Array:i}(),e.exports}(),n["F"]=function(){var i,e,r,s,o,u,h,c={exports:n["F"]},f=t.Ob(null,{Kd:"src/utils/index.litcoffee",$d:"src/assert/index.litcoffee",Je:"src/signal/index.litcoffee",Ug:"src/document/element/element/tag/stringify.coffee",Vg:"src/typed-array/index.litcoffee",Wg:"src/document/element/element/tag/query.coffee"}),l=(c.exports,function(t,n){function i(){this.Pb=t}for(var e in n)a.Qb(n,e)&&(t[e]=n[e]);return i.Rb=n.Rb,t.Rb=new i,t.Sb=n.Rb,t}),a={}.Tb;return h=f("src/utils"),o=f("src/signal"),u=f("./tag/stringify"),e=f("src/typed-array"),r=o.Ie.xe,s=function(t){return null!=t},i=/\#([^\s]+)/,c.exports=function(t){var n;return n=function(n){function i(){t.Qb(this),this.Gd="neft:blank",this.Hg=[],this.Jg=new s(this)}var s,c,a,b,d,v,x,p;return l(i,n),i.Xg=["neft:attr","neft:fragment","neft:rule","neft:target","neft:use","neft:require","neft:blank","neft:log","neft:script"],i.Yg=Object.uc(null),i.Zg=Object.uc(null),i.Ke="Tag",i.Le="File.Element.Tag",d=i.fg=t.gg.Zb(i)-1,x=t.hg,v=x++,b=x++,a=x++,c=i.hg=x,i.ig=function(n,e){var r,s,o,u,c,f;for(null==e&&(e=new i),t.ig(n,e),e.Gd=n[v],h._c(e.Jg,n[a]),c=null,f=n[b],o=0,u=f.Wb;u>o;o++)r=f[o],s=t.Re(r),e.Hg.Zb(s),s.$g=e,(s._g=c)&&(c.ah=s),c=s;return e},o.Ie.Be(i,"onChildrenChange"),o.Ie.Be(i,"onAttrsChange"),i.Rb.Vb=function(t){return null==t&&(t=new i),i.Sb.Vb.Qb(this,t),t.Gd=this.Gd,h._c(t.Jg,this.Jg),t},i.Rb.qd=function(){var t,n,e,r,s,o,u;for(n=this.Vb(),o=null,u=this.Hg,r=0,s=u.Wb;s>r;r++)t=u[r],e=t instanceof i?t.qd():t.Vb(),n.Hg.Zb(e),e.$g=n,(e._g=o)&&(o.ah=e),o=e;return n},i.Rb.bh=function(){var t;return t=new e.Pg(256),function(n,i){var e,r,s;if(n===this)return i;for(x=0,e=n;(s=e.$g)&&(t[x++]=s.Hg.indexOf(e),e=s,e!==this););for(e=i;x-- >0;)r=t[x],e=e.Hg[r];return e}}(),i.Rb.ch=function(t){var n,i;for(n=this,i=t.Wb-1;i>=0;i+=-1)if(x=t[i],!(n=n.Hg[x]))return null;return n},i.kg=p=f("./tag/query")(t,i),i.Rb.dh=p.dh,i.Rb.kg=p.kg,i.Rb.eh=p.eh,i.Rb.Xe=function(t){return null==t&&(t=i.Yg),u.Lg(this,t)},i.Rb.fh=function(t){return null==t&&(t=i.Yg),u.Kg(this,t)},i.Rb.Bd=function(t,n){var i;return i=this.Hg.indexOf(t),t.gh=void 0,n.gh=this,n.Pe=i,null},i.Rb.mg=function(t){var n,e,r,s,o;for(t||(t=new Array(c),t[0]=d),i.Sb.mg.Qb(this,t),t[v]=this.Gd,e=t[b]=[],t[a]=this.Jg,o=this.Hg,r=0,s=o.Wb;s>r;r++)n=o[r],e.Zb(n.mg());return t},i.hh=s=function(){function t(t){h.Jc(this,"_ref",0,t)}var n;return n=h.kd|h.id,h.Jc(t.Rb,"constructor",n,t),h.Jc(t.Rb,"item",n,function(t,n){var i,e;null==n&&(n=[]),n[0]=n[1]=void 0,x=0;for(i in this){if(e=this[i],this.Tb(i)&&x===t){n[0]=i,n[1]=e;break}x++}return n}),h.Jc(t.Rb,"has",n,function(t){return this.Tb(t)}),h.Jc(t.Rb,"set",n,function(t,n){var i;return i=this[t],i===n?!1:(this[t]=n,r(this.ih,"onAttrsChange",t,i),p.jg(this.ih),!0)}),t}(),i}(t)},c.exports}(),n["G"]=function(){var i,e,r,s,o,u,h,c,f,l,a,b,d,v,x,p,R,g,m,y,w,C,E,W,S,A,F,P,Q,z,T,O,I,j,B,_,D,M,k,G,L,N={exports:n["G"]},X=t.Ob(null,{Kd:"src/utils/index.litcoffee",Je:"src/signal/index.litcoffee",$d:"src/assert/index.litcoffee"}),q=(N.exports,function(t,n){function i(){this.Pb=t}for(var e in n)H.Qb(n,e)&&(t[e]=n[e]);return i.Rb=n.Rb,t.Rb=new i,t.Sb=n.Rb,t}),H={}.Tb;return L=X("src/utils"),k=X("src/signal"),j=k.Ie.xe,m=y=null,c=0,f=1,i=100,G=function(t,n,i,e,r,s){for(var o,u,h;i<n.Wb;){if(h=n[i],h.jh)return h(t,n,i+3,e,r,s);if(o=n[i+1],u=n[i+2],!h(t,o,u))return!1;i+=3}return e.Qb(r,t),!0},E=function(t,n,i,e,r,s){var o,u,h,c;for(c=t.Hg,u=0,h=c.Wb;h>u;u++){if(o=c[u],(!(o instanceof m)||"neft:blank"!==o.Gd)&&G(o,n,i,e,r,s)&&s)return!0;if(o instanceof m&&E(o,n,i,e,r,s)&&s)return!0}return!1},E.jh=!0,E.kh=c,E.Ec=function(){return"anyDescendant"},I=function(t,n,i,e,r,s){var o;if(o=t.$g){if(G(o,n,i,e,r,s))return!0;if("neft:blank"===o.Gd)return I(o,n,i,e,r,s)}return!1},I.jh=!0,I.kh=c,I.Ec=function(){return"directParent"},C=function(t,n,i,e,r,s){var o,u,h,c;for(c=t.Hg,u=0,h=c.Wb;h>u;u++)if(o=c[u],o instanceof m&&"neft:blank"===o.Gd){if(C(o,n,i,e,r,s)&&s)return!0}else if(G(o,n,i,e,r,s)&&s)return!0;return!1},C.jh=!0,C.kh=c,C.Ec=function(){return"anyChild"},W=function(t,n,i,e,r,s){var o;return(o=t.$g)?G(o,n,i,e,r,s)?!0:W(o,n,i,e,r,s):!1},W.jh=!0,W.kh=c,W.Ec=function(){return"anyParent"},T=function(t,n){return t instanceof m?t.Gd===n:"#text"===n&&t instanceof y?!0:void 0},T.jh=!1,T.kh=f,T.Ec=function(){return"byName"},z=function(t,n){return t instanceof n},z.jh=!1,z.kh=c,z.Ec=function(){return"byInstance"},O=function(t,n){return t===n},O.jh=!1,O.kh=c,O.Ec=function(){return"byTag"},S=function(t,n){return t instanceof m?void 0!==t.Jg[n]:!1},S.jh=!1,S.kh=i,S.Ec=function(){return"byAttr"},Q=function(t,n,i){return t instanceof m?t.Jg[n]==i:!1},Q.jh=!1,Q.kh=i,Q.Ec=function(){return"byAttrValue"},P=function(t,n,i){var e;return t instanceof m&&(e=t.Jg[n],"string"==typeof e)?0===e.indexOf(i):!1},P.jh=!1,P.kh=i,P.Ec=function(){return"byAttrStartsWithValue"},F=function(t,n,i){var e;return t instanceof m&&(e=t.Jg[n],"string"==typeof e)?e.indexOf(i,e.Wb-i.Wb)>-1:!1},F.jh=!1,F.kh=i,F.Ec=function(){return"byAttrEndsWithValue"},A=function(t,n,i){var e;return t instanceof m&&(e=t.Jg[n],"string"==typeof e)?e.indexOf(i)>-1:!1},A.jh=!1,A.kh=i,A.Ec=function(){return"byAttrContainsValue"},g=/^#?[a-zA-Z0-9|\-:_]+/,h=/^([ ]*)>([ ]*)|^([ ]+)/,r=/^\[([^\]]+?)\]/,o=/^\[([^=]+?)=([^\]]+?)\]/,e=/^\.([a-zA-Z0-9|\-_]+)/,p=/\^$/,l=/\$$/,u=/\*$/,R=/(?:'|")?([^'"]*)/,s={ud:null,lh:!0,mh:!1,nh:null,oh:void 0},_=0,d=1<<_++,v=1<<_++,b=1<<_++,a=2e3,x=100,D=[],M=[],B=function(t,n){var i,c,f,y,w,j,B,_,k,G,L,N,X,q,H,U,J,Z,Y,K,V,$;if(null==n&&(n=0),Y=!!(n&v),U=null!=(J=D[n])?J[t]:void 0)return U;for(j=Y?W:E,y=Y?I:C,c=Y?"unshift":"push",K=Y?"push":"unshift",G=[],H=[G],V=t.ph();V.Wb;)if("*"===V[0])V=V.slice(1),G[c](z,m,null);else if("&"===V[0])V=V.slice(1),n&d||G[c](O,null,null);else if(B=g.qh(V))V=V.slice(B[0].Wb),q=B[0],G[c](T,q,null);else if(B=o.qh(V))V=V.slice(B[0].Wb),i=B[0],q=B[1],$=B[2],$=$ in s?s[$]:R.qh($)[1],k=p.bc(q)?P:l.bc(q)?F:u.bc(q)?A:Q,k!==Q&&(q=q.slice(0,-1)),G[c](k,q,$);else if(B=r.qh(V))V=V.slice(B[0].Wb),G[c](S,B[1],null);else if(B=e.qh(V))V=V.slice(B[0].Wb),G[c](A,"class",B[1]);else if(B=h.qh(V))V=V.slice(B[0].Wb),w=B[0].ph(),""===w?G[c](j,null,null):">"===w&&G[c](y,null,null);else{if(","!==V[0])throw new Error("queryAll: unexpected selector '"+V+"' in '"+t+"'");G=[],H.Zb(G),V=V.slice(1),V=V.ph()}for(L=0,X=H.Wb;X>L;L++)G=H[L],_=!Y||n&d?G[0]:G[G.Wb-3],_!==O&&(n&d&&!(null!=_?_.jh:void 0)?G[c](j,null,null):Y&&!(null!=_?_.jh:void 0)?G[K](j,null,null):Y||(null!=_?_.jh:void 0)||G[K](j,null,null),n&b&&G[K](O,null,null));if((f=D[n])||(f=D[n]={},M[n]=0),f[t]=H,(M[n]+=1)>a){Z=0;for(N in f)if(delete f[N],Z+=1,Z>=x)break;M[n]-=Z}return H},w=function(t){function n(t,i){n.Sb.Pb.Qb(this),this.rh=!0,this.sh=t,this.th=i,this.Cd=e++ +"",this.uh=[],this.vh=[],this.wh=[],this.xh=!1}var i,e,r;return q(n,t),i=function(){},e=0,r=[],n.uc=function(t,i){var e,s;return r.Wb?(s=r.Fc(),s.sh=t,s.th=i,s.rh=!0):s=new n(t,i),e=null!=t.yh?t.yh:t.yh=[],e.Zb(s),s},k.Ie.Be(n,"onAdd"),k.Ie.Be(n,"onRemove"),n.Rb.bc=function(t){var n,e,r,s;for(s=this.th,e=0,r=s.Wb;r>e;e++)if(n=s[e],n[n.Wb-2]=this.sh,G(t,n,0,i,null,!0))return!0;return!1},n.Rb.Ge=function(){var t,n,i,e,s;for(s=this.Cd,t=this.sh,n=this.uh,i=this.vh,e=this.wh,L.dd(t.yh,this);t=i.Fc();)delete t.zh[s];for(;t=e.Fc();)j(this,"onRemove",t);for(;t=n.Fc();)delete t.zh[s],j(this,"onRemove",t);this.onAdd.He(),this.onRemove.He(),this.sh=this.th=null,r.Zb(this)},n}(k.Ie),N.exports=function(t,n){var i,e,r;return m=n,y=t.Ah,{Bh:N.exports.Bh,dh:r=function(t,n,i,e){var r,s,o,u,h;for(null==n&&(n=[]),null==i&&(i=n),null==e&&(e=0),h=B(t,e),r=Array.cc(n)?n.Zb:n,o=0,u=h.Wb;u>o;o++)s=h[o],s[0](this,s,3,r,i,!1);return Array.cc(n)?n:void 0},Ch:function(t,n,i){var e,s,o;return null==n&&(n=[]),null==i&&(i=n),e=Array.cc(n)?n.Zb:n,o=v|d,s=function(n){e.Qb(i,n),r.Qb(n,t,s,null,o)},r.Qb(this,t,s,null,o),Array.cc(n)?n:void 0},kg:e=function(){var t,n;return t=null,n=function(n){return t=n},function(i,e){var r,s,o,u;for(null==e&&(e=0),u=B(i,e),s=0,o=u.Wb;o>s;s++)if(r=u[s],r[0](this,r,3,n,null,!0))return t;return null}}(),Dh:function(t){return e.Qb(this,t,v|d)},eh:function(t){var n,e;return n=B(t,v|b),e=w.uc(this,n),i(this),e},jg:i=function(){var t,n,i,e,r,s,o,u,h,c,f;return u=!1,o=[],f=[],c=[],_=0,i=1<<_++,t=1<<_++,n=1<<_++,r=function(t){t.xh||(f.Zb(t),t.xh=!0)},s=function(t,n){var i;for(i=t;i=i.$g;)if(i===n)return!0;return!1},e=function(n,o,u,h){var c,f,l,a,b,d,v,x,p,R,g,y,w,C,E,W,S,A;if(c=n.Eh,u|=c,A=n.yh)for(a=0,v=A.Wb;v>a;a++)for(E=A[a],o.Zb(E),!h&&E.rh&&(h=!0),W=E.sh,y=E.uh,_=g=y.Wb;_-- >0;)f=y[_],f===W||s(f,W)||(delete f.zh[E.Cd],y[_]=y[g-1],y.Fc(),E.wh.Zb(f),r(E),g--);if(h||u&i)for(l=n.zh,b=0,x=o.Wb;x>b;b++)E=o[b],(!h||E.rh||u&i)&&(S=E.Cd,l&&l[S]||!E.bc(n)?l&&l[S]&&!E.bc(n)&&(delete l[S],L.ed(E.uh,n),E.wh.Zb(n),r(E)):(l||(l=n.zh={}),l[S]=!0,E.vh.Zb(n),r(E)));if(u&t&&n instanceof m)for(w=n.Hg,d=0,p=w.Wb;p>d;d++)f=w[d],(h||u&i||f.Eh>0)&&e(f,o,u,h);if(A)for(_=R=0,C=A.Wb;C>R;_=R+=1)E=o.Fc();n.Eh=0},h=function(){var t,n,i,r,s;for(u=!1;t=o.Fc();)t.$g||e(t,c,0,!1);for(;s=f.Fc();){for(i=s.vh,r=s.wh;n=r.Fc();)j(s,"onRemove",n);for(;n=i.Fc();)s.uh.Zb(n),j(s,"onAdd",n);s.xh=!1}},function(e,r){var s;for(null==r&&(r=e.$g),e.Eh|=i,e instanceof m&&(e.Eh|=t),s=e;r&&(s=r,!(s.Eh&t));)s.Eh|=t,r=s.$g;r||s.Eh&n||(o.Zb(s),s.Eh|=n),u||(setImmediate(h),u=!0)}}()}},N.exports.Bh=function(t,n,i){var e,r,s,o,u;for(null==n&&(n=0),null==i&&(i=1/0),u=0,s=B(t,0),_=e=0,r=s.Wb;r>e;_=++e)if(o=s[_],!(n>_)){if(_>=i)break;u+=o.Wb}return u},N.exports.Fh=function(t,n,i){var e,r,s,o,u,h,c,f;for(null==n&&(n=0),null==i&&(i=1/0),f=0,h=B(t,0),_=r=0,o=h.Wb;o>r;_=++r)if(c=h[_],!(n>_)){if(_>=i)break;for(s=0,u=c.Wb;u>s;s+=3)e=c[s],f+=e.kh}return f},N.exports}(),n["H"]=function(){var i,e,r,s,o,u,h={exports:n["H"]},c=t.Ob(null,{Kd:"src/utils/index.litcoffee",$d:"src/assert/index.litcoffee",Je:"src/signal/index.litcoffee",Gh:"src/document/element/element/text.litcoffee",Hh:"src/document/element/element/tag.litcoffee"}),f=(h.exports,function(t,n){function i(){this.Pb=t}for(var e in n)l.Qb(n,e)&&(t[e]=n[e]);return i.Rb=n.Rb,t.Rb=new i,t.Sb=n.Rb,t}),l={}.Tb;return u=c("src/utils"),o=c("src/signal"),s=Array.cc,e=o.Ie,r=e.xe,i=function(t){function n(){e.Qb(this),this.$g=null,this.ah=null,this._g=null,this.Ih=null,this.Jh=null,this.Ig=!0,this.yh=null,this.zh=null,this.Eh=0}var i,s,h,l,a,b;return f(n,t),n.Ke="Element",n.Le="File.Element",n.gg=[],s=n.fg=n.gg.Zb(n)-1,a=1,h=a++,i=n.hg=a,n.Kh=function(t){if(!u.Lc)throw"Creating Views from HTML files is allowed only on a server";return n.Lh.Se(t)},n.Re=function(t){return"string"==typeof t&&(t=JSON.Se(t)),n.gg[t[0]].ig(t)},n.ig=function(t,i){return null==i&&(i=new n),i.Ig=1===t[h],i},n.Ah=c("./element/text")(n),n.lg=l=c("./element/tag")(n),b=u.kd,u.Jc(n.Rb,"index",b,function(){var t;return(null!=(t=this.gh)?t.Hg.indexOf(this):void 0)||0},function(t){var n,i,e,r,s,o,u;return(e=this.$g)?(i=this.Pe,n=e.Hg,t>n.Wb&&(t=n.Wb),i===t||i===t-1?!1:(null!=(r=this._g)&&(r.ah=this.ah),null!=(s=this.ah)&&(s._g=this._g),n.splice(i,1),t>i&&t--,n.splice(t,0,this),this._g=n[t-1]||null,this.ah=n[t+1]||null,null!=(o=this._g)&&(o.ah=this),null!=(u=this.ah)&&(u._g=this),!0)):!1}),b=u.kd,u.Jc(n.Rb,"nextSibling",b,function(){return this.ah},null),b=u.kd,u.Jc(n.Rb,"previousSibling",b,function(){return this._g},null),b=u.kd,u.Jc(n.Rb,"parent",b,function(){return this.$g},function(t){var n,i,e,s,o,u,h;return e=this.$g,e===t?!1:(this.$g&&(s=this.$g.Hg,this.ah?this._g?(n=s.indexOf(this),s.splice(n,1)):s.Xb():s.Fc(),r(this.$g,"onChildrenChange",null,this),null!=(u=this._g)&&(u.ah=this.ah),null!=(h=this.ah)&&(h._g=this._g),this._g=null,this.ah=null),this.$g=o=t,o&&(i=this.$g.Hg,n=i.Zb(this)-1,r(o,"onChildrenChange",this),0===n?this._g=null:(this._g=i[n-1],this._g.ah=this)),this._g,r(this,"onParentChange",e),l.kg.jg(this,e),l.kg.jg(this),!0)}),o.Ie.Be(n,"onParentChange"),b=u.kd,u.Jc(n.Rb,"style",b,function(){return this.Ih},function(t){var n;return n=this.Ih,n===t?!1:(this.Ih=t,r(this,"onStyleChange",n,t),!0)}),o.Ie.Be(n,"onStyleChange"),b=u.kd,u.Jc(n.Rb,"visible",b,function(){return this.Ig},function(t){var n;return n=this.Ig,n===t?!1:(this.Ig=t,r(this,"onVisibleChange",n),!0)}),o.Ie.Be(n,"onVisibleChange"),n.Rb.Ch=l.kg.Ch,n.Rb.Dh=l.kg.Dh,n.Rb.Mh=function(t){var n,i,e;for(n=[],a=0,i=this,e=this;(e=i.$g)&&(n.Zb(e.Hg.indexOf(i)),i=e,e!==t););return n},n.Rb.Vb=function(t){return null==t&&(t=new n),t.Ig=this.Ig,t},n.Rb.mg=function(t){return t||(t=new Array(i),t[0]=s),t[h]=this.Nh?1:0,t},u.Lc&&(n.Lh=c("./element/parser")(n)),n}(e),h.exports=i,h.exports}(),n["I"]=function(){var i={exports:n["I"]},e=t.Ob(null,{Oh:"src/document/element/element.litcoffee"});i.exports;return i.exports=e("./element"),i.exports}(),n["J"]=function(){var i,e={exports:n["J"]},r=t.Ob(null,{$d:"src/assert/index.litcoffee",Kd:"src/utils/index.litcoffee",Ph:"src/log/index.litcoffee"});e.exports;return i=r("src/utils"),e.exports=function(t){var n;return n=function(){function n(t,n,i,e){this.Qh=t,this.sh=n,this.Rf=i,this.Gd=e,this.Rh=this.Rf.Jg[this.Gd],this.Sh(),this.sh.onVisibleChange(c,this),this.sh.onAttrsChange(h,this)}var i,e,r,s,o,u,h,c;return n.Ke="AttrChange",n.Le="File.AttrChange",e=n.fg=t.gg.Zb(n)-1,u=1,s=u++,o=u++,r=u++,i=n.hg=u,n.ig=function(t,i,e){var u,h;return e||(u=t.sh.ch(i[s]),h=t.sh.ch(i[o]),e=new n(t,u,h,i[r])),e},n.Rb.Sh=function(){var t;t=this.sh.Nh?this.sh.Jg.jc:this.Rh,this.Rf.Jg.hd(this.Gd,t)},c=function(){return this.Sh()},h=function(t,n){if("name"===t)throw new Error("Dynamic neft:attr name is not implemented");"value"===t&&this.Sh()},n.Rb.Vb=function(t,i){var e,r;return e=t.sh.bh(this.sh,i.sh),r=t.sh.bh(this.Rf,i.sh),new n(i,e,r,this.Gd)},n.Rb.mg=function(t,n){return n||(n=new Array(i),n[0]=e),n[s]=this.sh.Mh(this.Qh.sh),n[o]=this.Rf.Mh(this.Qh.sh),n[r]=this.Gd,n},n}()},e.exports}(),n["K"]=function(){var i,e={exports:n["K"]},r=t.Ob(null,{Kd:"src/utils/index.litcoffee",$d:"src/assert/index.litcoffee",Ph:"src/log/index.litcoffee"});e.exports;return i=r("src/utils"),e.exports=function(t){var n;return n=function(){function n(t,n){this.Qh=t,this.sh=n,this.Gd=this.sh.Jg["Th"],this.Uh=null,this.Vh=!1,this.sh.onVisibleChange(l,this),this.sh.onAttrsChange(o,this)}var e,r,s,o,u,h,c,f,l;return n.Ke="Use",n.Le="File.Use",r=n.fg=t.gg.Zb(n)-1,u=1,s=u++,e=n.hg=u,n.ig=function(t,i,e){var r;return e||(r=t.sh.ch(i[s]),e=new n(t,r)),e},l=function(){return this.Qh.Vh&&!this.Vh?this.Wh():void 0},o=function(t){"neft:fragment"===t&&(this.Gd=this.sh.Jg["Th"],this.Vh&&(this.Xh(),this.Wh()))},h=[],c=!1,f=function(){var t,n;n=h.Xb(),t=h.Xb(),n.Vh&&n.Yh(t),h.Wb?requestAnimationFrame(f):c=!1},n.Rb.Wh=function(t){var n;this.sh.Nh&&(this.Vh&&this.Xh(),this.Vh=!0,n=i.Nc,n&&(n=this.sh.Jg.wd("neft:async")),n&&(n=this.sh.Jg["neft:async"]!==!1),n?(h.Zb(this,t),c||(requestAnimationFrame(f),c=!0)):this.Yh(t))},n.Rb.Yh=function(n){var i,e,r;i=this.Qh.Zh[this.Gd],(n||i||t.$h[this.Gd])&&(r=n||t._h(i||this.Gd),n&&null!=(e=n.ai)&&e.bi(),r.ci||(r=r.Vb()),r.Vh||(r=r.Wh(null,this.Qh.di,this)),r.sh.gh=this.sh,this.Uh=r,r.ai=this,r.onReplaceByUse.Fe(this),t.ei(r,"neft:onReplaceByUse",this))},n.Rb.Xh=function(){this.Vh&&(this.Uh&&this.Uh.Xh().fi(),this.Vh=!1)},n.Rb.bi=function(){this.Uh.sh.gh=null,this.Uh.ai=null,this.Uh=null},n.Rb.Vb=function(t,i){var e;return e=t.sh.bh(this.sh,i.sh),new n(i,e)},n.Rb.mg=function(t,n){return n||(n=new Array(e),n[0]=r),n[s]=this.sh.Mh(this.Qh.sh),n},n}()},e.exports}(),n["L"]=function(){var i,e,r,s,o,u={expor