-
Notifications
You must be signed in to change notification settings - Fork 0
/
564-es5.e480f661c6de69c923fa.js
1 lines (1 loc) · 18.7 KB
/
564-es5.e480f661c6de69c923fa.js
1
!function(){function e(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||i(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function t(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}function r(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,i,o=[],a=!0,u=!1;try{for(t=t.call(e);!(a=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);a=!0);}catch(c){u=!0,i=c}finally{try{a||null==t.return||t.return()}finally{if(u)throw i}}return o}(e,n)||i(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,n){if(e){if("string"==typeof e)return o(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?o(e,n):void 0}}function o(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function a(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(self.webpackChunkmaterial=self.webpackChunkmaterial||[]).push([[564],{43979:function(e){e.exports=function(e,n){return Array.prototype.slice.call(e,n)}},67031:function(e,n,t){"use strict";var r=t(29746);e.exports=function(e,n,t){e&&r(function(){e.apply(t||null,n||[])})}},11503:function(e,n,t){"use strict";var r=t(43979),i=t(67031);e.exports=function(e,n){var t=n||{},o={};return void 0===e&&(e={}),e.on=function(n,t){return o[n]?o[n].push(t):o[n]=[t],e},e.once=function(n,t){return t._once=!0,e.on(n,t),e},e.off=function(n,t){var r=arguments.length;if(1===r)delete o[n];else if(0===r)o={};else{var i=o[n];if(!i)return e;i.splice(i.indexOf(t),1)}return e},e.emit=function(){var n=r(arguments);return e.emitterSnapshot(n.shift()).apply(this,n)},e.emitterSnapshot=function(n){var a=(o[n]||[]).slice(0);return function(){var o=r(arguments),u=this||e;if("error"===n&&!1!==t.throws&&!a.length)throw 1===o.length?o[0]:o;return a.forEach(function(r){t.async?i(r,o,u):r.apply(u,o),r._once&&e.off(n,r)}),e}},e}},50986:function(e,n,t){"use strict";var r=t(63118),i=t(75616),o=global.document,a=function(e,n,t,r){return e.addEventListener(n,t,r)},u=function(e,n,t,r){return e.removeEventListener(n,t,r)},c=[];function l(e,n,t){var r=function(e,n,t){var r,i;for(r=0;r<c.length;r++)if((i=c[r]).element===e&&i.type===n&&i.fn===t)return r}(e,n,t);if(r){var i=c[r].wrapper;return c.splice(r,1),i}}global.addEventListener||(a=function(e,n,t){return e.attachEvent("on"+n,function(e,n,t){var r=l(e,n,t)||function(e,n,t){return function(n){var r=n||global.event;r.target=r.target||r.srcElement,r.preventDefault=r.preventDefault||function(){r.returnValue=!1},r.stopPropagation=r.stopPropagation||function(){r.cancelBubble=!0},r.which=r.which||r.keyCode,t.call(e,r)}}(e,0,t);return c.push({wrapper:r,element:e,type:n,fn:t}),r}(e,n,t))},u=function(e,n,t){var r=l(e,n,t);if(r)return e.detachEvent("on"+n,r)}),e.exports={add:a,remove:u,fabricate:function(e,n,t){var a=-1===i.indexOf(n)?new r(n,{detail:t}):function(){var e;return o.createEvent?(e=o.createEvent("Event")).initEvent(n,!0,!0):o.createEventObject&&(e=o.createEventObject()),e}();e.dispatchEvent?e.dispatchEvent(a):e.fireEvent("on"+n,a)}}},75616:function(e){"use strict";var n=[],t="",r=/^on/;for(t in global)r.test(t)&&n.push(t.slice(2));e.exports=n},63118:function(e){var n=global.CustomEvent;e.exports=function(){try{var e=new n("cat",{detail:{foo:"bar"}});return"cat"===e.type&&"bar"===e.detail.foo}catch(t){}return!1}()?n:"undefined"!=typeof document&&"function"==typeof document.createEvent?function(e,n){var t=document.createEvent("CustomEvent");return n?t.initCustomEvent(e,n.bubbles,n.cancelable,n.detail):t.initCustomEvent(e,!1,!1,void 0),t}:function(e,n){var t=document.createEventObject();return t.type=e,n?(t.bubbles=Boolean(n.bubbles),t.cancelable=Boolean(n.cancelable),t.detail=n.detail):(t.bubbles=!1,t.cancelable=!1,t.detail=void 0),t}},44559:function(e){"use strict";var n={};function t(e){var t=n[e];return t?t.lastIndex=0:n[e]=t=new RegExp("(?:^|\\s)"+e+"(?:\\s|$)","g"),t}e.exports={add:function(e,n){var r=e.className;r.length?t(n).test(r)||(e.className+=" "+n):e.className=n},rm:function(e,n){e.className=e.className.replace(t(n)," ").trim()}}},87804:function(e,n,t){"use strict";var r=t(11503),i=t(50986),o=t(44559),a=document,u=a.documentElement;function c(e,n,t,r){global.navigator.pointerEnabled?i[n](e,{mouseup:"pointerup",mousedown:"pointerdown",mousemove:"pointermove"}[t],r):global.navigator.msPointerEnabled?i[n](e,{mouseup:"MSPointerUp",mousedown:"MSPointerDown",mousemove:"MSPointerMove"}[t],r):(i[n](e,{mouseup:"touchend",mousedown:"touchstart",mousemove:"touchmove"}[t],r),i[n](e,t,r))}function l(e){if(void 0!==e.touches)return e.touches.length;if(void 0!==e.which&&0!==e.which)return e.which;if(void 0!==e.buttons)return e.buttons;var n=e.button;return void 0!==n?1&n?1:2&n?3:4&n?2:0:void 0}function s(e){var n=e.getBoundingClientRect();return{left:n.left+d("scrollLeft","pageXOffset"),top:n.top+d("scrollTop","pageYOffset")}}function d(e,n){return void 0!==global[n]?global[n]:u.clientHeight?u[e]:a.body[e]}function f(e,n,t){var r,i=(e=e||{}).className||"";return e.className+=" gu-hide",r=a.elementFromPoint(n,t),e.className=i,r}function v(){return!1}function h(){return!0}function p(e){return e.width||e.right-e.left}function m(e){return e.height||e.bottom-e.top}function g(e){return e.parentNode===a?null:e.parentNode}function y(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName||"SELECT"===e.tagName||b(e)}function b(e){return!!e&&"false"!==e.contentEditable&&("true"===e.contentEditable||b(g(e)))}function w(e){return e.nextElementSibling||function(){var n=e;do{n=n.nextSibling}while(n&&1!==n.nodeType);return n}()}function E(e,n){var t=function(e){return e.targetTouches&&e.targetTouches.length?e.targetTouches[0]:e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e}(n),r={pageX:"clientX",pageY:"clientY"};return e in r&&!(e in t)&&r[e]in t&&(e=r[e]),t[e]}e.exports=function(e,n){var t,d,b,S,k,C,M,x,O,I,T,N=arguments.length;1===N&&!1===Array.isArray(e)&&(n=e,e=[]);var A,D=null,$=n||{};void 0===$.moves&&($.moves=h),void 0===$.accepts&&($.accepts=h),void 0===$.invalid&&($.invalid=_),void 0===$.containers&&($.containers=e||[]),void 0===$.isContainer&&($.isContainer=v),void 0===$.copy&&($.copy=!1),void 0===$.copySortSource&&($.copySortSource=!1),void 0===$.revertOnSpill&&($.revertOnSpill=!1),void 0===$.removeOnSpill&&($.removeOnSpill=!1),void 0===$.direction&&($.direction="vertical"),void 0===$.ignoreInputTextSelection&&($.ignoreInputTextSelection=!0),void 0===$.mirrorContainer&&($.mirrorContainer=a.body);var j=r({containers:$.containers,start:Q,end:q,cancel:Z,remove:J,destroy:B,canMove:G,dragging:!1});return!0===$.removeOnSpill&&j.on("over",ie).on("out",oe),X(),j;function R(e){return-1!==j.containers.indexOf(e)||$.isContainer(e)}function X(e){var n=e?"remove":"add";c(u,n,"mousedown",L),c(u,n,"mouseup",H)}function Y(e){c(u,e?"remove":"add","mousemove",V)}function P(e){var n=e?"remove":"add";i[n](u,"selectstart",F),i[n](u,"click",F)}function B(){X(!0),H({})}function F(e){A&&e.preventDefault()}function L(e){if(C=e.clientX,M=e.clientY,1===l(e)&&!e.metaKey&&!e.ctrlKey){var n=e.target,t=U(n);t&&(A=t,Y(),"mousedown"===e.type&&(y(n)?n.focus():e.preventDefault()))}}function V(e){if(A)if(0!==l(e)){if(!(void 0!==e.clientX&&Math.abs(e.clientX-C)<=($.slideFactorX||0)&&void 0!==e.clientY&&Math.abs(e.clientY-M)<=($.slideFactorY||0))){if($.ignoreInputTextSelection){var n=E("clientX",e)||0,t=E("clientY",e)||0;if(y(a.elementFromPoint(n,t)))return}var r=A;Y(!0),P(),q(),K(r);var i=s(b);S=E("pageX",e)-i.left,k=E("pageY",e)-i.top,o.add(I||b,"gu-transit"),ae(),re(e)}}else H({})}function U(e){if(!(j.dragging&&t||R(e))){for(var n=e;g(e)&&!1===R(g(e));){if($.invalid(e,n))return;if(!(e=g(e)))return}var r=g(e);if(r&&!$.invalid(e,n)&&$.moves(e,r,n,w(e)))return{item:e,source:r}}}function G(e){return!!U(e)}function Q(e){var n=U(e);n&&K(n)}function K(e){se(e.item,e.source)&&(I=e.item.cloneNode(!0),j.emit("cloned",I,e.item,"copy")),d=e.source,b=e.item,x=O=w(e.item),j.dragging=!0,j.emit("drag",b,d)}function _(){return!1}function q(){if(j.dragging){var e=I||b;W(e,g(e))}}function z(){A=!1,Y(!0),P(!0)}function H(e){if(z(),j.dragging){var n=I||b,r=E("clientX",e)||0,i=E("clientY",e)||0,o=te(f(t,r,i),r,i);o&&(I&&$.copySortSource||!I||o!==d)?W(n,o):$.removeOnSpill?J():Z()}}function W(e,n){var t=g(e);I&&$.copySortSource&&n===d&&t.removeChild(b),ne(n)?j.emit("cancel",e,d,d):j.emit("drop",e,n,d,O),ee()}function J(){if(j.dragging){var e=I||b,n=g(e);n&&n.removeChild(e),j.emit(I?"cancel":"remove",e,n,d),ee()}}function Z(e){if(j.dragging){var n=arguments.length>0?e:$.revertOnSpill,t=I||b,r=g(t),i=ne(r);!1===i&&n&&(I?r&&r.removeChild(I):d.insertBefore(t,x)),i||n?j.emit("cancel",t,d,d):j.emit("drop",t,r,d,O),ee()}}function ee(){var e=I||b;z(),ue(),e&&o.rm(e,"gu-transit"),T&&clearTimeout(T),j.dragging=!1,D&&j.emit("out",e,D,d),j.emit("dragend",e),d=b=I=x=O=T=D=null}function ne(e,n){var r;return r=void 0!==n?n:t?O:w(I||b),e===d&&r===x}function te(e,n,t){for(var r=e;r&&!i();)r=g(r);return r;function i(){if(!1===R(r))return!1;var i=ce(r,e),o=le(r,i,n,t);return!!ne(r,o)||$.accepts(b,r,d,o)}}function re(e){if(t){e.preventDefault();var n=E("clientX",e)||0,r=E("clientY",e)||0,i=r-k;t.style.left=n-S+"px",t.style.top=i+"px";var o=I||b,a=f(t,n,r),u=te(a,n,r),c=null!==u&&u!==D;(c||null===u)&&(D&&h("out"),D=u,c&&h("over"));var l=g(o);if(u!==d||!I||$.copySortSource){var s,v=ce(u,a);if(null!==v)s=le(u,v,n,r);else{if(!0!==$.revertOnSpill||I)return void(I&&l&&l.removeChild(o));s=x,u=d}(null===s&&c||s!==o&&s!==w(o))&&(O=s,u.insertBefore(o,s),j.emit("shadow",o,u,d))}else l&&l.removeChild(o)}function h(e){j.emit(e,o,D,d)}}function ie(e){o.rm(e,"gu-hide")}function oe(e){j.dragging&&o.add(e,"gu-hide")}function ae(){if(!t){var e=b.getBoundingClientRect();(t=b.cloneNode(!0)).style.width=p(e)+"px",t.style.height=m(e)+"px",o.rm(t,"gu-transit"),o.add(t,"gu-mirror"),$.mirrorContainer.appendChild(t),c(u,"add","mousemove",re),o.add($.mirrorContainer,"gu-unselectable"),j.emit("cloned",t,b,"mirror")}}function ue(){t&&(o.rm($.mirrorContainer,"gu-unselectable"),c(u,"remove","mousemove",re),g(t).removeChild(t),t=null)}function ce(e,n){for(var t=n;t!==e&&g(t)!==e;)t=g(t);return t===u?null:t}function le(e,n,t,r){var i,o="horizontal"===$.direction;return n!==e?(i=n.getBoundingClientRect(),(o?t>i.left+p(i)/2:r>i.top+m(i)/2)?w(n):n):function(){var n,i,a,u=e.children.length;for(n=0;n<u;n++){if(a=(i=e.children[n]).getBoundingClientRect(),o&&a.left+a.width/2>t)return i;if(!o&&a.top+a.height/2>r)return i}return null}()}function se(e,n){return"boolean"==typeof $.copy?$.copy:$.copy(e,n)}}},63564:function(n,i,o){"use strict";o.d(i,{sW:function(){return S},pQ:function(){return E},qE:function(){return k}});var u=o(87804),c=o.n(u),l=o(31572),s=o(55959),d=o(87570),f=o(43835),v=o(79996),h=function e(n,t,r){a(this,e),this.name=n,this.drake=t,this.options=r,this.initEvents=!1},p={Cancel:"cancel",Cloned:"cloned",Drag:"drag",DragEnd:"dragend",Drop:"drop",Out:"out",Over:"over",Remove:"remove",Shadow:"shadow",DropModel:"dropModel",RemoveModel:"removeModel"},m=Object.keys(p).map(function(e){return p[e]}),g=c()||u,y=function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g;a(this,e),this.build=n},b=function(e,n,t){return function(r){return r.pipe((0,f.h)(function(t){var r=t.event,i=t.name;return r===e&&(void 0===n||i===n)}),(0,v.U)(function(e){var n=e.name,r=e.args;return t(n,r)}))}},w=function(e,n){var t=r(n,3);return{name:e,el:t[0],container:t[1],source:t[2]}},E=function(){var e=function(){function e(){var n=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;a(this,e),this.drakeFactory=t,this.dispatch$=new s.xQ,this.drag=function(e){return n.dispatch$.pipe(b(p.Drag,e,function(e,n){var t=r(n,2);return{name:e,el:t[0],source:t[1]}}))},this.dragend=function(e){return n.dispatch$.pipe(b(p.DragEnd,e,function(e,n){return{name:e,el:r(n,1)[0]}}))},this.drop=function(e){return n.dispatch$.pipe(b(p.Drop,e,function(e,n){var t=r(n,4);return{name:e,el:t[0],target:t[1],source:t[2],sibling:t[3]}}))},this.elContainerSource=function(e){return function(t){return n.dispatch$.pipe(b(e,t,w))}},this.cancel=this.elContainerSource(p.Cancel),this.remove=this.elContainerSource(p.Remove),this.shadow=this.elContainerSource(p.Shadow),this.over=this.elContainerSource(p.Over),this.out=this.elContainerSource(p.Out),this.cloned=function(e){return n.dispatch$.pipe(b(p.Cloned,e,function(e,n){var t=r(n,3);return{name:e,clone:t[0],original:t[1],cloneType:t[2]}}))},this.dropModel=function(e){return n.dispatch$.pipe(b(p.DropModel,e,function(e,n){var t=r(n,9);return{name:e,el:t[0],target:t[1],source:t[2],sibling:t[3],item:t[4],sourceModel:t[5],targetModel:t[6],sourceIndex:t[7],targetIndex:t[8]}}))},this.removeModel=function(e){return n.dispatch$.pipe(b(p.RemoveModel,e,function(e,n){var t=r(n,6);return{name:e,el:t[0],container:t[1],source:t[2],item:t[3],sourceModel:t[4],sourceIndex:t[5]}}))},this.groups={},null===this.drakeFactory&&(this.drakeFactory=new y)}return t(e,[{key:"add",value:function(e){if(this.find(e.name))throw new Error('Group named: "'+e.name+'" already exists.');return this.groups[e.name]=e,this.handleModels(e),this.setupEvents(e),e}},{key:"find",value:function(e){return this.groups[e]}},{key:"destroy",value:function(e){var n=this.find(e);n&&(n.drake&&n.drake.destroy(),delete this.groups[e])}},{key:"createGroup",value:function(e,n){return this.add(new h(e,this.drakeFactory.build([],n),n))}},{key:"handleModels",value:function(e){var n,t,r,i=this,o=e.name,a=e.drake,u=e.options;a.on("remove",function(e,n,r){if(a.models){var u=a.models[a.containers.indexOf(r)],c=(u=u.slice(0)).splice(t,1)[0];i.dispatch$.next({event:p.RemoveModel,name:o,args:[e,n,r,c,u,t]})}}),a.on("drag",function(e,r){a.models&&(n=e,t=i.domIndexOf(e,r))}),a.on("drop",function(e,c,l,s){if(a.models&&c){r=i.domIndexOf(e,c);var d,f=a.models[a.containers.indexOf(l)],v=a.models[a.containers.indexOf(c)];if(c===l)d=(f=f.slice(0)).splice(t,1)[0],f.splice(r,0,d),v=f;else{var h=n!==e;if(d=f[t],h){if(!u.copyItem)throw new Error("If you have enabled `copy` on a group, you must provide a `copyItem` function.");d=u.copyItem(d)}if(h||(f=f.slice(0)).splice(t,1),(v=v.slice(0)).splice(r,0,d),h)try{c.removeChild(e)}catch(m){}}i.dispatch$.next({event:p.DropModel,name:o,args:[e,c,l,s,d,f,v,t,r]})}})}},{key:"setupEvents",value:function(e){var n=this;if(!e.initEvents){e.initEvents=!0;var t=e.name;m.forEach(function(r){e.drake.on(r,function(){for(var e=arguments.length,i=new Array(e),o=0;o<e;o++)i[o]=arguments[o];n.dispatch$.next({event:r,name:t,args:i})})})}}},{key:"domIndexOf",value:function(e,n){return Array.prototype.indexOf.call(n.children,e)}}]),e}();return e.\u0275fac=function(n){return new(n||e)(l["\u0275\u0275inject"](y,8))},e.\u0275prov=l["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e}(),S=function(){var e=function(){function e(n,t){a(this,e),this.el=n,this.dragulaService=t,this.dragulaModelChange=new l.EventEmitter}return t(e,[{key:"container",get:function(){return this.el&&this.el.nativeElement}},{key:"ngOnChanges",value:function(e){if(e&&e.dragula){var n=e.dragula,t=n.previousValue,r=!!n.currentValue;!!t&&this.teardown(t),r&&this.setup()}else if(e&&e.dragulaModel){var i=e.dragulaModel,o=i.previousValue,a=i.currentValue,u=this.group.drake;if(this.dragula&&u){u.models=u.models||[];var c=u.models.indexOf(o);-1!==c?(u.models.splice(c,1),a&&u.models.splice(c,0,a)):a&&u.models.push(a)}}}},{key:"setup",value:function(){var e=this,n=this.dragulaService.find(this.dragula);n||(n=this.dragulaService.createGroup(this.dragula,{})),function(n){e.dragulaModel&&(n.drake.models?n.drake.models.push(e.dragulaModel):n.drake.models=[e.dragulaModel])}(n),n.drake.containers.push(this.container),this.subscribe(this.dragula),this.group=n}},{key:"subscribe",value:function(e){var n=this;this.subs=new d.w,this.subs.add(this.dragulaService.dropModel(e).subscribe(function(e){var t=e.source,r=e.target,i=e.sourceModel,o=e.targetModel;t===n.el.nativeElement?n.dragulaModelChange.emit(i):r===n.el.nativeElement&&n.dragulaModelChange.emit(o)})),this.subs.add(this.dragulaService.removeModel(e).subscribe(function(e){var t=e.source,r=e.sourceModel;t===n.el.nativeElement&&n.dragulaModelChange.emit(r)}))}},{key:"teardown",value:function(e){this.subs&&this.subs.unsubscribe();var n=this.dragulaService.find(e);if(n){var t=n.drake.containers.indexOf(this.el.nativeElement);if(-1!==t&&n.drake.containers.splice(t,1),this.dragulaModel&&n.drake&&n.drake.models){var r=n.drake.models.indexOf(this.dragulaModel);-1!==r&&n.drake.models.splice(r,1)}}}},{key:"ngOnDestroy",value:function(){this.teardown(this.dragula)}}]),e}();return e.\u0275fac=function(n){return new(n||e)(l["\u0275\u0275directiveInject"](l.ElementRef),l["\u0275\u0275directiveInject"](E))},e.\u0275dir=l["\u0275\u0275defineDirective"]({type:e,selectors:[["","dragula",""]],inputs:{dragula:"dragula",dragulaModel:"dragulaModel"},outputs:{dragulaModelChange:"dragulaModelChange"},features:[l["\u0275\u0275NgOnChangesFeature"]]}),e}(),k=function(){var e=function(){function e(){a(this,e)}return t(e,null,[{key:"forRoot",value:function(){return{ngModule:e,providers:[E]}}}]),e}();return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=l["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=l["\u0275\u0275defineInjector"]({}),e}();new y(function(e,n){return new C(e,n)});var C=function(){function n(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;a(this,n),this.containers=e,this.options=t,this.models=r,this.dragging=!1,this.emitter$=new s.xQ,this.subs=new d.w}return t(n,[{key:"start",value:function(e){this.dragging=!0}},{key:"end",value:function(){this.dragging=!1}},{key:"cancel",value:function(e){this.dragging=!1}},{key:"remove",value:function(){this.dragging=!1}},{key:"on",value:function(n,t){this.subs.add(this.emitter$.pipe((0,f.h)(function(e){return e.eventType===n})).subscribe(function(n){var r=n.args;t.apply(void 0,e(r))}))}},{key:"destroy",value:function(){this.subs.unsubscribe()}},{key:"emit",value:function(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),r=1;r<n;r++)t[r-1]=arguments[r];this.emitter$.next({eventType:e,args:t})}}]),n}()},29746:function(e){var n="function"==typeof setImmediate;e.exports=n?function(e){setImmediate(e)}:function(e){setTimeout(e,0)}}}])}();