@progress/kendo-angular-sortable 4.0.6 → 5.0.0-next.202203231107
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{dist/es2015/binding.directive.d.ts → binding.directive.d.ts} +4 -1
- package/bundles/kendo-angular-sortable.umd.js +5 -0
- package/{dist/es2015/data-event-args.interface.d.ts → data-event-args.interface.d.ts} +0 -0
- package/{dist/es2015/data-events.d.ts → data-events.d.ts} +0 -0
- package/{dist/es2015/draggable-event.d.ts → draggable-event.d.ts} +0 -0
- package/{dist/es2015/draggable.directive.d.ts → draggable.directive.d.ts} +11 -4
- package/{dist/es2015 → esm2015}/binding.directive.js +16 -18
- package/{dist/es2015 → esm2015}/data-event-args.interface.js +1 -0
- package/{dist/es2015 → esm2015}/data-events.js +0 -0
- package/{dist/es2015 → esm2015}/draggable-event.js +0 -0
- package/esm2015/draggable.directive.js +71 -0
- package/esm2015/item-template.directive.js +39 -0
- package/{dist/es/index.js → esm2015/kendo-angular-sortable.js} +0 -0
- package/{dist/es → esm2015}/main.js +0 -0
- package/{dist/es2015 → esm2015}/navigate-event.js +0 -0
- package/{dist/es2015 → esm2015}/package-metadata.js +1 -1
- package/{dist/es2015 → esm2015}/preventable-event.js +0 -0
- package/esm2015/sortable-container.js +16 -0
- package/{dist/es2015 → esm2015}/sortable-event-args.interface.js +1 -0
- package/{dist/es2015 → esm2015}/sortable-events.js +0 -0
- package/{dist/es2015 → esm2015}/sortable.component.js +162 -179
- package/{dist/es2015 → esm2015}/sortable.module.js +23 -12
- package/{dist/es2015 → esm2015}/sortable.service.js +9 -11
- package/{dist/es2015 → esm2015}/util.js +0 -3
- package/{dist/fesm2015/index.js → fesm2015/kendo-angular-sortable.js} +406 -407
- package/{dist/es2015/item-template.directive.d.ts → item-template.directive.d.ts} +5 -0
- package/{dist/es2015/index.d.ts → kendo-angular-sortable.d.ts} +1 -0
- package/{dist/es2015/main.d.ts → main.d.ts} +0 -0
- package/{dist/es2015/navigate-event.d.ts → navigate-event.d.ts} +0 -0
- package/{dist/es2015/package-metadata.d.ts → package-metadata.d.ts} +0 -0
- package/package.json +30 -90
- package/{dist/es2015/preventable-event.d.ts → preventable-event.d.ts} +0 -0
- package/schematics/ngAdd/index.js +5 -2
- package/schematics/ngAdd/index.js.map +1 -1
- package/{dist/es2015/sortable-container.d.ts → sortable-container.d.ts} +3 -0
- package/{dist/es2015/sortable-event-args.interface.d.ts → sortable-event-args.interface.d.ts} +0 -0
- package/{dist/es2015/sortable-events.d.ts → sortable-events.d.ts} +0 -0
- package/{dist/es2015/sortable.component.d.ts → sortable.component.d.ts} +13 -8
- package/{dist/es2015/sortable.module.d.ts → sortable.module.d.ts} +9 -0
- package/{dist/es2015/sortable.service.d.ts → sortable.service.d.ts} +5 -1
- package/{dist/es2015/util.d.ts → util.d.ts} +0 -0
- package/dist/cdn/js/kendo-angular-sortable.js +0 -20
- package/dist/cdn/main.js +0 -5
- package/dist/es/binding.directive.js +0 -177
- package/dist/es/data-event-args.interface.js +0 -4
- package/dist/es/data-events.js +0 -54
- package/dist/es/draggable-event.js +0 -23
- package/dist/es/draggable.directive.js +0 -88
- package/dist/es/item-template.directive.js +0 -39
- package/dist/es/navigate-event.js +0 -22
- package/dist/es/package-metadata.js +0 -15
- package/dist/es/preventable-event.js +0 -34
- package/dist/es/sortable-container.js +0 -18
- package/dist/es/sortable-event-args.interface.js +0 -4
- package/dist/es/sortable-events.js +0 -54
- package/dist/es/sortable.component.js +0 -1075
- package/dist/es/sortable.module.js +0 -64
- package/dist/es/sortable.service.js +0 -236
- package/dist/es/util.js +0 -144
- package/dist/es2015/draggable.directive.js +0 -75
- package/dist/es2015/index.js +0 -8
- package/dist/es2015/index.metadata.json +0 -1
- package/dist/es2015/item-template.directive.js +0 -37
- package/dist/es2015/main.js +0 -17
- package/dist/es2015/sortable-container.js +0 -15
- package/dist/fesm5/index.js +0 -1944
- package/dist/npm/binding.directive.js +0 -179
- package/dist/npm/data-event-args.interface.js +0 -6
- package/dist/npm/data-events.js +0 -56
- package/dist/npm/draggable-event.js +0 -25
- package/dist/npm/draggable.directive.js +0 -90
- package/dist/npm/index.js +0 -11
- package/dist/npm/item-template.directive.js +0 -41
- package/dist/npm/main.js +0 -34
- package/dist/npm/navigate-event.js +0 -24
- package/dist/npm/package-metadata.js +0 -17
- package/dist/npm/preventable-event.js +0 -36
- package/dist/npm/sortable-container.js +0 -20
- package/dist/npm/sortable-event-args.interface.js +0 -6
- package/dist/npm/sortable-events.js +0 -56
- package/dist/npm/sortable.component.js +0 -1077
- package/dist/npm/sortable.module.js +0 -66
- package/dist/npm/sortable.service.js +0 -238
- package/dist/npm/util.js +0 -147
- package/dist/systemjs/kendo-angular-sortable.js +0 -5
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("@angular/core"),require("@progress/kendo-angular-common"),require("rxjs"),require("@progress/kendo-angular-l10n"),require("@progress/kendo-licensing"),require("@angular/common")):"function"==typeof define&&define.amd?define([,,,,,],e):"object"==typeof exports?exports.KendoAngularSortable=e(require("@angular/core"),require("@progress/kendo-angular-common"),require("rxjs"),require("@progress/kendo-angular-l10n"),require("@progress/kendo-licensing"),require("@angular/common")):t.KendoAngularSortable=e(t.ng.core,t.KendoAngularCommon,t.rxjs,t.KendoAngularL10N,t.KendoLicensing,t.ng.common)}(window,(function(t,e,n,r,i,o){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=17)}([function(t,e,n){"use strict";n.r(e),n.d(e,"__extends",(function(){return i})),n.d(e,"__assign",(function(){return o})),n.d(e,"__rest",(function(){return s})),n.d(e,"__decorate",(function(){return u})),n.d(e,"__param",(function(){return c})),n.d(e,"__metadata",(function(){return a})),n.d(e,"__awaiter",(function(){return l})),n.d(e,"__generator",(function(){return h})),n.d(e,"__createBinding",(function(){return f})),n.d(e,"__exportStar",(function(){return p})),n.d(e,"__values",(function(){return d})),n.d(e,"__read",(function(){return b})),n.d(e,"__spread",(function(){return v})),n.d(e,"__spreadArrays",(function(){return y})),n.d(e,"__await",(function(){return m})),n.d(e,"__asyncGenerator",(function(){return _})),n.d(e,"__asyncDelegator",(function(){return g})),n.d(e,"__asyncValues",(function(){return x})),n.d(e,"__makeTemplateObject",(function(){return w})),n.d(e,"__importStar",(function(){return S})),n.d(e,"__importDefault",(function(){return I})),n.d(e,"__classPrivateFieldGet",(function(){return E})),n.d(e,"__classPrivateFieldSet",(function(){return D}));
|
|
6
|
-
/*! *****************************************************************************
|
|
7
|
-
Copyright (c) Microsoft Corporation.
|
|
8
|
-
|
|
9
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
10
|
-
purpose with or without fee is hereby granted.
|
|
11
|
-
|
|
12
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
13
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
14
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
15
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
16
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
17
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
18
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
19
|
-
***************************************************************************** */
|
|
20
|
-
var 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)}var o=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)};function s(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}function u(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var u=t.length-1;u>=0;u--)(i=t[u])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s}function c(t,e){return function(n,r){e(n,r,t)}}function a(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function l(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(t){o(t)}}function u(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,u)}c((r=r.apply(t,e||[])).next())}))}function h(t,e){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function u(o){return function(u){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)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 s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=s.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}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,u])}}}function f(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}function p(t,e){for(var n in t)"default"===n||e.hasOwnProperty(n)||(e[n]=t[n])}function d(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function b(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function v(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(b(arguments[e]));return t}function y(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],s=0,u=o.length;s<u;s++,i++)r[i]=o[s];return r}function m(t){return this instanceof m?(this.v=t,this):new m(t)}function _(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(t,e||[]),o=[];return r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r;function s(t){i[t]&&(r[t]=function(e){return new Promise((function(n,r){o.push([t,e,n,r])>1||u(t,e)}))})}function u(t,e){try{(n=i[t](e)).value instanceof m?Promise.resolve(n.value.v).then(c,a):l(o[0][2],n)}catch(t){l(o[0][3],t)}var n}function c(t){u("next",t)}function a(t){u("throw",t)}function l(t,e){t(e),o.shift(),o.length&&u(o[0][0],o[0][1])}}function g(t){var e,n;return e={},r("next"),r("throw",(function(t){throw t})),r("return"),e[Symbol.iterator]=function(){return this},e;function r(r,i){e[r]=t[r]?function(e){return(n=!n)?{value:m(t[r](e)),done:"return"===r}:i?i(e):e}:i}}function x(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=d(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise((function(r,i){(function(t,e,n,r){Promise.resolve(r).then((function(e){t({value:e,done:n})}),e)})(r,i,(e=t[n](e)).done,e.value)}))}}}function w(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function S(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}function I(t){return t&&t.__esModule?t:{default:t}}function E(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function D(t,e,n){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,n),n}},function(e,n){e.exports=t},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),o=function(){function t(t){this.templateRef=t}return t=r.__decorate([i.Directive({selector:"[kendoSortableItemTemplate]"}),r.__metadata("design:paramtypes",[i.TemplateRef])],t)}();e.ItemTemplateDirective=o;var s=function(){function t(t){this.templateRef=t}return t=r.__decorate([i.Directive({selector:"[kendoSortablePlaceholderTemplate]"}),r.__metadata("design:paramtypes",[i.TemplateRef])],t)}();e.PlaceholderTemplateDirective=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(){this.prevented=!1}return t.prototype.preventDefault=function(){this.prevented=!0},t.prototype.isDefaultPrevented=function(){return this.prevented},t}();e.PreventableEvent=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(6),s=n(11),u=n(10),c=n(9),a=function(t){var e=t.originalEvent.target;return e.hasAttribute("data-sortable-item")||!(s.isFocusable(e)||s.widgetTarget(e))},l=function(){function t(t){var e=this;this.ngZone=t,this.activeDraggable=null,this.originDraggable=null,this.targetSortable=null,this.lastDraggable=null,this.onPressSubject=new u.Subject,this.onDragSubject=new u.Subject,this.onReleaseSubject=new u.Subject,this.source=null,this._target=null,this.sortableCounter=0,this.sortableRegister={},o.isDocumentAvailable()&&(this.subscriptions=this.onPressSubject.pipe(c.filter(a),c.tap((function(t){e.targetSortable=e.getSortableComponentFromTouch(t)})),c.filter((function(t){return Boolean(e.targetSortable)})),c.tap((function(t){e.onReleaseSubject.pipe(c.take(1)).subscribe((function(t){return e.release(t)})),e.pressArgs=t,t.isTouch&&t.originalEvent.preventDefault()})),c.switchMap((function(t){return e.onDragSubject.pipe(c.filter((function(t){return Boolean(e.targetSortable)})),c.tap((function(t){return e.drag(t)})))}))).subscribe())}return Object.defineProperty(t.prototype,"target",{get:function(){return this._target},set:function(t){this._target=t},enumerable:!0,configurable:!0}),t.prototype.onPress=function(t){this.onPressSubject.next(t)},t.prototype.onDrag=function(t){this.onDragSubject.next(t)},t.prototype.onRelease=function(t){this.onReleaseSubject.next(t)},t.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe()},t.prototype.registerComponent=function(t){var e=this.sortableCounter.toString();return this.sortableRegister[e]=t,this.sortableCounter++,e},t.prototype.unregisterComponent=function(t){this.sortableRegister[t]=null},t.prototype.setSource=function(t){this.source=t},t.prototype.getSource=function(){return this.source},t.prototype.getSortableComponentFromTouch=function(t){if(!o.isDocumentAvailable())return{component:void 0,index:void 0};for(var e=document.elementFromPoint(t.clientX,t.clientY);e;){var n=e.getAttribute("data-sortable-id"),r=e.getAttribute("data-sortable-index");if(n){var i=this.sortableRegister[n];if(i)return{component:i,index:parseInt(r,10)}}e=e.parentElement}},t.prototype.start=function(){var t=this.pressArgs;if(t){this.pressArgs=null;var e=s.draggableFromEvent(t,this.targetSortable.component);if(this.targetSortable.component.startDrag({target:e,originalEvent:t}))return this.targetSortable=null,!0}},t.prototype.release=function(t){var e=this;this.source&&this.ngZone.run((function(){if(e.targetSortable){var n=s.draggableFromEvent(t,e.targetSortable.component);e.source.endDrag({target:n,originalEvent:t})}e.source.positionHintFromEvent(null),e.source.markForCheck()})),this.targetSortable=null,this.pressArgs=null},t.prototype.drag=function(t){var e=this;this.ngZone.run((function(){if(!e.start()){e.source.positionHintFromEvent(t);var n=e.getSortableComponentFromTouch(t);if((!n||n&&n.component!==e.target)&&(e.target?e.target.leave({target:void 0,originalEvent:t}):e.source!==e.target&&e.source.leave({target:void 0,originalEvent:t})),n&&n.component){var r=s.draggableFromEvent(t,n.component);n.component.drag({target:r,originalEvent:t})}e.source.markForCheck()}}))},t=r.__decorate([i.Injectable(),r.__metadata("design:paramtypes",[i.NgZone])],t)}();e.SortableService=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(10),s=n(6),u=n(11),c=n(9),a=n(18),l=n(19),h=n(20),f=n(4),p=n(7),d=n(8),b=n(2),v=n(12),y=n(13),m=n(14),_=n(21),g=function(){function t(t,e,n,r,s){this.ngZone=t,this.localization=e,this.changeDetector=n,this.tabIndex=null,this.navigable=!1,this.animation=!1,this.disabledIndexes=[],this.zone=void 0,this.acceptZones=void 0,this.itemStyle={},this.emptyItemStyle=void 0,this.activeItemStyle=void 0,this.disabledItemStyle=void 0,this.itemClass="",this.activeItemClass=null,this.emptyItemClass=null,this.disabledItemClass=null,this.emptyText="Empty",this.defaultTemplateRef=null,this.itemTemplateDirectiveRef=null,this.placeholderTemplateDirectiveRef=null,this.itemWrappers=null,this.dragStart=new i.EventEmitter,this.dragEnd=new i.EventEmitter,this.dragOver=new i.EventEmitter,this.dragLeave=new i.EventEmitter,this.dataMove=new i.EventEmitter,this.dataAdd=new i.EventEmitter,this.dataRemove=new i.EventEmitter,this.navigate=new i.EventEmitter,this.activeIndex=-1,this.animating=!1,this.dragIndex=-1,this.dragOverIndex=-1,this.onDragStartSubject=new o.Subject,this.onDragOverSubject=new o.Subject,this.onDragLeaveSubject=new o.Subject,this.onDragEndSubject=new o.Subject,this.hintLocation=null,this._localData=[],this.animationDuration=300,this.afterKeyPress=!1,this.sortableService=null,this._hideActiveItem=!1,l.validatePackage(h.packageMetadata),this.wrapper=r.nativeElement,this.direction=e.rtl?"rtl":"ltr",this.sortableService=s,this.subscribeEvents()}var e;return e=t,Object.defineProperty(t.prototype,"data",{get:function(){return this._data},set:function(t){this._data=t,this.cacheData()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"navigatable",{set:function(t){this.navigable=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"touchAction",{get:function(){return"none"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dir",{get:function(){return this.direction},enumerable:!0,configurable:!0}),t.prototype.setItemData=function(t,e){this._localData[e].item=t.item,this._localData[e].index=t.index,this._localData[e].hidden=t.hidden},t.prototype.itemTemplate=function(t){var e=this.itemTemplateRef;return t===this.dragOverIndex?e=this.placeholderTemplateRef:t===this.dragIndex&&(e=this.itemTemplateRef),e},t.prototype.ngOnInit=function(){var t=this;this.data||(this.data=[]),this.id=this.sortableService.registerComponent(this),this.dragIndex=-1;this.activeItemStyle&&!this.activeItemStyle.display&&(this.activeItemStyle.display=""),this.itemStyle.display||(this.itemStyle.display=""),this.wrapper&&(this.draggable=new _.default({press:function(e){return t.sortableService.onPress(e)},drag:function(e){return t.sortableService.onDrag(e)},release:function(e){return t.sortableService.onRelease(e)}}),this.ngZone.runOutsideAngular((function(){t.draggable.bindTo(t.wrapper)})))},t.prototype.ngOnChanges=function(t){this.data&&s.isChanged("disabledIndexes",t,!1)&&this.cacheData()},t.prototype.ngOnDestroy=function(){this.unsubscribeEvents(),this.sortableService.unregisterComponent(this.id),this.draggable&&this.draggable.destroy()},t.prototype.ngAfterContentInit=function(){this.itemTemplateRef=this.itemTemplateDirectiveRef.first||this.defaultTemplateRef.first,this.placeholderTemplateRef=this.placeholderTemplateDirectiveRef.first||this.defaultTemplateRef.first},t.prototype.ngAfterViewChecked=function(){if(this.afterKeyPress){if(this.itemWrappers){var t=this.itemWrappers.toArray();t&&t.length>0&&this.activeIndex>-1&&t[this.activeIndex].nativeElement.focus()}this.afterKeyPress=!1}},t.prototype.updateCacheIndices=function(){this._localData.forEach((function(t,e){t.index=e}))},t.prototype.cacheData=function(){var t=this;this._localData=[],this._data.forEach((function(e,n){t._localData.push({item:e,active:!1,disabled:!t.itemEnabled(n),index:n,hidden:!1})}))},t.prototype.startDrag=function(t){var e=new y.DraggableEvent(t);this.onDragStartSubject.next(e);var n=e.isDefaultPrevented();return n||(this.offsetParent=u.relativeContextElement(this.wrapper)),n},t.prototype.drag=function(t){var e=new y.DraggableEvent(t);return this.onDragOverSubject.next(e),e.isDefaultPrevented()},t.prototype.leave=function(t){var e=new y.DraggableEvent(t);return this.onDragLeaveSubject.next(e),e.isDefaultPrevented()},t.prototype.endDrag=function(t){var e=new y.DraggableEvent(t);return this.onDragEndSubject.next(e),e.isDefaultPrevented()},t.prototype.hintVisible=function(){return this.dragIndex>=0&&this.hintLocation&&this===this.sortableService.getSource()},t.prototype.currentItemStyle=function(t){if(-1===t)return this.emptyItemStyle?this.emptyItemStyle:this.itemStyle;if(!this.itemEnabled(t)&&this.disabledItemStyle)return this.disabledItemStyle;if(t===this.dragIndex||-1===this.dragIndex&&t===this.activeIndex){if(this.hideActiveItem)return{display:"none"};if(this.activeItemStyle)return this.activeItemStyle}return this.itemStyle},t.prototype.currentItemClass=function(t){return-1===t?this.emptyItemClass?this.emptyItemClass:this.itemClass:!this.itemEnabled(t)&&this.disabledItemClass?this.disabledItemClass:(t===this.dragIndex||-1===this.dragIndex&&t===this.activeIndex)&&this.activeItemClass?this.activeItemClass:this.itemClass},t.prototype.hintStyle=function(){var t={left:this.hintLocation.x+10+"px",position:"fixed",top:this.hintLocation.y+10+"px"},e={};return Object.assign(e,this.currentItemStyle(this.dragIndex),t),e},t.prototype.itemEnabled=function(t){return-1===this.disabledIndexes.indexOf(t)},t.prototype.acceptDragFrom=function(t){return void 0===this.acceptZones?this.zone===t.zone:void 0!==t.zone&&-1!==this.acceptZones.indexOf(t.zone)},t.prototype.ariaDropEffect=function(t){return this.itemEnabled(t)?"move":"none"},t.prototype.focusHandler=function(t){this.navigable&&(this.activeIndex=t)},t.prototype.blurHandler=function(){this.navigable&&!this.afterKeyPress&&(this.activeIndex=-1)},t.prototype.keydownHandler=function(t){var e=t.keyCode,n=this.navigable&&e>=37&&e<=40,r=-1!==this.activeIndex;if(n&&r){for(var i="rtl"===this.direction?39:37,o=38===e||e===i?-1:1,s=this.data.length-1,u=this.activeIndex+o;!this.itemEnabled(u)&&u<=s;)u+=o;if(u=Math.min(Math.max(u,0),s),this.itemEnabled(u)){if(n){var c=t.ctrlKey||t.metaKey,a=new v.NavigateEvent({index:u,oldIndex:this.activeIndex,ctrlKey:c});this.navigate.emit(a),a.isDefaultPrevented()||(this.activeIndex=u),this.dragIndex=-1,this.dragOverIndex=-1}t.stopPropagation(),t.preventDefault(),this.afterKeyPress=!0}}},t.prototype.removeDataItem=function(t){this.dragIndex=-1,this.dragOverIndex=-1,this._localData.splice(t,1),this.data.splice(t,1),this.updateCacheIndices()},t.prototype.hideItem=function(t,e){void 0===e&&(e=!0),this._localData[t].hidden=e},Object.defineProperty(t.prototype,"hideActiveItem",{get:function(){return this._hideActiveItem},set:function(t){this.activeIndex=-1,this._hideActiveItem=t},enumerable:!0,configurable:!0}),t.prototype.clearActiveItem=function(){this.navigable?this.fixFocus():this.activeIndex=-1,this.dragIndex=-1},t.prototype.getActiveItem=function(){if(this.data&&this.dragIndex>=0&&this.dragIndex<this.data.length)return this.data[this.dragIndex]},t.prototype.addDataItem=function(t,e){var n=this,r=this.sortableService.originDraggable;if(r&&r.parent===this){var i=this.animation;this.hideItem(r.index,!1),this.animation=!1,this.moveItem(r.index,e),this.animation=i}else this.data.splice(e,0,t),this._localData.splice(e,0,{item:t,active:!1,disabled:!this.itemEnabled(e),index:e,hidden:!1}),this.updateCacheIndices();this.dragIndex=e,this.dragOverIndex=e,this.ngZone.onStable.pipe(c.take(1)).subscribe((function(){n.sortableService.target=n,n.sortableService.setSource(n),n.sortableService.activeDraggable=n.draggables.toArray()[e],n.sortableService.lastDraggable=null}))},t.prototype.moveItem=function(t,e){var n=this;if(e!==t){for(var r,i=t,o=e>i?1:-1,s=i,u=[],a=i;i!==e;)i+=o,(this.itemEnabled(i)||i===e)&&(this.animation&&u.push({next:i,prev:a}),r=this._localData[a].index,this._localData[a].index=this._localData[i].index,this._localData[i].index=r,r=this._localData[a],this._localData[a]=this._localData[i],this._localData[i]=r,r=this.data[a],this.data[a]=this.data[i],this.data[i]=r,a=i);this.dragIndex=i,this.dragOverIndex=i,this.activeIndex=i,this.animation&&setTimeout((function(){u.push({next:s,prev:i}),n.animating=!0,n.animate(u)})),this.ngZone.onStable.pipe(c.take(1)).subscribe((function(){n.sortableService.activeDraggable=n.draggables.toArray()[i],n.sortableService.lastDraggable=null}))}},t.prototype.animate=function(t){var e=this,n=this.itemWrappers.toArray(),r=[],i=[],o=this;clearTimeout(this._animating);for(var s=0;s<t.length;s++)r.push(n[t[s].prev].nativeElement.getBoundingClientRect()),i.push(n[t[s].next].nativeElement.getBoundingClientRect());for(s=0;s<t.length;s++){var u=t[s].prev,c=i[s],a=r[s],l=n[u].nativeElement;this.applyAnimationStyle(l,"transition","none"),this.applyAnimationStyle(l,"transform","translate3d("+(c.left-a.left).toString()+"px,"+(c.top-a.top).toString()+"px,0)"),this.reflow(l)}var h=function(e){var r=t[e].prev,i=n[r].nativeElement;f.applyAnimationStyle(i,"transition","all "+f.animationDuration+"ms"),f.applyAnimationStyle(i,"transform","translate3d(0,0,0)"),clearTimeout(i.animated),i.animated=setTimeout((function(){o.applyAnimationStyle(i,"transition",""),o.applyAnimationStyle(i,"transform",""),i.animated=!1}),f.animationDuration)},f=this;for(s=0;s<t.length;s++)h(s);this._animating=setTimeout((function(){e.animating=!1}),this.animationDuration)},t.prototype.positionHintFromEvent=function(t){var e=this.parentOffset();this.hintLocation=t?{x:t.clientX-e.left,y:t.clientY-e.top}:null},t.prototype.parentOffset=function(){var t=this.offsetParent;if(t){var e=t.getBoundingClientRect();return{left:e.left-t.scrollLeft,top:e.top-t.scrollTop}}return{left:0,top:0}},t.prototype.markForCheck=function(){this.changeDetector.markForCheck()},t.prototype.reflow=function(t){return t.offsetWidth},t.prototype.applyAnimationStyle=function(t,e,n){var r=t&&t.style;r&&(e in r||(e="-webkit-"+e),r[e]=n)},t.prototype.subscribeEvents=function(){var t=this;this.localizationChangeSubscription=this.localization.changes.subscribe((function(e){var n=e.rtl;return t.direction=n?"rtl":"ltr"})),this.dragStartSubscription=this.onDragStartSubject.subscribe((function(e){t.sortableService.originDraggable=e.target,t.sortableService.originIndex=e.target.index,t.sortableService.activeDraggable=e.target,t.sortableService.lastDraggable=e.target,t.sortableService.target=t,t.sortableService.setSource(t);var n=new m.DragStartEvent({index:e.target.index});t.dragStart.emit(n),n.isDefaultPrevented()?e.preventDefault():e.target.disabled||(t.sortableService.target&&(t.sortableService.target.dragOverIndex=-1,t.sortableService.target.dragIndex=-1),t.dragOverIndex=e.target.index,t.dragIndex=e.target.index)})),this.dragOverSubscription=this.onDragOverSubject.pipe(c.filter((function(t){return t.target&&0===t.target.el.nativeElement.style.transition.length})),c.filter((function(){return t.sortableService.originDraggable&&!t.sortableService.originDraggable.disabled})),c.filter((function(){return t.sortableService&&t.acceptDragFrom(t.sortableService.getSource())})),c.filter((function(e){return e.target!==t.sortableService.lastDraggable}))).subscribe((function(e){t.sortableService.lastDraggable=e.target;var n=t.sortableService.originDraggable,r=e.target.index;n.hidden&&n.parent===t&&n.index<e.target.index&&(r=e.target.index-1),t.sortableService.target=t;var i=t.sortableService.activeDraggable?t.sortableService.activeDraggable.index:0,o=new m.DragOverEvent({index:r,oldIndex:i});t.dragOver.emit(o),!o.isDefaultPrevented()&&e.target&&e.target.index>=0&&(t.dragOverIndex=e.target.index,t.placeHolderItemData(e.target))})),this.dragEndSubscription=this.onDragEndSubject.subscribe((function(e){var n=t.sortableService.getSource();if(n){var r=t.sortableService.target,i=e.target?e.target.index:-1,o=t.sortableService.originDraggable?t.sortableService.originIndex:-1;t.hintLocation=null;var s=new m.DragEndEvent({index:i,oldIndex:o});t.dragEnd.emit(s),s.isDefaultPrevented()||(n.dragIndex=-1,n.dragOverIndex=-1,n.activeIndex=-1,r&&r!==n&&(r.dragIndex=-1,r.dragOverIndex=-1),setTimeout((function(){t.sortableService.activeDraggable=null,t.sortableService.lastDraggable=null,t.sortableService.originDraggable=null,t.sortableService.target=null,t.sortableService.setSource(null)})))}})),this.dragLeaveSubscription=this.onDragLeaveSubject.pipe(c.filter((function(e){return!!s.isDocumentAvailable()&&t.wrapper!==document.elementFromPoint(e.originalEvent.pageX,e.originalEvent.pageY)})),c.filter((function(e){return!t.animating})),c.filter((function(e){return t.sortableService.target&&t.sortableService.target.dragOverIndex>-1}))).subscribe((function(){t.dragLeave.emit({index:t.sortableService.originDraggable.index}),t.sortableService.lastDraggable=null,t.dragOverIndex=-1,t.sortableService.target=null}))},t.prototype.unsubscribeEvents=function(){this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe(),this.dragStartSubscription.unsubscribe(),this.dragOverSubscription.unsubscribe(),this.dragEndSubscription.unsubscribe(),this.dragLeaveSubscription.unsubscribe()},t.prototype.placeHolderItemData=function(t){var e=this;if(!t.disabled){var n=this.sortableService.target,r=this.sortableService.getSource(),i=Object.assign({},this._localData[t.index]),s=r._localData[r.dragIndex];this.setItemData(s,t.index);var u=r.onDragEndSubject.pipe(c.take(1)).subscribe((function(){e.setItemData(i,t.index)})),a=n.onDragLeaveSubject.pipe(c.take(1)).subscribe((function(){e.setItemData(i,t.index)})),l=o.merge(this.onDragOverSubject.pipe(c.filter((function(){return t.index!==e.dragOverIndex}))),this.onDragLeaveSubject).subscribe((function(){e.setItemData(i,t.index),u.unsubscribe(),l.unsubscribe(),a.unsubscribe()}))}},t.prototype.fixFocus=function(){if(this.itemWrappers){var t=this.itemWrappers.toArray();this.dragIndex>-1&&t&&t.length>0&&(t[this.dragIndex].nativeElement.focus(),this.activeIndex=this.dragIndex)}},r.__decorate([i.Input(),r.__metadata("design:type",Number)],t.prototype,"tabIndex",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Array),r.__metadata("design:paramtypes",[Array])],t.prototype,"data",null),r.__decorate([i.Input(),r.__metadata("design:type",Boolean)],t.prototype,"navigable",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Boolean),r.__metadata("design:paramtypes",[Boolean])],t.prototype,"navigatable",null),r.__decorate([i.Input(),r.__metadata("design:type",Boolean)],t.prototype,"animation",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Array)],t.prototype,"disabledIndexes",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"zone",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Array)],t.prototype,"acceptZones",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Object)],t.prototype,"itemStyle",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Object)],t.prototype,"emptyItemStyle",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Object)],t.prototype,"activeItemStyle",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Object)],t.prototype,"disabledItemStyle",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Object)],t.prototype,"itemClass",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Object)],t.prototype,"activeItemClass",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Object)],t.prototype,"emptyItemClass",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Object)],t.prototype,"disabledItemClass",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"emptyText",void 0),r.__decorate([i.ContentChildren(i.TemplateRef,{descendants:!1}),r.__metadata("design:type",i.QueryList)],t.prototype,"defaultTemplateRef",void 0),r.__decorate([i.ContentChildren(b.ItemTemplateDirective,{read:i.TemplateRef,descendants:!1}),r.__metadata("design:type",i.QueryList)],t.prototype,"itemTemplateDirectiveRef",void 0),r.__decorate([i.ContentChildren(b.PlaceholderTemplateDirective,{read:i.TemplateRef,descendants:!1}),r.__metadata("design:type",i.QueryList)],t.prototype,"placeholderTemplateDirectiveRef",void 0),r.__decorate([i.ViewChildren("itemWrapper"),r.__metadata("design:type",i.QueryList)],t.prototype,"itemWrappers",void 0),r.__decorate([i.ViewChildren(p.DraggableDirective),r.__metadata("design:type",i.QueryList)],t.prototype,"draggables",void 0),r.__decorate([i.ViewChild("noDataRef",{static:!1}),r.__metadata("design:type",i.ElementRef)],t.prototype,"noDataContainer",void 0),r.__decorate([i.ViewChild("hint",{static:!1}),r.__metadata("design:type",i.ElementRef)],t.prototype,"hint",void 0),r.__decorate([i.Output(),r.__metadata("design:type",i.EventEmitter)],t.prototype,"dragStart",void 0),r.__decorate([i.Output(),r.__metadata("design:type",i.EventEmitter)],t.prototype,"dragEnd",void 0),r.__decorate([i.Output(),r.__metadata("design:type",i.EventEmitter)],t.prototype,"dragOver",void 0),r.__decorate([i.Output(),r.__metadata("design:type",i.EventEmitter)],t.prototype,"dragLeave",void 0),r.__decorate([i.Output(),r.__metadata("design:type",i.EventEmitter)],t.prototype,"dataMove",void 0),r.__decorate([i.Output(),r.__metadata("design:type",i.EventEmitter)],t.prototype,"dataAdd",void 0),r.__decorate([i.Output(),r.__metadata("design:type",i.EventEmitter)],t.prototype,"dataRemove",void 0),r.__decorate([i.Output(),r.__metadata("design:type",i.EventEmitter)],t.prototype,"navigate",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Number)],t.prototype,"activeIndex",void 0),r.__decorate([i.HostBinding("style.touch-action"),r.__metadata("design:type",String),r.__metadata("design:paramtypes",[])],t.prototype,"touchAction",null),r.__decorate([i.HostBinding("attr.dir"),r.__metadata("design:type",String),r.__metadata("design:paramtypes",[])],t.prototype,"dir",null),t=e=r.__decorate([i.Component({exportAs:"kendoSortable",providers:[a.LocalizationService,{provide:a.L10N_PREFIX,useValue:"kendo.sortable"},{provide:d.SortableContainer,useExisting:i.forwardRef((function(){return e}))}],selector:"kendo-sortable",template:'\n <div #itemWrapper *ngFor="let item of _localData;let i=index"\n kendoDraggable\n [attr.tabIndex]="itemEnabled(i)?(navigable?tabIndex||0:tabIndex):null"\n [attr.aria-grabbed]="i===dragIndex"\n [attr.aria-dropeffect]="ariaDropEffect(i)"\n [attr.data-sortable-item] = "true"\n [attr.data-sortable-index]="i"\n [attr.data-sortable-id]="id"\n [index]="i"\n [hidden]="item.hidden"\n [disabled]="!itemEnabled(i)"\n [ngClass]="currentItemClass(i)"\n [ngStyle]="currentItemStyle(i)"\n\n (focus)="focusHandler(i)"\n (blur)="blurHandler()"\n (keydown)="keydownHandler($event)"\n >\n <ng-container *ngIf="itemTemplateRef"\n [ngTemplateOutlet]="itemTemplate(i)"\n [ngTemplateOutletContext]="item">\n </ng-container>\n <ng-container *ngIf="!itemTemplateRef">{{item.item}}</ng-container>\n </div>\n\n <ng-container #noDataRef *ngIf="!_data.length || _localData.length === 1 && _localData[0].hidden">\n <div\n kendoDraggable\n [index]="0"\n [disabled]="true"\n [attr.data-sortable-id]="id"\n [attr.data-sortable-index]="0"\n [ngStyle]="currentItemStyle(-1)"\n [ngClass]="currentItemClass(-1)"\n >{{emptyText}}</div>\n </ng-container>\n <div *ngIf="hintVisible()" [ngStyle]="hintStyle()" [ngClass]="currentItemClass(dragIndex)">\n <ng-container *ngIf="itemTemplateRef"\n [ngTemplateOutlet]="itemTemplateRef"\n [ngTemplateOutletContext]="{item: _localData[dragIndex].item}">\n </ng-container>\n <ng-container *ngIf="!itemTemplateRef">{{_localData[dragIndex].item}}</ng-container>\n </div>\n '}),r.__metadata("design:paramtypes",[i.NgZone,a.LocalizationService,i.ChangeDetectorRef,i.ElementRef,f.SortableService])],t)}();e.SortableComponent=g},function(t,n){t.exports=e},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(8),s=function(){function t(t,e,n){this.parent=t,this.el=e,this.renderer=n}return Object.defineProperty(t.prototype,"_focused",{get:function(){return!this.disabled&&this.index===this.parent.activeIndex},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_disabled",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"display",{get:function(){return this.hidden?"none":this._display},set:function(t){this._display=t},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){var t=this.el.nativeElement;this.display=t.style.display,t&&(this.renderer.setStyle(t,"user-select","none"),this.renderer.setStyle(t,"-ms-user-select","none"),this.renderer.setStyle(t,"-moz-user-select","none"),this.renderer.setStyle(t,"-webkit-user-select","none"))},r.__decorate([i.Input(),r.__metadata("design:type",Number)],t.prototype,"index",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Boolean)],t.prototype,"hidden",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Boolean)],t.prototype,"disabled",void 0),r.__decorate([i.HostBinding("class.k-state-focused"),r.__metadata("design:type",Boolean),r.__metadata("design:paramtypes",[])],t.prototype,"_focused",null),r.__decorate([i.HostBinding("attr.aria-disabled"),r.__metadata("design:type",Boolean),r.__metadata("design:paramtypes",[])],t.prototype,"_disabled",null),r.__decorate([i.HostBinding("style.display"),r.__metadata("design:type",String),r.__metadata("design:paramtypes",[String])],t.prototype,"display",null),t=r.__decorate([i.Directive({selector:"[kendoDraggable]"}),r.__metadata("design:paramtypes",[o.SortableContainer,i.ElementRef,i.Renderer2])],t)}();e.DraggableDirective=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),o=function(){function t(){}return t=r.__decorate([i.Injectable()],t)}();e.SortableContainer=o},function(t,e,n){"use strict";n.r(e),n.d(e,"audit",(function(){return R})),n.d(e,"auditTime",(function(){return q})),n.d(e,"buffer",(function(){return U})),n.d(e,"bufferCount",(function(){return G})),n.d(e,"bufferTime",(function(){return tt})),n.d(e,"bufferToggle",(function(){return ut})),n.d(e,"bufferWhen",(function(){return lt})),n.d(e,"catchError",(function(){return pt})),n.d(e,"combineAll",(function(){return gt})),n.d(e,"combineLatest",(function(){return wt})),n.d(e,"concat",(function(){return Mt})),n.d(e,"concatAll",(function(){return kt})),n.d(e,"concatMap",(function(){return Ft})),n.d(e,"concatMapTo",(function(){return Bt})),n.d(e,"count",(function(){return Wt})),n.d(e,"debounce",(function(){return Yt})),n.d(e,"debounceTime",(function(){return qt})),n.d(e,"defaultIfEmpty",(function(){return Gt})),n.d(e,"delay",(function(){return ie})),n.d(e,"delayWhen",(function(){return ce})),n.d(e,"dematerialize",(function(){return pe})),n.d(e,"distinct",(function(){return ve})),n.d(e,"distinctUntilChanged",(function(){return _e})),n.d(e,"distinctUntilKeyChanged",(function(){return we})),n.d(e,"elementAt",(function(){return Fe})),n.d(e,"endWith",(function(){return Be})),n.d(e,"every",(function(){return We})),n.d(e,"exhaust",(function(){return Ye})),n.d(e,"exhaustMap",(function(){return qe})),n.d(e,"expand",(function(){return Ze})),n.d(e,"filter",(function(){return Ee})),n.d(e,"finalize",(function(){return $e})),n.d(e,"find",(function(){return en})),n.d(e,"findIndex",(function(){return on})),n.d(e,"first",(function(){return sn})),n.d(e,"groupBy",(function(){return pn})),n.d(e,"ignoreElements",(function(){return _n})),n.d(e,"isEmpty",(function(){return wn})),n.d(e,"last",(function(){return Cn})),n.d(e,"map",(function(){return Tt})),n.d(e,"mapTo",(function(){return On})),n.d(e,"materialize",(function(){return Pn})),n.d(e,"max",(function(){return Bn})),n.d(e,"merge",(function(){return Hn})),n.d(e,"mergeAll",(function(){return Vt})),n.d(e,"mergeMap",(function(){return jt})),n.d(e,"flatMap",(function(){return jt})),n.d(e,"mergeMapTo",(function(){return zn})),n.d(e,"mergeScan",(function(){return Yn})),n.d(e,"min",(function(){return qn})),n.d(e,"multicast",(function(){return Jn})),n.d(e,"observeOn",(function(){return er})),n.d(e,"onErrorResumeNext",(function(){return or})),n.d(e,"pairwise",(function(){return cr})),n.d(e,"partition",(function(){return fr})),n.d(e,"pluck",(function(){return pr})),n.d(e,"publish",(function(){return br})),n.d(e,"publishBehavior",(function(){return yr})),n.d(e,"publishLast",(function(){return _r})),n.d(e,"publishReplay",(function(){return Ir})),n.d(e,"race",(function(){return Cr})),n.d(e,"reduce",(function(){return Fn})),n.d(e,"repeat",(function(){return Or})),n.d(e,"repeatWhen",(function(){return Pr})),n.d(e,"retry",(function(){return kr})),n.d(e,"retryWhen",(function(){return Fr})),n.d(e,"refCount",(function(){return Un})),n.d(e,"sample",(function(){return Hr})),n.d(e,"sampleTime",(function(){return Lr})),n.d(e,"scan",(function(){return kn})),n.d(e,"sequenceEqual",(function(){return Xr})),n.d(e,"share",(function(){return Jr})),n.d(e,"shareReplay",(function(){return ti})),n.d(e,"single",(function(){return ei})),n.d(e,"skip",(function(){return ii})),n.d(e,"skipLast",(function(){return ui})),n.d(e,"skipUntil",(function(){return li})),n.d(e,"skipWhile",(function(){return pi})),n.d(e,"startWith",(function(){return vi})),n.d(e,"subscribeOn",(function(){return Ii})),n.d(e,"switchAll",(function(){return Oi})),n.d(e,"switchMap",(function(){return Di})),n.d(e,"switchMapTo",(function(){return ji})),n.d(e,"take",(function(){return ke})),n.d(e,"takeLast",(function(){return En})),n.d(e,"takeUntil",(function(){return Ni})),n.d(e,"takeWhile",(function(){return Vi})),n.d(e,"tap",(function(){return Ce})),n.d(e,"throttle",(function(){return Fi})),n.d(e,"throttleTime",(function(){return Hi})),n.d(e,"throwIfEmpty",(function(){return Ae})),n.d(e,"timeInterval",(function(){return Ki})),n.d(e,"timeout",(function(){return $i})),n.d(e,"timeoutWith",(function(){return Zi})),n.d(e,"timestamp",(function(){return Ji})),n.d(e,"toArray",(function(){return no})),n.d(e,"window",(function(){return ro})),n.d(e,"windowCount",(function(){return so})),n.d(e,"windowTime",(function(){return ao})),n.d(e,"windowToggle",(function(){return yo})),n.d(e,"windowWhen",(function(){return go})),n.d(e,"withLatestFrom",(function(){return So})),n.d(e,"zip",(function(){return Po})),n.d(e,"zipAll",(function(){return Ao}));var r=n(0);function i(t){return"function"==typeof t}var o=!1,s={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){t&&(new Error).stack;o=t},get useDeprecatedSynchronousErrorHandling(){return o}};function u(t){setTimeout((function(){throw t}))}var c={closed:!0,next:function(t){},error:function(t){if(s.useDeprecatedSynchronousErrorHandling)throw t;u(t)},complete:function(){}},a=Array.isArray||function(t){return t&&"number"==typeof t.length};function l(t){return null!==t&&"object"==typeof t}function h(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}h.prototype=Object.create(Error.prototype);var f=h,p=function(){function t(t){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}return t.prototype.unsubscribe=function(){var t,e=!1;if(!this.closed){var n=this._parent,r=this._parents,o=this._unsubscribe,s=this._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var u=-1,c=r?r.length:0;n;)n.remove(this),n=++u<c&&r[u]||null;if(i(o))try{o.call(this)}catch(n){e=!0,t=n instanceof f?d(n.errors):[n]}if(a(s))for(u=-1,c=s.length;++u<c;){var h=s[u];if(l(h))try{h.unsubscribe()}catch(n){e=!0,t=t||[],n instanceof f?t=t.concat(d(n.errors)):t.push(n)}}if(e)throw new f(t)}},t.prototype.add=function(e){var n=e;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:if(!e)return t.EMPTY;throw new Error("unrecognized teardown "+e+" added to Subscription.")}if(n._addParent(this)){var i=this._subscriptions;i?i.push(n):this._subscriptions=[n]}return n},t.prototype.remove=function(t){var e=this._subscriptions;if(e){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}},t.prototype._addParent=function(t){var e=this._parent,n=this._parents;return e!==t&&(e?n?-1===n.indexOf(t)&&(n.push(t),!0):(this._parents=[t],!0):(this._parent=t,!0))},t.EMPTY=function(t){return t.closed=!0,t}(new t),t}();function d(t){return t.reduce((function(t,e){return t.concat(e instanceof f?e.errors:e)}),[])}var b="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random(),v=function(t){function e(n,r,i){var o=t.call(this)||this;switch(o.syncErrorValue=null,o.syncErrorThrown=!1,o.syncErrorThrowable=!1,o.isStopped=!1,arguments.length){case 0:o.destination=c;break;case 1:if(!n){o.destination=c;break}if("object"==typeof n){n instanceof e?(o.syncErrorThrowable=n.syncErrorThrowable,o.destination=n,n.add(o)):(o.syncErrorThrowable=!0,o.destination=new y(o,n));break}default:o.syncErrorThrowable=!0,o.destination=new y(o,n,r,i)}return o}return r.__extends(e,t),e.prototype[b]=function(){return this},e.create=function(t,n,r){var i=new e(t,n,r);return i.syncErrorThrowable=!1,i},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this._parent,e=this._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=t,this._parents=e,this},e}(p),y=function(t){function e(e,n,r,o){var s,u=t.call(this)||this;u._parentSubscriber=e;var a=u;return i(n)?s=n:n&&(s=n.next,r=n.error,o=n.complete,n!==c&&(i((a=Object.create(n)).unsubscribe)&&u.add(a.unsubscribe.bind(a)),a.unsubscribe=u.unsubscribe.bind(u))),u._context=a,u._next=s,u._error=r,u._complete=o,u}return r.__extends(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;s.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=s.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):u(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;u(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)};s.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(),s.useDeprecatedSynchronousErrorHandling)throw t;u(t)}},e.prototype.__tryOrSetError=function(t,e,n){if(!s.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(e){return s.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=e,t.syncErrorThrown=!0,!0):(u(e),!0)}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(v),m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(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}(v),_=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.__extends(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}(v);var g="function"==typeof Symbol&&Symbol.observable||"@@observable";function x(){}function w(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return S(t)}function S(t){return t?1===t.length?t[0]:function(e){return t.reduce((function(t,e){return e(t)}),e)}:x}var I=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,i=function(t,e,n){if(t){if(t instanceof v)return t;if(t[b])return t[b]()}return t||e||n?new v(t,e,n):new v(c)}(t,e,n);if(r?i.add(r.call(i,this.source)):i.add(this.source||s.useDeprecatedSynchronousErrorHandling&&!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i)),s.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){s.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),!function(t){for(;t;){var e=t,n=e.closed,r=e.destination,i=e.isStopped;if(n||i)return!1;t=r&&r instanceof v?r:null}return!0}(t)?console.warn(e):t.error(e)}},t.prototype.forEach=function(t,e){var n=this;return new(e=E(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[g]=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:S(t)(this)},t.prototype.toPromise=function(t){var e=this;return new(t=E(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 E(t){if(t||(t=s.Promise||Promise),!t)throw new Error("no Promise impl found");return t}var D=function(t){return function(e){for(var n=0,r=t.length;n<r&&!e.closed;n++)e.next(t[n]);e.closed||e.complete()}},T=function(t){return function(e){return t.then((function(t){e.closed||(e.next(t),e.complete())}),(function(t){return e.error(t)})).then(null,u),e}};function C(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}var O=C(),j=function(t){return function(e){for(var n=t[O]();;){var r=n.next();if(r.done){e.complete();break}if(e.next(r.value),e.closed)break}return"function"==typeof n.return&&e.add((function(){n.return&&n.return()})),e}},N=function(t){return function(e){var n=t[g]();if("function"!=typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(e)}},P=function(t){return t&&"number"==typeof t.length&&"function"!=typeof t};function A(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}var V=function(t){if(t instanceof I)return function(e){return t._isScalar?(e.next(t.value),void e.complete()):t.subscribe(e)};if(t&&"function"==typeof t[g])return N(t);if(P(t))return D(t);if(A(t))return T(t);if(t&&"function"==typeof t[O])return j(t);var e=l(t)?"an invalid object":"'"+t+"'";throw new TypeError("You provided "+e+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.")};function k(t,e,n,r,i){if(void 0===i&&(i=new _(t,n,r)),!i.closed)return V(e)(i)}function R(t){return function(e){return e.lift(new M(t))}}var M=function(){function t(t){this.durationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new F(t,this.durationSelector))},t}(),F=function(t){function e(e,n){var r=t.call(this,e)||this;return r.durationSelector=n,r.hasValue=!1,r}return r.__extends(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=k(this,e);!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}},e.prototype.clearThrottle=function(){var t=this.value,e=this.hasValue,n=this.throttled;n&&(this.remove(n),this.throttled=null,n.unsubscribe()),e&&(this.value=null,this.hasValue=!1,this.destination.next(t))},e.prototype.notifyNext=function(t,e,n,r){this.clearThrottle()},e.prototype.notifyComplete=function(){this.clearThrottle()},e}(m),B=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.__extends(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.__extends(e,t),e.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},e}(p)),W=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}(),H=function(t){function e(n,r){void 0===r&&(r=W.now);var i=t.call(this,n,(function(){return e.delegate&&e.delegate!==i?e.delegate.now():r()}))||this;return i.actions=[],i.active=!1,i.scheduled=void 0,i}return r.__extends(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}(W),z=new H(B);function Y(t){return!a(t)&&t-parseFloat(t)+1>=0}function L(t){return t&&"function"==typeof t.schedule}function K(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 q(t,e){return void 0===e&&(e=z),R((function(){return function(t,e,n){void 0===t&&(t=0);var r=-1;return Y(e)?r=Number(e)<1?1:Number(e):L(e)&&(n=e),L(n)||(n=z),new I((function(e){var i=Y(t)?t:+t-n.now();return n.schedule(K,i,{index:0,period:r,subscriber:e})}))}(t,e)}))}function U(t){return function(e){return e.lift(new X(t))}}var X=function(){function t(t){this.closingNotifier=t}return t.prototype.call=function(t,e){return e.subscribe(new Z(t,this.closingNotifier))},t}(),Z=function(t){function e(e,n){var r=t.call(this,e)||this;return r.buffer=[],r.add(k(r,n)),r}return r.__extends(e,t),e.prototype._next=function(t){this.buffer.push(t)},e.prototype.notifyNext=function(t,e,n,r,i){var o=this.buffer;this.buffer=[],this.destination.next(o)},e}(m);function G(t,e){return void 0===e&&(e=null),function(n){return n.lift(new Q(t,e))}}var Q=function(){function t(t,e){this.bufferSize=t,this.startBufferEvery=e,this.subscriberClass=e&&t!==e?J:$}return t.prototype.call=function(t,e){return e.subscribe(new this.subscriberClass(t,this.bufferSize,this.startBufferEvery))},t}(),$=function(t){function e(e,n){var r=t.call(this,e)||this;return r.bufferSize=n,r.buffer=[],r}return r.__extends(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}(v),J=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.__extends(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 s=r[o];s.push(t),s.length===e&&(r.splice(o,1),this.destination.next(s))}},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}(v);function tt(t){var e=arguments.length,n=z;L(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 et(t,r,i,n))}}var et=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 rt(t,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))},t}(),nt=function(){return function(){this.buffer=[]}}(),rt=function(t){function e(e,n,r,i,o){var s=t.call(this,e)||this;s.bufferTimeSpan=n,s.bufferCreationInterval=r,s.maxBufferSize=i,s.scheduler=o,s.contexts=[];var u=s.openContext();if(s.timespanOnly=null==r||r<0,s.timespanOnly){var c={subscriber:s,context:u,bufferTimeSpan:n};s.add(u.closeAction=o.schedule(it,n,c))}else{var a={subscriber:s,context:u},l={bufferTimeSpan:n,bufferCreationInterval:r,subscriber:s,scheduler:o};s.add(u.closeAction=o.schedule(st,n,a)),s.add(o.schedule(ot,r,l))}return s}return r.__extends(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],s=o.buffer;s.push(t),s.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(it,n,r))}},e.prototype.openContext=function(){var t=new nt;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}(v);function it(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 ot(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(st,n,{subscriber:r,context:o})),this.schedule(t,e))}function st(t){var e=t.subscriber,n=t.context;e.closeContext(n)}function ut(t,e){return function(n){return n.lift(new ct(t,e))}}var ct=function(){function t(t,e){this.openings=t,this.closingSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new at(t,this.openings,this.closingSelector))},t}(),at=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(k(i,n)),i}return r.__extends(e,t),e.prototype._next=function(t){for(var e=this.contexts,n=e.length,r=0;r<n;r++)e[r].buffer.push(t)},e.prototype._error=function(e){for(var n=this.contexts;n.length>0;){var r=n.shift();r.subscription.unsubscribe(),r.buffer=null,r.subscription=null}this.contexts=null,t.prototype._error.call(this,e)},e.prototype._complete=function(){for(var e=this.contexts;e.length>0;){var n=e.shift();this.destination.next(n.buffer),n.subscription.unsubscribe(),n.buffer=null,n.subscription=null}this.contexts=null,t.prototype._complete.call(this)},e.prototype.notifyNext=function(t,e,n,r,i){t?this.closeBuffer(t):this.openBuffer(e)},e.prototype.notifyComplete=function(t){this.closeBuffer(t.context)},e.prototype.openBuffer=function(t){try{var e=this.closingSelector.call(this,t);e&&this.trySubscribe(e)}catch(t){this._error(t)}},e.prototype.closeBuffer=function(t){var e=this.contexts;if(e&&t){var n=t.buffer,r=t.subscription;this.destination.next(n),e.splice(e.indexOf(t),1),this.remove(r),r.unsubscribe()}},e.prototype.trySubscribe=function(t){var e=this.contexts,n=new p,r={buffer:[],subscription:n};e.push(r);var i=k(this,t,r);!i||i.closed?this.closeBuffer(r):(i.context=r,this.add(i),n.add(i))},e}(m);function lt(t){return function(e){return e.lift(new ht(t))}}var ht=function(){function t(t){this.closingSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new ft(t,this.closingSelector))},t}(),ft=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.__extends(e,t),e.prototype._next=function(t){this.buffer.push(t)},e.prototype._complete=function(){var e=this.buffer;e&&this.destination.next(e),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.buffer=null,this.subscribing=!1},e.prototype.notifyNext=function(t,e,n,r,i){this.openBuffer()},e.prototype.notifyComplete=function(){this.subscribing?this.complete():this.openBuffer()},e.prototype.openBuffer=function(){var t=this.closingSubscription;t&&(this.remove(t),t.unsubscribe());var e,n=this.buffer;this.buffer&&this.destination.next(n),this.buffer=[];try{e=(0,this.closingSelector)()}catch(t){return this.error(t)}t=new p,this.closingSubscription=t,this.add(t),this.subscribing=!0,t.add(k(this,e)),this.subscribing=!1},e}(m);function pt(t){return function(e){var n=new dt(t),r=e.lift(n);return n.caught=r}}var dt=function(){function t(t){this.selector=t}return t.prototype.call=function(t,e){return e.subscribe(new bt(t,this.selector,this.caught))},t}(),bt=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.selector=n,i.caught=r,i}return r.__extends(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 _(this,void 0,void 0);this.add(r),k(this,n,void 0,void 0,r)}},e}(m);function vt(t,e){return new I(e?function(n){var r=new p,i=0;return r.add(e.schedule((function(){i!==t.length?(n.next(t[i++]),n.closed||r.add(this.schedule())):n.complete()}))),r}:D(t))}var yt={};var mt=function(){function t(t){this.resultSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new _t(t,this.resultSelector))},t}(),_t=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.__extends(e,t),e.prototype._next=function(t){this.values.push(yt),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(k(this,r,r,n))}}},e.prototype.notifyComplete=function(t){0==(this.active-=1)&&this.destination.complete()},e.prototype.notifyNext=function(t,e,n,r,i){var o=this.values,s=o[n],u=this.toRespond?s===yt?--this.toRespond:this.toRespond:0;o[n]=e,0===u&&(this.resultSelector?this._tryResultSelector(o):this.destination.next(o.slice()))},e.prototype._tryResultSelector=function(t){var e;try{e=this.resultSelector.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(m);function gt(t){return function(e){return e.lift(new mt(t))}}function xt(t,e){if(!e)return t instanceof I?t:new I(V(t));if(null!=t){if(function(t){return t&&"function"==typeof t[g]}(t))return function(t,e){return new I(e?function(n){var r=new p;return r.add(e.schedule((function(){var i=t[g]();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}:N(t))}(t,e);if(A(t))return function(t,e){return new I(e?function(n){var r=new p;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(t))}(t,e);if(P(t))return vt(t,e);if(function(t){return t&&"function"==typeof t[O]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new I(e?function(n){var r,i=new p;return i.add((function(){r&&"function"==typeof r.return&&r.return()})),i.add(e.schedule((function(){r=t[O](),i.add(e.schedule((function(){if(!n.closed){var t,e;try{var i=r.next();t=i.value,e=i.done}catch(t){return void n.error(t)}e?n.complete():(n.next(t),this.schedule())}})))}))),i}:j(t))}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}function wt(){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&&a(t[0])&&(t=t[0].slice()),function(e){return e.lift.call(xt([e].concat(t)),new mt(n))}}var St=new I((function(t){return t.complete()}));function It(t){return t?function(t){return new I((function(e){return t.schedule((function(){return e.complete()}))}))}(t):St}function Et(t){var e=new I((function(e){e.next(t),e.complete()}));return e._isScalar=!0,e.value=t,e}function Dt(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[t.length-1];switch(L(n)?t.pop():n=void 0,t.length){case 0:return It(n);case 1:return n?vt(t,n):Et(t[0]);default:return vt(t,n)}}function Tt(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 Ct(t,e))}}var Ct=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new Ot(t,this.project,this.thisArg))},t}(),Ot=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.__extends(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}(v);function jt(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof e?function(r){return r.pipe(jt((function(n,r){return xt(t(n,r)).pipe(Tt((function(t,i){return e(n,t,r,i)})))}),n))}:("number"==typeof e&&(n=e),function(e){return e.lift(new Nt(t,n))})}var Nt=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 Pt(t,this.project,this.concurrent))},t}(),Pt=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.__extends(e,t),e.prototype._next=function(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this.active++,this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){var r=new _(this,void 0,void 0);this.destination.add(r),k(this,t,e,n,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,e,n,r,i){this.destination.next(e)},e.prototype.notifyComplete=function(t){var e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(m);function At(t){return t}function Vt(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),jt(At,t)}function kt(){return Vt(1)}function Rt(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return kt()(Dt.apply(void 0,t))}function Mt(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return e.lift.call(Rt.apply(void 0,[e].concat(t)))}}function Ft(t,e){return jt(t,e,1)}function Bt(t,e){return Ft((function(){return t}),e)}function Wt(t){return function(e){return e.lift(new Ht(t,e))}}var Ht=function(){function t(t,e){this.predicate=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new zt(t,this.predicate,this.source))},t}(),zt=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.__extends(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}(v);function Yt(t){return function(e){return e.lift(new Lt(t))}}var Lt=function(){function t(t){this.durationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new Kt(t,this.durationSelector))},t}(),Kt=function(t){function e(e,n){var r=t.call(this,e)||this;return r.durationSelector=n,r.hasValue=!1,r.durationSubscription=null,r}return r.__extends(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=k(this,e))&&!n.closed&&this.add(this.durationSubscription=n)},e.prototype.notifyNext=function(t,e,n,r,i){this.emitValue()},e.prototype.notifyComplete=function(){this.emitValue()},e.prototype.emitValue=function(){if(this.hasValue){var e=this.value,n=this.durationSubscription;n&&(this.durationSubscription=null,n.unsubscribe(),this.remove(n)),this.value=null,this.hasValue=!1,t.prototype._next.call(this,e)}},e}(m);function qt(t,e){return void 0===e&&(e=z),function(n){return n.lift(new Ut(t,e))}}var Ut=function(){function t(t,e){this.dueTime=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new Xt(t,this.dueTime,this.scheduler))},t}(),Xt=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.__extends(e,t),e.prototype._next=function(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(Zt,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}(v);function Zt(t){t.debouncedNext()}function Gt(t){return void 0===t&&(t=null),function(e){return e.lift(new $t(t))}}var Qt,$t=function(){function t(t){this.defaultValue=t}return t.prototype.call=function(t,e){return e.subscribe(new Jt(t,this.defaultValue))},t}(),Jt=function(t){function e(e,n){var r=t.call(this,e)||this;return r.defaultValue=n,r.isEmpty=!0,r}return r.__extends(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}(v);function te(t){return t instanceof Date&&!isNaN(+t)}function ee(t,e){return new I(e?function(n){return e.schedule(ne,0,{error:t,subscriber:n})}:function(e){return e.error(t)})}function ne(t){var e=t.error;t.subscriber.error(e)}Qt||(Qt={});var re=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 Dt(this.value);case"E":return ee(this.error);case"C":return It()}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 ie(t,e){void 0===e&&(e=z);var n=te(t)?+t-e.now():Math.abs(t);return function(t){return t.lift(new oe(n,e))}}var oe=function(){function t(t,e){this.delay=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new se(t,this.delay,this.scheduler))},t}(),se=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.__extends(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 ue(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}},e.prototype._next=function(t){this.scheduleNotification(re.createNext(t))},e.prototype._error=function(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.scheduleNotification(re.createComplete()),this.unsubscribe()},e}(v),ue=function(){return function(t,e){this.time=t,this.notification=e}}();function ce(t,e){return e?function(n){return new he(n,e).lift(new ae(t))}:function(e){return e.lift(new ae(t))}}var ae=function(){function t(t){this.delayDurationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new le(t,this.delayDurationSelector))},t}(),le=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.__extends(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=k(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}(m),he=function(t){function e(e,n){var r=t.call(this)||this;return r.source=e,r.subscriptionDelay=n,r}return r.__extends(e,t),e.prototype._subscribe=function(t){this.subscriptionDelay.subscribe(new fe(t,this.source))},e}(I),fe=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.__extends(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}(v);function pe(){return function(t){return t.lift(new de)}}var de=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new be(t))},t}(),be=function(t){function e(e){return t.call(this,e)||this}return r.__extends(e,t),e.prototype._next=function(t){t.observe(this.destination)},e}(v);function ve(t,e){return function(n){return n.lift(new ye(t,e))}}var ye=function(){function t(t,e){this.keySelector=t,this.flushes=e}return t.prototype.call=function(t,e){return e.subscribe(new me(t,this.keySelector,this.flushes))},t}(),me=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.keySelector=n,i.values=new Set,r&&i.add(k(i,r)),i}return r.__extends(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.values.clear()},e.prototype.notifyError=function(t,e){this._error(t)},e.prototype._next=function(t){this.keySelector?this._useKeySelector(t):this._finalizeNext(t,t)},e.prototype._useKeySelector=function(t){var e,n=this.destination;try{e=this.keySelector(t)}catch(t){return void n.error(t)}this._finalizeNext(e,t)},e.prototype._finalizeNext=function(t,e){var n=this.values;n.has(t)||(n.add(t),this.destination.next(e))},e}(m);function _e(t,e){return function(n){return n.lift(new ge(t,e))}}var ge=function(){function t(t,e){this.compare=t,this.keySelector=e}return t.prototype.call=function(t,e){return e.subscribe(new xe(t,this.compare,this.keySelector))},t}(),xe=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.__extends(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}(v);function we(t,e){return _e((function(n,r){return e?e(n[t],r[t]):n[t]===r[t]}))}function Se(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}Se.prototype=Object.create(Error.prototype);var Ie=Se;function Ee(t,e){return function(n){return n.lift(new De(t,e))}}var De=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new Te(t,this.predicate,this.thisArg))},t}(),Te=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.__extends(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}(v);function Ce(t,e,n){return function(r){return r.lift(new Oe(t,e,n))}}var Oe=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 je(t,this.nextOrObserver,this.error,this.complete))},t}(),je=function(t){function e(e,n,r,o){var s=t.call(this,e)||this;return s._tapNext=x,s._tapError=x,s._tapComplete=x,s._tapError=r||x,s._tapComplete=o||x,i(n)?(s._context=s,s._tapNext=n):n&&(s._context=n,s._tapNext=n.next||x,s._tapError=n.error||x,s._tapComplete=n.complete||x),s}return r.__extends(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}(v);function Ne(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}Ne.prototype=Object.create(Error.prototype);var Pe=Ne,Ae=function(t){return void 0===t&&(t=Ve),Ce({hasValue:!1,next:function(){this.hasValue=!0},complete:function(){if(!this.hasValue)throw t()}})};function Ve(){return new Pe}function ke(t){return function(e){return 0===t?It():e.lift(new Re(t))}}var Re=function(){function t(t){if(this.total=t,this.total<0)throw new Ie}return t.prototype.call=function(t,e){return e.subscribe(new Me(t,this.total))},t}(),Me=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.count=0,r}return r.__extends(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}(v);function Fe(t,e){if(t<0)throw new Ie;var n=arguments.length>=2;return function(r){return r.pipe(Ee((function(e,n){return n===t})),ke(1),n?Gt(e):Ae((function(){return new Ie})))}}function Be(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){var n=t[t.length-1];L(n)?t.pop():n=null;var r=t.length;return Rt(e,1!==r||n?r>0?vt(t,n):It(n):Et(t[0]))}}function We(t,e){return function(n){return n.lift(new He(t,e,n))}}var He=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 ze(t,this.predicate,this.thisArg,this.source))},t}(),ze=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.__extends(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}(v);function Ye(){return function(t){return t.lift(new Le)}}var Le=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new Ke(t))},t}(),Ke=function(t){function e(e){var n=t.call(this,e)||this;return n.hasCompleted=!1,n.hasSubscription=!1,n}return r.__extends(e,t),e.prototype._next=function(t){this.hasSubscription||(this.hasSubscription=!0,this.add(k(this,t)))},e.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()},e.prototype.notifyComplete=function(t){this.remove(t),this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},e}(m);function qe(t,e){return e?function(n){return n.pipe(qe((function(n,r){return xt(t(n,r)).pipe(Tt((function(t,i){return e(n,t,r,i)})))})))}:function(e){return e.lift(new Ue(t))}}var Ue=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new Xe(t,this.project))},t}(),Xe=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.__extends(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,t,n)},e.prototype._innerSub=function(t,e,n){var r=new _(this,void 0,void 0);this.destination.add(r),k(this,t,e,n,r)},e.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()},e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(e)},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.remove(t),this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},e}(m);function Ze(t,e,n){return void 0===e&&(e=Number.POSITIVE_INFINITY),void 0===n&&(n=void 0),e=(e||0)<1?Number.POSITIVE_INFINITY:e,function(r){return r.lift(new Ge(t,e,n))}}var Ge=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 Qe(t,this.project,this.concurrent,this.scheduler))},t}(),Qe=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.__extends(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(k(this,t,e,n))},e.prototype._complete=function(){this.hasCompleted=!0,this.hasCompleted&&0===this.active&&this.destination.complete(),this.unsubscribe()},e.prototype.notifyNext=function(t,e,n,r,i){this._next(e)},e.prototype.notifyComplete=function(t){var e=this.buffer;this.destination.remove(t),this.active--,e&&e.length>0&&this._next(e.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()},e}(m);function $e(t){return function(e){return e.lift(new Je(t))}}var Je=function(){function t(t){this.callback=t}return t.prototype.call=function(t,e){return e.subscribe(new tn(t,this.callback))},t}(),tn=function(t){function e(e,n){var r=t.call(this,e)||this;return r.add(new p(n)),r}return r.__extends(e,t),e}(v);function en(t,e){if("function"!=typeof t)throw new TypeError("predicate is not a function");return function(n){return n.lift(new nn(t,n,!1,e))}}var nn=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 rn(t,this.predicate,this.source,this.yieldIndex,this.thisArg))},t}(),rn=function(t){function e(e,n,r,i,o){var s=t.call(this,e)||this;return s.predicate=n,s.source=r,s.yieldIndex=i,s.thisArg=o,s.index=0,s}return r.__extends(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}(v);function on(t,e){return function(n){return n.lift(new nn(t,n,!0,e))}}function sn(t,e){var n=arguments.length>=2;return function(r){return r.pipe(t?Ee((function(e,n){return t(e,n,r)})):At,ke(1),n?Gt(e):Ae((function(){return new Pe})))}}function un(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}un.prototype=Object.create(Error.prototype);var cn=un,an=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.__extends(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}(p),ln=function(t){function e(e){var n=t.call(this,e)||this;return n.destination=e,n}return r.__extends(e,t),e}(v),hn=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.__extends(e,t),e.prototype[b]=function(){return new ln(this)},e.prototype.lift=function(t){var e=new fn(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new cn;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 cn;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 cn;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 cn;return t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){if(this.closed)throw new cn;return this.hasError?(t.error(this.thrownError),p.EMPTY):this.isStopped?(t.complete(),p.EMPTY):(this.observers.push(t),new an(this,t))},e.prototype.asObservable=function(){var t=new I;return t.source=this,t},e.create=function(t,e){return new fn(t,e)},e}(I),fn=function(t){function e(e,n){var r=t.call(this)||this;return r.destination=e,r.source=n,r}return r.__extends(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):p.EMPTY},e}(hn);function pn(t,e,n,r){return function(i){return i.lift(new dn(t,e,n,r))}}var dn=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 bn(t,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))},t}(),bn=function(t){function e(e,n,r,i,o){var s=t.call(this,e)||this;return s.keySelector=n,s.elementSelector=r,s.durationSelector=i,s.subjectSelector=o,s.groups=null,s.attemptedToUnsubscribe=!1,s.count=0,s}return r.__extends(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 hn,n.set(e,i);var o=new yn(e,i,this);if(this.destination.next(o),this.durationSelector){var s=void 0;try{s=this.durationSelector(new yn(e,i))}catch(t){return void this.error(t)}this.add(s.subscribe(new vn(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}(v),vn=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.__extends(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}(v),yn=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.__extends(e,t),e.prototype._subscribe=function(t){var e=new p,n=this.refCountSubscription,r=this.groupSubject;return n&&!n.closed&&e.add(new mn(n)),e.add(r.subscribe(t)),e},e}(I),mn=function(t){function e(e){var n=t.call(this)||this;return n.parent=e,e.count++,n}return r.__extends(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}(p);function _n(){return function(t){return t.lift(new gn)}}var gn=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new xn(t))},t}(),xn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype._next=function(t){},e}(v);function wn(){return function(t){return t.lift(new Sn)}}var Sn=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new In(t))},t}(),In=function(t){function e(e){return t.call(this,e)||this}return r.__extends(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}(v);function En(t){return function(e){return 0===t?It():e.lift(new Dn(t))}}var Dn=function(){function t(t){if(this.total=t,this.total<0)throw new Ie}return t.prototype.call=function(t,e){return e.subscribe(new Tn(t,this.total))},t}(),Tn=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.__extends(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}(v);function Cn(t,e){var n=arguments.length>=2;return function(r){return r.pipe(t?Ee((function(e,n){return t(e,n,r)})):At,En(1),n?Gt(e):Ae((function(){return new Pe})))}}function On(t){return function(e){return e.lift(new jn(t))}}var jn=function(){function t(t){this.value=t}return t.prototype.call=function(t,e){return e.subscribe(new Nn(t,this.value))},t}(),Nn=function(t){function e(e,n){var r=t.call(this,e)||this;return r.value=n,r}return r.__extends(e,t),e.prototype._next=function(t){this.destination.next(this.value)},e}(v);function Pn(){return function(t){return t.lift(new An)}}var An=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new Vn(t))},t}(),Vn=function(t){function e(e){return t.call(this,e)||this}return r.__extends(e,t),e.prototype._next=function(t){this.destination.next(re.createNext(t))},e.prototype._error=function(t){var e=this.destination;e.next(re.createError(t)),e.complete()},e.prototype._complete=function(){var t=this.destination;t.next(re.createComplete()),t.complete()},e}(v);function kn(t,e){var n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new Rn(t,e,n))}}var Rn=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 Mn(t,this.accumulator,this.seed,this.hasSeed))},t}(),Mn=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.__extends(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}(v);function Fn(t,e){return arguments.length>=2?function(n){return w(kn(t,e),En(1),Gt(e))(n)}:function(e){return w(kn((function(e,n,r){return t(e,n,r+1)})),En(1))(e)}}function Bn(t){return Fn("function"==typeof t?function(e,n){return t(e,n)>0?e:n}:function(t,e){return t>e?t:e})}function Wn(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=Number.POSITIVE_INFINITY,r=null,i=t[t.length-1];return L(i)?(r=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof i&&(n=t.pop()),null===r&&1===t.length&&t[0]instanceof I?t[0]:Vt(n)(vt(t,r))}function Hn(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return e.lift.call(Wn.apply(void 0,[e].concat(t)))}}function zn(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof e?jt((function(){return t}),e,n):("number"==typeof e&&(n=e),jt((function(){return t}),n))}function Yn(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),function(r){return r.lift(new Ln(t,e,n))}}var Ln=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 Kn(t,this.accumulator,this.seed,this.concurrent))},t}(),Kn=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.__extends(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,t,e)}else this.buffer.push(t)},e.prototype._innerSub=function(t,e,n){var r=new _(this,void 0,void 0);this.destination.add(r),k(this,t,e,n,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,e,n,r,i){var o=this.destination;this.acc=e,this.hasValue=!0,o.next(e)},e.prototype.notifyComplete=function(t){var e=this.buffer;this.destination.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())},e}(m);function qn(t){return Fn("function"==typeof t?function(e,n){return t(e,n)<0?e:n}:function(t,e){return t<e?t:e})}function Un(){return function(t){return t.lift(new Xn(t))}}var Xn=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var n=this.connectable;n._refCount++;var r=new Zn(t,n),i=e.subscribe(r);return r.closed||(r.connection=n.connect()),i},t}(),Zn=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return r.__extends(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}(v),Gn=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.__extends(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 p).add(this.source.subscribe(new $n(this.getSubject(),this))),t.closed?(this._connection=null,t=p.EMPTY):this._connection=t),t},e.prototype.refCount=function(){return Un()(this)},e}(I).prototype,Qn={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:Gn._subscribe},_isComplete:{value:Gn._isComplete,writable:!0},getSubject:{value:Gn.getSubject},connect:{value:Gn.connect},refCount:{value:Gn.refCount}},$n=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return r.__extends(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}(ln);function Jn(t,e){return function(n){var r;if(r="function"==typeof t?t:function(){return t},"function"==typeof e)return n.lift(new tr(r,e));var i=Object.create(n,Qn);return i.source=n,i.subjectFactory=r,i}}var tr=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}();function er(t,e){return void 0===e&&(e=0),function(n){return n.lift(new nr(t,e))}}var nr=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 rr(t,this.scheduler,this.delay))},t}(),rr=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.__extends(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 ir(t,this.destination)))},e.prototype._next=function(t){this.scheduleMessage(re.createNext(t))},e.prototype._error=function(t){this.scheduleMessage(re.createError(t)),this.unsubscribe()},e.prototype._complete=function(){this.scheduleMessage(re.createComplete()),this.unsubscribe()},e}(v),ir=function(){return function(t,e){this.notification=t,this.destination=e}}();function or(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 1===t.length&&a(t[0])&&(t=t[0]),function(e){return e.lift(new sr(t))}}var sr=function(){function t(t){this.nextSources=t}return t.prototype.call=function(t,e){return e.subscribe(new ur(t,this.nextSources))},t}(),ur=function(t){function e(e,n){var r=t.call(this,e)||this;return r.destination=e,r.nextSources=n,r}return r.__extends(e,t),e.prototype.notifyError=function(t,e){this.subscribeToNextSource()},e.prototype.notifyComplete=function(t){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 _(this,void 0,void 0);this.destination.add(e),k(this,t,void 0,void 0,e)}else this.destination.complete()},e}(m);function cr(){return function(t){return t.lift(new ar)}}var ar=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new lr(t))},t}(),lr=function(t){function e(e){var n=t.call(this,e)||this;return n.hasPrev=!1,n}return r.__extends(e,t),e.prototype._next=function(t){this.hasPrev?this.destination.next([this.prev,t]):this.hasPrev=!0,this.prev=t},e}(v);function hr(t,e){function n(){return!n.pred.apply(n.thisArg,arguments)}return n.pred=t,n.thisArg=e,n}function fr(t,e){return function(n){return[Ee(t,e)(n),Ee(hr(t,e))(n)]}}function pr(){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 Tt(dr(t,n))(e)}}function dr(t,e){return function(n){for(var r=n,i=0;i<e;i++){var o=r[t[i]];if(void 0===o)return;r=o}return r}}function br(t){return t?Jn((function(){return new hn}),t):Jn(new hn)}var vr=function(t){function e(e){var n=t.call(this)||this;return n._value=e,n}return r.__extends(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 cn;return this._value},e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)},e}(hn);function yr(t){return function(e){return Jn(new vr(t))(e)}}var mr=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.__extends(e,t),e.prototype._subscribe=function(e){return this.hasError?(e.error(this.thrownError),p.EMPTY):this.hasCompleted&&this.hasNext?(e.next(this.value),e.complete(),p.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}(hn);function _r(){return function(t){return Jn(new mr)(t)}}var gr=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return r.__extends(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}(B),xr=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e}(H))(gr),wr=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.__extends(e,t),e.prototype.nextInfiniteTimeWindow=function(e){var n=this._events;n.push(e),n.length>this._bufferSize&&n.shift(),t.prototype.next.call(this,e)},e.prototype.nextTimeWindow=function(e){this._events.push(new Sr(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 cn;if(this.isStopped||this.hasError?e=p.EMPTY:(this.observers.push(t),e=new an(this,t)),i&&t.add(t=new rr(t,i)),n)for(var s=0;s<o&&!t.closed;s++)t.next(r[s]);else for(s=0;s<o&&!t.closed;s++)t.next(r[s].value);return this.hasError?t.error(this.thrownError):this.isStopped&&t.complete(),e},e.prototype._getNow=function(){return(this.scheduler||xr).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}(hn),Sr=function(){return function(t,e){this.time=t,this.value=e}}();function Ir(t,e,n,r){n&&"function"!=typeof n&&(r=n);var i="function"==typeof n?n:void 0,o=new wr(t,e,r);return function(t){return Jn((function(){return o}),i)(t)}}function Er(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(1===t.length){if(!a(t[0]))return t[0];t=t[0]}return vt(t,void 0).lift(new Dr)}var Dr=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new Tr(t))},t}(),Tr=function(t){function e(e){var n=t.call(this,e)||this;return n.hasFirst=!1,n.observables=[],n.subscriptions=[],n}return r.__extends(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=k(this,r,r,n);this.subscriptions&&this.subscriptions.push(i),this.add(i)}this.observables=null}},e.prototype.notifyNext=function(t,e,n,r,i){if(!this.hasFirst){this.hasFirst=!0;for(var o=0;o<this.subscriptions.length;o++)if(o!==n){var s=this.subscriptions[o];s.unsubscribe(),this.remove(s)}this.subscriptions=null}this.destination.next(e)},e}(m);function Cr(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return 1===t.length&&a(t[0])&&(t=t[0]),e.lift.call(Er.apply(void 0,[e].concat(t)))}}function Or(t){return void 0===t&&(t=-1),function(e){return 0===t?It():t<0?e.lift(new jr(-1,e)):e.lift(new jr(t-1,e))}}var jr=function(){function t(t,e){this.count=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new Nr(t,this.count,this.source))},t}(),Nr=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.count=n,i.source=r,i}return r.__extends(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}(v);function Pr(t){return function(e){return e.lift(new Ar(t))}}var Ar=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){return e.subscribe(new Vr(t,this.notifier,e))},t}(),Vr=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.__extends(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)},e.prototype.notifyComplete=function(e){if(!1===this.sourceIsBeingSubscribedTo)return t.prototype.complete.call(this)},e.prototype.complete=function(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries||this.subscribeToRetries(),!this.retriesSubscription||this.retriesSubscription.closed)return t.prototype.complete.call(this);this._unsubscribeAndRecycle(),this.notifications.next()}},e.prototype._unsubscribe=function(){var t=this.notifications,e=this.retriesSubscription;t&&(t.unsubscribe(),this.notifications=null),e&&(e.unsubscribe(),this.retriesSubscription=null),this.retries=null},e.prototype._unsubscribeAndRecycle=function(){var e=this._unsubscribe;return this._unsubscribe=null,t.prototype._unsubscribeAndRecycle.call(this),this._unsubscribe=e,this},e.prototype.subscribeToRetries=function(){var e;this.notifications=new hn;try{e=(0,this.notifier)(this.notifications)}catch(e){return t.prototype.complete.call(this)}this.retries=e,this.retriesSubscription=k(this,e)},e}(m);function kr(t){return void 0===t&&(t=-1),function(e){return e.lift(new Rr(t,e))}}var Rr=function(){function t(t,e){this.count=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new Mr(t,this.count,this.source))},t}(),Mr=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.count=n,i.source=r,i}return r.__extends(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}(v);function Fr(t){return function(e){return e.lift(new Br(t,e))}}var Br=function(){function t(t,e){this.notifier=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new Wr(t,this.notifier,this.source))},t}(),Wr=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.notifier=n,i.source=r,i}return r.__extends(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=this.errors,r=this.retries,i=this.retriesSubscription;if(r)this.errors=null,this.retriesSubscription=null;else{n=new hn;try{r=(0,this.notifier)(n)}catch(e){return t.prototype.error.call(this,e)}i=k(this,r)}this._unsubscribeAndRecycle(),this.errors=n,this.retries=r,this.retriesSubscription=i,n.next(e)}},e.prototype._unsubscribe=function(){var t=this.errors,e=this.retriesSubscription;t&&(t.unsubscribe(),this.errors=null),e&&(e.unsubscribe(),this.retriesSubscription=null),this.retries=null},e.prototype.notifyNext=function(t,e,n,r,i){var o=this._unsubscribe;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=o,this.source.subscribe(this)},e}(m);function Hr(t){return function(e){return e.lift(new zr(t))}}var zr=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){var n=new Yr(t),r=e.subscribe(n);return r.add(k(n,this.notifier)),r},t}(),Yr=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.hasValue=!1,e}return r.__extends(e,t),e.prototype._next=function(t){this.value=t,this.hasValue=!0},e.prototype.notifyNext=function(t,e,n,r,i){this.emitValue()},e.prototype.notifyComplete=function(){this.emitValue()},e.prototype.emitValue=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))},e}(m);function Lr(t,e){return void 0===e&&(e=z),function(n){return n.lift(new Kr(t,e))}}var Kr=function(){function t(t,e){this.period=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new qr(t,this.period,this.scheduler))},t}(),qr=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(Ur,n,{subscriber:i,period:n})),i}return r.__extends(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}(v);function Ur(t){var e=t.subscriber,n=t.period;e.notifyNext(),this.schedule(t,n)}function Xr(t,e){return function(n){return n.lift(new Zr(t,e))}}var Zr=function(){function t(t,e){this.compareTo=t,this.comparator=e}return t.prototype.call=function(t,e){return e.subscribe(new Gr(t,this.compareTo,this.comparator))},t}(),Gr=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 Qr(e,i))),i}return r.__extends(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}(v),Qr=function(t){function e(e,n){var r=t.call(this,e)||this;return r.parent=n,r}return r.__extends(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}(v);function $r(){return new hn}function Jr(){return function(t){return Un()(Jn($r)(t))}}function ti(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,s=void 0===o?Number.POSITIVE_INFINITY:o,u=t.refCount,c=t.scheduler,a=0,l=!1,h=!1;return function(t){a++,e&&!l||(l=!1,e=new wr(i,s,c),n=t.subscribe({next:function(t){e.next(t)},error:function(t){l=!0,e.error(t)},complete:function(){h=!0,e.complete()}}));var r=e.subscribe(this);this.add((function(){a--,r.unsubscribe(),n&&!h&&u&&0===a&&(n.unsubscribe(),n=void 0,e=void 0)}))}}(r))}}function ei(t){return function(e){return e.lift(new ni(t,e))}}var ni=function(){function t(t,e){this.predicate=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new ri(t,this.predicate,this.source))},t}(),ri=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.__extends(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 Pe)},e}(v);function ii(t){return function(e){return e.lift(new oi(t))}}var oi=function(){function t(t){this.total=t}return t.prototype.call=function(t,e){return e.subscribe(new si(t,this.total))},t}(),si=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.count=0,r}return r.__extends(e,t),e.prototype._next=function(t){++this.count>this.total&&this.destination.next(t)},e}(v);function ui(t){return function(e){return e.lift(new ci(t))}}var ci=function(){function t(t){if(this._skipCount=t,this._skipCount<0)throw new Ie}return t.prototype.call=function(t,e){return 0===this._skipCount?e.subscribe(new v(t)):e.subscribe(new ai(t,this._skipCount))},t}(),ai=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.__extends(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}(v);function li(t){return function(e){return e.lift(new hi(t))}}var hi=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){return e.subscribe(new fi(t,this.notifier))},t}(),fi=function(t){function e(e,n){var r=t.call(this,e)||this;r.hasValue=!1;var i=new _(r,void 0,void 0);return r.add(i),r.innerSubscription=i,k(r,n,void 0,void 0,i),r}return r.__extends(e,t),e.prototype._next=function(e){this.hasValue&&t.prototype._next.call(this,e)},e.prototype.notifyNext=function(t,e,n,r,i){this.hasValue=!0,this.innerSubscription&&this.innerSubscription.unsubscribe()},e.prototype.notifyComplete=function(){},e}(m);function pi(t){return function(e){return e.lift(new di(t))}}var di=function(){function t(t){this.predicate=t}return t.prototype.call=function(t,e){return e.subscribe(new bi(t,this.predicate))},t}(),bi=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.__extends(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}(v);function vi(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){var n=t[t.length-1];L(n)?t.pop():n=null;var r=t.length;return Rt(1!==r||n?r>0?vt(t,n):It(n):Et(t[0]),e)}}var yi=1,mi={};var _i=function(t){var e=yi++;return mi[e]=t,Promise.resolve().then((function(){return function(t){var e=mi[t];e&&e()}(e)})),e},gi=function(t){delete mi[t]},xi=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return r.__extends(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=_i(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&&(gi(n),e.scheduled=void 0)},e}(B),wi=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(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}(H))(xi),Si=function(t){function e(e,n,r){void 0===n&&(n=0),void 0===r&&(r=wi);var i=t.call(this)||this;return i.source=e,i.delayTime=n,i.scheduler=r,(!Y(n)||n<0)&&(i.delayTime=0),r&&"function"==typeof r.schedule||(i.scheduler=wi),i}return r.__extends(e,t),e.create=function(t,n,r){return void 0===n&&(n=0),void 0===r&&(r=wi),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}(I);function Ii(t,e){return void 0===e&&(e=0),function(n){return n.lift(new Ei(t,e))}}var Ei=function(){function t(t,e){this.scheduler=t,this.delay=e}return t.prototype.call=function(t,e){return new Si(e,this.delay,this.scheduler).subscribe(t)},t}();function Di(t,e){return"function"==typeof e?function(n){return n.pipe(Di((function(n,r){return xt(t(n,r)).pipe(Tt((function(t,i){return e(n,t,r,i)})))})))}:function(e){return e.lift(new Ti(t))}}var Ti=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new Ci(t,this.project))},t}(),Ci=function(t){function e(e,n){var r=t.call(this,e)||this;return r.project=n,r.index=0,r}return r.__extends(e,t),e.prototype._next=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){var r=this.innerSubscription;r&&r.unsubscribe();var i=new _(this,void 0,void 0);this.destination.add(i),this.innerSubscription=k(this,t,e,n,i)},e.prototype._complete=function(){var e=this.innerSubscription;e&&!e.closed||t.prototype._complete.call(this),this.unsubscribe()},e.prototype._unsubscribe=function(){this.innerSubscription=null},e.prototype.notifyComplete=function(e){this.destination.remove(e),this.innerSubscription=null,this.isStopped&&t.prototype._complete.call(this)},e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(e)},e}(m);function Oi(){return Di(At)}function ji(t,e){return e?Di((function(){return t}),e):Di((function(){return t}))}function Ni(t){return function(e){return e.lift(new Pi(t))}}var Pi=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){var n=new Ai(t),r=k(n,this.notifier);return r&&!n.seenValue?(n.add(r),e.subscribe(n)):n},t}(),Ai=function(t){function e(e){var n=t.call(this,e)||this;return n.seenValue=!1,n}return r.__extends(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.seenValue=!0,this.complete()},e.prototype.notifyComplete=function(){},e}(m);function Vi(t,e){return void 0===e&&(e=!1),function(n){return n.lift(new ki(t,e))}}var ki=function(){function t(t,e){this.predicate=t,this.inclusive=e}return t.prototype.call=function(t,e){return e.subscribe(new Ri(t,this.predicate,this.inclusive))},t}(),Ri=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.__extends(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}(v),Mi={leading:!0,trailing:!1};function Fi(t,e){return void 0===e&&(e=Mi),function(n){return n.lift(new Bi(t,e.leading,e.trailing))}}var Bi=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 Wi(t,this.durationSelector,this.leading,this.trailing))},t}(),Wi=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.__extends(e,t),e.prototype._next=function(t){this._hasValue=!0,this._sendValue=t,this._throttled||(this._leading?this.send():this.throttle(t))},e.prototype.send=function(){var t=this._hasValue,e=this._sendValue;t&&(this.destination.next(e),this.throttle(e)),this._hasValue=!1,this._sendValue=null},e.prototype.throttle=function(t){var e=this.tryDurationSelector(t);e&&this.add(this._throttled=k(this,e))},e.prototype.tryDurationSelector=function(t){try{return this.durationSelector(t)}catch(t){return this.destination.error(t),null}},e.prototype.throttlingDone=function(){var t=this._throttled,e=this._trailing;t&&t.unsubscribe(),this._throttled=null,e&&this.send()},e.prototype.notifyNext=function(t,e,n,r,i){this.throttlingDone()},e.prototype.notifyComplete=function(){this.throttlingDone()},e}(m);function Hi(t,e,n){return void 0===e&&(e=z),void 0===n&&(n=Mi),function(r){return r.lift(new zi(t,e,n.leading,n.trailing))}}var zi=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 Yi(t,this.duration,this.scheduler,this.leading,this.trailing))},t}(),Yi=function(t){function e(e,n,r,i,o){var s=t.call(this,e)||this;return s.duration=n,s.scheduler=r,s.leading=i,s.trailing=o,s._hasTrailingValue=!1,s._trailingValue=null,s}return r.__extends(e,t),e.prototype._next=function(t){this.throttled?this.trailing&&(this._trailingValue=t,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(Li,this.duration,{subscriber:this})),this.leading&&this.destination.next(t))},e.prototype._complete=function(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()},e.prototype.clearThrottle=function(){var t=this.throttled;t&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),t.unsubscribe(),this.remove(t),this.throttled=null)},e}(v);function Li(t){t.subscriber.clearThrottle()}function Ki(t){return void 0===t&&(t=z),function(e){return n=function(){return e.pipe(kn((function(e,n){var r=e.current;return{value:n,current:t.now(),last:r}}),{current:t.now(),value:void 0,last:void 0}),Tt((function(t){var e=t.current,n=t.last,r=t.value;return new qi(r,e-n)})))},new I((function(t){var e;try{e=n()}catch(e){return void t.error(e)}return(e?xt(e):It()).subscribe(t)}));var n}}var qi=function(){return function(t,e){this.value=t,this.interval=e}}();function Ui(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}Ui.prototype=Object.create(Error.prototype);var Xi=Ui;function Zi(t,e,n){return void 0===n&&(n=z),function(r){var i=te(t),o=i?+t-n.now():Math.abs(t);return r.lift(new Gi(o,i,e,n))}}var Gi=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 Qi(t,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))},t}(),Qi=function(t){function e(e,n,r,i,o){var s=t.call(this,e)||this;return s.absoluteTimeout=n,s.waitFor=r,s.withObservable=i,s.scheduler=o,s.action=null,s.scheduleTimeout(),s}return r.__extends(e,t),e.dispatchTimeout=function(t){var e=t.withObservable;t._unsubscribeAndRecycle(),t.add(k(t,e))},e.prototype.scheduleTimeout=function(){var t=this.action;t?this.action=t.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(e.dispatchTimeout,this.waitFor,this))},e.prototype._next=function(e){this.absoluteTimeout||this.scheduleTimeout(),t.prototype._next.call(this,e)},e.prototype._unsubscribe=function(){this.action=null,this.scheduler=null,this.withObservable=null},e}(m);function $i(t,e){return void 0===e&&(e=z),Zi(t,ee(new Xi),e)}function Ji(t){return void 0===t&&(t=z),Tt((function(e){return new to(e,t.now())}))}var to=function(){return function(t,e){this.value=t,this.timestamp=e}}();function eo(t,e,n){return 0===n?[e]:(t.push(e),t)}function no(){return Fn(eo,[])}function ro(t){return function(e){return e.lift(new io(t))}}var io=function(){function t(t){this.windowBoundaries=t}return t.prototype.call=function(t,e){var n=new oo(t),r=e.subscribe(n);return r.closed||n.add(k(n,this.windowBoundaries)),r},t}(),oo=function(t){function e(e){var n=t.call(this,e)||this;return n.window=new hn,e.next(n.window),n}return r.__extends(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.openWindow()},e.prototype.notifyError=function(t,e){this._error(t)},e.prototype.notifyComplete=function(t){this._complete()},e.prototype._next=function(t){this.window.next(t)},e.prototype._error=function(t){this.window.error(t),this.destination.error(t)},e.prototype._complete=function(){this.window.complete(),this.destination.complete()},e.prototype._unsubscribe=function(){this.window=null},e.prototype.openWindow=function(){var t=this.window;t&&t.complete();var e=this.destination,n=this.window=new hn;e.next(n)},e}(m);function so(t,e){return void 0===e&&(e=0),function(n){return n.lift(new uo(t,e))}}var uo=function(){function t(t,e){this.windowSize=t,this.startWindowEvery=e}return t.prototype.call=function(t,e){return e.subscribe(new co(t,this.windowSize,this.startWindowEvery))},t}(),co=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 hn],i.count=0,e.next(i.windows[0]),i}return r.__extends(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,s=0;s<o&&!this.closed;s++)i[s].next(t);var u=this.count-r+1;if(u>=0&&u%e==0&&!this.closed&&i.shift().complete(),++this.count%e==0&&!this.closed){var c=new hn;i.push(c),n.next(c)}},e.prototype._error=function(t){var e=this.windows;if(e)for(;e.length>0&&!this.closed;)e.shift().error(t);this.destination.error(t)},e.prototype._complete=function(){var t=this.windows;if(t)for(;t.length>0&&!this.closed;)t.shift().complete();this.destination.complete()},e.prototype._unsubscribe=function(){this.count=0,this.windows=null},e}(v);function ao(t){var e=z,n=null,r=Number.POSITIVE_INFINITY;return L(arguments[3])&&(e=arguments[3]),L(arguments[2])?e=arguments[2]:Y(arguments[2])&&(r=arguments[2]),L(arguments[1])?e=arguments[1]:Y(arguments[1])&&(n=arguments[1]),function(i){return i.lift(new lo(t,n,r,e))}}var lo=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 fo(t,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))},t}(),ho=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._numberOfNextedValues=0,e}return r.__extends(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}(hn),fo=function(t){function e(e,n,r,i,o){var s=t.call(this,e)||this;s.destination=e,s.windowTimeSpan=n,s.windowCreationInterval=r,s.maxWindowSize=i,s.scheduler=o,s.windows=[];var u=s.openWindow();if(null!==r&&r>=0){var c={subscriber:s,window:u,context:null},a={windowTimeSpan:n,windowCreationInterval:r,subscriber:s,scheduler:o};s.add(o.schedule(vo,n,c)),s.add(o.schedule(bo,r,a))}else{var l={subscriber:s,window:u,windowTimeSpan:n};s.add(o.schedule(po,n,l))}return s}return r.__extends(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 ho;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}(v);function po(t){var e=t.subscriber,n=t.windowTimeSpan,r=t.window;r&&e.closeWindow(r),t.window=e.openWindow(),this.schedule(t,n)}function bo(t){var e=t.windowTimeSpan,n=t.subscriber,r=t.scheduler,i=t.windowCreationInterval,o=n.openWindow(),s={action:this,subscription:null},u={subscriber:n,window:o,context:s};s.subscription=r.schedule(vo,e,u),this.add(s.subscription),this.schedule(t,i)}function vo(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 yo(t,e){return function(n){return n.lift(new mo(t,e))}}var mo=function(){function t(t,e){this.openings=t,this.closingSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new _o(t,this.openings,this.closingSelector))},t}(),_o=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=k(i,n,n)),i}return r.__extends(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 s=new hn,u=new p,c={window:s,subscription:u};this.contexts.push(c);var a=k(this,o,c);a.closed?this.closeWindow(this.contexts.length-1):(a.context=c,u.add(a)),this.destination.next(s)}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}(m);function go(t){return function(e){return e.lift(new xo(t))}}var xo=function(){function t(t){this.closingSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new wo(t,this.closingSelector))},t}(),wo=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.__extends(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.openWindow(i)},e.prototype.notifyError=function(t,e){this._error(t)},e.prototype.notifyComplete=function(t){this.openWindow(t)},e.prototype._next=function(t){this.window.next(t)},e.prototype._error=function(t){this.window.error(t),this.destination.error(t),this.unsubscribeClosingNotification()},e.prototype._complete=function(){this.window.complete(),this.destination.complete(),this.unsubscribeClosingNotification()},e.prototype.unsubscribeClosingNotification=function(){this.closingNotification&&this.closingNotification.unsubscribe()},e.prototype.openWindow=function(t){void 0===t&&(t=null),t&&(this.remove(t),t.unsubscribe());var e=this.window;e&&e.complete();var n,r=this.window=new hn;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=k(this,n))},e}(m);function So(){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 Io(r,n))}}var Io=function(){function t(t,e){this.observables=t,this.project=e}return t.prototype.call=function(t,e){return e.subscribe(new Eo(t,this.observables,this.project))},t}(),Eo=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 s=0;s<o;s++)i.toRespond.push(s);for(s=0;s<o;s++){var u=n[s];i.add(k(i,u,u,s))}return i}return r.__extends(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.values[n]=e;var o=this.toRespond;if(o.length>0){var s=o.indexOf(n);-1!==s&&o.splice(s,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}(m);function Do(){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(),vt(t,void 0).lift(new To(n))}var To=function(){function t(t){this.resultSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new Co(t,this.resultSelector))},t}(),Co=function(t){function e(e,n,r){void 0===r&&(r=Object.create(null));var i=t.call(this,e)||this;return i.iterators=[],i.active=0,i.resultSelector="function"==typeof n?n:null,i.values=r,i}return r.__extends(e,t),e.prototype._next=function(t){var e=this.iterators;a(t)?e.push(new jo(t)):"function"==typeof t[O]?e.push(new Oo(t[O]())):e.push(new No(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(r,n));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(s=t[r]).hasValue&&!s.hasValue())return}var i=!1,o=[];for(r=0;r<e;r++){var s,u=(s=t[r]).next();if(s.hasCompleted()&&(i=!0),u.done)return void n.complete();o.push(u.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}(v),Oo=function(){function t(t){this.iterator=t,this.nextResult=t.next()}return t.prototype.hasValue=function(){return!0},t.prototype.next=function(){var t=this.nextResult;return this.nextResult=this.iterator.next(),t},t.prototype.hasCompleted=function(){var t=this.nextResult;return t&&t.done},t}(),jo=function(){function t(t){this.array=t,this.index=0,this.length=0,this.length=t.length}return t.prototype[O]=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}(),No=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.__extends(e,t),e.prototype[O]=function(){return this},e.prototype.next=function(){var t=this.buffer;return 0===t.length&&this.isComplete?{value:null,done:!0}:{value:t.shift(),done:!1}},e.prototype.hasValue=function(){return this.buffer.length>0},e.prototype.hasCompleted=function(){return 0===this.buffer.length&&this.isComplete},e.prototype.notifyComplete=function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()},e.prototype.notifyNext=function(t,e,n,r,i){this.buffer.push(e),this.parent.checkIterators()},e.prototype.subscribe=function(t,e){return k(this,this.observable,this,e)},e}(m);function Po(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return e.lift.call(Do.apply(void 0,[e].concat(t)))}}function Ao(t){return function(e){return e.lift(new To(t))}}},function(t,e){t.exports=n},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(6),i={},o={},s=/^(?:a|input|select|option|textarea|button|object)$/i;e.matchesNodeName=function(t){return i[t]||(i[t]=function(e){return String(e.nodeName).toLowerCase()===t.toLowerCase()}),i[t]},e.matchesNodeAttr=function(t){return o[t]||(o[t]=function(e){return!!e.hasAttribute&&e.hasAttribute(t)}),o[t]},e.closest=function(t,e){for(;t&&!e(t);)t=t.parentNode;return t},e.draggableFromPoint=function(t,n){if(r.isDocumentAvailable()){var i=document.elementFromPoint(t,n);if(i){var o=i.hasAttribute("kendoDraggable"),s=null!==e.closest(i,e.matchesNodeAttr("kendoDraggable")),u=e.closest(i,e.matchesNodeAttr("kendoDraggable"));return{element:i,index:u?parseInt(u.getAttribute("data-sortable-index"),10):-1,isDraggable:o,isDraggableChild:s,parentDraggable:u,rect:i.getBoundingClientRect()}}}},e.draggableFromEvent=function(t,n){var r;if(t.changedTouches){var i=t.changedTouches[0];r=e.draggableFromPoint(i.clientX,i.clientY)}else r=e.draggableFromPoint(t.clientX,t.clientY);return n.draggables.toArray()[r?r.index:-1]},e.isFocusable=function(t){if(t.tagName){var e=t.tagName.toLowerCase(),n=t.getAttribute("tabIndex"),r="-1"===n,i=null!==n&&!r;return s.test(e)&&(i=!t.disabled&&!r),i}return!1};var u=function(t){return String(t).trim().split(" ")};e.hasClasses=function(t,e){var n=u(e);return Boolean(u(t.className).find((function(t){return n.indexOf(t)>=0})))};var c=e.matchesNodeName("kendo-sortable");e.widgetTarget=function(t){var n=e.closest(t,(function(t){return e.hasClasses(t,"k-widget")||c(t)}));return n&&!c(n)};var a=function(){if(!r.isDocumentAvailable())return!1;var t=document.createElement("div");t.style.transform="matrix(10, 0, 0, 10, 0, 0)",t.innerHTML='<div style="position: fixed; top: 10px;">child</div>',document.body.appendChild(t);var e=10!==t.children[0].getBoundingClientRect().top;return document.body.removeChild(t),e}();e.relativeContextElement=function(t){if(!t||!a)return null;for(var e=t.parentElement;e;){if("none"!==window.getComputedStyle(e).transform)return e;e=e.parentElement}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=function(t){function e(e){var n=t.call(this)||this;return Object.assign(n,e),n}return r.__extends(e,t),e}(n(3).PreventableEvent);e.NavigateEvent=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=function(t){function e(e){var n=t.call(this)||this;return Object.assign(n,e),n}return r.__extends(e,t),e}(n(3).PreventableEvent);e.DraggableEvent=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=function(t){function e(e){var n=t.call(this)||this;return Object.assign(n,e),n}return r.__extends(e,t),e}(n(3).PreventableEvent);e.DragStartEvent=i;var o=function(t){function e(e){var n=t.call(this,e)||this;return Object.assign(n,e),n}return r.__extends(e,t),e}(i);e.DragOverEvent=o;var s=function(t){function e(e){var n=t.call(this,e)||this;return Object.assign(n,e),n}return r.__extends(e,t),e}(o);e.DragEndEvent=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(5),s=n(4),u=n(16),c=n(9),a=function(){function t(t,e){this.sortable=t,this.sortableService=e,this.sortableService=e}return Object.defineProperty(t.prototype,"data",{set:function(t){this.sortable.data=t},enumerable:!0,configurable:!0}),t.prototype.nextEnabledIndex=function(t,e){for(var n=t;n<=e.data.length;n++)if(e.itemEnabled(n))return n},t.prototype.addItem=function(t,e){var n=t.index,r=this.sortableService.getSource().data[t.oldIndex],i=new u.DataAddEvent({index:n,dataItem:r});return e.dataAdd.emit(i),i.isDefaultPrevented()||(n!==e.itemWrappers.length-1||e.noDataContainer||n++,e.addDataItem(r,n)),!i.isDefaultPrevented()},t.prototype.removeItem=function(t,e){var n=this.sortableService.originDraggable,r=new u.DataRemoveEvent({index:t.oldIndex,dataItem:e.data[t.oldIndex]});return e.dataRemove.emit(r),r.isDefaultPrevented()||(n&&n.parent===e?e.hideItem(t.oldIndex,!0):e.removeDataItem(t.oldIndex)),!r.isDefaultPrevented()},t.prototype.moveItem=function(t,e){if(t.index===t.oldIndex)return!1;var n=new u.DataMoveEvent({dataItem:e.data[t.oldIndex],index:t.index,oldIndex:t.oldIndex});return e.dataMove.emit(n),n.isDefaultPrevented()||e.moveItem(t.oldIndex,t.index),!n.isDefaultPrevented()},t.prototype.removeOriginDraggable=function(){var t=this;this.removeHiddenSubscription&&this.removeHiddenSubscription.unsubscribe(),this.removeHiddenSubscription=this.sortableService.onReleaseSubject.pipe(c.take(1),c.filter((function(e){return null!==t.sortableService.originDraggable&&t.sortableService.originDraggable.hidden}))).subscribe((function(e){var n=t.sortableService.originDraggable,r=t.sortableService.getSource();n.parent!==t.sortableService.target&&((!!e.target&&(e.target.isDraggable||e.target.isDraggableChild)||n.parent!==r)&&n.parent!==t.sortableService.target&&n.parent.removeDataItem(n.index),t.sortableService.originDraggable=null)}))},t.prototype.onDragOver=function(t){var e=this.sortableService.getSource(),n=this.sortableService.target,r=n.draggables.toArray();t.isDefaultPrevented()||(t.preventDefault(),n===e?(r[t.index]!==this.lastTarget&&this.moveItem(t,n),this.lastTarget=void 0):(n.itemEnabled(t.index)||(t.index=this.nextEnabledIndex(t.index,n)),this.addItem(t,n)&&this.removeItem(t,e)&&(this.lastTarget=n.draggables.toArray()[t.index],this.removeOriginDraggable(),n.activeIndex=t.index,e.activeIndex=-1)))},t.prototype.onNavigate=function(t){if(t.ctrlKey){var e=new u.DataMoveEvent({dataItem:this.sortable.data[t.oldIndex],index:t.index,oldIndex:t.oldIndex});this.sortable.dataMove.emit(e),e.isDefaultPrevented()||this.sortable.moveItem(t.oldIndex,t.index)}else this.sortable.activeIndex=t.index},t.prototype.ngOnInit=function(){this.dragOverSubscription=this.sortable.dragOver.subscribe(this.onDragOver.bind(this)),this.navigateSubscription=this.sortable.navigate.subscribe(this.onNavigate.bind(this))},t.prototype.ngOnDestroy=function(){this.dragOverSubscription.unsubscribe(),this.navigateSubscription.unsubscribe(),this.removeHiddenSubscription&&this.removeHiddenSubscription.unsubscribe()},r.__decorate([i.Input("kendoSortableBinding"),r.__metadata("design:type",Array),r.__metadata("design:paramtypes",[Array])],t.prototype,"data",null),t=r.__decorate([i.Directive({selector:"[kendoSortableBinding]"}),r.__metadata("design:paramtypes",[o.SortableComponent,s.SortableService])],t)}();e.SortableBindingDirective=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(3),o=function(t){function e(e){var n=t.call(this)||this;return Object.assign(n,e),n}return r.__extends(e,t),e}(i.PreventableEvent);e.DataAddEvent=o;var s=function(t){function e(e){var n=t.call(this)||this;return Object.assign(n,e),n}return r.__extends(e,t),e}(i.PreventableEvent);e.DataRemoveEvent=s;var u=function(t){function e(e){var n=t.call(this)||this;return Object.assign(n,e),n}return r.__extends(e,t),e}(i.PreventableEvent);e.DataMoveEvent=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(5);e.SortableComponent=r.SortableComponent;var i=n(22);e.SortableModule=i.SortableModule;var o=n(3);e.PreventableEvent=o.PreventableEvent;var s=n(13);e.DraggableEvent=s.DraggableEvent;var u=n(14);e.DragStartEvent=u.DragStartEvent,e.DragEndEvent=u.DragEndEvent,e.DragOverEvent=u.DragOverEvent;var c=n(12);e.NavigateEvent=c.NavigateEvent;var a=n(16);e.DataMoveEvent=a.DataMoveEvent;var l=n(7);e.DraggableDirective=l.DraggableDirective;var h=n(15);e.SortableBindingDirective=h.SortableBindingDirective;var f=n(2);e.PlaceholderTemplateDirective=f.PlaceholderTemplateDirective;var p=n(2);e.ItemTemplateDirective=p.ItemTemplateDirective;var d=n(4);e.SortableService=d.SortableService;var b=n(8);e.SortableContainer=b.SortableContainer},function(t,e){t.exports=r},function(t,e){t.exports=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.packageMetadata={name:"@progress/kendo-angular-sortable",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1646219900,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"}},function(t,e,n){"use strict";n.r(e),n.d(e,"Draggable",(function(){return l}));var r=function(t,e){return function(n){return e(t(n))}},i=function(t,e,n){return t.addEventListener&&t.addEventListener(e,n)},o=function(t,e,n){return t&&t.removeEventListener&&t.removeEventListener(e,n)},s=function(){},u=function(t){return t.preventDefault()},c=/touch/;function a(t){return t.type.match(c)?{pageX:t.changedTouches[0].pageX,pageY:t.changedTouches[0].pageY,clientX:t.changedTouches[0].clientX,clientY:t.changedTouches[0].clientY,type:t.type,originalEvent:t,isTouch:!0}:{pageX:t.pageX,pageY:t.pageY,clientX:t.clientX,clientY:t.clientY,offsetX:t.offsetX,offsetY:t.offsetY,type:t.type,ctrlKey:t.ctrlKey,shiftKey:t.shiftKey,altKey:t.altKey,originalEvent:t}}var l=function(t){var e=this,n=t.press;void 0===n&&(n=s);var c=t.drag;void 0===c&&(c=s);var l=t.release;void 0===l&&(l=s);var h=t.mouseOnly;void 0===h&&(h=!1),this._pressHandler=r(a,n),this._dragHandler=r(a,c),this._releaseHandler=r(a,l),this._ignoreMouse=!1,this._mouseOnly=h,this._touchstart=function(t){1===t.touches.length&&e._pressHandler(t)},this._touchmove=function(t){1===t.touches.length&&e._dragHandler(t)},this._touchend=function(t){0===t.touches.length&&1===t.changedTouches.length&&(e._releaseHandler(t),e._ignoreMouse=!0,setTimeout(e._restoreMouse,2e3))},this._restoreMouse=function(){e._ignoreMouse=!1},this._mousedown=function(t){var n=t.which;n&&n>1||e._ignoreMouse||(i(e.document,"mousemove",e._mousemove),i(e.document,"mouseup",e._mouseup),e._pressHandler(t))},this._mousemove=function(t){e._dragHandler(t)},this._mouseup=function(t){o(e.document,"mousemove",e._mousemove),o(e.document,"mouseup",e._mouseup),e._releaseHandler(t)},this._pointerdown=function(t){t.isPrimary&&0===t.button&&(i(e.document,"pointermove",e._pointermove),i(e.document,"pointerup",e._pointerup),i(e.document,"pointercancel",e._pointerup),i(e.document,"contextmenu",u),e._pressHandler(t))},this._pointermove=function(t){t.isPrimary&&e._dragHandler(t)},this._pointerup=function(t){t.isPrimary&&(o(e.document,"pointermove",e._pointermove),o(e.document,"pointerup",e._pointerup),o(e.document,"pointercancel",e._pointerup),o(e.document,"contextmenu",u),e._releaseHandler(t))}},h={document:{configurable:!0}};l.supportPointerEvent=function(){return"undefined"!=typeof window&&window.PointerEvent},h.document.get=function(){return this._element?this._element.ownerDocument:document},l.prototype.bindTo=function(t){t!==this._element&&(this._element&&this._unbindFromCurrent(),this._element=t,this._bindToCurrent())},l.prototype._bindToCurrent=function(){var t=this._element;this._usePointers()?i(t,"pointerdown",this._pointerdown):(i(t,"mousedown",this._mousedown),this._mouseOnly||(i(t,"touchstart",this._touchstart),i(t,"touchmove",this._touchmove),i(t,"touchend",this._touchend)))},l.prototype._unbindFromCurrent=function(){var t=this._element;if(this._usePointers())return o(t,"pointerdown",this._pointerdown),o(this.document,"pointermove",this._pointermove),o(this.document,"pointerup",this._pointerup),o(this.document,"contextmenu",u),void o(this.document,"pointercancel",this._pointerup);o(t,"mousedown",this._mousedown),this._mouseOnly||(o(t,"touchstart",this._touchstart),o(t,"touchmove",this._touchmove),o(t,"touchend",this._touchend))},l.prototype._usePointers=function(){return!this._mouseOnly&&l.supportPointerEvent()},l.prototype.update=function(t){var e=t.press;void 0===e&&(e=s);var n=t.drag;void 0===n&&(n=s);var i=t.release;void 0===i&&(i=s);var o=t.mouseOnly;void 0===o&&(o=!1),this._pressHandler=r(a,e),this._dragHandler=r(a,n),this._releaseHandler=r(a,i),this._mouseOnly=o},l.prototype.destroy=function(){this._unbindFromCurrent(),this._element=null},Object.defineProperties(l.prototype,h),l.default=l,e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(23),s=n(5),u=n(4),c=n(7),a=n(2),l=n(2),h=n(15),f=[s.SortableComponent,c.DraggableDirective,a.PlaceholderTemplateDirective,l.ItemTemplateDirective,h.SortableBindingDirective],p=function(){function t(){}return t=r.__decorate([i.NgModule({declarations:[f],exports:[f],imports:[o.CommonModule],providers:[u.SortableService]})],t)}();e.SortableModule=p},function(t,e){t.exports=o}])}));
|