New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

brayns

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

brayns - npm Package Compare versions

Comparing version 0.1.0 to 0.8.0

2

dist/bundles/brayns.umd.min.js

@@ -1,2 +0,2 @@

!function(t,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports,require("rxjs"),require("rxjs/operators"),require("rockets-client")):"function"==typeof define&&define.amd?define(["exports","rxjs","rxjs/operators","rockets-client"],r):r(t.brayns={},t.rxjs,t.rxjs.operators,t.rocketsClient)}(this,function(t,o,a,e){"use strict";var r,n="image-jpeg",h="request-model-upload",y="chunk";(r=t.ImageFormat||(t.ImageFormat={})).Jpeg="jpeg",r.Png="png",r.Bmp="bmp",r.Tiff="tiff";var i=Array.isArray;function u(t){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var c="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},f="object"==u(c)&&c&&c.Object===Object&&c,s="object"==("undefined"==typeof self?"undefined":u(self))&&self&&self.Object===Object&&self,l=f||s||Function("return this")(),p=l.Symbol,v=Object.prototype,d=v.hasOwnProperty,b=v.toString,_=p?p.toStringTag:void 0;var E=function(t){var r=d.call(t,_),e=t[_];try{t[_]=void 0}catch(t){}var n=b.call(t);return r?t[_]=e:delete t[_],n},g=Object.prototype.toString;var A=function(t){return g.call(t)},m=p?p.toStringTag:void 0;var S=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":m&&m in Object(t)?E(t):A(t)};var x=function(t){return null!=t&&"object"==u(t)};var O=function(t){return"symbol"==u(t)||x(t)&&"[object Symbol]"==S(t)},R=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,T=/^\w*$/;var j=function(t,r){if(i(t))return!1;var e=u(t);return!("number"!=e&&"symbol"!=e&&"boolean"!=e&&null!=t&&!O(t))||T.test(t)||!R.test(t)||null!=r&&t in Object(r)};var P=function(t){var r=u(t);return null!=t&&("object"==r||"function"==r)};var w,C=function(t){if(!P(t))return!1;var r=S(t);return"[object Function]"==r||"[object GeneratorFunction]"==r||"[object AsyncFunction]"==r||"[object Proxy]"==r},N=l["__core-js_shared__"],I=(w=/[^.]+$/.exec(N&&N.keys&&N.keys.IE_PROTO||""))?"Symbol(src)_1."+w:"";var M=function(t){return!!I&&I in t},L=Function.prototype.toString;var z=function(t){if(null!=t){try{return L.call(t)}catch(t){}try{return t+""}catch(t){}}return""},D=/^\[object .+?Constructor\]$/,k=Function.prototype,G=Object.prototype,U=k.toString,F=G.hasOwnProperty,$=RegExp("^"+U.call(F).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var Z=function(t){return!(!P(t)||M(t))&&(C(t)?$:D).test(z(t))};var q=function(t,r){return null==t?void 0:t[r]};var H=function(t,r){var e=q(t,r);return Z(e)?e:void 0},J=H(Object,"create");var B=function(){this.__data__=J?J(null):{},this.size=0};var V=function(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r},Y=Object.prototype.hasOwnProperty;var K=function(t){var r=this.__data__;if(J){var e=r[t];return"__lodash_hash_undefined__"===e?void 0:e}return Y.call(r,t)?r[t]:void 0},Q=Object.prototype.hasOwnProperty;var W=function(t){var r=this.__data__;return J?void 0!==r[t]:Q.call(r,t)};var X=function(t,r){var e=this.__data__;return this.size+=this.has(t)?0:1,e[t]=J&&void 0===r?"__lodash_hash_undefined__":r,this};function tt(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}tt.prototype.clear=B,tt.prototype.delete=V,tt.prototype.get=K,tt.prototype.has=W,tt.prototype.set=X;var rt=tt;var et=function(){this.__data__=[],this.size=0};var nt=function(t,r){return t===r||t!=t&&r!=r};var ot=function(t,r){for(var e=t.length;e--;)if(nt(t[e][0],r))return e;return-1},at=Array.prototype.splice;var ut=function(t){var r=this.__data__,e=ot(r,t);return!(e<0||(e==r.length-1?r.pop():at.call(r,e,1),--this.size,0))};var it=function(t){var r=this.__data__,e=ot(r,t);return e<0?void 0:r[e][1]};var ct=function(t){return-1<ot(this.__data__,t)};var ft=function(t,r){var e=this.__data__,n=ot(e,t);return n<0?(++this.size,e.push([t,r])):e[n][1]=r,this};function st(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}st.prototype.clear=et,st.prototype.delete=ut,st.prototype.get=it,st.prototype.has=ct,st.prototype.set=ft;var lt=st,pt=H(l,"Map");var vt=function(t){var r=u(t);return"string"==r||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==t:null===t};var dt=function(t,r){var e=t.__data__;return vt(r)?e["string"==typeof r?"string":"hash"]:e.map};var ht=function(t){var r=dt(this,t).delete(t);return this.size-=r?1:0,r};var yt=function(t){return dt(this,t).get(t)};var bt=function(t){return dt(this,t).has(t)};var _t=function(t,r){var e=dt(this,t),n=e.size;return e.set(t,r),this.size+=e.size==n?0:1,this};function Et(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}Et.prototype.clear=function(){this.size=0,this.__data__={hash:new rt,map:new(pt||lt),string:new rt}},Et.prototype.delete=ht,Et.prototype.get=yt,Et.prototype.has=bt,Et.prototype.set=_t;var gt=Et,At="Expected a function";function mt(a,u){if("function"!=typeof a||null!=u&&"function"!=typeof u)throw new TypeError(At);var t=function t(){var r=arguments,e=u?u.apply(this,r):r[0],n=t.cache;if(n.has(e))return n.get(e);var o=a.apply(this,r);return t.cache=n.set(e,o)||n,o};return t.cache=new(mt.Cache||gt),t}mt.Cache=gt;var St=mt;var xt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ot=/\\(\\)?/g,Rt=function(t){var r=St(t,function(t){return 500===e.size&&e.clear(),t}),e=r.cache;return r}(function(t){var o=[];return 46===t.charCodeAt(0)&&o.push(""),t.replace(xt,function(t,r,e,n){o.push(e?n.replace(Ot,"$1"):r||t)}),o});var Tt=function(t,r){for(var e=-1,n=null==t?0:t.length,o=Array(n);++e<n;)o[e]=r(t[e],e,t);return o},jt=1/0,Pt=p?p.prototype:void 0,wt=Pt?Pt.toString:void 0;var Ct=function t(r){if("string"==typeof r)return r;if(i(r))return Tt(r,t)+"";if(O(r))return wt?wt.call(r):"";var e=r+"";return"0"==e&&1/r==-jt?"-0":e};var Nt=function(t){return null==t?"":Ct(t)};var It=function(t,r){return i(t)?t:j(t,r)?[t]:Rt(Nt(t))};var Mt=function(t){if("string"==typeof t||O(t))return t;var r=t+"";return"0"==r&&1/t==-1/0?"-0":r};var Lt=function(t,r){for(var e=0,n=(r=It(r,t)).length;null!=t&&e<n;)t=t[Mt(r[e++])];return e&&e==n?t:void 0},zt=function(){try{var t=H(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();var Dt=function(t,r,e){"__proto__"==r&&zt?zt(t,r,{configurable:!0,enumerable:!0,value:e,writable:!0}):t[r]=e},kt=Object.prototype.hasOwnProperty;var Gt=function(t,r,e){var n=t[r];kt.call(t,r)&&nt(n,e)&&(void 0!==e||r in t)||Dt(t,r,e)},Ut=/^(?:0|[1-9]\d*)$/;var Ft=function(t,r){var e=u(t);return!!(r=null==r?9007199254740991:r)&&("number"==e||"symbol"!=e&&Ut.test(t))&&-1<t&&t%1==0&&t<r};var $t=function(t,r,e,n){if(!P(t))return t;for(var o=-1,a=(r=It(r,t)).length,u=a-1,i=t;null!=i&&++o<a;){var c=Mt(r[o]),f=e;if(o!=u){var s=i[c];void 0===(f=n?n(s,c,i):void 0)&&(f=P(s)?s:Ft(r[o+1])?[]:{})}Gt(i,c,f),i=i[c]}return t};var Zt=function(t,r,e){for(var n=-1,o=r.length,a={};++n<o;){var u=r[n],i=Lt(t,u);e(i,u)&&$t(a,It(u,t),i)}return a};var qt=function(t,r){return null!=t&&r in Object(t)};var Ht=function(t){return x(t)&&"[object Arguments]"==S(t)},Jt=Object.prototype,Bt=Jt.hasOwnProperty,Vt=Jt.propertyIsEnumerable,Yt=Ht(function(){return arguments}())?Ht:function(t){return x(t)&&Bt.call(t,"callee")&&!Vt.call(t,"callee")};var Kt=function(t){return"number"==typeof t&&-1<t&&t%1==0&&t<=9007199254740991};var Qt=function(t,r,e){for(var n=-1,o=(r=It(r,t)).length,a=!1;++n<o;){var u=Mt(r[n]);if(!(a=null!=t&&e(t,u)))break;t=t[u]}return a||++n!=o?a:!!(o=null==t?0:t.length)&&Kt(o)&&Ft(u,o)&&(i(t)||Yt(t))};var Wt=function(t,r){return null!=t&&Qt(t,r,qt)};var Xt=function(e,t){return Zt(e,t,function(t,r){return Wt(e,r)})};var tr=function(t,r){for(var e=-1,n=r.length,o=t.length;++e<n;)t[o+e]=r[e];return t},rr=p?p.isConcatSpreadable:void 0;var er=function(t){return i(t)||Yt(t)||!!(rr&&t&&t[rr])};var nr=function t(r,e,n,o,a){var u=-1,i=r.length;for(n||(n=er),a||(a=[]);++u<i;){var c=r[u];0<e&&n(c)?1<e?t(c,e-1,n,o,a):tr(a,c):o||(a[a.length]=c)}return a};var or=function(t){return null!=t&&t.length?nr(t,1):[]};var ar=function(t,r,e){switch(e.length){case 0:return t.call(r);case 1:return t.call(r,e[0]);case 2:return t.call(r,e[0],e[1]);case 3:return t.call(r,e[0],e[1],e[2])}return t.apply(r,e)},ur=Math.max;var ir=function(a,u,i){return u=ur(void 0===u?a.length-1:u,0),function(){for(var t=arguments,r=-1,e=ur(t.length-u,0),n=Array(e);++r<e;)n[r]=t[u+r];r=-1;for(var o=Array(u+1);++r<u;)o[r]=t[r];return o[u]=i(n),ar(a,this,o)}};var cr=function(t){return function(){return t}};var fr=zt?function(t,r){return zt(t,"toString",{configurable:!0,enumerable:!1,value:cr(r),writable:!0})}:function(t){return t},sr=Date.now;var lr=function(e){var n=0,o=0;return function(){var t=sr(),r=16-(t-o);if(o=t,0<r){if(800<=++n)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}(fr);var pr=function(t){return lr(ir(t,void 0,or),t+"")}(function(t,r){return null==t?{}:Xt(t,r)});var vr=function(){};var dr=function(t){return"string"==typeof t||!i(t)&&x(t)&&"[object String]"==S(t)},hr=function(){return(hr=Object.assign||function(t){for(var r,e=1,n=arguments.length;e<n;e++)for(var o in r=arguments[e])Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o]);return t}).apply(this,arguments)};function yr(a,u,i,c){return new(i||(i=Promise))(function(t,r){function e(t){try{o(c.next(t))}catch(t){r(t)}}function n(t){try{o(c.throw(t))}catch(t){r(t)}}function o(r){r.done?t(r.value):new i(function(t){t(r.value)}).then(e,n)}o((c=c.apply(a,u||[])).next())})}function br(e,n){var o,a,u,t,i={label:0,sent:function(){if(1&u[0])throw u[1];return u[1]},trys:[],ops:[]};return t={next:r(0),throw:r(1),return:r(2)},"function"==typeof Symbol&&(t[Symbol.iterator]=function(){return this}),t;function r(r){return function(t){return function(r){if(o)throw new TypeError("Generator is already executing.");for(;i;)try{if(o=1,a&&(u=2&r[0]?a.return:r[0]?a.throw||((u=a.return)&&u.call(a),0):a.next)&&!(u=u.call(a,r[1])).done)return u;switch(a=0,u&&(r=[2&r[0],u.value]),r[0]){case 0:case 1:u=r;break;case 4:return i.label++,{value:r[1],done:!1};case 5:i.label++,a=r[1],r=[0];continue;case 7:r=i.ops.pop(),i.trys.pop();continue;default:if(!(u=0<(u=i.trys).length&&u[u.length-1])&&(6===r[0]||2===r[0])){i=0;continue}if(3===r[0]&&(!u||r[1]>u[0]&&r[1]<u[3])){i.label=r[1];break}if(6===r[0]&&i.label<u[1]){i.label=u[1],u=r;break}if(u&&i.label<u[2]){i.label=u[2],i.ops.push(r);break}u[2]&&i.ops.pop(),i.trys.pop();continue}r=n.call(e,i)}catch(t){r=[6,t],a=0}finally{o=u=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,t])}}}function _r(t,r){var e="function"==typeof Symbol&&t[Symbol.iterator];if(!e)return t;var n,o,a=e.call(t),u=[];try{for(;(void 0===r||0<r--)&&!(n=a.next()).done;)u.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(e=a.return)&&e.call(a)}finally{if(o)throw o.error}}return u}function Er(t){var r=String.fromCharCode.apply(String,function(){for(var t=[],r=0;r<arguments.length;r++)t=t.concat(_r(arguments[r]));return t}(t));return btoa(r)}function gr(t){var r;return void 0===t&&(t=12),Er((r=new Uint8Array(t),crypto.getRandomValues(r),r)).replace(/=+$/,"").replace(/\+/g,"-").replace(/\//g,"_")}function Ar(e,n){var t=new o.Observable(function(t){var r=new o.BehaviorSubject(!1);return function(p,v,d,h){yr(this,void 0,void 0,function(){var r,e,a,u,i,c,f,s,l;return br(this,function(t){switch(t.label){case 0:r=p.size,e=hr({},h).chunkSize,a="number"!=typeof e||Number.isNaN(e)||0===e?r:e,u=0,t.label=1;case 1:if(!(u<r)||d.value)return[3,6];c=a<(i=r-u)?a:i,f=p.slice(u,u+c),t.label=2;case 2:return t.trys.push([2,4,,5]),[4,(n=f,o=new FileReader,new Promise(function(e,r){o.onload=function(t){var r=t.target.result;e(r)},o.onerror=function(t){r(t)},o.readAsArrayBuffer(n)}))];case 3:return s=t.sent(),v.next(s),[3,5];case 4:return l=t.sent(),d.next(!0),v.error(l),[3,5];case 5:return u+=a,[3,1];case 6:return v.complete(),[2]}var n,o})})}(e,t,r,n),function(){r.next(!0)}});return a.publishReplay()(t).refCount()}var mr=function(t,r,e,n){var o=-1,a=null==t?0:t.length;for(n&&a&&(e=t[++o]);++o<a;)e=r(e,t[o],o,t);return e};var Sr=function(r){return function(t){return null==r?void 0:r[t]}}({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),xr=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Or=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");var Rr=function(t){return(t=Nt(t))&&t.replace(xr,Sr).replace(Or,"")},Tr=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;var jr=function(t){return t.match(Tr)||[]},Pr=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;var wr=function(t){return Pr.test(t)},Cr="\\ud800-\\udfff",Nr="\\u2700-\\u27bf",Ir="a-z\\xdf-\\xf6\\xf8-\\xff",Mr="A-Z\\xc0-\\xd6\\xd8-\\xde",Lr="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",zr="["+Lr+"]",Dr="\\d+",kr="["+Nr+"]",Gr="["+Ir+"]",Ur="[^"+Cr+Lr+Dr+Nr+Ir+Mr+"]",Fr="(?:\\ud83c[\\udde6-\\uddff]){2}",$r="[\\ud800-\\udbff][\\udc00-\\udfff]",Zr="["+Mr+"]",qr="(?:"+Gr+"|"+Ur+")",Hr="(?:"+Zr+"|"+Ur+")",Jr="(?:['’](?:d|ll|m|re|s|t|ve))?",Br="(?:['’](?:D|LL|M|RE|S|T|VE))?",Vr="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",Yr="[\\ufe0e\\ufe0f]?",Kr=Yr+Vr+("(?:\\u200d(?:"+["[^"+Cr+"]",Fr,$r].join("|")+")"+Yr+Vr+")*"),Qr="(?:"+[kr,Fr,$r].join("|")+")"+Kr,Wr=RegExp([Zr+"?"+Gr+"+"+Jr+"(?="+[zr,Zr,"$"].join("|")+")",Hr+"+"+Br+"(?="+[zr,Zr+qr,"$"].join("|")+")",Zr+"?"+qr+"+"+Jr,Zr+"+"+Br,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Dr,Qr].join("|"),"g");var Xr=function(t){return t.match(Wr)||[]};var te=function(t,r,e){return t=Nt(t),void 0===(r=e?void 0:r)?wr(t)?Xr(t):jr(t):t.match(r)||[]},re=RegExp("['’]","g");var ee=function(r){return function(t){return mr(te(Rr(t).replace(re,"")),r,"")}},ne=ee(function(t,r,e){return t+(e?"_":"")+r.toLowerCase()});var oe=function(t,r,e){var n=-1,o=t.length;r<0&&(r=o<-r?0:o+r),(e=o<e?o:e)<0&&(e+=o),o=e<r?0:e-r>>>0,r>>>=0;for(var a=Array(o);++n<o;)a[n]=t[n+r];return a};var ae=function(t,r,e){var n=t.length;return e=void 0===e?n:e,!r&&n<=e?t:oe(t,r,e)},ue=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");var ie=function(t){return ue.test(t)};var ce=function(t){return t.split("")},fe="\\ud800-\\udfff",se="["+fe+"]",le="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",pe="\\ud83c[\\udffb-\\udfff]",ve="[^"+fe+"]",de="(?:\\ud83c[\\udde6-\\uddff]){2}",he="[\\ud800-\\udbff][\\udc00-\\udfff]",ye="(?:"+le+"|"+pe+")"+"?",be="[\\ufe0e\\ufe0f]?",_e=be+ye+("(?:\\u200d(?:"+[ve,de,he].join("|")+")"+be+ye+")*"),Ee="(?:"+[ve+le+"?",le,de,he,se].join("|")+")",ge=RegExp(pe+"(?="+pe+")|"+Ee+_e,"g");var Ae=function(t){return t.match(ge)||[]};var me=function(t){return ie(t)?Ae(t):ce(t)};var Se=function(o){return function(t){t=Nt(t);var r=ie(t)?me(t):void 0,e=r?r[0]:t.charAt(0),n=r?ae(r,1).join(""):t.slice(1);return e[o]()+n}}("toUpperCase");var xe=function(t){return Se(Nt(t).toLowerCase())};var Oe=Pe(ee(function(t,r,e){return r=r.toLowerCase(),t+(e?xe(r):r)}),Te),Re=Pe(ne,je);function Te(t){return Array.isArray(t)?t.map(Te):P(t)?Oe(t):t}function je(t){return Array.isArray(t)?t.map(je):P(t)?Re(t):t}function Pe(s,l){return function(t){var r,e,n={},o=Object.keys(t);try{for(var a=function(t){var r="function"==typeof Symbol&&t[Symbol.iterator],e=0;return r?r.call(t):{next:function(){return t&&e>=t.length&&(t=void 0),{value:t&&t[e++],done:!t}}}}(o),u=a.next();!u.done;u=a.next()){var i=u.value,c=s(i),f=t[i];n[c]=l(f)}}catch(t){r={error:t}}finally{try{u&&!u.done&&(e=a.return)&&e.call(a)}finally{if(r)throw r.error}}return n}}var we="ws",Ce=function(){function t(t){this.binary=new o.ReplaySubject(1),this.notifications=new o.ReplaySubject(1),this.connection=new o.BehaviorSubject(!1),this.ready=this.connection.asObservable();var r,e=(r=t).lastIndexOf("/")!==r.length-1?r+"/"+we:""+r+we;this.connect(e)}return t.prototype.notify=function(t,r){this.rockets.notify(t,r)},t.prototype.request=function(t,r){return this.rockets.request(t,r)},t.prototype.observe=function(r){return r===n?this.binary.asObservable():this.notifications.asObservable().pipe(a.filter(function(t){return t.method===r}),a.map(function(t){return t.params}))},t.prototype.upload=function(t){var r,e,n,o,a,u=this,i=t.file,c=t.chunkSize,f=gr(6),s=(e=(r=i).name,o=-1===(n=e.lastIndexOf("."))?"":e.substr(n+1),{name:(a=r.name).replace("."+o,""),path:a,type:o,size:r.size}),l=hr({},s,pr(t,["name","path","type","transformation","boundingBox","visible","loaderName","loaderProperties"]),{chunksId:f}),p=Ar(i,{chunkSize:c}),v=this.rockets.request(h,l),d=p.subscribe(function(t){u.rockets.notify(y,{id:f}),u.rockets.ws.next(t)});return v.then(vr,function(){d.unsubscribe()}),v},t.prototype.connect=function(t){var r=this;this.rockets=e.Client.create({url:t,serializer:Ie,deserializer:Me,protocol:["rockets"],onConnected:function(){r.connection.next(!0)},onClosed:function(){r.reconnect(t)}}),this.addListeners()},t.prototype.addListeners=function(){var r=this;this.rockets.ws.pipe(a.filter(Ne),a.map(function(t){return t.data})).subscribe(function(t){r.binary.next(t)},vr),this.rockets.subscribe(function(t){r.notifications.next(t)},vr)},t.prototype.reconnect=function(t){var r,e=this;this.connection.next(!1),(r=5e3,o.interval(r).pipe(a.take(1))).subscribe(function(){e.connect(t)})},t}();function Ne(t){return t.data instanceof Blob}function Ie(t){var r=je(t.toJSON());return JSON.stringify(r)}function Me(n){return yr(this,void 0,void 0,function(){var r,e;return br(this,function(t){if(r=n.data,!dr(r))return[2];try{return e=JSON.parse(n.data),[2,Te(e)]}catch(t){return[2]}return[2]})})}t.ANIMATION_PARAMS="animation-parameters",t.GET_ANIMATION_PARAMS="get-animation-parameters",t.SET_ANIMATION_PARAMS="set-animation-parameters",t.APP_PARAMS="application-parameters",t.GET_APP_PARAMS="get-application-parameters",t.SET_APP_PARAMS="set-application-parameters",t.CAMERA="camera",t.CAMERA_PARAMS="camera-params",t.GET_CAMERA="get-camera",t.SET_CAMERA="set-camera",t.GET_CAMERA_PARAMS="get-camera-params",t.SET_CAMERA_PARAMS="set-camera-params",t.RENDERER="renderer",t.GET_RENDERER="get-renderer",t.SET_RENDERER="set-renderer",t.RENDERER_PARAMS="renderer-params",t.GET_RENDERER_PARAMS="get-renderer-params",t.SET_RENDERER_PARAMS="set-renderer-params",t.SCENE="scene",t.GET_SCENE="get-scene",t.SET_SCENE="set-scene",t.UPDATE_MODEL="update-model",t.LOAD_MODEL="add-model",t.UPLOAD_MODEL=h,t.CHUNK=y,t.REMOVE_MODEL="remove-model",t.GET_MODEL_PROPERTIES="get-model-properties",t.SET_MODEL_PROPERTIES="set-model-properties",t.MODEL_PROPERTIES_SCHEMA="model-properties-schema",t.GET_MODEL_TRANSFER_FUNCTION="get-model-transfer-function",t.SET_MODEL_TRANSFER_FUNCTION="set-model-transfer-function",t.GET_LOADERS="get-loaders",t.LOADERS_SCHEMA="loaders-schema",t.ADD_CLIP_PLANE="add-clip-plane",t.UPDATE_CLIP_PLANE="update-clip-plane",t.GET_CLIP_PLANES="get-clip-planes",t.REMOVE_CLIP_PLANES="remove-clip-planes",t.STATISTICS="statistics",t.GET_STATISTICS="get-statistics",t.SET_STATISTICS="set-statistics",t.INSPECT="inspect",t.SNAPSHOT="snapshot",t.IMAGE_JPEG=n,t.QUIT="quit",t.VERSION="version",t.GET_VERSION="get-version",t.SCHEMA="schema",t.Client=Ce,Object.defineProperty(t,"__esModule",{value:!0})});
!function(t,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports,require("rxjs"),require("rxjs/operators"),require("rockets-client")):"function"==typeof define&&define.amd?define(["exports","rxjs","rxjs/operators","rockets-client"],r):r(t.brayns={},t.rxjs,t.rxjs.operators,t.rocketsClient)}(this,function(t,o,a,e){"use strict";var r,n="image-jpeg",h="request-model-upload",y="chunk";(r=t.ImageFormat||(t.ImageFormat={})).Jpeg="jpeg",r.Png="png",r.Bmp="bmp",r.Tiff="tiff";var i=Array.isArray;function u(t){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var c="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},f="object"==u(c)&&c&&c.Object===Object&&c,s="object"==("undefined"==typeof self?"undefined":u(self))&&self&&self.Object===Object&&self,l=f||s||Function("return this")(),p=l.Symbol,v=Object.prototype,d=v.hasOwnProperty,_=v.toString,b=p?p.toStringTag:void 0;var E=function(t){var r=d.call(t,b),e=t[b];try{t[b]=void 0}catch(t){}var n=_.call(t);return r?t[b]=e:delete t[b],n},g=Object.prototype.toString;var m=function(t){return g.call(t)},A=p?p.toStringTag:void 0;var S=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":A&&A in Object(t)?E(t):m(t)};var O=function(t){return null!=t&&"object"==u(t)};var x=function(t){return"symbol"==u(t)||O(t)&&"[object Symbol]"==S(t)},R=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,T=/^\w*$/;var j=function(t,r){if(i(t))return!1;var e=u(t);return!("number"!=e&&"symbol"!=e&&"boolean"!=e&&null!=t&&!x(t))||T.test(t)||!R.test(t)||null!=r&&t in Object(r)};var P=function(t){var r=u(t);return null!=t&&("object"==r||"function"==r)};var w,N=function(t){if(!P(t))return!1;var r=S(t);return"[object Function]"==r||"[object GeneratorFunction]"==r||"[object AsyncFunction]"==r||"[object Proxy]"==r},C=l["__core-js_shared__"],I=(w=/[^.]+$/.exec(C&&C.keys&&C.keys.IE_PROTO||""))?"Symbol(src)_1."+w:"";var M=function(t){return!!I&&I in t},L=Function.prototype.toString;var z=function(t){if(null!=t){try{return L.call(t)}catch(t){}try{return t+""}catch(t){}}return""},D=/^\[object .+?Constructor\]$/,k=Function.prototype,G=Object.prototype,U=k.toString,F=G.hasOwnProperty,$=RegExp("^"+U.call(F).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var Z=function(t){return!(!P(t)||M(t))&&(N(t)?$:D).test(z(t))};var q=function(t,r){return null==t?void 0:t[r]};var H=function(t,r){var e=q(t,r);return Z(e)?e:void 0},V=H(Object,"create");var J=function(){this.__data__=V?V(null):{},this.size=0};var B=function(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r},Y=Object.prototype.hasOwnProperty;var K=function(t){var r=this.__data__;if(V){var e=r[t];return"__lodash_hash_undefined__"===e?void 0:e}return Y.call(r,t)?r[t]:void 0},Q=Object.prototype.hasOwnProperty;var W=function(t){var r=this.__data__;return V?void 0!==r[t]:Q.call(r,t)};var X=function(t,r){var e=this.__data__;return this.size+=this.has(t)?0:1,e[t]=V&&void 0===r?"__lodash_hash_undefined__":r,this};function tt(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}tt.prototype.clear=J,tt.prototype.delete=B,tt.prototype.get=K,tt.prototype.has=W,tt.prototype.set=X;var rt=tt;var et=function(){this.__data__=[],this.size=0};var nt=function(t,r){return t===r||t!=t&&r!=r};var ot=function(t,r){for(var e=t.length;e--;)if(nt(t[e][0],r))return e;return-1},at=Array.prototype.splice;var ut=function(t){var r=this.__data__,e=ot(r,t);return!(e<0||(e==r.length-1?r.pop():at.call(r,e,1),--this.size,0))};var it=function(t){var r=this.__data__,e=ot(r,t);return e<0?void 0:r[e][1]};var ct=function(t){return-1<ot(this.__data__,t)};var ft=function(t,r){var e=this.__data__,n=ot(e,t);return n<0?(++this.size,e.push([t,r])):e[n][1]=r,this};function st(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}st.prototype.clear=et,st.prototype.delete=ut,st.prototype.get=it,st.prototype.has=ct,st.prototype.set=ft;var lt=st,pt=H(l,"Map");var vt=function(t){var r=u(t);return"string"==r||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==t:null===t};var dt=function(t,r){var e=t.__data__;return vt(r)?e["string"==typeof r?"string":"hash"]:e.map};var ht=function(t){var r=dt(this,t).delete(t);return this.size-=r?1:0,r};var yt=function(t){return dt(this,t).get(t)};var _t=function(t){return dt(this,t).has(t)};var bt=function(t,r){var e=dt(this,t),n=e.size;return e.set(t,r),this.size+=e.size==n?0:1,this};function Et(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}Et.prototype.clear=function(){this.size=0,this.__data__={hash:new rt,map:new(pt||lt),string:new rt}},Et.prototype.delete=ht,Et.prototype.get=yt,Et.prototype.has=_t,Et.prototype.set=bt;var gt=Et,mt="Expected a function";function At(a,u){if("function"!=typeof a||null!=u&&"function"!=typeof u)throw new TypeError(mt);var t=function t(){var r=arguments,e=u?u.apply(this,r):r[0],n=t.cache;if(n.has(e))return n.get(e);var o=a.apply(this,r);return t.cache=n.set(e,o)||n,o};return t.cache=new(At.Cache||gt),t}At.Cache=gt;var St=At;var Ot=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,xt=/\\(\\)?/g,Rt=function(t){var r=St(t,function(t){return 500===e.size&&e.clear(),t}),e=r.cache;return r}(function(t){var o=[];return 46===t.charCodeAt(0)&&o.push(""),t.replace(Ot,function(t,r,e,n){o.push(e?n.replace(xt,"$1"):r||t)}),o});var Tt=function(t,r){for(var e=-1,n=null==t?0:t.length,o=Array(n);++e<n;)o[e]=r(t[e],e,t);return o},jt=1/0,Pt=p?p.prototype:void 0,wt=Pt?Pt.toString:void 0;var Nt=function t(r){if("string"==typeof r)return r;if(i(r))return Tt(r,t)+"";if(x(r))return wt?wt.call(r):"";var e=r+"";return"0"==e&&1/r==-jt?"-0":e};var Ct=function(t){return null==t?"":Nt(t)};var It=function(t,r){return i(t)?t:j(t,r)?[t]:Rt(Ct(t))};var Mt=function(t){if("string"==typeof t||x(t))return t;var r=t+"";return"0"==r&&1/t==-1/0?"-0":r};var Lt=function(t,r){for(var e=0,n=(r=It(r,t)).length;null!=t&&e<n;)t=t[Mt(r[e++])];return e&&e==n?t:void 0},zt=function(){try{var t=H(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();var Dt=function(t,r,e){"__proto__"==r&&zt?zt(t,r,{configurable:!0,enumerable:!0,value:e,writable:!0}):t[r]=e},kt=Object.prototype.hasOwnProperty;var Gt=function(t,r,e){var n=t[r];kt.call(t,r)&&nt(n,e)&&(void 0!==e||r in t)||Dt(t,r,e)},Ut=/^(?:0|[1-9]\d*)$/;var Ft=function(t,r){var e=u(t);return!!(r=null==r?9007199254740991:r)&&("number"==e||"symbol"!=e&&Ut.test(t))&&-1<t&&t%1==0&&t<r};var $t=function(t,r,e,n){if(!P(t))return t;for(var o=-1,a=(r=It(r,t)).length,u=a-1,i=t;null!=i&&++o<a;){var c=Mt(r[o]),f=e;if(o!=u){var s=i[c];void 0===(f=n?n(s,c,i):void 0)&&(f=P(s)?s:Ft(r[o+1])?[]:{})}Gt(i,c,f),i=i[c]}return t};var Zt=function(t,r,e){for(var n=-1,o=r.length,a={};++n<o;){var u=r[n],i=Lt(t,u);e(i,u)&&$t(a,It(u,t),i)}return a};var qt=function(t,r){return null!=t&&r in Object(t)};var Ht=function(t){return O(t)&&"[object Arguments]"==S(t)},Vt=Object.prototype,Jt=Vt.hasOwnProperty,Bt=Vt.propertyIsEnumerable,Yt=Ht(function(){return arguments}())?Ht:function(t){return O(t)&&Jt.call(t,"callee")&&!Bt.call(t,"callee")};var Kt=function(t){return"number"==typeof t&&-1<t&&t%1==0&&t<=9007199254740991};var Qt=function(t,r,e){for(var n=-1,o=(r=It(r,t)).length,a=!1;++n<o;){var u=Mt(r[n]);if(!(a=null!=t&&e(t,u)))break;t=t[u]}return a||++n!=o?a:!!(o=null==t?0:t.length)&&Kt(o)&&Ft(u,o)&&(i(t)||Yt(t))};var Wt=function(t,r){return null!=t&&Qt(t,r,qt)};var Xt=function(e,t){return Zt(e,t,function(t,r){return Wt(e,r)})};var tr=function(t,r){for(var e=-1,n=r.length,o=t.length;++e<n;)t[o+e]=r[e];return t},rr=p?p.isConcatSpreadable:void 0;var er=function(t){return i(t)||Yt(t)||!!(rr&&t&&t[rr])};var nr=function t(r,e,n,o,a){var u=-1,i=r.length;for(n||(n=er),a||(a=[]);++u<i;){var c=r[u];0<e&&n(c)?1<e?t(c,e-1,n,o,a):tr(a,c):o||(a[a.length]=c)}return a};var or=function(t){return null!=t&&t.length?nr(t,1):[]};var ar=function(t,r,e){switch(e.length){case 0:return t.call(r);case 1:return t.call(r,e[0]);case 2:return t.call(r,e[0],e[1]);case 3:return t.call(r,e[0],e[1],e[2])}return t.apply(r,e)},ur=Math.max;var ir=function(a,u,i){return u=ur(void 0===u?a.length-1:u,0),function(){for(var t=arguments,r=-1,e=ur(t.length-u,0),n=Array(e);++r<e;)n[r]=t[u+r];r=-1;for(var o=Array(u+1);++r<u;)o[r]=t[r];return o[u]=i(n),ar(a,this,o)}};var cr=function(t){return function(){return t}};var fr=zt?function(t,r){return zt(t,"toString",{configurable:!0,enumerable:!1,value:cr(r),writable:!0})}:function(t){return t},sr=Date.now;var lr=function(e){var n=0,o=0;return function(){var t=sr(),r=16-(t-o);if(o=t,0<r){if(800<=++n)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}(fr);var pr=function(t){return lr(ir(t,void 0,or),t+"")}(function(t,r){return null==t?{}:Xt(t,r)});var vr=function(){};var dr=function(t){return"string"==typeof t||!i(t)&&O(t)&&"[object String]"==S(t)},hr=function(){return(hr=Object.assign||function(t){for(var r,e=1,n=arguments.length;e<n;e++)for(var o in r=arguments[e])Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o]);return t}).apply(this,arguments)};function yr(a,u,i,c){return new(i||(i=Promise))(function(t,r){function e(t){try{o(c.next(t))}catch(t){r(t)}}function n(t){try{o(c.throw(t))}catch(t){r(t)}}function o(r){r.done?t(r.value):new i(function(t){t(r.value)}).then(e,n)}o((c=c.apply(a,u||[])).next())})}function _r(e,n){var o,a,u,t,i={label:0,sent:function(){if(1&u[0])throw u[1];return u[1]},trys:[],ops:[]};return t={next:r(0),throw:r(1),return:r(2)},"function"==typeof Symbol&&(t[Symbol.iterator]=function(){return this}),t;function r(r){return function(t){return function(r){if(o)throw new TypeError("Generator is already executing.");for(;i;)try{if(o=1,a&&(u=2&r[0]?a.return:r[0]?a.throw||((u=a.return)&&u.call(a),0):a.next)&&!(u=u.call(a,r[1])).done)return u;switch(a=0,u&&(r=[2&r[0],u.value]),r[0]){case 0:case 1:u=r;break;case 4:return i.label++,{value:r[1],done:!1};case 5:i.label++,a=r[1],r=[0];continue;case 7:r=i.ops.pop(),i.trys.pop();continue;default:if(!(u=0<(u=i.trys).length&&u[u.length-1])&&(6===r[0]||2===r[0])){i=0;continue}if(3===r[0]&&(!u||r[1]>u[0]&&r[1]<u[3])){i.label=r[1];break}if(6===r[0]&&i.label<u[1]){i.label=u[1],u=r;break}if(u&&i.label<u[2]){i.label=u[2],i.ops.push(r);break}u[2]&&i.ops.pop(),i.trys.pop();continue}r=n.call(e,i)}catch(t){r=[6,t],a=0}finally{o=u=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,t])}}}function br(t,r){var e="function"==typeof Symbol&&t[Symbol.iterator];if(!e)return t;var n,o,a=e.call(t),u=[];try{for(;(void 0===r||0<r--)&&!(n=a.next()).done;)u.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(e=a.return)&&e.call(a)}finally{if(o)throw o.error}}return u}function Er(t){var r=String.fromCharCode.apply(String,function(){for(var t=[],r=0;r<arguments.length;r++)t=t.concat(br(arguments[r]));return t}(t));return btoa(r)}function gr(t){var r;return void 0===t&&(t=12),Er((r=new Uint8Array(t),crypto.getRandomValues(r),r)).replace(/=+$/,"").replace(/\+/g,"-").replace(/\//g,"_")}function mr(e,n){var t=new o.Observable(function(t){var r=new o.BehaviorSubject(!1);return function(p,v,d,h){yr(this,void 0,void 0,function(){var r,e,a,u,i,c,f,s,l;return _r(this,function(t){switch(t.label){case 0:r=p.size,e=hr({},h).chunkSize,a="number"!=typeof e||Number.isNaN(e)||0===e?r:e,u=0,t.label=1;case 1:if(!(u<r)||d.value)return[3,6];c=a<(i=r-u)?a:i,f=p.slice(u,u+c),t.label=2;case 2:return t.trys.push([2,4,,5]),[4,(n=f,o=new FileReader,new Promise(function(e,r){o.onload=function(t){var r=t.target.result;e(r)},o.onerror=function(t){r(t)},o.readAsArrayBuffer(n)}))];case 3:return s=t.sent(),v.next(s),[3,5];case 4:return l=t.sent(),d.next(!0),v.error(l),[3,5];case 5:return u+=a,[3,1];case 6:return v.complete(),[2]}var n,o})})}(e,t,r,n),function(){r.next(!0)}});return a.publishReplay()(t).refCount()}var Ar=function(t,r,e,n){var o=-1,a=null==t?0:t.length;for(n&&a&&(e=t[++o]);++o<a;)e=r(e,t[o],o,t);return e};var Sr=function(r){return function(t){return null==r?void 0:r[t]}}({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),Or=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,xr=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");var Rr=function(t){return(t=Ct(t))&&t.replace(Or,Sr).replace(xr,"")},Tr=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;var jr=function(t){return t.match(Tr)||[]},Pr=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;var wr=function(t){return Pr.test(t)},Nr="\\ud800-\\udfff",Cr="\\u2700-\\u27bf",Ir="a-z\\xdf-\\xf6\\xf8-\\xff",Mr="A-Z\\xc0-\\xd6\\xd8-\\xde",Lr="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",zr="["+Lr+"]",Dr="\\d+",kr="["+Cr+"]",Gr="["+Ir+"]",Ur="[^"+Nr+Lr+Dr+Cr+Ir+Mr+"]",Fr="(?:\\ud83c[\\udde6-\\uddff]){2}",$r="[\\ud800-\\udbff][\\udc00-\\udfff]",Zr="["+Mr+"]",qr="(?:"+Gr+"|"+Ur+")",Hr="(?:"+Zr+"|"+Ur+")",Vr="(?:['’](?:d|ll|m|re|s|t|ve))?",Jr="(?:['’](?:D|LL|M|RE|S|T|VE))?",Br="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",Yr="[\\ufe0e\\ufe0f]?",Kr=Yr+Br+("(?:\\u200d(?:"+["[^"+Nr+"]",Fr,$r].join("|")+")"+Yr+Br+")*"),Qr="(?:"+[kr,Fr,$r].join("|")+")"+Kr,Wr=RegExp([Zr+"?"+Gr+"+"+Vr+"(?="+[zr,Zr,"$"].join("|")+")",Hr+"+"+Jr+"(?="+[zr,Zr+qr,"$"].join("|")+")",Zr+"?"+qr+"+"+Vr,Zr+"+"+Jr,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Dr,Qr].join("|"),"g");var Xr=function(t){return t.match(Wr)||[]};var te=function(t,r,e){return t=Ct(t),void 0===(r=e?void 0:r)?wr(t)?Xr(t):jr(t):t.match(r)||[]},re=RegExp("['’]","g");var ee=function(r){return function(t){return Ar(te(Rr(t).replace(re,"")),r,"")}},ne=ee(function(t,r,e){return t+(e?"_":"")+r.toLowerCase()});var oe=function(t,r,e){var n=-1,o=t.length;r<0&&(r=o<-r?0:o+r),(e=o<e?o:e)<0&&(e+=o),o=e<r?0:e-r>>>0,r>>>=0;for(var a=Array(o);++n<o;)a[n]=t[n+r];return a};var ae=function(t,r,e){var n=t.length;return e=void 0===e?n:e,!r&&n<=e?t:oe(t,r,e)},ue=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");var ie=function(t){return ue.test(t)};var ce=function(t){return t.split("")},fe="\\ud800-\\udfff",se="["+fe+"]",le="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",pe="\\ud83c[\\udffb-\\udfff]",ve="[^"+fe+"]",de="(?:\\ud83c[\\udde6-\\uddff]){2}",he="[\\ud800-\\udbff][\\udc00-\\udfff]",ye="(?:"+le+"|"+pe+")"+"?",_e="[\\ufe0e\\ufe0f]?",be=_e+ye+("(?:\\u200d(?:"+[ve,de,he].join("|")+")"+_e+ye+")*"),Ee="(?:"+[ve+le+"?",le,de,he,se].join("|")+")",ge=RegExp(pe+"(?="+pe+")|"+Ee+be,"g");var me=function(t){return t.match(ge)||[]};var Ae=function(t){return ie(t)?me(t):ce(t)};var Se=function(o){return function(t){t=Ct(t);var r=ie(t)?Ae(t):void 0,e=r?r[0]:t.charAt(0),n=r?ae(r,1).join(""):t.slice(1);return e[o]()+n}}("toUpperCase");var Oe=function(t){return Se(Ct(t).toLowerCase())};var xe=Pe(ee(function(t,r,e){return r=r.toLowerCase(),t+(e?Oe(r):r)}),Te),Re=Pe(ne,je);function Te(t){return Array.isArray(t)?t.map(Te):P(t)?xe(t):t}function je(t){return Array.isArray(t)?t.map(je):P(t)?Re(t):t}function Pe(s,l){return function(t){var r,e,n={},o=Object.keys(t);try{for(var a=function(t){var r="function"==typeof Symbol&&t[Symbol.iterator],e=0;return r?r.call(t):{next:function(){return t&&e>=t.length&&(t=void 0),{value:t&&t[e++],done:!t}}}}(o),u=a.next();!u.done;u=a.next()){var i=u.value,c=s(i),f=t[i];n[c]=l(f)}}catch(t){r={error:t}}finally{try{u&&!u.done&&(e=a.return)&&e.call(a)}finally{if(r)throw r.error}}return n}}var we="ws",Ne=function(){function t(t){this.binary=new o.ReplaySubject(1),this.notifications=new o.ReplaySubject(1),this.connection=new o.BehaviorSubject(!1),this.ready=this.connection.asObservable();var r,e=(r=t).lastIndexOf("/")!==r.length-1?r+"/"+we:""+r+we;this.connect(e)}return t.prototype.notify=function(t,r){this.rockets.notify(t,r)},t.prototype.request=function(t,r){return this.rockets.request(t,r)},t.prototype.observe=function(r){return r===n?this.binary.asObservable():this.notifications.asObservable().pipe(a.filter(function(t){return t.method===r}),a.map(function(t){return t.params}))},t.prototype.upload=function(t){var r,e,n,o,a,u=this,i=t.file,c=t.chunkSize,f=gr(6),s=(e=(r=i).name,o=-1===(n=e.lastIndexOf("."))?"":e.substr(n+1),{name:(a=r.name).replace("."+o,""),path:a,type:o,size:r.size}),l=hr({},s,pr(t,["name","path","type","transformation","boundingBox","visible","loaderName","loaderProperties"]),{chunksId:f}),p=mr(i,{chunkSize:c}),v=this.rockets.request(h,l),d=p.subscribe(function(t){u.rockets.notify(y,{id:f}),u.rockets.ws.next(t)});return v.then(vr,function(){d.unsubscribe()}),v},t.prototype.connect=function(t){var r=this;this.rockets=e.Client.create({url:t,serializer:Ie,deserializer:Me,protocol:["rockets"],onConnected:function(){r.connection.next(!0)},onClosed:function(){r.reconnect(t)}}),this.addListeners()},t.prototype.addListeners=function(){var r=this;this.rockets.ws.pipe(a.filter(Ce),a.map(function(t){return t.data})).subscribe(function(t){r.binary.next(t)},vr),this.rockets.subscribe(function(t){r.notifications.next(t)},vr)},t.prototype.reconnect=function(t){var r,e=this;this.connection.next(!1),(r=5e3,o.interval(r).pipe(a.take(1))).subscribe(function(){e.connect(t)})},t}();function Ce(t){return t.data instanceof Blob}function Ie(t){var r=je(t.toJSON());return JSON.stringify(r)}function Me(n){return yr(this,void 0,void 0,function(){var r,e;return _r(this,function(t){if(r=n.data,!dr(r))return[2];try{return e=JSON.parse(n.data),[2,Te(e)]}catch(t){return[2]}return[2]})})}t.ANIMATION_PARAMS="animation-parameters",t.GET_ANIMATION_PARAMS="get-animation-parameters",t.SET_ANIMATION_PARAMS="set-animation-parameters",t.APP_PARAMS="application-parameters",t.GET_APP_PARAMS="get-application-parameters",t.SET_APP_PARAMS="set-application-parameters",t.CAMERA="camera",t.CAMERA_PARAMS="camera-params",t.GET_CAMERA="get-camera",t.SET_CAMERA="set-camera",t.GET_CAMERA_PARAMS="get-camera-params",t.SET_CAMERA_PARAMS="set-camera-params",t.SET_ENVIRONMENT_MAP="set-environment-map",t.GET_ENVIRONMENT_MAP="get-environment-map",t.RENDERER="renderer",t.GET_RENDERER="get-renderer",t.SET_RENDERER="set-renderer",t.RENDERER_PARAMS="renderer-params",t.GET_RENDERER_PARAMS="get-renderer-params",t.SET_RENDERER_PARAMS="set-renderer-params",t.SCENE="scene",t.GET_SCENE="get-scene",t.SET_SCENE="set-scene",t.UPDATE_MODEL="update-model",t.LOAD_MODEL="add-model",t.UPLOAD_MODEL=h,t.CHUNK=y,t.REMOVE_MODEL="remove-model",t.GET_MODEL_PROPERTIES="get-model-properties",t.SET_MODEL_PROPERTIES="set-model-properties",t.MODEL_PROPERTIES_SCHEMA="model-properties-schema",t.GET_MODEL_TRANSFER_FUNCTION="get-model-transfer-function",t.SET_MODEL_TRANSFER_FUNCTION="set-model-transfer-function",t.GET_LOADERS="get-loaders",t.LOADERS_SCHEMA="loaders-schema",t.ADD_CLIP_PLANE="add-clip-plane",t.UPDATE_CLIP_PLANE="update-clip-plane",t.GET_CLIP_PLANES="get-clip-planes",t.REMOVE_CLIP_PLANES="remove-clip-planes",t.STATISTICS="statistics",t.GET_STATISTICS="get-statistics",t.SET_STATISTICS="set-statistics",t.INSPECT="inspect",t.SNAPSHOT="snapshot",t.IMAGE_JPEG=n,t.QUIT="quit",t.VERSION="version",t.GET_VERSION="get-version",t.SCHEMA="schema",t.Client=Ne,Object.defineProperty(t,"__esModule",{value:!0})});
//# sourceMappingURL=brayns.umd.min.js.map
import { JSONSchema7 } from 'json-schema';
import { RequestTask } from 'rockets-client';
import { Observable } from 'rxjs';
import { ADD_CLIP_PLANE_TYPE, ANIMATION_PARAMS_TYPE, APP_PARAMS_TYPE, CAMERA_TYPE, GET_ANIMATION_PARAMS_TYPE, GET_APP_PARAMS_TYPE, GET_CAMERA_PARMS_TYPE, GET_CAMERA_TYPE, GET_CLIP_PLANES_TYPE, GET_LOADERS_TYPE, GET_MODEL_PROPERTIES_TYPE, GET_MODEL_TRANSFER_FUNCTION_TYPE, GET_RENDERER_PARMS_TYPE, GET_RENDERER_TYPE, GET_SCENE_TYPE, GET_STATISTICS_TYPE, GET_VERSION_TYPE, IMAGE_JPEG_TYPE, INSPECT_TYPE, LOAD_MODEL_TYPE, LOADERS_SCHEMA_TYPE, MODEL_PROPERTIES_SCHEMA_TYPE, QUIT_TYPE, REMOVE_CLIP_PLANES_TYPE, REMOVE_MODEL_TYPE, RENDERER_PARMS_TYPE, RENDERER_TYPE, SCENE_TYPE, SCHEMA_TYPE, SET_ANIMATION_PARAMS_TYPE, SET_APP_PARAMS_TYPE, SET_CAMERA_PARMS_TYPE, SET_CAMERA_TYPE, SET_MODEL_PROPERTIES_TYPE, SET_MODEL_TRANSFER_FUNCTION_TYPE, SET_RENDERER_PARMS_TYPE, SET_RENDERER_TYPE, SET_SCENE_TYPE, SET_STATISTICS_TYPE, SNAPSHOT_TYPE, STATISTICS_TYPE, UPDATE_CLIP_PLANE_TYPE, UPDATE_MODEL_TYPE, UPLOAD_MODEL_TYPE, VERSION_TYPE } from './constants';
import { AnimationParameters, ApplicationParameters, BinaryParams, Camera, CameraParams, ClipPlane, GetModelPropsParams, GetModelPropsSchemaParams, InspectCoords, InspectParams, Loader, Model, ModelPropsParams, ModelUpdateParams, PathParams, Plane, Renderer, RendererParams, Scene, SchemaParams, SetTransferFunctionParams, Snapshot, SnapshotParams, Statistics, TransferFunction, TransferFunctionParams, UploadParams, UpstreamSetTransferFunctionParams, Version } from './types';
import { ADD_CLIP_PLANE_TYPE, ANIMATION_PARAMS_TYPE, APP_PARAMS_TYPE, CAMERA_TYPE, GET_ANIMATION_PARAMS_TYPE, GET_APP_PARAMS_TYPE, GET_CAMERA_PARMS_TYPE, GET_CAMERA_TYPE, GET_CLIP_PLANES_TYPE, GET_ENVIRONMENT_MAP_TYPE, GET_LOADERS_TYPE, GET_MODEL_PROPERTIES_TYPE, GET_MODEL_TRANSFER_FUNCTION_TYPE, GET_RENDERER_PARMS_TYPE, GET_RENDERER_TYPE, GET_SCENE_TYPE, GET_STATISTICS_TYPE, GET_VERSION_TYPE, IMAGE_JPEG_TYPE, INSPECT_TYPE, LOAD_MODEL_TYPE, LOADERS_SCHEMA_TYPE, MODEL_PROPERTIES_SCHEMA_TYPE, QUIT_TYPE, REMOVE_CLIP_PLANES_TYPE, REMOVE_MODEL_TYPE, RENDERER_PARMS_TYPE, RENDERER_TYPE, SCENE_TYPE, SCHEMA_TYPE, SET_ANIMATION_PARAMS_TYPE, SET_APP_PARAMS_TYPE, SET_CAMERA_PARMS_TYPE, SET_CAMERA_TYPE, SET_ENVIRONMENT_MAP_TYPE, SET_MODEL_PROPERTIES_TYPE, SET_MODEL_TRANSFER_FUNCTION_TYPE, SET_RENDERER_PARMS_TYPE, SET_RENDERER_TYPE, SET_SCENE_TYPE, SET_STATISTICS_TYPE, SNAPSHOT_TYPE, STATISTICS_TYPE, UPDATE_CLIP_PLANE_TYPE, UPDATE_MODEL_TYPE, UPLOAD_MODEL_TYPE, VERSION_TYPE } from './constants';
import { AnimationParameters, ApplicationParameters, BinaryParams, Camera, CameraParams, ClipPlane, EnvironmentMap, GetModelPropsParams, GetModelPropsSchemaParams, InspectCoords, InspectParams, Loader, Model, ModelPropsParams, ModelUpdateParams, PathParams, Plane, Renderer, RendererParams, Scene, SchemaParams, SetAnimationParameters, SetTransferFunctionParams, Snapshot, SnapshotParams, Statistics, TransferFunction, TransferFunctionParams, UploadParams, UpstreamSetTransferFunctionParams, Version } from './types';
export declare const BRAYNS_WS_PATH = "ws";

@@ -83,2 +83,3 @@ /**

request(method: GET_ANIMATION_PARAMS_TYPE): RequestTask<undefined, AnimationParameters>;
request(method: SET_ANIMATION_PARAMS_TYPE, params: SetAnimationParameters): RequestTask<SetAnimationParameters, boolean>;
request(method: GET_APP_PARAMS_TYPE): RequestTask<undefined, ApplicationParameters>;

@@ -112,2 +113,4 @@ request(method: SET_CAMERA_TYPE, params: CameraParams): RequestTask<CameraParams, boolean>;

request(method: SCHEMA_TYPE, params: SchemaParams): RequestTask<SchemaParams, JSONSchema7>;
request(method: SET_ENVIRONMENT_MAP_TYPE, params: EnvironmentMap): RequestTask<EnvironmentMap, boolean>;
request(method: GET_ENVIRONMENT_MAP_TYPE): RequestTask<undefined, EnvironmentMap>;
/**

@@ -129,2 +132,3 @@ * Observe notifications broadcasted by the Brayns server

observe(method: IMAGE_JPEG_TYPE): Observable<Blob>;
observe(method: SET_ENVIRONMENT_MAP_TYPE): Observable<EnvironmentMap>;
/**

@@ -140,5 +144,5 @@ * Upload a model

export declare function appendWsPath(url: string): string;
export declare type RequestType = GET_ANIMATION_PARAMS_TYPE | GET_APP_PARAMS_TYPE | GET_CAMERA_TYPE | SET_CAMERA_TYPE | GET_CAMERA_PARMS_TYPE | SET_CAMERA_PARMS_TYPE | GET_RENDERER_TYPE | SET_RENDERER_TYPE | GET_RENDERER_PARMS_TYPE | SET_RENDERER_PARMS_TYPE | GET_STATISTICS_TYPE | GET_VERSION_TYPE | INSPECT_TYPE | GET_SCENE_TYPE | SET_SCENE_TYPE | LOAD_MODEL_TYPE | UPLOAD_MODEL_TYPE | REMOVE_MODEL_TYPE | UPDATE_MODEL_TYPE | MODEL_PROPERTIES_SCHEMA_TYPE | GET_MODEL_PROPERTIES_TYPE | SET_MODEL_PROPERTIES_TYPE | GET_MODEL_TRANSFER_FUNCTION_TYPE | SET_MODEL_TRANSFER_FUNCTION_TYPE | GET_LOADERS_TYPE | LOADERS_SCHEMA_TYPE | ADD_CLIP_PLANE_TYPE | UPDATE_CLIP_PLANE_TYPE | GET_CLIP_PLANES_TYPE | REMOVE_CLIP_PLANES_TYPE | SNAPSHOT_TYPE | SCHEMA_TYPE;
export declare type RequestType = GET_ANIMATION_PARAMS_TYPE | SET_ANIMATION_PARAMS_TYPE | GET_APP_PARAMS_TYPE | GET_CAMERA_TYPE | SET_CAMERA_TYPE | GET_CAMERA_PARMS_TYPE | SET_CAMERA_PARMS_TYPE | GET_RENDERER_TYPE | SET_RENDERER_TYPE | GET_RENDERER_PARMS_TYPE | SET_RENDERER_PARMS_TYPE | GET_STATISTICS_TYPE | GET_VERSION_TYPE | INSPECT_TYPE | GET_SCENE_TYPE | SET_SCENE_TYPE | LOAD_MODEL_TYPE | UPLOAD_MODEL_TYPE | REMOVE_MODEL_TYPE | UPDATE_MODEL_TYPE | MODEL_PROPERTIES_SCHEMA_TYPE | GET_MODEL_PROPERTIES_TYPE | SET_MODEL_PROPERTIES_TYPE | GET_MODEL_TRANSFER_FUNCTION_TYPE | SET_MODEL_TRANSFER_FUNCTION_TYPE | GET_LOADERS_TYPE | LOADERS_SCHEMA_TYPE | ADD_CLIP_PLANE_TYPE | UPDATE_CLIP_PLANE_TYPE | GET_CLIP_PLANES_TYPE | REMOVE_CLIP_PLANES_TYPE | SNAPSHOT_TYPE | SCHEMA_TYPE | SET_ENVIRONMENT_MAP_TYPE | GET_ENVIRONMENT_MAP_TYPE;
export declare type NotificationType = SET_ANIMATION_PARAMS_TYPE | SET_APP_PARAMS_TYPE | SET_CAMERA_TYPE | SET_CAMERA_PARMS_TYPE | SET_RENDERER_TYPE | SET_RENDERER_PARMS_TYPE | SET_SCENE_TYPE | SET_MODEL_PROPERTIES_TYPE | UPDATE_CLIP_PLANE_TYPE | REMOVE_CLIP_PLANES_TYPE | SET_MODEL_TRANSFER_FUNCTION_TYPE | QUIT_TYPE;
export declare type ObservableType = SET_ANIMATION_PARAMS_TYPE | SET_APP_PARAMS_TYPE | SET_CAMERA_TYPE | SET_CAMERA_PARMS_TYPE | SET_RENDERER_TYPE | SET_RENDERER_PARMS_TYPE | SET_SCENE_TYPE | SET_MODEL_PROPERTIES_TYPE | SET_MODEL_TRANSFER_FUNCTION_TYPE | SET_STATISTICS_TYPE;
export declare type ObservableType = SET_ANIMATION_PARAMS_TYPE | SET_APP_PARAMS_TYPE | SET_CAMERA_TYPE | SET_CAMERA_PARMS_TYPE | SET_RENDERER_TYPE | SET_RENDERER_PARMS_TYPE | SET_SCENE_TYPE | SET_MODEL_PROPERTIES_TYPE | SET_MODEL_TRANSFER_FUNCTION_TYPE | SET_STATISTICS_TYPE | SET_ENVIRONMENT_MAP_TYPE;
export declare type SchemaType = RequestType | NotificationType | ObservableType | ANIMATION_PARAMS_TYPE | APP_PARAMS_TYPE | CAMERA_TYPE | RENDERER_TYPE | RENDERER_PARMS_TYPE | SCENE_TYPE | STATISTICS_TYPE | VERSION_TYPE;
"use strict";
var __assign = (this && this.__assign) || Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
return t;
var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
return t;
};
return __assign.apply(this, arguments);
};

@@ -10,0 +13,0 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

@@ -129,2 +129,6 @@ /**

export declare type SCHEMA_TYPE = typeof SCHEMA;
export declare const SET_ENVIRONMENT_MAP = "set-environment-map";
export declare type SET_ENVIRONMENT_MAP_TYPE = typeof SET_ENVIRONMENT_MAP;
export declare const GET_ENVIRONMENT_MAP = "get-environment-map";
export declare type GET_ENVIRONMENT_MAP_TYPE = typeof GET_ENVIRONMENT_MAP;
/**

@@ -131,0 +135,0 @@ * RPC Notifications from client -> server

@@ -111,2 +111,5 @@ "use strict";

exports.SCHEMA = 'schema';
// Environment map
exports.SET_ENVIRONMENT_MAP = 'set-environment-map';
exports.GET_ENVIRONMENT_MAP = 'get-environment-map';
/**

@@ -113,0 +116,0 @@ * RPC Notifications from client -> server

@@ -109,2 +109,5 @@ /**

export const SCHEMA = 'schema';
// Environment map
export const SET_ENVIRONMENT_MAP = 'set-environment-map';
export const GET_ENVIRONMENT_MAP = 'get-environment-map';
/**

@@ -111,0 +114,0 @@ * RPC Notifications from client -> server

@@ -8,2 +8,4 @@ export {

CAMERA, CAMERA_PARAMS, GET_CAMERA, SET_CAMERA, GET_CAMERA_PARAMS, SET_CAMERA_PARAMS,
// Environment map
SET_ENVIRONMENT_MAP, GET_ENVIRONMENT_MAP,
// Renderer

@@ -10,0 +12,0 @@ RENDERER, GET_RENDERER, SET_RENDERER, RENDERER_PARAMS, GET_RENDERER_PARAMS, SET_RENDERER_PARAMS,

@@ -109,2 +109,5 @@ /**

export var SCHEMA = 'schema';
// Environment map
export var SET_ENVIRONMENT_MAP = 'set-environment-map';
export var GET_ENVIRONMENT_MAP = 'get-environment-map';
/**

@@ -111,0 +114,0 @@ * RPC Notifications from client -> server

@@ -8,2 +8,4 @@ export {

CAMERA, CAMERA_PARAMS, GET_CAMERA, SET_CAMERA, GET_CAMERA_PARAMS, SET_CAMERA_PARAMS,
// Environment map
SET_ENVIRONMENT_MAP, GET_ENVIRONMENT_MAP,
// Renderer

@@ -10,0 +12,0 @@ RENDERER, GET_RENDERER, SET_RENDERER, RENDERER_PARAMS, GET_RENDERER_PARAMS, SET_RENDERER_PARAMS,

@@ -1,3 +0,3 @@

export { ANIMATION_PARAMS, GET_ANIMATION_PARAMS, SET_ANIMATION_PARAMS, APP_PARAMS, GET_APP_PARAMS, SET_APP_PARAMS, CAMERA, CAMERA_PARAMS, GET_CAMERA, SET_CAMERA, GET_CAMERA_PARAMS, SET_CAMERA_PARAMS, RENDERER, GET_RENDERER, SET_RENDERER, RENDERER_PARAMS, GET_RENDERER_PARAMS, SET_RENDERER_PARAMS, SCENE, GET_SCENE, SET_SCENE, UPDATE_MODEL, LOAD_MODEL, UPLOAD_MODEL, CHUNK, REMOVE_MODEL, GET_MODEL_PROPERTIES, SET_MODEL_PROPERTIES, MODEL_PROPERTIES_SCHEMA, GET_MODEL_TRANSFER_FUNCTION, SET_MODEL_TRANSFER_FUNCTION, GET_LOADERS, LOADERS_SCHEMA, ADD_CLIP_PLANE, UPDATE_CLIP_PLANE, GET_CLIP_PLANES, REMOVE_CLIP_PLANES, STATISTICS, GET_STATISTICS, SET_STATISTICS, INSPECT, SNAPSHOT, IMAGE_JPEG, ImageFormat, QUIT, VERSION, GET_VERSION, SCHEMA } from './constants';
export { ANIMATION_PARAMS, GET_ANIMATION_PARAMS, SET_ANIMATION_PARAMS, APP_PARAMS, GET_APP_PARAMS, SET_APP_PARAMS, CAMERA, CAMERA_PARAMS, GET_CAMERA, SET_CAMERA, GET_CAMERA_PARAMS, SET_CAMERA_PARAMS, SET_ENVIRONMENT_MAP, GET_ENVIRONMENT_MAP, RENDERER, GET_RENDERER, SET_RENDERER, RENDERER_PARAMS, GET_RENDERER_PARAMS, SET_RENDERER_PARAMS, SCENE, GET_SCENE, SET_SCENE, UPDATE_MODEL, LOAD_MODEL, UPLOAD_MODEL, CHUNK, REMOVE_MODEL, GET_MODEL_PROPERTIES, SET_MODEL_PROPERTIES, MODEL_PROPERTIES_SCHEMA, GET_MODEL_TRANSFER_FUNCTION, SET_MODEL_TRANSFER_FUNCTION, GET_LOADERS, LOADERS_SCHEMA, ADD_CLIP_PLANE, UPDATE_CLIP_PLANE, GET_CLIP_PLANES, REMOVE_CLIP_PLANES, STATISTICS, GET_STATISTICS, SET_STATISTICS, INSPECT, SNAPSHOT, IMAGE_JPEG, ImageFormat, QUIT, VERSION, GET_VERSION, SCHEMA } from './constants';
export { Client, NotificationType, ObservableType, RequestType, SchemaType } from './client';
export { AnimationParameters, ApplicationParameters, Camera, CameraParams, Renderer, RendererParams, AbstractObject, Scene, BoundingBox, Transformation, BinaryParams, UploadParams, BinaryError, ChunkParams, PathParams, Model, ModelParams, GetModelPropsParams, GetModelPropsSchemaParams, ModelPropsParams, ModelUpdateParams, SetTransferFunctionParams, UpstreamSetTransferFunctionParams, TransferFunctionParams, Loader, ColorMap, ClipPlane, Plane, InspectParams, InspectCoords, CancelParams, Snapshot, SnapshotParams, Statistics, TransferFunction, SchemaParams, Version, Vector2d, Vector3d, Vector4d } from './types';
export { AbstractObject, AnimationParameters, ApplicationParameters, BinaryError, BinaryParams, BoundingBox, Camera, CameraParams, CancelParams, ChunkParams, ClipPlane, ColorMap, EnvironmentMap, GetModelPropsParams, GetModelPropsSchemaParams, InspectCoords, InspectParams, Loader, Model, ModelParams, ModelPropsParams, ModelUpdateParams, PathParams, Plane, Renderer, RendererParams, Scene, SchemaParams, SetAnimationParameters, SetTransferFunctionParams, Snapshot, SnapshotParams, Statistics, TransferFunction, TransferFunctionParams, Transformation, UploadParams, UpstreamSetTransferFunctionParams, Vector2d, Vector3d, Vector4d, Version } from './types';

@@ -19,2 +19,5 @@ "use strict";

exports.SET_CAMERA_PARAMS = constants_1.SET_CAMERA_PARAMS;
// Environment map
exports.SET_ENVIRONMENT_MAP = constants_1.SET_ENVIRONMENT_MAP;
exports.GET_ENVIRONMENT_MAP = constants_1.GET_ENVIRONMENT_MAP;
// Renderer

@@ -21,0 +24,0 @@ exports.RENDERER = constants_1.RENDERER;

@@ -97,2 +97,3 @@ import { ImageFormat } from './constants';

}
export declare type SetAnimationParameters = Partial<Pick<AnimationParameters, 'current' | 'delta' | 'playing'>>;
export interface AnimationParameters {

@@ -102,4 +103,4 @@ current: number;

dt: number;
end: number;
start: number;
frameCount: number;
playing: boolean;
unit: string;

@@ -112,5 +113,6 @@ }

}
export declare type RendererParams = Partial<Pick<Renderer, 'current' | 'samplesPerPixel' | 'maxAccumFrames' | 'backgroundColor' | 'headLight' | 'varianceThreshold'>>;
export declare type RendererParams = Partial<Pick<Renderer, 'current' | 'samplesPerPixel' | 'subsampling' | 'maxAccumFrames' | 'backgroundColor' | 'headLight' | 'varianceThreshold'>>;
export interface Renderer extends AbstractObject {
samplesPerPixel: number;
subsampling: number;
maxAccumFrames: number;

@@ -158,2 +160,5 @@ backgroundColor: number[];

}
export interface EnvironmentMap {
filename: string;
}
export interface Version {

@@ -160,0 +165,0 @@ major: number;

{
"name": "brayns",
"version": "0.1.0",
"version": "0.8.0",
"description": "",

@@ -21,3 +21,3 @@ "main": "./dist/index.js",

"scripts": {
"prebuild": "yarn run clean",
"prebuild": "yarn clean",
"build": "npm-run-all -s compile build:umd",

@@ -32,4 +32,4 @@ "build:umd": "rollup -c ./rollup.config.js",

"lint": "tslint -c tslint.json -p ./tsconfig.spec.json -t stylish",
"lint:fix": "yarn run lint -- --fix",
"pretest:cov": "yarn run lint",
"lint:fix": "yarn lint -- --fix",
"pretest:cov": "yarn lint",
"test:cov": "jest --coverage",

@@ -55,6 +55,5 @@ "test": "jest --watch"

"@types/lodash": "^4.14.116",
"@types/node": "^9.4.5",
"babel-core": "^7.0.0-0",
"babel-jest": "^23.4.0",
"babel-plugin-lodash": "^3.3.4",
"babel-jest": "^23.4.0",
"camelcase": "^4.1.0",

@@ -74,7 +73,7 @@ "jest": "^23.6.0",

"tslint": "^5.9.1",
"typescript": "~2.9.2"
"typescript": "~3.3.3"
},
"engines": {
"node": ">= 7.9"
"node": ">= 8.15"
}
}

@@ -33,2 +33,3 @@ // tslint:disable: member-ordering

GET_CLIP_PLANES_TYPE,
GET_ENVIRONMENT_MAP_TYPE,
GET_LOADERS_TYPE,

@@ -59,2 +60,3 @@ GET_MODEL_PROPERTIES_TYPE,

SET_CAMERA_TYPE,
SET_ENVIRONMENT_MAP_TYPE,
SET_MODEL_PROPERTIES_TYPE,

@@ -81,2 +83,3 @@ SET_MODEL_TRANSFER_FUNCTION_TYPE,

ClipPlane,
EnvironmentMap,
GetModelPropsParams,

@@ -96,2 +99,3 @@ GetModelPropsSchemaParams,

SchemaParams,
SetAnimationParameters,
SetTransferFunctionParams,

@@ -205,2 +209,3 @@ Snapshot,

request(method: GET_ANIMATION_PARAMS_TYPE): RequestTask<undefined, AnimationParameters>;
request(method: SET_ANIMATION_PARAMS_TYPE, params: SetAnimationParameters): RequestTask<SetAnimationParameters, boolean>;
request(method: GET_APP_PARAMS_TYPE): RequestTask<undefined, ApplicationParameters>;

@@ -234,2 +239,4 @@ request(method: SET_CAMERA_TYPE, params: CameraParams): RequestTask<CameraParams, boolean>;

request(method: SCHEMA_TYPE, params: SchemaParams): RequestTask<SchemaParams, JSONSchema7>;
request(method: SET_ENVIRONMENT_MAP_TYPE, params: EnvironmentMap): RequestTask<EnvironmentMap, boolean>;
request(method: GET_ENVIRONMENT_MAP_TYPE): RequestTask<undefined, EnvironmentMap>;
request<R, P>(method: RequestType | string, params?: P): RequestTask<P, R> {

@@ -255,2 +262,3 @@ return this.rockets!.request<P, R>(method, params);

observe(method: IMAGE_JPEG_TYPE): Observable<Blob>;
observe(method: SET_ENVIRONMENT_MAP_TYPE): Observable<EnvironmentMap>;
observe<R>(method: ObservableType | IMAGE_JPEG_TYPE | string): Observable<R | Blob> {

@@ -386,2 +394,3 @@ if (method === IMAGE_JPEG) {

export type RequestType = GET_ANIMATION_PARAMS_TYPE
| SET_ANIMATION_PARAMS_TYPE
| GET_APP_PARAMS_TYPE

@@ -417,3 +426,5 @@ | GET_CAMERA_TYPE

| SNAPSHOT_TYPE
| SCHEMA_TYPE;
| SCHEMA_TYPE
| SET_ENVIRONMENT_MAP_TYPE
| GET_ENVIRONMENT_MAP_TYPE;

@@ -442,3 +453,4 @@ export type NotificationType = SET_ANIMATION_PARAMS_TYPE

| SET_MODEL_TRANSFER_FUNCTION_TYPE
| SET_STATISTICS_TYPE;
| SET_STATISTICS_TYPE
| SET_ENVIRONMENT_MAP_TYPE;

@@ -445,0 +457,0 @@ export type SchemaType = RequestType

@@ -188,2 +188,7 @@ /**

// Environment map
export const SET_ENVIRONMENT_MAP = 'set-environment-map';
export type SET_ENVIRONMENT_MAP_TYPE = typeof SET_ENVIRONMENT_MAP;
export const GET_ENVIRONMENT_MAP = 'get-environment-map';
export type GET_ENVIRONMENT_MAP_TYPE = typeof GET_ENVIRONMENT_MAP;

@@ -190,0 +195,0 @@ /**

@@ -17,2 +17,5 @@ export {

SET_CAMERA_PARAMS,
// Environment map
SET_ENVIRONMENT_MAP,
GET_ENVIRONMENT_MAP,
// Renderer

@@ -74,33 +77,32 @@ RENDERER,

export {
AbstractObject,
AnimationParameters,
ApplicationParameters,
BinaryError,
BinaryParams,
BoundingBox,
Camera,
CameraParams,
Renderer,
RendererParams,
AbstractObject,
Scene,
BoundingBox,
Transformation,
BinaryParams,
UploadParams,
BinaryError,
CancelParams,
ChunkParams,
PathParams,
ClipPlane,
ColorMap,
EnvironmentMap,
GetModelPropsParams,
GetModelPropsSchemaParams,
InspectCoords,
InspectParams,
Loader,
Model,
ModelParams,
GetModelPropsParams,
GetModelPropsSchemaParams,
ModelPropsParams,
ModelUpdateParams,
PathParams,
Plane,
Renderer,
RendererParams,
Scene,
SchemaParams,
SetAnimationParameters,
SetTransferFunctionParams,
UpstreamSetTransferFunctionParams,
TransferFunctionParams,
Loader,
ColorMap,
ClipPlane,
Plane,
InspectParams,
InspectCoords,
CancelParams,
Snapshot,

@@ -110,7 +112,10 @@ SnapshotParams,

TransferFunction,
SchemaParams,
Version,
TransferFunctionParams,
Transformation,
UploadParams,
UpstreamSetTransferFunctionParams,
Vector2d,
Vector3d,
Vector4d
Vector4d,
Version
} from './types';

@@ -123,2 +123,4 @@ import {ImageFormat} from './constants';

export type SetAnimationParameters = Partial<Pick<AnimationParameters, 'current' | 'delta' | 'playing'>>;
export interface AnimationParameters {

@@ -128,4 +130,4 @@ current: number;

dt: number;
end: number;
start: number;
frameCount: number;
playing: boolean;
unit: string;

@@ -144,5 +146,6 @@ }

export type RendererParams = Partial<Pick<Renderer, 'current' | 'samplesPerPixel' | 'maxAccumFrames' | 'backgroundColor' | 'headLight' | 'varianceThreshold'>>;
export type RendererParams = Partial<Pick<Renderer, 'current' | 'samplesPerPixel' | 'subsampling' | 'maxAccumFrames' | 'backgroundColor' | 'headLight' | 'varianceThreshold'>>;
export interface Renderer extends AbstractObject {
samplesPerPixel: number;
subsampling: number;
maxAccumFrames: number;

@@ -199,2 +202,6 @@ backgroundColor: number[];

export interface EnvironmentMap {
filename: string;
}
export interface Version {

@@ -201,0 +208,0 @@ major: number;

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc