217 lines
2.3 MiB
JavaScript
217 lines
2.3 MiB
JavaScript
|
|
!function(){var n,t;(function(){n={}}).call(this),function(){(function(){var t=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){return n instanceof A?n:this instanceof A?void(this._wrapped=n):new A(n)};void 0!==n?("undefined"!=typeof module&&module.exports&&(n=module.exports=A),n._=A):t._=A,A.VERSION="1.5.2";var k=function(n){return"[object Arguments]"===f.call(n)};k(arguments)||(k=function(n){return!(!n||!s.call(n,"callee")||"function"!=typeof n.callee)});var O=function(n){return n.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);else if(O(n)){for(var i=0,u=n.length;i<u;i++)if(t.call(r,n[i],i,n)===e)return}else for(var a=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){var e=[];return null==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)};var F="Reduce of empty array with no initial value";A.reduce=A.foldl=A.inject=function(n,t,r,e){var i=arguments.length>2;if(null==n&&(n=[]),v&&n.reduce===v)return e&&(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)throw new TypeError(F);return r},A.reduceRight=A.foldr=function(n,t,r,e){var i=arguments.length>2;if(null==n&&(n=[]),y&&n.reduceRight===y)return e&&(t=A.bind(t,e)),i?n.reduceRight(t,r):n.reduceRight(t);var u=n.length;if(!O(n)){var a=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)throw new TypeError(F);return r},A.find=A.detect=function(n,t,r){var e;return M(n,function(n,i,u){if(t.call(r,n,i,u))return e=n,!0}),e},A.filter=A.select=function(n,t,r){var e=[];return null==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){return A.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);var i=!0;return null==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)))return e}),!!i)};var M=A.some=A.any=function(n,t,r){t||(t=A.identity);var i=!1;return null==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)))return e}),!!i)};A.contains=A.include=function(n,t){return null!=n&&(b&&n.indexOf===b?-1!=n.indexOf(t):M(n,function(n){return n===t}))},A.invoke=function(n,t){var r=o.call(arguments,2),e=A.isFunction(t);return A.map(n,function(n){return(e?t:n[t]).apply(n,r)})},A.pluck=function(n,t){return A.map(n,function(n){return n[t]})},A.where=function(n,t,r){return A.isEmpty(t)?r?void 0:[]:A[r?"find":"filter"](n,function(n){for(var r in t)if(t[r]!==n[r])return!1;return!0})},A.findWhere=function(n,t){return A.where(n,t,!0)},A.max=function(n,t,r){if(!t&&A.isArray(n)&&n[0]===+n[0]&&n.length<65535)return Math.max.apply(Math,n);if(!t&&A.isEmpty(n))return-1/0;var e={computed:-1/0,value:-1/0};return E(n,function(n,i,u){var a=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)return Math.min.apply(Math,n);if(!t&&A.isEmpty(n))return 1/0;var e={computed:1/0,value:1/0};return E(n,function(n,i,u){var a=t?t.call(r,n,i,u):n;a<e.computed&&(e={value:n,computed:a})}),e.value},A.shuffle=function(n){var t,r=0,e=[];return E(n,function(n){t=A.random(r++),e[r-1]=e[t],e[t]=n}),e},A.sample=function(n,t,r){return arguments.length<2||r?n[A.random(n.length-1)]:A.shuffle(n).slice(0,Math.max(0,t))};var R=function(n){return A.isFunction(n)?n:function(t){return t[n]}};A.sortBy=function(n,t,r){var e=R(t);return A.pluck(A.map(n,function(n,t,i){return{value:n,index:t,criteria:e.call(r,n,t,i)}}).sort(function(n,t){var r=n.criteria,e=t.criteria;if(r!==e){if(r>e||void 0===r)return 1;if(r<e||void 0===e)return-1}return n.index-t.index}),"value")};var S=function(n){return
|
||
|
|
|
||
|
|
!function(){var t=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(){function e(t){if(t)return r._debug("Exception in callback of async function",t.stack?t.stack:t)}if(r.isServer)var n=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(var e=1;e<arguments.length;e++){if(!(arguments[e]in t))return;t=t[arguments[e]]}return t},_ensure:function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];n in t||(t[n]={}),t=t[n]}return t},_delete:function(t){for(var e=[t],n=!0,r=1;r<arguments.length-1;r++){if(!((o=arguments[r])in t)){n=!1;break}if("object"!=typeof(t=t[o]))break;e.push(t)}for(var r=e.length-1;r>=0;r--){var o=arguments[r+1];if(n)n=!1;else for(var i in e[r][o])return;delete e[r][o]}},wrapAsync:function(o,i){return function(){for(var s=i||this,a=t.toArray(arguments),u,c=a.length-1;c>=0;--c){var l=a[c],f=typeof l;if("undefined"!==f){"function"===f&&(u=l);break}}if(!u){if(r.isClient)u=e;else{var p=new n;u=p.resolver()}++c}a[c]=r.bindEnvironment(u);var _=o.apply(s,a);return p?p.wait():_}},_inherits:function(e,n){for(var r in n)t.has(n,r)&&(e[r]=n[r]);var o=function(){this.constructor=e};return o.prototype=n.prototype,e.prototype=new o,e.__super__=n.prototype,e}});var o=!1;r._wrapAsync=function(t,e){return o||(r._debug("Meteor._wrapAsync has been renamed to Meteor.wrapAsync"),o=!0),r.wrapAsync.apply(r,arguments)}}.call(this),function(){"use strict";function t(){if(o.setImmediate){var t=function(t){o.setImmediate(t)};return t.implementation="setImmediate",t}return null}function e(){function t(t,e){return"string"==typeof t&&t.substring(0,e.length)===e}function e(e){if(e.source===o&&t(e.data,a)){var n=e.data.substring(a.length);try{s[n]&&s[n]()}finally{delete s[n]}}}if(!o.postMessage||o.importScripts)return null;var n=!0,r=o.onmessage;if(o.onmessage=function(){n=!1},o.postMessage("","*"),o.onmessage=r,!n)return null;var i=0,s={},a="Meteor._setImmediate."+Math.random()+".";o.addEventListener?o.addEventListener("message",e,!1):o.attachEvent("onmessage",e);var u=function(t){s[++i]=t,o.postMessage(a+i,"*")};return u.implementation="postMessage",u}function n(){var t=function(t){o.setTimeout(t,0)};return t.implementation="setTimeout",t}var o=this;r._setImmediate=t()||e()||n()}.call(this),function(){var e=function(t){if(Package.ddp){var e=Package.ddp.DDP._CurrentInvocation;if(e.get()&&e.get().isSimulation)throw new Error("Can't set timers inside simulations");return function(){e.withValue(null,t)}}return t},n=function(t,n){return r.bindEnvironment(e(n),t)};t.extend(r,{setTimeout:function(t,e){return setTimeout(n("setTimeout callback",t),e)},setInterval:function(t,e){return setInterval(n("setInterval callback",t),e)},clearInterval:function(t){return clearInterval(t)},clearTimeout:function(t){return clearTimeout(t)},defer:function(t){r._setImmediate(n("defer callback",t))}})}.call(this),function(){r.makeErrorType=function(t,e){var n=function(){Error.captureStackTrace?Error.captureStackTrace(this,n):this.stack=(new Error).stack,e.apply(this,arguments),this.errorType=t};return r._inherits(n,Error),n},r.Error=r.makeErrorType("Meteor.Error",function(t,e,n){var r=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(){var t=this;return new r.Error(t.error,t.reason,t.details)}}.call(this),function(){r._noYieldsAllowed=function(t){return t()},r._SynchronousQueue=function(){var t=this;t._tasks=[],t._running=!1,t._runTimeout=null},t.extend(r._SynchronousQueue.prototype,{runTask:function(e){var n=this;if(!n.safeToRunTask())throw new Error("Could not synchronousl
|
||
|
|
|
||
|
|
!function(){"undefined"==typeof Package&&(Package={}),Package["meteor-base"]={}}();
|
||
|
|
|
||
|
|
!function(){"undefined"==typeof Package&&(Package={}),Package["mobile-experience"]={}}();
|
||
|
|
|
||
|
|
!function(){"undefined"==typeof Package&&(Package={}),Package["babel-compiler"]={}}();
|
||
|
|
|
||
|
|
!function(){"undefined"==typeof Package&&(Package={}),Package.ecmascript={}}();
|
||
|
|
|
||
|
|
!function(){var r=Package.meteor.Meteor,n=Package.meteor.global,e=Package.meteor.meteorEnv,a;(function(){for(var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n={},e=0;e<r.length;e++)n[r.charAt(e)]=e;(a={}).encode=function(r){if("string"==typeof r){var n=r;r=a.newBinary(n.length);for(var e=0;e<n.length;e++){var l=n.charCodeAt(e);if(l>255)throw new Error("Not ascii. Base64.encode can only take ascii strings.");r[e]=l}}for(var u=[],i=null,o=null,c=null,f=null,e=0;e<r.length;e++)switch(e%3){case 0:i=r[e]>>2&63,o=(3&r[e])<<4;break;case 1:o|=r[e]>>4&15,c=(15&r[e])<<2;break;case 2:c|=r[e]>>6&3,f=63&r[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;break}return null!=i&&(u.push(t(i)),u.push(t(o)),null==c?u.push("="):u.push(t(c)),null==f&&u.push("=")),u.join("")};var t=function(n){return r.charAt(n)},l=function(r){return"="===r?-1:n[r]};a.newBinary=function(r){if("undefined"==typeof Uint8Array||"undefined"==typeof ArrayBuffer){for(var n=[],e=0;e<r;e++)n.push(0);return n.$Uint8ArrayPolyfill=!0,n}return new Uint8Array(new ArrayBuffer(r))},a.decode=function(r){var n=Math.floor(3*r.length/4);"="==r.charAt(r.length-1)&&(n--,"="==r.charAt(r.length-2)&&n--);for(var e=a.newBinary(n),t=null,u=null,i=null,o=0,c=0;c<r.length;c++){var f=r.charAt(c),s=l(f);switch(c%4){case 0:if(s<0)throw new Error("invalid base64 string");t=s<<2;break;case 1:if(s<0)throw new Error("invalid base64 string");t|=s>>4,e[o++]=t,u=(15&s)<<4;break;case 2:s>=0&&(u|=s>>2,e[o++]=u,i=(3&s)<<6);break;case 3:s>=0&&(e[o++]=i|s);break}}return e}}).call(this),"undefined"==typeof Package&&(Package={}),function(r,n){for(var e in n)e in r||(r[e]=n[e])}(Package.base64={},{Base64:a})}();
|
||
|
|
|
||
|
|
!function(){var n=Package.meteor.Meteor,e=Package.meteor.global,t=Package.meteor.meteorEnv,r=Package.underscore._,a=Package.base64.Base64,u,i;(function(){i={};var e={};(u={}).addType=function(n,t){if(r.has(e,n))throw new Error("Type "+n+" already present");e[n]=t};var t=function(n){return r.isNaN(n)||n===1/0||n===-1/0},o=[{matchJSONValue:function(n){return r.has(n,"$date")&&1===r.size(n)},matchObject:function(n){return n instanceof Date},toJSONValue:function(n){return{$date:n.getTime()}},fromJSONValue:function(n){return new Date(n.$date)}},{matchJSONValue:function(n){return r.has(n,"$InfNaN")&&1===r.size(n)},matchObject:t,toJSONValue:function(n){var e;return e=r.isNaN(n)?0:n===1/0?1:-1,{$InfNaN:e}},fromJSONValue:function(n){return n.$InfNaN/0}},{matchJSONValue:function(n){return r.has(n,"$binary")&&1===r.size(n)},matchObject:function(n){return"undefined"!=typeof Uint8Array&&n instanceof Uint8Array||n&&r.has(n,"$Uint8ArrayPolyfill")},toJSONValue:function(n){return{$binary:a.encode(n)}},fromJSONValue:function(n){return a.decode(n.$binary)}},{matchJSONValue:function(n){return r.has(n,"$escape")&&1===r.size(n)},matchObject:function(n){return!(r.isEmpty(n)||r.size(n)>2)&&r.any(o,function(e){return e.matchJSONValue(n)})},toJSONValue:function(n){var e={};return r.each(n,function(n,t){e[t]=u.toJSONValue(n)}),{$escape:e}},fromJSONValue:function(n){var e={};return r.each(n.$escape,function(n,t){e[t]=u.fromJSONValue(n)}),e}},{matchJSONValue:function(n){return r.has(n,"$type")&&r.has(n,"$value")&&2===r.size(n)},matchObject:function(n){return u._isCustomType(n)},toJSONValue:function(e){var t=n._noYieldsAllowed(function(){return e.toJSONValue()});return{$type:e.typeName(),$value:t}},fromJSONValue:function(t){var a=t.$type;if(!r.has(e,a))throw new Error("Custom EJSON type "+a+" is not defined");var u=e[a];return n._noYieldsAllowed(function(){return u(t.$value)})}}];u._isCustomType=function(n){return n&&"function"==typeof n.toJSONValue&&"function"==typeof n.typeName&&r.has(e,n.typeName())},u._getTypes=function(){return e},u._getConverters=function(){return o};var f=u._adjustTypesToJSONValue=function(n){if(null===n)return null;var e=c(n);return void 0!==e?e:"object"!=typeof n?n:(r.each(n,function(e,r){if("object"==typeof e||void 0===e||t(e)){var a=c(e);a?n[r]=a:f(e)}}),n)},c=function(n){for(var e=0;e<o.length;e++){var t=o[e];if(t.matchObject(n))return t.toJSONValue(n)}};u.toJSONValue=function(n){var e=c(n);return void 0!==e?e:("object"==typeof n&&(n=u.clone(n),f(n)),n)};var l=u._adjustTypesFromJSONValue=function(n){if(null===n)return null;var e=s(n);return e!==n?e:"object"!=typeof n?n:(r.each(n,function(e,t){if("object"==typeof e){var r=s(e);if(e!==r)return void(n[t]=r);l(e)}}),n)},s=function(n){if("object"==typeof n&&null!==n&&r.size(n)<=2&&r.all(n,function(n,e){return"string"==typeof e&&"$"===e.substr(0,1)}))for(var e=0;e<o.length;e++){var t=o[e];if(t.matchJSONValue(n))return t.fromJSONValue(n)}return n};u.fromJSONValue=function(n){var e=s(n);return e===n&&"object"==typeof n?(n=u.clone(n),l(n),n):e},u.stringify=function(n,e){var t=u.toJSONValue(n);return e&&(e.canonical||e.indent)?u._canonicalStringify(t,e):JSON.stringify(t)},u.parse=function(n){if("string"!=typeof n)throw new Error("EJSON.parse argument should be a string");return u.fromJSONValue(JSON.parse(n))},u.isBinary=function(n){return!!("undefined"!=typeof Uint8Array&&n instanceof Uint8Array||n&&n.$Uint8ArrayPolyfill)},u.equals=function(n,e,t){var a,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"!=typeof n||"object"!=typeof e)return!1;if(n instanceof Date&&e instanceof Date)return n.valueOf()===e.valueOf();if(u.isBinary(n)&&u.isBinary(e)){if(n.length!==e.length)return!1;for(a=0;a<n.length;a++)if(n[a]!==e[a])return!1;return!0}if("function"==typeof n.equals)return n.equals(e,t);if("function"==typeof e.equals)return e.equals(n,t);if(n instanceof Array){if(!(e instanceof Array))return!1;if(n.length!==e.length)return!1;for(a=0;a<n.length;a++)if(!u.equals(n[a],e[a],t))return!1;return!0}switch(u._isCustomType(n)+u._isC
|
||
|
|
|
||
|
|
!function(){var i=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,a=Package.underscore._,e=Package.ejson.EJSON,r;(function(){r=function(i,t){var n=this;n._map={},n._idStringify=i||JSON.stringify,n._idParse=t||JSON.parse},a.extend(r.prototype,{get:function(i){var t=this,n=t._idStringify(i);return t._map[n]},set:function(i,t){var n=this,a=n._idStringify(i);n._map[a]=t},remove:function(i){var t=this,n=t._idStringify(i);delete t._map[n]},has:function(i){var t=this,n=t._idStringify(i);return a.has(t._map,n)},empty:function(){var i=this;return a.isEmpty(i._map)},clear:function(){this._map={}},forEach:function(i){for(var t=this,n=a.keys(t._map),e=0;e<n.length;e++)if(!1===i.call(null,t._map[n[e]],t._idParse(n[e])))return},size:function(){var i=this;return a.size(i._map)},setDefault:function(i,t){var n=this,e=n._idStringify(i);return a.has(n._map,e)?n._map[e]:(n._map[e]=t,t)},clone:function(){var i=this,t=new r(i._idStringify,i._idParse);return i.forEach(function(i,n){t.set(n,e.clone(i))}),t}})}).call(this),"undefined"==typeof Package&&(Package={}),function(i,t){for(var n in t)n in i||(i[n]=t[n])}(Package["id-map"]={},{IdMap:r})}();
|
||
|
|
|
||
|
|
!function(){var t=Package.meteor.Meteor,e=Package.meteor.global,r=Package.meteor.meteorEnv,n=Package.underscore._,i;(function(){var t=function(t,e,r,n){return{key:t,value:e,next:r,prev:n}};i=function(){var t=this;t._dict={},t._first=null,t._last=null,t._size=0;var e=n.toArray(arguments);t._stringify=function(t){return t},"function"==typeof e[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(){return!this._first},size:function(){return this._size},_linkEltIn:function(t){var e=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){var e=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){var i=this;if(i._dict[i._k(e)])throw new Error("Item "+e+" already present in OrderedDict");var o=n?t(e,r,i._dict[i._k(n)]):t(e,r,null);if(void 0===o.next)throw new Error("could not find item to put this one before");i._linkEltIn(o),i._dict[i._k(e)]=o,i._size++},append:function(t,e){this.putBefore(t,e,null)},remove:function(t){var e=this,r=e._dict[e._k(t)];if(void 0===r)throw new Error("Item "+t+" not present in OrderedDict");return e._linkEltOut(r),e._size--,delete e._dict[e._k(t)],r.value},get:function(t){var e=this;if(e.has(t))return e._dict[e._k(t)].value},has:function(t){var e=this;return n.has(e._dict,e._k(t))},forEach:function(t){for(var e=0,r=this._first;null!==r;){if(t(r.value,r.key,e)===i.BREAK)return;r=r.next,e++}},first:function(){var t=this;if(!t.empty())return t._first.key},firstValue:function(){var t=this;if(!t.empty())return t._first.value},last:function(){var t=this;if(!t.empty())return t._last.key},lastValue:function(){var t=this;if(!t.empty())return t._last.value},prev:function(t){var e=this;if(e.has(t)){var r=e._dict[e._k(t)];if(r.prev)return r.prev.key}return null},next:function(t){var e=this;if(e.has(t)){var r=e._dict[e._k(t)];if(r.next)return r.next.key}return null},moveBefore:function(t,e){var r=this,n=r._dict[r._k(t)],i=e?r._dict[r._k(e)]:null;if(void 0===n)throw new Error("Item to move is not present");if(void 0===i)throw new Error("Could not find element to move this one before");i!==n.next&&(r._linkEltOut(n),n.next=i,r._linkEltIn(n))},indexOf:function(t){var e=this,r=null;return e.forEach(function(n,o,f){if(e._k(o)===e._k(t))return r=f,i.BREAK}),r},_checkRep:function(){var t=this;n.each(t._dict,function(t,e){if(e.next===e)throw new Error("Next is a loop");if(e.prev===e)throw new Error("Prev is a loop")})}}),i.BREAK={break:!0}}).call(this),"undefined"==typeof Package&&(Package={}),function(t,e){for(var r in e)r in t||(t[r]=e[r])}(Package["ordered-dict"]={},{OrderedDict:i})}();
|
||
|
|
|
||
|
|
!function(){var n=Package.meteor.Meteor,t=Package.meteor.global,o=Package.meteor.meteorEnv,e,r;(function(){(e={}).active=!1,e.currentComputation=null;var t=function(n){e.currentComputation=n,e.active=!!n},o=function(){return void 0!==n?n._debug:"undefined"!=typeof console&&console.error?function(){console.error.apply(console,arguments)}:function(){}},r=function(t){void 0!==n&&n._suppressed_log_expected()&&n._suppress_log(t-1)},i=function(n,t){if(l)throw t;var e=["Exception from Tracker "+n+" function:"];if(t.stack&&t.message&&t.name){var i=t.stack.indexOf(t.message);if(i<0||i>t.name.length+2){var a=t.name+": "+t.message;e.push(a)}}e.push(t.stack),r(e.length);for(var u=0;u<e.length;u++)o()(e[u])},a=function(t){return void 0===n||n.isClient?t:function(){var o=arguments;n._noYieldsAllowed(function(){t.apply(null,o)})}},u=1,c=[],s=!1,p=!1,f=!1,l=!1,d=[],h=function(){s||(void 0!==n?n._setImmediate(e._runFlush):setTimeout(e._runFlush,0),s=!0)},v=!1;e.Computation=function(n,t,o){if(!v)throw new Error("Tracker.Computation constructor is private; use Tracker.autorun");v=!1;var e=this;e.stopped=!1,e.invalidated=!1,e.firstRun=!0,e._id=u++,e._onInvalidateCallbacks=[],e._onStopCallbacks=[],e._parent=t,e._func=n,e._onError=o,e._recomputing=!1;var r=!0;try{e._compute(),r=!1}finally{e.firstRun=!1,r&&e.stop()}},e.Computation.prototype.onInvalidate=function(n){var t=this;if("function"!=typeof n)throw new Error("onInvalidate requires a function");t.invalidated?e.nonreactive(function(){a(n)(t)}):t._onInvalidateCallbacks.push(n)},e.Computation.prototype.onStop=function(n){var t=this;if("function"!=typeof n)throw new Error("onStop requires a function");t.stopped?e.nonreactive(function(){a(n)(t)}):t._onStopCallbacks.push(n)},e.Computation.prototype.invalidate=function(){var n=this;if(!n.invalidated){n._recomputing||n.stopped||(h(),c.push(this)),n.invalidated=!0;for(var t=0,o;o=n._onInvalidateCallbacks[t];t++)e.nonreactive(function(){a(o)(n)});n._onInvalidateCallbacks=[]}},e.Computation.prototype.stop=function(){var n=this;if(!n.stopped){n.stopped=!0,n.invalidate();for(var t=0,o;o=n._onStopCallbacks[t];t++)e.nonreactive(function(){a(o)(n)});n._onStopCallbacks=[]}},e.Computation.prototype._compute=function(){var n=this;n.invalidated=!1;var o=e.currentComputation;t(n);var r=f;f=!0;try{a(n._func)(n)}finally{t(o),f=r}},e.Computation.prototype._needsRecompute=function(){var n=this;return n.invalidated&&!n.stopped},e.Computation.prototype._recompute=function(){var n=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}},e.Computation.prototype.flush=function(){var n=this;n._recomputing||n._recompute()},e.Computation.prototype.run=function(){var n=this;n.invalidate(),n.flush()},e.Dependency=function(){this._dependentsById={}},e.Dependency.prototype.depend=function(n){if(!n){if(!e.active)return!1;n=e.currentComputation}var t=this,o=n._id;return!(o in t._dependentsById)&&(t._dependentsById[o]=n,n.onInvalidate(function(){delete t._dependentsById[o]}),!0)},e.Dependency.prototype.changed=function(){var n=this;for(var t in n._dependentsById)n._dependentsById[t].invalidate()},e.Dependency.prototype.hasDependents=function(){var n=this;for(var t in n._dependentsById)return!0;return!1},e.flush=function(n){e._runFlush({finishSynchronously:!0,throwFirstError:n&&n._throwFirstError})},e.inFlush=function(){return p},e._runFlush=function(n){if(e.inFlush())throw new Error("Can't call Tracker.flush while flushing");if(f)throw new Error("Can't flush inside Tracker.autorun");p=!0,s=!0,l=!!(n=n||{}).throwFirstError;var t=0,o=!1;try{for(;c.length||d.length;){for(;c.length;){var r=c.shift();if(r._recompute(),r._needsRecompute()&&c.unshift(r),!n.finishSynchronously&&++t>1e3)return void(o=!0)}if(d.length){var a=d.shift();try{a()}catch(n){i("afterFlush",n)}}}o=!0}finally{if(o||(p=!1,e._runFlush({finishSynchronously:n.finishSynchronously,throwFirstError:!1})),s=!1,p=!1,c.length||d.length){if(n.finishSynchronously)throw new Error("still have more to do?");setTimeout(h,10)}}},e.autorun=fu
|
||
|
|
|
||
|
|
!function(){var n=Package.meteor.Meteor,e=Package.meteor.global,r=Package.meteor.meteorEnv,t,o,i;t=function(n){"use strict";function e(n,e){return o(n)&&(p(A,n,e),i(k)&&k(B)),B}function r(n){this.id=n,this.children=[],this.childrenById={}}function t(n,e){return O.call(n,e)&&n[e]}function o(n){return"object"==typeof n&&null!==n}function i(n){return"function"==typeof n}function u(n){return"string"==typeof n}function c(n){return new Error("Cannot find module '"+n+"'")}function s(n){function e(e){var r=w(n,e);if(r)return l(r,n.module);var t=c(e);if(i(E))return E(e,n.module.id,t);throw t}return i(x)&&(e=x(e,n.module)),e.extensions=h(n).slice(0),e.resolve=function(e){var r=w(n,e);if(r)return r.module.id;var t=c(e);if(E&&i(E.resolve))return E.resolve(e,n.module.id,t);throw t},e}function f(n,e){var t=this;t.parent=e=e||null,t.module=new r(n),q[n]=t,t.contents=null,t.deps={}}function l(n,e){var r=n.module;if(!O.call(r,"exports")){var t=n.contents;if(!t){if(n.stub)return n.stub;throw c(r.id)}if(e){r.parent=e;var o=e.children;Array.isArray(o)&&o.push(r)}i(r.useNode)&&r.useNode()||t(r.require=r.require||s(n),r.exports=n.stub||{},r,n.module.id,n.parent.module.id),r.loaded=!0}var u=r.runSetters||r.runModuleSetters;return i(u)&&u.call(r),r.exports}function a(n){return n&&o(n.contents)}function d(n){return n&&null===n.contents}function p(n,e,r){Array.isArray(e)?(e.forEach(function(r){u(r)?n.deps[r]=n.module.id:i(r)?e=r:o(r)&&(n.stub=n.stub||{},v(r,function(e,r){n.stub[r]=e}))}),i(e)||(e=null)):i(e)||u(e)||o(e)||(e=null),e&&(n.contents=n.contents||(o(e)?{}:e),o(e)&&a(n)&&v(e,function(e,o){if(".."===o)i=n.parent;else{var i=t(n.contents,o);i||((i=n.contents[o]=new f(n.module.id.replace(/\/*$/,"/")+o,n)).options=r)}p(i,e,r)}))}function v(n,e,r){Object.keys(n).forEach(function(r){e.call(this,n[r],r)},r)}function h(n){return n.options&&n.options.extensions||P}function m(n,e,r){for(;n&&!a(n);)n=n.parent;if(!n||!e||"."===e)return n;if(".."===e)return n.parent;var o=t(n.contents,e);if(r&&(!o||a(o)))for(var i=0;i<r.length;++i){var u=t(n.contents,e+r[i]);if(u&&!a(u))return u}return o}function y(n,e,r){var t=e.split("/");return t.every(function(e,o){return n=o<t.length-1?m(n,e):m(n,e,r)}),n}function b(n,e){var r=e&&e.module;n&&r&&(n.childrenById[r.id]=r)}function w(n,e,r,t){var r=r||n.module,o=h(n);for(n="/"===e.charAt(0)?y(A,e,o):"."===e.charAt(0)?y(n,e,o):g(n,e,o);a(n);){if((t=t||[]).indexOf(n)<0){t.push(n);var i=m(n,"package.json"),c,s=i&&l(i,r);if(s&&I.some(function(n){return u(c=s[n])})&&(b(r,i),n=y(n,c,o)||w(n,c,r,t)))continue}n=m(n,"index.js")}return n&&u(n.contents)&&(n=w(n,n.contents,r,t)),b(r,n),n}function g(n,e,r){if(i(j)&&(e=j(e,n.module.id)),u(e)){for(var t;n&&!t;n=n.parent)t=a(n)&&y(n,"node_modules/"+e,r);return t}}var P=(n=n||{}).extensions||[".js",".json"],k=n.onInstall,x=n.wrapRequire,j=n.override,E=n.fallback,I=n.mainFields||(n.browser?["browser","main"]:["main"]),O={}.hasOwnProperty,q={},A=new f("/",new f("/..")),B=s(A);e.fetch=function(n){throw new Error("fetch not implemented")},r.prototype.resolve=function(n){return this.require.resolve(n)};var M,R;return r.prototype.prefetch=function(n){function r(n){var e=t(q,n.id);d(e)&&!e.pending&&(e.pending=!0,(u=u||{})[n.id]={module:e.module,deps:Object.keys(e.deps),options:e.options,stub:e.stub},v(e.deps,function(n,r){w(e,r)}),v(n.childrenById,r))}var o=this,i=t(q,o.id),u;M=M||Promise.resolve();var c=R=R||M;return R=M.then(function(){var t=o.resolve(n);return v(o.childrenById,r),Promise.resolve(u&&e.fetch(u)).then(function(n){function r(){return n&&e(n),t}return c.then(r,r)})})},e.Module=r,e},"object"==typeof exports&&(exports.makeInstaller=t),function(){o={},"function"==typeof Profile&&process.env.METEOR_PROFILE&&(o.wrapRequire=function(n){return Profile(function(n){return"require("+JSON.stringify(n)+")"},n)})}.call(this),function(){o.browser=!0,i=t(o)}.call(this),"undefined"==typeof Package&&(Package={}),function(n,e){for(var r in e)r in n||(n[r]=e[r])}(Package["modules-runtime"]={},{meteorInstall:i})}();
|
||
|
|
|
||
|
|
!function(){var e=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,r=Package["modules-runtime"].meteorInstall,o,i=r({node_modules:{meteor:{modules:{"client.js":function(e,t){e("./install-packages.js"),e("./stubs.js"),e("./process.js"),e("./reify.js"),t.addStyles=e("./css").addStyles},"css.js":function(e,t){var n=document,r=n.getElementsByTagName("head").item(0);t.addStyles=function(e){var t=n.createElement("style");t.setAttribute("type","text/css");var o=t.sheet||t.styleSheet;return o?o.cssText=e:t.appendChild(n.createTextNode(e)),r.appendChild(t)}},"install-packages.js":function(e,t,n){function o(e,t){var n={};n[e+".js"]="string"==typeof t?t:function(t,n,r){r.exports=Package[e]},r({node_modules:{meteor:n}})}o("underscore"),o("meteor"),o("meteor-base"),o("mobile-experience"),o("babel-compiler"),o("ecmascript"),o("base64"),o("ejson"),o("id-map"),o("ordered-dict"),o("tracker"),o("modules-runtime"),o("modules","meteor/modules/client.js"),o("ecmascript-runtime"),o("es5-shim","meteor/es5-shim/client.js"),o("promise","meteor/promise/client.js"),o("babel-runtime","meteor/babel-runtime/babel-runtime.js"),o("ecmascript-runtime-client","meteor/ecmascript-runtime-client/runtime.js"),o("random"),o("mongo-id"),o("diff-sequence"),o("geojson-utils","meteor/geojson-utils/main.js"),o("minimongo"),o("check","meteor/check/match.js"),o("retry"),o("ddp-common"),o("reload"),o("ddp-client","meteor/ddp-client/namespace.js"),o("ddp"),o("ddp-server"),o("allow-deny"),o("mongo"),o("blaze-html-templates"),o("reactive-var"),o("jquery","meteor/jquery/main.js"),o("standard-minifier-css"),o("standard-minifier-js"),o("shell-server"),o("ohif:polyfill"),o("standard-app-packages"),o("stylus"),o("observe-sequence"),o("deps"),o("htmljs"),o("blaze"),o("spacebars"),o("templating-compiler"),o("templating-runtime"),o("templating"),o("ui"),o("iron:core"),o("iron:dynamic-template"),o("iron:layout"),o("iron:url"),o("iron:middleware-stack"),o("iron:location"),o("reactive-dict"),o("iron:controller"),o("iron:router"),o("natestrauser:select2"),o("aldeed:simple-schema"),o("autoupdate"),o("meteor-platform"),o("webapp"),o("logging"),o("session"),o("livedata"),o("launch-screen"),o("ohif:core","meteor/ohif:core/main.js"),o("ohif:header","meteor/ohif:header/main.js"),o("ohif:themes-common"),o("ohif:themes"),o("ohif:design"),o("ohif:cornerstone","meteor/ohif:cornerstone/main.js"),o("url"),o("http"),o("momentjs:moment"),o("validatejs"),o("amplify"),o("ddp-rate-limiter"),o("localstorage"),o("callback-hook"),o("accounts-base","meteor/accounts-base/client_main.js"),o("u2622:persistent-session"),o("ohif:log"),o("ohif:viewerbase","meteor/ohif:viewerbase/main.js"),o("ohif:metadata","meteor/ohif:metadata/main.js"),o("silentcicero:jszip"),o("raix:eventemitter"),o("aldeed:collection2-core"),o("aldeed:schema-index"),o("aldeed:schema-deny"),o("aldeed:collection2"),o("gilbertwat:bootstrap3-daterangepicker"),o("ohif:dicom-services"),o("ohif:wadoproxy"),o("ohif:study-list"),o("ohif:hanging-protocols"),o("aldeed:template-extension"),o("twbs:bootstrap"),o("fortawesome:fontawesome"),o("mrt:moment"),o("dynamic-import","meteor/dynamic-import/client.js"),o("hot-code-push"),o("mdg:validation-error"),o("service-configuration")},"process.js":function(i,a,s){try{o=t.process||i("process")}catch(e){o={}}e.isServer?r({node_modules:{"process.js":function(e,t,n){n.exports=o}}}):(o.platform="browser",o.nextTick=o.nextTick||e._setImmediate),"object"!=typeof o.env&&(o.env={});var u=Object.prototype.hasOwnProperty;for(var c in n)u.call(n,c)&&(o.env[c]=n[c])},"reify.js":function(e,t,n){var r=n.constructor.prototype;e("reify/lib/runtime").enable(r),r.importSync=r.importSync||r.import,r.import=r.import||r.importSync},"stubs.js":function(e){var t=!1;try{e.resolve("meteor-node-stubs"),t=!0}catch(e){}t&&e("meteor-node-stubs")},node_modules:{reify:{lib:{runtime:{"index.js":function(e,t,n){"use strict";function r(e,t,n){c.setESModule(this.exports),l.getOrCreate(this.exports,this),c.isObject(t)&&l.getOrCreate(e).addSetters(this,t,n)}function o(e,t,n){return this.watch(this.require(e),t,n)}funct
|
||
|
|
|
||
|
|
!function(){"undefined"==typeof Package&&(Package={}),Package["ecmascript-runtime"]={}}();
|
||
|
|
|
||
|
|
!function(){var t=Package.meteor.Meteor,e=Package.meteor.global,r=Package.meteor.meteorEnv,n=Package.modules.meteorInstall,o=Package.modules.process,i,a,c,u,l=n({node_modules:{meteor:{"es5-shim":{"client.js":function(t){t("./import_globals.js"),t("es5-shim/es5-shim.js"),t("es5-shim/es5-sham.js"),t("./console.js"),t("./export_globals.js")},"console.js":function(){function t(t){var e=console[t];e&&"object"==typeof e&&(console[t]=function(){return Function.prototype.apply.call(e,console,arguments)})}var e=Object.prototype.hasOwnProperty;if("object"==typeof console&&"object"==typeof console.log)for(var r in console)e.call(console,r)&&t(r)},"export_globals.js":function(){e.Date!==i&&(e.Date=i),e.parseInt!==a&&(e.parseInt=a),e.parseFloat!==c&&(e.parseFloat=c);var t=String.prototype;t.replace!==u&&(t.replace=u)},"import_globals.js":function(){i=e.Date,a=e.parseInt,c=e.parseFloat,u=String.prototype.replace},node_modules:{"es5-shim":{"es5-shim.js":function(t,e,r){!function(t,n){"use strict";"function"==typeof define&&define.amd?define(n):"object"==typeof e?r.exports=n():t.returnExports=n()}(this,function(){var t=Array,e=t.prototype,r=Object,n=r.prototype,o=Function,u=o.prototype,l=String,s=l.prototype,f=Number,p=f.prototype,h=e.slice,y=e.splice,d=e.push,b=e.unshift,g=e.concat,v=e.join,w=u.call,j=u.apply,O=Math.max,m=Math.min,T=n.toString,E="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,x,S=Function.prototype.toString,_=/^\s*class /,P=function t(e){try{var r=S.call(e).replace(/\/\/.*\n/g,"").replace(/\/\*[.\s\S]*\*\//g,"").replace(/\n/gm," ").replace(/ {2}/g," ");return _.test(r)}catch(t){return!1}},M=function t(e){try{return!P(e)&&(S.call(e),!0)}catch(t){return!1}},I="[object Function]",D="[object GeneratorFunction]",x=function t(e){if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if(E)return M(e);if(P(e))return!1;var r=T.call(e);return r===I||r===D},k,F=RegExp.prototype.exec,U=function t(e){try{return F.call(e),!0}catch(t){return!1}},N="[object RegExp]";k=function t(e){return"object"==typeof e&&(E?U(e):T.call(e)===N)};var C,A=String.prototype.valueOf,R=function t(e){try{return A.call(e),!0}catch(t){return!1}},$="[object String]";C=function t(e){return"string"==typeof e||"object"==typeof e&&(E?R(e):T.call(e)===$)};var z=r.defineProperty&&function(){try{var t={};r.defineProperty(t,"x",{enumerable:!1,value:t});for(var e in t)return!1;return t.x===t}catch(t){return!1}}(),J=function(t){var e;return e=z?function(t,e,n,o){!o&&e in t||r.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:!0,value:n})}:function(t,e,r,n){!n&&e in t||(t[e]=r)},function r(n,o,i){for(var a in o)t.call(o,a)&&e(n,a,o[a],i)}}(n.hasOwnProperty),G=function t(e){var r=typeof e;return null===e||"object"!==r&&"function"!==r},Z=f.isNaN||function t(e){return e!==e},Y={ToInteger:function t(e){var r=+e;return Z(r)?r=0:0!==r&&r!==1/0&&r!==-1/0&&(r=(r>0||-1)*Math.floor(Math.abs(r))),r},ToPrimitive:function t(e){var r,n,o;if(G(e))return e;if(n=e.valueOf,x(n)&&(r=n.call(e),G(r)))return r;if(o=e.toString,x(o)&&(r=o.call(e),G(r)))return r;throw new TypeError},ToObject:function(t){if(null==t)throw new TypeError("can't convert "+t+" to object");return r(t)},ToUint32:function t(e){return e>>>0}},W=function t(){};J(u,{bind:function t(e){var n=this;if(!x(n))throw new TypeError("Function.prototype.bind called on incompatible "+n);for(var i=h.call(arguments,1),a,c=function(){if(this instanceof a){var t=j.call(n,this,g.call(i,h.call(arguments)));return r(t)===t?t:this}return j.call(n,e,g.call(i,h.call(arguments)))},u=O(0,n.length-i.length),l=[],s=0;s<u;s++)d.call(l,"$"+s);return a=o("binder","return function ("+v.call(l,",")+"){ return binder.apply(this, arguments); }")(c),n.prototype&&(W.prototype=n.prototype,a.prototype=new W,W.prototype=null),a}});var X=w.bind(n.hasOwnProperty),B=w.bind(n.toString),H=w.bind(h),L=j.bind(h),q=w.bind(s.slice),K=w.bind(s.split),Q=w.bind(s.indexOf),V=w.bind(d),tt=w.bind(n.propertyIsEnumerable),et=w.bind(e.sort),rt=t.isArray||function t(e){return"[object Array]"===B(e)},nt=1!==[].unshift(0);J(e,{unshift:functio
|
||
|
|
|
||
|
|
!function(){var n=Package.meteor.Meteor,t=Package.meteor.global,e=Package.meteor.meteorEnv,o=Package.modules.meteorInstall,i=Package.modules.process,r,u=o({node_modules:{meteor:{promise:{"client.js":function(n,t){n("meteor-promise").makeCompatible(t.Promise=n("./common.js").Promise)},"common.js":function(t,e){var o=this;"function"==typeof o.Promise?e.Promise=o.Promise:e.Promise=t("promise/lib/es6-extensions"),e.Promise.prototype.done=function(t,e){var o=this;arguments.length>0&&(o=this.then.apply(this,arguments)),o.then(null,function(t){n._setImmediate(function(){throw t})})}},node_modules:{"meteor-promise":{"package.json":function(n,t){t.name="meteor-promise",t.version="0.8.4",t.browser="promise_client.js",t.main="promise_server.js"},"promise_client.js":function(t,e){function o(n){throw n}e.makeCompatible=function(t){var e=t.prototype.then;t.prototype.then=function(t,i){return"object"==typeof n&&"function"==typeof n.bindEnvironment?e.call(this,t&&n.bindEnvironment(t,o),i&&n.bindEnvironment(i,o)):e.call(this,t,i)}}}},promise:{lib:{"es6-extensions.js":function(n,t,e){"use strict";function o(n){var t=new i(i._61);return t._81=1,t._65=n,t}var i=n("./core.js");e.exports=i;var r=o(!0),u=o(!1),c=o(null),f=o(void 0),s=o(0),a=o("");i.resolve=function(n){if(n instanceof i)return n;if(null===n)return c;if(void 0===n)return f;if(!0===n)return r;if(!1===n)return u;if(0===n)return s;if(""===n)return a;if("object"==typeof n||"function"==typeof n)try{var t=n.then;if("function"==typeof t)return new i(t.bind(n))}catch(n){return new i(function(t,e){e(n)})}return o(n)},i.all=function(n){var t=Array.prototype.slice.call(n);return new i(function(n,e){function o(u,c){if(c&&("object"==typeof c||"function"==typeof c)){if(c instanceof i&&c.then===i.prototype.then){for(;3===c._81;)c=c._65;return 1===c._81?o(u,c._65):(2===c._81&&e(c._65),void c.then(function(n){o(u,n)},e))}var f=c.then;if("function"==typeof f)return void new i(f.bind(c)).then(function(n){o(u,n)},e)}t[u]=c,0==--r&&n(t)}if(0===t.length)return n([]);for(var r=t.length,u=0;u<t.length;u++)o(u,t[u])})},i.reject=function(n){return new i(function(t,e){e(n)})},i.race=function(n){return new i(function(t,e){n.forEach(function(n){i.resolve(n).then(t,e)})})},i.prototype.catch=function(n){return this.then(null,n)}},"core.js":function(n,t,e){"use strict";function o(){}function i(n){try{return n.then}catch(n){return d=n,y}}function r(n,t){try{return n(t)}catch(n){return d=n,y}}function u(n,t,e){try{n(t,e)}catch(n){return d=n,y}}function c(n){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof n)throw new TypeError("not a function");this._45=0,this._81=0,this._65=null,this._54=null,n!==o&&_(n,this)}function f(n,t,e){return new n.constructor(function(i,r){var u=new c(o);u.then(i,r),s(n,new h(t,e,u))})}function s(n,t){for(;3===n._81;)n=n._65;if(c._10&&c._10(n),0===n._81)return 0===n._45?(n._45=1,void(n._54=t)):1===n._45?(n._45=2,void(n._54=[n._54,t])):void n._54.push(t);a(n,t)}function a(n,t){v(function(){var e=1===n._81?t.onFulfilled:t.onRejected;if(null!==e){var o=r(e,n._65);o===y?m(t.promise,d):l(t.promise,o)}else 1===n._81?l(t.promise,n._65):m(t.promise,n._65)})}function l(n,t){if(t===n)return m(n,new TypeError("A promise cannot be resolved with itself."));if(t&&("object"==typeof t||"function"==typeof t)){var e=i(t);if(e===y)return m(n,d);if(e===n.then&&t instanceof c)return n._81=3,n._65=t,void p(n);if("function"==typeof e)return void _(e.bind(t),n)}n._81=1,n._65=t,p(n)}function m(n,t){n._81=2,n._65=t,c._97&&c._97(n,t),p(n)}function p(n){if(1===n._45&&(s(n,n._54),n._54=null),2===n._45){for(var t=0;t<n._54.length;t++)s(n,n._54[t]);n._54=null}}function h(n,t,e){this.onFulfilled="function"==typeof n?n:null,this.onRejected="function"==typeof t?t:null,this.promise=e}function _(n,t){var e=!1,o=u(n,function(n){e||(e=!0,l(t,n))},function(n){e||(e=!0,m(t,n))});e||o!==y||(e=!0,m(t,d))}var v=n("asap/raw"),d=null,y={};e.exports=c,c._10=null,c._97=null,c._61=o,c.prototype.then=function(n,t){if(this.constructor!==c)return f(this,n,t);var e=new c(o);retu
|
||
|
|
|
||
|
|
!function(){var e=Package.meteor.Meteor,n=Package.meteor.global,r=Package.meteor.meteorEnv,t=Package.modules.meteorInstall,o=Package.modules.process,a=Package.promise.Promise,i,l=t({node_modules:{meteor:{"babel-runtime":{"babel-runtime.js":function(e,n){n.meteorBabelHelpers=e("meteor-babel-helpers"),n.checkHelper=function e(n){return!1};try{var r=e("babel-runtime/regenerator")}catch(e){throw new Error(["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(r&&"function"==typeof a&&"function"==typeof a.asyncApply){var t=r.async;r.async=function(){return a.asyncApply(t,r,arguments)}}},node_modules:{"meteor-babel-helpers":{"package.json":function(e,n){n.name="meteor-babel-helpers",n.version="0.0.3",n.main="index.js"},"index.js":function(e,n,r){function t(){var e={},n="t";try{Object.defineProperty(e,"t",{enumerable:!1,value:e});for(var r in e)if("t"===r)return!1}catch(e){return!1}return e.t===e}function o(e){return e}function a(e){if(Array.isArray(e)){for(var n={},r=Object.keys(e),t=r.length,o=0;o<t;++o){var a=r[o];n[a]=e[a]}return n}return e}i=r.exports={sanitizeForInObject:t()?o:a,_sanitizeForInObjectHard:a}}}}}}}},{extensions:[".js",".json"]})("./node_modules/meteor/babel-runtime/babel-runtime.js");"undefined"==typeof Package&&(Package={}),function(e,n){for(var r in n)r in e||(e[r]=n[r])}(Package["babel-runtime"]=l,{meteorBabelHelpers:i})}();
|
||
|
|
|
||
|
|
!function(){var e=Package.meteor.Meteor,s=Package.meteor.global,o=Package.meteor.meteorEnv,r=Package.modules.meteorInstall,n=Package.modules.process,c=Package.promise.Promise,t,m,a,u=r({node_modules:{meteor:{"ecmascript-runtime-client":{"runtime.js":function(e,s,o){try{e("core-js/modules/es6.symbol"),e("core-js/modules/es6.map"),e("core-js/modules/es6.set");var r=function(){try{return e("core-js/modules/_core")}catch(s){return e("core-js/modules/$.core")}}()}catch(e){throw new Error(["The core-js npm package could not be found in your node_modules ","directory. Please run the following command to install it:",""," meteor npm install --save core-js",""].join("\n"))}t=s.Symbol=r.Symbol,m=s.Map=r.Map,a=s.Set=r.Set,e("core-js/es6/array"),e("core-js/es6/function"),e("core-js/es6/math"),e("core-js/es6/object"),e("core-js/es6/string"),e("core-js/es6/weak-map"),e("core-js/es6/weak-set"),e("core-js/es7/array"),e("core-js/es7/object"),e("core-js/modules/es6.number.epsilon"),e("core-js/modules/es6.number.is-finite"),e("core-js/modules/es6.number.is-integer"),e("core-js/modules/es6.number.is-nan"),e("core-js/modules/es6.number.is-safe-integer"),e("core-js/modules/es6.number.max-safe-integer"),e("core-js/modules/es6.number.min-safe-integer"),e("core-js/modules/es6.number.parse-float"),e("core-js/modules/es6.number.parse-int"),e("core-js/modules/es6.typed.uint8-array"),e("core-js/modules/es6.typed.uint32-array")}}}}},{extensions:[".js",".json"]})("./node_modules/meteor/ecmascript-runtime-client/runtime.js");"undefined"==typeof Package&&(Package={}),function(e,s){for(var o in s)o in e||(e[o]=s[o])}(Package["ecmascript-runtime-client"]=u,{Symbol:t,Map:m,Set:a})}();
|
||
|
|
|
||
|
|
!function(){var e=Package.meteor.Meteor,n=Package.meteor.global,t=Package.meteor.meteorEnv,r=Package.underscore._,o=Package.modules.meteorInstall,i=Package.modules.process,a=Package["babel-runtime"].meteorBabelHelpers,d=Package.promise.Promise,c=Package["ecmascript-runtime-client"].Symbol,u=Package["ecmascript-runtime-client"].Map,s=Package["ecmascript-runtime-client"].Set,p,m=o({node_modules:{meteor:{random:{"random.js":function(n){function t(){return new d(d.Type.ALEA,{seeds:[new Date,c,u,s,Math.random()]})}if(e.isServer)var r=Npm.require("crypto");var o=function(){function e(){var e=4022871197,n=function(n){n=n.toString();for(var t=0;t<n.length;t++){var r=.02519603282416938*(e+=n.charCodeAt(t));r-=e=r>>>0,e=(r*=e)>>>0,e+=4294967296*(r-=e)}return 2.3283064365386963e-10*(e>>>0)};return n.version="Mash 0.9",n}return function(n){var t=0,r=0,o=0,i=1;0==n.length&&(n=[+new Date]);var a=e();t=a(" "),r=a(" "),o=a(" ");for(var d=0;d<n.length;d++)(t-=a(n[d]))<0&&(t+=1),(r-=a(n[d]))<0&&(r+=1),(o-=a(n[d]))<0&&(o+=1);a=null;var c=function(){var e=2091639*t+2.3283064365386963e-10*i;return t=r,r=o,o=e-(i=0|e)};return c.uint32=function(){return 4294967296*c()},c.fract53=function(){return c()+1.1102230246251565e-16*(2097152*c()|0)},c.version="Alea 0.9",c.args=n,c}(Array.prototype.slice.call(arguments))},i="23456789ABCDEFGHJKLMNPQRSTWXYZabcdefghijkmnopqrstuvwxyz",a="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_",d=function(e,n){var t=this;if(t.type=e,!d.Type[e])throw new Error("Unknown random generator type: "+e);if(e===d.Type.ALEA){if(!n.seeds)throw new Error("No seeds were provided for Alea PRNG");t.alea=o.apply(null,n.seeds)}};d.Type={NODE_CRYPTO:"NODE_CRYPTO",BROWSER_CRYPTO:"BROWSER_CRYPTO",ALEA:"ALEA"},d.prototype.fraction=function(){var e=this;if(e.type===d.Type.ALEA)return e.alea();if(e.type===d.Type.NODE_CRYPTO)return 2.3283064365386963e-10*parseInt(e.hexString(8),16);if(e.type===d.Type.BROWSER_CRYPTO){var n=new Uint32Array(1);return window.crypto.getRandomValues(n),2.3283064365386963e-10*n[0]}throw new Error("Unknown random generator type: "+e.type)},d.prototype.hexString=function(e){if(this.type===d.Type.NODE_CRYPTO){var n=Math.ceil(e/2),t;try{t=r.randomBytes(n)}catch(e){t=r.pseudoRandomBytes(n)}return t.toString("hex").substring(0,e)}return this._randomString(e,"0123456789abcdef")},d.prototype._randomString=function(e,n){for(var t=this,r=[],o=0;o<e;o++)r[o]=t.choice(n);return r.join("")},d.prototype.id=function(e){var n=this;return void 0===e&&(e=17),n._randomString(e,i)},d.prototype.secret=function(e){var n=this;return void 0===e&&(e=43),n._randomString(e,a)},d.prototype.choice=function(e){var n=Math.floor(this.fraction()*e.length);return"string"==typeof e?e.substr(n,1):e[n]};var c="undefined"!=typeof window&&window.innerHeight||"undefined"!=typeof document&&document.documentElement&&document.documentElement.clientHeight||"undefined"!=typeof document&&document.body&&document.body.clientHeight||1,u="undefined"!=typeof window&&window.innerWidth||"undefined"!=typeof document&&document.documentElement&&document.documentElement.clientWidth||"undefined"!=typeof document&&document.body&&document.body.clientWidth||1,s="undefined"!=typeof navigator&&navigator.userAgent||"";(p=e.isServer?new d(d.Type.NODE_CRYPTO):"undefined"!=typeof window&&window.crypto&&window.crypto.getRandomValues?new d(d.Type.BROWSER_CRYPTO):t()).createWithSeeds=function(){for(var e=arguments.length,n=Array(e),t=0;t<e;t++)n[t]=arguments[t];if(0===n.length)throw new Error("No seeds were provided");return new d(d.Type.ALEA,{seeds:n})},p.insecure=t()},"deprecated.js":function(){e.uuid=function(){for(var e="0123456789abcdef",n=[],t=0;t<36;t++)n[t]=p.choice(e);return n[14]="4",n[19]=e.substr(3&parseInt(n[19],16)|8,1),n[8]=n[13]=n[18]=n[23]="-",n.join("")}}}}}},{extensions:[".js",".json"]});m("./node_modules/meteor/random/random.js"),m("./node_modules/meteor/random/deprecated.js"),"undefined"==typeof Package&&(Package={}),function(e,n){for(var t in n)t in e||(e[t]=n[t])}(Package.random={},{Random:p})}();
|
||
|
|
|
||
|
|
!function(){var t=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={})._looksLikeObjectID=function(t){return 24===t.length&&t.match(/^[0-9a-f]*$/)},a.ObjectID=function(t){var e=this;if(t){if(t=t.toLowerCase(),!a._looksLikeObjectID(t))throw new Error("Invalid hexadecimal string for creating an ObjectID");e._str=t}else e._str=i.hexString(24)},a.ObjectID.prototype.toString=function(){return'ObjectID("'+this._str+'")'},a.ObjectID.prototype.equals=function(t){var e=this;return t instanceof a.ObjectID&&e.valueOf()===t.valueOf()},a.ObjectID.prototype.clone=function(){var t=this;return new a.ObjectID(t._str)},a.ObjectID.prototype.typeName=function(){return"oid"},a.ObjectID.prototype.getTimestamp=function(){var t=this;return parseInt(t._str.substr(0,8),16)},a.ObjectID.prototype.valueOf=a.ObjectID.prototype.toJSONValue=a.ObjectID.prototype.toHexString=function(){return this._str},o.addType("oid",function(t){return new a.ObjectID(t)}),a.idStringify=function(t){if(t instanceof a.ObjectID)return t.valueOf();if("string"==typeof t)return""===t?t:"-"===t.substr(0,1)||"~"===t.substr(0,1)||a._looksLikeObjectID(t)||"{"===t.substr(0,1)?"-"+t:t;if(void 0===t)return"-";if("object"==typeof t&&null!==t)throw new Error("Meteor does not currently support objects other than ObjectID as ids");return"~"+JSON.stringify(t)},a.idParse=function(t){return""===t?t:"-"===t?void 0:"-"===t.substr(0,1)?t.substr(1):"~"===t.substr(0,1)?JSON.parse(t.substr(1)):a._looksLikeObjectID(t)?new a.ObjectID(t):t}}).call(this),"undefined"==typeof Package&&(Package={}),function(t,e){for(var r in e)r in t||(t[r]=e[r])}(Package["mongo-id"]={},{MongoID:a})}();
|
||
|
|
|
||
|
|
!function(){var e=Package.meteor.Meteor,n=Package.meteor.global,d=Package.meteor.meteorEnv,i=Package.underscore._,a=Package.ejson.EJSON,r;(function(){(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){var f=(o=o||{}).projectionFn||a.clone;if(d.movedBefore)throw new Error("_diffQueryUnordered called with a movedBefore observer!");n.forEach(function(n,o){var t=e.get(o);if(t){if(d.changed&&!a.equals(t,n)){var c=f(n),u=f(t),h=r.makeChangedFields(c,u);i.isEmpty(h)||d.changed(o,h)}}else if(d.added){var l=f(n);delete l._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){var t=(f=f||{}).projectionFn||a.clone,c={};i.each(d,function(n){c[n._id]&&e._debug("Duplicate _id in new_results"),c[n._id]=!0});var u={};i.each(n,function(n,d){n._id in u&&e._debug("Duplicate _id in old_results"),u[n._id]=d});for(var h=[],l=0,s=d.length,g=new Array(s),v=new Array(s),_=function(e){return u[d[e]._id]},m=0;m<s;m++)if(void 0!==u[d[m]._id]){for(var y=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(var k=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)});var p=0;i.each(h,function(e){for(var a=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)):(delete(h=t(c))._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){var d={};return r.diffObjects(n,e,{leftOnly:function(e,n){d[e]=void 0},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){void 0===n?delete e[d]:e[d]=n})}}).call(this),"undefined"==typeof Package&&(Package={}),function(e,n){for(var d in n)d in e||(e[d]=n[d])}(Package["diff-sequence"]={},{DiffSequence:r})}();
|
||
|
|
|
||
|
|
!function(){var t=Package.meteor.Meteor,n=Package.meteor.global,o=Package.meteor.meteorEnv,a=Package.modules.meteorInstall,e=Package.modules.process,r,i=a({node_modules:{meteor:{"geojson-utils":{"main.js":function(t,n){n.GeoJSON=t("./geojson-utils.js")},"geojson-utils.js":function(t,n,o){!function(){function t(t){for(var n=[],o=[],a=0;a<t[0].length;a++)n.push(t[0][a][1]),o.push(t[0][a][0]);return n=n.sort(function(t,n){return t-n}),o=o.sort(function(t,n){return t-n}),[[n[0],o[0]],[n[n.length-1],o[o.length-1]]]}function n(t,n,o){for(var a=[[0,0]],e=0;e<o.length;e++){for(var r=0;r<o[e].length;r++)a.push(o[e][r]);a.push([0,0])}for(var i=!1,e=0,r=a.length-1;e<a.length;r=e++)a[e][0]>n!=a[r][0]>n&&t<(a[r][1]-a[e][1])*(n-a[e][0])/(a[r][0]-a[e][0])+a[e][1]&&(i=!i);return i}var a={};void 0!==o&&o.exports&&(o.exports=a),a.lineStringsIntersect=function(t,n){for(var o=[],a=0;a<=t.coordinates.length-2;++a)for(var e=0;e<=n.coordinates.length-2;++e){var r={x:t.coordinates[a][1],y:t.coordinates[a][0]},i={x:t.coordinates[a+1][1],y:t.coordinates[a+1][0]},s={x:n.coordinates[e][1],y:n.coordinates[e][0]},c={x:n.coordinates[e+1][1],y:n.coordinates[e+1][0]},u=(c.x-s.x)*(r.y-s.y)-(c.y-s.y)*(r.x-s.x),h=(i.x-r.x)*(r.y-s.y)-(i.y-r.y)*(r.x-s.x),d=(c.y-s.y)*(i.x-r.x)-(c.x-s.x)*(i.y-r.y);if(0!=d){var l=u/d,g=h/d;0<=l&&l<=1&&0<=g&&g<=1&&o.push({type:"Point",coordinates:[r.x+l*(i.x-r.x),r.y+l*(i.y-r.y)]})}}return 0==o.length&&(o=!1),o},a.pointInBoundingBox=function(t,n){return!(t.coordinates[1]<n[0][0]||t.coordinates[1]>n[1][0]||t.coordinates[0]<n[0][1]||t.coordinates[0]>n[1][1])},a.pointInPolygon=function(o,e){for(var r="Polygon"==e.type?[e.coordinates]:e.coordinates,i=!1,s=0;s<r.length;s++)a.pointInBoundingBox(o,t(r[s]))&&(i=!0);if(!i)return!1;for(var c=!1,s=0;s<r.length;s++)n(o.coordinates[1],o.coordinates[0],r[s])&&(c=!0);return c},a.numberToRadius=function(t){return t*Math.PI/180},a.numberToDegree=function(t){return 180*t/Math.PI},a.drawCircle=function(t,n,o){for(var e=[n.coordinates[1],n.coordinates[0]],r=t/1e3/6371,i=[a.numberToRadius(e[0]),a.numberToRadius(e[1])],o=o||15,s=[[e[0],e[1]]],c=0;c<o;c++){var u=2*Math.PI*c/o,h=Math.asin(Math.sin(i[0])*Math.cos(r)+Math.cos(i[0])*Math.sin(r)*Math.cos(u)),d=i[1]+Math.atan2(Math.sin(u)*Math.sin(r)*Math.cos(i[0]),Math.cos(r)-Math.sin(i[0])*Math.sin(h));s[c]=[],s[c][1]=a.numberToDegree(h),s[c][0]=a.numberToDegree(d)}return{type:"Polygon",coordinates:[s]}},a.rectangleCentroid=function(t){var n=t.coordinates[0],o=n[0][0],a=n[0][1];return{type:"Point",coordinates:[o+(n[2][0]-o)/2,a+(n[2][1]-a)/2]}},a.pointDistance=function(t,n){var o=t.coordinates[0],e=t.coordinates[1],r=n.coordinates[0],i=n.coordinates[1],s=a.numberToRadius(i-e),c=a.numberToRadius(r-o),u=Math.pow(Math.sin(s/2),2)+Math.cos(a.numberToRadius(e))*Math.cos(a.numberToRadius(i))*Math.pow(Math.sin(c/2),2);return 6371*(2*Math.atan2(Math.sqrt(u),Math.sqrt(1-u)))*1e3},a.geometryWithinRadius=function(t,n,o){if("Point"==t.type)return a.pointDistance(t,n)<=o;if("LineString"==t.type||"Polygon"==t.type){var e={},r;r="Polygon"==t.type?t.coordinates[0]:t.coordinates;for(var i in r)if(e.coordinates=r[i],a.pointDistance(e,n)>o)return!1}return!0},a.area=function(t){for(var n=0,o=t.coordinates[0],a=o.length-1,e,r,i=0;i<o.length;a=i++){var e={x:o[i][1],y:o[i][0]},r={x:o[a][1],y:o[a][0]};n+=e.x*r.y,n-=e.y*r.x}return n/=2},a.centroid=function(t){for(var n,o=0,e=0,r=t.coordinates[0],i=r.length-1,s,c,u=0;u<r.length;i=u++){var s={x:r[u][1],y:r[u][0]},c={x:r[i][1],y:r[i][0]};n=s.x*c.y-c.x*s.y,o+=(s.x+c.x)*n,e+=(s.y+c.y)*n}return n=6*a.area(t),{type:"Point",coordinates:[e/n,o/n]}},a.simplify=function(t,n){n=n||20,t=t.map(function(t){return{lng:t.coordinates[0],lat:t.coordinates[1]}});var o,a,e,r,i,s,c,u,h,d,l,g,M,y,f,x,m,p,v,P=Math.PI/180*.5,b=new Array,T=new Array,I=new Array;if(t.length<3)return t;for(o=t.length,d=360*n/(2*Math.PI*6378137),d*=d,e=0,T[0]=0,I[0]=o-1,a=1;a>0;)if(r=T[a-1],i=I[a-1],a--,i-r>1){for(l=t[i].lng()-t[r].lng(),g=t[i].lat()-t[r].lat(),Math.abs(l)>180&&(l=360-Math.abs(l)),M=(l*=Math.cos(P*(t[i].lat()+t[r].lat())))*l+g*g,s=r+1,c=r,h=-1;s<i;s++)y=t[s
|
||
|
|
|
||
|
|
!function(){var e=Package.meteor.Meteor,r=Package.meteor.global,n=Package.meteor.meteorEnv,t=Package.underscore._,o=Package.ejson.EJSON,i=Package["id-map"].IdMap,a=Package["ordered-dict"].OrderedDict,s=Package.tracker.Tracker,u=Package.tracker.Deps,c=Package["mongo-id"].MongoID,d=Package.random.Random,f=Package["diff-sequence"].DiffSequence,l=Package["geojson-utils"].GeoJSON,h=Package.modules.meteorInstall,p=Package.modules.process,m=Package["babel-runtime"].meteorBabelHelpers,v=Package.promise.Promise,_=Package["ecmascript-runtime-client"].Symbol,y=Package["ecmascript-runtime-client"].Map,g=Package["ecmascript-runtime-client"].Set,b,w,$,E,I,j,C,O,S,k,A,M,P,x,F,q,B=h({node_modules:{meteor:{minimongo:{"minimongo.js":function(r,n,i){var a=void 0;i.watch(r("./validation.js"),{assertHasValidFieldNames:function(e){a=e}},0),w={},$={},E=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"string"==typeof e&&r.field&&(e+=" for field '"+r.field+"'");var n=new Error(e);return n.name="MinimongoError",n},(b=function(r){var n=this;n.name=r,n._docs=new b._IdMap,n._observeQueue=new e._SynchronousQueue,n.next_qid=1,n.queries={},n._savedOriginals=null,n.paused=!1}).prototype.find=function(e,r){return 0===arguments.length&&(e={}),new b.Cursor(this,e,r)},b.Cursor=function(e,r,n){var t=this;n||(n={}),t.collection=e,t.sorter=null,t.matcher=new w.Matcher(r),b._selectorIsId(r)?t._selectorId=r:b._selectorIsIdPerhapsAsObject(r)?t._selectorId=r._id:(t._selectorId=void 0,(t.matcher.hasGeoQuery()||n.sort)&&(t.sorter=new w.Sorter(n.sort||[],{matcher:t.matcher}))),t.skip=n.skip,t.limit=n.limit,t.fields=n.fields,t._projectionFn=b._compileProjection(t.fields||{}),t._transform=b.wrapTransform(n.transform),void 0!==s&&(t.reactive=void 0===n.reactive||n.reactive)},b.Cursor.prototype.rewind=function(){},b.prototype.findOne=function(e,r){return 0===arguments.length&&(e={}),r=r||{},r.limit=1,this.find(e,r).fetch()[0]},b.Cursor.prototype.forEach=function(e,r){var n=this,o=n._getRawObjects({ordered:!0});n.reactive&&n._depend({addedBefore:!0,removed:!0,changed:!0,movedBefore:!0}),t.each(o,function(t,o){t=n._projectionFn(t),n._transform&&(t=n._transform(t)),e.call(r,t,o,n)})},b.Cursor.prototype.getTransform=function(){return this._transform},b.Cursor.prototype.map=function(e,r){var n=this,t=[];return n.forEach(function(o,i){t.push(e.call(r,o,i,n))}),t},b.Cursor.prototype.fetch=function(){var e=[];return this.forEach(function(r){e.push(r)}),e},b.Cursor.prototype.count=function(){var e=this;return e.reactive&&e._depend({added:!0,removed:!0},!0),e._getRawObjects({ordered:!0}).length},b.Cursor.prototype._publishCursor=function(e){var r=this;if(!r.collection.name)throw new Error("Can't publish a cursor from a collection without a name.");var n=r.collection.name;if(!Package.mongo)throw new Error("Can't publish from Minimongo without the `mongo` package.");return Package.mongo.Mongo.Collection._publishCursor(r,e,n)},b.Cursor.prototype._getCollectionName=function(){return this.collection.name},b._observeChangesCallbacksAreOrdered=function(e){if(e.added&&e.addedBefore)throw new Error("Please specify only one of added() and addedBefore()");return!(!e.addedBefore&&!e.movedBefore)},b._observeCallbacksAreOrdered=function(e){if(e.addedAt&&e.added)throw new Error("Please specify only one of added() and addedAt()");if(e.changedAt&&e.changed)throw new Error("Please specify only one of changed() and changedAt()");if(e.removed&&e.removedAt)throw new Error("Please specify only one of removed() and removedAt()");return!!(e.addedAt||e.movedTo||e.changedAt||e.removedAt)},b.ObserveHandle=function(){},t.extend(b.Cursor.prototype,{observe:function(e){var r=this;return b._observeFromObserveChanges(r,e)},observeChanges:function(e){var r=this,n=b._observeChangesCallbacksAreOrdered(e);if(!e._allow_unordered&&!n&&(r.skip||r.limit))throw new Error("must use ordered observe (ie, 'addedBefore' instead of 'added') with skip or limit");if(r.fields&&(0===r.fields._id||!1===r.fields._id))throw Error("You may not observe a cursor with {fields: {_id: 0}}");var i={dirty:!1,matc
|
||
|
|
|
||
|
|
!function(){var e=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,r=Package.modules.meteorInstall,a=Package.modules.process,i=Package.underscore._,o=Package.ejson.EJSON,c,s,u=r({node_modules:{meteor:{check:{"match.js":function(t,n){var r=new e.EnvironmentVariable,a=t("./isPlainObject.js").isPlainObject,c=n.check=function(e,t){var n=r.getOrNullIfOutsideFiber();n&&n.checking(e);var a=y(e,t);if(a){var i=new s.Error(a.message);throw a.path&&(i.message+=" in field "+a.path,i.path=a.path),i}},s=n.Match={Optional:function(e){return new u(e)},Maybe:function(e){return new f(e)},OneOf:function(){return new h(i.toArray(arguments))},Any:["__any__"],Where:function(e){return new l(e)},ObjectIncluding:function(e){return new p(e)},ObjectWithValues:function(e){return new g(e)},Integer:["__integer__"],Error:e.makeErrorType("Match.Error",function(t){this.message="Match error: "+t,this.path="",this.sanitizedError=new e.Error(400,"Match failed")}),test:function(e,t){return!y(e,t)},_failIfArgumentsAreNotAllChecked:function(e,t,n,a){var i=new v(n,a),o=r.withValue(i,function(){return e.apply(t,n)});return i.throwUnlessAllArgumentsHaveBeenChecked(),o}},u=function(e){this.pattern=e},f=function(e){this.pattern=e},h=function(e){if(i.isEmpty(e))throw new Error("Must provide at least one choice to Match.OneOf");this.choices=e},l=function(e){this.condition=e},p=function(e){this.pattern=e},g=function(e){this.pattern=e},m=function(e,t){if(t=t||{},null===e)return"null";if(t.onlyShowType)return typeof e;if("object"!=typeof e)return o.stringify(e);try{JSON.stringify(e)}catch(t){if("TypeError"===t.name)return typeof e}return o.stringify(e)},d=[[String,"string"],[Number,"number"],[Boolean,"boolean"],[Function,"function"],[void 0,"undefined"]],y=function(e,t){if(t===s.Any)return!1;for(var n=0;n<d.length;++n)if(t===d[n][0])return typeof e!==d[n][1]&&{message:"Expected "+d[n][1]+", got "+m(e,{onlyShowType:!0}),path:""};if(null===t)return null!==e&&{message:"Expected null, got "+m(e),path:""};if("string"==typeof t||"number"==typeof t||"boolean"==typeof t)return e!==t&&{message:"Expected "+t+", got "+m(e),path:""};if(t===s.Integer)return("number"!=typeof e||(0|e)!==e)&&{message:"Expected Integer, got "+m(e),path:""};if(t===Object&&(t=s.ObjectIncluding({})),t instanceof Array){if(1!==t.length)return{message:"Bad pattern: arrays must have one type element"+m(t),path:""};if(!i.isArray(e)&&!i.isArguments(e))return{message:"Expected array, got "+m(e),path:""};for(var n=0,r=e.length;n<r;n++)if(o=y(e[n],t[0]))return o.path=O(n,o.path),o;return!1}if(t instanceof l){var o;try{o=t.condition(e)}catch(e){if(!(e instanceof s.Error))throw e;return{message:e.message,path:e.path}}return!o&&{message:"Failed Match.Where validation",path:""}}if(t instanceof f?t=s.OneOf(void 0,null,t.pattern):t instanceof u&&(t=s.OneOf(void 0,t.pattern)),t instanceof h){for(var n=0;n<t.choices.length;++n)if(!(o=y(e,t.choices[n])))return!1;return{message:"Failed Match.OneOf, Match.Maybe or Match.Optional validation",path:""}}if(t instanceof Function)return!(e instanceof t)&&{message:"Expected "+(t.name||"particular constructor"),path:""};var c=!1,v;if(t instanceof p&&(c=!0,t=t.pattern),t instanceof g&&(c=!0,v=[t.pattern],t={}),"object"!=typeof t)return{message:"Bad pattern: unknown pattern type",path:""};if("object"!=typeof e)return{message:"Expected object, got "+typeof e,path:""};if(null===e)return{message:"Expected object, got null",path:""};if(!a(e))return{message:"Expected plain object",path:""};var b={},k={};i.each(t,function(e,t){e instanceof u||e instanceof f?k[t]=e.pattern:b[t]=e});for(var w=function(e){var t=[];if(i.isObject(e))for(var n in e)t.push(n);return t}(e),n=0,r=w.length;n<r;n++){var j=w[n],E=e[j];if(i.has(b,j)){if(o=y(E,b[j]))return o.path=O(j,o.path),o;delete b[j]}else if(i.has(k,j)){if(o=y(E,k[j]))return o.path=O(j,o.path),o}else{if(!c)return{message:"Unknown key",path:j};if(v&&(o=y(E,v[0])))return o.path=O(j,o.path),o}}return(w=i.keys(b)).length?{message:"Missing key '"+w[0]+"'",path:""}:void 0},v=function(e,t){var n=this;n.args=i.clone(e),n.args.rever
|
||
|
|
|
||
|
|
!function(){var e=Package.meteor.Meteor,t=Package.meteor.global,r=Package.meteor.meteorEnv,n=Package.underscore._,i=Package.random.Random,a;(function(){a=function(e){var t=this;n.extend(t,n.defaults(n.clone(e||{}),{baseTimeout:1e3,exponent:2.2,maxTimeout:3e5,minTimeout:10,minCount:2,fuzz:.5})),t.retryTimer=null},n.extend(a.prototype,{clear:function(){var e=this;e.retryTimer&&clearTimeout(e.retryTimer),e.retryTimer=null},_timeout:function(e){var t=this;if(e<t.minCount)return t.minTimeout;var r=Math.min(t.maxTimeout,t.baseTimeout*Math.pow(t.exponent,e));return r*=i.fraction()*t.fuzz+(1-t.fuzz/2)},retryLater:function(t,r){var n=this,i=n._timeout(t);return n.retryTimer&&clearTimeout(n.retryTimer),n.retryTimer=e.setTimeout(r,i),i}})}).call(this),"undefined"==typeof Package&&(Package={}),function(e,t){for(var r in t)r in e||(e[r]=t[r])}(Package.retry={},{Retry:a})}();
|
||
|
|
|
||
|
|
!function(){var e=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){var t=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(){var e=this;e._clearHeartbeatIntervalTimer(),e._clearHeartbeatTimeoutTimer()},start:function(){var e=this;e.stop(),e._startHeartbeatIntervalTimer()},_startHeartbeatIntervalTimer:function(){var t=this;t._heartbeatIntervalHandle=e.setInterval(c.bind(t._heartbeatIntervalFired,t),t.heartbeatInterval)},_startHeartbeatTimeoutTimer:function(){var t=this;t._heartbeatTimeoutHandle=e.setTimeout(c.bind(t._heartbeatTimeoutFired,t),t.heartbeatTimeout)},_clearHeartbeatIntervalTimer:function(){var t=this;t._heartbeatIntervalHandle&&(e.clearInterval(t._heartbeatIntervalHandle),t._heartbeatIntervalHandle=null)},_clearHeartbeatTimeoutTimer:function(){var t=this;t._heartbeatTimeoutHandle&&(e.clearTimeout(t._heartbeatTimeoutHandle),t._heartbeatTimeoutHandle=null)},_heartbeatIntervalFired:function(){var e=this;e._seenPacket||e._heartbeatTimeoutHandle||(e._sendPing(),e._startHeartbeatTimeoutTimer()),e._seenPacket=!1},_heartbeatTimeoutFired:function(){var e=this;e._heartbeatTimeoutHandle=null,e._onTimeout()},messageReceived:function(){var e=this;e._seenPacket=!0,e._heartbeatTimeoutHandle&&e._clearHeartbeatTimeoutTimer()}})}.call(this),function(){d.SUPPORTED_DDP_VERSIONS=["1","pre2","pre1"],d.parseDDP=function(t){try{var a=JSON.parse(t)}catch(a){return e._debug("Discarding message with invalid JSON",t),null}return null===a||"object"!=typeof a?(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]=void 0}),delete a.cleared),c.each(["fields","params","result"],function(e){c.has(a,e)&&(a[e]=o._adjustTypesFromJSONValue(a[e]))}),a)},d.stringifyDDP=function(e){var t=o.clone(e);if(c.has(e,"fields")){var a=[];c.each(e.fields,function(e,n){void 0===e&&(a.push(n),delete t.fields[n])}),c.isEmpty(a)||(t.cleared=a),c.isEmpty(t.fields)&&delete t.fields}if(c.each(["fields","params","result"],function(e){c.has(t,e)&&(t[e]=o._adjustTypesToJSONValue(t[e]))}),e.id&&"string"!=typeof e.id)throw new Error("Message id is not a string");return JSON.stringify(t)}}.call(this),function(){d.MethodInvocation=function(e){var t=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(){var e=this;e._calledUnblock=!0,e._unblock()},setUserId:function(e){var t=this;if(t._calledUnblock)throw new Error("Can't call setUserId in a method after calling unblock");t.userId=e,t._setUserId(e)}})}.call(this),function(){function e(){return i.hexString(20)}d.RandomStream=function(t){var a=this;this.seed=[].concat(t.seed||e()),this.sequences={}},d.RandomStream.get=function(e,t){if(t||(t="default"),!e)return i.insecure;var a=e.randomStream;return a||(e.randomStream=a=new d.RandomStream({seed:e.randomSeed})),a._sequence(t)},d.makeRpcSeed=function(e,t){return d.RandomStream.get(e,"/rpc/"+t).hexString(20)},c.extend(d.RandomStream.prototype,{_sequence:function(e){var t=this,a=t.sequences[e]||null;if(null===a){for(var n=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)}return a}})}.call(this),"undefined"==typeof Package&&(Package={}),function(e,t){for(var a in t)a in e||(e[a]=t[a])}(Package["ddp-common"]={},{DDPCommon:d})}();
|
||
|
|
|
||
|
|
!function(){var a=Package.meteor.Meteor,e=Package.meteor.global,t=Package.meteor.meteorEnv,o=Package.underscore._,n=Package["ecmascript-runtime-client"].Symbol,r=Package["ecmascript-runtime-client"].Map,i=Package["ecmascript-runtime-client"].Set,c;(function(){c={};var e="Meteor_Reload",t={},n,r=null;try{(r=window.sessionStorage)?(r.setItem("__dummy__","1"),r.removeItem("__dummy__")):r=null}catch(a){r=null}c._getData=function(){return r&&r.getItem(e)},r&&(n=c._getData(),r.removeItem(e)),n||(n="{}");var i={};try{"object"!=typeof(i=JSON.parse(n))&&(a._debug("Got bad data on reload. Ignoring."),i={})}catch(e){a._debug("Got invalid JSON on reload. Ignoring.")}i.reload&&"object"==typeof i.data&&(t=i.data);var l=[];c._onMigrate=function(a,e){e||(e=a,a=void 0),l.push({name:a,callback:e})},c._migrationData=function(a){return t[a]};var d=function(a,e){a=a||function(){},e=e||{};for(var t={},n=o.clone(l),r=!0;n.length;){var i=n.shift(),c=i.callback(a,e);c[0]||(r=!1),c.length>1&&i.name&&(t[i.name]=c[1])}return r||e.immediateMigration?t:null};c._migrate=function(t,o){var n=d(t,o);if(null===n)return!1;try{var i=JSON.stringify({data:n,reload:!0})}catch(e){throw a._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)}else a._debug("Browser does not support sessionStorage. Not saving migration state.");return!0},c._withFreshProvidersForTest=function(a){var e=o.clone(l);l=[];try{a()}finally{l=e}};var g=!1;c._reload=function(a){if(a=a||{},!g){g=!0;var e=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"==typeof Package&&(Package={}),function(a,e){for(var t in e)t in a||(a[t]=e[t])}(Package.reload={},{Reload:c})}();
|
||
|
|
|
||
|
|
!function(){var e=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,o=Package.check.check,r=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=Package.modules.meteorInstall,v=Package.modules.process,m=Package["babel-runtime"].meteorBabelHelpers,g=Package.promise.Promise,b=Package["ecmascript-runtime-client"].Symbol,y=Package["ecmascript-runtime-client"].Map,w=Package["ecmascript-runtime-client"].Set,k,S,C,O,E,D=h({node_modules:{meteor:{"ddp-client":{"sockjs-0.3.4.js":function(e){function t(e){return e&&e.__esModule?e:{default:e}}var n=t(e("babel-runtime/helpers/typeof"));k=function(){var e=document,t=window,o={},r=function(){};r.prototype.addEventListener=function(e,t){this._listeners||(this._listeners={}),e in this._listeners||(this._listeners[e]=[]);var n=this._listeners[e];-1===o.arrIndexOf(n,t)&&n.push(t)},r.prototype.removeEventListener=function(e,t){if(this._listeners&&e in this._listeners){var n=this._listeners[e],r=o.arrIndexOf(n,t);-1===r||(n.length>1?this._listeners[e]=n.slice(0,r).concat(n.slice(r+1)):delete this._listeners[e])}},r.prototype.dispatchEvent=function(e){var t=e.type,n=Array.prototype.slice.call(arguments,0);if(this["on"+t]&&this["on"+t].apply(this,n),this._listeners&&t in this._listeners)for(var o=0;o<this._listeners[t].length;o++)this._listeners[t][o].apply(this,n)};var i=function(e,t){if(this.type=e,void 0!==t)for(var n in m.sanitizeForInObject(t))t.hasOwnProperty(n)&&(this[n]=t[n])};i.prototype.toString=function(){var e=[];for(var t in m.sanitizeForInObject(this))if(this.hasOwnProperty(t)){var n=this[t];"function"==typeof n&&(n="[function]"),e.push(t+"="+n)}return"SimpleEvent("+e.join(", ")+")"};var s=function(e){var t=this;t._events=e||[],t._listeners={}};s.prototype.emit=function(e){var t=this;if(t._verifyType(e),!t._nuked){var n=Array.prototype.slice.call(arguments,1);if(t["on"+e]&&t["on"+e].apply(t,n),e in t._listeners)for(var o=0;o<t._listeners[e].length;o++)t._listeners[e][o].apply(t,n)}},s.prototype.on=function(e,t){var n=this;n._verifyType(e),n._nuked||(e in n._listeners||(n._listeners[e]=[]),n._listeners[e].push(t))},s.prototype._verifyType=function(e){var t=this;-1===o.arrIndexOf(t._events,e)&&o.log("Event "+JSON.stringify(e)+" not listed "+JSON.stringify(t._events)+" in "+t)},s.prototype.nuke=function(){var e=this;e._nuked=!0;for(var t=0;t<e._events.length;t++)delete e[e._events[t]];e._listeners={}};var a="abcdefghijklmnopqrstuvwxyz0123456789_";o.random_string=function(e,t){t=t||a.length;var n,o=[];for(n=0;n<e;n++)o.push(a.substr(Math.floor(Math.random()*t),1));return o.join("")},o.random_number=function(e){return Math.floor(Math.random()*e)},o.random_number_string=function(e){var t=(""+(e-1)).length;return(Array(t+1).join("0")+o.random_number(e)).slice(-t)},o.getOrigin=function(e){return(e+="/").split("/").slice(0,3).join("/")},o.isSameOriginUrl=function(e,n){return n||(n=t.location.href),e.split("/").slice(0,3).join("/")===n.split("/").slice(0,3).join("/")},o.isSameOriginScheme=function(e,n){return n||(n=t.location.href),e.split(":")[0]===n.split(":")[0]},o.getParentDomain=function(e){return/^[0-9.]*$/.test(e)?e:/^\[/.test(e)?e:/[.]/.test(e)?e.split(".").slice(1).join("."):e},o.objectExtend=function(e,t){for(var n in m.sanitizeForInObject(t))t.hasOwnProperty(n)&&(e[n]=t[n]);return e};var u="_jp";o.polluteGlobalNamespace=function(){"_jp"in t||(t._jp={})},o.closeFrame=function(e,t){return"c"+JSON.stringify([e,t])},o.userSetCode=function(e){return 1e3===e||e>=3e3&&e<=4999},o.countRTO=function(e){var t;return t=e>100?3*e:e+200},o.log=function(){t.console&&console.log&&console.log.apply&&console.log.apply(console,arguments)},o.bind=function(e,t){return e.bind?e.bind(t):function(){return e.apply(t,arguments)}},o.flatUrl=function(e){return-1===e.indexOf("?")&&-1===e.indexOf("#")},o.amendUrl=function(t,n){var r;if(void 0===n)r=e
|
||
|
|
|
||
|
|
!function(){var a=Package["ddp-client"].DDP;"undefined"==typeof Package&&(Package={}),function(a,n){for(var e in n)e in a||(a[e]=n[e])}(Package.ddp={},{DDP:a})}();
|
||
|
|
|
||
|
|
!function(){"undefined"==typeof Package&&(Package={}),Package["ddp-server"]={}}();
|
||
|
|
|
||
|
|
!function(){var e=Package.meteor.Meteor,n=Package.meteor.global,t=Package.meteor.meteorEnv,r=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.process,f=Package["babel-runtime"].meteorBabelHelpers,h=Package.promise.Promise,_=Package["ecmascript-runtime-client"].Symbol,m=Package["ecmascript-runtime-client"].Map,v=Package["ecmascript-runtime-client"].Set,p;d({node_modules:{meteor:{"allow-deny":{"allow-deny.js":function(){function n(e,n){return e.transform?e.transform(n):n}function t(e,n,t){var r=n;return e.transform&&(r=l.clone(n),null!==t&&(r._id=t),r=e.transform(r)),r}function a(e,n,t){var a=["insert","update","remove","fetch","transform"];if(r.each(r.keys(t),function(e){if(!r.contains(a,e))throw new Error(n+": Invalid key: "+e)}),e._restricted=!0,r.each(["insert","update","remove"],function(r){if(t.hasOwnProperty(r)){if(!(t[r]instanceof Function))throw new Error(n+": Value for `"+r+"` must be a function");void 0===t.transform?t[r].transform=e._transform:t[r].transform=o.wrapTransform(t.transform),e._validators[r][n].push(t[r])}}),t.update||t.remove||t.fetch){if(t.fetch&&!(t.fetch instanceof Array))throw new Error(n+": Value for `fetch` must be an array");e._updateFetch(t.fetch)}}function d(n,t){if(!o._selectorIsIdPerhapsAsObject(n))throw new e.Error(403,"Not permitted. Untrusted code may only "+t+" documents by ID.")}function u(){var e=s._CurrentInvocation.get();return e&&e.isSimulation}var f=(p={CollectionPrototype:{}}).CollectionPrototype;f.allow=function(e){a(this,"allow",e)},f.deny=function(e){a(this,"deny",e)},f._defineMutationMethods=function(n){var t=this;if(n=n||{},t._restricted=!1,t._insecure=void 0,t._validators={insert:{allow:[],deny:[]},update:{allow:[],deny:[]},remove:{allow:[],deny:[]},upsert:{allow:[],deny:[]},fetch:[],fetchAllFields:!1},t._name&&(t._prefix="/"+t._name+"/",t._connection&&(t._connection===e.server||e.isClient))){var o={};r.each(["insert","update","remove"],function(a){var l=t._prefix+a;if(n.useExisting){var s=e.isClient?"_methodHandlers":"method_handlers";if(t._connection[s]&&"function"==typeof t._connection[s][l])return}o[l]=function(){i(arguments,[c.Any]);var n=r.toArray(arguments);try{var o=null;if("insert"!==a||r.has(n[0],"_id")||(o=t._makeNewID()),this.isSimulation)return null!==o&&(n[0]._id=o),t._collection[a].apply(t._collection,n);if("insert"!==a&&d(n[0],a),t._restricted){if(0===t._validators[a].allow.length)throw new e.Error(403,"Access denied. No allow validators set on restricted collection for method '"+a+"'.");var l="_validated"+a.charAt(0).toUpperCase()+a.slice(1);return n.unshift(this.userId),"insert"===a&&n.push(o),t[l].apply(t,n)}if(t._isInsecure())return null!==o&&(n[0]._id=o),t._collection[a].apply(t._collection,n);throw new e.Error(403,"Access denied")}catch(n){throw"MongoError"===n.name||"MinimongoError"===n.name?new e.Error(409,n.toString()):n}}}),t._connection.methods(o)}},f._updateFetch=function(e){var n=this;n._validators.fetchAllFields||(e?n._validators.fetch=r.union(n._validators.fetch,e):(n._validators.fetchAllFields=!0,n._validators.fetch=null))},f._isInsecure=function(){var e=this;return void 0===e._insecure?!!Package.insecure:e._insecure},f._validatedInsert=function(n,o,a){var i=this;if(r.any(i._validators.insert.deny,function(e){return e(n,t(e,o,a))}))throw new e.Error(403,"Access denied");if(r.all(i._validators.insert.allow,function(e){return!e(n,t(e,o,a))}))throw new e.Error(403,"Access denied");null!==a&&(o._id=a),i._collection.insert.call(i._collection,o)},f._validatedUpdate=function(t,a,c,l){var s=this;if(i(c,Object),l=r.clone(l)||{},!o._selectorIsIdPerhapsAsObject(a))throw new Error("validated update should be of a single ID");if(l.upsert)throw new e.Error(403,"Access denied. Upserts not allowed in a restricted collection.");var d="Access denied. In a restricted collection you can only update documents, not replace them. Use a Mongo update operator, such as '$set'.",u=[];if
|
||
|
|
|
||
|
|
!function(){var e=Package.meteor.Meteor,o=Package.meteor.global,n=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,d=Package.tracker.Tracker,u=Package.tracker.Deps,f=Package["diff-sequence"].DiffSequence,_=Package["mongo-id"].MongoID,p=Package.check.check,m=Package.check.Match,g=Package.modules.meteorInstall,h=Package.modules.process,v=Package["babel-runtime"].meteorBabelHelpers,w=Package.promise.Promise,C=Package["ecmascript-runtime-client"].Symbol,y=Package["ecmascript-runtime-client"].Map,b=Package["ecmascript-runtime-client"].Set,k,O,I=g({node_modules:{meteor:{mongo:{"local_collection_driver.js":function(){k=function(){this.noConnCollections={}};var e=function(e,o){return e in o||(o[e]=new l(e)),o[e]};c.extend(k.prototype,{open:function(o,n){var t=this;return o?n?(n._mongo_livedata_collections||(n._mongo_livedata_collections={}),e(o,n._mongo_livedata_collections)):e(o,t.noConnCollections):new l}}),k=new k},"collection.js":function(o,n,i){function a(e){p(e,RegExp);var o={$regex:e.source},n="";return e.ignoreCase&&(n+="i"),e.multiline&&(n+="m"),n&&(o.$options=n),o}function d(e,o){if(e)return o=o||c.identity,function(n,t){e(n,!n&&o(t))}}function u(e){if(e.length&&(void 0===e[e.length-1]||e[e.length-1]instanceof Function))return e.pop()}(O={}).Collection=function(o,n){var t=this;if(!(t instanceof O.Collection))throw new Error('use "new" to construct a Mongo.Collection');if(o||null===o||(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.)"),o=null),null!==o&&"string"!=typeof o)throw new Error("First argument to new Mongo.Collection must be a string or null");switch(n&&n.methods&&(n={connection:n}),n&&n.manager&&!n.connection&&(n.connection=n.manager),(n=c.extend({connection:void 0,idGeneration:"STRING",transform:null,_driver:void 0,_preventAutopublish:!1},n)).idGeneration){case"MONGO":t._makeNewID=function(){var e=o?s.randomStream("/collection/"+o):r.insecure;return new O.ObjectID(e.hexString(24))};break;case"STRING":default:t._makeNewID=function(){return(o?s.randomStream("/collection/"+o):r.insecure).id()};break}if(t._transform=l.wrapTransform(n.transform),o&&null!==n.connection?n.connection?t._connection=n.connection:e.isClient?t._connection=e.connection:t._connection=e.server:t._connection=null,n._driver||(o&&t._connection===e.server&&"undefined"!=typeof MongoInternals&&MongoInternals.defaultRemoteCollectionDriver?n._driver=MongoInternals.defaultRemoteCollectionDriver():n._driver=k),t._collection=n._driver.open(o,t._connection),t._name=o,t._driver=n._driver,t._connection&&t._connection.registerStore&&!t._connection.registerStore(o,{beginUpdate:function(e,o){(e>1||o)&&t._collection.pauseObservers(),o&&t._collection.remove({})},update:function(e){var o=_.idParse(e.id),n=t._collection.findOne(o);if("replace"!==e.msg)if("added"===e.msg){if(n)throw new Error("Expected not to find a document already present for an add");t._collection.insert(c.extend({_id:o},e.fields))}else if("removed"===e.msg){if(!n)throw new Error("Expected to find a document already present for removed");t._collection.remove(o)}else{if("changed"!==e.msg)throw new Error("I don't know how to deal with this message");if(!n)throw new Error("Expected to find a document to change");if(!c.isEmpty(e.fields)){var r={};c.each(e.fields,function(e,o){void 0===e?(r.$unset||(r.$unset={}),r.$unset[o]=1):(r.$set||(r.$set={}),r.$set[o]=e)}),t._collection.update(o,r)}}else{var i=e.replace;i?n?t._collection.update(o,i):t._collection.insert(i):n&&t._collection.remove(o)}},endUpdate:function(){t._collection.resumeObservers()},saveOriginals:function(){t._collection.saveOriginals()},retrieveOriginals:function(){return t._collection.retrieveOriginals()},getDoc:function(e){return t.findOne(e)},_getCollection:function(){return t}})){var i='There is already a collection named "'+o+'"';if(!0!==n._su
|
||
|
|
|
||
|
|
!function(){"undefined"==typeof Package&&(Package={}),Package["blaze-html-templates"]={}}();
|
||
|
|
|
||
|
|
!function(){var e=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,a=Package.tracker.Tracker,r=Package.tracker.Deps,i;(function(){(i=function(e,t){if(!(this instanceof i))return new i(e,t);this.curValue=e,this.equalsFunc=t,this.dep=new a.Dependency})._isEqual=function(e,t){var n=e;return n===t&&(!n||"number"==typeof n||"boolean"==typeof n||"string"==typeof n)},i.prototype.get=function(){return a.active&&this.dep.depend(),this.curValue},i.prototype.set=function(e){var t=this.curValue;(this.equalsFunc||i._isEqual)(t,e)||(this.curValue=e,this.dep.changed())},i.prototype.toString=function(){return"ReactiveVar{"+this.get()+"}"},i.prototype._numListeners=function(){var e=0;for(var t in this.dep._dependentsById)e++;return e}}).call(this),"undefined"==typeof Package&&(Package={}),function(e,t){for(var n in t)n in e||(e[n]=t[n])}(Package["reactive-var"]={},{ReactiveVar:i})}();
|
||
|
|
|
||
|
|
!function(){var e=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,r=Package.modules.meteorInstall,i=Package.modules.process,o,a,s=r({node_modules:{meteor:{jquery:{"main.js":function(e,t){var n=this;try{var r=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"==typeof n&&"object"==typeof n.exports?n.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){function n(e){var t=e.length,n=ie.type(e);return"function"!==n&&!ie.isWindow(e)&&(!(1!==e.nodeType||!t)||("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e))}function r(e,t,n){if(ie.isFunction(t))return ie.grep(e,function(e,r){return!!t.call(e,r,e)!==n});if(t.nodeType)return ie.grep(e,function(e){return e===t!==n});if("string"==typeof t){if(de.test(t))return ie.filter(t,e,n);t=ie.filter(t,e)}return ie.grep(e,function(e){return ie.inArray(e,t)>=0!==n})}function i(e,t){do{e=e[t]}while(e&&1!==e.nodeType);return e}function o(e){var t=be[e]={};return ie.each(e.match(ve)||[],function(e,n){t[n]=!0}),t}function a(){he.addEventListener?(he.removeEventListener("DOMContentLoaded",s,!1),e.removeEventListener("load",s,!1)):(he.detachEvent("onreadystatechange",s),e.detachEvent("onload",s))}function s(){(he.addEventListener||"load"===event.type||"complete"===he.readyState)&&(a(),ie.ready())}function l(e,t,n){if(void 0===n&&1===e.nodeType){var r="data-"+t.replace(Ne,"-$1").toLowerCase();if("string"==typeof(n=e.getAttribute(r))){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:Ce.test(n)?ie.parseJSON(n):n)}catch(e){}ie.data(e,t,n)}else n=void 0}return n}function u(e){var t;for(t in e)if(("data"!==t||!ie.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}function c(e,t,n,r){if(ie.acceptData(e)){var i,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)||void 0!==n||"string"!=typeof t)return u||(u=s?e[a]=Q.pop()||ie.guid++:a),l[u]||(l[u]=s?{}:{toJSON:ie.noop}),"object"!=typeof t&&"function"!=typeof t||(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),void 0!==n&&(o[ie.camelCase(t)]=n),"string"==typeof t?null==(i=o[t])&&(i=o[ie.camelCase(t)]):i=o,i}}function f(e,t,n){if(ie.acceptData(e)){var r,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)){i=(t=ie.isArray(t)?t.concat(ie.map(t,ie.camelCase)):t in r?[t]:(t=ie.camelCase(t))in r?[t]:t.split(" ")).length;for(;i--;)delete r[t[i]];if(n?!u(r):!ie.isEmptyObject(r))return}(n||(delete a[s].data,u(a[s])))&&(o?ie.cleanData([e],!0):ne.deleteExpando||a!=a.window?delete a[s]:a[s]=null)}}}function d(){return!0}function p(){return!1}function h(){try{return he.activeElement}catch(e){}}function m(e){var t=Me.split("|"),n=e.createDocumentFragment();if(n.createElement)for(;t.length;)n.createElement(t.pop());return n}function g(e,t){var n,r,i=0,o=typeof e.getElementsByTagName!==we?e.getElementsByTagName(t||"*"):typeof e.querySelectorAll!==we?e.querySelectorAll(t||"*"):void 0;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));return void 0===t||t&&ie.nodeName(e,t)?ie.merge([e],o):o}function y(e){Ae.test(e.type)&&(e.defaultChecked=e.checked)}function v(e,t){return ie.nodeName(e,"table")&&ie.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function b(e){return e.type=(null!==ie.find.attr(e,"type"))+"/"+e.type,e}function x(e){var t=Ue.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function w(e,t){for(var n,r=0;null!=(n=e[r]);r++)ie._data(n,"globalEval",!t||ie._data(t[r],"globalEval"))}function T(e,t){if(1===t.nodeType&&ie.hasData(e)){var n,r,i,o=ie._data(e),a=ie._data(t,o),s=o.events;if(s){delete a.handle,a.events={};for(n in s)for(r=0,i=s[n].length;r<i;r++)ie.event.add(t,n,s[n][r])}a.data&&(a.data=ie.extend({},a.data))}}functi
|
||
|
|
|
||
|
|
!function(){"undefined"==typeof Package&&(Package={}),Package["standard-minifier-css"]={}}();
|
||
|
|
|
||
|
|
!function(){"undefined"==typeof Package&&(Package={}),Package["standard-minifier-js"]={}}();
|
||
|
|
|
||
|
|
!function(){"undefined"==typeof Package&&(Package={}),Package["shell-server"]={}}();
|
||
|
|
|
||
|
|
!function(){var e=Package.meteor.Meteor,t=Package.meteor.global,a=Package.meteor.meteorEnv,n=Package.jquery.$,r=Package.jquery.jQuery,o=Package.modules.meteorInstall,i=Package.modules.process,c=Package["babel-runtime"].meteorBabelHelpers,l=Package.promise.Promise,s=Package["ecmascript-runtime-client"].Symbol,u=Package["ecmascript-runtime-client"].Map,m=Package["ecmascript-runtime-client"].Set;o({node_modules:{meteor:{"ohif:polyfill":{client:{"index.js":function(e,t,a){a.watch(e("./ie"))},"ie.js":function(e,t,a){var n=void 0;a.watch(e("meteor/jquery"),{$:function(e){n=e}},0);var r=void 0;if(a.watch(e("./lib/absoluteUrl"),{absoluteUrl:function(e){r=e}},1),navigator&&/MSIE \d|Trident.*rv:/.test(navigator.userAgent)){var o=function(e){var t=r("/packages/ohif_polyfill/public/js/"+e);document.write('<script src="'+t+'"><\/script>')};o("svgxuse.min.js"),o("typedarray.min.js"),window.addEventListener("click",function(e){window.SVGElementInstance&&e.target instanceof SVGElementInstance&&n(e.target.correspondingUseElement).trigger("click")},!0)}},lib:{"absoluteUrl.js":function(e,t,a){a.export({absoluteUrl:function(){return r}});var n=void 0;a.watch(e("meteor/meteor"),{Meteor:function(e){n=e}},0);var r=function(e){return e&&(e=e.replace(/^\//,"")),n.absoluteUrl(e)}}}}}}}},{extensions:[".js",".json"]})("./node_modules/meteor/ohif:polyfill/client/index.js"),"undefined"==typeof Package&&(Package={}),Package["ohif:polyfill"]={}}();
|
||
|
|
|
||
|
|
!function(){"undefined"==typeof Package&&(Package={}),Package["standard-app-packages"]={}}();
|
||
|
|
|
||
|
|
!function(){"undefined"==typeof Package&&(Package={}),Package.stylus={}}();
|
||
|
|
|
||
|
|
!function(){var e=Package.meteor.Meteor,n=Package.meteor.global,r=Package.meteor.meteorEnv,t=Package.tracker.Tracker,i=Package.tracker.Deps,o=Package["mongo-id"].MongoID,a=Package["diff-sequence"].DiffSequence,c=Package.underscore._,f=Package.random.Random,u,d,s,l;(function(){function e(e){return e instanceof Array||c.isArray(e)}var n=function(){u._suppressWarnings?u._suppressWarnings--:("undefined"!=typeof console&&console.warn&&console.warn.apply(console,arguments),u._loggedWarnings++)},r=o.idStringify,i=o.idParse;u={_suppressWarnings:0,_loggedWarnings:0,observe:function(n,r){var i=null,o=null,f=[],u=t.autorun(function(){var u=n();t.nonreactive(function(){var n;if(o&&(f=c.map(i.fetch(),function(e){return{_id:e._id,item:e}}),o.stop(),o=null),u)if(e(u))n=s(f,u,r);else{if(!v(u))throw a();var t=l(f,u,r);n=t[0],o=t[1]}else n=d(f,r);p(f,n,r),i=u,f=n})});return{stop:function(){u.stop(),o&&o.stop()}}},fetch:function(n){if(n){if(e(n))return n;if(v(n))return n.fetch();throw a()}return[]}};var a=function(){return new Error("{{#each}} currently only accepts arrays, cursors or falsey values.")},v=function(e){return e&&c.isObject(e)&&c.isFunction(e.observe)&&c.isFunction(e.fetch)},p=function(e,n,t){var o=Package["diff-sequence"].DiffSequence.diffQueryOrderedChanges,a=[],f=[],u={},d={},s={},l=e.length;c.each(n,function(e,n){f.push({_id:e._id}),d[r(e._id)]=n}),c.each(e,function(e,n){a.push({_id:e._id}),u[r(e._id)]=n,s[r(e._id)]=n}),o(a,f,{addedBefore:function(e,i,o){var a=o?s[r(o)]:l;o&&c.each(s,function(e,n){e>=a&&s[n]++}),l++,s[r(e)]=a,t.addedAt(e,n[d[r(e)]].item,a,o)},movedBefore:function(e,i){if(e!==i){var o=s[r(e)],a=i?s[r(i)]:l;a>o&&a--,c.each(s,function(e,n){o<e&&e<a?s[n]--:a<=e&&e<o&&s[n]++}),s[r(e)]=a,t.movedTo(e,n[d[r(e)]].item,o,a,i)}},removed:function(n){var i=s[r(n)];c.each(s,function(e,n){e>=i&&s[n]--}),delete s[r(n)],l--,t.removedAt(n,e[u[r(n)]].item,i)}}),c.each(d,function(r,o){var a=i(o);if(c.has(u,o)){var f=n[r].item,d=e[u[o]].item;"object"!=typeof f&&f===d||t.changedAt(a,f,d,r)}})};d=function(e,n){return[]},s=function(e,t,i){var o={};return c.map(t,function(e,i){var a;if("string"==typeof e)a="-"+e;else if("number"==typeof e||"boolean"==typeof e||void 0===e||null===e)a=e;else{if("object"!=typeof e)throw new Error("{{#each}} doesn't support arrays with elements of type "+typeof e);a=e&&"_id"in e?e._id:i}var c=r(a);return o[c]?(e&&"object"==typeof e&&"_id"in e&&n("duplicate id "+a+" in",t),a=f.id()):o[c]=!0,{_id:a,item:e}})},l=function(e,n,r){var t=!0,i=[],o=n.observe({addedAt:function(e,n,o){if(t){if(null!==o)throw new Error("Expected initial data from observe in order");i.push({_id:e._id,item:e})}else r.addedAt(e._id,e,n,o)},changedAt:function(e,n,t){r.changedAt(e._id,e,n,t)},removedAt:function(e,n){r.removedAt(e._id,e,n)},movedTo:function(e,n,t,i){r.movedTo(e._id,e,n,t,i)}});return t=!1,[i,o]}}).call(this),"undefined"==typeof Package&&(Package={}),function(e,n){for(var r in n)r in e||(e[r]=n[r])}(Package["observe-sequence"]={},{ObserveSequence:u})}();
|
||
|
|
|
||
|
|
!function(){var a=Package.tracker.Tracker,e=Package.tracker.Deps;"undefined"==typeof Package&&(Package={}),function(a,e){for(var c in e)c in a||(a[c]=e[c])}(Package.deps={},{Tracker:a,Deps:e})}();
|
||
|
|
|
||
|
|
!function(){var t=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){return t},s=Array.prototype.slice}).call(this),function(){var t=Object.prototype.hasOwnProperty,e=function(e,i){for(var r in i)t.call(i,r)&&(e[r]=i[r]);return e};o.Visitor=function(t){e(this,t)},o.Visitor.def=function(t){e(this.prototype,t)},o.Visitor.extend=function(t){var i=this,r=function t(){o.Visitor.apply(this,arguments)};return r.prototype=new i,r.extend=i.extend,r.def=i.def,t&&e(r.prototype,t),r},o.Visitor.def({visit:function(t){if(null==t)return this.visitNull.apply(this,arguments);if("object"==typeof t){if(t.htmljsType)switch(t.htmljsType){case o.Tag.htmljsType:return this.visitTag.apply(this,arguments);case o.CharRef.htmljsType:return this.visitCharRef.apply(this,arguments);case o.Comment.htmljsType:return this.visitComment.apply(this,arguments);case o.Raw.htmljsType:return this.visitRaw.apply(this,arguments);default:throw new Error("Unknown htmljs type: "+t.htmljsType)}return o.isArray(t)?this.visitArray.apply(this,arguments):this.visitObject.apply(this,arguments)}if("string"==typeof t||"boolean"==typeof t||"number"==typeof t)return this.visitPrimitive.apply(this,arguments);if("function"==typeof t)return this.visitFunction.apply(this,arguments);throw new Error("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){throw new Error("Unexpected object in htmljs: "+t)},visitFunction:function(t){throw new Error("Unexpected function in htmljs: "+t)}}),o.TransformingVisitor=o.Visitor.extend(),o.TransformingVisitor.def({visitNull:a,visitPrimitive:a,visitArray:function(t){for(var e=s.call(arguments),i=t,r=0;r<t.length;r++){var n=t[r];e[0]=n;var o=this.visit.apply(this,e);o!==n&&(i===t&&(i=t.slice()),i[r]=o)}return i},visitComment:a,visitCharRef:a,visitRaw:a,visitObject:a,visitFunction:a,visitTag:function(t){var e=t.children,i=s.call(arguments);i[0]=e;var r=this.visitChildren.apply(this,i),n=t.attrs;i[0]=n;var a=this.visitAttributes.apply(this,i);if(a===n&&r===e)return t;var l=o.getTag(t.tagName).apply(null,r);return l.attrs=a,l},visitChildren:function(t){return this.visitArray.apply(this,arguments)},visitAttributes:function(t){if(o.isArray(t)){for(var i=s.call(arguments),r=t,n=0;n<t.length;n++){var a=t[n];i[0]=a;var l=this.visitAttributes.apply(this,i);l!==a&&(r===t&&(r=t.slice()),r[n]=l)}return r}if(t&&o.isConstructedObject(t))throw new Error("The basic HTML.TransformingVisitor does not support foreign objects in attributes. Define a custom visitAttributes for this case.");var u=t,f=u;if(u){var c=[null,null];c.push.apply(c,arguments);for(var h in u){var p=u[h];c[0]=h,c[1]=p;var m=this.visitAttribute.apply(this,c);m!==p&&(f===u&&(f=e({},u)),f[h]=m)}}return f},visitAttribute:function(t,e,i){var r=s.call(arguments,2);return r[0]=e,this.visit.apply(this,r)}}),o.ToTextVisitor=o.Visitor.extend(),o.ToTextVisitor.def({visitNull:function(t){return""},visitPrimitive:function(t){var e=String(t);return this.textMode===o.TEXTMODE.RCDATA?e.replace(/&/g,"&").replace(/</g,"<"):this.textMode===o.TEXTMODE.ATTRIBUTE?e.replace(/&/g,"&").replace(/"/g,"""):e},visitArray:function(t){for(var e=[],i=0;i<t.length;i++)e.push(this.visit(t[i]));return e.join("")},visitComment:function(t){throw new Error("Can't have a comment here")},visitCharRef:function(t){return this.textMode===o.TEXTMODE.RCDATA||this.textMode===o.TEXTMODE.ATTRIBUTE?t.html:t.str},visitRaw:function(t){return t.value},visitTag:function(t){return this.visit(this.toHTML(t))},visitObject:function(t){throw new Error("Unexpected object in htmljs in toText: "+t)},toHTML:function(t){return o.toHTML(t)}}),o.ToHTMLVisitor=o.Visitor.extend(),o.ToHTMLVisitor.def({visitNull:function(t){return""},visitPrimitive:function(t){return String(t).replace(/&/g,"&").replace(/</g,"<")},visitArray:function(t){for(var e=[],i=
|
||
|
|
|
||
|
|
!function(){var e=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["ordered-dict"].OrderedDict,h=Package.htmljs.HTML,f,m,w,_,v;(function(){(f={})._escape=function(){var e={"<":"<",">":">",'"':""","'":"'","/":"/","`":"`","&":"&"},t=function(t){return e[t]};return function(e){return e.replace(/[&<>"'`]/g,t)}}(),f._warn=function(e){e="Warning: "+e,"undefined"!=typeof console&&console.warn&&console.warn(e)};var e=Function.prototype.bind;f._bind=e?function(t,n){if(2===arguments.length)return e.call(t,n);for(var r=new Array(arguments.length),i=0;i<r.length;i++)r[i]=arguments[i];return e.apply(t,r.slice(1))}:c.bind}).call(this),function(){var e={};f._DOMBackend=e;var t=void 0!==i?i:"undefined"!=typeof Package?Package.jquery&&Package.jquery.jQuery:null;if(!t)throw new Error("jQuery not found");e._$jq=t,e.parseHTML=function(e){return t.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){var o=t(n),s=function(e){(e=t.event.fix(e)).currentTarget=e.target,t(e.currentTarget).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){var t=e.indexOf(".");return t>=0?e.slice(0,t):e}};var n=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(){var e=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){var o=new r(a),s=e.Teardown._CB_PROP;return i[s]||(i[s]=new r,t(i).on(e.Teardown._JQUERY_EVENT_NAME,n)),o.linkBefore(i[s]),o},tearDownElement:function(e){for(var n=[],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(){var t=this,n=t[e.Teardown._CB_PROP];if(n){for(var r=n.next;r!==n;)r.go(),r=r.next;n.go(),t[e.Teardown._CB_PROP]=null}}},e.findBySelector=function(e,n){return t(e,n)}}.call(this),function(){var e=Object.freeze?Object.freeze([]):[];f._DOMRange=function(n){if(!(this instanceof t))return new t(n);var r=n||e;if(!r||"number"!=typeof r.length)throw new Error("Expected array");for(var i=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};var t=f._DOMRange;t._USE_COMMENT_PLACEHOLDERS=function(){var e=!1,t=document.createTextNode("");try{t.someProp=!0}catch(t){e=!0}return e}(),t._insert=function(e,n,r,i){var a=e;a instanceof t?a.attach(n,r,i):i?t._moveNodeWithHooks(a,n,r):t._insertNodeWithHooks(a,n,r)},t._remove=function(e){var n=e;n instanceof t?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)throw new Error("Expected element, found: "+e);for(var t=null;e&&!t;)(t=e.$blaze_range||null)||(e=e.parentNode);return t},t.protot
|
||
|
|
|
||
|
|
!function(){var e=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,r=Package["observe-sequence"].ObserveSequence,a=Package.underscore._,u=Package.tracker.Tracker,i=Package.tracker.Deps,c=Package.htmljs.HTML,l=Package.blaze.Blaze,o=Package.blaze.UI,f=Package.blaze.Handlebars,p;(function(){var e=function(e,t){return e===t};(p={}).include=function(t,n,r){if(!t)return null;if("function"!=typeof t){var a=t;if(!l.isTemplate(a))throw new Error("Expected template or null, found: "+a);return(i=t.constructView(n,r)).__startsNewLexicalScope=!0,i}var u=l.ReactiveVar(null,e),i=l.View("Spacebars.include",function(){var e=u.get();if(null===e)return null;if(!l.isTemplate(e))throw new Error("Expected template or null, found: "+e);return e.constructView(n,r)});return i.__templateVar=u,i.onViewCreated(function(){this.autorun(function(){u.set(t())})}),i.__startsNewLexicalScope=!0,i},p.mustacheImpl=function(e){var t=arguments;if(t.length>1){var n=t[t.length-1];if(n instanceof p.kw){var r={};for(var a in n.hash){var u=n.hash[a];r[a]="function"==typeof u?u():u}t[t.length-1]=p.kw(r)}else n=p.kw(),(t=Array.prototype.slice.call(arguments)).push(n)}return p.call.apply(null,t)},p.mustache=function(e){var t=p.mustacheImpl.apply(null,arguments);return t instanceof p.SafeString?c.Raw(t.toString()):null==t||!1===t?null:String(t)},p.attrMustache=function(e){var t=p.mustacheImpl.apply(null,arguments);if(null==t||""===t)return null;if("object"==typeof t)return t;if("string"==typeof t&&c.isValidAttributeName(t)){var n={};return n[t]="",n}throw new Error("Expected valid attribute name, '', null, or object")},p.dataMustache=function(e){return p.mustacheImpl.apply(null,arguments)},p.makeRaw=function(e){return null==e?null:e instanceof c.Raw?e:c.Raw(e)},p.call=function(e){if("function"==typeof e){for(var t=[],n=1;n<arguments.length;n++){var r=arguments[n];t[n-1]="function"==typeof r?r():r}return e.apply(null,t)}if(null!=e&&arguments.length>1)throw new Error("Can't call non-function: "+e);return e},p.kw=function(e){if(!(this instanceof p.kw))return new p.kw(e);this.hash=e||{}},p.SafeString=function(e){return this instanceof p.SafeString?new f.SafeString(e):new p.SafeString(e)},p.SafeString.prototype=f.SafeString.prototype,p.dot=function(e,t){if(arguments.length>2){var n=[];return n.push(p.dot(e,t)),n.push.apply(n,Array.prototype.slice.call(arguments,2)),p.dot.apply(null,n)}if("function"==typeof e&&(e=e()),!e)return e;var r=e[t];return"function"!=typeof r?r:function(){return r.apply(e,arguments)}},p.With=function(e,t,n){var r=new l.ReactiveVar,a=l.View("Spacebars_with",function(){return l.If(function(){return r.get()},function(){return l.With(function(){return r.get()},t)},n)});return a.onViewCreated(function(){this.autorun(function(){r.set(e()),u.onInvalidate(function(){r.dep.changed()})})}),a},p.TemplateWith=l._TemplateWith}).call(this),"undefined"==typeof Package&&(Package={}),function(e,t){for(var n in t)n in e||(e[n]=t[n])}(Package.spacebars={},{Spacebars:p})}();
|
||
|
|
|
||
|
|
!function(){"undefined"==typeof Package&&(Package={}),Package["templating-compiler"]={}}();
|
||
|
|
|
||
|
|
!function(){var e=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;var e="__proto__ name".split(" ");l.__checkName=function(t){if(t in l||a.contains(e,t)){if(l[t]instanceof l&&"body"!==t)throw new Error("There are multiple templates named '"+t+"'. Each template needs a unique name.");throw new Error("This template name is reserved: "+t)}},l.__define__=function(e,t){l.__checkName(e),l[e]=new l("Template."+e,t),l[e]._NOWARN_OLDSTYLE_HELPERS=!0},l.body=new l("body",function(){var e=this;return a.map(l.body.contentRenderFuncs,function(t){return t.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){var e=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=new l("Template.__dynamic",function(){var e=this;return[o.View("lookup:checkContext",function(){return i.mustache(e.lookup("checkContext"))}),"\n ",o.If(function(){return i.call(e.lookup("dataContextPresent"))},function(){return["\n ",i.include(e.lookupTemplate("__dynamicWithDataContext"),function(){return o._InOuterTemplateScope(e,function(){return i.include(function(){return i.call(e.templateContentBlock)})})}),"\n "]},function(){return["\n \n ",o._TemplateWith(function(){return{template:i.call(e.lookup("template")),data:i.call(e.lookup(".."))}},function(){return i.include(e.lookupTemplate("__dynamicWithDataContext"),function(){return o._InOuterTemplateScope(e,function(){return i.include(function(){return i.call(e.templateContentBlock)})})})}),"\n "]})]}),l.__checkName("__dynamicWithDataContext"),l.__dynamicWithDataContext=new l("Template.__dynamicWithDataContext",function(){var e=this;return i.With(function(){return i.dataMustache(e.lookup("chooseTemplate"),e.lookup("template"))},function(){return["\n \n ",o._TemplateWith(function(){return i.call(i.dot(e.lookup(".."),"data"))},function(){return i.include(e.lookupTemplate(".."),function(){return o._InOuterTemplateScope(e,function(){return i.include(function(){return i.call(e.templateContentBlock)})})})}),"\n "]})})}.call(this),function(){var e=o.Template;e.__dynamicWithDataContext.helpers({chooseTemplate:function(t){return o._getTemplate(t,function(){return e.instance()})}}),e.__dynamic.helpers({dataContextPresent:function(){return a.has(this,"data")},checkContext:function(){if(!a.has(this,"template"))throw new Error("Must specify name in the 'template' argument to {{> Template.dynamic}}.");a.each(this,function(e,t){if("template"!==t&&"data"!==t)throw new Error("Invalid argument to {{> Template.dynamic}}: "+t)})}})}.call(this),"undefined"==typeof Package&&(Package={}),function(e,t){for(var n in t)n in e||(e[n]=t[n])}(Package["templating-runtime"]={},{Template:l})}();
|
||
|
|
|
||
|
|
!function(){var a=Package["templating-runtime"].Template;"undefined"==typeof Package&&(Package={}),function(a,e){for(var n in e)n in a||(a[n]=e[n])}(Package.templating={},{Template:a})}();
|
||
|
|
|
||
|
|
!function(){var a=Package.blaze.Blaze,e=Package.blaze.UI,n=Package.blaze.Handlebars;"undefined"==typeof Package&&(Package={}),function(a,e){for(var n in e)n in a||(a[n]=e[n])}(Package.ui={},{Blaze:a,UI:e,Handlebars:n})}();
|
||
|
|
|
||
|
|
!function(){var e=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"])throw new Error("\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={}).utils={},i.utils.assert=function(e,t){if(!e)throw new Error(t)},i.utils.warn=function(e,t){e||console&&console.warn&&console.warn(t)},i.utils.defaultValue=function(e,t,n){return void 0===e[t]?(e[t]=n,n):e[t]},i.utils.inherits=function(e,t,n){i.utils.assert(void 0!==e,"Child is undefined in inherits function"),i.utils.assert(void 0!==t,"Parent is undefined in inherits function");for(var a in t)r.has(t,a)&&(e[a]=o.clone(t[a]));var s=function(){this.constructor=e};return s.prototype=t.prototype,e.prototype=new s,e.__super__=t.prototype,r.isObject(n)&&r.extend(e.prototype,n),e},i.utils.extend=function(e,t){t=t||{};var n=function(){var e;(e=r.has(t,"constructor")?t.constructor:n.__super__.constructor).apply(this,arguments)};return i.utils.inherits(n,e,t)},i.utils.global=function(){return e.isClient?window:t}(),i.utils.namespace=function(e,t){var n=i.utils.global,r,o,a,s;i.utils.assert("string"==typeof e,"namespace must be a string"),a=(r=e.split(".")).pop(),s=n;for(var c=0;c<r.length;c++)s=s[o=r[c]]=s[o]||{};return 2===arguments.length?(s[a]=t,t):s[a]},i.utils.resolve=function(e){var t=i.utils.global,n,r;if("string"==typeof e){n=e.split("."),r=t;for(var o=0;o<n.length;o++)if(!(r=r[n[o]]))return}else r=e;return r},i.utils.capitalize=function(e){return e.charAt(0).toUpperCase()+e.slice(1,e.length)},i.utils.classCase=function(e){var t=/_|-|\.|\//;return e?r.map(e.split(t),function(e){return i.utils.capitalize(e)}).join(""):""},i.utils.camelCase=function(e){var t=i.utils.classCase(e);return t=t.charAt(0).toLowerCase()+t.slice(1,t.length)},i.utils.notifyDeprecated=function(e){var t,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"!=typeof console&&console.warn&&console.warn("<deprecated> "+o.replace(":name",t).replace(":instead",n).replace(":where",i)+" "+(new Error).stack)},i.utils.withDeprecatedNotice=function(e,t,n){return function(){return Utils.notifyDeprecated(e),t&&t.apply(n||this,arguments)}},Function.prototype.deprecate=function(e){var t=this;return i.utils.withDeprecatedNotice(e,t)},i.utils.debug=function(e){return i.utils.assert("string"==typeof e,"debug requires a package name"),function t(){if(console&&console.log&&!0===i.debug){var n=r.toArray(arguments).join(" ");console.log("%c<"+e+"> %c"+n,"color: #999;","color: #000;")}}},i.utils.get=function(e){for(var t=1;t<arguments.length;t++){if(!(e&&arguments[t]in e))return;e=e[arguments[t]]}return e},i.utils.global.Iron=i}.call(this),"undefined"==typeof Package&&(Package={}),function(e,t){for(var n in t)n in e||(e[n]=t[n])}(Package["iron:core"]={},{Iron:i})}();
|
||
|
|
|
||
|
|
!function(){var e=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,_=Package.htmljs.HTML,f=Package.spacebars.Spacebars,v;(function(){if(Package["cmather:iron-dynamic-template"])throw new Error("\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__=new h("Template.__DynamicTemplateError__",function(){var e=this;return _.DIV({style:"margin: 0 auto; color: red;"},"\n ",a.View("lookup:msg",function(){return f.mustache(e.lookup("msg"))}),"\n ")})}.call(this),function(){var e=m.utils.debug("iron:dynamic-template"),t=m.utils.assert,n=m.utils.get,i=m.utils.camelCase,u=function(e){return Object.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=new c.Dependency,this._dataDep=new c.Dependency,this._lookupHostDep=new c.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}).prototype.template=function(e){if(1===arguments.length&&e!==this._template)return this._template=e,void this._templateDep.changed();if(!(arguments.length>0))return this._templateDep.depend(),this._template?"function"==typeof this._template?this._template():this._template:this._defaultTemplate?"function"==typeof this._defaultTemplate?this._defaultTemplate():this._defaultTemplate:void 0},v.prototype.defaultTemplate=function(e){if(1!==arguments.length)return this._defaultTemplate;this._defaultTemplate=e},v.prototype.clear=function(){this._template=void 0,this._data=void 0,this._templateDep.changed()},v.prototype.data=function(e){return 1===arguments.length&&e!==this._data?(this._data=e,void this._dataDep.changed()):(this._dataDep.depend(),"function"==typeof this._data?this._data():this._data)},v.prototype.create=function(e){var t=this;if(this.isCreated)throw new Error("DynamicTemplate view is already created");this.isCreated=!0,this.isDestroyed=!1;var n=p(null),r=a.View("DynamicTemplate",function(){var e=this,r=n.get();return a.With(function(){var n=t.data();return void 0!==n?n:v.getParentDataContext(e)},function(){return t.renderView(r)})});return r.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=new a.TemplateInstance(r),r.templateInstance=function(){var e=r._templateInstance;return e.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){var t=this,n=null;return"string"==typeof e?((n=h[e])||(n=h[i(e)]),n||(n=a.With({msg:"Couldn't find a t
|
||
|
|
|
||
|
|
!function(){var e=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(){var e=[];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)throw new Error("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__=new r("Template.__IronDefaultLayout__",function(){var e=this;return g.include(e.lookupTemplate("yield"))})}.call(this),function(){var e=h.DynamicTemplate,n=h.utils.inherits;d=function(e){for(;e;){if("Iron.Layout"===e.name)return e.__dynamicTemplate__;e=e.parentView}return null},m=(p=function(e){var n=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)}).DEFAULT_REGION="main",n(p,h.DynamicTemplate),p.prototype.region=function(e,n){return this._ensureRegion(e,n)},p.prototype.destroyRegions=function(){s.each(this._regions,function(e){e.destroy()}),this._regions={}},p.prototype.render=function(e,n){var t=(n=n||{}).to||n.region||m,r=this.region(t);this._trackRenderedRegion(t),r.template(e),r.data(n.data)},p.prototype.has=function(e){return e=e||p.DEFAULT_REGION,!!this._regions[e]},p.prototype.regionKeys=function(){return s.keys(this._regions)},p.prototype.clear=function(e){return e=e||p.DEFAULT_REGION,this.has(e)&&this.region(e).template(null),this},p.prototype.clearAll=function(){return s.each(this._regions,function(e){e.template(null)}),this},p.prototype.beginRendering=function(e){var n=this;if(this._finishRenderingTransaction&&this._finishRenderingTransaction(),this._finishRenderingTransaction=s.once(function(){var t=n._endRendering({flush:!1});e&&e(t)}),u.afterFlush(this._finishRenderingTransaction),this._renderedRegions)throw new Error("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){!1!==(e=e||{}).flush&&u.flush();var n=this._renderedRegions||{};return this._renderedRegions=null,s.keys(n)},s.each(["onRegionCreated","onRegionRendered","onRegionDestroyed"],function(e){p.prototype[e]=function(n){return(this._regionHooks[e]=this._regionHooks[e]||[]).push(n),this}}),p.prototype._ensureRegion=function(e,n){return this._regions[e]=this._regions[e]||this._createDynamicTemplate(e,n)},p.prototype._createDynamicTemplate=function(e,n){var t=this,r=new h.DynamicTemplate(n),o=h.utils.capitalize;return r._region=e,s.each(["viewCreated","viewReady","viewDestroyed"],function(e){e=o(e),r["on"+e](function(n){var r=this,o={viewCreated:"regionCreated",viewReady:"regionRendered",viewDestroyed:"regionDestroyed"}[e];t._runRegionHooks("on"+o,r,n)})}),r},p.prototype._runRegionHooks=function(e,n,t){for(var r=this,o=this._regionHooks[e]||[],i,a=0;a<o.length;a++)(i=o[a]).call(n,t.region,t,this)},void 0!==r
|
||
|
|
|
||
|
|
!function(){var e=Package.meteor.Meteor,r=Package.meteor.global,t=Package.meteor.meteorEnv,n=Package.underscore._,i=Package["iron:core"].Iron,o,a;(function(){function e(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function r(o,a,s){a&&"[object Array]"!==t(a)&&(s=a,a=null),a=a||[];var c=(s=s||{}).strict,u=!1!==s.end,p=s.sensitive?"":"i",l=0;if(o instanceof RegExp){var h=o.source.match(/\((?!\?)/g)||[];return a.push.apply(a,h.map(function(e,r){return{name:r,delimiter:null,optional:!1,repeat:!1}})),i(o,a)}if("[object Array]"===t(o))return o=o.map(function(e){return r(e,a,s).source}),i(new RegExp("(?:"+o.join("|")+")",p),a);var f="/"===(o=o.replace(n,function(r,t,n,i,o,s,c,u){if(t)return t;if(u)return"\\"+u;var p="+"===c||"*"===c,h="?"===c||"*"===c;return a.push({name:i||l++,delimiter:n||"/",optional:h,repeat:p}),n=n?"\\"+n:"",o=e(o||s||"[^"+(n||"\\/")+"]+?"),p&&(o=o+"(?:"+n+o+")*"),h?"(?:"+n+"("+o+"))?":n+"("+o+")"}))[o.length-1];return c||(o=(f?o.slice(0,-2):o)+"(?:\\/(?=$))?"),u||(o+=c&&f?"":"(?=\\/|$)"),i(new RegExp("^"+o+(u?"$":""),p),a)}var t=function(e){return Object.prototype.toString.call(e)},n=new RegExp(["(\\\\.)","([\\/.])?(?:\\:(\\w+)(?:\\(((?:\\\\.|[^)])*)\\))?|\\(((?:\\\\.|[^)])*)\\))([+*?])?","([.+*?=^!:${}()[\\]|\\/])"].join("|"),"g"),i=function(e,r){return e.keys=r,e};o=r}).call(this),function(){function e(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(r){return void(r.constructor==URIError&&t("Tried to decode an invalid URI component: "+JSON.stringify(e)+" "+r.stack))}}function r(e){try{return decodeURI(e.replace(/\+/g," "))}catch(r){return void(r.constructor==URIError&&t("Tried to decode an invalid URI: "+JSON.stringify(e)+" "+r.stack))}}var t=i.utils.warn;(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))}).normalize=function(e){if(e instanceof RegExp)return e;if("string"!=typeof e)return"/";var r=a.parse(e).pathname;return"/"!==r.charAt(0)&&(r="/"+r),r.length>1&&"/"===r.charAt(r.length-1)&&(r=r.slice(0,r.length-1)),r},a.isSameOrigin=function(e,r){var t=a.parse(e),n=a.parse(r);return t.origin===n.origin},a.fromQueryString=function(r){if(!r)return{};if("string"!=typeof r)throw new Error("expected string");"?"===r.charAt(0)&&(r=r.slice(1));var t=r.split("&"),i={},o;return n.each(t,function(r){var t=r.split("="),n=e(t[0]),o=e(t[1]);void 0!==n&&void 0!==o&&"[]"===n.slice(-2)?(n=n.slice(0,-2),i[n]=i[n]||[],i[n].push(o)):i[n]=o}),i},a.toQueryString=function(e){var r=[];return"string"==typeof e?"?"!==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"!=typeof e)return{};var r=/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,t=e.match(r),n=t[1]?t[1].toLowerCase():void 0,i=!!t[3],o=t[4]?t[4].toLowerCase():void 0,s=o?o.split("@"):[],c,u;2==s.length?(u=s[0],c=s[1]):1==s.length?(c=s[0],u=void 0):(c=void 0,u=void 0);var p=c&&c.split(":")||[],l=p[0],h=p[1],f=n&&c?n+"//"+c:void 0,g=t[5],d=t[8],m=e,v=t[6],y,w=d&&d.indexOf("?")||-1;~w&&!v?(v=d.slice(w),d=d.substr(0,w),y=v.slice(1)):y=t[7];var R=g+(v||""),x=a.fromQueryString(y),U=[n||"",i?"//":"",o||""].join(""),S=[n||"",i?"//":"",o||"",g||"",v||"",d||""].join("");return{rootUrl:U||"",originalUrl:e||"",href:S||"",protocol:n||"",auth:u||"",host:c||"",hostname:l||"",port:h||"",origin:f||"",path:R||"",pathname:g||"",search:v||"",query:y||"",queryObject:x||"",hash:d||"",slashes:i}},a.prototype.test=function(e){return this.regexp.test(a.normalize(e))},a.prototype.exec=function(e){return this.regexp.exec(a.normalize(e))},a.prototype.params=function(t){if(!t)return[];var n=[],i=this.exec(t),o,s=this.keys,c,u;if(!i)throw new Error('The route named "'+this.name+'" does not match the path "'+t+'"');for(var p=1,l=i.length;p<l;++p)c=s[p-1],u="string"==typeof i[p]?e(i[p]):i[p],c?n[c.name]=void 0!==n[c.name]?n[c.name]:u:n.push(u);return void 0!==r(t)&&((o=t.split("?")[1])&&(o=
|
||
|
|
|
||
|
|
!function(){var t=Package.meteor.Meteor,e=Package.meteor.global,n=Package.meteor.meteorEnv,r=Package.underscore._,i=Package.ejson.EJSON,o=Package["iron:core"].Iron,a,s;(function(){var t=o.Url;(a=function(e,n,i){r.isFunction(e)&&(i=i||n||{},n=e,e="/",this.middleware=!0,void 0===i.mount&&(i.mount=!0)),"object"==typeof n&&(n=(i=n).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"==typeof e&&"/"!==e.charAt(0)?this.name=e:"string"==typeof e&&"/"!==e&&(this.name=e.split("/").slice(1).join(".")),"string"==typeof(e=i.path||e)&&"/"!==e.charAt(0)&&(e="/"+e),this.path=e,this.compiledUrl=new t(e,i),r.isString(n)?this.handle=function t(){var e=this[n];if("function"!=typeof e)throw new Error("No method named "+JSON.stringify(n)+" found on handler.");return e.apply(this,arguments)}:r.isFunction(n)&&(this.handle=n)}).prototype.test=function(t,e){e=e||{};var n=this.compiledUrl.test(t),r=!0,i=!0;return this.method&&e.method&&(r=this.method==e.method.toLowerCase()),e.where&&(i=this.where==e.where),n&&r&&i},a.prototype.params=function(t){return this.compiledUrl.params(t)},a.prototype.resolve=function(t,e){return this.compiledUrl.resolve(t,e)},a.prototype.clone=function(){var t=new a(this.path,this.handle,this.options);return t.name=this.name,t}}).call(this),function(){var e=o.Url,n=o.utils.assert,h=o.utils.defaultValue;(s=function(){this._stack=[],this.length=0}).prototype._create=function(t,e,n){var i=new a(t,e,n),o=i.name;if(o){if(r.has(this._stack,o))throw new Error("Handler with name '"+o+"' already exists.");this._stack[o]=i}return i},s.prototype.findByName=function(t){return this._stack[t]},s.prototype.push=function(t,e,n){var r=this._create(t,e,n);return this._stack.push(r),this.length++,r},s.prototype.append=function(){var t=this,e=r.toArray(arguments),n={};return"object"==typeof e[e.length-1]&&(n=e.pop()),r.each(e,function(e){if(void 0!==e)if("function"==typeof e)t.push(e,n);else{if(!r.isArray(e))throw new Error("Can only append functions or arrays to the MiddlewareStack");t.append.apply(t,e.concat([n]))}}),this},s.prototype.insertAt=function(t,e,n,r){var i=this._create(e,n,r);return this._stack.splice(t,0,i),this.length=this._stack.length,this},s.prototype.insertBefore=function(t,e,n,i){var o,a;if(!(o=this._stack[t]))throw new Error("Couldn't find a handler named '"+t+"' on the path stack");return a=r.indexOf(this._stack,o),this.insertAt(a,e,n,i),this},s.prototype.insertAfter=function(t,e,n,i){var o,a;if(!(o=this._stack[t]))throw new Error("Couldn't find a handler named '"+t+"' on the path stack");return a=r.indexOf(this._stack,o),this.insertAt(a+1,e,n,i),this},s.prototype.concat=function(){var t=new s,e=Array.prototype.concat,n=i.clone(this._stack),o=r.map(r.toArray(arguments),function(t){return i.clone(t._stack)});return t._stack=e.apply(n,o),t.length=t._stack.length,t},s.prototype.dispatch=function r(i,o,a){var s=this,l=i;n("string"==typeof i,"Requires url"),n("object"==typeof o,"Requires context object"),i=e.normalize(i||"/"),h(o,"request",{}),h(o,"response",{}),h(o,"originalUrl",i),h(o,"_method",o.method),h(o,"_handlersForEnv",{client:!1,server:!1}),h(o,"_handled",!1),h(o,"isHandled",function(){return o._handled}),h(o,"willBeHandledOnClient",function(){return o._handlersForEnv.client}),h(o,"willBeHandledOnServer",function(){return o._handlersForEnv.server});var c=function(){if(a)try{a.apply(this,arguments)}catch(t){throw t._punt=!0,t}},u=0,p=t.bindEnvironment(function n(r){var a=s._stack[u++];if(o.url=o.request.url=o.originalUrl,!a)return c.call(o,r);if(!a.test(i,{method:o._method}))return p(r);var h=t.isClient?"client":"server";if(a.middleware||(o._handlersForEnv[a.where]=!0),a.where!==h)return p(r);if(o.next=p,a.mount){var l=e.normalize(a.compiledUrl.pathname),d=i.substr(l.length,i.length);d=e.normalize(d),o.url=o.request.url=d}try{var f=a.handle.length,m=o.request,y=o.response;return r&&4===f?a.handle.call(o,r,m,y,p):!r&&f<4?a.handle.call(o,m,y,p):p(r)}catch(r){if(r._punt)throw r;
|
||
|
|
|
||
|
|
!function(){var t=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,u,l,f,p;(function(){var t=s.Url,e="__hash__";h=function(e){var n=t.parse(e),a=n.hash&&n.hash.replace("#",""),r=n.search,o=n.pathname,i=n.rootUrl;if(a&&"!"!==a.charAt(0)){var c="__hash__="+a;r=r?r+"&":"?",r+=c,a=""}return!a&&o?a="#!"+o.substring(1):a&&(a="#"+a),[i,a,r].join("")},u=function(e){var n=t.parse(e),r=n.hash&&n.hash.replace("#!","/"),o=n.search,i=n.rootUrl,c;return a.has(n.queryObject,"__hash__")?(c="#"+n.queryObject.__hash__,delete n.queryObject.__hash__):c="",[i,r,t.toQueryString(n.queryObject),c].join("")},l=function(e){var n=t.parse(e),a=n.queryObject;return n.hash&&(a.__hash__=n.hash.replace("#","")),["!",n.pathname.substring(1),t.toQueryString(a)].join("")}}).call(this),function(){var t=s.Url;(f=function(e,n){a.extend(this,t.parse(e),{options:n||{}})}).prototype.equals=function(t){return!!t&&(t instanceof f&&(t.pathname==this.pathname&&t.search==this.search&&t.hash==this.hash&&t.options.historyState===this.options.historyState))},f.prototype.isCancelled=function(){return!!this._isCancelled},f.prototype.cancelUrlChange=function(){this._isCancelled=!0}}.call(this),function(){var e=s.Url,n=null,r=new o.Dependency,c={go:[],popState:[]},g=function(){return/MSIE 9/.test(navigator.appVersion)},y=function(){return/MSIE 8/.test(navigator.appVersion)},_=function(){return!!Package.appcache},d=function(){return"undefined"==typeof history||"function"!=typeof history.pushState},S=function(){return p.options.useHashPaths||y()||g()||_()||d()},v=function(){return!!p.options.useHashPaths},k=function(t,e){a.each(c[t],function(t){t.call(e)})},w=function(t){if(!(t instanceof f))throw new Error("Expected a State instance");return!t.equals(n)&&(n=t,r.changed(),!0)},P=function(){var t=location.href,e;e=v()?new f(u(t)):new f(t,{historyState:history.state}),k("popState",e),w(e)},m=function(t){var e=q;e&&e(t)},j=function(t,e){var n=new f(t,e=e||{});k("go",n),w(n)&&o.afterFlush(function(){n.isCancelled()||(v()?location.hash=l(t):!0===e.replaceState?history.replaceState(e.historyState,null,t):history.pushState(e.historyState,null,t))})},q=function(t){try{var n=t.currentTarget,a=n.href,r=n.pathname+n.search+n.hash;if(r=r.replace(/(^\/?)/,"/"),t.isDefaultPrevented())return void t.preventDefault();if(t.metaKey||t.ctrlKey||t.shiftKey)return;if(n.target)return;if(!e.isSameOrigin(a,location.href))return;t.preventDefault(),j(r)}catch(e){throw t.preventDefault(),e}};(p={}).options={linkSelector:"a[href]",useHashPaths:!1},p.configure=function(t){a.extend(this.options,t||{})},p.get=function(){return r.depend(),n},p.start=function(){if(!this._isStarted){var n=e.parse(location.href);if(S()){if(n.pathname.length>1){var a=h(location.href);window.location=a}this.configure({useHashPaths:!0})}var r=location.href;if(v()){var o=new f(u(r));w(o)}else{if("!"===n.hash.replace("#","")[0])var r=u(r);var c={initial:!0};history.replaceState(c,null,r);var o=new f(r,{historyState:c});w(o)}i(window).on("popstate.iron-location",P),i(window).on("hashchange.iron-location",P),t.startup(function(){i(document).on("click.iron-location",p.options.linkSelector,m)}),this._isStarted=!0}},p.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)},p.onClick=function(t){q=t},p.go=function(t,e){return j(t,e)},p.onGo=function(t){c.go.push(t)},p.onPopState=function(t){c.popState.push(t)},p.start(),s.Location=p}.call(this),"undefined"==typeof Package&&(Package={}),function(t,e){for(var n in e)n in t||(t[n]=e[n])}(Package["iron:location"]={},{urlToHashStyle:h,urlFromHashStyle:u})}();
|
||
|
|
|
||
|
|
!function(){var e=Package.meteor.Meteor,t=Package.meteor.global,a=Package.meteor.meteorEnv,i=Package.underscore._,n=Package.tracker.Tracker,r=Package.tracker.Deps,s=Package.ejson.EJSON,c=Package.modules.meteorInstall,o=Package.modules.process,u=Package["babel-runtime"].meteorBabelHelpers,l=Package.promise.Promise,d=Package["ecmascript-runtime-client"].Symbol,f=Package["ecmascript-runtime-client"].Map,k=Package["ecmascript-runtime-client"].Set,y,D=c({node_modules:{meteor:{"reactive-dict":{"reactive-dict.js":function(e){function t(e){return e&&e.__esModule?e:{default:e}}var a=t(e("babel-runtime/helpers/slicedToArray")),r=t(e("babel-runtime/helpers/typeof")),c=function(e){return void 0===e?"undefined":s.stringify(e)},o=function(e){if(void 0!==e&&"undefined"!==e)return s.parse(e)},u=function(e){e&&e.changed()};y=function(e){if(e)if("string"==typeof e)y._registerDictForMigrate(e,this),this.keys=y._loadMigratedDict(e)||{},this.name=e;else{if("object"!==(void 0===e?"undefined":(0,r.default)(e)))throw new Error("Invalid ReactiveDict argument: "+e);this.keys={};for(var t=Object.entries(e),i=Array.isArray(t),s=0,t=i?t:t[d.iterator]();;){var o;if(i){if(s>=t.length)break;o=t[s++]}else{if((s=t.next()).done)break;o=s.value}var u=o,l=(0,a.default)(u,2),f=l[0],k=l[1];this.keys[f]=c(k)}}else this.keys={};this.allDeps=new n.Dependency,this.keyDeps={},this.keyValueDeps={}},i.extend(y.prototype,{set:function(e,t){var a=this;if("object"!==(void 0===e?"undefined":(0,r.default)(e))||void 0!==t){var n=e;t=c(t);var s=i.has(a.keys,n),o=s?a.keys[n]:"undefined",l=t!==o;a.keys[n]=t,!l&&s||a.allDeps.changed(),l&&(u(a.keyDeps[n]),a.keyValueDeps[n]&&(u(a.keyValueDeps[n][o]),u(a.keyValueDeps[n][t])))}else a._setObject(e)},setDefault:function(e,t){var a=this;if("object"!==(void 0===e?"undefined":(0,r.default)(e))||void 0!==t){var n=e;i.has(a.keys,n)||a.set(n,t)}else a._setDefaultObject(e)},get:function(e){var t=this;return t._ensureKey(e),t.keyDeps[e].depend(),o(t.keys[e])},equals:function(e,t){var a=this,r=null;if(Package.mongo&&(r=Package.mongo.Mongo.ObjectID),!("string"==typeof t||"number"==typeof t||"boolean"==typeof t||void 0===t||t instanceof Date||r&&t instanceof r||null===t))throw new Error("ReactiveDict.equals: value must be scalar");var u=c(t);n.active&&(a._ensureKey(e),i.has(a.keyValueDeps[e],u)||(a.keyValueDeps[e][u]=new n.Dependency),a.keyValueDeps[e][u].depend()&&n.onInvalidate(function(){a.keyValueDeps[e][u].hasDependents()||delete a.keyValueDeps[e][u]}));var l=void 0;return i.has(a.keys,e)&&(l=o(a.keys[e])),s.equals(l,t)},all:function(){this.allDeps.depend();var e={};return i.each(this.keys,function(t,a){e[a]=o(t)}),e},clear:function(){var e=this,t=e.keys;e.keys={},e.allDeps.changed(),i.each(t,function(t,a){u(e.keyDeps[a]),e.keyValueDeps[a]&&(u(e.keyValueDeps[a][t]),u(e.keyValueDeps[a].undefined))})},delete:function(e){var t=this,a=!1;if(i.has(t.keys,e)){var n=t.keys[e];delete t.keys[e],u(t.keyDeps[e]),t.keyValueDeps[e]&&(u(t.keyValueDeps[e][n]),u(t.keyValueDeps[e].undefined)),t.allDeps.changed(),a=!0}return a},_setObject:function(e){var t=this;i.each(e,function(e,a){t.set(a,e)})},_setDefaultObject:function(e){var t=this;i.each(e,function(e,a){t.setDefault(a,e)})},_ensureKey:function(e){var t=this;e in t.keyDeps||(t.keyDeps[e]=new n.Dependency,t.keyValueDeps[e]={})},_getMigrationData:function(){return this.keys}})},"migration.js":function(){if(y._migratedDictData={},y._dictsToMigrate={},y._loadMigratedDict=function(e){return i.has(y._migratedDictData,e)?y._migratedDictData[e]:null},y._registerDictForMigrate=function(e,t){if(i.has(y._dictsToMigrate,e))throw new Error("Duplicate ReactiveDict name: "+e);y._dictsToMigrate[e]=t},e.isClient&&Package.reload){var t=Package.reload.Reload._migrationData("reactive-dict");t&&t.dicts&&(y._migratedDictData=t.dicts),Package.reload.Reload._onMigrate("reactive-dict",function(){var e=y._dictsToMigrate,t={};for(var a in u.sanitizeForInObject(e))t[a]=e[a]._getMigrationData();return[!0,{dicts:t}]})}}}}}},{extensions:[".js",".json"]});D("./node_modules/meteor/reactive-dict/reactive-dict.js"),D("./node_modules
|
||
|
|
|
||
|
|
!function(){var t=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,h=Package.htmljs.HTML,y,f;(function(){var t=s.utils.assert,e=function(){for(var t={},e=i.currentComputation;e;)t[String(e._id)]=!0,e=e._parent;return t},n=function(n){var o=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.")})};(y=function(){this._readyDep=new i.Dependency,this._comps=[],this._notReadyCount=0}).prototype.wait=function(t){var e=this,o=i.currentComputation;n(e._readyDep),i.nonreactive(function(){var n=null,r=i.autorun(function(a){var o=!!t(),i=e._notReadyCount;a.firstRun&&!o?e._notReadyCount++:null!==n&&o!==n&&!0===o?e._notReadyCount--:null!==n&&o!==n&&!1===o&&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),!1===n&&0===--e._notReadyCount&&e._readyDep.changed()})})})},y.prototype.ready=function(){return this._readyDep.depend(),0===this._notReadyCount},y.prototype.stop=function(){a.each(this._comps,function(t){t.stop()}),this._comps=[]},s.WaitList=y}).call(this),function(){var t=s.utils.debug("iron:controller"),e=s.Layout,n=s.DynamicTemplate,o=function(t,e){return function(){return"function"==typeof t?t.apply(e,arguments):t}};(f=function(t){var n=this;this.options=t||{},this._layout=this.options.layout||new e(this.options),this._isController=!0,this._layout._setLookupHost(this);var a=f._collectEventMaps.call(this.constructor);this._layout.events(a,this),this.init(t)}).prototype.layout=function(t,e){var n=this;return this._layout.template(t),e&&a.has(e,"data")&&this._layout.data(o(e.data,this)),{data:function(t){return n._layout.data(o(t,n))}}},f.prototype.render=function(t,e){var n=this;e&&void 0!==e.data&&(e.data=o(e.data,this));var a=this._layout.render(t,e);return{data:function(t){return a.data(o(t,n))}}},f.prototype.beginRendering=function(t){return this._layout.beginRendering(t)},f.extend=function(t){return s.utils.extend(this,t)},f.events=function(t){return this._eventMap=t,this};var i=function(t,e){var n={};return t.__super__&&a.extend(n,i(t.__super__.constructor,e)),a.has(t,e)?a.extend(n,t[e]):n};f._collectEventMaps=function(){return i(this,"_eventMap")},f._helpers={},f.helpers=function(t){return a.extend(this._helpers,t),this},void 0!==u&&(s.controller=function(){return n.findLookupHostWithProperty(c.getView(),"_isController")},u.registerHelper("get",function(t){var e=s.controller();if(e&&e.state)return e.state.get(t)})),s.Controller=f}.call(this),function(){var t=s.Layout,e=s.utils.debug("iron:controller"),n=s.utils.defaultValue,o=function(t,e){return function(){return"function"==typeof t?t.apply(e,arguments):t}};f.prototype.init=function(t){this._waitlist=new y,this.state=new r},f.prototype.insert=function(t){return this._layout.insert.apply(this._layout,arguments)},f.prototype.wait=function(t){var e=this;if(t)return a.isArray(t)?a.each(t,function t(n){e.wait(n)}):t.ready?this._waitlist.wait(function(){return t.ready()}):this._waitlist.wait(t),this},f.prototype.ready=function(){return this._waitlist.ready()},f.prototype.stop=function(){this._waitlist.stop()}}.call(this),"undefined"==typeof Package&&(Package={}),Package["iron:controller"]={}}();
|
||
|
|
|
||
|
|
!function(){var t=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,s=Package.ejson.EJSON,u=Package.meteor.Meteor,l=Package.meteor.global,c=Package.meteor.meteorEnv,p=Package["iron:core"].Iron,h=Package.htmljs.HTML,f=Package.spacebars.Spacebars,d,_,y,m,g;(function(){d=new u.EnvironmentVariable}).call(this),function(){_=["get","post","put","delete","patch","head"]}.call(this),function(){var o=p.Controller,e=p.Url,r=p.MiddlewareStack,n=p.utils.assert;(y=o.extend({constructor:function(o){y.__super__.constructor.apply(this,arguments),o=o||{},this.options=o,this._onStopCallbacks=[],this.route=o.route,this.params=[];var e=this.lookupOption("data");"function"==typeof e?this.data=t.bind(e,this):void 0!==e&&(this.data=function(){return e}),this.init(o)}})).prototype.lookupOption=function(o){if(this.route&&this.route.options&&t.has(this.route.options,o))return this.route.options[o];if(t.has(this.options,o))return this.options[o];if(void 0!==this[o])return this[o];var e=d.get();return e&&t.has(e,o)?e[o]:this.router&&this.router.options&&t.has(this.router.options,o)?this.router.options[o]:void 0},y.prototype.configureFromUrl=function(t,o,e){n("string"==typeof t,"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)},y.prototype._collectHooks=function(){var o=this,e=t.toArray(arguments),r=function(e){if(!e)return[];var r=o.router.lookupHook,n=t.isArray(e)?e:[e];return t.map(n,function(t){return r(t)})},n=function(o,e){var i=[];return o.__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(var o=0;o<e.length;o++)t(e[o])},a=[];i(function(t){var e=o.route&&o.route.getName(),r=o.router.getHooks(t,e);a=a.concat(r)});var s=[];i(function(t){var e=n(o.constructor,t);s=s.concat(e)});var u=[];i(function(e){if(t.has(o,e)){var n=r(o[e]);u=u.concat(n)}});var l=[];return o.route&&i(function(t){var e=r(o.route.options[t]);l=l.concat(e)}),a.concat(l).concat(s).concat(u)},y.prototype.runHooks=function(){for(var t=this._collectHooks.apply(this,arguments),o=0,e=t.length;o<e;o++)t[o].call(this);return t.length},y.prototype.getParams=function(){return this.params},y.prototype.setParams=function(t){return this.params=t,this},p.RouteController=y}.call(this),function(){var r=p.Controller,n=p.Url,i=p.MiddlewareStack,a=p.utils.debug("iron-router:RouteController");if(y.prototype.init=function(t){y.__super__.init.apply(this,arguments),this._computation=null,this._paramsDep=new o.Dependency,this.location=p.Location},y.prototype.getParams=function(){return this._paramsDep.depend(),this.params},y.prototype.setParams=function(o,e){if(!function(o,r){if(!(o instanceof Array))throw new Error("you called equals with a non array value in setParams");if(!(r instanceof Array))return!1;if(o.length!==r.length)return!1;for(var n=0;n<o.length;n++)if(!s.equals(o[n],r[n],e))return!1;var i=t.keys(o),a=t.keys(r),u;if(i.length!==a.length)return!1;for(var n=0;n<i.length;n++){if(u=i[n],!t.has(r,u))return!1;if(!s.equals(o[u],r[u]))return!1}return!0}(this.params,o))return this.params=o,!1!==(e=e||{}).reactive&&this._paramsDep.changed(),this},y.prototype.dispatch=function(t,o,r){if(this._computation&&!this._computation.stopped)throw new Error("RouteController computation is already running. Stop it first.");var n=this;return e.nonreactive(function(){e.autorun(function(e){n._computation=e,t.dispatch(o,n,r)})}),n},y.prototype._runRoute=function(o,r,n){var a=this,s=this._collectHooks("subscriptions");t.each(s,function(t){a.wait(t.call(a))});var u=this._collectHooks("waitOn");t.each(u,function(t){a.wait(t.call(a))});var l=u.length>0,c,h,f=function(){return e.nonreactive(function(){return a._layout.template()})},d=function(){return e.nonreactive(function(){var t=a._layout._regions.main;return t&&t.template()})},_=f(),m=d();this.b
|
||
|
|
|
||
|
|
!function(){var e=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,i=Package.jquery.$,r=Package.jquery.jQuery;!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e("object"==typeof exports?require("jquery"):r)}(function(e){var t=function(){if(e&&e.fn&&e.fn.select2&&e.fn.select2.amd)var t=e.fn.select2.amd;var t;return function(){if(!t||!t.requirejs){t?n=t:t={};var e,n,i;!function(t){function r(e,t){return $.call(e,t)}function o(e,t){var n,i,r,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(s=(e=e.split("/")).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]))e.splice(u,1),u-=1;else if(".."===p){if(1===u&&(".."===e[2]||".."===e[0]))break;u>0&&(e.splice(u-1,2),u-=2)}e=e.join("/")}else 0===e.indexOf("./")&&(e=e.substring(2));if((h||g)&&f){for(u=(n=e.split("/")).length;u>0;u-=1){if(i=n.slice(0,u).join("/"),h)for(d=h.length;d>0;d-=1)if((r=f[h.slice(0,d).join("/")])&&(r=r[i])){o=r,a=u;break}if(o)break;!l&&g&&g[i]&&(l=g[i],c=u)}!o&&l&&(o=l,a=c),o&&(n.splice(0,a,o),e=n.join("/"))}return e}function s(e,n){return function(){var i=w.call(arguments,0);return"string"!=typeof i[0]&&1===i.length&&i.push(null),h.apply(t,i.concat([e,n]))}}function a(e){return function(t){return o(t,e)}}function l(e){return function(t){m[e]=t}}function c(e){if(r(v,e)){var n=v[e];delete v[e],_[e]=!0,p.apply(t,n)}if(!r(m,e)&&!r(_,e))throw new Error("No "+e);return m[e]}function u(e){var t,n=e?e.indexOf("!"):-1;return n>-1&&(t=e.substring(0,n),e=e.substring(n+1,e.length)),[t,e]}function d(e){return function(){return y&&y.config&&y.config[e]||{}}}var p,h,f,g,m={},v={},y={},_={},$=Object.prototype.hasOwnProperty,w=[].slice,b=/\.js$/;f=function(e,t){var n,i=u(e),r=i[0];return e=i[1],r&&(n=c(r=o(r,t))),r?e=n&&n.normalize?n.normalize(e,a(t)):o(e,t):(r=(i=u(e=o(e,t)))[0],e=i[1],r&&(n=c(r))),{f:r?r+"!"+e:e,n:e,pr:r,p:n}},g={require:function(e){return s(e)},exports:function(e){var t=m[e];return void 0!==t?t:m[e]={}},module:function(e){return{id:e,uri:"",exports:m[e],config:d(e)}}},p=function(e,n,i,o){var a,u,d,p,h,y=[],$=typeof i,w;if(o=o||e,"undefined"===$||"function"===$){for(n=!n.length&&i.length?["require","exports","module"]:n,h=0;h<n.length;h+=1)if(p=f(n[h],o),"require"===(u=p.f))y[h]=g.require(e);else if("exports"===u)y[h]=g.exports(e),w=!0;else if("module"===u)a=y[h]=g.module(e);else if(r(m,u)||r(v,u)||r(_,u))y[h]=c(u);else{if(!p.p)throw new Error(e+" missing "+u);p.p.load(p.n,s(o,!0),l(u),{}),y[h]=m[u]}d=i?i.apply(m[e],y):void 0,e&&(a&&a.exports!==t&&a.exports!==m[e]?m[e]=a.exports:d===t&&w||(m[e]=d))}else e&&(m[e]=i)},e=n=h=function(e,n,i,r,o){if("string"==typeof e)return g[e]?g[e](n):c(f(e,n).f);if(!e.splice){if((y=e).deps&&h(y.deps,y.callback),!n)return;n.splice?(e=n,n=i,i=null):e=t}return n=n||function(){},"function"==typeof i&&(i=r,r=o),r?p(t,e,n,i):setTimeout(function(){p(t,e,n,i)},4),h},h.config=function(e){return h(e)},e._defined=m,(i=function(e,t,n){if("string"!=typeof e)throw new Error("See almond README: incorrect module build, no module name");t.splice||(n=t,t=[]),r(m,e)||r(v,e)||(v[e]=[e,t,n])}).amd={jQuery:!0}}(),t.requirejs=e,t.require=n,t.define=i}}(),t.define("almond",function(){}),t.define("jquery",[],function(){var t=e||i;return null==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){function t(e){var t=e.prototype,n=[];for(var i in t)"function"==typeof t[i]&&"constructor"!==i&&n.push(i);return n}var n={};n.Extend=function(e,t){function n(){this.constructor=e}var i={}.hasOwnProperty;for(var r in t)i.call(t,r)&&(e[r]=t[r]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},n.Decorate=function(e,n){function i(){var t=Array.prototype.unshift,i=n.prototype.constructor.length,r=e.prototype.constructor;i>0&&(t.call(arguments,e.prototype.constructor),r=n.pro
|
||
|
|
|
||
|
|
!function(){var e=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,i=Package.tracker.Tracker,r=Package.tracker.Deps,o=Package.underscore._,a=Package.check.check,s=Package.check.Match,u=Package.random.Random,l,c,f,d,p,m,v;(function(){String.prototype.startsWith||(String.prototype.startsWith=function(e,t){return t=t||0,this.indexOf(e,t)===t}),String.prototype.trim||(String.prototype.trim=function(){return this.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")})}).call(this),function(){function e(e){return e=e||"",(e=e.trim())[0]&&(e=e[0].toUpperCase()+e.substr(1).toLowerCase()),e}function t(e){return e=e||"",e=e.toString(),e=e.trim(),e=e.replace(/([a-z\d])([A-Z]+)/g,"$1_$2"),e=e.replace(/[-\s]+/g,"_").toLowerCase()}function n(e){var t=e.lastIndexOf("."),n=e.substring(t,e.length);return-1===t?"":n}l=function i(r){return r=r||"",r=r.toString(),r=r.trim(),r=r.replace(n(r),""),r=t(r),r=r.replace(/[\W_]+/g," "),e(r)}}.call(this),function(){var e=function(e){return e===Object(e)};"function"!=typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"==typeof"".__proto__?function(e){return e.__proto__}:function(e){return e.constructor.prototype});var t=function(t){return e(t)&&Object.getPrototypeOf(t)===Object.prototype},n=function e(t){return"string"!=typeof t?null:t.replace(/\.[0-9]+\./g,".$.").replace(/\.[0-9]+$/g,".$")},i=function e(t,n){return"$each"===n?t:t?t+"."+n:n},r=function e(t){var n=t.slice(0,t.indexOf("["));return"$"===n.substring(0,1)?n:null};(c=function(e,a){function s(e,r,u,c,f,d){!c&&u&&"$"===u.substring(0,1)&&(c=u,u=null);var p=!1,m,v=!1;u&&(f||("$push"===c||"$addToSet"===c||"$pop"===c?(t(e)&&"$each"in e?(e=e.$each,r+="[$each]"):u+=".0",f=!0):"$pull"===c&&(u+=".0",t(e)&&(v=!0),f=!0)),m=n(u),p=o.contains(a,m),r&&(l._affectedKeys[r]=u,l._genericAffectedKeys[r]=m,d&&l._positionsInsideArrays.push(r))),v||(o.isArray(e)&&!o.isEmpty(e)?(r&&l._parentPositions.push(r),o.each(e,function(e,t){s(e,r?r+"["+t+"]":t,u+"."+t,c,f,!0)})):(t(e)&&!p||!r)&&(r&&!o.isEmpty(e)&&(l._parentPositions.push(r),l._objectPositions.push(r)),o.each(e,function(t,n){void 0===t?delete e[n]:"$slice"!==n&&s(t,r?r+"["+n+"]":n,i(u,n),c,f,d)})))}function u(){l._affectedKeys={},l._genericAffectedKeys={},l._parentPositions=[],l._positionsInsideArrays=[],l._objectPositions=[],s(l._obj)}var l=this;l._obj=e,l._affectedKeys={},l._genericAffectedKeys={},l._parentPositions=[],l._positionsInsideArrays=[],l._objectPositions=[],s(l._obj),l.forEachNode=function(e,t){if("function"!=typeof e)throw new Error("filter requires a loop function");t=o.extend({endPointsOnly:!0},t);var n={};o.each(l._affectedKeys,function(i,a){t.endPointsOnly&&o.contains(l._parentPositions,a)||e.call({value:l.getValueForPosition(a),operator:r(a),position:a,key:i,genericKey:l._genericAffectedKeys[a],updateValue:function(e){n[a]=e},remove:function(){n[a]=void 0}})}),o.each(n,function(e,t){l.setValueForPosition(t,e)})},l.getValueForPosition=function(e){for(var n,i=e.split("["),r=l._obj,a=0,s=i.length;a<s;a++)if("]"===(n=i[a]).slice(-1)&&(n=n.slice(0,-1)),r=r[n],!o.isArray(r)&&!t(r)&&a<s-1)return;return r},l.setValueForPosition=function(e,n){for(var i,r,a=e.split("["),s=l._obj,c=0,f=a.length;c<f;c++)if("]"===(r=a[c]).slice(-1)&&(r=r.slice(0,-1)),c===f-1)s[r]=n,void 0===n&&delete s[r];else if(void 0===s[r]&&void 0!==n&&(i=a[c+1],i=parseInt(i,10),s[r]=isNaN(i)?{}:[]),s=s[r],!o.isArray(s)&&!t(s)&&c<f-1)return;u()},l.removeValueForPosition=function(e){l.setValueForPosition(e,void 0)},l.getKeyForPosition=function(e){return l._affectedKeys[e]},l.getGenericKeyForPosition=function(e){return l._genericAffectedKeys[e]},l.getInfoForKey=function(e){var t=l.getPositionForKey(e);if(t)return{value:l.getValueForPosition(t),operator:r(t)};for(var n=l.getPositionsForGenericKey(e+".$"),i,o,a=0,s=n.length;a<s;a++)if(i=n[a],o=l.getValueForPosition(i)||l.getValueForPosition(i.slice(0,i.lastIndexOf("["))))return{value:o,operator:r(i)}},l.getPositionForKey=function(e){for(var t in l._affectedKeys)if(l._affectedKeys.hasOwnProperty(t)&&l._affectedKeys[t]===e)return t},l.getPositionsForGenericK
|
||
|
|
|
||
|
|
!function(){var e=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,a=Package.tracker.Tracker,r=Package.tracker.Deps,o=Package.retry.Retry,i=Package["ddp-client"].DDP,s=Package.mongo.Mongo,c=Package.underscore._,u,l;(function(){var t=__meteor_runtime_config__.autoupdateVersion||"unknown",n=__meteor_runtime_config__.autoupdateVersionRefreshable||"unknown";u=new s.Collection("meteor_autoupdate_clientVersions"),(l={}).newClientAvailable=function(){return!!u.findOne({_id:"version",version:{$ne:t}})||!!u.findOne({_id:"version-refreshable",version:{$ne:n}})},l._ClientVersions=u;var a=!1,r=new o({minCount:0,baseTimeout:3e4}),i=0;l._retrySubscription=function(){e.subscribe("meteor_autoupdate_clientVersions",{onError:function(t){e._debug("autoupdate subscription failed:",t),i++,r.retryLater(i,function(){l._retrySubscription()})},onReady:function(){if(Package.reload)var r=function(r){var i=this;if("version-refreshable"===r._id&&r.version!==n){n=r.version;var s=r.assets&&r.assets.allCss||[],u=[];c.each(document.getElementsByTagName("link"),function(e){"__meteor-css__"===e.className&&u.push(e)});var l=function(t,n){var r=c.once(n);if(t.onload=function(){a=!0,r()},!a)var o=e.setInterval(function(){t.sheet&&(r(),e.clearInterval(o))},50)},d=c.after(s.length,function(){c.each(u,function(e){e.parentNode.removeChild(e)})}),f=function(t){document.getElementsByTagName("head").item(0).appendChild(t),l(t,function(){e.setTimeout(d,200)})};0!==s.length?c.each(s,function(e){var t=document.createElement("link");t.setAttribute("rel","stylesheet"),t.setAttribute("type","text/css"),t.setAttribute("class","__meteor-css__"),t.setAttribute("href",e.url),f(t)}):d()}else"version"===r._id&&r.version!==t&&(o&&o.stop(),Package.reload&&Package.reload.Reload._reload())},o=u.find().observe({added:r,changed:r})}})},l._retrySubscription()}).call(this),"undefined"==typeof Package&&(Package={}),function(e,t){for(var n in t)n in e||(e[n]=t[n])}(Package.autoupdate={},{Autoupdate:l})}();
|
||
|
|
|
||
|
|
!function(){"undefined"==typeof Package&&(Package={}),Package["meteor-platform"]={}}();
|
||
|
|
|
||
|
|
!function(){var e=Package.meteor.Meteor,t=Package.meteor.global,a=Package.meteor.meteorEnv,n=Package.underscore._,c=Package.modules.meteorInstall,o=Package.modules.process,s=Package["babel-runtime"].meteorBabelHelpers,r=Package.promise.Promise,i=Package["ecmascript-runtime-client"].Symbol,m=Package["ecmascript-runtime-client"].Map,u=Package["ecmascript-runtime-client"].Set,l;c({node_modules:{meteor:{webapp:{"webapp_client.js":function(){l={_isCssLoaded:function(){return 0===document.styleSheets.length||n.find(document.styleSheets,function(e){return e.cssText&&!e.cssRules?!e.cssText.match(/meteor-css-not-found-error/):!n.find(e.cssRules,function(e){return".meteor-css-not-found-error"===e.selectorText})})}}}}}}},{extensions:[".js",".json"]})("./node_modules/meteor/webapp/webapp_client.js"),"undefined"==typeof Package&&(Package={}),function(e,t){for(var a in t)a in e||(e[a]=t[a])}(Package.webapp={},{WebApp:l})}();
|
||
|
|
|
||
|
|
!function(){var e=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,r=Package.underscore._,i=Package.ejson.EJSON,f=Package.modules.meteorInstall,o=Package.modules.process,a,c;f({node_modules:{meteor:{logging:{"logging.js":function(t){var n=0,f=[],o=0;(a=function(){return a.info.apply(this,arguments)})._intercept=function(e){n+=e},a._suppress=function(e){o+=e},a._intercepted=function(){var e=f;return f=[],n=0,e},a.outputFormat="json";var c={debug:"green",warn:"magenta",error:"red"},l="blue",s=["time","timeInexact","level","file","line","program","originApp","satellite","stderr"],u=s.concat(["app","message"]),p=function(t){var n=a.format(t),r=t.level;"undefined"!=typeof console&&console[r]?console[r](n):e._debug(n)};a._getCallerDetails=function(){var e=function(){return(new Error).stack}();if(!e)return{};for(var t=e.split("\n"),n,r=1;r<t.length;++r){if((n=t[r]).match(/^\s*at eval \(eval/))return{file:"eval"};if(!n.match(/packages\/(?:local-test[:_])?logging(?:\/|\.js)/))break}var i={},f=/(?:[@(]| at )([^(]+?):([0-9:]+)(?:\)|$)/.exec(n);return f?(i.line=f[2].split(":")[0],i.file=f[1].split("/").slice(-1)[0].split("?")[0],i):i},r.each(["debug","info","warn","error"],function(t){a[t]=function(c){if(o)o--;else{var l=!1;n&&(n--,l=!0);var u=!r.isObject(c)||r.isRegExp(c)||r.isDate(c)?{message:new String(c).toString()}:c;if(r.each(s,function(e){if(u[e])throw new Error("Can't set '"+e+"' in log message")}),r.has(u,"message")&&!r.isString(u.message))throw new Error("The 'message' field in log objects must be a string");if(u.omitCallerDetails||(u=r.extend(a._getCallerDetails(),u)),u.time=new Date,u.level=t,"debug"!==t)if(l)f.push(i.stringify(u));else if(e.isServer)if("colored-text"===a.outputFormat)console.log(a.format(u,{color:!0}));else{if("json"!==a.outputFormat)throw new Error("Unknown logging output format: "+a.outputFormat);console.log(i.stringify(u))}else p(u)}}}),a.parse=function(e){var t=null;if(e&&"{"===e.charAt(0))try{t=i.parse(e)}catch(e){}return t&&t.time&&t.time instanceof Date?t:null},a.format=function(n,f){n=i.clone(n),f=f||{};var o=n.time;if(!(o instanceof Date))throw new Error("'time' must be a Date object");var a=n.timeInexact,l=n.level||"info",s=n.file,p=n.line,d=n.app||"",h=n.originApp,m=n.message||"",g=n.program||"",b=n.satellite,v=n.stderr||"";r.each(u,function(e){delete n[e]}),r.isEmpty(n)||(m&&(m+=" "),m+=i.stringify(n));var y=function(e){return e<10?"0"+e:e.toString()},x=function(e){return e<100?"0"+y(e):e.toString()},j=o.getFullYear().toString()+y(o.getMonth()+1)+y(o.getDate()),O=y(o.getHours())+":"+y(o.getMinutes())+":"+y(o.getSeconds())+"."+x(o.getMilliseconds()),w="("+-(new Date).getTimezoneOffset()/60+")",_="";d&&(_+=d),h&&h!==d&&(_+=" via "+h),_&&(_="["+_+"] ");var A=[];g&&A.push(g),s&&A.push(s),p&&A.push(p);var N=r.isEmpty(A)?"":"("+A.join(":")+") ";b&&(N+=["[",b,"]"].join(""));var P=v?"(STDERR) ":"",z=function(n,r){return f.color&&e.isServer&&r?t("cli-color")[r](n):n};return z([l.charAt(0).toUpperCase(),j,"-",O,w,a?"? ":" ",_,N,P].join(""),f.metaColor||"blue")+z(m,c[l])},a.objFromText=function(e,t){var n={message:e,level:"info",time:new Date,timeInexact:!0};return r.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":function(e,t,n){"use strict";var r=e("es5-ext/lib/Object/descriptor"),i=e("es5-ext/lib/Object/extend"),f=e("es5-ext/lib/Object/map"),a=e("es5-ext/lib/Object/reduce"),c=e("es5-ext/lib/String/prototype/repeat"),l=e("memoizee"),s=e("tty"),u=Array.prototype.join,p=Object.defineProperty,d=Object.defineProperties,h=Math.abs,m=Math.floor,g=Math.max,b=Math.min,v,y,x,j,O,w,_,A,N,P,z;v=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","green","yellow","blue","magenta","cyan","white"].reduce(function(e,t,n){return e[t]={_fg:[30+n,39]},e[t+"Bright"]={_fg:[90+n,39]},e["bg"+t[0].toUpperCase()+t.slice(1)]={_bg:[40+n,49]},e["bg"+t[0].toUpperCase()+t.slice(1)+"Bright"]={_bg:[100+n,49]
|
||
|
|
|
||
|
|
!function(){var e=Package.meteor.Meteor,a=Package.meteor.global,c=Package.meteor.meteorEnv,n=Package.underscore._,o=Package["reactive-dict"].ReactiveDict,i=Package.ejson.EJSON,t;(function(){t=new o("session")}).call(this),"undefined"==typeof Package&&(Package={}),function(e,a){for(var c in a)c in e||(e[c]=a[c])}(Package.session={},{Session:t})}();
|
||
|
|
|
||
|
|
!function(){var a=Package["ddp-client"].DDP,e;"undefined"==typeof Package&&(Package={}),function(a,e){for(var i in e)i in a||(a[i]=e[i])}(Package.livedata={},{DDP:a,LivedataTest:void 0})}();
|
||
|
|
|
||
|
|
!function(){var e=Package.meteor.Meteor,n=Package.meteor.global,a=Package.meteor.meteorEnv,r;(function(){var n=0,a=!1;r={hold:function(){if(!e.isCordova)return{release:function(){}};if(a)throw new Error("Can't show launch screen once it's hidden");n++;var r=!1;return{release:function(){e.isCordova&&(r||(r=!0,0===--n&&"undefined"!=typeof navigator&&navigator.splashscreen&&(a=!0,navigator.splashscreen.hide())))}}}}}).call(this),function(){var n=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"==typeof Package&&(Package={}),function(e,n){for(var a in n)a in e||(e[a]=n[a])}(Package["launch-screen"]={},{LaunchScreen:r})}();
|
||
|
|
|
||
|
|
!function(){var e=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,o=Package.jquery.$,a=Package.jquery.jQuery,i=Package.underscore._,r=Package["templating-runtime"].Template,u=Package["reactive-var"].ReactiveVar,c=Package["iron:router"].Router,l=Package["iron:router"].RouteController,s=Package["aldeed:simple-schema"].SimpleSchema,d=Package["aldeed:simple-schema"].MongoObject,p=Package.modules.meteorInstall,f=Package.modules.process,m=Package["babel-runtime"].meteorBabelHelpers,h=Package.promise.Promise,v=Package["iron:core"].Iron,g=Package["ecmascript-runtime-client"].Symbol,w=Package["ecmascript-runtime-client"].Map,b=Package["ecmascript-runtime-client"].Set,k=Package.webapp.WebApp,y=Package.logging.Log,x=Package.deps.Tracker,T=Package.deps.Deps,j=Package.session.Session,C=Package["ddp-client"].DDP,I=Package.mongo.Mongo,_=Package.ui.Blaze,M=Package.ui.UI,H=Package.ui.Handlebars,O=Package.spacebars.Spacebars,P=Package.check.check,F=Package.check.Match,$=Package.random.Random,S=Package.ejson.EJSON,D=Package["launch-screen"].LaunchScreen,R=Package.htmljs.HTML,V=p({node_modules:{meteor:{"ohif:core":{"main.js":function(e,t,n){n.export({OHIF:function(){return a}});var o=void 0;n.watch(e("meteor/meteor"),{Meteor:function(e){o=e}},0);var a={log:{},ui:{},utils:{},viewer:{},cornerstone:{}};o.isClient&&(window.OHIF=a)},client:{"index.js":function(e,t,n){n.watch(e("./lib")),n.watch(e("./helpers")),n.watch(e("./components")),n.watch(e("./ui")),n.watch(e("./routes.js"))},"routes.js":function(e,t,n){var o=void 0;n.watch(e("meteor/iron:router"),{Router:function(e){o=e}},0),o.route("/playground",function(){this.render("componentPlayground")})},components:{"index.js":function(e,t,n){n.watch(e("./base")),n.watch(e("./bootstrap")),n.watch(e("./playground/playground.html")),n.watch(e("./playground/playground.styl")),n.watch(e("./playground/playground.js"))},base:{"component.js":function(e,t,n){function o(e){return e&&e.__esModule?e:{default:e}}var a=o(e("babel-runtime/helpers/classCallCheck")),i=void 0;n.watch(e("meteor/ohif:core"),{OHIF:function(e){i=e}},0);var r=function(){function e(t){(0,a.default)(this,e),t.view._component=this,t.sections={},this.templateInstance=t,this.registeredItems=new b}return e.prototype.registerSelf=function(){function e(){var e=i.blaze.getParentComponent(this.templateInstance.view);e&&(this.parent=e,e.registeredItems.add(this))}return e}(),e.prototype.unregisterSelf=function(){function e(){var e=i.blaze.getParentComponent(this.templateInstance.view);e&&(delete this.parent,e.registeredItems.delete(this))}return e}(),e}();i.Component=r},"index.js":function(e,t,n){n.watch(e("./component.js")),n.watch(e("./mixin.js")),n.watch(e("./template.js")),n.watch(e("./section/section.html")),n.watch(e("./section/section.js")),n.watch(e("./mixins/action.js")),n.watch(e("./mixins/button.js")),n.watch(e("./mixins/checkbox.js")),n.watch(e("./mixins/component.js")),n.watch(e("./mixins/dropdown.js")),n.watch(e("./mixins/form.js")),n.watch(e("./mixins/formItem.js")),n.watch(e("./mixins/group.js")),n.watch(e("./mixins/groupRadio.js")),n.watch(e("./mixins/input.js")),n.watch(e("./mixins/link.js")),n.watch(e("./mixins/schemaData.js")),n.watch(e("./mixins/select.js")),n.watch(e("./mixins/select2.js")),n.watch(e("./templates/button.html")),n.watch(e("./templates/custom.html")),n.watch(e("./templates/div.html")),n.watch(e("./templates/form.html")),n.watch(e("./templates/input.html")),n.watch(e("./templates/link.html")),n.watch(e("./templates/select.html")),n.watch(e("./wrappers/label.html")),n.watch(e("./wrappers/labelContent.html"))},"mixin.js":function(e,t,n){function o(e){return e&&e.__esModule?e:{default:e}}var a=o(e("babel-runtime/helpers/classCallCheck")),i=void 0;n.watch(e("meteor/ohif:core"),{OHIF:function(e){i=e}},0);var r=void 0;n.watch(e("meteor/underscore"),{_:function(e){r=e}},1),i.mixins={};var u=function(){function e(t){var n=t.dependencies,o=t.composition;(0,a.default)(this,e),this.dependencies=n||"",this.composition=o}return e.prototype.init=function(){function t(t,n,o,a){var i=this,u=this.depend
|
||
|
|
|
||
|
|
!function(){var e=Package.meteor.Meteor,n=Package.meteor.global,o=Package.meteor.meteorEnv,t=Package["templating-runtime"].Template,r=Package.underscore._,a=Package.modules.meteorInstall,d=Package.modules.process,c=Package["babel-runtime"].meteorBabelHelpers,i=Package.promise.Promise,h=Package["ecmascript-runtime-client"].Symbol,l=Package["ecmascript-runtime-client"].Map,m=Package["ecmascript-runtime-client"].Set,s=Package.blaze.Blaze,u=Package.blaze.UI,p=Package.blaze.Handlebars,b=Package.spacebars.Spacebars,f=Package.htmljs.HTML,g=a({node_modules:{meteor:{"ohif:header":{"main.js":function(e,n,o){o.export({header:function(){return r}});var t=void 0;o.watch(e("meteor/ohif:core"),{OHIF:function(e){t=e}},0);var r={dropdown:new t.ui.Dropdown};t.header=r},client:{"index.js":function(e,n,o){o.watch(e("./components"))},components:{"index.js":function(e,n,o){o.watch(e("./header/header.html")),o.watch(e("./header/header.js")),o.watch(e("./header/header.styl"))},header:{"header.html":function(e,n,o){o.exports=e("./template.header.js")},"template.header.js":function(){t.__checkName("header"),t.header=new t("Template.header",function(){var e=this;return f.DIV({class:function(){return["header noselect ",b.mustache(e.lookup("reactive"),e.lookup("headerClasses"))]}},"\n ",f.DIV({class:"clearfix"},"\n ",f.A({target:"_blank",class:"brand pull-left",href:function(){return b.mustache(e.lookup("choose"),b.dot(e.lookup("."),"brandHref"),"/")}},"\n ",s._TemplateWith(function(){return"brand"},function(){return b.include(e.lookupTemplate("section"))}),"\n "),"\n ",s._TemplateWith(function(){return"headerAfterBrand"},function(){return b.include(e.lookupTemplate("section"))}),"\n ",f.A({href:"#",class:"header-menu pull-right"},s._TemplateWith(function(){return"headerMenu"},function(){return b.include(e.lookupTemplate("section"))})),"\n "),"\n ",s._InOuterTemplateScope(e,function(){return b.include(function(){return b.call(e.templateContentBlock)})}),"\n ")})},"header.js":function(e,n,o){var t=void 0;o.watch(e("meteor/templating"),{Template:function(e){t=e}},0);var r=void 0;o.watch(e("meteor/jquery"),{$:function(e){r=e}},1);var a=void 0;o.watch(e("meteor/ohif:core"),{OHIF:function(e){a=e}},2),t.header.onCreated(function(){var e=t.instance();e.dropdownItems=[],e.autorun(function(){a.header.dropdown.observer.depend(),e.dropdownItems=a.header.dropdown.getItems()})}),t.header.events({"click .header-menu":function(e,n){e.preventDefault(),r(e.currentTarget).find(".dropdown").length||a.ui.showDropdown(n.dropdownItems,{parentElement:e.currentTarget,menuClasses:"dropdown-menu-right",marginTop:"25px"})}})},"header.styl":function(e,n,o){o.exports=e("./header.styl.css")},"header.styl.css":function(e,n,o){o.exports=e("meteor/modules").addStyles('.theme-icon-crickets,\n.theme-icon-tide,\n.theme-icon-tigerlily,\n.theme-icon-quartz,\n.theme-icon-overcast,\n.theme-icon-mint,\n.theme-icon-honeycomb {\n display: inline-block;\n background: url("/packages/ohif_design/assets/theme-icons.png") no-repeat;\n overflow: hidden;\n text-indent: -9999px;\n text-align: left;\n}\n.theme-icon-crickets {\n background-position: 0px 0px;\n width: 64px;\n height: 56px;\n}\n.theme-icon-tide {\n background-position: 0px -56px;\n width: 64px;\n height: 54px;\n}\n.theme-icon-tigerlily {\n background-position: 0px -110px;\n width: 62px;\n height: 61px;\n}\n.theme-icon-quartz {\n background-position: 0px -171px;\n width: 59px;\n height: 64px;\n}\n.theme-icon-overcast {\n background-position: 0px -235px;\n width: 58px;\n height: 37px;\n}\n.theme-icon-mint {\n background-position: 0px -272px;\n width: 57px;\n height: 61px;\n}\n.theme-icon-honeycomb {\n background-position: 0px -333px;\n width: 50px;\n height: 58px;\n}\nbody>.header {\n height: 40px;\n padding: 10px 10px 0;\n transition: all 0.5s ease;\n -webkit-transition: all 0.5s ease;\n -ms-transition: all 0.5s ease;\n -o-transition: all 0.5s ease;\n -moz-transition: all 0.5s ease;\n}\nbody>.header {\n color: #fff;\n}\nb
|
||
|
|
|
||
|
|
!function(){"undefined"==typeof Package&&(Package={}),Package["ohif:themes-common"]={}}();
|
||
|
|
|
||
|
|
!function(){"undefined"==typeof Package&&(Package={}),Package["ohif:themes"]={}}();
|
||
|
|
|
||
|
|
!function(){var e=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,o=Package.jquery.$,a=Package.jquery.jQuery,u=Package.modules.meteorInstall,c=Package.modules.process,r=Package["babel-runtime"].meteorBabelHelpers,l=Package.promise.Promise,i=Package["ecmascript-runtime-client"].Symbol,s=Package["ecmascript-runtime-client"].Map,d=Package["ecmascript-runtime-client"].Set,p=Package.webapp.WebApp,m=Package.logging.Log,k=Package.deps.Tracker,g=Package.deps.Deps,f=Package.session.Session,P=Package["ddp-client"].DDP,h=Package.mongo.Mongo,b=Package.ui.Blaze,v=Package.ui.UI,B=Package.ui.Handlebars,G=Package.spacebars.Spacebars,V=Package["templating-runtime"].Template,j=Package.check.check,I=Package.check.Match,y=Package.underscore._,L=Package.random.Random,S=Package.ejson.EJSON,x=Package["launch-screen"].LaunchScreen,D=Package.htmljs.HTML,_=u({node_modules:{meteor:{"ohif:design":{components:{roundedButtonGroup:{"template.roundedButtonGroup.js":function(){V.__checkName("roundedButtonGroup"),V.roundedButtonGroup=new V("Template.roundedButtonGroup",function(){var e=this;return D.DIV({class:function(){return[G.mustache(e.lookup("class"))," roundedButtonGroup clearfix center-table"]}},"\n ",b.Each(function(){return{_sequence:G.call(G.dot(e.lookup("."),"options")),_variable:"item"}},function(){return["\n ",D.A({class:function(){return["roundedButtonWrapper noselect ",b.If(function(){return G.dataMustache(e.lookup("eq"),e.lookup("getValue"),G.dot(e.lookup("item"),"value"))},function(){return"active"})]},"data-value":function(){return G.mustache(G.dot(e.lookup("item"),"value"))}},"\n ",D.DIV({class:"roundedButton"},"\n ",b.If(function(){return G.call(G.dot(e.lookup("item"),"svgLink"))},function(){return["\n ",D.SVG({style:function(){return["width: ",G.mustache(G.dot(e.lookup("item"),"svgWidth")),"px; height: ",G.mustache(G.dot(e.lookup("item"),"svgHeight")),"px"]}},"\n ",D.USE({"xlink:href":function(){return G.mustache(e.lookup("absoluteUrl"),G.dot(e.lookup("item"),"svgLink"))}}),"\n "),"\n "]}),"\n ",b.If(function(){return G.call(G.dot(e.lookup("item"),"text"))},function(){return["\n ",D.SPAN(b.View("lookup:item.text",function(){return G.mustache(G.dot(e.lookup("item"),"text"))})),"\n "]}),"\n ",b.If(function(){return G.call(G.dot(e.lookup("item"),"iconClasses"))},function(){return["\n ",D.I({class:function(){return G.mustache(G.dot(e.lookup("item"),"iconClasses"))}}),"\n "]}),"\n "),"\n ",b.If(function(){return G.call(G.dot(e.lookup("item"),"bottomLabel"))},function(){return["\n ",D.DIV({class:"bottomLabel"},b.View("lookup:item.bottomLabel",function(){return G.mustache(G.dot(e.lookup("item"),"bottomLabel"))})),"\n "]}),"\n "),"\n "]}),"\n ")})},"roundedButtonGroup.js":function(){V.roundedButtonGroup.onCreated(function(){var e=V.instance(),t=e.data.value;e.getValue=function(){return t.get(e.data.key)},e.setValue=function(n){var o=[n];t instanceof ReactiveDict&&o.unshift(e.data.key),t.set.apply(t,o)},e.getValue()||e.data.toggleable||e.setValue(e.data.options[0].value)}),V.roundedButtonGroup.events({"click [data-value]":function(e,t){e.preventDefault();var n=o(e.currentTarget);if(!n.hasClass("disabled")){var a=n.hasClass("active")&&t.data.toggleable?null:n.attr("data-value");t.setValue(a)}}}),V.roundedButtonGroup.helpers({getValue:function(){return V.instance().getValue()}})}}}}}}},{extensions:[".js",".json",".styl",".html"]});_("./node_modules/meteor/ohif:design/components/roundedButtonGroup/template.roundedButtonGroup.js"),_("./node_modules/meteor/ohif:design/components/roundedButtonGroup/roundedButtonGroup.js"),"undefined"==typeof Package&&(Package={}),Package["ohif:design"]={}}();
|
||
|
|
|
||
|
|
!function(){var e=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,r=Package.jquery.$,o=Package.jquery.jQuery,a=Package.modules.meteorInstall,i=Package.modules.process,s=Package["babel-runtime"].meteorBabelHelpers,l=Package.promise.Promise,u=Package["ecmascript-runtime-client"].Symbol,c=Package["ecmascript-runtime-client"].Map,f=Package["ecmascript-runtime-client"].Set,d,h,p,g,m,v=a({node_modules:{meteor:{"ohif:cornerstone":{"main.js":function(e,t,n){n.export({cornerstone:function(){return o},cornerstoneTools:function(){return a},cornerstoneMath:function(){return i},cornerstoneWADOImageLoader:function(){return s},dicomParser:function(){return l},OHIF:function(){return r}});var r=void 0;n.watch(e("./namespace.js"),{OHIF:function(e){r=e}},0),n.watch(e("./client/"));var o=void 0;n.watch(e("cornerstone-core"),{"*":function(e){o=e}},1);var a=void 0;n.watch(e("cornerstone-tools"),{"*":function(e){a=e}},2);var i=void 0;n.watch(e("cornerstone-math"),{"*":function(e){i=e}},3);var s=void 0;n.watch(e("cornerstone-wado-image-loader"),{"*":function(e){s=e}},4);var l=void 0;n.watch(e("dicom-parser"),{"*":function(e){l=e}},5)},"namespace.js":function(e,t,n){function r(e){return e&&e.__esModule?e:{default:e}}var o=r(e("babel-runtime/helpers/extends"));n.export({OHIF:function(){return a}});var a=void 0;n.watch(e("meteor/ohif:core"),{OHIF:function(e){a=e}},0);var i=(0,o.default)({},a.cornerstone);a.cornerstone=i},client:{"index.js":function(e,t,n){var r=void 0;n.watch(e("../namespace"),{OHIF:function(e){r=e}},0);var o=void 0;n.watch(e("./lib/classes/MetadataProvider"),{MetadataProvider:function(e){o=e}},1),r.cornerstone.metadataProvider=new o},lib:{"parsingUtils.js":function(e,t,n){n.export({parsingUtils:function(){return o}});var r=void 0;n.watch(e("dicom-parser"),{"*":function(e){r=e}},0);var o={isValidDataSet:function(e){return e instanceof r.DataSet},attributeTag:function(e,t){if(this.isValidDataSet(e)&&t in e.elements){var n=e.elements[t];if(n&&4===n.length){var r=e.byteArrayParser.readUint16,o=e.byteArray,a=n.dataOffset;return"x"+("00000000"+(256*r(o,a)*256+r(o,a+2)).toString(16)).substr(-8)}}return null},multiValue:function(e,t,n){if(this.isValidDataSet(e)&&t in e.elements){var o=e.elements[t];if(o&&o.length>0){var a=r.readFixedString(e.byteArray,o.dataOffset,o.length);if("string"==typeof a&&a.length>0)return"function"!=typeof n&&(n=null),a.split("\\").map(function(e){return e=e.trim(),null!==n?n(e):e})}}return null},floatArray:function(e,t){return this.multiValue(e,t,parseFloat)}}},classes:{"MetadataProvider.js":function(e,t,n){function r(e){return e&&e.__esModule?e:{default:e}}var o=r(e("babel-runtime/helpers/typeof")),a=r(e("babel-runtime/helpers/classCallCheck"));n.export({MetadataProvider:function(){return u}});var i=void 0;n.watch(e("cornerstone-math"),{"*":function(e){i=e}},0);var s=void 0;n.watch(e("../parsingUtils"),{parsingUtils:function(e){s=e}},1);var l="function",u=function(){function e(){(0,a.default)(this,e),Object.defineProperty(this,"metadataLookup",{configurable:!1,enumerable:!1,writable:!1,value:new c}),Object.defineProperty(this,"_provider",{configurable:!1,enumerable:!1,writable:!0,value:null})}return e.prototype.addMetadata=function(){function e(e,t){var n=t.instance,r=t.series,o=t.study,a=t.numImages,i={};i.study={accessionNumber:o.accessionNumber,patientId:o.patientId,studyInstanceUid:o.studyInstanceUid,studyDate:o.studyDate,studyTime:o.studyTime,studyDescription:o.studyDescription,institutionName:o.institutionName,patientHistory:o.patientHistory},i.series={seriesDescription:r.seriesDescription,seriesNumber:r.seriesNumber,seriesDate:r.seriesDate,seriesTime:r.seriesTime,modality:r.modality,seriesInstanceUid:r.seriesInstanceUid,numImages:a},i.instance=n,i.patient={name:o.patientName,id:o.patientId,birthDate:o.patientBirthDate,sex:o.patientSex,age:o.patientAge},i.imagePlane=this.getImagePlane(n),this.metadataLookup.set(e,i)}return e}(),e.prototype.getMetadata=function(){function e(e){return this.metadataLookup.get(e)}return e}(),e.prototype.addSpecificMetadata=function(){function e(e,t,
|
||
|
|
|
||
|
|
!function(){var e=Package.meteor.Meteor,r=Package.meteor.global,a=Package.meteor.meteorEnv,n=Package.underscore._,c,t;(function(){var e=function(e){return encodeURIComponent(e).replace(/\*/g,"%2A")};(c={})._encodeParams=function(r,a){var n=[],c=Array.isArray(r);for(var t in r)if(Object.prototype.hasOwnProperty.call(r,t)){var o=a?a+"["+(c?"":t)+"]":t,i=r[t];if("object"==typeof i)n.push(this._encodeParams(i,o));else{var l=e(o).replace("%5B","[").replace("%5D","]");n.push(l+"="+e(i))}}return n.join("&").replace(/%20/g,"+")},t=function(e,r,a,n){var t=e,o=r?r.slice(1):null;if("string"==typeof a&&(o=String(a)),n){o=o||"";var i=c._encodeParams(n);o&&i&&(o+="&"),o+=i}var l=t;return null!==o&&(l+="?"+o),l}}).call(this),function(){c._constructUrl=function(e,r,a){var n=/^(.*?)(\?.*)?$/.exec(e);return t(n[1],n[2],r,a)}}.call(this),"undefined"==typeof Package&&(Package={}),function(e,r){for(var a in r)a in e||(e[a]=r[a])}(Package.url={},{URL:c})}();
|
||
|
|
|
||
|
|
!function(){var e=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.process,s=Package["babel-runtime"].meteorBabelHelpers,i=Package.promise.Promise,l=Package["ecmascript-runtime-client"].Symbol,p=Package["ecmascript-runtime-client"].Map,u=Package["ecmascript-runtime-client"].Set,f,d,m,h=o({node_modules:{meteor:{http:{"httpcall_common.js":function(){function e(e,t){return e.length>t?e.slice(0,t)+"...":e}var t=500;f=function(t,n){var a="failed ["+t+"]";return n&&(a+=" "+e(("string"==typeof n?n:n.toString()).replace(/\n/g," "),500)),new Error(a)},d=function(e){var t=(e.headers["content-type"]||";").split(";")[0];if(a.include(["application/json","text/javascript","application/javascript","application/x-javascript"],t))try{e.data=JSON.parse(e.content)}catch(t){e.data=null}else e.data=null},(m={}).get=function(){return m.call.apply(this,["GET"].concat(a.toArray(arguments)))},m.post=function(){return m.call.apply(this,["POST"].concat(a.toArray(arguments)))},m.put=function(){return m.call.apply(this,["PUT"].concat(a.toArray(arguments)))},m.del=function(){return m.call.apply(this,["DELETE"].concat(a.toArray(arguments)))},m.patch=function(){return m.call.apply(this,["PATCH"].concat(a.toArray(arguments)))}},"httpcall_client.js":function(t,n,o){m.call=function(t,n,o,c){if(c||"function"!=typeof o||(c=o,o=null),o=o||{},"function"!=typeof c)throw new Error("Can't make a blocking HTTP call from the client; callback required.");t=(t||"").toUpperCase();var i={},l=o.content;o.data&&(l=JSON.stringify(o.data),i["Content-Type"]="application/json");var p,u;if(l||"GET"===t||"HEAD"===t?p=o.params:u=o.params,n=r._constructUrl(n,o.query,p),!1===o.followRedirects)throw new Error("Option followRedirects:false not supported on client.");if(a.has(o,"npmRequestOptions"))throw new Error("Option npmRequestOptions not supported on client.");var m,h;if(o.auth){var g=o.auth.indexOf(":");if(g<0)throw new Error('auth option should be of the form "username:password"');m=o.auth.substring(0,g),h=o.auth.substring(g+1)}u&&(l=r._encodeParams(u)),a.extend(i,o.headers||{}),c=function(e){return function(t,n){t&&n&&(t.response=n),e(t,n)}}(c),c=a.once(c);try{var y;if("undefined"!=typeof XMLHttpRequest)y=new XMLHttpRequest;else{if("undefined"==typeof ActiveXObject)throw new Error("Can't create XMLHttpRequest");y=new ActiveXObject("Microsoft.XMLHttp")}y.open(t,n,!0,m,h);for(var v in s.sanitizeForInObject(i))y.setRequestHeader(v,i[v]);var P=!1,w;if(o.timeout&&(w=e.setTimeout(function(){P=!0,y.abort()},o.timeout)),y.onreadystatechange=function(t){if(4===y.readyState)if(w&&e.clearTimeout(w),P)c(new Error("timeout"));else if(y.status){var n={};n.statusCode=y.status,n.content=y.responseText,n.headers={};var r=y.getAllResponseHeaders();""===r&&y.getResponseHeader("content-type")&&(r="content-type: "+y.getResponseHeader("content-type"));var o=r.split(/\r?\n/);a.each(o,function(e){var t=/^(.*?):(?:\s+)(.*)$/.exec(e);t&&3===t.length&&(n.headers[t[1].toLowerCase()]=t[2])}),d(n);var s=null;n.statusCode>=400&&(s=f(n.statusCode,n.content)),c(s,n)}else c(new Error("network"))},o.beforeSend&&!1===a.once(o.beforeSend).call(null,y,o))return y.abort();y.send(l)}catch(e){c(e)}}},"deprecated.js":function(){e.http=m}}}}},{extensions:[".js",".json"]});h("./node_modules/meteor/http/httpcall_common.js"),h("./node_modules/meteor/http/httpcall_client.js"),h("./node_modules/meteor/http/deprecated.js"),"undefined"==typeof Package&&(Package={}),function(e,t){for(var n in t)n in e||(e[n]=t[n])}(Package.http={},{HTTP:m})}();
|
||
|
|
|
||
|
|
!function(){var e=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,s;(function(){!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.moment=t()}(this,function(){"use strict";function e(){return ws.apply(null,arguments)}function t(e){ws=e}function n(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function s(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function i(e){var t;for(t in e)return!1;return!0}function r(e){return void 0===e}function a(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function o(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function u(e,t){var n=[],s;for(s=0;s<e.length;++s)n.push(t(e[s],s));return n}function l(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function d(e,t){for(var n in t)l(t,n)&&(e[n]=t[n]);return l(t,"toString")&&(e.toString=t.toString),l(t,"valueOf")&&(e.valueOf=t.valueOf),e}function h(e,t,n,s){return pt(e,t,n,s,!0).utc()}function c(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function f(e){return null==e._pf&&(e._pf=c()),e._pf}function m(e){if(null==e._isValid){var t=f(e),n=Ms.call(t.parsedDateParts,function(e){return null!=e}),s=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(s=s&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return s;e._isValid=s}return e._isValid}function _(e){var t=h(NaN);return null!=e?d(f(t),e):f(t).userInvalidated=!0,t}function y(e,t){var n,s,i;if(r(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),r(t._i)||(e._i=t._i),r(t._f)||(e._f=t._f),r(t._l)||(e._l=t._l),r(t._strict)||(e._strict=t._strict),r(t._tzm)||(e._tzm=t._tzm),r(t._isUTC)||(e._isUTC=t._isUTC),r(t._offset)||(e._offset=t._offset),r(t._pf)||(e._pf=f(t)),r(t._locale)||(e._locale=t._locale),ks.length>0)for(n=0;n<ks.length;n++)r(i=t[s=ks[n]])||(e[s]=i);return e}function g(t){y(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===Ss&&(Ss=!0,e.updateOffset(this),Ss=!1)}function p(e){return e instanceof g||null!=e&&null!=e._isAMomentObject}function w(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function v(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=w(t)),n}function M(e,t,n){var s=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),r=0,a;for(a=0;a<s;a++)(n&&e[a]!==t[a]||!n&&v(e[a])!==v(t[a]))&&r++;return r+i}function k(t){!1===e.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function S(t,n){var s=!0;return d(function(){if(null!=e.deprecationHandler&&e.deprecationHandler(null,t),s){for(var i=[],r,a=0;a<arguments.length;a++){if(r="","object"==typeof arguments[a]){r+="\n["+a+"] ";for(var o in arguments[0])r+=o+": "+arguments[0][o]+", ";r=r.slice(0,-2)}else r=arguments[a];i.push(r)}k(t+"\nArguments: "+Array.prototype.slice.call(i).join("")+"\n"+(new Error).stack),s=!1}return n.apply(this,arguments)},n)}function D(t,n){null!=e.deprecationHandler&&e.deprecationHandler(t,n),Ds[t]||(k(n),Ds[t]=!0)}function Y(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function O(e){var t,n;for(n in e)Y(t=e[n])?this[n]=t:this["_"+n]=t;this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function x(e,t){var n=d({},e),i;for(i in t)l(t,i)&&(s(e[i])&&s(t[i])?(n[i]={},d(n[i],e[i]),d(n[i],t[i])):null!=t[i]?n[i]=t[i]:delete n[i]);for(i in e)l(e,i)&&!l(t,i)&&s(e[i])&&(n[i]=d({},n[i]));return n}function T(e){null!=e&&this.set(e)}function P(e,t,n){var s=this._calendar[e]|
|
||
|
|
|
||
|
|
!function(){var e=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,r=Package.modules.meteorInstall,i=Package.modules.process,a=Package["babel-runtime"].meteorBabelHelpers,o=Package.promise.Promise,s=Package["ecmascript-runtime-client"].Symbol,u=Package["ecmascript-runtime-client"].Map,l=Package["ecmascript-runtime-client"].Set,c,f=r({node_modules:{meteor:{validatejs:{lib:{"validate.js":function(e,t,n){function r(e){return e&&e.__esModule?e:{default:e}}var i=r(e("babel-runtime/helpers/typeof"));(function(e,t,n){"use strict";var r=function(e,t,n){n=s.extend({},s.options,n);var i=s.runValidations(e,t,n),o,u;for(o in a.sanitizeForInObject(i))for(u in a.sanitizeForInObject(i[o]))if(s.isPromise(i[o][u]))throw new Error("Use validate.async if you want support for promises");return r.processValidationResults(i,n)},s=r;s.extend=function(e){return[].slice.call(arguments,1).forEach(function(t){for(var n in a.sanitizeForInObject(t))e[n]=t[n]}),e},s.extend(r,{version:{major:0,minor:9,patch:0,metadata:"development",toString:function(){var e=s.format("%{major}.%{minor}.%{patch}",s.version);return s.isEmpty(s.version.metadata)||(e+="+"+s.version.metadata),e}},Promise:void 0!==o?o:null,EMPTY_STRING_REGEXP:/^\s*$/,runValidations:function(e,t,n){var r=[],i,o,u,l,c,f,d;(s.isDomElement(e)||s.isJqueryElement(e))&&(e=s.collectFormValues(e));for(i in a.sanitizeForInObject(t)){u=s.getDeepObjectValue(e,i),l=s.result(t[i],u,e,i,n,t);for(o in a.sanitizeForInObject(l)){if(!(c=s.validators[o]))throw d=s.format("Unknown validator %{name}",{name:o}),new Error(d);f=l[o],(f=s.result(f,u,e,i,n,t))&&r.push({attribute:i,value:u,validator:o,globalOptions:n,attributes:e,options:f,error:c.call(c,u,f,i,e,n)})}}return r},processValidationResults:function(e,t){var n;switch(e=s.pruneEmptyErrors(e,t),e=s.expandMultipleErrors(e,t),e=s.convertErrorMessages(e,t),t.format||"grouped"){case"detailed":break;case"flat":e=s.flattenErrorsToArray(e);break;case"grouped":e=s.groupErrorsByAttribute(e);for(n in a.sanitizeForInObject(e))e[n]=s.flattenErrorsToArray(e[n]);break;default:throw new Error(s.format("Unknown format %{format}",t))}return s.isEmpty(e)?void 0:e},async:function(e,t,n){var r=(n=s.extend({},s.async.options,n)).wrapErrors||function(e){return e};!1!==n.cleanAttributes&&(e=s.cleanAttributes(e,t));var i=s.runValidations(e,t,n);return new s.Promise(function(a,o){s.waitForResults(i).then(function(){var u=s.processValidationResults(i,n);u?o(new r(u,n,e,t)):a(e)},function(e){o(e)})})},single:function(e,t,n){return n=s.extend({},s.single.options,n,{format:"flat",fullMessages:!1}),s({single:e},{single:t},n)},waitForResults:function(e){return e.reduce(function(e,t){return s.isPromise(t.error)?e.then(function(){return t.error.then(function(e){t.error=e||null},function(e){if(e instanceof Error)throw e;s.error("Rejecting promises with the result is deprecated. Please use the resolve callback instead."),t.error=e})}):e},new s.Promise(function(e){e()}))},result:function(e){var t=[].slice.call(arguments,1);return"function"==typeof e&&(e=e.apply(null,t)),e},isNumber:function(e){return"number"==typeof e&&!isNaN(e)},isFunction:function(e){return"function"==typeof e},isInteger:function(e){return s.isNumber(e)&&e%1==0},isObject:function(e){return e===Object(e)},isDate:function(e){return e instanceof Date},isDefined:function(e){return null!==e&&void 0!==e},isPromise:function(e){return!!e&&s.isFunction(e.then)},isJqueryElement:function(e){return e&&s.isString(e.jquery)},isDomElement:function(e){return!!e&&(!(!s.isFunction(e.querySelectorAll)||!s.isFunction(e.querySelector))&&(!(!s.isObject(document)||e!==document)||("object"===("undefined"==typeof HTMLElement?"undefined":(0,i.default)(HTMLElement))?e instanceof HTMLElement:e&&"object"===(void 0===e?"undefined":(0,i.default)(e))&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName)))},isEmpty:function(e){var t;if(!s.isDefined(e))return!0;if(s.isFunction(e))return!1;if(s.isString(e))return s.EMPTY_STRING_REGEXP.test(e);if(s.isArray(e))return 0===e.length;if(s.isDate(e))return!1;if(s.isObject(e)){for(t in a.san
|
||
|
|
|
||
|
|
!function(){var e=Package.meteor.Meteor,t=Package.meteor.global,r=Package.meteor.meteorEnv,s=Package.jquery.$,n=Package.jquery.jQuery;(function(){(function(){!function(e,t){var r=[].slice,s={},n=e.amplify={publish:function(e){if("string"!=typeof e)throw new Error("You must provide a valid topic to publish.");var t=r.call(arguments,1),n,o,a,u=0,i;if(!s[e])return!0;for(a=(n=s[e].slice()).length;u<a&&(o=n[u],!1!==(i=o.callback.apply(o.context,t)));u++);return!1!==i},subscribe:function(e,t,r,n){if("string"!=typeof e)throw new Error("You must provide a valid topic to create a subscription.");3===arguments.length&&"number"==typeof r&&(n=r,r=t,t=null),2===arguments.length&&(r=t,t=null),n=n||10;for(var o=0,a=e.split(/\s/),u=a.length,i;o<u;o++){e=a[o],i=!1,s[e]||(s[e]=[]);for(var c=s[e].length-1,l={callback:r,context:t,priority:n};c>=0;c--)if(s[e][c].priority<=n){s[e].splice(c+1,0,l),i=!0;break}i||s[e].unshift(l)}return r},unsubscribe:function(e,t,r){if("string"!=typeof e)throw new Error("You must provide a valid topic to remove a subscription.");if(2===arguments.length&&(r=t,t=null),s[e])for(var n=s[e].length,o=0;o<n;o++)s[e][o].callback===r&&(t&&s[e][o].context!==t||(s[e].splice(o,1),o--,n--))}}}(this),function(e,t){function r(e,r){s.addType(e,function(o,a,u){var i,c,l,p,f=a,d=(new Date).getTime();if(!o){f={},p=[],l=0;try{for(o=r.length;o=r.key(l++);)n.test(o)&&((c=JSON.parse(r.getItem(o))).expires&&c.expires<=d?p.push(o):f[o.replace(n,"")]=c.data);for(;o=p.pop();)r.removeItem(o)}catch(e){}return f}if(o="__amplify__"+o,a===t){if(i=r.getItem(o),!((c=i?JSON.parse(i):{expires:-1}).expires&&c.expires<=d))return c.data;r.removeItem(o)}else if(null===a)r.removeItem(o);else{c=JSON.stringify({data:a,expires:u.expires?d+u.expires:null});try{r.setItem(o,c)}catch(t){s[e]();try{r.setItem(o,c)}catch(e){throw s.error()}}}return f})}var s=e.store=function(e,t,r){var n=s.type;return r&&r.type&&r.type in s.types&&(n=r.type),s.types[n](e,t,r||{})};s.types={},s.type=null,s.addType=function(e,t){s.type||(s.type=e),s.types[e]=t,s[e]=function(t,r,n){return n=n||{},n.type=e,s(t,r,n)}},s.error=function(){return"amplify.store quota exceeded"};var n=/^__amplify__/;for(var o in{localStorage:1,sessionStorage:1})try{window[o].setItem("__amplify__","x"),window[o].removeItem("__amplify__"),r(o,window[o])}catch(e){}if(!s.types.localStorage&&window.globalStorage)try{r("globalStorage",window.globalStorage[window.location.hostname]),"sessionStorage"===s.type&&(s.type="globalStorage")}catch(e){}!function(){if(!s.types.localStorage){var e=document.createElement("div"),r="amplify";e.style.display="none",document.getElementsByTagName("head")[0].appendChild(e);try{e.addBehavior("#default#userdata"),e.load(r)}catch(t){return void e.parentNode.removeChild(e)}s.addType("userData",function(n,o,a){e.load(r);var u,i,c,l,p,f=o,d=(new Date).getTime();if(!n){for(f={},p=[],l=0;u=e.XMLDocument.documentElement.attributes[l++];)(i=JSON.parse(u.value)).expires&&i.expires<=d?p.push(u.name):f[u.name]=i.data;for(;n=p.pop();)e.removeAttribute(n);return e.save(r),f}if(n=n.replace(/[^\-._0-9A-Za-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c-\u200d\u203f\u2040\u2070-\u218f]/g,"-"),n=n.replace(/^-/,"_-"),o===t){if(u=e.getAttribute(n),!((i=u?JSON.parse(u):{expires:-1}).expires&&i.expires<=d))return i.data;e.removeAttribute(n)}else null===o?e.removeAttribute(n):(c=e.getAttribute(n),i=JSON.stringify({data:o,expires:a.expires?d+a.expires:null}),e.setAttribute(n,i));try{e.save(r)}catch(t){null===c?e.removeAttribute(n):e.setAttribute(n,c),s.userData();try{e.setAttribute(n,i),e.save(r)}catch(t){throw null===c?e.removeAttribute(n):e.setAttribute(n,c),s.error()}}return f})}}(),function(){function e(e){return e===t?t:JSON.parse(JSON.stringify(e))}var r={},n={};s.addType("memory",function(s,o,a){return s?o===t?e(r[s]):(n[s]&&(clearTimeout(n[s]),delete n[s]),null===o?(delete r[s],null):(r[s]=o,a.expires&&(n[s]=setTimeout(function(){delete r[s],delete n[s]},a.expires)),o)):e(r)})}()}(this.amplify=this.amplify||{}),function(e,t){"use strict";function r(){}function s(e){return"[object Function]
|
||
|
|
|
||
|
|
!function(){"undefined"==typeof Package&&(Package={}),Package["ddp-rate-limiter"]={}}();
|
||
|
|
|
||
|
|
!function(){var e=Package.meteor.Meteor,t=Package.meteor.global,a=Package.meteor.meteorEnv,o=Package.random.Random;(function(){var a=Object.prototype.hasOwnProperty,r="_localstorage_test_"+o.id(),n,c;try{(c=t.localStorage)&&(c.setItem(r,r),n=c.getItem(r),c.removeItem(r))}catch(e){}r===n&&(e._localStorage=c),e._localStorage||(e.isClient&&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=Object.create({setItem:function(e,t){this[e]=t},removeItem:function(e){delete this[e]},getItem:function(e){return a.call(this,e)?this[e]:null}}))}).call(this),"undefined"==typeof Package&&(Package={}),Package.localstorage={}}();
|
||
|
|
|
||
|
|
!function(){var n=Package.meteor.Meteor,e=Package.meteor.global,t=Package.meteor.meteorEnv,a=Package.underscore._,r;(function(){r=function(n){var e=this;if(n=n||{},e.nextCallbackId=0,e.callbacks={},e.bindEnvironment=!0,!1===n.bindEnvironment&&(e.bindEnvironment=!1),n.exceptionHandler)e.exceptionHandler=n.exceptionHandler;else if(n.debugPrintExceptions){if(!a.isString(n.debugPrintExceptions))throw new Error("Hook option debugPrintExceptions should be a string");e.exceptionHandler=n.debugPrintExceptions}},a.extend(r.prototype,{register:function(t){var a=this,r=a.exceptionHandler||function(n){throw n};t=a.bindEnvironment?n.bindEnvironment(t,r):e(t,r);var o=a.nextCallbackId++;return a.callbacks[o]=t,{stop:function(){delete a.callbacks[o]}}},each:function(e){var t=this;n._nodeCodeMustBeInFiber();for(var r=a.keys(t.callbacks),o=0;o<r.length;++o){var i=r[o];if(a.has(t.callbacks,i)&&!e(t.callbacks[i]))break}}});var e=function(e,t,r){if(!t||"string"==typeof t){var o=t||"callback of async function";t=function(e){n._debug("Exception in "+o+":",e&&e.stack||e)}}return function(){var n=a.toArray(arguments);return function(){try{var a=e.apply(r,n)}catch(n){t(n)}return a}()}}}).call(this),"undefined"==typeof Package&&(Package={}),function(n,e){for(var t in e)t in n||(n[t]=e[t])}(Package["callback-hook"]={},{Hook:r})}();
|
||
|
|
|
||
|
|
!function(){var n=Package.meteor.Meteor,e=Package.meteor.global,o=Package.meteor.meteorEnv,t=Package.underscore._,i=Package.tracker.Tracker,r=Package.tracker.Deps,a=Package.random.Random,c=Package["callback-hook"].Hook,s=Package["reactive-var"].ReactiveVar,u=Package["ddp-client"].DDP,l=Package.mongo.Mongo,g=Package.modules.meteorInstall,_=Package.modules.process,f=Package["babel-runtime"].meteorBabelHelpers,h=Package.promise.Promise,p=Package["ecmascript-runtime-client"].Symbol,d=Package["ecmascript-runtime-client"].Map,k=Package["ecmascript-runtime-client"].Set,m,L,E,I=g({node_modules:{meteor:{"accounts-base":{"client_main.js":function(e,o,t){t.export({AccountsClient:function(){return i},AccountsTest:function(){return r}});var i=void 0;t.watch(e("./accounts_client.js"),{AccountsClient:function(n){i=n}},0);var r=void 0;t.watch(e("./url_client.js"),{AccountsTest:function(n){r=n}},1),t.watch(e("./localstorage_token.js")),m=new i,n.users=m.users},"accounts_client.js":function(e,o,i){function r(n){return n&&n.__esModule?n:{default:n}}var a=r(e("babel-runtime/helpers/classCallCheck")),c=r(e("babel-runtime/helpers/possibleConstructorReturn")),u=r(e("babel-runtime/helpers/inherits"));i.export({AccountsClient:function(){return g}});var l=void 0;i.watch(e("./accounts_common.js"),{AccountsCommon:function(n){l=n}},0);var g=function(n){function e(o){(0,a.default)(this,e);var t=(0,c.default)(this,n.call(this,o));return t._loggingIn=new s(!1),t._loggingOut=new s(!1),t._loginServicesHandle=t.connection.subscribe("meteor.loginServiceConfiguration"),t._pageLoadLoginCallbacks=[],t._pageLoadLoginAttemptInfo=null,t._initUrlMatching(),t._initLocalStorage(),t._loginFuncs={},t}return(0,u.default)(e,n),e.prototype.userId=function(){function n(){return this.connection.userId()}return n}(),e.prototype._setLoggingIn=function(){function n(n){this._loggingIn.set(n)}return n}(),e.prototype.loggingIn=function(){function n(){return this._loggingIn.get()}return n}(),e.prototype.loggingOut=function(){function n(){return this._loggingOut.get()}return n}(),e.prototype.registerClientLoginFunction=function(){function n(n,e){if(this._loginFuncs[n])throw new Error(n+" has been defined already");this._loginFuncs[n]=e}return n}(),e.prototype.callLoginFunction=function(){function n(n){if(!this._loginFuncs[n])throw new Error(n+" was not defined");for(var e=arguments.length,o=Array(e>1?e-1:0),t=1;t<e;t++)o[t-1]=arguments[t];return this._loginFuncs[n].apply(this,o)}return n}(),e.prototype.applyLoginFunction=function(){function n(n,e){if(!this._loginFuncs[n])throw new Error(n+" was not defined");return this._loginFuncs[n].apply(this,e)}return n}(),e.prototype.logout=function(){function n(n){var e=this;e._loggingOut.set(!0),e.connection.apply("logout",[],{wait:!0},function(o,t){e._loggingOut.set(!1),o?n&&n(o):(e.makeClientLoggedOut(),n&&n())})}return n}(),e.prototype.logoutOtherClients=function(){function n(n){var e=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)})}return n}(),e}(l),_=g.prototype;n.loggingIn=function(){return m.loggingIn()},n.loggingOut=function(){return m.loggingOut()},_.callLoginMethod=function(n){var e=this;n=t.extend({methodName:"login",methodArguments:[{}],_suppressLoggingIn:!1},n),t.each(["validateResult","userCallback"],function(e){n[e]||(n[e]=function(){})});var o=t.once(function(o){o?e._onLoginFailureHook.each(function(n){return n({error:o}),!0}):e._onLoginHook.each(function(n){return n(),!0}),n.userCallback.apply(this,arguments)}),i=!1,r=function(n,t){!n&&t&&t.token&&(e.connection.onReconnect=function(){i=!0;var n=e._storedLoginToken();n&&(t={token:n,tokenExpires:e._storedLoginTokenExpires()}),t.tokenExpires||(t.tokenExpires=e._tokenExpiration(new Date)),e._tokenExpiresSoon(t.tokenExpires)?e.makeClientLoggedOut():e.callLoginMethod({methodArguments:[{resume:t.token}],_suppressLoggingIn:!0,userCallback:function(n){var i=e._storedLoginToken();n&&i&&i===t.token&&e.makeClientLoggedOut(),o(n)}})})},a=
|
||
|
|
|
||
|
|
!function(){var t=Package.meteor.Meteor,e=Package.meteor.global,i=Package.meteor.meteorEnv,s=Package.jquery.$,a=Package.jquery.jQuery,o=Package.tracker.Tracker,n=Package.tracker.Deps,r=Package["reactive-dict"].ReactiveDict,c=Package.session.Session,p=Package.underscore._,u=Package.ejson.EJSON,h;(function(){var e=function(t){return void 0===t?"undefined":u.stringify(t)},i=function(t){if(void 0!==t&&"undefined"!==t)return u.parse(t)},s=function(t){t&&t.changed()};(h=function(e){function i(){if(!(amplify.store("__PSDATAVERSION__"+c._dictName)>=1)){var t=amplify.store("__PSKEYS__"+c._dictName),e=amplify.store("__PSAKEYS__"+c._dictName);p.each([t,e],function(t){p.each(t,function(t){amplify.store(t,u.stringify(amplify.store(t)))})}),amplify.store("__PSDATAVERSION__"+c._dictName,2)}}function s(){if(!(amplify.store("__PSDATAVERSION__"+c._dictName)>=n)){var t=amplify.store("__PSKEYS__"+c._dictName),e=amplify.store("__PSAKEYS__"+c._dictName);p.each([t,e],function(t){p.each(t,function(t){var e=!1;try{u.parse(amplify.store(c._dictName+t))}catch(t){e=!0}if(!e){var i=u.parse(amplify.store(c._dictName+t)),s=u.toJSONValue(i);amplify.store(c._dictName+t,s)}})}),amplify.store("__PSDATAVERSION__"+c._dictName,4)}}if(!p.isString(e))throw new Error("dictName must be a string");this._dictName=e,"session"==e?(this._dictName="",this._dict=a):this._dict=new r(e);var n=4;this.psKeys={},this.psKeyList=[],this.psaKeys={},this.psaKeyList=[],this.default_method="temporary",t.settings&&t.settings.public&&t.settings.public.persistent_session&&(this.default_method=t.settings.public.persistent_session.default_method);var c=this;return t.isClient&&t.startup(function(){var t;i(),s();var e=amplify.store("__PSKEYS__"+c._dictName);if("object"==typeof e&&void 0!==e.length)for(var a=0;a<e.length;a++)p.has(c._dict.keys,e[a])||(t=c.get(e[a]),c.set(e[a],t,!0,!1));var o=amplify.store("__PSAKEYS__"+c._dictName);if("object"==typeof o&&void 0!==o.length)for(var a=0;a<o.length;a++)p.has(c._dict.keys,o[a])||(t=c.get(o[a]),c.setAuth(o[a],t,!0,!0))}),o.autorun(function(){t.userId&&(t.userId()||c.clearAuth())}),this}).prototype.store=function t(e,i,s){if(this.psKeyList=amplify.store("__PSKEYS__"+this._dictName)||[],this.psaKeyList=amplify.store("__PSAKEYS__"+this._dictName)||[],"get"==e)return amplify.store(this._dictName+i);this.psKeyList=p.without(this.psKeyList,i),this.psaKeyList=p.without(this.psaKeyList,i),delete this.psKeys[i],delete this.psaKeys[i],void 0===s||null===s||"temporary"==e?s=null:"persistent"==e?(this.psKeys[i]=u.toJSONValue(s),this.psKeyList=p.union(this.psKeyList,[i])):"authenticated"==e&&(this.psaKeys[i]=u.toJSONValue(s),this.psaKeyList=p.union(this.psaKeyList,[i])),amplify.store("__PSKEYS__",this.psKeyList),amplify.store("__PSAKEYS__",this.psaKeyList),amplify.store(this._dictName+i,u.toJSONValue(s))},h.prototype.old_get=function(){return this._dict.get.apply(this._dict,arguments)},h.prototype.get=function t(e){var i=this.old_get(e),s;return void 0!==this.store("get",e)&&(s=u.fromJSONValue(this.store("get",e))),void 0===s||null===s?i:s},h.prototype.old_set=function(){return this._dict.set.apply(this._dict,arguments)},h.prototype.set=function t(e,i,s,a){if("object"!=typeof e||void 0!==i){var o=e,n="temporary";(s||void 0===s&&("persistent"==this.default_method||"authenticated"==this.default_method))&&(n=a||void 0===s&&void 0===a&&"authenticated"==this.default_method?"authenticated":"persistent"),this.store(n,o,i),this.old_set(o,i)}else this._setObject(e,s,a)},h.prototype.all=function t(){this._dict.allDeps&&this._dict.allDeps.depend();var e={};return p.each(this._dict.keys,function(t,s){e[s]=i(t)}),e},h.prototype._setObject=function t(e,i,s){var a=this;p.each(e,function(t,e){a.set(e,t,i,s)})},h.prototype._ensureKey=function t(e){var i=this._dict;e in i.keyDeps||(i.keyDeps[e]=new o.Dependency,i.keyValueDeps[e]={})},h.prototype.equals=function t(i,s){var a=null;if(Package.mongo&&(a=Package.mongo.Mongo.ObjectID),!("string"==typeof s||"number"==typeof s||"boolean"==typeof s||void 0===s||s instanceof Date||a&&s instanceof a||null===s))throw new Error("Reacti
|
||
|
|
|
||
|
|
!function(){var e=Package.meteor.Meteor,o=Package.meteor.global,n=Package.meteor.meteorEnv,t=Package.modules.meteorInstall,a=Package.modules.process,c=Package["babel-runtime"].meteorBabelHelpers,l=Package.promise.Promise,i=Package["ecmascript-runtime-client"].Symbol,r=Package["ecmascript-runtime-client"].Map,s=Package["ecmascript-runtime-client"].Set,g=Package.webapp.WebApp,u=Package.logging.Log,f=Package.deps.Tracker,d=Package.deps.Deps,p=Package.session.Session,v=Package["ddp-client"].DDP,m=Package.mongo.Mongo,k=Package.ui.Blaze,P=Package.ui.UI,h=Package.ui.Handlebars,y=Package.spacebars.Spacebars,w=Package["templating-runtime"].Template,b=Package.check.check,L=Package.check.Match,R=Package.underscore._,E=Package.jquery.$,j=Package.jquery.jQuery,S=Package.random.Random,I=Package.ejson.EJSON,T=Package["launch-screen"].LaunchScreen,C=Package.htmljs.HTML;t({node_modules:{meteor:{"ohif:log":{"main.js":function(o,n,t){var a=void 0;t.watch(o("meteor/ohif:core"),{OHIF:function(e){a=e}},0);var c=void 0;t.watch(o("loglevel"),{default:function(e){c=e}},1);var l=e.isProduction?"ERROR":"TRACE";a.log=c.getLogger("OHIF"),a.log.setLevel(l)},node_modules:{loglevel:{"package.json":function(e,o){o.name="loglevel",o.version="1.4.1",o.main="lib/loglevel"},lib:{"loglevel.js":function(e,o,n){!function(e,o){"use strict";"function"==typeof define&&define.amd?define(o):"object"==typeof n&&n.exports?n.exports=o():e.log=o()}(this,function(){"use strict";function e(e){return typeof console!==i&&(void 0!==console[e]?o(console,e):void 0!==console.log?o(console,"log"):l)}function o(e,o){var n=e[o];if("function"==typeof n.bind)return n.bind(e);try{return Function.prototype.bind.call(n,e)}catch(o){return function(){return Function.prototype.apply.apply(n,[e,arguments])}}}function n(e,o,n){return function(){typeof console!==i&&(t.call(this,o,n),this[e].apply(this,arguments))}}function t(e,o){for(var n=0;n<r.length;n++){var t=r[n];this[t]=n<e?l:this.methodFactory(t,e,o)}}function a(o,t,a){return e(o)||n.apply(this,arguments)}function c(e,o,n){function c(e){var o=(r[e]||"silent").toUpperCase();try{return void(window.localStorage[u]=o)}catch(e){}try{window.document.cookie=encodeURIComponent(u)+"="+o+";"}catch(e){}}function l(){var e;try{e=window.localStorage[u]}catch(e){}if(typeof e===i)try{var o=window.document.cookie,n=o.indexOf(encodeURIComponent(u)+"=");n&&(e=/^([^;]+)/.exec(o.slice(n))[1])}catch(e){}return void 0===s.levels[e]&&(e=void 0),e}var s=this,g,u="loglevel";e&&(u+=":"+e),s.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},s.methodFactory=n||a,s.getLevel=function(){return g},s.setLevel=function(o,n){if("string"==typeof o&&void 0!==s.levels[o.toUpperCase()]&&(o=s.levels[o.toUpperCase()]),!("number"==typeof o&&o>=0&&o<=s.levels.SILENT))throw"log.setLevel() called with invalid level: "+o;if(g=o,!1!==n&&c(o),t.call(s,o,e),typeof console===i&&o<s.levels.SILENT)return"No console available for logging"},s.setDefaultLevel=function(e){l()||s.setLevel(e,!1)},s.enableAll=function(e){s.setLevel(s.levels.TRACE,e)},s.disableAll=function(e){s.setLevel(s.levels.SILENT,e)};var f=l();null==f&&(f=null==o?"WARN":o),s.setLevel(f,!1)}var l=function(){},i="undefined",r=["trace","debug","info","warn","error"],s=new c,g={};s.getLogger=function e(o){if("string"!=typeof o||""===o)throw new TypeError("You must supply a name when creating a logger.");var n=g[o];return n||(n=g[o]=new c(o,s.getLevel(),s.methodFactory)),n};var u=typeof window!==i?window.log:void 0;return s.noConflict=function(){return typeof window!==i&&window.log===s&&(window.log=u),s},s})}}}}}}}},{extensions:[".js",".json"]})("./node_modules/meteor/ohif:log/main.js"),"undefined"==typeof Package&&(Package={}),Package["ohif:log"]={}}();
|
||
|
|
|
||
|
|
!function(){var e=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,o=Package.http.HTTP,i=Package.jquery.$,a=Package.jquery.jQuery,r=Package["momentjs:moment"].moment,s=Package.validatejs.validate,c=Package["u2622:persistent-session"].PersistentSession,u=Package.modules.meteorInstall,l=Package.modules.process,d=Package["babel-runtime"].meteorBabelHelpers,m=Package.promise.Promise,p=Package["ecmascript-runtime-client"].Symbol,f=Package["ecmascript-runtime-client"].Map,g=Package["ecmascript-runtime-client"].Set,x=Package.webapp.WebApp,h=Package.logging.Log,v=Package.deps.Tracker,S=Package.deps.Deps,y=Package.session.Session,I=Package["ddp-client"].DDP,w=Package.mongo.Mongo,T=Package.ui.Blaze,D=Package.ui.UI,b=Package.ui.Handlebars,C=Package.spacebars.Spacebars,P=Package["templating-runtime"].Template,k=Package.check.check,R=Package.check.Match,V=Package.underscore._,O=Package.random.Random,M=Package.ejson.EJSON,A=Package["launch-screen"].LaunchScreen,q=Package.htmljs.HTML,L,N,E,F,B=u({node_modules:{meteor:{"ohif:viewerbase":{client:{components:{basic:{layout:{"template.layout.js":function(){P.__checkName("layout"),P.layout=new P("Template.layout",function(){var e=this;return C.include(e.lookupTemplate("yield"))})}},loadingText:{"template.loadingText.js":function(){P.__checkName("loadingText"),P.loadingText=new P("Template.loadingText",function(){var e=this;return q.Raw('<div class="loadingTextDiv">\n Loading... <i class="fa fa-spin fa-circle-o-notch fa-fw"></i>\n </div>')})}},errorText:{"template.errorText.js":function(){P.__checkName("errorText"),P.errorText=new P("Template.errorText",function(){var e=this;return q.DIV({class:"errorTextDiv"},"\n Error: ",T.View("lookup:error",function(){return C.mustache(e.lookup("error"))}),"\n ")})}},removableBackdrop:{"template.removableBackdrop.js":function(){P.__checkName("removableBackdrop"),P.removableBackdrop=new P("Template.removableBackdrop",function(){var e=this;return q.Raw('<div class="removableBackdrop noselect" oncontextmenu="return false;" unselectable="on" onselectstart="return false;">\n </div>')})}},aboutModal:{"template.aboutModal.js":function(){P.__checkName("aboutModal"),P.aboutModal=new P("Template.aboutModal",function(){var e=this;return T._TemplateWith(function(){return C.dataMustache(e.lookup("extend"),e.lookup("."),C.kw({id:"aboutModal",dialogClass:"modal-lg",title:"About"}))},function(){return C.include(e.lookupTemplate("dialogSimple"),function(){return["\n ",q.A({target:"_blank",class:"forkOnGithub",href:function(){return C.mustache(e.lookup("githubUrl"))}},"\n ",q.IMG({src:"https://camo.githubusercontent.com/365986a132ccd6a44c23a9169022c0b5c890c387/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f7265645f6161303030302e706e67",alt:"Fork me on GitHub","data-canonical-src":"https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png"}),"\n "),"\n ",q.DIV({class:"logo p-x-3 p-y-3 clearfix"},"\n ",q.SVG({class:"logoImage pull-left"},"\n ",q.USE({"xlink:href":function(){return C.mustache(e.lookup("absoluteUrl"),"packages/ohif_viewerbase/assets/icons.svg#icon-ohif-logo")}}),"\n "),"\n ",q.A({class:"logoText pull-left",target:"_blank",href:"http://ohif.org"},"\n Open Health Imaging Foundation DICOM Viewer\n "),"\n "),"\n ",q.DIV({class:"p-x-1 p-y-1 m-y-2"},"\n ",q.A({class:"btn btn-default inline",target:"_blank",href:"https://groups.google.com/forum/#!forum/cornerstone-platform"},"\n Visit the forum\n "),"\n ",q.A({class:"btn btn-default inline",target:"_blank",href:"https://github.com/OHIF/Viewers/issues"},"\n Report an issue\n "),"\n "),"\n ",q.DIV({class:"p-y-1 p-x-1"},"\n ",q.H3("Version Information"),"\n ",q.TABLE({class:"table table-responsive"},"\n ",q.THEAD("\n ",q.TR("\n
|
||
|
|
|
||
|
|
!function(){var e=Package.meteor.Meteor,t=Package.meteor.global,a=Package.meteor.meteorEnv,n=Package["ohif:viewerbase"].dialogPolyfill,i=Package.modules.meteorInstall,r=Package.modules.process,s=Package["babel-runtime"].meteorBabelHelpers,o=Package.promise.Promise,u=Package["ecmascript-runtime-client"].Symbol,c=Package["ecmascript-runtime-client"].Map,l=Package["ecmascript-runtime-client"].Set,d=i({node_modules:{meteor:{"ohif:metadata":{"main.js":function(e,t,a){a.export({OHIF:function(){return n},Metadata:function(){return i}});var n=void 0,i=void 0;a.watch(e("./namespace.js"),{OHIF:function(e){n=e},Metadata:function(e){i=e}},0),a.watch(e("./client/"))},"namespace.js":function(e,t,a){a.export({OHIF:function(){return n},Metadata:function(){return i}});var n=void 0;a.watch(e("meteor/ohif:core"),{OHIF:function(e){n=e}},0);var i={};n.metadata=i},client:{"OHIFInstanceMetadata.js":function(e,t,a){function n(e){return e&&e.__esModule?e:{default:e}}var i=n(e("babel-runtime/helpers/classCallCheck")),r=n(e("babel-runtime/helpers/possibleConstructorReturn")),s=n(e("babel-runtime/helpers/inherits"));a.export({OHIFInstanceMetadata:function(){return l}});var o=void 0;a.watch(e("meteor/ohif:viewerbase"),{Viewerbase:function(e){o=e}},0);var u=o.metadata.InstanceMetadata,c=o.DICOMTagDescriptions,l=function(e){function t(a,n,s,o){(0,i.default)(this,t);var u=(0,r.default)(this,e.call(this,a,o));return u.init(n,s),u}return(0,s.default)(t,e),t.prototype.init=function(){function e(e,t){var a=this.getData();Object.defineProperties(this,{_sopInstanceUID:{configurable:!1,enumerable:!1,writable:!1,value:a.sopInstanceUid},_study:{configurable:!1,enumerable:!1,writable:!1,value:t},_series:{configurable:!1,enumerable:!1,writable:!1,value:e},_instance:{configurable:!1,enumerable:!1,writable:!1,value:a},_cache:{configurable:!1,enumerable:!1,writable:!1,value:Object.create(null)}})}return e}(),t.prototype.getTagValue=function(){function e(e,a,n){if(e in this._cache&&!0!==n)return this._cache[e];var i=t.getPropertyName(e),r=void 0;return i in this._instance?r=this._instance[i]:i in this._series?r=this._series[i]:i in this._study&&(r=this._study[i]),void 0!==r?(this._cache[e]=r,r):a}return e}(),t.prototype.tagExists=function(){function e(e){var a=t.getPropertyName(e);return a in this._instance||a in this._series||a in this._study}return e}(),t.prototype.getImageId=function(){function e(e,t){return null===this._imageId&&(this._imageId=o.getImageId(this.getData(),e,t)),this._imageId}return e}(),t.getPropertyName=function(){function e(e){var t=void 0,a=c.find(e);return void 0!==a&&(t=(t=a.keyword.replace(/^SOP/,"sop").replace(/UID$/,"Uid").replace(/ID$/,"Id")).charAt(0).toLowerCase()+t.substr(1)),t}return e}(),t}(u)},"OHIFSeriesMetadata.js":function(e,t,a){function n(e){return e&&e.__esModule?e:{default:e}}var i=n(e("babel-runtime/helpers/classCallCheck")),r=n(e("babel-runtime/helpers/possibleConstructorReturn")),s=n(e("babel-runtime/helpers/inherits"));a.export({OHIFSeriesMetadata:function(){return c}});var o=void 0;a.watch(e("meteor/ohif:viewerbase"),{Viewerbase:function(e){o=e}},0);var u=void 0;a.watch(e("./OHIFInstanceMetadata"),{OHIFInstanceMetadata:function(e){u=e}},1);var c=function(e){function t(a,n,s){(0,i.default)(this,t);var o=(0,r.default)(this,e.call(this,a,s));return o.init(n),o}return(0,s.default)(t,e),t.prototype.init=function(){function e(e){var t=this,a=this.getData();Object.defineProperty(this,"_seriesInstanceUID",{configurable:!1,enumerable:!1,writable:!1,value:a.seriesInstanceUid}),a.instances.forEach(function(n){t.addInstance(new u(n,a,e))})}return e}(),t}(o.metadata.SeriesMetadata)},"OHIFStudyMetadata.js":function(e,t,a){function n(e){return e&&e.__esModule?e:{default:e}}var i=n(e("babel-runtime/helpers/classCallCheck")),r=n(e("babel-runtime/helpers/possibleConstructorReturn")),s=n(e("babel-runtime/helpers/inherits"));a.export({OHIFStudyMetadata:function(){return c}});var o=void 0;a.watch(e("meteor/ohif:viewerbase"),{Viewerbase:function(e){o=e}},0);var u=void 0;a.watch(e("./OHIFSeriesMetadata"),{OHIFSeriesMetadata:function(e){u=e}},
|
||
|
|
|
||
|
|
!function(){var t=Package.meteor.Meteor,e=Package.meteor.global,r=Package.meteor.meteorEnv,n;(function(){(function(){!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var r;"undefined"!=typeof window?r=window:void 0!==e?r=e:"undefined"!=typeof self&&(r=self),r.JSZip=t()}}(function(){var t,e,r;return function t(e,r,n){function i(s,o){if(!r[s]){if(!e[s]){var d="function"==typeof require&&require;if(!o&&d)return d(s,!0);if(a)return a(s,!0);throw new Error("Cannot find module '"+s+"'")}var l=r[s]={exports:{}};e[s][0].call(l.exports,function(t){var r=e[s][1][t];return i(r||t)},l,l.exports,t,e,r,n)}return r[s].exports}for(var a="function"==typeof require&&require,s=0;s<n.length;s++)i(n[s]);return i}({1:[function(t,e,r){"use strict";var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";r.encode=function(t,e){for(var r="",i,a,s,o,d,l,h,f=0;f<t.length;)o=(i=t.charCodeAt(f++))>>2,d=(3&i)<<4|(a=t.charCodeAt(f++))>>4,l=(15&a)<<2|(s=t.charCodeAt(f++))>>6,h=63&s,isNaN(a)?l=h=64:isNaN(s)&&(h=64),r=r+n.charAt(o)+n.charAt(d)+n.charAt(l)+n.charAt(h);return r},r.decode=function(t,e){var r="",i,a,s,o,d,l,h,f=0;for(t=t.replace(/[^A-Za-z0-9\+\/\=]/g,"");f<t.length;)i=(o=n.indexOf(t.charAt(f++)))<<2|(d=n.indexOf(t.charAt(f++)))>>4,a=(15&d)<<4|(l=n.indexOf(t.charAt(f++)))>>2,s=(3&l)<<6|(h=n.indexOf(t.charAt(f++))),r+=String.fromCharCode(i),64!=l&&(r+=String.fromCharCode(a)),64!=h&&(r+=String.fromCharCode(s));return r}},{}],2:[function(t,e,r){"use strict";function n(){this.compressedSize=0,this.uncompressedSize=0,this.crc32=0,this.compressionMethod=null,this.compressedContent=null}n.prototype={getContent:function(){return null},getCompressedContent:function(){return null}},e.exports=n},{}],3:[function(t,e,r){"use strict";r.STORE={magic:"\0\0",compress:function(t,e){return t},uncompress:function(t){return t},compressInputType:null,uncompressInputType:null},r.DEFLATE=t("./flate")},{"./flate":8}],4:[function(t,e,r){"use strict";var n=t("./utils"),i=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268
|
||
|
|
|
||
|
|
!function(){var e=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,r=Package.underscore._,i;(function(){(function(){var e=function(e,t){var n=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=function(e){var t=this;if(!(t instanceof i))throw new Error('use "new" to construct an EventEmitter');e=e||{},t._eventEmitter={onListeners:{},onceListeners:{},maxListeners:e.maxListeners||10}}).prototype.setMaxListeners=function(e){this._eventEmitter.maxListeners=e};var t=function(t,n,r){return void 0===t[n]&&(t[n]=[]),e.apply(this,[n,t[n].push(r)])};i.prototype.on=function(e,n){var r=t.apply(this,[this._eventEmitter.onListeners,e,n]);return r&&console.warn(new Error(r).stack),this},i.prototype.once=function(e,n){var r=t.apply(this,[this._eventEmitter.onceListeners,e,n]);return r&&console.warn(new Error(r).stack),this};var n=function(e,t){var n=this,i=0;return void 0!==e&&r.each(e,function(e){i++,e.apply(n,t)}),i};i.prototype.emit=function(e){var t=this,i=r.rest(arguments),o=0,s=t._eventEmitter.onceListeners[e];return t._eventEmitter.onceListeners[e]=[],o+=n.call(t,t._eventEmitter.onListeners[e],i),(o+=n.call(t,s,i))>0};var o=function(e,t){for(var n=!1,r=[],i=0;i<e.length;i++)n||e[i]!==t?r.push(e[i]):n=!0;return r};i.prototype.off=function(e,t){var n=this;e?"function"==typeof t?(void 0!==n._eventEmitter.onListeners[e]&&(n._eventEmitter.onListeners[e]=o(n._eventEmitter.onListeners[e],t)),void 0!==n._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"==typeof Package&&(Package={}),function(e,t){for(var n in t)n in e||(e[n]=t[n])}(Package["raix:eventemitter"]={},{EventEmitter:i})}();
|
||
|
|
|
||
|
|
!function(){var e=Package.meteor.Meteor,t=Package.meteor.global,i=Package.meteor.meteorEnv,n=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,m=Package.minimongo.Minimongo,u=Package.ejson.EJSON,d=Package["raix:eventemitter"].EventEmitter,f;(function(){function t(t,n,r,l,m){function u(e,i,n,r,a,s){E.clean(e,{mutate:!0,filter:n,autoConvert:r,getAutoValues:i,isModifier:"insert"!==t,removeEmptyStrings:a,trimStrings:s,extendAutoValueContext:o.extend({isInsert:"insert"===t,isUpdate:"update"===t&&!0!==v.upsert,isUpsert:_,userId:l,isFromTrustedCode:m,docId:I,isLocalCollection:k},v.extendAutoValueContext||{})})}var d=this,f,p,h,v,_,g,y,S;if(!n.length)throw new Error(t+" requires an argument");if("insert"===t)f=n[0],v=n[1],p=n[2],n="function"==typeof v?[f,v]:"function"==typeof p?[f,p]:[f];else{if("update"!==t)throw new Error("invalid type argument");g=n[0],f=n[1],v=n[2],p=n[3]}var C=o.isEmpty(f);p||"function"!=typeof v||(p=v,v={}),v=v||{},S="function"==typeof n[y=n.length-1],_="update"===t&&!0===v.upsert;var E=d.simpleSchema(f,v,g),k=null===d._connection;(e.isServer||k)&&!1===v.getAutoValues&&(r=!1);var w=v.validationContext;w?"string"==typeof w&&(w=E.namedContext(w)):w=E.namedContext(),e.isClient&&!p&&(p=function(i){i&&e._debug(t+" failed: "+(i.reason||i.stack))}),e.isClient&&S&&(p=n[y]=s(w,p));var x=E.allowsKey("_id");"insert"===t&&!f._id&&x&&(f._id=d._makeNewID());var I;"insert"===t?I=f._id:"update"===t&&g&&(I="string"==typeof g||g instanceof c.ObjectID?g:g._id);var P;f._id&&!x&&(P=f._id,delete f._id),u(f,r,!1!==v.filter,!1!==v.autoConvert,!1!==v.removeEmptyStrings,!1!==v.trimStrings);var A={};for(var M in f)f.hasOwnProperty(M)&&(A[M]=f[M]);if(e.isServer&&_&&o.isObject(g)){var O=A.$set||{};A.$set=o.clone(g),x||delete A.$set._id,o.extend(A.$set,O)}if(e.isClient&&!k&&u(A,!0,!1,!1,!1,!1),!C&&o.isEmpty(A))throw new Error("After filtering out keys not in the schema, your "+("update"===t?"modifier":"object")+" is now empty");var V;if(V=!1===v.validate||w.validate(A,{modifier:"update"===t||"upsert"===t,upsert:_,extendedCustomContext:o.extend({isInsert:"insert"===t,isUpdate:"update"===t&&!0!==v.upsert,isUpsert:_,userId:l,isFromTrustedCode:m,docId:I,isLocalCollection:k},v.extendedCustomContext||{})}))return P&&(f._id=P),"insert"===t?n[0]=f:n[1]=f,e.isServer&&S&&(n[y]=a(w,n[y])),n;if(h=i(w),!p)throw h;p(h,!1)}function i(t){var i,r=n.version>=2?t.validationErrors():t.invalidKeys();i=r.length?t.keyErrorMessage(r[0].name):"Failed validation";var o=new Error(i);return o.invalidKeys=r,o.validationContext=t,e.isServer&&(o.sanitizedError=new e.Error(400,i,u.stringify(o.invalidKeys))),o}function r(e,t){var i=t.split("c2_")[1].split(" ")[0],n=t.split("dup key:")[1].split('"')[1];e[h]([{name:i,type:"notUnique",value:n}])}function a(e,t){return function n(a){var s=o.toArray(arguments);return a&&("MongoError"===a.name&&11001===a.code||a.message.indexOf(!0))&&-1!==a.message.indexOf("c2_")&&(r(e,a.message),s[0]=i(e)),t.apply(this,s)}}function s(t,n){return function a(s){var c=o.toArray(arguments);if(s instanceof e.Error&&400===s.error&&"INVALID"===s.reason&&"string"==typeof s.details){var l=u.parse(s.details);t[h](l),c[0]=i(t)}else s instanceof e.Error&&409===s.error&&s.reason&&-1!==s.reason.indexOf("E11000")&&-1!==s.reason.indexOf("c2_")&&(r(t,s.reason),c[0]=i(t));return n.apply(this,c)}}function m(e){Package&&Package.insecure&&!v[e._name]&&(e.allow({insert:function(){return!0},update:function(){return!0},remove:function(){return!0},fetch:[],transform:null}),v[e._name]=!0)}function p(i,n){if(!_[i._name]){var r=null===i._connection;i.deny({insert:function(e,t){return i.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,n,o){return i.simpleSchema(o).clean(o,{mutate:!0,isModifier:!0,
|
||
|
|
|
||
|
|
!function(){var e=Package.meteor.Meteor,a=Package.meteor.global,n=Package.meteor.meteorEnv,o=Package["aldeed:collection2-core"].Collection2,c=Package.underscore._,i=Package.minimongo.LocalCollection,t=Package.minimongo.Minimongo,s=Package.check.check,l=Package.check.Match,m=Package.modules.meteorInstall,r=Package.modules.process,u=Package["babel-runtime"].meteorBabelHelpers,g=Package.promise.Promise,d=Package["aldeed:simple-schema"].SimpleSchema,k=Package["aldeed:simple-schema"].MongoObject,p=Package.mongo.Mongo,P=Package["ecmascript-runtime-client"].Symbol,h=Package["ecmascript-runtime-client"].Map,b=Package["ecmascript-runtime-client"].Set;m({node_modules:{meteor:{"aldeed:schema-index":{lib:{"indexing.js":function(){d.extendOptions({index:l.Optional(l.OneOf(Number,String,Boolean)),unique:l.Optional(Boolean),sparse:l.Optional(Boolean)}),(!d.version||d.version<2)&&d.messages({notUnique:"[label] must be unique"}),e.isServer&&o.on("schema.attached",function(a,n){function o(n,o,c,i){e.startup(function(){a._collection._ensureIndex(n,{background:!0,name:o,unique:c,sparse:i})})}function i(n){e.startup(function(){try{a._collection._dropIndex(n)}catch(e){}})}n.version>=2&&n.messageBox.messages({notUnique:"{{label}} must be unique"});var t=2===n.version?"mergedSchema":"schema";c.each(n[t](),function(e,a){if("index"in e||!0===e.unique){var n={},c;"index"in e?!0===(c=e.index)&&(c=1):c=1;var t="c2_"+a;n[a.replace(/\.\$\./g,".")]=c;var s=!!e.unique&&(1===c||-1===c),l=e.sparse||!1;!l&&s&&e.optional&&(l=!0),!1===c?i(t):o(n,t,s,l)}})})}}}}}},{extensions:[".js",".json"]})("./node_modules/meteor/aldeed:schema-index/lib/indexing.js"),"undefined"==typeof Package&&(Package={}),Package["aldeed:schema-index"]={}}();
|
||
|
|
|
||
|
|
!function(){var e=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){var e=this.definition;return e.denyInsert&&this.isInsert?"insertNotAllowed":e.denyUpdate&&(this.isUpdate||this.isUpsert)?"updateNotAllowed":void 0}})})}).call(this),"undefined"==typeof Package&&(Package={}),Package["aldeed:schema-deny"]={}}();
|
||
|
|
|
||
|
|
!function(){"undefined"==typeof Package&&(Package={}),Package["aldeed:collection2"]={}}();
|
||
|
|
|
||
|
|
!function(){var t=Package.meteor.Meteor,e=Package.meteor.global,a=Package.meteor.meteorEnv,i=Package["momentjs:moment"].moment;(function(){(function(){this.moment=i}).call(this),function(){!function(t,e){if("function"==typeof define&&define.amd)define(["moment","jquery","exports"],function(a,i,s){t.daterangepicker=e(t,s,a,i)});else if("undefined"!=typeof exports){var a=require("moment"),i;try{i=require("jquery")}catch(t){if(!(i=window.jQuery))throw new Error("jQuery dependency not found")}e(t,exports,a,i)}else t.daterangepicker=e(t,{},t.moment,t.jQuery||t.Zepto||t.ender||t.$)}(this,function(t,e,a,i){var s=function(t,e,a){this.parentEl="body",this.element=i(t),this.isShowing=!1;var s='<div class="daterangepicker dropdown-menu"><div class="calendar first left"></div><div class="calendar second right"></div><div class="ranges"><div class="range_inputs"><div class="daterangepicker_start_input"><label for="daterangepicker_start"></label><input class="input-mini" type="text" name="daterangepicker_start" value="" /></div><div class="daterangepicker_end_input"><label for="daterangepicker_end"></label><input class="input-mini" type="text" name="daterangepicker_end" value="" /></div><button class="applyBtn" disabled="disabled"></button> <button class="cancelBtn"></button></div></div></div>';"object"==typeof e&&null!==e||(e={}),this.parentEl=i("object"==typeof e&&e.parentEl&&i(e.parentEl).length?e.parentEl:this.parentEl),this.container=i(s).appendTo(this.parentEl),this.setOptions(e,a),this.container.find(".calendar").on("click.daterangepicker",".prev",i.proxy(this.clickPrev,this)).on("click.daterangepicker",".next",i.proxy(this.clickNext,this)).on("click.daterangepicker","td.available",i.proxy(this.clickDate,this)).on("mouseenter.daterangepicker","td.available",i.proxy(this.hoverDate,this)).on("mouseleave.daterangepicker","td.available",i.proxy(this.updateFormInputs,this)).on("change.daterangepicker","select.yearselect",i.proxy(this.updateMonthYear,this)).on("change.daterangepicker","select.monthselect",i.proxy(this.updateMonthYear,this)).on("change.daterangepicker","select.hourselect,select.minuteselect,select.secondselect,select.ampmselect",i.proxy(this.updateTime,this)),this.container.find(".ranges").on("click.daterangepicker","button.applyBtn",i.proxy(this.clickApply,this)).on("click.daterangepicker","button.cancelBtn",i.proxy(this.clickCancel,this)).on("click.daterangepicker",".daterangepicker_start_input,.daterangepicker_end_input",i.proxy(this.showCalendars,this)).on("change.daterangepicker",".daterangepicker_start_input,.daterangepicker_end_input",i.proxy(this.inputsChanged,this)).on("keydown.daterangepicker",".daterangepicker_start_input,.daterangepicker_end_input",i.proxy(this.inputsKeydown,this)).on("click.daterangepicker","li",i.proxy(this.clickRange,this)).on("mouseenter.daterangepicker","li",i.proxy(this.enterRange,this)).on("mouseleave.daterangepicker","li",i.proxy(this.updateFormInputs,this)),this.element.is("input")?this.element.on({"click.daterangepicker":i.proxy(this.show,this),"focus.daterangepicker":i.proxy(this.show,this),"keyup.daterangepicker":i.proxy(this.updateFromControl,this),"keydown.daterangepicker":i.proxy(this.keydown,this)}):this.element.on("click.daterangepicker",i.proxy(this.toggle,this))};s.prototype={constructor:s,setOptions:function(t,e){if(this.startDate=a().startOf("day"),this.endDate=a().endOf("day"),this.timeZone=a().utcOffset(),this.minDate=!1,this.maxDate=!1,this.dateLimit=!1,this.showDropdowns=!1,this.showWeekNumbers=!1,this.timePicker=!1,this.timePickerSeconds=!1,this.timePickerIncrement=30,this.timePicker12Hour=!0,this.singleDatePicker=!1,this.ranges={},this.opens="right",this.element.hasClass("pull-right")&&(this.opens="left"),this.drops="down",this.element.hasClass("dropup")&&(this.drops="up"),this.buttonClasses=["btn","btn-small btn-sm"],this.applyClass="btn-success",this.cancelClass="btn-default",this.format="MM/DD/YYYY",this.separator=" - ",this.locale={applyLabel:"Apply",cancelLabel:"Cancel",fromLabel:"From",toLabel:"To",weekLabel:"W",customRangeLabel:"Custom Range",daysOfW
|
||
|
|
|
||
|
|
!function(){"undefined"==typeof Package&&(Package={}),Package["ohif:dicom-services"]={}}();
|
||
|
|
|
||
|
|
!function(){var a;"undefined"==typeof Package&&(Package={}),function(a,o){for(var n in o)n in a||(a[n]=o[n])}(Package["ohif:wadoproxy"]={},{WADOProxy:void 0})}();
|
||
|
|
|
||
|
|
!function(){var t=Package.meteor.Meteor,e=Package.meteor.global,n=Package.meteor.meteorEnv,o=Package.jquery.$,i=Package.jquery.jQuery,a=Package.http.HTTP,r=Package.random.Random,s=Package["silentcicero:jszip"].JSZip,l=Package["aldeed:simple-schema"].SimpleSchema,c=Package["aldeed:simple-schema"].MongoObject,u=Package["accounts-base"].Accounts,d=Package["momentjs:moment"].moment,h=Package["ohif:viewerbase"].dialogPolyfill,p=Package["ohif:wadoproxy"].WADOProxy,m=Package.modules.meteorInstall,f=Package.modules.process,b=Package["babel-runtime"].meteorBabelHelpers,y=Package.promise.Promise,g=Package["aldeed:collection2-core"].Collection2,v=Package["ecmascript-runtime-client"].Symbol,S=Package["ecmascript-runtime-client"].Map,w=Package["ecmascript-runtime-client"].Set,k=Package.webapp.WebApp,x=Package.logging.Log,T=Package.deps.Tracker,I=Package.deps.Deps,C=Package.session.Session,D=Package["ddp-client"].DDP,P=Package.mongo.Mongo,L=Package.ui.Blaze,M=Package.ui.UI,N=Package.ui.Handlebars,E=Package.spacebars.Spacebars,_=Package["templating-runtime"].Template,j=Package.check.check,R=Package.check.Match,O=Package.underscore._,V=Package.ejson.EJSON,A=Package["launch-screen"].LaunchScreen,F=Package.htmljs.HTML,z,W,q,H,B,U,$=m({node_modules:{meteor:{"ohif:study-list":{both:{"index.js":function(t,e,n){n.watch(t("./base.js")),n.watch(t("./lib")),n.watch(t("./schema")),n.watch(t("./collections.js"))},"base.js":function(t,e,n){var o=void 0;n.watch(t("meteor/ohif:core"),{OHIF:function(t){o=t}},0),o.studylist={collections:{},actions:{}}},"collections.js":function(t,e,n){n.export({StudyImportStatus:function(){return r},Servers:function(){return z},CurrentServer:function(){return W}});var o=void 0;n.watch(t("meteor/mongo"),{Mongo:function(t){o=t}},0);var i=void 0;n.watch(t("meteor/ohif:core"),{OHIF:function(t){i=t}},1);var a=void 0;n.watch(t("meteor/ohif:study-list/both/schema/servers.js"),{Servers:function(t){a=t}},2);var r=new o.Collection("studyImportStatus");r._debugName="StudyImportStatus",i.studylist.collections.StudyImportStatus=r,n.runSetters(z=new o.Collection("servers")),z._debugName="Servers",n.runSetters(W=new o.Collection("currentServer")),W._debugName="CurrentServer"},lib:{"getCurrentServer.js":function(){q=function(){var t=W.findOne();if(t)return z.findOne({_id:t.serverId})}},"index.js":function(t,e,n){n.watch(t("./getCurrentServer.js"))}},schema:{"index.js":function(t,e,n){n.watch(t("./servers.js"))},"servers.js":function(t,e,n){n.export({DICOMWebRequestOptions:function(){return l},DICOMWebServer:function(){return c},DIMSEPeer:function(){return u},DIMSEServer:function(){return d},UISettings:function(){return h},PrefetchSchema:function(){return p},MouseButtonToolSchema:function(){return m},PublicServerConfig:function(){return f},Servers:function(){return b},ServerConfiguration:function(){return y}});var o=void 0;n.watch(t("meteor/aldeed:simple-schema"),{SimpleSchema:function(t){o=t}},0);var i={type:String,label:"Server Name",max:100},a={type:String,label:"Server Type",allowedValues:["dicomWeb","dimse"],valuesLabels:["DICOM Web","DIMSE"],optional:!0},r={type:String,label:"WADO URI root",max:1e3},s=["wwwc","zoom","pan","stackScroll"],l=new o({auth:{type:String,label:"Authentication",optional:!0},logRequests:{type:Boolean,defaultValue:!0,label:"Requests"},logResponses:{type:Boolean,defaultValue:!1,label:"Responses"},logTiming:{type:Boolean,defaultValue:!0,label:"Timing"}}),c=new o({name:i,type:a,wadoUriRoot:r,wadoRoot:{type:String,label:"WADO root",max:1e3},imageRendering:{type:String,label:"Image rendering",allowedValues:["wadouri","orthanc"],valuesLabels:["WADO URI","ORTHANC"]},qidoRoot:{type:String,label:"QIDO root",max:1e3},qidoSupportsIncludeField:{type:Boolean,label:"QIDO supports including fields",defaultValue:!1},requestOptions:{type:l,label:"Request Options"}}),u=new o({aeTitle:{type:String,label:"AE Title"},hostAE:{type:String,label:"AE Host",optional:!0},host:{type:String,label:"Host Domain/IP",regEx:o.RegEx.WeakDomain},port:{type:Number,label:"Port",min:1,defaultValue:11112,max:65535},default:{type:Boolean,label:"D
|
||
|
|
|
||
|
|
!function(){var t=Package.meteor.Meteor,e=Package.meteor.global,n=Package.meteor.meteorEnv,o=Package.jquery.$,i=Package.jquery.jQuery,r=Package.random.Random,a=Package["templating-runtime"].Template,s=Package["iron:router"].Router,u=Package["iron:router"].RouteController,c=Package["momentjs:moment"].moment,l=Package.validatejs.validate,d=Package["ohif:viewerbase"].dialogPolyfill,g=Package.modules.meteorInstall,p=Package.modules.process,h=Package["babel-runtime"].meteorBabelHelpers,f=Package.promise.Promise,m=Package["iron:core"].Iron,v=Package["ecmascript-runtime-client"].Symbol,w=Package["ecmascript-runtime-client"].Map,b=Package["ecmascript-runtime-client"].Set,y=Package.webapp.WebApp,P=Package.logging.Log,S=Package.deps.Tracker,T=Package.deps.Deps,M=Package.session.Session,R=Package["ddp-client"].DDP,k=Package.mongo.Mongo,D=Package.ui.Blaze,x=Package.ui.UI,I=Package.ui.Handlebars,E=Package.spacebars.Spacebars,C=Package.check.check,V=Package.check.Match,N=Package.underscore._,j=Package.ejson.EJSON,O=Package["launch-screen"].LaunchScreen,q=Package.htmljs.HTML,B,L,Z,A,z,_,U,H,F,W,X=g({node_modules:{meteor:{"ohif:hanging-protocols":{both:{"namespace.js":function(){B={}},"collections.js":function(){(L=new t.Collection("hangingprotocols"))._debugName="HangingProtocols",L.allow({insert:function(){return!0},update:function(){return!0},remove:function(){return!0}}),t.isDevelopment&&t.isServer&&t.startup(function(){L.remove({})})},"schema.js":function(t,e,n){n.watch(t("./classes/Protocol")),n.watch(t("./classes/Stage")),n.watch(t("./classes/Viewport")),n.watch(t("./classes/ViewportStructure")),n.watch(t("./classes/rules/ProtocolMatchingRule")),n.watch(t("./classes/rules/StudyMatchingRule")),n.watch(t("./classes/rules/SeriesMatchingRule")),n.watch(t("./classes/rules/ImageMatchingRule"))},"hardcodedData.js":function(){B.attributeDefaults={abstractPriorValue:0},B.displaySettings={invert:{id:"invert",text:"Show Grayscale Inverted",defaultValue:"NO",options:["YES","NO"]}},B.studyAttributes=[{id:"x00100020",text:"(x00100020) Patient ID"},{id:"x0020000d",text:"(x0020000d) Study Instance UID"},{id:"x00080020",text:"(x00080020) Study Date"},{id:"x00080030",text:"(x00080030) Study Time"},{id:"x00081030",text:"(x00081030) Study Description"},{id:"abstractPriorValue",text:"Abstract Prior Value"}],B.protocolAttributes=[{id:"x00100020",text:"(x00100020) Patient ID"},{id:"x0020000d",text:"(x0020000d) Study Instance UID"},{id:"x00080020",text:"(x00080020) Study Date"},{id:"x00080030",text:"(x00080030) Study Time"},{id:"x00081030",text:"(x00081030) Study Description"},{id:"anatomicRegion",text:"Anatomic Region"}],B.seriesAttributes=[{id:"x0020000e",text:"(x0020000e) Series Instance UID"},{id:"x00080060",text:"(x00080060) Modality"},{id:"x00200011",text:"(x00200011) Series Number"},{id:"x0008103e",text:"(x0008103e) Series Description"},{id:"numImages",text:"Number of Images"}],B.instanceAttributes=[{id:"x00080016",text:"(x00080016) SOP Class UID"},{id:"x00080018",text:"(x00080018) SOP Instance UID"},{id:"x00185101",text:"(x00185101) View Position"},{id:"x00200013",text:"(x00200013) Instance Number"},{id:"x00080008",text:"(x00080008) Image Type"},{id:"x00181063",text:"(x00181063) Frame Time"},{id:"x00200060",text:"(x00200060) Laterality"},{id:"x00541330",text:"(x00541330) Image Index"},{id:"x00280004",text:"(x00280004) Photometric Interpretation"},{id:"x00180050",text:"(x00180050) Slice Thickness"}]},"testData.js":function(){function t(){var t=new B.Protocol("Default");t.id="defaultProtocol",t.locked=!0;var e=new B.ViewportStructure("grid",{rows:1,columns:1}),n=new B.Viewport,o=new B.Stage(e,"oneByOne");return o.viewports.push(n),t.stages.push(o),B.defaultProtocol=t,B.defaultProtocol}function e(){var t=new B.Protocol("MR_TwoByTwo");t.id="MR_TwoByTwo",t.locked=!0;var e=new B.ProtocolMatchingRule("studyInstanceUid",{equals:{value:"1.2.840.113619.2.5.1762583153.215519.978957063.78"}},!0);t.addProtocolMatchingRule(e);var n=new B.ViewportStructure("grid",{rows:1,columns:2}),o=new B.Viewport,i=new B.Viewport,r=new B.SeriesMatchingRule("seriesNumber",{
|
||
|
|
|
||
|
|
!function(){var e=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,r=Package["templating-runtime"].Template,a=Package.blaze.Blaze,o=Package.blaze.UI,i=Package.blaze.Handlebars,s=Package.tracker.Tracker,l=Package.tracker.Deps,c=Package.modules.meteorInstall,d=Package.modules.process,p=Package["babel-runtime"].meteorBabelHelpers,u=Package.promise.Promise,f=Package.htmljs.HTML,m=Package["ecmascript-runtime-client"].Symbol,h=Package["ecmascript-runtime-client"].Map,y=Package["ecmascript-runtime-client"].Set,v=Package.spacebars.Spacebars,b,g=c({node_modules:{meteor:{"aldeed:template-extension":{lib:{"hooks.js":function(){(b={global:{created:[],rendered:[],destroyed:[]},master:{created:function(){b.runGlobal("created",this,arguments)},rendered:function(){b.runGlobal("rendered",this,arguments)},destroyed:function(){b.runGlobal("destroyed",this,arguments)}}}).addGlobal=function(e){e._hasTemplateExtensionMasterHooks||(e.onCreated(b.master.created),e.onRendered(b.master.rendered),e.onDestroyed(b.master.destroyed),e._hasTemplateExtensionMasterHooks=!0)},b.runGlobal=function(e,t,n){for(var r=b.global[e],a=Array.isArray(r),o=0,r=a?r:r[m.iterator]();;){var i;if(a){if(o>=r.length)break;i=r[o++]}else{if((o=r.next()).done)break;i=o.value}i.apply(t,n)}}},"template-for-each.js":function(){r.forEach=function(e){var t=!1;for(var n in p.sanitizeForInObject(r))if(r.hasOwnProperty(n)){var o=r[n];if(a.isTemplate(o)){var i=o.viewName;"body"===i?t||(t=!0,e(o)):"Template.__dynamic"!==i&&"Template.__dynamicWithDataContext"!==i&&e(o)}}}},"template-hooks.js":function(e){function t(e){return e&&e.__esModule?e:{default:e}}var n=t(e("babel-runtime/helpers/typeof"));r.prototype.hooks=function(e){if(!e||"object"!==(void 0===e?"undefined":(0,n.default)(e)))throw new Error("hooks argument must be an object with created, rendered, and/or destroyed properties, each set to a function");"function"==typeof e.created&&this.onCreated(e.created),"function"==typeof e.rendered&&this.onRendered(e.rendered),"function"==typeof e.destroyed&&this.onDestroyed(e.destroyed)}},"template-global-hooks.js":function(){e.startup(function(){r.forEach(function(e){b.addGlobal(e)})}),r.onCreated=function(e){b.global.created.push(e)},r.onRendered=function(e){b.global.rendered.push(e)},r.onDestroyed=function(e){b.global.destroyed.push(e)}},"template-for-each-instance.js":function(){r._renderedInstances=[],r.onRendered(function(){function e(){r._renderedInstances.push(this)}return e}()),r.onDestroyed(function(){function e(){var e=r._renderedInstances.indexOf(this);e>-1&&r._renderedInstances.splice(e,1)}return e}()),r.forEachCurrentlyRenderedInstance=function(e){r._renderedInstances.forEach(e)}},"template-inherits-events-from.js":function(){r.prototype.inheritsEventsFrom=function(){function e(e){function t(e){"string"==typeof e&&(e=r[e]),e&&(n.__eventMaps=n.__eventMaps.concat(e.__eventMaps))}var n=this;n.__eventMaps=n.__eventMaps||[],Array.isArray(e)?e.forEach(t):t(e)}return e}()},"template-inherits-helpers-from.js":function(){r.prototype.inheritsHelpersFrom=function(){function e(e){var t=this,n=function(e){if("string"==typeof e&&(e=r[e]),e){var n={};for(var a in p.sanitizeForInObject(e.__helpers))e.__helpers.hasOwnProperty(a)&&" "===a.charAt(0)&&(n[a.slice(1)]=e.__helpers[a]);t.helpers(n)}};Array.isArray(e)?e.forEach(n):n(e)}return e}()},"template-inherits-hooks-from.js":function(){r.prototype.inheritsHooksFrom=function(){function e(e){function t(e){if("string"==typeof e&&(e=r[e]),e){b.addGlobal(e);for(var t=e._callbacks.created,a=Array.isArray(t),o=0,t=a?t:t[m.iterator]();;){var i;if(a){if(o>=t.length)break;i=t[o++]}else{if((o=t.next()).done)break;i=o.value}var s=i;s!==b.master.created&&n.onCreated(s)}for(var l=e._callbacks.rendered,c=Array.isArray(l),d=0,l=c?l:l[m.iterator]();;){var p;if(c){if(d>=l.length)break;p=l[d++]}else{if((d=l.next()).done)break;p=d.value}var u=p;u!==b.master.rendered&&n.onRendered(u)}for(var f=e._callbacks.destroyed,h=Array.isArray(f),y=0,f=h?f:f[m.iterator]();;){var v;if(h){if(y>=f.length)break;v=f[y++]}else{if((y=f.next()).done)break;v=
|
||
|
|
|
||
|
|
!function(){var t=Package.meteor.Meteor,e=Package.meteor.global,i=Package.meteor.meteorEnv,o=Package.jquery.$,n=Package.jquery.jQuery;(function(){if(void 0===n)throw new Error("Bootstrap's JavaScript requires jQuery");+function(t){"use strict";var e=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)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 3")}(n),function(t){"use strict";function e(){var t=document.createElement("bootstrap"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var i in e)if(void 0!==t.style[i])return{end:e[i]};return!1}t.fn.emulateTransitionEnd=function(e){var i=!1,o=this;t(this).one("bsTransitionEnd",function(){i=!0});var n=function(){i||t(o).trigger(t.support.transition.end)};return setTimeout(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))return e.handleObj.handler.apply(this,arguments)}})})}(n),function(t){"use strict";function e(e){return this.each(function(){var i=t(this),n=i.data("bs.alert");n||i.data("bs.alert",n=new o(this)),"string"==typeof e&&n[e].call(i)})}var i='[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){function i(){a.detach().trigger("closed.bs.alert").remove()}var n=t(this),s=n.attr("data-target");s||(s=(s=n.attr("href"))&&s.replace(/.*(?=#[^\s]*$)/,""));var a=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())};var n=t.fn.alert;t.fn.alert=e,t.fn.alert.Constructor=o,t.fn.alert.noConflict=function(){return t.fn.alert=n,this},t(document).on("click.bs.alert.data-api",i,o.prototype.close)}(n),function(t){"use strict";function e(e){return this.each(function(){var o=t(this),n=o.data("bs.button"),s="object"==typeof e&&e;n||o.data("bs.button",n=new i(this,s)),"toggle"==e?n.toggle():e&&n.setState(e)})}var i=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){var i="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(){var t=!0,e=this.$element.closest('[data-toggle="buttons"]');if(e.length){var i=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")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var o=t.fn.button;t.fn.button=e,t.fn.button.Constructor=i,t.fn.button.noConflict=function(){return t.fn.button=o,this},t(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(i){var o=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";function e(e){return this.each(function(){var o=t(this),n=o.data("bs.carousel"),s=t.ext
|
||
|
|
|
||
|
|
!function(){"undefined"==typeof Package&&(Package={}),Package["fortawesome:fontawesome"]={}}();
|
||
|
|
|
||
|
|
!function(){var e=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,a;(function(){(function(){(function(e){function n(e,t,n){switch(arguments.length){case 2:return null!=e?e:t;case 3:return null!=e?e:null!=t?t:n;default:throw new Error("Implement me")}}function a(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1}}function s(e){!1===De.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function r(e,t){var n=!0;return h(function(){return n&&(s(e),n=!1),t.apply(this,arguments)},t)}function i(e,t){mt[e]||(s(t),mt[e]=!0)}function o(e,t){return function(n){return m(e.call(this,n),t)}}function u(e,t){return function(n){return this.localeData().ordinal(e.call(this,n),t)}}function c(){}function l(e,t){!1!==t&&F(e),f(this,e),this._d=new Date(+e._d)}function d(e){var t=k(e),n=t.year||0,a=t.quarter||0,s=t.month||0,r=t.week||0,i=t.day||0,o=t.hour||0,u=t.minute||0,c=t.second||0,l=t.millisecond||0;this._milliseconds=+l+1e3*c+6e4*u+36e5*o,this._days=+i+7*r,this._months=+s+3*a+12*n,this._data={},this._locale=De.localeData(),this._bubble()}function h(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return t.hasOwnProperty("toString")&&(e.toString=t.toString),t.hasOwnProperty("valueOf")&&(e.valueOf=t.valueOf),e}function f(e,t){var n,a,s;if(void 0!==t._isAMomentObject&&(e._isAMomentObject=t._isAMomentObject),void 0!==t._i&&(e._i=t._i),void 0!==t._f&&(e._f=t._f),void 0!==t._l&&(e._l=t._l),void 0!==t._strict&&(e._strict=t._strict),void 0!==t._tzm&&(e._tzm=t._tzm),void 0!==t._isUTC&&(e._isUTC=t._isUTC),void 0!==t._offset&&(e._offset=t._offset),void 0!==t._pf&&(e._pf=t._pf),void 0!==t._locale&&(e._locale=t._locale),Pe.length>0)for(n in Pe)void 0!==(s=t[a=Pe[n]])&&(e[a]=s);return e}function _(e){return e<0?Math.ceil(e):Math.floor(e)}function m(e,t,n){for(var a=""+Math.abs(e),s=e>=0;a.length<t;)a="0"+a;return(s?n?"+":"":"-")+a}function y(e,t){var n={milliseconds:0,months:0};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function p(e,t){var n;return t=L(t,e),e.isBefore(t)?n=y(e,t):((n=y(t,e)).milliseconds=-n.milliseconds,n.months=-n.months),n}function D(e,t){return function(n,a){var s,r;return null===a||isNaN(+a)||(i(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period)."),r=n,n=a,a=r),n="string"==typeof n?+n:n,s=De.duration(n,a),g(this,s,e),this}}function g(e,t,n,a){var s=t._milliseconds,r=t._days,i=t._months;a=null==a||a,s&&e._d.setTime(+e._d+s*n),r&&he(e,"Date",de(e,"Date")+r*n),i&&le(e,de(e,"Month")+i*n),a&&De.updateOffset(e,r||i)}function M(e){return"[object Array]"===Object.prototype.toString.call(e)}function w(e){return"[object Date]"===Object.prototype.toString.call(e)||e instanceof Date}function Y(e,t,n){var a=Math.min(e.length,t.length),s=Math.abs(e.length-t.length),r=0,i;for(i=0;i<a;i++)(n&&e[i]!==t[i]||!n&&S(e[i])!==S(t[i]))&&r++;return r+s}function v(e){if(e){var t=e.toLowerCase().replace(/(.)s$/,"$1");e=ut[e]||ct[t]||t}return e}function k(e){var t={},n,a;for(a in e)e.hasOwnProperty(a)&&(n=v(a))&&(t[n]=e[a]);return t}function b(t){var n,a;if(0===t.indexOf("week"))n=7,a="day";else{if(0!==t.indexOf("month"))return;n=12,a="month"}De[t]=function(s,r){var i,o,u=De._locale[t],c=[];if("number"==typeof s&&(r=s,s=e),o=function(e){var t=De().utc().set(a,e);return u.call(De._locale,t,s||"")},null!=r)return o(r);for(i=0;i<n;i++)c.push(o(i));return c}}function S(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=t>=0?Math.floor(t):Math.ceil(t)),n}function T(e,t){return new Date(Date.UTC(e,t+1,0)).getUTCDate()}function O(e,t,n){return ie(De([e,11,31+t-n]),t,n).week}function W(e){return G(e)?366:365}function G(e){return e%4==0&&e%100!=0||e%400==0}function F(e){var t;e._a&&-2===e._pf.overflow&&(t=e._a[be]<0||e._a[be]>11?be:e._a[Se]<1||e._a[Se]>T(e._a[ke],e._a[be])?Se:e._a[Te]<0||e._a[Te]>23?Te:e._a[Oe]<0||e._a[Oe]>59?Oe:e.
|
||
|
|
|
||
|
|
!function(){var e=Package.meteor.Meteor,n=Package.meteor.global,t=Package.meteor.meteorEnv,r=Package.modules.meteorInstall,o=Package.modules.process,c=Package.promise.Promise,u=Package["ddp-client"].DDP,i=Package.check.check,a=Package.check.Match,s=r({node_modules:{meteor:{"dynamic-import":{"client.js":function(n,t,o){function u(e){function n(e){e&&"object"==typeof e?Object.keys(e).forEach(function(r){t.push(r),n(e[r]),t.pop()}):"string"==typeof e&&(r[t.join("/")]=e)}var t=[""],r=Object.create(null);return n(e),r}function i(e,n,t){return function(){return(t&&t.eval||eval)("("+n+")\n//# sourceURL="+e).apply(this,arguments)}}function a(n){return new c(function(t,r){e.call("__dynamicImport",n,function(e,n){e?r(e):t(n)})})}function s(e,n){return n.split("/").every(function(n){return!n||(e=e[n])}),e}function f(e,n,t){var r=n.split("/"),o=r.length-1;r.forEach(function(n,r){n&&(e=e[n]=e[n]||(r<o?Object.create(null):t))})}function d(e,n){var t;return e.watch(e.require(n),{"*":function(e){t=e}}),Object.defineProperty(t,"__esModule",{value:!0,enumerable:!1}),t}var l=o.constructor,y=n("./cache.js");l.prototype.dynamicImport=function(e){var n=this;return n.prefetch(e).then(function(){return d(n,e)})},r.fetch=function(e){var t=Object.create(null),r=Object.create(null),o=n("./dynamic-versions.js"),c;return Object.keys(e).forEach(function(e){var n=s(o,e);n?r[e]=n:f(c=c||Object.create(null),e,1)}),y.checkMany(r).then(function(n){return Object.keys(n).forEach(function(r){var o=n[r];if(o){var u=e[r];f(t,r,i(r,o,u.options))}else f(c=c||Object.create(null),r,1)}),c&&a(c).then(function(n){var r=Object.create(null),c=u(n);Object.keys(c).forEach(function(n){var u=c[n],a=e[n];f(t,n,i(n,u,a.options));var d=s(o,n);d&&(r[n]={version:d,source:u})}),y.setMany(r)})}).then(function(){return t})}},"cache.js":function(n,t,r){function o(){return"undefined"!=typeof indexedDB?indexedDB:"undefined"!=typeof webkitIndexedDB?webkitIndexedDB:"undefined"!=typeof mozIndexedDB?mozIndexedDB:"undefined"!=typeof OIndexedDB?OIndexedDB:"undefined"!=typeof msIndexedDB?msIndexedDB:void 0}function u(e){return(f=f||new c(function(e,n){var t=o();if(!t)throw new Error("IndexedDB not available");var r=t.open("MeteorDynamicImportCache",2);r.onupgradeneeded=function(e){var n=e.target.result;Array.from(n.objectStoreNames).forEach(n.deleteObjectStore,n),Object.keys(l).forEach(function(e){n.createObjectStore(e,l[e])})},r.onerror=i(n,"indexedDB.open"),r.onsuccess=function(n){e(n.target.result)}})).then(e,function(n){return e(null)})}function i(e,n){return function(t){return e(new Error("IndexedDB failure in "+n+" "+JSON.stringify(t.target))),!0}}function a(){if(y>0)return a.timer=setTimeout(a,100);a.timer=null;var e=m;return m=Object.create(null),u(function(n){if(n){var t=n.transaction(["sourcesByVersion"],"readwrite").objectStore("sourcesByVersion");return c.all(Object.keys(e).map(function(n){var r=e[n];return new c(function(e,n){var o=t.put({version:r.version,source:r.source});o.onerror=i(n,"sourcesByVersion.put"),o.onsuccess=e})}))}})}var s=Object.prototype.hasOwnProperty,f,d=e.isClient&&!e.isCordova&&e.isProduction,l={sourcesByVersion:{keyPath:"version"}},y=0;t.checkMany=function(e){var n=Object.keys(e),t=Object.create(null);return n.forEach(function(e){t[e]=null}),d?u(function(r){function o(){return--y,t}if(!r)return t;var u=r.transaction(["sourcesByVersion"],"readonly").objectStore("sourcesByVersion");return++y,c.all(n.map(function(n){return new c(function(r,o){if(e[n]){var c=u.get(e[n]);c.onerror=i(o,"sourcesByVersion.get"),c.onsuccess=function(e){var o=e.target.result;o&&(t[n]=o.source),r()}}else r()})})).then(o,o)}):c.resolve(t)};var m=Object.create(null);t.setMany=function(e){d&&(Object.assign(m,e),a.timer||(a.timer=setTimeout(a,100)))}},"dynamic-versions.js":function(e,n,t){t.exports={}}}}}},{extensions:[".js",".json"]})("./node_modules/meteor/dynamic-import/client.js");"undefined"==typeof Package&&(Package={}),Package["dynamic-import"]=s}();
|
||
|
|
|
||
|
|
!function(){"undefined"==typeof Package&&(Package={}),Package["hot-code-push"]={}}();
|
||
|
|
|
||
|
|
Mongo=Package.mongo.Mongo,ReactiveVar=Package["reactive-var"].ReactiveVar,$=Package.jquery.$,jQuery=Package.jquery.jQuery,Tracker=Package.tracker.Tracker,Deps=Package.tracker.Deps,cornerstone=Package["ohif:cornerstone"].cornerstone,cornerstoneMath=Package["ohif:cornerstone"].cornerstoneMath,cornerstoneTools=Package["ohif:cornerstone"].cornerstoneTools,cornerstoneWADOImageLoader=Package["ohif:cornerstone"].cornerstoneWADOImageLoader,dicomParser=Package["ohif:cornerstone"].dicomParser,dialogPolyfill=Package["ohif:viewerbase"].dialogPolyfill,Servers=Package["ohif:study-list"].Servers,CurrentServer=Package["ohif:study-list"].CurrentServer,getCurrentServer=Package["ohif:study-list"].getCurrentServer,HP=Package["ohif:hanging-protocols"].HP,SimpleSchema=Package["aldeed:simple-schema"].SimpleSchema,MongoObject=Package["aldeed:simple-schema"].MongoObject,Router=Package["iron:router"].Router,RouteController=Package["iron:router"].RouteController,Session=Package.session.Session,PersistentSession=Package["u2622:persistent-session"].PersistentSession,ReactiveDict=Package["reactive-dict"].ReactiveDict,moment=Package["mrt:moment"].moment,Random=Package.random.Random,Meteor=Package.meteor.Meteor,global=Package.meteor.global,meteorEnv=Package.meteor.meteorEnv,WebApp=Package.webapp.WebApp,_=Package.underscore._,DDP=Package["ddp-client"].DDP,LaunchScreen=Package["launch-screen"].LaunchScreen,Blaze=Package.ui.Blaze,UI=Package.ui.UI,Handlebars=Package.ui.Handlebars,Spacebars=Package.spacebars.Spacebars,Template=Package["templating-runtime"].Template,meteorInstall=Package.modules.meteorInstall,process=Package.modules.process,meteorBabelHelpers=Package["babel-runtime"].meteorBabelHelpers,Promise=Package.promise.Promise,Iron=Package["iron:core"].Iron,Autoupdate=Package.autoupdate.Autoupdate,Reload=Package.reload.Reload,HTML=Package.htmljs.HTML,Symbol=Package["ecmascript-runtime-client"].Symbol,Map=Package["ecmascript-runtime-client"].Map,Set=Package["ecmascript-runtime-client"].Set;
|
||
|
|
|
||
|
|
var require=meteorInstall({client:{components:{flexboxLayout:{"template.flexboxLayout.js":function(){Template.__checkName("flexboxLayout"),Template.flexboxLayout=new Template("Template.flexboxLayout",function(){var e=this;return HTML.DIV({class:"viewerSection"},"\n ",HTML.DIV({class:function(){return["sidebarMenu sidebar-left ",Blaze.If(function(){return Spacebars.call(e.lookup("leftSidebarOpen"))},function(){return"sidebar-open"})]}},"\n ",Blaze._TemplateWith(function(){return Spacebars.dataMustache(e.lookup("clone"),e.lookup("."))},function(){return Spacebars.include(e.lookupTemplate("studyBrowser"))}),"\n "),"\n ",HTML.DIV({class:function(){return["mainContent ",Blaze.If(function(){return Spacebars.call(e.lookup("leftSidebarOpen"))},function(){return"sidebar-left-open"})]}},"\n ",Blaze._TemplateWith(function(){return Spacebars.dataMustache(e.lookup("clone"),e.lookup("."))},function(){return Spacebars.include(e.lookupTemplate("standaloneViewerMain"))}),"\n "),"\n ")})},"flexboxLayout.js":function(e,t,a){var n=void 0;a.watch(e("meteor/templating"),{Template:function(e){n=e}},0),n.flexboxLayout.events({"transitionend .sidebarMenu":function(e,t){e.target.classList.contains("sidebarMenu")&&window.ResizeViewportManager.handleResize()}}),n.flexboxLayout.helpers({leftSidebarOpen:function(){return n.instance().data.state.get("leftSidebar")}})}},standaloneViewer:{"template.standaloneViewer.js":function(){Template.__checkName("standaloneViewer"),Template.standaloneViewer=new Template("Template.standaloneViewer",function(){var e=this;return[Spacebars.include(e.lookupTemplate("header"),function(){return["\n ",Blaze._TemplateWith(function(){return"brand"},function(){return Spacebars.include(e.lookupTemplate("section"),function(){return["\n ",HTML.SVG({class:"logo-image"},"\n ",HTML.USE({"xlink:href":function(){return Spacebars.mustache(e.lookup("absoluteUrl"),"packages/ohif_viewerbase/assets/icons.svg#icon-ohif-logo")}}),"\n "),"\n ",HTML.DIV({class:"logo-text"},"Open Health Imaging Foundation"),"\n "]})}),"\n "]}),"\n ",Spacebars.include(e.lookupTemplate("viewer"))]})}},standaloneViewerMain:{"template.standaloneViewerMain.js":function(){Template.__checkName("standaloneViewerMain"),Template.standaloneViewerMain=new Template("Template.standaloneViewerMain",function(){var e=this;return HTML.Raw('<div class="viewerMain">\n <div id="layoutManagerTarget"></div>\n </div>')})},"standaloneViewerMain.js":function(e,t,a){var n=void 0;a.watch(e("meteor/meteor"),{Meteor:function(e){n=e}},0);var o=void 0;a.watch(e("meteor/templating"),{Template:function(e){o=e}},1);var r=void 0;a.watch(e("meteor/ohif:core"),{OHIF:function(e){r=e}},2),a.watch(e("meteor/ohif:viewerbase")),n.startup(function(){window.ResizeViewportManager=window.ResizeViewportManager||new r.viewerbase.ResizeViewportManager}),o.standaloneViewerMain.onCreated(function(){window.addEventListener("resize",window.ResizeViewportManager.getResizeHandler()),r.viewer.updateImageSynchronizer=new cornerstoneTools.Synchronizer("CornerstoneNewImage",cornerstoneTools.updateImageSynchronizer),r.viewer.metadataProvider=r.cornerstone.metadataProvider;var e=r.viewer.metadataProvider;cornerstoneTools.metaData.addProvider(e.provider.bind(e))}),o.standaloneViewerMain.onRendered(function(){var e=o.instance(),t=e.data.studies,a=e.$("#layoutManagerTarget").get(0);r.viewerbase.layoutManager=new r.viewerbase.LayoutManager(a,t),r.viewerbase.layoutManager.updateViewports(),r.viewerbase.hotkeyUtils.enableHotkeys()}),o.standaloneViewerMain.onDestroyed(function(){window.removeEventListener("resize",window.ResizeViewportManager.getResizeHandler()),r.viewer.updateImageSynchronizer.destroy(),delete r.viewerbase.layoutManager})}},toolbarSection:{"template.toolbarSection.js":function(){Template.__checkName("toolbarSection"),Template.toolbarSection=new Template("Template.toolbarSection",function(){var e=this;return HTML.DIV({class:"toolbarSection noselect p-x-2"},"\n ",HTML.DIV({cl
|
||
|
|
|
||
|
|
!function(){var e=Package.meteor.Meteor,r=Package.meteor.global,a=Package.meteor.meteorEnv,t=Package.check.check,n=Package.check.Match,i=Package.modules.meteorInstall,o=Package.modules.process,c=Package["babel-runtime"].meteorBabelHelpers,l=Package.promise.Promise,s=Package["ecmascript-runtime-client"].Symbol,u=Package["ecmascript-runtime-client"].Map,m=Package["ecmascript-runtime-client"].Set,d;i({node_modules:{meteor:{"mdg:validation-error":{"validation-error.js":function(r){function a(e){return e&&e.__esModule?e:{default:e}}var i=a(r("babel-runtime/helpers/classCallCheck")),o=a(r("babel-runtime/helpers/possibleConstructorReturn")),c=a(r("babel-runtime/helpers/inherits")),l=[n.ObjectIncluding({name:String,type:String})];(d=function(r){function a(e){var n,c,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d.DEFAULT_MESSAGE;return(0,i.default)(this,a),t(e,l),t(s,String),c=n=(0,o.default)(this,r.call(this,d.ERROR_CODE,s,e)),(0,o.default)(n,c)}return(0,c.default)(a,r),a.is=function(){function r(r){return r instanceof e.Error&&r.error===d.ERROR_CODE}return r}(),a}(e.Error)).ERROR_CODE="validation-error",d.DEFAULT_MESSAGE="Validation failed"}}}}},{extensions:[".js",".json"]})("./node_modules/meteor/mdg:validation-error/validation-error.js"),"undefined"==typeof Package&&(Package={}),function(e,r){for(var a in r)a in e||(e[a]=r[a])}(Package["mdg:validation-error"]={},{ValidationError:d})}();
|
||
|
|
|
||
|
|
!function(){var o=Package.meteor.Meteor,e=Package.meteor.global,n=Package.meteor.meteorEnv,i=Package["accounts-base"].Accounts,r=Package.mongo.Mongo,c;(function(){void 0===c&&(c={}),c.configurations=new r.Collection("meteor_accounts_loginServiceConfiguration",{_preventAutopublish:!0,connection:o.isClient?i.connection:o.connection}),c.ConfigError=function(e){o.isClient&&!i.loginServicesConfigured()?this.message="Login service configuration not yet loaded":this.message=e?"Service "+e+" not configured":"Service not configured"},c.ConfigError.prototype=new Error,c.ConfigError.prototype.name="ServiceConfiguration.ConfigError"}).call(this),"undefined"==typeof Package&&(Package={}),function(o,e){for(var n in e)n in o||(o[n]=e[n])}(Package["service-configuration"]={},{ServiceConfiguration:c})}();
|
||
|
|
|