var __spreadArray=this&&this.__spreadArray||function(t,e){for(var r=0,a=e.length,n=t.length;r<a;r++,n++)t[n]=e[r];return t};System.register(["./p-23628d1c.system.js"],(function(t){"use strict";var e;return{setters:[function(t){e=t.D}],execute:function(){var r=function(){function t(r,a,n,i){var s=this;if(n===void 0){n=false}this.beforeFetch=function(){return new t(s.data,s.meta,true,undefined)};this.afterFetch=function(r,a){if(a===void 0){a=true}var n;var i=s.data&&a?__spreadArray(__spreadArray([],s.data),e.decodeList(r.results)):e.decodeList(r.results);var d=s.meta;if((n=r.meta)===null||n===void 0?void 0:n.total){d=r.meta}else if(!d&&r.results.length===0){d={total:i.length}}return new t(i,d,false,undefined)};this.afterFetchError=function(e){return new t(s.data,s.meta,false,e)};this.afterUpdateItem=function(e,r){return new t(s.data?__spreadArray([],s.data).map((function(t){if(t._id===e){return Object.assign(Object.assign({},t),r)}return t})):s.data,s.meta,false,undefined)};this.isEndReached=function(){return s.data&&s.meta?s.data.length>=s.meta.total:false};this.data=r;this.error=i;this.isPending=n;this.meta=a}return t}();t("L",r);r.init=function(){return new r}}}}));