!function(){varn,t;(function(){n={}}).call(this),function(){(function(){vart=this,r=t._,e={},i=Array.prototype,u=Object.prototype,a=Function.prototype,c=i.push,o=i.slice,l=i.concat,f=u.toString,s=u.hasOwnProperty,p=i.forEach,h=i.map,v=i.reduce,y=i.reduceRight,d=i.filter,g=i.every,m=i.some,b=i.indexOf,_=i.lastIndexOf,w=Array.isArray,x=Object.keys,j=a.bind,A=function(n){returnninstanceofA?n:thisinstanceofA?void(this._wrapped=n):newA(n)};"undefined"!=typeofn?("undefined"!=typeofmodule&&module.exports&&(n=module.exports=A),n._=A):t._=A,A.VERSION="1.5.2";vark=function(n){return"[object Arguments]"===f.call(n)};k(arguments)||(k=function(n){return!(!n||!s.call(n,"callee")||"function"!=typeofn.callee)});varO=function(n){returnn.length===+n.length&&(k(n)||n.constructor!==Object)},E=A.each=A.forEach=function(n,t,r){if(null!=n)if(p&&n.forEach===p)n.forEach(t,r);elseif(O(n)){for(vari=0,u=n.length;i<u;i++)if(t.call(r,n[i],i,n)===e)return}elsefor(vara=A.keys(n),i=0,u=a.length;i<u;i++)if(t.call(r,n[a[i]],a[i],n)===e)return};A.map=A.collect=function(n,t,r){vare=[];returnnull==n?e:h&&n.map===h?n.map(t,r):(E(n,function(n,i,u){e.push(t.call(r,n,i,u))}),e)};varF="Reduce of empty array with no initial value";A.reduce=A.foldl=A.inject=function(n,t,r,e){vari=arguments.length>2;if(null==n&&(n=[]),v&&n.reduce===v)returne&&(t=A.bind(t,e)),i?n.reduce(t,r):n.reduce(t);if(E(n,function(n,u,a){i?r=t.call(e,r,n,u,a):(r=n,i=!0)}),!i)thrownewTypeError(F);returnr},A.reduceRight=A.foldr=function(n,t,r,e){vari=arguments.length>2;if(null==n&&(n=[]),y&&n.reduceRight===y)returne&&(t=A.bind(t,e)),i?n.reduceRight(t,r):n.reduceRight(t);varu=n.length;if(!O(n)){vara=A.keys(n);u=a.length}if(E(n,function(c,o,l){o=a?a[--u]:--u,i?r=t.call(e,r,n[o],o,l):(r=n[o],i=!0)}),!i)thrownewTypeError(F);returnr},A.find=A.detect=function(n,t,r){vare;returnM(n,function(n,i,u){if(t.call(r,n,i,u))returne=n,!0}),e},A.filter=A.select=function(n,t,r){vare=[];returnnull==n?e:d&&n.filter===d?n.filter(t,r):(E(n,function(n,i,u){t.call(r,n,i,u)&&e.push(n)}),e)},A.reject=function(n,t,r){returnA.filter(n,function(n,e,i){return!t.call(r,n,e,i)},r)},A.every=A.all=function(n,t,r){t||(t=A.identity);vari=!0;returnnull==n?i:g&&n.every===g?n.every(t,r):(E(n,function(n,u,a){if(!(i=i&&t.call(r,n,u,a)))returne}),!!i)};varM=A.some=A.any=function(n,t,r){t||(t=A.identity);vari=!1;returnnull==n?i:m&&n.some===m?n.some(t,r):(E(n,function(n,u,a){if(i||(i=t.call(r,n,u,a)))returne}),!!i)};A.contains=A.include=function(n,t){returnnull!=n&&(b&&n.indexOf===b?n.indexOf(t)!=-1:M(n,function(n){returnn===t}))},A.invoke=function(n,t){varr=o.call(arguments,2),e=A.isFunction(t);returnA.map(n,function(n){return(e?t:n[t]).apply(n,r)})},A.pluck=function(n,t){returnA.map(n,function(n){returnn[t]})},A.where=function(n,t,r){returnA.isEmpty(t)?r?void0:[]:A[r?"find":"filter"](n,function(n){for(varrint)if(t[r]!==n[r])return!1;return!0})},A.findWhere=function(n,t){returnA.where(n,t,!0)},A.max=function(n,t,r){if(!t&&A.isArray(n)&&n[0]===+n[0]&&n.length<65535)returnMath.max.apply(Math,n);if(!t&&A.isEmpty(n))return-(1/0);vare={computed:-(1/0),value:-(1/0)};returnE(n,function(n,i,u){vara=t?t.call(r,n,i,u):n;a>e.computed&&(e={value:n,computed:a})}),e.value},A.min=function(n,t,r){if(!t&&A.isArray(n)&&n[0]===+n[0]&&n.length<65535)returnMath.min.apply(Math,n);if(!t&&A.isEmpty(n))return1/0;vare={computed:1/0,value:1/0};returnE(n,function(n,i,u){vara=t?t.call(r,n,i,u):n;a<e.computed&&(e={value:n,computed:a})}),e.value},A.shuffle=function(n){vart,r=0,e=[];returnE(n,function(n){t=A.random(r++),e[r-1]=e[t],e[t]=n}),e},A.sample=function(n,t,r){returnarguments.length<2||r?n[A.random(n.length-1)]:A.shuffle(n).slice(0,Math.max(0,t))};varR=function(n){returnA.isFunction(n)?n:function(t){returnt[n]}};A.sortBy=function(n,t,r){vare=R(t);returnA.pluck(A.map(n,function(n,t,i){return{value:n,index:t,criteria:e.call(r,n,t,i)}}).sort(function(n,t){varr=n.criteria,e=t.criteria;if(r!==e){if(r>e||void0===r)return1;if(r<e||void0===e)return-1}returnn.index-t.index}),"value")};varS=f
!function(){vart=Package.underscore._,e,n,r;(function(){e=this}).call(this),function(){n=__meteor_runtime_config__.meteorEnv,r={isProduction:"production"===n.NODE_ENV,isDevelopment:"production"!==n.NODE_ENV,isClient:!0,isServer:!1,isCordova:!1},"object"==typeof__meteor_runtime_config__&&__meteor_runtime_config__.PUBLIC_SETTINGS&&(r.settings={public:__meteor_runtime_config__.PUBLIC_SETTINGS})}.call(this),function(){functione(t){if(t)returnr._debug("Exception in callback of async function",t.stack?t.stack:t)}if(r.isServer)varn=Npm.require("fibers/future");"object"==typeof__meteor_runtime_config__&&__meteor_runtime_config__.meteorRelease&&(r.release=__meteor_runtime_config__.meteorRelease),t.extend(r,{_get:function(t){for(vare=1;e<arguments.length;e++){if(!(arguments[e]int))return;t=t[arguments[e]]}returnt},_ensure:function(t){for(vare=1;e<arguments.length;e++){varn=arguments[e];nint||(t[n]={}),t=t[n]}returnt},_delete:function(t){for(vare=[t],n=!0,r=1;r<arguments.length-1;r++){varo=arguments[r];if(!(oint)){n=!1;break}if(t=t[o],"object"!=typeoft)break;e.push(t)}for(varr=e.length-1;r>=0;r--){varo=arguments[r+1];if(n)n=!1;elsefor(variine[r][o])return;deletee[r][o]}},wrapAsync:function(o,i){returnfunction(){for(vara=i||this,s=t.toArray(arguments),u,c=s.length-1;c>=0;--c){varl=s[c],f=typeofl;if("undefined"!==f){"function"===f&&(u=l);break}}if(!u){if(r.isClient)u=e;else{varp=newn;u=p.resolver()}++c}s[c]=r.bindEnvironment(u);var_=o.apply(a,s);returnp?p.wait():_}},_inherits:function(e,n){for(varrinn)t.has(n,r)&&(e[r]=n[r]);varo=function(){this.constructor=e};returno.prototype=n.prototype,e.prototype=newo,e.__super__=n.prototype,e}});varo=!1;r._wrapAsync=function(t,e){returno||(r._debug("Meteor._wrapAsync has been renamed to Meteor.wrapAsync"),o=!0),r.wrapAsync.apply(r,arguments)}}.call(this),function(){"use strict";functiont(){if(o.setImmediate){vart=function(t){o.setImmediate(t)};returnt.implementation="setImmediate",t}returnnull}functione(){functiont(t,e){return"string"==typeoft&&t.substring(0,e.length)===e}functione(e){if(e.source===o&&t(e.data,s)){varn=e.data.substring(s.length);try{a[n]&&a[n]()}finally{deletea[n]}}}if(!o.postMessage||o.importScripts)returnnull;varn=!0,r=o.onmessage;if(o.onmessage=function(){n=!1},o.postMessage("","*"),o.onmessage=r,!n)returnnull;vari=0,a={},s="Meteor._setImmediate."+Math.random()+".";o.addEventListener?o.addEventListener("message",e,!1):o.attachEvent("onmessage",e);varu=function(t){++i,a[i]=t,o.postMessage(s+i,"*")};returnu.implementation="postMessage",u}functionn(){vart=function(t){o.setTimeout(t,0)};returnt.implementation="setTimeout",t}varo=this;r._setImmediate=t()||e()||n()}.call(this),function(){vare=function(t){if(Package.ddp){vare=Package.ddp.DDP._CurrentInvocation;if(e.get()&&e.get().isSimulation)thrownewError("Can't set timers inside simulations");returnfunction(){e.withValue(null,t)}}returnt},n=function(t,n){returnr.bindEnvironment(e(n),t)};t.extend(r,{setTimeout:function(t,e){returnsetTimeout(n("setTimeout callback",t),e)},setInterval:function(t,e){returnsetInterval(n("setInterval callback",t),e)},clearInterval:function(t){returnclearInterval(t)},clearTimeout:function(t){returnclearTimeout(t)},defer:function(t){r._setImmediate(n("defer callback",t))}})}.call(this),function(){r.makeErrorType=function(t,e){varn=function(){Error.captureStackTrace?Error.captureStackTrace(this,n):this.stack=(newError).stack,e.apply(this,arguments),this.errorType=t};returnr._inherits(n,Error),n},r.Error=r.makeErrorType("Meteor.Error",function(t,e,n){varr=this;r.error=t,r.reason=e,r.details=n,r.reason?r.message=r.reason+" ["+r.error+"]":r.message="["+r.error+"]"}),r.Error.prototype.clone=function(){vart=this;returnnewr.Error(t.error,t.reason,t.details)}}.call(this),function(){r._noYieldsAllowed=function(t){returnt()},r._SynchronousQueue=function(){vart=this;t._tasks=[],t._running=!1,t._runTimeout=null},t.extend(r._SynchronousQueue.prototype,{runTask:function(e){varn=this;if(!n.safeToRunTask())thrownewError("Couldnotsync
!function(){vart=Package.meteor.Meteor,e=Package.meteor.global,r=Package.meteor.meteorEnv,n=Package.underscore._,o=Package["modules-runtime"].meteorInstall,i,s,a=o({node_modules:{meteor:{modules:{"client.js":["./install-packages.js","./stubs.js","./buffer.js","./process.js","reify/lib/runtime","./css",function(t,e,r){t("./install-packages.js"),t("./stubs.js"),t("./buffer.js"),t("./process.js"),t("reify/lib/runtime").enable(r.constructor),e.addStyles=t("./css").addStyles}],"buffer.js":["buffer",function(t){try{i=e.Buffer||t("buffer").Buffer}catch(t){}}],"css.js":function(t,e){varr=document,n=r.getElementsByTagName("head").item(0);e.addStyles=function(t){vare=r.createElement("style");e.setAttribute("type","text/css");varo=e.sheet||e.styleSheet;returno?o.cssText=t:e.appendChild(r.createTextNode(t)),n.appendChild(e)}},"install-packages.js":function(t,e,r){functionn(t,e){varr={};e?r[t+".js"]=[e,function(t,r,n){n.exports=t(e)}]:r[t+".js"]=function(e,r,n){n.exports=Package[t]},o({node_modules:{meteor:r}})}n("underscore"),n("meteor"),n("meteor-base"),n("mobile-experience"),n("modules-runtime"),n("modules","meteor/modules/client.js"),n("es5-shim","meteor/es5-shim/client.js"),n("promise","meteor/promise/client.js"),n("ecmascript-runtime","meteor/ecmascript-runtime/runtime.js"),n("babel-compiler"),n("ecmascript"),n("base64"),n("ejson"),n("id-map"),n("ordered-dict"),n("tracker"),n("babel-runtime","meteor/babel-runtime/babel-runtime.js"),n("random"),n("mongo-id"),n("diff-sequence"),n("geojson-utils","meteor/geojson-utils/main.js"),n("minimongo"),n("check","meteor/check/match.js"),n("retry"),n("ddp-common"),n("reload"),n("ddp-client"),n("ddp"),n("ddp-server"),n("allow-deny"),n("mongo"),n("blaze-html-templates"),n("reactive-var"),n("jquery","meteor/jquery/main.js"),n("standard-minifier-css"),n("standard-minifier-js"),n("shell-server"),n("standard-app-packages"),n("stylus"),n("autoupdate"),n("meteor-platform"),n("webapp"),n("logging"),n("deps"),n("reactive-dict"),n("session"),n("livedata"),n("observe-sequence"),n("htmljs"),n("blaze"),n("ui"),n("spacebars"),n("templating-compiler"),n("templating-runtime"),n("templating"),n("launch-screen"),n("design"),n("iron:core"),n("iron:dynamic-template"),n("iron:layout"),n("clinical:router-url"),n("clinical:router-middleware-stack"),n("clinical:router-location"),n("iron:controller"),n("clinical:router"),n("natestrauser:select2"),n("aldeed:simple-schema"),n("ohif:core","meteor/ohif:core/main.js"),n("ohif:cornerstone"),n("url"),n("http"),n("momentjs:moment"),n("validatejs"),n("ohif:viewerbase"),n("silentcicero:jszip"),n("ddp-rate-limiter"),n("localstorage"),n("callback-hook"),n("accounts-base","meteor/accounts-base/client_main.js"),n("raix:eventemitter"),n("aldeed:collection2-core"),n("aldeed:schema-index"),n("aldeed:schema-deny"),n("aldeed:collection2"),n("gilbertwat:bootstrap3-daterangepicker"),n("coffeescript"),n("practicalmeteor:chai"),n("practicalmeteor:loglevel"),n("ohif:log"),n("ohif:dicom-services"),n("ohif:wadoproxy"),n("ohif:study-list"),n("ohif:hanging-protocols"),n("aldeed:template-extension"),n("twbs:bootstrap"),n("fortawesome:fontawesome"),n("mrt:moment"),n("fastclick"),n("peppelg:bootstrap-3-modal"),n("hot-code-push"),n("mdg:validation-error"),n("service-configuration")},"process.js":["process",function(i,a,u){try{s=e.process||i("process")}catch(t){s={}}t.isServer?o({node_modules:{"process.js":function(t,e,r){r.exports=s}}}):(s.platform="browser",s.nextTick=s.nextTick||t._setImmediate),"object"!=typeofs.env&&(s.env={}),n.extend(s.env,r)}],"stubs.js":["meteor-node-stubs",function(t){try{t("meteor-node-stubs")}catch(t){}}],node_modules:{reify:{lib:{"runtime.js":["./entry.js","./utils.js",function(t,e,r){varn=t("./entry.js").Entry,o=t("./utils.js");e.enable=function(e){functionr(t){vare=t.exports;e&&"object"==typeofe&&(e.__esModule=!0)}vari=e.prototype;return"function"==typeofi.import&&"function"==typeofi.export?e:(i.resolve=i.resolve||functiont(e){thrownewError("Module.prototype.resolve not implemented")},i.runModuleSetters=functiont(e){varr=n.get(this.id);returnr&&r
if((p===o||!p)&&clearTimeout)returnp=clearTimeout,clearTimeout(t);try{returnp(t)}catch(e){try{returnp.call(null,t)}catch(e){returnp.call(this,t)}}}functiona(){y&&_&&(y=!1,_.length?d=_.concat(d):b=-1,d.length&&u())}functionu(){if(!y){vart=i(a);y=!0;for(vare=d.length;e;){for(_=d,d=[];++b<e;)_&&_[b].run();b=-1,e=d.length}_=null,y=!1,s(t)}}functionc(t,e){this.fun=t,this.array=e}functionf(){}varl=r.exports={},h,p;!function(){try{h="function"==typeofsetTimeout?setTimeout:n}catch(t){h=n}try{p="function"==typeofclearTimeout?clearTimeout:o}catch(t){p=o}}();vard=[],y=!1,_,b=-1;l.nextTick=function(t){vare=newArray(arguments.length-1);if(arguments.length>1)for(varr=1;r<arguments.length;r++)e[r-1]=arguments[r];d.push(newc(t,e)),1!==d.length||y||i(u)},c.prototype.run=function(){this.fun.apply(null,this.array)},l.title="browser",l.browser=!0,l.env={},l.argv=[],l.version="",l.versions={},l.on=f,l.addListener=f,l.once=f,l.off=f,l.removeListener=f,l.removeAllListeners=f,l.emit=f,l.binding=function(t){thrownewError("process.binding is not supported")},l.cwd=function(){return"/"},l.chdir=function(t){thrownewError("process.chdir is not supported")},l.umask=function(){return0}}},"domain-browser":{"package.json":function(t,e){e.name="domain-browser",e.version="1.1.7",e.main="./index.js"},"index.js":["events",function(t,e,r){"use strict";r.exports=function(){vare=t("events"),r={};returnr.createDomain=r.create=function(){functiont(t){r.emit("error",t)}varr=newe.EventEmitter;returnr.add=function(e){e.on("error",t)},r.remove=function(e){e.removeListener("error",t)},r.bind=function(e){returnfunction(){varr=Array.prototype.slice.call(arguments);try{e.apply(null,r)}catch(e){t(e)}}},r.intercept=function(e){returnfunction(r){if(r)t(r);else{varn=Array.prototype.slice.call(arguments,1);try{e.apply(null,n)}catch(e){t(e)}}}},r.run=function(e){try{e()}catch(e){t(e)}returnthis},r.dispose=function(){returnthis.removeAllListeners(),this},r.enter=r.exit=function(){returnthis},r},r}.call(this)}]},events:{"package.json":function(t,e){e.name="events",e.version="1.1.1",e.main="./events.js"},"events.js":function(t,e,r){functionn(){this._events=this._events||{},this._maxListeners=this._maxListeners||void0}functiono(t){return"function"==typeoft}functioni(t){return"number"==typeoft}functions(t){return"object"==typeoft&&null!==t}functiona(t){returnvoid0===t}r.exports=n,n.EventEmitter=n,n.prototype._events=void0,n.prototype._maxListeners=void0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(t){if(!i(t)||t<0||isNaN(t))throwTypeError("n must be a positive number");returnthis._maxListeners=t,this},n.prototype.emit=function(t){vare,r,n,i,u,c;if(this._events||(this._events={}),"error"===t&&(!this._events.error||s(this._events.error)&&!this._events.error.length)){if(e=arguments[1],einstanceofError)throwe;varf=newError('Uncaught, unspecified "error" event. ('+e+")");throwf.context=e,f}if(r=this._events[t],a(r))return!1;if(o(r))switch(arguments.length){case1:r.call(this);break;case2:r.call(this,arguments[1]);break;case3:r.call(this,arguments[1],arguments[2]);break;default:i=Array.prototype.slice.call(arguments,1),r.apply(this,i)}elseif(s(r))for(i=Array.prototype.slice.call(arguments,1),c=r.slice(),n=c.length,u=0;u<n;u++)c[u].apply(this,i);return!0},n.prototype.addListener=function(t,e){varr;if(!o(e))throwTypeError("listener must be a function");returnthis._events||(this._events={}),this._events.newListener&&this.emit("newListener",t,o(e.listener)?e.listener:e),this._events[t]?s(this._events[t])?this._events[t].push(e):this._events[t]=[this._events[t],e]:this._events[t]=e,s(this._events[t])&&!this._events[t].warned&&(r=a(this._maxListeners)?n.defaultMaxListeners:this._maxListeners,r&&r>0&&this._events[t].length>r&&(this._events[t].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[t].length),"function"==typeofconsole.trace&&console.trace())),this},n.prototype.on=n.prototype.addListener
h.f=function(t){returnq(l(t))}),o(o.G+o.W+o.F*!D,{Symbol:P});for(var$="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),tt=0;$.length>tt;)l($[tt++]);for(var$=k(l.store),tt=0;$.length>tt;)p($[tt++]);o(o.S+o.F*!D,"Symbol",{for:function(t){returnr(C,t+="")?C[t]:C[t]=P(t)},keyFor:functiont(e){if(W(e))returnd(C,e);throwTypeError(e+" is not a symbol!")},useSetter:function(){G=!0},useSimple:function(){G=!1}}),o(o.S+o.F*!D,"Object",{create:V,defineProperty:J,defineProperties:K,getOwnPropertyDescriptor:Q,getOwnPropertyNames:Z,getOwnPropertySymbols:H}),T&&o(o.S+o.F*(!D||a(function(){vart=P();return"[null]"!=R([t])||"{}"!=R({a:t})||"{}"!=R(Object(t))})),"JSON",{stringify:functiont(e){if(void0!==e&&!W(e)){for(varr=[e],n=1,o,i;arguments.length>n;)r.push(arguments[n++]);returno=r[1],"function"==typeofo&&(i=o),!i&&_(o)||(o=function(t,e){if(i&&(e=i.call(this,t,e)),!W(e))returne}),r[1]=o,R.apply(T,r)}}}),P[L][B]||t("./_hide")(P[L],B,P[L].valueOf),c(P,"Symbol"),c(Math,"Math",!0),c(e.JSON,"JSON",!0)}],"_meta.js":["./_uid","./_is-object","./_has","./_object-dp","./_fails",function(t,e,r){varn=t("./_uid")("meta"),o=t("./_is-object"),i=t("./_has"),s=t("./_object-dp").f,a=0,u=Object.isExtensible||function(){return!0},c=!t("./_fails")(function(){returnu(Object.preventExtensions({}))}),f=function(t){s(t,n,{value:{i:"O"+++a,w:{}}})},l=function(t,e){if(!o(t))return"symbol"==typeoft?t:("string"==typeoft?"S":"P")+t;if(!i(t,n)){if(!u(t))return"F";if(!e)return"E";f(t)}returnt[n].i},h=function(t,e){if(!i(t,n)){if(!u(t))return!0;if(!e)return!1;f(t)}returnt[n].w},p=function(t){returnc&&d.NEED&&u(t)&&!i(t,n)&&f(t),t},d=r.exports={KEY:n,NEED:!1,fastKey:l,getWeak:h,onFreeze:p}}],"_wks-define.js":["./_global","./_core","./_library","./_wks-ext","./_object-dp",function(t,e,r){varn=t("./_global"),o=t("./_core"),i=t("./_library"),s=t("./_wks-ext"),a=t("./_object-dp").f;r.exports=function(t){vare=o.Symbol||(o.Symbol=i?{}:n.Symbol||{});"_"==t.charAt(0)||tine||a(e,t,{value:s.f(t)})}}],"_keyof.js":["./_object-keys","./_to-iobject",function(t,e,r){varn=t("./_object-keys"),o=t("./_to-iobject");r.exports=function(t,e){for(varr=o(t),i=n(r),s=i.length,a=0,u;s>a;)if(r[u=i[a++]]===e)returnu}}],"_enum-keys.js":["./_object-keys","./_object-gops","./_object-pie",function(t,e,r){varn=t("./_object-keys"),o=t("./_object-gops"),i=t("./_object-pie");r.exports=function(t){vare=n(t),r=o.f;if(r)for(vars=r(t),a=i.f,u=0,c;s.length>u;)a.call(t,c=s[u++])&&e.push(c);returne}}],"_object-gops.js":function(t,e){e.f=Object.getOwnPropertySymbols},"_object-pie.js":function(t,e){e.f={}.propertyIsEnumerable},"_is-array.js":["./_cof",function(t,e,r){varn=t("./_cof");r.exports=Array.isArray||functiont(e){return"Array"==n(e)}}],"_object-gopn-ext.js":["./_to-iobject","./_object-gopn",function(t,e,r){varn=t("./_to-iobject"),o=t("./_object-gopn").f,i={}.toString,s="object"==typeofwindow&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],a=function(t){try{returno(t)}catch(t){returns.slice()}};r.exports.f=functiont(e){returns&&"[object Window]"==i.call(e)?a(e):o(n(e))}}],"_object-gopn.js":["./_object-keys-internal","./_enum-bug-keys",function(t,e){varr=t("./_object-keys-internal"),n=t("./_enum-bug-keys").concat("length","prototype");e.f=Object.getOwnPropertyNames||functiont(e){returnr(e,n)}}],"_object-gopd.js":["./_object-pie","./_property-desc","./_to-iobject","./_to-primitive","./_has","./_ie8-dom-define","./_descriptors",function(t,e){varr=t("./_object-pie"),n=t("./_property-desc"),o=t("./_to-iobject"),i=t("./_to-primitive"),s=t("./_has"),a=t("./_ie8-dom-define"),u=Object.getOwnPropertyDescriptor;e.f=t("./_descriptors")?u:functiont(e,c){if(e=o(e),c=i(c,!0),a)try{returnu(e,c)}catch(t){}if(s(e,c))returnn(!r.f.call(e,c),e[c])}}],"es6.object.to-string.js":function(){},"es7.symbol.async-iterator.js":["./_wks-define",function(t){t("./_wks-define")("asyncIterator")}],"es7.symbol.observable.js":["./_wks-define",function(t){t("./_wks-define")("observable")}],"es6.ar
!function(){varn=Package.meteor.Meteor,e=Package.meteor.global,t=Package.meteor.meteorEnv,o=Package.modules.meteorInstall,i=Package.modules.Buffer,r=Package.modules.process,u,c=o({node_modules:{meteor:{promise:{"client.js":["meteor-promise","./common.js",function(n,e){n("meteor-promise").makeCompatible(e.Promise=n("./common.js").Promise)}],"common.js":["promise/lib/es6-extensions",function(e,t){varo=this;"function"==typeofo.Promise?t.Promise=o.Promise:t.Promise=e("promise/lib/es6-extensions"),t.Promise.prototype.done=function(e,t){varo=this;arguments.length>0&&(o=this.then.apply(this,arguments)),o.then(null,function(e){n._setImmediate(function(){throwe})})}}],node_modules:{"meteor-promise":{"package.json":function(n,e){e.name="meteor-promise",e.version="0.8.0",e.main="promise_client.js"},"promise_client.js":function(e,t){functiono(n){thrown}t.makeCompatible=function(e){vart=e.prototype.then;e.prototype.then=function(e,i){return"object"==typeofn&&"function"==typeofn.bindEnvironment?t.call(this,e&&n.bindEnvironment(e,o),i&&n.bindEnvironment(i,o)):t.call(this,e,i)}}}},promise:{lib:{"es6-extensions.js":["./core.js",function(n,e,t){"use strict";functiono(n){vare=newi(i._61);returne._81=1,e._65=n,e}vari=n("./core.js");t.exports=i;varr=o(!0),u=o(!1),c=o(null),f=o(void0),s=o(0),a=o("");i.resolve=function(n){if(ninstanceofi)returnn;if(null===n)returnc;if(void0===n)returnf;if(n===!0)returnr;if(n===!1)returnu;if(0===n)returns;if(""===n)returna;if("object"==typeofn||"function"==typeofn)try{vare=n.then;if("function"==typeofe)returnnewi(e.bind(n))}catch(n){returnnewi(function(e,t){t(n)})}returno(n)},i.all=function(n){vare=Array.prototype.slice.call(n);returnnewi(function(n,t){functiono(u,c){if(c&&("object"==typeofc||"function"==typeofc)){if(cinstanceofi&&c.then===i.prototype.then){for(;3===c._81;)c=c._65;return1===c._81?o(u,c._65):(2===c._81&&t(c._65),voidc.then(function(n){o(u,n)},t))}varf=c.then;if("function"==typeoff){vars=newi(f.bind(c));returnvoids.then(function(n){o(u,n)},t)}}e[u]=c,0===--r&&n(e)}if(0===e.length)returnn([]);for(varr=e.length,u=0;u<e.length;u++)o(u,e[u])})},i.reject=function(n){returnnewi(function(e,t){t(n)})},i.race=function(n){returnnewi(function(e,t){n.forEach(function(n){i.resolve(n).then(e,t)})})},i.prototype.catch=function(n){returnthis.then(null,n)}}],"core.js":["asap/raw",function(n,e,t){"use strict";functiono(){}functioni(n){try{returnn.then}catch(n){returnd=n,y}}functionr(n,e){try{returnn(e)}catch(n){returnd=n,y}}functionu(n,e,t){try{n(e,t)}catch(n){returnd=n,y}}functionc(n){if("object"!=typeofthis)thrownewTypeError("Promises must be constructed via new");if("function"!=typeofn)thrownewTypeError("not a function");this._45=0,this._81=0,this._65=null,this._54=null,n!==o&&_(n,this)}functionf(n,e,t){returnnewn.constructor(function(i,r){varu=newc(o);u.then(i,r),s(n,newh(e,t,u))})}functions(n,e){for(;3===n._81;)n=n._65;returnc._10&&c._10(n),0===n._81?0===n._45?(n._45=1,void(n._54=e)):1===n._45?(n._45=2,void(n._54=[n._54,e])):voidn._54.push(e):voida(n,e)}functiona(n,e){v(function(){vart=1===n._81?e.onFulfilled:e.onRejected;if(null===t)returnvoid(1===n._81?l(e.promise,n._65):m(e.promise,n._65));varo=r(t,n._65);o===y?m(e.promise,d):l(e.promise,o)})}functionl(n,e){if(e===n)returnm(n,newTypeError("A promise cannot be resolved with itself."));if(e&&("object"==typeofe||"function"==typeofe)){vart=i(e);if(t===y)returnm(n,d);if(t===n.then&&einstanceofc)returnn._81=3,n._65=e,voidp(n);if("function"==typeoft)returnvoid_(t.bind(e),n)}n._81=1,n._65=e,p(n)}functionm(n,e){n._81=2,n._65=e,c._97&&c._97(n,e),p(n)}functionp(n){if(1===n._45&&(s(n,n._54),n._54=null),2===n._45){for(vare=0;e<n._54.length;e++)s(n,n._54[e]);n._54=null}}functionh(n,e,t){this.onFulfilled="function"==typeofn?n:null,this.onRejected="function"==typeofe?e:null,this.promise=t}function_(n,e){vart=!1,o=u(n,function(n){t||(t=!0,l(e,n))},function(n){t||(t=!0,m(e,n))});t||o!==y||(t=!0,m(e,d))}varv=n("asap/raw"),d=null,y={};t.exports=c,c._10=null,c._97=n
!function(){varn=Package.meteor.Meteor,r=Package.meteor.global,e=Package.meteor.meteorEnv,a;(function(){for(varn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r={},e=0;e<n.length;e++)r[n.charAt(e)]=e;a={},a.encode=function(n){if("string"==typeofn){varr=n;n=a.newBinary(r.length);for(vare=0;e<r.length;e++){varl=r.charCodeAt(e);if(l>255)thrownewError("Not ascii. Base64.encode can only take ascii strings.");n[e]=l}}for(varu=[],i=null,o=null,c=null,f=null,e=0;e<n.length;e++)switch(e%3){case0:i=n[e]>>2&63,o=(3&n[e])<<4;break;case1:o|=n[e]>>4&15,c=(15&n[e])<<2;break;case2:c|=n[e]>>6&3,f=63&n[e],u.push(t(i)),u.push(t(o)),u.push(t(c)),u.push(t(f)),i=null,o=null,c=null,f=null}returnnull!=i&&(u.push(t(i)),u.push(t(o)),null==c?u.push("="):u.push(t(c)),null==f&&u.push("=")),u.join("")};vart=function(r){returnn.charAt(r)},l=function(n){return"="===n?-1:r[n]};a.newBinary=function(n){if("undefined"==typeofUint8Array||"undefined"==typeofArrayBuffer){for(varr=[],e=0;e<n;e++)r.push(0);returnr.$Uint8ArrayPolyfill=!0,r}returnnewUint8Array(newArrayBuffer(n))},a.decode=function(n){varr=Math.floor(3*n.length/4);"="==n.charAt(n.length-1)&&(r--,"="==n.charAt(n.length-2)&&r--);for(vare=a.newBinary(r),t=null,u=null,i=null,o=0,c=0;c<n.length;c++){varf=n.charAt(c),s=l(f);switch(c%4){case0:if(s<0)thrownewError("invalid base64 string");t=s<<2;break;case1:if(s<0)thrownewError("invalid base64 string");t|=s>>4,e[o++]=t,u=(15&s)<<4;break;case2:s>=0&&(u|=s>>2,e[o++]=u,i=(3&s)<<6);break;case3:s>=0&&(e[o++]=i|s)}}returne}}).call(this),"undefined"==typeofPackage&&(Package={}),function(n,r){for(vareinr)einn||(n[e]=r[e])}(Package.base64={},{Base64:a})}();
!function(){varn=Package.meteor.Meteor,e=Package.meteor.global,t=Package.meteor.meteorEnv,r=Package.underscore._,u=Package.base64.Base64,a,i;(function(){a={},i={};vare={};a.addType=function(n,t){if(r.has(e,n))thrownewError("Type "+n+" already present");e[n]=t};vart=function(n){returnr.isNaN(n)||n===1/0||n===-(1/0)},o=[{matchJSONValue:function(n){returnr.has(n,"$date")&&1===r.size(n)},matchObject:function(n){returnninstanceofDate},toJSONValue:function(n){return{$date:n.getTime()}},fromJSONValue:function(n){returnnewDate(n.$date)}},{matchJSONValue:function(n){returnr.has(n,"$InfNaN")&&1===r.size(n)},matchObject:t,toJSONValue:function(n){vare;returne=r.isNaN(n)?0:n===1/0?1:-1,{$InfNaN:e}},fromJSONValue:function(n){returnn.$InfNaN/0}},{matchJSONValue:function(n){returnr.has(n,"$binary")&&1===r.size(n)},matchObject:function(n){return"undefined"!=typeofUint8Array&&ninstanceofUint8Array||n&&r.has(n,"$Uint8ArrayPolyfill")},toJSONValue:function(n){return{$binary:u.encode(n)}},fromJSONValue:function(n){returnu.decode(n.$binary)}},{matchJSONValue:function(n){returnr.has(n,"$escape")&&1===r.size(n)},matchObject:function(n){return!(r.isEmpty(n)||r.size(n)>2)&&r.any(o,function(e){returne.matchJSONValue(n)})},toJSONValue:function(n){vare={};returnr.each(n,function(n,t){e[t]=a.toJSONValue(n)}),{$escape:e}},fromJSONValue:function(n){vare={};returnr.each(n.$escape,function(n,t){e[t]=a.fromJSONValue(n)}),e}},{matchJSONValue:function(n){returnr.has(n,"$type")&&r.has(n,"$value")&&2===r.size(n)},matchObject:function(n){returna._isCustomType(n)},toJSONValue:function(e){vart=n._noYieldsAllowed(function(){returne.toJSONValue()});return{$type:e.typeName(),$value:t}},fromJSONValue:function(t){varu=t.$type;if(!r.has(e,u))thrownewError("Custom EJSON type "+u+" is not defined");vara=e[u];returnn._noYieldsAllowed(function(){returna(t.$value)})}}];a._isCustomType=function(n){returnn&&"function"==typeofn.toJSONValue&&"function"==typeofn.typeName&&r.has(e,n.typeName())},a._getTypes=function(){returne},a._getConverters=function(){returno};varf=a._adjustTypesToJSONValue=function(n){if(null===n)returnnull;vare=c(n);returnvoid0!==e?e:"object"!=typeofn?n:(r.each(n,function(e,r){if("object"==typeofe||void0===e||t(e)){varu=c(e);returnu?void(n[r]=u):voidf(e)}}),n)},c=function(n){for(vare=0;e<o.length;e++){vart=o[e];if(t.matchObject(n))returnt.toJSONValue(n)}};a.toJSONValue=function(n){vare=c(n);returnvoid0!==e?e:("object"==typeofn&&(n=a.clone(n),f(n)),n)};varl=a._adjustTypesFromJSONValue=function(n){if(null===n)returnnull;vare=s(n);returne!==n?e:"object"!=typeofn?n:(r.each(n,function(e,t){if("object"==typeofe){varr=s(e);if(e!==r)returnvoid(n[t]=r);l(e)}}),n)},s=function(n){if("object"==typeofn&&null!==n&&r.size(n)<=2&&r.all(n,function(n,e){return"string"==typeofe&&"$"===e.substr(0,1)}))for(vare=0;e<o.length;e++){vart=o[e];if(t.matchJSONValue(n))returnt.fromJSONValue(n)}returnn};a.fromJSONValue=function(n){vare=s(n);returne===n&&"object"==typeofn?(n=a.clone(n),l(n),n):e},a.stringify=function(n,e){vart=a.toJSONValue(n);returne&&(e.canonical||e.indent)?a._canonicalStringify(t,e):JSON.stringify(t)},a.parse=function(n){if("string"!=typeofn)thrownewError("EJSON.parse argument should be a string");returna.fromJSONValue(JSON.parse(n))},a.isBinary=function(n){return!!("undefined"!=typeofUint8Array&&ninstanceofUint8Array||n&&n.$Uint8ArrayPolyfill)},a.equals=function(n,e,t){varu,i=!(!t||!t.keyOrderSensitive);if(n===e)return!0;if(r.isNaN(n)&&r.isNaN(e))return!0;if(!n||!e)return!1;if("object"!=typeofn||"object"!=typeofe)return!1;if(ninstanceofDate&&einstanceofDate)returnn.valueOf()===e.valueOf();if(a.isBinary(n)&&a.isBinary(e)){if(n.length!==e.length)return!1;for(u=0;u<n.length;u++)if(n[u]!==e[u])return!1;return!0}if("function"==typeofn.equals)returnn.equals(e,t);if("function"==typeofe.equals)returne.equals(n,t);if(ninstanceofArray){if(!(einstanceofArray))return!1;if(n.length!==e.length)return!1;for(u=0;u<n.length;u++)if(!a.equals(n[u],e[u],t))return!1;return!0}switch(a._is
!function(){vart=Package.meteor.Meteor,e=Package.meteor.global,r=Package.meteor.meteorEnv,n=Package.underscore._,i;(function(){vart=function(t,e,r,n){return{key:t,value:e,next:r,prev:n}};i=function(){vart=this;t._dict={},t._first=null,t._last=null,t._size=0;vare=n.toArray(arguments);t._stringify=function(t){returnt},"function"==typeofe[0]&&(t._stringify=e.shift()),n.each(e,function(e){t.putBefore(e[0],e[1],null)})},n.extend(i.prototype,{_k:function(t){return" "+this._stringify(t)},empty:function(){vart=this;return!t._first},size:function(){vart=this;returnt._size},_linkEltIn:function(t){vare=this;t.next?(t.prev=t.next.prev,t.next.prev=t,t.prev&&(t.prev.next=t)):(t.prev=e._last,e._last&&(e._last.next=t),e._last=t),null!==e._first&&e._first!==t.next||(e._first=t)},_linkEltOut:function(t){vare=this;t.next&&(t.next.prev=t.prev),t.prev&&(t.prev.next=t.next),t===e._last&&(e._last=t.prev),t===e._first&&(e._first=t.next)},putBefore:function(e,r,n){vari=this;if(i._dict[i._k(e)])thrownewError("Item "+e+" already present in OrderedDict");varo=n?t(e,r,i._dict[i._k(n)]):t(e,r,null);if(void0===o.next)thrownewError("could not find item to put this one before");i._linkEltIn(o),i._dict[i._k(e)]=o,i._size++},append:function(t,e){varr=this;r.putBefore(t,e,null)},remove:function(t){vare=this,r=e._dict[e._k(t)];if(void0===r)thrownewError("Item "+t+" not present in OrderedDict");returne._linkEltOut(r),e._size--,deletee._dict[e._k(t)],r.value},get:function(t){vare=this;if(e.has(t))returne._dict[e._k(t)].value},has:function(t){vare=this;returnn.has(e._dict,e._k(t))},forEach:function(t){for(vare=this,r=0,n=e._first;null!==n;){varo=t(n.value,n.key,r);if(o===i.BREAK)return;n=n.next,r++}},first:function(){vart=this;if(!t.empty())returnt._first.key},firstValue:function(){vart=this;if(!t.empty())returnt._first.value},last:function(){vart=this;if(!t.empty())returnt._last.key},lastValue:function(){vart=this;if(!t.empty())returnt._last.value},prev:function(t){vare=this;if(e.has(t)){varr=e._dict[e._k(t)];if(r.prev)returnr.prev.key}returnnull},next:function(t){vare=this;if(e.has(t)){varr=e._dict[e._k(t)];if(r.next)returnr.next.key}returnnull},moveBefore:function(t,e){varr=this,n=r._dict[r._k(t)],i=e?r._dict[r._k(e)]:null;if(void0===n)thrownewError("Item to move is not present");if(void0===i)thrownewError("Could not find element to move this one before");i!==n.next&&(r._linkEltOut(n),n.next=i,r._linkEltIn(n))},indexOf:function(t){vare=this,r=null;returne.forEach(function(n,o,f){if(e._k(o)===e._k(t))returnr=f,i.BREAK}),r},_checkRep:function(){vart=this;n.each(t._dict,function(t,e){if(e.next===e)thrownewError("Next is a loop");if(e.prev===e)thrownewError("Prev is a loop")})}}),i.BREAK={break:!0}}).call(this),"undefined"==typeofPackage&&(Package={}),function(t,e){for(varrine)rint||(t[r]=e[r])}(Package["ordered-dict"]={},{OrderedDict:i})}();
!function(){varn=Package.meteor.Meteor,t=Package.meteor.global,e=Package.meteor.meteorEnv,o,r;(function(){o={},o.active=!1,o.currentComputation=null;vart=function(n){o.currentComputation=n,o.active=!!n},e=function(){return"undefined"!=typeofn?n._debug:"undefined"!=typeofconsole&&console.error?function(){console.error.apply(console,arguments)}:function(){}},r=function(t){"undefined"!=typeofn&&n._suppressed_log_expected()&&n._suppress_log(t-1)},i=function(n,t){if(l)throwt;varo=["Exception from Tracker "+n+" function:"];if(t.stack&&t.message&&t.name){vari=t.stack.indexOf(t.message);if(i<0||i>t.name.length+2){vara=t.name+": "+t.message;o.push(a)}}o.push(t.stack),r(o.length);for(varu=0;u<o.length;u++)e()(o[u])},a=function(t){return"undefined"==typeofn||n.isClient?t:function(){vare=arguments;n._noYieldsAllowed(function(){t.apply(null,e)})}},u=1,c=[],p=!1,s=!1,f=!1,l=!1,d=[],h=function(){p||("undefined"!=typeofn?n._setImmediate(o._runFlush):setTimeout(o._runFlush,0),p=!0)},v=!1;o.Computation=function(n,t,e){if(!v)thrownewError("Tracker.Computation constructor is private; use Tracker.autorun");v=!1;varo=this;o.stopped=!1,o.invalidated=!1,o.firstRun=!0,o._id=u++,o._onInvalidateCallbacks=[],o._onStopCallbacks=[],o._parent=t,o._func=n,o._onError=e,o._recomputing=!1;varr=!0;try{o._compute(),r=!1}finally{o.firstRun=!1,r&&o.stop()}},o.Computation.prototype.onInvalidate=function(n){vart=this;if("function"!=typeofn)thrownewError("onInvalidate requires a function");t.invalidated?o.nonreactive(function(){a(n)(t)}):t._onInvalidateCallbacks.push(n)},o.Computation.prototype.onStop=function(n){vart=this;if("function"!=typeofn)thrownewError("onStop requires a function");t.stopped?o.nonreactive(function(){a(n)(t)}):t._onStopCallbacks.push(n)},o.Computation.prototype.invalidate=function(){varn=this;if(!n.invalidated){n._recomputing||n.stopped||(h(),c.push(this)),n.invalidated=!0;for(vart=0,e;e=n._onInvalidateCallbacks[t];t++)o.nonreactive(function(){a(e)(n)});n._onInvalidateCallbacks=[]}},o.Computation.prototype.stop=function(){varn=this;if(!n.stopped){n.stopped=!0,n.invalidate();for(vart=0,e;e=n._onStopCallbacks[t];t++)o.nonreactive(function(){a(e)(n)});n._onStopCallbacks=[]}},o.Computation.prototype._compute=function(){varn=this;n.invalidated=!1;vare=o.currentComputation;t(n);varr=f;f=!0;try{a(n._func)(n)}finally{t(e),f=r}},o.Computation.prototype._needsRecompute=function(){varn=this;returnn.invalidated&&!n.stopped},o.Computation.prototype._recompute=function(){varn=this;n._recomputing=!0;try{if(n._needsRecompute())try{n._compute()}catch(t){n._onError?n._onError(t):i("recompute",t)}}finally{n._recomputing=!1}},o.Computation.prototype.flush=function(){varn=this;n._recomputing||n._recompute()},o.Computation.prototype.run=function(){varn=this;n.invalidate(),n.flush()},o.Dependency=function(){this._dependentsById={}},o.Dependency.prototype.depend=function(n){if(!n){if(!o.active)return!1;n=o.currentComputation}vart=this,e=n._id;return!(eint._dependentsById)&&(t._dependentsById[e]=n,n.onInvalidate(function(){deletet._dependentsById[e]}),!0)},o.Dependency.prototype.changed=function(){varn=this;for(vartinn._dependentsById)n._dependentsById[t].invalidate()},o.Dependency.prototype.hasDependents=function(){varn=this;for(vartinn._dependentsById)return!0;return!1},o.flush=function(n){o._runFlush({finishSynchronously:!0,throwFirstError:n&&n._throwFirstError})},o._runFlush=function(n){if(s)thrownewError("Can't call Tracker.flush while flushing");if(f)thrownewError("Can't flush inside Tracker.autorun");n=n||{},s=!0,p=!0,l=!!n.throwFirstError;vart=0,e=!1;try{for(;c.length||d.length;){for(;c.length;){varr=c.shift();if(r._recompute(),r._needsRecompute()&&c.unshift(r),!n.finishSynchronously&&++t>1e3)returnvoid(e=!0)}if(d.length){vara=d.shift();try{a()}catch(n){i("afterFlush",n)}}}e=!0}finally{if(e||(s=!1,o._runFlush({finishSynchronously:n.finishSynchronously,throwFirstError:!1})),p=!1,s=!1,c.length||d.length){if(n.finishSynchronously)thrownewError("still have more to do?");setTimeout(h,10)}}},o.autorun=f
!function(){vare=Package.meteor.Meteor,r=Package.meteor.global,n=Package.meteor.meteorEnv,t=Package.modules.meteorInstall,a=Package.modules.Buffer,o=Package.modules.process,i=Package.promise.Promise,l,u=t({node_modules:{meteor:{"babel-runtime":{"babel-runtime.js":["meteor-babel-helpers","babel-runtime/regenerator",function(e,r){r.meteorBabelHelpers=e("meteor-babel-helpers"),r.checkHelper=functione(r){return!1};try{varn=e("babel-runtime/regenerator")}catch(e){thrownewError(["The babel-runtime npm package could not be found in your node_modules ","directory. Please run the following command to install it:",""," meteor npm install --save babel-runtime",""].join("\n"))}if(n&&"function"==typeofi&&"function"==typeofi.asyncApply){vart=n.async;n.async=function(){returni.asyncApply(t,n,arguments)}}}],node_modules:{"meteor-babel-helpers":{"package.json":function(e,r){r.name="meteor-babel-helpers",r.version="0.0.3",r.main="index.js"},"index.js":function(e,r,n){functiont(){vare={},r="t";try{Object.defineProperty(e,r,{enumerable:!1,value:e});for(varnine)if(n===r)return!1}catch(e){return!1}returne[r]===e}functiona(e){returne}functiono(e){if(Array.isArray(e)){for(varr={},n=Object.keys(e),t=n.length,a=0;a<t;++a){varo=n[a];r[o]=e[o]}returnr}returne}l=n.exports={sanitizeForInObject:t()?a:o,_sanitizeForInObjectHard:o}}}}}}}},{extensions:[".js",".json"]}),c=u("./node_modules/meteor/babel-runtime/babel-runtime.js");"undefined"==typeofPackage&&(Package={}),function(e,r){for(varninr)nine||(e[n]=r[n])}(Package["babel-runtime"]=c,{meteorBabelHelpers:l})}();
!function(){vare=Package.meteor.Meteor,n=Package.meteor.global,r=Package.meteor.meteorEnv,t=Package.underscore._,o=Package.modules.meteorInstall,a=Package.modules.Buffer,i=Package.modules.process,d=Package["ecmascript-runtime"].Symbol,u=Package["ecmascript-runtime"].Map,c=Package["ecmascript-runtime"].Set,s=Package["babel-runtime"].meteorBabelHelpers,f=Package.promise.Promise,m,p=o({node_modules:{meteor:{random:{"random.js":function(n){functionr(){returnnewd(d.Type.ALEA,{seeds:[newDate,u,c,s,Math.random()]})}if(e.isServer)vart=Npm.require("crypto");varo=functione(){functionn(){vare=4022871197,n=functionn(r){r=r.toString();for(vart=0;t<r.length;t++){e+=r.charCodeAt(t);varo=.02519603282416938*e;e=o>>>0,o-=e,o*=e,e=o>>>0,o-=e,e+=4294967296*o}return2.3283064365386963e-10*(e>>>0)};returnn.version="Mash 0.9",n}returnfunction(e){varr=0,t=0,o=0,a=1;0==e.length&&(e=[+newDate]);vari=n();r=i(" "),t=i(" "),o=i(" ");for(vard=0;d<e.length;d++)r-=i(e[d]),r<0&&(r+=1),t-=i(e[d]),t<0&&(t+=1),o-=i(e[d]),o<0&&(o+=1);i=null;varu=functione(){varn=2091639*r+2.3283064365386963e-10*a;returnr=t,t=o,o=n-(a=0|n)};returnu.uint32=function(){return4294967296*u()},u.fract53=function(){returnu()+1.1102230246251565e-16*(2097152*u()|0)},u.version="Alea 0.9",u.args=e,u}(Array.prototype.slice.call(arguments))},a="23456789ABCDEFGHJKLMNPQRSTWXYZabcdefghijkmnopqrstuvwxyz",i="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_",d=functione(n,r){vart=this;if(t.type=n,!e.Type[n])thrownewError("Unknown random generator type: "+n);if(n===e.Type.ALEA){if(!r.seeds)thrownewError("No seeds were provided for Alea PRNG");t.alea=o.apply(null,r.seeds)}};d.Type={NODE_CRYPTO:"NODE_CRYPTO",BROWSER_CRYPTO:"BROWSER_CRYPTO",ALEA:"ALEA"},d.prototype.fraction=function(){vare=this;if(e.type===d.Type.ALEA)returne.alea();if(e.type===d.Type.NODE_CRYPTO){varn=parseInt(e.hexString(8),16);return2.3283064365386963e-10*n}if(e.type===d.Type.BROWSER_CRYPTO){varr=newUint32Array(1);returnwindow.crypto.getRandomValues(r),2.3283064365386963e-10*r[0]}thrownewError("Unknown random generator type: "+e.type)},d.prototype.hexString=function(e){varn=this;if(n.type===d.Type.NODE_CRYPTO){varr=Math.ceil(e/2),o;try{o=t.randomBytes(r)}catch(e){o=t.pseudoRandomBytes(r)}vara=o.toString("hex");returna.substring(0,e)}returnthis._randomString(e,"0123456789abcdef")},d.prototype._randomString=function(e,n){for(varr=this,t=[],o=0;o<e;o++)t[o]=r.choice(n);returnt.join("")},d.prototype.id=function(e){varn=this;returnvoid0===e&&(e=17),n._randomString(e,a)},d.prototype.secret=function(e){varn=this;returnvoid0===e&&(e=43),n._randomString(e,i)},d.prototype.choice=function(e){varn=Math.floor(this.fraction()*e.length);return"string"==typeofe?e.substr(n,1):e[n]};varu="undefined"!=typeofwindow&&window.innerHeight||"undefined"!=typeofdocument&&document.documentElement&&document.documentElement.clientHeight||"undefined"!=typeofdocument&&document.body&&document.body.clientHeight||1,c="undefined"!=typeofwindow&&window.innerWidth||"undefined"!=typeofdocument&&document.documentElement&&document.documentElement.clientWidth||"undefined"!=typeofdocument&&document.body&&document.body.clientWidth||1,s="undefined"!=typeofnavigator&&navigator.userAgent||"";m=e.isServer?newd(d.Type.NODE_CRYPTO):"undefined"!=typeofwindow&&window.crypto&&window.crypto.getRandomValues?newd(d.Type.BROWSER_CRYPTO):r(),m.createWithSeeds=function(){for(vare=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];if(0===n.length)thrownewError("No seeds were provided");returnnewd(d.Type.ALEA,{seeds:n})},m.insecure=r()},"deprecated.js":function(){e.uuid=function(){for(vare="0123456789abcdef",n=[],r=0;r<36;r++)n[r]=m.choice(e);n[14]="4",n[19]=e.substr(3&parseInt(n[19],16)|8,1),n[8]=n[13]=n[18]=n[23]="-";vart=n.join("");returnt}}}}}},{extensions:[".js",".json"]});p("./node_modules/meteor/random/random.js"),p("./node_modules/meteor/random/deprecated.js"),"undefined"==typeofPackage&&(Package={}),function(e,n){for(varrinn)rine||(e[r]=n[r])}(Package.random={},{Random:m})}()
!function(){vart=Package.meteor.Meteor,e=Package.meteor.global,r=Package.meteor.meteorEnv,o=Package.ejson.EJSON,n=Package["id-map"].IdMap,i=Package.random.Random,a;(function(){a={},a._looksLikeObjectID=function(t){return24===t.length&&t.match(/^[0-9a-f]*$/)},a.ObjectID=function(t){vare=this;if(t){if(t=t.toLowerCase(),!a._looksLikeObjectID(t))thrownewError("Invalid hexadecimal string for creating an ObjectID");e._str=t}elsee._str=i.hexString(24)},a.ObjectID.prototype.toString=function(){vart=this;return'ObjectID("'+t._str+'")'},a.ObjectID.prototype.equals=function(t){vare=this;returntinstanceofa.ObjectID&&e.valueOf()===t.valueOf()},a.ObjectID.prototype.clone=function(){vart=this;returnnewa.ObjectID(t._str)},a.ObjectID.prototype.typeName=function(){return"oid"},a.ObjectID.prototype.getTimestamp=function(){vart=this;returnparseInt(t._str.substr(0,8),16)},a.ObjectID.prototype.valueOf=a.ObjectID.prototype.toJSONValue=a.ObjectID.prototype.toHexString=function(){returnthis._str},o.addType("oid",function(t){returnnewa.ObjectID(t)}),a.idStringify=function(t){if(tinstanceofa.ObjectID)returnt.valueOf();if("string"==typeoft)return""===t?t:"-"===t.substr(0,1)||"~"===t.substr(0,1)||a._looksLikeObjectID(t)||"{"===t.substr(0,1)?"-"+t:t;if(void0===t)return"-";if("object"==typeoft&&null!==t)thrownewError("Meteor does not currently support objects other than ObjectID as ids");return"~"+JSON.stringify(t)},a.idParse=function(t){return""===t?t:"-"===t?void0:"-"===t.substr(0,1)?t.substr(1):"~"===t.substr(0,1)?JSON.parse(t.substr(1)):a._looksLikeObjectID(t)?newa.ObjectID(t):t}}).call(this),"undefined"==typeofPackage&&(Package={}),function(t,e){for(varrine)rint||(t[r]=e[r])}(Package["mongo-id"]={},{MongoID:a})}();
!function(){vare=Package.meteor.Meteor,n=Package.meteor.global,d=Package.meteor.meteorEnv,i=Package.underscore._,a=Package.ejson.EJSON,r;(function(){r={},r.diffQueryChanges=function(e,n,d,i,a){e?r.diffQueryOrderedChanges(n,d,i,a):r.diffQueryUnorderedChanges(n,d,i,a)},r.diffQueryUnorderedChanges=function(e,n,d,o){o=o||{};varf=o.projectionFn||a.clone;if(d.movedBefore)thrownewError("_diffQueryUnordered called with a movedBefore observer!");n.forEach(function(n,o){vart=e.get(o);if(t){if(d.changed&&!a.equals(t,n)){varc=f(n),u=f(t),h=r.makeChangedFields(c,u);i.isEmpty(h)||d.changed(o,h)}}elseif(d.added){varl=f(n);deletel._id,d.added(n._id,l)}}),d.removed&&e.forEach(function(e,i){n.has(i)||d.removed(i)})},r.diffQueryOrderedChanges=function(n,d,o,f){f=f||{};vart=f.projectionFn||a.clone,c={};i.each(d,function(n){c[n._id]&&e._debug("Duplicate _id in new_results"),c[n._id]=!0});varu={};i.each(n,function(n,d){n._idinu&&e._debug("Duplicate _id in old_results"),u[n._id]=d});for(varh=[],l=0,s=d.length,g=newArray(s),v=newArray(s),_=function(e){returnu[d[e]._id]},m=0;m<s;m++)if(void0!==u[d[m]._id]){for(vary=l;y>0&&!(_(g[y-1])<_(m));)y--;v[m]=0===y?-1:g[y-1],g[y]=m,y+1>l&&(l=y+1)}for(vark=0===l?-1:g[l-1];k>=0;)h.push(k),k=v[k];h.reverse(),h.push(d.length),i.each(n,function(e){c[e._id]||o.removed&&o.removed(e._id)});varp=0;i.each(h,function(e){for(vara=d[e]?d[e]._id:null,f,c,h,l,s,g=p;g<e;g++)c=d[g],i.has(u,c._id)?(f=n[u[c._id]],l=t(c),s=t(f),h=r.makeChangedFields(l,s),i.isEmpty(h)||o.changed&&o.changed(c._id,h),o.movedBefore&&o.movedBefore(c._id,a)):(h=t(c),deleteh._id,o.addedBefore&&o.addedBefore(c._id,h,a),o.added&&o.added(c._id,h));a&&(c=d[e],f=n[u[c._id]],l=t(c),s=t(f),h=r.makeChangedFields(l,s),i.isEmpty(h)||o.changed&&o.changed(c._id,h)),p=e+1})},r.diffObjects=function(e,n,d){i.each(e,function(e,a){i.has(n,a)?d.both&&d.both(a,e,n[a]):d.leftOnly&&d.leftOnly(a,e)}),d.rightOnly&&i.each(n,function(n,a){i.has(e,a)||d.rightOnly(a,n)})},r.makeChangedFields=function(e,n){vard={};returnr.diffObjects(n,e,{leftOnly:function(e,n){d[e]=void0},rightOnly:function(e,n){d[e]=n},both:function(e,n,i){a.equals(n,i)||(d[e]=i)}}),d},r.applyChanges=function(e,n){i.each(n,function(n,d){void0===n?deletee[d]:e[d]=n})}}).call(this),"undefined"==typeofPackage&&(Package={}),function(e,n){for(vardinn)dine||(e[d]=n[d])}(Package["diff-sequence"]={},{DiffSequence:r})}();
!function(){vare=Package.meteor.Meteor,r=Package.meteor.global,t=Package.meteor.meteorEnv,n=Package.underscore._,o=Package.ejson.EJSON,i=Package["id-map"].IdMap,a=Package["ordered-dict"].OrderedDict,s=Package.tracker.Tracker,c=Package.tracker.Deps,u=Package["mongo-id"].MongoID,d=Package.random.Random,f=Package["diff-sequence"].DiffSequence,l=Package["geojson-utils"].GeoJSON,h,p,v,_,m,y,g,w,$,b,E,I,C,O,k,S;(function(){h=function(r){vart=this;t.name=r,t._docs=newh._IdMap,t._observeQueue=newe._SynchronousQueue,t.next_qid=1,t.queries={},t._savedOriginals=null,t.paused=!1},p={},v={},_=function(e){varr=newError(e);returnr.name="MinimongoError",r},h.prototype.find=function(e,r){return0===arguments.length&&(e={}),newh.Cursor(this,e,r)},h.Cursor=function(e,r,t){varn=this;t||(t={}),n.collection=e,n.sorter=null,n.matcher=newp.Matcher(r),h._selectorIsId(r)?n._selectorId=r:h._selectorIsIdPerhapsAsObject(r)?n._selectorId=r._id:(n._selectorId=void0,(n.matcher.hasGeoQuery()||t.sort)&&(n.sorter=newp.Sorter(t.sort||[],{matcher:n.matcher}))),n.skip=t.skip,n.limit=t.limit,n.fields=t.fields,n._projectionFn=h._compileProjection(n.fields||{}),n._transform=h.wrapTransform(t.transform),"undefined"!=typeofs&&(n.reactive=void0===t.reactive||t.reactive)},h.Cursor.prototype.rewind=function(){},h.prototype.findOne=function(e,r){return0===arguments.length&&(e={}),r=r||{},r.limit=1,this.find(e,r).fetch()[0]},h.Cursor.prototype.forEach=function(e,r){vart=this,o=t._getRawObjects({ordered:!0});t.reactive&&t._depend({addedBefore:!0,removed:!0,changed:!0,movedBefore:!0}),n.each(o,function(n,o){n=t._projectionFn(n),t._transform&&(n=t._transform(n)),e.call(r,n,o,t)})},h.Cursor.prototype.getTransform=function(){returnthis._transform},h.Cursor.prototype.map=function(e,r){vart=this,n=[];returnt.forEach(function(o,i){n.push(e.call(r,o,i,t))}),n},h.Cursor.prototype.fetch=function(){vare=this,r=[];returne.forEach(function(e){r.push(e)}),r},h.Cursor.prototype.count=function(){vare=this;returne.reactive&&e._depend({added:!0,removed:!0},!0),e._getRawObjects({ordered:!0}).length},h.Cursor.prototype._publishCursor=function(e){varr=this;if(!r.collection.name)thrownewError("Can't publish a cursor from a collection without a name.");vart=r.collection.name;if(!Package.mongo)thrownewError("Can't publish from Minimongo without the `mongo` package.");returnPackage.mongo.Mongo.Collection._publishCursor(r,e,t)},h.Cursor.prototype._getCollectionName=function(){vare=this;returne.collection.name},h._observeChangesCallbacksAreOrdered=function(e){if(e.added&&e.addedBefore)thrownewError("Please specify only one of added() and addedBefore()");return!(!e.addedBefore&&!e.movedBefore)},h._observeCallbacksAreOrdered=function(e){if(e.addedAt&&e.added)thrownewError("Please specify only one of added() and addedAt()");if(e.changedAt&&e.changed)thrownewError("Please specify only one of changed() and changedAt()");if(e.removed&&e.removedAt)thrownewError("Please specify only one of removed() and removedAt()");return!!(e.addedAt||e.movedTo||e.changedAt||e.removedAt)},h.ObserveHandle=function(){},n.extend(h.Cursor.prototype,{observe:function(e){varr=this;returnh._observeFromObserveChanges(r,e)},observeChanges:function(e){varr=this,t=h._observeChangesCallbacksAreOrdered(e);if(!e._allow_unordered&&!t&&(r.skip||r.limit))thrownewError("must use ordered observe (ie, 'addedBefore' instead of 'added') with skip or limit");if(r.fields&&(0===r.fields._id||r.fields._id===!1))throwError("You may not observe a cursor with {fields: {_id: 0}}");vari={dirty:!1,matcher:r.matcher,sorter:t&&r.sorter,distances:r.matcher.hasGeoQuery()&&t&&newh._IdMap,resultsSnapshot:null,ordered:t,cursor:r,projectionFn:r._projectionFn},a;r.reactive&&(a=r.collection.next_qid++,r.collection.queries[a]=i),i.results=r._getRawObjects({ordered:t,distances:i.distances}),r.collection.paused&&(i.resultsSnapshot=t?[]:newh._IdMap);varc=function(e){returne?function(){vart=this,n=arguments;r.collection.paused||r.collection._observeQueue.queueTask(function(){e.apply(t,n)})}:function(){}};if(i.ad
if(!(ninstanceofArray))throw_("$each must be an array");varo=void0;if("$position"int){if("number"!=typeoft.$position)throw_("$position must be a numeric value");if(t.$position<0)throw_("$position in $push must be zero or positive");o=t.$position}vari=void0;if("$slice"int){if("number"!=typeoft.$slice)throw_("$slice must be a numeric value");if(t.$slice>0)throw_("$slice in $push must be zero or negative");i=t.$slice}vara=void0;if(t.$sort){if(void0===i)throw_("$sort requires $slice to be present");a=newp.Sorter(t.$sort).getComparator();for(vars=0;s<n.length;s++)if(3!==h._f._type(n[s]))throw_("$push like modifiers using $sort require all elements to be objects")}if(void0===o)for(varc=0;c<n.length;c++)e[r].push(n[c]);else{for(varu=[o,0],c=0;c<n.length;c++)u.push(n[c]);Array.prototype.splice.apply(e[r],u)}a&&e[r].sort(a),void0!==i&&(0===i?e[r]=[]:e[r]=e[r].slice(i))},$pushAll:function(e,r,t){if(!("object"==typeoft&&tinstanceofArray))throw_("Modifier $pushAll/pullAll allowed for arrays only");varn=e[r];if(void0===n)e[r]=t;else{if(!(ninstanceofArray))throw_("Cannot apply $pushAll modifier to non-array");for(varo=0;o<t.length;o++)n.push(t[o])}},$addToSet:function(e,r,t){varo=!1;if("object"==typeoft)for(variint){"$each"===i&&(o=!0);break}vara=o?t.$each:[t],s=e[r];if(void0===s)e[r]=a;else{if(!(sinstanceofArray))throw_("Cannot apply $addToSet modifier to non-array");n.each(a,function(e){for(varr=0;r<s.length;r++)if(h._f._equal(e,s[r]))return;s.push(e)})}},$pop:function(e,r,t){if(void0!==e){varn=e[r];if(void0!==n){if(!(ninstanceofArray))throw_("Cannot apply $pop modifier to non-array");"number"==typeoft&&t<0?n.splice(0,1):n.pop()}}},$pull:function(e,r,t){if(void0!==e){varn=e[r];if(void0!==n){if(!(ninstanceofArray))throw_("Cannot apply $pull/pullAll modifier to non-array");varo=[];if(null==t||"object"!=typeoft||tinstanceofArray)for(vari=0;i<n.length;i++)h._f._equal(n[i],t)||o.push(n[i]);elsefor(vara=newp.Matcher(t),i=0;i<n.length;i++)a.documentMatches(n[i]).result||o.push(n[i]);e[r]=o}}},$pullAll:function(e,r,t){if(!("object"==typeoft&&tinstanceofArray))throw_("Modifier $pushAll/pullAll allowed for arrays only");if(void0!==e){varn=e[r];if(void0!==n){if(!(ninstanceofArray))throw_("Cannot apply $pull/pullAll modifier to non-array");for(varo=[],i=0;i<n.length;i++){for(vara=!1,s=0;s<t.length;s++)if(h._f._equal(n[i],t[s])){a=!0;break}a||o.push(n[i])}e[r]=o}}},$rename:function(r,t,n,o,i){if(o===n)throw_("$rename source must differ from target");if(null===r)throw_("$rename source field invalid");if("string"!=typeofn)throw_("$rename target must be a string");if(void0!==r){vara=r[t];deleter[t];vars=n.split("."),c=e(i,s,{forbidArray:!0});if(null===c)throw_("$rename target field invalid");varu=s.pop();c[u]=a}},$bit:function(e,r,t){throw_("$bit is not supported")}}}.call(this),function(){h._diffQueryChanges=function(e,r,t,n,o){returnf.diffQueryChanges(e,r,t,n,o)},h._diffQueryUnorderedChanges=function(e,r,t,n){returnf.diffQueryUnorderedChanges(e,r,t,n)},h._diffQueryOrderedChanges=function(e,r,t,n){returnf.diffQueryOrderedChanges(e,r,t,n)},h._diffObjects=function(e,r,t){returnf.diffObjects(e,r,t)}}.call(this),function(){h._IdMap=function(){vare=this;i.call(e,u.idStringify,u.idParse)},e._inherits(h._IdMap,i)}.call(this),function(){h._CachingChangeObserver=function(e){varr=this;e=e||{};vart=e.callbacks&&h._observeChangesCallbacksAreOrdered(e.callbacks);if(n.has(e,"ordered")){if(r.ordered=e.ordered,e.callbacks&&e.ordered!==t)throwError("ordered option doesn't match callbacks")}else{if(!e.callbacks)throwError("must provide ordered or callbacks");r.ordered=t}vari=e.callbacks||{};r.ordered?(r.docs=newa(u.idStringify),r.applyChange={addedBefore:function(e,t,n){vara=o.clone(t);a._id=e,i.addedBefore&&i.addedBefore.call(r,e,t,n),i.added&&i.added.call(r,e,t),r.docs.putBefore(e,a,n||null)},movedBefore:function(e,t){varn=r.docs.get(e);i.movedBefore&&i.movedBefore.call(r,e,t),r.docs.moveBefore(e,t||null)}}):(r.docs=newh._IdMap,r.applyChange={added:function(e
!function(){vare=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,r=Package.modules.meteorInstall,a=Package.modules.Buffer,i=Package.modules.process,o=Package.underscore._,c=Package.ejson.EJSON,s,u,f=r({node_modules:{meteor:{check:{"match.js":["./isPlainObject.js",function(t,n){varr=newe.EnvironmentVariable,a=t("./isPlainObject.js").isPlainObject,i=n.check=function(e,t){varn=r.getOrNullIfOutsideFiber();n&&n.checking(e);vara=y(e,t);if(a){vari=news.Error(a.message);throwa.path&&(i.message+=" in field "+a.path,i.path=a.path),i}},s=n.Match={Optional:function(e){returnnewu(e)},Maybe:function(e){returnnewf(e)},OneOf:function(){returnnewl(o.toArray(arguments))},Any:["__any__"],Where:function(e){returnnewh(e)},ObjectIncluding:function(e){returnnewp(e)},ObjectWithValues:function(e){returnnewg(e)},Integer:["__integer__"],Error:e.makeErrorType("Match.Error",function(t){this.message="Match error: "+t,this.path="",this.sanitizedError=newe.Error(400,"Match failed")}),test:function(e,t){return!y(e,t)},_failIfArgumentsAreNotAllChecked:function(e,t,n,a){vari=newv(n,a),o=r.withValue(i,function(){returne.apply(t,n)});returni.throwUnlessAllArgumentsHaveBeenChecked(),o}},u=function(e){this.pattern=e},f=function(e){this.pattern=e},l=function(e){if(o.isEmpty(e))thrownewError("Must provide at least one choice to Match.OneOf");this.choices=e},h=function(e){this.condition=e},p=function(e){this.pattern=e},g=function(e){this.pattern=e},d=function(e,t){if(t=t||{},null===e)return"null";if(t.onlyShowType)returntypeofe;if("object"!=typeofe)returnc.stringify(e);try{JSON.stringify(e)}catch(t){if("TypeError"===t.name)returntypeofe}returnc.stringify(e)},m=[[String,"string"],[Number,"number"],[Boolean,"boolean"],[Function,"function"],[void0,"undefined"]],y=function(e,t){if(t===s.Any)return!1;for(varn=0;n<m.length;++n)if(t===m[n][0])returntypeofe!==m[n][1]&&{message:"Expected "+m[n][1]+", got "+d(e,{onlyShowType:!0}),path:""};if(null===t)returnnull!==e&&{message:"Expected null, got "+d(e),path:""};if("string"==typeoft||"number"==typeoft||"boolean"==typeoft)returne!==t&&{message:"Expected "+t+", got "+d(e),path:""};if(t===s.Integer)return("number"!=typeofe||(0|e)!==e)&&{message:"Expected Integer, got "+d(e),path:""};if(t===Object&&(t=s.ObjectIncluding({})),tinstanceofArray){if(1!==t.length)return{message:"Bad pattern: arrays must have one type element"+d(t),path:""};if(!o.isArray(e)&&!o.isArguments(e))return{message:"Expected array, got "+d(e),path:""};for(varn=0,r=e.length;n<r;n++){vari=y(e[n],t[0]);if(i)returni.path=k(n,i.path),i}return!1}if(tinstanceofh){vari;try{i=t.condition(e)}catch(e){if(!(einstanceofs.Error))throwe;return{message:e.message,path:e.path}}return!i&&{message:"Failed Match.Where validation",path:""}}if(tinstanceoff?t=s.OneOf(void0,null,t.pattern):tinstanceofu&&(t=s.OneOf(void0,t.pattern)),tinstanceofl){for(varn=0;n<t.choices.length;++n){vari=y(e,t.choices[n]);if(!i)return!1}return{message:"Failed Match.OneOf, Match.Maybe or Match.Optional validation",path:""}}if(tinstanceofFunction)return!(einstanceoft)&&{message:"Expected "+(t.name||"particular constructor"),path:""};varc=!1,v;if(tinstanceofp&&(c=!0,t=t.pattern),tinstanceofg&&(c=!0,v=[t.pattern],t={}),"object"!=typeoft)return{message:"Bad pattern: unknown pattern type",path:""};if("object"!=typeofe)return{message:"Expected object, got "+typeofe,path:""};if(null===e)return{message:"Expected object, got null",path:""};if(!a(e))return{message:"Expected plain object",path:""};varb={},w={};o.each(t,function(e,t){einstanceofu||einstanceoff?w[t]=e.pattern:b[t]=e});for(varO=function(e){vart=[];if(o.isObject(e))for(varnine)t.push(n);returnt},j=O(e),n=0,r=j.length;n<r;n++){varE=j[n],P=e[E];if(o.has(b,E)){vari=y(P,b[E]);if(i)returni.path=k(E,i.path),i;deleteb[E]}elseif(o.has(w,E)){vari=y(P,w[E]);if(i)returni.path=k(E,i.path),i}else{if(!c)return{message:"Unknown key",path:E};if(v){vari=y(P,v[0]);if(i)returni.path=k(E,i.path),i}}}varj=o.keys(b);returnj.length?{message:"Missingke
!function(){vare=Package.meteor.Meteor,t=Package.meteor.global,a=Package.meteor.meteorEnv,n=Package.check.check,r=Package.check.Match,i=Package.random.Random,o=Package.ejson.EJSON,c=Package.underscore._,s=Package.tracker.Tracker,l=Package.tracker.Deps,u=Package.retry.Retry,d;(function(){d={}}).call(this),function(){d.Heartbeat=function(e){vart=this;t.heartbeatInterval=e.heartbeatInterval,t.heartbeatTimeout=e.heartbeatTimeout,t._sendPing=e.sendPing,t._onTimeout=e.onTimeout,t._seenPacket=!1,t._heartbeatIntervalHandle=null,t._heartbeatTimeoutHandle=null},c.extend(d.Heartbeat.prototype,{stop:function(){vare=this;e._clearHeartbeatIntervalTimer(),e._clearHeartbeatTimeoutTimer()},start:function(){vare=this;e.stop(),e._startHeartbeatIntervalTimer()},_startHeartbeatIntervalTimer:function(){vart=this;t._heartbeatIntervalHandle=e.setInterval(c.bind(t._heartbeatIntervalFired,t),t.heartbeatInterval)},_startHeartbeatTimeoutTimer:function(){vart=this;t._heartbeatTimeoutHandle=e.setTimeout(c.bind(t._heartbeatTimeoutFired,t),t.heartbeatTimeout)},_clearHeartbeatIntervalTimer:function(){vart=this;t._heartbeatIntervalHandle&&(e.clearInterval(t._heartbeatIntervalHandle),t._heartbeatIntervalHandle=null)},_clearHeartbeatTimeoutTimer:function(){vart=this;t._heartbeatTimeoutHandle&&(e.clearTimeout(t._heartbeatTimeoutHandle),t._heartbeatTimeoutHandle=null)},_heartbeatIntervalFired:function(){vare=this;e._seenPacket||e._heartbeatTimeoutHandle||(e._sendPing(),e._startHeartbeatTimeoutTimer()),e._seenPacket=!1},_heartbeatTimeoutFired:function(){vare=this;e._heartbeatTimeoutHandle=null,e._onTimeout()},messageReceived:function(){vare=this;e._seenPacket=!0,e._heartbeatTimeoutHandle&&e._clearHeartbeatTimeoutTimer()}})}.call(this),function(){d.SUPPORTED_DDP_VERSIONS=["1","pre2","pre1"],d.parseDDP=function(t){try{vara=JSON.parse(t)}catch(a){returne._debug("Discarding message with invalid JSON",t),null}returnnull===a||"object"!=typeofa?(e._debug("Discarding non-object DDP message",t),null):(c.has(a,"cleared")&&(c.has(a,"fields")||(a.fields={}),c.each(a.cleared,function(e){a.fields[e]=void0}),deletea.cleared),c.each(["fields","params","result"],function(e){c.has(a,e)&&(a[e]=o._adjustTypesFromJSONValue(a[e]))}),a)},d.stringifyDDP=function(e){vart=o.clone(e);if(c.has(e,"fields")){vara=[];c.each(e.fields,function(e,n){void0===e&&(a.push(n),deletet.fields[n])}),c.isEmpty(a)||(t.cleared=a),c.isEmpty(t.fields)&&deletet.fields}if(c.each(["fields","params","result"],function(e){c.has(t,e)&&(t[e]=o._adjustTypesToJSONValue(t[e]))}),e.id&&"string"!=typeofe.id)thrownewError("Message id is not a string");returnJSON.stringify(t)}}.call(this),function(){d.MethodInvocation=function(e){vart=this;this.isSimulation=e.isSimulation,this._unblock=e.unblock||function(){},this._calledUnblock=!1,this.userId=e.userId,this._setUserId=e.setUserId||function(){},this.connection=e.connection,this.randomSeed=e.randomSeed,this.randomStream=null},c.extend(d.MethodInvocation.prototype,{unblock:function(){vare=this;e._calledUnblock=!0,e._unblock()},setUserId:function(e){vart=this;if(t._calledUnblock)thrownewError("Can't call setUserId in a method after calling unblock");t.userId=e,t._setUserId(e)}})}.call(this),function(){functione(){returni.hexString(20)}d.RandomStream=function(t){vara=this;this.seed=[].concat(t.seed||e()),this.sequences={}},d.RandomStream.get=function(e,t){if(t||(t="default"),!e)returni.insecure;vara=e.randomStream;returna||(e.randomStream=a=newd.RandomStream({seed:e.randomSeed})),a._sequence(t)},d.makeRpcSeed=function(e,t){vara=d.RandomStream.get(e,"/rpc/"+t);returna.hexString(20)},c.extend(d.RandomStream.prototype,{_sequence:function(e){vart=this,a=t.sequences[e]||null;if(null===a){for(varn=t.seed.concat(e),r=0;r<n.length;r++)c.isFunction(n[r])&&(n[r]=n[r]());t.sequences[e]=a=i.createWithSeeds.apply(null,n)}returna}})}.call(this),"undefined"==typeofPackage&&(Package={}),function(e,t){for(varaint)aine||(e[a]=t[a])}(Package["ddp-common"]={},{DDPCommon:d})}();
!function(){vara=Package.meteor.Meteor,e=Package.meteor.global,t=Package.meteor.meteorEnv,o=Package.underscore._,n=Package["ecmascript-runtime"].Symbol,r=Package["ecmascript-runtime"].Map,i=Package["ecmascript-runtime"].Set,c;(function(){c={};vare="Meteor_Reload",t={},n,r=null;try{r=window.sessionStorage,r?(r.setItem("__dummy__","1"),r.removeItem("__dummy__")):r=null}catch(a){r=null}c._getData=function(){returnr&&r.getItem(e)},r&&(n=c._getData(),r.removeItem(e)),n||(n="{}");vari={};try{i=JSON.parse(n),"object"!=typeofi&&(a._debug("Got bad data on reload. Ignoring."),i={})}catch(e){a._debug("Got invalid JSON on reload. Ignoring.")}i.reload&&"object"==typeofi.data&&(t=i.data);varl=[];c._onMigrate=function(a,e){e||(e=a,a=void0),l.push({name:a,callback:e})},c._migrationData=function(a){returnt[a]};vard=function(a,e){a=a||function(){},e=e||{};for(vart={},n=o.clone(l),r=!0;n.length;){vari=n.shift(),c=i.callback(a,e);c[0]||(r=!1),c.length>1&&i.name&&(t[i.name]=c[1])}returnr||e.immediateMigration?t:null};c._migrate=function(t,o){varn=d(t,o);if(null===n)return!1;try{vari=JSON.stringify({data:n,reload:!0})}catch(e){throwa._debug("Couldn't serialize data for migration",n),e}if(r)try{r.setItem(e,i)}catch(e){a._debug("Couldn't save data for migration to sessionStorage",e)}elsea._debug("Browser does not support sessionStorage. Not saving migration state.");return!0},c._withFreshProvidersForTest=function(a){vare=o.clone(l);l=[];try{a()}finally{l=e}};varg=!1;c._reload=function(a){if(a=a||{},!g){g=!0;vare=function(){o.defer(function(){c._migrate(e,a)&&(window.location.hash||window.location.href.endsWith("#")?window.location.reload():window.location.replace(window.location.href))})};e()}}}).call(this),function(){a._reload={onMigrate:c._onMigrate,migrationData:c._migrationData,reload:c._reload}}.call(this),"undefined"==typeofPackage&&(Package={}),function(a,e){for(vartine)tina||(a[t]=e[t])}(Package.reload={},{Reload:c})}();
!function(){vare=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,r=Package.check.check,o=Package.check.Match,i=Package.random.Random,s=Package.ejson.EJSON,a=Package.underscore._,u=Package.tracker.Tracker,c=Package.tracker.Deps,d=Package.retry.Retry,l=Package["id-map"].IdMap,f=Package["ddp-common"].DDPCommon,_=Package["diff-sequence"].DiffSequence,p=Package["mongo-id"].MongoID,h,v,m,g,b,y,w;(function(){h={},v={}}).call(this),function(){m=function(){vare=this;l.call(e,p.idStringify,p.idParse)},e._inherits(m,l)}.call(this),function(){g=function(){vare=document,t=window,n={},r=function(){};r.prototype.addEventListener=function(e,t){this._listeners||(this._listeners={}),einthis._listeners||(this._listeners[e]=[]);varr=this._listeners[e];n.arrIndexOf(r,t)===-1&&r.push(t)},r.prototype.removeEventListener=function(e,t){if(this._listeners&&einthis._listeners){varr=this._listeners[e],o=n.arrIndexOf(r,t);returno!==-1?void(r.length>1?this._listeners[e]=r.slice(0,o).concat(r.slice(o+1)):deletethis._listeners[e]):void0}},r.prototype.dispatchEvent=function(e){vart=e.type,n=Array.prototype.slice.call(arguments,0);if(this["on"+t]&&this["on"+t].apply(this,n),this._listeners&&tinthis._listeners)for(varr=0;r<this._listeners[t].length;r++)this._listeners[t][r].apply(this,n)};varo=function(e,t){if(this.type=e,"undefined"!=typeoft)for(varnint)t.hasOwnProperty(n)&&(this[n]=t[n])};o.prototype.toString=function(){vare=[];for(vartinthis)if(this.hasOwnProperty(t)){varn=this[t];"function"==typeofn&&(n="[function]"),e.push(t+"="+n)}return"SimpleEvent("+e.join(", ")+")"};vari=function(e){vart=this;t._events=e||[],t._listeners={}};i.prototype.emit=function(e){vart=this;if(t._verifyType(e),!t._nuked){varn=Array.prototype.slice.call(arguments,1);if(t["on"+e]&&t["on"+e].apply(t,n),eint._listeners)for(varr=0;r<t._listeners[e].length;r++)t._listeners[e][r].apply(t,n)}},i.prototype.on=function(e,t){varn=this;n._verifyType(e),n._nuked||(einn._listeners||(n._listeners[e]=[]),n._listeners[e].push(t))},i.prototype._verifyType=function(e){vart=this;n.arrIndexOf(t._events,e)===-1&&n.log("Event "+JSON.stringify(e)+" not listed "+JSON.stringify(t._events)+" in "+t)},i.prototype.nuke=function(){vare=this;e._nuked=!0;for(vart=0;t<e._events.length;t++)deletee[e._events[t]];e._listeners={}};vars="abcdefghijklmnopqrstuvwxyz0123456789_";n.random_string=function(e,t){t=t||s.length;varn,r=[];for(n=0;n<e;n++)r.push(s.substr(Math.floor(Math.random()*t),1));returnr.join("")},n.random_number=function(e){returnMath.floor(Math.random()*e)},n.random_number_string=function(e){vart=(""+(e-1)).length,r=Array(t+1).join("0");return(r+n.random_number(e)).slice(-t)},n.getOrigin=function(e){e+="/";vart=e.split("/").slice(0,3);returnt.join("/")},n.isSameOriginUrl=function(e,n){returnn||(n=t.location.href),e.split("/").slice(0,3).join("/")===n.split("/").slice(0,3).join("/")},n.isSameOriginScheme=function(e,n){returnn||(n=t.location.href),e.split(":")[0]===n.split(":")[0]},n.getParentDomain=function(e){if(/^[0-9.]*$/.test(e))returne;if(/^\[/.test(e))returne;if(!/[.]/.test(e))returne;vart=e.split(".").slice(1);returnt.join(".")},n.objectExtend=function(e,t){for(varnint)t.hasOwnProperty(n)&&(e[n]=t[n]);returne};vara="_jp";n.polluteGlobalNamespace=function(){aint||(t[a]={})},n.closeFrame=function(e,t){return"c"+JSON.stringify([e,t])},n.userSetCode=function(e){return1e3===e||e>=3e3&&e<=4999},n.countRTO=function(e){vart;returnt=e>100?3*e:e+200},n.log=function(){t.console&&console.log&&console.log.apply&&console.log.apply(console,arguments)},n.bind=function(e,t){returne.bind?e.bind(t):function(){returne.apply(t,arguments)}},n.flatUrl=function(e){returne.indexOf("?")===-1&&e.indexOf("#")===-1},n.amendUrl=function(t,r){varo;if(void0===r)o=e.location;else{vari=/^([a-z0-9.+-]+:)/i.exec(r);if(i){vars=i[0].toLowerCase(),a=r.substring(s.length),u=/[a-z0-9\.-]+(:[0-9]+)?/.exec(a);if(u)varc=u[0]}if(!s||!c)thrownewError("relativeTo must be an absolute url");o={protocol:s,host:c}}if(!t)thrownewError("Wrong
!function(){vare=Package.meteor.Meteor,n=Package.meteor.global,r=Package.meteor.meteorEnv,t=Package.underscore._,o=Package.minimongo.LocalCollection,a=Package.minimongo.Minimongo,i=Package.check.check,c=Package.check.Match,l=Package.ejson.EJSON,s=Package["ddp-client"].DDP,d=Package.modules.meteorInstall,u=Package.modules.Buffer,f=Package.modules.process,h=Package["ecmascript-runtime"].Symbol,_=Package["ecmascript-runtime"].Map,m=Package["ecmascript-runtime"].Set,v=Package["babel-runtime"].meteorBabelHelpers,p=Package.promise.Promise,w,y=d({node_modules:{meteor:{"allow-deny":{"allow-deny.js":function(){functionn(e,n){returne.transform?e.transform(n):n}functionr(e,n,r){vart=n;returne.transform&&(t=l.clone(n),null!==r&&(t._id=r),t=e.transform(t)),t}functiona(e,n,r){vara=["insert","update","remove","fetch","transform"];if(t.each(t.keys(r),function(e){if(!t.contains(a,e))thrownewError(n+": Invalid key: "+e)}),e._restricted=!0,t.each(["insert","update","remove"],function(t){if(r.hasOwnProperty(t)){if(!(r[t]instanceofFunction))thrownewError(n+": Value for `"+t+"` must be a function");void0===r.transform?r[t].transform=e._transform:r[t].transform=o.wrapTransform(r.transform),e._validators[t][n].push(r[t])}}),r.update||r.remove||r.fetch){if(r.fetch&&!(r.fetchinstanceofArray))thrownewError(n+": Value for `fetch` must be an array");e._updateFetch(r.fetch)}}functiond(n,r){if(!o._selectorIsIdPerhapsAsObject(n))thrownewe.Error(403,"Not permitted. Untrusted code may only "+r+" documents by ID.")}functionu(){vare=s._CurrentInvocation.get();returne&&e.isSimulation}w={CollectionPrototype:{}};varf=w.CollectionPrototype;f.allow=function(e){a(this,"allow",e)},f.deny=function(e){a(this,"deny",e)},f._defineMutationMethods=function(n){varr=this;n=n||{},r._restricted=!1,r._insecure=void0,r._validators={insert:{allow:[],deny:[]},update:{allow:[],deny:[]},remove:{allow:[],deny:[]},upsert:{allow:[],deny:[]},fetch:[],fetchAllFields:!1},r._name&&(r._prefix="/"+r._name+"/",r._connection&&(r._connection===e.server||e.isClient)&&!function(){varo={};t.each(["insert","update","remove"],function(a){varl=r._prefix+a;if(n.useExisting){vars=e.isClient?"_methodHandlers":"method_handlers";if(r._connection[s]&&"function"==typeofr._connection[s][l])return}o[l]=function(){i(arguments,[c.Any]);varn=t.toArray(arguments);try{varo=null;if("insert"!==a||t.has(n[0],"_id")||(o=r._makeNewID()),this.isSimulation)returnnull!==o&&(n[0]._id=o),r._collection[a].apply(r._collection,n);if("insert"!==a&&d(n[0],a),r._restricted){if(0===r._validators[a].allow.length)thrownewe.Error(403,"Access denied. No allow validators set on restricted collection for method '"+a+"'.");varl="_validated"+a.charAt(0).toUpperCase()+a.slice(1);returnn.unshift(this.userId),"insert"===a&&n.push(o),r[l].apply(r,n)}if(r._isInsecure())returnnull!==o&&(n[0]._id=o),r._collection[a].apply(r._collection,n);thrownewe.Error(403,"Access denied")}catch(n){throw"MongoError"===n.name||"MinimongoError"===n.name?newe.Error(409,n.toString()):n}}}),r._connection.methods(o)}())},f._updateFetch=function(e){varn=this;n._validators.fetchAllFields||(e?n._validators.fetch=t.union(n._validators.fetch,e):(n._validators.fetchAllFields=!0,n._validators.fetch=null))},f._isInsecure=function(){vare=this;returnvoid0===e._insecure?!!Package.insecure:e._insecure},f._validatedInsert=function(n,o,a){vari=this;if(t.any(i._validators.insert.deny,function(e){returne(n,r(e,o,a))}))thrownewe.Error(403,"Access denied");if(t.all(i._validators.insert.allow,function(e){return!e(n,r(e,o,a))}))thrownewe.Error(403,"Access denied");null!==a&&(o._id=a),i._collection.insert.call(i._collection,o)},f._validatedUpdate=function(r,a,c,l){vars=this;if(i(c,Object),l=t.clone(l)||{},!o._selectorIsIdPerhapsAsObject(a))thrownewError("validated update should be of a single ID");if(l.upsert)thrownewe.Error(403,"Access denied. Upserts not allowed in a restricted collection.");vard="Accessdenied.Inarestrictedcollectionyoucanonlyupdatedocuments,notreplacethem.UseaMongoupdateoperator,suchas
!function(){vare=Package.meteor.Meteor,n=Package.meteor.global,o=Package.meteor.meteorEnv,t=Package["allow-deny"].AllowDeny,r=Package.random.Random,i=Package.ejson.EJSON,c=Package.underscore._,l=Package.minimongo.LocalCollection,a=Package.minimongo.Minimongo,s=Package["ddp-client"].DDP,u=Package.tracker.Tracker,d=Package.tracker.Deps,f=Package["diff-sequence"].DiffSequence,_=Package["mongo-id"].MongoID,p=Package.check.check,m=Package.check.Match,g=Package.modules.meteorInstall,v=Package.modules.Buffer,h=Package.modules.process,w=Package["ecmascript-runtime"].Symbol,C=Package["ecmascript-runtime"].Map,y=Package["ecmascript-runtime"].Set,k=Package["babel-runtime"].meteorBabelHelpers,O=Package.promise.Promise,b,I,P=g({node_modules:{meteor:{mongo:{"local_collection_driver.js":function(){b=functione(){varn=this;n.noConnCollections={}};vare=functione(n,o){returnnino||(o[n]=newl(n)),o[n]};c.extend(b.prototype,{open:function(){functionn(n,o){vart=this;returnn?o?(o._mongo_livedata_collections||(o._mongo_livedata_collections={}),e(n,o._mongo_livedata_collections)):e(n,t.noConnCollections):newl}returnn}()}),b=newb},"collection.js":function(n,o,i){functiona(e){p(e,RegExp);varn={$regex:e.source},o="";returne.ignoreCase&&(o+="i"),e.multiline&&(o+="m"),o&&(n.$options=o),n}functionu(e,n){if(e)returnn=n||c.identity,function(o,t){e(o,!o&&n(t))}}functiond(e){if(e.length&&(void0===e[e.length-1]||e[e.length-1]instanceofFunction))returne.pop()}I={},I.Collection=function(n,o){vart=this;if(!(tinstanceofI.Collection))thrownewError('use "new" to construct a Mongo.Collection');if(n||null===n||(e._debug("Warning: creating anonymous collection. It will not be saved or synchronized over the network. (Pass null for the collection name to turn off this warning.)"),n=null),null!==n&&"string"!=typeofn)thrownewError("First argument to new Mongo.Collection must be a string or null");switch(o&&o.methods&&(o={connection:o}),o&&o.manager&&!o.connection&&(o.connection=o.manager),o=c.extend({connection:void0,idGeneration:"STRING",transform:null,_driver:void0,_preventAutopublish:!1},o),o.idGeneration){case"MONGO":t._makeNewID=function(){vare=n?s.randomStream("/collection/"+n):r.insecure;returnnewI.ObjectID(e.hexString(24))};break;case"STRING":default:t._makeNewID=function(){vare=n?s.randomStream("/collection/"+n):r.insecure;returne.id()}}if(t._transform=l.wrapTransform(o.transform),n&&null!==o.connection?o.connection?t._connection=o.connection:e.isClient?t._connection=e.connection:t._connection=e.server:t._connection=null,o._driver||(n&&t._connection===e.server&&"undefined"!=typeofMongoInternals&&MongoInternals.defaultRemoteCollectionDriver?o._driver=MongoInternals.defaultRemoteCollectionDriver():o._driver=b),t._collection=o._driver.open(n,t._connection),t._name=n,t._driver=o._driver,t._connection&&t._connection.registerStore){vari=t._connection.registerStore(n,{beginUpdate:function(){functione(e,n){(e>1||n)&&t._collection.pauseObservers(),n&&t._collection.remove({})}returne}(),update:function(){functione(e){varn=_.idParse(e.id),o=t._collection.findOne(n);if("replace"===e.msg){varr=e.replace;returnvoid(r?o?t._collection.update(n,r):t._collection.insert(r):o&&t._collection.remove(n))}if("added"===e.msg){if(o)thrownewError("Expected not to find a document already present for an add");t._collection.insert(c.extend({_id:n},e.fields))}elseif("removed"===e.msg){if(!o)thrownewError("Expected to find a document already present for removed");t._collection.remove(n)}else{if("changed"!==e.msg)thrownewError("I don't know how to deal with this message");if(!o)thrownewError("Expected to find a document to change");if(!c.isEmpty(e.fields)){vari={};c.each(e.fields,function(e,n){void0===e?(i.$unset||(i.$unset={}),i.$unset[n]=1):(i.$set||(i.$set={}),i.$set[n]=e)}),t._collection.update(n,i)}}}returne}(),endUpdate:function(){functione(){t._collection.resumeObservers()}returne}(),saveOriginals:function(){functione(){t._collection.saveOriginals()}returne}(),retrieveOriginals:function(){functione(){returnt._collection.r
!function(){vare=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,r=Package.modules.meteorInstall,i=Package.modules.Buffer,o=Package.modules.process,a,s,l=r({node_modules:{meteor:{jquery:{"main.js":["jquery","./jquery.js",function(e,t){varn=this;try{varr=e("jquery")}catch(t){r=e("./jquery.js")}t.$=t.jQuery=r,n.$=n.$||r,n.jQuery=n.jQuery||r}],"jquery.js":function(e,t,n){!function(e,t){"object"==typeofn&&"object"==typeofn.exports?n.exports=e.document?t(e,!0):function(e){if(!e.document)thrownewError("jQuery requires a window with a document");returnt(e)}:t(e)}("undefined"!=typeofwindow?window:this,function(e,t){functionn(e){vart=e.length,n=ie.type(e);return"function"!==n&&!ie.isWindow(e)&&(!(1!==e.nodeType||!t)||("array"===n||0===t||"number"==typeoft&&t>0&&t-1ine))}functionr(e,t,n){if(ie.isFunction(t))returnie.grep(e,function(e,r){return!!t.call(e,r,e)!==n});if(t.nodeType)returnie.grep(e,function(e){returne===t!==n});if("string"==typeoft){if(de.test(t))returnie.filter(t,e,n);t=ie.filter(t,e)}returnie.grep(e,function(e){returnie.inArray(e,t)>=0!==n})}functioni(e,t){doe=e[t];while(e&&1!==e.nodeType);returne}functiono(e){vart=xe[e]={};returnie.each(e.match(be)||[],function(e,n){t[n]=!0}),t}functiona(){he.addEventListener?(he.removeEventListener("DOMContentLoaded",s,!1),e.removeEventListener("load",s,!1)):(he.detachEvent("onreadystatechange",s),e.detachEvent("onload",s))}functions(){(he.addEventListener||"load"===event.type||"complete"===he.readyState)&&(a(),ie.ready())}functionl(e,t,n){if(void0===n&&1===e.nodeType){varr="data-"+t.replace(Ee,"-$1").toLowerCase();if(n=e.getAttribute(r),"string"==typeofn){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:Ne.test(n)?ie.parseJSON(n):n)}catch(e){}ie.data(e,t,n)}elsen=void0}returnn}functionu(e){vart;for(tine)if(("data"!==t||!ie.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}functionc(e,t,n,r){if(ie.acceptData(e)){vari,o,a=ie.expando,s=e.nodeType,l=s?ie.cache:e,u=s?e[a]:e[a]&&a;if(u&&l[u]&&(r||l[u].data)||void0!==n||"string"!=typeoft)returnu||(u=s?e[a]=Q.pop()||ie.guid++:a),l[u]||(l[u]=s?{}:{toJSON:ie.noop}),"object"!=typeoft&&"function"!=typeoft||(r?l[u]=ie.extend(l[u],t):l[u].data=ie.extend(l[u].data,t)),o=l[u],r||(o.data||(o.data={}),o=o.data),void0!==n&&(o[ie.camelCase(t)]=n),"string"==typeoft?(i=o[t],null==i&&(i=o[ie.camelCase(t)])):i=o,i}}functionf(e,t,n){if(ie.acceptData(e)){varr,i,o=e.nodeType,a=o?ie.cache:e,s=o?e[ie.expando]:ie.expando;if(a[s]){if(t&&(r=n?a[s]:a[s].data)){ie.isArray(t)?t=t.concat(ie.map(t,ie.camelCase)):tinr?t=[t]:(t=ie.camelCase(t),t=tinr?[t]:t.split(" ")),i=t.length;for(;i--;)deleter[t[i]];if(n?!u(r):!ie.isEmptyObject(r))return}(n||(deletea[s].data,u(a[s])))&&(o?ie.cleanData([e],!0):ne.deleteExpando||a!=a.window?deletea[s]:a[s]=null)}}}functiond(){return!0}functionp(){return!1}functionh(){try{returnhe.activeElement}catch(e){}}functionm(e){vart=Fe.split("|"),n=e.createDocumentFragment();if(n.createElement)for(;t.length;)n.createElement(t.pop());returnn}functiong(e,t){varn,r,i=0,o=typeofe.getElementsByTagName!==Te?e.getElementsByTagName(t||"*"):typeofe.querySelectorAll!==Te?e.querySelectorAll(t||"*"):void0;if(!o)for(o=[],n=e.childNodes||e;null!=(r=n[i]);i++)!t||ie.nodeName(r,t)?o.push(r):ie.merge(o,g(r,t));returnvoid0===t||t&&ie.nodeName(e,t)?ie.merge([e],o):o}functiony(e){De.test(e.type)&&(e.defaultChecked=e.checked)}functionv(e,t){returnie.nodeName(e,"table")&&ie.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}functionb(e){returne.type=(null!==ie.find.attr(e,"type"))+"/"+e.type,e}functionx(e){vart=Ve.exec(e.type);returnt?e.type=t[1]:e.removeAttribute("type"),e}functionw(e,t){for(varn,r=0;null!=(n=e[r]);r++)ie._data(n,"globalEval",!t||ie._data(t[r],"globalEval"))}functionT(e,t){if(1===t.nodeType&&ie.hasData(e)){varn,r,i,o=ie._data(e),a=ie._data(t,o),s=o.events;if(s){deletea.handle,a.events={};for(nins)for(r=0,i=s[n].length;r<i;r++)ie.event.ad
!function(){vare=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,r=Package.underscore._,i=Package.ejson.EJSON,a=Package.modules.meteorInstall,f=Package.modules.Buffer,o=Package.modules.process,c,l,s=a({node_modules:{meteor:{logging:{"logging.js":["cli-color",function(t){c=function(){returnc.info.apply(this,arguments)};varn=0,a=[],f=0;c._intercept=function(e){n+=e},c._suppress=function(e){f+=e},c._intercepted=function(){vare=a;returna=[],n=0,e},c.outputFormat="json";varo={debug:"green",warn:"magenta",error:"red"},l="blue",s=["time","timeInexact","level","file","line","program","originApp","satellite","stderr"],u=s.concat(["app","message"]),d=function(t){varn=c.format(t),r=t.level;"undefined"!=typeofconsole&&console[r]?console[r](n):e._debug(n)};c._getCallerDetails=function(){vare=function(){vare=newError,t=e.stack;returnt},t=e();if(!t)return{};for(varn=t.split("\n"),r,i=1;i<n.length;++i){if(r=n[i],r.match(/^\s*at eval \(eval/))return{file:"eval"};if(!r.match(/packages\/(?:local-test[:_])?logging(?:\/|\.js)/))break}vara={},f=/(?:[@(]| at )([^(]+?):([0-9:]+)(?:\)|$)/.exec(r);returnf?(a.line=f[2].split(":")[0],a.file=f[1].split("/").slice(-1)[0].split("?")[0],a):a},r.each(["debug","info","warn","error"],function(t){c[t]=function(o){if(f)returnvoidf--;varl=!1;n&&(n--,l=!0);varu=!r.isObject(o)||r.isRegExp(o)||r.isDate(o)?{message:newString(o).toString()}:o;if(r.each(s,function(e){if(u[e])thrownewError("Can't set '"+e+"' in log message")}),r.has(u,"message")&&!r.isString(u.message))thrownewError("The 'message' field in log objects must be a string");if(u.omitCallerDetails||(u=r.extend(c._getCallerDetails(),u)),u.time=newDate,u.level=t,"debug"!==t)if(l)a.push(i.stringify(u));elseif(e.isServer)if("colored-text"===c.outputFormat)console.log(c.format(u,{color:!0}));else{if("json"!==c.outputFormat)thrownewError("Unknown logging output format: "+c.outputFormat);console.log(i.stringify(u))}elsed(u)}}),c.parse=function(e){vart=null;if(e&&"{"===e.charAt(0))try{t=i.parse(e)}catch(e){}returnt&&t.time&&t.timeinstanceofDate?t:null},c.format=function(n,a){n=i.clone(n),a=a||{};varf=n.time;if(!(finstanceofDate))thrownewError("'time' must be a Date object");varc=n.timeInexact,s=n.level||"info",d=n.file,p=n.line,b=n.app||"",m=n.originApp,h=n.message||"",v=n.program||"",g=n.satellite,x=n.stderr||"";r.each(u,function(e){deleten[e]}),r.isEmpty(n)||(h&&(h+=" "),h+=i.stringify(n));vary=function(e){returne<10?"0"+e:e.toString()},j=function(e){returne<100?"0"+y(e):e.toString()},O=f.getFullYear().toString()+y(f.getMonth()+1)+y(f.getDate()),_=y(f.getHours())+":"+y(f.getMinutes())+":"+y(f.getSeconds())+"."+j(f.getMilliseconds()),w="("+-((newDate).getTimezoneOffset()/60)+")",A="";b&&(A+=b),m&&m!==b&&(A+=" via "+m),A&&(A="["+A+"] ");varN=[];v&&N.push(v),d&&N.push(d),p&&N.push(p);varS=r.isEmpty(N)?"":"("+N.join(":")+") ";g&&(S+=["[",g,"]"].join(""));varP=x?"(STDERR) ":"",z=[s.charAt(0).toUpperCase(),O,"-",_,w,c?"? ":" ",A,S,P].join(""),k=function(n,r){returna.color&&e.isServer&&r?t("cli-color")[r](n):n};returnk(z,a.metaColor||l)+k(h,o[s])},c.objFromText=function(e,t){varn={message:e,level:"info",time:newDate,timeInexact:!0};returnr.extend(n,t)}}],node_modules:{"cli-color":{"package.json":function(e,t){t.name="cli-color",t.version="0.2.3",t.main="lib"},lib:{"index.js":["es5-ext/lib/Object/descriptor","es5-ext/lib/Object/extend","es5-ext/lib/Object/map","es5-ext/lib/Object/reduce","es5-ext/lib/String/prototype/repeat","memoizee","tty","./_xterm-match",function(e,t,n){"use strict";varr=e("es5-ext/lib/Object/descriptor"),i=e("es5-ext/lib/Object/extend"),a=e("es5-ext/lib/Object/map"),f=e("es5-ext/lib/Object/reduce"),c=e("es5-ext/lib/String/prototype/repeat"),l=e("memoizee"),s=e("tty"),u=Array.prototype.join,d=Object.defineProperty,p=Object.defineProperties,b=Math.abs,m=Math.floor,h=Math.max,v=Math.min,g,x,y,j,O,_,w,A,N,S,P;g=i({bold:{_bold:[1,22]},italic:{_italic:[3,23]},underline:{_underline:[4,24]},blink:{_blink:[5,25]},inverse:{_inverse:[7,27]},strike:{_strike:[9,29]}},["black","red
!function(){vare=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,a=Package.underscore._,i=Package.tracker.Tracker,r=Package.tracker.Deps,c=Package.ejson.EJSON,s=Package.modules.meteorInstall,o=Package.modules.Buffer,u=Package.modules.process,d=Package["ecmascript-runtime"].Symbol,f=Package["ecmascript-runtime"].Map,l=Package["ecmascript-runtime"].Set,k=Package["babel-runtime"].meteorBabelHelpers,p=Package.promise.Promise,y,g=s({node_modules:{meteor:{"reactive-dict":{"reactive-dict.js":["babel-runtime/helpers/typeof",function(e,t,n){varr;n.import("babel-runtime/helpers/typeof",{default:function(e){r=e}});vars=functione(t){returnvoid0===t?"undefined":c.stringify(t)},o=functione(t){if(void0!==t&&"undefined"!==t)returnc.parse(t)},u=functione(t){t&&t.changed()};y=function(e){functiont(t){returne.apply(this,arguments)}returnt.toString=function(){returne.toString()},t}(function(e){if(e)if("string"==typeofe)y._registerDictForMigrate(e,this),this.keys=y._loadMigratedDict(e)||{},this.name=e;else{if("object"!==("undefined"==typeofe?"undefined":r(e)))thrownewError("Invalid ReactiveDict argument: "+e);this.keys=e}elsethis.keys={};this.allDeps=newi.Dependency,this.keyDeps={},this.keyValueDeps={}}),a.extend(y.prototype,{set:function(){functione(e,t){varn=this;if("object"===("undefined"==typeofe?"undefined":r(e))&&void0===t)returnvoidn._setObject(e);vari=e;t=s(t);varc=a.has(n.keys,i),o=c?n.keys[i]:"undefined",d=t!==o;n.keys[i]=t,!d&&c||n.allDeps.changed(),d&&(u(n.keyDeps[i]),n.keyValueDeps[i]&&(u(n.keyValueDeps[i][o]),u(n.keyValueDeps[i][t])))}returne}(),setDefault:function(){functione(e,t){varn=this;if("object"===("undefined"==typeofe?"undefined":r(e))&&void0===t)returnvoidn._setDefaultObject(e);vari=e;a.has(n.keys,i)||n.set(i,t)}returne}(),get:function(){functione(e){vart=this;returnt._ensureKey(e),t.keyDeps[e].depend(),o(t.keys[e])}returne}(),equals:function(){functione(e,t){varn=this,r=null;if(Package.mongo&&(r=Package.mongo.Mongo.ObjectID),!("string"==typeoft||"number"==typeoft||"boolean"==typeoft||"undefined"==typeoft||tinstanceofDate||r&&tinstanceofr||null===t))thrownewError("ReactiveDict.equals: value must be scalar");varu=s(t);if(i.active){n._ensureKey(e),a.has(n.keyValueDeps[e],u)||(n.keyValueDeps[e][u]=newi.Dependency);vard=n.keyValueDeps[e][u].depend();d&&i.onInvalidate(function(){n.keyValueDeps[e][u].hasDependents()||deleten.keyValueDeps[e][u]})}varf=void0;returna.has(n.keys,e)&&(f=o(n.keys[e])),c.equals(f,t)}returne}(),all:function(){functione(){this.allDeps.depend();vare={};returna.each(this.keys,function(t,n){e[n]=o(t)}),e}returne}(),clear:function(){functione(){vare=this,t=e.keys;e.keys={},e.allDeps.changed(),a.each(t,function(t,n){u(e.keyDeps[n]),e.keyValueDeps[n]&&(u(e.keyValueDeps[n][t]),u(e.keyValueDeps[n].undefined))})}returne}(),delete:function(){functione(e){vart=this,n=!1;if(a.has(t.keys,e)){vari=t.keys[e];deletet.keys[e],u(t.keyDeps[e]),t.keyValueDeps[e]&&(u(t.keyValueDeps[e][i]),u(t.keyValueDeps[e].undefined)),t.allDeps.changed(),n=!0}returnn}returne}(),_setObject:function(){functione(e){vart=this;a.each(e,function(e,n){t.set(n,e)})}returne}(),_setDefaultObject:function(){functione(e){vart=this;a.each(e,function(e,n){t.setDefault(n,e)})}returne}(),_ensureKey:function(){functione(e){vart=this;eint.keyDeps||(t.keyDeps[e]=newi.Dependency,t.keyValueDeps[e]={})}returne}(),_getMigrationData:function(){functione(){returnthis.keys}returne}()})}],"migration.js":function(){if(y._migratedDictData={},y._dictsToMigrate={},y._loadMigratedDict=function(e){returna.has(y._migratedDictData,e)?y._migratedDictData[e]:null},y._registerDictForMigrate=function(e,t){if(a.has(y._dictsToMigrate,e))thrownewError("Duplicate ReactiveDict name: "+e);y._dictsToMigrate[e]=t},e.isClient&&Package.reload){vart=Package.reload.Reload._migrationData("reactive-dict");t&&t.dicts&&(y._migratedDictData=t.dicts),Package.reload.Reload._onMigrate("reactive-dict",function(){vare=y._dictsToMigrate,t={};for(varnink.sanitizeForInObject(e
!function(){vare=Package.meteor.Meteor,n=Package.meteor.global,r=Package.meteor.meteorEnv,o=Package.tracker.Tracker,t=Package.tracker.Deps,i=Package["mongo-id"].MongoID,a=Package["diff-sequence"].DiffSequence,c=Package.underscore._,f=Package.random.Random,u,d,s,l;(function(){vare=function(){u._suppressWarnings?u._suppressWarnings--:("undefined"!=typeofconsole&&console.warn&&console.warn.apply(console,arguments),u._loggedWarnings++)},n=i.idStringify,r=i.idParse;u={_suppressWarnings:0,_loggedWarnings:0,observe:function(e,n){varr=null,i=null,f=[],u=o.autorun(function(){varu=e();o.nonreactive(function(){vare;if(i&&(f=c.map(r.fetch(),function(e){return{_id:e._id,item:e}}),i.stop(),i=null),u)if(uinstanceofArray)e=s(f,u,n);else{if(!a(u))throwt();varo=l(f,u,n);e=o[0],i=o[1]}elsee=d(f,n);v(f,e,n),r=u,f=e})});return{stop:function(){u.stop(),i&&i.stop()}}},fetch:function(e){if(e){if(einstanceofArray)returne;if(a(e))returne.fetch();throwt()}return[]}};vart=function(){returnnewError("{{#each}} currently only accepts arrays, cursors or falsey values.")},a=function(e){returne&&c.isObject(e)&&c.isFunction(e.observe)&&c.isFunction(e.fetch)},v=function(e,o,t){vari=Package["diff-sequence"].DiffSequence.diffQueryOrderedChanges,a=[],f=[],u={},d={},s={},l=e.length;c.each(o,function(e,r){f.push({_id:e._id}),d[n(e._id)]=r}),c.each(e,function(e,r){a.push({_id:e._id}),u[n(e._id)]=r,s[n(e._id)]=r}),i(a,f,{addedBefore:function(e,r,i){vara=i?s[n(i)]:l;i&&c.each(s,function(e,n){e>=a&&s[n]++}),l++,s[n(e)]=a,t.addedAt(e,o[d[n(e)]].item,a,i)},movedBefore:function(e,r){if(e!==r){vari=s[n(e)],a=r?s[n(r)]:l;a>i&&a--,c.each(s,function(e,n){i<e&&e<a?s[n]--:a<=e&&e<i&&s[n]++}),s[n(e)]=a,t.movedTo(e,o[d[n(e)]].item,i,a,r)}},removed:function(r){varo=s[n(r)];c.each(s,function(e,n){e>=o&&s[n]--}),deletes[n(r)],l--,t.removedAt(r,e[u[n(r)]].item,o)}}),c.each(d,function(n,i){vara=r(i);if(c.has(u,i)){varf=o[n].item,d=e[u[i]].item;"object"!=typeoff&&f===d||t.changedAt(a,f,d,n)}})};d=function(e,n){return[]},s=function(r,o,t){vari={},a=c.map(o,function(r,t){vara;if("string"==typeofr)a="-"+r;elseif("number"==typeofr||"boolean"==typeofr||void0===r||null===r)a=r;else{if("object"!=typeofr)thrownewError("{{#each}} doesn't support arrays with elements of type "+typeofr);a=r&&"_id"inr?r._id:t}varc=n(a);returni[c]?(r&&"object"==typeofr&&"_id"inr&&e("duplicate id "+a+" in",o),a=f.id()):i[c]=!0,{_id:a,item:r}});returna},l=function(e,n,r){varo=!0,t=[],i=n.observe({addedAt:function(e,n,i){if(o){if(null!==i)thrownewError("Expected initial data from observe in order");t.push({_id:e._id,item:e})}elser.addedAt(e._id,e,n,i)},changedAt:function(e,n,o){r.changedAt(e._id,e,n,o)},removedAt:function(e,n){r.removedAt(e._id,e,n)},movedTo:function(e,n,o,t){r.movedTo(e._id,e,n,o,t)}});returno=!1,[t,i]}}).call(this),"undefined"==typeofPackage&&(Package={}),function(e,n){for(varrinn)rine||(e[r]=n[r])}(Package["observe-sequence"]={},{ObserveSequence:u})}();
!function(){vart=Package.meteor.Meteor,e=Package.meteor.global,i=Package.meteor.meteorEnv,r=Package.tracker.Tracker,n=Package.tracker.Deps,o,a,s;(function(){o={},a=function(t){returnt},s=Array.prototype.slice}).call(this),function(){vart=Object.prototype.hasOwnProperty,e=function(e,i){for(varrini)t.call(i,r)&&(e[r]=i[r]);returne};o.Visitor=function(t){e(this,t)},o.Visitor.def=function(t){e(this.prototype,t)},o.Visitor.extend=function(t){vari=this,r=functiont(){o.Visitor.apply(this,arguments)};returnr.prototype=newi,r.extend=i.extend,r.def=i.def,t&&e(r.prototype,t),r},o.Visitor.def({visit:function(t){if(null==t)returnthis.visitNull.apply(this,arguments);if("object"==typeoft){if(t.htmljsType)switch(t.htmljsType){caseo.Tag.htmljsType:returnthis.visitTag.apply(this,arguments);caseo.CharRef.htmljsType:returnthis.visitCharRef.apply(this,arguments);caseo.Comment.htmljsType:returnthis.visitComment.apply(this,arguments);caseo.Raw.htmljsType:returnthis.visitRaw.apply(this,arguments);default:thrownewError("Unknown htmljs type: "+t.htmljsType)}returno.isArray(t)?this.visitArray.apply(this,arguments):this.visitObject.apply(this,arguments)}if("string"==typeoft||"boolean"==typeoft||"number"==typeoft)returnthis.visitPrimitive.apply(this,arguments);if("function"==typeoft)returnthis.visitFunction.apply(this,arguments);thrownewError("Unexpected object in htmljs: "+t)},visitNull:function(t){},visitPrimitive:function(t){},visitArray:function(t){},visitComment:function(t){},visitCharRef:function(t){},visitRaw:function(t){},visitTag:function(t){},visitObject:function(t){thrownewError("Unexpected object in htmljs: "+t)},visitFunction:function(t){thrownewError("Unexpected function in htmljs: "+t)}}),o.TransformingVisitor=o.Visitor.extend(),o.TransformingVisitor.def({visitNull:a,visitPrimitive:a,visitArray:function(t){for(vare=s.call(arguments),i=t,r=0;r<t.length;r++){varn=t[r];e[0]=n;varo=this.visit.apply(this,e);o!==n&&(i===t&&(i=t.slice()),i[r]=o)}returni},visitComment:a,visitCharRef:a,visitRaw:a,visitObject:a,visitFunction:a,visitTag:function(t){vare=t.children,i=s.call(arguments);i[0]=e;varr=this.visitChildren.apply(this,i),n=t.attrs;i[0]=n;vara=this.visitAttributes.apply(this,i);if(a===n&&r===e)returnt;varl=o.getTag(t.tagName).apply(null,r);returnl.attrs=a,l},visitChildren:function(t){returnthis.visitArray.apply(this,arguments)},visitAttributes:function(t){if(o.isArray(t)){for(vari=s.call(arguments),r=t,n=0;n<t.length;n++){vara=t[n];i[0]=a;varl=this.visitAttributes.apply(this,i);l!==a&&(r===t&&(r=t.slice()),r[n]=l)}returnr}if(t&&o.isConstructedObject(t))thrownewError("The basic HTML.TransformingVisitor does not support foreign objects in attributes. Define a custom visitAttributes for this case.");varu=t,f=u;if(u){varc=[null,null];c.push.apply(c,arguments);for(varhinu){varp=u[h];c[0]=h,c[1]=p;varm=this.visitAttribute.apply(this,c);m!==p&&(f===u&&(f=e({},u)),f[h]=m)}}returnf},visitAttribute:function(t,e,i){varr=s.call(arguments,2);returnr[0]=e,this.visit.apply(this,r)}}),o.ToTextVisitor=o.Visitor.extend(),o.ToTextVisitor.def({visitNull:function(t){return""},visitPrimitive:function(t){vare=String(t);returnthis.textMode===o.TEXTMODE.RCDATA?e.replace(/&/g,"&").replace(/</g,"<"):this.textMode===o.TEXTMODE.ATTRIBUTE?e.replace(/&/g,"&").replace(/"/g,"""):e},visitArray:function(t){for(vare=[],i=0;i<t.length;i++)e.push(this.visit(t[i]));returne.join("")},visitComment:function(t){thrownewError("Can't have a comment here")},visitCharRef:function(t){returnthis.textMode===o.TEXTMODE.RCDATA||this.textMode===o.TEXTMODE.ATTRIBUTE?t.html:t.str},visitRaw:function(t){returnt.value},visitTag:function(t){returnthis.visit(this.toHTML(t))},visitObject:function(t){thrownewError("Unexpected object in htmljs in toText: "+t)},toHTML:function(t){returno.toHTML(t)}}),o.ToHTMLVisitor=o.Visitor.extend(),o.ToHTMLVisitor.def({visitNull:function(t){return""},visitPrimitive:function(t){vare=String(t);returne.replace(/&/g,"&").replace(/</g,"<")},visitArray:function(t){for(var
!function(){vare=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,r=Package.jquery.$,i=Package.jquery.jQuery,a=Package.tracker.Tracker,o=Package.tracker.Deps,s=Package.check.check,l=Package.check.Match,c=Package.underscore._,u=Package["observe-sequence"].ObserveSequence,d=Package["reactive-var"].ReactiveVar,p=Package.htmljs.HTML,f,h,m,w,v;(function(){f={},f._escape=function(){vare={"<":"<",">":">",'"':""","'":"'","`":"`","&":"&"},t=function(t){returne[t]};returnfunction(e){returne.replace(/[&<>"'`]/g,t)}}(),f._warn=function(e){e="Warning: "+e,"undefined"!=typeofconsole&&console.warn&&console.warn(e)};vare=Function.prototype.bind;e?f._bind=function(t,n){if(2===arguments.length)returne.call(t,n);for(varr=newArray(arguments.length),i=0;i<r.length;i++)r[i]=arguments[i];returne.apply(t,r.slice(1))}:f._bind=c.bind}).call(this),function(){vare={};f._DOMBackend=e;vart="undefined"!=typeofi?i:"undefined"!=typeofPackage?Package.jquery&&Package.jquery.jQuery:null;if(!t)thrownewError("jQuery not found");e._$jq=t,e.parseHTML=function(e){returnt.parseHTML(e)||[]},e.Events={delegateEvents:function(e,n,r,i){t(e).on(n,r,i)},undelegateEvents:function(e,n,r){t(e).off(n,"**",r)},bindEventCapturer:function(n,r,i,a){varo=t(n),s=function(e){e=t.event.fix(e),e.currentTarget=e.target;varr=t(e.currentTarget);r.is(o.find(i))&&a.call(n,e)};a._meteorui_wrapper=s,r=e.Events.parseEventType(r),n.addEventListener(r,s,!0)},unbindEventCapturer:function(t,n,r){n=e.Events.parseEventType(n),t.removeEventListener(n,r._meteorui_wrapper,!0)},parseEventType:function(e){vart=e.indexOf(".");returnt>=0?e.slice(0,t):e}};varn=function(){},r=function(e){this.next=this,this.prev=this,this.func=e};r.prototype.linkBefore=function(e){this.prev=e.prev,this.next=e,e.prev.next=this,e.prev=this},r.prototype.unlink=function(){this.prev.next=this.next,this.next.prev=this.prev},r.prototype.go=function(){vare=this.func;e&&e()},r.prototype.stop=r.prototype.unlink,e.Teardown={_JQUERY_EVENT_NAME:"blaze_teardown_watcher",_CB_PROP:"$blaze_teardown_callbacks",onElementTeardown:function(i,a){varo=newr(a),s=e.Teardown._CB_PROP;returni[s]||(i[s]=newr,t(i).on(e.Teardown._JQUERY_EVENT_NAME,n)),o.linkBefore(i[s]),o},tearDownElement:function(e){for(varn=[],r=e.getElementsByTagName("*"),i=0;i<r.length;i++)n.push(r[i]);n.push(e),t.cleanData(n)}},t.event.special[e.Teardown._JQUERY_EVENT_NAME]={setup:function(){},teardown:function(){vart=this,n=t[e.Teardown._CB_PROP];if(n){for(varr=n.next;r!==n;)r.go(),r=r.next;n.go(),t[e.Teardown._CB_PROP]=null}}},e.findBySelector=function(e,n){returnt(e,n)}}.call(this),function(){vare=Object.freeze?Object.freeze([]):[];f._DOMRange=function(n){if(!(thisinstanceoft))returnnewt(n);varr=n||e;if(!r||"number"!=typeofr.length)thrownewError("Expected array");for(vari=0;i<r.length;i++)this._memberIn(r[i]);this.members=r,this.emptyRangePlaceholder=null,this.attached=!1,this.parentElement=null,this.parentRange=null,this.attachedCallbacks=e};vart=f._DOMRange;t._USE_COMMENT_PLACEHOLDERS=function(){vare=!1,t=document.createTextNode("");try{t.someProp=!0}catch(t){e=!0}returne}(),t._insert=function(e,n,r,i){vara=e;ainstanceoft?a.attach(n,r,i):i?t._moveNodeWithHooks(a,n,r):t._insertNodeWithHooks(a,n,r)},t._remove=function(e){varn=e;ninstanceoft?n.detach():t._removeNodeWithHooks(n)},t._removeNodeWithHooks=function(e){e.parentNode&&(1===e.nodeType&&e.parentNode._uihooks&&e.parentNode._uihooks.removeElement?e.parentNode._uihooks.removeElement(e):e.parentNode.removeChild(e))},t._insertNodeWithHooks=function(e,t,n){n=n||null,1===e.nodeType&&t._uihooks&&t._uihooks.insertElement?t._uihooks.insertElement(e,n):t.insertBefore(e,n)},t._moveNodeWithHooks=function(e,t,n){e.parentNode===t&&(n=n||null,1===e.nodeType&&t._uihooks&&t._uihooks.moveElement?t._uihooks.moveElement(e,n):t.insertBefore(e,n))},t.forElement=function(e){if(1!==e.nodeType)thrownewError("Expected element, found: "+e);for(vart=null;e&&!t;)t=e.$blaze_range||null,t||(e=e.parentNode);returnt},t.prototype.attach=function(e,n,
return"function"!=typeofe?e:function(){varn=this,r=arguments;returnf.Template._withTemplateInstanceFunc(t,function(){returnf._wrapCatchingExceptions(e,"template helper").apply(n,r)})}};f._lexicalBindingLookup=function(e,t){varn=e,r=[];doif(c.has(n._scopeBindings,t)){vari=n._scopeBindings[t];returnfunction(){returni.get()}}while((!n.__startsNewLexicalScope||n.parentView&&n.parentView.__childDoesntStartNewLexicalScope)&&(n=n.parentView));returnnull},f._getTemplate=function(e,t){returneinf.Template&&f.Template[e]instanceoff.Template?f.Template[e]:null},f._getGlobalHelper=function(e,r){returnnull!=f._globalHelpers[e]?n(t(f._globalHelpers[e]),r):null},f.View.prototype.lookup=function(e,t){varn=this.template,r=t&&t.template,i,a,o,s;if(this.templateInstance&&(o=f._bind(this.templateInstance,this)),/^\./.test(e)){if(!/^(\.)+$/.test(e))thrownewError("id starting with dot must be a series of dots");returnf._parentData(e.length-1,!0)}returnn&&null!=(i=f._getTemplateHelper(n,e,o))?i:n&&null!=(a=f._lexicalBindingLookup(f.currentView,e))?a:r&&null!=(s=f._getTemplate(e,o))?s:null!=(i=f._getGlobalHelper(e,o))?i:function(){vart=arguments.length>0,n=f.getData(),i=n&&n[e];if(!i){if(r)thrownewError("No such template: "+e);if(t)thrownewError("No such function: "+e);if("@"===e.charAt(0)&&(null===i||void0===i))thrownewError("Unsupported directive: "+e)}if(!n)returnnull;if("function"!=typeofi){if(t)thrownewError("Can't call non-function: "+i);returni}returni.apply(n,arguments)}},f._parentData=function(e,t){null==e&&(e=1);for(varn=f.getView("with"),r=0;r<e&&n;r++)n=f.getView(n,"with");returnn?t?function(){returnn.dataVar.get()}:n.dataVar.get():null},f.View.prototype.lookupTemplate=function(e){returnthis.lookup(e,{template:!0})}}.call(this),function(){f.Template=function(e,n){if(!(thisinstanceoff.Template))returnnewf.Template(e,n);if("function"==typeofe&&(n=e,e=""),"string"!=typeofe)thrownewError("viewName must be a String (or omitted)");if("function"!=typeofn)thrownewError("renderFunction must be a function");this.viewName=e,this.renderFunction=n,this.__helpers=newt,this.__eventMaps=[],this._callbacks={created:[],rendered:[],destroyed:[]}};vare=f.Template,t=function(){};t.prototype.get=function(e){returnthis[" "+e]},t.prototype.set=function(e,t){this[" "+e]=t},t.prototype.has=function(e){return" "+einthis},f.isTemplate=function(e){returneinstanceoff.Template},e.prototype.onCreated=function(e){this._callbacks.created.push(e)},e.prototype.onRendered=function(e){this._callbacks.rendered.push(e)},e.prototype.onDestroyed=function(e){this._callbacks.destroyed.push(e)},e.prototype._getCallbacks=function(e){vart=this,n=t[e]?[t[e]]:[];returnn=n.concat(t._callbacks[e])};varn=function(t,n){e._withTemplateInstanceFunc(function(){returnn},function(){for(vare=0,r=t.length;e<r;e++)t[e].call(n)})};e.prototype.constructView=function(t,r){vari=this,a=f.View(i.viewName,i.renderFunction);a.template=i,a.templateContentBlock=t?newe("(contentBlock)",t):null,a.templateElseBlock=r?newe("(elseBlock)",r):null,(i.__eventMaps||"object"==typeofi.events)&&a._onViewRendered(function(){1===a.renderCount&&(i.__eventMaps.length||"object"!=typeofi.events||e.prototype.events.call(i,i.events),c.each(i.__eventMaps,function(e){f._addEventMap(a,e,a)}))}),a._templateInstance=newf.TemplateInstance(a),a.templateInstance=function(){vare=a._templateInstance;returne.data=f.getData(a),a._domrange&&!a.isDestroyed?(e.firstNode=a._domrange.firstNode(),e.lastNode=a._domrange.lastNode()):(e.firstNode=null,e.lastNode=null),e};varo=i._getCallbacks("created");a.onViewCreated(function(){n(o,a.templateInstance())});vars=i._getCallbacks("rendered");a.onViewReady(function(){n(s,a.templateInstance())});varl=i._getCallbacks("destroyed");returna.onViewDestroyed(function(){n(l,a.templateInstance())}),a},f.TemplateInstance=function(e){if(!(thisinstanceoff.TemplateInstance))returnnewf.TemplateInstance(e);if(!(einstanceoff.View))thrownewError("View required");e._templateInstance=this,this.view=e,this.data=null,this.firstNode=null
!function(){vare=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,a=Package.underscore._,o=Package.blaze.Blaze,c=Package.blaze.UI,r=Package.blaze.Handlebars,i=Package.spacebars.Spacebars,u=Package.htmljs.HTML,l;(function(){l=o.Template;vare="__proto__ name".split(" ");l.__checkName=function(t){if(tinl||a.contains(e,t)){if(l[t]instanceofl&&"body"!==t)thrownewError("There are multiple templates named '"+t+"'. Each template needs a unique name.");thrownewError("This template name is reserved: "+t)}},l.__define__=function(e,t){l.__checkName(e),l[e]=newl("Template."+e,t),l[e]._NOWARN_OLDSTYLE_HELPERS=!0},l.body=newl("body",function(){vare=this;returna.map(l.body.contentRenderFuncs,function(t){returnt.apply(e)})}),l.body.contentRenderFuncs=[],l.body.view=null,l.body.addContent=function(e){l.body.contentRenderFuncs.push(e)},l.body.renderToDocument=function(){if(!l.body.view){vare=o.render(l.body,document.body);l.body.view=e}},c.body=l.body,l.__body__=l.body,l.__body__.__contentParts=l.body.contentViews,l.__body__.__instantiate=l.body.renderToDocument}).call(this),function(){l.__checkName("__dynamic"),l.__dynamic=newl("Template.__dynamic",function(){vare=this;return[o.View("lookup:checkContext",function(){returni.mustache(e.lookup("checkContext"))}),"\n ",o.If(function(){returni.call(e.lookup("dataContextPresent"))},function(){return["\n ",i.include(e.lookupTemplate("__dynamicWithDataContext"),function(){returno._InOuterTemplateScope(e,function(){returni.include(function(){returni.call(e.templateContentBlock)})})}),"\n "]},function(){return["\n \n ",o._TemplateWith(function(){return{template:i.call(e.lookup("template")),data:i.call(e.lookup(".."))}},function(){returni.include(e.lookupTemplate("__dynamicWithDataContext"),function(){returno._InOuterTemplateScope(e,function(){returni.include(function(){returni.call(e.templateContentBlock)})})})}),"\n "]})]}),l.__checkName("__dynamicWithDataContext"),l.__dynamicWithDataContext=newl("Template.__dynamicWithDataContext",function(){vare=this;returni.With(function(){returni.dataMustache(e.lookup("chooseTemplate"),e.lookup("template"))},function(){return["\n \n ",o._TemplateWith(function(){returni.call(i.dot(e.lookup(".."),"data"))},function(){returni.include(e.lookupTemplate(".."),function(){returno._InOuterTemplateScope(e,function(){returni.include(function(){returni.call(e.templateContentBlock)})})})}),"\n "]})})}.call(this),function(){vare=o.Template;e.__dynamicWithDataContext.helpers({chooseTemplate:function(t){returno._getTemplate(t,function(){returne.instance()})}}),e.__dynamic.helpers({dataContextPresent:function(){returna.has(this,"data")},checkContext:function(){if(!a.has(this,"template"))thrownewError("Must specify name in the 'template' argument to {{> Template.dynamic}}.");a.each(this,function(e,t){if("template"!==t&&"data"!==t)thrownewError("Invalid argument to {{> Template.dynamic}}: "+t)})}})}.call(this),"undefined"==typeofPackage&&(Package={}),function(e,t){for(varnint)nine||(e[n]=t[n])}(Package["templating-runtime"]={},{Template:l})}();
!function(){vare=Package.meteor.Meteor,n=Package.meteor.global,a=Package.meteor.meteorEnv,r;(function(){varn=0,a=!1;r={hold:function(){if(!e.isCordova)return{release:function(){}};if(a)thrownewError("Can't show launch screen once it's hidden");n++;varr=!1,o=function(){e.isCordova&&(r||(r=!0,n--,0===n&&"undefined"!=typeofnavigator&&navigator.splashscreen&&(a=!0,navigator.splashscreen.hide())))};return{release:o}}}}).call(this),function(){varn=r.hold(),a=Package.templating&&Package.templating.Template;e.startup(function(){a?Package["iron:router"]?Package["iron:router"].Router.onAfterAction(function(){n.release()}):(a.body.onRendered(function(){n.release()}),setTimeout(function(){n.release()},6e3)):n.release()})}.call(this),"undefined"==typeofPackage&&(Package={}),function(e,n){for(varainn)aine||(e[a]=n[a])}(Package["launch-screen"]={},{LaunchScreen:r})}();
!function(){vare=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,r=Package.underscore._,o=Package.ejson.EJSON,i;(function(){if(Package["cmather:iron-core"])thrownewError("\n\n Sorry! The cmather:iron-{x} packages were migrated to the new package system with the wrong name, and you have duplicate copies.\n You can see which cmather:iron-{x} packages have been installed by using this command:\n\n > meteor list\n\n Can you remove any installed cmather:iron-{x} packages like this: \n\n > meteor remove cmather:iron-core\n > meteor remove cmather:iron-router\n > meteor remove cmather:iron-dynamic-template\n > meteor remove cmather:iron-dynamic-layout\n \n The new packages are named iron:{x}. For example:\n\n > meteor add iron:router\n\n Sorry for the hassle, but thank you! \n\n ")}).call(this),function(){i={},i.utils={},i.utils.assert=function(e,t){if(!e)thrownewError(t)},i.utils.warn=function(e,t){e||console&&console.warn&&console.warn(t)},i.utils.defaultValue=function(e,t,n){return"undefined"==typeofe[t]?(e[t]=n,n):e[t]},i.utils.inherits=function(e,t,n){i.utils.assert("undefined"!=typeofe,"Child is undefined in inherits function"),i.utils.assert("undefined"!=typeoft,"Parent is undefined in inherits function");for(varaint)r.has(t,a)&&(e[a]=o.clone(t[a]));vars=function(){this.constructor=e};returns.prototype=t.prototype,e.prototype=news,e.__super__=t.prototype,r.isObject(n)&&r.extend(e.prototype,n),e},i.utils.extend=function(e,t){t=t||{};varn=function(){vare;e=r.has(t,"constructor")?t.constructor:n.__super__.constructor,e.apply(this,arguments)};returni.utils.inherits(n,e,t)},i.utils.global=function(){returne.isClient?window:t}(),i.utils.namespace=function(e,t){varn=i.utils.global,r,o,a,s;i.utils.assert("string"==typeofe,"namespace must be a string"),r=e.split("."),a=r.pop(),s=n;for(varc=0;c<r.length;c++)o=r[c],s=s[o]=s[o]||{};return2===arguments.length?(s[a]=t,t):s[a]},i.utils.resolve=function(e){vart=i.utils.global,n,r;if("string"==typeofe){n=e.split("."),r=t;for(varo=0;o<n.length;o++)if(r=r[n[o]],!r)return}elser=e;returnr},i.utils.capitalize=function(e){returne.charAt(0).toUpperCase()+e.slice(1,e.length)},i.utils.classCase=function(e){vart=/_|-|\.|\//;returne?r.map(e.split(t),function(e){returni.utils.capitalize(e)}).join(""):""},i.utils.camelCase=function(e){vart=i.utils.classCase(e);returnt=t.charAt(0).toLowerCase()+t.slice(1,t.length)},i.utils.notifyDeprecated=function(e){vart,n,o,i,a="[:where] ':name' is deprecated. Please use ':instead' instead.";r.isObject(e)?(t=e.name,n=e.instead,o=e.message||a,i=e.where||"IronRouter"):(o=e,t="",n="",i=""),"undefined"!=typeofconsole&&console.warn&&console.warn("<deprecated> "+o.replace(":name",t).replace(":instead",n).replace(":where",i)+" "+(newError).stack)},i.utils.withDeprecatedNotice=function(e,t,n){returnfunction(){returnUtils.notifyDeprecated(e),t&&t.apply(n||this,arguments)}},Function.prototype.deprecate=function(e){vart=this;returni.utils.withDeprecatedNotice(e,t)},i.utils.debug=function(e){returni.utils.assert("string"==typeofe,"debug requires a package name"),functiont(){if(console&&console.log&&i.debug===!0){varn=r.toArray(arguments).join(" ");console.log("%c<"+e+"> %c"+n,"color: #999;","color: #000;")}}},i.utils.get=function(e){for(vart=1;t<arguments.length;t++){if(!(e&&arguments[t]ine))return;e=e[arguments[t]]}returne},i.utils.global.Iron=i}.call(this),"undefined"==typeofPackage&&(Package={}),function(e,t){for(varnint)nine||(e[n]=t[n])}(Package["iron:core"]={},{Iron:i})}();
!function(){vare=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,a=Package.ui.Blaze,r=Package.ui.UI,i=Package.ui.Handlebars,o=Package.underscore._,s=Package.jquery.$,u=Package.jquery.jQuery,c=Package.tracker.Tracker,l=Package.tracker.Deps,p=Package["reactive-var"].ReactiveVar,h=Package["templating-runtime"].Template,d=Package.random.Random,m=Package["iron:core"].Iron,f=Package.htmljs.HTML,_=Package.spacebars.Spacebars,v;(function(){if(Package["cmather:iron-dynamic-template"])thrownewError("\n\n Sorry! The cmather:iron-{x} packages were migrated to the new package system with the wrong name, and you have duplicate copies.\n You can see which cmather:iron-{x} packages have been installed by using this command:\n\n > meteor list\n\n Can you remove any installed cmather:iron-{x} packages like this: \n\n > meteor remove cmather:iron-core\n > meteor remove cmather:iron-router\n > meteor remove cmather:iron-dynamic-template\n > meteor remove cmather:iron-dynamic-layout\n \n The new packages are named iron:{x}. For example:\n\n > meteor add iron:router\n\n Sorry for the hassle, but thank you! \n\n ")}).call(this),function(){h.__checkName("__DynamicTemplateError__"),h.__DynamicTemplateError__=newh("Template.__DynamicTemplateError__",function(){vare=this;returnf.DIV({style:"margin: 0 auto; color: red;"},"\n ",a.View("lookup:msg",function(){return_.mustache(e.lookup("msg"))}),"\n ")})}.call(this),function(){vare=m.utils.debug("iron:dynamic-template"),t=m.utils.assert,n=m.utils.get,i=m.utils.camelCase,u=function(e){returnObject.prototype.toString.call(e)};v=function(e){this._id=d.id(),this.options=e=e||{},this._template=e.template,this._defaultTemplate=e.defaultTemplate,this._content=e.content,this._data=e.data,this._templateDep=newc.Dependency,this._dataDep=newc.Dependency,this._lookupHostDep=newc.Dependency,this._lookupHostValue=null,this._hooks={},this._eventMap=null,this._eventHandles=null,this._eventThisArg=null,this.name=e.name||this.constructor.prototype.name||"DynamicTemplate",this.isCreated=!1,this.isDestroyed=!1},v.prototype.template=function(e){if(1===arguments.length&&e!==this._template)returnthis._template=e,voidthis._templateDep.changed();if(!(arguments.length>0))returnthis._templateDep.depend(),this._template?"function"==typeofthis._template?this._template():this._template:this._defaultTemplate?"function"==typeofthis._defaultTemplate?this._defaultTemplate():this._defaultTemplate:void0},v.prototype.defaultTemplate=function(e){return1!==arguments.length?this._defaultTemplate:void(this._defaultTemplate=e)},v.prototype.clear=function(){this._template=void0,this._data=void0,this._templateDep.changed()},v.prototype.data=function(e){return1===arguments.length&&e!==this._data?(this._data=e,voidthis._dataDep.changed()):(this._dataDep.depend(),"function"==typeofthis._data?this._data():this._data)},v.prototype.create=function(e){vart=this;if(this.isCreated)thrownewError("DynamicTemplate view is already created");this.isCreated=!0,this.isDestroyed=!1;varn=p(null),r=a.View("DynamicTemplate",function(){vare=this,r=n.get();returna.With(function(){varn=t.data();return"undefined"!=typeofn?n:v.getParentDataContext(e)},function(){returnt.renderView(r)})});returnr.onViewCreated(function(){this.autorun(function(){n.set(t.template())})}),o.each(["onViewCreated","onViewReady","_onViewRendered","onViewDestroyed"],function(e){r[e](function(){t._runHooks(e,this)})}),r._onViewRendered(function(){t.isInserted=!0,1===r.renderCount&&t._attachEvents()}),r.onViewDestroyed(function(){t._detachEvents()}),r._templateInstance=newa.TemplateInstance(r),r.templateInstance=function(){vare=r._templateInstance;returne.data=a.getData(r),r._domrange&&!r.isDestroyed?(e.firstNode=r._domrange.firstNode(),e.lastNode=r._domrange.lastNode()):(e.firstNode=null,e.lastNode=null),e},this.view=r,r.__dynamicTemplate__=this,r.name=this.name,r},v.prototype.renderView=function(e){vart=this,n=null;return"string"==typeofe?(n=h[e],n||(n=h[i(e)]),n||(n=a.With({msg:"Coul
!function(){vare=Package.meteor.Meteor,n=Package.meteor.global,t=Package.meteor.meteorEnv,r=Package["templating-runtime"].Template,o=Package.blaze.Blaze,i=Package.blaze.UI,a=Package.blaze.Handlebars,s=Package.underscore._,c=Package.tracker.Tracker,u=Package.tracker.Deps,h=Package["iron:core"].Iron,l=Package.htmljs.HTML,g=Package.spacebars.Spacebars,d,p,m;(function(){vare=[];if(Package["cmather:iron-layout"]&&e.push("\n\n The cmather:iron-{x} packages were migrated to the new package system with the wrong name, and you have duplicate copies.\n You can see which cmather:iron-{x} packages have been installed by using this command:\n\n > meteor list\n\n Can you remove any installed cmather:iron-{x} packages like this: \n\n > meteor remove cmather:iron-core\n > meteor remove cmather:iron-router\n > meteor remove cmather:iron-dynamic-template\n > meteor remove cmather:iron-dynamic-layout\n \n The new packages are named iron:{x}. For example:\n\n > meteor add iron:router\n\n Sorry for the hassle, but thank you! \n\n "),Package["cmather:blaze-layout"]&&e.push("The blaze-layout package has been replaced by iron-layout. Please remove the package like this:\n> meteor remove cmather:blaze-layout\n"),e.length>0)thrownewError("Sorry! Looks like there's a few errors related to iron:layout\n\n"+e.join("\n\n"))}).call(this),function(){r.__checkName("__IronDefaultLayout__"),r.__IronDefaultLayout__=newr("Template.__IronDefaultLayout__",function(){vare=this;returng.include(e.lookupTemplate("yield"))})}.call(this),function(){vare=h.DynamicTemplate,n=h.utils.inherits;d=function(e){for(;e;){if("Iron.Layout"===e.name)returne.__dynamicTemplate__;e=e.parentView}returnnull},p=function(e){varn=this;p.__super__.constructor.apply(this,arguments),e=e||{},this.name="Iron.Layout",this._regions={},this._regionHooks={},this.defaultTemplate("__IronDefaultLayout__"),e.content&&this.render(e.content)},m=p.DEFAULT_REGION="main",n(p,h.DynamicTemplate),p.prototype.region=function(e,n){returnthis._ensureRegion(e,n)},p.prototype.destroyRegions=function(){s.each(this._regions,function(e){e.destroy()}),this._regions={}},p.prototype.render=function(e,n){n=n||{};vart=n.to||n.region||m,r=this.region(t);this._trackRenderedRegion(t),r.template(e),r.data(n.data)},p.prototype.has=function(e){returne=e||p.DEFAULT_REGION,!!this._regions[e]},p.prototype.regionKeys=function(){returns.keys(this._regions)},p.prototype.clear=function(e){returne=e||p.DEFAULT_REGION,this.has(e)&&this.region(e).template(null),this},p.prototype.clearAll=function(){returns.each(this._regions,function(e){e.template(null)}),this},p.prototype.beginRendering=function(e){varn=this;if(this._finishRenderingTransaction&&this._finishRenderingTransaction(),this._finishRenderingTransaction=s.once(function(){vart=n._endRendering({flush:!1});e&&e(t)}),u.afterFlush(this._finishRenderingTransaction),this._renderedRegions)thrownewError("You called beginRendering again before calling endRendering");this._renderedRegions={}},p.prototype._trackRenderedRegion=function(e){this._renderedRegions&&(this._renderedRegions[e]=!0)},p.prototype._endRendering=function(e){e=e||{},e.flush!==!1&&u.flush();varn=this._renderedRegions||{};returnthis._renderedRegions=null,s.keys(n)},s.each(["onRegionCreated","onRegionRendered","onRegionDestroyed"],function(e){p.prototype[e]=function(n){vart=this._regionHooks[e]=this._regionHooks[e]||[];returnt.push(n),this}}),p.prototype._ensureRegion=function(e,n){returnthis._regions[e]=this._regions[e]||this._createDynamicTemplate(e,n)},p.prototype._createDynamicTemplate=function(e,n){vart=this,r=newh.DynamicTemplate(n),o=h.utils.capitalize;returnr._region=e,s.each(["viewCreated","viewReady","viewDestroyed"],function(e){e=o(e),r["on"+e](function(n){varr=this,o={viewCreated:"regionCreated",viewReady:"regionRendered",viewDestroyed:"regionDestroyed"}[e];t._runRegionHooks("on"+o,r,n)})}),r},p.prototype._runRegionHooks=function(e,n,t){for(varr=this,o=this._regionHooks[e]||[],i,a=0;a<o.length;a++)i=o[a],i.call(n,t.region,t,this)},"un
!function(){vare=Package.meteor.Meteor,r=Package.meteor.global,t=Package.meteor.meteorEnv,n=Package.underscore._,i=Package["iron:core"].Iron,o,a;(function(){(function(){functione(e){returne.replace(/([=!:$\/()])/g,"\\$1")}functionr(o,a,c){a&&"[object Array]"!==t(a)&&(c=a,a=null),a=a||[],c=c||{};vars=c.strict,u=c.end!==!1,p=c.sensitive?"":"i",f=0;if(oinstanceofRegExp){varl=o.source.match(/\((?!\?)/g)||[];returna.push.apply(a,l.map(function(e,r){return{name:r,delimiter:null,optional:!1,repeat:!1}})),i(o,a)}if("[object Array]"===t(o))returno=o.map(function(e){returnr(e,a,c).source}),i(newRegExp("(?:"+o.join("|")+")",p),a);o=o.replace(n,function(r,t,n,i,o,c,s,u){if(t)returnt;if(u)return"\\"+u;varp="+"===s||"*"===s,l="?"===s||"*"===s;returna.push({name:i||f++,delimiter:n||"/",optional:l,repeat:p}),n=n?"\\"+n:"",o=e(o||c||"[^"+(n||"\\/")+"]+?"),p&&(o=o+"(?:"+n+o+")*"),l?"(?:"+n+"("+o+"))?":n+"("+o+")"});varg="/"===o[o.length-1];returns||(o=(g?o.slice(0,-2):o)+"(?:\\/(?=$))?"),u||(o+=s&&g?"":"(?=\\/|$)"),i(newRegExp("^"+o+(u?"$":""),p),a)}vart=function(e){returnObject.prototype.toString.call(e)},n=newRegExp(["(\\\\.)","([\\/.])?(?:\\:(\\w+)(?:\\(((?:\\\\.|[^)])*)\\))?|\\(((?:\\\\.|[^)])*)\\))([+*?])?","([.+*?=^!:${}()[\\]|\\/])"].join("|"),"g"),i=function(e,r){returne.keys=r,e};o=r}).call(this),function(){functionr(e){try{returndecodeURIComponent(e.replace(/\+/g," "))}catch(r){returnvoid(r.constructor==URIError&&c("Tried to decode an invalid URI component: "+JSON.stringify(e)+" "+r.stack))}}functiont(e){try{returndecodeURI(e.replace(/\+/g," "))}catch(r){returnvoid(r.constructor==URIError&&c("Tried to decode an invalid URI: "+JSON.stringify(e)+" "+r.stack))}}varc=i.utils.warn,s=i.utils.assert;a=function(e,r){r=r||{},this.options=r,this.keys=[],this.regexp=o(e,this.keys,r),this._originalPath=e,n.extend(this,a.parse(e))};varu=__meteor_runtime_config__.ROOT_URL;if(__meteor_runtime_config__.ROOT_URL_PATH_PREFIX){varp=__meteor_runtime_config__.ROOT_URL.indexOf(__meteor_runtime_config__.ROOT_URL_PATH_PREFIX);p!=-1&&(u=__meteor_runtime_config__.ROOT_URL.substr(0,p))}a.ROOT_URL_WITHOUT_PATH_PREFIX=u,a.normalize=function(e){if(einstanceofRegExp)returne;if("string"!=typeofe)return"/";varr=a.parse(e),t=r.pathname;return"/"!==t.charAt(0)&&(t="/"+t),t.length>1&&"/"===t.charAt(t.length-1)&&(t=t.slice(0,t.length-1)),t},a.isSameOrigin=function(e,r){vart=a.parse(e),n=a.parse(r),i=t.origin===n.origin;returni},a.fromQueryString=function(e){if(!e)return{};if("string"!=typeofe)thrownewError("expected string");"?"===e.charAt(0)&&(e=e.slice(1));vart=e.split("&"),i={},o;returnn.each(t,function(e){vart=e.split("="),n=t[0],o=r(t[1]);"[]"===n.slice(-2)?(n=n.slice(0,-2),i[n]=i[n]||[],i[n].push(o)):i[n]=o}),i},a.toQueryString=function(e){varr=[];return"string"==typeofe?"?"!==e.charAt(0)?"?"+e:e:(n.each(e,function(e,t){n.isArray(e)?n.each(e,function(e){r.push(encodeURIComponent(t+"[]")+"="+encodeURIComponent(e))}):r.push(encodeURIComponent(t)+"="+encodeURIComponent(e))}),r.length>0?"?"+r.join("&"):"")},a.parse=function(e){if("string"!=typeofe)return{};varr=/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,t=e.match(r),n=t[1]?t[1].toLowerCase():void0,i=t[3],o=!!i,c=t[4]?t[4].toLowerCase():void0,s=c?c.split("@"):[],u,p;2==s.length?(p=s[0],u=s[1]):1==s.length?(u=s[0],p=void0):(u=void0,p=void0);varf=u&&u.split(":")||[],l=f[0],g=f[1],h=n&&u?n+"//"+u:void0,_=t[5],m=t[8],d=e,R=t[6],v,y=m&&m.indexOf("?")||-1;~y&&!R?(R=m.slice(y),m=m.substr(0,y),v=R.slice(1)):v=t[7];varU=_+(R||""),O=a.fromQueryString(v),P=[n||"",o?"//":"",c||""].join(""),x=[n||"",o?"//":"",c||"",_||"",R||"",m||""].join("");return{rootUrl:P||"",originalUrl:e||"",href:x||"",protocol:n||"",auth:p||"",host:u||"",hostname:l||"",port:g||"",origin:h||"",path:U||"",pathname:_||"",search:R||"",query:v||"",queryObject:O||"",hash:m||"",slashes:o}},a.prototype.test=function(e){returne=a.normalize(e),e=a.trimPathPrefixAccordingToMeteorRootUrlSettingsForRouteMatching(e),this.regexp.test(e)},a.prototype.exec=function(e){returne=a.normalize(e),
!function(){vart=Package.meteor.Meteor,e=Package.meteor.global,n=Package.meteor.meteorEnv,r=Package.underscore._,i=Package.ejson.EJSON,o=Package["iron:core"].Iron,a=Package["clinical:router-url"].Url,s,h;(function(){vart=o.Url;s=function(e,n,i){r.isFunction(e)&&(i=i||n||{},n=e,e="/",this.middleware=!0,"undefined"==typeofi.mount&&(i.mount=!0)),"object"==typeofn&&(i=n,n=i.action||"action"),i=i||{},this.options=i,this.mount=i.mount,this.method=i.method&&i.method.toLowerCase()||!1,this.where=i.where||"client",this.mount&&(i.end=!1),i.name?this.name=i.name:"string"==typeofe&&"/"!==e.charAt(0)?this.name=e:"string"==typeofe&&"/"!==e&&(this.name=e.split("/").slice(1).join(".")),e=i.path||e,"string"==typeofe&&"/"!==e.charAt(0)&&(e="/"+e),this.path=e,this.compiledUrl=newt(e,i),r.isString(n)?this.handle=functiont(){vare=this[n];if("function"!=typeofe)thrownewError("No method named "+JSON.stringify(n)+" found on handler.");returne.apply(this,arguments)}:r.isFunction(n)&&(this.handle=n)},s.prototype.test=function(t,e){e=e||{};varn=this.compiledUrl.test(t),r=!0,i=!0;returnthis.method&&e.method&&(r=this.method==e.method.toLowerCase()),e.where&&(i=this.where==e.where),n&&r&&i},s.prototype.params=function(t){returnthis.compiledUrl.params(t)},s.prototype.resolve=function(t,e){returnthis.compiledUrl.resolve(t,e)},s.prototype.clone=function(){vart=news(this.path,this.handle,this.options);returnt.name=this.name,t}}).call(this),function(){vare=o.Url,n=o.utils.assert,a=o.utils.defaultValue;h=function(){this._stack=[],this.length=0},h.prototype._create=function(t,e,n){vari=news(t,e,n),o=i.name;if(o){if(r.has(this._stack,o))thrownewError("Handler with name '"+o+"' already exists.");this._stack[o]=i}returni},h.prototype.findByName=function(t){returnthis._stack[t]},h.prototype.push=function(t,e,n){varr=this._create(t,e,n);returnthis._stack.push(r),this.length++,r},h.prototype.append=function(){vart=this,e=r.toArray(arguments),n={};return"object"==typeofe[e.length-1]&&(n=e.pop()),r.each(e,function(e){if("undefined"!=typeofe)if("function"==typeofe)t.push(e,n);else{if(!r.isArray(e))thrownewError("Can only append functions or arrays to the MiddlewareStack");t.append.apply(t,e.concat([n]))}}),this},h.prototype.insertAt=function(t,e,n,r){vari=this._create(e,n,r);returnthis._stack.splice(t,0,i),this.length=this._stack.length,this},h.prototype.insertBefore=function(t,e,n,i){varo,a;if(!(o=this._stack[t]))thrownewError("Couldn't find a handler named '"+t+"' on the path stack");returna=r.indexOf(this._stack,o),this.insertAt(a,e,n,i),this},h.prototype.insertAfter=function(t,e,n,i){varo,a;if(!(o=this._stack[t]))thrownewError("Couldn't find a handler named '"+t+"' on the path stack");returna=r.indexOf(this._stack,o),this.insertAt(a+1,e,n,i),this},h.prototype.concat=function(){vart=newh,e=Array.prototype.concat,n=i.clone(this._stack),o=r.map(r.toArray(arguments),function(t){returni.clone(t._stack)});returnt._stack=e.apply(n,o),t.length=t._stack.length,t},h.prototype.dispatch=functionr(i,o,s){varh=this,l=i;n("string"==typeofi,"Requires url"),n("object"==typeofo,"Requires context object"),i=e.normalize(i||"/"),a(o,"request",{}),a(o,"response",{}),a(o,"originalUrl",i),a(o,"_method",o.method),a(o,"_handlersForEnv",{client:!1,server:!1}),a(o,"_handled",!1),a(o,"isHandled",function(){returno._handled}),a(o,"willBeHandledOnClient",function(){returno._handlersForEnv.client}),a(o,"willBeHandledOnServer",function(){returno._handlersForEnv.server});varc=function(){if(s)try{s.apply(this,arguments)}catch(t){throwt._punt=!0,t}},u=0,d=t.bindEnvironment(functionn(r){vara=h._stack[u++];if(o.url=o.request.url=o.originalUrl,!a)returnc.call(o,r);if(!a.test(i,{method:o._method}))returnd(r);vars=t.isClient?"client":"server";if(a.middleware||(o._handlersForEnv[a.where]=!0),a.where!==s)returnd(r);if(o.next=d,a.mount){varl=e.normalize(a.compiledUrl.pathname),p=i.substr(l.length,i.length);p=e.normalize(p),o.url=o.request.url=p}try{varf=a.handle.length,m=o.request,y=o.response;returnr&&4===f?a.handle.call(o,r,m,y,d):!r&&
!function(){vart=Package.meteor.Meteor,e=Package.meteor.global,n=Package.meteor.meteorEnv,a=Package.underscore._,r=Package.tracker.Tracker,o=Package.tracker.Deps,i=Package.jquery.$,c=Package.jquery.jQuery,s=Package["iron:core"].Iron,h=Package["clinical:router-url"].Url,u,l,f,p,g;(function(){(function(){vart=s.Url,e="__hash__";u=function(n){vara=t.parse(n),r=a.hash&&a.hash.replace("#",""),o=a.search,i=a.pathname,c=a.rootUrl;if(r&&"!"!==r.charAt(0)){vars=e+"="+r;o=o?o+"&":"?",o+=s,r=""}return!r&&i?r="#!"+i.substring(1):r&&(r="#"+r),[c,r,o].join("")},l=function(n){varr=t.parse(n),o=r.hash&&r.hash.replace("#!","/"),i=r.search,c=r.rootUrl,s;returna.has(r.queryObject,e)?(s="#"+r.queryObject[e],deleter.queryObject[e]):s="",[c,o,t.toQueryString(r.queryObject),s].join("")},f=function(n){vara=t.parse(n),r=a.queryObject;returna.hash&&(r[e]=a.hash.replace("#","")),["!",a.pathname.substring(1),t.toQueryString(r)].join("")}}).call(this),function(){vart=s.Url;p=function(e,n){a.extend(this,t.parse(e),{options:n||{}})},p.prototype.equals=function(t){return!!t&&(tinstanceofp&&(t.pathname==this.pathname&&t.search==this.search&&t.hash==this.hash&&t.options.historyState===this.options.historyState))},p.prototype.isCancelled=function(){return!!this._isCancelled},p.prototype.cancelUrlChange=function(){this._isCancelled=!0}}.call(this),function(){vare=s.Url,n=null,r=newo.Dependency,c={go:[],popState:[]},h=function(){return/MSIE 9/.test(navigator.appVersion)},y=function(){return/MSIE 8/.test(navigator.appVersion)},d=function(){return!!Package.appcache},S=function(){return"undefined"==typeofhistory||"function"!=typeofhistory.pushState},v=function(){returng.options.useHashPaths||y()||h()||d()||S()},k=function(){return!!g.options.useHashPaths},P=function(t,e){a.each(c[t],function(t){t.call(e)})},w=function(t){if(!(tinstanceofp))thrownewError("Expected a State instance");return!t.equals(n)&&(n=t,r.changed(),!0)},m=function(){vart=location.href,e;e=k()?newp(l(t)):newp(t,{historyState:history.state}),P("popState",e),w(e)},j=function(t){vare=q;e&&e(t)},_=function(t,e){e=e||{};varn=newp(t,e);P("go",n),w(n)&&o.afterFlush(function(){n.isCancelled()||(k()?location.hash=f(t):e.replaceState===!0?history.replaceState(e.historyState,null,t):history.pushState(e.historyState,null,t))})},q=function(t){try{varn=t.currentTarget,a=n.href,r=n.pathname+n.search+n.hash;if(r=r.replace(/(^\/?)/,"/"),t.isDefaultPrevented())returnvoidt.preventDefault();if(t.metaKey||t.ctrlKey||t.shiftKey)return;if(n.target)return;if(!e.isSameOrigin(a,location.href))return;t.preventDefault(),_(r)}catch(e){throwt.preventDefault(),e}};g={},g.options={linkSelector:"a[href]",useHashPaths:!1},g.configure=function(t){a.extend(this.options,t||{})},g.get=function(){returnr.depend(),n},g.start=function(){if(!this._isStarted){varn=e.parse(location.href);if(v()){if(n.pathname.length>1){vara=u(location.href);window.location=a}this.configure({useHashPaths:!0})}varr=location.href;if(k()){varo=newp(l(r));w(o)}else{if("!"===n.hash.replace("#","")[0])varr=l(r);varc={initial:!0};history.replaceState(c,null,r);varo=newp(r,{historyState:c});w(o)}i(window).on("popstate.iron-location",m),i(window).on("hashchange.iron-location",m),t.startup(function(){i(document).on("click.iron-location",g.options.linkSelector,j)}),this._isStarted=!0}},g.stop=function(){this._isStarted&&(i(window).on("popstate.iron-location"),i(window).on("hashchange.iron-location"),i(document).off("click.iron-location"),this._isStarted=!1)},g.onClick=function(t){q=t},g.go=function(t,e){return_(t,e)},g.onGo=function(t){c.go.push(t)},g.onPopState=function(t){c.popState.push(t)},g.start(),s.Location=g}.call(this)}).call(this),"undefined"==typeofPackage&&(Package={}),function(t,e){for(varnine)nint||(t[n]=e[n])}(Package["clinical:router-location"]={},{urlToHashStyle:u,urlFromHashStyle:l})}();
!function(){vart=Package.meteor.Meteor,e=Package.meteor.global,n=Package.meteor.meteorEnv,a=Package.underscore._,o=Package.tracker.Tracker,i=Package.tracker.Deps,r=Package["reactive-dict"].ReactiveDict,u=Package["templating-runtime"].Template,s=Package["iron:core"].Iron,c=Package.blaze.Blaze,l=Package.blaze.UI,p=Package.blaze.Handlebars,d=Package.spacebars.Spacebars,y=Package.htmljs.HTML,h,f;(function(){vart=s.utils.assert,e=function(){for(vart={},e=i.currentComputation;e;)t[String(e._id)]=!0,e=e._parent;returnt},n=function(n){varo=e(),i=a.keys(n._dependentsById);a.each(i,function(e){t(!o[e],"\n\nYou called wait() after calling ready() inside the same computation tree.\n\nYou can fix this problem in two possible ways:\n\n1) Put all of your wait() calls before any ready() calls.\n2) Put your ready() call in its own computation with Deps.autorun.")})};h=function(){this._readyDep=newi.Dependency,this._comps=[],this._notReadyCount=0},h.prototype.wait=function(t){vare=this,o=i.currentComputation;n(e._readyDep),i.nonreactive(function(){varn=null,r=i.autorun(function(a){varo=!!t(),i=e._notReadyCount;a.firstRun&&!o?e._notReadyCount++:null!==n&&o!==n&&o===!0?e._notReadyCount--:null!==n&&o!==n&&o===!1&&e._notReadyCount++,n=o,0===i&&e._notReadyCount>0?e._readyDep.changed():i>0&&0===e._notReadyCount&&e._readyDep.changed()});e._comps.push(r),o&&o.onInvalidate(function(){i.afterFlush(function(){r.stop(),e._comps.splice(a.indexOf(e._comps,r),1),n===!1&&(e._notReadyCount--,0===e._notReadyCount&&e._readyDep.changed())})})})},h.prototype.ready=function(){returnthis._readyDep.depend(),0===this._notReadyCount},h.prototype.stop=function(){a.each(this._comps,function(t){t.stop()}),this._comps=[]},s.WaitList=h}).call(this),function(){vart=s.utils.debug("iron:controller"),e=s.Layout,n=s.DynamicTemplate,o=function(t,e){returnfunction(){return"function"==typeoft?t.apply(e,arguments):t}};f=function(t){varn=this;this.options=t||{},this._layout=this.options.layout||newe(this.options),this._isController=!0,this._layout._setLookupHost(this);vara=f._collectEventMaps.call(this.constructor);this._layout.events(a,this),this.init(t)},f.prototype.layout=function(t,e){varn=this;returnthis._layout.template(t),e&&a.has(e,"data")&&this._layout.data(o(e.data,this)),{data:function(t){returnn._layout.data(o(t,n))}}},f.prototype.render=function(t,e){varn=this;e&&"undefined"!=typeofe.data&&(e.data=o(e.data,this));vara=this._layout.render(t,e);return{data:function(t){returna.data(o(t,n))}}},f.prototype.beginRendering=function(t){returnthis._layout.beginRendering(t)},f.extend=function(t){returns.utils.extend(this,t)},f.events=function(t){returnthis._eventMap=t,this};vari=function(t,e){varn={};returnt.__super__&&a.extend(n,i(t.__super__.constructor,e)),a.has(t,e)?a.extend(n,t[e]):n};f._collectEventMaps=function(){returni(this,"_eventMap")},f._helpers={},f.helpers=function(t){returna.extend(this._helpers,t),this},"undefined"!=typeofu&&(s.controller=function(){returnn.findLookupHostWithProperty(c.getView(),"_isController")},u.registerHelper("get",function(t){vare=s.controller();if(e&&e.state)returne.state.get(t)})),s.Controller=f}.call(this),function(){vart=s.Layout,e=s.utils.debug("iron:controller"),n=s.utils.defaultValue,o=function(t,e){returnfunction(){return"function"==typeoft?t.apply(e,arguments):t}};f.prototype.init=function(t){this._waitlist=newh,this.state=newr},f.prototype.insert=function(t){returnthis._layout.insert.apply(this._layout,arguments)},f.prototype.wait=function(t){vare=this;if(t)returna.isArray(t)?a.each(t,functiont(n){e.wait(n)}):t.ready?this._waitlist.wait(function(){returnt.ready()}):this._waitlist.wait(t),this},f.prototype.ready=function(){returnthis._waitlist.ready()},f.prototype.stop=function(){this._waitlist.stop()}}.call(this),"undefined"==typeofPackage&&(Package={}),Package["iron:controller"]={}}();
!function(){vart=Package.underscore._,o=Package.tracker.Tracker,e=Package.tracker.Deps,r=Package.blaze.Blaze,n=Package.blaze.UI,i=Package.blaze.Handlebars,a=Package["templating-runtime"].Template,u=Package.ejson.EJSON,s=Package.meteor.Meteor,l=Package.meteor.global,c=Package.meteor.meteorEnv,p=Package["iron:core"].Iron,h=Package["clinical:router-middleware-stack"].MiddlewareStack,f=Package["clinical:router-url"].Url,d=Package.htmljs.HTML,y=Package.spacebars.Spacebars,_,m,g,v,k,w;(function(){(function(){_=news.EnvironmentVariable}).call(this),function(){m=["get","post","put","delete","patch"]}.call(this),function(){varo=p.Controller,e=p.Url,r=p.MiddlewareStack,n=p.utils.assert;g=o.extend({constructor:function(o){g.__super__.constructor.apply(this,arguments),o=o||{},this.options=o,this._onStopCallbacks=[],this.route=o.route,this.params=[];vare=this.lookupOption("data");"function"==typeofe?this.data=t.bind(e,this):"undefined"!=typeofe&&(this.data=function(){returne}),this.init(o)}}),g.prototype.lookupOption=function(o){if(this.route&&this.route.options&&t.has(this.route.options,o))returnthis.route.options[o];if(t.has(this.options,o))returnthis.options[o];if("undefined"!=typeofthis[o])returnthis[o];vare=_.get();returne&&t.has(e,o)?e[o]:this.router&&this.router.options&&t.has(this.router.options,o)?this.router.options[o]:void0},g.prototype.configureFromUrl=function(t,o,e){n("string"==typeoft,"url must be a string"),o=o||{},this.request=o.request||{},this.response=o.response||{},this.url=o.url||t,this.originalUrl=o.originalUrl||t,this.method=this.request.method,this.route&&this.setParams(this.route.params(t),e)},g.prototype._collectHooks=function(){varo=this,e=t.toArray(arguments),r=function(e){if(!e)return[];varr=o.router.lookupHook,n=t.isArray(e)?e:[e];returnt.map(n,function(t){returnr(t)})},n=function(o,e){vari=[];returno.__super__&&(i=i.concat(n(o.__super__.constructor,e))),t.has(o.prototype,e)?i.concat(r(o.prototype[e])):i},i=function(t){for(varo=0;o<e.length;o++)t(e[o])},a=[];i(function(t){vare=o.route&&o.route.getName(),r=o.router.getHooks(t,e);a=a.concat(r)});varu=[];i(function(t){vare=n(o.constructor,t);u=u.concat(e)});vars=[];i(function(e){if(t.has(o,e)){varn=r(o[e]);s=s.concat(n)}});varl=[];o.route&&i(function(t){vare=r(o.route.options[t]);l=l.concat(e)});varc=a.concat(l).concat(u).concat(s);returnc},g.prototype.runHooks=function(){for(vart=this._collectHooks.apply(this,arguments),o=0,e=t.length;o<e;o++){varr=t[o];r.call(this)}returnt.length},g.prototype.getParams=function(){returnthis.params},g.prototype.setParams=function(t){returnthis.params=t,this},p.RouteController=g}.call(this),function(){varr=p.Controller,n=p.Url,i=p.MiddlewareStack,a=p.utils.debug("iron-router:RouteController");if(g.prototype.init=function(t){g.__super__.init.apply(this,arguments),this._computation=null,this._paramsDep=newo.Dependency,this.location=p.Location},g.prototype.getParams=function(){returnthis._paramsDep.depend(),this.params},g.prototype.setParams=function(o,e){varr=function(o,r){if(!(oinstanceofArray))thrownewError("you called equals with a non array value in setParams");if(!(rinstanceofArray))return!1;if(o.length!==r.length)return!1;for(varn=0;n<o.length;n++)if(!u.equals(o[n],r[n],e))return!1;vari=t.keys(o),a=t.keys(r),s;if(i.length!==a.length)return!1;for(varn=0;n<i.length;n++){if(s=i[n],!t.has(r,s))return!1;if(!u.equals(o[s],r[s]))return!1}return!0};if(!r(this.params,o))returnthis.params=o,e=e||{},e.reactive!==!1&&this._paramsDep.changed(),this},g.prototype.dispatch=function(t,o,r){if(this._computation&&!this._computation.stopped)thrownewError("RouteController computation is already running. Stop it first.");varn=this;returne.nonreactive(function(){e.autorun(function(e){n._computation=e,t.dispatch(o,n,r)})}),n},g.prototype._runRoute=function(o,r,n){vara=this,u=this._collectHooks("subscriptions");t.each(u,function(t){a.wait(t.call(a))});vars=this._collectHooks("waitOn");t.each(s,function(t){a.wait(t.call(a))});varl=s.length>0,c,h,f=function(){returne.nonreactive(function
!function(){vare=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,r=Package.jquery.$,i=Package.jquery.jQuery;!function(e){"function"==typeofdefine&&define.amd?define(["jquery"],e):e("object"==typeofexports?require("jquery"):i)}(function(e){vart=function(){if(e&&e.fn&&e.fn.select2&&e.fn.select2.amd)vart=e.fn.select2.amd;vart;returnfunction(){if(!t||!t.requirejs){t?n=t:t={};vare,n,r;!function(t){functioni(e,t){return$.call(e,t)}functiono(e,t){varn,r,i,o,s,a,l,c,u,d,p,h=t&&t.split("/"),f=y.map,g=f&&f["*"]||{};if(e&&"."===e.charAt(0))if(t){for(e=e.split("/"),s=e.length-1,y.nodeIdCompat&&b.test(e[s])&&(e[s]=e[s].replace(b,"")),e=h.slice(0,h.length-1).concat(e),u=0;u<e.length;u+=1)if(p=e[u],"."===p)e.splice(u,1),u-=1;elseif(".."===p){if(1===u&&(".."===e[2]||".."===e[0]))break;u>0&&(e.splice(u-1,2),u-=2)}e=e.join("/")}else0===e.indexOf("./")&&(e=e.substring(2));if((h||g)&&f){for(n=e.split("/"),u=n.length;u>0;u-=1){if(r=n.slice(0,u).join("/"),h)for(d=h.length;d>0;d-=1)if(i=f[h.slice(0,d).join("/")],i&&(i=i[r])){o=i,a=u;break}if(o)break;!l&&g&&g[r]&&(l=g[r],c=u)}!o&&l&&(o=l,a=c),o&&(n.splice(0,a,o),e=n.join("/"))}returne}functions(e,n){returnfunction(){varr=w.call(arguments,0);return"string"!=typeofr[0]&&1===r.length&&r.push(null),h.apply(t,r.concat([e,n]))}}functiona(e){returnfunction(t){returno(t,e)}}functionl(e){returnfunction(t){m[e]=t}}functionc(e){if(i(v,e)){varn=v[e];deletev[e],_[e]=!0,p.apply(t,n)}if(!i(m,e)&&!i(_,e))thrownewError("No "+e);returnm[e]}functionu(e){vart,n=e?e.indexOf("!"):-1;returnn>-1&&(t=e.substring(0,n),e=e.substring(n+1,e.length)),[t,e]}functiond(e){returnfunction(){returny&&y.config&&y.config[e]||{}}}varp,h,f,g,m={},v={},y={},_={},$=Object.prototype.hasOwnProperty,w=[].slice,b=/\.js$/;f=function(e,t){varn,r=u(e),i=r[0];returne=r[1],i&&(i=o(i,t),n=c(i)),i?e=n&&n.normalize?n.normalize(e,a(t)):o(e,t):(e=o(e,t),r=u(e),i=r[0],e=r[1],i&&(n=c(i))),{f:i?i+"!"+e:e,n:e,pr:i,p:n}},g={require:function(e){returns(e)},exports:function(e){vart=m[e];return"undefined"!=typeoft?t:m[e]={}},module:function(e){return{id:e,uri:"",exports:m[e],config:d(e)}}},p=function(e,n,r,o){vara,u,d,p,h,y=[],$=typeofr,w;if(o=o||e,"undefined"===$||"function"===$){for(n=!n.length&&r.length?["require","exports","module"]:n,h=0;h<n.length;h+=1)if(p=f(n[h],o),u=p.f,"require"===u)y[h]=g.require(e);elseif("exports"===u)y[h]=g.exports(e),w=!0;elseif("module"===u)a=y[h]=g.module(e);elseif(i(m,u)||i(v,u)||i(_,u))y[h]=c(u);else{if(!p.p)thrownewError(e+" missing "+u);p.p.load(p.n,s(o,!0),l(u),{}),y[h]=m[u]}d=r?r.apply(m[e],y):void0,e&&(a&&a.exports!==t&&a.exports!==m[e]?m[e]=a.exports:d===t&&w||(m[e]=d))}elsee&&(m[e]=r)},e=n=h=function(e,n,r,i,o){if("string"==typeofe)returng[e]?g[e](n):c(f(e,n).f);if(!e.splice){if(y=e,y.deps&&h(y.deps,y.callback),!n)return;n.splice?(e=n,n=r,r=null):e=t}returnn=n||function(){},"function"==typeofr&&(r=i,i=o),i?p(t,e,n,r):setTimeout(function(){p(t,e,n,r)},4),h},h.config=function(e){returnh(e)},e._defined=m,r=function(e,t,n){if("string"!=typeofe)thrownewError("See almond README: incorrect module build, no module name");t.splice||(n=t,t=[]),i(m,e)||i(v,e)||(v[e]=[e,t,n])},r.amd={jQuery:!0}}(),t.requirejs=e,t.require=n,t.define=r}}(),t.define("almond",function(){}),t.define("jquery",[],function(){vart=e||r;returnnull==t&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),t}),t.define("select2/utils",["jquery"],function(e){functiont(e){vart=e.prototype,n=[];for(varrint){vari=t[r];"function"==typeofi&&"constructor"!==r&&n.push(r)}returnn}varn={};n.Extend=function(e,t){functionn(){this.constructor=e}varr={}.hasOwnProperty;for(variint)r.call(t,i)&&(e[i]=t[i]);returnn.prototype=t.prototype,e.prototype=newn,e.__super__=t.prototype,e},n.Decorate=function(e,n){functionr(){vart=Array.prototype.unshift,r=n.prototype.constructor.length,i=e.prototype.constructor;r>0&&(t.call(arguments,e.prototy
this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},i.prototype.render=function(){vart=e('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');returnt.attr("dir",this.options.get("dir")),this.$container=t,this.$container.addClass("select2-container--"+this.options.get("theme")),t.data("element",this.$element),t},i}),t.define("jquery-mousewheel",["jquery"],function(e){returne}),t.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults"],function(e,t,n,r){if(null==e.fn.select2){vari=["open","close","destroy"];e.fn.select2=function(t){if(t=t||{},"object"==typeoft)returnthis.each(function(){varr=e.extend(!0,{},t),i=newn(e(this),r)}),this;if("string"==typeoft){varr,o=Array.prototype.slice.call(arguments,1);returnthis.each(function(){varn=e(this).data("select2");null==n&&window.console&&console.error&&console.error("The select2('"+t+"') method was called on an element that is not using Select2."),r=n[t].apply(n,o)}),e.inArray(t,i)>-1?this:r}thrownewError("Invalid arguments for Select2: "+t)}}returnnull==e.fn.select2.defaults&&(e.fn.select2.defaults=r),n}),{define:t.define,require:t.require}}(),n=t.require("jquery.select2");returne.fn.select2.amd=t,n}),"undefined"==typeofPackage&&(Package={}),Package["natestrauser:select2"]={}}();
this.$element=o(t),this.options(n),this.setBoundedFlag(!1)}returne.prototype.options=function(){functione(){vare=arguments.length>0&&void0!==arguments[0]?arguments[0]:{},t=e.boundingElement,n=e.allowResizing;this.boundingElement=t,this.$boundingElement=o(this.boundingElement),this.allowResizing=n,"fixed"===this.$element.css("position")&&(this.boundingElement=window),this.destroy(),this.init()}returne}(),e.prototype.init=function(){functione(){vare=this;this.defineEventHandlers(),this.attachEventHandlers(),this.$element.addClass("bounded"),setTimeout(function(){returne.$element.trigger("spatialChanged")})}returne}(),e.prototype.destroy=function(){functione(){this.detachEventHandlers(),this.$element.removeClass("bounded")}returne}(),e.spatialInfo=function(){functione(e){vart={};if(!e||e===window){varn=o(window),r=n.outerWidth(),i=n.outerHeight();return{width:r,height:i,x0:0,y0:0,x1:r,y1:i}}vara=o(e),u=e.style;u.width&&u.width.indexOf("px")>-1?t.width=parseInt(u.width):t.width=a.outerWidth(),u.height&&u.height.indexOf("px")>-1?t.height=parseInt(u.height):t.height=a.outerHeight();varl="fixed"===a.css("position")?"position":"offset",c=a[l]();returnt.x0=c.left,t.y0=c.top,t.x1=t.x0+t.width,t.y1=t.y0+t.height,t}returne}(),e.prototype.defineEventHandlers=function(){functiont(){vart=this;this.spatialChangedHandler=function(n){varo=e.spatialInfo(t.element),r=e.spatialInfo(t.boundingElement);t.allowResizing&&o.width>r.width?(t.$element.width(r.width),t.$element.css("left",r.x0),t.setBoundedFlag(!0)):o.x0<r.x0?(t.$element.css("left",r.x0),t.setBoundedFlag(!0)):o.x1>r.x1&&(t.$element.css("left",r.x1-o.width),t.setBoundedFlag(!0)),t.allowResizing&&o.height>r.height?(t.$element.height(r.height),t.$element.css("top",r.y0),t.setBoundedFlag(!0)):o.y0<r.y0?(t.$element.css("top",r.y0),t.setBoundedFlag(!0)):o.y1>r.y1&&(t.$element.css("top",r.y1-o.height),t.setBoundedFlag(!0))}}returnt}(),e.prototype.attachEventHandlers=function(){functione(){this.$element.on("spatialChanged",this.spatialChangedHandler),this.$boundingElement.on("resize",this.spatialChangedHandler)}returne}(),e.prototype.detachEventHandlers=function(){functione(){this.$element.off("spatialChanged",this.spatialChangedHandler),this.$boundingElement.off("resize",this.spatialChangedHandler)}returne}(),e.prototype.setBoundedFlag=function(){functione(e){this.$element.data("wasBounded",e)}returne}(),e}();a.ui.Bounded=u}]},dialog:{"form.js":["meteor/templating","meteor/blaze","meteor/underscore","meteor/ohif:core",function(e,t,n){varo;n.import("meteor/templating",{Template:function(e){o=e}});varr;n.import("meteor/blaze",{Blaze:function(e){r=e}});vari;n.import("meteor/underscore",{_:function(e){i=e}});vara;n.import("meteor/ohif:core",{OHIF:function(e){a=e}}),a.ui.showDialog=function(e,t){varn=o[e];if(!n)throw{name:"TEMPLATE_NOT_FOUND",message:"Template "+e+" not found."};vara=void0,u=void0,l=newb(function(e,t){a=e,u=t}),c=i.extend({},t,{promise:l,promiseResolve:a,promiseReject:u}),s=r.renderWithData(n,c,document.body),p=functione(){returnr.remove(s)};returnl.then(p,p),l}}],"spatial.js":["meteor/ohif:core",function(e,t,n){varo;n.import("meteor/ohif:core",{OHIF:function(e){o=e}}),o.ui.repositionDialog=function(e,t,n){varo=e.find(".modal-dialog");o.css({margin:0,position:"fixed"}).bounded();varr=e.is(":visible");e.show();vari=o.outerHeight(),a=o.outerWidth(),u=parseInt(t-a/2),l=parseInt(n-i/2);o.css({left:u,top:l}).trigger("spatialChanged"),e.toggle(r)}}]},draggable:{"draggable.js":["meteor/ohif:core",function(e,t,n){varr;n.import("meteor/ohif:core",{OHIF:function(e){r=e}}),o.fn.draggable=function(){returnr.ui.makeDraggable(this),this},r.ui.makeDraggable=function(e){functiont(e){vart={x:e.clientX,y:e.clientY};returnvoid0===t.x&&(t.x=e.originalEvent.touches[0].pageX),void0===t.y&&(t.y=e.originalEvent.touches[0].pageY),t}functionn(n){if(!n.target.type||"range"!==n.target.type){vars=parseFloat(e.offset().top),p=parseFloat(e.offset().left),m=t(n);u=m.x-p,l=m.y-s,a.css("cursor","move"),e.css("cursor","move"),e.css({cursor:"move",left:p+"px",
!function(){varMeteor=Package.meteor.Meteor,global=Package.meteor.global,meteorEnv=Package.meteor.meteorEnv,$=Package.jquery.$,jQuery=Package.jquery.jQuery,cornerstone,dicomParser,cornerstoneTools,cornerstoneWADOImageLoader,cornerstoneMath;"undefined"==typeofcornerstone&&(cornerstone={internal:{},rendering:{}}),function(e){"use strict";functioni(i){if(void0===i)throw"disable: element element must not be undefined";for(vart=e.getEnabledElements(),r=0;r<t.length;r++)if(t[r].element===i){varn={element:i};return$(i).trigger("CornerstoneElementDisabled",n),t[r].element.removeChild(t[r].canvas),voidt.splice(r,1)}}e.disable=i}(cornerstone),function(e,i){"use strict";functiont(t,r,n){if(void0===t)throw"displayImage: parameter element cannot be undefined";if(void0===r)throw"displayImage: parameter image cannot be undefined";vara=i.getEnabledElement(t);if(a.image=r,void0===a.viewport&&(a.viewport=i.internal.getDefaultViewport(a.canvas,r)),n)for(varoinn)null!==n[o]&&(a.viewport[o]=n[o]);vars=newDate,f;if(void0!==a.lastImageTimeStamp){varl=s.getTime()-a.lastImageTimeStamp;f=(1e3/l).toFixed()}a.lastImageTimeStamp=s.getTime();varu={viewport:a.viewport,element:a.element,image:a.image,enabledElement:a,frameRate:f};e(a.element).trigger("CornerstoneNewImage",u),i.updateImage(t)}i.displayImage=t}($,cornerstone),function(e,i){"use strict";functiont(e){vart=i.getEnabledElement(e);if(void0===t.image)throw"draw: image has not been loaded yet";i.drawImage(t)}i.draw=t}($,cornerstone),function(e,i){"use strict";functiont(){for(vare=i.getEnabledElements(),t=0;t<e.length;t++){varr=e[t];r.invalid===!0&&i.drawImage(r)}}i.drawInvalidated=t}($,cornerstone),function(e){"use strict";functioni(i,t){if(void0===i)throw"enable: parameter element cannot be undefined";t&&t.renderer&&"webgl"===t.renderer.toLowerCase()&&(e.webGL.renderer.isWebGLAvailable()?(console.log("Using WebGL rendering path"),e.webGL.renderer.initRenderer(),t.renderer="webgl"):(console.error("WebGL not available, falling back to Canvas renderer"),deletet.renderer));varr=document.createElement("canvas");i.appendChild(r);varn={element:i,canvas:r,image:void0,invalid:!1,options:t,data:{}};returne.addEnabledElement(n),e.resize(i,!0),i}e.enable=i}(cornerstone),function(e){"use strict";functioni(i,t){varr=e.getEnabledElement(i);returnr.data.hasOwnProperty(t)===!1&&(r.data[t]={}),r.data[t]}functiont(i,t){varr=e.getEnabledElement(i);deleter.data[t]}e.getElementData=i,e.removeElementData=t}(cornerstone),function(e){"use strict";functioni(e){if(void0===e)throw"getEnabledElement: parameter element must not be undefined";for(vari=0;i<a.length;i++)if(a[i].element==e)returna[i];throw"element not enabled"}functiont(e){if(void0===e)throw"getEnabledElement: enabledElement element must not be undefined";a.push(e)}functionr(e){vari=[];returna.forEach(function(t){t.image&&t.image.imageId===e&&i.push(t)}),i}functionn(){returna}vara=[];e.getEnabledElement=i,e.addEnabledElement=t,e.getEnabledElementsByImageId=r,e.getEnabledElements=n}(cornerstone),function(e){"use strict";functioni(e){return0===e.viewport.rotation||180===e.viewport.rotation?{width:e.image.width,height:e.image.height}:{width:e.image.height,height:e.image.width}}functiont(t){varr=e.getEnabledElement(t),n=i(r),a=r.canvas.height/n.height,o=r.canvas.width/n.width;o<a?r.viewport.scale=o:r.viewport.scale=a,r.viewport.translation.x=0,r.viewport.translation.y=0,e.updateImage(t)}e.fitToWindow=t}(cornerstone),function(e,i){"use strict";functiont(e,t){varr=i.getEnabledElement(e),n=i.internal.getDefaultViewport(r.canvas,t);returnn}i.getDefaultViewportForImage=t}($,cornerstone),function(e,i){"use strict";functiont(e){vart=i.getEnabledElement(e);returnt.image}i.getImage=t}($,cornerstone),function(e){"use strict";functioni(i,t,r,n,a){varo=e.getStoredPixels(i,t,r,n,a),s=e.getEnabledElement(i),f=e.internal.getModalityLUT(s.image.slope,s.image.intercept,s.viewport.modalityLUT),l=o.map(f);returnl}e.getPixels=i}(cornerstone),function(e){"use strict";functioni(i,t,r,n,a){if(void0===i)throw"getStoredPi
e.webGL.shaders.uint8=t}(cornerstone),function(e){"use strict";functioni(e){if(void0===e)throw"setMaximumSizeBytes: parameter numBytes must not be undefined";if(void0===e.toFixed)throw"setMaximumSizeBytes: parameter numBytes must be a number";u=e,t()}functiont(){functioni(e,i){returne.timeStamp>i.timeStamp?-1:e.timeStamp<i.timeStamp?1:0}if(!(c<=u)){for(l.sort(i);c>u;){vart=l[l.length-1];c-=t.sizeInBytes,deletef[t.imageId],l.pop(),$(e).trigger("CornerstoneWebGLTextureRemoved",{imageId:t.imageId})}varr=e.imageCache.getCacheInfo();console.log("CornerstoneWebGLTextureCacheFull"),$(e).trigger("CornerstoneWebGLTextureCacheFull",r)}}functionr(e,i){varr=e.imageId;if(void0===e)throw"putImageTexture: image must not be undefined";if(void0===r)throw"putImageTexture: imageId must not be undefined";if(void0===i)throw"putImageTexture: imageTexture must not be undefined";if(f.hasOwnProperty(r)===!0)throw"putImageTexture: imageId already in cache";varn={imageId:r,imageTexture:i,timeStamp:newDate,sizeInBytes:i.sizeInBytes};if(f[r]=n,l.push(n),void0===i.sizeInBytes)throw"putImageTexture: imageTexture does not have sizeInBytes property or";if(void0===i.sizeInBytes.toFixed)throw"putImageTexture: imageTexture.sizeInBytes is not a number";c+=n.sizeInBytes,t()}functionn(e){if(void0===e)throw"getImageTexture: imageId must not be undefined";vari=f[e];if(void0!==i)returni.timeStamp=newDate,i.imageTexture}functiona(e){if(void0===e)throw"removeImageTexture: imageId must not be undefined";vari=f[e];if(void0===i)throw"removeImageTexture: imageId must not be undefined";returnl.splice(l.indexOf(i),1),c-=i.sizeInBytes,deletef[e],i.imageTexture}functiono(){return{maximumSizeInBytes:u,cacheSizeInBytes:c,numberOfImagesCached:l.length}}functions(){for(;l.length>0;){vare=l.pop();deletef[e.imageId]}c=0}varf={},l=[],u=268435456,c=0;e.webGL.textureCache={putImageTexture:r,getImageTexture:n,removeImageTexture:a,setMaximumSizeBytes:i,getCacheInfo:o,purgeCache:s,cachedImages:l}}(cornerstone),function(e){"use strict";e.webGL||(e.webGL={}),e.webGL.vertexShader="attribute vec2 a_position;attribute vec2 a_texCoord;uniform vec2 u_resolution;varying vec2 v_texCoord;void main() {vec2 zeroToOne = a_position / u_resolution;vec2 zeroToTwo = zeroToOne * 2.0;vec2 clipSpace = zeroToTwo - 1.0;gl_Position = vec4(clipSpace * vec2(1, -1), 0, 1);v_texCoord = a_texCoord;}"}(cornerstone);varcornerstoneMath=function(e){"use strict";returnvoid0===e&&(e={}),e.Vector3=function(e,i,t){this.x=e||0,this.y=i||0,this.z=t||0},e.Vector3.prototype={constructor:e.Vector3,set:function(e,i,t){returnthis.x=e,this.y=i,this.z=t,this},setX:function(e){returnthis.x=e,this},setY:function(e){returnthis.y=e,this},setZ:function(e){returnthis.z=e,this},setComponent:function(e,i){switch(e){case0:this.x=i;break;case1:this.y=i;break;case2:this.z=i;break;default:thrownewError("index is out of range: "+e)}},getComponent:function(e){switch(e){case0:returnthis.x;case1:returnthis.y;case2:returnthis.z;default:thrownewError("index is out of range: "+e)}},copy:function(e){returnthis.x=e.x,this.y=e.y,this.z=e.z,this},add:function(e,i){returnvoid0!==i?(console.warn("DEPRECATED: Vector3's .add() now only accepts one argument. Use .addVectors( a, b ) instead."),this.addVectors(e,i)):(this.x+=e.x,this.y+=e.y,this.z+=e.z,this)},addScalar:function(e){returnthis.x+=e,this.y+=e,this.z+=e,this},addVectors:function(e,i){returnthis.x=e.x+i.x,this.y=e.y+i.y,this.z=e.z+i.z,this},sub:function(e,i){returnvoid0!==i?(console.warn("DEPRECATED: Vector3's .sub() now only accepts one argument. Use .subVectors( a, b ) instead."),this.subVectors(e,i)):(this.x-=e.x,this.y-=e.y,this.z-=e.z,this)},subVectors:function(e,i){returnthis.x=e.x-i.x,this.y=e.y-i.y,this.z=e.z-i.z,this},multiply:function(e,i){returnvoid0!==i?(console.warn("DEPRECATED: Vector3's .multiply() now only accepts one argument. Use .multiplyVectors( a, b ) instead."),this.multiplyVectors(e,i)):(this.x*=e.x,this.y*=e.y,this.z*=e.z,this)},multiplyScalar:function(e){returnthis.x*=e,this.y*=e,this.z*=e,this},multiplyV
e.lineTo(t.x-a*Math.cos(o-Math.PI/7),t.y-a*Math.sin(o-Math.PI/7)),e.strokeStyle=r,e.lineWidth=n,e.stroke(),e.fillStyle=r,e.fill()}e.drawArrow=i}(cornerstoneTools),function(e){"use strict";functioni(e,i,t,r){varn=6;e.beginPath(),e.strokeStyle=t,e.lineWidth=r,e.arc(i.x,i.y,n,0,2*Math.PI),e.stroke()}e.drawCircle=i}(cornerstoneTools),function(e){"use strict";functioni(e,i,t,r,n){vara=.5522848,o=r/2*a,s=n/2*a,f=i+r,l=t+n,u=i+r/2,c=t+n/2;e.beginPath(),e.moveTo(i,c),e.bezierCurveTo(i,c-s,u-o,t,u,t),e.bezierCurveTo(u+o,t,f,c-s,f,c),e.bezierCurveTo(f,c+s,u+o,l,u,l),e.bezierCurveTo(u-o,l,i,c+s,i,c),e.closePath(),e.stroke()}e.drawEllipse=i}(cornerstoneTools),function(e){"use strict";functioni(i,t,r,n,a,o){"[object Array]"!==Object.prototype.toString.call(t)&&(t=[t]);vars=5,f=e.textStyle.getFont(),l=e.textStyle.getFontSize(),u=e.textStyle.getBackgroundColor();i.save(),i.font=f,i.textBaseline="top",i.strokeStyle=a;varc=0;t.forEach(function(e){vart=i.measureText(e).width;c=Math.max(c,t)}),i.fillStyle=u;vard={width:c+2*s,height:s+t.length*(l+s)};returno&&o.centering&&o.centering.x===!0&&(r-=d.width/2),o&&o.centering&&o.centering.y===!0&&(n-=d.height/2),d.left=r,d.top=n,o&&o.debug===!0&&(i.fillStyle="#FF0000"),i.fillRect(d.left,d.top,d.width,d.height),t.forEach(function(e,t){i.fillStyle=a;varo;o=0===t?n+t*(l+s):n+t*(l+2*s),i.fillText(e,r+s,n+s+t*(l+s))}),i.restore(),d}e.drawTextBox=i}(cornerstoneTools),function(e,i){"use strict";functiont(i,t,r,n,a){if(!i)throw"getLuminance: parameter element must not be undefined";t=Math.round(t),r=Math.round(r);varo=e.getEnabledElement(i),s=o.image,f=[],l=0,u=s.getPixelData(),c,d,h;if(s.color)for(d=0;d<a;d++)for(h=0;h<n;h++){c=4*((d+r)*s.columns+(h+t));varm=u[c],b=u[c+1],v=u[c+2];f[l++]=.2126*m+.7152*b+.0722*v}elsefor(d=0;d<a;d++)for(h=0;h<n;h++)c=(d+r)*s.columns+(h+t),f[l++]=u[c]*s.slope+s.intercept;returnf}i.getLuminance=t}(cornerstone,cornerstoneTools),function(e,i){"use strict";functiont(){vare=navigator.userAgent,i=e.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i)||[],t;return/trident/i.test(i[1])?(t=/\brv[ :]+(\d+)/g.exec(e)||[],"IE "+(t[1]||"")):"Chrome"===i[1]&&(t=e.match(/\b(OPR|Edge)\/(\d+)/),null!==t)?t.slice(1).join(" ").replace("OPR","Opera"):(i=i[2]?[i[1],i[2]]:[navigator.appName,navigator.appVersion,"-?"],null!==(t=e.match(/version\/(\d+)/i))&&i.splice(1,1,t[1]),i.join(" "))}functionr(){vare=i.stackPrefetch.getConfiguration();if(e.maxSimultaneousRequests)returne.maxSimultaneousRequests;varr=t(),n=r.split(" "),o=n[0],s=n[1],f=a[o];returnf?f[s]?f[s]:f.default:a.default}functionn(){vare=newRegExp("Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini");return!!e.test(navigator.userAgent)}vara={default:6,IE:{9:6,10:8,default:8},Firefox:{default:6},Opera:{10:8,11:6,12:6,default:6},Chrome:{default:6},Safari:{default:6}};i.getMaxSimultaneousRequests=r,i.getBrowserInfo=t,i.isMobileDevice=n}(cornerstone,cornerstoneTools),function(e,i){"use strict";functiont(i,t,r,n,a){if(!i)throw"getRGBPixels: parameter element must not be undefined";t=Math.round(t),r=Math.round(r);varo=e.getEnabledElement(i),s=[],f=0,l=o.image.getPixelData(),u,c,d;if(o.image.color)for(c=0;c<a;c++)for(d=0;d<n;d++){u=4*((c+r)*o.image.columns+(d+t));varh=l[u],m=l[u+1],b=l[u+2],v=l[u+3];s[f++]=h,s[f++]=m,s[f++]=b,s[f++]=v}returns}i.getRGBPixels=t}(cornerstone,cornerstoneTools),function(e,i){"use strict";functiont(e,i){vart=1<<e-1;return0!==(i&t)}i.isMouseButtonEnabled=t}(cornerstone,cornerstoneTools),function(e,i,t){"use strict";functionr(e){returne.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault(),e.cancelBubble=!0,e.returnValue=!1,!1}t.pauseEvent=r}($,cornerstone,cornerstoneTools),function(e,i){"use strict";functiont(i,t){if(i.boundingBox)returne.point.insideRect(t,i.boundingBox)}i.pointInsideBoundingBox=t}(cornerstoneMath,cornerstoneTools),function(e,i,t){"use strict";functionr(e,i){vart=e.clone().sub(i.imagePositionPatient),r=i.rowCosines.dot(t)/i.columnPixelSpacing,n=i.columnCosines.dot(t)/i.rowPixelSpacing;return{x:r,y:n}}functionn
vari;i="undefined"!=typeofwindow?window:"undefined"!=typeofglobal?global:"undefined"!=typeofself?self:this,i.jpeg=e()}}(function(){vare,i,t;returnfunctione(i,t,r){functionn(o,s){if(!t[o]){if(!i[o]){varf="function"==typeofrequire&&require;if(!s&&f)returnf(o,!0);if(a)returna(o,!0);varl=newError("Cannot find module '"+o+"'");throwl.code="MODULE_NOT_FOUND",l}varu=t[o]={exports:{}};i[o][0].call(u.exports,function(e){vart=i[o][1][e];returnn(t?t:e)},u,u.exports,e,i,t,r)}returnt[o].exports}for(vara="function"==typeofrequire&&require,o=0;o<r.length;o++)n(r[o]);returnn}({1:[function(e,i,t){"use strict";varr=r||{};r.lossless=r.lossless||{},r.lossless.ComponentSpec=r.lossless.ComponentSpec||function(){this.hSamp=0,this.quantTableSel=0,this.vSamp=0};varn=typeofi;"undefined"!==n&&i.exports&&(i.exports=r.lossless.ComponentSpec)},{}],2:[function(e,i,t){"use strict";varr=r||{};r.lossless=r.lossless||{},r.lossless.DataStream=r.lossless.DataStream||function(e,i,t){this.buffer=newDataView(e,i,t),this.index=0},r.lossless.DataStream.prototype.get16=function(){vare=this.buffer.getUint16(this.index,!1);returnthis.index+=2,e},r.lossless.DataStream.prototype.get8=function(){vare=this.buffer.getUint8(this.index);returnthis.index+=1,e};varn=typeofi;"undefined"!==n&&i.exports&&(i.exports=r.lossless.DataStream)},{}],3:[function(e,i,t){"use strict";varr=r||{};r.lossless=r.lossless||{},r.lossless.DataStream=r.lossless.DataStream||("undefined"!=typeofe?e("./data-stream.js"):null),r.lossless.HuffmanTable=r.lossless.HuffmanTable||("undefined"!=typeofe?e("./huffman-table.js"):null),r.lossless.QuantizationTable=r.lossless.QuantizationTable||("undefined"!=typeofe?e("./quantization-table.js"):null),r.lossless.ScanHeader=r.lossless.ScanHeader||("undefined"!=typeofe?e("./scan-header.js"):null),r.lossless.FrameHeader=r.lossless.FrameHeader||("undefined"!=typeofe?e("./frame-header.js"):null),r.lossless.Utils=r.lossless.Utils||("undefined"!=typeofe?e("./utils.js"):null),r.lossless.Decoder=r.lossless.Decoder||function(e,i){this.buffer=e,this.frame=newr.lossless.FrameHeader,this.huffTable=newr.lossless.HuffmanTable,this.quantTable=newr.lossless.QuantizationTable,this.scan=newr.lossless.ScanHeader,this.DU=r.lossless.Utils.createArray(10,4,64),this.HuffTab=r.lossless.Utils.createArray(4,2,12800),this.IDCT_Source=[],this.nBlock=[],this.acTab=r.lossless.Utils.createArray(10,1),this.dcTab=r.lossless.Utils.createArray(10,1),this.qTab=r.lossless.Utils.createArray(10,1),this.marker=0,this.markerIndex=0,this.numComp=0,this.restartInterval=0,this.selection=0,this.xDim=0,this.yDim=0,this.xLoc=0,this.yLoc=0,this.numBytes=0,this.outputData=null,this.restarting=!1,this.mask=0,"undefined"!=typeofi&&(this.numBytes=i)},r.lossless.Decoder.IDCT_P=[0,5,40,16,45,2,7,42,21,56,8,61,18,47,1,4,41,23,58,13,32,24,37,10,63,17,44,3,6,43,20,57,15,34,29,48,53,26,39,9,60,19,46,22,59,12,33,31,50,55,25,36,11,62,14,35,28,49,52,27,38,30,51,54],r.lossless.Decoder.TABLE=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],r.lossless.Decoder.MAX_HUFFMAN_SUBTREE=50,r.lossless.Decoder.MSB=2147483648,r.lossless.Decoder.RESTART_MARKER_BEGIN=65488,r.lossless.Decoder.RESTART_MARKER_END=65495,r.lossless.Decoder.prototype.decompress=function(e,i,t){returnthis.decode(e,i,t).buffer},r.lossless.Decoder.prototype.decode=function(e,i,t,n){vara,o=0,s=[],f,l,u=[],c=[],d;if("undefined"!=typeofe&&(this.buffer=e),"undefined"!=typeofn&&(this.numBytes=n),this.stream=newr.lossless.DataStream(this.buffer,i,t),this.buffer=null,this.xLoc=0,this.yLoc=0,a=this.stream.get16(),65496!==a)thrownewError("Not a JPEG file");for(a=this.stream.get16();a>>4!==4092||65476===a;){switch(a){case65476:this.huffTable.read(this.stream,this.HuffTab);break;case65484:thrownewError("Program doesn't support arithmetic coding. (format throw new IOException)");case65499:this.quantTable.read(this.stream,r.lossless.Decoder.TABLE);break;case65501:this.restartInterval=th
}($,cornerstone,cornerstoneWADOImageLoader);varOpenJPEG=function(Module){functionglobalEval(e){eval.call(null,e)}functionassert(e,i){e||abort("Assertion failed: "+i)}functiongetCFunc(ident){varfunc=Module["_"+ident];if(!func)try{func=eval("_"+ident)}catch(e){}returnassert(func,"Cannot call unknown function "+ident+" (perhaps LLVM optimizations or closure removed it?)"),func}functionsetValue(e,i,t,r){switch(t=t||"i8","*"===t.charAt(t.length-1)&&(t="i32"),t){case"i1":HEAP8[e>>0]=i;break;case"i8":HEAP8[e>>0]=i;break;case"i16":HEAP16[e>>1]=i;break;case"i32":HEAP32[e>>2]=i;break;case"i64":tempI64=[i>>>0,(tempDouble=i,+Math_abs(tempDouble)>=1?tempDouble>0?(0|Math_min(+Math_floor(tempDouble/4294967296),4294967295))>>>0:~~+Math_ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[e>>2]=tempI64[0],HEAP32[e+4>>2]=tempI64[1];break;case"float":HEAPF32[e>>2]=i;break;case"double":HEAPF64[e>>3]=i;break;default:abort("invalid type for setValue: "+t)}}functiongetValue(e,i,t){switch(i=i||"i8","*"===i.charAt(i.length-1)&&(i="i32"),i){case"i1":returnHEAP8[e>>0];case"i8":returnHEAP8[e>>0];case"i16":returnHEAP16[e>>1];case"i32":returnHEAP32[e>>2];case"i64":returnHEAP32[e>>2];case"float":returnHEAPF32[e>>2];case"double":returnHEAPF64[e>>3];default:abort("invalid type for setValue: "+i)}returnnull}functionallocate(e,i,t,r){varn,a;"number"==typeofe?(n=!0,a=e):(n=!1,a=e.length);varo="string"==typeofi?i:null,s;if(s=t==ALLOC_NONE?r:[_malloc,Runtime.stackAlloc,Runtime.staticAlloc,Runtime.dynamicAlloc][void0===t?ALLOC_STATIC:t](Math.max(a,o?1:i.length)),n){varr=s,f;for(assert(0==(3&s)),f=s+(a&-4);r<f;r+=4)HEAP32[r>>2]=0;for(f=s+a;r<f;)HEAP8[r++>>0]=0;returns}if("i8"===o)returne.subarray||e.slice?HEAPU8.set(e,s):HEAPU8.set(newUint8Array(e),s),s;for(varl=0,u,c,d;l<a;){varh=e[l];"function"==typeofh&&(h=Runtime.getFunctionIndex(h)),u=o||i[l],0!==u?("i64"==u&&(u="i32"),setValue(s+l,h,u),d!==u&&(c=Runtime.getNativeTypeSize(u),d=u),l+=c):l++}returns}functiongetMemory(e){returnstaticSealed?"undefined"!=typeof_sbrk&&!_sbrk.called||!runtimeInitialized?Runtime.dynamicAlloc(e):_malloc(e):Runtime.staticAlloc(e)}functionPointer_stringify(e,i){if(0===i||!e)return"";for(vart=0,r,n=0;;){if(r=HEAPU8[e+n>>0],t|=r,0==r&&!i)break;if(n++,i&&n==i)break}i||(i=n);vara="";if(t<128){for(varo=1024,s;i>0;)s=String.fromCharCode.apply(String,HEAPU8.subarray(e,e+Math.min(i,o))),a=a?a+s:s,e+=o,i-=o;returna}returnModule.UTF8ToString(e)}functionAsciiToString(e){for(vari="";;){vart=HEAP8[e++>>0];if(!t)returni;i+=String.fromCharCode(t)}}functionstringToAscii(e,i){returnwriteAsciiToMemory(e,i,!1)}functionUTF8ArrayToString(e,i){for(vart,r,n,a,o,s,f="";;){if(t=e[i++],!t)returnf;if(128&t)if(r=63&e[i++],192!=(224&t))if(n=63&e[i++],224==(240&t)?t=(15&t)<<12|r<<6|n:(a=63&e[i++],240==(248&t)?t=(7&t)<<18|r<<12|n<<6|a:(o=63&e[i++],248==(252&t)?t=(3&t)<<24|r<<18|n<<12|a<<6|o:(s=63&e[i++],t=(1&t)<<30|r<<24|n<<18|a<<12|o<<6|s))),t<65536)f+=String.fromCharCode(t);else{varl=t-65536;f+=String.fromCharCode(55296|l>>10,56320|1023&l)}elsef+=String.fromCharCode((31&t)<<6|r);elsef+=String.fromCharCode(t)}}functionUTF8ToString(e){returnUTF8ArrayToString(HEAPU8,e)}functionstringToUTF8Array(e,i,t,r){if(!(r>0))return0;for(varn=t,a=t+r-1,o=0;o<e.length;++o){vars=e.charCodeAt(o);if(s>=55296&&s<=57343&&(s=65536+((1023&s)<<10)|1023&e.charCodeAt(++o)),s<=127){if(t>=a)break;i[t++]=s}elseif(s<=2047){if(t+1>=a)break;i[t++]=192|s>>6,i[t++]=128|63&s}elseif(s<=65535){if(t+2>=a)break;i[t++]=224|s>>12,i[t++]=128|s>>6&63,i[t++]=128|63&s}elseif(s<=2097151){if(t+3>=a)break;i[t++]=240|s>>18,i[t++]=128|s>>12&63,i[t++]=128|s>>6&63,i[t++]=128|63&s}elseif(s<=67108863){if(t+4>=a)break;i[t++]=248|s>>24,i[t++]=128|s>>18&63,i[t++]=128|s>>12&63,i[t++]=128|s>>6&63,i[t++]=128|63&s}else{if(t+5>=a)break;i[t++]=252|s>>30,i[t++]=128|s>>24&63,i[t++]=128|s>>18&63,i[t++]=128|s>>12&63,i[t++]=128|s>>6&63,i[t++]=128|63&s}}returni[t]=0,t-n}functionstringToUTF8(e,i,t){returnstringToUTF8Array(e,HEAPU8,i,t)}functionlengthBytesUTF8(e){for(vari=0,t=0;t<e.length;++t){varr=e.ch
totalMemory=Math.max(totalMemory,16777216),totalMemory!==TOTAL_MEMORY&&(TOTAL_MEMORY=totalMemory),assert("undefined"!=typeofInt32Array&&"undefined"!=typeofFloat64Array&&!!newInt32Array(1).subarray&&!!newInt32Array(1).set,"JS engine does not provide full typed array support");varbuffer;buffer=newArrayBuffer(TOTAL_MEMORY),HEAP8=newInt8Array(buffer),HEAP16=newInt16Array(buffer),HEAP32=newInt32Array(buffer),HEAPU8=newUint8Array(buffer),HEAPU16=newUint16Array(buffer),HEAPU32=newUint32Array(buffer),HEAPF32=newFloat32Array(buffer),HEAPF64=newFloat64Array(buffer),HEAP32[0]=255,assert(255===HEAPU8[0]&&0===HEAPU8[3],"Typed arrays 2 must be run on a little-endian system"),Module.HEAP=HEAP,Module.buffer=buffer,Module.HEAP8=HEAP8,Module.HEAP16=HEAP16,Module.HEAP32=HEAP32,Module.HEAPU8=HEAPU8,Module.HEAPU16=HEAPU16,Module.HEAPU32=HEAPU32,Module.HEAPF32=HEAPF32,Module.HEAPF64=HEAPF64;var__ATPRERUN__=[],__ATINIT__=[],__ATMAIN__=[],__ATEXIT__=[],__ATPOSTRUN__=[],runtimeInitialized=!1,runtimeExited=!1;Module.addOnPreRun=addOnPreRun,Module.addOnInit=addOnInit,Module.addOnPreMain=addOnPreMain,Module.addOnExit=addOnExit,Module.addOnPostRun=addOnPostRun,Module.intArrayFromString=intArrayFromString,Module.intArrayToString=intArrayToString,Module.writeStringToMemory=writeStringToMemory,Module.writeArrayToMemory=writeArrayToMemory,Module.writeAsciiToMemory=writeAsciiToMemory,Math.imul&&Math.imul(4294967295,5)===-5||(Math.imul=functione(i,t){varr=i>>>16,n=65535&i,a=t>>>16,o=65535&t;returnn*o+(r*o+n*a<<16)|0}),Math.imul=Math.imul,Math.clz32||(Math.clz32=function(e){e>>>=0;for(vari=0;i<32;i++)if(e&1<<31-i)returni;return32}),Math.clz32=Math.clz32;varMath_abs=Math.abs,Math_cos=Math.cos,Math_sin=Math.sin,Math_tan=Math.tan,Math_acos=Math.acos,Math_asin=Math.asin,Math_atan=Math.atan,Math_atan2=Math.atan2,Math_exp=Math.exp,Math_log=Math.log,Math_sqrt=Math.sqrt,Math_ceil=Math.ceil,Math_floor=Math.floor,Math_pow=Math.pow,Math_imul=Math.imul,Math_fround=Math.fround,Math_min=Math.min,Math_clz32=Math.clz32,runDependencies=0,runDependencyWatcher=null,dependenciesFulfilled=null;Module.addRunDependency=addRunDependency,Module.removeRunDependency=removeRunDependency,Module.preloadedImages={},Module.preloadedAudios={};varmemoryInitializer=null,ASM_CONSTS=[];STATIC_BASE=8,STATICTOP=STATIC_BASE+25680,__ATINIT__.push(),allocate([131,192,202,161,69,182,251,63,127,251,58,112,206,136,234,63,127,251,58,112,206,136,234,63,131,192,202,161,69,182,251,63,225,122,20,174,71,225,252,63,94,186,73,12,2,43,249,63,0,0,0,0,0,0,240,63,0,0,0,0,0,0,248,63,0,0,0,0,0,0,6,64,0,0,0,0,0,128,21,64,92,143,194,245,40,92,37,64,215,163,112,61,10,87,53,64,246,40,92,143,194,85,69,64,133,235,81,184,30,85,85,64,102,102,102,102,102,86,101,64,205,204,204,204,204,84,117,64,207,247,83,227,165,155,240,63,70,182,243,253,212,120,249,63,39,49,8,172,28,90,7,64,29,90,100,59,223,207,22,64,41,92,143,194,245,168,38,64,164,112,61,10,215,163,54,64,0,0,0,0,0,160,70,64,31,133,235,81,184,158,86,64,205,204,204,204,204,156,102,64,0,0,0,0,0,0,0,0,207,247,83,227,165,155,240,63,70,182,243,253,212,120,249,63,39,49,8,172,28,90,7,64,29,90,100,59,223,207,22,64,41,92,143,194,245,168,38,64,164,112,61,10,215,163,54,64,0,0,0,0,0,160,70,64,31,133,235,81,184,158,86,64,205,204,204,204,204,156,102,64,0,0,0,0,0,0,0,0,173,250,92,109,197,254,230,63,86,125,174,182,98,127,237,63,199,75,55,137,65,96,249,63,242,210,77,98,16,88,8,64,250,126,106,188,116,19,24,64,133,235,81,184,30,5,40,64,0,0,0,0,0,0,56,64,92,143,194,245,40,252,71,64,236,81,184,30,133,251,87,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,240,63,113,61,10,215,163,112,255,63,104,145,237,124,63,181,16,64,117,147,24,4,86,206,32,64,102,102,102,102,102,230,48,64,236,81,184,30,133,235,64,64,92,143,194,245,40,236,80,64,154,153,153,153,153,233,96,64,154,153,153,153,153,233,112,64,51,51,51,51,51,231,128,64,147,24,4,86,14,45,0,64,182,243,253,212,120,233,15,64,246,40,92,143,194,181,32,64,10,215,163,112,61,10,49,64,195,245,40,92,143,34,65,64,184,30,133,235,81,40,81,64,154,153,153,153,153,41,97,64,154,153,153,153,153,41,113,64,0,0,0,0,0,40,129,64,0,0,0,0,0,0,0,0,147,24,4,86,14,45,0,
Browser.mainLoop.timingValue=i,!Browser.mainLoop.func)return1;if(0==e)Browser.mainLoop.scheduler=functione(){setTimeout(Browser.mainLoop.runner,i)},Browser.mainLoop.method="timeout";elseif(1==e)Browser.mainLoop.scheduler=functione(){Browser.requestAnimationFrame(Browser.mainLoop.runner)},Browser.mainLoop.method="rAF";elseif(2==e){if(!window.setImmediate){varr=[],n="__emcc";window.addEventListener("message",t,!0),window.setImmediate=functione(i){r.push(i),window.postMessage(n,"*")}}Browser.mainLoop.scheduler=functione(){window.setImmediate(Browser.mainLoop.runner)},Browser.mainLoop.method="immediate"}return0}function_emscripten_set_main_loop(e,i,t,r,n){Module.noExitRuntime=!0,assert(!Browser.mainLoop.func,"emscripten_set_main_loop: there can only be one main loop function at once: call emscripten_cancel_main_loop to cancel the previous one before setting a new one with different parameters."),Browser.mainLoop.func=e,Browser.mainLoop.arg=r;vara=Browser.mainLoop.currentlyRunningMainloop;if(Browser.mainLoop.runner=functioni(){if(!ABORT){if(Browser.mainLoop.queue.length>0){vart=Date.now(),n=Browser.mainLoop.queue.shift();if(n.func(n.arg),Browser.mainLoop.remainingBlockers){varo=Browser.mainLoop.remainingBlockers,s=o%1==0?o-1:Math.floor(o);n.counted?Browser.mainLoop.remainingBlockers=s:(s+=.5,Browser.mainLoop.remainingBlockers=(8*o+s)/9)}returnconsole.log('main loop blocker "'+n.name+'" took '+(Date.now()-t)+" ms"),Browser.mainLoop.updateStatus(),voidsetTimeout(Browser.mainLoop.runner,0)}if(!(a<Browser.mainLoop.currentlyRunningMainloop)){if(Browser.mainLoop.currentFrameNumber=Browser.mainLoop.currentFrameNumber+1|0,1==Browser.mainLoop.timingMode&&Browser.mainLoop.timingValue>1&&Browser.mainLoop.currentFrameNumber%Browser.mainLoop.timingValue!=0)returnvoidBrowser.mainLoop.scheduler();"timeout"===Browser.mainLoop.method&&Module.ctx&&(Module.printErr("Looks like you are rendering without using requestAnimationFrame for the main loop. You should use 0 for the frame rate in emscripten_set_main_loop in order to use requestAnimationFrame, as that can greatly improve your frame rates!"),Browser.mainLoop.method=""),Browser.mainLoop.runIter(function(){"undefined"!=typeofr?Runtime.dynCall("vi",e,[r]):Runtime.dynCall("v",e)}),a<Browser.mainLoop.currentlyRunningMainloop||("object"==typeofSDL&&SDL.audio&&SDL.audio.queueNewAudioData&&SDL.audio.queueNewAudioData(),Browser.mainLoop.scheduler())}}},n||(i&&i>0?_emscripten_set_main_loop_timing(0,1e3/i):_emscripten_set_main_loop_timing(1,1),Browser.mainLoop.scheduler()),t)throw"SimulateInfiniteLoop"}function_pthread_setspecific(e,i){returneinPTHREAD_SPECIFIC?(PTHREAD_SPECIFIC[e]=i,0):ERRNO_CODES.EINVAL}function_malloc(e){vari=Runtime.dynamicAlloc(e+8);returni+8&4294967288}function___cxa_allocate_exception(e){return_malloc(e)}function___syscall54(e,i){SYSCALLS.varargs=i;try{return0}catch(e){return"undefined"!=typeofFS&&einstanceofFS.ErrnoError||abort(e),-e.errno}}function___cxa_pure_virtual(){throwABORT=!0,"Pure virtual function called!"}function_pthread_cleanup_push(e,i){__ATEXIT__.push(function(){Runtime.dynCall("vi",e,[i])}),_pthread_cleanup_push.level=__ATEXIT__.length}function_pthread_cond_broadcast(){return0}function___cxa_guard_acquire(e){returnHEAP8[e>>0]?0:(HEAP8[e>>0]=1,1)}function_pthread_cleanup_pop(){assert(_pthread_cleanup_push.level==__ATEXIT__.length,"cannot pop if something else added meanwhile!"),__ATEXIT__.pop(),_pthread_cleanup_push.level=__ATEXIT__.length}function___cxa_guard_release(){}function___cxa_begin_catch(e){return__ZSt18uncaught_exceptionv.uncaught_exception--,EXCEPTIONS.caught.push(e),EXCEPTIONS.addRef(EXCEPTIONS.deAdjust(e)),e}function_llvm_eh_typeid_for(e){returne}function_emscripten_memcpy_big(e,i,t){returnHEAPU8.set(HEAPU8.subarray(i,i+t),e),e}function___syscall6(e,i){SYSCALLS.varargs=i;try{vart=SYSCALLS.getStreamFromFD();returnFS.close(t),0}catch(e){return"undefined"!=typeofFS&&einstanceofFS.ErrnoError||abort(e),-e.errno}}function_pthread_mutex_lock(){}function_sbrk(e){vari=_sbrk;i.called||(DYNAMICTOP=ali
if(a<1)throw"dicomParser.readEncapsulatedPixelDataFromFragments: parameter 'numFragments' must be > 0";if(n+a>r.fragments.length)throw"dicomParser.readEncapsulatedPixelDataFromFragments: parameter 'startFragment' + 'numFragments' < number of fragments";vars=newe.ByteStream(t.byteArrayParser,t.byteArray,r.dataOffset),f=e.readSequenceItem(s);if("xfffee000"!==f.tag)throw"dicomParser.readEncapsulatedPixelData: missing basic offset table xfffee000";s.seek(f.length);varl=s.position,u=8;if(1===a)returne.sharedCopy(s.byteArray,l+o[n].offset+u,o[n].length);for(varc=i(o,n,a),d=e.alloc(s.byteArray,c),h=0,m=n;m<n+a;m++)for(varb=l+o[m].offset+u,v=0;v<o[m].length;v++)d[h++]=s.byteArray[b++];returnd},e}(e),e=function(e){returnvoid0===e&&(e={}),e.readPart10Header=function(i,t){functionr(){a.seek(128);vare=a.readFixedString(4);if("DICM"!==e)throw"dicomParser.readPart10Header: DICM prefix not found at location 132 - this is not a valid DICOM P10 file."}functionn(){r();for(vari=[],t={};a.position<a.byteArray.length;){varn=a.position,o=e.readDicomElementExplicit(a,i);if(o.tag>"x0002ffff"){a.position=n;break}o.parser=e.littleEndianByteArrayParser,t[o.tag]=o}vars=newe.DataSet(a.byteArrayParser,a.byteArray,t);returns.warnings=a.warnings,s.position=a.position,s}if(void0===i)throw"dicomParser.readPart10Header: missing required parameter 'byteArray'";vara=newe.ByteStream(e.littleEndianByteArrayParser,i);returnn()},e}(e),e=function(e){"use strict";functioni(i,t){for(varr={};i.position<i.byteArray.length;){varn=e.readDicomElementExplicit(i,t);if(r[n.tag]=n,"xfffee00d"===n.tag)returnnewe.DataSet(i.byteArrayParser,i.byteArray,r)}returnt.push("eof encountered before finding item delimiter tag while reading sequence item of undefined length"),newe.DataSet(i.byteArrayParser,i.byteArray,r)}functiont(t,r){varn=e.readSequenceItem(t);return4294967295===n.length?(n.hadUndefinedLength=!0,n.dataSet=i(t,r),n.length=t.position-n.dataOffset):(n.dataSet=newe.DataSet(t.byteArrayParser,t.byteArray,{}),e.parseDicomDataSetExplicit(n.dataSet,t,t.position+n.length)),n}functionr(i,r,n){for(;i.position+4<=i.byteArray.length;){vara=e.readTag(i);if(i.seek(-4),"xfffee0dd"===a)returnr.length=i.position-r.dataOffset,i.seek(8),r;varo=t(i,n);r.items.push(o)}n.push("eof encountered before finding sequence delimitation tag while reading sequence of undefined length"),r.length=i.position-r.dataOffset}functionn(e,i,r){for(varn=i.dataOffset+i.length;e.position<n;){vara=t(e,r);i.items.push(a)}}returnvoid0===e&&(e={}),e.readSequenceItemsExplicit=function(e,i,t){if(void0===e)throw"dicomParser.readSequenceItemsExplicit: missing required parameter 'byteStream'";if(void0===i)throw"dicomParser.readSequenceItemsExplicit: missing required parameter 'element'";i.items=[],4294967295===i.length?r(e,i,t):n(e,i,t)},e}(e),e=function(e){"use strict";functioni(i,t){for(varr={};i.position<i.byteArray.length;){varn=e.readDicomElementImplicit(i,void0,t);if(r[n.tag]=n,"xfffee00d"===n.tag)returnnewe.DataSet(i.byteArrayParser,i.byteArray,r)}returni.warnings.push("eof encountered before finding sequence item delimiter in sequence item of undefined length"),newe.DataSet(i.byteArrayParser,i.byteArray,r)}functiont(t,r){varn=e.readSequenceItem(t);return4294967295===n.length?(n.hadUndefinedLength=!0,n.dataSet=i(t,r),n.length=t.position-n.dataOffset):(n.dataSet=newe.DataSet(t.byteArrayParser,t.byteArray,{}),e.parseDicomDataSetImplicit(n.dataSet,t,t.position+n.length,{vrCallback:r})),n}functionr(i,r,n){for(;i.position+4<=i.byteArray.length;){vara=e.readTag(i);if(i.seek(-4),"xfffee0dd"===a)returnr.length=i.position-r.dataOffset,i.seek(8),r;varo=t(i,n);r.items.push(o)}i.warnings.push("eof encountered before finding sequence delimiter in sequence of undefined length"),r.length=i.byteArray.length-r.dataOffset}functionn(e,i,r){for(varn=i.dataOffset+i.length;e.position<n;){vara=t(e,r);i.items.push(a)}}returnvoid0===e&&(e={}),e.readSequenceItemsImplicit=function(e,i,t){if(void0===e)throw"dicomParser.readSequenceItemsImplicit:missingrequiredparameter'by
!function(){vare=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,a=Package.underscore._,r=Package.url.URL,o=Package.modules.meteorInstall,c=Package.modules.Buffer,s=Package.modules.process,i=Package["ecmascript-runtime"].Symbol,l=Package["ecmascript-runtime"].Map,p=Package["ecmascript-runtime"].Set,u=Package["babel-runtime"].meteorBabelHelpers,f=Package.promise.Promise,d,m,h,g=o({node_modules:{meteor:{http:{"httpcall_common.js":function(){functione(e,t){returne.length>t?e.slice(0,t)+"...":e}vart=500;d=functionn(a,r){varo="failed ["+a+"]";if(r){varc="string"==typeofr?r:r.toString();o+=" "+e(c.replace(/\n/g," "),t)}returnnewError(o)},m=functione(t){varn=(t.headers["content-type"]||";").split(";")[0];if(a.include(["application/json","text/javascript","application/javascript","application/x-javascript"],n))try{t.data=JSON.parse(t.content)}catch(e){t.data=null}elset.data=null},h={},h.get=function(){returnh.call.apply(this,["GET"].concat(a.toArray(arguments)))},h.post=function(){returnh.call.apply(this,["POST"].concat(a.toArray(arguments)))},h.put=function(){returnh.call.apply(this,["PUT"].concat(a.toArray(arguments)))},h.del=function(){returnh.call.apply(this,["DELETE"].concat(a.toArray(arguments)))},h.patch=function(){returnh.call.apply(this,["PATCH"].concat(a.toArray(arguments)))}},"httpcall_client.js":function(t,n,o){h.call=function(t,n,o,c){if(c||"function"!=typeofo||(c=o,o=null),o=o||{},"function"!=typeofc)thrownewError("Can't make a blocking HTTP call from the client; callback required.");t=(t||"").toUpperCase();vars={},i=o.content;o.data&&(i=JSON.stringify(o.data),s["Content-Type"]="application/json");varl,p;if(i||"GET"===t||"HEAD"===t?l=o.params:p=o.params,n=r._constructUrl(n,o.query,l),o.followRedirects===!1)thrownewError("Option followRedirects:false not supported on client.");if(a.has(o,"npmRequestOptions"))thrownewError("Option npmRequestOptions not supported on client.");varf,h;if(o.auth){varg=o.auth.indexOf(":");if(g<0)thrownewError('auth option should be of the form "username:password"');f=o.auth.substring(0,g),h=o.auth.substring(g+1)}p&&(i=r._encodeParams(p)),a.extend(s,o.headers||{}),c=function(e){returnfunction(t,n){t&&n&&(t.response=n),e(t,n)}}(c),c=a.once(c);try{vary;if("undefined"!=typeofXMLHttpRequest)y=newXMLHttpRequest;else{if("undefined"==typeofActiveXObject)thrownewError("Can't create XMLHttpRequest");y=newActiveXObject("Microsoft.XMLHttp")}y.open(t,n,!0,f,h);for(varvinu.sanitizeForInObject(s))y.setRequestHeader(v,s[v]);varP=!1,k;if(o.timeout&&(k=e.setTimeout(function(){P=!0,y.abort()},o.timeout)),y.onreadystatechange=function(t){if(4===y.readyState)if(k&&e.clearTimeout(k),P)c(newError("timeout"));elseif(y.status){varn={};n.statusCode=y.status,n.content=y.responseText,n.headers={};varr=y.getAllResponseHeaders();""===r&&y.getResponseHeader("content-type")&&(r="content-type: "+y.getResponseHeader("content-type"));varo=r.split(/\r?\n/);a.each(o,function(e){vart=/^(.*?):(?:\s+)(.*)$/.exec(e);t&&3===t.length&&(n.headers[t[1].toLowerCase()]=t[2])}),m(n);vars=null;n.statusCode>=400&&(s=d(n.statusCode,n.content)),c(s,n)}elsec(newError("network"))},o.beforeSend){varw=a.once(o.beforeSend);if(!1===w.call(null,y,o))returny.abort()}y.send(i)}catch(e){c(e)}}},"deprecated.js":function(){e.http=h}}}}},{extensions:[".js",".json"]});g("./node_modules/meteor/http/httpcall_common.js"),g("./node_modules/meteor/http/httpcall_client.js"),g("./node_modules/meteor/http/deprecated.js"),"undefined"==typeofPackage&&(Package={}),function(e,t){for(varnint)nine||(e[n]=t[n])}(Package.http={},{HTTP:h})}();
!function(){vart=Package.meteor.Meteor,e=Package.meteor.global,n=Package.meteor.meteorEnv,r=Package.modules.meteorInstall,i=Package.modules.Buffer,o=Package.modules.process,u=Package["ecmascript-runtime"].Symbol,a=Package["ecmascript-runtime"].Map,s=Package["ecmascript-runtime"].Set,c=Package["babel-runtime"].meteorBabelHelpers,f=Package.promise.Promise,l,d=r({node_modules:{meteor:{validatejs:{lib:{"validate.js":["babel-runtime/helpers/typeof",function(t,e,n){varr;n.import("babel-runtime/helpers/typeof",{default:function(t){r=t}}),function(t,e,n){"use strict";vari=functiont(e,n,r){r=o.extend({},o.options,r);vari=o.runValidations(e,n,r),u,a;for(uinc.sanitizeForInObject(i))for(ainc.sanitizeForInObject(i[u]))if(o.isPromise(i[u][a]))thrownewError("Use validate.async if you want support for promises");returnt.processValidationResults(i,r)},o=i;o.extend=function(t){return[].slice.call(arguments,1).forEach(function(e){for(varninc.sanitizeForInObject(e))t[n]=e[n]}),t},o.extend(i,{version:{major:0,minor:9,patch:0,metadata:"development",toString:function(){functiont(){vart=o.format("%{major}.%{minor}.%{patch}",o.version);returno.isEmpty(o.version.metadata)||(t+="+"+o.version.metadata),t}returnt}()},Promise:"undefined"!=typeoff?f:null,EMPTY_STRING_REGEXP:/^\s*$/,runValidations:function(){functiont(t,e,n){varr=[],i,u,a,s,f,l,d;(o.isDomElement(t)||o.isJqueryElement(t))&&(t=o.collectFormValues(t));for(iinc.sanitizeForInObject(e)){a=o.getDeepObjectValue(t,i),s=o.result(e[i],a,t,i,n,e);for(uinc.sanitizeForInObject(s)){if(f=o.validators[u],!f)throwd=o.format("Unknown validator %{name}",{name:u}),newError(d);l=s[u],l=o.result(l,a,t,i,n,e),l&&r.push({attribute:i,value:a,validator:u,globalOptions:n,attributes:t,options:l,error:f.call(f,a,l,i,t,n)})}}returnr}returnt}(),processValidationResults:function(){functiont(t,e){varn;switch(t=o.pruneEmptyErrors(t,e),t=o.expandMultipleErrors(t,e),t=o.convertErrorMessages(t,e),e.format||"grouped"){case"detailed":break;case"flat":t=o.flattenErrorsToArray(t);break;case"grouped":t=o.groupErrorsByAttribute(t);for(ninc.sanitizeForInObject(t))t[n]=o.flattenErrorsToArray(t[n]);break;default:thrownewError(o.format("Unknown format %{format}",e))}returno.isEmpty(t)?void0:t}returnt}(),async:function(){functiont(t,e,n){n=o.extend({},o.async.options,n);varr=n.wrapErrors||function(t){returnt};n.cleanAttributes!==!1&&(t=o.cleanAttributes(t,e));vari=o.runValidations(t,e,n);returnnewo.Promise(function(u,a){o.waitForResults(i).then(function(){vars=o.processValidationResults(i,n);s?a(newr(s,n,t,e)):u(t)},function(t){a(t)})})}returnt}(),single:function(){functiont(t,e,n){returnn=o.extend({},o.single.options,n,{format:"flat",fullMessages:!1}),o({single:t},{single:e},n)}returnt}(),waitForResults:function(){functiont(t){returnt.reduce(function(t,e){returno.isPromise(e.error)?t.then(function(){returne.error.then(function(t){e.error=t||null},function(t){if(tinstanceofError)throwt;o.error("Rejecting promises with the result is deprecated. Please use the resolve callback instead."),e.error=t})}):t},newo.Promise(function(t){t()}))}returnt}(),result:function(){functiont(t){vare=[].slice.call(arguments,1);return"function"==typeoft&&(t=t.apply(null,e)),t}returnt}(),isNumber:function(){functiont(t){return"number"==typeoft&&!isNaN(t)}returnt}(),isFunction:function(){functiont(t){return"function"==typeoft}returnt}(),isInteger:function(){functiont(t){returno.isNumber(t)&&t%1===0}returnt}(),isObject:function(){functiont(t){returnt===Object(t)}returnt}(),isDate:function(){functiont(t){returntinstanceofDate}returnt}(),isDefined:function(){functiont(t){returnnull!==t&&void0!==t}returnt}(),isPromise:function(){functiont(t){return!!t&&o.isFunction(t.then)}returnt}(),isJqueryElement:function(){functiont(t){returnt&&o.isString(t.jquery)}returnt}(),isDomElement:function(){functiont(t){return!!t&&(!(!o.isFunction(t.querySelectorAll)||!o.isFunction(t.querySelector))&&(!(!o.isObject(document)||t!==document)||("object"===("undefined"==typeofHTMLElement?"undef
},zt=w(k,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,Et),r.distbits=Et.bits,zt){t.msg="invalid distances set",r.mode=lt;break}if(r.mode=$,e===A)breakt;case$:r.mode=tt;casett:if(d>=6&&l>=258){t.next_out=o,t.avail_out=l,t.next_in=s,t.avail_in=d,r.hold=u,r.bits=c,b(t,ut),o=t.next_out,a=t.output,l=t.avail_out,s=t.next_in,i=t.input,d=t.avail_in,u=r.hold,c=r.bits,r.mode===K&&(r.back=-1);break}for(r.back=0;mt=r.lencode[u&(1<<r.lenbits)-1],gt=mt>>>24,bt=mt>>>16&255,wt=65535&mt,!(gt<=c);){if(0===d)breakt;d--,u+=i[s++]<<c,c+=8}if(bt&&0===(240&bt)){for(vt=gt,yt=bt,kt=wt;mt=r.lencode[kt+((u&(1<<vt+yt)-1)>>vt)],gt=mt>>>24,bt=mt>>>16&255,wt=65535&mt,!(vt+gt<=c);){if(0===d)breakt;d--,u+=i[s++]<<c,c+=8}u>>>=vt,c-=vt,r.back+=vt}if(u>>>=gt,c-=gt,r.back+=gt,r.length=wt,0===bt){r.mode=at;break}if(32&bt){r.back=-1,r.mode=K;break}if(64&bt){t.msg="invalid literal/length code",r.mode=lt;break}r.extra=15&bt,r.mode=et;caseet:if(r.extra){for(St=r.extra;c<St;){if(0===d)breakt;d--,u+=i[s++]<<c,c+=8}r.length+=u&(1<<r.extra)-1,u>>>=r.extra,c-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=rt;casert:for(;mt=r.distcode[u&(1<<r.distbits)-1],gt=mt>>>24,bt=mt>>>16&255,wt=65535&mt,!(gt<=c);){if(0===d)breakt;d--,u+=i[s++]<<c,c+=8}if(0===(240&bt)){for(vt=gt,yt=bt,kt=wt;mt=r.distcode[kt+((u&(1<<vt+yt)-1)>>vt)],gt=mt>>>24,bt=mt>>>16&255,wt=65535&mt,!(vt+gt<=c);){if(0===d)breakt;d--,u+=i[s++]<<c,c+=8}u>>>=vt,c-=vt,r.back+=vt}if(u>>>=gt,c-=gt,r.back+=gt,64&bt){t.msg="invalid distance code",r.mode=lt;break}r.offset=wt,r.extra=15&bt,r.mode=nt;casent:if(r.extra){for(St=r.extra;c<St;){if(0===d)breakt;d--,u+=i[s++]<<c,c+=8}r.offset+=u&(1<<r.extra)-1,u>>>=r.extra,c-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){t.msg="invalid distance too far back",r.mode=lt;break}r.mode=it;caseit:if(0===l)breakt;if(ct=ut-l,r.offset>ct){if(ct=r.offset-ct,ct>r.whave&&r.sane){t.msg="invalid distance too far back",r.mode=lt;break}ct>r.wnext?(ct-=r.wnext,pt=r.wsize-ct):pt=r.wnext-ct,ct>r.length&&(ct=r.length),_t=r.window}else_t=a,pt=o-r.offset,ct=r.length;ct>l&&(ct=l),l-=ct,r.length-=ct;doa[o++]=_t[pt++];while(--ct);0===r.length&&(r.mode=tt);break;caseat:if(0===l)breakt;a[o++]=r.length,l--,r.mode=tt;break;casest:if(r.wrap){for(;c<32;){if(0===d)breakt;d--,u|=i[s++]<<c,c+=8}if(ut-=l,t.total_out+=ut,r.total+=ut,ut&&(t.adler=r.check=r.flags?g(r.check,a,ut,o-ut):m(r.check,a,ut,o-ut)),ut=l,(r.flags?u:n(u))!==r.check){t.msg="incorrect data check",r.mode=lt;break}u=0,c=0}r.mode=ot;caseot:if(r.wrap&&r.flags){for(;c<32;){if(0===d)breakt;d--,u+=i[s++]<<c,c+=8}if(u!==(4294967295&r.total)){t.msg="incorrect length check",r.mode=lt;break}u=0,c=0}r.mode=dt;casedt:zt=S;breakt;caselt:zt=B;breakt;caseht:returnO;caseft:default:returnI}returnt.next_out=o,t.avail_out=l,t.next_in=s,t.avail_in=d,r.hold=u,r.bits=c,(r.wsize||ut!==t.avail_out&&r.mode<lt&&(r.mode<st||e!==x))&&f(t,t.output,t.next_out,ut-t.avail_out)?(r.mode=ht,O):(p-=t.avail_in,ut-=t.avail_out,t.total_in+=p,t.total_out+=ut,r.total+=ut,r.wrap&&ut&&(t.adler=r.check=r.flags?g(r.check,a,ut,t.next_out-ut):m(r.check,a,ut,t.next_out-ut)),t.data_type=r.bits+(r.last?64:0)+(r.mode===K?128:0)+(r.mode===$||r.mode===W?256:0),(0===p&&0===ut||e===x)&&zt===E&&(zt=R),zt)}functionc(t){if(!t||!t.state)returnI;vare=t.state;returne.window&&(e.window=null),t.state=null,E}functionp(t,e){varr;returnt&&t.state?(r=t.state,0===(2&r.wrap)?I:(r.head=e,e.done=!1,E)):I}var_=t("../utils/common"),m=t("./adler32"),g=t("./crc32"),b=t("./inffast"),w=t("./inftrees"),v=0,y=1,k=2,x=4,z=5,A=6,E=0,S=1,C=2,I=-2,B=-3,O=-4,R=-5,T=8,D=1,L=2,N=3,U=4,F=5,P=6,Z=7,M=8,j=9,H=10,X=11,K=12,V=13,Y=14,W=15,q=16,G=17,J=18,Q=19,$=20,tt=21,et=22,rt=23,nt=24,it=25,at=26,st=27,ot=28,dt=29,lt=30,ht=31,ft=32,ut=852,ct=592,pt=15,_t=pt,mt=!0,gt,bt;r.inflateReset=s,r.inflateReset2=o,r.inflateResetKeep=a,r.inflateInit=l,r.inflateInit2=d,r.inflate=u,r.inflateEnd=c,r.inflateGetHeader=p,r.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":27,"./adler32":29,"./crc32":31,"./inffast":34,"./inftrees":36}],36:[function(t,e,r){"use strict";varn=t("../utils/common"),i=15,
!function(){vare=Package.meteor.Meteor,t=Package.meteor.global,o=Package.meteor.meteorEnv,a=Package.random.Random;(function(){vart="_localstorage_test_"+a.id(),o;try{window.localStorage&&(window.localStorage.setItem(t,t),o=window.localStorage.getItem(t),window.localStorage.removeItem(t))}catch(e){}t===o&&(e._localStorage={getItem:function(e){returnwindow.localStorage.getItem(e)},setItem:function(e,t){window.localStorage.setItem(e,t)},removeItem:function(e){window.localStorage.removeItem(e)}}),e._localStorage||(e._debug("You are running a browser with no localStorage or userData support. Logging in from one tab will not cause another tab to be logged in."),e._localStorage={_data:{},setItem:function(e,t){this._data[e]=t},removeItem:function(e){deletethis._data[e]},getItem:function(e){vart=this._data[e];returnvoid0===t?null:t}})}).call(this),"undefined"==typeofPackage&&(Package={}),Package.localstorage={}}();
!function(){varn=Package.meteor.Meteor,e=Package.meteor.global,t=Package.meteor.meteorEnv,a=Package.underscore._,r;(function(){r=function(n){vare=this;if(n=n||{},e.nextCallbackId=0,e.callbacks={},e.bindEnvironment=!0,n.bindEnvironment===!1&&(e.bindEnvironment=!1),n.exceptionHandler)e.exceptionHandler=n.exceptionHandler;elseif(n.debugPrintExceptions){if(!a.isString(n.debugPrintExceptions))thrownewError("Hook option debugPrintExceptions should be a string");e.exceptionHandler=n.debugPrintExceptions}},a.extend(r.prototype,{register:function(t){vara=this,r=a.exceptionHandler||function(n){thrown};t=a.bindEnvironment?n.bindEnvironment(t,r):e(t,r);vari=a.nextCallbackId++;returna.callbacks[i]=t,{stop:function(){deletea.callbacks[i]}}},each:function(e){vart=this;n._nodeCodeMustBeInFiber();for(varr=a.keys(t.callbacks),i=0;i<r.length;++i){varo=r[i];if(a.has(t.callbacks,o)){varc=t.callbacks[o];if(!e(c))break}}}});vare=function(e,t,r){if(!t||"string"==typeoft){vari=t||"callback of async function";t=function(e){n._debug("Exception in "+i+":",e&&e.stack||e)}}returnfunction(){varn=a.toArray(arguments),i=function(){try{vara=e.apply(r,n)}catch(n){t(n)}returna};returni()}}}).call(this),"undefined"==typeofPackage&&(Package={}),function(n,e){for(vartine)tinn||(n[t]=e[t])}(Package["callback-hook"]={},{Hook:r})}();
!function(){varn=Package.meteor.Meteor,e=Package.meteor.global,o=Package.meteor.meteorEnv,t=Package.underscore._,i=Package.tracker.Tracker,r=Package.tracker.Deps,c=Package.random.Random,a=Package["callback-hook"].Hook,s=Package["ddp-client"].DDP,u=Package.mongo.Mongo,l=Package.modules.meteorInstall,g=Package.modules.Buffer,_=Package.modules.process,p=Package["ecmascript-runtime"].Symbol,f=Package["ecmascript-runtime"].Map,h=Package["ecmascript-runtime"].Set,d=Package["babel-runtime"].meteorBabelHelpers,m=Package.promise.Promise,k,L,E,I=l({node_modules:{meteor:{"accounts-base":{"client_main.js":["./accounts_client.js","./url_client.js","./localstorage_token.js",function(e,o,t){t.export({AccountsClient:function(){returni},AccountsTest:function(){returnr}});vari;t.import("./accounts_client.js",{AccountsClient:function(n){i=n}});varr;t.import("./url_client.js",{AccountsTest:function(n){r=n}}),t.import("./localstorage_token.js"),k=newi,n.users=k.users}],"accounts_client.js":["babel-runtime/helpers/classCallCheck","babel-runtime/helpers/possibleConstructorReturn","babel-runtime/helpers/inherits","./accounts_common.js",function(e,o,r){r.export({AccountsClient:function(){returnl}});varc;r.import("babel-runtime/helpers/classCallCheck",{default:function(n){c=n}});vara;r.import("babel-runtime/helpers/possibleConstructorReturn",{default:function(n){a=n}});vars;r.import("babel-runtime/helpers/inherits",{default:function(n){s=n}});varu;r.import("./accounts_common.js",{AccountsCommon:function(n){u=n}});varl=function(n){functione(o){c(this,e);vart=a(this,n.call(this,o));returnt._loggingIn=!1,t._loggingInDeps=newi.Dependency,t._loginServicesHandle=t.connection.subscribe("meteor.loginServiceConfiguration"),t._pageLoadLoginCallbacks=[],t._pageLoadLoginAttemptInfo=null,t._initUrlMatching(),t._initLocalStorage(),t}returns(e,n),e.prototype.userId=function(){functionn(){returnthis.connection.userId()}returnn}(),e.prototype._setLoggingIn=function(){functionn(n){this._loggingIn!==n&&(this._loggingIn=n,this._loggingInDeps.changed())}returnn}(),e.prototype.loggingIn=function(){functionn(){returnthis._loggingInDeps.depend(),this._loggingIn}returnn}(),e.prototype.logout=function(){functionn(n){vare=this;e.connection.apply("logout",[],{wait:!0},function(o,t){o?n&&n(o):(e.makeClientLoggedOut(),n&&n())})}returnn}(),e.prototype.logoutOtherClients=function(){functionn(n){vare=this;e.connection.apply("getNewToken",[],{wait:!0},function(n,o){n||e._storeLoginToken(e.userId(),o.token,o.tokenExpires)}),e.connection.apply("removeOtherTokens",[],{wait:!0},function(e){n&&n(e)})}returnn}(),e}(u),g=l.prototype;n.loggingIn=function(){returnk.loggingIn()},g.callLoginMethod=function(n){vare=this;n=t.extend({methodName:"login",methodArguments:[{}],_suppressLoggingIn:!1},n),t.each(["validateResult","userCallback"],function(e){n[e]||(n[e]=function(){})});varo=t.once(function(o){o?e._onLoginFailureHook.each(function(n){returnn({error:o}),!0}):e._onLoginHook.each(function(n){returnn(),!0}),n.userCallback.apply(this,arguments)}),i=!1,r=functionn(t,r){!t&&r&&r.token&&(e.connection.onReconnect=function(){i=!0;varn=e._storedLoginToken();n&&(r={token:n,tokenExpires:e._storedLoginTokenExpires()}),r.tokenExpires||(r.tokenExpires=e._tokenExpiration(newDate)),e._tokenExpiresSoon(r.tokenExpires)?e.makeClientLoggedOut():e.callLoginMethod({methodArguments:[{resume:r.token}],_suppressLoggingIn:!0,userCallback:function(){functionn(n){vart=e._storedLoginToken();n&&t&&t===r.token&&e.makeClientLoggedOut(),o(n)}returnn}()})})},c=functiont(r,c){if(!i){if(e._setLoggingIn(!1),r||!c)returnr=r||newError("No result from call to "+n.methodName),voido(r);try{n.validateResult(c)}catch(n){returnvoido(n)}e.makeClientLoggedIn(c.id,c.token,c.tokenExpires),o()}};n._suppressLoggingIn||e._setLoggingIn(!0),e.connection.apply(n.methodName,n.methodArguments,{wait:!0,onResultReceived:r},c)},g.makeClientLoggedOut=function(){this.connection._userId&&this._onLogoutHook.each(function(n){returnn(),!0}),this._unstoreLoginToken(),this.connection.setUserId(null),this.
!function(){vare=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,r=Package.underscore._,i;(function(){(function(){i=function(e){vart=this;if(!(tinstanceofi))thrownewError('use "new" to construct an EventEmitter');e=e||{},t._eventEmitter={onListeners:{},onceListeners:{},maxListeners:e.maxListeners||10}};vare=function(e,t){varn=this;if(n._eventEmitter.maxListeners&&t>n._eventEmitter.maxListeners)return"warning: possible EventEmitter memory leak detected. "+t+' listeners added on event "'+e+'". Use emitter.setMaxListeners() to increase limit. ('+n._eventEmitter.maxListeners+")"};i.prototype.setMaxListeners=function(e){this._eventEmitter.maxListeners=e};vart=function(t,n,r){return"undefined"==typeoft[n]&&(t[n]=[]),e.apply(this,[n,t[n].push(r)])};i.prototype.on=function(e,n){varr=t.apply(this,[this._eventEmitter.onListeners,e,n]);returnr&&console.warn(newError(r).stack),this},i.prototype.once=function(e,n){varr=t.apply(this,[this._eventEmitter.onceListeners,e,n]);returnr&&console.warn(newError(r).stack),this};varn=function(e,t){varn=this,i=0;return"undefined"!=typeofe&&r.each(e,function(e){i++,e.apply(n,t)}),i};i.prototype.emit=function(e){vart=this,i=r.rest(arguments),o=0,s=t._eventEmitter.onceListeners[e];returnt._eventEmitter.onceListeners[e]=[],o+=n.call(t,t._eventEmitter.onListeners[e],i),o+=n.call(t,s,i),o>0};varo=function(e,t){for(varn=!1,r=[],i=0;i<e.length;i++)n||e[i]!==t?r.push(e[i]):n=!0;returnr};i.prototype.off=function(e,t){varn=this;e?"function"==typeoft?("undefined"!=typeofn._eventEmitter.onListeners[e]&&(n._eventEmitter.onListeners[e]=o(n._eventEmitter.onListeners[e],t)),"undefined"!=typeofn._eventEmitter.onceListeners[e]&&(n._eventEmitter.onceListeners[e]=o(n._eventEmitter.onceListeners[e],t))):(n._eventEmitter.onListeners[e]=[],n._eventEmitter.onceListeners[e]=[]):(n._eventEmitter.onListeners={},n._eventEmitter.onceListeners={})},i.prototype.addListener=i.prototype.on,i.prototype.removeListener=i.prototype.off,i.prototype.removeAllListeners=i.prototype.off,i.prototype.one=i.prototype.once,i.prototype.trigger=i.prototype.emit}).call(this)}).call(this),"undefined"==typeofPackage&&(Package={}),function(e,t){for(varnint)nine||(e[n]=t[n])}(Package["raix:eventemitter"]={},{EventEmitter:i})}();
!function(){vare=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,i=Package["aldeed:simple-schema"].SimpleSchema,r=Package["aldeed:simple-schema"].MongoObject,o=Package.underscore._,a=Package.check.check,s=Package.check.Match,c=Package.mongo.Mongo,l=Package.minimongo.LocalCollection,u=Package.minimongo.Minimongo,m=Package.ejson.EJSON,d=Package["raix:eventemitter"].EventEmitter,f;(function(){functiont(t,i,r,l,u){functionm(e,n,i,r,a,s){E.clean(e,{mutate:!0,filter:i,autoConvert:r,getAutoValues:n,isModifier:"insert"!==t,removeEmptyStrings:a,trimStrings:s,extendAutoValueContext:o.extend({isInsert:"insert"===t,isUpdate:"update"===t&&_.upsert!==!0,isUpsert:v,userId:l,isFromTrustedCode:u,docId:I,isLocalCollection:k},_.extendAutoValueContext||{})})}vard=this,f,p,h,_,v,g,y,S;if(!i.length)thrownewError(t+" requires an argument");if("insert"===t)f=i[0],_=i[1],p=i[2],i="function"==typeof_?[f,_]:"function"==typeofp?[f,p]:[f];else{if("update"!==t)thrownewError("invalid type argument");g=i[0],f=i[1],_=i[2],p=i[3]}varC=o.isEmpty(f);p||"function"!=typeof_||(p=_,_={}),_=_||{},y=i.length-1,S="function"==typeofi[y],v="update"===t&&_.upsert===!0;varE=d.simpleSchema(f,_,g),k=null===d._connection;(e.isServer||k)&&_.getAutoValues===!1&&(r=!1);varw=_.validationContext;w?"string"==typeofw&&(w=E.namedContext(w)):w=E.namedContext(),e.isClient&&!p&&(p=function(n){n&&e._debug(t+" failed: "+(n.reason||n.stack))}),e.isClient&&S&&(p=i[y]=s(w,p));varx=E.allowsKey("_id");"insert"===t&&!f._id&&x&&(f._id=d._makeNewID());varI;"insert"===t?I=f._id:"update"===t&&g&&(I="string"==typeofg||ginstanceofc.ObjectID?g:g._id);varP;f._id&&!x&&(P=f._id,deletef._id),m(f,r,_.filter!==!1,_.autoConvert!==!1,_.removeEmptyStrings!==!1,_.trimStrings!==!1);varA={};for(varMinf)f.hasOwnProperty(M)&&(A[M]=f[M]);if(e.isServer&&v&&o.isObject(g)){varO=A.$set||{};A.$set=o.clone(g),x||deleteA.$set._id,o.extend(A.$set,O)}if(e.isClient&&!k&&m(A,!0,!1,!1,!1,!1),!C&&o.isEmpty(A))thrownewError("After filtering out keys not in the schema, your "+("update"===t?"modifier":"object")+" is now empty");varV;if(V=_.validate===!1||w.validate(A,{modifier:"update"===t||"upsert"===t,upsert:v,extendedCustomContext:o.extend({isInsert:"insert"===t,isUpdate:"update"===t&&_.upsert!==!0,isUpsert:v,userId:l,isFromTrustedCode:u,docId:I,isLocalCollection:k},_.extendedCustomContext||{})}))returnP&&(f._id=P),"insert"===t?i[0]=f:i[1]=f,e.isServer&&S&&(i[y]=a(w,i[y])),i;if(h=n(w),!p)throwh;p(h,!1)}functionn(t){varn,r=i.version>=2?t.validationErrors():t.invalidKeys();n=r.length?t.keyErrorMessage(r[0].name):"Failed validation";varo=newError(n);returno.invalidKeys=r,o.validationContext=t,e.isServer&&(o.sanitizedError=newe.Error(400,n,m.stringify(o.invalidKeys))),o}functionr(e,t){varn=t.split("c2_")[1].split(" ")[0],i=t.split("dup key:")[1].split('"')[1];e[h]([{name:n,type:"notUnique",value:i}])}functiona(e,t){returnfunctioni(a){vars=o.toArray(arguments);returna&&("MongoError"===a.name&&11001===a.code||a.message.indexOf(!0))&&a.message.indexOf("c2_")!==-1&&(r(e,a.message),s[0]=n(e)),t.apply(this,s)}}functions(t,i){returnfunctiona(s){varc=o.toArray(arguments);if(sinstanceofe.Error&&400===s.error&&"INVALID"===s.reason&&"string"==typeofs.details){varl=m.parse(s.details);t[h](l),c[0]=n(t)}elsesinstanceofe.Error&&409===s.error&&s.reason&&s.reason.indexOf("E11000")!==-1&&s.reason.indexOf("c2_")!==-1&&(r(t,s.reason),c[0]=n(t));returni.apply(this,c)}}functionu(e){Package&&Package.insecure&&!_[e._name]&&(e.allow({insert:function(){return!0},update:function(){return!0},remove:function(){return!0},fetch:[],transform:null}),_[e._name]=!0)}functionp(n,i){if(!v[n._name]){varr=null===n._connection;n.deny({insert:function(e,t){returnn.simpleSchema(t).clean(t,{mutate:!0,isModifier:!1,filter:!1,autoConvert:!1,removeEmptyStrings:!1,trimStrings:!1,extendAutoValueContext:{isInsert:!0,isUpdate:!1,isUpsert:!1,userId:e,isFromTrustedCode:!1,docId:t._id,isLocalCollection:r}}),!1},update:function(e,t,i,o){returnn.simpleSchema(o).clean(o,{mutate:!0,isModifier:!
!function(){vare=Package.meteor.Meteor,a=Package.meteor.global,n=Package.meteor.meteorEnv,o=Package["aldeed:collection2-core"].Collection2,c=Package.underscore._,i=Package.minimongo.LocalCollection,s=Package.minimongo.Minimongo,t=Package.check.check,m=Package.check.Match,r=Package.modules.meteorInstall,l=Package.modules.Buffer,u=Package.modules.process,g=Package["ecmascript-runtime"].Symbol,d=Package["ecmascript-runtime"].Map,k=Package["ecmascript-runtime"].Set,P=Package["babel-runtime"].meteorBabelHelpers,p=Package.promise.Promise,h=Package["aldeed:simple-schema"].SimpleSchema,b=Package["aldeed:simple-schema"].MongoObject,f=Package.mongo.Mongo,x=r({node_modules:{meteor:{"aldeed:schema-index":{lib:{"indexing.js":function(){h.extendOptions({index:m.Optional(m.OneOf(Number,String,Boolean)),unique:m.Optional(Boolean),sparse:m.Optional(Boolean)}),(!h.version||h.version<2)&&h.messages({notUnique:"[label] must be unique"}),e.isServer&&o.on("schema.attached",function(a,n){functiono(n,o,c,i){e.startup(function(){a._collection._ensureIndex(n,{background:!0,name:o,unique:c,sparse:i})})}functioni(n){e.startup(function(){try{a._collection._dropIndex(n)}catch(e){}})}n.version>=2&&n.messageBox.messages({notUnique:"{{label}} must be unique"});vars=2===n.version?"mergedSchema":"schema";c.each(n[s](),function(e,a){if("index"ine||e.unique===!0){varn={},c;"index"ine?(c=e.index,c===!0&&(c=1)):c=1;vars="c2_"+a,t=a.replace(/\.\$\./g,".");n[t]=c;varm=!!e.unique&&(1===c||c===-1),r=e.sparse||!1;!r&&m&&e.optional&&(r=!0),c===!1?i(s):o(n,s,m,r)}})})}}}}}},{extensions:[".js",".json"]});x("./node_modules/meteor/aldeed:schema-index/lib/indexing.js"),"undefined"==typeofPackage&&(Package={}),Package["aldeed:schema-index"]={}}();
!function(){vare=Package.meteor.Meteor,a=Package.meteor.global,n=Package.meteor.meteorEnv,o=Package["aldeed:collection2-core"].Collection2,t=Package.underscore._,i=Package.minimongo.LocalCollection,c=Package.minimongo.Minimongo,l=Package.check.check,s=Package.check.Match,d=Package["aldeed:simple-schema"].SimpleSchema,g=Package["aldeed:simple-schema"].MongoObject,r=Package.mongo.Mongo;(function(){d.extendOptions({denyInsert:s.Optional(Boolean),denyUpdate:s.Optional(Boolean)}),(!d.version||d.version<2)&&d.messages({insertNotAllowed:"[label] cannot be set during an insert",updateNotAllowed:"[label] cannot be set during an update"}),o.on("schema.attached",function(e,a){a.version>=2&&a.messageBox.messages({insertNotAllowed:"{{label}} cannot be set during an insert",updateNotAllowed:"{{label}} cannot be set during an update"}),a.addValidator(function(){if(this.isSet){vare=this.definition;returne.denyInsert&&this.isInsert?"insertNotAllowed":e.denyUpdate&&(this.isUpdate||this.isUpsert)?"updateNotAllowed":void0}})})}).call(this),"undefined"==typeofPackage&&(Package={}),Package["aldeed:schema-deny"]={}}();
!function(){varMeteor=Package.meteor.Meteor,global=Package.meteor.global,meteorEnv=Package.meteor.meteorEnv,Symbol=Package["ecmascript-runtime"].Symbol,Map=Package["ecmascript-runtime"].Map,Set=Package["ecmascript-runtime"].Set,meteorBabelHelpers=Package["babel-runtime"].meteorBabelHelpers,Promise=Package.promise.Promise,html,chai,__coffeescriptShare,assert,expect,should;(function(){(function(){!function(){functionrequire(e){vart=require.modules[e];if(!t)thrownewError('failed to require "'+e+'"');return"exports"int||"function"!=typeoft.definition||(t.client=t.component=!0,t.definition.call(this,t.exports={},t),deletet.definition),t.exports}require.loader="component",require.helper={},require.helper.semVerSort=function(e,t){for(vari=e.version.split("."),n=t.version.split("."),r=0;r<i.length;++r){varo=parseInt(i[r],10),s=parseInt(n[r],10);if(o!==s)returno>s?1:-1;vara=i[r].substr((""+o).length),c=n[r].substr((""+s).length);if(""===a&&""!==c)return1;if(""!==a&&""===c)return-1;if(""!==a&&""!==c)returna>c?1:-1}return0},require.latest=function(e,t){functioni(e){thrownewError('failed to find latest module of "'+e+'"')}varn=/(.*)~(.*)@v?(\d+\.\d+\.\d+[^\/]*)$/,r=/(.*)~(.*)/;r.test(e)||i(e);for(varo=Object.keys(require.modules),s=[],a=[],c=0;c<o.length;c++){varh=o[c];if(newRegExp(e+"@").test(h)){varu=h.substr(e.length+1),l=n.exec(h);null!=l?s.push({version:u,name:h}):a.push({version:u,name:h})}}if(0===s.concat(a).length&&i(e),s.length>0){varf=s.sort(require.helper.semVerSort).pop().name;returnt===!0?f:require(f)}varf=a.sort(function(e,t){returne.name>t.name})[0].name;returnt===!0?f:require(f)},require.modules={},require.register=function(e,t){require.modules[e]={definition:t}},require.define=function(e,t){require.modules[e]={exports:t}},require.register("chaijs~assertion-error@1.0.0",function(e,t){functioni(){functione(e,i){Object.keys(i).forEach(function(n){~t.indexOf(n)||(e[n]=i[n])})}vart=[].slice.call(arguments);returnfunctiont(){for(vari=[].slice.call(arguments),n=0,r={};n<i.length;n++)e(r,i[n]);returnr}}functionn(e,t,n){varr=i("name","message","stack","constructor","toJSON"),o=r(t||{});this.message=e||"Unspecified AssertionError",this.showDiff=!1;for(varsino)this[s]=o[s];n=n||arguments.callee,n&&Error.captureStackTrace&&Error.captureStackTrace(this,n)}t.exports=n,n.prototype=Object.create(Error.prototype),n.prototype.name="AssertionError",n.prototype.constructor=n,n.prototype.toJSON=function(e){vart=i("constructor","toJSON","stack"),n=t({name:this.name},this);return!1!==e&&this.stack&&(n.stack=this.stack),n}}),require.register("chaijs~type-detect@0.1.1",function(e,t){functioni(e){vart=Object.prototype.toString.call(e);returnr[t]?r[t]:null===e?"null":void0===e?"undefined":e===Object(e)?"object":typeofe}functionn(){this.tests={}}vare=t.exports=i,r={"[object Array]":"array","[object RegExp]":"regexp","[object Function]":"function","[object Arguments]":"arguments","[object Date]":"date"};e.Library=n,n.prototype.of=i,n.prototype.define=function(e,t){return1===arguments.length?this.tests[e]:(this.tests[e]=t,this)},n.prototype.test=function(e,t){if(t===i(e))return!0;varn=this.tests[t];if(n&&"regexp"===i(n))returnn.test(e);if(n&&"function"===i(n))returnn(e);thrownewReferenceError('Type test "'+t+'" not defined or invalid.')}}),require.register("chaijs~deep-eql@0.1.3",function(e,t){functioni(e,t,i){return!!n(e,t)||("date"===p(e)?o(e,t):"regexp"===p(e)?s(e,t):d.isBuffer(e)?u(e,t):"arguments"===p(e)?a(e,t,i):!!r(e,t)&&("object"!==p(e)&&"object"!==p(t)&&"array"!==p(e)&&"array"!==p(t)?n(e,t):f(e,t,i)))}functionn(e,t){returne===t?0!==e||1/e===1/t:e!==e&&t!==t}functionr(e,t){returnp(e)===p(t)}functiono(e,t){return"date"===p(t)&&n(e.getTime(),t.getTime())}functions(e,t){return"regexp"===p(t)&&n(e.toString(),t.toString())}functiona(e,t,n){return"arguments"===p(t)&&(e=[].slice.call(e),t=[].slice.call(t),i(e,t,n))}functionc(e){vart=[];for(variine)t.push(i);returnt}functionh(e,t){if(e.length!==t.length)return!1;for(vari=0,n=!0;i<e.length;i++)if(e[i]!==t[i]){n=!1;break}return
!function(){vare=Package.meteor.Meteor,t=Package.meteor.global,l=Package.meteor.meteorEnv,o=Package["practicalmeteor:chai"].chai,n=Package["practicalmeteor:chai"].assert,i=Package["practicalmeteor:chai"].expect,r=Package["practicalmeteor:chai"].should,a=Package["ecmascript-runtime"].Symbol,c=Package["ecmascript-runtime"].Map,s=Package["ecmascript-runtime"].Set,u=Package["babel-runtime"].meteorBabelHelpers,g=Package.promise.Promise,f,p,h,v,d;(function(){(function(){f=function(e){functiont(e){returntypeofconsole!==s&&(void0!==console[e]?l(console,e):void0!==console.log?l(console,"log"):c)}functionl(e,t){varl=e[t];if("function"==typeofl.bind)returnl.bind(e,a.prefix);try{returnFunction.prototype.bind.call(l,e,a.prefix)}catch(t){returnfunction(){returnFunction.prototype.apply.apply(l,[e,arguments])}}}functiono(e,t){returnfunction(){typeofconsole!==s&&(n(t),a[e].apply(a,arguments))}}functionn(e){for(vart=0;t<u.length;t++){varl=u[t];a[l]=t<e?c:a.methodFactory(l,e)}}functioni(e){vart=(u[e]||"silent").toUpperCase();try{returnvoid(window.localStorage.loglevel=t)}catch(e){}try{window.document.cookie="loglevel="+t+";"}catch(e){}}functionr(){vare;try{e=window.localStorage.loglevel}catch(e){}if(typeofe===s)try{e=/loglevel=([^;]+)/.exec(window.document.cookie)[1]}catch(e){}void0===a.levels[e]&&(e="WARN"),a.setLevel(a.levels[e])}vara={};e&&e.prefix?a.prefix=e.prefix:a.prefix="",e&&e.level?a.level=e.level:a.level="info";varc=function(){},s="undefined",u=["trace","fine","debug","info","warn","error"];a.levels={TRACE:0,FINE:1,DEBUG:2,INFO:3,WARN:4,ERROR:5,SILENT:6},a.methodFactory=function(e,l){returnt(e)||o(e,l)},a.setLevel=function(e){if("string"==typeofe&&void0!==a.levels[e.toUpperCase()]&&(e=a.levels[e.toUpperCase()]),!("number"==typeofe&&e>=0&&e<=a.levels.SILENT))throw"log.setLevel() called with invalid level: "+e;if(a.level=e,n(e),typeofconsole===s&&e<a.levels.SILENT)return"No console available for logging"},a.enableAll=function(){a.setLevel(a.levels.TRACE)},a.disableAll=function(){a.setLevel(a.levels.SILENT)};varg=typeofwindow!==s?window.log:void0;returna.noConflict=function(){returntypeofwindow!==s&&window.log===a&&(window.log=g),a},a.setPrefix=function(e){typeofe!==s&&null!==e||(e=""),a.prefix=e,a.setLevel(a.level)},a.setLevel(a.level),a},p=f({prefix:"practicalmeteor:loglevel:"})}).call(this),function(){h="object"==typeofh?h:{};vart=h;null==this.practical&&(this.practical={}),practical.LoggerFactory=function(){functiont(){}varl;returnl=null,t.get=function(){returnnull!=l?l:l=newpractical.LoggerFactory},t.prototype._getSettingsLoglevel=function(e,t){varl,o;returnnull==e&&(e=""),null==t&&(t="info"),i(e).to.be.a("string"),i(t).to.be.a("string").that.has.length.above(0),l=this._getNamespaceLoglevel("global"),null!=l?l:(e.length>0&&(o=this._getNamespaceLoglevel(e)),null==o&&(o=this._getNamespaceLoglevel("default")),null!=o?o:o=t)},t.prototype._getNamespaceLoglevel=function(t){varl,o,n,r,a,c,s;returni(t).to.be.a("string").that.has.length.above(0),l=null!=(n=e.settings)&&null!=(r=n.public)&&null!=(a=r.loglevel)?a[t]:void0,e.isServer&&(o=null!=(c=e.settings)&&null!=(s=c.loglevel)?s[t]:void0,null!=o&&(l=o)),l},t.prototype.createLogger=function(e,t){varl;returnnull==e&&(e=""),null==t&&(t="info"),p.debug("LoggerFactory.createLogger()",arguments),i(e).to.be.a("string"),i(t).to.be.a("string").that.has.length.above(0),i(f).to.be.a("function"),l={},e.length>0&&(l.prefix=e+":"),l.level=this._getSettingsLoglevel(e,t),f(l)},t.prototype.createPackageLogger=function(e,t){returnnull==t&&(t="info"),this.createLogger(e,t)},t.prototype.createAppLogger=function(e,t){returnnull==e&&(e="app"),null==t&&(t="info"),this.createLogger(e,t)},t}(),v=practical.LoggerFactory.get()}.call(this),function(){h="object"==typeofh?h:{};vare=h,t=[].slice;d=function(){functione(e,t){returnthis.className=e,this.defaultLevel=null!=t?t:"info",this.log=v.createLogger(this.className,this.defaultLevel),this.callStack=[],this.log.enter=this.bindMethod(this.enter,"debug"),this.log.fineEnter=this.bindMethod(this.enter,"fine
}),pt.If(function(){returnht.call(t.lookup("createdBy"))},function(){return[" by ",pt.View("lookup:getUsername",function(){returnht.mustache(t.lookup("getUsername"),t.lookup("createdBy"))})]})),"\n ",kt.P("Last modified: ",pt.View("lookup:formatJSDate",function(){returnht.mustache(t.lookup("formatJSDate"),t.lookup("modifiedDate"))}),pt.If(function(){returnht.call(t.lookup("createdBy"))},function(){return[" by ",pt.View("lookup:getUsername",function(){returnht.mustache(t.lookup("getUsername"),t.lookup("modifiedBy"))})]})),"\n ",kt.P("Number of Priors Referenced: ",pt.View("lookup:numberOfPriorsReferenced",function(){returnht.mustache(t.lookup("numberOfPriorsReferenced"))})),"\n "),"\n "),"\n ",kt.DIV({class:"row"},"\n ",kt.H3("Protocol Applicability"),"\n ",kt.HR(),"\n ",pt._TemplateWith(function(){return{level:ht.call("protocol"),rules:ht.call(t.lookup("protocolMatchingRules")),attributes:ht.call(t.lookup("studyAttributes"))}},function(){returnht.include(t.lookupTemplate("ruleTable"))}),"\n "),"\n ",kt.DIV({class:"row"},"\n ",kt.H3("Stages"),"\n ",kt.HR(),"\n ",pt._TemplateWith(function(){return{stages:ht.call(t.lookup("stages"))}},function(){returnht.include(t.lookupTemplate("stageSortable"))}),"\n "),"\n "),"\n "]}),"\n "),"\n\n ",kt.DIV({id:"activeViewportEditor",class:"tab-pane"},"\n ",pt.If(function(){returnht.call(t.lookup("activeViewportUndefined"))},function(){return["\n ",kt.DIV({class:"noActiveViewport"},"\n ",kt.H2("Select a Viewport"),"\n ",kt.HR(),"\n ",kt.P("\n Upon selecting a Viewport, this section will show a list of rules that can be used\n to determine which images will populate the specified Viewport. You can specify these\n rules to be evaluated at the study, series, or image level.\n "),"\n "),"\n "]}),"\n ",ht.With(function(){returnht.call(t.lookup("activeStage"))},function(){return["\n ",ht.include(t.lookupTemplate("stageDetails")),"\n "]}),"\n "),"\n "),"\n\n ",ht.With(function(){returnht.call(t.lookup("activeProtocol"))},function(){return["\n ",kt.DIV({id:"protocolOptions",class:"protocolEditorSection"},"\n ",pt.If(function(){returnht.call(t.lookup("locked"))},function(){return["\n ",kt.BUTTON({id:"saveProtocol",type:"button",class:"btn btn-sm",disabled:""},"\n Locked ",kt.I({class:"fa fa-lock","aria-hidden":"true"}),"\n "),"\n "]},function(){return["\n ",kt.BUTTON({id:"saveProtocol",type:"button",class:"btn btn-sm"},"\n Save Changes ",kt.I({class:"fa fa-floppy-o","aria-hidden":"true"}),"\n "),"\n "]}),"\n\n ",pt.If(function(){returnht.call(t.lookup("modifiedDate"))},function(){return["\n ",kt.P({class:"lastSavedText"},"Last saved ",pt.View("lookup:jsDateFromNow",function(){returnht.mustache(t.lookup("jsDateFromNow"),t.lookup("modifiedDate"))})),"\n "]}),"\n "),"\n ",kt.IFRAME({id:"download_iframe",style:"display:none;"}),"\n "]}),"\n ")})},"protocolEditor.js":function(){functione(){if(Et){vart=St.find().map(function(t){returnt.text=t.name,t}),e=o("#protocolSelect");e.select2().empty(),e.select2({data:t}),e.select2().val(Et.protocol.id).trigger("change")}}a.protocolEditor.onRendered(function(){varn=a.instance();n.timeAgoInterval=t.setInterval(function(){ut.set("timeAgoVariable",newDate)},6e4),n.subscribe("hangingprotocols",function(){e()})}),a.prot
!function(){vare=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,r=Package["templating-runtime"].Template,a=Package.blaze.Blaze,o=Package.blaze.UI,s=Package.blaze.Handlebars,i=Package.jquery.$,l=Package.jquery.jQuery,d=Package.underscore._,c=Package.tracker.Tracker,p=Package.tracker.Deps,u=Package.modules.meteorInstall,m=Package.modules.Buffer,f=Package.modules.process,h=Package["ecmascript-runtime"].Symbol,y=Package["ecmascript-runtime"].Map,b=Package["ecmascript-runtime"].Set,k=Package["babel-runtime"].meteorBabelHelpers,v=Package.promise.Promise,g=Package.htmljs.HTML,_=Package.spacebars.Spacebars,j,P=u({node_modules:{meteor:{"aldeed:template-extension":{lib:{"hooks.js":function(){j={global:{created:[],rendered:[],destroyed:[]},master:{created:function(){functione(){j.runGlobal("created",this,arguments)}returne}(),rendered:function(){functione(){j.runGlobal("rendered",this,arguments)}returne}(),destroyed:function(){functione(){j.runGlobal("destroyed",this,arguments)}returne}()}},j.addGlobal=function(e){e._hasTemplateExtensionMasterHooks||(e.onCreated(j.master.created),e.onRendered(j.master.rendered),e.onDestroyed(j.master.destroyed),e._hasTemplateExtensionMasterHooks=!0)},j.runGlobal=function(e,t,n){for(varr=j.global[e],a=Array.isArray(r),o=0,r=a?r:r[h.iterator]();;){vars;if(a){if(o>=r.length)break;s=r[o++]}else{if(o=r.next(),o.done)break;s=o.value}vari=s;i.apply(t,n)}}},"template-for-each.js":function(){r.forEach=function(e){vart=!1;for(varnink.sanitizeForInObject(r))if(r.hasOwnProperty(n)){varo=r[n];if(a.isTemplate(o)){vars=o.viewName;"body"===s?t||(t=!0,e(o)):"Template.__dynamic"!==s&&"Template.__dynamicWithDataContext"!==s&&e(o)}}}},"template-hooks.js":["babel-runtime/helpers/typeof",function(e,t,n){vara;n.import("babel-runtime/helpers/typeof",{default:function(e){a=e}}),r.prototype.hooks=function(e){if(!e||"object"!==("undefined"==typeofe?"undefined":a(e)))thrownewError("hooks argument must be an object with created, rendered, and/or destroyed properties, each set to a function");"function"==typeofe.created&&this.onCreated(e.created),"function"==typeofe.rendered&&this.onRendered(e.rendered),"function"==typeofe.destroyed&&this.onDestroyed(e.destroyed)}}],"template-global-hooks.js":function(){e.startup(function(){r.forEach(function(e){j.addGlobal(e)})}),r.onCreated=function(e){j.global.created.push(e)},r.onRendered=function(e){j.global.rendered.push(e)},r.onDestroyed=function(e){j.global.destroyed.push(e)}},"template-for-each-instance.js":function(){r._renderedInstances=[],r.onRendered(function(){r._renderedInstances.push(this)}),r.onDestroyed(function(){vare=r._renderedInstances.indexOf(this);e>-1&&r._renderedInstances.splice(e,1)}),r.forEachCurrentlyRenderedInstance=function(e){r._renderedInstances.forEach(e)}},"template-inherits-events-from.js":function(){r.prototype.inheritsEventsFrom=function(){functione(e){functiont(e){"string"==typeofe&&(e=r[e]),e&&(n.__eventMaps=n.__eventMaps.concat(e.__eventMaps))}varn=this;n.__eventMaps=n.__eventMaps||[],d.isArray(e)?d.each(e,t):t(e)}returne}()},"template-inherits-helpers-from.js":function(){r.prototype.inheritsHelpersFrom=function(){functione(e){functiont(e){if("string"==typeofe&&(e=r[e]),e){vart={};d.each(e.__helpers,function(e,n){" "===n.charAt(0)&&(t[n.slice(1)]=e)}),n.helpers(t)}}varn=this;d.isArray(e)?d.each(e,t):t(e)}returne}()},"template-inherits-hooks-from.js":function(){r.prototype.inheritsHooksFrom=function(){functione(e){functiont(e){if("string"==typeofe&&(e=r[e]),e){j.addGlobal(e);for(vart=e._callbacks.created,a=Array.isArray(t),o=0,t=a?t:t[h.iterator]();;){vars;if(a){if(o>=t.length)break;s=t[o++]}else{if(o=t.next(),o.done)break;s=o.value}vari=s;i!==j.master.created&&n.onCreated(i)}for(varl=e._callbacks.rendered,d=Array.isArray(l),c=0,l=d?l:l[h.iterator]();;){varp;if(d){if(c>=l.length)break;p=l[c++]}else{if(c=l.next(),c.done)break;p=c.value}varu=p;u!==j.master.rendered&&n.onRendered(u)}for(varm=e._callbacks.destroyed,f=Array.isArray(m),y=0,m=f?m:m[h.iterator]();;){varb;if(f){if(y>=m.length
!function(){vart=Package.meteor.Meteor,e=Package.meteor.global,i=Package.meteor.meteorEnv,o=Package.jquery.$,n=Package.jquery.jQuery;(function(){if("undefined"==typeofn)thrownewError("Bootstrap's JavaScript requires jQuery");+function(t){"use strict";vare=t.fn.jquery.split(" ")[0].split(".");if(e[0]<2&&e[1]<9||1==e[0]&&9==e[1]&&e[2]<1||e[0]>2)thrownewError("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 3")}(n),+function(t){"use strict";functione(){vart=document.createElement("bootstrap"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(variine)if(void0!==t.style[i])return{end:e[i]};return!1}t.fn.emulateTransitionEnd=function(e){vari=!1,o=this;t(this).one("bsTransitionEnd",function(){i=!0});varn=function(){i||t(o).trigger(t.support.transition.end)};returnsetTimeout(n,e),this},t(function(){t.support.transition=e(),t.support.transition&&(t.event.special.bsTransitionEnd={bindType:t.support.transition.end,delegateType:t.support.transition.end,handle:function(e){if(t(e.target).is(this))returne.handleObj.handler.apply(this,arguments)}})})}(n),+function(t){"use strict";functione(e){returnthis.each(function(){vari=t(this),n=i.data("bs.alert");n||i.data("bs.alert",n=newo(this)),"string"==typeofe&&n[e].call(i)})}vari='[data-dismiss="alert"]',o=function(e){t(e).on("click",i,this.close)};o.VERSION="3.3.6",o.TRANSITION_DURATION=150,o.prototype.close=function(e){functioni(){a.detach().trigger("closed.bs.alert").remove()}varn=t(this),s=n.attr("data-target");s||(s=n.attr("href"),s=s&&s.replace(/.*(?=#[^\s]*$)/,""));vara=t(s);e&&e.preventDefault(),a.length||(a=n.closest(".alert")),a.trigger(e=t.Event("close.bs.alert")),e.isDefaultPrevented()||(a.removeClass("in"),t.support.transition&&a.hasClass("fade")?a.one("bsTransitionEnd",i).emulateTransitionEnd(o.TRANSITION_DURATION):i())};varn=t.fn.alert;t.fn.alert=e,t.fn.alert.Constructor=o,t.fn.alert.noConflict=function(){returnt.fn.alert=n,this},t(document).on("click.bs.alert.data-api",i,o.prototype.close)}(n),+function(t){"use strict";functione(e){returnthis.each(function(){varo=t(this),n=o.data("bs.button"),s="object"==typeofe&&e;n||o.data("bs.button",n=newi(this,s)),"toggle"==e?n.toggle():e&&n.setState(e)})}vari=function(e,o){this.$element=t(e),this.options=t.extend({},i.DEFAULTS,o),this.isLoading=!1};i.VERSION="3.3.6",i.DEFAULTS={loadingText:"loading..."},i.prototype.setState=function(e){vari="disabled",o=this.$element,n=o.is("input")?"val":"html",s=o.data();e+="Text",null==s.resetText&&o.data("resetText",o[n]()),setTimeout(t.proxy(function(){o[n](null==s[e]?this.options[e]:s[e]),"loadingText"==e?(this.isLoading=!0,o.addClass(i).attr(i,i)):this.isLoading&&(this.isLoading=!1,o.removeClass(i).removeAttr(i))},this),0)},i.prototype.toggle=function(){vart=!0,e=this.$element.closest('[data-toggle="buttons"]');if(e.length){vari=this.$element.find("input");"radio"==i.prop("type")?(i.prop("checked")&&(t=!1),e.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==i.prop("type")&&(i.prop("checked")!==this.$element.hasClass("active")&&(t=!1),this.$element.toggleClass("active")),i.prop("checked",this.$element.hasClass("active")),t&&i.trigger("change")}elsethis.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};varo=t.fn.button;t.fn.button=e,t.fn.button.Constructor=i,t.fn.button.noConflict=function(){returnt.fn.button=o,this},t(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(i){varo=t(i.target);o.hasClass("btn")||(o=o.closest(".btn")),e.call(o,"toggle"),t(i.target).is('input[type="radio"]')||t(i.target).is('input[type="checkbox"]')||i.preventDefault()}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(e){t(e.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(e.type))})}(n),+function(t){"use strict";functione(e){returnthis.each(function(){varo=t(this),n=o.data("bs.car
!function(){vare=Package.meteor.Meteor,o=Package.meteor.global,n=Package.meteor.meteorEnv,i=Package["accounts-base"].Accounts,r=Package.mongo.Mongo,t;(function(){"undefined"==typeoft&&(t={}),t.configurations=newr.Collection("meteor_accounts_loginServiceConfiguration",{_preventAutopublish:!0,connection:e.isClient?i.connection:e.connection}),t.ConfigError=function(o){e.isClient&&!i.loginServicesConfigured()?this.message="Login service configuration not yet loaded":o?this.message="Service "+o+" not configured":this.message="Service not configured"},t.ConfigError.prototype=newError,t.ConfigError.prototype.name="ServiceConfiguration.ConfigError"}).call(this),"undefined"==typeofPackage&&(Package={}),function(e,o){for(varnino)nine||(e[n]=o[n])}(Package["service-configuration"]={},{ServiceConfiguration:t})}();