diff --git a/dist/r7extlib.js b/dist/r7extlib.js index b8ae0c4..a875192 100644 --- a/dist/r7extlib.js +++ b/dist/r7extlib.js @@ -1,2 +1,2 @@ -!function n(t,e,r){function o(u,a){if(!e[u]){if(!t[u]){var f="function"==typeof require&&require;if(!a&&f)return f(u,!0);if(i)return i(u,!0);throw new Error("Cannot find module '"+u+"'")}var c=e[u]={exports:{}};t[u][0].call(c.exports,function(n){var e=t[u][1][n];return o(e?e:n)},c,c.exports,n,t,e,r)}return e[u].exports}for(var i="function"==typeof require&&require,u=0;u-1?0:-1:n?0:-1}function i(n){var t=this.cache,e=typeof n;if("boolean"==e||null==n)t[n]=!0;else{"number"!=e&&"string"!=e&&(e="object");var r="number"==e?n:b+n,o=t[e]||(t[e]={});"object"==e?(o[r]||(o[r]=[])).push(n):o[r]=!0}}function u(n){return n.charCodeAt(0)}function a(n,t){for(var e=n.criteria,r=t.criteria,o=-1,i=e.length;++oa||"undefined"==typeof u)return 1;if(u=_&&i===r,c=[];if(a){var l=f(t);l?(i=o,t=l):a=!1}for(;++e-1});return o.pop(),i.pop(),g&&(p(o),p(i)),u}function tn(n,t,e,r,o){(Ze(t)?Xn:fr)(t,function(t,i){var u,a,f=t,c=n[i];if(t&&((a=Ze(t))||cr(t))){for(var l=r.length;l--;)if(u=r[l]==t){c=o[l];break}if(!u){var s;e&&(f=e(c,t),(s="undefined"!=typeof f)&&(c=f)),s||(c=a?Ze(c)?c:[]:cr(c)?c:{}),r.push(t),o.push(c),s||tn(c,t,e,r,o)}}else e&&(f=e(c,t),"undefined"==typeof f&&(f=t)),"undefined"!=typeof f&&(c=f);n[i]=c})}function rn(n,t){return n+Ne(We()*(t-n+1))}function on(n,t,e){var i=-1,u=cn(),a=n?n.length:0,c=[],s=!t&&a>=_&&u===r,d=e||s?l():c;if(s){var v=f(d);u=o,d=v}for(;++i3&&"function"==typeof t[e-2])var r=k(t[--e-1],t[e--],2);else e>2&&"function"==typeof t[e-1]&&(r=t[--e]);for(var o=d(arguments,1,e),i=-1,u=l(),a=l();++i-1:"number"==typeof i?u=(Kn(n)?n.indexOf(t,e):o(n,t,e))>-1:fr(n,function(n){if(++r>=e)return!(u=n===t)}),u}function Vn(n,e,r){var o=!0;e=t.createCallback(e,r,3);var i=-1,u=n?n.length:0;if("number"==typeof u)for(;++ii&&(i=c)}else e=null==e&&Kn(n)?u:t.createCallback(e,r,3),Xn(n,function(n,t,r){var u=e(n,t,r);u>o&&(o=u,i=n)});return i}function et(n,e,r){var o=1/0,i=o;if("function"!=typeof e&&r&&r[e]===n&&(e=null),null==e&&Ze(n))for(var a=-1,f=n.length;++a=_&&f(t?n[t]:c)))}var d=n[0],v=-1,y=d?d.length:0,m=[];n:for(;++v>>1;r(n[a])1?arguments:arguments[0],t=-1,e=n?tt(hr(n,"length")):0,r=de(e<0?0:e);++t2?an(n,17,d(arguments,2),null,t):an(n,1,null,null,t)}function Kt(n){for(var t=arguments.length>1?Y(arguments,!0,!1,1):_n(n),e=-1,r=t.length;++e2?an(t,19,d(arguments,2),null,n):an(t,3,null,null,n)}function Pt(){for(var n=arguments,t=n.length;t--;)if(!On(n[t]))throw new je;return function(){for(var t=arguments,e=n.length;e--;)t=[n[e].apply(this,t)];return t[0]}}function qt(n,t){return t="number"==typeof t?t:+t||n.length,an(n,4,null,null,null,t)}function Ft(n,t,e){var r,o,i,u,a,f,c,l=0,s=!1,p=!0;if(!On(n))throw new je;if(t=Qe(0,t)||0,e===!0){var h=!0;p=!1}else Nn(e)&&(h=e.leading,s="maxWait"in e&&(Qe(t,e.maxWait)||0),p="trailing"in e?e.trailing:p);var d=function(){var e=t-(vr()-u);if(e<=0){o&&Oe(o);var s=c;o=f=c=y,s&&(l=vr(),i=n.apply(a,r),f||o||(r=a=null))}else f=Ke(d,e)},v=function(){f&&Oe(f),o=f=c=y,(p||s!==t)&&(l=vr(),i=n.apply(a,r),f||o||(r=a=null))};return function(){if(r=arguments,u=vr(),a=this,c=p&&(f||!h),s===!1)var e=h&&!f;else{o||h||(l=u);var y=s-(u-l),m=y<=0;m?(o&&(o=Oe(o)),l=u,i=n.apply(a,r)):o||(o=Ke(v,y))}return m&&f?f=Oe(f):f||t===s||(f=Ke(d,t)),e&&(m=!0,i=n.apply(a,r)),!m||f||o||(r=a=null),i}}function Mt(n){if(!On(n))throw new je;var t=d(arguments,1);return Ke(function(){n.apply(y,t)},1)}function $t(n,t){if(!On(n))throw new je;var e=d(arguments,2);return Ke(function(){n.apply(y,e)},t)}function Ht(n,t){if(!On(n))throw new je;var e=function(){var r=e.cache,o=t?t.apply(this,arguments):b+arguments[0];return Ae.call(r,o)?r[o]:r[o]=n.apply(this,arguments)};return e.cache={},e}function Ut(n){var t,e;if(!On(n))throw new je;return function(){return t?e:(t=!0,e=n.apply(this,arguments),n=null,e)}}function Qt(n){return an(n,16,d(arguments,1))}function zt(n){return an(n,32,null,d(arguments,1))}function Vt(n,t,e){var r=!0,o=!0;if(!On(n))throw new je;return e===!1?r=!1:Nn(e)&&(r="leading"in e?e.leading:r,o="trailing"in e?e.trailing:o),V.leading=r,V.maxWait=t,V.trailing=o,Ft(n,t,V)}function Wt(n,t){return an(t,16,[n])}function Jt(n){return function(){return n}}function Gt(n,t,e){var r=typeof n;if(null==n||"function"==r)return k(n,t,e);if("object"!=r)return ee(n);var o=nr(n),i=o[0],u=n[i];return 1!=o.length||u!==u||Nn(u)?function(t){for(var e=o.length,r=!1;e--&&(r=nn(t[o[e]],n[o[e]],null,!0)););return r}:function(n){var t=n[i];return u===t&&(0!==u||1/u==1/t)}}function Xt(n){return null==n?"":ke(n).replace(or,fn)}function Zt(n){return n}function Yt(n,r,o){var i=!0,u=r&&_n(r);r&&(o||u.length)||(null==o&&(o=r),a=e,r=n,n=t,u=_n(r)),o===!1?i=!1:Nn(o)&&"chain"in o&&(i=o.chain);var a=n,f=On(a);Xn(u,function(t){var e=n[t]=r[t];f&&(a.prototype[t]=function(){var t=this.__chain__,r=this.__wrapped__,o=[r];Le.apply(o,arguments);var u=e.apply(n,o);if(i||t){if(r===u&&Nn(u))return this;u=new a(u),u.__chain__=t}return u})})}function ne(){return n._=Re,this}function te(){}function ee(n){return function(t){return t[n]}}function re(n,t,e){var r=null==n,o=null==t;if(null==e&&("boolean"==typeof n&&o?(e=n,n=1):o||"boolean"!=typeof t||(e=t,o=!0)),r&&o&&(t=1),n=+n||0,o?(t=n,n=0):t=+t||0,e||n%1||t%1){var i=We();return ze(n+i*(t-n+parseFloat("1e-"+((i+"").length-1))),t)}return rn(n,t)}function oe(n,t){if(n){var e=n[t];return On(e)?n[t]():e}}function ie(n,e,r){var o=t.templateSettings;n=ke(n||""),r=ur({},r,o);var i,u=ur({},r.imports,o.imports),a=nr(u),f=Un(u),l=0,s=r.interpolate||I,p="__p += '",h=_e((r.escape||I).source+"|"+s.source+"|"+(s===O?S:I).source+"|"+(r.evaluate||I).source+"|$","g");n.replace(h,function(t,e,r,o,u,a){return r||(r=o),p+=n.slice(l,a).replace(A,c),e&&(p+="' +\n__e("+e+") +\n'"),u&&(i=!0,p+="';\n"+u+";\n__p += '"),r&&(p+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),l=a+t.length,t}),p+="';\n";var d=r.variable,v=d;v||(d="obj",p="with ("+d+") {\n"+p+"\n}\n"),p=(i?p.replace(x,""):p).replace(E,"$1").replace(R,"$1;"),p="function("+d+") {\n"+(v?"":d+" || ("+d+" = {});\n")+"var __t, __p = '', __e = _.escape"+(i?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var m="\n/*\n//# sourceURL="+(r.sourceURL||"/lodash/template/source["+K++ +"]")+"\n*/";try{var g=me(a,"return "+p+m).apply(y,f)}catch(w){throw w.source=p,w}return e?g(e):(g.source=p,g)}function ue(n,t,e){n=(n=+n)>-1?n:0;var r=-1,o=de(n);for(t=k(t,e,1);++r/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:O,variable:"",imports:{_:t}},Fe||(g=function(){function t(){}return function(e){if(Nn(e)){t.prototype=e;var r=new t;t.prototype=null}return r||n.Object()}}());var Xe=qe?function(n,t){W.value=t,qe(n,"__bindData__",W),W.value=null}:te,Ze=Me||function(n){return n&&"object"==typeof n&&"number"==typeof n.length&&Se.call(n)==P||!1},Ye=function(n){var t,e=n,r=[];if(!e)return r;if(!J[typeof n])return r;for(t in e)Ae.call(e,t)&&r.push(t);return r},nr=Ue?function(n){return Nn(n)?Ue(n):[]}:Ye,tr={"&":"&","<":"<",">":">",'"':""","'":"'"},er=jn(tr),rr=_e("("+nr(er).join("|")+")","g"),or=_e("["+nr(tr).join("")+"]","g"),ir=function(n,t,e){var r,o=n,i=o;if(!o)return i;var u=arguments,a=0,f="number"==typeof e?2:u.length;if(f>3&&"function"==typeof u[f-2])var c=k(u[--f-1],u[f--],2);else f>2&&"function"==typeof u[f-1]&&(c=u[--f]);for(;++a/g,N=RegExp("^["+j+"]*0+(?=.$)"),I=/($^)/,B=/\bthis\b/,A=/['\n\r\t\u2028\u2029\\]/g,L=["Array","Boolean","Date","Function","Math","Number","Object","RegExp","String","_","attachEvent","clearTimeout","isFinite","isNaN","parseInt","setTimeout"],K=0,D="[object Arguments]",P="[object Array]",q="[object Boolean]",F="[object Date]",M="[object Function]",$="[object Number]",H="[object Object]",U="[object RegExp]",Q="[object String]",z={};z[M]=!1,z[D]=z[P]=z[q]=z[F]=z[$]=z[H]=z[U]=z[Q]=!0;var V={leading:!1,maxWait:0,trailing:!1},W={configurable:!1,enumerable:!1,value:null,writable:!1},J={"boolean":!1,"function":!0,object:!0,number:!1,string:!1,undefined:!1},G={"\\":"\\","'":"'","\n":"n","\r":"r","\t":"t","\u2028":"u2028","\u2029":"u2029"},X=J[typeof window]&&window||this,Z=J[typeof e]&&e&&!e.nodeType&&e,Y=J[typeof t]&&t&&!t.nodeType&&t,nn=Y&&Y.exports===Z&&Z,tn=J[typeof n]&&n;!tn||tn.global!==tn&&tn.window!==tn||(X=tn);var en=v();"function"==typeof define&&"object"==typeof define.amd&&define.amd?(X._=en,define(function(){return en})):Z&&Y?nn?(Y.exports=en)._=en:Z._=en:X._=en}).call(this)}).call(this,"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],2:[function(n,t,e){function r(){}var o=t.exports={};o.nextTick=function(){var n="undefined"!=typeof window&&window.setImmediate,t="undefined"!=typeof window&&window.postMessage&&window.addEventListener;if(n)return function(n){return window.setImmediate(n)};if(t){var e=[];return window.addEventListener("message",function(n){var t=n.source;if((t===window||null===t)&&"process-tick"===n.data&&(n.stopPropagation(),e.length>0)){var r=e.shift();r()}},!0),function(n){e.push(n),window.postMessage("process-tick","*")}}return function(n){setTimeout(n,0)}}(),o.title="browser",o.browser=!0,o.env={},o.argv=[],o.on=r,o.addListener=r,o.once=r,o.off=r,o.removeListener=r,o.removeAllListeners=r,o.emit=r,o.binding=function(n){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(n){throw new Error("process.chdir is not supported")}},{}],3:[function(n,t,e){(function(n){!function(n){"use strict";if("function"==typeof bootstrap)bootstrap("promise",n);else if("object"==typeof e&&"object"==typeof t)t.exports=n();else if("function"==typeof define&&define.amd)define(n);else if("undefined"!=typeof ses){if(!ses.ok())return;ses.makeQ=n}else{if("undefined"==typeof window&&"undefined"==typeof self)throw new Error("This environment was not anticipated by Q. Please file a bug.");var r="undefined"!=typeof window?window:self,o=r.Q;r.Q=n(),r.Q.noConflict=function(){return r.Q=o,this}}}(function(){"use strict";function t(n){return function(){return J.apply(n,arguments)}}function e(n){return n===Object(n)}function r(n){return"[object StopIteration]"===rn(n)||n instanceof Q}function o(n,t){if($&&t.stack&&"object"==typeof n&&null!==n&&n.stack&&n.stack.indexOf(on)===-1){for(var e=[],r=t;r;r=r.source)r.stack&&e.unshift(r.stack);e.unshift(n.stack);var o=e.join("\n"+on+"\n");n.stack=i(o)}}function i(n){for(var t=n.split("\n"),e=[],r=0;r=z&&r<=ln}function c(){if($)try{throw new Error}catch(n){var t=n.stack.split("\n"),e=t[0].indexOf("@")>0?t[1]:t[2],r=a(e);if(!r)return;return U=r[0],r[1]}}function l(n,t,e){return function(){return"undefined"!=typeof console&&"function"==typeof console.warn&&console.warn(t+" is deprecated, use "+e+" instead.",new Error("").stack),n.apply(n,arguments)}}function s(n){return n instanceof v?n:w(n)?T(n):S(n)}function p(){function n(n){t=n,i.source=n,X(e,function(t,e){s.nextTick(function(){n.promiseDispatch.apply(n,e)})},void 0),e=void 0,r=void 0}var t,e=[],r=[],o=nn(p.prototype),i=nn(v.prototype);if(i.promiseDispatch=function(n,o,i){var u=G(arguments);e?(e.push(u), -"when"===o&&i[1]&&r.push(i[1])):s.nextTick(function(){t.promiseDispatch.apply(t,u)})},i.valueOf=function(){if(e)return i;var n=m(t);return g(n)&&(t=n),n},i.inspect=function(){return t?t.inspect():{state:"pending"}},s.longStackSupport&&$)try{throw new Error}catch(u){i.stack=u.stack.substring(u.stack.indexOf("\n")+1)}return o.promise=i,o.resolve=function(e){t||n(s(e))},o.fulfill=function(e){t||n(S(e))},o.reject=function(e){t||n(R(e))},o.notify=function(n){t||X(r,function(t,e){s.nextTick(function(){e(n)})},void 0)},o}function h(n){if("function"!=typeof n)throw new TypeError("resolver must be a function.");var t=p();try{n(t.resolve,t.reject,t.notify)}catch(e){t.reject(e)}return t.promise}function d(n){return h(function(t,e){for(var r=0,o=n.length;r=r)throw new TypeError}for(;e2?n.resolve(G(arguments,1)):n.resolve(e)}},s.Promise=h,s.promise=h,h.race=d,h.all=K,h.reject=R,h.resolve=s,s.passByCopy=function(n){return n},v.prototype.passByCopy=function(){return this},s.join=function(n,t){return s(n).join(t)},v.prototype.join=function(n){return s([this,n]).spread(function(n,t){if(n===t)return n;throw new Error("Can't join: not the same: "+n+" "+t)})},s.race=d,v.prototype.race=function(){return this.then(s.race)},s.makePromise=v,v.prototype.toString=function(){return"[object Promise]"},v.prototype.then=function(n,t,e){function r(t){try{return"function"==typeof n?n(t):t}catch(e){return R(e)}}function i(n){if("function"==typeof t){o(n,a);try{return t(n)}catch(e){return R(e)}}return R(n)}function u(n){return"function"==typeof e?e(n):n}var a=this,f=p(),c=!1;return s.nextTick(function(){a.promiseDispatch(function(n){c||(c=!0,f.resolve(r(n)))},"when",[function(n){c||(c=!0,f.resolve(i(n)))}])}),a.promiseDispatch(void 0,"when",[void 0,function(n){var t,e=!1;try{t=u(n)}catch(r){if(e=!0,!s.onerror)throw r;s.onerror(r)}e||f.notify(t)}]),f.promise},s.tap=function(n,t){return s(n).tap(t)},v.prototype.tap=function(n){return n=s(n),this.then(function(t){return n.fcall(t).thenResolve(t)})},s.when=y,v.prototype.thenResolve=function(n){return this.then(function(){return n})},s.thenResolve=function(n,t){return s(n).thenResolve(t)},v.prototype.thenReject=function(n){return this.then(function(){throw n})},s.thenReject=function(n,t){return s(n).thenReject(t)},s.nearer=m,s.isPromise=g,s.isPromiseAlike=w,s.isPending=b,v.prototype.isPending=function(){return"pending"===this.inspect().state},s.isFulfilled=_,v.prototype.isFulfilled=function(){return"fulfilled"===this.inspect().state},s.isRejected=k,v.prototype.isRejected=function(){return"rejected"===this.inspect().state};var un=[],an=[],fn=[],cn=!0;s.resetUnhandledRejections=j,s.getUnhandledReasons=function(){return un.slice()},s.stopUnhandledRejectionTracking=function(){j(),cn=!1},j(),s.reject=R,s.fulfill=S,s.master=C,s.spread=O,v.prototype.spread=function(n,t){return this.all().then(function(t){return n.apply(void 0,t)},t)},s.async=N,s.spawn=I,s["return"]=B,s.promised=A,s.dispatch=L,v.prototype.dispatch=function(n,t){var e=this,r=p();return s.nextTick(function(){e.promiseDispatch(r.resolve,n,t)}),r.promise},s.get=function(n,t){return s(n).dispatch("get",[t])},v.prototype.get=function(n){return this.dispatch("get",[n])},s.set=function(n,t,e){return s(n).dispatch("set",[t,e])},v.prototype.set=function(n,t){return this.dispatch("set",[n,t])},s.del=s["delete"]=function(n,t){return s(n).dispatch("delete",[t])},v.prototype.del=v.prototype["delete"]=function(n){return this.dispatch("delete",[n])},s.mapply=s.post=function(n,t,e){return s(n).dispatch("post",[t,e])},v.prototype.mapply=v.prototype.post=function(n,t){return this.dispatch("post",[n,t])},s.send=s.mcall=s.invoke=function(n,t){return s(n).dispatch("post",[t,G(arguments,2)])},v.prototype.send=v.prototype.mcall=v.prototype.invoke=function(n){return this.dispatch("post",[n,G(arguments,1)])},s.fapply=function(n,t){return s(n).dispatch("apply",[void 0,t])},v.prototype.fapply=function(n){return this.dispatch("apply",[void 0,n])},s["try"]=s.fcall=function(n){return s(n).dispatch("apply",[void 0,G(arguments,1)])},v.prototype.fcall=function(){return this.dispatch("apply",[void 0,G(arguments)])},s.fbind=function(n){var t=s(n),e=G(arguments,1);return function(){return t.dispatch("apply",[this,e.concat(G(arguments))])}},v.prototype.fbind=function(){var n=this,t=G(arguments);return function(){return n.dispatch("apply",[this,t.concat(G(arguments))])}},s.keys=function(n){return s(n).dispatch("keys",[])},v.prototype.keys=function(){return this.dispatch("keys",[])},s.all=K,v.prototype.all=function(){return K(this)},s.any=D,v.prototype.any=function(){return D(this)},s.allResolved=l(P,"allResolved","allSettled"),v.prototype.allResolved=function(){return P(this)},s.allSettled=q,v.prototype.allSettled=function(){return this.then(function(n){return K(Y(n,function(n){function t(){return n.inspect()}return n=s(n),n.then(t,t)}))})},s.fail=s["catch"]=function(n,t){return s(n).then(void 0,t)},v.prototype.fail=v.prototype["catch"]=function(n){return this.then(void 0,n)},s.progress=F,v.prototype.progress=function(n){return this.then(void 0,void 0,n)},s.fin=s["finally"]=function(n,t){return s(n)["finally"](t)},v.prototype.fin=v.prototype["finally"]=function(n){return n=s(n),this.then(function(t){return n.fcall().then(function(){return t})},function(t){return n.fcall().then(function(){throw t})})},s.done=function(n,t,e,r){return s(n).done(t,e,r)},v.prototype.done=function(t,e,r){var i=function(n){s.nextTick(function(){if(o(n,u),!s.onerror)throw n;s.onerror(n)})},u=t||e||r?this.then(t,e,r):this;"object"==typeof n&&n&&n.domain&&(i=n.domain.bind(i)),u.then(void 0,i)},s.timeout=function(n,t,e){return s(n).timeout(t,e)},v.prototype.timeout=function(n,t){var e=p(),r=setTimeout(function(){t&&"string"!=typeof t||(t=new Error(t||"Timed out after "+n+" ms"),t.code="ETIMEDOUT"),e.reject(t)},n);return this.then(function(n){clearTimeout(r),e.resolve(n)},function(n){clearTimeout(r),e.reject(n)},e.notify),e.promise},s.delay=function(n,t){return void 0===t&&(t=n,n=void 0),s(n).delay(t)},v.prototype.delay=function(n){return this.then(function(t){var e=p();return setTimeout(function(){e.resolve(t)},n),e.promise})},s.nfapply=function(n,t){return s(n).nfapply(t)},v.prototype.nfapply=function(n){var t=p(),e=G(n);return e.push(t.makeNodeResolver()),this.fapply(e).fail(t.reject),t.promise},s.nfcall=function(n){var t=G(arguments,1);return s(n).nfapply(t)},v.prototype.nfcall=function(){var n=G(arguments),t=p();return n.push(t.makeNodeResolver()),this.fapply(n).fail(t.reject),t.promise},s.nfbind=s.denodeify=function(n){var t=G(arguments,1);return function(){var e=t.concat(G(arguments)),r=p();return e.push(r.makeNodeResolver()),s(n).fapply(e).fail(r.reject),r.promise}},v.prototype.nfbind=v.prototype.denodeify=function(){var n=G(arguments);return n.unshift(this),s.denodeify.apply(void 0,n)},s.nbind=function(n,t){var e=G(arguments,2);return function(){function r(){return n.apply(t,arguments)}var o=e.concat(G(arguments)),i=p();return o.push(i.makeNodeResolver()),s(r).fapply(o).fail(i.reject),i.promise}},v.prototype.nbind=function(){var n=G(arguments,0);return n.unshift(this),s.nbind.apply(void 0,n)},s.nmapply=s.npost=function(n,t,e){return s(n).npost(t,e)},v.prototype.nmapply=v.prototype.npost=function(n,t){var e=G(t||[]),r=p();return e.push(r.makeNodeResolver()),this.dispatch("post",[n,e]).fail(r.reject),r.promise},s.nsend=s.nmcall=s.ninvoke=function(n,t){var e=G(arguments,2),r=p();return e.push(r.makeNodeResolver()),s(n).dispatch("post",[t,e]).fail(r.reject),r.promise},v.prototype.nsend=v.prototype.nmcall=v.prototype.ninvoke=function(n){var t=G(arguments,1),e=p();return t.push(e.makeNodeResolver()),this.dispatch("post",[n,t]).fail(e.reject),e.promise},s.nodeify=M,v.prototype.nodeify=function(n){return n?void this.then(function(t){s.nextTick(function(){n(null,t)})},function(t){s.nextTick(function(){n(t)})}):this},s.noConflict=function(){throw new Error("Q.noConflict only works when Q is used as a global")};var ln=c();return s})}).call(this,n("pBGvAp"))},{pBGvAp:2}],4:[function(n,t,e){!function(t){"use strict";function e(n,t){function e(n){return n?o.isFunction(n.toJSON)?n.toJSON():n:null}function r(n,t,e){try{m({id:n,result:t,response:t},e)}catch(r){c(n,a,r,e)}}function f(n){return n instanceof Error?n.message:n instanceof XMLHttpRequest?"Request error: "+[n.status,n.method,n.url].join(" "):o.isString(n)?n:"unknown error"}function c(n,t,e,r){var o=f(e);return m({id:n,error:{code:t,message:o}},r),i.fcall(function(){throw new Error(o)})}function l(n,t){var r={},i=e(t);r[n]=!!o.isUndefined(i)||i,m(r,null)}function s(n){return{handler:function(t){return i.Promise(function(e,r){R7(n,t,function(n,t){n&&r(n),e(t)})})}}}function p(n){var t=n.source+":"+n.event,e="stream:"+t;R7.addStreamListener(t,o.bind(l,null,e))}function h(n){var t=n.control,e=n.context;return i.Promise(function(n,r){R7.navigate(t,e,function(t,e){t&&r(t),n(e)})})}function d(n){if(n){Array.isArray(n)&&(n=o.hashMap(n,!1));for(var t in n){var e=o.bind(l,null,"key",t);"Back"===t||"Exit"===t?g["onKey"+t]=e:R7.grabKey(t,e)}}}function v(n){if(n){Array.isArray(n)||(n=Object.keys(n));for(var t=0;t-1?0:-1:n?0:-1}function i(n){var t=this.cache,e=typeof n;if("boolean"==e||null==n)t[n]=!0;else{"number"!=e&&"string"!=e&&(e="object");var r="number"==e?n:b+n,o=t[e]||(t[e]={});"object"==e?(o[r]||(o[r]=[])).push(n):o[r]=!0}}function u(n){return n.charCodeAt(0)}function a(n,t){for(var e=n.criteria,r=t.criteria,o=-1,i=e.length;++oa||"undefined"==typeof u)return 1;if(u=_&&i===r,c=[];if(a){var l=f(t);l?(i=o,t=l):a=!1}for(;++e-1});return o.pop(),i.pop(),g&&(p(o),p(i)),u}function tn(n,t,e,r,o){(Ze(t)?Xn:fr)(t,function(t,i){var u,a,f=t,c=n[i];if(t&&((a=Ze(t))||cr(t))){for(var l=r.length;l--;)if(u=r[l]==t){c=o[l];break}if(!u){var s;e&&(f=e(c,t),(s="undefined"!=typeof f)&&(c=f)),s||(c=a?Ze(c)?c:[]:cr(c)?c:{}),r.push(t),o.push(c),s||tn(c,t,e,r,o)}}else e&&(f=e(c,t),"undefined"==typeof f&&(f=t)),"undefined"!=typeof f&&(c=f);n[i]=c})}function rn(n,t){return n+Ne(We()*(t-n+1))}function on(n,t,e){var i=-1,u=cn(),a=n?n.length:0,c=[],s=!t&&a>=_&&u===r,d=e||s?l():c;if(s){var v=f(d);u=o,d=v}for(;++i3&&"function"==typeof t[e-2])var r=k(t[--e-1],t[e--],2);else e>2&&"function"==typeof t[e-1]&&(r=t[--e]);for(var o=d(arguments,1,e),i=-1,u=l(),a=l();++i-1:"number"==typeof i?u=(Kn(n)?n.indexOf(t,e):o(n,t,e))>-1:fr(n,function(n){if(++r>=e)return!(u=n===t)}),u}function Vn(n,e,r){var o=!0;e=t.createCallback(e,r,3);var i=-1,u=n?n.length:0;if("number"==typeof u)for(;++ii&&(i=c)}else e=null==e&&Kn(n)?u:t.createCallback(e,r,3),Xn(n,function(n,t,r){var u=e(n,t,r);u>o&&(o=u,i=n)});return i}function et(n,e,r){var o=1/0,i=o;if("function"!=typeof e&&r&&r[e]===n&&(e=null),null==e&&Ze(n))for(var a=-1,f=n.length;++a=_&&f(t?n[t]:c)))}var d=n[0],v=-1,y=d?d.length:0,m=[];n:for(;++v>>1;r(n[a])1?arguments:arguments[0],t=-1,e=n?tt(hr(n,"length")):0,r=de(e<0?0:e);++t2?an(n,17,d(arguments,2),null,t):an(n,1,null,null,t)}function Kt(n){for(var t=arguments.length>1?Y(arguments,!0,!1,1):_n(n),e=-1,r=t.length;++e2?an(t,19,d(arguments,2),null,n):an(t,3,null,null,n)}function Dt(){for(var n=arguments,t=n.length;t--;)if(!On(n[t]))throw new je;return function(){for(var t=arguments,e=n.length;e--;)t=[n[e].apply(this,t)];return t[0]}}function qt(n,t){return t="number"==typeof t?t:+t||n.length,an(n,4,null,null,null,t)}function Ft(n,t,e){var r,o,i,u,a,f,c,l=0,s=!1,p=!0;if(!On(n))throw new je;if(t=Ue(0,t)||0,e===!0){var h=!0;p=!1}else Nn(e)&&(h=e.leading,s="maxWait"in e&&(Ue(t,e.maxWait)||0),p="trailing"in e?e.trailing:p);var d=function(){var e=t-(vr()-u);if(e<=0){o&&Oe(o);var s=c;o=f=c=y,s&&(l=vr(),i=n.apply(a,r),f||o||(r=a=null))}else f=Ke(d,e)},v=function(){f&&Oe(f),o=f=c=y,(p||s!==t)&&(l=vr(),i=n.apply(a,r),f||o||(r=a=null))};return function(){if(r=arguments,u=vr(),a=this,c=p&&(f||!h),s===!1)var e=h&&!f;else{o||h||(l=u);var y=s-(u-l),m=y<=0;m?(o&&(o=Oe(o)),l=u,i=n.apply(a,r)):o||(o=Ke(v,y))}return m&&f?f=Oe(f):f||t===s||(f=Ke(d,t)),e&&(m=!0,i=n.apply(a,r)),!m||f||o||(r=a=null),i}}function Mt(n){if(!On(n))throw new je;var t=d(arguments,1);return Ke(function(){n.apply(y,t)},1)}function $t(n,t){if(!On(n))throw new je;var e=d(arguments,2);return Ke(function(){n.apply(y,e)},t)}function Qt(n,t){if(!On(n))throw new je;var e=function(){var r=e.cache,o=t?t.apply(this,arguments):b+arguments[0];return Le.call(r,o)?r[o]:r[o]=n.apply(this,arguments)};return e.cache={},e}function Ht(n){var t,e;if(!On(n))throw new je;return function(){return t?e:(t=!0,e=n.apply(this,arguments),n=null,e)}}function Ut(n){return an(n,16,d(arguments,1))}function zt(n){return an(n,32,null,d(arguments,1))}function Vt(n,t,e){var r=!0,o=!0;if(!On(n))throw new je;return e===!1?r=!1:Nn(e)&&(r="leading"in e?e.leading:r,o="trailing"in e?e.trailing:o),V.leading=r,V.maxWait=t,V.trailing=o,Ft(n,t,V)}function Wt(n,t){return an(t,16,[n])}function Jt(n){return function(){return n}}function Gt(n,t,e){var r=typeof n;if(null==n||"function"==r)return k(n,t,e);if("object"!=r)return ee(n);var o=nr(n),i=o[0],u=n[i];return 1!=o.length||u!==u||Nn(u)?function(t){for(var e=o.length,r=!1;e--&&(r=nn(t[o[e]],n[o[e]],null,!0)););return r}:function(n){var t=n[i];return u===t&&(0!==u||1/u==1/t)}}function Xt(n){return null==n?"":ke(n).replace(or,fn)}function Zt(n){return n}function Yt(n,r,o){var i=!0,u=r&&_n(r);r&&(o||u.length)||(null==o&&(o=r),a=e,r=n,n=t,u=_n(r)),o===!1?i=!1:Nn(o)&&"chain"in o&&(i=o.chain);var a=n,f=On(a);Xn(u,function(t){var e=n[t]=r[t];f&&(a.prototype[t]=function(){var t=this.__chain__,r=this.__wrapped__,o=[r];Ae.apply(o,arguments);var u=e.apply(n,o);if(i||t){if(r===u&&Nn(u))return this;u=new a(u),u.__chain__=t}return u})})}function ne(){return n._=Re,this}function te(){}function ee(n){return function(t){return t[n]}}function re(n,t,e){var r=null==n,o=null==t;if(null==e&&("boolean"==typeof n&&o?(e=n,n=1):o||"boolean"!=typeof t||(e=t,o=!0)),r&&o&&(t=1),n=+n||0,o?(t=n,n=0):t=+t||0,e||n%1||t%1){var i=We();return ze(n+i*(t-n+parseFloat("1e-"+((i+"").length-1))),t)}return rn(n,t)}function oe(n,t){if(n){var e=n[t];return On(e)?n[t]():e}}function ie(n,e,r){var o=t.templateSettings;n=ke(n||""),r=ur({},r,o);var i,u=ur({},r.imports,o.imports),a=nr(u),f=Hn(u),l=0,s=r.interpolate||I,p="__p += '",h=_e((r.escape||I).source+"|"+s.source+"|"+(s===O?S:I).source+"|"+(r.evaluate||I).source+"|$","g");n.replace(h,function(t,e,r,o,u,a){return r||(r=o),p+=n.slice(l,a).replace(L,c),e&&(p+="' +\n__e("+e+") +\n'"),u&&(i=!0,p+="';\n"+u+";\n__p += '"),r&&(p+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),l=a+t.length,t}),p+="';\n";var d=r.variable,v=d;v||(d="obj",p="with ("+d+") {\n"+p+"\n}\n"),p=(i?p.replace(x,""):p).replace(E,"$1").replace(R,"$1;"),p="function("+d+") {\n"+(v?"":d+" || ("+d+" = {});\n")+"var __t, __p = '', __e = _.escape"+(i?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var m="\n/*\n//# sourceURL="+(r.sourceURL||"/lodash/template/source["+K++ +"]")+"\n*/";try{var g=me(a,"return "+p+m).apply(y,f)}catch(w){throw w.source=p,w}return e?g(e):(g.source=p,g)}function ue(n,t,e){n=(n=+n)>-1?n:0;var r=-1,o=de(n);for(t=k(t,e,1);++r/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:O,variable:"",imports:{_:t}},Fe||(g=function(){function t(){}return function(e){if(Nn(e)){t.prototype=e;var r=new t;t.prototype=null}return r||n.Object()}}());var Xe=qe?function(n,t){W.value=t,qe(n,"__bindData__",W),W.value=null}:te,Ze=Me||function(n){return n&&"object"==typeof n&&"number"==typeof n.length&&Se.call(n)==D||!1},Ye=function(n){var t,e=n,r=[];if(!e)return r;if(!J[typeof n])return r;for(t in e)Le.call(e,t)&&r.push(t);return r},nr=He?function(n){return Nn(n)?He(n):[]}:Ye,tr={"&":"&","<":"<",">":">",'"':""","'":"'"},er=jn(tr),rr=_e("("+nr(er).join("|")+")","g"),or=_e("["+nr(tr).join("")+"]","g"),ir=function(n,t,e){var r,o=n,i=o;if(!o)return i;var u=arguments,a=0,f="number"==typeof e?2:u.length;if(f>3&&"function"==typeof u[f-2])var c=k(u[--f-1],u[f--],2);else f>2&&"function"==typeof u[f-1]&&(c=u[--f]);for(;++a/g,N=RegExp("^["+j+"]*0+(?=.$)"),I=/($^)/,B=/\bthis\b/,L=/['\n\r\t\u2028\u2029\\]/g,A=["Array","Boolean","Date","Function","Math","Number","Object","RegExp","String","_","attachEvent","clearTimeout","isFinite","isNaN","parseInt","setTimeout"],K=0,P="[object Arguments]",D="[object Array]",q="[object Boolean]",F="[object Date]",M="[object Function]",$="[object Number]",Q="[object Object]",H="[object RegExp]",U="[object String]",z={};z[M]=!1,z[P]=z[D]=z[q]=z[F]=z[$]=z[Q]=z[H]=z[U]=!0;var V={leading:!1,maxWait:0,trailing:!1},W={configurable:!1,enumerable:!1,value:null,writable:!1},J={"boolean":!1,"function":!0,object:!0,number:!1,string:!1,undefined:!1},G={"\\":"\\","'":"'","\n":"n","\r":"r","\t":"t","\u2028":"u2028","\u2029":"u2029"},X=J[typeof window]&&window||this,Z=J[typeof e]&&e&&!e.nodeType&&e,Y=J[typeof t]&&t&&!t.nodeType&&t,nn=Y&&Y.exports===Z&&Z,tn=J[typeof n]&&n;!tn||tn.global!==tn&&tn.window!==tn||(X=tn);var en=v();"function"==typeof define&&"object"==typeof define.amd&&define.amd?(X._=en,define(function(){return en})):Z&&Y?nn?(Y.exports=en)._=en:Z._=en:X._=en}).call(this)}).call(this,"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],2:[function(n,t,e){function r(){}var o=t.exports={};o.nextTick=function(){var n="undefined"!=typeof window&&window.setImmediate,t="undefined"!=typeof window&&window.postMessage&&window.addEventListener;if(n)return function(n){return window.setImmediate(n)};if(t){var e=[];return window.addEventListener("message",function(n){var t=n.source;if((t===window||null===t)&&"process-tick"===n.data&&(n.stopPropagation(),e.length>0)){var r=e.shift();r()}},!0),function(n){e.push(n),window.postMessage("process-tick","*")}}return function(n){setTimeout(n,0)}}(),o.title="browser",o.browser=!0,o.env={},o.argv=[],o.on=r,o.addListener=r,o.once=r,o.off=r,o.removeListener=r,o.removeAllListeners=r,o.emit=r,o.binding=function(n){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(n){throw new Error("process.chdir is not supported")}},{}],3:[function(n,t,e){(function(n){!function(n){"use strict";if("function"==typeof bootstrap)bootstrap("promise",n);else if("object"==typeof e&&"object"==typeof t)t.exports=n();else if("function"==typeof define&&define.amd)define(n);else if("undefined"!=typeof ses){if(!ses.ok())return;ses.makeQ=n}else{if("undefined"==typeof window&&"undefined"==typeof self)throw new Error("This environment was not anticipated by Q. Please file a bug.");var r="undefined"!=typeof window?window:self,o=r.Q;r.Q=n(),r.Q.noConflict=function(){return r.Q=o,this}}}(function(){"use strict";function t(n){return function(){return J.apply(n,arguments)}}function e(n){return n===Object(n)}function r(n){return"[object StopIteration]"===on(n)||n instanceof U}function o(n,t){if($&&t.stack&&"object"==typeof n&&null!==n&&n.stack){for(var e=[],r=t;r;r=r.source)r.stack&&(!n.__minimumStackCounter__||n.__minimumStackCounter__>r.stackCounter)&&(tn(n,"__minimumStackCounter__",{value:r.stackCounter,configurable:!0}),e.unshift(r.stack));e.unshift(n.stack);var o=e.join("\n"+un+"\n"),u=i(o);tn(n,"stack",{value:u,configurable:!0})}}function i(n){for(var t=n.split("\n"),e=[],r=0;r=z&&r<=pn}function c(){if($)try{throw new Error}catch(n){var t=n.stack.split("\n"),e=t[0].indexOf("@")>0?t[1]:t[2],r=a(e);if(!r)return;return H=r[0],r[1]}}function l(n,t,e){return function(){return"undefined"!=typeof console&&"function"==typeof console.warn&&console.warn(t+" is deprecated, use "+e+" instead.",new Error("").stack),n.apply(n,arguments)}}function s(n){return n instanceof v?n:w(n)?C(n):S(n)}function p(){function n(n){t=n,s.longStackSupport&&$&&(i.source=n),X(e,function(t,e){s.nextTick(function(){ +n.promiseDispatch.apply(n,e)})},void 0),e=void 0,r=void 0}var t,e=[],r=[],o=nn(p.prototype),i=nn(v.prototype);if(i.promiseDispatch=function(n,o,i){var u=G(arguments);e?(e.push(u),"when"===o&&i[1]&&r.push(i[1])):s.nextTick(function(){t.promiseDispatch.apply(t,u)})},i.valueOf=function(){if(e)return i;var n=m(t);return g(n)&&(t=n),n},i.inspect=function(){return t?t.inspect():{state:"pending"}},s.longStackSupport&&$)try{throw new Error}catch(u){i.stack=u.stack.substring(u.stack.indexOf("\n")+1),i.stackCounter=an++}return o.promise=i,o.resolve=function(e){t||n(s(e))},o.fulfill=function(e){t||n(S(e))},o.reject=function(e){t||n(R(e))},o.notify=function(n){t||X(r,function(t,e){s.nextTick(function(){e(n)})},void 0)},o}function h(n){if("function"!=typeof n)throw new TypeError("resolver must be a function.");var t=p();try{n(t.resolve,t.reject,t.notify)}catch(e){t.reject(e)}return t.promise}function d(n){return h(function(t,e){for(var r=0,o=n.length;r=r)throw new TypeError}for(;e2?n.resolve(G(arguments,1)):n.resolve(e)}},s.Promise=h,s.promise=h,h.race=d,h.all=K,h.reject=R,h.resolve=s,s.passByCopy=function(n){return n},v.prototype.passByCopy=function(){return this},s.join=function(n,t){return s(n).join(t)},v.prototype.join=function(n){return s([this,n]).spread(function(n,t){if(n===t)return n;throw new Error("Q can't join: not the same: "+n+" "+t)})},s.race=d,v.prototype.race=function(){return this.then(s.race)},s.makePromise=v,v.prototype.toString=function(){return"[object Promise]"},v.prototype.then=function(n,t,e){function r(t){try{return"function"==typeof n?n(t):t}catch(e){return R(e)}}function i(n){if("function"==typeof t){o(n,a);try{return t(n)}catch(e){return R(e)}}return R(n)}function u(n){return"function"==typeof e?e(n):n}var a=this,f=p(),c=!1;return s.nextTick(function(){a.promiseDispatch(function(n){c||(c=!0,f.resolve(r(n)))},"when",[function(n){c||(c=!0,f.resolve(i(n)))}])}),a.promiseDispatch(void 0,"when",[void 0,function(n){var t,e=!1;try{t=u(n)}catch(r){if(e=!0,!s.onerror)throw r;s.onerror(r)}e||f.notify(t)}]),f.promise},s.tap=function(n,t){return s(n).tap(t)},v.prototype.tap=function(n){return n=s(n),this.then(function(t){return n.fcall(t).thenResolve(t)})},s.when=y,v.prototype.thenResolve=function(n){return this.then(function(){return n})},s.thenResolve=function(n,t){return s(n).thenResolve(t)},v.prototype.thenReject=function(n){return this.then(function(){throw n})},s.thenReject=function(n,t){return s(n).thenReject(t)},s.nearer=m,s.isPromise=g,s.isPromiseAlike=w,s.isPending=b,v.prototype.isPending=function(){return"pending"===this.inspect().state},s.isFulfilled=_,v.prototype.isFulfilled=function(){return"fulfilled"===this.inspect().state},s.isRejected=k,v.prototype.isRejected=function(){return"rejected"===this.inspect().state};var fn=[],cn=[],ln=[],sn=!0;s.resetUnhandledRejections=j,s.getUnhandledReasons=function(){return fn.slice()},s.stopUnhandledRejectionTracking=function(){j(),sn=!1},j(),s.reject=R,s.fulfill=S,s.master=T,s.spread=O,v.prototype.spread=function(n,t){return this.all().then(function(t){return n.apply(void 0,t)},t)},s.async=N,s.spawn=I,s["return"]=B,s.promised=L,s.dispatch=A,v.prototype.dispatch=function(n,t){var e=this,r=p();return s.nextTick(function(){e.promiseDispatch(r.resolve,n,t)}),r.promise},s.get=function(n,t){return s(n).dispatch("get",[t])},v.prototype.get=function(n){return this.dispatch("get",[n])},s.set=function(n,t,e){return s(n).dispatch("set",[t,e])},v.prototype.set=function(n,t){return this.dispatch("set",[n,t])},s.del=s["delete"]=function(n,t){return s(n).dispatch("delete",[t])},v.prototype.del=v.prototype["delete"]=function(n){return this.dispatch("delete",[n])},s.mapply=s.post=function(n,t,e){return s(n).dispatch("post",[t,e])},v.prototype.mapply=v.prototype.post=function(n,t){return this.dispatch("post",[n,t])},s.send=s.mcall=s.invoke=function(n,t){return s(n).dispatch("post",[t,G(arguments,2)])},v.prototype.send=v.prototype.mcall=v.prototype.invoke=function(n){return this.dispatch("post",[n,G(arguments,1)])},s.fapply=function(n,t){return s(n).dispatch("apply",[void 0,t])},v.prototype.fapply=function(n){return this.dispatch("apply",[void 0,n])},s["try"]=s.fcall=function(n){return s(n).dispatch("apply",[void 0,G(arguments,1)])},v.prototype.fcall=function(){return this.dispatch("apply",[void 0,G(arguments)])},s.fbind=function(n){var t=s(n),e=G(arguments,1);return function(){return t.dispatch("apply",[this,e.concat(G(arguments))])}},v.prototype.fbind=function(){var n=this,t=G(arguments);return function(){return n.dispatch("apply",[this,t.concat(G(arguments))])}},s.keys=function(n){return s(n).dispatch("keys",[])},v.prototype.keys=function(){return this.dispatch("keys",[])},s.all=K,v.prototype.all=function(){return K(this)},s.any=P,v.prototype.any=function(){return P(this)},s.allResolved=l(D,"allResolved","allSettled"),v.prototype.allResolved=function(){return D(this)},s.allSettled=q,v.prototype.allSettled=function(){return this.then(function(n){return K(Y(n,function(n){function t(){return n.inspect()}return n=s(n),n.then(t,t)}))})},s.fail=s["catch"]=function(n,t){return s(n).then(void 0,t)},v.prototype.fail=v.prototype["catch"]=function(n){return this.then(void 0,n)},s.progress=F,v.prototype.progress=function(n){return this.then(void 0,void 0,n)},s.fin=s["finally"]=function(n,t){return s(n)["finally"](t)},v.prototype.fin=v.prototype["finally"]=function(n){if(!n||"function"!=typeof n.apply)throw new Error("Q can't apply finally callback");return n=s(n),this.then(function(t){return n.fcall().then(function(){return t})},function(t){return n.fcall().then(function(){throw t})})},s.done=function(n,t,e,r){return s(n).done(t,e,r)},v.prototype.done=function(t,e,r){var i=function(n){s.nextTick(function(){if(o(n,u),!s.onerror)throw n;s.onerror(n)})},u=t||e||r?this.then(t,e,r):this;"object"==typeof n&&n&&n.domain&&(i=n.domain.bind(i)),u.then(void 0,i)},s.timeout=function(n,t,e){return s(n).timeout(t,e)},v.prototype.timeout=function(n,t){var e=p(),r=setTimeout(function(){t&&"string"!=typeof t||(t=new Error(t||"Timed out after "+n+" ms"),t.code="ETIMEDOUT"),e.reject(t)},n);return this.then(function(n){clearTimeout(r),e.resolve(n)},function(n){clearTimeout(r),e.reject(n)},e.notify),e.promise},s.delay=function(n,t){return void 0===t&&(t=n,n=void 0),s(n).delay(t)},v.prototype.delay=function(n){return this.then(function(t){var e=p();return setTimeout(function(){e.resolve(t)},n),e.promise})},s.nfapply=function(n,t){return s(n).nfapply(t)},v.prototype.nfapply=function(n){var t=p(),e=G(n);return e.push(t.makeNodeResolver()),this.fapply(e).fail(t.reject),t.promise},s.nfcall=function(n){var t=G(arguments,1);return s(n).nfapply(t)},v.prototype.nfcall=function(){var n=G(arguments),t=p();return n.push(t.makeNodeResolver()),this.fapply(n).fail(t.reject),t.promise},s.nfbind=s.denodeify=function(n){if(void 0===n)throw new Error("Q can't wrap an undefined function");var t=G(arguments,1);return function(){var e=t.concat(G(arguments)),r=p();return e.push(r.makeNodeResolver()),s(n).fapply(e).fail(r.reject),r.promise}},v.prototype.nfbind=v.prototype.denodeify=function(){var n=G(arguments);return n.unshift(this),s.denodeify.apply(void 0,n)},s.nbind=function(n,t){var e=G(arguments,2);return function(){function r(){return n.apply(t,arguments)}var o=e.concat(G(arguments)),i=p();return o.push(i.makeNodeResolver()),s(r).fapply(o).fail(i.reject),i.promise}},v.prototype.nbind=function(){var n=G(arguments,0);return n.unshift(this),s.nbind.apply(void 0,n)},s.nmapply=s.npost=function(n,t,e){return s(n).npost(t,e)},v.prototype.nmapply=v.prototype.npost=function(n,t){var e=G(t||[]),r=p();return e.push(r.makeNodeResolver()),this.dispatch("post",[n,e]).fail(r.reject),r.promise},s.nsend=s.nmcall=s.ninvoke=function(n,t){var e=G(arguments,2),r=p();return e.push(r.makeNodeResolver()),s(n).dispatch("post",[t,e]).fail(r.reject),r.promise},v.prototype.nsend=v.prototype.nmcall=v.prototype.ninvoke=function(n){var t=G(arguments,1),e=p();return t.push(e.makeNodeResolver()),this.dispatch("post",[n,t]).fail(e.reject),e.promise},s.nodeify=M,v.prototype.nodeify=function(n){return n?void this.then(function(t){s.nextTick(function(){n(null,t)})},function(t){s.nextTick(function(){n(t)})}):this},s.noConflict=function(){throw new Error("Q.noConflict only works when Q is used as a global")};var pn=c();return s})}).call(this,n("pBGvAp"))},{pBGvAp:2}],4:[function(n,t,e){!function(t){"use strict";function e(n,t){function e(n){return n?o.isFunction(n.toJSON)?n.toJSON():n:null}function r(n,t,e){try{m({id:n,result:t,response:t},e)}catch(r){c(n,a,r,e)}}function f(n){return n instanceof Error?n.message:n instanceof XMLHttpRequest?"Request error: "+[n.status,n.method,n.url].join(" "):o.isString(n)?n:"unknown error"}function c(n,t,e,r){var o=f(e);return m({id:n,error:{code:t,message:o}},r),i.fcall(function(){throw new Error(o)})}function l(n,t){var r={},i=e(t);r[n]=!!o.isUndefined(i)||i,m(r,null)}function s(n){return{handler:function(t){return i.Promise(function(e,r){R7(n,t,function(n,t){n&&r(n),e(t)})})}}}function p(n){var t=n.source+":"+n.event,e="stream:"+t;R7.addStreamListener(t,o.bind(l,null,e))}function h(n){var t=n.control,e=n.context;return i.Promise(function(n,r){R7.navigate(t,e,function(t,e){t&&r(t),n(e)})})}function d(n){if(n){Array.isArray(n)&&(n=o.hashMap(n,!1));for(var t in n){var e=o.bind(l,null,"key",t);"Back"===t||"Exit"===t?g["onKey"+t]=e:R7.grabKey(t,e)}}}function v(n){if(n){Array.isArray(n)||(n=Object.keys(n));for(var t=0;t