banjo-kentico-cloud-delivery
Version:
Fork of Official Kentico Cloud Delivery SDK
39 lines • 204 kB
JavaScript
!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n=e();for(var r in n)("object"==typeof exports?exports:t)[r]=n[r]}}(window,function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.r=function(t){Object.defineProperty(t,"__esModule",{value:!0})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=167)}([function(t,e,n){"use strict";n.d(e,"a",function(){return i});
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
var r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};function i(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}Object.assign},function(t,e,n){"use strict";n.d(e,"a",function(){return f});var r=n(0),i=n(30),o=n(40),u=n(6),s=n(31),c=n(17),a=n(32),f=function(t){function e(e,n,r){var i=t.call(this)||this;switch(i.syncErrorValue=null,i.syncErrorThrown=!1,i.syncErrorThrowable=!1,i.isStopped=!1,arguments.length){case 0:i.destination=o.a;break;case 1:if(!e){i.destination=o.a;break}if("object"==typeof e){if(p(e)){var u=e[s.a]();i.syncErrorThrowable=u.syncErrorThrowable,i.destination=u,u.add(i)}else i.syncErrorThrowable=!0,i.destination=new l(i,e);break}default:i.syncErrorThrowable=!0,i.destination=new l(i,e,n,r)}return i}return r.a(e,t),e.prototype[s.a]=function(){return this},e.create=function(t,n,r){var i=new e(t,n,r);return i.syncErrorThrowable=!1,i},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this._parent,e=this._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=t,this._parents=e,this},e}(u.a),l=function(t){function e(e,n,r,u){var s,c=t.call(this)||this;c._parentSubscriber=e;var a=c;return Object(i.a)(n)?s=n:n&&(s=n.next,r=n.error,u=n.complete,n!==o.a&&(a=Object.create(n),Object(i.a)(a.unsubscribe)&&c.add(a.unsubscribe.bind(a)),a.unsubscribe=c.unsubscribe.bind(c))),c._context=a,c._next=s,c._error=r,c._complete=u,c}return r.a(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;c.a.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber,n=c.a.useDeprecatedSynchronousErrorHandling;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):Object(a.a)(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;Object(a.a)(t)}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var n=function(){return t._complete.call(t._context)};c.a.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){if(this.unsubscribe(),c.a.useDeprecatedSynchronousErrorHandling)throw t;Object(a.a)(t)}},e.prototype.__tryOrSetError=function(t,e,n){if(!c.a.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(e){return c.a.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=e,t.syncErrorThrown=!0,!0):(Object(a.a)(e),!0)}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(f);function p(t){return t instanceof f||"syncErrorThrowable"in t&&t[s.a]}},function(t,e,n){"use strict";var r=n(1),i=n(31),o=n(40);var u=n(28),s=n(39),c=n(17);n.d(e,"a",function(){return a});var a=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(t,e,n){var u=this.operator,s=function(t,e,n){if(t){if(t instanceof r.a)return t;if(t[i.a])return t[i.a]()}return t||e||n?new r.a(t,e,n):new r.a(o.a)}(t,e,n);if(u?u.call(s,this.source):s.add(this.source||!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),c.a.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){c.a.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),t.error(e)}},t.prototype.forEach=function(t,e){var n=this;return new(e=f(e))(function(e,r){var i;i=n.subscribe(function(e){try{t(e)}catch(t){r(t),i&&i.unsubscribe()}},r,e)})},t.prototype._subscribe=function(t){var e=this.source;return e&&e.subscribe(t)},t.prototype[u.a]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 0===t.length?this:Object(s.b)(t)(this)},t.prototype.toPromise=function(t){var e=this;return new(t=f(t))(function(t,n){var r;e.subscribe(function(t){return r=t},function(t){return n(t)},function(){return t(r)})})},t.create=function(e){return new t(e)},t}();function f(t){if(t||(t=c.a.Promise||Promise),!t)throw new Error("no Promise impl found");return t}},function(t,e,n){"use strict";var r=n(0),i=function(t){function e(e,n,r){var i=t.call(this)||this;return i.parent=e,i.outerValue=n,i.outerIndex=r,i.index=0,i}return r.a(e,t),e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},e.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(n(1).a),o=n(98);function u(t,e,n,r){var u=new i(t,n,r);return Object(o.a)(e)(u)}n.d(e,"a",function(){return u})},function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n(0),i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.a(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(e)},e.prototype.notifyError=function(t,e){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(n(1).a)},function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r={e:{}}},function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r=n(11),i=n(101),o=n(30),u=n(13),s=n(5),c=n(35),a=function(){function t(t){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}var e;return t.prototype.unsubscribe=function(){var t,e=!1;if(!this.closed){var n=this._parent,a=this._parents,l=this._unsubscribe,p=this._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var h=-1,d=a?a.length:0;n;)n.remove(this),n=++h<d&&a[h]||null;if(Object(o.a)(l))Object(u.a)(l).call(this)===s.a&&(e=!0,t=t||(s.a.e instanceof c.a?f(s.a.e.errors):[s.a.e]));if(Object(r.a)(p))for(h=-1,d=p.length;++h<d;){var y=p[h];if(Object(i.a)(y))if(Object(u.a)(y.unsubscribe).call(y)===s.a){e=!0,t=t||[];var v=s.a.e;v instanceof c.a?t=t.concat(f(v.errors)):t.push(v)}}if(e)throw new c.a(t)}},t.prototype.add=function(e){if(!e||e===t.EMPTY)return t.EMPTY;if(e===this)return this;var n=e;switch(typeof e){case"function":n=new t(e);case"object":if(n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if("function"!=typeof n._addParent){var r=n;(n=new t)._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}return(this._subscriptions||(this._subscriptions=[])).push(n),n._addParent(this),n},t.prototype.remove=function(t){var e=this._subscriptions;if(e){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}},t.prototype._addParent=function(t){var e=this._parent,n=this._parents;e&&e!==t?n?-1===n.indexOf(t)&&n.push(t):this._parents=[t]:this._parent=t},t.EMPTY=((e=new t).closed=!0,e),t}();function f(t){return t.reduce(function(t,e){return t.concat(e instanceof c.a?e.errors:e)},[])}},function(t,e,n){"use strict";n.d(e,"b",function(){return f}),n.d(e,"a",function(){return l});var r=n(0),i=n(2),o=n(1),u=n(6),s=n(22),c=n(100),a=n(31),f=function(t){function e(e){var n=t.call(this,e)||this;return n.destination=e,n}return r.a(e,t),e}(o.a),l=function(t){function e(){var e=t.call(this)||this;return e.observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return r.a(e,t),e.prototype[a.a]=function(){return new f(this)},e.prototype.lift=function(t){var e=new p(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new s.a;if(!this.isStopped)for(var e=this.observers,n=e.length,r=e.slice(),i=0;i<n;i++)r[i].next(t)},e.prototype.error=function(t){if(this.closed)throw new s.a;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,n=e.length,r=e.slice(),i=0;i<n;i++)r[i].error(t);this.observers.length=0},e.prototype.complete=function(){if(this.closed)throw new s.a;this.isStopped=!0;for(var t=this.observers,e=t.length,n=t.slice(),r=0;r<e;r++)n[r].complete();this.observers.length=0},e.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},e.prototype._trySubscribe=function(e){if(this.closed)throw new s.a;return t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){if(this.closed)throw new s.a;return this.hasError?(t.error(this.thrownError),u.a.EMPTY):this.isStopped?(t.complete(),u.a.EMPTY):(this.observers.push(t),new c.a(this,t))},e.prototype.asObservable=function(){var t=new i.a;return t.source=this,t},e.create=function(t,e){return new p(t,e)},e}(i.a),p=function(t){function e(e,n){var r=t.call(this)||this;return r.destination=e,r.source=n,r}return r.a(e,t),e.prototype.next=function(t){var e=this.destination;e&&e.next&&e.next(t)},e.prototype.error=function(t){var e=this.destination;e&&e.error&&this.destination.error(t)},e.prototype.complete=function(){var t=this.destination;t&&t.complete&&this.destination.complete()},e.prototype._subscribe=function(t){return this.source?this.source.subscribe(t):u.a.EMPTY},e}(l)},function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return o});var r=n(2),i=new r.a(function(t){return t.complete()});function o(t){return t?function(t){return new r.a(function(e){return t.schedule(function(){return e.complete()})})}(t):i}},function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n(36),i=new(n(37).a)(r.a)},function(t,e,n){"use strict";function r(t){return t&&"function"==typeof t.schedule}n.d(e,"a",function(){return r})},function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=Array.isArray||function(t){return t&&"number"==typeof t.length}},function(t,e,n){"use strict";function r(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}e.__esModule=!0,r(n(164)),r(n(159)),r(n(155)),r(n(151)),r(n(146))},function(t,e,n){"use strict";n.d(e,"a",function(){return u});var r,i=n(5);function o(){try{return r.apply(this,arguments)}catch(t){return i.a.e=t,i.a}}function u(t){return r=t,o}},function(t,e,n){"use strict";var r=n(64),i=n(122),o=Object.prototype.toString;function u(t){return"[object Array]"===o.call(t)}function s(t){return null!==t&&"object"==typeof t}function c(t){return"[object Function]"===o.call(t)}function a(t,e){if(null!==t&&void 0!==t)if("object"!=typeof t&&(t=[t]),u(t))for(var n=0,r=t.length;n<r;n++)e.call(null,t[n],n,t);else for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.call(null,t[i],i,t)}t.exports={isArray:u,isArrayBuffer:function(t){return"[object ArrayBuffer]"===o.call(t)},isBuffer:i,isFormData:function(t){return"undefined"!=typeof FormData&&t instanceof FormData},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:s,isUndefined:function(t){return void 0===t},isDate:function(t){return"[object Date]"===o.call(t)},isFile:function(t){return"[object File]"===o.call(t)},isBlob:function(t){return"[object Blob]"===o.call(t)},isFunction:c,isStream:function(t){return s(t)&&c(t.pipe)},isURLSearchParams:function(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:a,merge:function t(){var e={};function n(n,r){"object"==typeof e[r]&&"object"==typeof n?e[r]=t(e[r],n):e[r]=n}for(var r=0,i=arguments.length;r<i;r++)a(arguments[r],n);return e},extend:function(t,e,n){return a(e,function(e,i){t[i]=n&&"function"==typeof e?r(e,n):e}),t},trim:function(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")}}},function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n(0),i=n(1);function o(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new u(t,e))}}var u=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.project,this.thisArg))},t}(),s=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.project=n,i.count=0,i.thisArg=r||i,i}return r.a(e,t),e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(i.a)},function(t,e,n){"use strict";function r(){}n.d(e,"a",function(){return r})},function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=!1,i={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){t&&(new Error).stack;r=t},get useDeprecatedSynchronousErrorHandling(){return r}}},function(t,e,n){"use strict";var r=n(2),i=n(96),o=n(97),u=n(28);var s=n(23);var c=n(20),a=n(6),f=n(95);var l=n(94);var p=n(93);var h=n(98);function d(t,e){if(!e)return t instanceof r.a?t:new r.a(Object(h.a)(t));if(null!=t){if(function(t){return t&&"function"==typeof t[u.a]}(t))return function(t,e){return e?new r.a(function(n){var r=new a.a;return r.add(e.schedule(function(){var i=t[u.a]();r.add(i.subscribe({next:function(t){r.add(e.schedule(function(){return n.next(t)}))},error:function(t){r.add(e.schedule(function(){return n.error(t)}))},complete:function(){r.add(e.schedule(function(){return n.complete()}))}}))})),r}):new r.a(Object(p.a)(t))}(t,e);if(Object(i.a)(t))return function(t,e){return e?new r.a(function(n){var r=new a.a;return r.add(e.schedule(function(){return t.then(function(t){r.add(e.schedule(function(){n.next(t),r.add(e.schedule(function(){return n.complete()}))}))},function(t){r.add(e.schedule(function(){return n.error(t)}))})})),r}):new r.a(Object(f.a)(t))}(t,e);if(Object(o.a)(t))return Object(c.a)(t,e);if(function(t){return t&&"function"==typeof t[s.a]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return e?new r.a(function(n){var r,i=new a.a;return i.add(function(){r&&"function"==typeof r.return&&r.return()}),i.add(e.schedule(function(){r=t[s.a](),i.add(e.schedule(function(){if(!n.closed){var t,e;try{var i=r.next();t=i.value,e=i.done}catch(t){return void n.error(t)}e?n.complete():(n.next(t),this.schedule())}}))})),i}):new r.a(Object(l.a)(t))}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}n.d(e,"a",function(){return d})},function(t,e,n){"use strict";n.d(e,"a",function(){return u});var r=n(8),i=n(54),o=n(53),u=function(){function t(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}return t.prototype.observe=function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}},t.prototype.do=function(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}},t.prototype.accept=function(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)},t.prototype.toObservable=function(){switch(this.kind){case"N":return Object(i.a)(this.value);case"E":return Object(o.a)(this.error);case"C":return Object(r.b)()}throw new Error("unexpected notification kind value")},t.createNext=function(e){return void 0!==e?new t("N",e):t.undefinedValueNotification},t.createError=function(e){return new t("E",void 0,e)},t.createComplete=function(){return t.completeNotification},t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}()},function(t,e,n){"use strict";n.d(e,"a",function(){return u});var r=n(2),i=n(6),o=n(99);function u(t,e){return e?new r.a(function(n){var r=new i.a,o=0;return r.add(e.schedule(function(){o!==t.length?(n.next(t[o++]),n.closed||r.add(this.schedule())):n.complete()})),r}):new r.a(Object(o.a)(t))}},function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n(10),i=n(54),o=n(18),u=n(88);function s(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 1===t.length||2===t.length&&Object(r.a)(t[1])?Object(o.a)(t[0]):Object(u.a)()(i.a.apply(void 0,t))}},function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n(0),i=function(t){function e(){var n=t.call(this,"object unsubscribed")||this;return n.name="ObjectUnsubscribedError",Object.setPrototypeOf(n,e.prototype),n}return r.a(e,t),e}(Error)},function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=function(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},function(t,e,n){"use strict";function r(t){return t}n.d(e,"a",function(){return r})},function(t,e,n){"use strict";n.d(e,"a",function(){return c});var r=n(0),i=n(3),o=n(4),u=n(15),s=n(18);function c(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof e?function(r){return r.pipe(c(function(n,r){return Object(s.a)(t(n,r)).pipe(Object(u.a)(function(t,i){return e(n,t,r,i)}))},n))}:("number"==typeof e&&(n=e),function(e){return e.lift(new a(t,n))})}var a=function(){function t(t,e){void 0===e&&(e=Number.POSITIVE_INFINITY),this.project=t,this.concurrent=e}return t.prototype.call=function(t,e){return e.subscribe(new f(t,this.project,this.concurrent))},t}(),f=function(t){function e(e,n,r){void 0===r&&(r=Number.POSITIVE_INFINITY);var i=t.call(this,e)||this;return i.project=n,i.concurrent=r,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return r.a(e,t),e.prototype._next=function(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this.active++,this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){this.add(Object(i.a)(this,t,e,n))},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete()},e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(e)},e.prototype.notifyComplete=function(t){var e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(o.a)},function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n(0),i=function(t){function e(){var n=t.call(this,"argument out of range")||this;return n.name="ArgumentOutOfRangeError",Object.setPrototypeOf(n,e.prototype),n}return r.a(e,t),e}(Error)},function(t,e,n){"use strict";n.d(e,"a",function(){return u});var r=n(0),i=n(7),o=n(6),u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.value=null,e.hasNext=!1,e.hasCompleted=!1,e}return r.a(e,t),e.prototype._subscribe=function(e){return this.hasError?(e.error(this.thrownError),o.a.EMPTY):this.hasCompleted&&this.hasNext?(e.next(this.value),e.complete(),o.a.EMPTY):t.prototype._subscribe.call(this,e)},e.prototype.next=function(t){this.hasCompleted||(this.value=t,this.hasNext=!0)},e.prototype.error=function(e){this.hasCompleted||t.prototype.error.call(this,e)},e.prototype.complete=function(){this.hasCompleted=!0,this.hasNext&&t.prototype.next.call(this,this.value),t.prototype.complete.call(this)},e}(i.a)},function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r="function"==typeof Symbol&&Symbol.observable||"@@observable"},function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n(11);function i(t){return!Object(r.a)(t)&&t-parseFloat(t)+1>=0}},function(t,e,n){"use strict";function r(t){return"function"==typeof t}n.d(e,"a",function(){return r})},function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("rxSubscriber"):"@@rxSubscriber"},function(t,e,n){"use strict";function r(t){setTimeout(function(){throw t})}n.d(e,"a",function(){return r})},function(t,e,n){"use strict";e.__esModule=!0;var r=n(12),i=function(){function t(t,e){this.config=t,this.queryService=e,this.parameters=[]}return t.prototype.withParameter=function(t,e){return this.parameters.push(new r.Parameters.QueryParameter(t,e)),this},t.prototype.getHeaders=function(){return this.queryService.getHeaders(this._queryConfig)},t.prototype.withUrl=function(t){return this.customUrl=t,this},t.prototype.getParameters=function(){return this.parameters},t.prototype.getPromise=function(){return this.getObservable().toPromise()},t.prototype.resolveUrlInternal=function(t){return this.customUrl?this.customUrl:this.queryService.getUrl(t,this._queryConfig,this.getParameters())},t}();e.BaseQuery=i},function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n(0),i=function(t){function e(){var n=t.call(this,"no elements in sequence")||this;return n.name="EmptyError",Object.setPrototypeOf(n,e.prototype),n}return r.a(e,t),e}(Error)},function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n(0),i=function(t){function e(n){var r=t.call(this,n?n.length+" errors occurred during unsubscription:\n "+n.map(function(t,e){return e+1+") "+t.toString()}).join("\n "):"")||this;return r.errors=n,r.name="UnsubscriptionError",Object.setPrototypeOf(r,e.prototype),r}return r.a(e,t),e}(Error)},function(t,e,n){"use strict";var r=n(0),i=function(t){function e(e,n){return t.call(this)||this}return r.a(e,t),e.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},e}(n(6).a);n.d(e,"a",function(){return o});var o=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r.pending=!1,r}return r.a(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this},e.prototype.requestAsyncId=function(t,e,n){return void 0===n&&(n=0),setInterval(t.flush.bind(t,this),n)},e.prototype.recycleAsyncId=function(t,e,n){if(void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)},e.prototype.execute=function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var n=!1,r=void 0;try{this.work(t)}catch(t){n=!0,r=!!t&&t||new Error(t)}if(n)return this.unsubscribe(),r},e.prototype._unsubscribe=function(){var t=this.id,e=this.scheduler,n=e.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null},e}(i)},function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n(0),i=n(52),o=function(t){function e(n,r){void 0===r&&(r=i.a.now);var o=t.call(this,n,function(){return e.delegate&&e.delegate!==o?e.delegate.now():r()})||this;return o.actions=[],o.active=!1,o.scheduled=void 0,o}return r.a(e,t),e.prototype.schedule=function(n,r,i){return void 0===r&&(r=0),e.delegate&&e.delegate!==this?e.delegate.schedule(n,r,i):t.prototype.schedule.call(this,n,r,i)},e.prototype.flush=function(t){var e=this.actions;if(this.active)e.push(t);else{var n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}},e}(i.a)},function(t,e,n){"use strict";var r=n(0),i=1,o={};var u=function(t){var e=i++;return o[e]=t,Promise.resolve().then(function(){return function(t){var e=o[t];e&&e()}(e)}),e},s=function(t){delete o[t]},c=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return r.a(e,t),e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0?t.prototype.requestAsyncId.call(this,e,n,r):(e.actions.push(this),e.scheduled||(e.scheduled=u(e.flush.bind(e,null))))},e.prototype.recycleAsyncId=function(e,n,r){if(void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,n,r);0===e.actions.length&&(s(n),e.scheduled=void 0)},e}(n(36).a),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.a(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,n=this.actions,r=-1,i=n.length;t=t||n.shift();do{if(e=t.execute(t.state,t.delay))break}while(++r<i&&(t=n.shift()));if(this.active=!1,e){for(;++r<i&&(t=n.shift());)t.unsubscribe();throw e}},e}(n(37).a);n.d(e,"a",function(){return f});var f=new a(c)},function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return o});var r=n(16);function i(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return o(t)}function o(t){return t?1===t.length?t[0]:function(e){return t.reduce(function(t,e){return e(t)},e)}:r.a}},function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n(17),i=n(32),o={closed:!0,next:function(t){},error:function(t){if(r.a.useDeprecatedSynchronousErrorHandling)throw t;Object(i.a)(t)},complete:function(){}}},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(92),o=n(76),u=n(28),s=n(7),c=n(91),a=n(55),f=n(27),l=n(38),p=n(9),h=n(84),d=n(0),y=n(36),v=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return d.a(e,t),e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0?t.prototype.requestAsyncId.call(this,e,n,r):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame(function(){return e.flush(null)})))},e.prototype.recycleAsyncId=function(e,n,r){if(void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,n,r);0===e.actions.length&&(cancelAnimationFrame(n),e.scheduled=void 0)},e}(y.a),m=n(37),b=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return d.a(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,n=this.actions,r=-1,i=n.length;t=t||n.shift();do{if(e=t.execute(t.state,t.delay))break}while(++r<i&&(t=n.shift()));if(this.active=!1,e){for(;++r<i&&(t=n.shift());)t.unsubscribe();throw e}},e}(m.a))(v),g=function(t){function e(e,n){void 0===e&&(e=w),void 0===n&&(n=Number.POSITIVE_INFINITY);var r=t.call(this,e,function(){return r.frame})||this;return r.maxFrames=n,r.frame=0,r.index=-1,r}return d.a(e,t),e.prototype.flush=function(){for(var t,e,n=this.actions,r=this.maxFrames;(e=n.shift())&&(this.frame=e.delay)<=r&&!(t=e.execute(e.state,e.delay)););if(t){for(;e=n.shift();)e.unsubscribe();throw t}},e.frameTimeFactor=10,e}(m.a),w=function(t){function e(e,n,r){void 0===r&&(r=e.index+=1);var i=t.call(this,e,n)||this;return i.scheduler=e,i.work=n,i.index=r,i.active=!0,i.index=e.index=r,i}return d.a(e,t),e.prototype.schedule=function(n,r){if(void 0===r&&(r=0),!this.id)return t.prototype.schedule.call(this,n,r);this.active=!1;var i=new e(this.scheduler,this.work);return this.add(i),i.schedule(n,r)},e.prototype.requestAsyncId=function(t,n,r){void 0===r&&(r=0),this.delay=t.frame+r;var i=t.actions;return i.push(this),i.sort(e.sortActions),!0},e.prototype.recycleAsyncId=function(t,e,n){void 0===n&&(n=0)},e.prototype._execute=function(e,n){if(!0===this.active)return t.prototype._execute.call(this,e,n)},e.sortActions=function(t,e){return t.delay===e.delay?t.index===e.index?0:t.index>e.index?1:-1:t.delay>e.delay?1:-1},e}(y.a),_=n(52),x=n(6),S=n(1),T=n(19),O=n(39),E=n(16),C=n(24);function j(t){return!!t&&(t instanceof r.a||"function"==typeof t.lift&&"function"==typeof t.subscribe)}var P=n(26),I=n(34),M=n(22),A=n(35),F=n(89),R=n(15),k=n(11),N=n(10);function V(t,e,n){if(e){if(!Object(N.a)(e))return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return V(t,n).apply(void 0,r).pipe(Object(R.a)(function(t){return Object(k.a)(t)?e.apply(void 0,t):e(t)}))};n=e}return function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];var o,u=this,s={context:u,subject:o,callbackFunc:t,scheduler:n};return new r.a(function(r){if(n){var i={args:e,subscriber:r,params:s};return n.schedule(q,0,i)}if(!o){o=new f.a;try{t.apply(u,e.concat([function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];o.next(t.length<=1?t[0]:t),o.complete()}]))}catch(t){o.error(t)}}return o.subscribe(r)})}}function q(t){var e=this,n=t.args,r=t.subscriber,i=t.params,o=i.callbackFunc,u=i.context,s=i.scheduler,c=i.subject;if(!c){c=i.subject=new f.a;try{o.apply(u,n.concat([function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=t.length<=1?t[0]:t;e.add(s.schedule(L,0,{value:r,subject:c}))}]))}catch(t){c.error(t)}}this.add(c.subscribe(r))}function L(t){var e=t.value,n=t.subject;n.next(e),n.complete()}function U(t,e,n){if(e){if(!Object(N.a)(e))return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return U(t,n).apply(void 0,r).pipe(Object(R.a)(function(t){return Object(k.a)(t)?e.apply(void 0,t):e(t)}))};n=e}return function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];var o={subject:void 0,args:e,callbackFunc:t,scheduler:n,context:this};return new r.a(function(r){var i=o.context,u=o.subject;if(n)return n.schedule(D,0,{params:o,subscriber:r,context:i});if(!u){u=o.subject=new f.a;try{t.apply(i,e.concat([function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t.shift();n?u.error(n):(u.next(t.length<=1?t[0]:t),u.complete())}]))}catch(t){u.error(t)}}return u.subscribe(r)})}}function D(t){var e=this,n=t.params,r=t.subscriber,i=t.context,o=n.callbackFunc,u=n.args,s=n.scheduler,c=n.subject;if(!c){c=n.subject=new f.a;try{o.apply(i,u.concat([function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=t.shift();if(r)e.add(s.schedule(B,0,{err:r,subject:c}));else{var i=t.length<=1?t[0]:t;e.add(s.schedule(Q,0,{value:i,subject:c}))}}]))}catch(t){this.add(s.schedule(B,0,{err:t,subject:c}))}}this.add(c.subscribe(r))}function Q(t){var e=t.value,n=t.subject;n.next(e),n.complete()}function B(t){var e=t.err;t.subject.error(e)}var W=n(51),H=n(21),z=n(49),Y=n(8),K=n(3);function G(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return"function"==typeof e[e.length-1]&&(t=e.pop()),1===e.length&&Object(k.a)(e[0])&&(e=e[0]),0===e.length?Y.a:t?G(e).pipe(Object(R.a)(function(e){return t.apply(void 0,e)})):new r.a(function(t){return new X(t,e)})}var X=function(t){function e(e,n){var r=t.call(this,e)||this;r.sources=n,r.completed=0,r.haveValues=0;var i=n.length;r.values=new Array(i);for(var o=0;o<i;o++){var u=n[o],s=Object(K.a)(r,u,null,o);s&&r.add(s)}return r}return d.a(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.values[n]=e,i._hasValue||(i._hasValue=!0,this.haveValues++)},e.prototype.notifyComplete=function(t){var e=this.destination,n=this.haveValues,r=this.values,i=r.length;t._hasValue?(this.completed++,this.completed===i&&(n===i&&e.next(r),e.complete())):e.complete()},e}(n(4).a),J=n(18),$=n(30);Object.prototype.toString;function Z(t,e,n,i){return Object($.a)(n)&&(i=n,n=void 0),i?Z(t,e,n).pipe(Object(R.a)(function(t){return Object(k.a)(t)?i.apply(void 0,t):i(t)})):new r.a(function(r){!function t(e,n,r,i,o){var u;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(e)){var s=e;e.addEventListener(n,r,o),u=function(){return s.removeEventListener(n,r,o)}}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(e)){var c=e;e.on(n,r),u=function(){return c.off(n,r)}}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(e)){var a=e;e.addListener(n,r),u=function(){return a.removeListener(n,r)}}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(var f=0,l=e.length;f<l;f++)t(e[f],n,r,i,o)}i.add(u)}(t,e,function(t){arguments.length>1?r.next(Array.prototype.slice.call(arguments)):r.next(t)},r,n)})}function tt(t,e,n){return n?tt(t,e).pipe(Object(R.a)(function(t){return Object(k.a)(t)?n.apply(void 0,t):n(t)})):new r.a(function(n){var r,i=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return n.next(1===t.length?t[0]:t)};try{r=t(i)}catch(t){return void n.error(t)}if(Object($.a)(e))return function(){return e(i,r)}})}function et(t,e,n,i,o){var u,s;if(1==arguments.length){var c=t;s=c.initialState,e=c.condition,n=c.iterate,u=c.resultSelector||C.a,o=c.scheduler}else void 0===i||Object(N.a)(i)?(s=t,u=C.a,o=i):(s=t,u=i);return new r.a(function(t){var r=s;if(o)return o.schedule(nt,0,{subscriber:t,iterate:n,condition:e,resultSelector:u,state:r});for(;;){if(e){var i=void 0;try{i=e(r)}catch(e){return void t.error(e)}if(!i){t.complete();break}}var c=void 0;try{c=u(r)}catch(e){return void t.error(e)}if(t.next(c),t.closed)break;try{r=n(r)}catch(e){return void t.error(e)}}})}function nt(t){var e=t.subscriber,n=t.condition;if(!e.closed){if(t.needIterate)try{t.state=t.iterate(t.state)}catch(t){return void e.error(t)}else t.needIterate=!0;if(n){var r=void 0;try{r=n(t.state)}catch(t){return void e.error(t)}if(!r)return void e.complete();if(e.closed)return}var i;try{i=t.resultSelector(t.state)}catch(t){return void e.error(t)}if(!e.closed&&(e.next(i),!e.closed))return this.schedule(t)}}function rt(t,e,n){return void 0===e&&(e=Y.a),void 0===n&&(n=Y.a),Object(z.a)(function(){return t()?e:n})}var it=n(29);function ot(t,e){return void 0===t&&(t=0),void 0===e&&(e=p.a),(!Object(it.a)(t)||t<0)&&(t=0),e&&"function"==typeof e.schedule||(e=p.a),new r.a(function(n){return n.add(e.schedule(ut,t,{subscriber:n,counter:0,period:t})),n})}function ut(t){var e=t.subscriber,n=t.counter,r=t.period;e.next(n),this.schedule({subscriber:e,counter:n+1,period:r},r)}var st=n(87),ct=new r.a(E.a);function at(){return ct}var ft=n(54);function lt(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(0===t.length)return Y.a;var n=t[0],i=t.slice(1);return 1===t.length&&Object(k.a)(n)?lt.apply(void 0,n):new r.a(function(t){var e=function(){return t.add(lt.apply(void 0,i).subscribe(t))};return Object(J.a)(n).subscribe({next:function(e){t.next(e)},error:e,complete:e})})}function pt(t,e){return e?new r.a(function(n){var r=Object.keys(t),i=new x.a;return i.add(e.schedule(ht,0,{keys:r,index:0,subscriber:n,subscription:i,obj:t})),i}):new r.a(function(e){for(var n=Object.keys(t),r=0;r<n.length&&!e.closed;r++){var i=n[r];t.hasOwnProperty(i)&&e.next([i,t[i]])}e.complete()})}function ht(t){var e=t.keys,n=t.index,r=t.subscriber,i=t.subscription,o=t.obj;if(!r.closed)if(n<e.length){var u=e[n];r.next([u,o[u]]),i.add(this.schedule({keys:e,index:n+1,subscriber:r,subscription:i,obj:o}))}else r.complete()}var dt=n(86);function yt(t,e,n){return void 0===t&&(t=0),void 0===e&&(e=0),new r.a(function(r){var i=0,o=t;if(n)return n.schedule(vt,0,{index:i,count:e,start:t,subscriber:r});for(;;){if(i++>=e){r.complete();break}if(r.next(o++),r.closed)break}})}function vt(t){var e=t.start,n=t.index,r=t.count,i=t.subscriber;n>=r?i.complete():(i.next(e),i.closed||(t.index=n+1,t.start=e+1,this.schedule(t)))}var mt=n(53),bt=n(85);function gt(t,e){return new r.a(function(n){var r,i;try{r=t()}catch(t){return void n.error(t)}try{i=e(r)}catch(t){return void n.error(t)}var o=(i?Object(J.a)(i):Y.a).subscribe(n);return function(){o.unsubscribe(),r&&r.unsubscribe()}})}var wt=n(48),_t=n(17);n.d(e,"Observable",function(){return r.a}),n.d(e,"ConnectableObservable",function(){return i.a}),n.d(e,"GroupedObservable",function(){return o.a}),n.d(e,"observable",function(){return u.a}),n.d(e,"Subject",function(){return s.a}),n.d(e,"BehaviorSubject",function(){return c.a}),n.d(e,"ReplaySubject",function(){return a.a}),n.d(e,"AsyncSubject",function(){return f.a}),n.d(e,"asapScheduler",function(){return l.a}),n.d(e,"asyncScheduler",function(){return p.a}),n.d(e,"queueScheduler",function(){return h.a}),n.d(e,"animationFrameScheduler",function(){return b}),n.d(e,"VirtualTimeScheduler",function(){return g}),n.d(e,"VirtualAction",function(){return w}),n.d(e,"Scheduler",function(){return _.a}),n.d(e,"Subscription",function(){return x.a}),n.d(e,"Subscriber",function(){return S.a}),n.d(e,"Notification",function(){return T.a}),n.d(e,"pipe",function(){return O.a}),n.d(e,"noop",function(){return E.a}),n.d(e,"identity",function(){return C.a}),n.d(e,"isObservable",function(){return j}),n.d(e,"ArgumentOutOfRangeError",function(){return P.a}),n.d(e,"EmptyError",function(){return I.a}),n.d(e,"ObjectUnsubscribedError",function(){return M.a}),n.d(e,"UnsubscriptionError",function(){return A.a}),n.d(e,"TimeoutError",function(){return F.a}),n.d(e,"bindCallback",function(){return V}),n.d(e,"bindNodeCallback",function(){return U}),n.d(e,"combineLatest",function(){return W.b}),n.d(e,"concat",function(){return H.a}),n.d(e,"defer",function(){return z.a}),n.d(e,"empty",function(){return Y.b}),n.d(e,"forkJoin",function(){return G}),n.d(e,"from",function(){return J.a}),n.d(e,"fromEvent",function(){return Z}),n.d(e,"fromEventPattern",function(){return tt}),n.d(e,"generate",function(){return et}),n.d(e,"iif",function(){return rt}),n.d(e,"interval",function(){return ot}),n.d(e,"merge",function(){return st.a}),n.d(e,"never",function(){return at}),n.d(e,"of",function(){return ft.a}),n.d(e,"onErrorResumeNext",function(){return lt}),n.d(e,"pairs",function(){return pt}),n.d(e,"race",function(){return dt.a}),n.d(e,"range",function(){return yt}),n.d(e,"throwError",function(){return mt.a}),n.d(e,"timer",function(){return bt.a}),n.d(e,"using",function(){return gt}),n.d(e,"zip",function(){return wt.b}),n.d(e,"EMPTY",function(){return Y.a}),n.d(e,"NEVER",function(){return ct}),n.d(e,"config",function(){return _t.a})},function(t,e,n){"use strict";n.r(e);var r=n(0),i=n(13),o=n(5),u=n(4),s=n(3);function c(t){return function(e){return e.lift(new a(t))}}var a=function(){function t(t){this.durationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new f(t,this.durationSelector))},t}(),f=function(t){function e(e,n){var r=t.call(this,e)||this;return r.durationSelector=n,r.hasValue=!1,r}return r.a(e,t),e.prototype._next=function(t){if(this.value=t,this.hasValue=!0,!this.throttled){var e=Object(i.a)(this.durationSelector)(t);if(e===o.a)this.destination.error(o.a.e);else{var n=Object(s.a)(this,e);!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}}},e.prototype.clearThrottle=function(){var t=this.value,e=this.hasValue,n=this.throttled;n&&(this.remove(n),this.throttled=null,n.unsubscribe()),e&&(this.value=null,this.hasValue=!1,this.destination.next(t))},e.prototype.notifyNext=function(t,e,n,r){this.clearThrottle()},e.prototype.notifyComplete=function(){this.clearThrottle()},e}(u.a),l=n(9),p=n(85);function h(t,e){return void 0===e&&(e=l.a),c(function(){return Object(p.a)(t,e)})}function d(t){return function(e){return e.lift(new y(t))}}var y=function(){function t(t){this.closingNotifier=t}return t.prototype.call=function(t,e){return e.subscribe(new v(t,this.closingNotifier))},t}(),v=function(t){function e(e,n){var r=t.call(this,e)||this;return r.buffer=[],r.add(Object(s.a)(r,n)),r}return r.a(e,t),e.prototype._next=function(t){this.buffer.push(t)},e.prototype.notifyNext=function(t,e,n,r,i){var o=this.buffer;this.buffer=[],this.destination.next(o)},e}(u.a),m=n(1);function b(t,e){return void 0===e&&(e=null),function(n){return n.lift(new g(t,e))}}var g=function(){function t(t,e){this.bufferSize=t,this.startBufferEvery=e,this.subscriberClass=e&&t!==e?_:w}return t.prototype.call=function(t,e){return e.subscribe(new this.subscriberClass(t,this.bufferSize,this.startBufferEvery))},t}(),w=function(t){function e(e,n){var r=t.call(this,e)||this;return r.bufferSize=n,r.buffer=[],r}return r.a(e,t),e.prototype._next=function(t){var e=this.buffer;e.push(t),e.length==this.bufferSize&&(this.destination.next(e),this.buffer=[])},e.prototype._complete=function(){var e=this.buffer;e.length>0&&this.destination.next(e),t.prototype._complete.call(this)},e}(m.a),_=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.bufferSize=n,i.startBufferEvery=r,i.buffers=[],i.count=0,i}return r.a(e,t),e.prototype._next=function(t){var e=this.bufferSize,n=this.startBufferEvery,r=this.buffers,i=this.count;this.count++,i%n==0&&r.push([]);for(var o=r.length;o--;){var u=r[o];u.push(t),u.length===e&&(r.splice(o,1),this.destination.next(u))}},e.prototype._complete=function(){for(var e=this.buffers,n=this.destination;e.length>0;){var r=e.shift();r.length>0&&n.next(r)}t.prototype._complete.call(this)},e}(m.a),x=n(10);function S(t){var e=arguments.length,n=l.a;Object(x.a)(arguments[arguments.length-1])&&(n=arguments[arguments.length-1],e--);var r=null;e>=2&&(r=arguments[1]);var i=Number.POSITIVE_INFINITY;return e>=3&&(i=arguments[2]),function(e){return e.lift(new T(t,r,i,n))}}var T=function(){function t(t,e,n,r){this.bufferTimeSpan=t,this.bufferCreationInterval=e,this.maxBufferSize=n,this.scheduler=r}return t.prototype.call=function(t,e){return e.subscribe(new E(t,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))},t}(),O=function(){return function(){this.buffer=[]}}(),E=function(t){function e(e,n,r,i,o){var u=t.call(this,e)||this;u.bufferTimeSpan=n,u.bufferCreationInterval=r,u.maxBufferSize=i,u.scheduler=o,u.contexts=[];var s=u.openContext();if(u.timespanOnly=null==r||r<0,u.timespanOnly){var c={subscriber:u,context:s,bufferTimeSpan:n};u.add(s.closeAction=o.schedule(C,n,c))}else{var a={subscriber:u,context:s},f={bufferTimeSpan:n,bufferCreationInterval:r,subscriber:u,scheduler:o};u.add(s.closeAction=o.schedule(P,n,a)),u.add(o.schedule(j,r,f))}return u}return r.a(e,t),e.prototype._next=function(t){for(var e,n=this.contexts,r=n.length,i=0;i<r;i++){var o=n[i],u=o.buffer;u.push(t),u.length==this.maxBufferSize&&(e=o)}e&&this.onBufferFull(e)},e.prototype._error=function(e){this.contexts.length=0,t.prototype._error.call(this,e)},e.prototype._complete=function(){for(var e=this.contexts,n=this.destination;e.length>0;){var r=e.shift();n.next(r.buffer)}t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.contexts=null},e.prototype.onBufferFull=function(t){this.closeContext(t);var e=t.closeAction;if(e.unsubscribe(),this.remove(e),!this.closed&&this.timespanOnly){t=this.openContext();var n=this.bufferTimeSpan,r={subscriber:this,context:t,bufferTimeSpan:n};this.add(t.closeAction=this.scheduler.schedule(C,n,r))}},e.prototype.openContext=function(){var t=new O;return this.contexts.push(t),t},e.prototype.closeContext=function(t){this.destination.next(t.buffer);var e=this.contexts;(e?e.indexOf(t):-1)>=0&&e.splice(e.indexOf(t),1)},e}(m.a);function C(t){var e=t.subscriber,n=t.context;n&&e.closeContext(n),e.closed||(t.context=e.openContext(),t.context.closeAction=this.schedule(t,t.bufferTimeSpan))}function j(t){var e=t.bufferCreationInterval,n=t.bufferTimeSpan,r=t.subscriber,i=t.scheduler,o=r.openContext();r.closed||(r.add(o.closeAction=i.schedule(P,n,{subscriber:r,context:o})),this.schedule(t,e))}function P(t){var e=t.subscriber,n=t.context;e.closeContext(n)}var I=n(6);function M(t,e){return function(n){return n.lift(new A(t,e))}}var A=function(){function t(t,e){this.openings=t,this.closingSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new F(t,this.openings,this.closingSelector))},t}(),F=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.openings=n,i.closingSelector=r,i.contexts=[],i.add(Object(s.a)(i,n)),i}return r.a(e,t),e.prototype._next=function(t){for(var e=this.contexts,n=e.length,r=0;r<n;r++)e[r].buffer.push(t)},e.prototype._error=function(e){for(var n=this.contexts;n.length>0;){var r=n.shift();r.subscription.unsubscribe(),r.buffer=null,r.subscription=null}this.contexts=null,t.prototype._error.call(this,e)},e.prototype._complete=function(){for(var e=this.contexts;e.length>0;){var n=e.shift();this.destination.next(n.buffer),n.subscription.unsubscribe(),n.buffer=null,n.subscription=null}this.contexts=null,t.prototype._complete.call(this)},e.prototype.notifyNext=function(t,e,n,r,i){t?this.closeBuffer(t):this.openBuffer(e)},e.prototype.notifyComplete=function(t){this.closeBuffer(t.context)},e.prototype.openBuffer=function(t){try{var e=this.closingSelector.call(this,t);e&&this.trySubscribe(e)}catch(t){this._error(t)}},e.prototype.closeBuffer=function(t){var e=this.contexts;if(e&&t){var n=t.buffer,r=t.subscription;this.destination.next(n),e.splice(e.indexOf(t),1),this.remove(r),r.unsubscribe()}},e.prototype.trySubscribe=function(t){var e=this.contexts,n=new I.a,r={buffer:[],subscription:n};e.push(r);var i=Object(s.a)(this,t,r);!i||i.closed?this.closeBuffer(r):(i.context=r,this.add(i),n.add(i))},e}(u.a);function R(t){return function(e){return e.lift(new k(t))}}var k=function(){function t(t){this.closingSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new N(t,this.closingSelector))},t}(),N=function(t){function e(e,n){var r=t.call(this,e)||this;return r.closingSelector=n,r.subscribing=!1,r.openBuffer(),r}return r.a(e,t),e.prototype._next=function(t){this.buffer.push(t)},e.prototype._complete=function(){var e=this.buffer;e&&this.destination.next(e),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.buffer=null,this.subscribing=!1},e.prototype.notifyNext=function(t,e,n,r,i){this.openBuffer()},e.prototype.notifyComplete=function(){this.subscribing?this.complete():this.openBuffer()},e.prototype.openBuffer=function(){var t=this.closingSubscription;t&&(this.remove(t),t.unsubscribe());var e=this.buffer;this.buffer&&this.destination.next(e),this.buffer=[];var n=Object(i.a)(this.closingSelector)();n===o.a?this.error(o.a.e):(t=new I.a,this.closingSubscription=t,this.add(t),this.subscribing=!0,t.add(Object(s.a)(this,n)),this.subscribing=!1)},e}(u.a);function V(t){return function(e){var n=new q(t),r=e.lift(n);return n.caught=r}}var q=function(){function t(t){this.selector=t}return t.prototype.call=function(t,e){return e.subscribe(new L(t,this.selector,this.caught))},t}(),L=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.selector=n,i.caught=r,i}return r.a(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=void 0;try{n=this.selector(e,this.caught)}catch(e){return void t.prototype.error.call(this,e)}this._unsubscribeAndRecycle(),this.add(Object(s.a)(this,n))}},e}(u.a),U=n(51);function D(t){return function(e){return e.lift(new U.a(t))}}var Q=n(11),B=n(18);function W(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=null;return"function"==typeof t[t.length-1]&&(n=t.pop()),1===t.length&&Object(Q.a)(t[0])&&(t=t[0].slice()),function(e){return e.lift.call(Object(B.a)([e].concat(t)),new U.a(n))}}var H=n(21);function z(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return e.lift.call(H.a.apply(void 0,[e].concat(t)))}}var Y=n(88),K=n(25);function G(t,e){return Object(K.a)(t,e,1)}function X(t,e){return G(function(){return t},e)}function J(t){return function(e){return e.lift(new $(t,e))}}var $=function(){function t(t,e){this.predicate=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new Z(t,this.predicate,this.source))},t}(),Z=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.predicate=n,i.source=r,i.count=0,i.index=0,i}return r.a(e,t),e.prototype._next=function(t){this.predicate?this._tryPredicate(t):this.count++},e.prototype._tryPredicate=function(t){var e;try{e=this.predicate(t,this.index++,this.source)}catch(t){return void this.destination.error(t)}e&&this.count++},e.prototype._complete=function(){this.destination.next(this.count),this.destination.complete()},e}(m.a);function tt(t){return function(e){return e.lift(new et(t))}}var et=function(){function t(t){this.durationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new nt(t,this.durationSelector))},t}(),nt=function(t){function e(e,n){var r=t.call(this,e)||this;return r.durationSelector=n,r.hasValue=!1,r.durationSubscription=null,r}return r.a(e,t),e.prototype._next=function(t){try{var e=this.durationSelector.call(this,t);e&&this._tryNext(t,e)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){this.emitValue(),this.destination.complete()},e.prototype._tryNext=function(t,e){var n=this.durationSubscription;this.value=t,this.hasValue=!0,n&&(n.unsubscribe(),this.remove(n)),(n=Object(s.a)(this,e))&&!n.closed&&this.add(this.durationSubscription=n)},e.prototype.notifyNext=function(t,e,n,r,i){this.emitValue()},e.prototype.notifyComplete=function(){this.emitValue()},e.prototype.emitValue=function(){if(this.hasValue){var e=this.value,n=this.durationSubscription;n&&(this.durationSubscription=null,n.unsubscribe(),this.remove(n)),this.value=null,this.hasValue=!1,t.prototype._next.call(this,e)}},e}(u.a);function rt(t,e){return void 0===e&&(e=l.a),function(n){return n.lift(new it(t,e))}}var it=function(){function t(t,e){this.dueTime=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new ot(t,this.dueTime,this.scheduler))},t}(),ot=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.dueTime=n,i.scheduler=r,i.debouncedSubscription=null,i.lastValue=null,i.hasValue=!1,i}return r.a(e,t),e.prototype._next=function(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(ut,this.dueTime,this))},e.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},e.prototype.debouncedNext=function(){if(this.clearDebounce(),this.hasValue){var t=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}},e.prototype.clearDebounce=function(){var t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)},e}(m.a);function ut(t){t.debouncedNext()}function st(t){return void 0===t&&(t=null),function(e){return e.lift(new ct(t))}}var ct=function(){function t(t){this.defaultValue=t}return t.prototype.call=function(t,e){return e.subscribe(new at(t,this.defaultValue))},t}(),at=function(t){function e(e,n){var r=t.call(this,e)||this;return r.defaultValue=n,r.isEmpty=!0,r}return r.a(e,t),e.prototype._next=function(t){this.isEmpty=!1,this.destination.next(t)},e.prototype._complete=function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()},e}(m.a);function ft(t){return t instanceof Date&&!isNaN(+t)}var lt=n(19);function pt(t,e){void 0===e&&(e=l.a);var n=ft(t)?+t-e.now():Math.abs(t);return function(t){return t.lift(new ht(n,e))}}var ht=function(){function t(t,e){this.delay=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new dt(t,this.delay,this.scheduler))},t}(),dt=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.delay=n,i.scheduler=r,i.queue=[],i.active=!1,i.errored=!1,i}return r.a(e,t),e.dispatch=function(t){for(var e=t.source,n=e.queue,r=t.scheduler,i=t.destination;n.length>0&&n[0].time-r.now()<=0;)n.shift().notification.observe(i);if(n.length>0){var o=Math.max(0,n[0].time-r.now());this.schedule(t,o)}else this.unsubscribe(),e.active=!1},e.prototype._schedule=function(t){this.active=!0,this.add(t.schedule(e.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))},e.prototype.scheduleNotification=function(t){if(!0!==this.errored){var e=this.scheduler,n=new yt(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}},e.prototype._next=function(t){this.scheduleNotification(lt.a.createNext(t))},e.prototype._error=function(t){this.errored=!0,this.queue=[],this.destination.error(t)},e.prototype._complete=function(){this.scheduleNotification(lt.a.createComplete())},e}(m.a),yt=function(){return function(t,e){this.time=t,this.notification=e}}(),vt=n(2);function mt(t,e){return e?function(n){return new wt(n,e).lift(new bt(t))}:function(e){return e.lift(new bt(t))}}var bt=function(){function t(t){this.delayDurationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new gt(t,this.delayDurationSelector))},t}(),gt=function(t){function e(e,n){var r=t.call(this,e)||this;return r.delayDurationSelector=n,r.completed=!1,r.delayNotifierSubscriptions=[],r.values=[],r}return r.a(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(t),this.removeSubscription(i),this.tryComplete()},e.prototype.notifyError=function(t,e){this._error(t)},e.prototype.notifyComplete=function(t){var e=this.removeSubscription(t);e&&this.destination.next(e),this.tryComplete()},e.prototype._next=function(t){try{var e=this.delayDurationSelector(t);e&&this.tryDelay(e,t)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){this.completed=!0,this.tryComplete()},e.prototype.removeSubscription=function(t){t.unsubscribe();var e=this.delayNotifierSubscriptions.indexOf(t),n=null;return-1!==e&&(n=this.values[e],this.delayNotifierSubscriptions.splice(e,1),this.values.splice(e,1)),n},e.prototype.tryDelay=function(t,e){var n=Object(s.a)(this,t,e);n&&!n.closed&&(this.add(n),this.delayNotifierSubscriptions.push(n)),this.values.push(e)},e.prototype.tryComplete=function(){this.completed&&0===this.delayNotifierSubscriptions.length&&this.destination.complete()},e}(u.a),wt=function(t){function e(e,n){var r=t.call(this)||this;return r.source=e,r.subscriptionDelay=n,r}return r.a(e,t),e.prototype._subscribe=function(t){this.subscriptionDelay.subscribe(new _t(t,this.source))},e}(vt.a),_t=function(t){function e(e,n){var r=t.call(this)||this;return r.parent=e,r.source=n,r.sourceSubscribed=!1,r}return r.a(e,t),e.prototype._next=function(t){this.subscribeToSource()},e.prototype._error=function(t){this.unsubscribe(),this.parent.error(t)},e.prototype._complete=function(){this.subscribeToSource()},e.prototype.subscribeToSource=function(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))},e}(m.a);function xt(){return function(t){return t.lift(new St)}}var St=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new Tt(t))},t}(),Tt=function(t){function e(e){return t.call(this,e)||this}return r.a(e,t),e.prototype._next=function(t){t.observe(this.destination)},e}(m.a);function Ot(t,e){return function(n){return n.lift(new Et(t,e))}}var Et=function(){function t(t,e){this.keySelector=t,this.flushes=e}return t.prototype.call=function(t,e){return e.subscribe(new Ct(t,this.keySelector,this.flushes))},t}(),Ct=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.keySelector=n,i.values=new Set,r&&i.add(Object(s.a)(i,r)),i}return r.a(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.values.clear()},e.prototype.notifyError=function(t,e){this._error(t)},e.prototype._next=function(t){this.keySelector?this._useKeySelector(t):this._finalizeNext(t,t)},e.prototype._useKeySelector=function(t){var e,n=this.destination;try{e=this.keySelector(t)}catch(t){return void n.error(t)}this._finalizeNext(e,t)},e.prototype._finalizeNext=function(t,e){var n=this.values;n.has(t)||(n.add(t),this.destination.next(e))},e}(u.a);function jt(t,e){return function(n){return n.lift(new Pt(t,e))}}var Pt=function(){function t(t,e){this.compare=t,this.keySelector=e}return t.prototype.call=function(t,e){return e.subscribe(new It(t,this.compare,this.keySelector))},t}(),It=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.keySelector=r,i.hasKey=!1,"function"==typeof n&&(i.compare=n),i}return r.a(e,t),e.prototype.compare=function(t,e){return t===e},e.prototype._next=function(t){var e=t;if(this.keySelector&&(e=Object(i.a)(this.keySelector)(t))===o.a)return this.destination.error(o.a.e);var n=!1;if(this.hasKey){if((n=Object(i.a)(this.compare)(this.key,e))===o.a)return this.destination.error(o.a.e)}else this.hasKey=!0;!1===Boolean(n)&&(this.key=e,this.destination.next(t))},e}(m.a);function Mt(t,e){return jt(function(n,r){return e?e(n[t],r[t]):n[t]===r[t]})}var At=n(26);function Ft(t,e){return function(n){return n.lift(new Rt(t,e))}}var Rt=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new kt(t,this.predicate,this.thisArg))},t}(),kt=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.predicate=n,i.thisArg=r,i.count=0,i}return r.a(e,t),e.prototype._next=function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}e&&this.destination.next(t)},e}(m.a),Nt=n(16),Vt=n(30);function qt(t,e,n){return function(r){return r.lift(new Lt(t,e,n))}}var Lt=function(){function t(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}return t.prototype.call=function(t,e){return e.subscribe(new Ut(t,this.nextOrObserver,this.error,this.complete))},t}(),Ut=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o._tapNext=Nt.a,o._tapError=Nt.a,o._tapComplete=Nt.a,o._tapError=r||Nt.a,o._tapComplete=i||Nt.a,Object(Vt.a)(n)?(o._context=o,o._tapNext=n):n&&(o._context=n,o._tapNext=n.next||Nt.a,o._tapError=n.error||Nt.a,o._tapComplete=n.complete||Nt.a),o}return r.a(e,t),e.prototype._next=function(t){try{this._tapNext.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.next(t)},e.prototype._error=function(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)},e.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()},e}(m.a),Dt=n(34),Qt=function(t){return void 0===t&&(t=Bt),qt({hasValue:!1,next:function(){this.hasValue=!0},complete:function(){if(!this.hasValue)throw t()}})};function Bt(){return new Dt.a}var Wt=n(8);function Ht(t){return function(e){return 0===t?Object(Wt.b)():e.lift(new zt(t))}}var zt=function(){function t(t){if(this.total=t,this.total<0)throw new At.a}return t.prototype.call=function(t,e){return e.subscribe(new Yt(t,this.total))},t}(),Yt=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.count=0,r}return r.a(e,t),e.prototype._next=function(t){var e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))},e}(m.a);function Kt(t,e){if(t<0)throw new At.a;var n=arguments.length>=2;return function(r){return r.pipe(Ft(function(e,n){return n===t}),Ht(1),n?st(e):Qt(function(){return new At.a}))}}var Gt=n(20),Xt=n(57);function Jt(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){var n=t[t.length-1];Object(x.a)(n)?t.pop():n=null;var r=t.length;return 1!==r||n?r>0?Object(H.a)(e,Object(Gt.a)(t,n)):Object(H.a)(e,Object(Wt.b)(n)):Object(H.a)(e,Object(Xt.a)(t[0]))}}function $t(t,e){return function(n){return n.lift(new Zt(t,e,n))}}var Zt=function(){function t(t,e,n){this.predicate=t,this.thisArg=e,this.source=n}return t.prototype.call=function(t,e){return e.subscribe(new te(t,this.predicate,this.thisArg,this.source))},t}(),te=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.predicate=n,o.thisArg=r,o.source=i,o.index=0,o.thisArg=r||o,o}return r.a(e,t),e.prototype.notifyComplete=function(t){this.destination.next(t),this.destination.complete()},e.prototype._next=function(t){var e=!1;try{e=this.predicate.call(this.thisArg,t,this.index++,this.source)}catch(t){return void this.destination.error(t)}e||this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)},e}(m.a);function ee(){return function(t){return t.lift(new ne)}}var ne=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new re(t))},t}(),re=function(t){function e(e){var n=t.call(this,e)||this;return n.hasCompleted=!1,n.hasSubscription=!1,n}return r.a(e,t),e.prototype._next=function(t){this.hasSubscription||(this.hasSubscription=!0,this.add(Object(s.a)(this,t)))},e.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()},e.prototype.notifyComplete=function(t){this.remove(t),this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},e}(u.a),ie=n(15);function oe(t,e){return e?function(n){return n.pipe(oe(function(n,r){return Object(B.a)(t(n,r)).pipe(Object(ie.a)(function(t,i){return e(n,t,r,i)}))}))}:function(e){return e.lift(new ue(t))}}var ue=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new se(t,this.project))},t}(),se=function(t){function e(e,n){var r=t.call(this,e)||this;return r.project=n,r.hasSubscription=!1,r.hasCompleted=!1,r.index=0,r}return r.a(e,t),e.prototype._next=function(t){this.hasSubscription||this.tryNext(t)},e.prototype.tryNext=function(t){var e=this.index++,n=this.destination;try{var r=this.project(t,e);this.hasSubscription=!0,this.add(Object(s.a)(this,r,t,e))}catch(t){n.error(t)}},e.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()},e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(e)},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.remove(t),this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},e}(u.a);function ce(t,e,n){return void 0===e&&(e=Number.POSITIVE_INFINITY),void 0===n&&(n=void 0),e=(e||0)<1?Number.POSITIVE_INFINITY:e,function(r){return r.lift(new ae(t,e,n))}}var ae=function(){function t(t,e,n){this.project=t,this.concurrent=e,this.scheduler=n}return t.prototype.call=function(t,e){return e.subscribe(new fe(t,this.project,this.concurrent,this.scheduler))},t}(),fe=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.project=n,o.concurrent=r,o.scheduler=i,o.index=0,o.active=0,o.hasCompleted=!1,r<Number.POSITIVE_INFINITY&&(o.buffer=[]),o}return r.a(e,t),e.dispatch=function(t){var e=t.subscriber,n=t.result,r=t.value,i=t.index;e.subscribeToProjection(n,r,i)},e.prototype._next=function(t){var n=this.destination;if(n.closed)this._complete();else{var r=this.index++;if(this.active<this.concurrent){n.next(t);var u=Object(i.a)(this.project)(t,r);if(u===o.a)n.error(o.a.e);else if(this.scheduler){var s={subscriber:this,result:u,value:t,index:r};this.add(this.scheduler.schedule(e.dispatch,0,s))}else this.subscribeToProjection(u,t,r)}else this.buffer.push(t)}},e.prototype.subscribeToProjection=function(t,e,n){this.active++,this.add(Object(s.a)(this,t,e,n))},e.prototype._complete=function(){this.hasCompleted=!0,this.hasCompleted&&0===this.active&&this.destination.complete()},e.prototype.notifyNext=function(t,e,n,r,i){this._next(e)},e.prototype.notifyComplete=function(t){var e=this.buffer;this.remove(t),this.active--,e&&e.length>0&&this._next(e.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()},e}(u.a);function le(t){return function(e){return e.lift(new pe(t))}}var pe=function(){function t(t){this.callback=t}return t.prototype.call=function(t,e){return e.subscribe(new he(t,this.callback))},t}(),he=function(t){function e(e,n){var r=t.call(this,e)||this;return r.add(new I.a(n)),r}return r.a(e,t),e}(m.a);function de(t,e){if("function"!=typeof t)throw new TypeError("predicate is not a function");return function(n){return n.lift(new ye(t,n,!1,e))}}var ye=function(){function t(t,e,n,r){this.predicate=t,this.source=e,this.yieldIndex=n,this.thisArg=r}return t.prototype.call=function(t,e){return e.subscribe(new ve(t,this.predicate,this.source,this.yieldIndex,this.thisArg))},t}(),ve=function(t){function e(e,n,r,i,o){var u=t.call(this,e)||this;return u.predicate=n,u.source=r,u.yieldIndex=i,u.thisArg=o,u.index=0,u}return r.a(e,t),e.prototype.notifyComplete=function(t){var e=this.destination;e.next(t),e.complete()},e.prototype._next=function(t){var e=this.predicate,n=this.thisArg,r=this.index++;try{e.call(n||this,t,r,this.source)&&this.notifyComplete(this.yieldIndex?r:t)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){this.notifyComplete(this.yieldIndex?-1:void 0)},e}(m.a);function me(t,e){return function(n){return n.lift(new ye(t,n,!0,e))}}var be=n(24);function ge(t,e){var n=arguments.length>=2;return function(r){return r.pipe(t?Ft(function(e,n){return t(e,n,r)}):be.a,Ht(1),n?st(e):Qt(function(){return new Dt.a}))}}var we=n(76);function _e(){return function(t){return t.lift(new xe)}}var xe=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new Se(t))},t}(),Se=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.a(e,t),e.prototype._next=function(t){},e}(m.a);function Te(){return function(t){return t.lift(new Oe)}}var Oe=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new Ee(t))},t}(),Ee=function(t){function e(e){return t.call(this,e)||this}return r.a(e,t),e.prototype.notifyComplete=function(t){var e=this.destination;e.next(t),e.complete()},e.prototype._next=function(t){this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)},e}(m.a);function Ce(t){return function(e){return 0===t?Object(Wt.b)():e.lift(new je(t))}}var je=function(){function t(t){if(this.total=t,this.total<0)throw new At.a}return t.prototype.call=function(t,e){return e.subscribe(new Pe(t,this.total))},t}(),Pe=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.ring=new Array,r.count=0,r}return r.a(e,t),e.prototype._next=function(t){var e=this.ring,n=this.total,r=this.count++;e.length<n?e.push(t):e[r%n]=t},e.prototype._complete=function(){var t=this.destination,e=this.count;if(e>0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,i=0;i<n;i++){var o=e++%n;t.next(r[o])}t.complete()},e}(m.a);function Ie(t,e){var n=arguments.length>=2;return function(r){return r.pipe(t?Ft(function(e,n){return t(e,n,r)}):be.a,Ce(1),n?st(e):Qt(function(){return new Dt.a}))}}function Me(t){return function(e){return e.lift(new Ae(t))}}var Ae=function(){function t(t){this.value=t}return t.prototype.call=function(t,e){return e.subscribe(new Fe(t,this.value))},t}(),Fe=function(t){function e(e,n){var r=t.call(this,e)||this;return r.value=n,r}return r.a(e,t),e.prototype._next=function(t){this.destination.next(this.value)},e}(m.a);function Re(){return function(t){return t.lift(new ke)}}var ke=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new Ne(t))},t}(),Ne=function(t){function e(e){return t.call(this,e)||this}return r.a(e,t),e.prototype._next=function(t){this.destination.next(lt.a.createNext(t))},e.prototype._error=function(t){var e=this.destination;e.next(lt.a.createError(t)),e.complete()},e.prototype._complete=function(){var t=this.destination;t.next(lt.a.createComplete()),t.complete()},e}(m.a);function Ve(t,e){var n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new qe(t,e,n))}}var qe=function(){function t(t,e,n){void 0===n&&(n=!1),this.accumulator=t,this.seed=e,this.hasSeed=n}return t.prototype.call=function(t,e){return e.subscribe(new Le(t,this.accumulator,this.seed,this.hasSeed))},t}(),Le=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.accumulator=n,o._seed=r,o.hasSeed=i,o.index=0,o}return r.a(e,t),Object.defineProperty(e.prototype,"seed",{get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t},enumerable:!0,configurable:!0}),e.prototype._next=function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.accumulator(this.seed,t,n)}catch(t){this.destination.error(t)}this.seed=e,this.destination.next(e)},e}(m.a),Ue=n(39);function De(t,e){return arguments.length>=2?function(n){return Object(Ue.a)(Ve(t,e),Ce(1),st(e))(n)}:function(e){return Object(Ue.a)(Ve(function(e,n,r){return t(e,n,r+1)}),Ce(1))(e)}}function Qe(t){return De("function"==typeof t?function(e,n){return t(e,n)>0?e:n}:function(t,e){return t>e?t:e})}var Be=n(87);function We(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return e.lift.call(Be.a.apply(void 0,[e].concat(t)))}}var He=n(50);function ze(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof e?Object(K.a)(function(){return t},e,n):("number"==typeof e&&(n=e),Object(K.a)(function(){return t},n))}function Ye(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),function(r){return r.lift(new Ke(t,e,n))}}var Ke=function(){function t(t,e,n){this.accumulator=t,this.seed=e,this.concurrent=n}return t.prototype.call=function(t,e){return e.subscribe(new Ge(t,this.accumulator,this.seed,this.concurrent))},t}(),Ge=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.accumulator=n,o.acc=r,o.concurrent=i,o.hasValue=!1,o.hasCompleted=!1,o.buffer=[],o.active=0,o.index=0,o}return r.a(e,t),e.prototype._next=function(t){if(this.active<this.concurrent){var e=this.index++,n=Object(i.a)(this.accumulator)(this.acc,t),r=this.destination;n===o.a?r.error(o.a.e):(this.active++,this._innerSub(n,t,e))}else this.buffer.push(t)},e.prototype._innerSub=function(t,e,n){this.add(Object(s.a)(this,t,e,n))},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())},e.prototype.notifyNext=function(t,e,n,r,i){var o=this.destination;this.acc=e,this.hasValue=!0,o.next(e)},e.prototype.notifyComplete=function(t){var e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())},e}(u.a);function Xe(t){return De("function"==typeof t?function(e,n){return t(e,n)<0?e:n}:function(t,e){return t<e?t:e})}var Je=n(92);function $e(t,e){return function(n){var r;if(r="function"==typeof t?t:function(){return t},"function"==typeof e)return n.lift(new Ze(r,e));var i=Object.create(n,Je.b);return i.source=n,i.subjectFactory=r,i}}var Ze=function(){function t(t,e){this.subjectFactory=t,this.selector=e}return t.prototype.call=function(t,e){var n=this.selector,r=this.subjectFactory(),i=n(r).subscribe(t);return i.add(e.subscribe(r)),i},t}(),tn=n(90);function en(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 1===t.length&&Object(Q.a)(t[0])&&(t=t[0]),function(e){return e.lift(new nn(t))}}var nn=function(){function t(t){this.nextSources=t}return t.prototype.call=function(t,e){return e.subscribe(new rn(t,this.nextSources))},t}(),rn=function(t){function e(e,n){var r=t.call(this,e)||this;return r.destination=e,r.nextSources=n,r}return r.a(e,t),e.prototype.notifyError=function(t,e){this.subscribeToNextSource()},e.prototype.notifyComplete=function(t){this.subscribeToNextSource()},e.prototype._error=function(t){this.subscribeToNextSource()},e.prototype._complete=function(){this.subscribeToNextSource()},e.prototype.subscribeToNextSource=function(){var t=this.nextSources.shift();t?this.add(Object(s.a)(this,t)):this.destination.complete()},e}(u.a);function on(){return function(t){return t.lift(new un)}}var un=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new sn(t))},t}(),sn=function(t){function e(e){var n=t.call(this,e)||this;return n.hasPrev=!1,n}return r.a(e,t),e.prototype._next=function(t){this.hasPrev?this.destination.next([this.prev,t]):this.hasPrev=!0,this.prev=t},e}(m.a);function cn(t,e){return function(n){return[Ft(t,e)(n),Ft(function(t,e){function n(){return!n.pred.apply(n.thisArg,arguments)}return n.pred=t,n.thisArg=e,n}(t,e))(n)]}}function an(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t.length;if(0===n)throw new Error("list of properties cannot be empty.");return function(e){return Object(ie.a)(function(t,e){return function(n){for(var r=n,i=0;i<e;i++){var o=r[t[i]];if(void 0===o)return;r=o}return r}}(t,n))(e)}}var fn=n(7);function ln(t){return t?$e(function(){return new fn.a},t):$e(new fn.a)}var pn=n(91);function hn(t){return function(e){return $e(new pn.a(t))(e)}}var dn=n(27);function yn(){return function(t){return $e(new dn.a)(t)}}var vn=n(55);function mn(t,e,n,r){n&&"function"!=typeof n&&(r=n);var i="function"==typeof n?n:void 0,o=new vn.a(t,e,r);return function(t){return $e(function(){return o},i)(t)}}var bn=n(86);function gn(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return 1===t.length&&Object(Q.a)(t[0])&&(t=t[0]),e.lift.call(bn.a.apply(void 0,[e].concat(t)))}}function wn(t){return void 0===t&&(t=-1),function(e){return 0===t?Object(Wt.b)():t<0?e.lift(new _n(-1,e)):e.lift(new _n(t-1,e))}}var _n=function(){function t(t,e){this.count=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new xn(t,this.count,this.source))},t}(),xn=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.count=n,i.source=r,i}return r.a(e,t),e.prototype.complete=function(){if(!this.isStopped){var e=this.source,n=this.count;if(0===n)return t.prototype.complete.call(this);n>-1&&(this.count=n-1),e.subscribe(this._unsubscribeAndRecycle())}},e}(m.a);function Sn(t){return function(e){return e.lift(new Tn(t))}}var Tn=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){return e.subscribe(new On(t,this.notifier,e))},t}(),On=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.notifier=n,i.source=r,i.sourceIsBeingSubscribedTo=!0,i}return r.a(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)},e.prototype.notifyComplete=function(e){if(!1===this.sourceIsBeingSubscribedTo)return t.prototype.complete.call(this)},e.prototype.complete=function(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries||this.subscribeToRetries(),!this.retriesSubscription||this.retriesSubscription.closed)return t.prototype.complete.call(this);this._unsubscribeAndRecycle(),this.notifications.next()}},e.prototype._unsubscribe=function(){var t=this.notifications,e=this.retriesSubscription;t&&(t.unsubscribe(),this.notifications=null),e&&(e.unsubscribe(),this.retriesSubscription=null),this.retries=null},e.prototype._unsubscribeAndRecycle=function(){var e=this._unsubscribe;return this._unsubscribe=null,t.prototype._unsubscribeAndRecycle.call(this),this._unsubscribe=e,this},e.prototype.subscribeToRetries=function(){this.notifications=new fn.a;var e=Object(i.a)(this.notifier)(this.notifications);if(e===o.a)return t.prototype.complete.call(this);this.retries=e,this.retriesSubscription=Object(s.a)(this,e)},e}(u.a);function En(t){return void 0===t&&(t=-1),function(e){return e.lift(new Cn(t,e))}}var Cn=function(){function t(t,e){this.count=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new jn(t,this.count,this.source))},t}(),jn=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.count=n,i.source=r,i}return r.a(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=this.source,r=this.count;if(0===r)return t.prototype.error.call(this,e);r>-1&&(this.count=r-1),n.subscribe(this._unsubscribeAndRecycle())}},e}(m.a);function Pn(t){return function(e){return e.lift(new In(t,e))}}var In=function(){function t(t,e){this.notifier=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new Mn(t,this.notifier,this.source))},t}(),Mn=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.notifier=n,i.source=r,i}return r.a(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=this.errors,r=this.retries,u=this.retriesSubscription;if(r)this.errors=null,this.retriesSubscription=null;else{if(n=new fn.a,(r=Object(i.a)(this.notifier)(n))===o.a)return t.prototype.error.call(this,o.a.e);u=Object(s.a)(this,r)}this._unsubscribeAndRecycle(),this.errors=n,this.retries=r,this.retriesSubscription=u,n.next(e)}},e.prototype._unsubscribe=function(){var t=this.errors,e=this.retriesSubscription;t&&(t.unsubscribe(),this.errors=null),e&&(e.unsubscribe(),this.retriesSubscription=null),this.retries=null},e.prototype.notifyNext=function(t,e,n,r,i){var o=this._unsubscribe;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=o,this.source.subscribe(this)},e}(u.a),An=n(56);function Fn(t){return function(e){return e.lift(new Rn(t))}}var Rn=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){var n=new kn(t),r=e.subscribe(n);return r.add(Object(s.a)(n,this.notifier)),r},t}(),kn=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.hasValue=!1,e}return r.a(e,t),e.prototype._next=function(t){this.value=t,this.hasValue=!0},e.prototype.notifyNext=function(t,e,n,r,i){this.emitValue()},e.prototype.notifyComplete=function(){this.emitValue()},e.prototype.emitValue=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))},e}(u.a);function Nn(t,e){return void 0===e&&(e=l.a),function(n){return n.lift(new Vn(t,e))}}var Vn=function(){function t(t,e){this.period=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new qn(t,this.period,this.scheduler))},t}(),qn=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.period=n,i.scheduler=r,i.hasValue=!1,i.add(r.schedule(Ln,n,{subscriber:i,period:n})),i}return r.a(e,t),e.prototype._next=function(t){this.lastValue=t,this.hasValue=!0},e.prototype.notifyNext=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))},e}(m.a);function Ln(t){var e=t.subscriber,n=t.period;e.notifyNext(),this.schedule(t,n)}function Un(t,e){return function(n){return n.lift(new Dn(t,e))}}var Dn=function(){function t(t,e){this.compareTo=t,this.comparor=e}return t.prototype.call=function(t,e){return e.subscribe(new Qn(t,this.compareTo,this.comparor))},t}(),Qn=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.compareTo=n,i.comparor=r,i._a=[],i._b=[],i._oneComplete=!1,i.add(n.subscribe(new Bn(e,i))),i}return r.a(e,t),e.prototype._next=function(t){this._oneComplete&&0===this._b.length?this.emit(!1):(this._a.push(t),this.checkValues())},e.prototype._complete=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0},e.prototype.checkValues=function(){for(var t=this._a,e=this._b,n=this.comparor;t.length>0&&e.length>0;){var r=t.shift(),u=e.shift(),s=!1;n?(s=Object(i.a)(n)(r,u))===o.a&&this.destination.error(o.a.e):s=r===u,s||this.emit(!1)}},e.prototype.emit=function(t){var e=this.destination;e.next(t),e.complete()},e.prototype.nextB=function(t){this._oneComplete&&0===this._a.length?this.emit(!1):(this._b.push(t),this.checkValues())},e}(m.a),Bn=function(t){function e(e,n){var r=t.call(this,e)||this;return r.parent=n,r}return r.a(e,t),e.prototype._next=function(t){this.parent.nextB(t)},e.prototype._error=function(t){this.parent.error(t)},e.prototype._complete=function(){this.parent._complete()},e}(m.a);function Wn(){return new fn.a}function Hn(){return function(t){return Object(An.a)()($e(Wn)(t))}}function zn(t,e,n){return function(r){return r.lift(function(t,e,n){var r,i,o=0,u=!1,s=!1;return function(c){o++,r&&!u||(u=!1,r=new vn.a(t,e,n),i=c.subscribe({next:function(t){r.next(t)},error:function(t){u=!0,r.error(t)},complete:function(){s=!0,r.complete()}}));var a=r.subscribe(this);return function(){o--,a.unsubscribe(),i&&0===o&&s&&i.unsubscribe()}}}(t,e,n))}}function Yn(t){return function(e){return e.lift(new Kn(t,e))}}var Kn=function(){function t(t,e){this.predicate=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new Gn(t,this.predicate,this.source))},t}(),Gn=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.predicate=n,i.source=r,i.seenValue=!1,i.index=0,i}return r.a(e,t),e.prototype.applySingleValue=function(t){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=t)},e.prototype._next=function(t){var e=this.index++;this.predicate?this.tryNext(t,e):this.applySingleValue(t)},e.prototype.tryNext=function(t,e){try{this.predicate(t,e,this.source)&&this.applySingleValue(t)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){var t=this.destination;this.index>0?(t.next(this.seenValue?this.singleValue:void 0),t.complete()):t.error(new Dt.a)},e}(m.a);function Xn(t){return function(e){return e.lift(new Jn(t))}}var Jn=function(){function t(t){this.total=t}return t.prototype.call=function(t,e){return e.subscribe(new $n(t,this.total))},t}(),$n=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.count=0,r}return r.a(e,t),e.prototype._next=function(t){++this.count>this.total&&this.destination.next(t)},e}(m.a);function Zn(t){return function(e){return e.lift(new tr(t))}}var tr=function(){function t(t){if(this._skipCount=t,this._skipCount<0)throw new At.a}return t.prototype.call=function(t,e){return 0===this._skipCount?e.subscribe(new m.a(t)):e.subscribe(new er(t,this._skipCount))},t}(),er=function(t){function e(e,n){var r=t.call(this,e)||this;return r._skipCount=n,r._count=0,r._ring=new Array(n),r}return r.a(e,t),e.prototype._next=function(t){var e=this._skipCount,n=this._count++;if(n<e)this._ring[n]=t;else{var r=n%e,i=this._ring,o=i[r];i[r]=t,this.destination.next(o)}},e}(m.a);function nr(t){return function(e){return e.lift(new rr(t))}}var rr=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){return e.subscribe(new ir(t,this.notifier))},t}(),ir=function(t){function e(e,n){var r=t.call(this,e)||this;return r.hasValue=!1,r.add(r.innerSubscription=Object(s.a)(r,n)),r}return r.a(e,t),e.prototype._next=function(e){this.hasValue&&t.prototype._next.call(this,e)},e.prototype.notifyNext=function(t,e,n,r,i){this.hasValue=!0,this.innerSubscription&&this.innerSubscription.unsubscribe()},e.prototype.notifyComplete=function(){},e}(u.a);function or(t){return function(e){return e.lift(new ur(t))}}var ur=function(){function t(t){this.predicate=t}return t.prototype.call=function(t,e){return e.subscribe(new sr(t,this.predicate))},t}(),sr=function(t){function e(e,n){var r=t.call(this,e)||this;return r.predicate=n,r.skipping=!0,r.index=0,r}return r.a(e,t),e.prototype._next=function(t){var e=this.destination;this.skipping&&this.tryCallPredicate(t),this.skipping||e.next(t)},e.prototype.tryCallPredicate=function(t){try{var e=this.predicate(t,this.index++);this.skipping=Boolean(e)}catch(t){this.destination.error(t)}},e}(m.a);function cr(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){var n=t[t.length-1];Object(x.a)(n)?t.pop():n=null;var r=t.length;return 1!==r||n?r>0?Object(H.a)(Object(Gt.a)(t,n),e):Object(H.a)(Object(Wt.b)(n),e):Object(H.a)(Object(Xt.a)(t[0]),e)}}var ar=n(38),fr=n(29),lr=function(t){function e(e,n,r){void 0===n&&(n=0),void 0===r&&(r=ar.a);var i=t.call(this)||this;return i.source=e,i.delayTime=n,i.scheduler=r,(!Object(fr.a)(n)||n<0)&&(i.delayTime=0),r&&"function"==typeof r.schedule||(i.scheduler=ar.a),i}return r.a(e,t),e.create=function(t,n,r){return void 0===n&&(n=0),void 0===r&&(r=ar.a),new e(t,n,r)},e.dispatch=function(t){var e=t.source,n=t.subscriber;return this.add(e.subscribe(n))},e.prototype._subscribe=function(t){var n=this.delayTime,r=this.source;return this.scheduler.schedule(e.dispatch,n,{source:r,subscriber:t})},e}(vt.a);function pr(t,e){return void 0===e&&(e=0),function(n){return n.lift(new hr(t,e))}}var hr=function(){function t(t,e){this.scheduler=t,this.delay=e}return t.prototype.call=function(t,e){return new lr(e,this.delay,this.scheduler).subscribe(t)},t}();function dr(t,e){return"function"==typeof e?function(n){return n.pipe(dr(function(n,r){return Object(B.a)(t(n,r)).pipe(Object(ie.a)(function(t,i){return e(n,t,r,i)}))}))}:function(e){return e.lift(new yr(t))}}var yr=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new vr(t,this.project))},t}(),vr=function(t){function e(e,n){var r=t.call(this,e)||this;return r.project=n,r.index=0,r}return r.a(e,t),e.prototype._next=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){var r=this.innerSubscription;r&&r.unsubscribe(),this.add(this.innerSubscription=Object(s.a)(this,t,e,n))},e.prototype._complete=function(){var e=this.innerSubscription;e&&!e.closed||t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.innerSubscription=null},e.prototype.notifyComplete=function(e){this.remove(e),this.innerSubscription=null,this.isStopped&&t.prototype._complete.call(this)},e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(e)},e}(u.a);function mr(){return dr(be.a)}function br(t,e){return e?dr(function(){return t},e):dr(function(){return t})}function gr(t){return function(e){return e.lift(new wr(t))}}var wr=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){var n=new _r(t),r=Object(s.a)(n,this.notifier);return r&&!r.closed?(n.add(r),e.subscribe(n)):n},t}(),_r=function(t){function e(e){return t.call(this,e)||this}return r.a(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.complete()},e.prototype.notifyComplete=function(){},e}(u.a);function xr(t){return function(e){return e.lift(new Sr(t))}}var Sr=function(){function t(t){this.predicate=t}return t.prototype.call=function(t,e){return e.subscribe(new Tr(t,this.predicate))},t}(),Tr=function(t){function e(e,n){var r=t.call(this,e)||this;return r.predicate=n,r.index=0,r}return r.a(e,t),e.prototype._next=function(t){var e,n=this.destination;try{e=this.predicate(t,this.index++)}catch(t){return void n.error(t)}this.nextOrComplete(t,e)},e.prototype.nextOrComplete=function(t,e){var n=this.destination;Boolean(e)?n.next(t):n.complete()},e}(m.a),Or={leading:!0,trailing:!1};function Er(t,e){return void 0===e&&(e=Or),function(n){return n.lift(new Cr(t,e.leading,e.trailing))}}var Cr=function(){function t(t,e,n){this.durationSelector=t,this.leading=e,this.trailing=n}return t.prototype.call=function(t,e){return e.subscribe(new jr(t,this.durationSelector,this.leading,this.trailing))},t}(),jr=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.destination=e,o.durationSelector=n,o._leading=r,o._trailing=i,o._hasValue=!1,o}return r.a(e,t),e.prototype._next=function(t){this._hasValue=!0,this._sendValue=t,this._throttled||(this._leading?this.send():this.throttle(t))},e.prototype.send=function(){var t=this._hasValue,e=this._sendValue;t&&(this.destination.next(e),this.throttle(e)),this._hasValue=!1,this._sendValue=null},e.prototype.throttle=function(t){var e=this.tryDurationSelector(t);e&&this.add(this._throttled=Object(s.a)(this,e))},e.prototype.tryDurationSelector=function(t){try{return this.durationSelector(t)}catch(t){return this.destination.error(t),null}},e.prototype.throttlingDone=function(){var t=this._throttled,e=this._trailing;t&&t.unsubscribe(),this._throttled=null,e&&this.send()},e.prototype.notifyNext=function(t,e,n,r,i){this.throttlingDone()},e.prototype.notifyComplete=function(){this.throttlingDone()},e}(u.a);function Pr(t,e,n){return void 0===e&&(e=l.a),void 0===n&&(n=Or),function(r){return r.lift(new Ir(t,e,n.leading,n.trailing))}}var Ir=function(){function t(t,e,n,r){this.duration=t,this.scheduler=e,this.leading=n,this.trailing=r}return t.prototype.call=function(t,e){return e.subscribe(new Mr(t,this.duration,this.scheduler,this.leading,this.trailing))},t}(),Mr=function(t){function e(e,n,r,i,o){var u=t.call(this,e)||this;return u.duration=n,u.scheduler=r,u.leading=i,u.trailing=o,u._hasTrailingValue=!1,u._trailingValue=null,u}return r.a(e,t),e.prototype._next=function(t){this.throttled?this.trailing&&(this._trailingValue=t,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(Ar,this.duration,{subscriber:this})),this.leading&&this.destination.next(t))},e.prototype._complete=function(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()},e.prototype.clearThrottle=function(){var t=this.throttled;t&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),t.unsubscribe(),this.remove(t),this.throttled=null)},e}(m.a);function Ar(t){t.subscriber.clearThrottle()}var Fr=n(49);function Rr(t){return void 0===t&&(t=l.a),function(e){return Object(Fr.a)(function(){return e.pipe(Ve(function(e,n){var r=e.current;return{value:n,current:t.now(),last:r}},{current:t.now(),value:void 0,last:void 0}),Object(ie.a)(function(t){var e=t.current,n=t.last,r=t.value;return new kr(r,e-n)}))})}}var kr=function(){return function(t,e){this.value=t,this.interval=e}}(),Nr=n(89);function Vr(t,e,n){return void 0===n&&(n=l.a),function(r){var i=ft(t),o=i?+t-n.now():Math.abs(t);return r.lift(new qr(o,i,e,n))}}var qr=function(){function t(t,e,n,r){this.waitFor=t,this.absoluteTimeout=e,this.withObservable=n,this.scheduler=r}return t.prototype.call=function(t,e){return e.subscribe(new Lr(t,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))},t}(),Lr=function(t){function e(e,n,r,i,o){var u=t.call(this,e)||this;return u.absoluteTimeout=n,u.waitFor=r,u.withObservable=i,u.scheduler=o,u.action=null,u.scheduleTimeout(),u}return r.a(e,t),e.dispatchTimeout=function(t){var e=t.withObservable;t._unsubscribeAndRecycle(),t.add(Object(s.a)(t,e))},e.prototype.scheduleTimeout=function(){var t=this.action;t?this.action=t.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(e.dispatchTimeout,this.waitFor,this))},e.prototype._next=function(e){this.absoluteTimeout||this.scheduleTimeout(),t.prototype._next.call(this,e)},e.prototype._unsubscribe=function(){this.action=null,this.scheduler=null,this.withObservable=null},e}(u.a),Ur=n(53);function Dr(t,e){return void 0===e&&(e=l.a),Vr(t,Object(Ur.a)(new Nr.a),e)}function Qr(t){return void 0===t&&(t=l.a),Object(ie.a)(function(e){return new Br(e,t.now())})}var Br=function(){return function(t,e){this.value=t,this.timestamp=e}}();function Wr(t,e,n){return 0===n?[e]:(t.push(e),t)}function Hr(){return De(Wr,[])}function zr(t){return function(e){return e.lift(new Yr(t))}}var Yr=function(){function t(t){this.windowBoundaries=t}return t.prototype.call=function(t,e){var n=new Kr(t),r=e.subscribe(n);return r.closed||n.add(Object(s.a)(n,this.windowBoundaries)),r},t}(),Kr=function(t){function e(e){var n=t.call(this,e)||this;return n.window=new fn.a,e.next(n.window),n}return r.a(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.openWindow()},e.prototype.notifyError=function(t,e){this._error(t)},e.prototype.notifyComplete=function(t){this._complete()},e.prototype._next=function(t){this.window.next(t)},e.prototype._error=function(t){this.window.error(t),this.destination.error(t)},e.prototype._complete=function(){this.window.complete(),this.destination.complete()},e.prototype._unsubscribe=function(){this.window=null},e.prototype.openWindow=function(){var t=this.window;t&&t.complete();var e=this.destination,n=this.window=new fn.a;e.next(n)},e}(u.a);function Gr(t,e){return void 0===e&&(e=0),function(n){return n.lift(new Xr(t,e))}}var Xr=function(){function t(t,e){this.windowSize=t,this.startWindowEvery=e}return t.prototype.call=function(t,e){return e.subscribe(new Jr(t,this.windowSize,this.startWindowEvery))},t}(),Jr=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.destination=e,i.windowSize=n,i.startWindowEvery=r,i.windows=[new fn.a],i.count=0,e.next(i.windows[0]),i}return r.a(e,t),e.prototype._next=function(t){for(var e=this.startWindowEvery>0?this.startWindowEvery:this.windowSize,n=this.destination,r=this.windowSize,i=this.windows,o=i.length,u=0;u<o&&!this.closed;u++)i[u].next(t);var s=this.count-r+1;if(s>=0&&s%e==0&&!this.closed&&i.shift().complete(),++this.count%e==0&&!this.closed){var c=new fn.a;i.push(c),n.next(c)}},e.prototype._error=function(t){var e=this.windows;if(e)for(;e.length>0&&!this.closed;)e.shift().error(t);this.destination.error(t)},e.prototype._complete=function(){var t=this.windows;if(t)for(;t.length>0&&!this.closed;)t.shift().complete();this.destination.complete()},e.prototype._unsubscribe=function(){this.count=0,this.windows=null},e}(m.a);function $r(t){var e=l.a,n=null,r=Number.POSITIVE_INFINITY;return Object(x.a)(arguments[3])&&(e=arguments[3]),Object(x.a)(arguments[2])?e=arguments[2]:Object(fr.a)(arguments[2])&&(r=arguments[2]),Object(x.a)(arguments[1])?e=arguments[1]:Object(fr.a)(arguments[1])&&(n=arguments[1]),function(i){return i.lift(new Zr(t,n,r,e))}}var Zr=function(){function t(t,e,n,r){this.windowTimeSpan=t,this.windowCreationInterval=e,this.maxWindowSize=n,this.scheduler=r}return t.prototype.call=function(t,e){return e.subscribe(new ei(t,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))},t}(),ti=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._numberOfNextedValues=0,e}return r.a(e,t),e.prototype.next=function(e){this._numberOfNextedValues++,t.prototype.next.call(this,e)},Object.defineProperty(e.prototype,"numberOfNextedValues",{get:function(){return this._numberOfNextedValues},enumerable:!0,configurable:!0}),e}(fn.a),ei=function(t){function e(e,n,r,i,o){var u=t.call(this,e)||this;u.destination=e,u.windowTimeSpan=n,u.windowCreationInterval=r,u.maxWindowSize=i,u.scheduler=o,u.windows=[];var s=u.openWindow();if(null!==r&&r>=0){var c={subscriber:u,window:s,context:null},a={windowTimeSpan:n,windowCreationInterval:r,subscriber:u,scheduler:o};u.add(o.schedule(ii,n,c)),u.add(o.schedule(ri,r,a))}else{var f={subscriber:u,window:s,windowTimeSpan:n};u.add(o.schedule(ni,n,f))}return u}return r.a(e,t),e.prototype._next=function(t){for(var e=this.windows,n=e.length,r=0;r<n;r++){var i=e[r];i.closed||(i.next(t),i.numberOfNextedValues>=this.maxWindowSize&&this.closeWindow(i))}},e.prototype._error=function(t){for(var e=this.windows;e.length>0;)e.shift().error(t);this.destination.error(t)},e.prototype._complete=function(){for(var t=this.windows;t.length>0;){var e=t.shift();e.closed||e.complete()}this.destination.complete()},e.prototype.openWindow=function(){var t=new ti;return this.windows.push(t),this.destination.next(t),t},e.prototype.closeWindow=function(t){t.complete();var e=this.windows;e.splice(e.indexOf(t),1)},e}(m.a);function ni(t){var e=t.subscriber,n=t.windowTimeSpan,r=t.window;r&&e.closeWindow(r),t.window=e.openWindow(),this.schedule(t,n)}function ri(t){var e=t.windowTimeSpan,n=t.subscriber,r=t.scheduler,i=t.windowCreationInterval,o={action:this,subscription:null},u={subscriber:n,window:n.openWindow(),context:o};o.subscription=r.schedule(ii,e,u),this.add(o.subscription),this.schedule(t,i)}function ii(t){var e=t.subscriber,n=t.window,r=t.context;r&&r.action&&r.subscription&&r.action.remove(r.subscription),e.closeWindow(n)}function oi(t,e){return function(n){return n.lift(new ui(t,e))}}var ui=function(){function t(t,e){this.openings=t,this.closingSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new si(t,this.openings,this.closingSelector))},t}(),si=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.openings=n,i.closingSelector=r,i.contexts=[],i.add(i.openSubscription=Object(s.a)(i,n,n)),i}return r.a(e,t),e.prototype._next=function(t){var e=this.contexts;if(e)for(var n=e.length,r=0;r<n;r++)e[r].window.next(t)},e.prototype._error=function(e){var n=this.contexts;if(this.contexts=null,n)for(var r=n.length,i=-1;++i<r;){var o=n[i];o.window.error(e),o.subscription.unsubscribe()}t.prototype._error.call(this,e)},e.prototype._complete=function(){var e=this.contexts;if(this.contexts=null,e)for(var n=e.length,r=-1;++r<n;){var i=e[r];i.window.complete(),i.subscription.unsubscribe()}t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.contexts;if(this.contexts=null,t)for(var e=t.length,n=-1;++n<e;){var r=t[n];r.window.unsubscribe(),r.subscription.unsubscribe()}},e.prototype.notifyNext=function(t,e,n,r,u){if(t===this.openings){var c=this.closingSelector,a=Object(i.a)(c)(e);if(a===o.a)return this.error(o.a.e);var f=new fn.a,l=new I.a,p={window:f,subscription:l};this.contexts.push(p);var h=Object(s.a)(this,a,p);h.closed?this.closeWindow(this.contexts.length-1):(h.context=p,l.add(h)),this.destination.next(f)}else this.closeWindow(this.contexts.indexOf(t))},e.prototype.notifyError=function(t){this.error(t)},e.prototype.notifyComplete=function(t){t!==this.openSubscription&&this.closeWindow(this.contexts.indexOf(t.context))},e.prototype.closeWindow=function(t){if(-1!==t){var e=this.contexts,n=e[t],r=n.window,i=n.subscription;e.splice(t,1),r.complete(),i.unsubscribe()}},e}(u.a);function ci(t){return function(e){return e.lift(new ai(t))}}var ai=function(){function t(t){this.closingSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new fi(t,this.closingSelector))},t}(),fi=function(t){function e(e,n){var r=t.call(this,e)||this;return r.destination=e,r.closingSelector=n,r.openWindow(),r}return r.a(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.openWindow(i)},e.prototype.notifyError=function(t,e){this._error(t)},e.prototype.notifyComplete=function(t){this.openWindow(t)},e.prototype._next=function(t){this.window.next(t)},e.prototype._error=function(t){this.window.error(t),this.destination.error(t),this.unsubscribeClosingNotification()},e.prototype._complete=function(){this.window.complete(),this.destination.complete(),this.unsubscribeClosingNotification()},e.prototype.unsubscribeClosingNotification=function(){this.closingNotification&&this.closingNotification.unsubscribe()},e.prototype.openWindow=function(t){void 0===t&&(t=null),t&&(this.remove(t),t.unsubscribe());var e=this.window;e&&e.complete();var n=this.window=new fn.a;this.destination.next(n);var r=Object(i.a)(this.closingSelector)();if(r===o.a){var u=o.a.e;this.destination.error(u),this.window.error(u)}else this.add(this.closingNotification=Object(s.a)(this,r))},e}(u.a);function li(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){var n;"function"==typeof t[t.length-1]&&(n=t.pop());var r=t;return e.lift(new pi(r,n))}}var pi=function(){function t(t,e){this.observables=t,this.project=e}return t.prototype.call=function(t,e){return e.subscribe(new hi(t,this.observables,this.project))},t}(),hi=function(t){function e(e,n,r){var i=t.call(this,e)||this;i.observables=n,i.project=r,i.toRespond=[];var o=n.length;i.values=new Array(o);for(var u=0;u<o;u++)i.toRespond.push(u);for(u=0;u<o;u++){var c=n[u];i.add(Object(s.a)(i,c,c,u))}return i}return r.a(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.values[n]=e;var o=this.toRespond;if(o.length>0){var u=o.indexOf(n);-1!==u&&o.splice(u,1)}},e.prototype.notifyComplete=function(){},e.prototype._next=function(t){if(0===this.toRespond.length){var e=[t].concat(this.values);this.project?this._tryProject(e):this.destination.next(e)}},e.prototype._tryProject=function(t){var e;try{e=this.project.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(u.a),di=n(48);function yi(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return e.lift.call(di.b.apply(void 0,[e].concat(t)))}}function vi(t){return function(e){return e.lift(new di.a(t))}}n.d(e,"audit",function(){return c}),n.d(e,"auditTime",function(){return h}),n.d(e,"buffer",function(){return d}),n.d(e,"bufferCount",function(){return b}),n.d(e,"bufferTime",function(){return S}),n.d(e,"bufferToggle",function(){return M}),n.d(e,"bufferWhen",function(){return R}),n.d(e,"catchError",function(){return V}),n.d(e,"combineAll",function(){return D}),n.d(e,"combineLatest",function(){return W}),n.d(e,"concat",function(){return z}),n.d(e,"concatAll",function(){return Y.a}),n.d(e,"concatMap",function(){return G}),n.d(e,"concatMapTo",function(){return X}),n.d(e,"count",function(){return J}),n.d(e,"debounce",function(){return tt}),n.d(e,"debounceTime",function(){return rt}),n.d(e,"defaultIfEmpty",function(){return st}),n.d(e,"delay",function(){return pt}),n.d(e,"delayWhen",function(){return mt}),n.d(e,"dematerialize",function(){return xt}),n.d(e,"distinct",function(){return Ot}),n.d(e,"distinctUntilChanged",function(){return jt}),n.d(e,"distinctUntilKeyChanged",function(){return Mt}),n.d(e,"elementAt",function(){return Kt}),n.d(e,"endWith",function(){return Jt}),n.d(e,"every",function(){return $t}),n.d(e,"exhaust",function(){return ee}),n.d(e,"exhaustMap",function(){return oe}),n.d(e,"expand",function(){return ce}),n.d(e,"filter",function(){return Ft}),n.d(e,"finalize",function(){return le}),n.d(e,"find",function(){return de}),n.d(e,"findIndex",function(){return me}),n.d(e,"first",function(){return ge}),n.d(e,"groupBy",function(){return we.b}),n.d(e,"ignoreElements",function(){return _e}),n.d(e,"isEmpty",function(){return Te}),n.d(e,"last",function(){return Ie}),n.d(e,"map",function(){return ie.a}),n.d(e,"mapTo",function(){return Me}),n.d(e,"materialize",function(){return Re}),n.d(e,"max",function(){return Qe}),n.d(e,"merge",function(){return We}),n.d(e,"mergeAll",function(){return He.a}),n.d(e,"mergeMap",function(){return K.a}),n.d(e,"flatMap",function(){return K.a}),n.d(e,"mergeMapTo",function(){return ze}),n.d(e,"mergeScan",function(){return Ye}),n.d(e,"min",function(){return Xe}),n.d(e,"multicast",function(){return $e}),n.d(e,"observeOn",function(){return tn.b}),n.d(e,"onErrorResumeNext",function(){return en}),n.d(e,"pairwise",function(){return on}),n.d(e,"partition",function(){return cn}),n.d(e,"pluck",function(){return an}),n.d(e,"publish",function(){return ln}),n.d(e,"publishBehavior",function(){return hn}),n.d(e,"publishLast",function(){return yn}),n.d(e,"publishReplay",function(){return mn}),n.d(e,"race",function(){return gn}),n.d(e,"reduce",function(){return De}),n.d(e,"repeat",function(){return wn}),n.d(e,"repeatWhen",function(){return Sn}),n.d(e,"retry",function(){return En}),n.d(e,"retryWhen",function(){return Pn}),n.d(e,"refCount",function(){return An.a}),n.d(e,"sample",function(){return Fn}),n.d(e,"sampleTime",function(){return Nn}),n.d(e,"scan",function(){return Ve}),n.d(e,"sequenceEqual",function(){return Un}),n.d(e,"share",function(){return Hn}),n.d(e,"shareReplay",function(){return zn}),n.d(e,"single",function(){return Yn}),n.d(e,"skip",function(){return Xn}),n.d(e,"skipLast",function(){return Zn}),n.d(e,"skipUntil",function(){return nr}),n.d(e,"skipWhile",function(){return or}),n.d(e,"startWith",function(){return cr}),n.d(e,"subscribeOn",function(){return pr}),n.d(e,"switchAll",function(){return mr}),n.d(e,"switchMap",function(){return dr}),n.d(e,"switchMapTo",function(){return br}),n.d(e,"take",function(){return Ht}),n.d(e,"takeLast",function(){return Ce}),n.d(e,"takeUntil",function(){return gr}),n.d(e,"takeWhile",function(){return xr}),n.d(e,"tap",function(){return qt}),n.d(e,"throttle",function(){return Er}),n.d(e,"throttleTime",function(){return Pr}),n.d(e,"throwIfEmpty",function(){return Qt}),n.d(e,"timeInterval",function(){return Rr}),n.d(e,"timeout",function(){return Dr}),n.d(e,"timeoutWith",function(){return Vr}),n.d(e,"timestamp",function(){return Qr}),n.d(e,"toArray",function(){return Hr}),n.d(e,"window",function(){return zr}),n.d(e,"windowCount",function(){return Gr}),n.d(e,"windowTime",function(){return $r}),n.d(e,"windowToggle",function(){return oi}),n.d(e,"windowWhen",function(){return ci}),n.d(e,"withLatestFrom",function(){return li}),n.d(e,"zip",function(){return yi}),n.d(e,"zipAll",function(){return vi})},function(t,e,n){"use strict";(function(e){var r=n(14),i=n(120),o={"Content-Type":"application/x-www-form-urlencoded"};function u(t,e){!r.isUndefined(t)&&r.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var s,c={adapter:("undefined"!=typeof XMLHttpRequest?s=n(63):void 0!==e&&(s=n(63)),s),transformRequest:[function(t,e){return i(e,"Content-Type"),r.isFormData(t)||r.isArrayBuffer(t)||r.isBuffer(t)||r.isStream(t)||r.isFile(t)||r.isBlob(t)?t:r.isArrayBufferView(t)?t.buffer:r.isURLSearchParams(t)?(u(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):r.isObject(t)?(u(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"==typeof t)try{t=JSON.parse(t)}catch(t){}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(t){return t>=200&&t<300}};c.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],function(t){c.headers[t]={}}),r.forEach(["post","put","patch"],function(t){c.headers[t]=r.merge(o)}),t.exports=c}).call(this,n(73))},function(t,e,n){"use strict";function r(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}e.__esModule=!0,r(n(75)),r(n(134)),r(n(68)),r(n(127)),r(n(67)),r(n(66))},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});e.__esModule=!0;var o=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.config=e,r.queryService=n,r.parameters=[],r._queryConfig={},r}return i(e,t),e.prototype.queryConfig=function(t){return this._queryConfig=t,this},e.prototype.getHeaders=function(){return this.queryService.getHeaders(this._queryConfig)},e.prototype.getSingleTypeQueryUrl=function(e){var n="/types/"+e;return t.prototype.resolveUrlInternal.call(this,n)},e.prototype.getMultipleTypesQueryUrl=function(){return t.prototype.resolveUrlInternal.call(this,"/types")},e.prototype.runMultipleTypesQuery=function(){return this.queryService.getMultipleTypes(this.getMultipleTypesQueryUrl(),this._queryConfig)},e.prototype.runSingleTypeQuery=function(t){return this.queryService.getSingleType(this.getSingleTypeQueryUrl(t),this._queryConfig)},e}(n(33).BaseQuery);e.BaseTypeQuery=o},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});e.__esModule=!0;var o=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.config=e,r.queryService=n,r.taxonomiesEndpoint="taxonomies",r._queryConfig={},r}return i(e,t),e.prototype.queryConfig=function(t){return this._queryConfig=t,this},e.prototype.getHeaders=function(){return this.queryService.getHeaders(this._queryConfig)},e.prototype.getTaxonomyQueryUrl=function(e){var n="/"+this.taxonomiesEndpoint+"/"+e;return t.prototype.resolveUrlInternal.call(this,n)},e.prototype.getTaxonomiesQueryUrl=function(){var e="/"+this.taxonomiesEndpoint;return t.prototype.resolveUrlInternal.call(this,e)},e.prototype.runTaxonomyQuery=function(t){return this.queryService.getTaxonomy(this.getTaxonomyQueryUrl(t),this._queryConfig)},e.prototype.runTaxonomiesQuery=function(){return this.queryService.getTaxonomies(this.getTaxonomiesQueryUrl(),this._queryConfig)},e}(n(33).BaseQuery);e.BaseTaxonomyQuery=o},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});e.__esModule=!0;var o=n(12),u=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.config=e,r.queryService=n,r._queryConfig={},r}return i(e,t),e.prototype.queryConfig=function(t){return this._queryConfig=t,this},e.prototype.languageParameter=function(t){return this.parameters.push(new o.Parameters.LanguageParameter(t)),this},e.prototype.elementsParameter=function(t){return this.parameters.push(new o.Parameters.ElementsParameter(t)),this},e.prototype.depthParameter=function(t){return this.parameters.push(new o.Parameters.DepthParameter(t)),this},e.prototype.injectMultipleItems=function(t){return this.queryService.injectMultipleItems(t,this._queryConfig)},e.prototype.injectSingleItem=function(t){return this.queryService.injectSingleItem(t,this._queryConfig)},e.prototype.getMultipleItemsQueryUrl=function(){return this.processDefaultLanguageParameter(),t.prototype.resolveUrlInternal.call(this,"/items")},e.prototype.getSingleItemQueryUrl=function(e){var n="/items/"+e;return this.processDefaultLanguageParameter(),t.prototype.resolveUrlInternal.call(this,n)},e.prototype.runMultipleItemsQuery=function(){var t=this.getMultipleItemsQueryUrl();return this.queryService.getMultipleItems(t,this._queryConfig)},e.prototype.runSingleItemQuery=function(t){var e=this.getSingleItemQueryUrl(t);return this.queryService.getSingleItem(e,this._queryConfig)},e.prototype.processDefaultLanguageParameter=function(){this.config.defaultLanguage&&(this.getParameters().find(function(t){return"language"===t.getParam()})||this.parameters.push(new o.Parameters.LanguageParameter(this.config.defaultLanguage)))},e}(n(33).BaseQuery);e.BaseItemQuery=u},function(t,e,n){"use strict";n.d(e,"b",function(){return f}),n.d(e,"a",function(){return l});var r=n(0),i=n(20),o=n(11),u=n(1),s=n(4),c=n(3),a=n(23);function f(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[t.length-1];return"function"==typeof n&&t.pop(),Object(i.a)(t,void 0).lift(new l(n))}var l=function(){function t(t){this.resultSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new p(t,this.resultSelector))},t}(),p=function(t){function e(e,n,r){void 0===r&&(r=Object.create(null));var i=t.call(this,e)||this;return i.iterators=[],i.active=0,i.resultSelector="function"==typeof n?n:null,i.values=r,i}return r.a(e,t),e.prototype._next=function(t){var e=this.iterators;Object(o.a)(t)?e.push(new d(t)):"function"==typeof t[a.a]?e.push(new h(t[a.a]())):e.push(new y(this.destination,this,t))},e.prototype._complete=function(){var t=this.iterators,e=t.length;if(0!==e){this.active=e;for(var n=0;n<e;n++){var r=t[n];r.stillUnsubscribed?this.add(r.subscribe(r,n)):this.active--}}else this.destination.complete()},e.prototype.notifyInactive=function(){this.active--,0===this.active&&this.destination.complete()},e.prototype.checkIterators=function(){for(var t=this.iterators,e=t.length,n=this.destination,r=0;r<e;r++){if("function"==typeof(u=t[r]).hasValue&&!u.hasValue())return}var i=!1,o=[];for(r=0;r<e;r++){var u,s=(u=t[r]).next();if(u.hasCompleted()&&(i=!0),s.done)return void n.complete();o.push(s.value)}this.resultSelector?this._tryresultSelector(o):n.next(o),i&&n.complete()},e.prototype._tryresultSelector=function(t){var e;try{e=this.resultSelector.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(u.a),h=function(){function t(t){this.iterator=t,this.nextResult=t.next()}return t.prototype.hasValue=function(){return!0},t.prototype.next=function(){var t=this.nextResult;return this.nextResult=this.iterator.next(),t},t.prototype.hasCompleted=function(){var t=this.nextResult;return t&&t.done},t}(),d=function(){function t(t){this.array=t,this.index=0,this.length=0,this.length=t.length}return t.prototype[a.a]=function(){return this},t.prototype.next=function(t){var e=this.index++,n=this.array;return e<this.length?{value:n[e],done:!1}:{value:null,done:!0}},t.prototype.hasValue=function(){return this.array.length>this.index},t.prototype.hasCompleted=function(){return this.array.length===this.index},t}(),y=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.parent=n,i.observable=r,i.stillUnsubscribed=!0,i.buffer=[],i.isComplete=!1,i}return r.a(e,t),e.prototype[a.a]=function(){return this},e.prototype.next=function(){var t=this.buffer;return 0===t.length&&this.isComplete?{value:null,done:!0}:{value:t.shift(),done:!1}},e.prototype.hasValue=function(){return this.buffer.length>0},e.prototype.hasCompleted=function(){return 0===this.buffer.length&&this.isComplete},e.prototype.notifyComplete=function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()},e.prototype.notifyNext=function(t,e,n,r,i){this.buffer.push(e),this.parent.checkIterators()},e.prototype.subscribe=function(t,e){return Object(c.a)(this,this.observable,this,e)},e}(s.a)},function(t,e,n){"use strict";n.d(e,"a",function(){return u});var r=n(2),i=n(18),o=n(8);function u(t){return new r.a(function(e){var n;try{n=t()}catch(t){return void e.error(t)}return(n?Object(i.a)(n):Object(o.b)()).subscribe(e)})}},function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n(25),i=n(24);function o(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),Object(r.a)(i.a,t)}},function(t,e,n){"use strict";n.d(e,"b",function(){return f}),n.d(e,"a",function(){return l});var r=n(0),i=n(10),o=n(11),u=n(4),s=n(3),c=n(20),a={};function f(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=null,r=null;return Object(i.a)(t[t.length-1])&&(r=t.pop()),"function"==typeof t[t.length-1]&&(n=t.pop()),1===t.length&&Object(o.a)(t[0])&&(t=t[0]),Object(c.a)(t,r).lift(new l(n))}var l=function(){function t(t){this.resultSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new p(t,this.resultSelector))},t}(),p=function(t){function e(e,n){var r=t.call(this,e)||this;return r.resultSelector=n,r.active=0,r.values=[],r.observables=[],r}return r.a(e,t),e.prototype._next=function(t){this.values.push(a),this.observables.push(t)},e.prototype._complete=function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(var n=0;n<e;n++){var r=t[n];this.add(Object(s.a)(this,r,r,n))}}},e.prototype.notifyComplete=function(t){0==(this.active-=1)&&this.destination.complete()},e.prototype.notifyNext=function(t,e,n,r,i){var o=this.values,u=o[n],s=this.toRespond?u===a?--this.toRespond:this.toRespond:0;o[n]=e,0===s&&(this.resultSelector?this._tryResultSelector(o):this.destination.next(o.slice()))},e.prototype._tryResultSelector=function(t){var e;try{e=this.resultSelector.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(u.a)},function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=function(){function t(e,n){void 0===n&&(n=t.now),this.SchedulerAction=e,this.now=n}return t.prototype.schedule=function(t,e,n){return void 0===e&&(e=0),new this.SchedulerAction(this,t).schedule(n,e)},t.now=Date.now?Date.now:function(){return+new Date},t}()},function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n(2);function i(t,e){return e?new r.a(function(n){return e.schedule(o,0,{error:t,subscriber:n})}):new r.a(function(e){return e.error(t)})}function o(t){var e=t.error;t.subscriber.error(e)}},function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n(10),i=n(20),o=n(8),u=n(57);function s(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[t.length-1];switch(Object(r.a)(n)?t.pop():n=void 0,t.length){case 0:return Object(o.b)(n);case 1:return n?Object(i.a)(t,n):Object(u.a)(t[0]);default:return Object(i.a)(t,n)}}},function(t,e,n){"use strict";n.d(e,"a",function(){return f});var r=n(0),i=n(7),o=n(84),u=n(6),s=n(90),c=n(22),a=n(100),f=function(t){function e(e,n,r){void 0===e&&(e=Number.POSITIVE_INFINITY),void 0===n&&(n=Number.POSITIVE_INFINITY);var i=t.call(this)||this;return i.scheduler=r,i._events=[],i._infiniteTimeWindow=!1,i._bufferSize=e<1?1:e,i._windowTime=n<1?1:n,n===Number.POSITIVE_INFINITY?(i._infiniteTimeWindow=!0,i.next=i.nextInfiniteTimeWindow):i.next=i.nextTimeWindow,i}return r.a(e,t),e.prototype.nextInfiniteTimeWindow=function(e){var n=this._events;n.push(e),n.length>this._bufferSize&&n.shift(),t.prototype.next.call(this,e)},e.prototype.nextTimeWindow=function(e){this._events.push(new l(this._getNow(),e)),this._trimBufferThenGetEvents(),t.prototype.next.call(this,e)},e.prototype._subscribe=function(t){var e,n=this._infiniteTimeWindow,r=n?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,o=r.length;if(this.closed)throw new c.a;if(this.isStopped||this.hasError?e=u.a.EMPTY:(this.observers.push(t),e=new a.a(this,t)),i&&t.add(t=new s.a(t,i)),n)for(var f=0;f<o&&!t.closed;f++)t.next(r[f]);else for(f=0;f<o&&!t.closed;f++)t.next(r[f].value);return this.hasError?t.error(this.thrownError):this.isStopped&&t.complete(),e},e.prototype._getNow=function(){return(this.scheduler||o.a).now()},e.prototype._trimBufferThenGetEvents=function(){for(var t=this._getNow(),e=this._bufferSize,n=this._windowTime,r=this._events,i=r.length,o=0;o<i&&!(t-r[o].time<n);)o++;return i>e&&(o=Math.max(o,i-e)),o>0&&r.splice(0,o),r},e}(i.a),l=function(){return function(t,e){this.time=t,this.value=e}}()},function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n(0),i=n(1);function o(){return function(t){return t.lift(new u(t))}}var u=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var n=this.connectable;n._refCount++;var r=new s(t,n),i=e.subscribe(r);return r.closed||(r.connection=n.connect()),i},t}(),s=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return r.a(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var n=this.connection,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},e}(i.a)},function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n(2);function i(t){var e=new r.a(function(e){e.next(t),e.complete()});return e._isScalar=!0,e.value=t,e}},function(t,e,n){"use strict";e.__esModule=!0,function(t){t.Clip="clip",t.Scale="scale",t.Crop="crop"}(e.ImageFitModeEnum||(e.ImageFitModeEnum={})),function(t){t.Gif="gif",t.Png="png",t.Png8="png8",t.Jpg="jpg",t.Pjpg="pjpg",t.Webp="webp"}(e.ImageFormatEnum||(e.ImageFormatEnum={})),function(t){t[t.Lossless=0]="Lossless",t[t.Lossy=1]="Lossy"}(e.ImageCompressionEnum||(e.ImageCompressionEnum={}))},function(t,e,n){"use strict";e.__esModule=!0,e.getParserAdapter=function(){var t;if(!(t=new(n(105).BrowserRichTextParser)))throw Error("Invalid or unsupported parser adapter");return t}},function(t,e,n){"use strict";function r(t){this.message=t}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,t.exports=r},function(t,e,n){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},function(t,e,n){"use strict";var r=n(118);t.exports=function(t,e,n,i,o){var u=new Error(t);return r(u,e,n,i,o)}},function(t,e,n){"use strict";var r=n(14),i=n(119),o=n(117),u=n(116),s=n(115),c=n(62),a="undefined"!=typeof window&&window.btoa&&window.btoa.bind(window)||n(114);t.exports=function(t){return new Promise(function(e,f){var l=t.data,p=t.headers;r.isFormData(l)&&delete p["Content-Type"];var h=new XMLHttpRequest,d="onreadystatechange",y=!1;if("undefined"==typeof window||!window.XDomainRequest||"withCredentials"in h||s(t.url)||(h=new window.XDomainRequest,d="onload",y=!0,h.onprogress=function(){},h.ontimeout=function(){}),t.auth){var v=t.auth.username||"",m=t.auth.password||"";p.Authorization="Basic "+a(v+":"+m)}if(h.open(t.method.toUpperCase(),o(t.url,t.params,t.paramsSerializer),!0),h.timeout=t.timeout,h[d]=function(){if(h&&(4===h.readyState||y)&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in h?u(h.getAllResponseHeaders()):null,r={data:t.responseType&&"text"!==t.responseType?h.response:h.responseText,status:1223===h.status?204:h.status,statusText:1223===h.status?"No Content":h.statusText,headers:n,config:t,request:h};i(e,f,r),h=null}},h.onerror=function(){f(c("Network Error",t,null,h)),h=null},h.ontimeout=function(){f(c("timeout of "+t.timeout+"ms exceeded",t,"ECONNABORTED",h)),h=null},r.isStandardBrowserEnv()){var b=n(113),g=(t.withCredentials||s(t.url))&&t.xsrfCookieName?b.read(t.xsrfCookieName):void 0;g&&(p[t.xsrfHeaderName]=g)}if("setRequestHeader"in h&&r.forEach(p,function(t,e){void 0===l&&"content-type"===e.toLowerCase()?delete p[e]:h.setRequestHeader(e,t)}),t.withCredentials&&(h.withCredentials=!0),t.responseType)try{h.responseType=t.responseType}catch(e){if("json"!==t.responseType)throw e}"function"==typeof t.onDownloadProgress&&h.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&h.upload&&h.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then(function(t){h&&(h.abort(),f(t),h=null)}),void 0===l&&(l=null),h.send(l)})}},function(t,e,n){"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return t.apply(e,n)}}},function(t,e,n){"use strict";e.__esModule=!0;var r=n(41),i=n(42),o=function(){function t(){var t=this;this.strategy=function(e){return function(n){return n.pipe(i.mergeMap(function(n,i){var o=i+1;if(o>e.maxRetryAttempts||e.excludedStatusCodes.find(function(t){return t===n.status}))return r.throwError(n);var u=t.getRetryTimeout(o);return t.debugLogAttempt(o,u),r.timer(u)}))}}}return t.prototype.getRetryTimeout=function(t){return 100*Math.pow(2,t)},t.prototype.debugLogAttempt=function(t,e){console.warn("Attempt "+t+": retrying in "+e+"ms")},t}();e.DeliveryRetryStrategy=o,e.deliveryRetryStrategy=new o},function(t,e,n){"use strict";e.__esModule=!0;var r=n(12),i=function(){function t(){}return t.prototype.mapSingleType=function(t){return this.mapType(t)},t.prototype.mapMultipleTypes=function(t){var e=this;return t.types.map(function(t){return e.mapType(t)})},t.prototype.mapType=function(t){if(!t)throw Error("Cannot map type");if(!t.elements)throw Error("Cannot map type elements");var e=new r.ContentTypeSystemAttributes({codename:t.system.codename,id:t.system.id,name:t.system.name,lastModified:t.system.last_modified}),n=[];return Object.getOwnPropertyNames(t.elements).forEach(function(e){var i=t.elements[e];if(!i)throw Error("Cannot find element '"+e+"' on type '"+t+"'");var o=e,u=i.taxonomy_group,s=[],c=i.options;if(c){if(!Array.isArray(c))throw Error("Content type 'options' property has to be an array");c.forEach(function(t){s.push(new r.ElementOption(t.name,t.codename))})}n.push(new r.Element({codename:o,taxonomyGroup:u,options:s,name:i.name,type:i.type}))}),new r.ContentType({system:e,elements:n})},t}();e.TypeMapper=i},function(t,e,n){"use strict";e.__esModule=!0;var r=n(12),i=function(){function t(){}return t.prototype.mapTaxonomy=function(t,e){if(!t)throw Error("Cannot map taxonomy due to missing 'system' property");if(!e)throw Error("Cannot map taxonomy due to missing 'terms' property");if(!Array.isArray(e))throw Error("Cannot map terms because no terms array was provided");var n=new r.TaxonomySystemAttributes({name:t.name,codename:t.codename,id:t.id,lastModified:t.last_modified}),i=this.mapTaxonomyTerms(e);return new r.TaxonomyGroup(n,i)},t.prototype.mapTaxonomies=function(t){var e=this;if(!t)throw Error("Cannot map taxonomy due to missing 'taxonomies' property");if(!Array.isArray(t))throw Error("Cannot map taxonomies because the 'taxonomies' property is not an array ");var n=[];return t.forEach(function(t){n.push(e.mapTaxonomy(t.system,t.terms))}),n},t.prototype.mapTaxonomyTerms=function(t){var e=this;if(0===t.length)return[];var n=[];return t.forEach(function(t){var i=new r.TaxonomyTerms({codename:t.codename,name:t.name,terms:e.mapTaxonomyTerms(t.terms)});n.push(i)}),n},t}();e.TaxonomyMapper=i},function(t,e,n){"use strict";e.__esModule=!0;var r=n(44),i=function(){function t(t,e){this.config=t,this.richTextHtmlParser=e,this.fieldMapper=new r.FieldMapper(t,e)}return t.prototype.mapSingleItem=function(t,e){return this.mapItem(t.item,t.modular_content,e)},t.prototype.mapMultipleItems=function(t,e){var n=this;return t.items.map(function(r){return n.mapItem(r,t.modular_content,e)})},t.prototype.mapItem=function(t,e,n){if(null==t)throw Error("Could not map item because its undefined");return this.fieldMapper.mapFields(t,e,n,[])},t}();e.ItemMapper=i},function(t,e,n){"use strict";e.__esModule=!0;var r=n(81),i=n(80),o=function(){function t(){}return t.prototype.hasTypeResolver=function(t,e){return!!e.find(function(e){return e.type===t})},t.prototype.createContentItem=function(t){var e=new i.ContentItem;return e.system=new r.ContentItemSystemAttributes({name:t.system.name,codename:t.system.codename,id:t.system.id,lastModified:t.system.last_modified,language:t.system.language,type:t.system.type,sitemapLocations:t.system.sitemap_locations}),e},t.prototype.createTypedObj=function(t,e,n){var i=this.createEmptyTypedObj(t,n);if(!i)throw Error("Cannot find resolver for type '"+t+"'. This error means that no class was registered as TypeResolver");return i.system=new r.ContentItemSystemAttributes({name:e.system.name,codename:e.system.codename,id:e.system.id,lastModified:e.system.last_modified,language:e.system.language,type:e.system.type,sitemapLocations:e.system.sitemap_locations}),i},t.prototype.createEmptyTypedObj=function(t,e){if(!t)throw Error("Cannot resolve type because no type name was provided");var n=e.find(function(e){return e.type===t});if(n)return n.resolve()},t}();e.StronglyTypedResolver=o,e.stronglyTypedResolver=new o},function(t,e,n){"use strict";function r(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}e.__esModule=!0,r(n(69)),r(n(129)),r(n(128))},function(t,e,n){"use strict";e.__esModule=!0,function(t){t.Text="text",t.Number="number",t.ModularContent="modular_content",t.Asset="asset",t.DateTime="date_time",t.RichText="rich_text",t.MultipleChoice="multiple_choice",t.UrlSlug="url_slug",t.Taxonomy="taxonomy"}(e.FieldType||(e.FieldType={}))},function(t,e,n){"use strict";e.__esModule=!0,function(t){var e=function(){return function(t,e,n,r,i){this.name=t,this.type=e,this.size=n,this.description=r,this.url=i}}();t.AssetModel=e;var n=function(){return function(t,e){this.name=t,this.codename=e}}();t.MultipleChoiceOption=n;var r=function(){return function(t,e){this.name=t,this.codename=e}}();t.TaxonomyTerm=r}(e.FieldModels||(e.FieldModels={}))},function(t,e){var n,r,i=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function u(){throw new Error("clearTimeout has not been defined")}function s(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(t){n=o}try{r="function"==typeof clearTimeout?clearTimeout:u}catch(t){r=u}}();var c,a=[],f=!1,l=-1;function p(){f&&c&&(f=!1,c.length?a=c.concat(a):l=-1,a.length&&h())}function h(){if(!f){var t=s(p);f=!0;for(var e=a.length;e;){for(c=a,a=[];++l<e;)c&&c[l].run();l=-1,e=a.length}c=null,f=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===u||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function d(t,e){this.fun=t,this.array=e}function y(){}i.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];a.push(new d(t,e)),1!==a.length||f||s(h)},d.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=y,i.addListener=y,i.once=y,i.off=y,i.removeListener=y,i.removeAllListeners=y,i.emit=y,i.prependListener=y,i.prependOnceListener=y,i.listeners=function(t){return[]},i.binding=function(t){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(t){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(t,e,n){"use strict";function r(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}e.__esModule=!0,r(n(133)),r(n(72)),r(n(71)),r(n(130))},function(t,e,n){"use strict";e.__esModule=!0;var r=n(12),i=function(){function t(){}return t.prototype.mapElement=function(t){if(!t)throw Error("Invalid response for mapping element");return new r.Element({codename:t.codename,name:t.name,type:t.type,options:t.options?t.options:[],taxonomyGroup:t.taxonomy_group})},t}();e.ElementMapper=i},function(t,e,n){"use strict";n.d(e,"b",function(){return c}),n.d(e,"a",function(){return p});var r=n(0),i=n(1),o=n(6),u=n(2),s=n(7);function c(t,e,n,r){return function(i){return i.lift(new a(t,e,n,r))}}var a=function(){function t(t,e,n,r){this.keySelector=t,this.elementSelector=e,this.durationSelector=n,this.subjectSelector=r}return t.prototype.call=function(t,e){return e.subscribe(new f(t,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))},t}(),f=function(t){function e(e,n,r,i,o){var u=t.call(this,e)||this;return u.keySelector=n,u.elementSelector=r,u.durationSelector=i,u.subjectSelector=o,u.groups=null,u.attemptedToUnsubscribe=!1,u.count=0,u}return r.a(e,t),e.prototype._next=function(t){var e;try{e=this.keySelector(t)}catch(t){return void this.error(t)}this._group(t,e)},e.prototype._group=function(t,e){var n=this.groups;n||(n=this.groups=new Map);var r,i=n.get(e);if(this.elementSelector)try{r=this.elementSelector(t)}catch(t){this.error(t)}else r=t;if(!i){i=this.subjectSelector?this.subjectSelector():new s.a,n.set(e,i);var o=new p(e,i,this);if(this.destination.next(o),this.durationSelector){var u=void 0;try{u=this.durationSelector(new p(e,i))}catch(t){return void this.error(t)}this.add(u.subscribe(new l(e,i,this)))}}i.closed||i.next(r)},e.prototype._error=function(t){var e=this.groups;e&&(e.forEach(function(e,n){e.error(t)}),e.clear()),this.destination.error(t)},e.prototype._complete=function(){var t=this.groups;t&&(t.forEach(function(t,e){t.complete()}),t.clear()),this.destination.complete()},e.prototype.removeGroup=function(t){this.groups.delete(t)},e.prototype.unsubscribe=function(){this.closed||(this.attemptedToUnsubscribe=!0,0===this.count&&t.prototype.unsubscribe.call(this))},e}(i.a),l=function(t){function e(e,n,r){var i=t.call(this,n)||this;return i.key=e,i.group=n,i.parent=r,i}return r.a(e,t),e.prototype._next=function(t){this.complete()},e.prototype._unsubscribe=function(){var t=this.parent,e=this.key;this.key=this.parent=null,t&&t.removeGroup(e)},e}(i.a),p=function(t){function e(e,n,r){var i=t.call(this)||this;return i.key=e,i.groupSubject=n,i.refCountSubscription=r,i}return r.a(e,t),e.prototype._subscribe=function(t){var e=new o.a,n=this.refCountSubscription,r=this.groupSubject;return n&&!n.closed&&e.add(new h(n)),e.add(r.subscribe(t)),e},e}(u.a),h=function(t){function e(e){var n=t.call(this)||this;return n.parent=e,e.count++,n}return r.a(e,t),e.prototype.unsubscribe=function(){var e=this.parent;e.closed||this.closed||(t.prototype.unsubscribe.call(this),e.count-=1,0===e.count&&e.attemptedToUnsubscribe&&e.unsubscribe())},e}(o.a)},function(t,e,n){"use strict";function r(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}e.__esModule=!0,r(n(135)),r(n(126))},function(t,e,n){"use strict";e.__esModule=!0,e.sdkInfo={host:"npmjs.com",version:"1.0.4",name:"banjo-kentico-cloud-delivery"}},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});e.__esModule=!0;var o=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.config=e,r.queryService=n,r._queryConfig={},r}return i(e,t),e.prototype.queryConfig=function(t){return this._queryConfig=t,this},e.prototype.getHeaders=function(){return this.queryService.getHeaders(this._queryConfig)},e.prototype.getElementQueryUrl=function(e,n){var r="/types/"+e+"/elements/"+n;return t.prototype.resolveUrlInternal.call(this,r)},e.prototype.runElementQuery=function(t,e){return this.queryService.getElement(this.getElementQueryUrl(t,e),this._queryConfig)},e}(n(33).BaseQuery);e.BaseElementQuery=o},function(t,e,n){"use strict";e.__esModule=!0;var r=function(){return function(t){this.data=t,t&&Object.assign(this,t)}}();e.ContentItem=r},function(t,e,n){"use strict";e.__esModule=!0;var r=function(){return function(t){Object.assign(this,t)}}();e.ContentItemSystemAttributes=r},function(t,e,n){"use strict";e.__esModule=!0,function(t){t[t.asc=0]="asc",t[t.desc=1]="desc"}(e.SortOrder||(e.SortOrder={}))},function(t,e,n){"use strict";function r(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}e.__esModule=!0,r(n(33)),r(n(79)),r(n(142)),r(n(47)),r(n(141)),r(n(140)),r(n(46)),r(n(139)),r(n(138)),r(n(45)),r(n(137)),r(n(136))},function(t,e,n){"use strict";var r=n(0),i=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return r.a(e,t),e.prototype.schedule=function(e,n){return void 0===n&&(n=0),n>0?t.prototype.schedule.call(this,e,n):(this.delay=n,this.state=e,this.scheduler.flush(this),this)},e.prototype.execute=function(e,n){return n>0||this.closed?t.prototype.execute.call(this,e,n):this._execute(e,n)},e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0?t.prototype.requestAsyncId.call(this,e,n,r):e.flush(this)},e}(n(36).a),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.a(e,t),e}(n(37).a);n.d(e,"a",function(){return u});var u=new o(i)},function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n(2),i=n(9),o=n(29),u=n(10);function s(t,e,n){void 0===t&&(t=0);var s=-1;return Object(o.a)(e)?s=Number(e)<1?1:Number(e):Object(u.a)(e)&&(n=e),Object(u.a)(n)||(n=i.a),new r.a(function(e){var r=Object(o.a)(t)?t:+t-n.now();return n.schedule(c,r,{index:0,period:s,subscriber:e})})}function c(t){var e=t.index,n=t.period,r=t.subscriber;if(r.next(e),!r.closed){if(-1===n)return r.complete();t.index=e+1,this.schedule(t,n)}}},function(t,e,n){"use strict";n.d(e,"a",function(){return c});var r=n(0),i=n(11),o=n(20),u=n(4),s=n(3);function c(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(1===t.length){if(!Object(i.a)(t[0]))return t[0];t=t[0]}return Object(o.a)(t,void 0).lift(new a)}var a=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new f(t))},t}(),f=function(t){function e(e){var n=t.call(this,e)||this;return n.hasFirst=!1,n.observables=[],n.subscriptions=[],n}return r.a(e,t),e.prototype._next=function(t){this.observables.push(t)},e.prototype._complete=function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{for(var n=0;n<e&&!this.hasFirst;n++){var r=t[n],i=Object(s.a)(this,r,r,n);this.subscriptions&&this.subscriptions.push(i),this.add(i)}this.observables=null}},e.prototype.notifyNext=function(t,e,n,r,i){if(!this.hasFirst){this.hasFirst=!0;for(var o=0;o<this.subscriptions.length;o++)if(o!==n){var u=this.subscriptions[o];u.unsubscribe(),this.remove(u)}this.subscriptions=null}this.destination.next(e)},e}(u.a)},function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n(2),i=n(10),o=n(50),u=n(20);function s(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=Number.POSITIVE_INFINITY,s=null,c=t[t.length-1];return Object(i.a)(c)?(s=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof c&&(n=t.pop()),null===s&&1===t.length&&t[0]instanceof r.a?t[0]:Object(o.a)(n)(Object(u.a)(t,s))}},function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n(50);function i(){return Object(r.a)(1)}},function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n(0),i=function(t){function e(){var n=t.call(this,"Timeout has occurred")||this;return n.name="TimeoutError",Object.setPrototypeOf(n,e.prototype),n}return r.a(e,t),e}(Error)},function(t,e,n){"use strict";n.d(e,"b",function(){return u}),n.d(e,"a",function(){return c});var r=n(0),i=n(1),o=n(19);function u(t,e){return void 0===e&&(e=0),function(n){return n.lift(new s(t,e))}}var s=function(){function t(t,e){void 0===e&&(e=0),this.scheduler=t,this.delay=e}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.scheduler,this.delay))},t}(),c=function(t){function e(e,n,r){void 0===r&&(r=0);var i=t.call(this,e)||this;return i.scheduler=n,i.delay=r,i}return r.a(e,t),e.dispatch=function(t){var e=t.notification,n=t.destination;e.observe(n),this.unsubscribe()},e.prototype.scheduleMessage=function(t){this.add(this.scheduler.schedule(e.dispatch,this.delay,new a(t,this.destination)))},e.prototype._next=function(t){this.scheduleMessage(o.a.createNext(t))},e.prototype._error=function(t){this.scheduleMessage(o.a.createError(t))},e.prototype._complete=function(){this.scheduleMessage(o.a.createComplete())},e}(i.a),a=function(){return function(t,e){this.notification=t,this.destination=e}}()},function(t,e,n){"use strict";n.d(e,"a",function(){return u});var r=n(0),i=n(7),o=n(22),u=function(t){function e(e){var n=t.call(this)||this;return n._value=e,n}return r.a(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),e.prototype._subscribe=function(e){var n=t.prototype._subscribe.call(this,e);return n&&!n.closed&&e.next(this._value),n},e.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new o.a;return this._value},e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)},e}(i.a)},function(t,e,n){"use strict";n.d(e,"a",function(){return a}),n.d(e,"b",function(){return l});var r=n(0),i=n(7),o=n(2),u=n(1),s=n(6),c=n(56),a=function(t){function e(e,n){var r=t.call(this)||this;return r.source=e,r.subjectFactory=n,r._refCount=0,r._isComplete=!1,r}return r.a(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new s.a).add(this.source.subscribe(new p(this.getSubject(),this))),t.closed?(this._connection=null,t=s.a.EMPTY):this._connection=t),t},e.prototype.refCount=function(){return Object(c.a)()(this)},e}(o.a),f=a.prototype,l={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:f._subscribe},_isComplete:{value:f._isComplete,writable:!0},getSubject:{value:f.getSubject},connect:{value:f.connect},refCount:{value:f.refCount}},p=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return r.a(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(i.b);u.a},function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n(28),i=function(t){return function(e){var n=t[r.a]();if("function"!=typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(e)}}},function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n(23),i=function(t){return function(e){for(var n=t[r.a]();;){var i=n.next();if(i.done){e.complete();break}if(e.next(i.value),e.closed)break}return"function"==typeof n.return&&e.add(function(){n.return&&n.return()}),e}}},function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n(32),i=function(t){return function(e){return t.then(function(t){e.closed||(e.next(t),e.complete())},function(t){return e.error(t)}).then(null,r.a),e}}},function(t,e,n){"use strict";function r(t){return t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}n.d(e,"a",function(){return r})},function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=function(t){return t&&"number"==typeof t.length&&"function"!=typeof t}},function(t,e,n){"use strict";n.d(e,"a",function(){return h});var r=n(2),i=n(99),o=n(95),u=n(94),s=n(93),c=n(97),a=n(96),f=n(101),l=n(23),p=n(28),h=function(t){if(t instanceof r.a)return function(e){return t._isScalar?(e.next(t.value),void e.complete()):t.subscribe(e)};if(Object(c.a)(t))return Object(i.a)(t);if(Object(a.a)(t))return Object(o.a)(t);if(t&&"function"==typeof t[l.a])return Object(u.a)(t);if(t&&"function"==typeof t[p.a])return Object(s.a)(t);var e=Object(f.a)(t)?"an invalid object":"'"+t+"'";throw new TypeError("You provided "+e+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.")}},function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=function(t){return function(e){for(var n=0,r=t.length;n<r&&!e.closed;n++)e.next(t[n]);e.closed||e.complete()}}},function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n(0),i=function(t){function e(e,n){var r=t.call(this)||this;return r.subject=e,r.subscriber=n,r.closed=!1,r}return r.a(e,t),e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},e}(n(6).a)},function(t,e,n){"use strict";function r(t){return null!=t&&"object"==typeof t}n.d(e,"a",function(){return r})},function(t,e,n){"use strict";e.__esModule=!0;var r=n(12),i=n(58),o=function(){function t(t){this.imageUrl=t,this.queryParams=[]}return t.prototype.withDpr=function(t){return this.queryParams.push(new r.Parameters.QueryParameter("dpr",t.toString())),this},t.prototype.withRectangleCrop=function(t,e,n,i){return this.queryParams.push(new r.Parameters.QueryParameter("rect",[t,e,n,i].join(","))),this},t.prototype.withFocalPointCrop=function(t,e,n){return this.withFitMode(i.ImageFitModeEnum.Crop),this.queryParams.push(new r.Parameters.QueryParameter("crop","focalpoint")),this.queryParams.push(new r.Parameters.QueryParameter("fp-x",t.toString())),this.queryParams.push(new r.Parameters.QueryParameter("fp-y",e.toString())),this.queryParams.push(new r.Parameters.QueryParameter("fp-z",n.toString())),this},t.prototype.withAutomaticFormat=function(t){return this.queryParams.push(new r.Parameters.QueryParameter("auto",i.ImageFormatEnum.Webp)),t&&this.withFormat(t),this},t.prototype.withFitMode=function(t){return this.queryParams.push(new r.Parameters.QueryParameter("fit",t)),this},t.prototype.withCompression=function(t){return this.queryParams.push(new r.Parameters.QueryParameter("lossless",t===i.ImageCompressionEnum.Lossless?"true":"false")),this},t.prototype.withQuality=function(t){return this.queryParams.push(new r.Parameters.QueryParameter("q",t.toString())),this},t.prototype.withFormat=function(t){return this.queryParams.push(new r.Parameters.QueryParameter("fm",t)),this},t.prototype.withHeight=function(t){return this.queryParams.push(new r.Parameters.QueryParameter("h",t.toString())),this},t.prototype.withWidth=function(t){return this.queryParams.push(new r.Parameters.QueryParameter("w",t.toString())),this},t.prototype.getParams=function(){return this.queryParams},t.prototype.getQueryString=function(){var t="";return this.queryParams.forEach(function(e){t=t.indexOf("?")>-1?t+"&"+e.getParam()+"="+e.getParamValue():t+"?"+e.getParam()+"="+e.getParamValue()}),t},t.prototype.getUrl=function(){return this.imageUrl+this.getQueryString()},t}();e.ImageUrlBuilder=o},function(t,e,n){"use strict";function r(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}e.__esModule=!0,r(n(102)),r(n(58))},function(t,e,n){"use strict";e.__esModule=!0,function(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}(n(59))},function(t,e,n){"use strict";e.__esModule=!0;var r=function(){function t(){this.modularContentWrapperElem="div",this.modularContent={type:"application/kenticocloud",dataType:"data-type",dataCodename:"data-codename"},this.link={nodeName:"a",dataItemId:"data-item-id"}}return t.prototype.resolveRichTextField=function(t,e,n){try{var r=this.createWrapperElement(t),i=this.processRichTextField(r.children,e,n,{links:[],modularContentItems:[]});return{links:i.links,modularContentItems:i.modularContentItems,resolvedHtml:r.innerHTML}}catch(t){throw Error("Parsing HTML failed:"+t)}},t.prototype.createWrapperElement=function(t){var e=document.createElement(this.modularContentWrapperElem);return e.innerHTML=t,e},t.prototype.processRichTextField=function(t,e,n,r){if(t&&0!==t.length)for(var i=0;i<t.length;i++){var o=t[i],u=o.attributes?o.attributes.getNamedItem("type"):void 0;if(o.attributes&&u&&u.value&&u.value.toLowerCase()===this.modularContent.type.toLowerCase()){var s=o.attributes.getNamedItem(this.modularContent.dataCodename),c=o.attributes.getNamedItem(this.modularContent.dataType),a={dataCodename:s?s.value:"",dataType:c?c.value:""};r.modularContentItems.push(a);var f=o.parentElement;if(f){var l=document.createElement(n.modularContentWrapperTag);l.innerHTML=e.getModularContentHtml(a.dataCodename),l.className=n.modularContentWrapperClasses.map(function(t){return t}).join(" "),f.replaceChild(l,o)}else console.warn("Could not replace modular content '"+a.dataCodename+"' of '"+a.dataType+"' because parent node is null. Please report this error if you are seeing this.")}if(o.nodeName.toLowerCase()===this.link.nodeName.toLowerCase()){var p=o.attributes.getNamedItem(this.link.dataItemId);if(p){var h={dataItemId:p?p.value:""};r.links.push(h);var d=e.getLinkUrl(h.dataItemId),y=o.attributes.getNamedItem("href");y?y.value=d:n.enableAdvancedLogging&&console.warn("Cannot set url '"+d+"' because 'href' attribute is not present in the <a> tag. Please report this issue if you are seeing this.")}}o.children&&o.children.length>0&&this.processRichTextField(o.children,e,n,r)}else;return r},t}();e.BrowserRichTextParser=r},function(t,e,n){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},function(t,e,n){"use strict";var r=n(60);function i(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise(function(t){e=t});var n=this;t(function(t){n.reason||(n.reason=new r(t),e(n.reason))})}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var t;return{token:new i(function(e){t=e}),cancel:t}},t.exports=i},function(t,e,n){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},function(t,e,n){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},function(t,e,n){"use strict";var r=n(14);t.exports=function(t,e,n){return r.forEach(n,function(n){t=n(t,e)}),t}},function(t,e,n){"use strict";var r=n(14),i=n(110),o=n(61),u=n(43),s=n(109),c=n(108);function a(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){return a(t),t.baseURL&&!s(t.url)&&(t.url=c(t.baseURL,t.url)),t.headers=t.headers||{},t.data=i(t.data,t.headers,t.transformRequest),t.headers=r.merge(t.headers.common||{},t.headers[t.method]||{},t.headers||{}),r.forEach(["delete","get","head","post","put","patch","common"],function(e){delete t.headers[e]}),(t.adapter||u.adapter)(t).then(function(e){return a(t),e.data=i(e.data,e.headers,t.transformResponse),e},function(e){return o(e)||(a(t),e&&e.response&&(e.response.data=i(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)})}},function(t,e,n){"use strict";var r=n(14);function i(){this.handlers=[]}i.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},i.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},i.prototype.forEach=function(t){r.forEach(this.handlers,function(e){null!==e&&t(e)})},t.exports=i},function(t,e,n){"use strict";var r=n(14);t.exports=r.isStandardBrowserEnv()?{write:function(t,e,n,i,o,u){var s=[];s.push(t+"="+encodeURIComponent(e)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(i)&&s.push("path="+i),r.isString(o)&&s.push("domain="+o),!0===u&&s.push("secure"),document.cookie=s.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(t,e,n){"use strict";var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function i(){this.message="String contains an invalid character"}i.prototype=new Error,i.prototype.code=5,i.prototype.name="InvalidCharacterError",t.exports=function(t){for(var e,n,o=String(t),u="",s=0,c=r;o.charAt(0|s)||(c="=",s%1);u+=c.charAt(63&e>>8-s%1*8)){if((n=o.charCodeAt(s+=.75))>255)throw new i;e=e<<8|n}return u}},function(t,e,n){"use strict";var r=n(14);t.exports=r.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(t){var r=t;return e&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=i(window.location.href),function(e){var n=r.isString(e)?i(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return!0}},function(t,e,n){"use strict";var r=n(14),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,n,o,u={};return t?(r.forEach(t.split("\n"),function(t){if(o=t.indexOf(":"),e=r.trim(t.substr(0,o)).toLowerCase(),n=r.trim(t.substr(o+1)),e){if(u[e]&&i.indexOf(e)>=0)return;u[e]="set-cookie"===e?(u[e]?u[e]:[]).concat([n]):u[e]?u[e]+", "+n:n}}),u):u}},function(t,e,n){"use strict";var r=n(14);function i(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,n){if(!e)return t;var o;if(n)o=n(e);else if(r.isURLSearchParams(e))o=e.toString();else{var u=[];r.forEach(e,function(t,e){null!==t&&void 0!==t&&(r.isArray(t)?e+="[]":t=[t],r.forEach(t,function(t){r.isDate(t)?t=t.toISOString():r.isObject(t)&&(t=JSON.stringify(t)),u.push(i(e)+"="+i(t))}))}),o=u.join("&")}return o&&(t+=(-1===t.indexOf("?")?"?":"&")+o),t}},function(t,e,n){"use strict";t.exports=function(t,e,n,r,i){return t.config=e,n&&(t.code=n),t.request=r,t.response=i,t}},function(t,e,n){"use strict";var r=n(62);t.exports=function(t,e,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?e(r("Request failed with status code "+n.status,n.config,null,n.request,n)):t(n)}},function(t,e,n){"use strict";var r=n(14);t.exports=function(t,e){r.forEach(t,function(n,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[r])})}},function(t,e,n){"use strict";var r=n(43),i=n(14),o=n(112),u=n(111);function s(t){this.defaults=t,this.interceptors={request:new o,response:new o}}s.prototype.request=function(t){"string"==typeof t&&(t=i.merge({url:arguments[0]},arguments[1])),(t=i.merge(r,{method:"get"},this.defaults,t)).method=t.method.toLowerCase();var e=[u,void 0],n=Promise.resolve(t);for(this.interceptors.request.forEach(function(t){e.unshift(t.fulfilled,t.rejected)}),this.interceptors.response.forEach(function(t){e.push(t.fulfilled,t.rejected)});e.length;)n=n.then(e.shift(),e.shift());return n},i.forEach(["delete","get","head","options"],function(t){s.prototype[t]=function(e,n){return this.request(i.merge(n||{},{method:t,url:e}))}}),i.forEach(["post","put","patch"],function(t){s.prototype[t]=function(e,n,r){return this.request(i.merge(r||{},{method:t,url:e,data:n}))}}),t.exports=s},function(t,e){function n(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}
/*!
* Determine if an object is a Buffer
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/
t.exports=function(t){return null!=t&&(n(t)||function(t){return"function"==typeof t.readFloatLE&&"function"==typeof t.slice&&n(t.slice(0,0))}(t)||!!t._isBuffer)}},function(t,e,n){"use strict";var r=n(14),i=n(64),o=n(121),u=n(43);function s(t){var e=new o(t),n=i(o.prototype.request,e);return r.extend(n,o.prototype,e),r.extend(n,e),n}var c=s(u);c.Axios=o,c.create=function(t){return s(r.merge(u,t))},c.Cancel=n(60),c.CancelToken=n(107),c.isCancel=n(61),c.all=function(t){return Promise.all(t)},c.spread=n(106),t.exports=c,t.exports.default=c},function(t,e,n){t.exports=n(123)},function(t,e,n){"use strict";e.__esModule=!0;var r=n(124),i=n(41),o=n(42),u=n(12),s="error_code",c="message",a="request_id",f="specific_code",l=function(){function t(){}return t.prototype.get=function(t,e){return i.from(r.default.get(t,{headers:this.getHeadersJson(e)})).pipe(o.map(function(t){return{data:t.data,response:t}}),o.catchError(function(t){if(t.response){var e=void 0,n=t.response.data;return n[a]&&(e=new u.DeliveryCloudError({requestId:n[a],message:n[c]?n[c]:"",errorCode:n[s]?n[s]:0,specificCode:n[f]?n[f]:0})),i.throwError({message:t.message,originalError:t,cloudError:e})}return t.request,i.throwError({message:t.message,originalError:t})}))},t.prototype.getHeadersJson=function(t){var e={"Content-Type":"application/json"};return t?(t.forEach(function(t){e[t.header]=t.value}),e):e},t}();e.DeliveryHttpService=l},function(t,e,n){"use strict";function r(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}e.__esModule=!0,r(n(65)),r(n(125))},function(t,e,n){"use strict";e.__esModule=!0;var r=n(12),i=n(75),o=n(68),u=n(67),s=n(66),c=function(){function t(t,e){this.config=t,this.richTextHtmlParser=e,this.typeMapper=new s.TypeMapper,this.itemMapper=new o.ItemMapper(t,e),this.taxonomyMapper=new u.TaxonomyMapper,this.elementMapper=new i.ElementMapper}return t.prototype.mapSingleTypeResponse=function(t){var e=t.data,n=this.typeMapper.mapSingleType(e);return new r.TypeResponses.DeliveryTypeResponse(n,this.mapResponseDebug(t))},t.prototype.mapMultipleTypeResponse=function(t){var e=t.data,n=this.typeMapper.mapMultipleTypes(e),i=new r.Pagination({skip:e.pagination.skip,count:e.pagination.count,limit:e.pagination.limit,next_page:e.pagination.next_page});return new r.TypeResponses.DeliveryTypeListingResponse(n,i,this.mapResponseDebug(t))},t.prototype.mapSingleResponse=function(t,e){var n=t.data,i=this.itemMapper.mapSingleItem(n,e);return new r.ItemResponses.DeliveryItemResponse(i,this.mapResponseDebug(t))},t.prototype.mapMultipleResponse=function(t,e){var n=t.data,i=this.itemMapper.mapMultipleItems(n,e),o=new r.Pagination({skip:n.pagination.skip,count:n.pagination.count,limit:n.pagination.limit,next_page:n.pagination.next_page});return new r.ItemResponses.DeliveryItemListingResponse(i,o,this.mapResponseDebug(t))},t.prototype.mapTaxonomyResponse=function(t){var e=t.data,n=this.taxonomyMapper.mapTaxonomy(e.system,e.terms);return new r.TaxonomyResponses.TaxonomyResponse(n,this.mapResponseDebug(t))},t.prototype.mapTaxonomiesResponse=function(t){var e=t.data,n=this.taxonomyMapper.mapTaxonomies(e.taxonomies),i=new r.Pagination({skip:e.pagination.skip,count:e.pagination.count,limit:e.pagination.limit,next_page:e.pagination.next_page});return new r.TaxonomyResponses.TaxonomiesResponse(n,i,this.mapResponseDebug(t))},t.prototype.mapElementResponse=function(t){var e=t.data,n=this.elementMapper.mapElement(e);return new r.ElementResponses.ElementResponse(n,this.mapResponseDebug(t))},t.prototype.mapResponseDebug=function(t){if(!t)throw Error("Cannot map 'debug' model from the response");return{response:t.response}},t}();e.ResponseMapper=c},function(t,e,n){"use strict";e.__esModule=!0;var r=n(12),i=function(){function t(){}return t.prototype.resolveUrl=function(t){if(t.linkResolver)if(t.item){var e=t.linkResolver(new r.Link({urlSlug:t.fieldValue,type:t.type,codename:t.item.system.codename,itemId:t.item.system.id}));if(e)return e;t.enableAdvancedLogging&&console.warn("'linkResolver' is configured, but url resolved for '"+t.item.system.codename+"' item of '"+t.item.system.type+"' type inside '"+t.fieldName+"' field resolved to an undefined url.")}else t.enableAdvancedLogging&&console.warn("Cannot resolve link for field '"+t.fieldName+"' because no item was provided to URL slug field (item may be missing from response)");else t.enableAdvancedLogging&&console.warn("You have to implement 'linkResolver' in your Model class or your query in order to get url of this item")},t}();e.UrlSlugResolver=i,e.urlSlugResolver=new i},function(t,e,n){"use strict";e.__esModule=!0;var r=n(69),i=function(){function t(){this.modularContentobjectType="application/kenticocloud",this.modularContentTagWrapper="div",this.modularContentCodenameAttributeName="data-codename",this.linkTag="a",this.linkContentItemIdAttributeName="data-item-id"}return t.prototype.resolveHtml=function(t,e){var n=this,r={enableAdvancedLogging:e.enableAdvancedLogging,queryConfig:e.queryConfig,modularContentWrapperTag:e.modularContentWrapperTag,modularContentWrapperClasses:e.modularContentWrapperClasses};return e.richTextHtmlParser.resolveRichTextField(t,{getLinkUrl:function(t){return n.getLinkUrl({config:r,links:e.links,itemId:t,typeResolvers:e.typeResolvers})},getModularContentHtml:function(t){return n.getHtmlOfModularContent({itemCodename:t,config:r,modularItems:e.modularItems})}},{enableAdvancedLogging:e.enableAdvancedLogging,queryConfig:e.queryConfig,modularContentWrapperTag:e.modularContentWrapperTag,modularContentWrapperClasses:e.modularContentWrapperClasses}).resolvedHtml},t.prototype.resolveModules=function(t,e){return e.modularItems},t.prototype.getHtmlOfModularContent=function(t){var e=t.modularItems.find(function(e){return e.system.codename===t.itemCodename});if(!e)throw Error("Cannot resolve modular content in 'RichTextField' for '"+t.itemCodename+"' content item");var n=void 0;return t.config.queryConfig.richTextResolver?n=t.config.queryConfig.richTextResolver:e.richTextResolver&&(n=e.richTextResolver),n?n(e):t.config.enableAdvancedLogging?(console.warn("Cannot resolve modular content of '"+e.system.type+"' type in 'RichTextField' because no rich text resolved was configured"),""):""},t.prototype.getLinkUrl=function(t){var e=t.links.find(function(e){return e.itemId===t.itemId});if(!e)return t.config.enableAdvancedLogging&&console.warn("Cannot resolve URL for item '"+t.itemId+"' because no link with this id was found"),"";var n,i=t.config.queryConfig.linkResolver;if(i&&(n=i(e)),!n){var o=r.stronglyTypedResolver.createEmptyTypedObj(e.type,t.typeResolvers);if(o){var u=o.linkResolver;u&&(n=u(e))}else t.config.enableAdvancedLogging&&console.warn("Cannot resolve link for link of '"+e.type+"' type with id '"+e.itemId+"' and url slug '"+e.urlSlug+"'")}return n||(t.config.enableAdvancedLogging&&console.warn("Url for content type '"+e.type+"' with id '"+e.itemId+"' resolved to null/undefined"),"")},t}();e.RichTextResolver=i,e.richTextResolver=new i},function(t,e,n){"use strict";e.__esModule=!0;var r=n(72),i=n(71);!function(t){var e=function(){return function(t,e){this.name=t,this.value=e,this.type=i.FieldType.Text,this.text=this.value}}();t.TextField=e;var n=function(){return function(t,e){var n=this;this.name=t,this.value=e,this.options=[],this.type=i.FieldType.MultipleChoice,this.value&&Array.isArray(this.value)&&this.value.forEach(function(t){var e=t;n.options.push(new r.FieldModels.MultipleChoiceOption(e.name,e.codename))})}}();t.MultipleChoiceField=n;var o=function(){return function(t,e){this.name=t,this.value=e,this.type=i.FieldType.DateTime,this.datetime=new Date(e)}}();t.DateTimeField=o;var u=function(){function t(t,e,n){this.name=t,this.value=e,this.type=i.FieldType.RichText,this.links=[],Object.assign(this,n)}return t.prototype.getHtml=function(){return this.resolvedHtml?this.resolvedHtml:(this.resolvedHtml=this.resolveHtml(),this.resolvedHtml)},t.prototype.getModules=function(){return this.resolvedModules?this.resolvedModules:(this.resolvedModules=this.resolveModules(),this.resolvedModules)},t}();t.RichTextField=u;var s=function(){return function(t,e){this.name=t,this.value=e,this.type=i.FieldType.Number,this.number=e}}();t.NumberField=s;var c=function(){return function(t,e){var n=this;if(this.name=t,this.value=e,this.type=i.FieldType.Asset,this.assets=[],!e)throw Error("Cannot bind assets field because no value was provided");if(!Array.isArray(e))throw Error("Cannot bind assets because the provided value is not an array");this.value.forEach(function(t){n.assets.push(new r.FieldModels.AssetModel(t.name,t.type,t.size,t.description,t.url))})}}();t.AssetsField=c;var a=function(){function t(t,e,n){this.name=t,this.value=e,this.type=i.FieldType.UrlSlug,Object.assign(this,n)}return t.prototype.getUrl=function(){return this.resolvedUrl?this.resolvedUrl:(this.resolvedUrl=this.resolveUrl(),this.resolvedUrl)},t}();t.UrlSlugField=a;var f=function(){return function(t,e,n){var o=this;if(this.name=t,this.value=e,this.taxonomyGroup=n,this.type=i.FieldType.Taxonomy,this.taxonomyTerms=[],!e)throw Error("Cannot map taxonomy field because no value was provided");if(!Array.isArray(e))throw Error("Cannot get taxonomy field because the provided value is not an array");e.forEach(function(t){o.taxonomyTerms.push(new r.FieldModels.TaxonomyTerm(t.name,t.codename))})}}();t.TaxonomyField=f}(e.Fields||(e.Fields={}))},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){(function(t,e){
/*! *****************************************************************************
Copyright (C) Microsoft. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
var n;!function(n){!function(r){var i="object"==typeof e?e:"object"==typeof self?self:"object"==typeof this?this:Function("return this;")(),o=u(n);function u(t,e){return function(n,r){"function"!=typeof t[n]&&Object.defineProperty(t,n,{configurable:!0,writable:!0,value:r}),e&&e(n,r)}}void 0===i.Reflect?i.Reflect=n:o=u(i.Reflect,o),function(e){var n=Object.prototype.hasOwnProperty,r="function"==typeof Symbol,i=r&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",o=r&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",u="function"==typeof Object.create,s={__proto__:[]}instanceof Array,c=!u&&!s,a={create:u?function(){return F(Object.create(null))}:s?function(){return F({__proto__:null})}:function(){return F({})},has:c?function(t,e){return n.call(t,e)}:function(t,e){return e in t},get:c?function(t,e){return n.call(t,e)?t[e]:void 0}:function(t,e){return t[e]}},f=Object.getPrototypeOf(Function),l="object"==typeof t&&t.env&&"true"===t.env.REFLECT_METADATA_USE_MAP_POLYFILL,p=l||"function"!=typeof Map||"function"!=typeof Map.prototype.entries?function(){var t={},e=[],n=function(){function t(t,e,n){this._index=0,this._keys=t,this._values=e,this._selector=n}return t.prototype["@@iterator"]=function(){return this},t.prototype[o]=function(){return this},t.prototype.next=function(){var t=this._index;if(t>=0&&t<this._keys.length){var n=this._selector(this._keys[t],this._values[t]);return t+1>=this._keys.length?(this._index=-1,this._keys=e,this._values=e):this._index++,{value:n,done:!1}}return{value:void 0,done:!0}},t.prototype.throw=function(t){throw this._index>=0&&(this._index=-1,this._keys=e,this._values=e),t},t.prototype.return=function(t){return this._index>=0&&(this._index=-1,this._keys=e,this._values=e),{value:t,done:!0}},t}();return function(){function e(){this._keys=[],this._values=[],this._cacheKey=t,this._cacheIndex=-2}return Object.defineProperty(e.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),e.prototype.has=function(t){return this._find(t,!1)>=0},e.prototype.get=function(t){var e=this._find(t,!1);return e>=0?this._values[e]:void 0},e.prototype.set=function(t,e){var n=this._find(t,!0);return this._values[n]=e,this},e.prototype.delete=function(e){var n=this._find(e,!1);if(n>=0){for(var r=this._keys.length,i=n+1;i<r;i++)this._keys[i-1]=this._keys[i],this._values[i-1]=this._values[i];return this._keys.length--,this._values.length--,e===this._cacheKey&&(this._cacheKey=t,this._cacheIndex=-2),!0}return!1},e.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=t,this._cacheIndex=-2},e.prototype.keys=function(){return new n(this._keys,this._values,r)},e.prototype.values=function(){return new n(this._keys,this._values,i)},e.prototype.entries=function(){return new n(this._keys,this._values,u)},e.prototype["@@iterator"]=function(){return this.entries()},e.prototype[o]=function(){return this.entries()},e.prototype._find=function(t,e){return this._cacheKey!==t&&(this._cacheIndex=this._keys.indexOf(this._cacheKey=t)),this._cacheIndex<0&&e&&(this._cacheIndex=this._keys.length,this._keys.push(t),this._values.push(void 0)),this._cacheIndex},e}();function r(t,e){return t}function i(t,e){return e}function u(t,e){return[t,e]}}():Map,h=l||"function"!=typeof Set||"function"!=typeof Set.prototype.entries?function(){function t(){this._map=new p}return Object.defineProperty(t.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),t.prototype.has=function(t){return this._map.has(t)},t.prototype.add=function(t){return this._map.set(t,t),this},t.prototype.delete=function(t){return this._map.delete(t)},t.prototype.clear=function(){this._map.clear()},t.prototype.keys=function(){return this._map.keys()},t.prototype.values=function(){return this._map.values()},t.prototype.entries=function(){return this._map.entries()},t.prototype["@@iterator"]=function(){return this.keys()},t.prototype[o]=function(){return this.keys()},t}():Set,d=new(l||"function"!=typeof WeakMap?function(){var t=16,e=a.create(),r=i();return function(){function t(){this._key=i()}return t.prototype.has=function(t){var e=o(t,!1);return void 0!==e&&a.has(e,this._key)},t.prototype.get=function(t){var e=o(t,!1);return void 0!==e?a.get(e,this._key):void 0},t.prototype.set=function(t,e){var n=o(t,!0);return n[this._key]=e,this},t.prototype.delete=function(t){var e=o(t,!1);return void 0!==e&&delete e[this._key]},t.prototype.clear=function(){this._key=i()},t}();function i(){var t;do{t="@@WeakMap@@"+s()}while(a.has(e,t));return e[t]=!0,t}function o(t,e){if(!n.call(t,r)){if(!e)return;Object.defineProperty(t,r,{value:a.create()})}return t[r]}function u(t,e){for(var n=0;n<e;++n)t[n]=255*Math.random()|0;return t}function s(){var e=function(t){if("function"==typeof Uint8Array)return"undefined"!=typeof crypto?crypto.getRandomValues(new Uint8Array(t)):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(new Uint8Array(t)):u(new Uint8Array(t),t);return u(new Array(t),t)}(t);e[6]=79&e[6]|64,e[8]=191&e[8]|128;for(var n="",r=0;r<t;++r){var i=e[r];4!==r&&6!==r&&8!==r||(n+="-"),i<16&&(n+="0"),n+=i.toString(16).toLowerCase()}return n}}():WeakMap);function y(t,e,n){var r=d.get(t);if(_(r)){if(!n)return;r=new p,d.set(t,r)}var i=r.get(e);if(_(i)){if(!n)return;i=new p,r.set(e,i)}return i}function v(t,e,n){var r=y(e,n,!1);return!_(r)&&!!r.has(t)}function m(t,e,n){var r=y(e,n,!1);if(!_(r))return r.get(t)}function b(t,e,n,r){var i=y(n,r,!0);i.set(t,e)}function g(t,e){var n=[],r=y(t,e,!1);if(_(r))return n;for(var i=r.keys(),u=function(t){var e=P(t,o);if(!C(e))throw new TypeError;var n=e.call(t);if(!S(n))throw new TypeError;return n}(i),s=0;;){var c=I(u);if(!c)return n.length=s,n;var a=c.value;try{n[s]=a}catch(t){try{M(u)}finally{throw t}}s++}}function w(t){if(null===t)return 1;switch(typeof t){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===t?1:6;default:return 6}}function _(t){return void 0===t}function x(t){return null===t}function S(t){return"object"==typeof t?null!==t:"function"==typeof t}function T(t,e){switch(w(t)){case 0:case 1:case 2:case 3:case 4:case 5:return t}var n=3===e?"string":5===e?"number":"default",r=P(t,i);if(void 0!==r){var o=r.call(t,n);if(S(o))throw new TypeError;return o}return function(t,e){if("string"===e){var n=t.toString;if(C(n)){var r=n.call(t);if(!S(r))return r}var i=t.valueOf;if(C(i)){var r=i.call(t);if(!S(r))return r}}else{var i=t.valueOf;if(C(i)){var r=i.call(t);if(!S(r))return r}var o=t.toString;if(C(o)){var r=o.call(t);if(!S(r))return r}}throw new TypeError}(t,"default"===n?"number":n)}function O(t){var e=T(t,3);return"symbol"==typeof e?e:function(t){return""+t}(e)}function E(t){return Array.isArray?Array.isArray(t):t instanceof Object?t instanceof Array:"[object Array]"===Object.prototype.toString.call(t)}function C(t){return"function"==typeof t}function j(t){return"function"==typeof t}function P(t,e){var n=t[e];if(void 0!==n&&null!==n){if(!C(n))throw new TypeError;return n}}function I(t){var e=t.next();return!e.done&&e}function M(t){var e=t.return;e&&e.call(t)}function A(t){var e=Object.getPrototypeOf(t);if("function"!=typeof t||t===f)return e;if(e!==f)return e;var n=t.prototype,r=n&&Object.getPrototypeOf(n);if(null==r||r===Object.prototype)return e;var i=r.constructor;return"function"!=typeof i?e:i===t?e:i}function F(t){return t.__=void 0,delete t.__,t}e("decorate",function(t,e,n,r){if(_(n)){if(!E(t))throw new TypeError;if(!j(e))throw new TypeError;return function(t,e){for(var n=t.length-1;n>=0;--n){var r=t[n],i=r(e);if(!_(i)&&!x(i)){if(!j(i))throw new TypeError;e=i}}return e}(t,e)}if(!E(t))throw new TypeError;if(!S(e))throw new TypeError;if(!S(r)&&!_(r)&&!x(r))throw new TypeError;return x(r)&&(r=void 0),n=O(n),function(t,e,n,r){for(var i=t.length-1;i>=0;--i){var o=t[i],u=o(e,n,r);if(!_(u)&&!x(u)){if(!S(u))throw new TypeError;r=u}}return r}(t,e,n,r)}),e("metadata",function(t,e){return function(n,r){if(!S(n))throw new TypeError;if(!_(r)&&!function(t){switch(w(t)){case 3:case 4:return!0;default:return!1}}(r))throw new TypeError;b(t,e,n,r)}}),e("defineMetadata",function(t,e,n,r){if(!S(n))throw new TypeError;_(r)||(r=O(r));return b(t,e,n,r)}),e("hasMetadata",function(t,e,n){if(!S(e))throw new TypeError;_(n)||(n=O(n));return function t(e,n,r){var i=v(e,n,r);if(i)return!0;var o=A(n);if(!x(o))return t(e,o,r);return!1}(t,e,n)}),e("hasOwnMetadata",function(t,e,n){if(!S(e))throw new TypeError;_(n)||(n=O(n));return v(t,e,n)}),e("getMetadata",function(t,e,n){if(!S(e))throw new TypeError;_(n)||(n=O(n));return function t(e,n,r){var i=v(e,n,r);if(i)return m(e,n,r);var o=A(n);if(!x(o))return t(e,o,r);return}(t,e,n)}),e("getOwnMetadata",function(t,e,n){if(!S(e))throw new TypeError;_(n)||(n=O(n));return m(t,e,n)}),e("getMetadataKeys",function(t,e){if(!S(t))throw new TypeError;_(e)||(e=O(e));return function t(e,n){var r=g(e,n);var i=A(e);if(null===i)return r;var o=t(i,n);if(o.length<=0)return r;if(r.length<=0)return o;var u=new h;var s=[];for(var c=0,a=r;c<a.length;c++){var f=a[c],l=u.has(f);l||(u.add(f),s.push(f))}for(var p=0,d=o;p<d.length;p++){var f=d[p],l=u.has(f);l||(u.add(f),s.push(f))}return s}(t,e)}),e("getOwnMetadataKeys",function(t,e){if(!S(t))throw new TypeError;_(e)||(e=O(e));return g(t,e)}),e("deleteMetadata",function(t,e,n){if(!S(e))throw new TypeError;_(n)||(n=O(n));var r=y(e,n,!1);if(_(r))return!1;if(!r.delete(t))return!1;if(r.size>0)return!0;var i=d.get(e);return i.delete(n),i.size>0||(d.delete(e),!0)})}(o)}()}(n||(n={}))}).call(this,n(73),n(131))},function(t,e,n){"use strict";e.__esModule=!0,n(132),function(t){var e=Symbol("codename"),n=function(t){return e.toString()+":"+t};t.getPropertyName=function(t,e){return Reflect.getMetadata(n(e),t)},t.codename=function(t){return function(e,r){Reflect.defineMetadata(n(t),r,e)}}}(e.FieldDecorators||(e.FieldDecorators={}))},function(t,e,n){"use strict";e.__esModule=!0;var r=n(74),i=n(12),o=n(70),u=function(){function t(t,e){this.config=t,this.richTextHtmlParser=e,this.defaultModularContentWrapperTag="p",this.defaultModularContentWrapperClasses=["kc-modular-item-wrapper"]}return t.prototype.mapFields=function(t,e,n,i){var u=this;if(!t)throw Error("Cannot map fields because item is not defined");if(!t.system)throw Error("Cannot map item because it does not contain system attributes. This is an essential field and every item should have one.");if(!t.elements)throw Error("Cannot map elements of item with codename '"+t.system.codename+"'");if(!i)throw Error("ProcessedItems need to be initialized");if(!Array.isArray(i))throw Error("ProcessedItems need to be an array of 'IContentItems'");var s,c=Object.getOwnPropertyNames(t.elements);return s=this.config.typeResolvers&&o.stronglyTypedResolver.hasTypeResolver(t.system.type,this.config.typeResolvers)?o.stronglyTypedResolver.createTypedObj(t.system.type,t,this.config.typeResolvers):o.stronglyTypedResolver.createContentItem(t),i.find(function(e){return e.system.codename===t.system.codename})||i.push(s),c.forEach(function(o){var c,a=t.elements[o];s.propertyResolver&&(c=s.propertyResolver(o)),c||(c=r.FieldDecorators.getPropertyName(s,o)),c||(c=o),s[c]=u.mapField(a,e,s,n,i)}),s},t.prototype.mapField=function(t,e,n,i,o){var u=t.type.toLowerCase();if(u===r.FieldType.ModularContent.toString())return this.mapModularField(t,e,i,o);if(u===r.FieldType.Text.toLowerCase())return this.mapTextField(t);if(u===r.FieldType.Asset.toLowerCase())return this.mapAssetsField(t);if(u===r.FieldType.Number.toLowerCase())return this.mapNumberField(t);if(u===r.FieldType.MultipleChoice.toLowerCase())return this.mapMultipleChoiceField(t);if(u===r.FieldType.DateTime.toLowerCase())return this.mapDateTimeField(t);if(u===r.FieldType.RichText.toLowerCase())return this.mapRichTextField(t,e,i,o);if(u===r.FieldType.UrlSlug.toLowerCase())return this.mapUrlSlugField(t,n,i);if(u===r.FieldType.Taxonomy.toLowerCase())return this.mapTaxonomyField(t);var s="Unsupported field type '"+t.type+"'";throw Error(s)},t.prototype.mapRichTextField=function(t,e,n,i){var u=this,s=[];t.modular_content&&Array.isArray(t.modular_content)&&t.modular_content.forEach(function(r){if(!e[r])throw Error("Modular content item with codename '"+r+"' is not present in Delivery response.\n This modular item was requested by '"+t.name+"' field.\n Error can usually be solved by increasing 'Depth' parameter of your query.");var o=u.mapFields(e[r],e,n,i);null!=o&&s.push(o)});var c=this.mapRichTextLinks(t.links);return new r.Fields.RichTextField(t.name,t.value,{resolveHtml:function(){return o.richTextResolver.resolveHtml(t.value,{enableAdvancedLogging:!!u.config.enableAdvancedLogging&&u.config.enableAdvancedLogging,typeResolvers:u.config.typeResolvers?u.config.typeResolvers:[],richTextHtmlParser:u.richTextHtmlParser,modularItems:s,links:c,queryConfig:n,modularContentWrapperTag:u.config.modularContentResolver&&u.config.modularContentResolver.modularContentWrapperTag?u.config.modularContentResolver.modularContentWrapperTag:u.defaultModularContentWrapperTag,modularContentWrapperClasses:u.config.modularContentResolver&&u.config.modularContentResolver.modularContentWrapperClasses?u.config.modularContentResolver.modularContentWrapperClasses:u.defaultModularContentWrapperClasses})},resolveModules:function(){return o.richTextResolver.resolveModules(t.value,{modularItems:s,links:c})},links:c})},t.prototype.mapDateTimeField=function(t){return new r.Fields.DateTimeField(t.name,t.value)},t.prototype.mapMultipleChoiceField=function(t){return new r.Fields.MultipleChoiceField(t.name,t.value)},t.prototype.mapNumberField=function(t){return new r.Fields.NumberField(t.name,t.value)},t.prototype.mapTextField=function(t){return new r.Fields.TextField(t.name,t.value)},t.prototype.mapAssetsField=function(t){return new r.Fields.AssetsField(t.name,t.value)},t.prototype.mapTaxonomyField=function(t){return new r.Fields.TaxonomyField(t.name,t.value,t.taxonomy_group)},t.prototype.mapUrlSlugField=function(t,e,n){var i=this,u=this.getLinkResolverForUrlSlugField(e,n);return new r.Fields.UrlSlugField(t.name,t.value,{resolveUrl:function(){return o.urlSlugResolver.resolveUrl({fieldName:t.name,type:t.type,fieldValue:t.value,item:e,enableAdvancedLogging:!!i.config.enableAdvancedLogging&&i.config.enableAdvancedLogging,linkResolver:u})}})},t.prototype.mapModularField=function(t,e,n,r){var i=this;if(!t)return this.config.enableAdvancedLogging&&console.warn("Cannot map modular content field because field does not exist"),null;if(!t.value)return this.config.enableAdvancedLogging&&console.warn("Cannot map modular content of '"+t.name+"' because its value does not exist"),null;var o=[];return t.value.forEach(function(u){var s=e[u];if(s||i.config.enableAdvancedLogging&&console.warn("Cannot map '"+t.name+"' modular content item. Make sure you use 'DepthParameter' in case your modular content is nested."),s){var c=r.find(function(t){return t.system.codename===s.system.codename});if(c)o.push(c);else{var a=i.mapFields(s,e,n,r);o.push(a),c=a}}}),o},t.prototype.getLinkResolverForUrlSlugField=function(t,e){return e.linkResolver?e.linkResolver:t.linkResolver},t.prototype.mapRichTextLinks=function(t){for(var e=[],n=0,r=Object.keys(t);n<r.length;n++){var o=r[n],u=t[o];e.push(new i.Link({codename:u.codename,itemId:o,urlSlug:u.url_slug,type:u.type}))}return e},t}();e.FieldMapper=u},function(t,e,n){"use strict";e.__esModule=!0;var r=n(41),i=n(42),o=n(44),u=n(65),s=function(){function t(t,e,n,r){if(this.config=t,this.httpService=e,this.richTextHtmlParser=n,this.sdkInfo=r,this.defaultRetryAttempts=3,this.retryExcludedStatuses=[404,401],this.sdkVersionHeader="X-KC-SDKID",this.defaultBaseDeliveryApiUrl="https://deliver.kenticocloud.com",this.defaultPreviewDeliveryApiUrl="https://preview-deliver.kenticocloud.com",this.waitForLoadingNewContentHeader="X-KC-Wait-For-Loading-New-Content",!t)throw Error("Invalid configuration has been provided");this.responseMapper=new o.ResponseMapper(t,n)}return t.prototype.getUrl=function(t,e,n){return this.addOptionsToUrl(this.getBaseUrl(e)+t,n)},t.prototype.getSingleItem=function(t,e){var n=this;return this.getResponse(t,e).pipe(i.map(function(t){return n.responseMapper.mapSingleResponse(t,e)}),i.catchError(function(t){return r.throwError(n.handleError(t))}))},t.prototype.injectSingleItem=function(t,e){var n={data:t,response:{}};return this.responseMapper.mapSingleResponse(n,e)},t.prototype.getMultipleItems=function(t,e){var n=this;return this.getResponse(t,e).pipe(i.map(function(t){return n.responseMapper.mapMultipleResponse(t,e)}),i.catchError(function(t){return r.throwError(n.handleError(t))}))},t.prototype.injectMultipleItems=function(t,e){var n={data:t,response:{}};return this.responseMapper.mapMultipleResponse(n,e)},t.prototype.getSingleType=function(t,e){var n=this;return this.getResponse(t,e).pipe(i.map(function(t){return n.responseMapper.mapSingleTypeResponse(t)}),i.catchError(function(t){return r.throwError(n.handleError(t))}))},t.prototype.getMultipleTypes=function(t,e){var n=this;return this.getResponse(t,e).pipe(i.map(function(t){return n.responseMapper.mapMultipleTypeResponse(t)}),i.catchError(function(t){return r.throwError(n.handleError(t))}))},t.prototype.getTaxonomy=function(t,e){var n=this;return this.getResponse(t,e).pipe(i.map(function(t){return n.responseMapper.mapTaxonomyResponse(t)}),i.catchError(function(t){return r.throwError(n.handleError(t))}))},t.prototype.getTaxonomies=function(t,e){var n=this;return this.getResponse(t,e).pipe(i.map(function(t){return n.responseMapper.mapTaxonomiesResponse(t)}),i.catchError(function(t){return r.throwError(n.handleError(t))}))},t.prototype.getElement=function(t,e){var n=this;return this.getResponse(t,e).pipe(i.map(function(t){return n.responseMapper.mapElementResponse(t)}),i.catchError(function(t){return r.throwError(n.handleError(t))}))},t.prototype.getHeaders=function(t){var e=[];if(t.customHeaders&&(e=e.concat(t.customHeaders)),e.push(this.getSdkIdHeader()),this.isPreviewModeEnabled(t)&&this.isSecuredModeEnabled(t))throw Error("Preview & secured modes cannot be used at the same time.");return this.isPreviewModeEnabled(t)&&e.push(this.getAuthorizationHeader(this.config.previewApiKey)),this.isSecuredModeEnabled(t)&&e.push(this.getAuthorizationHeader(this.config.securedApiKey)),t.waitForLoadingNewContent&&e.push({header:this.waitForLoadingNewContentHeader,value:"true"}),e},t.prototype.getResponse=function(t,e){var n=this;return this.httpService.get(t,this.getHeaders(e)).pipe(i.map(function(t){return t}),i.retryWhen(u.deliveryRetryStrategy.strategy({maxRetryAttempts:this.getRetryAttempts(),excludedStatusCodes:this.retryExcludedStatuses})),i.catchError(function(t){return r.throwError(n.handleError(t))}))},t.prototype.getRetryAttempts=function(){return this.config.retryAttempts||0===this.config.retryAttempts?this.config.retryAttempts:this.defaultRetryAttempts},t.prototype.handleError=function(t){return this.config.enableAdvancedLogging&&console.error(t),t.cloudError?t.cloudError:t},t.prototype.isPreviewModeEnabled=function(t){return null!=t.usePreviewMode?t.usePreviewMode:!0===this.config.enablePreviewMode},t.prototype.isSecuredModeEnabled=function(t){return null!=t.useSecuredMode?t.useSecuredMode:!0===this.config.enableSecuredMode},t.prototype.getDeliveryUrl=function(t){if(this.isPreviewModeEnabled(t)){if(!this.config.previewApiKey)throw Error("You have to configure 'previewApiKey' to use 'preview' mode");return this.config.basePreviewUrl?this.config.basePreviewUrl:this.defaultPreviewDeliveryApiUrl}return this.config.baseUrl?this.config.baseUrl:this.defaultBaseDeliveryApiUrl},t.prototype.getBaseUrl=function(t){return this.getDeliveryUrl(t)+"/"+this.config.projectId},t.prototype.addOptionsToUrl=function(t,e){return e&&e.forEach(function(e){t=t.indexOf("?")>-1?t+"&"+e.getParam()+"="+e.getParamValue():t+"?"+e.getParam()+"="+e.getParamValue()}),t},t.prototype.getAuthorizationHeader=function(t){if(!t)throw Error("Cannot get authorization header because key is undefined");return{header:"authorization",value:"bearer "+t}},t.prototype.getSdkIdHeader=function(){return{header:this.sdkVersionHeader,value:this.sdkInfo.host+";"+this.sdkInfo.name+";"+this.sdkInfo.version}},t}();e.QueryService=s},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});e.__esModule=!0;var o=function(t){function e(e,n,r){var i=t.call(this,e,n)||this;if(i.config=e,i.queryService=n,i.typeCodename=r,!r)throw Error("Cannot create type query without the codename of the type");return i}return i(e,t),e.prototype.getObservable=function(){return t.prototype.runSingleTypeQuery.call(this,this.typeCodename)},e.prototype.getUrl=function(){return t.prototype.getSingleTypeQueryUrl.call(this,this.typeCodename)},e}(n(45).BaseTypeQuery);e.SingleTypeQuery=o},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});e.__esModule=!0;var o=n(12),u=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.config=e,r.queryService=n,r}return i(e,t),e.prototype.limitParameter=function(t){return this.parameters.push(new o.Parameters.LimitParameter(t)),this},e.prototype.skipParameter=function(t){return this.parameters.push(new o.Parameters.SkipParameter(t)),this},e.prototype.getObservable=function(){return t.prototype.runMultipleTypesQuery.call(this)},e.prototype.getUrl=function(){return t.prototype.getMultipleTypesQueryUrl.call(this)},e}(n(45).BaseTypeQuery);e.MultipleTypeQuery=u},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});e.__esModule=!0;var o=function(t){function e(e,n,r){var i=t.call(this,e,n)||this;if(i.config=e,i.queryService=n,i.taxonomyCodename=r,!r)throw Error("Cannot create taxonomy query without codename of the taxonomy");return i}return i(e,t),e.prototype.getObservable=function(){return t.prototype.runTaxonomyQuery.call(this,this.taxonomyCodename)},e.prototype.getUrl=function(){return t.prototype.getTaxonomyQueryUrl.call(this,this.taxonomyCodename)},e}(n(46).BaseTaxonomyQuery);e.TaxonomyQuery=o},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});e.__esModule=!0;var o=n(12),u=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.config=e,r.queryService=n,r}return i(e,t),e.prototype.limitParameter=function(t){return this.parameters.push(new o.Parameters.LimitParameter(t)),this},e.prototype.skipParameter=function(t){return this.parameters.push(new o.Parameters.SkipParameter(t)),this},e.prototype.getObservable=function(){return t.prototype.runTaxonomiesQuery.call(this)},e.prototype.getUrl=function(){return t.prototype.getTaxonomiesQueryUrl.call(this)},e}(n(46).BaseTaxonomyQuery);e.TaxonomiesQuery=u},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});e.__esModule=!0;var o=function(t){function e(e,n,r){var i=t.call(this,e,n)||this;if(i.config=e,i.queryService=n,i.codename=r,!r)throw Error("'codename' has to be configured for 'SingleItemQuery' query");return i}return i(e,t),e.prototype.getObservable=function(){return t.prototype.runSingleItemQuery.call(this,this.codename)},e.prototype.getUrl=function(){return t.prototype.getSingleItemQueryUrl.call(this,this.codename)},e.prototype.injectSingleItem=function(e){return t.prototype.injectSingleItem.call(this,e)},e}(n(47).BaseItemQuery);e.SingleItemQuery=o},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});e.__esModule=!0;var o=n(12),u=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.config=e,r.queryService=n,r}return i(e,t),e.prototype.type=function(t){return this.parameters.push(new o.Filters.TypeFilter(t)),this},e.prototype.types=function(t){return this.parameters.push(new o.Filters.TypeFilter(t)),this},e.prototype.equalsFilter=function(t,e){return this.parameters.push(new o.Filters.EqualsFilter(t,e)),this},e.prototype.allFilter=function(t,e){return this.parameters.push(new o.Filters.AllFilter(t,e)),this},e.prototype.anyFilter=function(t,e){return this.parameters.push(new o.Filters.AnyFilter(t,e)),this},e.prototype.containsFilter=function(t,e){return this.parameters.push(new o.Filters.ContainsFilter(t,e)),this},e.prototype.greaterThanFilter=function(t,e){return this.parameters.push(new o.Filters.GreaterThanFilter(t,e)),this},e.prototype.greaterThanOrEqualFilter=function(t,e){return this.parameters.push(new o.Filters.GreaterThanOrEqualFilter(t,e)),this},e.prototype.inFilter=function(t,e){return this.parameters.push(new o.Filters.Infilter(t,e)),this},e.prototype.lessThanFilter=function(t,e){return this.parameters.push(new o.Filters.LessThanFilter(t,e)),this},e.prototype.lessThanOrEqualFilter=function(t,e){return this.parameters.push(new o.Filters.LessThanOrEqualFilter(t,e)),this},e.prototype.rangeFilter=function(t,e,n){return this.parameters.push(new o.Filters.RangeFilter(t,e,n)),this},e.prototype.limitParameter=function(t){return this.parameters.push(new o.Parameters.LimitParameter(t)),this},e.prototype.orderParameter=function(t,e){return this.parameters.push(new o.Parameters.OrderParameter(t,e)),this},e.prototype.skipParameter=function(t){return this.parameters.push(new o.Parameters.SkipParameter(t)),this},e.prototype.getObservable=function(){return t.prototype.runMultipleItemsQuery.call(this)},e.prototype.getUrl=function(){return t.prototype.getMultipleItemsQueryUrl.call(this)},e.prototype.injectMultipleItems=function(e){return t.prototype.injectMultipleItems.call(this,e)},e}(n(47).BaseItemQuery);e.MultipleItemQuery=u},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});e.__esModule=!0;var o=function(t){function e(e,n,r,i){var o=t.call(this,e,n)||this;if(o.config=e,o.queryService=n,o.typeCodename=r,o.elementCodename=i,!r)throw Error("Codename of the type has to be provided");if(!i)throw Error("Codename of the element has to be provided");return o}return i(e,t),e.prototype.getObservable=function(){return t.prototype.runElementQuery.call(this,this.typeCodename,this.elementCodename)},e.prototype.getUrl=function(){return t.prototype.getElementQueryUrl.call(this,this.typeCodename,this.elementCodename)},e}(n(79).BaseElementQuery);e.ElementQuery=o},function(t,e,n){"use strict";e.__esModule=!0,function(t){var e=function(){return function(t,e,n){this.types=t,this.pagination=e,this.debug=n}}();t.DeliveryTypeListingResponse=e;var n=function(){return function(t,e){this.type=t,this.debug=e}}();t.DeliveryTypeResponse=n}(e.TypeResponses||(e.TypeResponses={}))},function(t,e,n){"use strict";e.__esModule=!0;var r=function(){return function(t){Object.assign(this,t)}}();e.ContentType=r},function(t,e,n){"use strict";e.__esModule=!0;var r=function(){return function(t){Object.assign(this,t)}}();e.ContentTypeSystemAttributes=r},function(t,e,n){"use strict";function r(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}e.__esModule=!0,r(n(145)),r(n(144)),r(n(143))},function(t,e,n){"use strict";e.__esModule=!0;var r=function(){return function(t){Object.assign(this,t)}}();e.TaxonomyTerms=r},function(t,e,n){"use strict";e.__esModule=!0;var r=function(){return function(t){Object.assign(this,t)}}();e.TaxonomySystemAttributes=r},function(t,e,n){"use strict";e.__esModule=!0;var r=function(){return function(t,e){this.system=t,this.terms=e}}();e.TaxonomyGroup=r},function(t,e,n){"use strict";e.__esModule=!0,function(t){var e=function(){return function(t,e){this.taxonomy=t,this.debug=e}}();t.TaxonomyResponse=e;var n=function(){return function(t,e,n){this.taxonomies=t,this.pagination=e,this.debug=n}}();t.TaxonomiesResponse=n}(e.TaxonomyResponses||(e.TaxonomyResponses={}))},function(t,e,n){"use strict";function r(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}e.__esModule=!0,r(n(150)),r(n(149)),r(n(148)),r(n(147))},function(t,e,n){"use strict";e.__esModule=!0;var r=function(){return function(t,e){this.type=t,this.resolve=e}}();e.TypeResolver=r},function(t,e,n){"use strict";e.__esModule=!0,function(t){var e=function(){function t(t,e,n){this.items=t,this.pagination=e,this.debug=n,this.initIsEmpty(),this.initFirstAndLastItem()}return t.prototype.initIsEmpty=function(){this.items?this.isEmpty=this.items.length<=0:this.isEmpty=!0},t.prototype.initFirstAndLastItem=function(){this.items&&(this.items.length<1||(this.firstItem=this.items[0],this.lastItem=this.items[this.items.length-1]))},t}();t.DeliveryItemListingResponse=e;var n=function(){function t(t,e){this.item=t,this.debug=e,this.initIsEmpty()}return t.prototype.initIsEmpty=function(){this.item?this.isEmpty=!1:this.isEmpty=!0},t}();t.DeliveryItemResponse=n}(e.ItemResponses||(e.ItemResponses={}))},function(t,e,n){"use strict";e.__esModule=!0;var r=function(){return function(t){Object.assign(this,t)}}();e.Link=r},function(t,e,n){"use strict";function r(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}e.__esModule=!0,r(n(81)),r(n(80)),r(n(154)),r(n(153)),r(n(152))},function(t,e,n){"use strict";e.__esModule=!0,function(t){var e=function(){return function(t,e){this.element=t,this.debug=e}}();t.ElementResponse=e}(e.ElementResponses||(e.ElementResponses={}))},function(t,e,n){"use strict";e.__esModule=!0;var r=function(){return function(t){this.options=[],Object.assign(this,t)}}();e.Element=r},function(t,e,n){"use strict";e.__esModule=!0;var r=function(){return function(t,e){this.name=t,this.codename=e}}();e.ElementOption=r},function(t,e,n){"use strict";function r(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}e.__esModule=!0,r(n(158)),r(n(157)),r(n(156))},function(t,e,n){"use strict";e.__esModule=!0;var r=n(82);!function(t){var e=function(){function t(t,e){if(this.name=t,this.value=e,!t)throw Error("Name of the custom parameter is not specified")}return t.prototype.getParam=function(){return this.name},t.prototype.getParamValue=function(){return this.value},t}();t.QueryParameter=e;var n=function(){function t(t){this.elementCodenames=t}return t.prototype.getParam=function(){return"elements"},t.prototype.getParamValue=function(){return this.elementCodenames?this.elementCodenames.map(function(t){if(!t)throw Error("Codename of 'ElementsParameter' cannot be null or empty");return t.trim()}).join(","):""},t}();t.ElementsParameter=n;var i=function(){function t(t){if(this.limit=t,t<=0)throw Error("'LimitParameter' must specify a positive integer")}return t.prototype.getParam=function(){return"limit"},t.prototype.getParamValue=function(){return this.limit.toString()},t}();t.LimitParameter=i;var o=function(){function t(t){if(this.skip=t,t<0)throw Error("'SkipParameter' must specify a positive integer number or zero.\"")}return t.prototype.getParam=function(){return"skip"},t.prototype.getParamValue=function(){return this.skip.toString()},t}();t.SkipParameter=o;var u=function(){function t(t,e){if(this.field=t,this.sortOrder=e,!t)throw Error("Field specified in 'OrderParameter' is null or empty")}return t.prototype.getParam=function(){return"order"},t.prototype.getParamValue=function(){var t;return t=this.sortOrder===r.SortOrder.desc?"desc":"asc",this.field.trim()+"["+t+"]"},t}();t.OrderParameter=u;var s=function(){function t(t){if(this.depth=t,t<0)throw Error("'DepthParameter' must specify a positive integer or zero")}return t.prototype.getParam=function(){return"depth"},t.prototype.getParamValue=function(){return this.depth.toString()},t}();t.DepthParameter=s;var c=function(){function t(t){if(this.languageCodename=t,!t)throw Error("'LanguageParameter' must specify codename of the language")}return t.prototype.getParam=function(){return"language"},t.prototype.getParamValue=function(){return this.languageCodename.trim().toString()},t}();t.LanguageParameter=c}(e.Parameters||(e.Parameters={}))},function(t,e,n){"use strict";e.__esModule=!0;var r=function(){return function(t){Object.assign(this,t)}}();e.Pagination=r},function(t,e,n){"use strict";e.__esModule=!0,function(t){var e=function(){function t(t){this.type=t}return t.prototype.getParam=function(){return Array.isArray(this.type)?"system.type[in]":"system.type"},t.prototype.getParamValue=function(){if(!this.type)return"";if(Array.isArray(this.type)){for(var t="",e=0;e<this.type.length;e++)t+=this.type[e].toString(),e!==this.type.length-1&&(t+=",");return t}return this.type.toString()},t}();t.TypeFilter=e;var n=function(){function t(t,e){if(this.field=t,this.value=e,!this.field)throw Error("Field specified in 'EqualsFilter' is undefined ")}return t.prototype.getParam=function(){return this.field.trim()},t.prototype.getParamValue=function(){return this.value?this.value:""},t}();t.EqualsFilter=n;var r=function(){function t(t,e){if(this.field=t,this.values=e,!this.field)throw Error("Field specified in 'AllFilter' is undefined ")}return t.prototype.getParam=function(){return this.field.trim()+"[all]"},t.prototype.getParamValue=function(){return this.values&&Array.isArray(this.values)?this.values.map(function(t){return t.trim()}).join(","):""},t}();t.AllFilter=r;var i=function(){function t(t,e){if(this.field=t,this.values=e,!this.field)throw Error("Field specified in 'AnyFilter' is undefined ")}return t.prototype.getParam=function(){return this.field.trim()+"[any]"},t.prototype.getParamValue=function(){return this.values&&Array.isArray(this.values)?this.values.map(function(t){return t.trim()}).join(","):""},t}();t.AnyFilter=i;var o=function(){function t(t,e){if(this.field=t,this.values=e,!this.field)throw Error("Field specified in 'ContainsFilter' is undefined ")}return t.prototype.getParam=function(){return this.field.trim()+"[contains]"},t.prototype.getParamValue=function(){return this.values&&Array.isArray(this.values)?this.values.map(function(t){return t.trim()}).join(","):""},t}();t.ContainsFilter=o;var u=function(){function t(t,e){if(this.field=t,this.value=e,!this.field)throw Error("Field specified in 'GreaterThanFilter' is undefined ")}return t.prototype.getParam=function(){return this.field.trim()+"[gt]"},t.prototype.getParamValue=function(){return this.value?this.value:""},t}();t.GreaterThanFilter=u;var s=function(){function t(t,e){if(this.field=t,this.value=e,!this.field)throw Error("Field specified in 'GreaterThanOrEqualFilter' is undefined ")}return t.prototype.getParam=function(){return this.field.trim()+"[gte]"},t.prototype.getParamValue=function(){return this.value?this.value:""},t}();t.GreaterThanOrEqualFilter=s;var c=function(){function t(t,e){if(this.field=t,this.values=e,!this.field)throw Error("Field specified in 'Infilter' is undefined")}return t.prototype.getParam=function(){return this.field.trim()+"[in]"},t.prototype.getParamValue=function(){return this.values&&Array.isArray(this.values)?this.values.map(function(t){return t.trim()}).join(","):""},t}();t.Infilter=c;var a=function(){function t(t,e){if(this.field=t,this.value=e,!this.field)throw Error("Field specified in 'LessThanFilter' is undefined ")}return t.prototype.getParam=function(){return this.field.trim()+"[lt]"},t.prototype.getParamValue=function(){return this.value?this.value:""},t}();t.LessThanFilter=a;var f=function(){function t(t,e){if(this.field=t,this.value=e,!this.field)throw Error("Field specified in 'LessThanOrEqualFilter' is undefined ")}return t.prototype.getParam=function(){return this.field.trim()+"[lte]"},t.prototype.getParamValue=function(){return this.value?this.value:""},t}();t.LessThanOrEqualFilter=f;var l=function(){function t(t,e,n){if(this.field=t,this.lowerValue=e,this.higherValue=n,!this.field)throw Error("Field specified in 'RangeFilter' is undefined ");if(e>n)throw Error("'lowerValue' cannot be higher then 'higherValue' in 'RangeFilter'")}return t.prototype.getParam=function(){return this.field.trim()+"[range]"},t.prototype.getParamValue=function(){var t="",e="";return this.lowerValue&&(t=this.lowerValue.toString()),this.higherValue&&(e=this.higherValue.toString()),t+","+e},t}();t.RangeFilter=l}(e.Filters||(e.Filters={}))},function(t,e,n){"use strict";e.__esModule=!0;var r=function(){return function(t){Object.assign(this,t)}}();e.DeliveryCloudError=r},function(t,e,n){"use strict";function r(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}e.__esModule=!0,r(n(163)),r(n(162)),r(n(161)),r(n(160)),r(n(82))},function(t,e,n){"use strict";e.__esModule=!0;var r=n(83),i=n(78),o=n(77),u=n(59),s=function(){function t(t){if(this.config=t,!t)throw Error("Please provide Delivery client configuration");this.queryService=new o.QueryService(t,new o.DeliveryHttpService,u.getParserAdapter(),{host:i.sdkInfo.host,name:i.sdkInfo.name,version:i.sdkInfo.version})}return t.prototype.types=function(){return new r.MultipleTypeQuery(this.config,this.queryService)},t.prototype.type=function(t){return new r.SingleTypeQuery(this.config,this.queryService,t)},t.prototype.items=function(){return new r.MultipleItemQuery(this.config,this.queryService)},t.prototype.item=function(t){return new r.SingleItemQuery(this.config,this.queryService,t)},t.prototype.taxonomy=function(t){return new r.TaxonomyQuery(this.config,this.queryService,t)},t.prototype.taxonomies=function(){return new r.TaxonomiesQuery(this.config,this.queryService)},t.prototype.element=function(t,e){return new r.ElementQuery(this.config,this.queryService,t,e)},t}();e.DeliveryClient=s},function(t,e,n){"use strict";e.__esModule=!0,function(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}(n(165))},function(t,e,n){"use strict";function r(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}e.__esModule=!0,r(n(166)),r(n(78)),r(n(74)),r(n(104)),r(n(70)),r(n(77)),r(n(44)),r(n(83)),r(n(12)),r(n(103))}])});
//# sourceMappingURL=kentico-cloud-delivery-sdk.browser.umd.min.js.map