diff --git a/README.md b/README.md index 6304b04b..e655c6b1 100644 --- a/README.md +++ b/README.md @@ -57,7 +57,7 @@ For `ngModel` to work, You must import `FromsModule` from `@angular/forms` ### Documentation -Check [wiki][wiki] for more information +Check [wiki][wiki] for more information [npm]: https://www.npmjs.com/ [yarn]: https://yarnpkg.com/lang/en/ diff --git a/docs/index.html b/docs/index.html index fecb582f..7b11244b 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1 +1 @@ -NgxEditor \ No newline at end of file +NgxEditor \ No newline at end of file diff --git a/docs/inline.dd8a541cfbc7a0565666.bundle.js b/docs/inline.d0cdd3c7718857fc66b0.bundle.js similarity index 95% rename from docs/inline.dd8a541cfbc7a0565666.bundle.js rename to docs/inline.d0cdd3c7718857fc66b0.bundle.js index 5c218205..a9066f02 100644 --- a/docs/inline.dd8a541cfbc7a0565666.bundle.js +++ b/docs/inline.d0cdd3c7718857fc66b0.bundle.js @@ -1 +1 @@ -!function(e){function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}var r=window.webpackJsonp;window.webpackJsonp=function(t,c,a){for(var u,i,f,l=0,s=[];l1&&"number"==typeof e[e.length-1]&&(n=e.pop())):"number"==typeof a&&(n=e.pop()),null===s&&1===e.length&&e[0]instanceof o.a?e[0]:function(e){return void 0===e&&(e=Number.POSITIVE_INFINITY),Object(u.a)(r,null,e)}(n)(new i.a(e,s))}},"3iOE":function(e,t,n){"use strict";t.a=function(e){return e&&"function"==typeof e.schedule}},"6Xbx":function(e,t,n){"use strict";t.b=function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},n.d(t,"a",function(){return o});var r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n ");else if("object"==typeof t){var r=[];for(var o in t)if(t.hasOwnProperty(o)){var i=t[o];r.push(o+":"+("string"==typeof i?JSON.stringify(i):l(i)))}n="{"+r.join(", ")+"}"}return"StaticInjectorError["+n+"]: "+e.replace(jn,"\n ")}function h(e,t){return new Error(f(e,t))}function g(e){return e[Dn]}function y(e){return e[Ln]}function v(e){return!!e&&"function"==typeof e.then}function m(e){return!!e&&"function"==typeof e.subscribe}function b(){return""+_()+_()+_()}function _(){return String.fromCharCode(97+Math.floor(25*Math.random()))}function w(){throw new Error("Runtime compiler is not loaded")}function C(e){var t=Error("No component factory found for "+l(e)+". Did you add it to @NgModule.entryComponents?");return t[Yn]=e,t}function E(e,t){return null}function x(){}function O(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(function(){return e.onStable.emit(null)})}finally{e.isStable=!0}}}function T(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function k(e){e._nesting--,O(e)}function V(e){pr=e}function S(){if(hr)throw new Error("Cannot enable prod mode after platform setup.");fr=!1}function A(){return hr=!0,fr}function P(e,t,n){void 0===n&&(n=[]);var r=new an("Platform: "+t);return function(t){void 0===t&&(t=[]);var o=I();return o&&!o.injector.get(gr,!1)||(e?e(n.concat(t).concat({provide:r,useValue:!0})):function(e){if($t&&!$t.destroyed&&!$t.injector.get(gr,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");$t=e.get(vr);var t=e.get(qn,null);t&&t.forEach(function(e){return e()})}(xn.create(n.concat(t).concat({provide:r,useValue:!0})))),function(e){var t=I();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(r)}}function I(){return $t&&!$t.destroyed?$t:null}function N(e,t){return e=Array.isArray(t)?t.reduce(N,e):Object(rn.a)({},e,t)}function j(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}function M(e){return e.reduce(function(e,t){var n=Array.isArray(t)?M(t):t;return e.concat(n)},[])}function R(e,t,n){e.childNodes.forEach(function(e){e instanceof kr&&(t(e)&&n.push(e),R(e,t,n))})}function D(e,t,n){e instanceof kr&&e.childNodes.forEach(function(e){t(e)&&n.push(e),e instanceof kr&&D(e,t,n)})}function L(e){return Vr.get(e)||null}function F(e){Vr.set(e.nativeNode,e)}function U(e,t){var n=H(e),r=H(t);return n&&r?function(t,n,r){for(var i=e[o()](),u=n[o()]();;){var l=i.next(),s=u.next();if(l.done&&s.done)return!0;if(l.done||s.done)return!1;if(!r(l.value,s.value))return!1}}(0,t,U):!(n||!e||"object"!=typeof e&&"function"!=typeof e||r||!t||"object"!=typeof t&&"function"!=typeof t)||u(e,t)}function H(e){return!!z(e)&&(Array.isArray(e)||!(e instanceof Map)&&o()in e)}function z(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function B(e,t,n){var r=e.previousIndex;if(null===r)return r;var o=0;return n&&r=n.length)&&(t=n.length-1),t<0)return null;var r=n[t];return r.viewContainerParent=null,Ue(n,t),Xr.dirtyParentQueries(r),Le(r),r}function De(e,t,n){var r=t?de(t,t.def.lastRenderRootNode):e.renderElement;_e(n,2,n.renderer.parentNode(r),n.renderer.nextSibling(r),void 0)}function Le(e){_e(e,3,null,null,void 0)}function Fe(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Ue(e,t){t>=e.length-1?e.pop():e.splice(t,1)}function He(e,t,n,r,o,i){return new so(e,t,n,r,o,i)}function ze(e,t,n){return new co(e,t,n)}function Be(e){return new po(e)}function qe(e,t){return new fo(e,t)}function Ge(e,t){return new ho(e,t)}function Qe(e,t){var n=e.def.nodes[t];if(1&n.flags){var r=W(e,n.nodeIndex);return n.element.template?r.template:r.renderElement}if(2&n.flags)return Z(e,n.nodeIndex).renderText;if(20240&n.flags)return K(e,n.nodeIndex).instance;throw new Error("Illegal state: read nodeValue for node index "+t)}function Ze(e){return new go(e.renderer)}function We(e,t,n,r){return new yo(e,t,n,r)}function Ke(e,t,n,r,o,i,u,l){var s=[];if(u)for(var a in u){var c=u[a];s[c[0]]={flags:8,name:a,nonMinifiedName:c[1],ns:null,securityContext:null,suffix:null}}var d=[];if(l)for(var p in l)d.push({type:1,propName:p,target:null,eventName:l[p]});return t|=16384,Ye(e,t,n,r,o,o,i,s,d)}function Xe(e,t,n,r,o){return Ye(-1,e,t,0,n,r,o)}function Ye(e,t,n,r,o,i,u,l,s){var c=ye(n),d=c.matchedQueries,p=c.references,f=c.matchedQueryIds;s||(s=[]),l||(l=[]),i=a(i);var h=ve(u);return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:d,matchedQueryIds:f,references:p,ngContentIndex:-1,childCount:r,bindings:l,bindingFlags:Te(l),outputs:s,element:null,provider:{token:o,value:i,deps:h},text:null,query:null,ngContent:null}}function Je(e,t){return tt(e,t)}function $e(e,t){for(var n=e;n.parent&&!fe(n);)n=n.parent;return nt(n.parent,ce(n),!0,t.provider.value,t.provider.deps)}function et(e,t){var n=nt(e,t.parent,(32768&t.flags)>0,t.provider.value,t.provider.deps);if(t.outputs.length)for(var r=0;r0,r=t.provider;switch(201347067&t.flags){case 512:return nt(e,t.parent,n,r.value,r.deps);case 1024:return function(e,t,n,r,o){var i=o.length;switch(i){case 0:return r();case 1:return r(rt(e,t,n,o[0]));case 2:return r(rt(e,t,n,o[0]),rt(e,t,n,o[1]));case 3:return r(rt(e,t,n,o[0]),rt(e,t,n,o[1]),rt(e,t,n,o[2]));default:for(var u=Array(i),l=0;lo)throw new Error("Illegal State: childCount of node leads outside of parent, at index "+t.nodeIndex+"!")}}(a,g,t.length),o+=g.bindings.length,i+=g.outputs.length,!c&&3&g.flags&&(f=g),20224&g.flags){d||(d=!0,a.element.publicProviders=Object.create(a.element.publicProviders),a.element.allProviders=a.element.publicProviders);var v=0!=(32768&g.flags);0==(8192&g.flags)||v?a.element.publicProviders[te(g.provider.token)]=g:(p||(p=!0,a.element.allProviders=Object.create(a.element.publicProviders)),a.element.allProviders[te(g.provider.token)]=g),v&&(a.element.componentProvider=g)}if(a?(a.childFlags|=g.flags,a.directChildFlags|=g.flags,a.childMatchedQueries|=g.matchedQueryIds,g.element&&g.element.template&&(a.childMatchedQueries|=g.element.template.nodeMatchedQueries)):l|=g.flags,g.childCount>0)a=g,bt(g)||(c=g);else for(;a&&h===a.nodeIndex+a.childCount;){var m=a.parent;m&&(m.childFlags|=a.childFlags,m.childMatchedQueries|=a.childMatchedQueries),c=(a=m)&&bt(a)?a.renderParent:a}}return{factory:null,nodeFlags:u,rootNodeFlags:l,nodeMatchedQueries:s,flags:e,nodes:t,updateDirectives:n||Yr,updateRenderer:r||Yr,handleEvent:function(e,n,r,o){return t[n].element.handleEvent(e,r,o)},bindingCount:o,outputCount:i,lastRenderRootNode:f}}function bt(e){return 0!=(1&e.flags)&&null===e.element.name}function _t(e,t,n,r){var o=Et(e.root,e.renderer,e,t,n);return xt(o,e.component,r),Ot(o),o}function wt(e,t,n){var r=Et(e,e.renderer,null,null,t);return xt(r,n,n),Ot(r),r}function Ct(e,t,n,r){var o,i=t.element.componentRendererType;return o=i?e.root.rendererFactory.createRenderer(r,i):e.root.renderer,Et(e.root,o,e,t.element.componentProvider,n)}function Et(e,t,n,r,o){var i=new Array(o.nodes.length),u=o.outputCount?new Array(o.outputCount):null;return{def:o,parent:n,viewContainerParent:null,parentNodeDef:r,context:null,component:null,nodes:i,state:13,root:e,renderer:t,oldValues:new Array(o.bindingCount),disposables:u}}function xt(e,t,n){e.component=t,e.context=n}function Ot(e){var t;fe(e)&&(t=W(e.parent,e.parentNodeDef.parent.nodeIndex).renderElement);for(var n=e.def,r=e.nodes,o=0;o0&&Pe(e,t,0,n)&&(h=!0),f>1&&Pe(e,t,1,o)&&(h=!0),f>2&&Pe(e,t,2,i)&&(h=!0),f>3&&Pe(e,t,3,u)&&(h=!0),f>4&&Pe(e,t,4,l)&&(h=!0),f>5&&Pe(e,t,5,s)&&(h=!0),f>6&&Pe(e,t,6,a)&&(h=!0),f>7&&Pe(e,t,7,c)&&(h=!0),f>8&&Pe(e,t,8,d)&&(h=!0),f>9&&Pe(e,t,9,p)&&(h=!0),h}(e,t,0,r,o,i,u,l,s,a,c,d);case 2:return function(e,t,n,r,o,i,u,l,s,a,c,d){var p=!1,f=t.bindings,h=f.length;if(h>0&&oe(e,t,0,n)&&(p=!0),h>1&&oe(e,t,1,r)&&(p=!0),h>2&&oe(e,t,2,o)&&(p=!0),h>3&&oe(e,t,3,i)&&(p=!0),h>4&&oe(e,t,4,u)&&(p=!0),h>5&&oe(e,t,5,l)&&(p=!0),h>6&&oe(e,t,6,s)&&(p=!0),h>7&&oe(e,t,7,a)&&(p=!0),h>8&&oe(e,t,8,c)&&(p=!0),h>9&&oe(e,t,9,d)&&(p=!0),p){var g=t.text.prefix;h>0&&(g+=vt(n,f[0])),h>1&&(g+=vt(r,f[1])),h>2&&(g+=vt(o,f[2])),h>3&&(g+=vt(i,f[3])),h>4&&(g+=vt(u,f[4])),h>5&&(g+=vt(l,f[5])),h>6&&(g+=vt(s,f[6])),h>7&&(g+=vt(a,f[7])),h>8&&(g+=vt(c,f[8])),h>9&&(g+=vt(d,f[9]));var y=Z(e,t.nodeIndex).renderText;e.renderer.setValue(y,g)}return p}(e,t,n,r,o,i,u,l,s,a,c,d);case 16384:return function(e,t,n,r,o,i,u,l,s,a,c,d){var p=K(e,t.nodeIndex),f=p.instance,h=!1,g=void 0,y=t.bindings.length;return y>0&&re(e,t,0,n)&&(h=!0,g=it(e,p,t,0,n,g)),y>1&&re(e,t,1,r)&&(h=!0,g=it(e,p,t,1,r,g)),y>2&&re(e,t,2,o)&&(h=!0,g=it(e,p,t,2,o,g)),y>3&&re(e,t,3,i)&&(h=!0,g=it(e,p,t,3,i,g)),y>4&&re(e,t,4,u)&&(h=!0,g=it(e,p,t,4,u,g)),y>5&&re(e,t,5,l)&&(h=!0,g=it(e,p,t,5,l,g)),y>6&&re(e,t,6,s)&&(h=!0,g=it(e,p,t,6,s,g)),y>7&&re(e,t,7,a)&&(h=!0,g=it(e,p,t,7,a,g)),y>8&&re(e,t,8,c)&&(h=!0,g=it(e,p,t,8,c,g)),y>9&&re(e,t,9,d)&&(h=!0,g=it(e,p,t,9,d,g)),g&&f.ngOnChanges(g),2&e.state&&65536&t.flags&&f.ngOnInit(),262144&t.flags&&f.ngDoCheck(),h}(e,t,n,r,o,i,u,l,s,a,c,d);case 32:case 64:case 128:return function(e,t,n,r,o,i,u,l,s,a,c,d){var p=t.bindings,f=!1,h=p.length;if(h>0&&oe(e,t,0,n)&&(f=!0),h>1&&oe(e,t,1,r)&&(f=!0),h>2&&oe(e,t,2,o)&&(f=!0),h>3&&oe(e,t,3,i)&&(f=!0),h>4&&oe(e,t,4,u)&&(f=!0),h>5&&oe(e,t,5,l)&&(f=!0),h>6&&oe(e,t,6,s)&&(f=!0),h>7&&oe(e,t,7,a)&&(f=!0),h>8&&oe(e,t,8,c)&&(f=!0),h>9&&oe(e,t,9,d)&&(f=!0),f){var g=X(e,t.nodeIndex),y=void 0;switch(201347067&t.flags){case 32:y=new Array(p.length),h>0&&(y[0]=n),h>1&&(y[1]=r),h>2&&(y[2]=o),h>3&&(y[3]=i),h>4&&(y[4]=u),h>5&&(y[5]=l),h>6&&(y[6]=s),h>7&&(y[7]=a),h>8&&(y[8]=c),h>9&&(y[9]=d);break;case 64:y={},h>0&&(y[p[0].name]=n),h>1&&(y[p[1].name]=r),h>2&&(y[p[2].name]=o),h>3&&(y[p[3].name]=i),h>4&&(y[p[4].name]=u),h>5&&(y[p[5].name]=l),h>6&&(y[p[6].name]=s),h>7&&(y[p[7].name]=a),h>8&&(y[p[8].name]=c),h>9&&(y[p[9].name]=d);break;case 128:var v=n;switch(h){case 1:y=v.transform(n);break;case 2:y=v.transform(r);break;case 3:y=v.transform(r,o);break;case 4:y=v.transform(r,o,i);break;case 5:y=v.transform(r,o,i,u);break;case 6:y=v.transform(r,o,i,u,l);break;case 7:y=v.transform(r,o,i,u,l,s);break;case 8:y=v.transform(r,o,i,u,l,s,a);break;case 9:y=v.transform(r,o,i,u,l,s,a,c);break;case 10:y=v.transform(r,o,i,u,l,s,a,c,d)}}g.value=y}return f}(e,t,n,r,o,i,u,l,s,a,c,d);default:throw"unreachable"}}(e,t,r,o,i,u,l,s,a,c,d,p):function(e,t,n){switch(201347067&t.flags){case 1:return function(e,t,n){for(var r=!1,o=0;o0&&ie(e,t,0,r),f>1&&ie(e,t,1,o),f>2&&ie(e,t,2,i),f>3&&ie(e,t,3,u),f>4&&ie(e,t,4,l),f>5&&ie(e,t,5,s),f>6&&ie(e,t,6,a),f>7&&ie(e,t,7,c),f>8&&ie(e,t,8,d),f>9&&ie(e,t,9,p)}(e,t,0,o,i,u,l,s,a,c,d,p):function(e,t,n){for(var r=0;r0)e._bootstrapComponents.forEach(function(e){return t.bootstrap(e)});else{if(!e.instance.ngDoBootstrap)throw new Error("The module "+l(e.instance.constructor)+' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.');e.instance.ngDoBootstrap(t)}this._modules.push(e)},e.prototype.onDestroy=function(e){this._destroyListeners.push(e)},Object.defineProperty(e.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(e){return e.destroy()}),this._destroyListeners.forEach(function(e){return e()}),this._destroyed=!0},Object.defineProperty(e.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),e}(),mr=function(){function e(e,t,n,r,o,u){var l=this;this._zone=e,this._console=t,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=o,this._initStatus=u,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=A(),this._zone.onMicrotaskEmpty.subscribe({next:function(){l._zone.run(function(){l.tick()})}});var s=new on.a(function(e){l._stable=l._zone.isStable&&!l._zone.hasPendingMacrotasks&&!l._zone.hasPendingMicrotasks,l._zone.runOutsideAngular(function(){e.next(l._stable),e.complete()})}),a=new on.a(function(e){var t;l._zone.runOutsideAngular(function(){t=l._zone.onStable.subscribe(function(){lr.assertNotInAngularZone(),i(function(){l._stable||l._zone.hasPendingMacrotasks||l._zone.hasPendingMicrotasks||(l._stable=!0,e.next(!0))})})});var n=l._zone.onUnstable.subscribe(function(){lr.assertInAngularZone(),l._stable&&(l._stable=!1,l._zone.runOutsideAngular(function(){e.next(!1)}))});return function(){t.unsubscribe(),n.unsubscribe()}});this.isStable=Object(un.a)(s,ln.a.call(a))}return e.prototype.bootstrap=function(e,t){var n=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");var r;r=e instanceof Xn?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(r.componentType);var o=r instanceof tr?null:this._injector.get(nr),i=r.create(xn.NULL,[],t||r.selector,o);i.onDestroy(function(){n._unloadComponent(i)});var u=i.injector.get(cr,null);return u&&i.injector.get(dr).registerApplication(i.location.nativeElement,u),this._loadComponent(i),A()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),i},e.prototype.tick=function(){var t=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var n=e._tickScope();try{this._runningTick=!0,this._views.forEach(function(e){return e.detectChanges()}),this._enforceNoNewChanges&&this._views.forEach(function(e){return e.checkNoChanges()})}catch(e){this._zone.runOutsideAngular(function(){return t._exceptionHandler.handleError(e)})}finally{this._runningTick=!1,ir(n)}},e.prototype.attachView=function(e){var t=e;this._views.push(t),t.attachToAppRef(this)},e.prototype.detachView=function(e){var t=e;j(this._views,t),t.detachFromAppRef()},e.prototype._loadComponent=function(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(Qn,[]).concat(this._bootstrapListeners).forEach(function(t){return t(e)})},e.prototype._unloadComponent=function(e){this.detachView(e.hostView),j(this.components,e)},e.prototype.ngOnDestroy=function(){this._views.slice().forEach(function(e){return e.destroy()})},Object.defineProperty(e.prototype,"viewCount",{get:function(){return this._views.length},enumerable:!0,configurable:!0}),e._tickScope=or("ApplicationRef#tick()"),e}(),br=function(){},_r=function(){var e={Important:1,DashCase:2};return e[e.Important]="Important",e[e.DashCase]="DashCase",e}(),wr=function(){},Cr=function(e){this.nativeElement=e},Er=function(){function e(){this.dirty=!0,this._results=[],this.changes=new ur}return Object.defineProperty(e.prototype,"length",{get:function(){return this._results.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"first",{get:function(){return this._results[0]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"last",{get:function(){return this._results[this.length-1]},enumerable:!0,configurable:!0}),e.prototype.map=function(e){return this._results.map(e)},e.prototype.filter=function(e){return this._results.filter(e)},e.prototype.find=function(e){return this._results.find(e)},e.prototype.reduce=function(e,t){return this._results.reduce(e,t)},e.prototype.forEach=function(e){this._results.forEach(e)},e.prototype.some=function(e){return this._results.some(e)},e.prototype.toArray=function(){return this._results.slice()},e.prototype[o()]=function(){return this._results[o()]()},e.prototype.toString=function(){return this._results.toString()},e.prototype.reset=function(e){this._results=M(e),this.dirty=!1},e.prototype.notifyOnChanges=function(){this.changes.emit(this)},e.prototype.setDirty=function(){this.dirty=!0},e.prototype.destroy=function(){this.changes.complete(),this.changes.unsubscribe()},e}(),xr=function(){},Or=function(){},Tr=function(){function e(e,t,n){this._debugContext=n,this.nativeNode=e,t&&t instanceof kr?t.addChild(this):this.parent=null,this.listeners=[]}return Object.defineProperty(e.prototype,"injector",{get:function(){return this._debugContext.injector},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentInstance",{get:function(){return this._debugContext.component},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this._debugContext.context},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"references",{get:function(){return this._debugContext.references},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"providerTokens",{get:function(){return this._debugContext.providerTokens},enumerable:!0,configurable:!0}),e}(),kr=function(e){function t(t,n,r){var o=e.call(this,t,n,r)||this;return o.properties={},o.attributes={},o.classes={},o.styles={},o.childNodes=[],o.nativeElement=t,o}return Object(rn.b)(t,e),t.prototype.addChild=function(e){e&&(this.childNodes.push(e),e.parent=this)},t.prototype.removeChild=function(e){var t=this.childNodes.indexOf(e);-1!==t&&(e.parent=null,this.childNodes.splice(t,1))},t.prototype.insertChildrenAfter=function(e,t){var n=this,r=this.childNodes.indexOf(e);-1!==r&&((o=this.childNodes).splice.apply(o,[r+1,0].concat(t)),t.forEach(function(e){e.parent&&e.parent.removeChild(e),e.parent=n}));var o},t.prototype.insertBefore=function(e,t){var n=this.childNodes.indexOf(e);-1===n?this.addChild(t):(t.parent&&t.parent.removeChild(t),t.parent=this,this.childNodes.splice(n,0,t))},t.prototype.query=function(e){return this.queryAll(e)[0]||null},t.prototype.queryAll=function(e){var t=[];return R(this,e,t),t},t.prototype.queryAllNodes=function(e){var t=[];return D(this,e,t),t},Object.defineProperty(t.prototype,"children",{get:function(){return this.childNodes.filter(function(e){return e instanceof t})},enumerable:!0,configurable:!0}),t.prototype.triggerEventHandler=function(e,t){this.listeners.forEach(function(n){n.name==e&&n.callback(t)})},t}(Tr),Vr=new Map,Sr=function(){function e(e){this.wrapped=e}return e.wrap=function(t){return new e(t)},e}(),Ar=function(){function e(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}return e.prototype.isFirstChange=function(){return this.firstChange},e}(),Pr=function(){function e(){}return e.prototype.supports=function(e){return H(e)},e.prototype.create=function(e){return new Nr(e)},e}(),Ir=function(e,t){return t},Nr=function(){function e(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||Ir}return e.prototype.forEachItem=function(e){var t;for(t=this._itHead;null!==t;t=t._next)e(t)},e.prototype.forEachOperation=function(e){for(var t=this._itHead,n=this._removalsHead,r=0,o=null;t||n;){var i=!n||t&&t.currentIndex=0;e--){var t=Re(this._data,e);Xr.destroyView(t)}},e.prototype.get=function(e){var t=this._embeddedViews[e];if(t){var n=new po(t);return n.attachToViewContainerRef(this),n}return null},Object.defineProperty(e.prototype,"length",{get:function(){return this._embeddedViews.length},enumerable:!0,configurable:!0}),e.prototype.createEmbeddedView=function(e,t,n){var r=e.createEmbeddedView(t||{});return this.insert(r,n),r},e.prototype.createComponent=function(e,t,n,r,o){var i=n||this.parentInjector;o||e instanceof tr||(o=i.get(nr));var u=e.create(i,r,void 0,o);return this.insert(u.hostView,t),u},e.prototype.insert=function(e,t){if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");var n=e;return function(e,t,n,r){var o=t.viewContainer._embeddedViews;null!==n&&void 0!==n||(n=o.length),r.viewContainerParent=e,Fe(o,n,r),function(e,t){var n=ae(t);if(n&&n!==e&&!(16&t.state)){t.state|=16;var r=n.template._projectedViews;r||(r=n.template._projectedViews=[]),r.push(t),function(e,n){if(!(4&n.flags)){t.parent.def.nodeFlags|=4,n.flags|=4;for(var r=n.parent;r;)r.childFlags|=4,r=r.parent}}(0,t.parentNodeDef)}}(t,r),Xr.dirtyParentQueries(r),De(t,n>0?o[n-1]:null,r)}(this._view,this._data,t,n._view),n.attachToViewContainerRef(this),e},e.prototype.move=function(e,t){if(e.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");var n=this._embeddedViews.indexOf(e._view);return function(e,t,r){var o=e.viewContainer._embeddedViews,i=o[n];Ue(o,n),null==r&&(r=o.length),Fe(o,r,i),Xr.dirtyParentQueries(i),Le(i),De(e,r>0?o[r-1]:null,i)}(this._data,0,t),e},e.prototype.indexOf=function(e){return this._embeddedViews.indexOf(e._view)},e.prototype.remove=function(e){var t=Re(this._data,e);t&&Xr.destroyView(t)},e.prototype.detach=function(e){var t=Re(this._data,e);return t?new po(t):null},e}(),po=function(){function e(e){this._view=e,this._viewContainerRef=null,this._appRef=null}return Object.defineProperty(e.prototype,"rootNodes",{get:function(){return function(e){var t=[];return _e(e,0,void 0,void 0,t),t}(this._view)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this._view.context},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"destroyed",{get:function(){return 0!=(128&this._view.state)},enumerable:!0,configurable:!0}),e.prototype.markForCheck=function(){ue(this._view)},e.prototype.detach=function(){this._view.state&=-5},e.prototype.detectChanges=function(){var e=this._view.root.rendererFactory;e.begin&&e.begin(),Xr.checkAndUpdateView(this._view),e.end&&e.end()},e.prototype.checkNoChanges=function(){Xr.checkNoChangesView(this._view)},e.prototype.reattach=function(){this._view.state|=4},e.prototype.onDestroy=function(e){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(e)},e.prototype.destroy=function(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),Xr.destroyView(this._view)},e.prototype.detachFromAppRef=function(){this._appRef=null,Le(this._view),Xr.dirtyParentQueries(this._view)},e.prototype.attachToAppRef=function(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e},e.prototype.attachToViewContainerRef=function(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e},e}(),fo=function(e){function t(t,n){var r=e.call(this)||this;return r._parentView=t,r._def=n,r}return Object(rn.b)(t,e),t.prototype.createEmbeddedView=function(e){return new po(Xr.createEmbeddedView(this._parentView,this._def,this._def.element.template,e))},Object.defineProperty(t.prototype,"elementRef",{get:function(){return new Cr(W(this._parentView,this._def.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),t}(xr),ho=function(){function e(e,t){this.view=e,this.elDef=t}return e.prototype.get=function(e,t){return void 0===t&&(t=xn.THROW_IF_NOT_FOUND),Xr.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:e,tokenKey:te(e)},t)},e}(),go=function(){function e(e){this.delegate=e}return e.prototype.selectRootElement=function(e){return this.delegate.selectRootElement(e)},e.prototype.createElement=function(e,t){var n=Oe(t),r=this.delegate.createElement(n[1],n[0]);return e&&this.delegate.appendChild(e,r),r},e.prototype.createViewRoot=function(e){return e},e.prototype.createTemplateAnchor=function(e){var t=this.delegate.createComment("");return e&&this.delegate.appendChild(e,t),t},e.prototype.createText=function(e,t){var n=this.delegate.createText(t);return e&&this.delegate.appendChild(e,n),n},e.prototype.projectNodes=function(e,t){for(var n=0;n1?new t(e,r):1===o?new i(e[0],r):new u.a(r)},t.dispatch=function(e){var t=e.array,n=e.index,r=e.subscriber;n>=e.count?r.complete():(r.next(t[n]),r.closed||(e.index=n+1,this.schedule(e)))},t.prototype._subscribe=function(e){var n=this.array,r=n.length,o=this.scheduler;if(o)return o.schedule(t.dispatch,0,{array:n,index:0,count:r,subscriber:e});for(var i=0;i1)this.connection=null;else{var n=this.connection,r=e._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},t}(s.a),p=function(e){function t(t,n){e.call(this),this.source=t,this.subjectFactory=n,this._refCount=0,this._isComplete=!1}return Object(i.b)(t,e),t.prototype._subscribe=function(e){return this.getSubject().subscribe(e)},t.prototype.getSubject=function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject},t.prototype.connect=function(){var e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new a.a).add(this.source.subscribe(new h(this.getSubject(),this))),e.closed?(this._connection=null,e=a.a.EMPTY):this._connection=e),e},t.prototype.refCount=function(){return r()(this)},t}(l.a).prototype,f={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:p._subscribe},_isComplete:{value:p._isComplete,writable:!0},getSubject:{value:p.getSubject},connect:{value:p.connect},refCount:{value:p.refCount}},h=function(e){function t(t,n){e.call(this,t),this.connectable=n}return Object(i.b)(t,e),t.prototype._error=function(t){this._unsubscribe(),e.prototype._error.call(this,t)},t.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}},t}(u.b),g=function(){function e(e,t){this.subjectFactory=e,this.selector=t}return e.prototype.call=function(e,t){var n=this.selector,r=this.subjectFactory(),o=n(r).subscribe(e);return o.add(t.subscribe(r)),o},e}();t.a=function(){return function(e){return r()(function(e,t){return function(t){var n;if(n="function"==typeof e?e:function(){return e},!1)return t.lift(new g(n,void 0));var r=Object.create(t,f);return r.source=t,r.subjectFactory=n,r}}(o)(e))}(this)}},V7AE:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("xIGM").a.Symbol,o="function"==typeof r&&"function"==typeof r.for?r.for("rxSubscriber"):"@@rxSubscriber"},YuZA:function(e,t){function n(e){return Promise.resolve().then(function(){throw new Error("Cannot find module '"+e+"'.")})}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id="YuZA"},cDNt:function(e,t,n){"use strict";function r(e,t){return!(!e||0!==t.length&&!t.filter(function(t){return-1!==t.indexOf(e)}).length)}function o(e,t){for(var n in t)n&&(this[n]&&(e[n]=this[n]),e.hasOwnProperty(n)||(e[n]=t[n]));return e}function i(e){return"basic"===e&&"vertical"}function u(e){return Ve._12(0,[(e()(),Ve.V(0,0,null,null,9,"div",[["class","ngx-editor-grippie"]],null,null,null,null,null)),(e()(),Ve._11(-1,null,["\n "])),(e()(),Ve.V(2,0,null,null,6,":svg:svg",[[":xmlns:xlink","http://www.w3.org/1999/xlink"],["height","5"],["style","isolation:isolate"],["viewBox","651.6 235 26 5"],["width","26"],["xmlns","http://www.w3.org/2000/svg"]],null,null,null,null,null)),(e()(),Ve._11(-1,null,["\n "])),(e()(),Ve.V(4,0,null,null,3,":svg:g",[["id","sprites"]],null,null,null,null,null)),(e()(),Ve._11(-1,null,["\n "])),(e()(),Ve.V(6,0,null,null,0,":svg:path",[["d"," M 651.6 235 L 653.6 235 L 653.6 237 L 651.6 237 M 654.6 238 L 656.6 238 L 656.6 240 L 654.6 240 M 660.6 238 L 662.6 238 L 662.6 240 L 660.6 240 M 666.6 238 L 668.6 238 L 668.6 240 L 666.6 240 M 672.6 238 L 674.6 238 L 674.6 240 L 672.6 240 M 657.6 235 L 659.6 235 L 659.6 237 L 657.6 237 M 663.6 235 L 665.6 235 L 665.6 237 L 663.6 237 M 669.6 235 L 671.6 235 L 671.6 237 L 669.6 237 M 675.6 235 L 677.6 235 L 677.6 237 L 675.6 237"],["fill","rgb(147,153,159)"]],null,null,null,null,null)),(e()(),Ve._11(-1,null,["\n "])),(e()(),Ve._11(-1,null,["\n "])),(e()(),Ve._11(-1,null,["\n"])),(e()(),Ve._11(-1,null,["\n"]))],null,null)}function l(e,t){t=encodeURIComponent(t);for(var n=0,r=e.split(";");n/g,">")}function $(e){cn.attributeMap(e).forEach(function(t,n){"xmlns:ns1"!==n&&0!==n.indexOf("ns1:")||cn.removeAttribute(e,n)});for(var t=0,n=cn.childNodesAsList(e);t1?"path: '"+e.path.join(" -> ")+"'":e.path[0]?"name: '"+e.path+"'":"unspecified name attribute",new Error(t+" "+n)}function pe(e){return null!=e?Ln.compose(e.map(ie)):null}function fe(e){return null!=e?Ln.composeAsync(e.map(ue)):null}function he(e){var t=ye(e)?e.validators:e;return Array.isArray(t)?pe(t):t||null}function ge(e,t){var n=ye(t)?t.asyncValidators:e;return Array.isArray(n)?fe(n):n||null}function ye(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function ve(e){return Ve._12(0,[(e()(),Ve.V(0,0,null,null,1,"app-ngx-grippie",[],null,[["document","mousemove"],["document","mouseup"],[null,"mousedown"]],function(e,t,n){var r=!0;return"document:mousemove"===t&&(r=!1!==Ve._7(e,1).onMouseMove(n)&&r),"document:mouseup"===t&&(r=!1!==Ve._7(e,1).onMouseUp(n)&&r),"mousedown"===t&&(r=!1!==Ve._7(e,1).onResize(n)&&r),r},u,Me)),Ve.U(1,49152,null,0,Ie,[je],null,null)],null,null)}function me(e){return Ve._12(0,[Ve._9(402653184,1,{textArea:0}),(e()(),Ve.V(1,0,null,null,13,"div",[["class","ngx-editor"],["id","ngxEditor"]],[[4,"width",null],[4,"minWidth",null]],null,null,null,null)),(e()(),Ve._11(-1,null,["\n\n "])),(e()(),Ve.V(3,0,null,null,1,"app-ngx-editor-toolbar",[],null,[[null,"execute"]],function(e,t,n){var r=!0;return"execute"===t&&(r=!1!==e.component.executeCommand(n)&&r),r},M,Ke)),Ve.U(4,49152,null,0,We,[],{config:[0,"config"],enableToolbar:[1,"enableToolbar"]},{execute:"execute"}),(e()(),Ve._11(-1,null,["\n\n "])),(e()(),Ve._11(-1,null,["\n "])),(e()(),Ve.V(7,0,[[1,0],["ngxTextArea",1]],null,0,"div",[["class","ngx-editor-textarea"]],[[1,"contenteditable",0],[1,"placeholder",0],[1,"translate",0],[1,"spellcheck",0],[4,"height",null],[4,"minHeight",null],[4,"resize",null]],[[null,"input"],[null,"focus"],[null,"blur"]],function(e,t,n){var r=!0,o=e.component;return"input"===t&&(r=!1!==o.onContentChange(n.target.innerHTML)&&r),"focus"===t&&(r=!1!==o.onFocus()&&r),"blur"===t&&(r=!1!==o.onBlur()&&r),r},null,null)),(e()(),Ve._11(-1,null,["\n\n "])),(e()(),Ve.V(9,0,null,null,1,"app-ngx-editor-message",[],null,null,null,L,rt)),Ve.U(10,49152,null,0,Xe,[nt],null,null),(e()(),Ve._11(-1,null,["\n\n "])),(e()(),Ve.Q(16777216,null,null,1,null,ve)),Ve.U(13,16384,null,0,qe,[Ve.E,Ve.B],{ngIf:[0,"ngIf"]},null),(e()(),Ve._11(-1,null,["\n\n"])),(e()(),Ve._11(-1,null,["\n"]))],function(e,t){var n=t.component;e(t,4,0,n.config,n.enableToolbar),e(t,13,0,"stack"===n.resizer)},function(e,t){var n=t.component;e(t,1,0,n.config.width,n.config.minWidth),e(t,7,0,n.config.editable,n.config.placeholder,n.config.translate,n.config.spellcheck,n.config.height,n.config.minHeight,null==n.Utils?null:n.Utils.canResize(n.resizer))})}function be(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}function _e(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function we(e){return"undefined"!=typeof Blob&&e instanceof Blob}function Ce(e){return"undefined"!=typeof FormData&&e instanceof FormData}function Ee(e,t){return{body:t,headers:e.headers,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}function xe(e,t){return void 0===t&&(t=[]),t?t.reduceRight(function(e,t){return new Ar(e,t)},e):e}function Oe(e){return Ve._12(0,[(e()(),Ve.V(0,0,null,null,7,"div",[["class","htmlblock block"]],null,null,null,null,null)),(e()(),Ve._11(-1,null,["\n "])),(e()(),Ve.V(2,0,null,null,1,"h6",[],null,null,null,null,null)),(e()(),Ve._11(-1,null,["HTML Output"])),(e()(),Ve._11(-1,null,["\n "])),(e()(),Ve.V(5,0,null,null,1,"div",[["class","html"]],null,null,null,null,null)),(e()(),Ve._11(6,null,["\n ","\n "])),(e()(),Ve._11(-1,null,["\n "]))],null,function(e,t){e(t,6,0,t.component.htmlContent)})}function Te(e){return Ve._12(0,[(e()(),Ve.V(0,0,null,null,55,"div",[["class","container"]],null,null,null,null,null)),(e()(),Ve._11(-1,null,["\n "])),(e()(),Ve.V(2,0,null,null,27,"div",[["class","logo block"]],null,null,null,null,null)),(e()(),Ve._11(-1,null,["\n "])),(e()(),Ve.V(4,0,null,null,0,"img",[["alt","ngx-Editor"],["src","assets/icons/ngx-editor.svg"]],null,null,null,null,null)),(e()(),Ve._11(-1,null,["\n "])),(e()(),Ve.V(6,0,null,null,1,"h6",[],null,null,null,null,null)),(e()(),Ve._11(-1,null,["WYSIWYG Editor for Angular Applications."])),(e()(),Ve._11(-1,null,["\n "])),(e()(),Ve.V(9,0,null,null,4,"p",[],null,null,null,null,null)),(e()(),Ve._11(-1,null,["(Currently -\n "])),(e()(),Ve.V(11,0,null,null,1,"a",[["href","https://github.com/Sibiraj-S/ngx-editor/releases/latest"]],null,null,null,null,null)),(e()(),Ve._11(12,null,["",""])),(e()(),Ve._11(-1,null,[") "])),(e()(),Ve._11(-1,null,["\n "])),(e()(),Ve.V(15,0,null,null,1,"a",[["aria-label","Follow @Sibiraj-S on GitHub"],["class","github-button"],["href","https://github.com/Sibiraj-S"]],null,null,null,null,null)),(e()(),Ve._11(-1,null,["Follow @Sibiraj-S"])),(e()(),Ve._11(-1,null,["\n "])),(e()(),Ve.V(18,0,null,null,1,"a",[["aria-label","Fork Sibiraj-S/ngx-editor on GitHub"],["class","github-button"],["href","https://github.com/Sibiraj-S/ngx-editor/fork"]],null,null,null,null,null)),(e()(),Ve._11(-1,null,["Fork"])),(e()(),Ve._11(-1,null,["\n "])),(e()(),Ve.V(21,0,null,null,1,"a",[["aria-label","Star Sibiraj-S/ngx-editor on GitHub"],["class","github-button"],["href","https://github.com/Sibiraj-S/ngx-editor"]],null,null,null,null,null)),(e()(),Ve._11(-1,null,["Star"])),(e()(),Ve._11(-1,null,["\n "])),(e()(),Ve.V(24,0,null,null,1,"a",[["aria-label","Issue Sibiraj-S/ngx-editor on GitHub"],["class","github-button"],["data-show-count","true"],["href","https://github.com/Sibiraj-S/ngx-editor/issues"]],null,null,null,null,null)),(e()(),Ve._11(-1,null,["Issue"])),(e()(),Ve._11(-1,null,["\n "])),(e()(),Ve.V(27,0,null,null,1,"a",[["aria-label","Download Sibiraj-S/ngx-editor on GitHub"],["class","github-button"],["href","https://github.com/Sibiraj-S/ngx-editor/archive/master.zip"]],null,null,null,null,null)),(e()(),Ve._11(-1,null,["Download"])),(e()(),Ve._11(-1,null,["\n "])),(e()(),Ve._11(-1,null,["\n\n "])),(e()(),Ve.V(31,0,null,null,8,"div",[["class","editor block"]],null,null,null,null,null)),(e()(),Ve._11(-1,null,["\n "])),(e()(),Ve.V(33,0,null,null,5,"app-ngx-editor",[],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],["document","click"]],function(e,t,n){var r=!0,o=e.component;return"document:click"===t&&(r=!1!==Ve._7(e,34).onDocumentClick(n)&&r),"ngModelChange"===t&&(r=!1!==(o.htmlContent=n)&&r),r},me,pr)),Ve.U(34,114688,null,0,je,[Ve.h,nt,dr,Ve.w],{spellcheck:[0,"spellcheck"],placeholder:[1,"placeholder"],config:[2,"config"]},null),Ve._8(1024,null,Fn,function(e){return[e]},[je]),Ve.U(36,671744,null,0,sr,[[8,null],[8,null],[8,null],[2,Fn]],{model:[0,"model"]},{update:"ngModelChange"}),Ve._8(2048,null,Bn,null,[sr]),Ve.U(38,16384,null,0,Wn,[Bn],null,null),(e()(),Ve._11(-1,null,["\n "])),(e()(),Ve._11(-1,null,["\n\n "])),(e()(),Ve.Q(16777216,null,null,1,null,Oe)),Ve.U(42,16384,null,0,qe,[Ve.E,Ve.B],{ngIf:[0,"ngIf"]},null),(e()(),Ve._11(-1,null,["\n "])),(e()(),Ve.V(44,0,null,null,10,"div",[["class","information block"]],null,null,null,null,null)),(e()(),Ve._11(-1,null,["\n "])),(e()(),Ve.V(46,0,null,null,1,"h6",[],null,null,null,null,null)),(e()(),Ve._11(-1,null,["Documentation"])),(e()(),Ve._11(-1,null,["\n "])),(e()(),Ve.V(49,0,null,null,4,"p",[],null,null,null,null,null)),(e()(),Ve._11(-1,null,["Check\n "])),(e()(),Ve.V(51,0,null,null,1,"a",[["href","https://github.com/Sibiraj-S/ngx-editor/wiki/ngxEditor"]],null,null,null,null,null)),(e()(),Ve._11(-1,null,["wiki"])),(e()(),Ve._11(-1,null,[" for more information"])),(e()(),Ve._11(-1,null,["\n "])),(e()(),Ve._11(-1,null,["\n"])),(e()(),Ve._11(-1,null,["\n"]))],function(e,t){var n=t.component;e(t,34,0,!0,"Enter text here...",n.editorConfig),e(t,36,0,n.htmlContent),e(t,42,0,n.htmlContent)},function(e,t){e(t,12,0,t.component.latestRelease.name),e(t,33,0,Ve._7(t,38).ngClassUntouched,Ve._7(t,38).ngClassTouched,Ve._7(t,38).ngClassPristine,Ve._7(t,38).ngClassDirty,Ve._7(t,38).ngClassValid,Ve._7(t,38).ngClassInvalid,Ve._7(t,38).ngClassPending)})}Object.defineProperty(t,"__esModule",{value:!0});var ke={};n.d(ke,"canEnableToolbarOptions",function(){return r}),n.d(ke,"getEditorConfiguration",function(){return o}),n.d(ke,"canResize",function(){return i});var Ve=n("LMZF"),Se=function(){},Ae=n("TO51"),Pe=function(){function e(e){this._appService=e,this.title="ngx-editor",this.latestRelease={},this.subscription=new Ae.a,this.editorConfig={editable:!0,spellcheck:!1,height:"5rem",minHeight:"2rem",placeholder:"Enter text here...",translate:"no"},this.htmlContent="WYSIWYG Editor for Angular Applications."}return e.prototype.getLatestRelease=function(){var e=this;this.subscription=this._appService.getLatestRelease().subscribe(function(t){return e.latestRelease=t},function(e){console.log(e)},function(){console.log("latest release: "+e.latestRelease.name)})},e.prototype.ngOnInit=function(){this.getLatestRelease()},e.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},e}(),Ie=function(){function e(e){this._editorComponent=e,this.oldY=0,this.grabber=!1}return e.prototype.onMouseMove=function(e){this.grabber&&(this._editorComponent.resizeTextArea(e.clientY-this.oldY),this.oldY=e.clientY)},e.prototype.onMouseUp=function(e){this.grabber=!1},e.prototype.onResize=function(e,t){this.grabber=!0,this.oldY=e.clientY,e.preventDefault()},e}(),Ne={editable:!0,spellcheck:!0,height:"auto",minHeight:"0",width:"auto",minWidth:"0",translate:"yes",placeholder:"Enter text here...",toolbar:[["bold","italic","underline","strikeThrough","superscript","subscript"],["justifyLeft","justifyCenter","justifyRight","justifyFull","indent","outdent"],["cut","copy","delete","removeFormat","undo","redo"],["paragraph","blockquote","removeBlockquote","horizontalLine","orderedList","unorderedList"],["link","unlink","image"]]},je=function(){function e(e,t,n,r){this._elementRef=e,this._messageService=t,this._commandExecutor=n,this._renderer=r,this.resizer="stack",this.config=Ne,this.enableToolbar=!1,this.Utils=ke,this.lastViewModel=""}return e.prototype.onFocus=function(){this.enableToolbar=!0},e.prototype.onDocumentClick=function(e){this.enableToolbar=!!this._elementRef.nativeElement.contains(e.target)},e.prototype.onContentChange=function(e){"function"==typeof this.onChange&&this.onChange(e)},e.prototype.onBlur=function(){"function"==typeof this.onTouched&&this.onTouched()},e.prototype.resizeTextArea=function(e){var t=parseInt(this.height,10);this.height=(t+=e)+"px",this.textArea.nativeElement.style.height=this.height},e.prototype.executeCommand=function(e){try{this._commandExecutor.execute(e)}catch(e){this._messageService.sendMessage(e.message)}},e.prototype.writeValue=function(e){void 0!==e&&this.refreshView(e)},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.refreshView=function(e){this._renderer.setProperty(this.textArea.nativeElement,"innerHTML",null==e?"":e)},e.prototype.ngOnInit=function(){this.config=this.Utils.getEditorConfiguration(this.config,Ne),this.height=this.height||this.textArea.nativeElement.offsetHeight,this.executeCommand("enableObjectResizing")},e}(),Me=Ve.T({encapsulation:0,styles:[[".ngx-editor-grippie[_ngcontent-%COMP%]{height:9px;background-color:#f1f1f1;position:relative;text-align:center;cursor:s-resize;border:1px solid #ddd;border-top:transparent}.ngx-editor-grippie[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{position:absolute;top:1.5px;width:50%;right:25%}"]],data:{}}),Re=n("6Xbx"),De=function(){},Le=["en",[["a","p"],["AM","PM"]],[["AM","PM"],,],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",,"{1} 'at' {0}"],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"$","US Dollar",function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}],Fe={},Ue=function(){var e={Zero:0,One:1,Two:2,Few:3,Many:4,Other:5};return e[e.Zero]="Zero",e[e.One]="One",e[e.Two]="Two",e[e.Few]="Few",e[e.Many]="Many",e[e.Other]="Other",e}(),He=new Ve.l("UseV4Plurals"),ze=function(){},Be=function(e){function t(t,n){var r=e.call(this)||this;return r.locale=t,r.deprecatedPluralFn=n,r}return Object(Re.b)(t,e),t.prototype.getPluralCategory=function(e,t){switch(this.deprecatedPluralFn?this.deprecatedPluralFn(t||this.locale,e):function(e){return function(e){var t=e.toLowerCase().replace(/_/g,"-"),n=Fe[t];if(n)return n;var r=t.split("-")[0];if(n=Fe[r])return n;if("en"===r)return Le;throw new Error('Missing locale data for the locale "'+e+'".')}(e)[17]}(t||this.locale)(e)){case Ue.Zero:return"zero";case Ue.One:return"one";case Ue.Two:return"two";case Ue.Few:return"few";case Ue.Many:return"many";default:return"other"}},t}(ze),qe=function(){function e(e,t){this._viewContainer=e,this._context=new Ge,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=t}return Object.defineProperty(e.prototype,"ngIf",{set:function(e){this._context.$implicit=this._context.ngIf=e,this._updateView()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngIfThen",{set:function(e){this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngIfElse",{set:function(e){this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()},enumerable:!0,configurable:!0}),e.prototype._updateView=function(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))},e}(),Ge=function(){this.$implicit=null,this.ngIf=null},Qe=function(){},Ze=new Ve.l("DocumentToken"),We=function(){function e(){this.enableToolbar=!1,this.execute=new Ve.j}return e.prototype.canEnableToolbarOptions=function(e){return r(e,this.config.toolbar)},e.prototype.triggerCommand=function(e){this.execute.emit(e)},e}(),Ke=Ve.T({encapsulation:0,styles:[[".ngx-toolbar[_ngcontent-%COMP%]{background-color:#f5f5f5;border-bottom:1px solid #ddd;font-size:.8rem;padding:.2rem;border:1px solid #ddd}.ngx-toolbar[_ngcontent-%COMP%] .ngx-toolbar-set[_ngcontent-%COMP%]{display:inline-block;border:1px solid #ddd;border-radius:5px;background-color:#fff}.ngx-toolbar[_ngcontent-%COMP%] .ngx-toolbar-set[_ngcontent-%COMP%] .ngx-editor-button[_ngcontent-%COMP%]{background-color:#f5f5f5;background-color:transparent;border:0;padding:.4rem;min-width:2.5rem;float:left;border-right:1px solid #ddd}.ngx-toolbar[_ngcontent-%COMP%] .ngx-toolbar-set[_ngcontent-%COMP%] .ngx-editor-button[_ngcontent-%COMP%]:hover{cursor:pointer;background-color:#f1f1f1;transition:.2s ease}.ngx-toolbar[_ngcontent-%COMP%] .ngx-toolbar-set[_ngcontent-%COMP%] .ngx-editor-button.focus[_ngcontent-%COMP%], .ngx-toolbar[_ngcontent-%COMP%] .ngx-toolbar-set[_ngcontent-%COMP%] .ngx-editor-button[_ngcontent-%COMP%]:focus{outline:0}.ngx-toolbar[_ngcontent-%COMP%] .ngx-toolbar-set[_ngcontent-%COMP%] .ngx-editor-button[_ngcontent-%COMP%]:last-child{border-right:transparent}.ngx-toolbar[_ngcontent-%COMP%] .ngx-toolbar-set[_ngcontent-%COMP%] .ngx-editor-button[_ngcontent-%COMP%]:first-child{border-top-left-radius:5px;border-bottom-left-radius:5px}.ngx-toolbar[_ngcontent-%COMP%] .ngx-toolbar-set[_ngcontent-%COMP%] .ngx-editor-button[_ngcontent-%COMP%]:last-child{border-top-right-radius:5px;border-bottom-right-radius:5px}.ngx-toolbar[_ngcontent-%COMP%] .ngx-toolbar-set[_ngcontent-%COMP%] .ngx-editor-button[_ngcontent-%COMP%]:disabled{background-color:#f5f5f5;pointer-events:none;cursor:not-allowed}"]],data:{}}),Xe=function(){function e(e){var t=this;this._messageService=e,this.ngxMessage="",this._messageService.getMessage().subscribe(function(e){return t.ngxMessage=e})}return e.prototype.clearMessage=function(){this.ngxMessage=void 0},e}(),Ye=n("AP4T"),Je=n("E9/g"),$e=function(){function e(e,t){this.project=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new et(e,this.project,this.thisArg))},e}(),et=function(e){function t(t,n,r){e.call(this,t),this.project=n,this.count=0,this.thisArg=r||this}return Object(Re.b)(t,e),t.prototype._next=function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(e){return void this.destination.error(e)}this.destination.next(t)},t}(Je.a);Ye.a.prototype.map=R;var tt,nt=function(){function e(){this.message=new Ae.a}return e.prototype.getMessage=function(){return this.message.asObservable()},e.prototype.sendMessage=function(e){this.message.next(e),this.clearMessageIn(5e3)},e.prototype.clearMessageIn=function(e){var t=this;setTimeout(function(){t.message.next(void 0)},e)},e}(),rt=Ve.T({encapsulation:0,styles:[[".ngx-editor-message[_ngcontent-%COMP%]{font-size:80%;background-color:#f1f1f1;border:1px solid #ddd;border-top:transparent;padding:0 .5rem;padding-bottom:.1rem;transition:.5s ease-in}"]],data:{}}),ot=n("Ecq+"),it=n("1j/l"),ut=n("qgI0"),lt=n("lI6h"),st=function(e){function t(t,n){e.call(this),this.sources=t,this.resultSelector=n}return Object(Re.b)(t,e),t.create=function(){for(var e=[],n=0;n0},t.prototype.tagName=function(e){return e.tagName},t.prototype.attributeMap=function(e){for(var t=new Map,n=e.attributes,r=0;r0;u||(u=e[i]=[]);var s=Xt(t)?Zone.root:Zone.current;if(0===u.length)u.push({zone:s,handler:o});else{for(var a=!1,c=0;c-1},t}(Pt),rn=["alt","control","meta","shift"],on={alt:function(e){return e.altKey},control:function(e){return e.ctrlKey},meta:function(e){return e.metaKey},shift:function(e){return e.shiftKey}},un=function(e){function t(t){return e.call(this,t)||this}return Object(Re.b)(t,e),t.prototype.supports=function(e){return null!=t.parseEventName(e)},t.prototype.addEventListener=function(e,n,r){var o=t.parseEventName(n),i=t.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return H().onAndCancel(e,o.domEventName,i)})},t.parseEventName=function(e){var n=e.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;var o=t._normalizeKey(n.pop()),i="";if(rn.forEach(function(e){var t=n.indexOf(e);t>-1&&(n.splice(t,1),i+=e+".")}),i+=o,0!=n.length||0===o.length)return null;var u={};return u.domEventName=r,u.fullKey=i,u},t.getEventFullKey=function(e){var t="",n=H().getEventKey(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),rn.forEach(function(r){r!=n&&(0,on[r])(e)&&(t+=r+".")}),t+=n},t.eventCallback=function(e,n,r){return function(o){t.getEventFullKey(o)===e&&r.runGuarded(function(){return n(o)})}},t._normalizeKey=function(e){switch(e){case"esc":return"escape";default:return e}},t}(Pt),ln=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,sn=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i,an=null,cn=null,dn=K("area,br,col,hr,img,wbr"),pn=K("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),fn=K("rp,rt"),hn=X(fn,pn),gn=X(dn,X(pn,K("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),X(fn,K("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),hn),yn=K("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),vn=K("srcset"),mn=X(yn,vn,K("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width")),bn=function(){function e(){this.sanitizedSomething=!1,this.buf=[]}return e.prototype.sanitizeChildren=function(e){for(var t=e.firstChild;t;)if(cn.isElementNode(t)?this.startElement(t):cn.isTextNode(t)?this.chars(cn.nodeValue(t)):this.sanitizedSomething=!0,cn.firstChild(t))t=cn.firstChild(t);else for(;t;){cn.isElementNode(t)&&this.endElement(t);var n=Y(t,cn.nextSibling(t));if(n){t=n;break}t=Y(t,cn.parentElement(t))}return this.buf.join("")},e.prototype.startElement=function(e){var t=this,n=cn.nodeName(e).toLowerCase();gn.hasOwnProperty(n)?(this.buf.push("<"),this.buf.push(n),cn.attributeMap(e).forEach(function(e,n){var r=n.toLowerCase();mn.hasOwnProperty(r)?(yn[r]&&(e=W(e)),vn[r]&&(e=function(e){return(e=String(e)).split(",").map(function(e){return W(e.trim())}).join(", ")}(e)),t.buf.push(" "),t.buf.push(n),t.buf.push('="'),t.buf.push(J(e)),t.buf.push('"')):t.sanitizedSomething=!0}),this.buf.push(">")):this.sanitizedSomething=!0},e.prototype.endElement=function(e){var t=cn.nodeName(e).toLowerCase();gn.hasOwnProperty(t)&&!dn.hasOwnProperty(t)&&(this.buf.push(""))},e.prototype.chars=function(e){this.buf.push(J(e))},e}(),_n=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,wn=/([^\#-~ |!])/g,Cn=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:calc|attr))\\([-0-9.%, #a-zA-Z]+\\))$","g"),En=/^url\(([^)]+)\)$/,xn=function(){},On=function(e){function t(t){var n=e.call(this)||this;return n._doc=t,n}return Object(Re.b)(t,e),t.prototype.sanitize=function(e,t){if(null==t)return null;switch(e){case Ve.A.NONE:return t;case Ve.A.HTML:return t instanceof kn?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"HTML"),function(e,t){try{var n=function(){if(an)return an;var e=(cn=H()).createElement("template");if("content"in e)return e;var t=cn.createHtmlDocument();if(null==(an=cn.querySelector(t,"body"))){var n=cn.createElement("html",t);an=cn.createElement("body",t),cn.appendChild(n,an),cn.appendChild(t,n)}return an}(),r=t?String(t):"",o=5,i=r;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,cn.setInnerHTML(n,r=i),e.documentMode&&$(n),i=cn.getInnerHTML(n)}while(r!==i);for(var u=new bn,l=u.sanitizeChildren(cn.getTemplateContent(n)||n),s=cn.getTemplateContent(n)||n,a=0,c=cn.childNodesAsList(s);ae?{max:{max:e,actual:t.value}}:null}},e.required=function(e){return te(e.value)?{required:!0}:null},e.requiredTrue=function(e){return!0===e.value?null:{required:!0}},e.email=function(e){return Dn.test(e.value)?null:{email:!0}},e.minLength=function(e){return function(t){if(te(t.value))return null;var n=t.value?t.value.length:0;return ne?{maxlength:{requiredLength:e,actualLength:n}}:null}},e.pattern=function(t){if(!t)return e.nullValidator;var n,r;return"string"==typeof t?(r="^"+t+"$",n=new RegExp(r)):(r=t.toString(),n=t),function(e){if(te(e.value))return null;var t=e.value;return n.test(t)?null:{pattern:{requiredPattern:r,actualValue:t}}}},e.nullValidator=function(e){return null},e.compose=function(e){if(!e)return null;var t=e.filter(ne);return 0==t.length?null:function(e){return oe(function(e,n){return t.map(function(t){return t(e)})}(e))}},e.composeAsync=function(e){if(!e)return null;var t=e.filter(ne);return 0==t.length?null:function(e){var n=function(e,n){return t.map(function(t){return t(e)})}(e).map(re);return R.call(ct(n),oe)}},e}(),Fn=new Ve.l("NgValueAccessor"),Un=function(){function e(e,t){this._renderer=e,this._elementRef=t,this.onChange=function(e){},this.onTouched=function(){}}return e.prototype.writeValue=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"checked",e)},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e}(),Hn=function(){function e(e,t,n){this._renderer=e,this._elementRef=t,this._compositionMode=n,this.onChange=function(e){},this.onTouched=function(){},this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){var e=H()?H().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}())}return e.prototype.writeValue=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e.prototype._handleInput=function(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)},e.prototype._compositionStart=function(){this._composing=!0},e.prototype._compositionEnd=function(e){this._composing=!1,this._compositionMode&&this.onChange(e)},e}(),zn=function(){function e(e,t){this._renderer=e,this._elementRef=t,this.onChange=function(e){},this.onTouched=function(){}}return e.prototype.writeValue=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)},e.prototype.registerOnChange=function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e}(),Bn=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._parent=null,t.name=null,t.valueAccessor=null,t._rawValidators=[],t._rawAsyncValidators=[],t}return Object(Re.b)(t,e),Object.defineProperty(t.prototype,"validator",{get:function(){return le()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return le()},enumerable:!0,configurable:!0}),t}(Mn),qn=function(){function e(){this._accessors=[]}return e.prototype.add=function(e,t){this._accessors.push([e,t])},e.prototype.remove=function(e){for(var t=this._accessors.length-1;t>=0;--t)if(this._accessors[t][1]===e)return void this._accessors.splice(t,1)},e.prototype.select=function(e){var t=this;this._accessors.forEach(function(n){t._isSameGroup(n,e)&&n[1]!==e&&n[1].fireUncheck(e.value)})},e.prototype._isSameGroup=function(e,t){return!!e[0].control&&e[0]._parent===t._control._parent&&e[1].name===t.name},e}(),Gn=function(){function e(e,t,n,r){this._renderer=e,this._elementRef=t,this._registry=n,this._injector=r,this.onChange=function(){},this.onTouched=function(){}}return e.prototype.ngOnInit=function(){this._control=this._injector.get(Bn),this._checkName(),this._registry.add(this._control,this)},e.prototype.ngOnDestroy=function(){this._registry.remove(this)},e.prototype.writeValue=function(e){this._state=e===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)},e.prototype.registerOnChange=function(e){var t=this;this._fn=e,this.onChange=function(){e(t.value),t._registry.select(t)}},e.prototype.fireUncheck=function(e){this.writeValue(e)},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e.prototype._checkName=function(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)},e.prototype._throwNameError=function(){throw new Error('\n If you define both a name and a formControlName attribute on your radio button, their values\n must match. Ex: \n ')},e}(),Qn=[Un,function(){function e(e,t){this._renderer=e,this._elementRef=t,this.onChange=function(e){},this.onTouched=function(){}}return e.prototype.writeValue=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(e))},e.prototype.registerOnChange=function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e}(),zn,function(){function e(e,t){this._renderer=e,this._elementRef=t,this._optionMap=new Map,this._idCounter=0,this.onChange=function(e){},this.onTouched=function(){},this._compareWith=Ve._3}return Object.defineProperty(e.prototype,"compareWith",{set:function(e){if("function"!=typeof e)throw new Error("compareWith must be a function, but received "+JSON.stringify(e));this._compareWith=e},enumerable:!0,configurable:!0}),e.prototype.writeValue=function(e){this.value=e;var t=this._getOptionId(e);null==t&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);var n=function(e,n){return null==t?""+n:(n&&"object"==typeof n&&(n="Object"),(t+": "+n).slice(0,50))}(0,e);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)},e.prototype.registerOnChange=function(e){var t=this;this.onChange=function(n){t.value=t._getOptionValue(n),e(t.value)}},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e.prototype._registerOption=function(){return(this._idCounter++).toString()},e.prototype._getOptionId=function(e){for(var t=0,n=Array.from(this._optionMap.keys());t-1)}}else n=function(e,t){e._setSelected(!1)};this._optionMap.forEach(n)},e.prototype.registerOnChange=function(e){var t=this;this.onChange=function(n){var r=[];if(n.hasOwnProperty("selectedOptions"))for(var o=n.selectedOptions,i=0;i0||this.disabled},t.prototype._checkAllValuesPresent=function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control with name: '"+n+"'.")})},t}(Yn),er=function(e){function t(t,n,r){var o=e.call(this,he(n),ge(r,n))||this;return o.controls=t,o._initObservables(),o._setUpdateStrategy(n),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o}return Object(Re.b)(t,e),t.prototype.at=function(e){return this.controls[e]},t.prototype.push=function(e){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.insert=function(e,t){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.removeAt=function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.setControl=function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity(),this._onCollectionChange()},Object.defineProperty(t.prototype,"length",{get:function(){return this.controls.length},enumerable:!0,configurable:!0}),t.prototype.setValue=function(e,t){var n=this;void 0===t&&(t={}),this._checkAllValuesPresent(e),e.forEach(function(e,r){n._throwIfControlMissing(r),n.at(r).setValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)},t.prototype.patchValue=function(e,t){var n=this;void 0===t&&(t={}),e.forEach(function(e,r){n.at(r)&&n.at(r).patchValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)},t.prototype.reset=function(e,t){void 0===e&&(e=[]),void 0===t&&(t={}),this._forEachChild(function(n,r){n.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t),this._updatePristine(t),this._updateTouched(t)},t.prototype.getRawValue=function(){return this.controls.map(function(e){return e instanceof Jn?e.value:e.getRawValue()})},t.prototype._syncPendingControls=function(){var e=this.controls.reduce(function(e,t){return!!t._syncPendingControls()||e},!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e},t.prototype._throwIfControlMissing=function(e){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(e))throw new Error("Cannot find form control at index "+e)},t.prototype._forEachChild=function(e){this.controls.forEach(function(t,n){e(t,n)})},t.prototype._updateValue=function(){var e=this;this.value=this.controls.filter(function(t){return t.enabled||e.disabled}).map(function(e){return e.value})},t.prototype._anyControls=function(e){return this.controls.some(function(t){return t.enabled&&e(t)})},t.prototype._setUpControls=function(){var e=this;this._forEachChild(function(t){return e._registerControl(t)})},t.prototype._checkAllValuesPresent=function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control at index: "+n+".")})},t.prototype._allControlsDisabled=function(){for(var e=0,t=this.controls;e0||this.disabled},t.prototype._registerControl=function(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)},t}(Yn),tr=Promise.resolve(null),nr=function(e){function t(t,n){var r=e.call(this)||this;return r.submitted=!1,r._directives=[],r.ngSubmit=new Ve.j,r.form=new $n({},pe(t),fe(n)),r}return Object(Re.b)(t,e),t.prototype.ngAfterViewInit=function(){this._setUpdateStrategy()},Object.defineProperty(t.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"controls",{get:function(){return this.form.controls},enumerable:!0,configurable:!0}),t.prototype.addControl=function(e){var t=this;tr.then(function(){var n=t._findContainer(e.path);e.control=n.registerControl(e.name,e.control),ae(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),t._directives.push(e)})},t.prototype.getControl=function(e){return this.form.get(e.path)},t.prototype.removeControl=function(e){var t=this;tr.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name),function(t,n){var r=t.indexOf(e);r>-1&&t.splice(r,1)}(t._directives)})},t.prototype.addFormGroup=function(e){var t=this;tr.then(function(){var n=t._findContainer(e.path),r=new $n({});(function(e,t){null==e&&de(t,"Cannot find control with"),e.validator=Ln.compose([e.validator,t.validator]),e.asyncValidator=Ln.composeAsync([e.asyncValidator,t.asyncValidator])})(r,e),n.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})},t.prototype.removeFormGroup=function(e){var t=this;tr.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name)})},t.prototype.getFormGroup=function(e){return this.form.get(e.path)},t.prototype.updateModel=function(e,t){var n=this;tr.then(function(){n.form.get(e.path).setValue(t)})},t.prototype.setValue=function(e){this.control.setValue(e)},t.prototype.onSubmit=function(e){return this.submitted=!0,function(e,t){e._syncPendingControls(),t.forEach(function(e){var t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}(this.form,this._directives),this.ngSubmit.emit(e),!1},t.prototype.onReset=function(){this.resetForm()},t.prototype.resetForm=function(e){void 0===e&&(e=void 0),this.form.reset(e),this.submitted=!1},t.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)},t.prototype._findContainer=function(e){return e.pop(),e.length?this.form.get(e):this.form},t}(Rn),rr='\n
\n
\n \n
\n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',or='\n
\n
\n \n
\n
',ir=function(){function e(){}return e.modelParentException=function(){throw new Error('\n ngModel cannot be used to register form controls with a parent formGroup directive. Try using\n formGroup\'s partner directive "formControlName" instead. Example:\n\n \n
\n \n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });\n\n Or, if you\'d like to avoid registering this form control, indicate that it\'s standalone in ngModelOptions:\n\n Example:\n\n \n
\n \n \n
\n ')},e.formGroupNameException=function(){throw new Error("\n ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n "+rr+"\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n "+or)},e.missingNameException=function(){throw new Error('If ngModel is used within a form tag, either the name attribute must be set or the form\n control must be defined as \'standalone\' in ngModelOptions.\n\n Example 1: \n Example 2: ')},e.modelGroupParentException=function(){throw new Error("\n ngModelGroup cannot be used with a parent formGroup directive.\n\n Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n "+rr+"\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n "+or)},e}(),ur=function(e){function t(t,n,r){var o=e.call(this)||this;return o._parent=t,o._validators=n,o._asyncValidators=r,o}return Object(Re.b)(t,e),t.prototype._checkParentType=function(){this._parent instanceof t||this._parent instanceof nr||ir.modelGroupParentException()},t}(Zn),lr=Promise.resolve(null),sr=function(e){function t(t,n,r,o){var i=e.call(this)||this;return i.control=new Jn,i._registered=!1,i.update=new Ve.j,i._parent=t,i._rawValidators=n||[],i._rawAsyncValidators=r||[],i.valueAccessor=function(e,t){if(!t)return null;var n=void 0,r=void 0,o=void 0;return t.forEach(function(t){t.constructor===Hn?n=t:function(e){return Qn.some(function(t){return e.constructor===t})}(t)?(r&&de(e,"More than one built-in value accessor matches form control with"),r=t):(o&&de(e,"More than one custom value accessor matches form control with"),o=t)}),o||r||n||(de(e,"No valid value accessor for form control with"),null)}(i,o),i}return Object(Re.b)(t,e),t.prototype.ngOnChanges=function(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),function(e,t){if(!e.hasOwnProperty("model"))return!1;var n=e.model;return!!n.isFirstChange()||!Object(Ve._3)(t,n.currentValue)}(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)},t.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},Object.defineProperty(t.prototype,"path",{get:function(){return this._parent?se(this.name,this._parent):[this.name]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return pe(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return fe(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),t.prototype.viewToModelUpdate=function(e){this.viewModel=e,this.update.emit(e)},t.prototype._setUpControl=function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0},t.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)},t.prototype._isStandalone=function(){return!this._parent||!(!this.options||!this.options.standalone)},t.prototype._setUpStandalone=function(){ae(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})},t.prototype._checkForErrors=function(){this._isStandalone()||this._checkParentType(),this._checkName()},t.prototype._checkParentType=function(){!(this._parent instanceof ur)&&this._parent instanceof Zn?ir.formGroupNameException():this._parent instanceof ur||this._parent instanceof nr||ir.modelParentException()},t.prototype._checkName=function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||ir.missingNameException()},t.prototype._updateValue=function(e){var t=this;lr.then(function(){t.control.setValue(e,{emitViewToModelChange:!1})})},t.prototype._updateDisabled=function(e){var t=this,n=e.isDisabled.currentValue,r=""===n||n&&"false"!==n;lr.then(function(){r&&!t.control.disabled?t.control.disable():!r&&t.control.disabled&&t.control.enable()})},t}(Bn),ar=function(){},cr=function(){},dr=function(){function e(){}return e.prototype.execute=function(e){"enableObjectResizing"!==e?"blockquote"!==e?"removeBlockquote"!==e?"link"!==e?"image"!==e?document.execCommand(e,!1,null):this.insertImage():this.createLink():document.execCommand("formatBlock",!1,"div"):document.execCommand("formatBlock",!1,"
"):document.execCommand("enableObjectResizing",!0,!0)},e.prototype.insertImage=function(){var e=prompt("Enter Image URL","http://");if(e&&!document.execCommand("insertImage",!1,e))throw new Error("Invalid URL")},e.prototype.createLink=function(){var e=document.getSelection();if("A"===e.anchorNode.parentElement.tagName)(t=prompt("Enter URL",e.anchorNode.parentElement.getAttribute("href")))&&document.execCommand("createLink",!1,t);else{if("None"===e.type)throw new Error("No selection made");var t=prompt("Enter URL","http://");t&&document.execCommand("createLink",!1,t)}},e}(),pr=Ve.T({encapsulation:0,styles:[[".ngx-editor[_ngcontent-%COMP%]{position:relative}.ngx-editor[_ngcontent-%COMP%] [contenteditable=true]:empty:before{content:attr(placeholder);display:block}.ngx-editor[_ngcontent-%COMP%] .ngx-editor-textarea[_ngcontent-%COMP%]{min-height:5rem;padding:.5rem .8rem 1rem .8rem;border:1px solid #ddd;border-top:transparent!important;background-color:#fff;overflow:auto}.ngx-editor[_ngcontent-%COMP%] .ngx-editor-textarea.focus[_ngcontent-%COMP%], .ngx-editor[_ngcontent-%COMP%] .ngx-editor-textarea[_ngcontent-%COMP%]:focus{outline:0}.ngx-editor[_ngcontent-%COMP%] .ngx-editor-textarea[_ngcontent-%COMP%] blockquote{margin-left:1rem;border-left:.2em solid #dfe2e5;padding-left:.5rem}"]],data:{}}),fr=function(){function e(e){this._http=e,this.releaseURL="https://api.github.com/repos/Sibiraj-S/ngx-editor/releases/latest"}return e.prototype.getLatestRelease=function(){return this._http.get(this.releaseURL).map(function(e){return e&&0!==e.length?e:[]})},e}(),hr=n("Oryw").a.of,gr=n("wP3s"),yr=function(){function e(e,t){this.predicate=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new vr(e,this.predicate,this.thisArg))},e}(),vr=function(e){function t(t,n,r){e.call(this,t),this.predicate=n,this.thisArg=r,this.count=0}return Object(Re.b)(t,e),t.prototype._next=function(e){var t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(e){return void this.destination.error(e)}t&&this.destination.next(e)},t}(Je.a),mr=function(){},br=function(){},_r=function(){function e(e){var t=this;this.normalizedNames=new Map,this.lazyUpdate=null,e?this.lazyInit="string"==typeof e?function(){t.headers=new Map,e.split("\n").forEach(function(e){var n=e.indexOf(":");if(n>0){var r=e.slice(0,n),o=r.toLowerCase(),i=e.slice(n+1).trim();t.maybeSetNormalizedName(r,o),t.headers.has(o)?t.headers.get(o).push(i):t.headers.set(o,[i])}})}:function(){t.headers=new Map,Object.keys(e).forEach(function(n){var r=e[n],o=n.toLowerCase();"string"==typeof r&&(r=[r]),r.length>0&&(t.headers.set(o,r),t.maybeSetNormalizedName(n,o))})}:this.headers=new Map}return e.prototype.has=function(e){return this.init(),this.headers.has(e.toLowerCase())},e.prototype.get=function(e){this.init();var t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null},e.prototype.keys=function(){return this.init(),Array.from(this.normalizedNames.values())},e.prototype.getAll=function(e){return this.init(),this.headers.get(e.toLowerCase())||null},e.prototype.append=function(e,t){return this.clone({name:e,value:t,op:"a"})},e.prototype.set=function(e,t){return this.clone({name:e,value:t,op:"s"})},e.prototype.delete=function(e,t){return this.clone({name:e,value:t,op:"d"})},e.prototype.maybeSetNormalizedName=function(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)},e.prototype.init=function(){var t=this;this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(e){return t.applyUpdate(e)}),this.lazyUpdate=null))},e.prototype.copyFrom=function(e){var t=this;e.init(),Array.from(e.headers.keys()).forEach(function(n){t.headers.set(n,e.headers.get(n)),t.normalizedNames.set(n,e.normalizedNames.get(n))})},e.prototype.clone=function(t){var n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n},e.prototype.applyUpdate=function(e){var t=e.name.toLowerCase();switch(e.op){case"a":case"s":var n=e.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(e.name,t);var r=("a"===e.op?this.headers.get(t):void 0)||[];r.push.apply(r,n),this.headers.set(t,r);break;case"d":var o=e.value;if(o){var i=this.headers.get(t);if(!i)return;0===(i=i.filter(function(e){return-1===o.indexOf(e)})).length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,i)}else this.headers.delete(t),this.normalizedNames.delete(t)}},e.prototype.forEach=function(e){var t=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(n){return e(t.normalizedNames.get(n),t.headers.get(n))})},e}(),wr=function(){function e(){}return e.prototype.encodeKey=function(e){return be(e)},e.prototype.encodeValue=function(e){return be(e)},e.prototype.decodeKey=function(e){return decodeURIComponent(e)},e.prototype.decodeValue=function(e){return decodeURIComponent(e)},e}(),Cr=function(){function e(e){void 0===e&&(e={});var t=this;if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new wr,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(e,t){var n=new Map;return e.length>0&&e.split("&").forEach(function(e){var r=e.indexOf("="),o=-1==r?[t.decodeKey(e),""]:[t.decodeKey(e.slice(0,r)),t.decodeValue(e.slice(r+1))],i=o[0],u=o[1],l=n.get(i)||[];l.push(u),n.set(i,l)}),n}(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(function(n){var r=e.fromObject[n];t.map.set(n,Array.isArray(r)?r:[r])})):this.map=null}return e.prototype.has=function(e){return this.init(),this.map.has(e)},e.prototype.get=function(e){this.init();var t=this.map.get(e);return t?t[0]:null},e.prototype.getAll=function(e){return this.init(),this.map.get(e)||null},e.prototype.keys=function(){return this.init(),Array.from(this.map.keys())},e.prototype.append=function(e,t){return this.clone({param:e,value:t,op:"a"})},e.prototype.set=function(e,t){return this.clone({param:e,value:t,op:"s"})},e.prototype.delete=function(e,t){return this.clone({param:e,value:t,op:"d"})},e.prototype.toString=function(){var e=this;return this.init(),this.keys().map(function(t){var n=e.encoder.encodeKey(t);return e.map.get(t).map(function(t){return n+"="+e.encoder.encodeValue(t)}).join("&")}).join("&")},e.prototype.clone=function(t){var n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat([t]),n},e.prototype.init=function(){var e=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(t){return e.map.set(t,e.cloneFrom.map.get(t))}),this.updates.forEach(function(t){switch(t.op){case"a":case"s":var n=("a"===t.op?e.map.get(t.param):void 0)||[];n.push(t.value),e.map.set(t.param,n);break;case"d":if(void 0===t.value){e.map.delete(t.param);break}var r=e.map.get(t.param)||[],o=r.indexOf(t.value);-1!==o&&r.splice(o,1),r.length>0?e.map.set(t.param,r):e.map.delete(t.param)}}),this.cloneFrom=null)},e}(),Er=function(){function e(e,t,n,r){this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase();var o;if(function(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=n||null,o=r):o=n,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.params&&(this.params=o.params)),this.headers||(this.headers=new _r),this.params){var i=this.params.toString();if(0===i.length)this.urlWithParams=t;else{var u=t.indexOf("?");this.urlWithParams=t+(-1===u?"?":u=200&&this.status<300}}(),Tr=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.type=xr.ResponseHeader,n}return Object(Re.b)(t,e),t.prototype.clone=function(e){return void 0===e&&(e={}),new t({headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})},t}(Or),kr=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.type=xr.Response,n.body=t.body||null,n}return Object(Re.b)(t,e),t.prototype.clone=function(e){return void 0===e&&(e={}),new t({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})},t}(Or),Vr=function(e){function t(t){var n=e.call(this,t,0,"Unknown Error")||this;return n.name="HttpErrorResponse",n.ok=!1,n.message=n.status>=200&&n.status<300?"Http failure during parsing for "+(t.url||"(unknown url)"):"Http failure response for "+(t.url||"(unknown url)")+": "+t.status+" "+t.statusText,n.error=t.error||null,n}return Object(Re.b)(t,e),t}(Or),Sr=function(){function e(e){this.handler=e}return e.prototype.request=function(e,t,n){var r=this;void 0===n&&(n={});var o;if(e instanceof Er)o=e;else{var i=void 0;void 0!==!!n.headers&&(i=n.headers instanceof _r?n.headers:new _r(n.headers));var u=void 0;n.params&&(u=n.params instanceof Cr?n.params:new Cr({fromObject:n.params})),o=new Er(e,t,n.body||null,{headers:i,params:u,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}var l=function(e,t){return function(e,t){return Object(gr.a)(e,t,1)}(e,t)(this)}.call(hr(o),function(e){return r.handler.handle(e)});if(e instanceof Er||"events"===n.observe)return l;var s=function(e,t){return function(e,t){return function(n){return n.lift(new yr(e,t))}}(e,t)(this)}.call(l,function(e){return e instanceof kr});switch(n.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return R.call(s,function(e){if(null!==e.body&&!(e.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return e.body});case"blob":return R.call(s,function(e){if(null!==e.body&&!(e.body instanceof Blob))throw new Error("Response is not a Blob.");return e.body});case"text":return R.call(s,function(e){if(null!==e.body&&"string"!=typeof e.body)throw new Error("Response is not a string.");return e.body});case"json":default:return R.call(s,function(e){return e.body})}case"response":return s;default:throw new Error("Unreachable: unhandled observe type "+n.observe+"}")}},e.prototype.delete=function(e,t){return void 0===t&&(t={}),this.request("DELETE",e,t)},e.prototype.get=function(e,t){return void 0===t&&(t={}),this.request("GET",e,t)},e.prototype.head=function(e,t){return void 0===t&&(t={}),this.request("HEAD",e,t)},e.prototype.jsonp=function(e,t){return this.request("JSONP",e,{params:(new Cr).append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})},e.prototype.options=function(e,t){return void 0===t&&(t={}),this.request("OPTIONS",e,t)},e.prototype.patch=function(e,t,n){return void 0===n&&(n={}),this.request("PATCH",e,Ee(n,t))},e.prototype.post=function(e,t,n){return void 0===n&&(n={}),this.request("POST",e,Ee(n,t))},e.prototype.put=function(e,t,n){return void 0===n&&(n={}),this.request("PUT",e,Ee(n,t))},e}(),Ar=function(){function e(e,t){this.next=e,this.interceptor=t}return e.prototype.handle=function(e){return this.interceptor.intercept(e,this.next)},e}(),Pr=new Ve.l("HTTP_INTERCEPTORS"),Ir=function(){function e(){}return e.prototype.intercept=function(e,t){return t.handle(e)},e}(),Nr=/^\)\]\}',?\n/,jr=function(){},Mr=function(){function e(){}return e.prototype.build=function(){return new XMLHttpRequest},e}(),Rr=function(){function e(e){this.xhrFactory=e}return e.prototype.handle=function(e){var t=this;if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without JsonpClientModule installed.");return new Ye.a(function(n){var r=t.xhrFactory.build();if(r.open(e.method,e.urlWithParams),e.withCredentials&&(r.withCredentials=!0),e.headers.forEach(function(e,t){return r.setRequestHeader(e,t.join(","))}),e.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){var o=e.detectContentTypeHeader();null!==o&&r.setRequestHeader("Content-Type",o)}if(e.responseType){var i=e.responseType.toLowerCase();r.responseType="json"!==i?i:"text"}var u=e.serializeBody(),l=null,s=function(){if(null!==l)return l;var t=1223===r.status?204:r.status,n=r.statusText||"OK",o=new _r(r.getAllResponseHeaders()),i=function(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(r)||e.url;return l=new Tr({headers:o,status:t,statusText:n,url:i})},a=function(){var t=s(),o=t.headers,i=t.status,u=t.statusText,l=t.url,a=null;204!==i&&(a=void 0===r.response?r.responseText:r.response),0===i&&(i=a?200:0);var c=i>=200&&i<300;if(c&&"json"===e.responseType&&"string"==typeof a){a=a.replace(Nr,"");try{a=JSON.parse(a)}catch(e){c=!1,a={error:e,text:a}}}else if(!c&&"json"===e.responseType&&"string"==typeof a)try{a=JSON.parse(a)}catch(e){}c?(n.next(new kr({body:a,headers:o,status:i,statusText:u,url:l||void 0})),n.complete()):n.error(new Vr({error:a,headers:o,status:i,statusText:u,url:l||void 0}))},c=function(e){var t=new Vr({error:e,status:r.status||0,statusText:r.statusText||"Unknown Error"});n.error(t)},d=!1,p=function(t){d||(n.next(s()),d=!0);var o={type:xr.DownloadProgress,loaded:t.loaded};t.lengthComputable&&(o.total=t.total),"text"===e.responseType&&r.responseText&&(o.partialText=r.responseText),n.next(o)},f=function(e){var t={type:xr.UploadProgress,loaded:e.loaded};e.lengthComputable&&(t.total=e.total),n.next(t)};return r.addEventListener("load",a),r.addEventListener("error",c),e.reportProgress&&(r.addEventListener("progress",p),null!==u&&r.upload&&r.upload.addEventListener("progress",f)),r.send(u),n.next({type:xr.Sent}),function(){r.removeEventListener("error",c),r.removeEventListener("load",a),e.reportProgress&&(r.removeEventListener("progress",p),null!==u&&r.upload&&r.upload.removeEventListener("progress",f)),r.abort()}})},e}(),Dr=new Ve.l("XSRF_COOKIE_NAME"),Lr=new Ve.l("XSRF_HEADER_NAME"),Fr=function(){},Ur=function(){function e(e,t,n){this.doc=e,this.platform=t,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return e.prototype.getToken=function(){if("server"===this.platform)return null;var e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=l(e,this.cookieName),this.lastCookieString=e),this.lastToken},e}(),Hr=function(){function e(e,t){this.tokenService=e,this.headerName=t}return e.prototype.intercept=function(e,t){var n=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||n.startsWith("http://")||n.startsWith("https://"))return t.handle(e);var r=this.tokenService.getToken();return null===r||e.headers.has(this.headerName)||(e=e.clone({headers:e.headers.set(this.headerName,r)})),t.handle(e)},e}(),zr=function(){function e(){}return e.disable=function(){return{ngModule:e,providers:[{provide:Hr,useClass:Ir}]}},e.withOptions=function(t){return void 0===t&&(t={}),{ngModule:e,providers:[t.cookieName?{provide:Dr,useValue:t.cookieName}:[],t.headerName?{provide:Lr,useValue:t.headerName}:[]]}},e}(),Br=function(){},qr=Ve.T({encapsulation:0,styles:[[".container[_ngcontent-%COMP%]{padding-top:1rem}.container[_ngcontent-%COMP%] .block[_ngcontent-%COMP%]{margin-bottom:1rem}.container[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%]{text-align:center}.container[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{margin-bottom:.3rem}.container[_ngcontent-%COMP%] .htmlblock[_ngcontent-%COMP%] .html[_ngcontent-%COMP%]{border:1px solid #ddd;border-radius:4px;padding:.5rem;background-color:#f1f1f1;max-height:10rem;overflow:auto}pre[_ngcontent-%COMP%]{background:#f1f1f1;padding:0 1rem}mark[_ngcontent-%COMP%], pre[_ngcontent-%COMP%]{border-radius:3px}mark[_ngcontent-%COMP%]{background-color:#f1f1f1;padding:.1rem .4rem}"]],data:{}}),Gr=Ve.R("app-root",Pe,function(e){return Ve._12(0,[(e()(),Ve.V(0,0,null,null,2,"app-root",[],null,null,null,Te,qr)),Ve._8(512,null,fr,fr,[Sr]),Ve.U(2,245760,null,0,Pe,[fr],null,null)],function(e,t){e(t,2,0)},null)},{},{},[]),Qr=function(){},Zr=Ve.S(Se,[Pe],function(e){return Ve._5([Ve._6(512,Ve.g,Ve.O,[[8,[Gr]],[3,Ve.g],Ve.q]),Ve._6(5120,Ve.p,Ve._4,[[3,Ve.p]]),Ve._6(4608,ze,Be,[Ve.p,[2,He]]),Ve._6(4608,Ve.f,Ve.f,[]),Ve._6(5120,Ve.a,Ve.W,[]),Ve._6(5120,Ve.n,Ve._1,[]),Ve._6(5120,Ve.o,Ve._2,[]),Ve._6(4608,xn,On,[Ze]),Ve._6(6144,Ve.z,null,[xn]),Ve._6(4608,en,tn,[]),Ve._6(5120,St,function(e,t,n,r,o){return[new Jt(e,t),new un(n),new nn(r,o)]},[Ze,Ve.s,Ze,Ze,en]),Ve._6(4608,At,At,[St,Ve.s]),Ve._6(135680,Nt,Nt,[Ze]),Ve._6(4608,Lt,Lt,[At,Nt]),Ve._6(6144,Ve.x,null,[Lt]),Ve._6(6144,It,null,[Nt]),Ve._6(4608,Ve.C,Ve.C,[Ve.s]),Ve._6(4608,Et,Et,[Ze]),Ve._6(4608,kt,kt,[Ze]),Ve._6(4608,Fr,Ur,[Ze,Ve.u,Dr]),Ve._6(4608,Hr,Hr,[Fr,Lr]),Ve._6(5120,Pr,function(e){return[e]},[Hr]),Ve._6(4608,Mr,Mr,[]),Ve._6(6144,jr,null,[Mr]),Ve._6(4608,Rr,Rr,[jr]),Ve._6(6144,br,null,[Rr]),Ve._6(5120,mr,xe,[br,[2,Pr]]),Ve._6(4608,Sr,Sr,[mr]),Ve._6(4608,dr,dr,[]),Ve._6(4608,nt,nt,[]),Ve._6(4608,qn,qn,[]),Ve._6(512,Qe,Qe,[]),Ve._6(1024,Ve.i,ee,[]),Ve._6(1024,Ve.b,function(e){return[function(e){return B("probe",q),B("coreTokens",Object(Re.a)({},Vt,(e||[]).reduce(function(e,t){return e[t.name]=t.token,e},{}))),function(){return q}}(e)]},[[2,Ve.r]]),Ve._6(512,Ve.c,Ve.c,[[2,Ve.b]]),Ve._6(131584,Ve.e,Ve.e,[Ve.s,Ve.P,Ve.m,Ve.i,Ve.g,Ve.c]),Ve._6(512,Ve.d,Ve.d,[Ve.e]),Ve._6(512,jn,jn,[[3,jn]]),Ve._6(512,zr,zr,[]),Ve._6(512,Br,Br,[]),Ve._6(512,Qr,Qr,[]),Ve._6(512,ar,ar,[]),Ve._6(512,cr,cr,[]),Ve._6(512,Se,Se,[]),Ve._6(256,Dr,"XSRF-TOKEN",[]),Ve._6(256,Lr,"X-XSRF-TOKEN",[])])});Object(Ve.I)(),Nn().bootstrapModuleFactory(Zr).catch(function(e){return console.log(e)})},fRUx:function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},grVA:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r={closed:!0,next:function(e){},error:function(e){throw e},complete:function(){}}},lI6h:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("6Xbx"),o=function(e){function t(){e.apply(this,arguments)}return Object(r.b)(t,e),t.prototype.notifyNext=function(e,t,n,r,o){this.destination.next(t)},t.prototype.notifyError=function(e,t){this.destination.error(e)},t.prototype.notifyComplete=function(e){this.destination.complete()},t}(n("E9/g").a)},mz3w:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=function(e){var t,r=n("xIGM").a.Symbol;return"function"==typeof r?r.observable?t=r.observable:(t=r("observable"),r.observable=t):t="@@observable",t}()},qLnt:function(e,t,n){"use strict";function r(e){return i=e,function(){try{return i.apply(this,arguments)}catch(e){return a.e=e,a}}}function o(e){return e.reduce(function(e,t){return e.concat(t instanceof d?t.errors:t)},[])}var i,u=n("1j/l"),l=n("NGRF"),s=n("B1iP"),a={e:{}},c=n("6Xbx"),d=function(e){function t(t){e.call(this),this.errors=t;var n=Error.call(this,t?t.length+" errors occurred during unsubscription:\n "+t.map(function(e,t){return t+1+") "+e.toString()}).join("\n "):"");this.name=n.name="UnsubscriptionError",this.stack=n.stack,this.message=n.message}return Object(c.b)(t,e),t}(Error);n.d(t,"a",function(){return p});var p=function(){function e(e){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,e&&(this._unsubscribe=e)}return e.prototype.unsubscribe=function(){var e,t=!1;if(!this.closed){var n=this._parent,i=this._parents,c=this._unsubscribe,p=this._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var f=-1,h=i?i.length:0;n;)n.remove(this),n=++f0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},t}(i.a)},xIGM:function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return i});var r="undefined"!=typeof window&&window,o="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,i=r||void 0!==e&&e||o}).call(t,n("fRUx"))}},[0]); \ No newline at end of file diff --git a/docs/main.f4002c6365bd7516a919.bundle.js b/docs/main.f4002c6365bd7516a919.bundle.js deleted file mode 100644 index a628f674..00000000 --- a/docs/main.f4002c6365bd7516a919.bundle.js +++ /dev/null @@ -1 +0,0 @@ -webpackJsonp([1],{0:function(e,t,n){e.exports=n("cDNt")},"1j/l":function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=Array.isArray||function(e){return e&&"number"==typeof e.length}},"2kLc":function(e,t,n){"use strict";function r(e){return e}var o=n("AP4T"),i=n("Oryw"),u=n("wP3s"),l=n("3iOE");n.d(t,"a",function(){return s});var s=function(){for(var e=[],t=0;t1&&"number"==typeof e[e.length-1]&&(n=e.pop())):"number"==typeof a&&(n=e.pop()),null===s&&1===e.length&&e[0]instanceof o.a?e[0]:function(e){return void 0===e&&(e=Number.POSITIVE_INFINITY),Object(u.a)(r,null,e)}(n)(new i.a(e,s))}},"3iOE":function(e,t,n){"use strict";t.a=function(e){return e&&"function"==typeof e.schedule}},"6Xbx":function(e,t,n){"use strict";t.b=function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},n.d(t,"a",function(){return o});var r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n ");else if("object"==typeof t){var r=[];for(var o in t)if(t.hasOwnProperty(o)){var i=t[o];r.push(o+":"+("string"==typeof i?JSON.stringify(i):l(i)))}n="{"+r.join(", ")+"}"}return"StaticInjectorError["+n+"]: "+e.replace(jn,"\n ")}function h(e,t){return new Error(f(e,t))}function g(e){return e[Dn]}function y(e){return e[Ln]}function v(e){return!!e&&"function"==typeof e.then}function m(e){return!!e&&"function"==typeof e.subscribe}function b(){return""+_()+_()+_()}function _(){return String.fromCharCode(97+Math.floor(25*Math.random()))}function w(){throw new Error("Runtime compiler is not loaded")}function C(e){var t=Error("No component factory found for "+l(e)+". Did you add it to @NgModule.entryComponents?");return t[Yn]=e,t}function E(e,t){return null}function x(){}function O(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(function(){return e.onStable.emit(null)})}finally{e.isStable=!0}}}function T(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function k(e){e._nesting--,O(e)}function V(e){pr=e}function S(){if(hr)throw new Error("Cannot enable prod mode after platform setup.");fr=!1}function A(){return hr=!0,fr}function P(e,t,n){void 0===n&&(n=[]);var r=new an("Platform: "+t);return function(t){void 0===t&&(t=[]);var o=I();return o&&!o.injector.get(gr,!1)||(e?e(n.concat(t).concat({provide:r,useValue:!0})):function(e){if($t&&!$t.destroyed&&!$t.injector.get(gr,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");$t=e.get(vr);var t=e.get(qn,null);t&&t.forEach(function(e){return e()})}(xn.create(n.concat(t).concat({provide:r,useValue:!0})))),function(e){var t=I();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(r)}}function I(){return $t&&!$t.destroyed?$t:null}function N(e,t){return e=Array.isArray(t)?t.reduce(N,e):Object(rn.a)({},e,t)}function j(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}function M(e){return e.reduce(function(e,t){var n=Array.isArray(t)?M(t):t;return e.concat(n)},[])}function R(e,t,n){e.childNodes.forEach(function(e){e instanceof kr&&(t(e)&&n.push(e),R(e,t,n))})}function D(e,t,n){e instanceof kr&&e.childNodes.forEach(function(e){t(e)&&n.push(e),e instanceof kr&&D(e,t,n)})}function L(e){return Vr.get(e)||null}function F(e){Vr.set(e.nativeNode,e)}function U(e,t){var n=H(e),r=H(t);return n&&r?function(t,n,r){for(var i=e[o()](),u=n[o()]();;){var l=i.next(),s=u.next();if(l.done&&s.done)return!0;if(l.done||s.done)return!1;if(!r(l.value,s.value))return!1}}(0,t,U):!(n||!e||"object"!=typeof e&&"function"!=typeof e||r||!t||"object"!=typeof t&&"function"!=typeof t)||u(e,t)}function H(e){return!!z(e)&&(Array.isArray(e)||!(e instanceof Map)&&o()in e)}function z(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function B(e,t,n){var r=e.previousIndex;if(null===r)return r;var o=0;return n&&r=n.length)&&(t=n.length-1),t<0)return null;var r=n[t];return r.viewContainerParent=null,Ue(n,t),Xr.dirtyParentQueries(r),Le(r),r}function De(e,t,n){var r=t?de(t,t.def.lastRenderRootNode):e.renderElement;_e(n,2,n.renderer.parentNode(r),n.renderer.nextSibling(r),void 0)}function Le(e){_e(e,3,null,null,void 0)}function Fe(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Ue(e,t){t>=e.length-1?e.pop():e.splice(t,1)}function He(e,t,n,r,o,i){return new so(e,t,n,r,o,i)}function ze(e,t,n){return new co(e,t,n)}function Be(e){return new po(e)}function qe(e,t){return new fo(e,t)}function Ge(e,t){return new ho(e,t)}function Qe(e,t){var n=e.def.nodes[t];if(1&n.flags){var r=W(e,n.nodeIndex);return n.element.template?r.template:r.renderElement}if(2&n.flags)return Z(e,n.nodeIndex).renderText;if(20240&n.flags)return K(e,n.nodeIndex).instance;throw new Error("Illegal state: read nodeValue for node index "+t)}function Ze(e){return new go(e.renderer)}function We(e,t,n,r){return new yo(e,t,n,r)}function Ke(e,t,n,r,o,i,u,l){var s=[];if(u)for(var a in u){var c=u[a];s[c[0]]={flags:8,name:a,nonMinifiedName:c[1],ns:null,securityContext:null,suffix:null}}var d=[];if(l)for(var p in l)d.push({type:1,propName:p,target:null,eventName:l[p]});return t|=16384,Ye(e,t,n,r,o,o,i,s,d)}function Xe(e,t,n,r,o){return Ye(-1,e,t,0,n,r,o)}function Ye(e,t,n,r,o,i,u,l,s){var c=ye(n),d=c.matchedQueries,p=c.references,f=c.matchedQueryIds;s||(s=[]),l||(l=[]),i=a(i);var h=ve(u);return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:d,matchedQueryIds:f,references:p,ngContentIndex:-1,childCount:r,bindings:l,bindingFlags:Te(l),outputs:s,element:null,provider:{token:o,value:i,deps:h},text:null,query:null,ngContent:null}}function Je(e,t){return tt(e,t)}function $e(e,t){for(var n=e;n.parent&&!fe(n);)n=n.parent;return nt(n.parent,ce(n),!0,t.provider.value,t.provider.deps)}function et(e,t){var n=nt(e,t.parent,(32768&t.flags)>0,t.provider.value,t.provider.deps);if(t.outputs.length)for(var r=0;r0,r=t.provider;switch(201347067&t.flags){case 512:return nt(e,t.parent,n,r.value,r.deps);case 1024:return function(e,t,n,r,o){var i=o.length;switch(i){case 0:return r();case 1:return r(rt(e,t,n,o[0]));case 2:return r(rt(e,t,n,o[0]),rt(e,t,n,o[1]));case 3:return r(rt(e,t,n,o[0]),rt(e,t,n,o[1]),rt(e,t,n,o[2]));default:for(var u=Array(i),l=0;lo)throw new Error("Illegal State: childCount of node leads outside of parent, at index "+t.nodeIndex+"!")}}(a,g,t.length),o+=g.bindings.length,i+=g.outputs.length,!c&&3&g.flags&&(f=g),20224&g.flags){d||(d=!0,a.element.publicProviders=Object.create(a.element.publicProviders),a.element.allProviders=a.element.publicProviders);var v=0!=(32768&g.flags);0==(8192&g.flags)||v?a.element.publicProviders[te(g.provider.token)]=g:(p||(p=!0,a.element.allProviders=Object.create(a.element.publicProviders)),a.element.allProviders[te(g.provider.token)]=g),v&&(a.element.componentProvider=g)}if(a?(a.childFlags|=g.flags,a.directChildFlags|=g.flags,a.childMatchedQueries|=g.matchedQueryIds,g.element&&g.element.template&&(a.childMatchedQueries|=g.element.template.nodeMatchedQueries)):l|=g.flags,g.childCount>0)a=g,bt(g)||(c=g);else for(;a&&h===a.nodeIndex+a.childCount;){var m=a.parent;m&&(m.childFlags|=a.childFlags,m.childMatchedQueries|=a.childMatchedQueries),c=(a=m)&&bt(a)?a.renderParent:a}}return{factory:null,nodeFlags:u,rootNodeFlags:l,nodeMatchedQueries:s,flags:e,nodes:t,updateDirectives:n||Yr,updateRenderer:r||Yr,handleEvent:function(e,n,r,o){return t[n].element.handleEvent(e,r,o)},bindingCount:o,outputCount:i,lastRenderRootNode:f}}function bt(e){return 0!=(1&e.flags)&&null===e.element.name}function _t(e,t,n,r){var o=Et(e.root,e.renderer,e,t,n);return xt(o,e.component,r),Ot(o),o}function wt(e,t,n){var r=Et(e,e.renderer,null,null,t);return xt(r,n,n),Ot(r),r}function Ct(e,t,n,r){var o,i=t.element.componentRendererType;return o=i?e.root.rendererFactory.createRenderer(r,i):e.root.renderer,Et(e.root,o,e,t.element.componentProvider,n)}function Et(e,t,n,r,o){var i=new Array(o.nodes.length),u=o.outputCount?new Array(o.outputCount):null;return{def:o,parent:n,viewContainerParent:null,parentNodeDef:r,context:null,component:null,nodes:i,state:13,root:e,renderer:t,oldValues:new Array(o.bindingCount),disposables:u}}function xt(e,t,n){e.component=t,e.context=n}function Ot(e){var t;fe(e)&&(t=W(e.parent,e.parentNodeDef.parent.nodeIndex).renderElement);for(var n=e.def,r=e.nodes,o=0;o0&&Pe(e,t,0,n)&&(h=!0),f>1&&Pe(e,t,1,o)&&(h=!0),f>2&&Pe(e,t,2,i)&&(h=!0),f>3&&Pe(e,t,3,u)&&(h=!0),f>4&&Pe(e,t,4,l)&&(h=!0),f>5&&Pe(e,t,5,s)&&(h=!0),f>6&&Pe(e,t,6,a)&&(h=!0),f>7&&Pe(e,t,7,c)&&(h=!0),f>8&&Pe(e,t,8,d)&&(h=!0),f>9&&Pe(e,t,9,p)&&(h=!0),h}(e,t,0,r,o,i,u,l,s,a,c,d);case 2:return function(e,t,n,r,o,i,u,l,s,a,c,d){var p=!1,f=t.bindings,h=f.length;if(h>0&&oe(e,t,0,n)&&(p=!0),h>1&&oe(e,t,1,r)&&(p=!0),h>2&&oe(e,t,2,o)&&(p=!0),h>3&&oe(e,t,3,i)&&(p=!0),h>4&&oe(e,t,4,u)&&(p=!0),h>5&&oe(e,t,5,l)&&(p=!0),h>6&&oe(e,t,6,s)&&(p=!0),h>7&&oe(e,t,7,a)&&(p=!0),h>8&&oe(e,t,8,c)&&(p=!0),h>9&&oe(e,t,9,d)&&(p=!0),p){var g=t.text.prefix;h>0&&(g+=vt(n,f[0])),h>1&&(g+=vt(r,f[1])),h>2&&(g+=vt(o,f[2])),h>3&&(g+=vt(i,f[3])),h>4&&(g+=vt(u,f[4])),h>5&&(g+=vt(l,f[5])),h>6&&(g+=vt(s,f[6])),h>7&&(g+=vt(a,f[7])),h>8&&(g+=vt(c,f[8])),h>9&&(g+=vt(d,f[9]));var y=Z(e,t.nodeIndex).renderText;e.renderer.setValue(y,g)}return p}(e,t,n,r,o,i,u,l,s,a,c,d);case 16384:return function(e,t,n,r,o,i,u,l,s,a,c,d){var p=K(e,t.nodeIndex),f=p.instance,h=!1,g=void 0,y=t.bindings.length;return y>0&&re(e,t,0,n)&&(h=!0,g=it(e,p,t,0,n,g)),y>1&&re(e,t,1,r)&&(h=!0,g=it(e,p,t,1,r,g)),y>2&&re(e,t,2,o)&&(h=!0,g=it(e,p,t,2,o,g)),y>3&&re(e,t,3,i)&&(h=!0,g=it(e,p,t,3,i,g)),y>4&&re(e,t,4,u)&&(h=!0,g=it(e,p,t,4,u,g)),y>5&&re(e,t,5,l)&&(h=!0,g=it(e,p,t,5,l,g)),y>6&&re(e,t,6,s)&&(h=!0,g=it(e,p,t,6,s,g)),y>7&&re(e,t,7,a)&&(h=!0,g=it(e,p,t,7,a,g)),y>8&&re(e,t,8,c)&&(h=!0,g=it(e,p,t,8,c,g)),y>9&&re(e,t,9,d)&&(h=!0,g=it(e,p,t,9,d,g)),g&&f.ngOnChanges(g),2&e.state&&65536&t.flags&&f.ngOnInit(),262144&t.flags&&f.ngDoCheck(),h}(e,t,n,r,o,i,u,l,s,a,c,d);case 32:case 64:case 128:return function(e,t,n,r,o,i,u,l,s,a,c,d){var p=t.bindings,f=!1,h=p.length;if(h>0&&oe(e,t,0,n)&&(f=!0),h>1&&oe(e,t,1,r)&&(f=!0),h>2&&oe(e,t,2,o)&&(f=!0),h>3&&oe(e,t,3,i)&&(f=!0),h>4&&oe(e,t,4,u)&&(f=!0),h>5&&oe(e,t,5,l)&&(f=!0),h>6&&oe(e,t,6,s)&&(f=!0),h>7&&oe(e,t,7,a)&&(f=!0),h>8&&oe(e,t,8,c)&&(f=!0),h>9&&oe(e,t,9,d)&&(f=!0),f){var g=X(e,t.nodeIndex),y=void 0;switch(201347067&t.flags){case 32:y=new Array(p.length),h>0&&(y[0]=n),h>1&&(y[1]=r),h>2&&(y[2]=o),h>3&&(y[3]=i),h>4&&(y[4]=u),h>5&&(y[5]=l),h>6&&(y[6]=s),h>7&&(y[7]=a),h>8&&(y[8]=c),h>9&&(y[9]=d);break;case 64:y={},h>0&&(y[p[0].name]=n),h>1&&(y[p[1].name]=r),h>2&&(y[p[2].name]=o),h>3&&(y[p[3].name]=i),h>4&&(y[p[4].name]=u),h>5&&(y[p[5].name]=l),h>6&&(y[p[6].name]=s),h>7&&(y[p[7].name]=a),h>8&&(y[p[8].name]=c),h>9&&(y[p[9].name]=d);break;case 128:var v=n;switch(h){case 1:y=v.transform(n);break;case 2:y=v.transform(r);break;case 3:y=v.transform(r,o);break;case 4:y=v.transform(r,o,i);break;case 5:y=v.transform(r,o,i,u);break;case 6:y=v.transform(r,o,i,u,l);break;case 7:y=v.transform(r,o,i,u,l,s);break;case 8:y=v.transform(r,o,i,u,l,s,a);break;case 9:y=v.transform(r,o,i,u,l,s,a,c);break;case 10:y=v.transform(r,o,i,u,l,s,a,c,d)}}g.value=y}return f}(e,t,n,r,o,i,u,l,s,a,c,d);default:throw"unreachable"}}(e,t,r,o,i,u,l,s,a,c,d,p):function(e,t,n){switch(201347067&t.flags){case 1:return function(e,t,n){for(var r=!1,o=0;o0&&ie(e,t,0,r),f>1&&ie(e,t,1,o),f>2&&ie(e,t,2,i),f>3&&ie(e,t,3,u),f>4&&ie(e,t,4,l),f>5&&ie(e,t,5,s),f>6&&ie(e,t,6,a),f>7&&ie(e,t,7,c),f>8&&ie(e,t,8,d),f>9&&ie(e,t,9,p)}(e,t,0,o,i,u,l,s,a,c,d,p):function(e,t,n){for(var r=0;r0)e._bootstrapComponents.forEach(function(e){return t.bootstrap(e)});else{if(!e.instance.ngDoBootstrap)throw new Error("The module "+l(e.instance.constructor)+' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.');e.instance.ngDoBootstrap(t)}this._modules.push(e)},e.prototype.onDestroy=function(e){this._destroyListeners.push(e)},Object.defineProperty(e.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(e){return e.destroy()}),this._destroyListeners.forEach(function(e){return e()}),this._destroyed=!0},Object.defineProperty(e.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),e}(),mr=function(){function e(e,t,n,r,o,u){var l=this;this._zone=e,this._console=t,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=o,this._initStatus=u,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=A(),this._zone.onMicrotaskEmpty.subscribe({next:function(){l._zone.run(function(){l.tick()})}});var s=new on.a(function(e){l._stable=l._zone.isStable&&!l._zone.hasPendingMacrotasks&&!l._zone.hasPendingMicrotasks,l._zone.runOutsideAngular(function(){e.next(l._stable),e.complete()})}),a=new on.a(function(e){var t;l._zone.runOutsideAngular(function(){t=l._zone.onStable.subscribe(function(){lr.assertNotInAngularZone(),i(function(){l._stable||l._zone.hasPendingMacrotasks||l._zone.hasPendingMicrotasks||(l._stable=!0,e.next(!0))})})});var n=l._zone.onUnstable.subscribe(function(){lr.assertInAngularZone(),l._stable&&(l._stable=!1,l._zone.runOutsideAngular(function(){e.next(!1)}))});return function(){t.unsubscribe(),n.unsubscribe()}});this.isStable=Object(un.a)(s,ln.a.call(a))}return e.prototype.bootstrap=function(e,t){var n=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");var r;r=e instanceof Xn?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(r.componentType);var o=r instanceof tr?null:this._injector.get(nr),i=r.create(xn.NULL,[],t||r.selector,o);i.onDestroy(function(){n._unloadComponent(i)});var u=i.injector.get(cr,null);return u&&i.injector.get(dr).registerApplication(i.location.nativeElement,u),this._loadComponent(i),A()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),i},e.prototype.tick=function(){var t=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var n=e._tickScope();try{this._runningTick=!0,this._views.forEach(function(e){return e.detectChanges()}),this._enforceNoNewChanges&&this._views.forEach(function(e){return e.checkNoChanges()})}catch(e){this._zone.runOutsideAngular(function(){return t._exceptionHandler.handleError(e)})}finally{this._runningTick=!1,ir(n)}},e.prototype.attachView=function(e){var t=e;this._views.push(t),t.attachToAppRef(this)},e.prototype.detachView=function(e){var t=e;j(this._views,t),t.detachFromAppRef()},e.prototype._loadComponent=function(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(Qn,[]).concat(this._bootstrapListeners).forEach(function(t){return t(e)})},e.prototype._unloadComponent=function(e){this.detachView(e.hostView),j(this.components,e)},e.prototype.ngOnDestroy=function(){this._views.slice().forEach(function(e){return e.destroy()})},Object.defineProperty(e.prototype,"viewCount",{get:function(){return this._views.length},enumerable:!0,configurable:!0}),e._tickScope=or("ApplicationRef#tick()"),e}(),br=function(){},_r=function(){var e={Important:1,DashCase:2};return e[e.Important]="Important",e[e.DashCase]="DashCase",e}(),wr=function(){},Cr=function(e){this.nativeElement=e},Er=function(){function e(){this.dirty=!0,this._results=[],this.changes=new ur}return Object.defineProperty(e.prototype,"length",{get:function(){return this._results.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"first",{get:function(){return this._results[0]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"last",{get:function(){return this._results[this.length-1]},enumerable:!0,configurable:!0}),e.prototype.map=function(e){return this._results.map(e)},e.prototype.filter=function(e){return this._results.filter(e)},e.prototype.find=function(e){return this._results.find(e)},e.prototype.reduce=function(e,t){return this._results.reduce(e,t)},e.prototype.forEach=function(e){this._results.forEach(e)},e.prototype.some=function(e){return this._results.some(e)},e.prototype.toArray=function(){return this._results.slice()},e.prototype[o()]=function(){return this._results[o()]()},e.prototype.toString=function(){return this._results.toString()},e.prototype.reset=function(e){this._results=M(e),this.dirty=!1},e.prototype.notifyOnChanges=function(){this.changes.emit(this)},e.prototype.setDirty=function(){this.dirty=!0},e.prototype.destroy=function(){this.changes.complete(),this.changes.unsubscribe()},e}(),xr=function(){},Or=function(){},Tr=function(){function e(e,t,n){this._debugContext=n,this.nativeNode=e,t&&t instanceof kr?t.addChild(this):this.parent=null,this.listeners=[]}return Object.defineProperty(e.prototype,"injector",{get:function(){return this._debugContext.injector},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentInstance",{get:function(){return this._debugContext.component},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this._debugContext.context},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"references",{get:function(){return this._debugContext.references},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"providerTokens",{get:function(){return this._debugContext.providerTokens},enumerable:!0,configurable:!0}),e}(),kr=function(e){function t(t,n,r){var o=e.call(this,t,n,r)||this;return o.properties={},o.attributes={},o.classes={},o.styles={},o.childNodes=[],o.nativeElement=t,o}return Object(rn.b)(t,e),t.prototype.addChild=function(e){e&&(this.childNodes.push(e),e.parent=this)},t.prototype.removeChild=function(e){var t=this.childNodes.indexOf(e);-1!==t&&(e.parent=null,this.childNodes.splice(t,1))},t.prototype.insertChildrenAfter=function(e,t){var n=this,r=this.childNodes.indexOf(e);-1!==r&&((o=this.childNodes).splice.apply(o,[r+1,0].concat(t)),t.forEach(function(e){e.parent&&e.parent.removeChild(e),e.parent=n}));var o},t.prototype.insertBefore=function(e,t){var n=this.childNodes.indexOf(e);-1===n?this.addChild(t):(t.parent&&t.parent.removeChild(t),t.parent=this,this.childNodes.splice(n,0,t))},t.prototype.query=function(e){return this.queryAll(e)[0]||null},t.prototype.queryAll=function(e){var t=[];return R(this,e,t),t},t.prototype.queryAllNodes=function(e){var t=[];return D(this,e,t),t},Object.defineProperty(t.prototype,"children",{get:function(){return this.childNodes.filter(function(e){return e instanceof t})},enumerable:!0,configurable:!0}),t.prototype.triggerEventHandler=function(e,t){this.listeners.forEach(function(n){n.name==e&&n.callback(t)})},t}(Tr),Vr=new Map,Sr=function(){function e(e){this.wrapped=e}return e.wrap=function(t){return new e(t)},e}(),Ar=function(){function e(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}return e.prototype.isFirstChange=function(){return this.firstChange},e}(),Pr=function(){function e(){}return e.prototype.supports=function(e){return H(e)},e.prototype.create=function(e){return new Nr(e)},e}(),Ir=function(e,t){return t},Nr=function(){function e(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||Ir}return e.prototype.forEachItem=function(e){var t;for(t=this._itHead;null!==t;t=t._next)e(t)},e.prototype.forEachOperation=function(e){for(var t=this._itHead,n=this._removalsHead,r=0,o=null;t||n;){var i=!n||t&&t.currentIndex=0;e--){var t=Re(this._data,e);Xr.destroyView(t)}},e.prototype.get=function(e){var t=this._embeddedViews[e];if(t){var n=new po(t);return n.attachToViewContainerRef(this),n}return null},Object.defineProperty(e.prototype,"length",{get:function(){return this._embeddedViews.length},enumerable:!0,configurable:!0}),e.prototype.createEmbeddedView=function(e,t,n){var r=e.createEmbeddedView(t||{});return this.insert(r,n),r},e.prototype.createComponent=function(e,t,n,r,o){var i=n||this.parentInjector;o||e instanceof tr||(o=i.get(nr));var u=e.create(i,r,void 0,o);return this.insert(u.hostView,t),u},e.prototype.insert=function(e,t){if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");var n=e;return function(e,t,n,r){var o=t.viewContainer._embeddedViews;null!==n&&void 0!==n||(n=o.length),r.viewContainerParent=e,Fe(o,n,r),function(e,t){var n=ae(t);if(n&&n!==e&&!(16&t.state)){t.state|=16;var r=n.template._projectedViews;r||(r=n.template._projectedViews=[]),r.push(t),function(e,n){if(!(4&n.flags)){t.parent.def.nodeFlags|=4,n.flags|=4;for(var r=n.parent;r;)r.childFlags|=4,r=r.parent}}(0,t.parentNodeDef)}}(t,r),Xr.dirtyParentQueries(r),De(t,n>0?o[n-1]:null,r)}(this._view,this._data,t,n._view),n.attachToViewContainerRef(this),e},e.prototype.move=function(e,t){if(e.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");var n=this._embeddedViews.indexOf(e._view);return function(e,t,r){var o=e.viewContainer._embeddedViews,i=o[n];Ue(o,n),null==r&&(r=o.length),Fe(o,r,i),Xr.dirtyParentQueries(i),Le(i),De(e,r>0?o[r-1]:null,i)}(this._data,0,t),e},e.prototype.indexOf=function(e){return this._embeddedViews.indexOf(e._view)},e.prototype.remove=function(e){var t=Re(this._data,e);t&&Xr.destroyView(t)},e.prototype.detach=function(e){var t=Re(this._data,e);return t?new po(t):null},e}(),po=function(){function e(e){this._view=e,this._viewContainerRef=null,this._appRef=null}return Object.defineProperty(e.prototype,"rootNodes",{get:function(){return function(e){var t=[];return _e(e,0,void 0,void 0,t),t}(this._view)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this._view.context},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"destroyed",{get:function(){return 0!=(128&this._view.state)},enumerable:!0,configurable:!0}),e.prototype.markForCheck=function(){ue(this._view)},e.prototype.detach=function(){this._view.state&=-5},e.prototype.detectChanges=function(){var e=this._view.root.rendererFactory;e.begin&&e.begin(),Xr.checkAndUpdateView(this._view),e.end&&e.end()},e.prototype.checkNoChanges=function(){Xr.checkNoChangesView(this._view)},e.prototype.reattach=function(){this._view.state|=4},e.prototype.onDestroy=function(e){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(e)},e.prototype.destroy=function(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),Xr.destroyView(this._view)},e.prototype.detachFromAppRef=function(){this._appRef=null,Le(this._view),Xr.dirtyParentQueries(this._view)},e.prototype.attachToAppRef=function(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e},e.prototype.attachToViewContainerRef=function(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e},e}(),fo=function(e){function t(t,n){var r=e.call(this)||this;return r._parentView=t,r._def=n,r}return Object(rn.b)(t,e),t.prototype.createEmbeddedView=function(e){return new po(Xr.createEmbeddedView(this._parentView,this._def,this._def.element.template,e))},Object.defineProperty(t.prototype,"elementRef",{get:function(){return new Cr(W(this._parentView,this._def.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),t}(xr),ho=function(){function e(e,t){this.view=e,this.elDef=t}return e.prototype.get=function(e,t){return void 0===t&&(t=xn.THROW_IF_NOT_FOUND),Xr.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:e,tokenKey:te(e)},t)},e}(),go=function(){function e(e){this.delegate=e}return e.prototype.selectRootElement=function(e){return this.delegate.selectRootElement(e)},e.prototype.createElement=function(e,t){var n=Oe(t),r=this.delegate.createElement(n[1],n[0]);return e&&this.delegate.appendChild(e,r),r},e.prototype.createViewRoot=function(e){return e},e.prototype.createTemplateAnchor=function(e){var t=this.delegate.createComment("");return e&&this.delegate.appendChild(e,t),t},e.prototype.createText=function(e,t){var n=this.delegate.createText(t);return e&&this.delegate.appendChild(e,n),n},e.prototype.projectNodes=function(e,t){for(var n=0;n1?new t(e,r):1===o?new i(e[0],r):new u.a(r)},t.dispatch=function(e){var t=e.array,n=e.index,r=e.subscriber;n>=e.count?r.complete():(r.next(t[n]),r.closed||(e.index=n+1,this.schedule(e)))},t.prototype._subscribe=function(e){var n=this.array,r=n.length,o=this.scheduler;if(o)return o.schedule(t.dispatch,0,{array:n,index:0,count:r,subscriber:e});for(var i=0;i1)this.connection=null;else{var n=this.connection,r=e._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},t}(s.a),p=function(e){function t(t,n){e.call(this),this.source=t,this.subjectFactory=n,this._refCount=0,this._isComplete=!1}return Object(i.b)(t,e),t.prototype._subscribe=function(e){return this.getSubject().subscribe(e)},t.prototype.getSubject=function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject},t.prototype.connect=function(){var e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new a.a).add(this.source.subscribe(new h(this.getSubject(),this))),e.closed?(this._connection=null,e=a.a.EMPTY):this._connection=e),e},t.prototype.refCount=function(){return r()(this)},t}(l.a).prototype,f={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:p._subscribe},_isComplete:{value:p._isComplete,writable:!0},getSubject:{value:p.getSubject},connect:{value:p.connect},refCount:{value:p.refCount}},h=function(e){function t(t,n){e.call(this,t),this.connectable=n}return Object(i.b)(t,e),t.prototype._error=function(t){this._unsubscribe(),e.prototype._error.call(this,t)},t.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}},t}(u.b),g=function(){function e(e,t){this.subjectFactory=e,this.selector=t}return e.prototype.call=function(e,t){var n=this.selector,r=this.subjectFactory(),o=n(r).subscribe(e);return o.add(t.subscribe(r)),o},e}();t.a=function(){return function(e){return r()(function(e,t){return function(t){var n;if(n="function"==typeof e?e:function(){return e},!1)return t.lift(new g(n,void 0));var r=Object.create(t,f);return r.source=t,r.subjectFactory=n,r}}(o)(e))}(this)}},V7AE:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("xIGM").a.Symbol,o="function"==typeof r&&"function"==typeof r.for?r.for("rxSubscriber"):"@@rxSubscriber"},YuZA:function(e,t){function n(e){return Promise.resolve().then(function(){throw new Error("Cannot find module '"+e+"'.")})}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id="YuZA"},cDNt:function(e,t,n){"use strict";function r(e,t){return!!e&&(0===t.length||t.find(function(t){return t.includes(e)}))}function o(e,t){for(var n in t)n&&(this[n]&&(e[n]=this[n]),e.hasOwnProperty(n)||(e[n]=t[n]));return e}function i(e){return"basic"===e&&"vertical"}function u(e){return Ve._12(0,[(e()(),Ve.V(0,0,null,null,9,"div",[["class","ngx-editor-grippie"]],null,null,null,null,null)),(e()(),Ve._11(-1,null,["\n "])),(e()(),Ve.V(2,0,null,null,6,":svg:svg",[[":xmlns:xlink","http://www.w3.org/1999/xlink"],["height","5"],["style","isolation:isolate"],["viewBox","651.6 235 26 5"],["width","26"],["xmlns","http://www.w3.org/2000/svg"]],null,null,null,null,null)),(e()(),Ve._11(-1,null,["\n "])),(e()(),Ve.V(4,0,null,null,3,":svg:g",[["id","sprites"]],null,null,null,null,null)),(e()(),Ve._11(-1,null,["\n "])),(e()(),Ve.V(6,0,null,null,0,":svg:path",[["d"," M 651.6 235 L 653.6 235 L 653.6 237 L 651.6 237 M 654.6 238 L 656.6 238 L 656.6 240 L 654.6 240 M 660.6 238 L 662.6 238 L 662.6 240 L 660.6 240 M 666.6 238 L 668.6 238 L 668.6 240 L 666.6 240 M 672.6 238 L 674.6 238 L 674.6 240 L 672.6 240 M 657.6 235 L 659.6 235 L 659.6 237 L 657.6 237 M 663.6 235 L 665.6 235 L 665.6 237 L 663.6 237 M 669.6 235 L 671.6 235 L 671.6 237 L 669.6 237 M 675.6 235 L 677.6 235 L 677.6 237 L 675.6 237"],["fill","rgb(147,153,159)"]],null,null,null,null,null)),(e()(),Ve._11(-1,null,["\n "])),(e()(),Ve._11(-1,null,["\n "])),(e()(),Ve._11(-1,null,["\n"])),(e()(),Ve._11(-1,null,["\n"]))],null,null)}function l(e,t){t=encodeURIComponent(t);for(var n=0,r=e.split(";");n/g,">")}function $(e){cn.attributeMap(e).forEach(function(t,n){"xmlns:ns1"!==n&&0!==n.indexOf("ns1:")||cn.removeAttribute(e,n)});for(var t=0,n=cn.childNodesAsList(e);t1?"path: '"+e.path.join(" -> ")+"'":e.path[0]?"name: '"+e.path+"'":"unspecified name attribute",new Error(t+" "+n)}function pe(e){return null!=e?Ln.compose(e.map(ie)):null}function fe(e){return null!=e?Ln.composeAsync(e.map(ue)):null}function he(e){var t=ye(e)?e.validators:e;return Array.isArray(t)?pe(t):t||null}function ge(e,t){var n=ye(t)?t.asyncValidators:e;return Array.isArray(n)?fe(n):n||null}function ye(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function ve(e){return Ve._12(0,[(e()(),Ve.V(0,0,null,null,1,"app-ngx-grippie",[],null,[["document","mousemove"],["document","mouseup"],[null,"mousedown"]],function(e,t,n){var r=!0;return"document:mousemove"===t&&(r=!1!==Ve._7(e,1).onMouseMove(n)&&r),"document:mouseup"===t&&(r=!1!==Ve._7(e,1).onMouseUp(n)&&r),"mousedown"===t&&(r=!1!==Ve._7(e,1).onResize(n)&&r),r},u,Me)),Ve.U(1,49152,null,0,Ie,[je],null,null)],null,null)}function me(e){return Ve._12(0,[Ve._9(402653184,1,{textArea:0}),(e()(),Ve.V(1,0,null,null,13,"div",[["class","ngx-editor"],["id","ngxEditor"]],[[4,"width",null],[4,"minWidth",null]],null,null,null,null)),(e()(),Ve._11(-1,null,["\n\n "])),(e()(),Ve.V(3,0,null,null,1,"app-ngx-editor-toolbar",[],null,[[null,"execute"]],function(e,t,n){var r=!0;return"execute"===t&&(r=!1!==e.component.executeCommand(n)&&r),r},M,Ke)),Ve.U(4,49152,null,0,We,[],{config:[0,"config"],enableToolbar:[1,"enableToolbar"]},{execute:"execute"}),(e()(),Ve._11(-1,null,["\n\n "])),(e()(),Ve._11(-1,null,["\n "])),(e()(),Ve.V(7,0,[[1,0],["ngxTextArea",1]],null,0,"div",[["class","ngx-editor-textarea"]],[[1,"contenteditable",0],[1,"placeholder",0],[1,"translate",0],[1,"spellcheck",0],[4,"height",null],[4,"minHeight",null],[4,"resize",null]],[[null,"input"],[null,"focus"],[null,"blur"]],function(e,t,n){var r=!0,o=e.component;return"input"===t&&(r=!1!==o.onContentChange(n.target.innerHTML)&&r),"focus"===t&&(r=!1!==o.onFocus()&&r),"blur"===t&&(r=!1!==o.onBlur()&&r),r},null,null)),(e()(),Ve._11(-1,null,["\n\n "])),(e()(),Ve.V(9,0,null,null,1,"app-ngx-editor-message",[],null,null,null,L,rt)),Ve.U(10,49152,null,0,Xe,[nt],null,null),(e()(),Ve._11(-1,null,["\n\n "])),(e()(),Ve.Q(16777216,null,null,1,null,ve)),Ve.U(13,16384,null,0,qe,[Ve.E,Ve.B],{ngIf:[0,"ngIf"]},null),(e()(),Ve._11(-1,null,["\n\n"])),(e()(),Ve._11(-1,null,["\n"]))],function(e,t){var n=t.component;e(t,4,0,n.config,n.enableToolbar),e(t,13,0,"stack"===n.resizer)},function(e,t){var n=t.component;e(t,1,0,n.config.width,n.config.minWidth),e(t,7,0,n.config.editable,n.config.placeholder,n.config.translate,n.config.spellcheck,n.config.height,n.config.minHeight,null==n.Utils?null:n.Utils.canResize(n.resizer))})}function be(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}function _e(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function we(e){return"undefined"!=typeof Blob&&e instanceof Blob}function Ce(e){return"undefined"!=typeof FormData&&e instanceof FormData}function Ee(e,t){return{body:t,headers:e.headers,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}function xe(e,t){return void 0===t&&(t=[]),t?t.reduceRight(function(e,t){return new Ar(e,t)},e):e}function Oe(e){return Ve._12(0,[(e()(),Ve.V(0,0,null,null,7,"div",[["class","htmlblock block"]],null,null,null,null,null)),(e()(),Ve._11(-1,null,["\n "])),(e()(),Ve.V(2,0,null,null,1,"h6",[],null,null,null,null,null)),(e()(),Ve._11(-1,null,["HTML Output"])),(e()(),Ve._11(-1,null,["\n "])),(e()(),Ve.V(5,0,null,null,1,"div",[["class","html"]],null,null,null,null,null)),(e()(),Ve._11(6,null,["\n ","\n "])),(e()(),Ve._11(-1,null,["\n "]))],null,function(e,t){e(t,6,0,t.component.htmlContent)})}function Te(e){return Ve._12(0,[(e()(),Ve.V(0,0,null,null,55,"div",[["class","container"]],null,null,null,null,null)),(e()(),Ve._11(-1,null,["\n "])),(e()(),Ve.V(2,0,null,null,27,"div",[["class","logo block"]],null,null,null,null,null)),(e()(),Ve._11(-1,null,["\n "])),(e()(),Ve.V(4,0,null,null,0,"img",[["alt","ngx-Editor"],["src","assets/icons/ngx-editor.svg"]],null,null,null,null,null)),(e()(),Ve._11(-1,null,["\n "])),(e()(),Ve.V(6,0,null,null,1,"h6",[],null,null,null,null,null)),(e()(),Ve._11(-1,null,["WYSIWYG Editor for Angular Applications."])),(e()(),Ve._11(-1,null,["\n "])),(e()(),Ve.V(9,0,null,null,4,"p",[],null,null,null,null,null)),(e()(),Ve._11(-1,null,["(Currently -\n "])),(e()(),Ve.V(11,0,null,null,1,"a",[["href","https://github.com/Sibiraj-S/ngx-editor/releases/latest"]],null,null,null,null,null)),(e()(),Ve._11(12,null,["",""])),(e()(),Ve._11(-1,null,[") "])),(e()(),Ve._11(-1,null,["\n "])),(e()(),Ve.V(15,0,null,null,1,"a",[["aria-label","Follow @Sibiraj-S on GitHub"],["class","github-button"],["href","https://github.com/Sibiraj-S"]],null,null,null,null,null)),(e()(),Ve._11(-1,null,["Follow @Sibiraj-S"])),(e()(),Ve._11(-1,null,["\n "])),(e()(),Ve.V(18,0,null,null,1,"a",[["aria-label","Fork Sibiraj-S/ngx-editor on GitHub"],["class","github-button"],["href","https://github.com/Sibiraj-S/ngx-editor/fork"]],null,null,null,null,null)),(e()(),Ve._11(-1,null,["Fork"])),(e()(),Ve._11(-1,null,["\n "])),(e()(),Ve.V(21,0,null,null,1,"a",[["aria-label","Star Sibiraj-S/ngx-editor on GitHub"],["class","github-button"],["href","https://github.com/Sibiraj-S/ngx-editor"]],null,null,null,null,null)),(e()(),Ve._11(-1,null,["Star"])),(e()(),Ve._11(-1,null,["\n "])),(e()(),Ve.V(24,0,null,null,1,"a",[["aria-label","Issue Sibiraj-S/ngx-editor on GitHub"],["class","github-button"],["data-show-count","true"],["href","https://github.com/Sibiraj-S/ngx-editor/issues"]],null,null,null,null,null)),(e()(),Ve._11(-1,null,["Issue"])),(e()(),Ve._11(-1,null,["\n "])),(e()(),Ve.V(27,0,null,null,1,"a",[["aria-label","Download Sibiraj-S/ngx-editor on GitHub"],["class","github-button"],["href","https://github.com/Sibiraj-S/ngx-editor/archive/master.zip"]],null,null,null,null,null)),(e()(),Ve._11(-1,null,["Download"])),(e()(),Ve._11(-1,null,["\n "])),(e()(),Ve._11(-1,null,["\n\n "])),(e()(),Ve.V(31,0,null,null,8,"div",[["class","editor block"]],null,null,null,null,null)),(e()(),Ve._11(-1,null,["\n "])),(e()(),Ve.V(33,0,null,null,5,"app-ngx-editor",[],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],["document","click"]],function(e,t,n){var r=!0,o=e.component;return"document:click"===t&&(r=!1!==Ve._7(e,34).onDocumentClick(n)&&r),"ngModelChange"===t&&(r=!1!==(o.htmlContent=n)&&r),r},me,pr)),Ve.U(34,114688,null,0,je,[Ve.h,nt,dr,Ve.w],{spellcheck:[0,"spellcheck"],placeholder:[1,"placeholder"],config:[2,"config"]},null),Ve._8(1024,null,Fn,function(e){return[e]},[je]),Ve.U(36,671744,null,0,sr,[[8,null],[8,null],[8,null],[2,Fn]],{model:[0,"model"]},{update:"ngModelChange"}),Ve._8(2048,null,Bn,null,[sr]),Ve.U(38,16384,null,0,Wn,[Bn],null,null),(e()(),Ve._11(-1,null,["\n "])),(e()(),Ve._11(-1,null,["\n\n "])),(e()(),Ve.Q(16777216,null,null,1,null,Oe)),Ve.U(42,16384,null,0,qe,[Ve.E,Ve.B],{ngIf:[0,"ngIf"]},null),(e()(),Ve._11(-1,null,["\n "])),(e()(),Ve.V(44,0,null,null,10,"div",[["class","information block"]],null,null,null,null,null)),(e()(),Ve._11(-1,null,["\n "])),(e()(),Ve.V(46,0,null,null,1,"h6",[],null,null,null,null,null)),(e()(),Ve._11(-1,null,["Documentation"])),(e()(),Ve._11(-1,null,["\n "])),(e()(),Ve.V(49,0,null,null,4,"p",[],null,null,null,null,null)),(e()(),Ve._11(-1,null,["Check\n "])),(e()(),Ve.V(51,0,null,null,1,"a",[["href","https://github.com/Sibiraj-S/ngx-editor/wiki/ngxEditor"]],null,null,null,null,null)),(e()(),Ve._11(-1,null,["wiki"])),(e()(),Ve._11(-1,null,[" for more information"])),(e()(),Ve._11(-1,null,["\n "])),(e()(),Ve._11(-1,null,["\n"])),(e()(),Ve._11(-1,null,["\n"]))],function(e,t){var n=t.component;e(t,34,0,!0,"Enter text here...",n.editorConfig),e(t,36,0,n.htmlContent),e(t,42,0,n.htmlContent)},function(e,t){e(t,12,0,t.component.latestRelease.name),e(t,33,0,Ve._7(t,38).ngClassUntouched,Ve._7(t,38).ngClassTouched,Ve._7(t,38).ngClassPristine,Ve._7(t,38).ngClassDirty,Ve._7(t,38).ngClassValid,Ve._7(t,38).ngClassInvalid,Ve._7(t,38).ngClassPending)})}Object.defineProperty(t,"__esModule",{value:!0});var ke={};n.d(ke,"canEnableToolbarOptions",function(){return r}),n.d(ke,"getEditorConfiguration",function(){return o}),n.d(ke,"canResize",function(){return i});var Ve=n("LMZF"),Se=function(){},Ae=n("TO51"),Pe=function(){function e(e){this._appService=e,this.title="ngx-editor",this.latestRelease={},this.subscription=new Ae.a,this.editorConfig={editable:!0,spellcheck:!1,height:"5rem",minHeight:"2rem",placeholder:"Enter text here...",translate:"no"},this.htmlContent="WYSIWYG Editor for Angular Applications."}return e.prototype.getLatestRelease=function(){var e=this;this.subscription=this._appService.getLatestRelease().subscribe(function(t){return e.latestRelease=t},function(e){console.log(e)},function(){console.log("latest release: "+e.latestRelease.name)})},e.prototype.ngOnInit=function(){this.getLatestRelease()},e.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},e}(),Ie=function(){function e(e){this._editorComponent=e,this.oldY=0,this.grabber=!1}return e.prototype.onMouseMove=function(e){this.grabber&&(this._editorComponent.resizeTextArea(e.clientY-this.oldY),this.oldY=e.clientY)},e.prototype.onMouseUp=function(e){this.grabber=!1},e.prototype.onResize=function(e,t){this.grabber=!0,this.oldY=e.clientY,e.preventDefault()},e}(),Ne={editable:!0,spellcheck:!0,height:"auto",minHeight:"0",width:"auto",minWidth:"0",translate:"yes",placeholder:"Enter text here...",toolbar:[["bold","italic","underline","strikeThrough","superscript","subscript"],["justifyLeft","justifyCenter","justifyRight","justifyFull","indent","outdent"],["cut","copy","delete","removeFormat","undo","redo"],["paragraph","blockquote","removeBlockquote","horizontalLine","orderedList","unorderedList"],["link","unlink","image"]]},je=function(){function e(e,t,n,r){this._elementRef=e,this._messageService=t,this._commandExecutor=n,this._renderer=r,this.resizer="stack",this.config=Ne,this.enableToolbar=!1,this.Utils=ke,this.lastViewModel=""}return e.prototype.onFocus=function(){this.enableToolbar=!0},e.prototype.onDocumentClick=function(e){this.enableToolbar=!!this._elementRef.nativeElement.contains(e.target)},e.prototype.onContentChange=function(e){"function"==typeof this.onChange&&this.onChange(e)},e.prototype.onBlur=function(){"function"==typeof this.onTouched&&this.onTouched()},e.prototype.resizeTextArea=function(e){var t=parseInt(this.height,10);this.height=(t+=e)+"px",this.textArea.nativeElement.style.height=this.height},e.prototype.executeCommand=function(e){try{this._commandExecutor.execute(e)}catch(e){this._messageService.sendMessage(e.message)}},e.prototype.writeValue=function(e){void 0!==e&&this.refreshView(e)},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.refreshView=function(e){this._renderer.setProperty(this.textArea.nativeElement,"innerHTML",null==e?"":e)},e.prototype.ngOnInit=function(){this.config=this.Utils.getEditorConfiguration(this.config,Ne),this.height=this.height||this.textArea.nativeElement.offsetHeight,this.executeCommand("enableObjectResizing")},e}(),Me=Ve.T({encapsulation:0,styles:[[".ngx-editor-grippie[_ngcontent-%COMP%]{height:9px;background-color:#f1f1f1;position:relative;text-align:center;cursor:s-resize;border:1px solid #ddd;border-top:transparent}.ngx-editor-grippie[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{position:absolute;top:1.5px}"]],data:{}}),Re=n("6Xbx"),De=function(){},Le=["en",[["a","p"],["AM","PM"]],[["AM","PM"],,],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",,"{1} 'at' {0}"],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"$","US Dollar",function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}],Fe={},Ue=function(){var e={Zero:0,One:1,Two:2,Few:3,Many:4,Other:5};return e[e.Zero]="Zero",e[e.One]="One",e[e.Two]="Two",e[e.Few]="Few",e[e.Many]="Many",e[e.Other]="Other",e}(),He=new Ve.l("UseV4Plurals"),ze=function(){},Be=function(e){function t(t,n){var r=e.call(this)||this;return r.locale=t,r.deprecatedPluralFn=n,r}return Object(Re.b)(t,e),t.prototype.getPluralCategory=function(e,t){switch(this.deprecatedPluralFn?this.deprecatedPluralFn(t||this.locale,e):function(e){return function(e){var t=e.toLowerCase().replace(/_/g,"-"),n=Fe[t];if(n)return n;var r=t.split("-")[0];if(n=Fe[r])return n;if("en"===r)return Le;throw new Error('Missing locale data for the locale "'+e+'".')}(e)[17]}(t||this.locale)(e)){case Ue.Zero:return"zero";case Ue.One:return"one";case Ue.Two:return"two";case Ue.Few:return"few";case Ue.Many:return"many";default:return"other"}},t}(ze),qe=function(){function e(e,t){this._viewContainer=e,this._context=new Ge,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=t}return Object.defineProperty(e.prototype,"ngIf",{set:function(e){this._context.$implicit=this._context.ngIf=e,this._updateView()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngIfThen",{set:function(e){this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngIfElse",{set:function(e){this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()},enumerable:!0,configurable:!0}),e.prototype._updateView=function(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))},e}(),Ge=function(){this.$implicit=null,this.ngIf=null},Qe=function(){},Ze=new Ve.l("DocumentToken"),We=function(){function e(){this.enableToolbar=!1,this.execute=new Ve.j}return e.prototype.canEnableToolbarOptions=function(e){return r(e,this.config.toolbar)},e.prototype.triggerCommand=function(e){this.execute.emit(e)},e}(),Ke=Ve.T({encapsulation:0,styles:[[".ngx-toolbar[_ngcontent-%COMP%]{background-color:#f5f5f5;border-bottom:1px solid #ddd;font-size:.8rem;padding:.2rem;border:1px solid #ddd}.ngx-toolbar[_ngcontent-%COMP%] .ngx-toolbar-set[_ngcontent-%COMP%]{display:inline-block;border:1px solid #ddd;border-radius:5px;background-color:#fff}.ngx-toolbar[_ngcontent-%COMP%] .ngx-toolbar-set[_ngcontent-%COMP%] .ngx-editor-button[_ngcontent-%COMP%]{background-color:#f5f5f5;background-color:transparent;border:0;padding:.4rem;min-width:2.5rem;float:left;border-right:1px solid #ddd}.ngx-toolbar[_ngcontent-%COMP%] .ngx-toolbar-set[_ngcontent-%COMP%] .ngx-editor-button[_ngcontent-%COMP%]:hover{cursor:pointer;background-color:#f1f1f1;transition:.2s ease}.ngx-toolbar[_ngcontent-%COMP%] .ngx-toolbar-set[_ngcontent-%COMP%] .ngx-editor-button.focus[_ngcontent-%COMP%], .ngx-toolbar[_ngcontent-%COMP%] .ngx-toolbar-set[_ngcontent-%COMP%] .ngx-editor-button[_ngcontent-%COMP%]:focus{outline:0}.ngx-toolbar[_ngcontent-%COMP%] .ngx-toolbar-set[_ngcontent-%COMP%] .ngx-editor-button[_ngcontent-%COMP%]:last-child{border-right:transparent}.ngx-toolbar[_ngcontent-%COMP%] .ngx-toolbar-set[_ngcontent-%COMP%] .ngx-editor-button[_ngcontent-%COMP%]:first-child{border-top-left-radius:5px;border-bottom-left-radius:5px}.ngx-toolbar[_ngcontent-%COMP%] .ngx-toolbar-set[_ngcontent-%COMP%] .ngx-editor-button[_ngcontent-%COMP%]:last-child{border-top-right-radius:5px;border-bottom-right-radius:5px}.ngx-toolbar[_ngcontent-%COMP%] .ngx-toolbar-set[_ngcontent-%COMP%] .ngx-editor-button[_ngcontent-%COMP%]:disabled{background-color:#f5f5f5;pointer-events:none;cursor:not-allowed}"]],data:{}}),Xe=function(){function e(e){var t=this;this._messageService=e,this.ngxMessage="",this._messageService.getMessage().subscribe(function(e){return t.ngxMessage=e})}return e.prototype.clearMessage=function(){this.ngxMessage=void 0},e}(),Ye=n("AP4T"),Je=n("E9/g"),$e=function(){function e(e,t){this.project=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new et(e,this.project,this.thisArg))},e}(),et=function(e){function t(t,n,r){e.call(this,t),this.project=n,this.count=0,this.thisArg=r||this}return Object(Re.b)(t,e),t.prototype._next=function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(e){return void this.destination.error(e)}this.destination.next(t)},t}(Je.a);Ye.a.prototype.map=R;var tt,nt=function(){function e(){this.message=new Ae.a}return e.prototype.getMessage=function(){return this.message.asObservable()},e.prototype.sendMessage=function(e){this.message.next(e),this.clearMessageIn(5e3)},e.prototype.clearMessageIn=function(e){var t=this;setTimeout(function(){t.message.next(void 0)},e)},e}(),rt=Ve.T({encapsulation:0,styles:[[".ngx-editor-message[_ngcontent-%COMP%]{font-size:80%;background-color:#f1f1f1;border:1px solid #ddd;border-top:transparent;padding:0 .5rem;padding-bottom:.1rem;transition:.5s ease-in}"]],data:{}}),ot=n("Ecq+"),it=n("1j/l"),ut=n("qgI0"),lt=n("lI6h"),st=function(e){function t(t,n){e.call(this),this.sources=t,this.resultSelector=n}return Object(Re.b)(t,e),t.create=function(){for(var e=[],n=0;n0},t.prototype.tagName=function(e){return e.tagName},t.prototype.attributeMap=function(e){for(var t=new Map,n=e.attributes,r=0;r0;u||(u=e[i]=[]);var s=Xt(t)?Zone.root:Zone.current;if(0===u.length)u.push({zone:s,handler:o});else{for(var a=!1,c=0;c-1},t}(Pt),rn=["alt","control","meta","shift"],on={alt:function(e){return e.altKey},control:function(e){return e.ctrlKey},meta:function(e){return e.metaKey},shift:function(e){return e.shiftKey}},un=function(e){function t(t){return e.call(this,t)||this}return Object(Re.b)(t,e),t.prototype.supports=function(e){return null!=t.parseEventName(e)},t.prototype.addEventListener=function(e,n,r){var o=t.parseEventName(n),i=t.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return H().onAndCancel(e,o.domEventName,i)})},t.parseEventName=function(e){var n=e.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;var o=t._normalizeKey(n.pop()),i="";if(rn.forEach(function(e){var t=n.indexOf(e);t>-1&&(n.splice(t,1),i+=e+".")}),i+=o,0!=n.length||0===o.length)return null;var u={};return u.domEventName=r,u.fullKey=i,u},t.getEventFullKey=function(e){var t="",n=H().getEventKey(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),rn.forEach(function(r){r!=n&&(0,on[r])(e)&&(t+=r+".")}),t+=n},t.eventCallback=function(e,n,r){return function(o){t.getEventFullKey(o)===e&&r.runGuarded(function(){return n(o)})}},t._normalizeKey=function(e){switch(e){case"esc":return"escape";default:return e}},t}(Pt),ln=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,sn=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i,an=null,cn=null,dn=K("area,br,col,hr,img,wbr"),pn=K("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),fn=K("rp,rt"),hn=X(fn,pn),gn=X(dn,X(pn,K("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),X(fn,K("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),hn),yn=K("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),vn=K("srcset"),mn=X(yn,vn,K("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width")),bn=function(){function e(){this.sanitizedSomething=!1,this.buf=[]}return e.prototype.sanitizeChildren=function(e){for(var t=e.firstChild;t;)if(cn.isElementNode(t)?this.startElement(t):cn.isTextNode(t)?this.chars(cn.nodeValue(t)):this.sanitizedSomething=!0,cn.firstChild(t))t=cn.firstChild(t);else for(;t;){cn.isElementNode(t)&&this.endElement(t);var n=Y(t,cn.nextSibling(t));if(n){t=n;break}t=Y(t,cn.parentElement(t))}return this.buf.join("")},e.prototype.startElement=function(e){var t=this,n=cn.nodeName(e).toLowerCase();gn.hasOwnProperty(n)?(this.buf.push("<"),this.buf.push(n),cn.attributeMap(e).forEach(function(e,n){var r=n.toLowerCase();mn.hasOwnProperty(r)?(yn[r]&&(e=W(e)),vn[r]&&(e=function(e){return(e=String(e)).split(",").map(function(e){return W(e.trim())}).join(", ")}(e)),t.buf.push(" "),t.buf.push(n),t.buf.push('="'),t.buf.push(J(e)),t.buf.push('"')):t.sanitizedSomething=!0}),this.buf.push(">")):this.sanitizedSomething=!0},e.prototype.endElement=function(e){var t=cn.nodeName(e).toLowerCase();gn.hasOwnProperty(t)&&!dn.hasOwnProperty(t)&&(this.buf.push(""))},e.prototype.chars=function(e){this.buf.push(J(e))},e}(),_n=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,wn=/([^\#-~ |!])/g,Cn=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:calc|attr))\\([-0-9.%, #a-zA-Z]+\\))$","g"),En=/^url\(([^)]+)\)$/,xn=function(){},On=function(e){function t(t){var n=e.call(this)||this;return n._doc=t,n}return Object(Re.b)(t,e),t.prototype.sanitize=function(e,t){if(null==t)return null;switch(e){case Ve.A.NONE:return t;case Ve.A.HTML:return t instanceof kn?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"HTML"),function(e,t){try{var n=function(){if(an)return an;var e=(cn=H()).createElement("template");if("content"in e)return e;var t=cn.createHtmlDocument();if(null==(an=cn.querySelector(t,"body"))){var n=cn.createElement("html",t);an=cn.createElement("body",t),cn.appendChild(n,an),cn.appendChild(t,n)}return an}(),r=t?String(t):"",o=5,i=r;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,cn.setInnerHTML(n,r=i),e.documentMode&&$(n),i=cn.getInnerHTML(n)}while(r!==i);for(var u=new bn,l=u.sanitizeChildren(cn.getTemplateContent(n)||n),s=cn.getTemplateContent(n)||n,a=0,c=cn.childNodesAsList(s);ae?{max:{max:e,actual:t.value}}:null}},e.required=function(e){return te(e.value)?{required:!0}:null},e.requiredTrue=function(e){return!0===e.value?null:{required:!0}},e.email=function(e){return Dn.test(e.value)?null:{email:!0}},e.minLength=function(e){return function(t){if(te(t.value))return null;var n=t.value?t.value.length:0;return ne?{maxlength:{requiredLength:e,actualLength:n}}:null}},e.pattern=function(t){if(!t)return e.nullValidator;var n,r;return"string"==typeof t?(r="^"+t+"$",n=new RegExp(r)):(r=t.toString(),n=t),function(e){if(te(e.value))return null;var t=e.value;return n.test(t)?null:{pattern:{requiredPattern:r,actualValue:t}}}},e.nullValidator=function(e){return null},e.compose=function(e){if(!e)return null;var t=e.filter(ne);return 0==t.length?null:function(e){return oe(function(e,n){return t.map(function(t){return t(e)})}(e))}},e.composeAsync=function(e){if(!e)return null;var t=e.filter(ne);return 0==t.length?null:function(e){var n=function(e,n){return t.map(function(t){return t(e)})}(e).map(re);return R.call(ct(n),oe)}},e}(),Fn=new Ve.l("NgValueAccessor"),Un=function(){function e(e,t){this._renderer=e,this._elementRef=t,this.onChange=function(e){},this.onTouched=function(){}}return e.prototype.writeValue=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"checked",e)},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e}(),Hn=function(){function e(e,t,n){this._renderer=e,this._elementRef=t,this._compositionMode=n,this.onChange=function(e){},this.onTouched=function(){},this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){var e=H()?H().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}())}return e.prototype.writeValue=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e.prototype._handleInput=function(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)},e.prototype._compositionStart=function(){this._composing=!0},e.prototype._compositionEnd=function(e){this._composing=!1,this._compositionMode&&this.onChange(e)},e}(),zn=function(){function e(e,t){this._renderer=e,this._elementRef=t,this.onChange=function(e){},this.onTouched=function(){}}return e.prototype.writeValue=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)},e.prototype.registerOnChange=function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e}(),Bn=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._parent=null,t.name=null,t.valueAccessor=null,t._rawValidators=[],t._rawAsyncValidators=[],t}return Object(Re.b)(t,e),Object.defineProperty(t.prototype,"validator",{get:function(){return le()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return le()},enumerable:!0,configurable:!0}),t}(Mn),qn=function(){function e(){this._accessors=[]}return e.prototype.add=function(e,t){this._accessors.push([e,t])},e.prototype.remove=function(e){for(var t=this._accessors.length-1;t>=0;--t)if(this._accessors[t][1]===e)return void this._accessors.splice(t,1)},e.prototype.select=function(e){var t=this;this._accessors.forEach(function(n){t._isSameGroup(n,e)&&n[1]!==e&&n[1].fireUncheck(e.value)})},e.prototype._isSameGroup=function(e,t){return!!e[0].control&&e[0]._parent===t._control._parent&&e[1].name===t.name},e}(),Gn=function(){function e(e,t,n,r){this._renderer=e,this._elementRef=t,this._registry=n,this._injector=r,this.onChange=function(){},this.onTouched=function(){}}return e.prototype.ngOnInit=function(){this._control=this._injector.get(Bn),this._checkName(),this._registry.add(this._control,this)},e.prototype.ngOnDestroy=function(){this._registry.remove(this)},e.prototype.writeValue=function(e){this._state=e===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)},e.prototype.registerOnChange=function(e){var t=this;this._fn=e,this.onChange=function(){e(t.value),t._registry.select(t)}},e.prototype.fireUncheck=function(e){this.writeValue(e)},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e.prototype._checkName=function(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)},e.prototype._throwNameError=function(){throw new Error('\n If you define both a name and a formControlName attribute on your radio button, their values\n must match. Ex: \n ')},e}(),Qn=[Un,function(){function e(e,t){this._renderer=e,this._elementRef=t,this.onChange=function(e){},this.onTouched=function(){}}return e.prototype.writeValue=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(e))},e.prototype.registerOnChange=function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e}(),zn,function(){function e(e,t){this._renderer=e,this._elementRef=t,this._optionMap=new Map,this._idCounter=0,this.onChange=function(e){},this.onTouched=function(){},this._compareWith=Ve._3}return Object.defineProperty(e.prototype,"compareWith",{set:function(e){if("function"!=typeof e)throw new Error("compareWith must be a function, but received "+JSON.stringify(e));this._compareWith=e},enumerable:!0,configurable:!0}),e.prototype.writeValue=function(e){this.value=e;var t=this._getOptionId(e);null==t&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);var n=function(e,n){return null==t?""+n:(n&&"object"==typeof n&&(n="Object"),(t+": "+n).slice(0,50))}(0,e);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)},e.prototype.registerOnChange=function(e){var t=this;this.onChange=function(n){t.value=t._getOptionValue(n),e(t.value)}},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e.prototype._registerOption=function(){return(this._idCounter++).toString()},e.prototype._getOptionId=function(e){for(var t=0,n=Array.from(this._optionMap.keys());t-1)}}else n=function(e,t){e._setSelected(!1)};this._optionMap.forEach(n)},e.prototype.registerOnChange=function(e){var t=this;this.onChange=function(n){var r=[];if(n.hasOwnProperty("selectedOptions"))for(var o=n.selectedOptions,i=0;i0||this.disabled},t.prototype._checkAllValuesPresent=function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control with name: '"+n+"'.")})},t}(Yn),er=function(e){function t(t,n,r){var o=e.call(this,he(n),ge(r,n))||this;return o.controls=t,o._initObservables(),o._setUpdateStrategy(n),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o}return Object(Re.b)(t,e),t.prototype.at=function(e){return this.controls[e]},t.prototype.push=function(e){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.insert=function(e,t){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.removeAt=function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.setControl=function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity(),this._onCollectionChange()},Object.defineProperty(t.prototype,"length",{get:function(){return this.controls.length},enumerable:!0,configurable:!0}),t.prototype.setValue=function(e,t){var n=this;void 0===t&&(t={}),this._checkAllValuesPresent(e),e.forEach(function(e,r){n._throwIfControlMissing(r),n.at(r).setValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)},t.prototype.patchValue=function(e,t){var n=this;void 0===t&&(t={}),e.forEach(function(e,r){n.at(r)&&n.at(r).patchValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)},t.prototype.reset=function(e,t){void 0===e&&(e=[]),void 0===t&&(t={}),this._forEachChild(function(n,r){n.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t),this._updatePristine(t),this._updateTouched(t)},t.prototype.getRawValue=function(){return this.controls.map(function(e){return e instanceof Jn?e.value:e.getRawValue()})},t.prototype._syncPendingControls=function(){var e=this.controls.reduce(function(e,t){return!!t._syncPendingControls()||e},!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e},t.prototype._throwIfControlMissing=function(e){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(e))throw new Error("Cannot find form control at index "+e)},t.prototype._forEachChild=function(e){this.controls.forEach(function(t,n){e(t,n)})},t.prototype._updateValue=function(){var e=this;this.value=this.controls.filter(function(t){return t.enabled||e.disabled}).map(function(e){return e.value})},t.prototype._anyControls=function(e){return this.controls.some(function(t){return t.enabled&&e(t)})},t.prototype._setUpControls=function(){var e=this;this._forEachChild(function(t){return e._registerControl(t)})},t.prototype._checkAllValuesPresent=function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control at index: "+n+".")})},t.prototype._allControlsDisabled=function(){for(var e=0,t=this.controls;e0||this.disabled},t.prototype._registerControl=function(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)},t}(Yn),tr=Promise.resolve(null),nr=function(e){function t(t,n){var r=e.call(this)||this;return r.submitted=!1,r._directives=[],r.ngSubmit=new Ve.j,r.form=new $n({},pe(t),fe(n)),r}return Object(Re.b)(t,e),t.prototype.ngAfterViewInit=function(){this._setUpdateStrategy()},Object.defineProperty(t.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"controls",{get:function(){return this.form.controls},enumerable:!0,configurable:!0}),t.prototype.addControl=function(e){var t=this;tr.then(function(){var n=t._findContainer(e.path);e.control=n.registerControl(e.name,e.control),ae(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),t._directives.push(e)})},t.prototype.getControl=function(e){return this.form.get(e.path)},t.prototype.removeControl=function(e){var t=this;tr.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name),function(t,n){var r=t.indexOf(e);r>-1&&t.splice(r,1)}(t._directives)})},t.prototype.addFormGroup=function(e){var t=this;tr.then(function(){var n=t._findContainer(e.path),r=new $n({});(function(e,t){null==e&&de(t,"Cannot find control with"),e.validator=Ln.compose([e.validator,t.validator]),e.asyncValidator=Ln.composeAsync([e.asyncValidator,t.asyncValidator])})(r,e),n.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})},t.prototype.removeFormGroup=function(e){var t=this;tr.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name)})},t.prototype.getFormGroup=function(e){return this.form.get(e.path)},t.prototype.updateModel=function(e,t){var n=this;tr.then(function(){n.form.get(e.path).setValue(t)})},t.prototype.setValue=function(e){this.control.setValue(e)},t.prototype.onSubmit=function(e){return this.submitted=!0,function(e,t){e._syncPendingControls(),t.forEach(function(e){var t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}(this.form,this._directives),this.ngSubmit.emit(e),!1},t.prototype.onReset=function(){this.resetForm()},t.prototype.resetForm=function(e){void 0===e&&(e=void 0),this.form.reset(e),this.submitted=!1},t.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)},t.prototype._findContainer=function(e){return e.pop(),e.length?this.form.get(e):this.form},t}(Rn),rr='\n
\n
\n \n
\n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',or='\n
\n
\n \n
\n
',ir=function(){function e(){}return e.modelParentException=function(){throw new Error('\n ngModel cannot be used to register form controls with a parent formGroup directive. Try using\n formGroup\'s partner directive "formControlName" instead. Example:\n\n \n
\n \n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });\n\n Or, if you\'d like to avoid registering this form control, indicate that it\'s standalone in ngModelOptions:\n\n Example:\n\n \n
\n \n \n
\n ')},e.formGroupNameException=function(){throw new Error("\n ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n "+rr+"\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n "+or)},e.missingNameException=function(){throw new Error('If ngModel is used within a form tag, either the name attribute must be set or the form\n control must be defined as \'standalone\' in ngModelOptions.\n\n Example 1: \n Example 2: ')},e.modelGroupParentException=function(){throw new Error("\n ngModelGroup cannot be used with a parent formGroup directive.\n\n Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n "+rr+"\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n "+or)},e}(),ur=function(e){function t(t,n,r){var o=e.call(this)||this;return o._parent=t,o._validators=n,o._asyncValidators=r,o}return Object(Re.b)(t,e),t.prototype._checkParentType=function(){this._parent instanceof t||this._parent instanceof nr||ir.modelGroupParentException()},t}(Zn),lr=Promise.resolve(null),sr=function(e){function t(t,n,r,o){var i=e.call(this)||this;return i.control=new Jn,i._registered=!1,i.update=new Ve.j,i._parent=t,i._rawValidators=n||[],i._rawAsyncValidators=r||[],i.valueAccessor=function(e,t){if(!t)return null;var n=void 0,r=void 0,o=void 0;return t.forEach(function(t){t.constructor===Hn?n=t:function(e){return Qn.some(function(t){return e.constructor===t})}(t)?(r&&de(e,"More than one built-in value accessor matches form control with"),r=t):(o&&de(e,"More than one custom value accessor matches form control with"),o=t)}),o||r||n||(de(e,"No valid value accessor for form control with"),null)}(i,o),i}return Object(Re.b)(t,e),t.prototype.ngOnChanges=function(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),function(e,t){if(!e.hasOwnProperty("model"))return!1;var n=e.model;return!!n.isFirstChange()||!Object(Ve._3)(t,n.currentValue)}(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)},t.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},Object.defineProperty(t.prototype,"path",{get:function(){return this._parent?se(this.name,this._parent):[this.name]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return pe(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return fe(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),t.prototype.viewToModelUpdate=function(e){this.viewModel=e,this.update.emit(e)},t.prototype._setUpControl=function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0},t.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)},t.prototype._isStandalone=function(){return!this._parent||!(!this.options||!this.options.standalone)},t.prototype._setUpStandalone=function(){ae(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})},t.prototype._checkForErrors=function(){this._isStandalone()||this._checkParentType(),this._checkName()},t.prototype._checkParentType=function(){!(this._parent instanceof ur)&&this._parent instanceof Zn?ir.formGroupNameException():this._parent instanceof ur||this._parent instanceof nr||ir.modelParentException()},t.prototype._checkName=function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||ir.missingNameException()},t.prototype._updateValue=function(e){var t=this;lr.then(function(){t.control.setValue(e,{emitViewToModelChange:!1})})},t.prototype._updateDisabled=function(e){var t=this,n=e.isDisabled.currentValue,r=""===n||n&&"false"!==n;lr.then(function(){r&&!t.control.disabled?t.control.disable():!r&&t.control.disabled&&t.control.enable()})},t}(Bn),ar=function(){},cr=function(){},dr=function(){function e(){}return e.prototype.execute=function(e){"enableObjectResizing"!==e?"blockquote"!==e?"removeBlockquote"!==e?"link"!==e?"image"!==e?document.execCommand(e,!1,null):this.insertImage():this.createLink():document.execCommand("formatBlock",!1,"div"):document.execCommand("formatBlock",!1,"
"):document.execCommand("enableObjectResizing",!0,!0)},e.prototype.insertImage=function(){var e=prompt("Enter Image URL","http://");if(e&&!document.execCommand("insertImage",!1,e))throw new Error("Invalid URL")},e.prototype.createLink=function(){var e=document.getSelection();if("A"===e.anchorNode.parentElement.tagName)(t=prompt("Enter URL",e.anchorNode.parentElement.getAttribute("href")))&&document.execCommand("createLink",!1,t);else{if("None"===e.type)throw new Error("No selection made");var t=prompt("Enter URL","http://");t&&document.execCommand("createLink",!1,t)}},e}(),pr=Ve.T({encapsulation:0,styles:[[".ngx-editor[_ngcontent-%COMP%]{position:relative}.ngx-editor[_ngcontent-%COMP%] [contenteditable=true]:empty:before{content:attr(placeholder);display:block}.ngx-editor[_ngcontent-%COMP%] .ngx-editor-textarea[_ngcontent-%COMP%]{min-height:5rem;padding:.5rem .8rem 1rem .8rem;border:1px solid #ddd;border-top:transparent!important;background-color:#fff;overflow:auto}.ngx-editor[_ngcontent-%COMP%] .ngx-editor-textarea.focus[_ngcontent-%COMP%], .ngx-editor[_ngcontent-%COMP%] .ngx-editor-textarea[_ngcontent-%COMP%]:focus{outline:0}.ngx-editor[_ngcontent-%COMP%] .ngx-editor-textarea[_ngcontent-%COMP%] blockquote{margin-left:1rem;border-left:.2em solid #dfe2e5;padding-left:.5rem}"]],data:{}}),fr=function(){function e(e){this._http=e,this.releaseURL="https://api.github.com/repos/Sibiraj-S/ngx-editor/releases/latest"}return e.prototype.getLatestRelease=function(){return this._http.get(this.releaseURL).map(function(e){return e&&0!==e.length?e:[]})},e}(),hr=n("Oryw").a.of,gr=n("wP3s"),yr=function(){function e(e,t){this.predicate=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new vr(e,this.predicate,this.thisArg))},e}(),vr=function(e){function t(t,n,r){e.call(this,t),this.predicate=n,this.thisArg=r,this.count=0}return Object(Re.b)(t,e),t.prototype._next=function(e){var t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(e){return void this.destination.error(e)}t&&this.destination.next(e)},t}(Je.a),mr=function(){},br=function(){},_r=function(){function e(e){var t=this;this.normalizedNames=new Map,this.lazyUpdate=null,e?this.lazyInit="string"==typeof e?function(){t.headers=new Map,e.split("\n").forEach(function(e){var n=e.indexOf(":");if(n>0){var r=e.slice(0,n),o=r.toLowerCase(),i=e.slice(n+1).trim();t.maybeSetNormalizedName(r,o),t.headers.has(o)?t.headers.get(o).push(i):t.headers.set(o,[i])}})}:function(){t.headers=new Map,Object.keys(e).forEach(function(n){var r=e[n],o=n.toLowerCase();"string"==typeof r&&(r=[r]),r.length>0&&(t.headers.set(o,r),t.maybeSetNormalizedName(n,o))})}:this.headers=new Map}return e.prototype.has=function(e){return this.init(),this.headers.has(e.toLowerCase())},e.prototype.get=function(e){this.init();var t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null},e.prototype.keys=function(){return this.init(),Array.from(this.normalizedNames.values())},e.prototype.getAll=function(e){return this.init(),this.headers.get(e.toLowerCase())||null},e.prototype.append=function(e,t){return this.clone({name:e,value:t,op:"a"})},e.prototype.set=function(e,t){return this.clone({name:e,value:t,op:"s"})},e.prototype.delete=function(e,t){return this.clone({name:e,value:t,op:"d"})},e.prototype.maybeSetNormalizedName=function(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)},e.prototype.init=function(){var t=this;this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(e){return t.applyUpdate(e)}),this.lazyUpdate=null))},e.prototype.copyFrom=function(e){var t=this;e.init(),Array.from(e.headers.keys()).forEach(function(n){t.headers.set(n,e.headers.get(n)),t.normalizedNames.set(n,e.normalizedNames.get(n))})},e.prototype.clone=function(t){var n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n},e.prototype.applyUpdate=function(e){var t=e.name.toLowerCase();switch(e.op){case"a":case"s":var n=e.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(e.name,t);var r=("a"===e.op?this.headers.get(t):void 0)||[];r.push.apply(r,n),this.headers.set(t,r);break;case"d":var o=e.value;if(o){var i=this.headers.get(t);if(!i)return;0===(i=i.filter(function(e){return-1===o.indexOf(e)})).length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,i)}else this.headers.delete(t),this.normalizedNames.delete(t)}},e.prototype.forEach=function(e){var t=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(n){return e(t.normalizedNames.get(n),t.headers.get(n))})},e}(),wr=function(){function e(){}return e.prototype.encodeKey=function(e){return be(e)},e.prototype.encodeValue=function(e){return be(e)},e.prototype.decodeKey=function(e){return decodeURIComponent(e)},e.prototype.decodeValue=function(e){return decodeURIComponent(e)},e}(),Cr=function(){function e(e){void 0===e&&(e={});var t=this;if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new wr,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(e,t){var n=new Map;return e.length>0&&e.split("&").forEach(function(e){var r=e.indexOf("="),o=-1==r?[t.decodeKey(e),""]:[t.decodeKey(e.slice(0,r)),t.decodeValue(e.slice(r+1))],i=o[0],u=o[1],l=n.get(i)||[];l.push(u),n.set(i,l)}),n}(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(function(n){var r=e.fromObject[n];t.map.set(n,Array.isArray(r)?r:[r])})):this.map=null}return e.prototype.has=function(e){return this.init(),this.map.has(e)},e.prototype.get=function(e){this.init();var t=this.map.get(e);return t?t[0]:null},e.prototype.getAll=function(e){return this.init(),this.map.get(e)||null},e.prototype.keys=function(){return this.init(),Array.from(this.map.keys())},e.prototype.append=function(e,t){return this.clone({param:e,value:t,op:"a"})},e.prototype.set=function(e,t){return this.clone({param:e,value:t,op:"s"})},e.prototype.delete=function(e,t){return this.clone({param:e,value:t,op:"d"})},e.prototype.toString=function(){var e=this;return this.init(),this.keys().map(function(t){var n=e.encoder.encodeKey(t);return e.map.get(t).map(function(t){return n+"="+e.encoder.encodeValue(t)}).join("&")}).join("&")},e.prototype.clone=function(t){var n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat([t]),n},e.prototype.init=function(){var e=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(t){return e.map.set(t,e.cloneFrom.map.get(t))}),this.updates.forEach(function(t){switch(t.op){case"a":case"s":var n=("a"===t.op?e.map.get(t.param):void 0)||[];n.push(t.value),e.map.set(t.param,n);break;case"d":if(void 0===t.value){e.map.delete(t.param);break}var r=e.map.get(t.param)||[],o=r.indexOf(t.value);-1!==o&&r.splice(o,1),r.length>0?e.map.set(t.param,r):e.map.delete(t.param)}}),this.cloneFrom=null)},e}(),Er=function(){function e(e,t,n,r){this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase();var o;if(function(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=n||null,o=r):o=n,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.params&&(this.params=o.params)),this.headers||(this.headers=new _r),this.params){var i=this.params.toString();if(0===i.length)this.urlWithParams=t;else{var u=t.indexOf("?");this.urlWithParams=t+(-1===u?"?":u=200&&this.status<300}}(),Tr=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.type=xr.ResponseHeader,n}return Object(Re.b)(t,e),t.prototype.clone=function(e){return void 0===e&&(e={}),new t({headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})},t}(Or),kr=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.type=xr.Response,n.body=t.body||null,n}return Object(Re.b)(t,e),t.prototype.clone=function(e){return void 0===e&&(e={}),new t({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})},t}(Or),Vr=function(e){function t(t){var n=e.call(this,t,0,"Unknown Error")||this;return n.name="HttpErrorResponse",n.ok=!1,n.message=n.status>=200&&n.status<300?"Http failure during parsing for "+(t.url||"(unknown url)"):"Http failure response for "+(t.url||"(unknown url)")+": "+t.status+" "+t.statusText,n.error=t.error||null,n}return Object(Re.b)(t,e),t}(Or),Sr=function(){function e(e){this.handler=e}return e.prototype.request=function(e,t,n){var r=this;void 0===n&&(n={});var o;if(e instanceof Er)o=e;else{var i=void 0;void 0!==!!n.headers&&(i=n.headers instanceof _r?n.headers:new _r(n.headers));var u=void 0;n.params&&(u=n.params instanceof Cr?n.params:new Cr({fromObject:n.params})),o=new Er(e,t,n.body||null,{headers:i,params:u,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}var l=function(e,t){return function(e,t){return Object(gr.a)(e,t,1)}(e,t)(this)}.call(hr(o),function(e){return r.handler.handle(e)});if(e instanceof Er||"events"===n.observe)return l;var s=function(e,t){return function(e,t){return function(n){return n.lift(new yr(e,t))}}(e,t)(this)}.call(l,function(e){return e instanceof kr});switch(n.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return R.call(s,function(e){if(null!==e.body&&!(e.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return e.body});case"blob":return R.call(s,function(e){if(null!==e.body&&!(e.body instanceof Blob))throw new Error("Response is not a Blob.");return e.body});case"text":return R.call(s,function(e){if(null!==e.body&&"string"!=typeof e.body)throw new Error("Response is not a string.");return e.body});case"json":default:return R.call(s,function(e){return e.body})}case"response":return s;default:throw new Error("Unreachable: unhandled observe type "+n.observe+"}")}},e.prototype.delete=function(e,t){return void 0===t&&(t={}),this.request("DELETE",e,t)},e.prototype.get=function(e,t){return void 0===t&&(t={}),this.request("GET",e,t)},e.prototype.head=function(e,t){return void 0===t&&(t={}),this.request("HEAD",e,t)},e.prototype.jsonp=function(e,t){return this.request("JSONP",e,{params:(new Cr).append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})},e.prototype.options=function(e,t){return void 0===t&&(t={}),this.request("OPTIONS",e,t)},e.prototype.patch=function(e,t,n){return void 0===n&&(n={}),this.request("PATCH",e,Ee(n,t))},e.prototype.post=function(e,t,n){return void 0===n&&(n={}),this.request("POST",e,Ee(n,t))},e.prototype.put=function(e,t,n){return void 0===n&&(n={}),this.request("PUT",e,Ee(n,t))},e}(),Ar=function(){function e(e,t){this.next=e,this.interceptor=t}return e.prototype.handle=function(e){return this.interceptor.intercept(e,this.next)},e}(),Pr=new Ve.l("HTTP_INTERCEPTORS"),Ir=function(){function e(){}return e.prototype.intercept=function(e,t){return t.handle(e)},e}(),Nr=/^\)\]\}',?\n/,jr=function(){},Mr=function(){function e(){}return e.prototype.build=function(){return new XMLHttpRequest},e}(),Rr=function(){function e(e){this.xhrFactory=e}return e.prototype.handle=function(e){var t=this;if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without JsonpClientModule installed.");return new Ye.a(function(n){var r=t.xhrFactory.build();if(r.open(e.method,e.urlWithParams),e.withCredentials&&(r.withCredentials=!0),e.headers.forEach(function(e,t){return r.setRequestHeader(e,t.join(","))}),e.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){var o=e.detectContentTypeHeader();null!==o&&r.setRequestHeader("Content-Type",o)}if(e.responseType){var i=e.responseType.toLowerCase();r.responseType="json"!==i?i:"text"}var u=e.serializeBody(),l=null,s=function(){if(null!==l)return l;var t=1223===r.status?204:r.status,n=r.statusText||"OK",o=new _r(r.getAllResponseHeaders()),i=function(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(r)||e.url;return l=new Tr({headers:o,status:t,statusText:n,url:i})},a=function(){var t=s(),o=t.headers,i=t.status,u=t.statusText,l=t.url,a=null;204!==i&&(a=void 0===r.response?r.responseText:r.response),0===i&&(i=a?200:0);var c=i>=200&&i<300;if(c&&"json"===e.responseType&&"string"==typeof a){a=a.replace(Nr,"");try{a=JSON.parse(a)}catch(e){c=!1,a={error:e,text:a}}}else if(!c&&"json"===e.responseType&&"string"==typeof a)try{a=JSON.parse(a)}catch(e){}c?(n.next(new kr({body:a,headers:o,status:i,statusText:u,url:l||void 0})),n.complete()):n.error(new Vr({error:a,headers:o,status:i,statusText:u,url:l||void 0}))},c=function(e){var t=new Vr({error:e,status:r.status||0,statusText:r.statusText||"Unknown Error"});n.error(t)},d=!1,p=function(t){d||(n.next(s()),d=!0);var o={type:xr.DownloadProgress,loaded:t.loaded};t.lengthComputable&&(o.total=t.total),"text"===e.responseType&&r.responseText&&(o.partialText=r.responseText),n.next(o)},f=function(e){var t={type:xr.UploadProgress,loaded:e.loaded};e.lengthComputable&&(t.total=e.total),n.next(t)};return r.addEventListener("load",a),r.addEventListener("error",c),e.reportProgress&&(r.addEventListener("progress",p),null!==u&&r.upload&&r.upload.addEventListener("progress",f)),r.send(u),n.next({type:xr.Sent}),function(){r.removeEventListener("error",c),r.removeEventListener("load",a),e.reportProgress&&(r.removeEventListener("progress",p),null!==u&&r.upload&&r.upload.removeEventListener("progress",f)),r.abort()}})},e}(),Dr=new Ve.l("XSRF_COOKIE_NAME"),Lr=new Ve.l("XSRF_HEADER_NAME"),Fr=function(){},Ur=function(){function e(e,t,n){this.doc=e,this.platform=t,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return e.prototype.getToken=function(){if("server"===this.platform)return null;var e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=l(e,this.cookieName),this.lastCookieString=e),this.lastToken},e}(),Hr=function(){function e(e,t){this.tokenService=e,this.headerName=t}return e.prototype.intercept=function(e,t){var n=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||n.startsWith("http://")||n.startsWith("https://"))return t.handle(e);var r=this.tokenService.getToken();return null===r||e.headers.has(this.headerName)||(e=e.clone({headers:e.headers.set(this.headerName,r)})),t.handle(e)},e}(),zr=function(){function e(){}return e.disable=function(){return{ngModule:e,providers:[{provide:Hr,useClass:Ir}]}},e.withOptions=function(t){return void 0===t&&(t={}),{ngModule:e,providers:[t.cookieName?{provide:Dr,useValue:t.cookieName}:[],t.headerName?{provide:Lr,useValue:t.headerName}:[]]}},e}(),Br=function(){},qr=Ve.T({encapsulation:0,styles:[[".container[_ngcontent-%COMP%]{padding-top:1rem}.container[_ngcontent-%COMP%] .block[_ngcontent-%COMP%]{margin-bottom:1rem}.container[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%]{text-align:center}.container[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{margin-bottom:.3rem}.container[_ngcontent-%COMP%] .htmlblock[_ngcontent-%COMP%] .html[_ngcontent-%COMP%]{border:1px solid #ddd;border-radius:4px;padding:.5rem;background-color:#f1f1f1;max-height:10rem;overflow:auto}pre[_ngcontent-%COMP%]{background:#f1f1f1;padding:0 1rem}mark[_ngcontent-%COMP%], pre[_ngcontent-%COMP%]{border-radius:3px}mark[_ngcontent-%COMP%]{background-color:#f1f1f1;padding:.1rem .4rem}"]],data:{}}),Gr=Ve.R("app-root",Pe,function(e){return Ve._12(0,[(e()(),Ve.V(0,0,null,null,2,"app-root",[],null,null,null,Te,qr)),Ve._8(512,null,fr,fr,[Sr]),Ve.U(2,245760,null,0,Pe,[fr],null,null)],function(e,t){e(t,2,0)},null)},{},{},[]),Qr=function(){},Zr=Ve.S(Se,[Pe],function(e){return Ve._5([Ve._6(512,Ve.g,Ve.O,[[8,[Gr]],[3,Ve.g],Ve.q]),Ve._6(5120,Ve.p,Ve._4,[[3,Ve.p]]),Ve._6(4608,ze,Be,[Ve.p,[2,He]]),Ve._6(4608,Ve.f,Ve.f,[]),Ve._6(5120,Ve.a,Ve.W,[]),Ve._6(5120,Ve.n,Ve._1,[]),Ve._6(5120,Ve.o,Ve._2,[]),Ve._6(4608,xn,On,[Ze]),Ve._6(6144,Ve.z,null,[xn]),Ve._6(4608,en,tn,[]),Ve._6(5120,St,function(e,t,n,r,o){return[new Jt(e,t),new un(n),new nn(r,o)]},[Ze,Ve.s,Ze,Ze,en]),Ve._6(4608,At,At,[St,Ve.s]),Ve._6(135680,Nt,Nt,[Ze]),Ve._6(4608,Lt,Lt,[At,Nt]),Ve._6(6144,Ve.x,null,[Lt]),Ve._6(6144,It,null,[Nt]),Ve._6(4608,Ve.C,Ve.C,[Ve.s]),Ve._6(4608,Et,Et,[Ze]),Ve._6(4608,kt,kt,[Ze]),Ve._6(4608,Fr,Ur,[Ze,Ve.u,Dr]),Ve._6(4608,Hr,Hr,[Fr,Lr]),Ve._6(5120,Pr,function(e){return[e]},[Hr]),Ve._6(4608,Mr,Mr,[]),Ve._6(6144,jr,null,[Mr]),Ve._6(4608,Rr,Rr,[jr]),Ve._6(6144,br,null,[Rr]),Ve._6(5120,mr,xe,[br,[2,Pr]]),Ve._6(4608,Sr,Sr,[mr]),Ve._6(4608,dr,dr,[]),Ve._6(4608,nt,nt,[]),Ve._6(4608,qn,qn,[]),Ve._6(512,Qe,Qe,[]),Ve._6(1024,Ve.i,ee,[]),Ve._6(1024,Ve.b,function(e){return[function(e){return B("probe",q),B("coreTokens",Object(Re.a)({},Vt,(e||[]).reduce(function(e,t){return e[t.name]=t.token,e},{}))),function(){return q}}(e)]},[[2,Ve.r]]),Ve._6(512,Ve.c,Ve.c,[[2,Ve.b]]),Ve._6(131584,Ve.e,Ve.e,[Ve.s,Ve.P,Ve.m,Ve.i,Ve.g,Ve.c]),Ve._6(512,Ve.d,Ve.d,[Ve.e]),Ve._6(512,jn,jn,[[3,jn]]),Ve._6(512,zr,zr,[]),Ve._6(512,Br,Br,[]),Ve._6(512,Qr,Qr,[]),Ve._6(512,ar,ar,[]),Ve._6(512,cr,cr,[]),Ve._6(512,Se,Se,[]),Ve._6(256,Dr,"XSRF-TOKEN",[]),Ve._6(256,Lr,"X-XSRF-TOKEN",[])])});Object(Ve.I)(),Nn().bootstrapModuleFactory(Zr).catch(function(e){return console.log(e)})},fRUx:function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},grVA:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r={closed:!0,next:function(e){},error:function(e){throw e},complete:function(){}}},lI6h:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("6Xbx"),o=function(e){function t(){e.apply(this,arguments)}return Object(r.b)(t,e),t.prototype.notifyNext=function(e,t,n,r,o){this.destination.next(t)},t.prototype.notifyError=function(e,t){this.destination.error(e)},t.prototype.notifyComplete=function(e){this.destination.complete()},t}(n("E9/g").a)},mz3w:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=function(e){var t,r=n("xIGM").a.Symbol;return"function"==typeof r?r.observable?t=r.observable:(t=r("observable"),r.observable=t):t="@@observable",t}()},qLnt:function(e,t,n){"use strict";function r(e){return i=e,function(){try{return i.apply(this,arguments)}catch(e){return a.e=e,a}}}function o(e){return e.reduce(function(e,t){return e.concat(t instanceof d?t.errors:t)},[])}var i,u=n("1j/l"),l=n("NGRF"),s=n("B1iP"),a={e:{}},c=n("6Xbx"),d=function(e){function t(t){e.call(this),this.errors=t;var n=Error.call(this,t?t.length+" errors occurred during unsubscription:\n "+t.map(function(e,t){return t+1+") "+e.toString()}).join("\n "):"");this.name=n.name="UnsubscriptionError",this.stack=n.stack,this.message=n.message}return Object(c.b)(t,e),t}(Error);n.d(t,"a",function(){return p});var p=function(){function e(e){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,e&&(this._unsubscribe=e)}return e.prototype.unsubscribe=function(){var e,t=!1;if(!this.closed){var n=this._parent,i=this._parents,c=this._unsubscribe,p=this._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var f=-1,h=i?i.length:0;n;)n.remove(this),n=++f0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},t}(i.a)},xIGM:function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return i});var r="undefined"!=typeof window&&window,o="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,i=r||void 0!==e&&e||o}).call(t,n("fRUx"))}},[0]); \ No newline at end of file diff --git a/src/app/ngx-editor/common/utils/ngx-editor.utils.ts b/src/app/ngx-editor/common/utils/ngx-editor.utils.ts index 2b699cfb..fa42f663 100644 --- a/src/app/ngx-editor/common/utils/ngx-editor.utils.ts +++ b/src/app/ngx-editor/common/utils/ngx-editor.utils.ts @@ -2,12 +2,16 @@ export function canEnableToolbarOptions(value: string, toolbar: any): boolean { if (value) { + if (toolbar['length'] === 0) { return true; } else { - return toolbar.find(array => { - return array.includes(value); + + const found = toolbar.filter(array => { + return array.indexOf(value) !== -1; }); + + return found.length ? true : false; } } else { return false; diff --git a/src/styles.scss b/src/styles.scss index d6625b30..fe02b128 100644 --- a/src/styles.scss +++ b/src/styles.scss @@ -1,4 +1,4 @@ /* You can add global styles to this file, and also import other style files */ @import "../node_modules/bootstrap/scss/bootstrap"; // bootstrap -@import "../node_modules/font-awesome/css/font-awesome.css"; // font-awesome \ No newline at end of file +@import "../node_modules/font-awesome/css/font-awesome.css"; // font-awesome