-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain-es5.3bbf7371bf28262f313d.js
1 lines (1 loc) · 23.9 KB
/
main-es5.3bbf7371bf28262f313d.js
1
!function(){function t(t){return function(t){if(Array.isArray(t))return n(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||e(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function e(t,e){if(t){if("string"==typeof t)return n(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(t,e):void 0}}function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function r(t){var e="function"==typeof Map?new Map:void 0;return(r=function(t){if(null===t||(n=t,-1===Function.toString.call(n).indexOf("[native code]")))return t;var n;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return o(t,arguments,h(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),s(r,t)})(t)}function o(t,e,n){return(o=p()?Reflect.construct:function(t,e,n){var r=[null];r.push.apply(r,e);var o=new(Function.bind.apply(t,r));return n&&s(o,n.prototype),o}).apply(null,arguments)}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function a(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),t}function c(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&s(t,e)}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function l(t){var e=p();return function(){var n,r=h(t);if(e){var o=h(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f(this,n)}}function f(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function p(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function h(t){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{"/3IS":function(t,e,n){"use strict";n.d(e,"a",function(){return j});var r=n("6uGs"),o=n("kZht"),u=n("Vhhf"),s=n("ulty"),f=n("47ST"),p=n("8j5Y"),h=n("4e/d"),d=n("ruxD"),v=n("J+dc"),b=n("o4/X"),y=n("SRZ4"),m=n("s037"),O=n("YSOR"),g=n("WSVK"),j=function(){var t=function(t){c(n,t);var e=l(n);function n(){return i(this,n),e.call(this,Object(o.V)(r.a),Object(o.V)(O.a),Object(o.V)(g.a),Object(o.V)(b.a))}return a(n,[{key:"request",value:function(t){var e,n;if(Object(u.d)(this.local))throw new Error("You must use the @RestClient('controller') decorator for work correctly");null===(n=(e=this.interceptor).onBeforeRequest)||void 0===n||n.call(e,t);var r=this.createMetaDataRequest(t),o=this.http.request(t.method,r.url,r.requestOptions),i=this.limitConcurrency.add(o,t.clientOptions.limitConcurrency);return this.wrapHttpRequestWithMeta(r,t,i)}},{key:"restTemplate",value:function(t){return new y.a(t).asProxyObservable()}},{key:"createMetaDataRequest",value:function(t){var e=t.clientOptions,n=e.emitSuccess,r=e.emitFailure,o=Object(s.e)(t.clientOptions,this.controllerUrl,t.path),i=this.createDataHttpRequestOptions(t),u=Object(s.a)(o);return{method:t.method,url:u,emitSuccess:n,emitFailure:r,requestOptions:i,segments:o}}},{key:"wrapHttpRequestWithMeta",value:function(t,e,n){var r=this;return n.pipe(Object(p.a)(function(n){return r.onSuccess(n,t,e)},function(n){return r.onError(n,t,e)}),Object(h.a)(function(e){return r.onCatch(e,t)}),Object(d.a)(function(){var e,n;return null===(n=(e=r.interceptor).onFinalizeAfterRequest)||void 0===n?void 0:n.call(e,t)}),Object(v.a)(1))}},{key:"onSuccess",value:function(t,e,n){var r,o,i,a,c;Object(u.f)(n.clientOptions.emitSuccess)&&(null===(r=this.interceptor.success$)||void 0===r||r.next({options:n,meta:e}),null===(i=(o=this.interceptor).onEmitSuccess)||void 0===i||i.call(o,t,n,e)),null===(c=(a=this.interceptor).onTapAfterRequest)||void 0===c||c.call(a,t,e)}},{key:"onError",value:function(t,e,n){var r,o,i,a,c;Object(u.f)(n.clientOptions.emitFailure)&&(null===(r=this.interceptor.errors$)||void 0===r||r.next({error:t,options:n,meta:e}),null===(i=(o=this.interceptor).onEmitFailure)||void 0===i||i.call(o,t,n,e)),null===(c=(a=this.interceptor).onErrorAfterRequest)||void 0===c||c.call(a,t,e)}},{key:"onCatch",value:function(t,e){var n,r,o;return null!==(o=null===(r=(n=this.interceptor).onCatchErrorAfterRequest)||void 0===r?void 0:r.call(n,t,e))&&void 0!==o?o:Object(f.a)(t)}}]),n}(m.a);return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=o.Hb({token:t,factory:t.\u0275fac}),t}()},0:function(t,e,n){t.exports=n("2v48")},"2v48":function(t,e,n){"use strict";n.r(e);var r,o,u=n("ENSU"),a=n("kZht"),c=n("Vhhf"),s=n("6uGs"),l=n("uryd"),f=n("P0vk"),p=n("aJOL"),h=n("FxgA"),d=n("b5Xb"),v=n("1VvW"),b=n("8EXQ"),y=((o=function t(){i(this,t)}).\u0275fac=function(t){return new(t||o)},o.\u0275cmp=a.Fb({type:o,selectors:[["app-root"]],decls:32,vars:0,consts:[[1,"dashboard"],["mode","side","opened","",1,"dashboard__menu"],[1,"title"],["src","assets/img/angular.svg","alt","angular",1,"logo"],["routerLink","/",1,"logo-title"],[1,"menu"],[1,"menu__item"],["routerLink","samples/guide"],[1,"dashboard__content"]],template:function(t,e){1&t&&(a.Ob(0,"mat-drawer-container",0),a.jc(1,"\n "),a.Ob(2,"mat-drawer",1),a.jc(3,"\n "),a.Ob(4,"mat-toolbar",2),a.jc(5,"\n "),a.Mb(6,"img",3),a.jc(7,"\n "),a.Ob(8,"a",4),a.jc(9,"@angular-ru/http"),a.Nb(),a.jc(10,"\n "),a.Nb(),a.jc(11,"\n\n "),a.Ob(12,"mat-list",5),a.jc(13,"\n "),a.Ob(14,"mat-list-item",6),a.jc(15,"\n "),a.Ob(16,"a",7),a.jc(17,"- "),a.Ob(18,"strong"),a.jc(19,"Guide overview"),a.Nb(),a.Nb(),a.jc(20,"\n "),a.Nb(),a.jc(21,"\n "),a.Mb(22,"mat-divider"),a.jc(23,"\n "),a.Nb(),a.jc(24,"\n "),a.Nb(),a.jc(25,"\n\n "),a.Ob(26,"mat-drawer-content",8),a.jc(27,"\n "),a.Mb(28,"router-outlet"),a.jc(29,"\n "),a.Nb(),a.jc(30,"\n"),a.Nb(),a.jc(31,"\n"))},directives:[f.b,f.a,p.a,v.b,l.a,l.b,b.a,f.c,v.d],encapsulation:2,changeDetection:0}),o),m=((r=function t(){i(this,t)}).\u0275fac=function(t){return new(t||r)},r.\u0275mod=a.Jb({type:r}),r.\u0275inj=a.Ib({imports:[[v.c.forRoot([{path:"",pathMatch:"full",redirectTo:"samples"},{path:"samples",children:[{path:"",pathMatch:"full",redirectTo:"guide"},{path:"guide",loadChildren:function(){return n.e(6).then(n.bind(null,"G7lC")).then(function(t){return t.GuideModule})}}]}],{useHash:!0,scrollPositionRestoration:"enabled"})],v.c]}),r),O=n("Ht68");n("b2Yo");var g,j=((g=function t(){i(this,t)}).\u0275fac=function(t){return new(t||g)},g.\u0275mod=a.Jb({type:g,bootstrap:[y]}),g.\u0275inj=a.Ib({imports:[[u.a,s.b,m,h.b,f.d,p.b,l.c,d.b.forRoot([O.a],{hostUrl:"https://jsonplaceholder.typicode.com",limitConcurrency:5})]]}),g);Object(c.f)(!0)&&Object(a.T)(),u.c().bootstrapModule(j,{ngZoneEventCoalescing:!0}).catch(function(t){return console.error(t)})},F3WU:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=function(t){return t.GET="get",t.POST="post",t.PATCH="patch",t.PUT="put",t.DELETE="delete",t}({})},Ht68:function(t,e,n){"use strict";n.d(e,"a",function(){return j});var o=n("D57K"),u=n("b5Xb"),s=n("Vhhf"),f=n("ulty"),p=n("F3WU"),h=function(t){c(n,t);var e=l(n);function n(t,r){return i(this,n),e.call(this,"An argument with the name '".concat(t,"' already exists in the method '").concat(r,"'"))}return n}(r(Error)),d=function(){function t(){i(this,t),this.argumentsIndexMap=new Map}return a(t,[{key:"size",get:function(){return this.argumentsIndexMap.size}},{key:"getNameByIndex",value:function(t){var e,n;return null!==(n=null===(e=this.argumentsIndexMap.get(t))||void 0===e?void 0:e.key)&&void 0!==n?n:null}},{key:"getIndexByKey",value:function(t){var e,n;return null!==(n=null===(e=this.argumentsIndexMap.get(t))||void 0===e?void 0:e.index)&&void 0!==n?n:null}},{key:"putIndexByName",value:function(t,e,n){var r={key:t,index:n};this.checkDuplicateName(t,e),this.argumentsIndexMap.set(n,r),this.argumentsIndexMap.set(t,r)}},{key:"checkDuplicateName",value:function(t,e){if(this.argumentsIndexMap.has(t))throw new h(t,e)}}]),t}();function v(t,e){var n,r,o,i=function(t,e){var n,r;return null!==(r=null===(n=t)||void 0===n?void 0:n[e])&&void 0!==r?r:null}(t,e);return Object(s.d)(i)&&(i=new d,Object.defineProperties(t,(o={enumerable:!0,configurable:!0,value:i},(r=e)in(n={})?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,n))),i}function b(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{emitFailure:!0,emitSuccess:!1};return function(n,r,o){return function(t){var e=t.path,n=t.type,r=t.descriptor,o=t.emitOptions;!function(t,e){if(t.hasOwnProperty("prototype"))throw new Error("Cannot support static methods with current decorator");if(void 0===e)throw new Error("Current decorator can only decorate a method implementation")}(t.target,r);var i=r.value;return r.value=function(){for(var t,r,u,a=e.toString(),c=arguments.length,l=new Array(c),p=0;p<c;p++)l[p]=arguments[p];var h=this,d=i.apply(h,l),b=null!==(t=null==d?void 0:d.restTemplateRef)&&void 0!==t?t:null;if(!Object(s.e)(b))throw new Error("You must return observable from your method");a=function(t){var e=t.args,n=t.path,r=t.pathVariables,o=v(t.originalMethod,"META_PATH_VARIABLE"),i=null!=r?r:{},u=new Map;!function(t,e,n){n.size>0&&e.forEach(function(e,r){var o=n.getNameByIndex(r);Object(s.e)(o)&&t.set(o,e)})}(u,e,o),function(t,e){if(Object.keys(e).length>0)for(var n in e)e.hasOwnProperty(n)&&t.set(n,e[n])}(u,i);var a=n.toString();return u.size>0&&(a=Object(f.b)(a,u)),a}({args:l,path:a,originalMethod:i,pathVariables:b.options.pathVariables});var y=v(i,"META_REQUEST_BODY").getIndexByKey("KEY_REQUEST_BODY"),m=Object(s.d)(y)?null==b?void 0:b.options.body:null!==(r=null==b?void 0:b.options.body)&&void 0!==r?r:null==l?void 0:l[y],O=function(t,e,n){var r=v(e,"META_REQUEST_PARAM");if(r.size){var o={};return n.forEach(function(t,e){var n=r.getNameByIndex(e);Object(s.e)(n)&&(o[n]=t)}),Object.assign(Object.assign({},o),t)}return t}(null==b?void 0:b.options.queryParams,i,l);return null===(u=null==(b=null==b?void 0:b.setPath(a).setMethodType(n).setBody(m).setParams(O).setEmitOptions(o).setClient(h))?void 0:b.asObservable)||void 0===u?void 0:u.call(b)},r}({path:t,type:p.a.GET,target:n,descriptor:o,emitOptions:e})}}function y(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return function(e){Object.defineProperties(e.prototype,{controllerUrl:{writable:!0,enumerable:!0,configurable:!0,value:t},local:{writable:!0,enumerable:!0,configurable:!0,value:{restUrl:t}}})}}var m,O=n("IdLP"),g=n("kZht"),j=((m=function(t){c(n,t);var e=l(n);function n(){return i(this,n),e.apply(this,arguments)}return a(n,[{key:"posts",value:function(){return this.restTemplate()}},{key:"comments",value:function(){return this.restTemplate()}},{key:"albums",value:function(){return this.restTemplate()}},{key:"photos",value:function(){return this.restTemplate()}},{key:"todos",value:function(){return this.restTemplate()}},{key:"users",value:function(){return this.restTemplate()}}]),n}(u.a)).\u0275fac=function(t){return w(t||m)},m.\u0275prov=g.Hb({token:m,factory:m.\u0275fac}),Object(o.a)([b("posts"),Object(o.b)("design:type",Function),Object(o.b)("design:paramtypes",[]),Object(o.b)("design:returntype",O.a)],m.prototype,"posts",null),Object(o.a)([b("comments"),Object(o.b)("design:type",Function),Object(o.b)("design:paramtypes",[]),Object(o.b)("design:returntype",O.a)],m.prototype,"comments",null),Object(o.a)([b("albums"),Object(o.b)("design:type",Function),Object(o.b)("design:paramtypes",[]),Object(o.b)("design:returntype",O.a)],m.prototype,"albums",null),Object(o.a)([b("photos"),Object(o.b)("design:type",Function),Object(o.b)("design:paramtypes",[]),Object(o.b)("design:returntype",O.a)],m.prototype,"photos",null),Object(o.a)([b("todos"),Object(o.b)("design:type",Function),Object(o.b)("design:paramtypes",[]),Object(o.b)("design:returntype",O.a)],m.prototype,"todos",null),Object(o.a)([b("users"),Object(o.b)("design:type",Function),Object(o.b)("design:paramtypes",[]),Object(o.b)("design:returntype",O.a)],m.prototype,"users",null),m=Object(o.a)([y("")],m)),w=g.Qb(j)},JN4H:function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return u}),n.d(e,"c",function(){return a});var r=n("Vhhf");function o(t,e){return Object(r.b)(e)?void 0:e}function i(t){return JSON.parse(JSON.stringify(t,o))}function u(t,e,n){var o,i,u;if((null!==(o=null==e?void 0:e.length)&&void 0!==o?o:0)<1)return t;for(var a=t,c=null!==(i=null==e?void 0:e.split("."))&&void 0!==i?i:[],s=0;Object(r.e)(a)&&s<c.length;++s){var l=null==c?void 0:c[s];a=null===(u=a)||void 0===u?void 0:u[l]}return null!=a?a:n}function a(t){return JSON.parse(JSON.stringify(t,function(t,e){return"object"==typeof e?e:Object(r.b)(e)?null:e}))}},SRZ4:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n("Vhhf"),o=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i(this,t),this.options=e,this.operators=[],this.markAsRequest=!1,this._client=null}return a(t,[{key:"setPath",value:function(t){return this.path=t,this}},{key:"setMethodType",value:function(t){return this.methodType=t,this}},{key:"setClient",value:function(t){return this._client=t,this}},{key:"setEmitOptions",value:function(t){var e,n;return Object(r.f)(t.override)?(this.options.emitSuccess=t.emitSuccess,this.options.emitFailure=t.emitFailure):(this.options.emitSuccess=null!==(e=this.options.emitSuccess)&&void 0!==e?e:t.emitSuccess,this.options.emitFailure=null!==(n=this.options.emitFailure)&&void 0!==n?n:t.emitFailure),this}},{key:"setBody",value:function(t){return this.options.body=t,this}},{key:"setParams",value:function(t){return this.options.queryParams=t,this}},{key:"setOptions",value:function(t){return this.options=Object.assign(Object.assign({},this.options),t),this}},{key:"asProxyObservable",value:function(){var t=this,e={restTemplateRef:t,pipe:function(){var n;return(n=t.operators).push.apply(n,arguments),e},subscribe:function(){if(!t.markAsRequest)throw new Error("You cannot invoke observable outside data request context. \nUse only @Get, @Post, @Put, @Delete decorators for correct call http method...")}};return e}},{key:"asObservable",value:function(){var t;if(this.markAsRequest=!0,Object(r.d)(this._client))throw new Error("Not found http client");if(Object(r.d)(null===(t=this._client)||void 0===t?void 0:t[this.methodType]))throw new Error("Method ".concat(this.methodType," not supported"));var e=this._client.createRequestOptions({path:this.path,method:this.methodType,options:this.options}),n=this._client.request(e);return this.operators.length&&this.operators.forEach(function(t){n=n.pipe(t)}),n}}]),t}()},Vhhf:function(t,e,n){"use strict";function r(t){return t}function o(t){var e="string"==typeof t?t.trim():t;return[void 0,null,NaN,"",1/0].includes(e)}function i(t){return!o(t)}function u(t){return!0===t}function a(t){return null==t}function c(t){return!a(t)}function s(t){return Boolean(t)}n.d(e,"a",function(){return r}),n.d(e,"b",function(){return o}),n.d(e,"c",function(){return i}),n.d(e,"d",function(){return a}),n.d(e,"e",function(){return c}),n.d(e,"f",function(){return u}),n.d(e,"g",function(){return s})},WSVK:function(t,e,n){"use strict";n.d(e,"a",function(){return l});var r=n("Vhhf"),o=n("ZTXN"),u=n("TLy2"),c=n("ruxD"),s=n("kZht"),l=function(){var t=function(){function t(){i(this,t),this.activeRequestCount=0,this.requestQueue=[]}return a(t,[{key:"add",value:function(t,e){var n=this;if(e===1/0)return t;if(this.validate(e),this.activeRequestCount<e)return this.activeRequestCount++,this.onComplete(t);var r=new o.a;return this.requestQueue.push(r),r.pipe(Object(u.a)(function(){return n.onComplete(t)}))}},{key:"onComplete",value:function(t){var e=this;return t.pipe(Object(c.a)(function(){e.activeRequestCount--,e.executeFromQueue()}))}},{key:"executeFromQueue",value:function(){var t=this.requestQueue.shift();Object(r.e)(t)&&(this.activeRequestCount++,t.next(!0),t.complete())}},{key:"validate",value:function(t){if(t<=0)throw new Error("Limit concurrency should be more than 0")}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Hb({token:t,factory:t.\u0275fac}),t}()},YSOR:function(t,e,n){"use strict";n.d(e,"a",function(){return u});var r=n("dRc4"),o=n("kZht"),u=function(){var t=function(){function t(e){i(this,t),this.config=e}return a(t,[{key:"mergeGlobalOptionsWith",value:function(t,e){return Object.assign(Object.assign(Object.assign({},this.config),t),e)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(o.Sb(r.a))},t.\u0275prov=o.Hb({token:t,factory:t.\u0275fac}),t}()},b2Yo:function(e,n,r){"use strict";r.d(n,"a",function(){return v});var o,u={baseUrl:null,hostUrl:null,body:null,headers:{},queryParams:{},pathVariables:{},emitSuccess:!1,emitFailure:!0,responseType:"json",reportProgress:!0,additionalOptions:{},nullInsteadEmpty:!0,limitConcurrency:255},c=r("YSOR"),s=r("/3IS"),l=r("eAD0"),f=r("WSVK"),p=r("dRc4"),h=r("o4/X"),d=r("kZht"),v=((o=function(){function e(){i(this,e)}return a(e,null,[{key:"forRoot",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{ngModule:e,providers:[c.a,{provide:p.a,useValue:Object.assign(Object.assign({},u),r)},{provide:h.a,useClass:l.a},s.a,f.a].concat(t(n))}}},{key:"forFeature",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return{ngModule:e,providers:t}}}]),e}()).\u0275fac=function(t){return new(t||o)},o.\u0275mod=d.Jb({type:o}),o.\u0275inj=d.Ib({}),o)},b5Xb:function(t,e,n){"use strict";var r=n("b2Yo");n.d(e,"b",function(){return r.a}),n("s037"),n("YSOR");var o=n("/3IS");n.d(e,"a",function(){return o.a}),n("eAD0"),n("dRc4"),n("o4/X"),n("SRZ4")},dRc4:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=new(n("kZht").r)("DATA_CONFIG_SERVICE_TOKEN")},eAD0:function(t,e,n){"use strict";n.d(e,"a",function(){return u}),n("F3WU");var r=n("ZTXN"),o=n("kZht"),u=function(){var t=function t(){i(this,t),this.success$=new r.a,this.errors$=new r.a};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=o.Hb({token:t,factory:t.\u0275fac}),t}()},"o4/X":function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=new(n("kZht").r)("DATA_HTTP_CLIENT_INTERCEPTOR")},s037:function(t,e,n){"use strict";n.d(e,"a",function(){return d});var r=n("JN4H"),o=n("Vhhf"),u=n("F3WU"),c=n("ulty"),s=n("o4/X"),l=n("YSOR"),f=n("WSVK"),p=n("kZht"),h=n("6uGs"),d=function(){var t=function(){function t(e,n,r,o){i(this,t),this.http=e,this.configurator=n,this.limitConcurrency=r,this.interceptor=o}return a(t,[{key:"get",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request(this.createRequestOptions({method:u.a.GET,path:t,options:e}))}},{key:"post",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request(this.createRequestOptions({method:u.a.POST,path:t,options:e}))}},{key:"put",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request(this.createRequestOptions({method:u.a.PUT,path:t,options:e}))}},{key:"patch",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request(this.createRequestOptions({method:u.a.PATCH,path:t,options:e}))}},{key:"delete",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request(this.createRequestOptions({method:u.a.DELETE,path:t,options:e}))}},{key:"createDataHttpRequestOptions",value:function(t){var e,n,r,o,i,u,a,s,l=Object(c.d)(t.path,t.clientOptions.queryParams),f=Object(c.c)(t.clientOptions.headers);return{withCredentials:!1,body:this.createHttpBody(t),responseType:null!==(e=t.clientOptions.responseType)&&void 0!==e?e:"json",reportProgress:null!==(n=t.clientOptions.reportProgress)&&void 0!==n&&n,headers:null!==(i=null===(o=(r=this.interceptor).onInterceptHttpHeaders)||void 0===o?void 0:o.call(r,t,f))&&void 0!==i?i:f,params:null!==(s=null===(a=(u=this.interceptor).onInterceptHttpParams)||void 0===a?void 0:a.call(u,t,l))&&void 0!==s?s:l}}},{key:"createRequestOptions",value:function(t){var e=t.method,n=t.path,r=t.options;return{path:n,method:e,clientOptions:this.configurator.mergeGlobalOptionsWith(this.local,null!=r?r:{})}}},{key:"createHttpBody",value:function(t){var e,n,i,u=t.clientOptions.body;if(u instanceof FormData)return u;var a=null!==(i=null===(n=(e=this.interceptor).onInterceptBodyPayload)||void 0===n?void 0:n.call(e,t,u))&&void 0!==i?i:u;return Object(o.f)(t.clientOptions.nullInsteadEmpty)?Object(r.c)(a):a}}]),t}();return t.\u0275fac=function(e){return new(e||t)(p.Sb(h.a),p.Sb(l.a),p.Sb(f.a),p.Sb(s.a))},t.\u0275prov=p.Hb({token:t,factory:t.\u0275fac}),t}()},ulty:function(t,n,r){"use strict";r.d(n,"a",function(){return a}),r.d(n,"b",function(){return c}),r.d(n,"c",function(){return l}),r.d(n,"d",function(){return p}),r.d(n,"e",function(){return d}),r.d(n,"f",function(){return u});var o=r("Vhhf"),i=r("JN4H");function u(t){return null==t?void 0:t.replace(/(https?:\/\/)|(\/)+/g,"$1$2")}function a(t){var e,n,r=t.hostUrl,i=t.baseUrl,a=t.restUrl,c=t.pathUrl;return u(function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/^(http|https):\/\//,n=t.match(e);return Object(o.g)(n)}(c)?c:[r,i,a,(e=c,null!==(n=function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return Array.isArray(t)&&t.length?null!==(e=t[0])&&void 0!==e?e:n:null}(e.split("?")))&&void 0!==n?n:"")].filter(o.c).join("/"))}function c(t,n){var r,o,i=t.toString(),u=function(t,n){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=e(t))||n&&t&&"number"==typeof t.length){r&&(t=r);var o=0,i=function(){};return{s:i,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u,a=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){c=!0,u=t},f:function(){try{a||null==r.return||r.return()}finally{if(c)throw u}}}}(null!==(r=i.match(/\{(.*?)\}/g))&&void 0!==r?r:[]);try{for(u.s();!(o=u.n()).done;){var a=o.value,c=a.replace(/{|}/g,"");n.has(c)&&(i=i.replace(a,n.get(c)))}}catch(s){u.e(s)}finally{u.f()}return i}var s=r("6uGs");function l(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new s.c(Object(i.a)(t))}var f=r("1VvW");function p(t,e){var n=function(t){return(new f.a).parse(t).queryParams}(t),r=Object(i.a)(Object.assign(Object.assign({},n),null!=e?e:{}));return new s.d({fromObject:r})}function h(t){var e=new RegExp("^\\/+|\\/+$","g");return Object(o.b)(t)?"":t.trim().replace(e,"")}function d(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.hostUrl,n=t.baseUrl,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return{hostUrl:h(e)||"".concat(window.location.protocol,"//").concat(window.location.host),baseUrl:h(n),restUrl:h(r),pathUrl:h(o)}}},zn8P:function(t,e){function n(t){return Promise.resolve().then(function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e})}n.keys=function(){return[]},n.resolve=n,t.exports=n,n.id="zn8P"}},[[0,0,5]]])}();