var __spreadArray=this&&this.__spreadArray||function(t,r,e){if(e||arguments.length===2)for(var n=0,i=r.length,s;n<i;n++){if(s||!(n in r)){if(!s)s=Array.prototype.slice.call(r,0,n);s[n]=r[n]}}return t.concat(s||Array.prototype.slice.call(r))};System.register(["./p-b195a819.system.js","./p-5f7bc72e.system.js","./p-da593370.system.js"],(function(t){"use strict";var r,e,n;return{setters:[function(t){r=t.A},function(t){e=t.D},function(t){n=t.C}],execute:function(){var i=function(){function t(t,i){var s=this;if(i===void 0){i={}}this.query=function(t,r){return s.api.post("".concat(t,"/query"),r)};this.get=function(t,r,i){return new Promise((function(u,a){return s.query(t,{fields:__spreadArray(__spreadArray([],i.fields||[],true),[new e("_id")],false),filter:{comparison:n.Eq,id:"_id",value:r},limit:1,skip:0}).then((function(t){return u(t.results.pop())})).catch((function(t){return a(t)}))}))};this.update=function(t,r,e){return s.api.post("".concat(t,"/").concat(r,"/update"),e)};this.addAuthInterceptor=function(t){s.api.addAuthInterceptor(t)};this.api=new r(t,i)}return t}();t("D",i)}}}));