UNPKG

293 kBJavaScriptView Raw
1/*!
2 * Copyright (C) 2007-2021, GoodData(R) Corporation. All rights reserved.
3 * @gooddata/gooddata-js - v13.5.0
4 * 2021-02-10 18:32:40
5 * Latest git commit: "f965193"
6 *
7 *
8 */
9!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.gooddata=e():t.gooddata=e()}(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,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},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=163)}([function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));
10/*! *****************************************************************************
11Copyright (c) Microsoft Corporation.
12
13Permission to use, copy, modify, and/or distribute this software for any
14purpose with or without fee is hereby granted.
15
16THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
17REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
18AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
19INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
20LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
21OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
22PERFORMANCE OF THIS SOFTWARE.
23***************************************************************************** */
24var r=function(t,e){return(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])})(t,e)};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)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var r=n(0),i=n(24),o=n(57),u=n(4),s=n(43),a=n(13),c=n(36),f=function(t){function e(n,r,i){var u=t.call(this)||this;switch(u.syncErrorValue=null,u.syncErrorThrown=!1,u.syncErrorThrowable=!1,u.isStopped=!1,arguments.length){case 0:u.destination=o.a;break;case 1:if(!n){u.destination=o.a;break}if("object"==typeof n){n instanceof e?(u.syncErrorThrowable=n.syncErrorThrowable,u.destination=n,n.add(u)):(u.syncErrorThrowable=!0,u.destination=new l(u,n));break}default:u.syncErrorThrowable=!0,u.destination=new l(u,n,r,i)}return u}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._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this},e}(u.a),l=function(t){function e(e,n,r,u){var s,a=t.call(this)||this;a._parentSubscriber=e;var c=a;return Object(i.a)(n)?s=n:n&&(s=n.next,r=n.error,u=n.complete,n!==o.a&&(c=Object.create(n),Object(i.a)(c.unsubscribe)&&a.add(c.unsubscribe.bind(c)),c.unsubscribe=a.unsubscribe.bind(a))),a._context=c,a._next=s,a._error=r,a._complete=u,a}return r.a(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;a.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=a.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(c.a)(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;Object(c.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)};a.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(),a.a.useDeprecatedSynchronousErrorHandling)throw t;Object(c.a)(t)}},e.prototype.__tryOrSetError=function(t,e,n){if(!a.a.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(e){return a.a.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=e,t.syncErrorThrown=!0,!0):(Object(c.a)(e),!0)}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(f)},function(t,e,n){"use strict";n.d(e,"a",(function(){return s})),n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return c}));var r=n(0),i=n(1),o=n(3),u=n(35),s=function(t){function e(e){var n=t.call(this)||this;return n.parent=e,n}return r.a(e,t),e.prototype._next=function(t){this.parent.notifyNext(t)},e.prototype._error=function(t){this.parent.notifyError(t),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(),this.unsubscribe()},e}(i.a),a=(i.a,function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.a(e,t),e.prototype.notifyNext=function(t){this.destination.next(t)},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(){this.destination.complete()},e}(i.a));i.a;function c(t,e){if(!e.closed)return t instanceof o.a?t.subscribe(e):Object(u.a)(t)(e)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var r=n(55),i=n(1),o=n(43),u=n(57);var s=n(21),a=n(41),c=n(13),f=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 r=this.operator,s=function(t,e,n){if(t){if(t instanceof i.a)return t;if(t[o.a])return t[o.a]()}return t||e||n?new i.a(t,e,n):new i.a(u.a)}(t,e,n);if(r?s.add(r.call(s,this.source)):s.add(this.source||c.a.useDeprecatedSynchronousErrorHandling&&!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),Object(r.a)(t)?t.error(e):console.warn(e)}},t.prototype.forEach=function(t,e){var n=this;return new(e=l(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[s.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(a.b)(t)(this)},t.prototype.toPromise=function(t){var e=this;return new(t=l(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 l(t){if(t||(t=c.a.Promise||Promise),!t)throw new Error("no Promise impl found");return t}},function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(7),i=n(54),o=n(24),u=n(44),s=function(){function t(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}var e;return t.prototype.unsubscribe=function(){var e;if(!this.closed){var n=this._parentOrParents,s=this._ctorUnsubscribe,c=this._unsubscribe,f=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof t)n.remove(this);else if(null!==n)for(var l=0;l<n.length;++l){n[l].remove(this)}if(Object(o.a)(c)){s&&(this._unsubscribe=void 0);try{c.call(this)}catch(t){e=t instanceof u.a?a(t.errors):[t]}}if(Object(r.a)(f)){l=-1;for(var h=f.length;++l<h;){var p=f[l];if(Object(i.a)(p))try{p.unsubscribe()}catch(t){e=e||[],t instanceof u.a?e=e.concat(a(t.errors)):e.push(t)}}}if(e)throw new u.a(e)}},t.prototype.add=function(e){var n=e;if(!e)return t.EMPTY;switch(typeof e){case"function":n=new t(e);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof t)){var r=n;(n=new t)._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}var i=n._parentOrParents;if(null===i)n._parentOrParents=this;else if(i instanceof t){if(i===this)return n;n._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return n;i.push(this)}var o=this._subscriptions;return null===o?this._subscriptions=[n]:o.push(n),n},t.prototype.remove=function(t){var e=this._subscriptions;if(e){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}},t.EMPTY=((e=new t).closed=!0,e),t}();function a(t){return t.reduce((function(t,e){return t.concat(e instanceof u.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(3),o=n(1),u=n(4),s=n(22),a=n(88),c=n(43),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[c.a]=function(){return new f(this)},e.prototype.lift=function(t){var e=new h(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 a.a(this,t))},e.prototype.asObservable=function(){var t=new i.a;return t.source=this,t},e.create=function(t,e){return new h(t,e)},e}(i.a),h=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,"b",(function(){return i})),n.d(e,"a",(function(){return o}));var r=n(32),i=new(n(30).a)(r.a),o=i},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(){return Array.isArray||function(t){return t&&"number"==typeof t.length}}()},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(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 i})),n.d(e,"b",(function(){return o}));var r=n(3),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 u}));var r=n(3),i=n(35),o=n(87);function u(t,e){return e?Object(o.a)(t,e):t instanceof r.a?t:new r.a(Object(i.a)(t))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));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(35),u=n(3);function s(t,e,n,r,s){if(void 0===s&&(s=new i(t,n,r)),!s.closed)return e instanceof u.a?e.subscribe(s):Object(o.a)(e)(s)}},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";function r(t){return t}n.d(e,"a",(function(){return r}))},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 o}));var r=n(0),i=n(1);function o(t,e){return function(n){return n.lift(new u(t,e))}}var u=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.predicate,this.thisArg))},t}(),s=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}(i.a)},function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return s}));var r,i=n(10),o=n(38),u=n(49);r||(r={});var s=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(o.a)(this.value);case"E":return Object(u.a)(this.error);case"C":return Object(i.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";function r(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}n.d(e,"a",(function(){return i}));var i=r()},function(t,e,n){"use strict";function r(){}n.d(e,"a",(function(){return r}))},function(t,e){var n=Array.isArray;t.exports=n},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}()},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(){function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t}()},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(){function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t}()},function(t,e,n){"use strict";function r(t){return"function"==typeof t}n.d(e,"a",(function(){return r}))},function(t,e,n){var r=n(102);t.exports=function(t,e,n){var i=null==t?void 0:r(t,e);return void 0===i?n:i}},function(t,e,n){var r=n(217),i=n(98),o=n(76),u=n(20),s=n(100),a=n(69),c=n(125),f=n(101),l=Object.prototype.hasOwnProperty;t.exports=function(t){if(null==t)return!0;if(s(t)&&(u(t)||"string"==typeof t||"function"==typeof t.splice||a(t)||f(t)||o(t)))return!t.length;var e=i(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if(c(t))return!r(t).length;for(var n in t)if(l.call(t,n))return!1;return!0}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(){function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t}()},function(t,e,n){"use strict";n.d(e,"b",(function(){return s})),n.d(e,"a",(function(){return f}));var r=n(0),i=n(8),o=n(11),u=n(2);function s(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof e?function(r){return r.pipe(s((function(n,r){return Object(o.a)(t(n,r)).pipe(Object(i.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 c(t,this.project,this.concurrent))},t}(),c=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)},e.prototype._innerSub=function(t){var e=new u.a(this),n=this.destination;n.add(e);var r=Object(u.c)(t,e);r!==e&&n.add(r)},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()},e.prototype.notifyNext=function(t){this.destination.next(t)},e.prototype.notifyComplete=function(){var t=this.buffer;this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(u.b),f=s},function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(3),i=n(89),o=n(56);function u(t,e){return e?Object(o.a)(t,e):new r.a(Object(i.a)(t))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(0),i=n(64),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";n.d(e,"a",(function(){return u}));var r=n(0),i=n(5),o=n(4),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 i}));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.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}(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(4).a))},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(7);function i(t){return!Object(r.a)(t)&&t-parseFloat(t)+1>=0}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(38),i=n(83);function o(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Object(i.a)()(r.a.apply(void 0,t))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var r=n(89),i=n(36),o=n(18),u=n(21),s=n(90),a=n(91),c=n(54),f=function(t){if(t&&"function"==typeof t[u.a])return f=t,function(t){var e=f[u.a]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(Object(s.a)(t))return Object(r.a)(t);if(Object(a.a)(t))return n=t,function(t){return n.then((function(e){t.closed||(t.next(e),t.complete())}),(function(e){return t.error(e)})).then(null,i.a),t};if(t&&"function"==typeof t[o.a])return e=t,function(t){for(var n=e[o.a]();;){var r=void 0;try{r=n.next()}catch(e){return t.error(e),t}if(r.done){t.complete();break}if(t.next(r.value),t.closed)break}return"function"==typeof n.return&&t.add((function(){n.return&&n.return()})),t};var e,n,f,l=Object(c.a)(t)?"an invalid object":"'"+t+"'";throw new TypeError("You provided "+l+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.")}},function(t,e,n){"use strict";function r(t){setTimeout((function(){throw t}),0)}n.d(e,"a",(function(){return r}))},function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(9),i=n(29),o=n(56);function u(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[t.length-1];return Object(r.a)(n)?(t.pop(),Object(o.a)(t,n)):Object(i.a)(t)}},function(t,e,n){var r=n(20),i=n(188),o=n(190),u=n(192);t.exports=function(t,e){return r(t)?t:i(t,e)?[t]:o(u(t))}},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(110)),r(n(226)),r(n(227)),r(n(228)),r(n(229)),r(n(148)),r(n(111)),r(n(230)),r(n(231))},function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return o}));var r=n(14);function i(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return o(t)}function o(t){return 0===t.length?r.a:1===t.length?t[0]:function(e){return t.reduce((function(t,e){return e(t)}),e)}}},function(t,e,n){"use strict";n.d(e,"b",(function(){return l})),n.d(e,"a",(function(){return h}));var r=n(0),i=1,o=function(){return Promise.resolve()}(),u={};function s(t){return t in u&&(delete u[t],!0)}var a=function(t){var e=i++;return u[e]=!0,o.then((function(){return s(e)&&t()})),e},c=function(t){s(t)},f=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=a(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&&(c(n),e.scheduled=void 0)},e}(n(32).a),l=new(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(30).a))(f),h=l},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(){return"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}()},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(){function t(t){return Error.call(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(t,e){return e+1+") "+t.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t}()},function(t,e,n){var r=n(95),i=n(96);t.exports=function(t,e,n,o){var u=!n;n||(n={});for(var s=-1,a=e.length;++s<a;){var c=e[s],f=o?o(n[c],t[c],c,n,t):void 0;void 0===f&&(f=t[c]),u?i(n,c,f):r(n,c,f)}return n}},function(t,e){t.exports=function(t){for(var e=-1,n=null==t?0:t.length,r=0,i=[];++e<n;){var o=t[e];o&&(i[r++]=o)}return i}},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 f}));var r=n(0),i=n(5),o=n(63),u=n(4),s=n(81),a=n(22),c=n(88),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){if(!this.isStopped){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.isStopped||(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 a.a;if(this.isStopped||this.hasError?e=u.a.EMPTY:(this.observers.push(t),e=new c.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 i}));var r=n(3);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,"b",(function(){return f})),n.d(e,"a",(function(){return l}));var r=n(0),i=n(9),o=n(7),u=n(15),s=n(12),a=n(29),c={};function f(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=void 0,r=void 0;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(a.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 h(t,this.resultSelector))},t}(),h=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(c),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,void 0,n))}}},e.prototype.notifyComplete=function(t){0==(this.active-=1)&&this.destination.complete()},e.prototype.notifyNext=function(t,e,n){var r=this.values,i=r[n],o=this.toRespond?i===c?--this.toRespond:this.toRespond:0;r[n]=e,0===o&&(this.resultSelector?this._tryResultSelector(r):this.destination.next(r.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 o}));var r=n(28),i=n(14);function o(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),Object(r.b)(i.a,t)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(3),i=n(11),o=n(10);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,"b",(function(){return c})),n.d(e,"a",(function(){return f}));var r=n(0),i=n(29),o=n(7),u=n(1),s=n(18),a=n(2);function c(){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 f(n))}var f=function(){function t(t){this.resultSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.resultSelector))},t}(),l=function(t){function e(e,n,r){void 0===r&&(r=Object.create(null));var i=t.call(this,e)||this;return i.resultSelector=n,i.iterators=[],i.active=0,i.resultSelector="function"==typeof n?n:void 0,i}return r.a(e,t),e.prototype._next=function(t){var e=this.iterators;Object(o.a)(t)?e.push(new p(t)):"function"==typeof t[s.a]?e.push(new h(t[s.a]())):e.push(new d(this.destination,this,t))},e.prototype._complete=function(){var t=this.iterators,e=t.length;if(this.unsubscribe(),0!==e){this.active=e;for(var n=0;n<e;n++){var r=t[n];if(r.stillUnsubscribed)this.destination.add(r.subscribe());else 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 Boolean(t&&t.done)},t}(),p=function(){function t(t){this.array=t,this.index=0,this.length=0,this.length=t.length}return t.prototype[s.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}(),d=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[s.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){this.buffer.push(t),this.parent.checkIterators()},e.prototype.subscribe=function(){return Object(a.c)(this.observable,new a.a(this))},e}(a.b)},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";n.d(e,"a",(function(){return i}));var r=n(1);function i(t){for(;t;){var e=t,n=e.closed,i=e.destination,o=e.isStopped;if(n||o)return!1;t=i&&i instanceof r.a?i:null}return!0}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(3),i=n(4);function o(t,e){return 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}))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(13),i=n(36),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){var r=n(93);t.exports=function(t){return r(t,5)}},function(t,e){t.exports=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(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])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},u=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function u(t){try{a(r.next(t))}catch(t){o(t)}}function s(t){try{a(r.throw(t))}catch(t){o(t)}}function a(t){t.done?i(t.value):new n((function(e){e(t.value)})).then(u,s)}a((r=r.apply(t,e||[])).next())}))},s=this&&this.__generator||function(t,e){var n,r,i,o,u={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;u;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return u.label++,{value:o[1],done:!1};case 5:u.label++,r=o[1],o=[0];continue;case 7:o=u.ops.pop(),u.trys.pop();continue;default:if(!(i=u.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){u=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){u.label=o[1];break}if(6===o[0]&&u.label<i[1]){u.label=i[1],i=o;break}if(i&&u.label<i[2]){u.label=i[2],u.ops.push(o);break}i[2]&&u.ops.pop(),u.trys.pop();continue}o=e.call(t,u)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var c=a(n(70)),f=a(n(72)),l=a(n(73)),h=a(n(193)),p=a(n(132)),d=a(n(203)),b=n(62);function v(t,e,n){var r=t,i=e;return n&&(-1===t.indexOf(n)&&(r=n+t),i.mode="cors",i.credentials="include"),{url:r,settings:i}}function y(t,e,n){var r=d.default(e,"pollDelay");return new Promise((function(i,o){setTimeout((function(){n(t,e).then(i,o)}),r)}))}function m(t){return{"X-GDC-JS-PKG":t.name,"X-GDC-JS-PKG-VERSION":t.version}}e.handlePolling=y,e.originPackageHeaders=m;var g=function(t){function e(e,n){var r=t.call(this,e)||this;return r.cause=n,r}return i(e,t),e}(Error);e.ApiError=g;var x=function(t){function e(e,n,r){var i=t.call(this,e,null)||this;return i.response=n,i.responseBody=r,i}return i(e,t),e}(g);e.ApiResponseError=x;var w=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(g);e.ApiNetworkError=w;var _=function(){function t(t,e){this.response=t,this.responseBody=e}return Object.defineProperty(t.prototype,"data",{get:function(){try{return JSON.parse(this.responseBody)}catch(t){return this.responseBody}},enumerable:!0,configurable:!0}),t.prototype.getData=function(){try{return JSON.parse(this.responseBody)}catch(t){return this.responseBody}},t.prototype.getHeaders=function(){return this.response},t}();e.ApiResponse=_;var j=!0,S=function(){function t(t,e){this.fetch=t,this.configStorage=e,h.default(e,{xhrSettings:{}})}return t.prototype.ajaxSetup=function(t){Object.assign(this.configStorage.xhrSettings,t)},t.prototype.ajax=function(t,e){return void 0===e&&(e={}),u(this,void 0,Promise,(function(){var n,r,i,o,u,a,c,h,p;return s(this,(function(s){switch(s.label){case 0:if(n=this.createRequestSettings(e),r=v(t,n,this.configStorage.domain),i=r.url,o=r.settings,function(t,e){var n={setRequestHeader:function(t,n){l.default(e,["headers",t],n)}};f.default(e.beforeSend)&&e.beforeSend(n,t)}(i,o),this.tokenRequest)return[2,this.continueAfterTokenRequest(i,o)];s.label=1;case 1:return s.trys.push([1,3,,4]),[4,this.fetch(i,o)];case 2:return u=s.sent(),[3,4];case 3:throw a=s.sent(),new w(a.message,a);case 4:return[4,u.text()];case 5:if(c=s.sent(),401===u.status){if(-1!==i.indexOf("/gdc/account/login"))throw new x("Unauthorized",u,c);return[2,this.handleUnauthorized(i,o)]}if(202===u.status&&!o.dontPollOnResult)return h=u.url||i,p=o,u.headers.has("Location")&&(h=u.headers.get("Location")),p.method="GET",delete p.data,delete p.body,[2,y(h,p,this.ajax.bind(this))];if(this.verifyRestApiDeprecationStatus(u.headers),u.status>=200&&u.status<=399)return[2,new _(u,c)];throw new x(u.statusText,u,c)}}))}))},t.prototype.get=function(t,e){return this.ajax(t,p.default({method:"GET"},e))},t.prototype.head=function(t,e){return this.ajax(t,p.default({method:"HEAD"},e))},t.prototype.post=function(t,e){return this.ajax(t,p.default({method:"POST"},e))},t.prototype.put=function(t,e){return this.ajax(t,p.default({method:"PUT"},e))},t.prototype.del=function(t,e){return this.ajax(t,p.default({method:"DELETE"},e))},t.prototype.createRequestSettings=function(t){var e,n=p.default({headers:o((e={Accept:"application/json; charset=utf-8","Content-Type":"application/json"},e["X-GDC-VERSION"]=5,e),m(this.configStorage.originPackage||b.thisPackage))},this.configStorage.xhrSettings,t);return n.pollDelay=void 0!==n.pollDelay?n.pollDelay:1e3,n.body=n.data?n.data:n.body,n.mode="same-origin",n.credentials="same-origin",c.default(n.body)&&(n.body=JSON.stringify(n.body)),n},t.prototype.continueAfterTokenRequest=function(t,e){var n=this;return this.tokenRequest.then((function(r){return u(n,void 0,void 0,(function(){return s(this,(function(n){if(!r.ok)throw new x("Unauthorized",r,null);return this.tokenRequest=null,[2,this.ajax(t,e)]}))}))}),(function(t){return n.tokenRequest=null,t}))},t.prototype.handleUnauthorized=function(t,e){return u(this,void 0,void 0,(function(){var n,r,i,o,u;return s(this,(function(s){switch(s.label){case 0:return this.tokenRequest?[2,this.continueAfterTokenRequest(t,e)]:(n=v("/gdc/account/token",this.createRequestSettings({}),this.configStorage.domain),r=n.url,i=n.settings,this.tokenRequest=this.fetch(r,i),[4,this.tokenRequest]);case 1:return[4,(o=s.sent()).text()];case 2:if(u=s.sent(),this.tokenRequest=null,401===o.status)throw new x("Unauthorized",o,u);return[2,this.ajax(t,e)]}}))}))},t.prototype.logDeprecatedRestApiCall=function(t){console.warn("The REST API version 5 is deprecated ("+t+"). Please migrate your application to use GoodData.UI SDK or @gooddata/gooddata-js package that supports newer version of the API.")},t.prototype.isRestApiDeprecated=function(t){return t.has("X-GDC-DEPRECATED")},t.prototype.verifyRestApiDeprecationStatus=function(t){if(j&&this.isRestApiDeprecated(t)){var e=t.get("X-GDC-DEPRECATED");this.logDeprecatedRestApiCall(e),j=!1}},t}();e.XhrModule=S},function(t,e){t.exports=function(t){return t}},function(t,e,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var o=i(n(25)),u=n(204),s=n(60),a=n(103);e.thisPackage={name:a.name,version:a.version},e.getIn=function(t){return function(e){return o.default(e,t)}},e.handlePolling=function(t,n,i,o){void 0===o&&(o={});var s=o.attempts,a=void 0===s?0:s,c=o.maxAttempts,f=void 0===c?50:c,l=o.pollStep,h=void 0===l?5e3:l;return t(n).then((function(t){return t.getData()})).then((function(s){return a>f?Promise.reject(new Error(s)):i(s)?Promise.resolve(s):u.delay(h).then((function(){return e.handlePolling(t,n,i,r({},o,{attempts:a+1}))}))}))},e.handleHeadPolling=function(t,n,i,o){void 0===o&&(o={});var a=o.attempts,c=void 0===a?0:a,f=o.maxAttempts,l=void 0===f?50:f,h=o.pollStep,p=void 0===h?5e3:h;return t(n).then((function(a){if(c>l)return Promise.reject(new Error("Export timeout!!!"));var f=a.getHeaders();return i(f,a)?200===f.status?Promise.resolve({uri:n}):Promise.reject(new s.ApiResponseError(a.statusText,a,a.getData())):u.delay(p).then((function(){return e.handleHeadPolling(t,n,i,r({},o,{attempts:c+1}))}))}))},e.queryString=function(t){return t?"?"+Object.keys(t).map((function(e){return n=e,r=t[e],Array.isArray(r)?r.map((function(t){return encodeURIComponent(n)+"="+encodeURIComponent(t)})).join("&"):encodeURIComponent(n)+"="+encodeURIComponent(r);var n,r})).join("&"):""},e.getAllPagesByOffsetLimit=function t(e,n,r,i,u){return void 0===i&&(i=0),void 0===u&&(u=[]),new Promise((function(s,a){e.get(n+"?offset="+i+"&limit=100").then((function(t){return t.getData()})).then((function(a){var c=o.default(a,r),f=u.concat(c.items),l=o.default(c,"paging.totalCount",0),h=i+100;s(h>l?f:t(e,n,r,h,f))}),a)}))}},function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"a",(function(){return u}));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(32).a),o=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.a(e,t),e}(n(30).a))(i),u=o},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=function(){return Date.now()},t}()},function(t,e,n){var r=n(66);t.exports=function(t,e){for(var n=t.length;n--;)if(r(t[n][0],e))return n;return-1}},function(t,e){t.exports=function(t,e){return t===e||t!=t&&e!=e}},function(t,e){t.exports=function(t,e){return function(n){return t(e(n))}}},function(t,e,n){var r=n(178),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();t.exports=o},function(t,e){t.exports=function(){return!1}},function(t,e,n){var r=n(99),i=n(124),o=n(71),u=Function.prototype,s=Object.prototype,a=u.toString,c=s.hasOwnProperty,f=a.call(Object);t.exports=function(t){if(!o(t)||"[object Object]"!=r(t))return!1;var e=i(t);if(null===e)return!0;var n=c.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&a.call(n)==f}},function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},function(t,e,n){var r=n(99),i=n(37);t.exports=function(t){if(!i(t))return!1;var e=r(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},function(t,e,n){var r=n(126);t.exports=function(t,e,n){return null==t?t:r(t,e,n)}},function(t,e,n){var r=n(128),i=n(129),o=n(131);t.exports=function(t,e){return o(i(t,e,r),t+"")}},function(t,e){t.exports=function(){return!1}},function(t,e){t.exports=function(){return!1}},function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"a",(function(){return h}));var r=n(0),i=n(1),o=n(4),u=n(3),s=n(5);function a(t,e,n,r){return function(i){return i.lift(new c(t,e,n,r))}}var c=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 h(e,i,this);if(this.destination.next(o),this.durationSelector){var u=void 0;try{u=this.durationSelector(new h(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),h=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 p(n)),e.add(r.subscribe(t)),e},e}(u.a),p=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";var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var o=i(n(161)),u=i(n(46)),s=n(40);function a(t){return t.definition.measure}function c(t){return t.definition.popMeasure}function f(t){return t.definition.previousPeriodMeasure}function l(t){return t.definition.arithmeticMeasure}function h(t){return{attributes:t.attributes||[],measures:t.measures||[],filters:t.filters||[],nativeTotals:t.nativeTotals||[]}}function p(t){return!!a(t)}function d(t){return t.uri?t.uri:t.identifier?t.identifier:null}function b(t){if(s.AFM.isRelativeDateFilter(t))return t.relativeDateFilter.dataSet;if(s.AFM.isAbsoluteDateFilter(t))return t.absoluteDateFilter.dataSet;throw new Error("Unsupported type of date filter")}function v(t,e){var n=b(t),r=b(e);return n&&r&&d(n)===d(r)}function y(t){return!!s.AFM.isRelativeDateFilter(t)&&t.relativeDateFilter.granularity===e.ALL_TIME_GRANULARITY}e.ALL_TIME_GRANULARITY="ALL_TIME_GRANULARITY",e.unwrapSimpleMeasure=a,e.unwrapPoPMeasure=c,e.unwrapPreviousPeriodMeasure=f,e.unwrapArithmeticMeasure=l,e.normalizeAfm=h,e.isSimpleMeasure=p,e.isPoP=function(t){return!!c(t)},e.isPreviousPeriodMeasure=function(t){return!!f(t)},e.isArithmeticMeasure=function(t){return!!l(t)},e.isAttributeFilter=function(t){return s.AFM.isAttributeFilter(t)},e.isDateFilter=function(t){return s.AFM.isDateFilter(t)},e.isAttributeFilterSelectAll=function(t){return!!s.AFM.isNegativeAttributeFilter(t)&&0===t.negativeAttributeFilter.notIn.length},e.hasMetricDateFilters=function(t){return t.measures.some((function(t){if(p(t)){var e=a(t).filters;return!(!e||!e.some(s.AFM.isDateFilter))}return!1}))},e.getGlobalDateFilters=function(t){return t.filters.filter(s.AFM.isDateFilter)},e.hasFilters=function(t){return!!(t.filters&&t.filters.length>0)},e.getMeasureDateFilters=function(t){return o.default(t.measures,(function(t){var n=a(t);return n&&e.hasFilters(n)?(n.filters||[]).filter(s.AFM.isDateFilter):[]}))},e.hasGlobalDateFilter=function(t){return t.filters.some(s.AFM.isDateFilter)},e.getId=d,e.getDateFilterDateDataSet=b,e.dateFiltersDataSetsMatch=v,e.appendFilters=function(t,e,n,i){var o=n&&!y(n)?[n]:[],a=t.filters?t.filters.filter(s.AFM.isDateFilter)[0]:null,c=t.filters||[];n&&y(n)&&(c=c.filter((function(t){return!s.AFM.isDateFilter(t)||!v(t,n)}))),(a&&n&&!v(a,n)||a&&!n)&&o.push(a);var f=c.filter((function(t){return!s.AFM.isDateFilter(t)})),l=u.default(f.concat(e,o,i||[]));return l.length||t.filters&&t.filters.length?r({},t,{filters:l}):t},e.isAfmExecutable=function(t){var e=h(t);return e.measures.length>0||e.attributes.length>0}},function(t,e,n){"use strict";n.d(e,"a",(function(){return c})),n.d(e,"b",(function(){return f}));var r=n(0),i=n(5),o=n(3),u=n(1),s=n(4),a=n(47),c=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 l(this.getSubject(),this))),t.closed&&(this._connection=null,t=s.a.EMPTY)),t},e.prototype.refCount=function(){return Object(a.a)()(this)},e}(o.a),f=function(){var t=c.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}}(),l=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 u}));var r=n(0),i=n(5),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,"b",(function(){return u})),n.d(e,"a",(function(){return a}));var r=n(0),i=n(1),o=n(17);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 a(t,this.scheduler,this.delay))},t}(),a=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.destination.add(this.scheduler.schedule(e.dispatch,this.delay,new c(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)),this.unsubscribe()},e.prototype._complete=function(){this.scheduleMessage(o.a.createComplete()),this.unsubscribe()},e}(i.a),c=function(){return function(t,e){this.notification=t,this.destination=e}}()},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(){function t(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return t.prototype=Object.create(Error.prototype),t}()},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(51);function i(){return Object(r.a)(1)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(3),i=n(9),o=n(51),u=n(29);function s(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=Number.POSITIVE_INFINITY,s=null,a=t[t.length-1];return Object(i.a)(a)?(s=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof a&&(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 a}));var r=n(0),i=n(7),o=n(29),u=n(15),s=n(12);function a(){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 c)}var c=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,void 0,n);this.subscriptions&&this.subscriptions.push(i),this.add(i)}this.observables=null}},e.prototype.notifyNext=function(t,e,n){if(!this.hasFirst){this.hasFirst=!0;for(var r=0;r<this.subscriptions.length;r++)if(r!==n){var i=this.subscriptions[r];i.unsubscribe(),this.remove(i)}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(3),i=n(6),o=n(33),u=n(9);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(a,r,{index:0,period:s,subscriber:e})}))}function a(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 f}));var r=n(3),i=n(4),o=n(21);var u=n(56),s=n(18);var a=n(91),c=n(90);function f(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[o.a]}(t))return function(t,e){return new r.a((function(n){var r=new i.a;return r.add(e.schedule((function(){var i=t[o.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}))}(t,e);if(Object(a.a)(t))return function(t,e){return new r.a((function(n){var r=new i.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}))}(t,e);if(Object(c.a)(t))return Object(u.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 new r.a((function(n){var r,o=new i.a;return o.add((function(){r&&"function"==typeof r.return&&r.return()})),o.add(e.schedule((function(){r=t[s.a](),o.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())}})))}))),o}))}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}},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(4).a)},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.complete()}}},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";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";function r(t,e){function n(){return!n.pred.apply(n.thisArg,arguments)}return n.pred=t,n.thisArg=e,n}n.d(e,"a",(function(){return r}))},function(t,e,n){var r=n(94),i=n(172),o=n(95),u=n(175),s=n(176),a=n(118),c=n(119),f=n(180),l=n(182),h=n(120),p=n(121),d=n(98),b=n(184),v=n(185),y=n(122),m=n(20),g=n(69),x=n(186),w=n(37),_=n(187),j=n(97),S=n(59),O={};O["[object Arguments]"]=O["[object Array]"]=O["[object ArrayBuffer]"]=O["[object DataView]"]=O["[object Boolean]"]=O["[object Date]"]=O["[object Float32Array]"]=O["[object Float64Array]"]=O["[object Int8Array]"]=O["[object Int16Array]"]=O["[object Int32Array]"]=O["[object Map]"]=O["[object Number]"]=O["[object Object]"]=O["[object RegExp]"]=O["[object Set]"]=O["[object String]"]=O["[object Symbol]"]=O["[object Uint8Array]"]=O["[object Uint8ClampedArray]"]=O["[object Uint16Array]"]=O["[object Uint32Array]"]=!0,O["[object Error]"]=O["[object Function]"]=O["[object WeakMap]"]=!1,t.exports=function t(e,n,A,E,D,F){var T,I=1&n,P=2&n,M=4&n;if(A&&(T=D?A(e,E,D,F):A(e)),void 0!==T)return T;if(!w(e))return e;var C=m(e);if(C){if(T=b(e),!I)return c(e,T)}else{var R=d(e),k="[object Function]"==R||"[object GeneratorFunction]"==R;if(g(e))return a(e,I);if("[object Object]"==R||"[object Arguments]"==R||k&&!D){if(T=P||k?{}:y(e),!I)return P?l(e,s(T,e)):f(e,u(T,e))}else{if(!O[R])return D?e:{};T=v(e,R,I)}}F||(F=new r);var N=F.get(e);if(N)return N;F.set(e,T),_(e)?e.forEach((function(r){T.add(t(r,n,A,r,e,F))})):x(e)&&e.forEach((function(r,i){T.set(i,t(r,n,A,i,e,F))}));var V=C?void 0:(M?P?p:h:P?S:j)(e);return i(V||e,(function(r,i){V&&(r=e[i=r]),o(T,i,t(r,n,A,i,e,F))})),T}},function(t,e,n){var r=n(167),i=n(168),o=n(169),u=n(170),s=n(171);function a(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}a.prototype.clear=r,a.prototype.delete=i,a.prototype.get=o,a.prototype.has=u,a.prototype.set=s,t.exports=a},function(t,e,n){var r=n(96),i=n(66),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){var u=t[e];o.call(t,e)&&i(u,n)&&(void 0!==n||e in t)||r(t,e,n)}},function(t,e,n){var r=n(173);t.exports=function(t,e,n){"__proto__"==e&&r?r(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},function(t,e,n){var r=n(67)(Object.keys,Object);t.exports=r},function(t,e){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},function(t,e){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},function(t,e,n){var r=n(72),i=n(135);t.exports=function(t){return null!=t&&i(t.length)&&!r(t)}},function(t,e){t.exports=function(){return!1}},function(t,e,n){var r=n(39),i=n(61);t.exports=function(t,e){for(var n=0,o=(e=r(e,t)).length;null!=t&&n<o;)t=t[i(e[n++])];return n&&n==o?t:void 0}},function(t){t.exports=JSON.parse('{"name":"@gooddata/gooddata-js","version":"13.5.0","author":"GoodData","description":"GoodData JavaScript SDK","license":"BSD-3-Clause","main":"lib/gooddata-node.js","browser":"lib/gooddata-browser.js","typings":"lib/gooddata-browser.d.ts","files":["dist","lib","src","LICENSE"],"config":{"tslint":"./{src,test}/**/*.ts"},"scripts":{"dev":"tsc --watch","build":"yarn run build:lib && yarn run build:dist","build:lib":"rm -rf lib && tsc -p tsconfig.build.json","build:dist":"rm -rf dist && grunt dist","prepublishOnly":"yarn run build","test":"jest --watch","test-once":"jest","test-ci":"JEST_JUNIT_OUTPUT=./ci/results/test-results.xml jest --config jest.ci.json","run-tslint":"tslint -p tsconfig.json","tslint":"yarn run-tslint -t verbose $npm_package_config_tslint","tslint-ci":"mkdir -p ./ci/results && yarn run-tslint -t checkstyle -o ./ci/results/tslint-results.xml $npm_package_config_tslint","prettier-check":"prettier --check \'{src,test}/**/*.{ts,tsx,json,scss,md,yaml,html}\'","prettier-write":"prettier --write \'{src,test}/**/*.{ts,tsx,json,scss,md,yaml,html}\'","validate":"tsc --noEmit && yarn tslint && yarn prettier-check","validate-ci":"tsc --noEmit && yarn tslint-ci && yarn prettier-check"},"repository":{"type":"git","url":"git@github.com:gooddata/gooddata-js.git"},"jest":{"setupFilesAfterEnv":["<rootDir>/jest.setup.js"],"transform":{".(ts|tsx)":"ts-jest"},"testRegex":"(/__tests__/.*|\\\\.(test|spec))\\\\.(tsx?)$","collectCoverageFrom":["src/**/*.{ts,tsx}","!**/*.d.ts"],"collectCoverage":false,"coverageReporters":["html"],"moduleFileExtensions":["ts","tsx","js"]},"devDependencies":{"@gooddata/frontend-npm-scripts":"1.2.0","@gooddata/grunt-grizzly":"2.0.0","@gooddata/tslint-config":"^1.0.0","@types/fast-levenshtein":"0.0.1","@types/fetch-mock":"5.*","@types/invariant":"^2.2.29","@types/isomorphic-fetch":"^0.0.35","@types/jest":"24.0.6","@types/json-stable-stringify":"^1.0.32","@types/lodash":"^4.14.165","@types/md5":"^2.1.32","@types/node-fetch":"^2.5.7","@types/qs":"^6.5.1","@types/uuid":"^8.3.0","async":"2.1.5","exports-loader":"0.6.3","fast-levenshtein":"2.0.6","fetch-mock":"5.12.2","grunt":"1.0.4","grunt-cli":"1.2.0","grunt-contrib-copy":"0.8.2","grunt-contrib-watch":"1.1.0","grunt-contrib-yuidoc":"1.0.0","grunt-gh-pages":"2.0.0","grunt-run":"0.8.0","grunt-webpack":"4.0.2","husky":"3.0.0","imports-loader":"0.7.0","istanbul-instrumenter-loader":"0.2.0","jest":"^25.5.4","jest-junit":"3.0.0","js-object-pretty-print":"0.2.0","lint-staged":"9.1.0","lodash-webpack-plugin":"0.11.0","prettier":"^1.18.2","ts-jest":"25.3.1","ts-loader":"4.5.0","tslint-config-prettier":"^1.18.0","typescript":"3.3.4000","webpack":"^4.44.1","webpack-dev-server":"^3.11.0"},"dependencies":{"@gooddata/typings":"^2.27.0","fetch-cookie":"^0.11.0","invariant":"^2.2.2","isomorphic-fetch":"^3.0.0","json-stable-stringify":"^1.0.1","lodash":"^4.17.20","md5":"^2.2.1","node-fetch":"^2.6.1","qs":"^6.5.1","rxjs":"^6.3.1","uuid":"^8.3.1"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"{src,test}/**/*.{ts,tsx,json,scss,md,yaml,html}":["prettier --write","git add"],"{src,test}/**/*.{ts,js,tsx,jsx,scss}":["npx gdc-fix-copyright","git add"]}}')},function(t,e,n){"use strict";var r=Object.prototype.hasOwnProperty,i=Array.isArray,o=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),u=function(t,e){for(var n=e&&e.plainObjects?Object.create(null):{},r=0;r<t.length;++r)void 0!==t[r]&&(n[r]=t[r]);return n};t.exports={arrayToObject:u,assign:function(t,e){return Object.keys(e).reduce((function(t,n){return t[n]=e[n],t}),t)},combine:function(t,e){return[].concat(t,e)},compact:function(t){for(var e=[{obj:{o:t},prop:"o"}],n=[],r=0;r<e.length;++r)for(var o=e[r],u=o.obj[o.prop],s=Object.keys(u),a=0;a<s.length;++a){var c=s[a],f=u[c];"object"==typeof f&&null!==f&&-1===n.indexOf(f)&&(e.push({obj:u,prop:c}),n.push(f))}return function(t){for(;t.length>1;){var e=t.pop(),n=e.obj[e.prop];if(i(n)){for(var r=[],o=0;o<n.length;++o)void 0!==n[o]&&r.push(n[o]);e.obj[e.prop]=r}}}(e),t},decode:function(t,e,n){var r=t.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(t){return r}},encode:function(t,e,n){if(0===t.length)return t;var r=t;if("symbol"==typeof t?r=Symbol.prototype.toString.call(t):"string"!=typeof t&&(r=String(t)),"iso-8859-1"===n)return escape(r).replace(/%u[0-9a-f]{4}/gi,(function(t){return"%26%23"+parseInt(t.slice(2),16)+"%3B"}));for(var i="",u=0;u<r.length;++u){var s=r.charCodeAt(u);45===s||46===s||95===s||126===s||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122?i+=r.charAt(u):s<128?i+=o[s]:s<2048?i+=o[192|s>>6]+o[128|63&s]:s<55296||s>=57344?i+=o[224|s>>12]+o[128|s>>6&63]+o[128|63&s]:(u+=1,s=65536+((1023&s)<<10|1023&r.charCodeAt(u)),i+=o[240|s>>18]+o[128|s>>12&63]+o[128|s>>6&63]+o[128|63&s])}return i},isBuffer:function(t){return!(!t||"object"!=typeof t)&&!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},maybeMap:function(t,e){if(i(t)){for(var n=[],r=0;r<t.length;r+=1)n.push(e(t[r]));return n}return e(t)},merge:function t(e,n,o){if(!n)return e;if("object"!=typeof n){if(i(e))e.push(n);else{if(!e||"object"!=typeof e)return[e,n];(o&&(o.plainObjects||o.allowPrototypes)||!r.call(Object.prototype,n))&&(e[n]=!0)}return e}if(!e||"object"!=typeof e)return[e].concat(n);var s=e;return i(e)&&!i(n)&&(s=u(e,o)),i(e)&&i(n)?(n.forEach((function(n,i){if(r.call(e,i)){var u=e[i];u&&"object"==typeof u&&n&&"object"==typeof n?e[i]=t(u,n,o):e.push(n)}else e[i]=n})),e):Object.keys(n).reduce((function(e,i){var u=n[i];return r.call(e,i)?e[i]=t(e[i],u,o):e[i]=u,e}),s)}}},function(t,e,n){var r=n(106);t.exports=function(t){return(null==t?0:t.length)?r(t,1):[]}},function(t,e,n){var r=n(208),i=n(209);t.exports=function t(e,n,o,u,s){var a=-1,c=e.length;for(o||(o=i),s||(s=[]);++a<c;){var f=e[a];n>0&&o(f)?n>1?t(f,n-1,o,u,s):r(s,f):u||(s[s.length]=f)}return s}},function(t,e,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var o=i(n(26)),u=i(n(108)),s=i(n(20)),a=i(n(37)),c=i(n(222)),f=i(n(146)),l=n(293),h=n(147),p=function(t,e){return Object.keys(e).find((function(n){return e[n]===t}))},d=function(){return l.v4().replace(/-/g,"")},b=function(t,e){if(s.default(t))return t.map((function(t){return b(t,e)}));if(a.default(t)){var n=t;return Object.keys(n).reduce((function(t,r){return t[r]=b(n[r],e),t}),{})}return c.default(t)?e(t):t},v=function(t){return function(e,n){void 0===n&&(n=d);var i=e.content;if(!i)return e;var s=i.properties;if(!s)return e;var a=JSON.parse(s),c=i.references||{},l=t(a,c,n),h=l.convertedProperties,p=l.convertedReferences,b=o.default(p)?void 0:{references:p};return r({},e,{content:r({},u.default(e.content,"references"),{properties:f.default(h)},b)})}};e.convertReferencesToUris=v((function(t,e){var n;return{convertedProperties:b(t,(n=e,function(t){return function(t,e){return e[t]}(t,n)||t})),convertedReferences:e}}));e.convertUrisToReferences=v((function(t,e,n){var r=function(t,e){var n={};return{convertedReferences:n,conversion:function(r){if(!h.isUri(r))return r;var i=p(r,t)||p(r,n)||e();return n[i]=r,i}}}(e,n);return{convertedProperties:b(t,r.conversion),convertedReferences:r.convertedReferences}}))},function(t,e,n){var r=n(145),i=n(93),o=n(218),u=n(39),s=n(45),a=n(221),c=n(144),f=n(121),l=c((function(t,e){var n={};if(null==t)return n;var c=!1;e=r(e,(function(e){return e=u(e,t),c||(c=e.length>1),e})),s(t,f(t),n),c&&(n=i(n,7,a));for(var l=e.length;l--;)o(n,e[l]);return n}));t.exports=l},function(t,e,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var o=i(n(58)),u=n(40);function s(t,e){return e?{values:t}:{uris:t}}function a(t){var e=t.positiveAttributeFilter;return{positiveAttributeFilter:{displayForm:e.displayForm,in:s(e.in,e.textFilter)}}}function c(t){var e=t.negativeAttributeFilter;return{negativeAttributeFilter:{displayForm:e.displayForm,notIn:s(e.notIn,e.textFilter)}}}function f(t){return u.AFM.isPositiveAttributeFilter(t)?a(t):u.AFM.isNegativeAttributeFilter(t)?c(t):t}function l(t){return u.AFM.isPositiveAttributeFilter(t)?a(t):u.AFM.isNegativeAttributeFilter(t)?c(t):t}function h(t){if(u.AFM.isSimpleMeasureDefinition(t.definition)){var e=t.definition.measure,n=function(t){return void 0!==t?t.map(l):t}(e.filters);return r({},t,{definition:{measure:r({},e,n?{filters:n}:{})}})}return t}function p(t){if(void 0===t)return{};var e,n,i=r({},t,{measures:(n=t.measures,void 0!==n?n.map(h):n),filters:(e=t.filters,void 0!==e?e.map(f):e)});return o.default(i)}e.convertFilter=f,e.convertAfm=p,e.convertExecutionToJson=function(t){return JSON.stringify(function(t){return{execution:{afm:p(t.execution.afm),resultSpec:t.execution.resultSpec}}}(t))}},function(t,e,n){"use strict";e.__esModule=!0;var r=n(26);!function(t){function e(t){return!r(t)&&void 0!==t.relativeDateFilter}function n(t){return!r(t)&&void 0!==t.absoluteDateFilter}function i(t){return!r(t)&&void 0!==t.positiveAttributeFilter}function o(t){return!r(t)&&void 0!==t.negativeAttributeFilter}t.isObjectUriQualifier=function(t){return!r(t)&&void 0!==t.uri},t.isObjIdentifierQualifier=function(t){return!r(t)&&void 0!==t.identifier},t.isSimpleMeasureDefinition=function(t){return!r(t)&&void 0!==t.measure},t.isArithmeticMeasureDefinition=function(t){return!r(t)&&void 0!==t.arithmeticMeasure},t.isPopMeasureDefinition=function(t){return!r(t)&&void 0!==t.popMeasure},t.isPreviousPeriodMeasureDefinition=function(t){return!r(t)&&void 0!==t.previousPeriodMeasure},t.isAttributeSortItem=function(t){return!r(t)&&void 0!==t.attributeSortItem},t.isMeasureSortItem=function(t){return!r(t)&&void 0!==t.measureSortItem},t.isMeasureLocatorItem=function(t){return!r(t)&&void 0!==t.measureLocatorItem},t.isDateFilter=function(t){return!r(t)&&(e(t)||n(t))},t.isRelativeDateFilter=e,t.isAbsoluteDateFilter=n,t.isAttributeFilter=function(t){return!r(t)&&(i(t)||o(t))},t.isPositiveAttributeFilter=i,t.isNegativeAttributeFilter=o,t.isMeasureValueFilter=function(t){return!r(t)&&void 0!==t.measureValueFilter},t.isRankingFilter=function(t){return!r(t)&&void 0!==t.rankingFilter},t.isExpressionFilter=function(t){return!r(t)&&void 0!==t.value}}(e.AFM||(e.AFM={}))},function(t,e,n){"use strict";e.__esModule=!0;var r,i=n(26),o=n(110);function u(t){var e=(t||{}).gdc,n=(void 0===e?{}:e).event,r=(void 0===n?{}:n).name;return void 0===r?"":r}!function(t){t.ANALYTICAL_DESIGNER="analyticalDesigner",t.KPI_DASHBOARD="dashboard"}(e.GdcProductName||(e.GdcProductName={})),function(t){t.AppCommandFailed="appCommandFailed"}(r=e.GdcEventType||(e.GdcEventType={})),function(t){t.InvalidCommand="error:invalidCommand",t.InvalidArgument="error:invalidArgument",t.InvalidState="error:invalidState",t.RuntimeError="error:runtime"}(e.GdcErrorType||(e.GdcErrorType={})),e.isCommandFailedData=function(t){return u(t)===r.AppCommandFailed},e.getEventType=u,function(t){function e(t){return!i(t)&&void 0!==t.relativeDateFilter}function n(t){return!i(t)&&void 0!==t.absoluteDateFilter}t.isDateFilter=function(t){return!i(t)&&(e(t)||n(t))},t.isRelativeDateFilter=e,t.isAbsoluteDateFilter=n,t.isAttributeFilter=o.AFM.isAttributeFilter,t.isPositiveAttributeFilter=o.AFM.isPositiveAttributeFilter,t.isNegativeAttributeFilter=o.AFM.isNegativeAttributeFilter,t.isObjIdentifierQualifier=o.AFM.isObjIdentifierQualifier,t.isObjectUriQualifier=o.AFM.isObjectUriQualifier,t.isRemoveDateFilter=function(t){return!i(t)&&void 0!==t.dataSet},t.isRemoveAttributeFilter=function(t){return!i(t)&&void 0!==t.displayForm}}(e.EmbeddedGdc||(e.EmbeddedGdc={}))},function(t,e,n){"use strict";t.exports=function(t,e,n,r,i,o,u,s){if(!t){var a;if(void 0===e)a=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,i,o,u,s],f=0;(a=new Error(e.replace(/%s/g,(function(){return c[f++]})))).name="Invariant Violation"}throw a.framesToPop=1,a}}},function(t,e,n){var r=n(240)(n(241));t.exports=r},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var i=r(n(25)),o=r(n(73));e.getMissingUrisInAttributesMap=function(t,e){return(t||[]).filter((function(t){return!e[t]}))};var u=function(){function t(t){this.md=t}return t.prototype.loadAttributesMap=function(t,e){var n=this;return 0===e.length?Promise.resolve({}):this.md.getObjects(t,e).then((function(e){var r=function(t){return t.map((function(t){return i.default(t,["attributeDisplayForm","content","formOf"])}))}(e);return n.md.getObjects(t,r).then((function(t){return function(t,e){return t.reduce((function(t,n){var r=i.default(n,["attributeDisplayForm","meta","uri"]),u=e.find((function(t){return i.default(t,["attribute","meta","uri"])===i.default(n,["attributeDisplayForm","content","formOf"])}));return o.default(t,[r],u)}),{})}(e,t)}))}))},t}();e.AttributesMapLoaderModule=u},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(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])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},u=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var s=u(n(112)),a=u(n(139)),c=u(n(256)),f=u(n(25)),l=n(60),h=n(109);e.DEFAULT_LIMIT=1e3;var p=function(t){function e(e,n){var r=t.call(this,e.message,e.response,e.responseBody)||this;return r.executionResponse=n,r}return i(e,t),e}(l.ApiResponseError);e.ApiExecutionResponseError=p;var d=function(){function t(t){this.xhr=t}return t.prototype.executeAfm=function(t,e){var n=this;return m(f.default(e,"execution.resultSpec.dimensions").length),this.getExecutionResponse(t,e).then((function(t){return n.getExecutionResult(t.links.executionResult).then((function(e){return{executionResponse:t,executionResult:e}})).catch((function(e){throw new p(e,t)}))}))},t.prototype.getExecutionResponse=function(t,e){return m(f.default(e,"execution.resultSpec.dimensions").length),this.xhr.post("/gdc/app/projects/"+t+"/executeAfm",{body:h.convertExecutionToJson(e)}).then((function(t){return t.getData()})).then(v)},t.prototype._executeVisualization=function(t,e){var n=this;return this._getVisExecutionResponse(t,e).then((function(t){return n.getExecutionResult(t.links.executionResult).then((function(e){return{executionResponse:t,executionResult:e}}))}))},t.prototype._getVisExecutionResponse=function(t,e){var n=function(t){var e=t.visualizationExecution,n=e.reference,r=e.resultSpec,i=e.filters,u=r?{resultSpec:r}:void 0,s=i?{filters:i}:void 0;return JSON.stringify({visualizationExecution:o({reference:n},u,s)})}(e);return this.xhr.post("/gdc/app/projects/"+t+"/executeVisualization",{body:n}).then((function(t){return t.getData()})).then(v)},t.prototype.getPartialExecutionResult=function(t,e,n){var r=b(t);return m(Number(a.default.parse(r).dimensions)),this.getPage(t,e,n)},t.prototype.getExecutionResult=function(t){var n=b(t),r=Number(a.default.parse(n).dimensions);m(r);var i=Array(r).fill(e.DEFAULT_LIMIT),o=Array(r).fill(0);return this.getAllPages(t,i,o)},t.prototype.getPage=function(t,e,n){return this.fetchExecutionResult(t,e,n).then((function(t){return t?y(t):null}))},t.prototype.getAllPages=function(t,e,n,r){var i=this;return this.fetchExecutionResult(t,e,n).then((function(n){if(!n)return null;var o=y(n),u=r?S(r,o):o,s=o.paging,a=s.offset,c=s.total,f=x(e,a,c),l=w(e,f,c);return _(f,c)?i.getAllPages(t,l,f,u):u}))},t.prototype.fetchExecutionResult=function(t,e,n){var r=g(t,e,n);return this.xhr.get(r).then((function(t){return 204===t.response.status?null:t.getData()}))},t}();function b(t){return t.split(/\?(.+)/)[1]}function v(t){return t.executionResponse}function y(t){return t.executionResult}function m(t){s.default(1===t||2===t,t+" dimensions are not allowed. Only 1 or 2 dimensions are supported.")}function g(t,e,n){var r=t.split(/\?(.+)/),i=r[0],u=r[1],s=o({},a.default.parse(u),{limit:e.join(","),offset:n.join(",")});return i+a.default.stringify(s,{addQueryPrefix:!0})}function x(t,e,n){var r=n.length,i=e[0]+t[0];if(1===r)return[i];var o=e[1]+t[1],u=e[1]+t[1]<n[1];return[u?e[0]:i,u?o:0]}function w(t,e,n){var r=n.length;m(r);var i=function(t,e,n){return e+t>n?n-e:t};return 2===r&&0===e[1]&&t[0]<n[1]?[i(t[0],e[0],n[0]),t[0]]:c.default(r).map((function(r){return i(t[r],e[r],n[r])}))}function _(t,e){return t[0]<e[0]}function j(t,e,n){var r;if(e&&n.headerItems)for(var i=0;i<e[t].length;i+=1)(r=n.headerItems[t][i]).push.apply(r,e[t][i])}function S(t,e){var n=t,r=e.headerItems,i=e.data,o=e.paging,u=function(t){var e=0===t?1:0;0===o.offset[e]&&j(t,r,n)},s=o.offset[0];if(n.data[s])for(var a=0;a<i.length;a+=1){var c=i[a];(l=n.data[a+s]).push.apply(l,c)}else{var l,h=i;(l=n.data).push.apply(l,h)}return o.offset.length>1?(u(0),u(1)):j(0,r,n),1===o.offset.length&&(n.paging.count=[f.default(n,"headerItems[0][0]",[]).length]),2===o.offset.length&&(n.paging.count=[f.default(n,"headerItems[0][0]",[]).length,f.default(n,"headerItems[1][0]",[]).length]),n}e.ExecuteAfmModule=d,e.replaceLimitAndOffsetInUri=g,e.getNextOffset=x,e.getNextLimit=w,e.nextPageExists=_,e.mergePage=S},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(40);function i(t){var e=t.absoluteDateFilter;return void 0===e.from||void 0===e.to?null:{absoluteDateFilter:{dataSet:e.dataSet,from:String(e.from),to:String(e.to)}}}function o(t){var e=t.relativeDateFilter;return void 0===e.from||void 0===!e.to?null:{relativeDateFilter:{dataSet:e.dataSet,granularity:e.granularity,from:Number(e.from),to:Number(e.to)}}}function u(t){return void 0===t.measureValueFilter.condition?null:t}function s(t){return r.VisualizationObject.isAttributeFilter(t)?function(t){return r.VisualizationObject.isPositiveAttributeFilter(t)||t.negativeAttributeFilter.notIn.length?t:null}(t):r.VisualizationObject.isAbsoluteDateFilter(t)?i(t):o(t)}e.convertAbsoluteDateFilter=i,e.convertRelativeDateFilter=o,e.convertMeasureValueFilter=u,e.convertVisualizationObjectFilter=s,e.convertVisualizationObjectExtendedFilter=function(t){return r.VisualizationObject.isMeasureValueFilter(t)?u(t):r.VisualizationObject.isRankingFilter(t)?t:s(t)}},function(t,e,n){(function(t){var r=n(68),i=e&&!e.nodeType&&e,o=i&&"object"==typeof t&&t&&!t.nodeType&&t,u=o&&o.exports===i?r.Buffer:void 0,s=u?u.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var n=t.length,r=s?s(n):new t.constructor(n);return t.copy(r),r}}).call(this,n(177)(t))},function(t,e){t.exports=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}},function(t,e,n){var r=n(67)(Object.keys,Object);t.exports=r},function(t,e){t.exports=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}},function(t,e,n){var r=n(123),i=n(124),o=n(125);t.exports=function(t){return"function"!=typeof t.constructor||o(t)?{}:r(i(t))}},function(t,e,n){var r=n(37),i=Object.create,o=function(){function t(){}return function(e){if(!r(e))return{};if(i)return i(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();t.exports=o},function(t,e,n){var r=n(67)(Object.getPrototypeOf,Object);t.exports=r},function(t,e){t.exports=function(){return!1}},function(t,e,n){var r=n(95),i=n(39),o=n(127),u=n(37),s=n(61);t.exports=function(t,e,n,a){if(!u(t))return t;for(var c=-1,f=(e=i(e,t)).length,l=f-1,h=t;null!=h&&++c<f;){var p=s(e[c]),d=n;if("__proto__"===p||"constructor"===p||"prototype"===p)return t;if(c!=l){var b=h[p];void 0===(d=a?a(b,p,h):void 0)&&(d=u(b)?b:o(e[c+1])?[]:{})}r(h,p,d),h=h[p]}return t}},function(t,e){var n=/^(?:0|[1-9]\d*)$/;t.exports=function(t,e){var r=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==r||"symbol"!=r&&n.test(t))&&t>-1&&t%1==0&&t<e}},function(t,e){t.exports=function(t){return t}},function(t,e,n){var r=n(130),i=Math.max;t.exports=function(t,e,n){return e=i(void 0===e?t.length-1:e,0),function(){for(var o=arguments,u=-1,s=i(o.length-e,0),a=Array(s);++u<s;)a[u]=o[e+u];u=-1;for(var c=Array(e+1);++u<e;)c[u]=o[u];return c[e]=n(a),r(t,this,c)}}},function(t,e){t.exports=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}},function(t,e){t.exports=function(t){return t}},function(t,e,n){var r=n(194),i=n(202)((function(t,e,n){r(t,e,n)}));t.exports=i},function(t,e,n){var r=n(96),i=n(66);t.exports=function(t,e,n){(void 0!==n&&!i(t[e],n)||void 0===n&&!(e in t))&&r(t,e,n)}},function(t,e,n){var r=n(100),i=n(71);t.exports=function(t){return i(t)&&r(t)}},function(t,e){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},function(t,e){t.exports=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var i=n(138),o=r(n(139)),u=function(){function t(t){this.xhr=t}return t.prototype.isLoggedIn=function(){var t=this;return new Promise((function(e,n){t.xhr.get("/gdc/account/token").then((function(t){t.response.ok&&e(!0),e(!1)}),(function(t){401===t.response.status?e(!1):n(t)}))}))},t.prototype.isLoggedInProject=function(t){var e=this;return this.getCurrentProfile().then((function(n){return new Promise((function(r,o){new i.ProjectModule(e.xhr).getProjects(n.links.self.split("/")[4]).then((function(e){e.find((function(e){return e.links.self==="/gdc/projects/"+t}))?r(!0):r(!1)}),(function(t){o(t)}))}))}))},t.prototype.login=function(t,e){return this.xhr.post("/gdc/account/login",{body:JSON.stringify({postUserLogin:{login:t,password:e,remember:1,captcha:"",verifyCaptcha:""}})}).then((function(t){return t.getData()}))},t.prototype.loginSso=function(t,e,n){return this.xhr.post("/gdc/account/customerlogin",{data:{pgpLoginRequest:{targetUrl:n,ssoProvider:e,encryptedClaims:t}}})},t.prototype.logout=function(){var t=this;return this.isLoggedIn().then((function(e){return e?t.xhr.get("/gdc/app/account/bootstrap").then((function(e){var n=e.getData().bootstrapResource.accountSetting.links.self.match(/([^\/]+)\/?$/)[1];return t.xhr.del("/gdc/account/login/"+n)})):Promise.resolve()}),(function(t){return Promise.reject(t)}))},t.prototype.getCurrentProfile=function(){return this.xhr.get("/gdc/account/profile/current").then((function(t){return t.getData().accountSetting}))},t.prototype.updateProfileSettings=function(t,e){return this.xhr.put("/gdc/account/profile/"+t+"/settings",{body:e})},t.prototype.getAccountInfo=function(){var t=this;return this.xhr.get("/gdc/app/account/bootstrap").then((function(e){var n=e.getData();return t.getAccountInfoInBootstrap(n)}))},t.prototype.getAccountInfoInBootstrap=function(t){var e=t.bootstrapResource,n=e.accountSetting,r=n.login,i=n.firstName,o=n.lastName,u=n.links.self;return{login:r,loginMD5:e.current.loginMD5,firstName:i,lastName:o,organizationName:e.settings.organizationName,profileUri:u}},t.prototype.getUserConfigs=function(t){return this.xhr.get("/gdc/account/profile/"+t+"/config").then((function(t){return t.getData().settings.items||[]}))},t.prototype.getFeatureFlags=function(){return this.xhr.get("/gdc/app/account/bootstrap").then((function(t){return t.getData()})).then((function(t){return t.bootstrapResource.current.featureFlags}))},t.prototype.initiateSamlSso=function(t){this.xhr.get("/gdc/account/samlrequest?"+o.default.stringify({relayState:t})).then((function(t){return t.getData()})).then((function(t){var e=t.samlRequests.items[0].samlRequest.loginUrl;window.location.assign(e)}))},t}();e.UserModule=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(62),i=[{r:43,g:107,b:174},{r:105,g:170,b:81},{r:238,g:177,b:76},{r:213,g:60,b:56},{r:137,g:77,b:148},{r:115,g:115,b:115},{r:68,g:169,b:190},{r:150,g:189,b:95},{r:253,g:147,b:105},{r:225,g:93,b:134},{r:124,g:111,b:173},{r:165,g:165,b:165},{r:122,g:166,b:213},{r:130,g:208,b:141},{r:255,g:210,b:137},{r:241,g:132,b:128},{r:191,g:144,b:198},{r:191,g:191,b:191}];e.parseSettingItemValue=function(t){if("true"===t)return!0;if("false"===t)return!1;var e=Number(t);return e.toString()===t?e:t};var o=function(){function t(t){this.xhr=t}return t.prototype.getCurrentProjectId=function(){return this.xhr.get("/gdc/app/account/bootstrap").then((function(t){return t.getData()})).then(this.getCurrentProjectIdInBootstrap)},t.prototype.getCurrentProjectIdInBootstrap=function(t){return t.bootstrapResource.current.project?t.bootstrapResource.current.project.links.self.split("/").pop():null},t.prototype.getProjects=function(t){return r.getAllPagesByOffsetLimit(this.xhr,"/gdc/account/profile/"+t+"/projects","projects").then((function(t){return t.map((function(t){return t.project}))}))},t.prototype.getDatasets=function(t){return this.xhr.get("/gdc/md/"+t+"/query/datasets").then((function(t){return t.getData()})).then(r.getIn("query.entries"))},t.prototype.getColorPalette=function(t){return this.xhr.get("/gdc/projects/"+t+"/styleSettings").then((function(t){return t.getData()})).then((function(t){return t.styleSettings.chartPalette.map((function(t){return{r:t.fill.r,g:t.fill.g,b:t.fill.b}}))}),(function(t){if(200===t.status)return i;throw new Error(t.statusText)}))},t.prototype.getColorPaletteWithGuids=function(t){return this.xhr.get("/gdc/projects/"+t+"/styleSettings").then((function(t){return t.getData()})).then((function(t){return t&&t.styleSettings?t.styleSettings.chartPalette:void 0}))},t.prototype.setColorPalette=function(t,e){return this.xhr.put("/gdc/projects/"+t+"/styleSettings",{body:{styleSettings:{chartPalette:e.map((function(t,e){return{fill:t,guid:"guid"+e}}))}}})},t.prototype.getTimezone=function(t){var e="/gdc/app/account/bootstrap?projectId="+t;return this.xhr.get(e).then((function(t){return t.getData()})).then((function(t){return t.bootstrapResource.current.timezone}))},t.prototype.setTimezone=function(t,e){var n="/gdc/md/"+t+"/service/timezone",r={service:{timezone:e}};return this.xhr.post(n,{body:r}).then((function(t){return t.getData()}))},t.prototype.createProject=function(t,e,n){var i=this;void 0===n&&(n={});var o=n.summary,u=n.projectTemplate,s=n.driver,a=void 0===s?"Pg":s,c=n.environment,f=void 0===c?"TESTING":c,l=n.guidedNavigation,h=void 0===l?1:l;return this.xhr.post("/gdc/projects",{body:JSON.stringify({project:{content:{guidedNavigation:h,driver:a,authorizationToken:e,environment:f},meta:{title:t,summary:o,projectTemplate:u}}})}).then((function(t){return t.getData()})).then((function(t){return r.handlePolling(i.xhr.get.bind(i.xhr),t.uri,(function(t){return function(t){var e=t.content.state;return"ENABLED"===e||"DELETED"===e}(t.project)}),n)}))},t.prototype.deleteProject=function(t){return this.xhr.del("/gdc/projects/"+t)},t.prototype.getFeatureFlags=function(t){return this.xhr.get("/gdc/app/projects/"+t+"/featureFlags").then((function(t){return t.getData()})).then((function(t){return t&&t.featureFlags?t.featureFlags:{}}))},t.prototype.getConfig=function(t){return this.xhr.get("/gdc/app/projects/"+t+"/config").then((function(t){return t.getData()})).then((function(t){return t&&t.settings&&t.settings.items?t.settings.items:[]}))},t.prototype.getProjectFeatureFlags=function(t,n){return this.getConfig(t).then((function(t){var r=n?t.filter((function(t){return t.settingItem.source===n})):t,i={};return r.forEach((function(t){i[t.settingItem.key]=e.parseSettingItemValue(t.settingItem.value)})),i}))},t}();e.ProjectModule=o},function(t,e,n){"use strict";var r=n(205),i=n(206),o=n(140);t.exports={formats:o,parse:i,stringify:r}},function(t,e,n){"use strict";var r=String.prototype.replace,i=/%20/g,o=n(104),u={RFC1738:"RFC1738",RFC3986:"RFC3986"};t.exports=o.assign({default:u.RFC3986,formatters:{RFC1738:function(t){return r.call(t,i,"+")},RFC3986:function(t){return String(t)}}},u)},function(t,e,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var o=i(n(70)),u=i(n(25)),s=i(n(207)),a=i(n(105)),c=i(n(211)),f=n(62),l=n(60),h=n(107),p=n(109),d=function(){function t(t){this.xhr=t}return t.prototype.getObjects=function(t,e){var n=this,r="/gdc/md/"+t+"/objects/get",i=s.default(e,50).map((function(t){var e={get:{items:t}};return n.xhr.post(r,{body:e}).then((function(t){if(!t.response.ok)throw new l.ApiResponseError(t.response.statusText,t.response,t.responseBody);return t.getData()})).then((function(t){return u.default(t,["objects","items"]).map((function(t){return t.visualizationObject?{visualizationObject:h.convertReferencesToUris(t.visualizationObject)}:t.visualizationWidget?{visualizationWidget:h.convertReferencesToUris(t.visualizationWidget)}:t}))}))}));return Promise.all(i).then(a.default)},t.prototype.getObjectsByQuery=function(t,e){var n=this,i=function(t,e){return void 0===e&&(e=[]),n.xhr.get(t).then((function(t){return t.getData()})).then((function(t){var n=t.objects;e.push.apply(e,n.items);var r=n.paging.next;return r?i(r,e):e}))},o=e.deprecated?{deprecated:1}:{},u="/gdc/md/"+t+"/objects/query",s=c.default(r({limit:50},e,o),["category","mode","author","limit","deprecated"]);return i(u+f.queryString(s))},t.prototype.getObjectUsing=function(t,e,n){void 0===n&&(n={});var r=n.types,i=void 0===r?[]:r,o=n.nearest,u="/gdc/md/"+t+"/using2",s={inUse:{uri:e,types:i,nearest:void 0!==o&&o?1:0}};return this.xhr.post(u,{body:s}).then((function(t){if(!t.response.ok)throw new l.ApiResponseError(t.response.statusText,t.response,t.getData());return t.getData()})).then((function(t){return t.entries}))},t.prototype.getObjectUsingMany=function(t,e,n){void 0===n&&(n={});var r=n.types,i=void 0===r?[]:r,o=n.nearest,u="/gdc/md/"+t+"/using2",s={inUseMany:{uris:e,types:i,nearest:void 0!==o&&o?1:0}};return this.xhr.post(u,{body:s}).then((function(t){if(!t.response.ok)throw new l.ApiResponseError(t.response.statusText,t.response,t.getData());return t.getData()})).then((function(t){return t.useMany}))},t.prototype.getVisualizations=function(t){return this.xhr.get("/gdc/md/"+t+"/query/visualizationobjects").then((function(t){return t.response.ok?t.getData():t.response})).then(f.getIn("query.entries"))},t.prototype.getAttributes=function(t){return this.xhr.get("/gdc/md/"+t+"/query/attributes").then((function(t){return t.response.ok?t.getData():t.response})).then(f.getIn("query.entries"))},t.prototype.getDimensions=function(t){return this.xhr.get("/gdc/md/"+t+"/query/dimensions").then((function(t){return t.response.ok?t.getData():t.response})).then(f.getIn("query.entries"))},t.prototype.getFolders=function(t,e){var n=this,r=function(t,e){var r=e?"?type="+e:"";return n.xhr.get("/gdc/md/"+t+"/query/folders"+r).then((function(t){return t.getData()})).then(f.getIn("query.entries"))};switch(e){case"fact":case"metric":return r(t,e);case"attribute":return this.getDimensions(t);default:return Promise.all([r(t,"fact"),r(t,"metric"),this.getDimensions(t)]).then((function(t){return{fact:t[0],metric:t[1],attribute:t[2]}}))}},t.prototype.getFacts=function(t){return this.xhr.get("/gdc/md/"+t+"/query/facts").then((function(t){return t.response.ok?t.getData():t.response})).then(f.getIn("query.entries"))},t.prototype.getMetrics=function(t){return this.xhr.get("/gdc/md/"+t+"/query/metrics").then((function(t){return t.response.ok?t.getData():t.response})).then(f.getIn("query.entries"))},t.prototype.getAvailableMetrics=function(t,e){return void 0===e&&(e=[]),this.xhr.post("/gdc/md/"+t+"/availablemetrics",{body:e}).then((function(t){return t.response.ok?t.getData():t.response})).then((function(t){return t.entries}))},t.prototype.getAvailableAttributes=function(t,e){return void 0===e&&(e=[]),this.xhr.post("/gdc/md/"+t+"/drillcrosspaths",{body:e}).then((function(t){return t.response.ok?t.getData():t.response})).then((function(t){return t.drillcrosspath.links}))},t.prototype.getAvailableFacts=function(t,e){return void 0===e&&(e=[]),this.xhr.post("/gdc/md/"+t+"/availablefacts",{body:e}).then((function(t){return t.response.ok?t.getData():t.response})).then((function(t){return t.entries}))},t.prototype.getObjectDetails=function(t){return this.xhr.get(t).then((function(t){return t.getData()}))},t.prototype.getFoldersWithItems=function(t,e){var n=this;return this.getFolders(t,e).then((function(r){function i(t,e){return t.map((function(t){return t[e]}))}var o=function(t){t.forEach((function(t){t.items.sort((function(t,e){return t.meta.title<e.meta.title?-1:t.meta.title>e.meta.title?1:0}))})),t.sort((function(t,e){return t.title<e.title?-1:t.title>e.title?1:0}))},u=i(r,"link"),s=i(r,"title");return Promise.all(u.map(n.getObjectDetails)).then((function(r){if("attribute"===e)return n.getAttributes(t).then((function(t){var e=[];r.forEach((function(t){t.dimension.content.attributes.forEach((function(t){e.push(t.meta.uri)}))}));var i=t.filter((function(t){return-1===e.indexOf(t.link)})).map((function(t){return t.link}));return Promise.all(i.map(n.getObjectDetails)).then((function(t){var e=t.map((function(t){return t.attribute})),n=r.map((function(t){return{title:t.dimension.meta.title,items:t.dimension.content.attributes}}));return n.push({title:"Unsorted",items:e}),o(n),n}))}));if("metric"===e){var u=r.map((function(t){return i(t.folder.content.entries,"link")}));return n.getMetrics(t).then((function(t){var e=[];r.forEach((function(t){t.folder.content.entries.forEach((function(t){e.push(t.link)}))}));var i=t.filter((function(t){return-1===e.indexOf(t.link)})).map((function(t){return t.link}));return u.push(i),Promise.all(u.map((function(t){return e=t,Promise.all(e.map(n.getObjectDetails)).then((function(t){return t.map((function(t){return t.metric}))}));var e}))).then((function(t){var e=t.map((function(t,e){return{title:s[e]||"Unsorted",items:t}}));return o(e),e}))}))}return Promise.reject(null)}))}))},t.prototype.getObjectIdentifier=function(t){function e(t){if(t.attribute)return t.attribute.content.displayForms[0].meta.identifier;if(t.dimension)return t.dimension.content.attributes.content.displayForms[0].meta.identifier;if(t.metric)return t.metric.meta.identifier;throw Error("Unknown object!")}return o.default(t)?Promise.resolve(e(t)):this.getObjectDetails(t).then((function(t){return e(t)}))},t.prototype.getObjectUri=function(t,e){return this.xhr.post("/gdc/md/"+t+"/identifiers",{body:{identifierToUri:[e]}}).then((function(n){var r=n.getData().identifiers.find((function(t){return t.identifier===e}));if(r)return r.uri;throw new l.ApiResponseError("Object with identifier "+e+" not found in project "+t,n.response,n.responseBody)}))},t.prototype.getUrisFromIdentifiers=function(t,e){return this.xhr.post("/gdc/md/"+t+"/identifiers",{body:{identifierToUri:e}}).then((function(t){return t.getData()})).then((function(t){return t.identifiers}))},t.prototype.getIdentifiersFromUris=function(t,e){return this.xhr.post("/gdc/md/"+t+"/identifiers",{body:{uriToIdentifier:e}}).then((function(t){return t.getData()})).then((function(t){return t.identifiers}))},t.prototype.translateElementLabelsToUris=function(t,e,n,r){return void 0===r&&(r="EXACT"),this.xhr.post("/gdc/md/"+t+"/labels",{body:{elementLabelToUri:[{labelUri:e,mode:r,patterns:n}]}}).then((function(t){return t.response.ok?u.default(t.getData(),"elementLabelUri"):t.response}))},t.prototype.getValidElements=function(t,e,n){var i=this;void 0===n&&(n={});var o=c.default(n,["limit","offset","order","filter","prompt"]),u=f.queryString(o),s=c.default(n,["uris","complement","includeTotalCountWithoutFilters","restrictiveDefinition"]),a=n.afm;return(a?function(){return i.xhr.post("/gdc/app/projects/"+t+"/executeAfm/debug",{body:{execution:{afm:p.convertAfm(a)}}}).then((function(t){return t.getData()})).then((function(t){return r({},s,{restrictiveDefinitionContent:t.reportDefinitionWithInlinedMetrics.content})}))}:function(){return Promise.resolve(s)})().then((function(n){return i.xhr.post(("/gdc/md/"+t+"/obj/"+e+"/validElements"+u).replace(/\?$/,""),{body:{validElementsRequest:n}}).then((function(t){return t.getData()}))}))},t.prototype.getVisualization=function(t){return this.getObjectDetails(t).then((function(t){var e=t.visualizationObject;return{visualizationObject:h.convertReferencesToUris(e)}}))},t.prototype.saveVisualization=function(t,e){var n=h.convertUrisToReferences(e.visualizationObject);return this.createObject(t,{visualizationObject:n})},t.prototype.updateVisualization=function(t,e,n){var r=h.convertUrisToReferences(n.visualizationObject);return this.updateObject(t,e,{visualizationObject:r})},t.prototype.deleteVisualization=function(t){return this.deleteObject(t)},t.prototype.deleteObject=function(t){return this.xhr.del(t)},t.prototype.createObject=function(t,e){return this.xhr.post("/gdc/md/"+t+"/obj?createAndGet=true",{body:e}).then((function(t){return t.getData()}))},t.prototype.updateObject=function(t,e,n){return this.xhr.put("/gdc/md/"+t+"/obj/"+e,{body:n}).then((function(t){return t.getData()}))},t.prototype.ldmManage=function(t,e,n){var r=this;return void 0===n&&(n={}),this.xhr.post("/gdc/md/"+t+"/ldm/manage2",{body:{manage:{maql:e}}}).then((function(t){return t.getData()})).then((function(t){var e=t.entries[0].link;return f.handlePolling(r.xhr.get.bind(r.xhr),e,r.isTaskFinished,n)})).then(this.checkStatusForError)},t.prototype.etlPull=function(t,e,n){var r=this;return void 0===n&&(n={}),this.xhr.post("/gdc/md/"+t+"/etl/pull2",{body:{pullIntegration:e}}).then((function(t){return t.getData()})).then((function(t){var e=t.pull2Task.links.poll;return f.handlePolling(r.xhr.get.bind(r.xhr),e,r.isTaskFinished,n)})).then(this.checkStatusForError)},t.prototype.isTaskFinished=function(t){var e=t.wTaskStatus.status;return"OK"===e||"ERROR"===e},t.prototype.checkStatusForError=function(t){return"ERROR"===t.wTaskStatus.status?Promise.reject(t):t},t}();e.MetadataModule=d},function(t,e){t.exports=function(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var o=Array(i);++r<i;)o[r]=t[r+e];return o}},function(t,e){t.exports=function(t){return t}},function(t,e,n){var r=n(105),i=n(129),o=n(131);t.exports=function(t){return o(i(t,void 0,r),t+"")}},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}},function(t,e,n){var r="undefined"!=typeof JSON?JSON:n(223);t.exports=function(t,e){e||(e={}),"function"==typeof e&&(e={cmp:e});var n=e.space||"";"number"==typeof n&&(n=Array(n+1).join(" "));var u,s="boolean"==typeof e.cycles&&e.cycles,a=e.replacer||function(t,e){return e},c=e.cmp&&(u=e.cmp,function(t){return function(e,n){var r={key:e,value:t[e]},i={key:n,value:t[n]};return u(r,i)}}),f=[];return function t(e,u,l,h){var p=n?"\n"+new Array(h+1).join(n):"",d=n?": ":":";if(l&&l.toJSON&&"function"==typeof l.toJSON&&(l=l.toJSON()),void 0!==(l=a.call(e,u,l))){if("object"!=typeof l||null===l)return r.stringify(l);if(i(l)){for(var b=[],v=0;v<l.length;v++){var y=t(l,v,l[v],h+1)||r.stringify(null);b.push(p+n+y)}return"["+b.join(",")+p+"]"}if(-1!==f.indexOf(l)){if(s)return r.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}f.push(l);var m=o(l).sort(c&&c(l));for(b=[],v=0;v<m.length;v++){var g=t(l,u=m[v],l[u],h+1);if(g){var x=r.stringify(u)+d+g;b.push(p+n+x)}}return f.splice(f.indexOf(l),1),"{"+b.join(",")+p+"}"}}({"":t},"",t,0)};var i=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},o=Object.keys||function(t){var e=Object.prototype.hasOwnProperty||function(){return!0},n=[];for(var r in t)e.call(t,r)&&n.push(r);return n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.REG_URI_OBJ=/\/gdc\/md\/(\S+)\/obj\/\d+/,e.isUri=function(t){return e.REG_URI_OBJ.test(t)},e.areUris=function(t){return t.every(e.isUri)}},function(t,e,n){"use strict";e.__esModule=!0;var r=n(26);!function(t){t.isMeasure=function(t){return!r(t)&&void 0!==t.measure},t.isVisualizationAttribute=function(t){return!r(t)&&void 0!==t.visualizationAttribute},t.isMeasureDefinition=function(t){return!r(t)&&void 0!==t.measureDefinition},t.isArithmeticMeasureDefinition=function(t){return!r(t)&&void 0!==t.arithmeticMeasure},t.isPopMeasureDefinition=function(t){return!r(t)&&void 0!==t.popMeasureDefinition},t.isPreviousPeriodMeasureDefinition=function(t){return!r(t)&&void 0!==t.previousPeriodMeasure},t.isAttributeFilter=function(t){return!r(t)&&(void 0!==t.positiveAttributeFilter||void 0!==t.negativeAttributeFilter)},t.isDateFilter=function(t){return!r(t)&&(void 0!==t.absoluteDateFilter||void 0!==t.relativeDateFilter)},t.isPositiveAttributeFilter=function(t){return!r(t)&&void 0!==t.positiveAttributeFilter},t.isMeasureValueFilter=function(t){return!r(t)&&void 0!==t.measureValueFilter},t.isRankingFilter=function(t){return!r(t)&&void 0!==t.rankingFilter},t.isAbsoluteDateFilter=function(t){return!r(t)&&void 0!==t.absoluteDateFilter},t.isRelativeDateFilter=function(t){return!r(t)&&void 0!==t.relativeDateFilter},t.isAttribute=function(t){return!r(t)&&void 0!==t.visualizationAttribute},t.isLocalIdentifierQualifier=function(t){return!r(t)&&void 0!==t.localIdentifier},t.isComparisonCondition=function(t){return!r(t)&&void 0!==t.comparison},t.isRangeCondition=function(t){return!r(t)&&void 0!==t.range}}(e.VisualizationObject||(e.VisualizationObject={}))},function(t,e){var n={utf8:{stringToBytes:function(t){return n.bin.stringToBytes(unescape(encodeURIComponent(t)))},bytesToString:function(t){return decodeURIComponent(escape(n.bin.bytesToString(t)))}},bin:{stringToBytes:function(t){for(var e=[],n=0;n<t.length;n++)e.push(255&t.charCodeAt(n));return e},bytesToString:function(t){for(var e=[],n=0;n<t.length;n++)e.push(String.fromCharCode(t[n]));return e.join("")}}};t.exports=n},function(t,e){t.exports=function(t){return t}},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(!e(t[n],n,t))return!1;return!0}},function(t,e,n){var r=n(20);t.exports=function(){if(!arguments.length)return[];var t=arguments[0];return r(t)?t:[t]}},function(t,e){t.exports=function(t,e,n){for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}},function(t,e,n){var r=n(153);t.exports=function(t,e){return!!(null==t?0:t.length)&&r(t,e,0)>-1}},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var i=r(n(25));function o(t){return i.default(t,"buckets",[])}function u(t){return void 0!==(i.default(t,"positiveAttributeFilter")||i.default(t,"negativeAttributeFilter"))}function s(t){return i.default(t,"items").reduce((function(t,e){return function(t){return void 0!==i.default(t,"visualizationAttribute")}(e)&&t.push(i.default(e,"visualizationAttribute")),t}),[])}function a(t){return o(t).reduce((function(t,e){return t.concat(s(e))}),[])}function c(t){return i.default(t,"items").reduce((function(t,e){return function(t){return void 0!==i.default(t,"measure")}(e)&&t.push(i.default(e,"measure")),t}),[])}function f(t){return i.default(t,["definition","measureDefinition"],{})}function l(t){return o(t).reduce((function(t,e){return t.concat(c(e))}),[])}function h(t){return i.default(f(t),"filters",[])}function p(t){return h(t).filter(u)}function d(t){return i.default(t,["positiveAttributeFilter","displayForm","uri"])||i.default(t,["negativeAttributeFilter","displayForm","uri"])}e.getBuckets=o,e.isAttributeMeasureFilter=u,e.getAttributes=a,e.getDefinition=f,e.getMeasures=l,e.getMeasureFilters=h,e.getMeasureAttributeFilters=p,e.getAttributesDisplayForms=function(t){var e=a(t).map((function(t){return i.default(t,["displayForm","uri"])}));return function(t){return l(t).reduce((function(t,e){return t.concat(p(e))}),[])}(t).map(d).concat(e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SUCCESS_REQUEST_STATUS=200,e.ACCEPTED_REQUEST_STATUS=202,e.BAD_REQUEST_STATUS=400,e.BAD_REQUEST_MESSAGE="Bad Request",e.ERROR_RESTRICTED_CODE="Export to required format is not allowed for data flagged as restricted.",e.ERROR_RESTRICTED_MESSAGE="You cannot export this insight because it contains restricted data."},function(t,e,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=n(156);function o(t){return!!t.dateFilter}function u(t){var e=t.dateFilter,n={};return e.from&&(n.from=String(e.from)),e.to&&(n.to=String(e.to)),{dateFilter:r({},e,n)}}e.isExportFinished=function(t){var e=t.status;return e===i.SUCCESS_REQUEST_STATUS||e>=i.BAD_REQUEST_STATUS},e.isDateFilter=o,e.sanitizeDateFilter=u,e.sanitizeDateFilters=function(t){return t.map((function(t){return o(t)?u(t):t}))}},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var i=r(n(146)),o=n(271);e.IDataSource=o.IDataSource;var u=n(116),s=function(){function t(t,e,n,r,i){this.execFactory=t,this.afm=e,this.fingerprint=n,this.responseFactory=r,this.resultFactory=i,this.executionPromises={}}return t.prototype.getData=function(t){return this.execFactory(t)},t.prototype.getPage=function(t,e,n){var r=this;void 0===e&&(e=[]),void 0===n&&(n=[]);var o=i.default(t);if(!this.responseFactory)throw new Error("Missing responseFactory!");return this.executionPromises[o]||(this.executionPromises[o]=this.responseFactory(t)),this.executionPromises[o].then((function(t){if(!r.resultFactory)throw new Error("Missing resultFactory!");var i=n.map((function(t){return void 0===t&&(t=0),t})),o=e.map((function(t){void 0===t&&(t=u.DEFAULT_LIMIT);var e=Math.min(t,u.DEFAULT_LIMIT);return e<t&&console.warn("The maximum limit per page is "+u.DEFAULT_LIMIT),e}));return r.resultFactory(t.links.executionResult,o,i).then((function(e){return{executionResult:e,executionResponse:t}}))}))},t.prototype.getAfm=function(){return this.afm},t.prototype.getFingerprint=function(){return this.fingerprint?this.fingerprint:i.default(this.afm)},t}();e.DataSource=s},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var i=r(n(128)),o=n(292);e.Subscription=o.Subscription;var u=n(291);e.createSubject=function(t,e){var n=new o.Subject,r=n.pipe(u.switchMap(i.default),u.catchError((function(t,n){return e(t),n}))).subscribe(t);return{next:function(t){n.next(t)},unsubscribe:function(){r.unsubscribe(),n.unsubscribe()}}}},function(t,e,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var o=i(n(46)),u=i(n(161)),s=i(n(25)),a=n(40),c=n(117),f=i(n(273)),l=n(275);function h(t,e){var n=t.visualizationAttribute.alias,i=n?{alias:n}:{};return r({displayForm:t.visualizationAttribute.displayForm,localIdentifier:t.visualizationAttribute.localIdentifier||"a"+(e+1)},i)}function p(t){var e,n,i=(e=t.buckets,e.reduce((function(t,e){var n=e.items.filter(a.VisualizationObject.isAttribute);return t.concat(n)}),[])).map(h),p=function(t){var e=function(t){try{return JSON.parse(t)}catch(t){return{}}}(t.properties||""),n=s.default(e,"controls.tooltipText","");if(n){var i=t.buckets.reduce((function(t,e){return t||e.localIdentifier!==l.LOCATION?t:s.default(e,"items[0].visualizationAttribute.alias")}),"");return function(t,e){var n=e?{alias:e}:{};return r({localIdentifier:l.TOOLTIP_TEXT,displayForm:{uri:t}},n)}(n,i)}return null}(t),b=p?i.concat([p]):i,v=b.length?{attributes:b}:{},y=function(t){return t.reduce((function(t,e){var n=e.items.filter(a.VisualizationObject.isMeasure);return t.concat(n)}),[])}(t.buckets).map(f.default.convertMeasure),m=y.length?{measures:y}:{},g=t.filters?o.default(t.filters.map(c.convertVisualizationObjectExtendedFilter)):[],x=g.length?{filters:g}:{},w=(n=t.buckets.map((function(t){return(t.totals||[]).filter((function(t){return"nat"===t.type})).map((function(e){return{measureIdentifier:e.measureIdentifier,attributeIdentifiers:d(t,e)}}))})),u.default(n)),_=w.length?{nativeTotals:w}:{};return r({},m,v,x,_)}function d(t,e){var n=t.items.filter(a.VisualizationObject.isAttribute),r=n.findIndex((function(t){return t.visualizationAttribute.localIdentifier===e.attributeIdentifier}));return n.slice(0,r).map((function(t){return t.visualizationAttribute.localIdentifier}))}function b(t){var e=function(t){if(t.properties){var e={};try{e=JSON.parse(t.properties)}catch(t){console.error("Properties contains invalid JSON string.")}var n=s.default(e,"sortItems",[]);return n||[]}return[]}(t),n=e.length?{sorts:e.slice(0,1)}:{};return r({},n)}e.toAfmResultSpec=function(t){return{afm:p(t),resultSpec:b(t)}}},function(t,e,n){var r=n(106),i=n(114);t.exports=function(t,e){return r(i(t,e),1)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(158),i=n(103),o=function(){function t(t,e){this.projectId=e,this.sdk=t.clone(),this.sdk.config.setJsPackage("@gooddata/data-layer",i.version)}return t.prototype.createDataSource=function(t,e){var n=this,i=this.sdk.execution.getPartialExecutionResult,o=new r.DataSource((function(e){var r={execution:{afm:t,resultSpec:e}};return n.sdk.execution.executeAfm(n.projectId,r)}),t,e,(function(e){var r={execution:{afm:t,resultSpec:e}};return n.sdk.execution.getExecutionResponse(n.projectId,r)}),i);return Promise.resolve(o)},t}();e.ExecuteAfmAdapter=o},function(t,e,n){"use strict";var r=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e};Object.defineProperty(e,"__esModule",{value:!0}),n(164);var i=n(166);e.SDK=i.SDK;var o=n(60);e.ApiResponse=o.ApiResponse,e.ApiResponseError=o.ApiResponseError,e.ApiNetworkError=o.ApiNetworkError;var u=n(116);e.ApiExecutionResponseError=u.ApiExecutionResponseError;var s=r(n(107));e.referenceHandling=s;var a=r(n(268));e.DataLayer=a;var c=r(n(289));e.TypeGuards=c;var f=i.factory(fetch.bind(window));e.factory=f,function(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}(n(290)),e.default=f()},function(t,e,n){n(165),t.exports=self.fetch.bind(self)},function(t,e,n){"use strict";n.r(e),n.d(e,"Headers",(function(){return d})),n.d(e,"Request",(function(){return w})),n.d(e,"Response",(function(){return j})),n.d(e,"DOMException",(function(){return O})),n.d(e,"fetch",(function(){return A}));var r="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==r&&r,i="URLSearchParams"in r,o="Symbol"in r&&"iterator"in Symbol,u="FileReader"in r&&"Blob"in r&&function(){try{return new Blob,!0}catch(t){return!1}}(),s="FormData"in r,a="ArrayBuffer"in r;if(a)var c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],f=ArrayBuffer.isView||function(t){return t&&c.indexOf(Object.prototype.toString.call(t))>-1};function l(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||""===t)throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function h(t){return"string"!=typeof t&&(t=String(t)),t}function p(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return o&&(e[Symbol.iterator]=function(){return e}),e}function d(t){this.map={},t instanceof d?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function b(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function v(t){return new Promise((function(e,n){t.onload=function(){e(t.result)},t.onerror=function(){n(t.error)}}))}function y(t){var e=new FileReader,n=v(e);return e.readAsArrayBuffer(t),n}function m(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function g(){return this.bodyUsed=!1,this._initBody=function(t){var e;this.bodyUsed=this.bodyUsed,this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:u&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:s&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:i&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():a&&u&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=m(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a&&(ArrayBuffer.prototype.isPrototypeOf(t)||f(t))?this._bodyArrayBuffer=m(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):i&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},u&&(this.blob=function(){var t=b(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var t=b(this);return t||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}return this.blob().then(y)}),this.text=function(){var t,e,n,r=b(this);if(r)return r;if(this._bodyBlob)return t=this._bodyBlob,e=new FileReader,n=v(e),e.readAsText(t),n;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),n=new Array(e.length),r=0;r<e.length;r++)n[r]=String.fromCharCode(e[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},s&&(this.formData=function(){return this.text().then(_)}),this.json=function(){return this.text().then(JSON.parse)},this}d.prototype.append=function(t,e){t=l(t),e=h(e);var n=this.map[t];this.map[t]=n?n+", "+e:e},d.prototype.delete=function(t){delete this.map[l(t)]},d.prototype.get=function(t){return t=l(t),this.has(t)?this.map[t]:null},d.prototype.has=function(t){return this.map.hasOwnProperty(l(t))},d.prototype.set=function(t,e){this.map[l(t)]=h(e)},d.prototype.forEach=function(t,e){for(var n in this.map)this.map.hasOwnProperty(n)&&t.call(e,this.map[n],n,this)},d.prototype.keys=function(){var t=[];return this.forEach((function(e,n){t.push(n)})),p(t)},d.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),p(t)},d.prototype.entries=function(){var t=[];return this.forEach((function(e,n){t.push([n,e])})),p(t)},o&&(d.prototype[Symbol.iterator]=d.prototype.entries);var x=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function w(t,e){if(!(this instanceof w))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n,r,i=(e=e||{}).body;if(t instanceof w){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new d(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,i||null==t._bodyInit||(i=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new d(e.headers)),this.method=(n=e.method||this.method||"GET",r=n.toUpperCase(),x.indexOf(r)>-1?r:n),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(i),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==e.cache&&"no-cache"!==e.cache)){var o=/([?&])_=[^&]*/;if(o.test(this.url))this.url=this.url.replace(o,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function _(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var n=t.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");e.append(decodeURIComponent(r),decodeURIComponent(i))}})),e}function j(t,e){if(!(this instanceof j))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"",this.headers=new d(e.headers),this.url=e.url||"",this._initBody(t)}w.prototype.clone=function(){return new w(this,{body:this._bodyInit})},g.call(w.prototype),g.call(j.prototype),j.prototype.clone=function(){return new j(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new d(this.headers),url:this.url})},j.error=function(){var t=new j(null,{status:0,statusText:""});return t.type="error",t};var S=[301,302,303,307,308];j.redirect=function(t,e){if(-1===S.indexOf(e))throw new RangeError("Invalid status code");return new j(null,{status:e,headers:{location:t}})};var O=r.DOMException;try{new O}catch(t){(O=function(t,e){this.message=t,this.name=e;var n=Error(t);this.stack=n.stack}).prototype=Object.create(Error.prototype),O.prototype.constructor=O}function A(t,e){return new Promise((function(n,i){var o=new w(t,e);if(o.signal&&o.signal.aborted)return i(new O("Aborted","AbortError"));var s=new XMLHttpRequest;function c(){s.abort()}s.onload=function(){var t,e,r={status:s.status,statusText:s.statusText,headers:(t=s.getAllResponseHeaders()||"",e=new d,t.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(t){return 0===t.indexOf("\n")?t.substr(1,t.length):t})).forEach((function(t){var n=t.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();e.append(r,i)}})),e)};r.url="responseURL"in s?s.responseURL:r.headers.get("X-Request-URL");var i="response"in s?s.response:s.responseText;setTimeout((function(){n(new j(i,r))}),0)},s.onerror=function(){setTimeout((function(){i(new TypeError("Network request failed"))}),0)},s.ontimeout=function(){setTimeout((function(){i(new TypeError("Network request failed"))}),0)},s.onabort=function(){setTimeout((function(){i(new O("Aborted","AbortError"))}),0)},s.open(o.method,function(t){try{return""===t&&r.location.href?r.location.href:t}catch(e){return t}}(o.url),!0),"include"===o.credentials?s.withCredentials=!0:"omit"===o.credentials&&(s.withCredentials=!1),"responseType"in s&&(u?s.responseType="blob":a&&o.headers.get("Content-Type")&&-1!==o.headers.get("Content-Type").indexOf("application/octet-stream")&&(s.responseType="arraybuffer")),!e||"object"!=typeof e.headers||e.headers instanceof d?o.headers.forEach((function(t,e){s.setRequestHeader(e,t)})):Object.getOwnPropertyNames(e.headers).forEach((function(t){s.setRequestHeader(t,h(e.headers[t]))})),o.signal&&(o.signal.addEventListener("abort",c),s.onreadystatechange=function(){4===s.readyState&&o.signal.removeEventListener("abort",c)}),s.send(void 0===o._bodyInit?null:o._bodyInit)}))}A.polyfill=!0,r.fetch||(r.fetch=A,r.Headers=d,r.Request=w,r.Response=j)},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var i=r(n(58)),o=n(60),u=n(137),s=n(141),a=n(232),c=n(138),f=n(260),l=n(261),h=n(262),p=n(263),d=n(264),b=n(115),v=n(155),y=n(107),m=n(265),g=n(267),x=function(){function t(t,e){void 0===e&&(e={}),this.fetchMethod=t,this.configStorage=h.sanitizeConfig(e),this.config=new h.ConfigModule(this.configStorage),this.xhr=new o.XhrModule(t,this.configStorage),this.user=new u.UserModule(this.xhr),this.md=new s.MetadataModule(this.xhr),this.mdExt=new m.MetadataModuleExt(this.xhr),this.execution=new a.ExecutionModule(this.xhr,this.md),this.project=new c.ProjectModule(this.xhr),this.report=new f.ReportModule(this.xhr),this.dashboard=new l.DashboardModule(this.xhr),this.catalogue=new p.CatalogueModule(this.xhr,this.execution),this.bootstrap=new g.BootstrapModule(this.xhr),this.ldm=new d.LdmModule(this.xhr);var n=new b.AttributesMapLoaderModule(this.md);this.utils={loadAttributesMap:n.loadAttributesMap.bind(n),getAttributesDisplayForms:v.getAttributesDisplayForms,convertReferencesToUris:y.convertReferencesToUris,convertUrisToReferences:y.convertUrisToReferences}}return t.prototype.clone=function(){return new t(this.fetchMethod,i.default(this.configStorage))},t}();e.SDK=x,e.factory=function(t){return function(e){return void 0===e&&(e={}),new x(t,e)}}},function(t,e){t.exports=function(){this.__data__=[],this.size=0}},function(t,e,n){var r=n(65),i=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=r(e,t);return!(n<0)&&(n==e.length-1?e.pop():i.call(e,n,1),--this.size,!0)}},function(t,e,n){var r=n(65);t.exports=function(t){var e=this.__data__,n=r(e,t);return n<0?void 0:e[n][1]}},function(t,e,n){var r=n(65);t.exports=function(t){return r(this.__data__,t)>-1}},function(t,e,n){var r=n(65);t.exports=function(t,e){var n=this.__data__,i=r(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}},function(t,e,n){var r=n(174),i=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=i},function(t,e){t.exports=function(t,e){return null==t?void 0:t[e]}},function(t,e,n){var r=n(45),i=n(97);t.exports=function(t,e){return t&&r(e,i(e),t)}},function(t,e,n){var r=n(45),i=n(59);t.exports=function(t,e){return t&&r(e,i(e),t)}},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,n){(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.exports=n}).call(this,n(179))},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){var r=n(45),i=n(181);t.exports=function(t,e){return r(t,i(t),e)}},function(t,e){t.exports=function(){return[]}},function(t,e,n){var r=n(45),i=n(183);t.exports=function(t,e){return r(t,i(t),e)}},function(t,e){t.exports=function(){return[]}},function(t,e){var n=Object.prototype.hasOwnProperty;t.exports=function(t){var e=t.length,r=new t.constructor(e);return e&&"string"==typeof t[0]&&n.call(t,"index")&&(r.index=t.index,r.input=t.input),r}},function(t,e){t.exports=function(t){return t}},function(t,e){t.exports=function(){return!1}},function(t,e){t.exports=function(){return!1}},function(t,e,n){var r=n(20),i=n(189),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,u=/^\w*$/;t.exports=function(t,e){if(r(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!i(t))||(u.test(t)||!o.test(t)||null!=e&&t in Object(e))}},function(t,e){t.exports=function(){return!1}},function(t,e,n){var r=n(191),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,u=r((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(i,(function(t,n,r,i){e.push(r?i.replace(o,"$1"):n||t)})),e}));t.exports=u},function(t,e){t.exports=function(t){return t}},function(t,e){t.exports=function(t){return t}},function(t,e,n){var r=n(74),i=n(66),o=n(75),u=n(59),s=Object.prototype,a=s.hasOwnProperty,c=r((function(t,e){t=Object(t);var n=-1,r=e.length,c=r>2?e[2]:void 0;for(c&&o(e[0],e[1],c)&&(r=1);++n<r;)for(var f=e[n],l=u(f),h=-1,p=l.length;++h<p;){var d=l[h],b=t[d];(void 0===b||i(b,s[d])&&!a.call(t,d))&&(t[d]=f[d])}return t}));t.exports=c},function(t,e,n){var r=n(94),i=n(133),o=n(195),u=n(197),s=n(37),a=n(59),c=n(136);t.exports=function t(e,n,f,l,h){e!==n&&o(n,(function(o,a){if(h||(h=new r),s(o))u(e,n,a,f,t,l,h);else{var p=l?l(c(e,a),o,a+"",e,n,h):void 0;void 0===p&&(p=o),i(e,a,p)}}),a)}},function(t,e,n){var r=n(196)();t.exports=r},function(t,e){t.exports=function(t){return function(e,n,r){for(var i=-1,o=Object(e),u=r(e),s=u.length;s--;){var a=u[t?s:++i];if(!1===n(o[a],a,o))break}return e}}},function(t,e,n){var r=n(133),i=n(118),o=n(198),u=n(119),s=n(122),a=n(76),c=n(20),f=n(134),l=n(69),h=n(72),p=n(37),d=n(70),b=n(101),v=n(136),y=n(201);t.exports=function(t,e,n,m,g,x,w){var _=v(t,n),j=v(e,n),S=w.get(j);if(S)r(t,n,S);else{var O=x?x(_,j,n+"",t,e,w):void 0,A=void 0===O;if(A){var E=c(j),D=!E&&l(j),F=!E&&!D&&b(j);O=j,E||D||F?c(_)?O=_:f(_)?O=u(_):D?(A=!1,O=i(j,!0)):F?(A=!1,O=o(j,!0)):O=[]:d(j)||a(j)?(O=_,a(_)?O=y(_):p(_)&&!h(_)||(O=s(j))):A=!1}A&&(w.set(j,O),g(O,j,m,x,w),w.delete(j)),r(t,n,O)}}},function(t,e,n){var r=n(199);t.exports=function(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}},function(t,e,n){var r=n(200);t.exports=function(t){var e=new t.constructor(t.byteLength);return new r(e).set(new r(t)),e}},function(t,e,n){var r=n(68).Uint8Array;t.exports=r},function(t,e,n){var r=n(45),i=n(59);t.exports=function(t){return r(t,i(t))}},function(t,e,n){var r=n(74),i=n(75);t.exports=function(t){return r((function(e,n){var r=-1,o=n.length,u=o>1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(u=t.length>3&&"function"==typeof u?(o--,u):void 0,s&&i(n[0],n[1],s)&&(u=o<3?void 0:u,o=1),e=Object(e);++r<o;){var a=n[r];a&&t(e,a,r,u)}return e}))}},function(t,e,n){var r=n(39),i=n(72),o=n(61);t.exports=function(t,e,n){var u=-1,s=(e=r(e,t)).length;for(s||(s=1,t=void 0);++u<s;){var a=null==t?void 0:t[o(e[u])];void 0===a&&(u=s,a=n),t=i(a)?a.call(t):a}return t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.delay=function(t){return new Promise((function(e){setTimeout((function(){return e()}),t)}))}},function(t,e,n){"use strict";var r=n(104),i=n(140),o=Object.prototype.hasOwnProperty,u={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},s=Array.isArray,a=Array.prototype.push,c=function(t,e){a.apply(t,s(e)?e:[e])},f=Date.prototype.toISOString,l=i.default,h={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,format:l,formatter:i.formatters[l],indices:!1,serializeDate:function(t){return f.call(t)},skipNulls:!1,strictNullHandling:!1},p=function t(e,n,i,o,u,a,f,l,p,d,b,v,y){var m,g=e;if("function"==typeof f?g=f(n,g):g instanceof Date?g=d(g):"comma"===i&&s(g)&&(g=r.maybeMap(g,(function(t){return t instanceof Date?d(t):t})).join(",")),null===g){if(o)return a&&!v?a(n,h.encoder,y,"key"):n;g=""}if("string"==typeof(m=g)||"number"==typeof m||"boolean"==typeof m||"symbol"==typeof m||"bigint"==typeof m||r.isBuffer(g))return a?[b(v?n:a(n,h.encoder,y,"key"))+"="+b(a(g,h.encoder,y,"value"))]:[b(n)+"="+b(String(g))];var x,w=[];if(void 0===g)return w;if(s(f))x=f;else{var _=Object.keys(g);x=l?_.sort(l):_}for(var j=0;j<x.length;++j){var S=x[j],O=g[S];if(!u||null!==O){var A=s(g)?"function"==typeof i?i(n,S):n:n+(p?"."+S:"["+S+"]");c(w,t(O,A,i,o,u,a,f,l,p,d,b,v,y))}}return w};t.exports=function(t,e){var n,r=t,a=function(t){if(!t)return h;if(null!==t.encoder&&void 0!==t.encoder&&"function"!=typeof t.encoder)throw new TypeError("Encoder has to be a function.");var e=t.charset||h.charset;if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=i.default;if(void 0!==t.format){if(!o.call(i.formatters,t.format))throw new TypeError("Unknown format option provided.");n=t.format}var r=i.formatters[n],u=h.filter;return("function"==typeof t.filter||s(t.filter))&&(u=t.filter),{addQueryPrefix:"boolean"==typeof t.addQueryPrefix?t.addQueryPrefix:h.addQueryPrefix,allowDots:void 0===t.allowDots?h.allowDots:!!t.allowDots,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:h.charsetSentinel,delimiter:void 0===t.delimiter?h.delimiter:t.delimiter,encode:"boolean"==typeof t.encode?t.encode:h.encode,encoder:"function"==typeof t.encoder?t.encoder:h.encoder,encodeValuesOnly:"boolean"==typeof t.encodeValuesOnly?t.encodeValuesOnly:h.encodeValuesOnly,filter:u,formatter:r,serializeDate:"function"==typeof t.serializeDate?t.serializeDate:h.serializeDate,skipNulls:"boolean"==typeof t.skipNulls?t.skipNulls:h.skipNulls,sort:"function"==typeof t.sort?t.sort:null,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:h.strictNullHandling}}(e);"function"==typeof a.filter?r=(0,a.filter)("",r):s(a.filter)&&(n=a.filter);var f,l=[];if("object"!=typeof r||null===r)return"";f=e&&e.arrayFormat in u?e.arrayFormat:e&&"indices"in e?e.indices?"indices":"repeat":"indices";var d=u[f];n||(n=Object.keys(r)),a.sort&&n.sort(a.sort);for(var b=0;b<n.length;++b){var v=n[b];a.skipNulls&&null===r[v]||c(l,p(r[v],v,d,a.strictNullHandling,a.skipNulls,a.encode?a.encoder:null,a.filter,a.sort,a.allowDots,a.serializeDate,a.formatter,a.encodeValuesOnly,a.charset))}var y=l.join(a.delimiter),m=!0===a.addQueryPrefix?"?":"";return a.charsetSentinel&&("iso-8859-1"===a.charset?m+="utf8=%26%2310003%3B&":m+="utf8=%E2%9C%93&"),y.length>0?m+y:""}},function(t,e,n){"use strict";var r=n(104),i=Object.prototype.hasOwnProperty,o=Array.isArray,u={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(t){return t.replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(parseInt(e,10))}))},a=function(t,e){return t&&"string"==typeof t&&e.comma&&t.indexOf(",")>-1?t.split(","):t},c=function(t,e,n,r){if(t){var o=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,u=/(\[[^[\]]*])/g,s=n.depth>0&&/(\[[^[\]]*])/.exec(o),c=s?o.slice(0,s.index):o,f=[];if(c){if(!n.plainObjects&&i.call(Object.prototype,c)&&!n.allowPrototypes)return;f.push(c)}for(var l=0;n.depth>0&&null!==(s=u.exec(o))&&l<n.depth;){if(l+=1,!n.plainObjects&&i.call(Object.prototype,s[1].slice(1,-1))&&!n.allowPrototypes)return;f.push(s[1])}return s&&f.push("["+o.slice(s.index)+"]"),function(t,e,n,r){for(var i=r?e:a(e,n),o=t.length-1;o>=0;--o){var u,s=t[o];if("[]"===s&&n.parseArrays)u=[].concat(i);else{u=n.plainObjects?Object.create(null):{};var c="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,f=parseInt(c,10);n.parseArrays||""!==c?!isNaN(f)&&s!==c&&String(f)===c&&f>=0&&n.parseArrays&&f<=n.arrayLimit?(u=[])[f]=i:u[c]=i:u={0:i}}i=u}return i}(f,e,n,r)}};t.exports=function(t,e){var n=function(t){if(!t)return u;if(null!==t.decoder&&void 0!==t.decoder&&"function"!=typeof t.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var e=void 0===t.charset?u.charset:t.charset;return{allowDots:void 0===t.allowDots?u.allowDots:!!t.allowDots,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:u.allowPrototypes,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:u.arrayLimit,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:u.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:u.comma,decoder:"function"==typeof t.decoder?t.decoder:u.decoder,delimiter:"string"==typeof t.delimiter||r.isRegExp(t.delimiter)?t.delimiter:u.delimiter,depth:"number"==typeof t.depth||!1===t.depth?+t.depth:u.depth,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:u.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:u.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:u.plainObjects,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:u.strictNullHandling}}(e);if(""===t||null==t)return n.plainObjects?Object.create(null):{};for(var f="string"==typeof t?function(t,e){var n,c={},f=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,l=e.parameterLimit===1/0?void 0:e.parameterLimit,h=f.split(e.delimiter,l),p=-1,d=e.charset;if(e.charsetSentinel)for(n=0;n<h.length;++n)0===h[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===h[n]?d="utf-8":"utf8=%26%2310003%3B"===h[n]&&(d="iso-8859-1"),p=n,n=h.length);for(n=0;n<h.length;++n)if(n!==p){var b,v,y=h[n],m=y.indexOf("]="),g=-1===m?y.indexOf("="):m+1;-1===g?(b=e.decoder(y,u.decoder,d,"key"),v=e.strictNullHandling?null:""):(b=e.decoder(y.slice(0,g),u.decoder,d,"key"),v=r.maybeMap(a(y.slice(g+1),e),(function(t){return e.decoder(t,u.decoder,d,"value")}))),v&&e.interpretNumericEntities&&"iso-8859-1"===d&&(v=s(v)),y.indexOf("[]=")>-1&&(v=o(v)?[v]:v),i.call(c,b)?c[b]=r.combine(c[b],v):c[b]=v}return c}(t,n):t,l=n.plainObjects?Object.create(null):{},h=Object.keys(f),p=0;p<h.length;++p){var d=h[p],b=c(d,f[d],n,"string"==typeof t);l=r.merge(l,b,n)}return r.compact(l)}},function(t,e,n){var r=n(142),i=n(75),o=n(143),u=Math.ceil,s=Math.max;t.exports=function(t,e,n){e=(n?i(t,e,n):void 0===e)?1:s(o(e),0);var a=null==t?0:t.length;if(!a||e<1)return[];for(var c=0,f=0,l=Array(u(a/e));c<a;)l[f++]=r(t,c,c+=e);return l}},function(t,e){t.exports=function(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}},function(t,e,n){var r=n(210),i=n(76),o=n(20),u=r?r.isConcatSpreadable:void 0;t.exports=function(t){return o(t)||i(t)||!!(u&&t&&t[u])}},function(t,e,n){var r=n(68).Symbol;t.exports=r},function(t,e,n){var r=n(212),i=n(144)((function(t,e){return null==t?{}:r(t,e)}));t.exports=i},function(t,e,n){var r=n(213),i=n(214);t.exports=function(t,e){return r(t,e,(function(e,n){return i(t,n)}))}},function(t,e,n){var r=n(102),i=n(126),o=n(39);t.exports=function(t,e,n){for(var u=-1,s=e.length,a={};++u<s;){var c=e[u],f=r(t,c);n(f,c)&&i(a,o(c,t),f)}return a}},function(t,e,n){var r=n(215),i=n(216);t.exports=function(t,e){return null!=t&&i(t,e,r)}},function(t,e){t.exports=function(t,e){return null!=t&&e in Object(t)}},function(t,e,n){var r=n(39),i=n(76),o=n(20),u=n(127),s=n(135),a=n(61);t.exports=function(t,e,n){for(var c=-1,f=(e=r(e,t)).length,l=!1;++c<f;){var h=a(e[c]);if(!(l=null!=t&&n(t,h)))break;t=t[h]}return l||++c!=f?l:!!(f=null==t?0:t.length)&&s(f)&&u(h,f)&&(o(t)||i(t))}},function(t,e,n){var r=n(67)(Object.keys,Object);t.exports=r},function(t,e,n){var r=n(39),i=n(219),o=n(220),u=n(61);t.exports=function(t,e){return e=r(e,t),null==(t=o(t,e))||delete t[u(i(e))]}},function(t,e){t.exports=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}},function(t,e,n){var r=n(102),i=n(142);t.exports=function(t,e){return e.length<2?t:r(t,i(e,0,-1))}},function(t,e,n){var r=n(70);t.exports=function(t){return r(t)?void 0:t}},function(t,e,n){var r=n(99),i=n(20),o=n(71);t.exports=function(t){return"string"==typeof t||!i(t)&&o(t)&&"[object String]"==r(t)}},function(t,e,n){e.parse=n(224),e.stringify=n(225)},function(t,e){var n,r,i,o,u={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"},s=function(t){throw{name:"SyntaxError",message:t,at:n,text:i}},a=function(t){return t&&t!==r&&s("Expected '"+t+"' instead of '"+r+"'"),r=i.charAt(n),n+=1,r},c=function(){var t,e="";for("-"===r&&(e="-",a("-"));r>="0"&&r<="9";)e+=r,a();if("."===r)for(e+=".";a()&&r>="0"&&r<="9";)e+=r;if("e"===r||"E"===r)for(e+=r,a(),"-"!==r&&"+"!==r||(e+=r,a());r>="0"&&r<="9";)e+=r,a();if(t=+e,isFinite(t))return t;s("Bad number")},f=function(){var t,e,n,i="";if('"'===r)for(;a();){if('"'===r)return a(),i;if("\\"===r)if(a(),"u"===r){for(n=0,e=0;e<4&&(t=parseInt(a(),16),isFinite(t));e+=1)n=16*n+t;i+=String.fromCharCode(n)}else{if("string"!=typeof u[r])break;i+=u[r]}else i+=r}s("Bad string")},l=function(){for(;r&&r<=" ";)a()};o=function(){switch(l(),r){case"{":return function(){var t,e={};if("{"===r){if(a("{"),l(),"}"===r)return a("}"),e;for(;r;){if(t=f(),l(),a(":"),Object.hasOwnProperty.call(e,t)&&s('Duplicate key "'+t+'"'),e[t]=o(),l(),"}"===r)return a("}"),e;a(","),l()}}s("Bad object")}();case"[":return function(){var t=[];if("["===r){if(a("["),l(),"]"===r)return a("]"),t;for(;r;){if(t.push(o()),l(),"]"===r)return a("]"),t;a(","),l()}}s("Bad array")}();case'"':return f();case"-":return c();default:return r>="0"&&r<="9"?c():function(){switch(r){case"t":return a("t"),a("r"),a("u"),a("e"),!0;case"f":return a("f"),a("a"),a("l"),a("s"),a("e"),!1;case"n":return a("n"),a("u"),a("l"),a("l"),null}s("Unexpected '"+r+"'")}()}},t.exports=function(t,e){var u;return i=t,n=0,r=" ",u=o(),l(),r&&s("Syntax error"),"function"==typeof e?function t(n,r){var i,o,u=n[r];if(u&&"object"==typeof u)for(i in u)Object.prototype.hasOwnProperty.call(u,i)&&(void 0!==(o=t(u,i))?u[i]=o:delete u[i]);return e.call(n,r,u)}({"":u},""):u}},function(t,e){var n,r,i,o=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,u={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};function s(t){return o.lastIndex=0,o.test(t)?'"'+t.replace(o,(function(t){var e=u[t];return"string"==typeof e?e:"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)}))+'"':'"'+t+'"'}t.exports=function(t,e,o){var u;if(n="",r="","number"==typeof o)for(u=0;u<o;u+=1)r+=" ";else"string"==typeof o&&(r=o);if(i=e,e&&"function"!=typeof e&&("object"!=typeof e||"number"!=typeof e.length))throw new Error("JSON.stringify");return function t(e,o){var u,a,c,f,l,h=n,p=o[e];switch(p&&"object"==typeof p&&"function"==typeof p.toJSON&&(p=p.toJSON(e)),"function"==typeof i&&(p=i.call(o,e,p)),typeof p){case"string":return s(p);case"number":return isFinite(p)?String(p):"null";case"boolean":case"null":return String(p);case"object":if(!p)return"null";if(n+=r,l=[],"[object Array]"===Object.prototype.toString.apply(p)){for(f=p.length,u=0;u<f;u+=1)l[u]=t(u,p)||"null";return c=0===l.length?"[]":n?"[\n"+n+l.join(",\n"+n)+"\n"+h+"]":"["+l.join(",")+"]",n=h,c}if(i&&"object"==typeof i)for(f=i.length,u=0;u<f;u+=1)"string"==typeof(a=i[u])&&(c=t(a,p))&&l.push(s(a)+(n?": ":":")+c);else for(a in p)Object.prototype.hasOwnProperty.call(p,a)&&(c=t(a,p))&&l.push(s(a)+(n?": ":":")+c);return c=0===l.length?"{}":n?"{\n"+n+l.join(",\n"+n)+"\n"+h+"}":"{"+l.join(",")+"}",n=h,c}}("",{"":t})}},function(t,e,n){"use strict";e.__esModule=!0;var r=n(26),i=n(20);!function(t){function e(t){return!r(t)&&void 0!==t.relativeDateFilter}function n(t){return!r(t)&&void 0!==t.absoluteDateFilter}function o(t){return!r(t)&&void 0!==t.positiveAttributeFilter}function u(t){return!r(t)&&void 0!==t.negativeAttributeFilter}t.isObjectUriQualifier=function(t){return!r(t)&&void 0!==t.uri},t.isObjIdentifierQualifier=function(t){return!r(t)&&void 0!==t.identifier},t.isSimpleMeasureDefinition=function(t){return!r(t)&&void 0!==t.measure},t.isArithmeticMeasureDefinition=function(t){return!r(t)&&void 0!==t.arithmeticMeasure},t.isPopMeasureDefinition=function(t){return!r(t)&&void 0!==t.popMeasure},t.isPreviousPeriodMeasureDefinition=function(t){return!r(t)&&void 0!==t.previousPeriodMeasure},t.isAttributeSortItem=function(t){return!r(t)&&void 0!==t.attributeSortItem},t.isMeasureSortItem=function(t){return!r(t)&&void 0!==t.measureSortItem},t.isMeasureLocatorItem=function(t){return!r(t)&&void 0!==t.measureLocatorItem},t.isDateFilter=function(t){return!r(t)&&(e(t)||n(t))},t.isRelativeDateFilter=e,t.isAbsoluteDateFilter=n,t.isAttributeFilter=function(t){return!r(t)&&(o(t)||u(t))},t.isPositiveAttributeFilter=o,t.isNegativeAttributeFilter=u,t.isMeasureValueFilter=function(t){return!r(t)&&void 0!==t.measureValueFilter},t.isRankingFilter=function(t){return!r(t)&&void 0!==t.rankingFilter},t.isExpressionFilter=function(t){return!r(t)&&void 0!==t.value},t.isAttributeElementsArray=function(t){return void 0!==t&&t instanceof Array},t.isAttributeElementsByRef=function(t){return!r(t)&&void 0!==t.uris},t.isAttributeElementsByValue=function(t){return!r(t)&&i(t.values)}}(e.ExecuteAFM||(e.ExecuteAFM={}))},function(t,e,n){"use strict";e.__esModule=!0,function(t){t.isAttributeHeaderItem=function(t){return void 0!==t.attributeHeaderItem},t.isMeasureHeaderItem=function(t){return void 0!==t.measureHeaderItem},t.isTotalHeaderItem=function(t){return void 0!==t.totalHeaderItem},t.isAttributeHeader=function(t){return void 0!==t.attributeHeader},t.isMeasureGroupHeader=function(t){return void 0!==t.measureGroupHeader}}(e.Execution||(e.Execution={}))},function(t,e,n){"use strict";e.__esModule=!0,function(t){t.isAllTimeDateFilter=function(t){return!!t&&"allTime"===t.type},t.isAbsoluteDateFilterForm=function(t){return!!t&&"absoluteForm"===t.type},t.isAbsoluteDateFilterPreset=function(t){return!!t&&"absolutePreset"===t.type},t.isAbsoluteDateFilterOption=function(e){return t.isAbsoluteDateFilterForm(e)||t.isAbsoluteDateFilterPreset(e)},t.isRelativeDateFilterForm=function(t){return!!t&&"relativeForm"===t.type},t.isRelativeDateFilterPreset=function(t){return!!t&&"relativePreset"===t.type},t.isRelativeDateFilterOption=function(e){return t.isRelativeDateFilterForm(e)||t.isRelativeDateFilterPreset(e)}}(e.ExtendedDateFilters||(e.ExtendedDateFilters={}))},function(t,e,n){"use strict";e.__esModule=!0;var r=n(110),i=n(148);!function(t){t.isMeasure=function(t){return i.VisualizationObject.isMeasure(t)},t.isMeasureDefinition=function(t){return i.VisualizationObject.isMeasureDefinition(t)},t.isArithmeticMeasureDefinition=function(t){return i.VisualizationObject.isArithmeticMeasureDefinition(t)},t.isPopMeasureDefinition=function(t){return i.VisualizationObject.isPopMeasureDefinition(t)},t.isPreviousPeriodMeasureDefinition=function(t){return i.VisualizationObject.isPreviousPeriodMeasureDefinition(t)},t.isAttribute=function(t){return i.VisualizationObject.isAttribute(t)},t.isPositiveAttributeFilter=function(t){return r.AFM.isPositiveAttributeFilter(t)},t.isNegativeAttributeFilter=function(t){return r.AFM.isNegativeAttributeFilter(t)},t.isAbsoluteDateFilter=function(t){return i.VisualizationObject.isAbsoluteDateFilter(t)},t.isRelativeDateFilter=function(t){return i.VisualizationObject.isRelativeDateFilter(t)},t.isMeasureValueFilter=function(t){return i.VisualizationObject.isMeasureValueFilter(t)},t.isRankingFilter=function(t){return i.VisualizationObject.isRankingFilter(t)},t.isSort=function(t){return r.AFM.isAttributeSortItem(t)||r.AFM.isMeasureSortItem(t)}}(e.VisualizationInput||(e.VisualizationInput={}))},function(t,e,n){"use strict";e.__esModule=!0;var r=n(111);!function(t){var e,n;!function(t){t.DrillableItems="drillableItems",t.OpenInsight="openInsight",t.Save="saveInsight",t.SaveAs="saveAsInsight",t.Export="exportInsight",t.Clear="clear",t.Undo="undo",t.Redo="redo",t.SetFilterContext="setFilterContext",t.RemoveFilterContext="removeFilterContext"}(e=t.GdcAdCommandType||(t.GdcAdCommandType={})),function(t){t.ListeningForDrillableItems="listeningForDrillableItems",t.NewInsightInitialized="newInsightInitialized",t.InsightOpened="insightOpened",t.ClearFinished="clearFinished",t.InsightSaved="visualizationSaved",t.UndoFinished="undoFinished",t.RedoFinished="redoFinished",t.ExportFinished="exportInsightFinished",t.Drill="drill",t.FilterContextChanged="filterContextChanged",t.SetFilterContextFinished="setFilterContextFinished",t.RemoveFilterContextFinished="removeFilterContextFinished"}(n=t.GdcAdEventType||(t.GdcAdEventType={})),t.isAdCommandFailedData=function(t){return r.isCommandFailedData(t)},t.isDrillableItemsCommandData=function(t){return r.getEventType(t)===e.DrillableItems},t.isOpenInsightCommandData=function(t){return r.getEventType(t)===e.OpenInsight},t.isClearCommandData=function(t){return r.getEventType(t)===e.Clear},t.isSaveInsightCommandData=function(t){return r.getEventType(t)===e.Save},t.isSaveAsInsightCommandData=function(t){return r.getEventType(t)===e.SaveAs},t.isExportInsightCommandData=function(t){return r.getEventType(t)===e.Export},t.isUndoCommandData=function(t){return r.getEventType(t)===e.Undo},t.isRedoCommandData=function(t){return r.getEventType(t)===e.Redo},t.isSetFilterContextCommandData=function(t){return r.getEventType(t)===e.SetFilterContext},t.isRemoveFilterContextCommandData=function(t){return r.getEventType(t)===e.RemoveFilterContext},t.isNewInsightInitializedData=function(t){return r.getEventType(t)===n.NewInsightInitialized},t.isInsightOpenedData=function(t){return r.getEventType(t)===n.InsightOpened},t.isClearFinishedData=function(t){return r.getEventType(t)===n.ClearFinished},t.isInsightSavedData=function(t){return r.getEventType(t)===n.InsightSaved},t.isExportFinishedData=function(t){return r.getEventType(t)===n.ExportFinished},t.isUndoFinishedData=function(t){return r.getEventType(t)===n.UndoFinished},t.isRedoFinishedData=function(t){return r.getEventType(t)===n.RedoFinished}}(e.EmbeddedAnalyticalDesigner||(e.EmbeddedAnalyticalDesigner={}))},function(t,e,n){"use strict";e.__esModule=!0;var r=n(111);!function(t){var e;!function(t){t.Save="saveDashboard",t.CancelEdit="cancelEdit",t.Delete="deleteDashboard",t.SwitchToEdit="switchToEdit",t.DrillableItems="drillableItems",t.SetSize="setSize",t.AddWidget="addWidget",t.AddFilter="addFilter",t.ExportToPdf="exportToPdf",t.SetFilterContext="setFilterContext",t.RemoveFilterContext="removeFilterContext",t.SaveAsDashboard="saveAsDashboard"}(e=t.GdcKdCommandType||(t.GdcKdCommandType={})),function(t){t.ListeningForDrillableItems="listeningForDrillableItems",t.LoadingStarted="loadingStarted",t.NoPermissions="noPermissions",t.Resized="resized",t.DashboardCreated="dashboardCreated",t.DashboardLoaded="loaded",t.DashboardUpdated="dashboardUpdated",t.DashboardSaved="dashboardSaved",t.DashboardDeleted="dashboardDeleted",t.DashboardCreationCanceled="dashboardCreationCanceled",t.SwitchedToEdit="switchedToEdit",t.SwitchedToView="switchedToView",t.Platform="platform",t.WidgetAdded="widgetAdded",t.FilterAdded="filterAdded",t.ExportedToPdf="exportedToPdf",t.Drill="drill",t.FilterContextChanged="filterContextChanged",t.SetFilterContextFinished="setFilterContextFinished",t.RemoveFilterContextFinished="removeFilterContextFinished",t.DrillToUrlStarted="drillToUrlStarted",t.DrillToUrlResolved="drillToUrlResolved"}(t.GdcKdEventType||(t.GdcKdEventType={})),t.isSaveDashboardCommandData=function(t){return r.getEventType(t)===e.Save},t.isSaveAsDashboardCommandData=function(t){return r.getEventType(t)===e.SaveAsDashboard},t.isCancelEditCommandData=function(t){return r.getEventType(t)===e.CancelEdit},t.isSwitchToEditCommandData=function(t){return r.getEventType(t)===e.SwitchToEdit},t.isDrillableItemsCommandData=function(t){return r.getEventType(t)===e.DrillableItems},t.isSetSizeCommandData=function(t){return r.getEventType(t)===e.SetSize},t.isSetFilterContextCommandData=function(t){return r.getEventType(t)===e.SetFilterContext},t.isRemoveFilterContextCommandData=function(t){return r.getEventType(t)===e.RemoveFilterContext},t.isIdentifierInsight=function(t){return t.identifier},t.isUriInsight=function(t){return t.uri},t.isAddWidgetCommandData=function(t){return r.getEventType(t)===e.AddWidget},t.isAddFilterCommandData=function(t){return r.getEventType(t)===e.AddFilter},t.isExportToPdfCommandData=function(t){return r.getEventType(t)===e.ExportToPdf}}(e.EmbeddedKpiDashboard||(e.EmbeddedKpiDashboard={}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(233),i=n(115),o=n(116),u=function(){function t(t,e){this.executeAfmModule=new o.ExecuteAfmModule(t),this.executeAfm=this.executeAfmModule.executeAfm.bind(this.executeAfmModule),this.getExecutionResponse=this.executeAfmModule.getExecutionResponse.bind(this.executeAfmModule),this._executeVisualization=this.executeAfmModule._executeVisualization.bind(this.executeAfmModule),this._getVisExecutionResponse=this.executeAfmModule._getVisExecutionResponse.bind(this.executeAfmModule),this.getPartialExecutionResult=this.executeAfmModule.getPartialExecutionResult.bind(this.executeAfmModule),this.getExecutionResult=this.executeAfmModule.getExecutionResult.bind(this.executeAfmModule),this.xhr=t,this.md=e}return t.prototype.getData=function(t,e,n,r){return void 0===n&&(n={}),void 0===r&&(r={}),this.getExperimentalExecutionsModule().getData(t,e,n,r)},t.prototype.mdToExecutionDefinitionsAndColumns=function(t,e,n){return void 0===n&&(n={}),this.getExperimentalExecutionsModule().mdToExecutionDefinitionsAndColumns(t,e,n)},t.prototype.getExperimentalExecutionsModule=function(){var t=new i.AttributesMapLoaderModule(this.md);return new r.ExperimentalExecutionsModule(this.xhr,t.loadAttributesMap.bind(t))},t}();e.ExecutionModule=u},function(t,e,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var o=i(n(234)),u=i(n(112)),s=i(n(58)),a=i(n(46)),c=i(n(237)),f=i(n(238)),l=i(n(113)),h=i(n(114)),p=i(n(132)),d=i(n(151)),b=i(n(25)),v=i(n(26)),y=i(n(243)),m=i(n(244)),g=i(n(105)),x=i(n(73)),w=n(249),_=n(250),j=n(115),S=n(155),O=y.default(v.default);function A(t,e){return(t.element===e.id||t.element===e.uri)&&void 0===e.measureIndex}var E={extendedTabularDataResult:{values:[],warnings:[]}};var D=m.default((function(t,e){var n=1e3-t.length;return e&&e.length>n?")"===e[e.length-1]?e.substring(0,n-2)+"…)"+t:e.substring(0,n-1)+"…"+t:""+e+t}),"");function F(t){return b.default(S.getDefinition(t),"aggregation","").toLowerCase()}function T(t){return d.default(h.default(S.getMeasureFilters(t),(function(t){return e=t,b.default(e,"positiveAttributeFilter")?v.default(b.default(e,["positiveAttributeFilter","in"])):b.default(e,"negativeAttributeFilter")?v.default(b.default(e,["negativeAttributeFilter","notIn"])):b.default(e,"absoluteDateFilter")?void 0===b.default(e,["absoluteDateFilter","from"])&&void 0===b.default(e,["absoluteDateFilter","to"]):void 0===b.default(e,["relativeDateFilter","from"])&&void 0===b.default(e,["relativeDateFilter","to"]);var e})))}function I(t){return""!==F(t)||!T(t)}function P(t,e){return b.default(b.default(e,[t],{}),["attribute","meta","uri"])}function M(t){var e=function(t){return void 0!==b.default(t,"negativeAttributeFilter")}(t)?["negativeAttributeFilter","notIn"]:["positiveAttributeFilter","in"];return b.default(t,e,[])}function C(t,e){return S.isAttributeMeasureFilter(e)?function(t,e){var n=b.default(t,"negativeAttributeFilter",!1),r=n?"negativeAttributeFilter":"positiveAttributeFilter",i=P(b.default(t,[r,"displayForm","uri"]),e),o=M(t);return v.default(o)?null:"["+i+"] "+(n?"NOT ":"")+"IN ("+h.default(o,(function(t){return"["+t+"]"})).join(",")+")"}(e,t):""}function R(t,e){var n=F(t).toUpperCase(),r=b.default(S.getDefinition(t),"item.uri"),i=c.default(h.default(S.getMeasureFilters(t),m.default(C,e)),(function(t){return!!t}));return"SELECT "+(n?n+"(["+r+"])":"["+r+"]")+(O(i)?" WHERE "+i.join(" AND "):"")}function k(t,e,n){var r="SELECT ["+b.default(S.getDefinition(n),"item.uri")+"]";I(n)&&(r=R(x.default(s.default(n),["definition","measureDefinition","filters"],[]),e));var i=P(b.default(t,"displayForm.uri"),e),o=c.default(h.default(S.getMeasureFilters(n),m.default(C,e)),(function(t){return!!t})),u=O(o)?" WHERE "+o.join(" AND "):"";return"SELECT ("+r+u+") / ("+r+" BY ALL ["+i+"]"+u+")"}function N(t,e){return"SELECT "+e+" FOR PREVIOUS (["+t+"])"}function V(t,e,n){return o.default(n+"#"+t+"#"+e)}function U(t,e,n,r,i){var o=b.default(S.getDefinition(t),"item.uri","").split("/"),u=o[3]+"_"+o[5],s=r(n(t,i)),a=v.default(S.getMeasureFilters(t));return function(t){var e=F(t);return""===e?"metric":"count"===e?"attribute":"fact"}(t)+"_"+u+".generated."+s+(a||T(t)?"":"_filtered")+"_"+e}function z(t,e){return void 0===e&&(e={}),void 0!==function(t,e){return b.default(b.default(e,[t],{}),["attribute","content","type"])}(b.default(t,["displayForm","uri"]),e)}function B(t,e){var n=b.default(e,["properties","sortItems"],[]).find((function(e){var n=b.default(e,["measureSortItem"]);return!!n&&b.default(n,["locators",0,"measureLocatorItem","measureIdentifier"])===b.default(t,"localIdentifier")}));return n?b.default(n,["measureSortItem","direction"],null):null}function L(t,e){var n=b.default(e,["properties","sortItems"],[]).find((function(e){var n=b.default(e,["attributeSortItem"]);return!!n&&b.default(n,["attributeIdentifier"])===b.default(t,"localIdentifier")}));return n?b.default(n,["attributeSortItem","direction"],null):null}function q(t,e,n,r){var i=t.format,o=B(t,e),u=D(t.title),s=m.default(V,u,i),a=F(t),c=U(t,a.length?a:"base",R,s,r);return{element:c,definition:{metricDefinition:{identifier:c,expression:R(t,r),title:u,format:i}},sort:o,meta:{measureIndex:n}}}function W(t,e,n,r){var i=f.default(S.getAttributes(e)),o=m.default(k,i,r),u=D(b.default(t,"title")),s=U(t,"percent",o,m.default(V,u,"#,##0.00%"),r);return{element:s,definition:{metricDefinition:{identifier:s,expression:o(t),title:u,format:"#,##0.00%"}},sort:B(t,e),meta:{measureIndex:n}}}function G(t,e){return S.getMeasures(e).find((function(e){return b.default(e,"localIdentifier")===b.default(function(t){return b.default(t,["definition","popMeasureDefinition"],{})}(t),["measureIdentifier"])}))}function H(t,e,n){return{element:P(b.default(n,["displayForm","uri"]),t),sort:L(n,e)}}function J(t){var e=t.definition;return void 0!==b.default(e,"popMeasureDefinition")}function Y(t){var e=t.definition;return b.default(e,["measureDefinition","computeRatio"])}var K=new w.Rules;function Q(t,e,n){var r=S.getMeasures(t),i=S.getAttributes(t),o=g.default(h.default(r,(function(e,r){return function(t,e){var n=K.match(t,e);return u.default(n,"Unknown factory for: "+t),n}(e,t)(e,t,r,n)})));return e.removeDateItems&&(i=c.default(i,(function(t){return!z(t,n)}))),i=h.default(i,m.default(H,n,t)),{columns:a.default(h.default(i.concat(o),"element")),definitions:_.sortDefinitions(a.default(h.default(o,"definition")))}}K.addRule([function(t,e){return!!J(t)&&Y(G(t,e))}],(function(t,e,n,r){var i=b.default(t,["definition","popMeasureDefinition","popAttribute","uri"]),o=G(t,e),u=W(o,e,n,r),s=D(b.default(t,"title")),a=m.default(V,s,"#,##0.00%"),c=N(i,"("+b.default(u,["definition","metricDefinition","expression"])+")"),f=U(o,"pop",(function(){return c}),a,r);return{element:f,definition:{metricDefinition:{identifier:f,expression:c,title:s,format:"#,##0.00%"}},sort:B(),meta:{measureIndex:n,isPoP:!0}}})),K.addRule([J],(function(t,e,n,r){var i=D(b.default(t,"title")),o=b.default(t,"format"),u=m.default(V,i,o),s=b.default(t,"definition.popMeasureDefinition.popAttribute.uri"),a=G(t,e),c=N(s,"["+b.default(S.getDefinition(a),["item","uri"])+"]");if(I(a)){var f=q(a,e,n,r),l="("+b.default(f,["definition","metricDefinition","expression"])+")";c=N(s,l)}var h=U(a,"pop",(function(){return c}),u,r);return{element:h,definition:{metricDefinition:{identifier:h,expression:c,title:i,format:o}},sort:B(t,e),meta:{measureIndex:n,isPoP:!0}}})),K.addRule([Y],W),K.addRule([I],q),K.addRule([function(t){var e=t.definition;return void 0===b.default(e,["measureDefinition","aggregation"])}],(function(t,e,n){return{element:b.default(t,["definition","measureDefinition","item","uri"]),sort:B(t,e),meta:{measureIndex:n}}}));var $=function(){function t(t,e){this.xhr=t,this.loadAttributesMap=e}return t.prototype.getData=function(t,e,n,i){var o=this;void 0===n&&(n={}),void 0===i&&(i={}),console.warn("ExperimentalExecutionsModule is deprecated and is no longer being maintained. Please migrate to the ExecuteAfmModule.");var u={isLoaded:!1},s={execution:{columns:e}};return["where","orderBy","definitions"].forEach((function(t){n[t]&&(s.execution[t]=n[t])})),this.xhr.post("/gdc/internal/projects/"+t+"/experimental/executions",r({},i,{body:JSON.stringify(s)})).then((function(t){return t.getData()})).then((function(t){var e,r;return u.headers=(e=b.default(n,"metricMappings"),r=b.default(t,["executionResult","headers"],[]),e&&e.forEach((function(t){var e=l.default(r,m.default(A,t));e&&(e.measureIndex=t.measureIndex,e.isPoP=t.isPoP)})),r),o.loadExtendedDataResults(t.executionResult.extendedTabularDataResult,i)})).then((function(t){var e=t.result,n=t.status;return r({},u,{rawData:b.default(e,"extendedTabularDataResult.values",[]),warnings:b.default(e,"extendedTabularDataResult.warnings",[]),isLoaded:!0,isEmpty:204===n})}))},t.prototype.mdToExecutionDefinitionsAndColumns=function(t,e,n){void 0===n&&(n={});var r=S.getAttributesDisplayForms(e);return this.getAttributesMap(n,r,t).then((function(t){return Q(e,n,t)}))},t.prototype.getAttributesMap=function(t,e,n){var i=b.default(t,"attributesMap",{}),o=j.getMissingUrisInAttributesMap(e,i);return this.loadAttributesMap(n,o).then((function(t){return r({},i,t)}))},t.prototype.loadExtendedDataResults=function(t,e,n){var r=this;return void 0===n&&(n=E),new Promise((function(i,o){r.xhr.ajax(t,e).then((function(t){var e=t.response;return 204===e.status?{status:e.status,result:""}:{status:e.status,result:t.getData()}})).then((function(t){var o=t.status,u=t.result,s=b.default(n,"extendedTabularDataResult.values",[]).concat(b.default(u,"extendedTabularDataResult.values",[])),a=b.default(n,"extendedTabularDataResult.warnings",[]).concat(b.default(u,"extendedTabularDataResult.warnings",[])),c=p.default({},n,{extendedTabularDataResult:{values:s,warnings:a}}),f=b.default(u,"extendedTabularDataResult.paging.next");i(f?r.loadExtendedDataResults(f,e,c):{status:o,result:c})}),o)}))},t}();e.ExperimentalExecutionsModule=$},function(t,e,n){var r,i,o,u,s;r=n(235),i=n(149).utf8,o=n(236),u=n(149).bin,(s=function(t,e){t.constructor==String?t=e&&"binary"===e.encoding?u.stringToBytes(t):i.stringToBytes(t):o(t)?t=Array.prototype.slice.call(t,0):Array.isArray(t)||t.constructor===Uint8Array||(t=t.toString());for(var n=r.bytesToWords(t),a=8*t.length,c=1732584193,f=-271733879,l=-1732584194,h=271733878,p=0;p<n.length;p++)n[p]=16711935&(n[p]<<8|n[p]>>>24)|4278255360&(n[p]<<24|n[p]>>>8);n[a>>>5]|=128<<a%32,n[14+(a+64>>>9<<4)]=a;var d=s._ff,b=s._gg,v=s._hh,y=s._ii;for(p=0;p<n.length;p+=16){var m=c,g=f,x=l,w=h;c=d(c,f,l,h,n[p+0],7,-680876936),h=d(h,c,f,l,n[p+1],12,-389564586),l=d(l,h,c,f,n[p+2],17,606105819),f=d(f,l,h,c,n[p+3],22,-1044525330),c=d(c,f,l,h,n[p+4],7,-176418897),h=d(h,c,f,l,n[p+5],12,1200080426),l=d(l,h,c,f,n[p+6],17,-1473231341),f=d(f,l,h,c,n[p+7],22,-45705983),c=d(c,f,l,h,n[p+8],7,1770035416),h=d(h,c,f,l,n[p+9],12,-1958414417),l=d(l,h,c,f,n[p+10],17,-42063),f=d(f,l,h,c,n[p+11],22,-1990404162),c=d(c,f,l,h,n[p+12],7,1804603682),h=d(h,c,f,l,n[p+13],12,-40341101),l=d(l,h,c,f,n[p+14],17,-1502002290),c=b(c,f=d(f,l,h,c,n[p+15],22,1236535329),l,h,n[p+1],5,-165796510),h=b(h,c,f,l,n[p+6],9,-1069501632),l=b(l,h,c,f,n[p+11],14,643717713),f=b(f,l,h,c,n[p+0],20,-373897302),c=b(c,f,l,h,n[p+5],5,-701558691),h=b(h,c,f,l,n[p+10],9,38016083),l=b(l,h,c,f,n[p+15],14,-660478335),f=b(f,l,h,c,n[p+4],20,-405537848),c=b(c,f,l,h,n[p+9],5,568446438),h=b(h,c,f,l,n[p+14],9,-1019803690),l=b(l,h,c,f,n[p+3],14,-187363961),f=b(f,l,h,c,n[p+8],20,1163531501),c=b(c,f,l,h,n[p+13],5,-1444681467),h=b(h,c,f,l,n[p+2],9,-51403784),l=b(l,h,c,f,n[p+7],14,1735328473),c=v(c,f=b(f,l,h,c,n[p+12],20,-1926607734),l,h,n[p+5],4,-378558),h=v(h,c,f,l,n[p+8],11,-2022574463),l=v(l,h,c,f,n[p+11],16,1839030562),f=v(f,l,h,c,n[p+14],23,-35309556),c=v(c,f,l,h,n[p+1],4,-1530992060),h=v(h,c,f,l,n[p+4],11,1272893353),l=v(l,h,c,f,n[p+7],16,-155497632),f=v(f,l,h,c,n[p+10],23,-1094730640),c=v(c,f,l,h,n[p+13],4,681279174),h=v(h,c,f,l,n[p+0],11,-358537222),l=v(l,h,c,f,n[p+3],16,-722521979),f=v(f,l,h,c,n[p+6],23,76029189),c=v(c,f,l,h,n[p+9],4,-640364487),h=v(h,c,f,l,n[p+12],11,-421815835),l=v(l,h,c,f,n[p+15],16,530742520),c=y(c,f=v(f,l,h,c,n[p+2],23,-995338651),l,h,n[p+0],6,-198630844),h=y(h,c,f,l,n[p+7],10,1126891415),l=y(l,h,c,f,n[p+14],15,-1416354905),f=y(f,l,h,c,n[p+5],21,-57434055),c=y(c,f,l,h,n[p+12],6,1700485571),h=y(h,c,f,l,n[p+3],10,-1894986606),l=y(l,h,c,f,n[p+10],15,-1051523),f=y(f,l,h,c,n[p+1],21,-2054922799),c=y(c,f,l,h,n[p+8],6,1873313359),h=y(h,c,f,l,n[p+15],10,-30611744),l=y(l,h,c,f,n[p+6],15,-1560198380),f=y(f,l,h,c,n[p+13],21,1309151649),c=y(c,f,l,h,n[p+4],6,-145523070),h=y(h,c,f,l,n[p+11],10,-1120210379),l=y(l,h,c,f,n[p+2],15,718787259),f=y(f,l,h,c,n[p+9],21,-343485551),c=c+m>>>0,f=f+g>>>0,l=l+x>>>0,h=h+w>>>0}return r.endian([c,f,l,h])})._ff=function(t,e,n,r,i,o,u){var s=t+(e&n|~e&r)+(i>>>0)+u;return(s<<o|s>>>32-o)+e},s._gg=function(t,e,n,r,i,o,u){var s=t+(e&r|n&~r)+(i>>>0)+u;return(s<<o|s>>>32-o)+e},s._hh=function(t,e,n,r,i,o,u){var s=t+(e^n^r)+(i>>>0)+u;return(s<<o|s>>>32-o)+e},s._ii=function(t,e,n,r,i,o,u){var s=t+(n^(e|~r))+(i>>>0)+u;return(s<<o|s>>>32-o)+e},s._blocksize=16,s._digestsize=16,t.exports=function(t,e){if(null==t)throw new Error("Illegal argument "+t);var n=r.wordsToBytes(s(t,e));return e&&e.asBytes?n:e&&e.asString?u.bytesToString(n):r.bytesToHex(n)}},function(t,e){var n,r;n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r={rotl:function(t,e){return t<<e|t>>>32-e},rotr:function(t,e){return t<<32-e|t>>>e},endian:function(t){if(t.constructor==Number)return 16711935&r.rotl(t,8)|4278255360&r.rotl(t,24);for(var e=0;e<t.length;e++)t[e]=r.endian(t[e]);return t},randomBytes:function(t){for(var e=[];t>0;t--)e.push(Math.floor(256*Math.random()));return e},bytesToWords:function(t){for(var e=[],n=0,r=0;n<t.length;n++,r+=8)e[r>>>5]|=t[n]<<24-r%32;return e},wordsToBytes:function(t){for(var e=[],n=0;n<32*t.length;n+=8)e.push(t[n>>>5]>>>24-n%32&255);return e},bytesToHex:function(t){for(var e=[],n=0;n<t.length;n++)e.push((t[n]>>>4).toString(16)),e.push((15&t[n]).toString(16));return e.join("")},hexToBytes:function(t){for(var e=[],n=0;n<t.length;n+=2)e.push(parseInt(t.substr(n,2),16));return e},bytesToBase64:function(t){for(var e=[],r=0;r<t.length;r+=3)for(var i=t[r]<<16|t[r+1]<<8|t[r+2],o=0;o<4;o++)8*r+6*o<=8*t.length?e.push(n.charAt(i>>>6*(3-o)&63)):e.push("=");return e.join("")},base64ToBytes:function(t){t=t.replace(/[^A-Z0-9+\/]/gi,"");for(var e=[],r=0,i=0;r<t.length;i=++r%4)0!=i&&e.push((n.indexOf(t.charAt(r-1))&Math.pow(2,-2*i+8)-1)<<2*i|n.indexOf(t.charAt(r))>>>6-2*i);return e}},t.exports=r},function(t,e){function n(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}
25/*!
26 * Determine if an object is a Buffer
27 *
28 * @author Feross Aboukhadijeh <https://feross.org>
29 * @license MIT
30 */
31t.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){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var u=t[n];e(u,n,t)&&(o[i++]=u)}return o}},function(t,e,n){t.exports=n(239)},function(t,e){t.exports=function(t){return t&&t.length?t[0]:void 0}},function(t,e,n){var r=n(150),i=n(100),o=n(97);t.exports=function(t){return function(e,n,u){var s=Object(e);if(!i(e)){var a=r(n,3);e=o(e),n=function(t){return a(s[t],t,s)}}var c=t(e,n,u);return c>-1?s[a?e[c]:c]:void 0}}},function(t,e,n){var r=n(242),i=n(150),o=n(143),u=Math.max;t.exports=function(t,e,n){var s=null==t?0:t.length;if(!s)return-1;var a=null==n?0:o(n);return a<0&&(a=u(s+a,0)),r(t,i(e,3),a)}},function(t,e){t.exports=function(t,e,n,r){for(var i=t.length,o=n+(r?1:-1);r?o--:++o<i;)if(e(t[o],o,t))return o;return-1}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw new TypeError("Expected a function");return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}},function(t,e,n){var r=n(74),i=n(245),o=n(247),u=n(248),s=r((function(t,e){var n=u(e,o(s));return i(t,32,void 0,e,n)}));s.placeholder={},t.exports=s},function(t,e,n){var r=n(130),i=n(246),o=n(68);t.exports=function(t,e,n,u){var s=1&e,a=i(t);return function e(){for(var i=-1,c=arguments.length,f=-1,l=u.length,h=Array(l+c),p=this&&this!==o&&this instanceof e?a:t;++f<l;)h[f]=u[f];for(;c--;)h[f++]=arguments[++i];return r(p,s?n:this,h)}}},function(t,e,n){var r=n(123),i=n(37);t.exports=function(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n=r(t.prototype),o=t.apply(n,e);return i(o)?o:n}}},function(t,e){t.exports=function(){}},function(t,e){t.exports=function(){return[]}},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var i=r(n(112)),o=r(n(113)),u=r(n(151)),s=function(){function t(){this.rules=[]}return t.prototype.addRule=function(t,e){this.rules.push([t,e])},t.prototype.match=function(t,e){var n=o.default(this.rules,(function(n){var r=n[0];return u.default(r,(function(n){return n(t,e)}))}))[1];return i.default(n,"Callback not found :-("),n},t}();e.Rules=s},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var i=r(n(251)),o=r(n(114)),u=/{\S+}/g;function s(t){return(t.metricDefinition.expression.match(u)||[]).map((function(t){return t.substring(1,t.length-1)}))}function a(t,e){var n=e.dependencies,r=o.default(t,"identifier");return 0===i.default(n,r).length}function c(t,e){for(var n=0;n<e.length;n+=1){var r=e[n];a(t,r)&&(t.push(r),e.splice(n,1),n-=1)}}e.sortDefinitions=function(t){var e=t.map((function(t){return{definition:t,identifier:(e=t,e.metricDefinition.identifier),dependencies:s(t)};var e}));return o.default(function(t){for(var e,n=[];t.length>0;)if(e=t.length,c(n,t),t.length===e)throw new Error("Metric defintions cannot be sorted due to missing dependencies.");return n}(e),"definition")}},function(t,e,n){var r=n(252),i=n(106),o=n(74),u=n(134),s=o((function(t,e){return u(t)?r(t,i(e,1,u,!0)):[]}));t.exports=s},function(t,e,n){var r=n(152),i=n(253),o=n(254),u=n(145),s=n(255),a=n(154);t.exports=function(t,e,n,c){var f=-1,l=i,h=!0,p=t.length,d=[],b=e.length;if(!p)return d;n&&(e=u(e,s(n))),c?(l=o,h=!1):e.length>=200&&(l=a,h=!1,e=new r(e));t:for(;++f<p;){var v=t[f],y=null==n?v:n(v);if(v=c||0!==v?v:0,h&&y==y){for(var m=b;m--;)if(e[m]===y)continue t;d.push(v)}else l(e,y,c)||d.push(v)}return d}},function(t,e,n){var r=n(153);t.exports=function(t,e){return!!(null==t?0:t.length)&&r(t,e,0)>-1}},function(t,e){t.exports=function(t,e,n){for(var r=-1,i=null==t?0:t.length;++r<i;)if(n(e,t[r]))return!0;return!1}},function(t,e){t.exports=function(t){return function(e){return t(e)}}},function(t,e,n){var r=n(257)();t.exports=r},function(t,e,n){var r=n(258),i=n(75),o=n(259);t.exports=function(t){return function(e,n,u){return u&&"number"!=typeof u&&i(e,n,u)&&(n=u=void 0),e=o(e),void 0===n?(n=e,e=0):n=o(n),u=void 0===u?e<n?1:-1:o(u),r(e,n,u,t)}}},function(t,e){var n=Math.ceil,r=Math.max;t.exports=function(t,e,i,o){for(var u=-1,s=r(n((e-t)/(i||1)),0),a=Array(s);s--;)a[o?s:++u]=t,t+=i;return a}},function(t,e){t.exports=function(t){return t}},function(t,e,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var o=n(40),u=i(n(46)),s=i(n(26)),a=n(156),c=n(117),f=n(109),l=n(62),h=n(157),p=function(){function t(t){var e=this;this.xhr=t,this.handleExportResultError=function(t){return e.isApiResponseError(t)&&400===t.response.status&&-1!==t.responseBody.indexOf(a.ERROR_RESTRICTED_CODE)?Promise.reject(r({},t,{message:a.ERROR_RESTRICTED_MESSAGE})):Promise.reject(t)}}return t.prototype.exportResult=function(t,e,n,i){var o=this;void 0===n&&(n={}),void 0===i&&(i={});var u={resultExport:{executionResult:e,exportConfig:r({},n,this.sanitizeExportConfig(n))}};return this.xhr.post("/gdc/internal/projects/"+t+"/exportResult",{body:u}).then((function(t){return t.getData()})).then((function(t){return l.handleHeadPolling(o.xhr.get.bind(o.xhr),t.uri,h.isExportFinished,i)})).catch(this.handleExportResultError)},t.prototype.sanitizeExportConfig=function(t){var e=t.afm;if(e&&!s.default(e.filters)){var n=r({},e,{filters:this.sanitizeFilters(e.filters)});return r({},t,{afm:n})}return t},t.prototype.isApiResponseError=function(t){return void 0!==t.response},t.prototype.sanitizeFilters=function(t){return t?u.default(t.map(this.sanitizeFilter)):[]},t.prototype.sanitizeFilter=function(t){return o.AFM.isAttributeFilter(t)?f.convertFilter(t):o.AFM.isAbsoluteDateFilter(t)?c.convertAbsoluteDateFilter(t):o.AFM.isRelativeDateFilter(t)?c.convertRelativeDateFilter(t):t},t}();e.ReportModule=p},function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function u(t){try{a(r.next(t))}catch(t){o(t)}}function s(t){try{a(r.throw(t))}catch(t){o(t)}}function a(t){t.done?i(t.value):new n((function(e){e(t.value)})).then(u,s)}a((r=r.apply(t,e||[])).next())}))},i=this&&this.__generator||function(t,e){var n,r,i,o,u={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;u;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return u.label++,{value:o[1],done:!1};case 5:u.label++,r=o[1],o=[0];continue;case 7:o=u.ops.pop(),u.trys.pop();continue;default:if(!(i=u.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){u=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){u.label=o[1];break}if(6===o[0]&&u.label<i[1]){u.label=i[1],i=o;break}if(i&&u.label<i[2]){u.label=i[2],u.ops.push(o);break}i[2]&&u.ops.pop(),u.trys.pop();continue}o=e.call(t,u)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(e,"__esModule",{value:!0});var o=n(62),u=n(157),s=function(){function t(t){this.xhr=t}return t.prototype.exportToPdf=function(t,e,n,o){return void 0===n&&(n=[]),void 0===o&&(o={}),r(this,void 0,Promise,(function(){var r,s,a;return i(this,(function(i){switch(i.label){case 0:r=u.sanitizeDateFilters(n),s=this.getDashboardExportPayload(e,r),i.label=1;case 1:return i.trys.push([1,4,,5]),[4,this.xhr.post("/gdc/internal/projects/"+t+"/exportDashboard",{body:s})];case 2:return a=i.sent(),[4,this.pollPdfFile(a,o)];case 3:return[2,i.sent()];case 4:throw i.sent();case 5:return[2]}}))}))},t.prototype.pollPdfFile=function(t,e){return r(this,void 0,Promise,(function(){var n;return i(this,(function(r){switch(r.label){case 0:return n=t.getData(),[4,o.handleHeadPolling(this.xhr.head.bind(this.xhr),n.uri,u.isExportFinished,e)];case 1:return[2,r.sent()]}}))}))},t.prototype.getDashboardExportPayload=function(t,e){return e.length?{dashboardExport:{dashboardUri:t,filters:e}}:{dashboardExport:{dashboardUri:t}}},t}();e.DashboardModule=s},function(t,e,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var o=i(n(73)),u=i(n(25));function s(t){if(null!==t){var e=(t||"").match("(?:(https)://+|(www\\.)?)\\w[:;,\\.?\\[\\]\\w/~%&=+#-@!]*");if(!e)throw new Error(t+" is not a valid url");return"https://"+e[0].replace(/^https?:\/\/|\/$/g,"")}}e.sanitizeDomain=s,e.sanitizeConfig=function(t){var e=r({},t);return t.domain&&(e.domain=s(t.domain)),e};var a=function(){function t(t){if(this.configStorage=t,1!==arguments.length)throw new Error("Config module has to be called with exactly one argument.")}return t.prototype.setCustomDomain=function(t){this.configStorage.domain=s(t)},t.prototype.getCustomDomain=function(){return this.configStorage.domain},t.prototype.setJsPackage=function(t,e){this.configStorage.originPackage||(this.configStorage.originPackage={name:t,version:e})},t.prototype.getJsPackage=function(){return this.configStorage.originPackage},t.prototype.setRequestHeader=function(t,e){o.default(this.configStorage,["xhrSettings","headers",t],e)},t.prototype.getRequestHeader=function(t){return u.default(this.configStorage,["xhrSettings","headers",t])},t}();e.ConfigModule=a},function(t,e,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},i=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function u(t){try{a(r.next(t))}catch(t){o(t)}}function s(t){try{a(r.throw(t))}catch(t){o(t)}}function a(t){t.done?i(t.value):new n((function(e){e(t.value)})).then(u,s)}a((r=r.apply(t,e||[])).next())}))},o=this&&this.__generator||function(t,e){var n,r,i,o,u={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;u;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return u.label++,{value:o[1],done:!1};case 5:u.label++,r=o[1],o=[0];continue;case 7:o=u.ops.pop(),u.trys.pop();continue;default:if(!(i=u.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){u=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){u.label=o[1];break}if(6===o[0]&&u.label<i[1]){u.label=i[1],i=o;break}if(i&&u.label<i[2]){u.label=i[2],u.ops.push(o);break}i[2]&&u.ops.pop(),u.trys.pop();continue}o=e.call(t,u)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},u=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var s=u(n(25)),a=u(n(113)),c=u(n(108)),f=u(n(58)),l={types:["attribute","metric","fact"],paging:{offset:0}},h={includeUnavailableDateDataSetsCount:!0,includeAvailableDateAttributes:!0},p=function(t){return s.default(t,"returnAllRelatedDateDataSets")?{}:s.default(t,"returnAllDateDataSets")?{requiredDataSets:{type:"ALL"}}:s.default(t,"dataSetIdentifier")?{requiredDataSets:{type:"CUSTOM",customIdentifiers:[s.default(t,"dataSetIdentifier")]}}:{requiredDataSets:{type:"PRODUCTION"}}},d=function(t){var e=t.columns,n=t.definitions;return e?e.map((function(t){var e=a.default(n,(function(e){return e.metricDefinition.identifier===t})),r=s.default(e,"metricDefinition.expression");return r?{expression:r}:{uri:t}})):[]},b=function(t){if(function(t){return!!t.uri}(t))return t.uri;if(function(t){return!!t.expression}(t))return t.expression;throw new Error("Item description can only have expression or uri")},v=function(){function t(t,e){this.xhr=t,this.execution=e}return t.prototype.loadItems=function(t,e){var n=this;void 0===e&&(e={});var i=c.default(r({},l,e,p(e)),["dataSetIdentifier","returnAllDateDataSets","attributesMap"]),o=s.default(f.default(e),"bucketItems"),u=s.default(e,"attributesMap");return void 0!==s.default(o,"buckets")?this.loadItemDescriptions(t,o,u).then((function(e){return n.loadCatalog(t,r({},i,{bucketItems:e}))})):this.loadCatalog(t,i)},t.prototype.loadDateDataSets=function(t,e){return i(this,void 0,void 0,(function(){var n,i,u,a,d;return o(this,(function(o){switch(o.label){case 0:return(n=f.default(e).bucketItems)?[4,this.loadItemDescriptions(t,n,s.default(e,"attributesMap"),!0)]:[3,2];case 1:return u=o.sent(),[3,3];case 2:u=void 0,o.label=3;case 3:return i=u,a=["filter","types","paging","dataSetIdentifier","returnAllDateDataSets","returnAllRelatedDateDataSets","attributesMap"],e.includeObjectsWithTags&&a.push("excludeObjectsWithTags"),d=c.default(r({},h,l,e,p(e),{bucketItems:i}),a),[2,this.requestDateDataSets(t,d)]}}))}))},t.prototype.loadItemDescriptionObjects=function(t,e,n,r){return void 0===r&&(r=!1),i(this,void 0,Promise,(function(){var i;return o(this,(function(o){switch(o.label){case 0:return[4,this.execution.mdToExecutionDefinitionsAndColumns(t,e,{attributesMap:n,removeDateItems:r})];case 1:return i=o.sent(),[2,d(i)]}}))}))},t.prototype.loadItemDescriptions=function(t,e,n,r){return void 0===r&&(r=!1),i(this,void 0,Promise,(function(){return o(this,(function(i){switch(i.label){case 0:return[4,this.loadItemDescriptionObjects(t,e,n,r)];case 1:return[2,i.sent().map(b)]}}))}))},t.prototype.requestDateDataSets=function(t,e){var n="/gdc/internal/projects/"+t+"/loadDateDataSets";return this.xhr.post(n,{data:{dateDataSetsRequest:e}}).then((function(t){return t.getData()})).then((function(t){return t.dateDataSetsResponse}))},t.prototype.loadCatalog=function(t,e){var n="/gdc/internal/projects/"+t+"/loadCatalog";return this.xhr.post(n,{data:{catalogRequest:e}}).then((function(t){return t.getData()})).then((function(t){return t.catalogResponse}))},t}();e.CatalogueModule=v},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t){this.xhr=t}return t.prototype.getCommonAttributes=function(t,e){return this.xhr.post("/gdc/md/"+t+"/ldm/attributeupperbound",{body:{attributeUpperBounds:{attributes:e}}}).then((function(t){return t.getData()})).then((function(t){if(t.attributeUpperBoundsResponse)return t.attributeUpperBoundsResponse.upperbounds}))},t}();e.LdmModule=r},function(t,e,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},i=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function u(t){try{a(r.next(t))}catch(t){o(t)}}function s(t){try{a(r.throw(t))}catch(t){o(t)}}function a(t){t.done?i(t.value):new n((function(e){e(t.value)})).then(u,s)}a((r=r.apply(t,e||[])).next())}))},o=this&&this.__generator||function(t,e){var n,r,i,o,u={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;u;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return u.label++,{value:o[1],done:!1};case 5:u.label++,r=o[1],o=[0];continue;case 7:o=u.ops.pop(),u.trys.pop();continue;default:if(!(i=u.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){u=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){u.label=o[1];break}if(6===o[0]&&u.label<i[1]){u.label=i[1],i=o;break}if(i&&u.label<i[2]){u.label=i[2],u.ops.push(o);break}i[2]&&u.ops.pop(),u.trys.pop();continue}o=e.call(t,u)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},u=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var s=n(141),a=n(137),c=u(n(266)),f=u(n(26)),l=u(n(46)),h=u(n(108));function p(t,e){return function(n){var r=t.get(n),i=e.get(n);return r||(i||n)}}function d(t,e,n){return c.default(r({},t.content,{filterContext:n,widgets:t.content.widgets.map((function(t){return e(t)}))}),(function(t){var n=t.uri;if(n)return r({},t,{uri:e(n)})}))}e.createTranslator=p,e.updateContent=d;var b=function(){function t(t){this.xhr=t,this.metadataModule=new s.MetadataModule(t),this.userModule=new a.UserModule(t)}return t.prototype.saveDashboardAs=function(t,e,n){return i(this,void 0,Promise,(function(){var i,u,s,a,c,f,l,h,b,v,y,m,g,x=this;return o(this,(function(o){switch(o.label){case 0:return[4,this.getObjectsFromDashboard(t,e)];case 1:return i=o.sent(),[4,this.metadataModule.getObjectDetails(e)];case 2:u=o.sent(),s=u.analyticalDashboard,a=[],c=[],o.label=3;case 3:return o.trys.push([3,8,,14]),[4,this.duplicateFilterContext(t,i,n)];case 4:return f=o.sent(),a.push(f),[4,this.duplicateOrKeepKpis(t,i,n)];case 5:return l=o.sent(),this.shouldCopyKpi(n)&&a.push.apply(a,Array.from(l.values())),[4,this.duplicateWidgets(t,i,n)];case 6:return h=o.sent(),c.push.apply(c,Array.from(h.values())),b=p(l,h),v=d(s,b,f),y=this.getDashboardName(s.meta.title,n.name),m=this.getDashboardSummary(s.meta.summary,n.summary),g=r({},u,{analyticalDashboard:r({},u.analyticalDashboard,{content:this.getDashboardDetailObject(v,f),meta:r({},this.getSanitizedMeta(u.analyticalDashboard.meta,n),{title:y,summary:m})})}),[4,this.metadataModule.createObject(t,g)];case 7:return[2,o.sent().analyticalDashboard.meta.uri];case 8:return o.sent(),this.shouldCopyVisObj(n)?[4,Promise.all(c.map((function(e){return x.cascadingDelete(t,e)})))]:[3,10];case 9:return o.sent(),[3,12];case 10:return[4,Promise.all(c.map((function(t){return x.metadataModule.deleteObject(t)})))];case 11:o.sent(),o.label=12;case 12:return[4,Promise.all(a.map((function(e){return x.cascadingDelete(t,e)})))];case 13:return o.sent(),[2,e];case 14:return[2]}}))}))},t.prototype.cascadingDelete=function(t,e){return i(this,void 0,Promise,(function(){var n,r,i;return o(this,(function(o){switch(o.label){case 0:return[4,this.metadataModule.getObjectUsing(t,e)];case 1:return n=o.sent(),[4,this.userModule.getAccountInfo()];case 2:return r=o.sent().profileUri,i=n.filter((function(t){return t.author===r})).map((function(t){return t.link})),[2,this.xhr.post("/gdc/md/"+t+"/objects/delete",{body:{delete:{items:[e].concat(i),mode:"cascade"}}})]}}))}))},t.prototype.getDashboardDetailObject=function(t,e){var n=t.layout;return r({},t,{filterContext:e,widgets:t.widgets.slice()},f.default(n)?{}:{layout:n})},t.prototype.getDashboardName=function(t,e){return void 0!==e?e:"Copy of "+t},t.prototype.getDashboardSummary=function(t,e){return void 0!==e?e:void 0!==t?t:""},t.prototype.duplicateOrKeepKpis=function(t,e,n){return i(this,void 0,Promise,(function(){var u,s=this;return o(this,(function(a){switch(a.label){case 0:return u=new Map,this.shouldCopyKpi(n)?[4,Promise.all(e.filter((function(t){return"kpi"===s.unwrapObj(t).meta.category})).map((function(e){return i(s,void 0,void 0,(function(){var i,s,a;return o(this,(function(o){switch(o.label){case 0:return i=e.kpi,s={kpi:{meta:this.getSanitizedMeta(i.meta,n),content:r({},i.content)}},[4,this.metadataModule.createObject(t,s)];case 1:return a=o.sent().kpi.meta.uri,u.set(i.meta.uri,a),[2]}}))}))})))]:[3,2];case 1:a.sent(),a.label=2;case 2:return[2,u]}}))}))},t.prototype.duplicateWidgets=function(t,e,n){return i(this,void 0,Promise,(function(){var r,u=this;return o(this,(function(s){switch(s.label){case 0:return r=new Map,[4,Promise.all(e.filter((function(t){return"visualizationWidget"===u.unwrapObj(t).meta.category})).map((function(e){return i(u,void 0,void 0,(function(){return o(this,(function(i){return[2,this.createAndUpdateWidgets(t,e,n,r)]}))}))})))];case 1:return s.sent(),[2,r]}}))}))},t.prototype.createAndUpdateWidgets=function(t,e,n,u){return i(this,void 0,Promise,(function(){var i,s,a,c,f,l,h;return o(this,(function(o){switch(o.label){case 0:return i=e.visualizationWidget,this.shouldCopyVisObj(n)?[4,this.metadataModule.getObjectDetails(i.content.visualization)]:[3,4];case 1:return s=o.sent(),a={visualizationObject:{meta:this.getSanitizedMeta(s.visualizationObject.meta,n),content:r({},s.visualizationObject.content)}},[4,this.metadataModule.createObject(t,a)];case 2:return c=o.sent().visualizationObject.meta.uri,l=r({},e,{visualizationWidget:{meta:this.getSanitizedMeta(e.visualizationWidget.meta,n),content:r({},e.visualizationWidget.content,{visualization:c})}}),[4,this.metadataModule.createObject(t,l)];case 3:return f=o.sent().visualizationWidget.meta.uri,u.set(i.meta.uri,f),[3,6];case 4:return l=r({},e,{visualizationWidget:{meta:this.getSanitizedMeta(e.visualizationWidget.meta,n),content:r({},e.visualizationWidget.content)}}),[4,this.metadataModule.createObject(t,l)];case 5:h=o.sent().visualizationWidget,u.set(e.visualizationWidget.meta.uri,h.meta.uri),o.label=6;case 6:return[2]}}))}))},t.prototype.duplicateFilterContext=function(t,e,n){return i(this,void 0,Promise,(function(){var i,u,s=this;return o(this,(function(o){switch(o.label){case 0:return i=e.filter((function(t){return"filterContext"===s.unwrapObj(t).meta.category}))[0],u={filterContext:{meta:this.getSanitizedMeta(i.filterContext.meta,n),content:r({},i.filterContext.content)}},[4,this.metadataModule.createObject(t,u)];case 1:return[2,o.sent().filterContext.meta.uri]}}))}))},t.prototype.getSanitizedMeta=function(t,e){return h.default(t,l.default(["identifier","uri","author","created","updated","contributor",e&&e.clearLockedFlag&&"locked"]))},t.prototype.getObjectsFromDashboard=function(t,e){return i(this,void 0,Promise,(function(){var n;return o(this,(function(r){switch(r.label){case 0:return[4,this.getObjectsUrisInDashboard(t,e)];case 1:return n=r.sent(),[2,this.metadataModule.getObjects(t,n)]}}))}))},t.prototype.getObjectsUrisInDashboard=function(t,e){return i(this,void 0,Promise,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.metadataModule.getObjectUsing(t,e,{types:["kpi","visualizationWidget","filterContext"]})];case 1:return[2,n.sent().map((function(t){return t.link}))]}}))}))},t.prototype.unwrapObj=function(t){return t[Object.keys(t)[0]]},t.prototype.shouldCopyVisObj=function(t){return!(!t.copyVisObj&&void 0!==t.copyVisObj)},t.prototype.shouldCopyKpi=function(t){return!(!t.copyKpi&&void 0!==t.copyKpi)},t}();e.MetadataModuleExt=b},function(t,e,n){var r=n(93);t.exports=function(t,e){return r(t,5,e="function"==typeof e?e:void 0)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t){this.xhr=t}return t.prototype.getBootstrapData=function(){return this.xhr.get("/gdc/app/account/bootstrap").then((function(t){return t.getData()}))},t.prototype.getMapboxToken=function(t){return t.bootstrapResource.current.mapboxToken||null},t}();e.BootstrapModule=r},function(t,e,n){"use strict";var r=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e};Object.defineProperty(e,"__esModule",{value:!0});var i=r(n(269));e.Header=i;var o=r(n(270));e.DataSourceUtils=o;var u=r(n(158));e.DataSource=u;var s=r(n(272));e.Filters=s;var a=r(n(147));e.Uri=a;var c=n(159);e.createSubject=c.createSubject,e.ISubject=c.ISubject;var f=n(160);e.toAfmResultSpec=f.toAfmResultSpec;var l=r(n(276));e.ResultSpecUtils=l;var h=r(n(78));e.AfmUtils=h;var p=n(277);e.DataTable=p.DataTable;var d=n(285);e.DummyAdapter=d.DummyAdapter;var b=n(162);e.ExecuteAfmAdapter=b.ExecuteAfmAdapter;var v=n(287);e.UriAdapter=v.UriAdapter;var y=n(288);e.IAdapter=y.IAdapter},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.dataSourcesMatch=function(t,e){return(t?t.getFingerprint():null)===(e?e.getFingerprint():null)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},function(t,e,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var o=i(n(58)),u=i(n(26)),s=n(40),a=s.AFM.isDateFilter,c=s.AFM.isNegativeAttributeFilter,f=s.AFM.isPositiveAttributeFilter;function l(t){return u.default(t)}function h(t){return f(t)?l(t.positiveAttributeFilter.in):c(t)?l(t.negativeAttributeFilter.notIn):!a(t)}function p(t){return!h(t)}e.isEmptyAttributeElements=l,e.isEmptyFilter=h,e.isNotEmptyFilter=p,e.mergeFilters=function(t,e){var n=o.default(t);return r({},n,{filters:(n.filters||[]).concat(e).filter(p)})}},function(t,e,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var o=i(n(46)),u=n(40),s=n(117),a=n(274),c={convertMeasure:function(t){var e=function(t){if(u.VisualizationObject.isMeasureDefinition(t))return function(t){var e=t.measureDefinition,n=e.filters?o.default(e.filters.map(s.convertVisualizationObjectFilter)):[],i=n.length?{filters:n}:{},u=e.aggregation,a=u?{aggregation:u}:{},c=e.computeRatio,f=c?{computeRatio:c}:{};return{measure:r({item:e.item},i,a,f)}}(t);if(u.VisualizationObject.isPopMeasureDefinition(t))return function(t){var e=t.popMeasureDefinition;return{popMeasure:{measureIdentifier:e.measureIdentifier,popAttribute:e.popAttribute}}}(t);if(u.VisualizationObject.isPreviousPeriodMeasureDefinition(t))return function(t){var e=t.previousPeriodMeasure;return{previousPeriodMeasure:{measureIdentifier:e.measureIdentifier,dateDataSets:e.dateDataSets.map((function(t){return{dataSet:t.dataSet,periodsAgo:t.periodsAgo}}))}}}(t);if(u.VisualizationObject.isArithmeticMeasureDefinition(t))return function(t){var e=t.arithmeticMeasure;return{arithmeticMeasure:{measureIdentifiers:e.measureIdentifiers.slice(),operator:e.operator}}}(t);throw Error("The measure definition is not supported: "+JSON.stringify(t))}(t.measure.definition),n=function(t){var e=t.measure,n=e.definition,r=e.format;if(r)return r;if(u.VisualizationObject.isArithmeticMeasureDefinition(n)&&"change"===n.arithmeticMeasure.operator)return a.DEFAULT_PERCENTAGE_FORMAT;if(u.VisualizationObject.isMeasureDefinition(n)){var i=n.measureDefinition;if(i.computeRatio)return a.DEFAULT_PERCENTAGE_FORMAT;if("count"===i.aggregation)return a.DEFAULT_INTEGER_FORMAT}return}(t),i=n?{format:n}:{},c=t.measure.alias?t.measure.alias:t.measure.title,f=c?{alias:c}:{};return r({localIdentifier:t.measure.localIdentifier,definition:e},f,i)}};e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_DECIMAL_FORMAT="#,##0.00",e.DEFAULT_PERCENTAGE_FORMAT="#,##0.00%",e.DEFAULT_INTEGER_FORMAT="#,##0"},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TOOLTIP_TEXT="tooltipText",e.LOCATION="location"},function(t,e,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=n(78);function o(t){return!!t.attributeSortItem}function u(t){if(o(t))return t.attributeSortItem.attributeIdentifier;if(function(t){return!o(t)}(t)){var e=t.measureSortItem.locators[0];if(function(t){return!!t.measureLocatorItem}(e))return e.measureLocatorItem.measureIdentifier}return null}e.applySorting=function(t,e){return void 0===t&&(t={}),void 0===e&&(e=[]),0===e.length?t:r({},t,{sorts:e})},e.isSortValid=function(t,e){if(!e)return!0;var n=u(e),r=i.normalizeAfm(t);return r.measures.some((function(t){return t.localIdentifier===n}))||r.attributes.some((function(t){return t.localIdentifier===n}))}},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var i=r(n(25)),o=r(n(26)),u=r(n(278)),s=n(78),a=n(159),c=function(){function t(t){var e=this;this.dataSubscribers=[],this.errorSubscribers=[],this.adapter=t,this.subject=a.createSubject((function(t){return e.dataSubscribers.forEach((function(e){return e(t)}))}),(function(t){return e.errorSubscribers.forEach((function(e){return e(t)}))}))}return t.getDefaultDimensionsForTable=function(t){return[{itemIdentifiers:(t.attributes||[]).map((function(t){return t.localIdentifier}))},{itemIdentifiers:["measureGroup"]}]},t.prototype.getData=function(e,n){var r=this;void 0===n&&(n={}),s.isAfmExecutable(e)&&(o.default(i.default(n,"dimensions"))&&(n.dimensions=t.getDefaultDimensionsForTable(e)),u.default(e,this.afm)?this.dataSource&&this.fetchData(n):(this.afm=e,this.adapter.createDataSource(e).then((function(t){r.dataSource=t,r.fetchData(n)}),(function(t){r.errorSubscribers.forEach((function(e){return e(t)}))}))))},t.prototype.onData=function(t){return this.dataSubscribers.push(t),this},t.prototype.onError=function(t){return this.errorSubscribers.push(t),this},t.prototype.resetDataSubscribers=function(){return this.dataSubscribers=[],this},t.prototype.resetErrorSubscribers=function(){return this.errorSubscribers=[],this},t.prototype.fetchData=function(t){this.dataSource&&this.subject.next(this.dataSource.getData(t))},t}();e.DataTable=c},function(t,e,n){var r=n(279);t.exports=function(t,e){return r(t,e)}},function(t,e,n){var r=n(280),i=n(71);t.exports=function t(e,n,o,u,s){return e===n||(null==e||null==n||!i(e)&&!i(n)?e!=e&&n!=n:r(e,n,o,u,t,s))}},function(t,e,n){var r=n(94),i=n(281),o=n(283),u=n(284),s=n(98),a=n(20),c=n(69),f=n(101),l="[object Object]",h=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,p,d,b){var v=a(t),y=a(e),m=v?"[object Array]":s(t),g=y?"[object Array]":s(e),x=(m="[object Arguments]"==m?l:m)==l,w=(g="[object Arguments]"==g?l:g)==l,_=m==g;if(_&&c(t)){if(!c(e))return!1;v=!0,x=!1}if(_&&!x)return b||(b=new r),v||f(t)?i(t,e,n,p,d,b):o(t,e,m,n,p,d,b);if(!(1&n)){var j=x&&h.call(t,"__wrapped__"),S=w&&h.call(e,"__wrapped__");if(j||S){var O=j?t.value():t,A=S?e.value():e;return b||(b=new r),d(O,A,n,p,b)}}return!!_&&(b||(b=new r),u(t,e,n,p,d,b))}},function(t,e,n){var r=n(152),i=n(282),o=n(154);t.exports=function(t,e,n,u,s,a){var c=1&n,f=t.length,l=e.length;if(f!=l&&!(c&&l>f))return!1;var h=a.get(t),p=a.get(e);if(h&&p)return h==e&&p==t;var d=-1,b=!0,v=2&n?new r:void 0;for(a.set(t,e),a.set(e,t);++d<f;){var y=t[d],m=e[d];if(u)var g=c?u(m,y,d,e,t,a):u(y,m,d,t,e,a);if(void 0!==g){if(g)continue;b=!1;break}if(v){if(!i(e,(function(t,e){if(!o(v,e)&&(y===t||s(y,t,n,u,a)))return v.push(e)}))){b=!1;break}}else if(y!==m&&!s(y,m,n,u,a)){b=!1;break}}return a.delete(t),a.delete(e),b}},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}},function(t,e){t.exports=function(t,e){return t===e||t!=t&&e!=e}},function(t,e,n){var r=n(120),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,o,u,s){var a=1&n,c=r(t),f=c.length;if(f!=r(e).length&&!a)return!1;for(var l=f;l--;){var h=c[l];if(!(a?h in e:i.call(e,h)))return!1}var p=s.get(t),d=s.get(e);if(p&&d)return p==e&&d==t;var b=!0;s.set(t,e),s.set(e,t);for(var v=a;++l<f;){var y=t[h=c[l]],m=e[h];if(o)var g=a?o(m,y,h,e,t,s):o(y,m,h,t,e,s);if(!(void 0===g?y===m||u(y,m,n,o,s):g)){b=!1;break}v||(v="constructor"==h)}if(b&&!v){var x=t.constructor,w=e.constructor;x==w||!("constructor"in t)||!("constructor"in e)||"function"==typeof x&&x instanceof x&&"function"==typeof w&&w instanceof w||(b=!1)}return s.delete(t),s.delete(e),b}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(286),i=function(){function t(t,e,n){void 0===e&&(e=!0),void 0===n&&(n=null),this.data=t,this.success=e,this.dataSource=n}return t.prototype.createDataSource=function(t){return this.dataSource?Promise.resolve(this.dataSource):Promise.resolve(new r.DummyDataSource(this.data,this.success))},t}();e.DummyAdapter=i},function(t,e,n){"use strict";function r(t){void 0===t&&(t=2);return{dimensions:Array(t).fill({headers:[]}),links:{executionResult:"/gdc/app/projects/myFakeProjectId/executionResults/123?limit=overridden&dimensions="+t}}}Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){void 0===e&&(e=!0),this.data=t,this.resolve=e,this.resultSpec={}}return t.prototype.getData=function(t){return this.resultSpec=t,this.resolve?Promise.resolve(this.data):Promise.reject("DummyDataSource reject")},t.prototype.getPage=function(t,e,n){return this.resultSpec=t,this.resolve?Promise.resolve({executionResponse:r(2),executionResult:{data:[[11,12],[51,52]],paging:{count:[2,2],offset:[0,0],total:[2,2]},headerItems:[[[{attributeHeaderItem:{name:"A1",uri:"/gdc/md/obj/attr1"}},{attributeHeaderItem:{name:"A2",uri:"/gdc/md/obj/attr2"}}]],[[{measureHeaderItem:{name:"M1",order:0}},{measureHeaderItem:{name:"M2",order:0}}]]]}}):Promise.reject("DummyDataSource reject")},t.prototype.getFingerprint=function(){return""},t.prototype.getResultSpec=function(){return this.resultSpec},t.prototype.getAfm=function(){return{}},t}();e.DummyDataSource=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(162),i=n(160),o=n(78),u=n(103);function s(t,e){return new r.ExecuteAfmAdapter(t,e)}var a=function(){function t(t,e,n){void 0===n&&(n=s),this.projectId=e,this.executeAdapterFactory=n,this.sdk=t.clone(),this.sdk.config.setJsPackage("@gooddata/data-layer",u.version)}return t.prototype.createDataSource=function(t){var e=this;return this.fetchVisualizationObject(t.uri).then((function(n){var r=n.visualizationObject.content,u=i.toAfmResultSpec(r),s=u.afm,a=u.resultSpec,c={execution:{afm:o.appendFilters(s,t.attributeFilters||[],t.dateFilter),resultSpec:a}};return e.executeAdapterFactory(e.sdk,e.projectId).createDataSource(c)}))},t.prototype.fetchVisualizationObject=function(t){var e=this;return t===this.uri&&this.visualizationObject?Promise.resolve(this.visualizationObject):this.sdk.xhr.get(t).then((function(n){var r=n.data;return e.uri=t,e.visualizationObject=r,r}))},t}();e.UriAdapter=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t){return!(!t||!t.type||void 0===t.value)};e.isGuidColorItem=function(t){return r(t)&&"guid"===t.type},e.isRgbColorItem=function(t){return r(t)&&"rgb"===t.type},e.isApiExecutionResponseError=function(t){return!!t.executionResponse}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},function(t,e,n){"use strict";n.r(e),n.d(e,"audit",(function(){return o})),n.d(e,"auditTime",(function(){return f})),n.d(e,"buffer",(function(){return l})),n.d(e,"bufferCount",(function(){return b})),n.d(e,"bufferTime",(function(){return x})),n.d(e,"bufferToggle",(function(){return T})),n.d(e,"bufferWhen",(function(){return M})),n.d(e,"catchError",(function(){return k})),n.d(e,"combineAll",(function(){return z})),n.d(e,"combineLatest",(function(){return q})),n.d(e,"concat",(function(){return G})),n.d(e,"concatAll",(function(){return H.a})),n.d(e,"concatMap",(function(){return Y})),n.d(e,"concatMapTo",(function(){return K})),n.d(e,"count",(function(){return Q})),n.d(e,"debounce",(function(){return Z})),n.d(e,"debounceTime",(function(){return nt})),n.d(e,"defaultIfEmpty",(function(){return ut})),n.d(e,"delay",(function(){return lt})),n.d(e,"delayWhen",(function(){return vt})),n.d(e,"dematerialize",(function(){return wt})),n.d(e,"distinct",(function(){return St})),n.d(e,"distinctUntilChanged",(function(){return Et})),n.d(e,"distinctUntilKeyChanged",(function(){return Tt})),n.d(e,"elementAt",(function(){return Lt})),n.d(e,"endWith",(function(){return Wt})),n.d(e,"every",(function(){return Gt})),n.d(e,"exhaust",(function(){return Yt})),n.d(e,"exhaustMap",(function(){return Xt})),n.d(e,"expand",(function(){return ee})),n.d(e,"filter",(function(){return Pt.a})),n.d(e,"finalize",(function(){return ie})),n.d(e,"find",(function(){return se})),n.d(e,"findIndex",(function(){return fe})),n.d(e,"first",(function(){return he})),n.d(e,"groupBy",(function(){return pe.b})),n.d(e,"ignoreElements",(function(){return de})),n.d(e,"isEmpty",(function(){return ye})),n.d(e,"last",(function(){return je})),n.d(e,"map",(function(){return $t.a})),n.d(e,"mapTo",(function(){return Se})),n.d(e,"materialize",(function(){return Ee})),n.d(e,"max",(function(){return Re})),n.d(e,"merge",(function(){return Ne})),n.d(e,"mergeAll",(function(){return Ve.a})),n.d(e,"mergeMap",(function(){return J.b})),n.d(e,"flatMap",(function(){return J.a})),n.d(e,"mergeMapTo",(function(){return Ue})),n.d(e,"mergeScan",(function(){return ze})),n.d(e,"min",(function(){return qe})),n.d(e,"multicast",(function(){return Ge})),n.d(e,"observeOn",(function(){return Je.b})),n.d(e,"onErrorResumeNext",(function(){return Ye})),n.d(e,"pairwise",(function(){return $e})),n.d(e,"partition",(function(){return en})),n.d(e,"pluck",(function(){return nn})),n.d(e,"publish",(function(){return un})),n.d(e,"publishBehavior",(function(){return an})),n.d(e,"publishLast",(function(){return fn})),n.d(e,"publishReplay",(function(){return hn})),n.d(e,"race",(function(){return dn})),n.d(e,"reduce",(function(){return Ce})),n.d(e,"repeat",(function(){return bn})),n.d(e,"repeatWhen",(function(){return mn})),n.d(e,"retry",(function(){return wn})),n.d(e,"retryWhen",(function(){return Sn})),n.d(e,"refCount",(function(){return En.a})),n.d(e,"sample",(function(){return Dn})),n.d(e,"sampleTime",(function(){return In})),n.d(e,"scan",(function(){return Te})),n.d(e,"sequenceEqual",(function(){return Rn})),n.d(e,"share",(function(){return zn})),n.d(e,"shareReplay",(function(){return Bn})),n.d(e,"single",(function(){return Ln})),n.d(e,"skip",(function(){return Gn})),n.d(e,"skipLast",(function(){return Yn})),n.d(e,"skipUntil",(function(){return $n})),n.d(e,"skipWhile",(function(){return tr})),n.d(e,"startWith",(function(){return rr})),n.d(e,"subscribeOn",(function(){return sr})),n.d(e,"switchAll",(function(){return hr})),n.d(e,"switchMap",(function(){return cr})),n.d(e,"switchMapTo",(function(){return pr})),n.d(e,"take",(function(){return Ut})),n.d(e,"takeLast",(function(){return xe})),n.d(e,"takeUntil",(function(){return dr})),n.d(e,"takeWhile",(function(){return yr})),n.d(e,"tap",(function(){return _r})),n.d(e,"throttle",(function(){return Ar})),n.d(e,"throttleTime",(function(){return Fr})),n.d(e,"throwIfEmpty",(function(){return Ct})),n.d(e,"timeInterval",(function(){return Cr})),n.d(e,"timeout",(function(){return Br})),n.d(e,"timeoutWith",(function(){return Nr})),n.d(e,"timestamp",(function(){return Lr})),n.d(e,"toArray",(function(){return Gr})),n.d(e,"window",(function(){return Hr})),n.d(e,"windowCount",(function(){return Kr})),n.d(e,"windowTime",(function(){return Xr})),n.d(e,"windowToggle",(function(){return oi})),n.d(e,"windowWhen",(function(){return ai})),n.d(e,"withLatestFrom",(function(){return li})),n.d(e,"zip",(function(){return bi})),n.d(e,"zipAll",(function(){return vi}));var r=n(0),i=n(2);function o(t){return function(e){return e.lift(new u(t))}}var u=function(){function t(t){this.durationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.durationSelector))},t}(),s=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=void 0;try{e=(0,this.durationSelector)(t)}catch(t){return this.destination.error(t)}var n=Object(i.c)(e,new i.a(this));!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=void 0,n.unsubscribe()),e&&(this.value=void 0,this.hasValue=!1,this.destination.next(t))},e.prototype.notifyNext=function(){this.clearThrottle()},e.prototype.notifyComplete=function(){this.clearThrottle()},e}(i.b),a=n(6),c=n(86);function f(t,e){return void 0===e&&(e=a.a),o((function(){return Object(c.a)(t,e)}))}function l(t){return function(e){return e.lift(new h(t))}}var h=function(){function t(t){this.closingNotifier=t}return t.prototype.call=function(t,e){return e.subscribe(new p(t,this.closingNotifier))},t}(),p=function(t){function e(e,n){var r=t.call(this,e)||this;return r.buffer=[],r.add(Object(i.c)(n,new i.a(r))),r}return r.a(e,t),e.prototype._next=function(t){this.buffer.push(t)},e.prototype.notifyNext=function(){var t=this.buffer;this.buffer=[],this.destination.next(t)},e}(i.b),d=n(1);function b(t,e){return void 0===e&&(e=null),function(n){return n.lift(new v(t,e))}}var v=function(){function t(t,e){this.bufferSize=t,this.startBufferEvery=e,this.subscriberClass=e&&t!==e?m:y}return t.prototype.call=function(t,e){return e.subscribe(new this.subscriberClass(t,this.bufferSize,this.startBufferEvery))},t}(),y=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}(d.a),m=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}(d.a),g=n(9);function x(t){var e=arguments.length,n=a.a;Object(g.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 w(t,r,i,n))}}var w=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 j(t,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))},t}(),_=function(){return function(){this.buffer=[]}}(),j=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 a={subscriber:u,context:s,bufferTimeSpan:n};u.add(s.closeAction=o.schedule(S,n,a))}else{var c={subscriber:u,context:s},f={bufferTimeSpan:n,bufferCreationInterval:r,subscriber:u,scheduler:o};u.add(s.closeAction=o.schedule(A,n,c)),u.add(o.schedule(O,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(S,n,r))}},e.prototype.openContext=function(){var t=new _;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}(d.a);function S(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 O(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(A,n,{subscriber:r,context:o})),this.schedule(t,e))}function A(t){var e=t.subscriber,n=t.context;e.closeContext(n)}var E=n(4),D=n(12),F=n(15);function T(t,e){return function(n){return n.lift(new I(t,e))}}var I=function(){function t(t,e){this.openings=t,this.closingSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new P(t,this.openings,this.closingSelector))},t}(),P=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.closingSelector=r,i.contexts=[],i.add(Object(D.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){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 E.a,r={buffer:[],subscription:n};e.push(r);var i=Object(D.a)(this,t,r);!i||i.closed?this.closeBuffer(r):(i.context=r,this.add(i),n.add(i))},e}(F.a);function M(t){return function(e){return e.lift(new C(t))}}var C=function(){function t(t){this.closingSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new R(t,this.closingSelector))},t}(),R=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=void 0,this.subscribing=!1},e.prototype.notifyNext=function(){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,n=this.buffer;this.buffer&&this.destination.next(n),this.buffer=[];try{e=(0,this.closingSelector)()}catch(t){return this.error(t)}t=new E.a,this.closingSubscription=t,this.add(t),this.subscribing=!0,t.add(Object(i.c)(e,new i.a(this))),this.subscribing=!1},e}(i.b);function k(t){return function(e){var n=new N(t),r=e.lift(n);return n.caught=r}}var N=function(){function t(t){this.selector=t}return t.prototype.call=function(t,e){return e.subscribe(new V(t,this.selector,this.caught))},t}(),V=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();var r=new i.a(this);this.add(r);var o=Object(i.c)(n,r);o!==r&&this.add(o)}},e}(i.b),U=n(50);function z(t){return function(e){return e.lift(new U.a(t))}}var B=n(7),L=n(11);function q(){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(B.a)(t[0])&&(t=t[0].slice()),function(e){return e.lift.call(Object(L.a)([e].concat(t)),new U.a(n))}}var W=n(34);function G(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return e.lift.call(W.a.apply(void 0,[e].concat(t)))}}var H=n(83),J=n(28);function Y(t,e){return Object(J.b)(t,e,1)}function K(t,e){return Y((function(){return t}),e)}function Q(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 X(t,this.predicate,this.source))},t}(),X=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}(d.a);function Z(t){return function(e){return e.lift(new tt(t))}}var tt=function(){function t(t){this.durationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new et(t,this.durationSelector))},t}(),et=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){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(i.c)(e,new i.a(this)))&&!n.closed&&this.add(this.durationSubscription=n)},e.prototype.notifyNext=function(){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=void 0,n.unsubscribe(),this.remove(n)),this.value=void 0,this.hasValue=!1,t.prototype._next.call(this,e)}},e}(i.b);function nt(t,e){return void 0===e&&(e=a.a),function(n){return n.lift(new rt(t,e))}}var rt=function(){function t(t,e){this.dueTime=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new it(t,this.dueTime,this.scheduler))},t}(),it=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(ot,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}(d.a);function ot(t){t.debouncedNext()}function ut(t){return void 0===t&&(t=null),function(e){return e.lift(new st(t))}}var st=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}(d.a);function ct(t){return t instanceof Date&&!isNaN(+t)}var ft=n(17);function lt(t,e){void 0===e&&(e=a.a);var n=ct(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 pt(t,this.delay,this.scheduler))},t}(),pt=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.destination.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 dt(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}},e.prototype._next=function(t){this.scheduleNotification(ft.a.createNext(t))},e.prototype._error=function(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.scheduleNotification(ft.a.createComplete()),this.unsubscribe()},e}(d.a),dt=function(){return function(t,e){this.time=t,this.notification=e}}(),bt=n(3);function vt(t,e){return e?function(n){return new gt(n,e).lift(new yt(t))}:function(e){return e.lift(new yt(t))}}var yt=function(){function t(t){this.delayDurationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new mt(t,this.delayDurationSelector))},t}(),mt=function(t){function e(e,n){var r=t.call(this,e)||this;return r.delayDurationSelector=n,r.completed=!1,r.delayNotifierSubscriptions=[],r.index=0,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){var e=this.index++;try{var n=this.delayDurationSelector(t,e);n&&this.tryDelay(n,t)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){this.completed=!0,this.tryComplete(),this.unsubscribe()},e.prototype.removeSubscription=function(t){t.unsubscribe();var e=this.delayNotifierSubscriptions.indexOf(t);return-1!==e&&this.delayNotifierSubscriptions.splice(e,1),t.outerValue},e.prototype.tryDelay=function(t,e){var n=Object(D.a)(this,t,e);n&&!n.closed&&(this.destination.add(n),this.delayNotifierSubscriptions.push(n))},e.prototype.tryComplete=function(){this.completed&&0===this.delayNotifierSubscriptions.length&&this.destination.complete()},e}(F.a),gt=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 xt(t,this.source))},e}(bt.a),xt=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.unsubscribe(),this.subscribeToSource()},e.prototype.subscribeToSource=function(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))},e}(d.a);function wt(){return function(t){return t.lift(new _t)}}var _t=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new jt(t))},t}(),jt=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}(d.a);function St(t,e){return function(n){return n.lift(new Ot(t,e))}}var Ot=function(){function t(t,e){this.keySelector=t,this.flushes=e}return t.prototype.call=function(t,e){return e.subscribe(new At(t,this.keySelector,this.flushes))},t}(),At=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.keySelector=n,o.values=new Set,r&&o.add(Object(i.c)(r,new i.a(o))),o}return r.a(e,t),e.prototype.notifyNext=function(){this.values.clear()},e.prototype.notifyError=function(t){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}(i.b);function Et(t,e){return function(n){return n.lift(new Dt(t,e))}}var Dt=function(){function t(t,e){this.compare=t,this.keySelector=e}return t.prototype.call=function(t,e){return e.subscribe(new Ft(t,this.compare,this.keySelector))},t}(),Ft=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;try{var n=this.keySelector;e=n?n(t):t}catch(t){return this.destination.error(t)}var r=!1;if(this.hasKey)try{r=(0,this.compare)(this.key,e)}catch(t){return this.destination.error(t)}else this.hasKey=!0;r||(this.key=e,this.destination.next(t))},e}(d.a);function Tt(t,e){return Et((function(n,r){return e?e(n[t],r[t]):n[t]===r[t]}))}var It=n(23),Pt=n(16),Mt=n(27);function Ct(t){return void 0===t&&(t=Nt),function(e){return e.lift(new Rt(t))}}var Rt=function(){function t(t){this.errorFactory=t}return t.prototype.call=function(t,e){return e.subscribe(new kt(t,this.errorFactory))},t}(),kt=function(t){function e(e,n){var r=t.call(this,e)||this;return r.errorFactory=n,r.hasValue=!1,r}return r.a(e,t),e.prototype._next=function(t){this.hasValue=!0,this.destination.next(t)},e.prototype._complete=function(){if(this.hasValue)return this.destination.complete();var t=void 0;try{t=this.errorFactory()}catch(e){t=e}this.destination.error(t)},e}(d.a);function Nt(){return new Mt.a}var Vt=n(10);function Ut(t){return function(e){return 0===t?Object(Vt.b)():e.lift(new zt(t))}}var zt=function(){function t(t){if(this.total=t,this.total<0)throw new It.a}return t.prototype.call=function(t,e){return e.subscribe(new Bt(t,this.total))},t}(),Bt=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}(d.a);function Lt(t,e){if(t<0)throw new It.a;var n=arguments.length>=2;return function(r){return r.pipe(Object(Pt.a)((function(e,n){return n===t})),Ut(1),n?ut(e):Ct((function(){return new It.a})))}}var qt=n(38);function Wt(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return Object(W.a)(e,qt.a.apply(void 0,t))}}function Gt(t,e){return function(n){return n.lift(new Ht(t,e,n))}}var Ht=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 Jt(t,this.predicate,this.thisArg,this.source))},t}(),Jt=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}(d.a);function Yt(){return function(t){return t.lift(new Kt)}}var Kt=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new Qt(t))},t}(),Qt=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(i.c)(t,new i.a(this))))},e.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()},e.prototype.notifyComplete=function(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},e}(i.b),$t=n(8);function Xt(t,e){return e?function(n){return n.pipe(Xt((function(n,r){return Object(L.a)(t(n,r)).pipe(Object($t.a)((function(t,i){return e(n,t,r,i)})))})))}:function(e){return e.lift(new Zt(t))}}var Zt=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new te(t,this.project))},t}(),te=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,n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this.hasSubscription=!0,this._innerSub(e)},e.prototype._innerSub=function(t){var e=new i.a(this),n=this.destination;n.add(e);var r=Object(i.c)(t,e);r!==e&&n.add(r)},e.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()},e.prototype.notifyNext=function(t){this.destination.next(t)},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},e}(i.b);function ee(t,e,n){return void 0===e&&(e=Number.POSITIVE_INFINITY),e=(e||0)<1?Number.POSITIVE_INFINITY:e,function(r){return r.lift(new ne(t,e,n))}}var ne=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 re(t,this.project,this.concurrent,this.scheduler))},t}(),re=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);try{var i=(0,this.project)(t,r);if(this.scheduler){var o={subscriber:this,result:i,value:t,index:r};this.destination.add(this.scheduler.schedule(e.dispatch,0,o))}else this.subscribeToProjection(i,t,r)}catch(t){n.error(t)}}else this.buffer.push(t)}},e.prototype.subscribeToProjection=function(t,e,n){this.active++,this.destination.add(Object(i.c)(t,new i.a(this)))},e.prototype._complete=function(){this.hasCompleted=!0,this.hasCompleted&&0===this.active&&this.destination.complete(),this.unsubscribe()},e.prototype.notifyNext=function(t){this._next(t)},e.prototype.notifyComplete=function(){var t=this.buffer;this.active--,t&&t.length>0&&this._next(t.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()},e}(i.b);function ie(t){return function(e){return e.lift(new oe(t))}}var oe=function(){function t(t){this.callback=t}return t.prototype.call=function(t,e){return e.subscribe(new ue(t,this.callback))},t}(),ue=function(t){function e(e,n){var r=t.call(this,e)||this;return r.add(new E.a(n)),r}return r.a(e,t),e}(d.a);function se(t,e){if("function"!=typeof t)throw new TypeError("predicate is not a function");return function(n){return n.lift(new ae(t,n,!1,e))}}var ae=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 ce(t,this.predicate,this.source,this.yieldIndex,this.thisArg))},t}(),ce=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(),this.unsubscribe()},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}(d.a);function fe(t,e){return function(n){return n.lift(new ae(t,n,!0,e))}}var le=n(14);function he(t,e){var n=arguments.length>=2;return function(r){return r.pipe(t?Object(Pt.a)((function(e,n){return t(e,n,r)})):le.a,Ut(1),n?ut(e):Ct((function(){return new Mt.a})))}}var pe=n(77);function de(){return function(t){return t.lift(new be)}}var be=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new ve(t))},t}(),ve=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.a(e,t),e.prototype._next=function(t){},e}(d.a);function ye(){return function(t){return t.lift(new me)}}var me=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new ge(t))},t}(),ge=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}(d.a);function xe(t){return function(e){return 0===t?Object(Vt.b)():e.lift(new we(t))}}var we=function(){function t(t){if(this.total=t,this.total<0)throw new It.a}return t.prototype.call=function(t,e){return e.subscribe(new _e(t,this.total))},t}(),_e=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}(d.a);function je(t,e){var n=arguments.length>=2;return function(r){return r.pipe(t?Object(Pt.a)((function(e,n){return t(e,n,r)})):le.a,xe(1),n?ut(e):Ct((function(){return new Mt.a})))}}function Se(t){return function(e){return e.lift(new Oe(t))}}var Oe=function(){function t(t){this.value=t}return t.prototype.call=function(t,e){return e.subscribe(new Ae(t,this.value))},t}(),Ae=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}(d.a);function Ee(){return function(t){return t.lift(new De)}}var De=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new Fe(t))},t}(),Fe=function(t){function e(e){return t.call(this,e)||this}return r.a(e,t),e.prototype._next=function(t){this.destination.next(ft.a.createNext(t))},e.prototype._error=function(t){var e=this.destination;e.next(ft.a.createError(t)),e.complete()},e.prototype._complete=function(){var t=this.destination;t.next(ft.a.createComplete()),t.complete()},e}(d.a);function Te(t,e){var n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new Ie(t,e,n))}}var Ie=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 Pe(t,this.accumulator,this.seed,this.hasSeed))},t}(),Pe=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}(d.a),Me=n(41);function Ce(t,e){return arguments.length>=2?function(n){return Object(Me.a)(Te(t,e),xe(1),ut(e))(n)}:function(e){return Object(Me.a)(Te((function(e,n,r){return t(e,n,r+1)})),xe(1))(e)}}function Re(t){return Ce("function"==typeof t?function(e,n){return t(e,n)>0?e:n}:function(t,e){return t>e?t:e})}var ke=n(84);function Ne(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return e.lift.call(ke.a.apply(void 0,[e].concat(t)))}}var Ve=n(51);function Ue(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof e?Object(J.b)((function(){return t}),e,n):("number"==typeof e&&(n=e),Object(J.b)((function(){return t}),n))}function ze(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),function(r){return r.lift(new Be(t,e,n))}}var Be=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 Le(t,this.accumulator,this.seed,this.concurrent))},t}(),Le=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=this.destination,r=void 0;try{r=(0,this.accumulator)(this.acc,t,e)}catch(t){return n.error(t)}this.active++,this._innerSub(r)}else this.buffer.push(t)},e.prototype._innerSub=function(t){var e=new i.a(this),n=this.destination;n.add(e);var r=Object(i.c)(t,e);r!==e&&n.add(r)},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()),this.unsubscribe()},e.prototype.notifyNext=function(t){var e=this.destination;this.acc=t,this.hasValue=!0,e.next(t)},e.prototype.notifyComplete=function(){var t=this.buffer;this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())},e}(i.b);function qe(t){return Ce("function"==typeof t?function(e,n){return t(e,n)<0?e:n}:function(t,e){return t<e?t:e})}var We=n(79);function Ge(t,e){return function(n){var r;if(r="function"==typeof t?t:function(){return t},"function"==typeof e)return n.lift(new He(r,e));var i=Object.create(n,We.b);return i.source=n,i.subjectFactory=r,i}}var He=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}(),Je=n(81);function Ye(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 1===t.length&&Object(B.a)(t[0])&&(t=t[0]),function(e){return e.lift(new Ke(t))}}var Ke=function(){function t(t){this.nextSources=t}return t.prototype.call=function(t,e){return e.subscribe(new Qe(t,this.nextSources))},t}(),Qe=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(){this.subscribeToNextSource()},e.prototype.notifyComplete=function(){this.subscribeToNextSource()},e.prototype._error=function(t){this.subscribeToNextSource(),this.unsubscribe()},e.prototype._complete=function(){this.subscribeToNextSource(),this.unsubscribe()},e.prototype.subscribeToNextSource=function(){var t=this.nextSources.shift();if(t){var e=new i.a(this),n=this.destination;n.add(e);var r=Object(i.c)(t,e);r!==e&&n.add(r)}else this.destination.complete()},e}(i.b);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 Ze(t))},t}(),Ze=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){var e;this.hasPrev?e=[this.prev,t]:this.hasPrev=!0,this.prev=t,e&&this.destination.next(e)},e}(d.a),tn=n(92);function en(t,e){return function(n){return[Object(Pt.a)(t,e)(n),Object(Pt.a)(Object(tn.a)(t,e))(n)]}}function nn(){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($t.a)(rn(t,n))(e)}}function rn(t,e){return function(n){for(var r=n,i=0;i<e;i++){var o=null!=r?r[t[i]]:void 0;if(void 0===o)return;r=o}return r}}var on=n(5);function un(t){return t?Ge((function(){return new on.a}),t):Ge(new on.a)}var sn=n(80);function an(t){return function(e){return Ge(new sn.a(t))(e)}}var cn=n(31);function fn(){return function(t){return Ge(new cn.a)(t)}}var ln=n(48);function hn(t,e,n,r){n&&"function"!=typeof n&&(r=n);var i="function"==typeof n?n:void 0,o=new ln.a(t,e,r);return function(t){return Ge((function(){return o}),i)(t)}}var pn=n(85);function dn(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return 1===t.length&&Object(B.a)(t[0])&&(t=t[0]),e.lift.call(pn.a.apply(void 0,[e].concat(t)))}}function bn(t){return void 0===t&&(t=-1),function(e){return 0===t?Object(Vt.b)():t<0?e.lift(new vn(-1,e)):e.lift(new vn(t-1,e))}}var vn=function(){function t(t,e){this.count=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new yn(t,this.count,this.source))},t}(),yn=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}(d.a);function mn(t){return function(e){return e.lift(new gn(t))}}var gn=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){return e.subscribe(new xn(t,this.notifier,e))},t}(),xn=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(){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)},e.prototype.notifyComplete=function(){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(void 0)}},e.prototype._unsubscribe=function(){var t=this.notifications,e=this.retriesSubscription;t&&(t.unsubscribe(),this.notifications=void 0),e&&(e.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0},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(){var e;this.notifications=new on.a;try{e=(0,this.notifier)(this.notifications)}catch(e){return t.prototype.complete.call(this)}this.retries=e,this.retriesSubscription=Object(i.c)(e,new i.a(this))},e}(i.b);function wn(t){return void 0===t&&(t=-1),function(e){return e.lift(new _n(t,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 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}(d.a);function Sn(t){return function(e){return e.lift(new On(t,e))}}var On=function(){function t(t,e){this.notifier=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new An(t,this.notifier,this.source))},t}(),An=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,o=this.retriesSubscription;if(r)this.errors=void 0,this.retriesSubscription=void 0;else{n=new on.a;try{r=(0,this.notifier)(n)}catch(e){return t.prototype.error.call(this,e)}o=Object(i.c)(r,new i.a(this))}this._unsubscribeAndRecycle(),this.errors=n,this.retries=r,this.retriesSubscription=o,n.next(e)}},e.prototype._unsubscribe=function(){var t=this.errors,e=this.retriesSubscription;t&&(t.unsubscribe(),this.errors=void 0),e&&(e.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0},e.prototype.notifyNext=function(){var t=this._unsubscribe;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=t,this.source.subscribe(this)},e}(i.b),En=n(47);function Dn(t){return function(e){return e.lift(new Fn(t))}}var Fn=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){var n=new Tn(t),r=e.subscribe(n);return r.add(Object(i.c)(this.notifier,new i.a(n))),r},t}(),Tn=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(){this.emitValue()},e.prototype.notifyComplete=function(){this.emitValue()},e.prototype.emitValue=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))},e}(i.b);function In(t,e){return void 0===e&&(e=a.a),function(n){return n.lift(new Pn(t,e))}}var Pn=function(){function t(t,e){this.period=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new Mn(t,this.period,this.scheduler))},t}(),Mn=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(Cn,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}(d.a);function Cn(t){var e=t.subscriber,n=t.period;e.notifyNext(),this.schedule(t,n)}function Rn(t,e){return function(n){return n.lift(new kn(t,e))}}var kn=function(){function t(t,e){this.compareTo=t,this.comparator=e}return t.prototype.call=function(t,e){return e.subscribe(new Nn(t,this.compareTo,this.comparator))},t}(),Nn=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.compareTo=n,i.comparator=r,i._a=[],i._b=[],i._oneComplete=!1,i.destination.add(n.subscribe(new Vn(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,this.unsubscribe()},e.prototype.checkValues=function(){for(var t=this._a,e=this._b,n=this.comparator;t.length>0&&e.length>0;){var r=t.shift(),i=e.shift(),o=!1;try{o=n?n(r,i):r===i}catch(t){this.destination.error(t)}o||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.prototype.completeB=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0},e}(d.a),Vn=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),this.unsubscribe()},e.prototype._complete=function(){this.parent.completeB(),this.unsubscribe()},e}(d.a);function Un(){return new on.a}function zn(){return function(t){return Object(En.a)()(Ge(Un)(t))}}function Bn(t,e,n){var r;return r=t&&"object"==typeof t?t:{bufferSize:t,windowTime:e,refCount:!1,scheduler:n},function(t){return t.lift(function(t){var e,n,r=t.bufferSize,i=void 0===r?Number.POSITIVE_INFINITY:r,o=t.windowTime,u=void 0===o?Number.POSITIVE_INFINITY:o,s=t.refCount,a=t.scheduler,c=0,f=!1,l=!1;return function(t){var r;c++,!e||f?(f=!1,e=new ln.a(i,u,a),r=e.subscribe(this),n=t.subscribe({next:function(t){e.next(t)},error:function(t){f=!0,e.error(t)},complete:function(){l=!0,n=void 0,e.complete()}})):r=e.subscribe(this),this.add((function(){c--,r.unsubscribe(),n&&!l&&s&&0===c&&(n.unsubscribe(),n=void 0,e=void 0)}))}}(r))}}function Ln(t){return function(e){return e.lift(new qn(t,e))}}var qn=function(){function t(t,e){this.predicate=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new Wn(t,this.predicate,this.source))},t}(),Wn=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 Mt.a)},e}(d.a);function Gn(t){return function(e){return e.lift(new Hn(t))}}var Hn=function(){function t(t){this.total=t}return t.prototype.call=function(t,e){return e.subscribe(new Jn(t,this.total))},t}(),Jn=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}(d.a);function Yn(t){return function(e){return e.lift(new Kn(t))}}var Kn=function(){function t(t){if(this._skipCount=t,this._skipCount<0)throw new It.a}return t.prototype.call=function(t,e){return 0===this._skipCount?e.subscribe(new d.a(t)):e.subscribe(new Qn(t,this._skipCount))},t}(),Qn=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}(d.a);function $n(t){return function(e){return e.lift(new Xn(t))}}var Xn=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){return e.subscribe(new Zn(t,this.notifier))},t}(),Zn=function(t){function e(e,n){var r=t.call(this,e)||this;r.hasValue=!1;var o=new i.a(r);r.add(o),r.innerSubscription=o;var u=Object(i.c)(n,o);return u!==o&&(r.add(u),r.innerSubscription=u),r}return r.a(e,t),e.prototype._next=function(e){this.hasValue&&t.prototype._next.call(this,e)},e.prototype.notifyNext=function(){this.hasValue=!0,this.innerSubscription&&this.innerSubscription.unsubscribe()},e.prototype.notifyComplete=function(){},e}(i.b);function tr(t){return function(e){return e.lift(new er(t))}}var er=function(){function t(t){this.predicate=t}return t.prototype.call=function(t,e){return e.subscribe(new nr(t,this.predicate))},t}(),nr=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}(d.a);function rr(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[t.length-1];return Object(g.a)(n)?(t.pop(),function(e){return Object(W.a)(t,e,n)}):function(e){return Object(W.a)(t,e)}}var ir=n(42),or=n(33),ur=function(t){function e(e,n,r){void 0===n&&(n=0),void 0===r&&(r=ir.a);var i=t.call(this)||this;return i.source=e,i.delayTime=n,i.scheduler=r,(!Object(or.a)(n)||n<0)&&(i.delayTime=0),r&&"function"==typeof r.schedule||(i.scheduler=ir.a),i}return r.a(e,t),e.create=function(t,n,r){return void 0===n&&(n=0),void 0===r&&(r=ir.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}(bt.a);function sr(t,e){return void 0===e&&(e=0),function(n){return n.lift(new ar(t,e))}}var ar=function(){function t(t,e){this.scheduler=t,this.delay=e}return t.prototype.call=function(t,e){return new ur(e,this.delay,this.scheduler).subscribe(t)},t}();function cr(t,e){return"function"==typeof e?function(n){return n.pipe(cr((function(n,r){return Object(L.a)(t(n,r)).pipe(Object($t.a)((function(t,i){return e(n,t,r,i)})))})))}:function(e){return e.lift(new fr(t))}}var fr=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new lr(t,this.project))},t}(),lr=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)},e.prototype._innerSub=function(t){var e=this.innerSubscription;e&&e.unsubscribe();var n=new i.a(this),r=this.destination;r.add(n),this.innerSubscription=Object(i.c)(t,n),this.innerSubscription!==n&&r.add(this.innerSubscription)},e.prototype._complete=function(){var e=this.innerSubscription;e&&!e.closed||t.prototype._complete.call(this),this.unsubscribe()},e.prototype._unsubscribe=function(){this.innerSubscription=void 0},e.prototype.notifyComplete=function(){this.innerSubscription=void 0,this.isStopped&&t.prototype._complete.call(this)},e.prototype.notifyNext=function(t){this.destination.next(t)},e}(i.b);function hr(){return cr(le.a)}function pr(t,e){return e?cr((function(){return t}),e):cr((function(){return t}))}function dr(t){return function(e){return e.lift(new br(t))}}var br=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){var n=new vr(t),r=Object(i.c)(this.notifier,new i.a(n));return r&&!n.seenValue?(n.add(r),e.subscribe(n)):n},t}(),vr=function(t){function e(e){var n=t.call(this,e)||this;return n.seenValue=!1,n}return r.a(e,t),e.prototype.notifyNext=function(){this.seenValue=!0,this.complete()},e.prototype.notifyComplete=function(){},e}(i.b);function yr(t,e){return void 0===e&&(e=!1),function(n){return n.lift(new mr(t,e))}}var mr=function(){function t(t,e){this.predicate=t,this.inclusive=e}return t.prototype.call=function(t,e){return e.subscribe(new gr(t,this.predicate,this.inclusive))},t}(),gr=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.predicate=n,i.inclusive=r,i.index=0,i}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):(this.inclusive&&n.next(t),n.complete())},e}(d.a),xr=n(19),wr=n(24);function _r(t,e,n){return function(r){return r.lift(new jr(t,e,n))}}var jr=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 Sr(t,this.nextOrObserver,this.error,this.complete))},t}(),Sr=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o._tapNext=xr.a,o._tapError=xr.a,o._tapComplete=xr.a,o._tapError=r||xr.a,o._tapComplete=i||xr.a,Object(wr.a)(n)?(o._context=o,o._tapNext=n):n&&(o._context=n,o._tapNext=n.next||xr.a,o._tapError=n.error||xr.a,o._tapComplete=n.complete||xr.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}(d.a),Or={leading:!0,trailing:!1};function Ar(t,e){return void 0===e&&(e=Or),function(n){return n.lift(new Er(t,!!e.leading,!!e.trailing))}}var Er=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 Dr(t,this.durationSelector,this.leading,this.trailing))},t}(),Dr=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=void 0},e.prototype.throttle=function(t){var e=this.tryDurationSelector(t);e&&this.add(this._throttled=Object(i.c)(e,new i.a(this)))},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=void 0,e&&this.send()},e.prototype.notifyNext=function(){this.throttlingDone()},e.prototype.notifyComplete=function(){this.throttlingDone()},e}(i.b);function Fr(t,e,n){return void 0===e&&(e=a.a),void 0===n&&(n=Or),function(r){return r.lift(new Tr(t,e,n.leading,n.trailing))}}var Tr=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 Ir(t,this.duration,this.scheduler,this.leading,this.trailing))},t}(),Ir=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(Pr,this.duration,{subscriber:this})),this.leading?this.destination.next(t):this.trailing&&(this._trailingValue=t,this._hasTrailingValue=!0))},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}(d.a);function Pr(t){t.subscriber.clearThrottle()}var Mr=n(52);function Cr(t){return void 0===t&&(t=a.a),function(e){return Object(Mr.a)((function(){return e.pipe(Te((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($t.a)((function(t){var e=t.current,n=t.last,r=t.value;return new Rr(r,e-n)})))}))}}var Rr=function(){return function(t,e){this.value=t,this.interval=e}}(),kr=n(82);function Nr(t,e,n){return void 0===n&&(n=a.a),function(r){var i=ct(t),o=i?+t-n.now():Math.abs(t);return r.lift(new Vr(o,i,e,n))}}var Vr=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 Ur(t,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))},t}(),Ur=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.scheduleTimeout(),u}return r.a(e,t),e.dispatchTimeout=function(t){var e=t.withObservable;t._unsubscribeAndRecycle(),t.add(Object(i.c)(e,new i.a(t)))},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=void 0,this.scheduler=null,this.withObservable=null},e}(i.b),zr=n(49);function Br(t,e){return void 0===e&&(e=a.a),Nr(t,Object(zr.a)(new kr.a),e)}function Lr(t){return void 0===t&&(t=a.a),Object($t.a)((function(e){return new qr(e,t.now())}))}var qr=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 Gr(){return Ce(Wr,[])}function Hr(t){return function(e){return e.lift(new Jr(t))}}var Jr=function(){function t(t){this.windowBoundaries=t}return t.prototype.call=function(t,e){var n=new Yr(t),r=e.subscribe(n);return r.closed||n.add(Object(i.c)(this.windowBoundaries,new i.a(n))),r},t}(),Yr=function(t){function e(e){var n=t.call(this,e)||this;return n.window=new on.a,e.next(n.window),n}return r.a(e,t),e.prototype.notifyNext=function(){this.openWindow()},e.prototype.notifyError=function(t){this._error(t)},e.prototype.notifyComplete=function(){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 on.a;e.next(n)},e}(i.b);function Kr(t,e){return void 0===e&&(e=0),function(n){return n.lift(new Qr(t,e))}}var Qr=function(){function t(t,e){this.windowSize=t,this.startWindowEvery=e}return t.prototype.call=function(t,e){return e.subscribe(new $r(t,this.windowSize,this.startWindowEvery))},t}(),$r=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 on.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 a=new on.a;i.push(a),n.next(a)}},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}(d.a);function Xr(t){var e=a.a,n=null,r=Number.POSITIVE_INFINITY;return Object(g.a)(arguments[3])&&(e=arguments[3]),Object(g.a)(arguments[2])?e=arguments[2]:Object(or.a)(arguments[2])&&(r=Number(arguments[2])),Object(g.a)(arguments[1])?e=arguments[1]:Object(or.a)(arguments[1])&&(n=Number(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}(on.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 a={subscriber:u,window:s,context:null},c={windowTimeSpan:n,windowCreationInterval:r,subscriber:u,scheduler:o};u.add(o.schedule(ii,n,a)),u.add(o.schedule(ri,r,c))}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}(d.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=n.openWindow(),u={action:this,subscription:null},s={subscriber:n,window:o,context:u};u.subscription=r.schedule(ii,e,s),this.add(u.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(D.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,i){if(t===this.openings){var o=void 0;try{o=(0,this.closingSelector)(e)}catch(t){return this.error(t)}var u=new on.a,s=new E.a,a={window:u,subscription:s};this.contexts.push(a);var c=Object(D.a)(this,o,a);c.closed?this.closeWindow(this.contexts.length-1):(c.context=a,s.add(c)),this.destination.next(u)}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}(F.a);function ai(t){return function(e){return e.lift(new ci(t))}}var ci=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){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,r=this.window=new on.a;this.destination.next(r);try{n=(0,this.closingSelector)()}catch(t){return this.destination.error(t),void this.window.error(t)}this.add(this.closingNotification=Object(D.a)(this,n))},e}(F.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 hi(r,n))}}var hi=function(){function t(t,e){this.observables=t,this.project=e}return t.prototype.call=function(t,e){return e.subscribe(new pi(t,this.observables,this.project))},t}(),pi=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 s=n[u];i.add(Object(D.a)(i,s,void 0,u))}return i}return r.a(e,t),e.prototype.notifyNext=function(t,e,n){this.values[n]=e;var r=this.toRespond;if(r.length>0){var i=r.indexOf(n);-1!==i&&r.splice(i,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}(F.a),di=n(53);function bi(){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))}}},function(t,e,n){"use strict";n.r(e),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 a.a})),n.d(e,"ReplaySubject",(function(){return c.a})),n.d(e,"AsyncSubject",(function(){return f.a})),n.d(e,"asap",(function(){return l.a})),n.d(e,"asapScheduler",(function(){return l.b})),n.d(e,"async",(function(){return h.a})),n.d(e,"asyncScheduler",(function(){return h.b})),n.d(e,"queue",(function(){return p.a})),n.d(e,"queueScheduler",(function(){return p.b})),n.d(e,"animationFrame",(function(){return g})),n.d(e,"animationFrameScheduler",(function(){return m})),n.d(e,"VirtualTimeScheduler",(function(){return x})),n.d(e,"VirtualAction",(function(){return w})),n.d(e,"Scheduler",(function(){return _.a})),n.d(e,"Subscription",(function(){return j.a})),n.d(e,"Subscriber",(function(){return S.a})),n.d(e,"Notification",(function(){return O.a})),n.d(e,"NotificationKind",(function(){return O.b})),n.d(e,"pipe",(function(){return A.a})),n.d(e,"noop",(function(){return E.a})),n.d(e,"identity",(function(){return D.a})),n.d(e,"isObservable",(function(){return F})),n.d(e,"ArgumentOutOfRangeError",(function(){return T.a})),n.d(e,"EmptyError",(function(){return I.a})),n.d(e,"ObjectUnsubscribedError",(function(){return P.a})),n.d(e,"UnsubscriptionError",(function(){return M.a})),n.d(e,"TimeoutError",(function(){return C.a})),n.d(e,"bindCallback",(function(){return U})),n.d(e,"bindNodeCallback",(function(){return L})),n.d(e,"combineLatest",(function(){return H.b})),n.d(e,"concat",(function(){return J.a})),n.d(e,"defer",(function(){return Y.a})),n.d(e,"empty",(function(){return K.b})),n.d(e,"forkJoin",(function(){return X})),n.d(e,"from",(function(){return $.a})),n.d(e,"fromEvent",(function(){return et})),n.d(e,"fromEventPattern",(function(){return nt})),n.d(e,"generate",(function(){return rt})),n.d(e,"iif",(function(){return ot})),n.d(e,"interval",(function(){return st})),n.d(e,"merge",(function(){return ct.a})),n.d(e,"never",(function(){return lt})),n.d(e,"of",(function(){return ht.a})),n.d(e,"onErrorResumeNext",(function(){return pt})),n.d(e,"pairs",(function(){return dt})),n.d(e,"partition",(function(){return gt})),n.d(e,"race",(function(){return xt.a})),n.d(e,"range",(function(){return wt})),n.d(e,"throwError",(function(){return jt.a})),n.d(e,"timer",(function(){return St.a})),n.d(e,"using",(function(){return Ot})),n.d(e,"zip",(function(){return At.b})),n.d(e,"scheduled",(function(){return Et.a})),n.d(e,"EMPTY",(function(){return K.a})),n.d(e,"NEVER",(function(){return ft})),n.d(e,"config",(function(){return Dt.a}));var r=n(3),i=n(79),o=n(77),u=n(21),s=n(5),a=n(80),c=n(48),f=n(31),l=n(42),h=n(6),p=n(63),d=n(0),b=n(32),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}(b.a),y=n(30),m=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}(y.a))(v),g=m,x=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[0])&&e.delay<=r&&(n.shift(),this.frame=e.delay,!(t=e.execute(e.state,e.delay))););if(t){for(;e=n.shift();)e.unsubscribe();throw t}},e.frameTimeFactor=10,e}(y.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}(b.a),_=n(64),j=n(4),S=n(1),O=n(17),A=n(41),E=n(19),D=n(14);function F(t){return!!t&&(t instanceof r.a||"function"==typeof t.lift&&"function"==typeof t.subscribe)}var T=n(23),I=n(27),P=n(22),M=n(44),C=n(82),R=n(8),k=n(55),N=n(7),V=n(9);function U(t,e,n){if(e){if(!Object(V.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(N.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(z,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){Object(k.a)(o)?o.error(t):console.warn(t)}}return o.subscribe(r)}))}}function z(t){var e=this,n=t.args,r=t.subscriber,i=t.params,o=i.callbackFunc,u=i.context,s=i.scheduler,a=i.subject;if(!a){a=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(B,0,{value:r,subject:a}))}]))}catch(t){a.error(t)}}this.add(a.subscribe(r))}function B(t){var e=t.value,n=t.subject;n.next(e),n.complete()}function L(t,e,n){if(e){if(!Object(V.a)(e))return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return L(t,n).apply(void 0,r).pipe(Object(R.a)((function(t){return Object(N.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(q,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){Object(k.a)(u)?u.error(t):console.warn(t)}}return u.subscribe(r)}))}}function q(t){var e=this,n=t.params,r=t.subscriber,i=t.context,o=n.callbackFunc,u=n.args,s=n.scheduler,a=n.subject;if(!a){a=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(G,0,{err:r,subject:a}));else{var i=t.length<=1?t[0]:t;e.add(s.schedule(W,0,{value:i,subject:a}))}}]))}catch(t){this.add(s.schedule(G,0,{err:t,subject:a}))}}this.add(a.subscribe(r))}function W(t){var e=t.value,n=t.subject;n.next(e),n.complete()}function G(t){var e=t.err;t.subject.error(e)}var H=n(50),J=n(34),Y=n(52),K=n(10),Q=n(54),$=n(11);function X(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(1===t.length){var n=t[0];if(Object(N.a)(n))return Z(n,null);if(Object(Q.a)(n)&&Object.getPrototypeOf(n)===Object.prototype){var r=Object.keys(n);return Z(r.map((function(t){return n[t]})),r)}}if("function"==typeof t[t.length-1]){var i=t.pop();return Z(t=1===t.length&&Object(N.a)(t[0])?t[0]:t,null).pipe(Object(R.a)((function(t){return i.apply(void 0,t)})))}return Z(t,null)}function Z(t,e){return new r.a((function(n){var r=t.length;if(0!==r)for(var i=new Array(r),o=0,u=0,s=function(s){var a=Object($.a)(t[s]),c=!1;n.add(a.subscribe({next:function(t){c||(c=!0,u++),i[s]=t},error:function(t){return n.error(t)},complete:function(){++o!==r&&c||(u===r&&n.next(e?e.reduce((function(t,e,n){return t[e]=i[n],t}),{}):i),n.complete())}}))},a=0;a<r;a++)s(a);else n.complete()}))}var tt=n(24);function et(t,e,n,i){return Object(tt.a)(n)&&(i=n,n=void 0),i?et(t,e,n).pipe(Object(R.a)((function(t){return Object(N.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 a=e;e.on(n,r),u=function(){return a.off(n,r)}}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(e)){var c=e;e.addListener(n,r),u=function(){return c.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 nt(t,e,n){return n?nt(t,e).pipe(Object(R.a)((function(t){return Object(N.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(tt.a)(e))return function(){return e(i,r)}}))}function rt(t,e,n,i,o){var u,s;if(1==arguments.length){var a=t;s=a.initialState,e=a.condition,n=a.iterate,u=a.resultSelector||D.a,o=a.scheduler}else void 0===i||Object(V.a)(i)?(s=t,u=D.a,o=i):(s=t,u=i);return new r.a((function(t){var r=s;if(o)return o.schedule(it,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 a=void 0;try{a=u(r)}catch(e){return void t.error(e)}if(t.next(a),t.closed)break;try{r=n(r)}catch(e){return void t.error(e)}}}))}function it(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 ot(t,e,n){return void 0===e&&(e=K.a),void 0===n&&(n=K.a),Object(Y.a)((function(){return t()?e:n}))}var ut=n(33);function st(t,e){return void 0===t&&(t=0),void 0===e&&(e=h.a),(!Object(ut.a)(t)||t<0)&&(t=0),e&&"function"==typeof e.schedule||(e=h.a),new r.a((function(n){return n.add(e.schedule(at,t,{subscriber:n,counter:0,period:t})),n}))}function at(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 ct=n(84),ft=new r.a(E.a);function lt(){return ft}var ht=n(38);function pt(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(0===t.length)return K.a;var n=t[0],i=t.slice(1);return 1===t.length&&Object(N.a)(n)?pt.apply(void 0,n):new r.a((function(t){var e=function(){return t.add(pt.apply(void 0,i).subscribe(t))};return Object($.a)(n).subscribe({next:function(e){t.next(e)},error:e,complete:e})}))}function dt(t,e){return e?new r.a((function(n){var r=Object.keys(t),i=new j.a;return i.add(e.schedule(bt,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 bt(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 vt=n(92),yt=n(35),mt=n(16);function gt(t,e,n){return[Object(mt.a)(e,n)(new r.a(Object(yt.a)(t))),Object(mt.a)(Object(vt.a)(e,n))(new r.a(Object(yt.a)(t)))]}var xt=n(85);function wt(t,e,n){return void 0===t&&(t=0),new r.a((function(r){void 0===e&&(e=t,t=0);var i=0,o=t;if(n)return n.schedule(_t,0,{index:i,count:e,start:t,subscriber:r});for(;;){if(i++>=e){r.complete();break}if(r.next(o++),r.closed)break}}))}function _t(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 jt=n(49),St=n(86);function Ot(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($.a)(i):K.a).subscribe(n);return function(){o.unsubscribe(),r&&r.unsubscribe()}}))}var At=n(53),Et=n(87),Dt=n(13)},function(t,e,n){"use strict";n.r(e),n.d(e,"v1",(function(){return b})),n.d(e,"v3",(function(){return O})),n.d(e,"v4",(function(){return A})),n.d(e,"v5",(function(){return F})),n.d(e,"NIL",(function(){return T})),n.d(e,"version",(function(){return I})),n.d(e,"validate",(function(){return s})),n.d(e,"stringify",(function(){return h})),n.d(e,"parse",(function(){return v}));var r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),i=new Uint8Array(16);function o(){if(!r)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(i)}var u=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var s=function(t){return"string"==typeof t&&u.test(t)},a=[],c=0;c<256;++c)a.push((c+256).toString(16).substr(1));var f,l,h=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(a[t[e+0]]+a[t[e+1]]+a[t[e+2]]+a[t[e+3]]+"-"+a[t[e+4]]+a[t[e+5]]+"-"+a[t[e+6]]+a[t[e+7]]+"-"+a[t[e+8]]+a[t[e+9]]+"-"+a[t[e+10]]+a[t[e+11]]+a[t[e+12]]+a[t[e+13]]+a[t[e+14]]+a[t[e+15]]).toLowerCase();if(!s(n))throw TypeError("Stringified UUID is invalid");return n},p=0,d=0;var b=function(t,e,n){var r=e&&n||0,i=e||new Array(16),u=(t=t||{}).node||f,s=void 0!==t.clockseq?t.clockseq:l;if(null==u||null==s){var a=t.random||(t.rng||o)();null==u&&(u=f=[1|a[0],a[1],a[2],a[3],a[4],a[5]]),null==s&&(s=l=16383&(a[6]<<8|a[7]))}var c=void 0!==t.msecs?t.msecs:Date.now(),b=void 0!==t.nsecs?t.nsecs:d+1,v=c-p+(b-d)/1e4;if(v<0&&void 0===t.clockseq&&(s=s+1&16383),(v<0||c>p)&&void 0===t.nsecs&&(b=0),b>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");p=c,d=b,l=s;var y=(1e4*(268435455&(c+=122192928e5))+b)%4294967296;i[r++]=y>>>24&255,i[r++]=y>>>16&255,i[r++]=y>>>8&255,i[r++]=255&y;var m=c/4294967296*1e4&268435455;i[r++]=m>>>8&255,i[r++]=255&m,i[r++]=m>>>24&15|16,i[r++]=m>>>16&255,i[r++]=s>>>8|128,i[r++]=255&s;for(var g=0;g<6;++g)i[r+g]=u[g];return e||h(i)};var v=function(t){if(!s(t))throw TypeError("Invalid UUID");var e,n=new Uint8Array(16);return n[0]=(e=parseInt(t.slice(0,8),16))>>>24,n[1]=e>>>16&255,n[2]=e>>>8&255,n[3]=255&e,n[4]=(e=parseInt(t.slice(9,13),16))>>>8,n[5]=255&e,n[6]=(e=parseInt(t.slice(14,18),16))>>>8,n[7]=255&e,n[8]=(e=parseInt(t.slice(19,23),16))>>>8,n[9]=255&e,n[10]=(e=parseInt(t.slice(24,36),16))/1099511627776&255,n[11]=e/4294967296&255,n[12]=e>>>24&255,n[13]=e>>>16&255,n[14]=e>>>8&255,n[15]=255&e,n};var y=function(t,e,n){function r(t,r,i,o){if("string"==typeof t&&(t=function(t){t=unescape(encodeURIComponent(t));for(var e=[],n=0;n<t.length;++n)e.push(t.charCodeAt(n));return e}(t)),"string"==typeof r&&(r=v(r)),16!==r.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var u=new Uint8Array(16+t.length);if(u.set(r),u.set(t,r.length),(u=n(u))[6]=15&u[6]|e,u[8]=63&u[8]|128,i){o=o||0;for(var s=0;s<16;++s)i[o+s]=u[s];return i}return h(u)}try{r.name=t}catch(t){}return r.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",r.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",r};function m(t){return 14+(t+64>>>9<<4)+1}function g(t,e){var n=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(n>>16)<<16|65535&n}function x(t,e,n,r,i,o){return g((u=g(g(e,t),g(r,o)))<<(s=i)|u>>>32-s,n);var u,s}function w(t,e,n,r,i,o,u){return x(e&n|~e&r,t,e,i,o,u)}function _(t,e,n,r,i,o,u){return x(e&r|n&~r,t,e,i,o,u)}function j(t,e,n,r,i,o,u){return x(e^n^r,t,e,i,o,u)}function S(t,e,n,r,i,o,u){return x(n^(e|~r),t,e,i,o,u)}var O=y("v3",48,(function(t){if("string"==typeof t){var e=unescape(encodeURIComponent(t));t=new Uint8Array(e.length);for(var n=0;n<e.length;++n)t[n]=e.charCodeAt(n)}return function(t){for(var e=[],n=32*t.length,r=0;r<n;r+=8){var i=t[r>>5]>>>r%32&255,o=parseInt("0123456789abcdef".charAt(i>>>4&15)+"0123456789abcdef".charAt(15&i),16);e.push(o)}return e}(function(t,e){t[e>>5]|=128<<e%32,t[m(e)-1]=e;for(var n=1732584193,r=-271733879,i=-1732584194,o=271733878,u=0;u<t.length;u+=16){var s=n,a=r,c=i,f=o;n=w(n,r,i,o,t[u],7,-680876936),o=w(o,n,r,i,t[u+1],12,-389564586),i=w(i,o,n,r,t[u+2],17,606105819),r=w(r,i,o,n,t[u+3],22,-1044525330),n=w(n,r,i,o,t[u+4],7,-176418897),o=w(o,n,r,i,t[u+5],12,1200080426),i=w(i,o,n,r,t[u+6],17,-1473231341),r=w(r,i,o,n,t[u+7],22,-45705983),n=w(n,r,i,o,t[u+8],7,1770035416),o=w(o,n,r,i,t[u+9],12,-1958414417),i=w(i,o,n,r,t[u+10],17,-42063),r=w(r,i,o,n,t[u+11],22,-1990404162),n=w(n,r,i,o,t[u+12],7,1804603682),o=w(o,n,r,i,t[u+13],12,-40341101),i=w(i,o,n,r,t[u+14],17,-1502002290),r=w(r,i,o,n,t[u+15],22,1236535329),n=_(n,r,i,o,t[u+1],5,-165796510),o=_(o,n,r,i,t[u+6],9,-1069501632),i=_(i,o,n,r,t[u+11],14,643717713),r=_(r,i,o,n,t[u],20,-373897302),n=_(n,r,i,o,t[u+5],5,-701558691),o=_(o,n,r,i,t[u+10],9,38016083),i=_(i,o,n,r,t[u+15],14,-660478335),r=_(r,i,o,n,t[u+4],20,-405537848),n=_(n,r,i,o,t[u+9],5,568446438),o=_(o,n,r,i,t[u+14],9,-1019803690),i=_(i,o,n,r,t[u+3],14,-187363961),r=_(r,i,o,n,t[u+8],20,1163531501),n=_(n,r,i,o,t[u+13],5,-1444681467),o=_(o,n,r,i,t[u+2],9,-51403784),i=_(i,o,n,r,t[u+7],14,1735328473),r=_(r,i,o,n,t[u+12],20,-1926607734),n=j(n,r,i,o,t[u+5],4,-378558),o=j(o,n,r,i,t[u+8],11,-2022574463),i=j(i,o,n,r,t[u+11],16,1839030562),r=j(r,i,o,n,t[u+14],23,-35309556),n=j(n,r,i,o,t[u+1],4,-1530992060),o=j(o,n,r,i,t[u+4],11,1272893353),i=j(i,o,n,r,t[u+7],16,-155497632),r=j(r,i,o,n,t[u+10],23,-1094730640),n=j(n,r,i,o,t[u+13],4,681279174),o=j(o,n,r,i,t[u],11,-358537222),i=j(i,o,n,r,t[u+3],16,-722521979),r=j(r,i,o,n,t[u+6],23,76029189),n=j(n,r,i,o,t[u+9],4,-640364487),o=j(o,n,r,i,t[u+12],11,-421815835),i=j(i,o,n,r,t[u+15],16,530742520),r=j(r,i,o,n,t[u+2],23,-995338651),n=S(n,r,i,o,t[u],6,-198630844),o=S(o,n,r,i,t[u+7],10,1126891415),i=S(i,o,n,r,t[u+14],15,-1416354905),r=S(r,i,o,n,t[u+5],21,-57434055),n=S(n,r,i,o,t[u+12],6,1700485571),o=S(o,n,r,i,t[u+3],10,-1894986606),i=S(i,o,n,r,t[u+10],15,-1051523),r=S(r,i,o,n,t[u+1],21,-2054922799),n=S(n,r,i,o,t[u+8],6,1873313359),o=S(o,n,r,i,t[u+15],10,-30611744),i=S(i,o,n,r,t[u+6],15,-1560198380),r=S(r,i,o,n,t[u+13],21,1309151649),n=S(n,r,i,o,t[u+4],6,-145523070),o=S(o,n,r,i,t[u+11],10,-1120210379),i=S(i,o,n,r,t[u+2],15,718787259),r=S(r,i,o,n,t[u+9],21,-343485551),n=g(n,s),r=g(r,a),i=g(i,c),o=g(o,f)}return[n,r,i,o]}(function(t){if(0===t.length)return[];for(var e=8*t.length,n=new Uint32Array(m(e)),r=0;r<e;r+=8)n[r>>5]|=(255&t[r/8])<<r%32;return n}(t),8*t.length))}));var A=function(t,e,n){var r=(t=t||{}).random||(t.rng||o)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,e){n=n||0;for(var i=0;i<16;++i)e[n+i]=r[i];return e}return h(r)};function E(t,e,n,r){switch(t){case 0:return e&n^~e&r;case 1:return e^n^r;case 2:return e&n^e&r^n&r;case 3:return e^n^r}}function D(t,e){return t<<e|t>>>32-e}var F=y("v5",80,(function(t){var e=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof t){var r=unescape(encodeURIComponent(t));t=[];for(var i=0;i<r.length;++i)t.push(r.charCodeAt(i))}else Array.isArray(t)||(t=Array.prototype.slice.call(t));t.push(128);for(var o=t.length/4+2,u=Math.ceil(o/16),s=new Array(u),a=0;a<u;++a){for(var c=new Uint32Array(16),f=0;f<16;++f)c[f]=t[64*a+4*f]<<24|t[64*a+4*f+1]<<16|t[64*a+4*f+2]<<8|t[64*a+4*f+3];s[a]=c}s[u-1][14]=8*(t.length-1)/Math.pow(2,32),s[u-1][14]=Math.floor(s[u-1][14]),s[u-1][15]=8*(t.length-1)&4294967295;for(var l=0;l<u;++l){for(var h=new Uint32Array(80),p=0;p<16;++p)h[p]=s[l][p];for(var d=16;d<80;++d)h[d]=D(h[d-3]^h[d-8]^h[d-14]^h[d-16],1);for(var b=n[0],v=n[1],y=n[2],m=n[3],g=n[4],x=0;x<80;++x){var w=Math.floor(x/20),_=D(b,5)+E(w,v,y,m)+g+e[w]+h[x]>>>0;g=m,m=y,y=D(v,30)>>>0,v=b,b=_}n[0]=n[0]+b>>>0,n[1]=n[1]+v>>>0,n[2]=n[2]+y>>>0,n[3]=n[3]+m>>>0,n[4]=n[4]+g>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]})),T="00000000-0000-0000-0000-000000000000";var I=function(t){if(!s(t))throw TypeError("Invalid UUID");return parseInt(t.substr(14,1),16)}}])}));
\No newline at end of file